Posts

UIWebview and IPhone content does not postback (ASP.NET Browser Capability issues) -

मेरे पास एक सरल पृष्ठ है, इसकी संरचना निम्नानुसार है (छद्म कोड): & Lt; एएसपीएक्स पृष्ठ & gt; & Lt; एस्कक्स नियंत्रण & gt; & Lt; asp: dropdownlist id = "dd1" ऑटोपॉस्टबैक = सच / & gt; & Lt; asp: dropdownlist id = "dd2" / & gt; & Lt; / ascx नियंत्रण & gt; & Lt; / aspx पृष्ठ & gt; किसी भी डेस्कटॉप ब्राउज़र में, वापस dd1 पोस्ट और "चयनित इंडेक्स चेंगर्ड" सर्वर इवेंट को निकाल दिया गया है। हालांकि, आईफोन सफारी या आईफोन वेबव्यू में कोई पोस्टबैक नहीं किया गया है। मुझे यह पता है क्योंकि कोई भी नेटवर्क गतिविधि संकेतक नहीं दिखाया गया है और मैंने उस साइट पर डिबगर को लगा दिया है जो सभी सर्वरों की घटनाओं को पकड़ता है और इसे कभी भी नहीं मारा जाता है कभी-कभी, हर 2 घंटों के बारे में एक बार, पोस्टबैक आईफोन पर काम करता है, लेकिन बहुत कम और अंतर से। डीडी 1 एक डेट ड्रापडाउन है जो एक स्लॉट ड्रॉप डाउन लोड करता है जो कि चयनित आइटम पर निर्भर होता है तिथि ड्रॉपडाउन यह प्रपत्र कई जगहों में फिर से उपयोग किया जाता है और मैं मूल...

php - If server doesn't have mod rewrite -

I have a question about mod_rewrite. I know in htaccess that i & lt; IfModule & gt; , but what is in PHP? In HTML I am writing my links like projects / 24 which is actually action = projects and id = 24 . If a person has installed this app, then there is no mod_rewrite in it, so how can I change the link to get Vars in PHP? use edit: It is not what obstacles vote for the correct answer, but he can not apparently do an RTM. For example, some code is given: Use this to decide which type of link you want to write.

Uploadify Rails 3.0 - Nothing happens after file is chosen -

I am trying to get uploadify to work with railways 3 but with very little success, Everything has read a lot to read, and tried a lot, but nothing seems to work here with my javascript / jquery ..... form field . & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () click on {$ ('# video_upload') (function (event) {event.preventDefault ();}); $ ('# video_upload') uploadify ({'Uploaders ':: / Javascripts/uploadify/uploadify.swf', 'script': '/ video / create', 'sizeLimit': '2000.bytes',' cancelImg ':' /images/cancel.png ',' Multi ': false' scriptData ': {' Format ':' json ',' authenticity_token ': encodeurIComponent (' & gt;; '}}}); $ (' # video_submit ') Click (function (event) {event.preventDefault (); $ ('# video_upload') Upload Upload ();});}); & Lt; / Script & gt; & Lt; Input i...

Algorithm for matching strings between two large files -

itemprop = "text"> I have a question about a search algorithm. I currently have 2 files in plain text, each of them has at least 10 million lines for now, every line is a string, and I want to find every string in the first file which also appears in the second file is. Is this a good way to do it efficiently? Any suggestion by the algorithm or the convenience of a particular language is appreciated. "post-text" itemprop = "text"> If you do not know anything about the structure of the files (such as they are 're-sorted), many different There are approaches that you can take to solve the problem, depending on your obstacles used to memory and location, what you want to be. If you have a free RAM available, you will have to make a hash table in memory to capture an option string. You can then load all the strings from the first file into the hash table. Then, load each string from the second file at a time, for each string, check whether th...

Reading from text files C++ -

I have a text file that has three columns of numbers; Each column for a group of digits is x, y, z . All the codes are between 0 and 1 . I have created the following structure: typedef struct {double Xcd, ycd, zcd; } Point; I want to create structures of type-N array type point then I want to scan the text file line by line and n th particle, I want to place the n th line in the related code in three numbers> Xcd , ycd and zcd statuses Tell me if there are some effective ways to go about this. ifstream Just like it, before it has been shown five million billion kajillion times , vector and other other accouterments. ifstream infile ("myfile.txt"); // Check that the file has been opened successfully (! Infel) {cerr & lt; & Lt; "Failure Can not Open File" & lt; & Lt; Endl; Cin.get (); Return EXIT_FAILURE; } // container in which all the points vector and lieutenant; Point & gt; Points; // To keep three call...

sql - CASE statement in update -

I have a scenario here where I am running 2 different update queries. By using the case, How can I add to the question? Update Table 1 SET ACTV_IND = 0 where is the name (NAME is selected by NAME, where SID = 'child' is going to be MAX MAX CAST (INT as ACTV_IND) = 0 ) And SID = 'original' update table 1 SET ACTV_IND = 1 where is the name (select NAME from tab3 where SID = 'child' by NAME MAX (CAST (ACTV_IND) INT) = 1) AND SID = 'parent' Question 1: I suppose That this solution can be done ACTV_IND = MAX (CAST (ACTV_IND INT)) Question 2: This is to be included for updates It is possible Update T1 SET T1.C1 =: Val1 to TABLE1 T1 in table T2 ON T1.KEY1 = T2.KEY2 I will try to do something like this, assuming that MAX ( Select DATA_SOURCE (NAME, VAL) AS (NAME, MAX (CAST () as ACTV_IND INT) with CAST (ACTV_IND INT) 0 or 1 ) from TABLE to VAL where SID = Group 'NAME' by group UPD ATE Table 1 SET ACTV_IND = DSLL From TABLE ...

Why can't I import static java.lang.System.out.println? -

It seems weird that I can not import static java.lang.System.out.println, when I import static Java I can .lang.Math.abs. Is there any reason behind this or am I really doing something stupid that I do not see at this time? (Using eclips.) math is a class on which Ab is a static method, system.out is a static field instead of a class, so its println method is not actually a static method, rather There is an example method on a static field.