Posts

Showing posts from February, 2014

code formatting - Assembly language source formatter -

It seems that assembly language has gone out of fashion somewhat, and thus I have a Sharpier / Source formatting tool Can not find Anyone have any suggestions on this? Search for asm source erotic , there is a lot of them ... maybe emacs can also be used with its many editing modes and indent-field macros Can help.

javascript - Non-case sensitive query with TaffyDB (or other JS DB) -

I am using TaffyDB for "DB" for that website, which I am currently working on. Its pretty clean, I can do 'like' searches, however, 'like' search is still sensitive and if there is a record: "banana", a question of "banana" will fail. Nobody knows how to use TaffyDB for such a question Or, there is a JS DB that can do such a function Just use likenocase : Db ({title: {"likenocase": Val}}) .order (...

Swagger UI and ServiceStack -

The service stack support model is in Swagger in the sample code below [root (Root "(" / user "," post, put ", summary =" create a new user ")] [root (" / user "," GET ", summary =" make available to all users " User / {id} "," GET ", summary =" Get user with specific ID ")] Public class users: request buzz, erranton & lt; UserResponse & gt; {{Apamemel (name = "id", description = "user id", parameter type = "path", datatype = "int", iiReaded = falls}] public entry id {received; Set; } [Apemail (name = "user data", description = "user data", parameter type = "body", datatype = "complex", iiReaded = false)] public user entry {get; Set; }} I should have a complex type or container type of user data. However, if I define it to be one of them, then all I get in SwaggerUI is a text field box. I do not get t...

java - How to dynamically add multiple pieces of data in Jasper Reports -

I have a report on Java that I am working in Java. In Java, I can dynamically populate a bean with the data with the following code: list & gt; ThemeBean & gt; Theme = New Arreelist & gt; ThemeBean & gt; (); CSVReader csvReader = new CSVReader (new FileReader (csvFilename)); & Lt; String [] & gt; Data = csvReader.readAll (); (String [] D: data) {Themebeam TB = new themeben (); Tb.setThemes (d [0]); Tb.setComments (d [1]); Tb.setSentiment (d [2]); Themes.add (TB); } Jasper Design jasperDesign = JRXmlLoader.load (fileName); JRBeanCollectionDataSource DS = new JRBeanCollectionDataSource (themes); JasperReport jasperReport = JasperCompileManager.compileReport (Jasper Design); JasperPrint jasperPrint = JasperFillManager.fillReport (Jasperport, Blank, DS); This works fine when the correct fields in the .jrxml file are specified and the textFieldExpression is within the tag ... The following dynamically generated list was made: & lt; TextFieldExpre...

regex - Replace part of URL with JavaScript -

I want to change the part of the URL with javascript but stupid Rijks is giving me a headache. I want to switch from: http://website.com/test.html/post/something-else/ do this For: http://website.com/post/something-else/ Any ideas? Thanks! Use the Change () function var url = ' Http://website.com/test.html/post/something-else/ 'url = url.replace (' / test.html ',' ') console.log (url) // "http: // Website Com / Post / something-else / "

javascript - Html5 video Playlist won't work. Also how do I get it to loop through the two items after each complete -

After clicking the user clicks, I try to play a clip in one continuous loop after the other trying to get the video player I am here. Even I have so far code: Var Videoplayer = document.getElementById ('Video'); VideoPlayer.onend = function () {videoPlayer.src = "http://www.mp4point.com/downloads/8feeca1a540b.mp4"; } JSField: This works: var video player = document.getElementById ('video'); VideoPlayer.addEventListener ('Finished', function () {this.pause (); this.src = "http://www.mp4point.com/downloads/8feeca1a540b.mp4";}, false); Updated wired:

asp.net - error with form action -

मेरे पास निम्न C # कोड है: AddCommentForm = string.Format ("& lt; Form name = \ "addcomment \" method = \ "post \" runat = \ "server \" id = \ "add_comment_form \" & gt; & lt; पी & gt; TITLE: & lt; इनपुट प्रकार = \ "text \" name = \ "शीर्षक \" / & gt; & lt; / p & gt; & lt; p & gt; कंटेंट & lt; textarea नाम = \ "सामग्री \" & gt; & lt; / textarea & gt; & lt; / p & gt; & lt; पी & gt; & lt; बटन प्रकार = \ " \ प्रस्तुत "& gt; सबमिट करें और lt; / बटन & gt; & lt; / p & gt; & lt; / प्रपत्र & gt;"); This.Form.Action = "ViewArticle.aspx? ArticleID =" + अनुच्छेद; समस्या यह है कि दूसरी पंक्ति में एक त्रुटि है: System.NullReferenceException पकड़ा गया मेरा प्रश्न यह है कि मैं यह त्रुटि कैसे कर सकता हूं? और यह कोड क्यों काम करता है? & lt;% this.Form.Action = "ViewArticle.asp...

extjs4 - How do I set total number of pages in ExtJS 4 paging? -

I'm not sure whether this is possible or not, but I was wondering if I set the number of pages in paging could. That's what I can set page 1 of 20. (If I set it to my total page 20) and when someone clicks on the next page, it will return the data on the page which depends on the page number but may be of any size I can not limit the page size Want to do Depending on the page number it will be the dynamic page size. Most of what I was looking for is for the first time when a person submits the form, then I can send the total number of pages and when he clicks on next, he will show all the statistics on that page. I was wondering if I could send the total number of pages, as we sent total properties for the total number of data lines. Like below, I want to make pages piazza which will be total property = total now. Besides, I would like to know whether I can set the number of total pages. var store = Ext.create ('Ext.data.Store', {model: 'test_data_layout'...

android - How to detect a duplicate contact when Inserting a new one? -

"itemprop =" text "> After a contact backup application, I save all the information in a CSV file, and then I need to restore it back for. It works great, although if I press again twice, then it duplicates all the contacts. I tried the following code to remove the duplicate, it works but fails in some cases. Basically this fails when there is no explicit DISPLAY_NAME, for example if a contact contains only one phone number and is the phone number for DISPLAY_NAME, or similar to an email address. . I can not understand why this habit is always working since it appears that the DISPLAY_NAME area is the phone number / email address here is the code that I used to: Private Boolean contactExists (String DisplayName, string emailstring, string phonestring) {cursor CRSR = BA.applicationContext.getContentResolver (). Query (ContactsContract.Contacts.CONTENT_URI, New String [] {"display_name", "_ id"}, "display_name =?", New string [] ...

cherrypy - Server in Python: write or add parameters on URL possible without redirect -

I need a command to work with URLs using CherryPy and Python version 2.7.3 I want to change the URL. Old URL localhost: 8080 and auto foo = 1 & amp; Foo = url localhost: 8080? = Foo = 1 & amp; 2 = ( variable s ) in cherrypy import urllib class root (commodity) in foo = 2 import: @charyipi. Expose DEF Index (self): JSONDICT = [('FU', '1'), ('FU', '2')] s = urllib.urlencode (jsondict) print s # foo = 1 & amp; Foo = 2 return "hello" Cherrypy.config.update ({'global': {'server.socketPort': 8080}} cherrypy.quickstart (root ()) a solution ? Tips with Andrew with raise cherry.HTTPRedirect ("localhost: 8080?" + Params) It is working but this is for redirection. I am not interested in it, but using the redirect, I write on the new URL. I do not want to redirect, but I always work on this URL, What about a simple redirect? Import cherrypy class root (object): @ cherry. Expose D...

iphone - XCode toolchain: how to move an App from one accounts to another? -

same [*]. Please follow the explanation, as I am in a parallel universe: A me , singles As an app developer. and b Customers , with a team of two - I have been added just like person 2, an administrator (not agent - that person 1) . The client gives me a * source code for app highlight / fix I started to rewrite the app on my machine , use of my Apple Dev account and my developer certs for device testing. Therefore, at this time, this "My" app appears, note that I do not have any distribution nor iTunes is connected to me or to the customer, but they have the first release of the app, which is my upgrade Change is, as stated above) Now, this bug is free: - / and Live under the customer's account, not mine. Here's where I got stuck and smiled. (I used to talk to apple, and they were somewhat useful, but I'm worried about corrupting / cheating all the chess / accounts on my machine.) Question: 1A Can customers use the po...

C++ "unresolved external symbol" using namespace from different project -

I have two projects (they are called Tests and Intrados) inside intrados, I have the following namespace: #include "Mapper.h" #include "Director.h" #include "Driver.h" # include & lt; Iostream & gt; #include & lt; String & gt; using namespace std; Namespace IntradosMediaAir {Zero Edwheel (string); } Zero IntradosMediator :: addVehicle (string vehicleName) {Mapper * Mapper = Mapper :: getInstance (); Mapper-> AddVehicle (vehicleName); } From the inside of the introdose project, just by calling "intradosmdiyyart :: mapper (advils)" works just fine; So far, in the project test, the following code produces a link error: #include "IntradosMediator.cpp" #include "Mapper.h" using the namespace intradosMediator; Int main () {IntradosMediator :: addVehicle ("Car X"); Return 0; } Error: Test.obj: Error LNK2019: unresolved external symbol "Public: Fixed square mapper * __cdecl mapper: get...

jailbreak - iOS touch event notifications (private API) -

This is possible, and you can get detailed system-wide notifications in the background using CTTelephonyCenterAddObserver and CFNotificationCenterAddObserver, eg: Although I do not find a way to get touch notifications in the background, do any "touch events" in the background? I am happy with low level contact information (such as X, Y coordinate and touch type), but high level information (like key pressed, back button pressed etc.) will be even better! In the IOHID stuff to get x, y coordinates IOKit Can be used. #include & lt; IOHIDEventSystem.h & gt; Create IOHIDEventSystemClient: Zero * ioHideventSystem = IOHideventSystemClientCreate (KCFLocator default); Register the callback: IOHideventSystemClientScheduleWithRunLoop (ioHideventSystem, CFRunLoopGetCurrent (), KCFran Loop default mode); IOHIDEventSystemClientRegisterEventCallback (IOHideventSystem, handle_event, NULL, NULL); Unregister callback: IOHIDEventSystemClientUnregiste...

c# - Update a winforms label or textbox using database data -

I want to get some text from the database and use this data to update the value of the label or textbox I am My only experience has been binding on a gridview so far, but this method does not work in this scenario. Can you please advise? Here's a tough example. In the real world, you want to reuse your connection object / perhaps use database physics and connectionpooling. This example only shows an easy way to populate label text with information from the database. const string connection string = "initial catalog = northwind; data source = localhost; integrated security = sspi;"; Const string GetLabelText = "select labeltext from myLabelTextTable where id = {0}"; Const String DefaultLabelText = "-define-"; Public Zero UpdateLabel (label myLabel, int labelstest ID) {string labelText; (Using SqlConnection Connection = New SqlConnection (ConnectionString)) (using connection.Open (); (SqlCommand command = new System.Data.SqlClient.SqlCommand ...

Bootstrap pop-over not loading ReferenceError: jQuery is not defined -

I am trying different solutions for many years but I can not work because my bootstrap popup is not working I'm getting this: ReferenceError: $ (function () This is my button I show popup I want to go up: a `href =" http://automationrecruitment.com.au/apply/ " & Gt; & lt; button class = "btn btn-big btn-block btn-primary" id = "l Ft "rel =" popover "data-content =" is the content showing this "style =" min-width: 116px; margin: 5px; "& gt; apply & lt; / button & gt; & lt; / A & gt; This is the script I have attached:

function - Why am I getting garbage when I use pointers in this program? C Language -

I am trying to get an understanding of the language syntax and I do not understand why I am getting garbage. Value when I use the pointer in this function. # include & lt; Stdio.h & gt; # Include & lt; Math.h> Zero different (double, double * dollar, double * quarter, double * coins, double * nickel, double * money); Int main (zero) {double sum = 38.39, change, payment = 40.0, dollar, quarter, money, nickel, money; Change = payment - amount; Separate (change, & dollar, and quarter, & coin, & nickle, & money); Printf ("Your total change is: $% d \ n", changing); Printf ("dollar:% d \ n", dollar); Printf ("Quarter:% d \ n", quarter); Printf ("dimes:% d \ n", dim); Printf ("Copy:% d \ n", turned out); Printf ("Pennies:% d \ n", Panny); Getchar (); Return (0); } Zero different (double change, double * dollar, double * quarter, double * coins, double * nickel, double * money) {double coins; Coi...

linux - how is TCP's checksum calculated when we use tcpdump to capture packets which we send out -

Image
I am trying to prepare a series of packets to simulate the TCP 3-way handshake process, my The first step is to get real connecting packets, and send the same packet from the same machine again, but it does not work in advance. In the end, I came to know that the packet I bought with the taxipamp is not at all, my computer was sent, the checksum field of TCP has changed and it inspires me to think that I have a TCP connection I can install TCP checksum is also wrong. So my question is how checksum fields are calculated? Is it modified by TCPDump or hardware? Why has this changed? Is this a bug of TCPDump? Or is it because the calculation has been omitted. The following is a screenshot taken from my host machine and a virtual machine, you can see that the same packet captured on the defiant machine is all the same except the TCP Checksum. And the small window is my virtual machine, I have used the command "ssh 10.82.25.138" to create these packets from the host ...

java - JSP - How do get time to constantly update by ms -

I'm trying to write an example JSP page for myself (very new JSP), and an example to write one , But how do I get time to update constantly? Here's my snippet of code: & lt; Body & gt; & Lt;% java.text.DateFormat df = new java.text.SimpleDateFormat ("HH: mm: SS: SS z MM / dd / yyyy"); Calendar cal = calendar.justinstance (); & Gt%; & Lt; H1 & gt; Current date and time: & lt;% = df.format (cal.getTime ())% & gt; & Lt; / H1> & Lt; / Body & gt; The way I am using a tomcat server to deploy it Function UpdateAirtime () {var now = new date (), months = ['Jan', 'Feb', '...']; Time = now.getHours () + ':' + now.getMinutes (), date = [now.getDate (), months [now.getMonth ()], now.Guoufure ()]. Join (''); Document.getElementById ('Current Time'). InnerHTML = [date, time] .join ('/'); SetTimeout (updateYourTime, 1000); // This method will call for every other}...

oracle10g - Oracle SQL query to return row values if all rows have some value in column after grouping by another column -

I have some data that looks like this - Cola ColB ColC ID1 1 '1 -1' ID 2 1 '2-1' ID 2 0 '2-2' ID 3 1 '3-1' ID 3 1 '3-2 Give me a query (For Oracle 10G) that group gets the rows from the value of the cola and only then the values ​​of the calls are returned if all the rows in the group have ColB = 1, so for the given data I want the output Anyone - "1-1" "3-1,3-2" How to write a question like this? Thank you! select cola, column_name WHERE colb = 1 group from wm_concat (ColC) From; Edit - You can also use the LISTAGG total function like this: SELECT colA, LISTAGG (colc, ',') inside the group ( Order by CLC) from table_name to WHERE colb = 1 group by cola; I recommend using LISTAGG as it is documented by Oracle, while wm_concat is not. Edit: If so, you do not want to show lines like ID2 because it is Colb = 0, or, colb! There is a line with = 1, you can: SELECT colA, from wm_concat (Col...

android - onBackPressed() shows error -

I want to add an exhaust warning when clicking on the back button from the main body. For this, I'm using this code for @Override BackPress () on public zero {// todo auto-generated method stub-last dialog dialog = new dialog (main activity), android R-style Theme_Translucent_NoTitleBar); Dialoge.setContentView (R.layout.popup_layout); Button Yes = (Button) dialoge.findViewById (R.id.yes); Yes.setOnClickListener (New OnClickListener) {@Override click on Public Zero (see v) {// TODO auto-generated method stub MainActivity.this.finish ();}}); Button not = (button) dialoge.findViewById (R.id.no); No.setOnClickListener (New OnClickListener) {@Override click on Public Zero (see v) {// TODO auto-generated method stub dialoge.cancel ();}}); Dialoge.show (); } and it is working, but some errors appear while leaving. logcot 03-21 10:25: 57.192: E / WindowManager (14,488): 25: 57.192 Activity com.example.design.MainActivity window com.android .internal.policy.impl.PhoneWindow ...

c++ - How to implement subcommands using Boost.Program_options? -

I want to implement sub commands in my program. I also need different logic options for various sub commands. What is the best way to use Boost.Program_options? Submandings are used in programs such as SVN, GIT and APT-Mill. For example, some of the sub-commands available in GIT: git position git push git git add git add My question is basically similar to this man: If I understand the problem correctly You want to parse the command line options of the following form: [-Jenner-choice ...] CMD [- CMD-specific-choice ...] Here is my example solution: I for clarity, I have no I am leaving the verification code, but hopefully you can see how it will be quite easy. In this example, we have the "LS" sub-command, and possibly every other sub-order has some specific options, and additionally there are general options as well. So let's start parsing the general option and the name of the command. po :: options_description global ("Global Options...

xlrd - How to get line number in excel sheet using python? -

मेरे पास इस तरह एक एक्सेल शीट है: एबीसीडीईएफजी 1 0 0 0 2 0 0 3 0 4 5 0 0 0 0 0 0 0 0 0 0 0 और हर '0' कुछ डेटा मूल्यों का प्रतिनिधित्व करता है, मैं मूल्यों को पढ़ रहा हूं और उन्हें मेरे मूल डेटा के साथ तुलना कर रहा हूं, जब डेटा मैच विफल रहता है, यह संदेश देता है। मुझे जो चाहिए, वह एक्सेल शीट की लाइन नंबर और साथ ही कॉलम नंबर या विशेषकर CELL स्थान को वापस करना है। कृपया यह करने में मेरी मदद करें! इसे आज़माएं: import xlrd वर्कबुक में शीट के लिए कार्यपुस्तिका = xlrd.open_workbook ('book.xls')। शीट्स (): रेंज में पंक्ति (शीट। एनआरओ): कॉलम रेंज (शीट। एनकॉल) के लिए: प्रिंट "पंक्ति :::::" , पंक्ति प्रिंट "कॉलम ::", कॉलम प्रिंट "मान :::", शीट। कोल (पंक्ति, कॉलम)। मूल्य यह आपको सटीक पंक्ति , स्तंभ संख्याएं और सेल मान

android - google play application upload failed -

एपीके अपलोड Google Play बाजार में विफल रहा। मैं अपने अपग्रेड संस्करण को अपलोड करने का प्रयास कर रहा हूं गूगल प्ले करने के लिए ऐप लेकिन मैं संदेश प्राप्त कर रहा हूँ - अपलोड विफल आप अपने एपीके के लिए एक अलग संस्करण कोड का उपयोग करने की आवश्यकता है क्योंकि आप पहले से संस्करण कोड के साथ एक है। आपके एपीके की आवश्यकता है पैकेज नाम com.corntail.project है। अभी भी ऐसा कुछ है जो com.corntail.project की तलाश में है और यह पाया नहीं जा रहा है। UPDATE: मेरे AndroidManifest.xml में, प्रासंगिक कोड है - & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt ; & Lt; मैनिफ़ेस्ट xmlns: एंड्रॉइड = "http://schemas.android.com/apk/res/android" package = "com.corntail.main" एंड्रॉइड: versionCode = "1" एंड्रॉइड: versionName = "1.0" & gt; यदि आप एंड्रॉइड स्टूडियो या बिल्डिंग का उपयोग कर रहे हैं, तो अपने gradle स्क्रिप्ट को संपादित करें ( build.gradle ) अपना पैकेज नाम और संस्करण बदलने के लिए। ये मान आपके ...

ios - Can I disable the UITableView selection of the individual cell? -

Any time you tap on a line in UITableView , the row is highlighted And is chosen. Is it possible to do this by tapping the line, this is nothing? cell. Selection; or [cell set selection style: UITableViewCellSelectionStyleNone]; Next, make sure that you do not apply either the -customized view: didSelectRowAtIndexPath: in your table view representative or explicit Do not exclude those cells for which you do not want to take any action if you apply it.

jquery - displaying multiple div's using anchors tag -

& lt; ul class = "dropdown-menu" & gt; & Lt; li & gt; & lt; a href = "# listjobsDiv" id = "listJob" & gt; सूचीजॉब & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "# newJobDiv" id = "newJOB" & gt; नई नौकरी जोड़ें & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "# संपादित करें jobdiv" id = "editJOB" & gt; नौकरी संपादित करें & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "# हटायें जॉबडिव" & gt; नौकरी हटाएं & lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; div id = "adminBody" & gt; & Lt; div id = "listjobsDiv" शैली = "प्रदर्शन: कोई नहीं" & gt; सूची की नौकरियां यहां & lt; / div & gt; & Lt; div id = "newJobDiv" शैली = "प्रदर्शन: कोई नहीं"...

php - Retrieve POST checkbox data from form if they exist -

Hello people I'm having trouble recovering checkbox data from people form I have a site in which the user added the checkbox So, I'm writing them like this: & lt; Table style = "padding: 10px;" & Gt; & Lt ;? Php $ query_boolean = $ DB- & gt; Prepare ("selection" * moduls type = 'boolean' '') or die (mysql_error ()); $ Query_boolean-> executed (); while (($ row = $ query_boolean-> fetch) )! = False? {? & Gt; & lt; tr & gt; & lt; td & gt; & lt ;? php echo $ row- & gt; name? & Gt;: & lt; / td & gt; & Lt; td & gt; & lt ;? php $ s = "" $ S = sprintf ('& lt; input type = "checkbox" category = "textbox" name = "boolean_% s" value = "yes" $ S = sprintf ('& lt; input type = "checkbox" category = "textbox" name = "boolean_% s" value = "no" & Gt;% s', $ row->...

perl - having some problems installing mod_perl on windows -

I want to run Perl on an Apache webserver in XMP for Windows, but when I install Perl from the document here I want to: 1 line that I really do not understand: c: \ Moderla_src> Perl Makefile.PL MP_AP_PREFIX = \ path \ to \ s Apache 2 What do they mean with the path of Apache and makefile.pl? Is this the path to Apache folder or is it something else? I know it can see a very stupid question, but this is the first time I want to do, so I want to do a good job. Thanks in advance,

javascript - Google Spreadsheet ranking values -

I am currently establishing decision matrix with Google Spreadsheet and I want to apply the ranking feature for the results. . I will not do this, if there were only 4 options, but in my case 32 options are available ... I tried to do it with Google Script API, but the result is somewhat disappointing: function ranking () {var sheet = SpreadsheetApp.getActiveSpreadsheet (); Var alldata = sheet.getDataRange () GetValues ​​(); Var data = []; Var j = 8; For (var i = 0; i & lt; = 31; i ++) {data [i] = aldada [18] [j]; J = j + 2; } Sorted var = data.slice (). Sort (function (a, b) {return b-a}}; Var rank = data. Slice (). Map (function (v) {return sorted.indexOf (v) +1}); . Sheet.getRange ("I-20") setValue (Rank [0]); . Sheet.getRange ("K20") setValue (Rank [1]); . Sheet.getRange ("M20") setValue (Rank [2]); . Sheet.getRange ("O20") setValue (Rank [3]); . Sheet.getRange ("Question 20") setValue (Rank [4]); . Sheet.getRange (...

javascript - Checking if writeFileSync successfully wrote the file -

मेरे पास express.js : export.save = function (अनुरोध, प्रतिक्रिया) {var file = request.body.file; Var सामग्री = request.body.content; Var सहेजा गया = गलत; अगर (fs.existsSync (फ़ाइल)) {saved = fs.writeFileSync (फ़ाइल, सामग्री, 'utf8'); } Console.log (सहेजा गया); // अपरिभाषित या गलत, कभी भी सही प्रतिक्रिया नहीं है। सरणी (सहेजा गया 200: 500, बचाया? 'बचाया': 'त्रुटि'); // 500, त्रुटि}; क्या यदि (saveof === 'अपरिभाषित' प्रकार) सहेजा = सच; एकमात्र विकल्प है? हो सकता है कि लगता है। नोड.जेएस के मुताबिक कुछ भी वापस नहीं आता है। अगर कुछ गलत हो जाता है तो यह एक त्रुटि वस्तु फेंकता है तो आपको fs.writeFileSync (फ़ाइल, सामग्री, 'utf8'); एक try-catch ब्लॉक में लिखना चाहिए।

actionscript 3 - Using Bluetooth ANE for Android -

I'm relatively new to Flash, Air and AS3 so I'm sorry if this comes as a starting question. . I have applied in AIR to run on Windows and have communicated via serial Corcoxy through my ATmega 8 chip via communication. Now I want Android to have the same basic functions on Android to download this app, but via ATmega 8 Bluetooth I have created a new Air for Android file in Flash CS6, my code Copy from my previous application, leaving the communication through socket part and creating an APK running on Android phones. It did everything except communication, as expected. I am now trying to implement as3breeze.com/bluetooth-ane and used it to communicate, but I am pretty sure how the whole thing I have imported the APO through the ActionScript settings and have implemented classes but when I try to test, I get this error. The content can not be loaded because there was a problem loading the extension: Error: invalid for extension namespace C: \ Users \ AppData \ Local \ ...

JavaScript: Non-standard ways to convert characters to codes, or strings to binary arrays (arrays of numbers) -

Is there any tricks in JavaScript that change the child's code except for .charCodeAt (i)? I want to convert the string to binary array in the fastest way (like faster than charcotte). But I'm also interested in learning about slow methods. You can do a lookup table, but I doubt it will be any faster. Something like this: function (str) {var code = {}, output = []; (Var i = 0; i & lt; 256; i ++) {string code [fromCharCode (i)] = i; } (Var i = 0; i & lt; str.length; i ++) {output.push (code [str [i]]); } Return output; } Generally speaking that if you can go with the original code, then go with the original code.

c - Segmentation fault when free large array of pointers -

My code runs with errors on small files but I get segmfault on large input (millions of lines). Please see some of the code below: element * unionFind (zero * data) {element * retVal = NULL; Retal = (element *) maulok (form of element); Rate Val- & gt; Data = data; Rate Val- & gt; Rank = 0; Rate Val- & gt; Leader = retal; Return rate; } main: ... int main (int argc, char * argv []) {char str [2048]; Char * v_S = NULL; Straight set * s_v = NULL; Count of rows in the input * long * v_L = (long *) malloc (sizeof (long) * Ct_lines); Element ** v = malloc (size of element) * ct_lines); Whereas (fgets (str, sizeof (str), fp) = null) {v_S = strtok (str, ":"); V_L [i] = Atoll (VCI); V [i] = unionFind (and v_L [i]); S_v = add_vertex (v_L [i], v [i]); I ++; } Fclose (fpose); For (i = 0; i & lt; ct_lines; i ++) // From here to default {Free (V [i]); V [i] = null; } Free (V); V = NULL; Free (v_L); V_L = Faucet; After each mlok you should know what ma...

Issue with selecting level form Level Selection screen (Cocos2d + box2d) -

The level selection screen is started based on the menu items and the selected item level ... here is the code. Where indexed menuItem is selected. if (selectedLevel == 0) {activeScene = [level2_1Scene node]; [[CCDCD shared director] PushScen: ActiveSecine]; } And if (selected level == 1) {activeScene = [level2_2Scene node]; [[Ccdceter Shared Director] PushScen: Active Sense]; } And if (selected level == 2) {activeScene = [level2_3Scene node]; [[Ccdceter Shared Director] PushScen: Active Sense]; ... for all levels at this level How can I do this with a simpler form like it is something that is not working activation = [[NSString stringWithFormat: @ "level2_% d", selected level + 1] node]; [[Ccdceter Shared Director] PushScen: Active Sense]; This snippet from my factory may probably do your trick after optimization: Skills * skkk = (Skills *) NSClassFromString (className); If (skkk) {return (skill *) [[skkk class] skillWithSpec: ss]; } Other {MPLogger (@ ...

c - Include a header file for parsing of all other files with Doxygen preprocessor -

मैं एक h फ़ाइल से #define s को शामिल करना चाहता हूं परियोजना पृष्ठभूमि: मेरी सी प्रोजेक्ट में शीर्ष लेख फ़ाइल config.h उस पर बिल्ड कमांड है। यह उसी बिल्ड कमांड पर एक लक्ष्य MODEL_A भी परिभाषित करता है। config.h लक्ष्य के आधार पर परिभाषित करता है बनाता है ( MODEL_A के लिए के रूप में MODEL_B के लिए नहीं परिभाषित करता है की एक ही सूची) बनाया जा रहा: #if परिभाषित (MODEL_A) #define HAS_FUNCTIONALITY_1 #define HAS_FUNCTIONALITY_2 #elif परिभाषित (MODEL_B) #define HAS_FUNCTIONALITY_3 #define HAS_FUNCTIONALITY_4 #endif Doxygen के साथ मेरा मुद्दा: मैं Doxygen के साथ प्रलेखन उत्पन्न करने का प्रयास करता हूं। मेरे पास Doxyfile में है: # config.h से INPUT सहित आवश्यक लगता है इनपुट = ./source/config.h \ ./source ENABLE_PREPROCESSING = हाँ MACRO_EXPANSION = हाँ EXPAND_ONLY_PREDEF = नहीं INCLUDE_PATH = ./source INCLUDE_FILE_PATTERNS = ./source/config.h पूर्वनिर्धारित = MODEL_A कोड है कि परिभाषित करता है पर निर्भर है HAS_FUNCTIONALITY_x दस्तावेज में, शामिल...

mysql - Sql queries are displaying incorrect data -

नमस्ते मेरे पास निम्न डेटाबेस स्कीमा है कर्मचारी (कर्मचारी-नाम, सड़क, शहर ) काम करता है (कर्मचारी-नाम, कंपनी-नाम, वेतन) कंपनी (कंपनी-नाम, शहर) का प्रबंधन (कर्मचारी-नाम, प्रबंधक-नाम) मुझे निम्नलिखित कार्य करने की आवश्यकता है मेरे ट्रैसर के लिए वे गलत हैं। मान लें कि कंपनियां कई शहरों में स्थित हो सकती हैं हर शहर में स्थित सभी कंपनियों को खोजें, जिसमें लघु बैंक निगम स्थित है। चुनें कंपनी का नाम, शहर से कंपनी यूनिअस सभी का चयन करें कंपनी का नाम, शहर से कंपनी WHERE company-name = â? लघु बैंक निगम ???? उन सभी कर्मचारियों को खोजें, जो अपनी कंपनी के सभी कर्मचारियों के औसत वेतन से अधिक कमाते हैं। कार्य से कर्मचारी नाम का चयन करें जहां वेतन & gt; (सेव एवीजी (w1.salary) से काम करता है w1 INNER JOIN काम करता है w2 पर w1.company-name = w2.company-name) उस कंपनी को खोजें जो सबसे अधिक कर्मचारी हैं। उस कंपनी को खोजें, जिसकी सबसे छोटी पेरोल है। का चयन करें कंपनी का नाम कंपनी का नाम कंपनी नाम से हैगिंग गिनती (*) & lt; (*) डीईएससी सीमा से कंपनी के नाम के आदेश द्वारा...

sublimetext2 - How to split window at sublime2 at the vintage mode on Mac -

I want to split the window into a successful text editor. {"keys": ["sp"], # How do I know how to call the partition window command please help! "Command": "split_window_horizontaly", "context": [{"key": "setting.command_mode", "operand": false}, {"key": "setting.is_widget", "operand": false}]} , Do you have any ideas? thank you in advanced. Then there is a list of key keys, so for the above key combinations, you ["s" , "P"] like something. To manually make the partition, you need to call the set_layout command with the appropriate code. You can see the command while opening the console and entering sublime.log_commands (True) while using the menu. With this being said, doing so may cause you more trouble than you do. Take a look at the plugin and the plugin Origami plugin makes some better panel management commands, creating the Vinta...

fancybox2.0 could not open with jquery ajax responseText -

I am using fancybox2 to open a new html. Here I am generating html through jquery ajax method. But Fancybox 2 does not respond. Here is the code var line = $ .ajax ({type: "GET", url: "/ ajaxHTML", data type: 'html', success: function (results) {warning ( result);},}). Reaction text; $ Fancybox.open ({'content': line}, {type: 'html'}); Am I using it incorrectly? I can open fancybox with simple text or HTML code. But with this feedback, no text variables and Ajax HTML can successfully get the alert function works and shows the content of the entire HTML page. Try: $ Fancybox.open (line, {type: 'html'}); ... or $ Fancybox.open ({content: line, type: 'html'}); View

faster way to limit records between range in sql server -

I have a large number of records in my table, and I want a record page between the boundaries, but for that Select only one solution near with data (select ID, your column, ROW_NUMBER () as per the order (as ordered by your table) as the rhonam) * From the data from where roaming Between 5 and 10 But for that we need an external query and this is twice We will be killed on ours, like we can do in mysql like select * from employee limit 2,4 there is no way that we You can get records between the range with a single hit. Bcoz If this is the problem, then we can not get the fast result of that question in MSSQL One - Leave the first 5 records and display the next 5 records Top 5 * From the data where the id is not If you have Microsoft SQL Server 2012 : id select the table name by order 10 for the next 10 races; offset - & gt; # Of left rows Next - & gt; Requirements for the next rows

Differences in javascript module pattern -

Very simple question, I'm not sure there are any differences between these methods to make JavaScript "modules" That someone can make it clear to me. A) var foo = function () {var bar = function () {console.log ('test'); }; Return {times: times}; }; b) var foo = function () {function bar () {console.log ('test'); }; Return {times: times}; }; c) var foo = function () {this.bar = function () {console.log ('test'); }; Return {time: this.bar}; }; A and B are essentially the same, though there is very little difference between A. And due to the increase in B function / variable, theoretically you can write code which will work in B but break into A, but practically saying that you have to type in really strange code to do this. C will work but is conceptually incorrect. The point of using this.funcName in the function is to construct a lot of objects using the form ( new thing () . If you have a constructor You should not use t...

c# - Override the default behaviour of GetEnumerator -

I have a requirement where I should know the calling method from GetEnumerator () . I think the best method might possibly override the default behavior to GetEnumerator as one that gives me the GetEnumerator ([CallerMemberName] string caller = null ) But I can not seem to do anything that is still going on it originally. Public category MyItems: IEnumerable & lt; String & gt; {Private list & lt; String & gt; Item = new list & lt; String & gt; (); Public Maitum () {items.Add ("A"); Items.Add ("two"); Items.Add ("three"); Items.Add ("four"); Items.Add ("five"); Items.Add ("six"); } Public IEnumerator & lt; String & gt; GetEnumerator () {Return Items. GetEnumerator (); } Public IEnumerator & lt; String & gt; GetEnumerator ([CallerMemberName] string caller = null) {var method = caller; Return items Getannamator (); } System.Collections.IEnumerator System.Collections.IEnumerabl...

binding - TravelPort WCF call issue -

The service to travelport .. has added their WSDL file trying to make a WCF call. The issue is that the endpoint is known as "https" and when calling, your Uri schema expects http .. wsHttpBinding to try to change the binding from basicHttpBinding, but it does not raise the second expection of the binding kind Recognized .. Tried to use the same URL with the http scheme but this request can be given to any specific tutorial for calling out the Travel Port WCF That would be a great side to that. . The sample code is as follows (if it can be of any help :)) Pingrek rake = new pingreck (); Req.Payload = "Payload"; Req.TraceId = "abcd"; SystemPingPortTypeClient Port = New SystemPingPortTypeClient (); PingRSP rsp = port.service (req); Regards, LowFareSearchReq request = new LowFareSearchReq (); Req.TargetBranch = "{EnterBranchCode}"; Req.AuthorizedBy = "test"; BillingpointAFFileInfo biPOS = new billingpointOffFix (); ...

malformed - file encoding and deformed strings -

I am just working with a text file that has a lot of distorted strings like: wapple ?? And lieutenant; 88 & gt; TE professionals AM pole "JMA ?? a My editor says that file encoding is Latin 1. String should be a check sentence that contains some directics, so no wonder it's wrong I have tried to emphasize utf8 and latin2 encoding in my editor but he could not help. I have also tried to use iconv to convert file from Latin 1 to UTF 8 or Latin 2 not He helps. I often like issues and like it and I do not know any other solution than manually writing strings. Is this a better way to fix it? Code> Here the hex is the dump of the part where the distorted string is: 0002640: 6A6D656 6F225D20DD20 2744 453 A2056 Gemman "= 'D : V 0002650: 7970 6 CCE 8874 6520 7072 6f73 C3Ad 6D20 IPL .. EPM 0002660: 706F 6C 65 2022 6A 6DC3A 9 6A 6F222A 273B Pol "JM .. not'. '; EDIT2: The sentence above is actually the correct UTF 8 because deception ha...

c# - MVC4 - Ajax.ActionLink() GET returning 500 internal server error -

Image
When I click on a Ajax.ActionLink , I get 500 internal server errors . I have a profile page which is composed of several partial forms. Each partial has asked the server to allow Ajax to edit the user information related to that particular partial. I said that 3 partially implemented with functionality, which works fine. On which I am working, it should initially show a list of uploaded images - if the user did not upload any image, Ajax.ActionLink will be displayed first, which will be clicked on Provides a user to partially upload images. When I press the link, then I'm looking into Chrome: here gET and POST ActionResults : // / / receive / tenants / TenantUploadReference [HttpGet] public ActionResult TenantUploadReference () {try {var currentTenant = tenantRepository.GetLoggedInTenant (); If (currentantant.refesphoto == empty) {currentTenant.ReferencePhotos = currentTenant.ReferencePhotos ?? New list & lt; Reference photo & gt; (); } Return a partial...

md5 - How can I sanitise input for a hash converter in PHP? -

I created a website that generates a hash from users who input plain text, the user can enter a word / phrase And can choose from MD5 or SHA1 (or both) site then takes this input and converts it to MD5; SHA1 and store it in a database, then returns it to the user. The user can also hash in a search bar, and if the database is hash, then it will return the original word, providing the users with the benefit of the crowd-level Hash is to create tables. I am getting main functionality, but I have a dilemma of what I should do, I want the users to input special characters, because this will result in the search function, any advice would be appreciated, thanks. You should not clean anything if it is just being washed, since the hashing functions generally There are no insecure against injection attacks. You should clean all your database inputs (both for entry and search). However, unless you are using an archive database API, which does not support parameterized queries (such a...

mysql - UPDATE fails - SELECT denied -

मेरे पास एक mysql अनुदान समस्या है जो मैं काम नहीं कर सकता। mysql & gt; UPDATE Frontier_remote.trident_update SET पूर्ण = अब () WHERE mac_address = "00: 1 बी: 24: a0: da: e9" और पूरा किया गया है NULL; त्रुटि 1143 (42000): चयन कमांड ने उपयोगकर्ता को 'त्रिशूल_संकल्प' @ 'होस्ट- 78-147-8-82.as13285.net' के लिए कॉलम 'मैक मैसेज' के लिए तालिका में 'ट्रिडेंट_अपडेट' मायसाइक्ल & gt; Trident_update से mac_address का चयन करें WHERE mac_address = "00: 1b: 24: a0: da: e 9" और पूरा नहीं है; + ------------------- + | Mac_address | | + ------------------- + | 00: 0: डि: विज्ञापन: हो: एफईएफ | + ------------------- + 1 पंक्ति सेट (0.04 सेकेंड) तो अद्यतन का चयन करने में विफल होने का दावा है, लेकिन आदेश का चयन हिस्सा अपने आप ही काम करता है। अनुदान तालिका में संबंधित प्रविष्टियां इस तरह दिखती हैं: अनुदान पर * *। * ' 'त्रिशंक__मित्र' @ '%' पासवर्ड 'छाया-पासवर्ड' के माध्यम से पहचान, 'फ्रंटियर_रेमोट' ...

Sync SQLite with SQL Server 2012 Windows 8 app -

I am working with a Windows 8 app using the SQLite database. Now I wanted to sync SQLite with SQL Server 2012, there are a lot of things available, but not suitable for the Windows 8 app. Anyone can help me thanks View this link As the SQLite cross platform it should work for Windows 8. There is a skeleton implementation for the Windows 8 app

android - pixelate image in code -

I searched through the code to pixel an image in the Android, the results are diverse. I have received libraries and tutorials about implementing the other effects found here: Can someone clean things for me, to fly a pixel image on Android What is the easiest way to do this? Besides this, it would be easy if it was a function that how many rounds I could have or how much I wanted a pixeling image. The easiest way to pixelate the image is to "the closest neighbor" Trying to find an average takes more time to filter the image, but the result quality does not really improve, after which you want to deliberately distort your image.

photoshop - iPhone or MacBook stock images for screenshot -

I'm sure that's a clear answer and I'm just using the wrong search criteria. I do not know where and where it is! I have an app that runs in the form of the iPhone app and the Mac desktop app when someone wants to display an app on the web, then it has images of the app screenshots shown on the iPhone's screen. . This iPhone is almost always a light shadow which is going to the top right of the screen. for example . It is only editing any number of organizational stock images, which can be found by Googling, for example. However, it is a continuous shadow, it tells me that there is a PSD in which there is an iPhone cover, with a blank area in between to copy your screenshot and a light shadow that remains in the form of the top layer. But where can I find this? Is there a generator on the apple site? Has anyone published the official property elsewhere? I'm looking for both the iPhone 5 version and the MacBook version. Thank you This topic is closed t...

radio button to show div on loading a form using jQuery -

The problem below me is that I am working with a form that is available through many different steps The function that gets passed triggers the 'show'. Can this show be triggered by something similar in onload? So explain the big picture here. I got a form with a radio button to add an image. Phase 1 of the form is for the author, for stage 2 of the content editor. Therefore the form is completed and has been sent to the content editor. If the radio button is checked on stage 1 then the divisor is displayed. When this form is passed for stage 2, div is still shown to me. Hope this will tell my problem further. Step 2 is a completely different page. Sorry this is my first time here! Markup & lt; Input type = radio id = "image1" name = "image1" & gt; Image 1 & lt; / Input & gt; & Lt; Input type = radio id = "image2" name = "image2" & gt; Image 2 & lt; / Input & gt; & Lt; Div id = "di...

Can't install node.js with coffeescript on Ubuntu 12.04 -

नोड। Js को coffeescript के साथ स्थापित करने की कोशिश की: sudo sudo apt-get install Nodejs npm sudo npm install -g कॉफी-स्क्रिप्ट लेकिन: coffee -v मुझे देता है: त्रुटि: need.paths हटा दिया गया है नोड_मॉड्यूल फ़ोल्डर्स का उपयोग करें, या NODE_PATH परिवेश चर का उपयोग करें। फ़ंक्शन पर। ऑब्जेक्ट.डिफ़िनप्रॉपर्टी.गेट (मॉड्यूल। जेएस: 388: 11) ऑब्जेक्ट पर। & Lt; अनाम & gt; (Module.js: 456: 26) पर Object.Module._extensions..js (module.js: 474: 10) पर (/home/lapsa/bin/coffee@1.3.0:4:21) मॉड्यूल._compile पर फंक्शन में मॉड्यूल.लोड (मॉड्यूल। जेएस: 356: 32) फ़ंक्शन। मॉड्यूल._लोड (मॉड्यूल। जेएस: 312: 12) पर फ़ंक्शन। मॉड्यूल.रनमेन (मॉड्यूल। जेएस: 497: 10) स्टार्टअप पर (नोड। जेएस: 119 : 16) node.js पर: 903: 3 इस समय मैं पूरी तरह से खो गया हूँ कोई भी मदद? प्रयास किए गए w / o सफलता। $ npm -v 1.2.15 $ नोड-वी v0.11.0-पूर्व $ lsb_release -a नहीं एलएसबी मॉड्यूल उपलब्ध हैं। वितरक आईडी: उबंटु विवरण: Ubuntu 12.04.2 एलटीएस रिलीज: 12.04 कोडन: सटीक यह समाधान मेरे लिए काम किय...

iphone - ios ad-hoc in-app purchase: is it normal that asking user credential only once while user buys multiple items? -

I'm testing IAP on adhoc build version. When I buy app items for the first time, ask apple my apple id (I am using test account) and password. But when I try to buy other items after buying a fist, Apple does not interrogate my clientele and takes care of The IAP process automatically I'm not sure whether this is normal behavior or not. I thought Apple would ask my certificate every time I try to buy app items. I am confused, is it normal that after the first certification, the Saplily Certification Certification? Or am I missing something? Apple ID again for 15 minutes. Therefore, the first purchase ID validates and subsequent purchase is carried out without redistribution. To take this place out of your second shopping 15 minutes. You should ask again. Does the apple do that you do not have to enter your password every time? It's the belief that someone has not stolen your phone in 15 minutes. Try this app with the App Store, download the app and no...

Decimalseperator lost after conversion from csv to excel with vb-script -

I have a CSV with a semicolon separator that I would like to convert to a regular Excel sheet, But I must be mistaken because the number with decimal in the original file does not start with zero, the number in Excel is visible without the decimal separator. When I manually open CSV in Excel the result will be fine, so there should be a side effect to do it with the script. For example: There is a line in CSV: 2013-03-10 17:00:15; Inactive; 2,272298 ;; 0,121860 This happens in Excel Sheet: 2013-03-10 17:00 | Useless 2.272.298 | | 0,121860 Manually opened in Excel: 2013-03-10 17:00 | Useless 2,272298 | | 0,121860 Can anyone tell me what I can change / change to make decimal as decimal in Excel? Perhaps a way to tell Excel that argues for compelling the symbol to use decimal separator or European form? Kind regards, nico I currently have a script, where csvFile is a string with the full path of the original file and Excel File is the full path to the place...

Python - Check user input to make sure it is an integer - no letters, etc -

This code is a preview from the upcoming competition at picoctf.com. I've modified the original code so that it allows for user input, but I can not get Test # 2 to work. When a string of 10 characters is recorded with at least one letter, I have to print it that only numbers can be used. Currently it attempts to convert user input to an integer value to compare with the actual serial, but if a letter exists then the test fails because a letter can not be converted into an integer value: 123456789a Invalid verbatim "produce with base 10" ("int") " How can I fix a piece of this code so that it can be properly tested ? ** "test failed") > ** Your code is to find the serial number of your robot # to keep the solution simple - = 0933427186 Serial = input ("Please enter a valid serial number from your Robo Corporate Aircraft (Serial): = If print (' Only number allowed ')) Print (' Failed Test ') 2') Incorrect...

java - Using Distributed cache and FileReader on single node Cluster -

Many node clusters or single node clusters are sufficient to use distributed caches, giving the path of the FileReader file directly stored in HDFS Can open the file. This is not really necessary. The main purpose behind using distributed caches is to create available resources for all mappers or reducers running on all nodes in all the clusters, which does not have much meaning on the same machine. You can also have a global variable in your mapetred code on a node Hauup cluster, and this must be done by the trick.