Posts

Showing posts from September, 2010

ajax - Polling vs long-polling -

What is the difference between voting and long voting? What are the advantages and disadvantages? Is Ajax considered as a long time voting? Poll: kill a URL from a customer at some interval Long Voting: To kill the URL from the customer and keep the server connection for a period of time, in this way the server can return the connection at the time when there is a notification for his client All AJAX is not long. Polls are used for long periods using the form of comets ()

asp.net - Trouble converting a piece of CURL to C# -

I have the following curl which I am trying to convert to C #. I have no curl experience. $ ch = curl_init (); curl_setopt_array ($ ch, array (CURLOPT_URL = & gt; 'https://api.lanoba.com/authenticate', CURLOPT_RETURNTRANSFER = & gt; true, CURLOPT_POST = & gt; true, CURLOPT_POSTFIELDS = & gt; array ( ' Tokens' = & gt; $ _POST [ 'token'], 'Apiai_sent' = & gt; 'Your-API-secret')); so far I have this come: // get a JSON object object to make public square LanobaJSONObject {public string token {; set;} public string api_secret {get; set;}} public void DoAuthenticationCheck () {Var token = Request ["token"]. ToString (); on JSONObject = new LanobaJSONObject () {title} Okn = token, api_secret = "YOUR- API secret"}; Var jsonVal = Jason (Jesnobjekt, Jesnyuefest Bihivier. Elovget); Uri address = new Uri ( "https://api.lanoba.com/authenticate"); HttpWebRequest request = (HttpWebRequest) WebR...

Exporting sqlite2 database to SQL -

Hi I want to import data into a sqlite2 database in SQL to import into phpMyAdmin. Thank you. After searching I found sqlite2 And to do this you export to SQL: sqlite database.db .dump & gt; Output.txt To stop an error in phpMyAdmin, you need to delete the first line: "BEGIN transfer;"

- Where Developers Learn, Share, & Build Careers

I've taken steps for Chrome, but this is one of the most troublesome features with 'Firebug Lite' That it allows you to copy the CSS path of the object. In Firefox, I mean to visit, go to google.com and inspect the logo with firebug. Right-click on 'hploos' and select 'copy css path'. You will get something: html body # gsr div # main span # body.ctr-p center div # lga div div # hplogo this is an incredible This is a useful feature that I can not get on Chrome, it seems that you can only copy Xpath. Is there any way to use this type of functionality in Chrome? There is no fundamental way to get this information in Chrome You can do a bunch of hacks using jQuery and bookmarks as a hack: Also here: However, you should get this extension you want, and for a little easier use: This will drag XPath and CSS paths and will allow you to easily copy the text.

cocoa - Open new window uppon NSAlert -

I am using an NSAlert to ask the user to enable the utility for Accessories. Is it possible to have a button that does not turn off NSAlert which I can just use to open UniversalAccess prefpane? If not, then I think I have to make that window myself Thoox Whenever a button is pressed, then it is normally normal. In Mac OS X 10.5 or later you can use setAccessoryView: to insert a custom view in the alert, which may include the button that you want. However, you can not specify where the secondary view goes in. It may have a button in it but the button will appear in the middle of the window instead of below with other buttons (if you have a different button Choose a style, such as a square bevel for your custom button, it may appear less than the place.) To keep a complete control over the layout, you need to create your own alert window.

php mysql total sum two tables -

When someone chooses a service number, it will pop down and will only give a record of total I I want to give total .. then I still have to show the total amount of both lines. & lt ;? Php $ total return = $ line + $ line2? & Gt; You can strengthen your two database calls in the same query, and You can use columns to result in echoing your variable: Please, at least, use mysql_real_escape_string () to help prevent SQL injection attacks, which was broad for your original code .

.net - Silverlight COM path issues -

I am currently using some CD DLL with Silverlight and I am facing a strange problem. I had used two .NET COM DLLs that I had created, through the DllImport, the reference to the other DLL was given. They were working fine Then I added a third CD DLL for the project. It also refers to other DLLs through a DllImport. As soon as I make it another two breaks, they are saying that they are using other DLLs, they are not able to find. Third DLL works fine This is how I am making them AutomationFactory.CreateObject ("Com1"); AutomationFactory.CreateObject ("COM2"); AutomationFactory.CreateObject ("COM3"); If I just use COM1 and COM 2 then they work perfectly well. If I add COM 3 then it works fine, but the other two can not find their native DLS. I do not call any function on COM3, just create it and stop others from working. > Any thoughts? Do you think that this original Dell can be somehow? I do not understand how the third works, but others...

In Git, does origin track local commits before pushing? -

itemprop = "text"> Long story short, a co-worker's computer crashed and lost its work with its last push. As a last resort, I thought that before they were originally transferred from the original to the local, before it was ascertained to what extent the origin was revealed. If the original is working at some temporary place, does it anyway come back to the code? In GIT, the remote only "tracks" through a different repository through two * mechanisms: fetch , in which they explicitly request references, and push , in which reference is provided to them from any other repository If the entire local drive has become corrupted, and now you can save most of the .git directory in the repository, then you are sadly limited to the drive recovery Methods - GIT can not help you beyond this: Sorry (( If you have a repository and it's just in a bad condition, then the git reflog command can help you , Or if you offer more specificity then you can ...

iphone - GameCenter GKMatchmakerViewController auto-match not working, expectedPlayerCount always 1, solutions? -

I can not establish a connection between two players using automatic matching and GKM Chachor ViewController. The behavior is didChangeState is never called The player gets disconnected after an extended period of time. Is anyone solving this problem? Thank you! The correct number of players connected to make sure that you get your GKMasterest Set up correctly. In this example, I have a game that is connected to only two players, so I work min and amp; Maximum players are counted to 2: GKMrerest * request = [[[GKM trackoffAloc] INT] AutoArques]; Request.minPlayers = 2; Request.maxplayers = 2; GKM Changer VUI Controller * mmvc = [[[GKMachaker Week Controller ALOOS] InitvethMatureRequest: Request] Autorege]; Mmvc.matchmakerDelegate = self; Then, everything you saw as a work expected. Edit: After reading your question again, also make sure that you have the GKMatch object You have been given: - (zero) matchmakerViewController: (GKMatc...

- Where Developers Learn, Share, & Build Careers

I'm trying to send a picture to your Java servlet (hosted on Amazon EC2) after the Amazon S3 and how to move on surprise to retrieve the image from the POST request Upload Code request (pic.imageData a NSData type) thus sent via iOS RestKit API :. Rackpromes * Parameters = [Rak paramam]; [Parameter set value: pic.dateTaken forParam: @ "dateTak"]; [Parameter set value: uploaded for pic.datePRM: @ "dateduploaded"]; [Parameter setdata: pic.imageData MIMEType: @ "Image / JPG" for: @ "image"]; [RK Client Shared Client] Username = deviceID; [RK Client Shared Client] .password = session; [RK Client Shared Client] Authentication type = RKRext attestation type HTTPBics; UploadPictureRequest = [[RK Client Shared Client] Posted: kUploadPictureServlet params: Parameters Rep: Self]; parsing code stub This is how I parse the other two parameters to Java Servlet: Double dateTaken = double. ParseDouble (req.getParameter ("dateTaken...

500 Internal Server Error on a Facebook page -

I have created a Facebook page (with wordpress) but I can not get it to work in Facebook. The original page is working properly: (Just add https to view the SSL version) http://copywriting.com/fb/fanpage/pueblito- Reserved / However, when I load it in Facebook, the SSL version works fine, but the regular HTTP version 500 returns the internal server error. Regular FB tab (with 500 error): (Add https and it works fine) http://www.facebook.com/PueblitoEscondido/app_382773098443040 How can this be resolved? How can this be resolved? To see if

java - Execute main thread method in child thread -

I have a test example and one of its methods is called dance (). In the main thread, if I call the dance () method inside the hair thread, then what happens? I mean, will that method be executed in the hair thread or the main thread? public class testexample {public static zero major (string [] args) {final test test example = new test example (); New thread (new runleball) {@Override Public Zero () {System.out.println ("Hi Child Thread"); Test.dance ();}}). Start (); } Public Zero Dance () {System.out.println ("High Main Thread"); }} Try it ... 1. The method is related to the dance class test, for example not the main thread. 2. Whenever a Java application is started, JVM creates a main thread, and holds the main () methods in the bottom of the stack, by making it the entry point, but if you make another thread And are calling a method, then it runs within that newly created thread. 3 its hair thread which will execute dance () method. ...

java - how do I access this class -

import android.content.Context; आयात करें android.content.SharedPreferences; Import android.net.Uri; सार्वजनिक कक्षा लोडसेटिंग्स {सार्वजनिक स्थिर शून्य लोडमैय सेटिंग्स (संदर्भ सीटीएक्स) {साझा किए गए साझा किए गए साझाकरण संदर्भ = सीटीएक्स.गेट शेयर किए गए संदर्भ ("MY_SHARED_PREF", 0); स्ट्रिंग strSavedMem1 = sharedPreferences.getString ("gSendTo", ""); स्ट्रिंग strSavedMem2 = साझा किए गए संदर्भ .getString ("gInsertInto", ""); स्ट्रिंग cCalId = साझा किए गए संदर्भ.गेट स्ट्रिंग ("जीसीआईडीआईडी", ""); setInsertIntoStr (strSavedMem2); setSendToStr (strSavedMem1); } निजी स्थिर स्ट्रिंग cSendToStr; निजी स्थिर स्ट्रिंग cInsertIntoStr; निजी इंक cCalId; निजी उरी सी। कैलेंडर्स; सार्वजनिक स्ट्रिंग getSendToStr () {this.c.SendToStr लौटें; } सार्वजनिक स्थिर शून्य setSendToStr (स्ट्रिंग pSendToStr) {cSendToStr = pSendToStr; } सार्वजनिक स्ट्रिंग getInsertIntoStr () {return this.cInsertIntoStr; } सार्वजनिक स्थिर शून्य सेटइंसेर्टइनटो...

c# - Error in Function EF -

I use unit framework + SQL 2008 + Net Framework 4 + SP in STI. Functions in the EF for the inserted value in the Cranium SF. fro ex: Function Import Name: Insert A collection of the Struggle Process Name: InsertStudent comes back: Scalers: Int32 SP: to create a form of Inst. (@Datraag Dataim, @Stidelostem Navarchar (50), @StadyFurstnamNarvar (50), @Description Encryption (500)) INSERT Saving date in SQL but error in function EF: / P> Store data provider flame Aa the data reader Not enough columns to the requested query. I think you need to enter the primary key value through SP. Enter the Student's Insider (StadId, Steve, Vitiligo (@ stdID, @ dateReg, @ stdLastName, @ stdFirstName, @details)

c# - Extract Html content using silverlight -

I am trying to extract HTML content using Silverlight. I would like to apply my application object to any HTML page The user has to be enabled and when he clicks on the button in which the page content is removed You can use any HTML content from any site. WebClient Client = new webclient (); String html = client DownloadString ("http://www.msn.com");

Ruby strange issue with floating point multiplication -

Has anyone solved this problem in Ruby: We say that: a = 8.1999999 We wanted to score it by two decimals which is 8.20 and it has increased to 1,000,000 to 8,200,000 We do it like this; (a (2) * 1000000) .to_i But we have 8199999, why? There are things dentic, if we multiply we get the right result 1000, 100000 or 10000000, but not 1000000. Do you know any body? We are using 1.9.2 ruby ​​and try with 1.9.3 also. Thank you! is required 'big decimental' A = budicamcam (8.1999999.to_s) (a.round (2) * 1000000) .to_i

How to return generic type from a method in java -

I'm new to generic here. Here are my classes. public interface animal {zero} (); } The public class applies dogs to dogs (dismissed public) {System.out.println ("dog biscuit eats"); }} Public square cat follows the animal {dismissed public} {System.out.println ("Cat drink milk"); }} Now I want to use these sections in a normal way. Public class GenericExample {public & lt; T Animal Extensions & gt; T method 1 () {// I want to return anything that extends the animal through this method using generics, how can I do it) public & lt; Expansion of t Animals & gt; T method 2 (T beast) {// I want to return anything that extends the animal using this method using genetics, how can I do this) Public static zero (string [] Args) {dog dogs = Method1 (); // a dog cat cat = method 2 (new cat ()); // Returns a Cat}} How can I return the normal type (can be a cat or dog) from methods "method1" and "method2" I have a number of...

javascript - While uploading the files one file should not be replaced by another one -

I am facing problem while uploading files. Please help me in this. While I'm uploading the files one by one, it is replacing the first uploaded files. If the user leaves the second group of files, this will be a union of uploaded files. I have coded this way, just look at this: - Please go through this link: - This problem is nothing with jquery or html5. In this case also you will have to do javascript with javascript server (like nodes js) so basically .. use it with the tags you select Nothing to do, since the last verification should never be done on the client side. This problem is with the server that you are using, but unless you tell us what server you are running and which language you are using and as long as you have us Do not show some of your assisted upload codes, we are unable to help you at all. / P>

- Where Developers Learn, Share, & Build Careers

I want to get the contact's name from Google Contacts without any luck. However, I am unable to remove an email address. Does anyone show me what I am doing? $ xmlresponse = file_get_contents ('https://www.google.com/m8/feeds/contacts/default/full?oauth_token=' $ accesstoken); // Simple xml $ xml = Reading XML using new SimpleXMlelement ($ xmlresponse); $ Xml- & gt; Register XPathNamespace ('gd', 'http://schemas.google.com/g/2005'); $ NameFirst = $ xml- & gt; Xpath ('// gd: given'); // I also have / gd: name $ result = $ xml- & gt; Xpath ('// gd: email') is tried; Forex Currency ($ nameFirst $ nameF) {echo $ nameF- & gt; GetName (); } Forex Currency ($ $ $ Title) {echo $ title- & gt; Attribute () - & gt; Address "& lt; br & gt;"; }? & Gt; XML received from Google Contacts API, name node was a normal XML node " Title "but the email was a parameter in a gdata tag gd: email ...

- Where Developers Learn, Share, & Build Careers

I have a button that is loaded on AJAX from my page. When a user clicks on it, a popup appears with a text box that the user can fill and details of my website. I want to use a popup dom, which is in an iframe. That's because I can add text to the text box. The following works are done in the Firebug console. I use the iframe with: var x = document.getElementsByTagName ("iframe") [3] // '3' selects this specific iframe Pre> undefined Now there is something to do with it, but the firebug's dom window does not appear inside the iframe. It just shows: But, in the Elements tab under Chrome's developer tools, I can see everything in it. Any help you can give is appreciated. Take a look at this This is not possible.

- Where Developers Learn, Share, & Build Careers

I have two javascript, but I want to display one from 6 to 12 (server time is not) and The rest of the script How will this be done? An example would be greatly appreciated gt; = $ minimize & time () & lt; = $ most) {? & Gt; & Lt; Script ... 1 & lt ;? Php} and {? & Gt; & Lt; Script ..2 ... & lt ;? Php}? & Gt;

wmi - Creating a Win32_LocalTime _instancemodificationevent non repeating event -

I have a question that I do not seem capable of answering. I am using WMI to create some time bound events, and so far they are working well according to the expectations of events, repeats on the scheduled cycle. Now I have a 'once' event that is not repeated I can not seem to find a way to make it seem to find or answer elsewhere. The following is an example from the MSDN website that creates a duplicate event: // Win32_LocalTime And Win32_UTCTime root \ cimv2 remain in the namespace. // defines the event namespace, the filter // can be compiled in any namespace. Example of __EventFilter as $ FILT1 {name = "wake-up call"; Query = "Select * __InstanceModificationEvent from where" "TargetInstance ISA" Win32_LocalTime "and" TargetInstance.Hour = 0 "and TargetInstance.Minute = and" TargetInstance.Second = 0 "; Query language = "wql"; Event namespace = "root \\ cimv2"; }; What should I do,...

- Where Developers Learn, Share, & Build Careers

According to this code, I am using the following code, the new window will open with the source of the URL. But when printing, it is showing: Empty printing: Before loading the page load correctly, the page URL is also: empty but it changes in the given URL. var url = "http: // localhost: 8080 / recruitment / docs / Kenyeth% 20_1340800082258 / Kenyighth% 20_sreem_1340800082258.pdf"; Var printwindow = window.open (url, '_blank', 'fullscreen = yes'); // setTimeout ('2000); Printwindow.focus (); Printwindow.print (); Have you tried: printwindow .onload = function () {printwindow.focus (); Printwindow.print (); };

php - one script in all my HTML files that dynamically goes to the next/previous HTML page in the same folder -

Hello I have 2000 HTML files in a folder and their names run on each other in this way: 01_001.html 01_002.html 01_003.html 01_004.html 02_001.html 02_002.html 02_003.html ........ ..... 33_001.html 33_002.html 33_003.html .............. 33_123.html I would like to add a link / script to all 2000 HTML files which will dynamically move to the next / previous HTML page in the same folder I know how to add it in PRL , But Javas Look like this kind of link / script in crypt / jQuery I tried this script: & lt; A href = "#" onClick = "movePrv ();" & Gt; Previous & lt; / A & gt; End and lieutenant; A href = "#" onClick = "moveNext ();" & Gt; Next & lt; / A & gt; But does it work any thoughts? Any solution in PHP may look like this: Lt ;? Php $ file = basename (__ file__); $ Chap = substr ($ file, 0, 2); $ Cat = substr ($ file, 3, 3); $ PrevFile = sprintf ("% 1 $ 02d_% 2 $ 03d.php...

SEO of a multilingual site, meta tags -

How do I apply HTML document meta tags, so that a multilingual site is indexed best? For example, I have the following keywords in English, but would I like to index my site in French and Russian languages? & lt; Meta name = "keyword" content = "furniture, interior design, interiors" /> & Lt; Meta name = "description" content = "furniture, interior design, interior" /> I want to add similar keywords translated into French and Russian in Meta Tags. For example: & lt; Meta name = "keyword" content = "furniture, interior design, interior, Mabel, DARA agreement intiers, etiors RIIR /" & lt; Meta name = "description" content = "furniture, interior design, interiors, Mables, DARA correction entrees, eti rear" /> Is this the right solution? What is the best way to implement it incorrectly? You are thinking of this problem wrongly. The meta description tags are not im...

c++ - Hook 32bit Process In 64bit Windows -

I have a problem using keyboard hook on window 7 64 bit. I do this work: 1. a 32 Bit DLL 2. Load it on application and set WindowHookEx I have successfully bent over 32bit application (Y, M, Skype ...), but when I use desktop or any 64 bit application (Notepad) until the application stops my hook application until it stops. I make 64 bit DLL, do it from the top, and found the same problem with 32 bit process. So, I think the problem is in my 32 bit DLL, the 64 bit process can not be injected. But I do not know how I can process 64 bit DLL when the window is focusing on it. I have no idea how to do this, and how to do it. Or can I just hook up on 32 bit process and not hook over the 64 bit process, can you show me the way to do this? Thank you. The problem is that you can not load 32-bit DLLs in 64-bit processes, or In a 32-bit process from a 64-bit DLL: ... 64-bit DLL can not load for 32-bit process execution, and for 64-bit process execution Can not load 32-bit DLL. ...

- Where Developers Learn, Share, & Build Careers

I have a question about Ruby on Mac when I bulid the project, an error occurred as follows: /sistm/laibreri/faremvrks/rubikfremvrk/versions/lk8/usr/lib/rubi/lk8/rubijns/kstm_rekvire. rb: 31: `The gem_original_require ': load such a file - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb the plist (LoadError ): 31: require the `s' ... / app.build/Debug-iphonesimulator/iphone.build/Script-2095E433129114D900424894.sh:3 command / bin / sh failed with exit code 1 Xcode 4.3.3 is installed on your computer, which uses Mac OS X 10.7.4, and I have installed 1.9.3 ruby ​​with rvm and set the default Ruby 1.9 .3: Use $ rvm 1.9.3 to use ../.rvm/gems/ruby-1.9 .3-p194 $ ruby ​​-v ruby ​​1.9.3p194 (2012-04-20 Revision 35,410) [x86_64-darwin11.4.0] No one knows the solution to fix the problem? You order-Xcode in-line tool? I think that you can open Xcode, go to preferences and there, you can install command line utilities. ...

- Where Developers Learn, Share, & Build Careers

I am very new to C # programming and I am struggling with OOP a little bit. I have created a class with the method that analyzes a text file and creates an object based on its content. I want this function to return an object, which contains some information from the text file, only if the text file is in the correct format. I call the function to analyze the text file like this: PokerHand newhand; NewHand = new poker hand (); AnalyzePokerHand.importHand ("C: \\ text.txt"); NewHand = Analysis PokerHand.getAnalyzedHand; If text.txt is not a poker hand history file, or wrong format etc, then I do not want to fill it with newHand Information of What happens correctly if I want to pass the path to a text file and only return the object with information about the hand only if the function is successful? Take a look! If you want to indicate that no data is available, then returning the tap is best The way. The second advantage of this approach is that if yo...

Integrate Google Protocol Buffers .proto files to Visual C++ 2010 -

दृश्य स्टूडियो में कस्टम बिल्ड स्टेप को जोड़ दिया है प्रोजेक्ट फाइल जो .proto इनपुट फ़ाइलों से google protobuf .h / .cc फ़ाइलें उत्पन्न करती है लेकिन मैं सोच रहा था कि क्या प्रोटो फाइलों की सामग्री बदल गई है, तभी यह संकलन शुरू करना संभव है? क्या VisualStudio को कस्टम बिल्ड चरण से बिल्कुल बताने का कोई तरीका है? प्रोटो फाइलों को एक दृश्य स्टूडियो बिल्ड समाधान में एकीकृत करने का इष्टतम तरीका क्या है? फिलहाल, प्रत्येक निर्माण पर .proto फ़ाइल अपडेट की जाती है, जो तब भी आउटपुट के समय स्टाम्प को अपडेट करती है। सीसी फाइलें ... जो फिर से उस पर निर्भर सभी चीजों का पुनः कम्पाइल जारी करता है। क्या इसके आसपास एक बेहतर तरीका है, जबकि अभी भी उन्हें दृश्य स्टूडियो से सीधे बनाया है? शायद मदद करता है विशेष रूप से इगोर ज़वाइचिनस्की के पद को देखें: इस गंदा समस्या का समाधान वास्तव में सरल है: आउटपुट अनुभागों में आपको पूर्ण पथ निर्दिष्ट करना चाहिए। यह स्पष्ट रूप से कहीं भी नहीं कहा गया है लेकिन इस चेकर के बिना फाइल खोजने में विफल रहता है और इसलिए, यह मानता है कि वे मौजूद नहीं हैं। उदा...

oop - Python 3, PyQt 4: split large class for GUI controls -

My class MainWindow (QMainWindow) PyQt4 GUI is now incremented and I have it I also want to divide the way. The problem is that many tasks of handling the signal are very connected and affect other work in the classroom. Is there any way to split it into multiple squares / files? Perhaps all signals are divided into one class? I do not really understand how to do it technically ... I have also heard that there is some restriction of QT (or PEET) for many heritage, which I think can solve the problem (again From, not quite clear to me). Just look at how this looks (very simple, of course): calss MainWindow (QMainWindow): ... def f1 (self) : If self.a1 == '...': ... def f2 (self): if self.a2 == '...': ... def update (self): self.f3 () self. F4 () self.lineEdit.setText (self.a3) ... ... def on_radioButton_toggled (self): if self.radioButton.isChecked (): self.a1 = '...' def on_comboBox_currentIndexChanged (self): if Self.checkBox.isChecked (): self.a2 = ...

oracle10g - Bad result expected -

Image
मेरे पास इस तरह से दो टेबल हैं FLUX_ISU_EQU आईडी संख्या (38,0) EQU_CODE VARCHAR2 (10 BYTE) DATE_DERNIERE_MODIF DATE FLUX_ISU_EQU_AFF_TAB आईडी NUMBER (38,0) EQU_ID NUMBER (38,0) DATE_DEBUT दिनांक DATE_FIN DATE TYPE_EQU VARCHAR2 (10 BYTE) CODE_REGION VARCHAR2 (10 BYTE) मेरे पास इस तरह की तालिकाएँ हैं: FLUX_ISU_EQU FLUX_ISU_EQU_AFF_TAB मेरे पास इस तरह की एक प्रक्रिया है: प्रक्रिया DONNEES_IS_PRESENT (संख्या में समान_आईड, ब्याचारे में आईचेक डनॉनेज) एनबीईक्वेंसी संख्या; BEGIN nbEquipement: = 0; Flux_isu_equ_aff_tab fieat से nbEquipement में गिनती (*) का चयन करें, flux_isu_equ fie जहां fieat.EQU_ID = fie.id और fie.id = equ_id; यदि nbEquipement = 0 तब होता हैकॉक डोनन: = गलत; Pk_Compas_Util.LOG_ERROR ('Pk_Compas_Flux_Isu.IMPORT_EQUIPEMENT_EAI', 'IMPORT_EQUIPEMENT_EAI', इक्विएड, नल, नाउल, 'एकिने पत्राचार डाल लो' 'आईडी' '' equ_id || '' 'डैनस ला टेबल FLUX_ISU_EQU_AFF_TAB', NULL); अगर अंत; समाप्त; इ...

php - how receiving double-digit instead single-digit using $.each function -

I have solved the problem getting data from mysql, they will appear in the form (23,34,65,67 ..atc), but using a $ .eec () function showed a new problem, I get only one digit number 2,3,3,4, instead of 23,34 ... etc, I get How to slice data on two digit figures using the $ .each () function $ ("# add"). Click (function () {$ .ajax ({type: "POST", Url: "ajax.php", data: "button =" + tab_of_button, success: work () {$ ('div.success'). FadeIn (); $ .get ("sendback.php", function (data) {$ .each (data, function (index, value) {warning (value);})}}};}}); return back; } sendback.php & lt ;? Php $ ask = mysql_query ("Select numbers from buttons"); If (ask $!) {Die ('ask incorrect'. Msql_ar ());} other {while ($ row = mysql_fetch_assoc ($ ask)) {$ tab [] = $ line ['number']; foreign currency $ Tab $ button) {$ button;}} Mysql_free_result ($ ask);}? & Gt; html & lt; html & ...

ios - Cocos2d bounding box remains zero -

I am creating a toggle switch I have a CCScene that contains a CCLayer with Talkolonged I toggle nodes in sprites and labels. Is shown properly with Touch handling is not working because the box in the toggle node remains zero. I capture the touch in CCLayer (which works with ccTouchBegan: being logged in) and I have this code there: - (BOOL) ccTouchBegan: (UITT *) Touch Dentor: (UIEvent *) Event {CGPoint Touch Position} [[Self Convert Touchs Nodespace: Touch]; NSLog (@ "Bounding Box:% F,% F,% F,% F", Toggle Node. Barring Box.Orgine.x, Toggle Node. Barring BoxOrigin., Toggle Node .baring BoxOrgin + + Toggle Node .barring box. Width, toggleNode.boundingBox.origin.y + toggleNode.boundingBox.size.height); NSLog (@ "Touch:% F,% F", Touch Location.x, Tutorial). If (CGRectContainsPoint (toggleNode.boundingBox, touchpad)) {[toggleNode toggle]; } no return; } Results in one touch at ToggleNode: Bounding box: 512.000000, 384.000000, 512.000000, 384.000000 touch:...

c# - SignalR. HubConnection The client method is not invoked from server -

Can someone help me understand What is wrong with the following code, the client method SignalR Is not implemented by the server method When the broadcast button is clicked, then I am able to open the client method. And whenever I run the invoke code from a console application, then the event is removed. The server class lives in a custom event handler in a separate assembly. The code of the chat hub is as follows: Namespace MySample.Handler {[Hub ("chat")] Public class chat: Hub {Send public zero (string message ) {Client. Message (message); // I also saw this code as well: // IHubContext reference = GlobalHost.ConnectionManager.GetHubContext & lt; Chat & gt; (); // context.Clients.addMessage ("Hello World"); }}} The source code for applying the chat hub is as follows: Namespace MySample.Handler {Public Stable Class SelfInvoke {Public Stable Zero OnEvent ( ) {Var Hub Connection = New Hub Connection ("http: // localhost: 48994"...

c# - How do I send midi Control Change messages -

I am trying to send a control change message to a MIDI sequencer. But I really do not understand how it works. For example, what should I do to use the Legate pedal (N ° 68)? Or if I want to change the sound release time using the controller n ° 72? I have tried to do this: MIDImed message message = new mid-message message (); UIT Release Time Message = (UIT) MIDIELEEEEX & lt; & Lt; 16 | (UIT) 72 & lt; & Lt; 8 | 0xB0; Msg.Msg = (int) release time message; Msg. systemtime = sequencer service.Now; Sequencer service Postmedia message (midiOutDevice, msg); But this does not work, however, the same thing works when attempting to enable the pedal to maintain it: Uint sustainPedalOn = (uint) 127 & lt; & Lt; 16 | (UIT) 64 & lt; & Lt; 8 | 0xB0; So I'm thinking that there is a specific way of sending and using controllers such as sound release time? Should I send a note message and then send my CC message? Adverse? I have tried both ... maybe...

simple html dom - simple_html_dom.php parser not working -

I downloaded the simple_html_dom.php file and uploaded it to my web server and I immediately got it into a simple script Tested with, but it will not work, or at least I think it is not because it does not output anything. Here's the script: & lt ;? Php required ('simple_html_dom.php'); // Retrieve the DOM from the given URL $ html = file_get_html ('http://davidwalsh.name/'); // Find all "A" tags and print their HREF foreign currency ($ HTML-> Search ('A') as $ E) {echo $ e-> Innertext '& lt; Br> & # 39; & # 39; }? & Gt; I got the script from this site and it was also presented on other sites, so I do not know why it will not do anything. My guess is that the script is not able to recover any data from other websites, some problems like I came here. If it was so, could there be any way to avoid the problem? / P> Before I was added to the question of Bio Carlos, he said "this is not really a ...

- Where Developers Learn, Share, & Build Careers

I want to show my site inside Salesforce iFrame, and when someone performs an activity within the iFrame on my site Do I want to update the Salesforce page as well? Can I do this, please suggest? A more recent approach, now GA, is this - it is equipped with additional protection and features like iframe-based , Which includes passing references in passphrine fields such as iframe. It enables the IFrame web app to use the credentials from the canvas framework, using Javascript or backend web app (Python, Java etc) to call the salesforce APIs based on that authentication. You can also use the new event feature inside the canvas to send a message to the framing Salesforce page. On authentication options: Canvas sign-in request authentication is recommended and easy, but keep in mind that it does not give you a fresh token OAuth2 - so if you continue to perform continuous background processing based on user authentication , You should use Canvas OAuth2 authentication instead...

- Where Developers Learn, Share, & Build Careers

Image
जब ListViews या Windows 8 लोडिंग व्हील पर डेटा स्रोत का उपयोग करते हैं प्रकट होता है। यह ठीक है, लेकिन मैं अभी भी अपनी पसंद के एक कंटेनर में मैन्युअल रूप से इस लोडिंग पहिया को शुरू करना और रोकना चाहता हूं। मैं यह भी जानना चाहूंगा कि लोडिंग डॉट्स का उपयोग कैसे करें मैं इसे कैसे प्राप्त कर सकता हूं? जेवर के सुझाव के लिए धन्यवाद, मैं प्रगति नियंत्रण जोड़ने के लिए एक मार्गदर्शक ढूंढने में कामयाब रहा हूं। मैं जो चाहता था वास्तव में एक प्रगति कर रहा था, अधिक spesifically एक अनिश्चित प्रगति की अंगूठी HTML / JS HTML में यह कैसे किया जाता है: & lt; label class = "progressRingText" & gt; & Lt; प्रगति वर्ग = "जीत-अंगूठी के साथ पाठ" & gt; & lt; / प्रगति & gt; प्रसंस्करण & lt; / लेबल & gt; सीएसएस प्रगति। साथ पाठ {रंग: वारिस; / * पृष्ठ के रूप में एक ही पाठ रंग का उपयोग करता है * / ऊर्ध्वाधर-संरेखण: टेक्स्ट-नीचे; / * नियंत्रण के निचले हिस्से को इसके लेबल के नीचे संरेखित करता है * /} / * प्रगति की अंगूठी के लिए एक लेबल ...

- Where Developers Learn, Share, & Build Careers

First, a small background: For the time being Further forgiveness is the long-winded nature of this introduction; However, it can help to provide an alternative solution which is not specific to the nature of the question. I have an ASP.NET MVC application that uses Embedded WinForm UserControls. These controls provide support for "narrow" on tablet PCs via the Microsoft .inux library. They are an unfortunate requirement due to an IE8 corporate standard; Otherwise, the HTML5 canvas solution will be there. However, an image URL InkPicture to & lt; PARAM & gt; Has been passed through . and object VIEWASEXT = "true" classid = "MyInkControl.dll # MyInkControl.MyInkControl" id = "myImage" name = "myImage" runat = "server" & gt; & Lt; PARAM name = "ImageUrl" value = "http: //some-website/Content/images/myImage.png" /> & Lt; / Object & gt; The associated property in t...

java - Enumerate all files of certain type from resources -

I have a JAR file that contains the resource section of my Jeanelpi file I There are a lot of images in subfolders The user should be able to replace this jar file later / enable / add / remove images. There is a way to calculate all the files from the resources, with the help of the .if files as the file extension or even better "images / * .gif" a pattern To specify (so I just get the picture which "pictures" as their original directory). The second option would be to write a text file that shows the file structure. In this way you can run through the line through the image through the image, but it will mean that you have to update two places and it is not very user-friendly. Yes, you just count the files inside move to grab the jar directory: public string [] getFiles () throws IOException {of ArrayList & lt; String & gt; List = New Arrestist & lt; String & gt; (); & Lt; JarEntry & gt; Ents = new Array list & lieuten...

ruby on rails 3 - Loop and generate table cells -

I have a table that looks like the following: & lt; Table class = "rota" & gt; & Lt; Thead & gt; & Lt; Th & gt; Date & lt; / Th & gt; & Lt;% @ Hospitals What to do Hospice | & Gt%; & Lt; Th & gt; & Lt;% = Hosp Name% & gt; & Lt; / Th & gt; & Lt;% end% & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt;% - If @ rota_days.blank? & Gt%; & Lt; TR & gt; & Lt; Td colspan = "& lt;% = @ Hospitals count% & gt;" & Gt; Not every day & lt; / Td> & Lt; / TR & gt; & Lt;% end -% & gt; & Lt;% @ dates.each do | Date | & Gt%; & Lt; TR & gt; & Lt; Td> & Lt;% = date.inspect% & gt; & Lt; / Td> & Lt;% end% & gt; & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; Which of the following output is: I am trying to make empty lines blank lines, I can not know where I...

How short int based masks work in C++ library Bullet? -

सी ++ (उदाहरण के लिए) में लघु पूर्णांक आधारित मास्क कैसे काम करते हैं? I टकरावफ़िल्टर समूह {डिफ़ॉल्टफ़िल्टर = 1, स्टेटिकफ़िल्टर = 2, कीनेमेटिकफ़िल्टर = 4, डेब्रीफिल्टर = 8, सेंसरट्रिगर = 16, वर्णफ़िल्टर = 32, ऑलफ़िलर = -1} और देखें कि सभी मान 2 की डिग्री है और I: संक्षिप्त पूर्णांक पर हस्ताक्षर किए गए हैं जो 2 बाइट्स को स्टोर करने के लिए लेता है और 32,768 से +32,767 तक है। लेकिन कैसे अपने स्वयं के समूह बनाएं: मुखौटा चौराहों की गणना कैसे करें उदाहरण के लिए, CollisionFilterGroups के अतिरिक्त कैसे बनायें: MyCollisionFilterGroups {Cubes =?, Boxes =?, क्षेत्रों =? जहां हम चाहते हैं कि "विमानों", "बक्से" और "क्षेत्रों" के साथ टकराने के लिए "विमान" नहीं ("देखें") हम "बक्से" और "गोलाकार" के साथ टकराने के लिए "बक्से" चाहते हैं हम चाहते हैं कि "गोलाकार" को "गोलाकार" से टकराने के लिए नहीं, फिर भी "बक्से" के साथ टकरा दें आपका सवाल अस्पष्ट है, लेकिन मुझे...

javascript - Changing an image source based on an H1 element in the source code or 'location.path'? -

I decided to try a different approach to this problem instead of depending on the string I thought this specific issue To use the function location.path , the album will be more efficient to determine the source of the cover. Even I still have a lot of things: HTML snippet for the image: & lt; Img src = "http://static.last.fm/flatness/catalogue/noimage/noalbum_g3.png" width = "220" height = "220" square = "album-cover" /> I have a piece of javascript: var albumCover = document.getElementsByClassName (album-cover) // Album cover var currentLink = Location. Pathname var dictionary = {// location.pathname: image source for albumCover '/ music / King + Crimson / Red': 'http://i1325.photobucket.com/albums/u622/last_fm_projeKct/Last%20FM%20covers/ RED.JPG ',' / Music / King + Crimson / Discipline ':' http://i1325.photobucket.com/albums/u622/last_fm_projeKct/Last%20FM%20covers/Discipline.jpg '} Now i...

In Java, how can I read data from multiple files using posix wildcard syntax? -

Currently, I have a script which is the system for system processing. I am passing this data from many files to cat cat myfiles * .txt | Java MyDataProcessor Based on the idea that cat creates something incompetence versus Java opens files directly, I want to optimize it where the Java file opens There is a java library which makes it quite easy (i.e., it handles pozix wildcards in the translation file). Z7 has added a path matcher class which can be used to validate on a path name basis. globe (which will be similar to match made by your shell) Pyramenture matcher = file system .get default (). GetPathMatcher ("globe: myfiles * .txt"); Matcher.matches (filename); An example of running a file tree and searching for files based on globe can be found in the Oracle Java tutorial.

objective c - NSFastEnumeration crashing on C array with ARC -

I am am starting C array of objects and set the first element: id __strong * _objs = (ID __strong *) Colok (16 Akarf (* _ objs)); _objs [0] = @ 1; _count ++; Then I am using the following implementation NSFastEnumeration: - (NSUInteger) countByEnumeratingWithState: (NSFastEnumerationState *) state objects: (id __unsafe_unretained * ) StackBuff count: (NSUntiger) lane {NSUntiger size = _count; NSInteger calculation; State-> mutationPtr = (unsigned long *) size; Calculation = MIN (lane, size - state-> state); If (count & gt; 0) {imps selector imp = [self method: @ selector (Objektatindaks :)); Int p = state- & gt; state; Int i; For (i = 0; i & lt; count; i ++, p ++) {Stakbuf [i] = (* IMP) (self, @ selector (Objektatindaks :), P); } State-> State + = calculation; } And {count = 0; } State-> Item Ptr = stackbuf; Calculation of return; } Unfortunately, when I run it, it crashes with EXC_BAD_ACCESS: for (array in id object) {/ / EXC_BAD_ACCESS NSLog...

Propagating c++ exception to cython - python exception -

मुझे Cython 0.17.1 के साथ समस्या है मेरा फ़ंक्शन एक std :: Runtime_error अगर कोई फ़ाइल मौजूद नहीं है, तो मैं इस अपवाद को अपने तरीके से मेरे सिथॉन कोड में प्रसारित करना चाहता हूं। शून्य लोडफाइल (कॉन्स्ट स्ट्रिंग और फाइलनाम) {/ / कुछ कोड, यदि फ़ाइल नाम मौजूद नहीं है तो std :: runtime_error (std :: string ("फ़ाइल मौजूद नहीं है") मौजूद है); } और फ़ंक्शन के सही लपेटन के बाद Cython से: प्रयास करें: रनफ़ाइल (myfilename) रनटाइम को छोड़कर: प्रिंट "फ़ाइल लोड नहीं किया जा सकता" लेकिन इस अपवाद को हमेशा नजरअंदाज किया जाता है, मैं पायथन से c ++ अपवाद कैसे प्राप्त कर सकता हूं? क्या आप extern के साथ अपवाद हैंडलिंग घोषित कर रहे हैं? आपको सी + + अपवाद हैंडलिंग के बारे में पढ़ना चाहिए: असल में, आपको निम्न की तरह कुछ करना होगा: cdef extern से "some_file.h": cdef int foo () + को छोड़कर

- Where Developers Learn, Share, & Build Careers

Answers to the same question, but when I try to resolve, I get an error message like this This XML file does not contain any style associated with it. The document tree is shown below. HTTP://api.facebook.com/1.0/facebook.xsd">104 The valid signaturemethodfql.queryquerytel message is required from the stream stream WHERE source_id = 37122264757 and is_hidden = 0 is it because FQL is deprecated? I am using this approach because otherwise, the HTML returns an empty page using the parser. To pull one's public posts, you need a access_token : public And non-people An app or user access token for the Native restricted pages A user access_token for the restricted user who is able to view the current user (no special permission is required) Once you have one, this is a simple API call. Also note that the FQL no is excluded.

objective c - iPhone Table View: Making Sections, UILocalizedIndexedCollation selector -

I am having trouble creating a UITableView section in this sample, along with I UILocalizedIndexedCollation The code project has seen the documentation for: What I have below is basically a direct copy / paste sample project, however, sample project custom object (TimezonePaper. H) and then the object is the instance variable of the object (timezonadra Fürlokelmem) in the right section. However, I am not using custom items I am just using a bunch of regular NSStrings so my question is whether the method on NSString should pass from @selector () and put the string in the correct section array? Currently, I'm calling Copy Method of NSString as a temporary hack, get things to work (which does this), but I'm not sure that this is correct. A small explanation would be greatly appreciated! - (zero) configuration section {// Get the current match and keep its reference. Self-Coalition = [UILOkExited Acid Cession Concession]; NSInteger index, sectionTitlesCount = [[codif...

How Github Enterprise protects the code they deliver on virtual machines? -

I would like to know what kind of security they use with Github Enterprise (http://enterprise.github.com) Are) solutions As I do not have a company that could possibly buy it, I do not feel liable to lie, just try to get a copy and see it yourself. But I'm really interested to know what kind of strategies they use, they used to protect the code that was saved, because it could potentially cause any other rail Can be used by the application. This question is "How to protect the Ruby Code" I have some principles that can help: They do tax Protecting the Ruby Code using Ruby Encoder They can use the script to create a special partition to install all code and necessary applications and read any special type of code Have built a special loader without writing / any on the system Permission to other user They are currently using a modified Ruby encoder then Urce:

css3 - Resize image to current text height using CSS -

Context : I am trying to include inline images of no equations (PNG files) in a webpage. I know that it has already done it, but I am using it as a learning project. In this way, I am not interested in libraries which display mathematics, but this is the general answer to this question. I would like the images to naturally measure their height current text height with a CSS style I'm a newbie in web design, but it seems that I should be able to include a style that looks like this: height: 80% * parent.text_height Is it with pure CSS? possible? EMS is an relative units of measurement on the size of the text of the original element Depends. An M is almost the distance between the lines of text, so you can try: height: .8em; But keep in mind that inline elements (like a plain old img tag) do not accept height specifications.

- Where Developers Learn, Share, & Build Careers

I have a C # project, and I have created a class named Employee. This is my new list inside the class: list & lt; Employee & gt; Employee = new list & amp; Staff; & Gt; (); How can I create a query that will add items to the list on a particular event? Here is the full square: using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Class employee {public string worker id; Public string employeeLlastName; Public string employeeFirstName; Public double employee payett; Public int employee; Public staff staff employee; Public Employee (String EID, String Elevation, String Eiffel-Names, String Eiffel, Double Eapet, Int EHours, Bull EFT) {this.employeeID = eID; This.employeeListName = eLastName; This.employeeFirstName = eFirstName; This.employeeID = ePhone; This.employeePayrate = ePayrate; this. The employee = eHours; This.employeeFT = EFT; } Fixed Zero Main () {List & lt; Employee & gt; Employee = new list & amp; ...

iphone - MPMoviePlayerViewController Generating lots of errors -

I have problems working with MPMoviePlayerViewController. I have a new project, that is, after view deedload, I try to play the movie player in the UIU controller below. I get the movie to play, I get many and many error messages. Can anyone tell me what I am doing to get these errors? - (zero) viewDidoadload [[Super Viewedload]; [Self drama]; } - (zero) play {ns URL * movie URL = [ns url youth string: @ "http://www.ud-ltd.com/ipmt/film16.mp4"]; Self.mvc = [[MP3 MPV Player Wii Controller Allok] Init with Content URL: Film URL]; [Self current movieplayer visual controller: self MVC]; [Self.view addSubview: self.mvc.view]; [Self. Mvc.movieplayer]]; } error message Jan 8 21:19:28 rezas-macbook.home movie player [30320] : CGContextSaveGState: Invalid Reference 0x0 Jan 8 21:19:28 rezas-macbook.home movieplayer [30320] & lt; Error>: CGContextClipToRect: Invalid reference 0x0 Jan 8 21:19:28 rezas-macbook.home movieplayer [30320] & lt; Error>: CGContextTran...

- Where Developers Learn, Share, & Build Careers

How to create a blank array by the name of the variable and it is used only by referencing it through the variable name Do you? example array name empty $ empty = @ () $ empty- [array] is true versus: $ Arrayname} = @ () $ empty- [array] false and Code> Maybe you want to: $ arrayname = 'Empty' $ empty- [array] false inox-expression '' $$ arrayname = @ () "$ empty- [array] is true

android - Save state on fragments produces StackOverflow error due to parcelable object -

I am using 2 different pieces under an activity. One of the pieces is in the list and the second list has a detailed view of each element. When the activity creates pieces, the 2 object is passed as a parameter on the new instance. It is a complex object inside many objects (BigIntega, Arlist, Strings). To be used with pieces when the information is passed through the pieces, there is no problem in parsing the data, in fact I think that not to pass the piece between the pieces as the parameter, the state In order to save, this object must be parcelable. This object is inside a list of objects in which the reference to the main one is referred. Looking at Object 2 as Object 1 and O2, this would be a "graphical" explanation: O1: String BigInteger Li> BigInteger O1 & lt; -------- This is a reference to the O1 object When I leave the activity (by clicking on the phone on the phone) and it tries to save the state, I get a StarOverflow erro...

objective c - object does not respond to selector -

This can be very basic, but I've done a lot of Googling and can not understand what's wrong. . I am trying to transfer an image from the sandboxed data folder of an iOS app to "Camera Roll" If I UIImageWriteToSavedPhotosAlbum (img, zero, zero, zero) , It does not make any errors, but also does not save a copy of the image in the photo. P> To understand why this is unsuccessful, I tried to apply a selector (below), but now it throws an NSInvalidArgumentException because "MyTest". ; The selector does not respond to the image: didFinishSavingWithError: contextInfo: "IMEMage for Microsoft Image: (Image: UIImage *) FinishSavingWithError: (NSError *) Error ReferencesInfo: (Zero *) contextInfo {/ p> // Do log errors or stuff ...} + (zero) driveCurrent roll: (NSString *) path {UIImage * img = [[UIImage imageNamed: path] retain]; UIImageWriteToSavedPhotosAlbum (img, self, @selector (Image: Error saving didFinish: referenceInfo :), zero); } @end...

android - Is restarting an activity the only solution here? -

मेरे पास दो टुकड़ा वर्ग और एक गतिविधि में dragEventListner वर्ग है । प्रत्येक खंड वर्ग में एक imageScroller होता है जो कि अपने स्वयं के imageAdapter और listArray द्वारा नियंत्रित होता है। फ्रेग्मेंट 1 वर्ग में छवियों का एक सेट होता है जिसे Fragment2 में खींचा और छोड़ा जाता है। छवियां एसडी-कार्ड से पढ़ी जाती हैं। जब कोई इमेज निकलती है, तो मैं listArray का फ्रेगमेंट 2 अपडेट करता हूं और & lt; adapter & gt; .notifyDataSetChanged () कॉल करें। छवि को सूची में जोड़ा जाता है (जैसा कि मैं फ़ाइल एक्सप्लोरर में देख रहा हूं) परन्तु ऐप को पुनरारंभ करने तक परिवर्तनों की गतिविधि में दिखाई नहीं देता (यानी मैं गिराई गई छवि नहीं देख सकता) हालांकि, मैंने समाप्त () द्वारा ऐप को पुन: प्रारंभ करने की कोशिश की और फिर पहले ही सहेजे गए इरादे को बुलाया नीचे दिए गए कोड: आशय का इरादा = getIntent (); समाप्त(); startActivity (आशय); पॉपअप दुर्घटना संदेश दुर्भाग्य से, ऐप ने काम करना बंद कर दिया है और तब फिर से शुरू होने के कारण यह सबसे अच्छा काम नहीं करता है। क्या यह केवल ऐप ...