Posts

Showing posts from September, 2014

jQuery - Post array of multiple checkbox values and title to php -

मैं इस पेज को देखें: & lt; input type = "checkbox" class = "बॉक्स" मान = "नीला" शीर्षक = "ए" /> & Lt; इनपुट प्रकार = "चेकबॉक्स" वर्ग = "बॉक्स" मान = "लाल" शीर्षक = "बी" / & gt; & Lt; इनपुट प्रकार = "चेकबॉक्स" वर्ग = "बॉक्स" मान = "सफेद" शीर्षक = "सी" / & gt; $ ('# शामिल') क्लिक करें (फ़ंक्शन () {var val = $ ('। बॉक्स: चेक')। नक्शा (फ़ंक्शन (i, n) {वापसी $ (n) .val ();})। (); // इसे एक सरणी var शीर्षक = $ ('। बॉक्स: चेक') में कनवर्ट करता है। नक्शा (फ़ंक्शन (i, n) {वापसी $ (n) .attr ('title');}) प्राप्त करें (); // इसे एक सरणी $। पोस्ट (यूआरएल, {'वैल []': वेल, 'शीर्षक []': शीर्षक}, फ़ंक्शन (प्रतिक्रिया) {अलर्ट ('स्कूसे');}) में कनवर्ट करता है; विवरण झूठा है; }) --------------------------------------------- & Lt;? Php foreach ($ _GET ['val'] $ numA के रूप में) {foreach ($ _G...

linq to xml - The ':' character, hexadecimal value 0x3A, cannot be included in a Attribute name -

संभव डुप्लिकेट: मुझे यह त्रुटि मिलती है जब मैं लिनक्यू एक्सएमएल का उपयोग करता हूं। यह स्पष्ट है कि एक्सएमएल पढ़ने और लिनक्स नहीं होने की वजह से यह त्रुटि है। एक्सएमएल का इस्तेमाल किया: & lt; वर्कशीट एसएस: नाम = "स्थान" एसएस: संरक्षित = "1" & gt; मुझे एट्रिब्यूट मान "ss: नाम" पढ़ने में समस्या का सामना करना पड़ रहा है। आपको LINQ से XML में नामस्थान के प्रदान किए गए समर्थन का उपयोग करना चाहिए। वर्ग की तलाश करें।

php - Validation of tab delimited csv file -

I have a page where I ask users to upload a CSV file separately from the tab. But how do I ensure that a different CSV file has been uploaded from the tab, I need PHP verification. Can anyone help? thank you in advanced. In addition to common security measures in uploading files to PHP, try parsing it in the form of CSV In; If this is successful, then it is valid. The one thing you want to look for is a file that is too large and your app can eat a lot of memory.

Concatenate some Array Elements among many in PHP -

I have an array "$ abc" which has 9 elements, such as: - Array ([A] => Jack [B] => went away [C] => above [D] => [E] => Hill [F] = & gt; But [g] => now [i] => came [i] => back) Now start with the "e" index from "b" index There are only 4 elements that need to be included. But I do not know what to do. I use the PHP "implode ()" function in those cases where all the array elements are added. Any help is greatly appreciated. You must first remove the desired value and then use implode . You can use it: Echo Flat ("", ARR_slice ($ ABC, 1, 4)); This will be generated on the hill climax . If you need to work with a literal key, then you should be a little more creative. In your case, it would probably be best to loop through the array, but you can do some foreign too: Echo Flat ("", array_intersect_key ($ abc, array_flip (category ( 'B', 'E'))));

php - need updation for mysql query for choosing date range for reservation of a hotel room or any thing -

There was a situation in my project, which is as follows. While examining the available rooms $ sel_from_bookings = "Selection Room" 'From Any Booking' ((''. $ _ POST ['req_tdate'] '' Check_indet And between check_outdate ') or (' ". $ _ POST ['req_fdate']. '' '' $ Sel_from_reserv =" SELECT room_no reservation @ WHERE ('' ('.') During check_indicate and check_out date. '$ _ POST [' REq_tdate '].' 'Between' check_indicate and check_outdate ') or ('. '$ _ POST [' Req_fdate ']. "' Between check_indicate and check_outdate"); $ sel_rooms = "SELECT room_no room" There is no room ("$ Sel_from_bookings.") And room_no IN (". $ Sel_from_reserv.") "; The first query retrieves the list of room numbers from the booking table, which satisfies the derivatives Similarly, the table reservation is si...

java - Builder pattern vs. config object -

Builder patterns are popular for creating irreversible objects, but there are some programming overheads to make a builder so I wonder Why not just use a config object? The use of a builder will appear as: product page = product. Name ("vodka"). Alcohol (0.38) .size (0.7) .price (17.99) .build (); It is clear that it is very readable and concise, but you have to implement the builder: public class product {the name of the public final string; Public last float alcohol; Public last float size; Public last float price; Personal Product (Builder Builder) {this.name = builder.name; this. Alcohol = Builder alcohol; This.size = builder.size; this. Value = builder value; } Public Static Class Builder {Name of Private String; Private Float Alcohol; Private float size; Private float price; // Mandatory Public Static Builder Name (String Name) {Builder B = New Builder (); B.name = name; Return b; } Public Builder Alcohol (Float Alcohol) {this.alcohol = alcohol; Return.this;...

delphi - How can I deserialize properties which don't have an in built converter? -

This is a spin with my last question Since Delphi has not changed the modelartsult properties, Therefore if special cass and then if other special cases and then behave normally / Pre> then I How do I change values ​​such as 1 in mrOk '? Note: I am using > PropInfo: = GetPropInfo (e.g., property name); Setpopwalls (Examples, Propinfo, Property Value); / P> "> There is no converter for the model result, Delphi represents the integer in DFM. The converter is registered const modalResults: TIdentMapEntry = [[value: mrNone; name: 'mrNone'] array [0 ... 10], (value: mrOk; name: 'mrok '(MR: MRRTI; Name:' MRRTRI '), (Price: MERCANEL; Name:' MRCANCELL '), (Value: MRABERT; Name:' MRABERT '), (value: MRRTI; RICAR; Name: (value: MRIORO), (value: MRIES; name: 'MRIES'), (value: mrno; name: 'mRNO'), (value: MRAL; name: 'MRAL'), (value: mRNOOOLL ; Name: 'MrNoToAll', (...

group by - How can I select several rows with the Max column value which is grouped by another column? -

I want to get the movie, character_name and visits of 4 rows (*) with the maximum "Visits" value group My Table (D) is like this: Movie CharacterName Visit 1 Owen Lars 1 Obi-Van Kani 2 1 Luke Skywalker 3 * 2 Princess Leah 2 2 Luke Skywalker 3 * 2 R2- D2 3 * 3 Jabba The Hut 1 3 Han Solo 2 3 Luke Skywalker 4 * The best coding I can think of select * FROM D group D. Maximum (visits) by Mavi Hewing But I can not find the correct lines> Can anyone tell me how should I modify it? Thanks a lot! SELECT D. * Join D Inner (SELECT MOVIE, from MAX (movies) movies F. On D.O.O.E.E = F.Movie and D. Visits = F. Visits

spuserfield - Updating User field in SharePoint -

I am using the batch update of the SharePoint list to update my list item. I have an area of ​​SPUser named 'Username' If I try to update the value of that particular area using batch, then I am getting an unexpected error. I have also used the user's ID along with both the user name. It was futile How can I update a SPUser field in the batch update? Have you tried setting the value to id; # User name? ID is SPUser.id and the user name is actually the display name or account name. East: 42; # Raghoo Keep in mind, the ID of a specific user changes depending on the site collection that is working in it (site collection A can have a different ID in the same user site collection). You may have to use to make sure that the user is present on the web that you are trying to update.

php - making a PHPUnit assertion only after a system process has finished running -

I am trying to test the outcome of a background shell process (running with exec ()). For this, I need to claim PHPUnit until the process is over. I was wondering what is the best way to do this? Should I check the process of running in the loop, and use sleep () with very few parameters to wait until it ends? Since no one responds to a day, I'm going to take a shot: The first impulsive answer would be: "You should not do this". It does not really match (such that it is not really fast to run that test). If you are writing a test for a class, then the call that the script does not really test you one thing, but two The class that calls the command line script and the script itself is itself and you can intercept the shell. If you are trying to make sure that exec my first idea works then your test is such a way that the shell process is not in the form of background work but as a foreground task And the "wait" solution does not arise as the need...

Unusual NHibernate collection/inheritance mapping -

ये मेरी प्रासंगिक कक्षाएं हैं: सार्वजनिक वर्ग ArticleMetadata {सार्वजनिक लंबे आईडी {प्राप्त; सेट; } सार्वजनिक स्ट्रिंग स्लग {get; सेट; }} सार्वजनिक वर्ग अनुच्छेद: ArticleMetadata {// यह एक विशाल CLOB है, इसलिए अलग वर्ग सार्वजनिक स्ट्रिंग सामग्री {get; सेट; }} सार्वजनिक वर्ग अनुभाग {सार्वजनिक लंबी आईडी (प्राप्त करें; सेट; } सार्वजनिक आईएलआईआईएसटी & lt; अनुच्छेदमाताडेटा & gt; लेख {प्राप्त करें; सेट; }} और यहां प्रासंगिक मानचित्रण भाग हैं: & lt; class name = "article" table = "article" & gt; & Lt; / वर्ग & gt; & Lt;! - ध्यान दें कि यहां कोई स्पष्ट NHibernate उत्तराधिकार मानचित्रण नहीं है - & gt; & Lt; class name = "articlemetadata" तालिका = "आलेख" & gt; & Lt; / वर्ग & gt; & Lt; class name = "section" तालिका = "अनुभाग" & gt; & Lt; बैग नाम = "आलेख" कैसकेड = "अखिल-हटाना-अनाथ" उलटा = "सच" आलसी = "गलत" & gt; & Lt; प...

integration testing - Tests dependent on commonly used functionality with NUnit -

I have some initialization code to use my API initialization can fail and I can test it in a NUnit test Want to do The API can be used after the initialization. I am also testing the API, but all my testing methods will use the same, normal, initial code. What is this behavior: The initial test is run. [1] succeeded if other tests are conducted. In all cases where [1] will fail, so all other tests. But the valuable information is that [1] fails. This is the place where I will most likely get the problem. Would it be good if other tests can be marked with? Or some, this indicates that they did not execute as functionality, on which they depend, do not pass the tests. I know that the test should not be brittle. But I can not go around the fact that the initialization code is essential for the proper execution of other functionality. This is a more common problem where some functionality relies on other functionality where "other methodology" is used to provi...

storage - C++ - basic container question -

How should the following cases be controlled: I have some geometrical storage, Which is a template from the top type. template & lt; Typename T & gt; Structure geometry {std :: vector & lt; T & gt; & Amp; Griters () {...} const void * rawVertices () const {...}} This works fine, as long as I do not store different types of geometries (For example, Is it possible? > Or how can I apply geometry storage (where I can store and retrieve different types of geometry using a container) or else Like T type to public Mittith Any advice? Thanks. Since a container is connected to one type of data, you can create a square geometry , all of which are in the geometry & lt; T & gt; and then Geometry Pointer struct geometryBase {// non-templates in your container Methods can go here. Do not forget to forget Class Districts And virtual}; Template & lt; Typename T & gt; Straight geometry: public geometry {// templa...

version control - Pushing and new heads in mercurial -

I have to see what will actually be made during a push, if I abort: Push creates new Remote Head! Error How can I see it? Some more details: I am pulling from a repository (upstream) and putting pressure on a local fork which has additional branches, but already have all the upstream ones. Apart from this, I am pushing only one upstream branch. When I hg outgoing & lt; Fork_repo & gt; , I see that there is a stream with a parent and then without a few. I'm not sure how to understand really. The easiest way is to pull hg . In this way, what would be the remote repository after the actual push in your local repository. If you do not want to pull, then hg incoming and hg outgoing will usually give you enough information to see who has two prominent Are there.

copy multiple files in python -

How to copy all the files into a directory in Python I have a source path and destination path in a string. You can use the files to obtain the source directory, to see if they There are regular files (including symbolic links on * nix system), and to copy. The following code copies only the destination files from the source directory into the destination directory (I assume that you do not want to copy a sub-directory). import os importil src_files = file_name for oslistdir (src) src_files: full_file_name = os.path. If join (os.path.isfile (full_file_name)) (src, file_name): shutil.copy (full_file_name, dest)

Asp.net jquery reqex conversion? -

Is that an easy way to equalize in jquery or jscript? New String = Reggae. Replace (single, "[^ a-z0- 9A-Z-]") like this: newString = someString.replace (/ [^ a-z0- 9a-z -] / g, ""); Without the flag g ( G lobal), this will only change the first match.

matlab - Factoring matrices into elementary matrices -

क्या MATLAB, मेपल या मेथेमेटिका में कोई पैकेज है जो यह करता है? मुझे लगता है कि "प्राथमिक" मैट्रिक्स से आप केवल उनसे कहते हैं जो पंक्ति स्वैपिंग, पंक्ति गुणा और पंक्ति जोड़ के प्राथमिक परिचालन करते हैं। आप जानना चाहते हैं कि यह पीएलयू अपघटन (फर्किकीकरण) के परिणाम का हिस्सा है। पीएलयू अपघटन से आने वाली गाऊसी गाऊसी उन्मूलन का परिणाम है, और पीएलयू अपघटन केवल छिपाने में जीई है और पीएलयू अपघटन के पी और एल जीई को पूरा करने के लिए लिया गया elemetry संचालन सांकेतिक शब्दों में बदलना। और सभी मेपल, मटलाब, और मेथेमेटिका में एक अच्छा पीएलयू अपघटन रूटीन है। तो आप प्राथमिक कारकों को प्राप्त कर सकते हैं। आइए अब मान लें कि हमें कोई भी पंक्ति स्वैप करने की आवश्यकता नहीं होगी। इसलिए मैट्रिक्स एम दिया जा सकता है हम कम त्रिभुज एल और ऊपरी त्रिकोणीय एम प्राप्त कर सकते हैं। मुख्य विकर्ण के नीचे स्थित एल की प्रविष्टियां वह मान हैं, जिसके साथ प्राथमिक पंक्ति के अतिरिक्त मैट्रिक्स का निर्माण होता है। अंत में मेपल कोड यह दिखाने के लिए कि यह कैसे किया जा सकता है। वहाँ तीन प्रकार के प्रारंभ...

python - Calling in functions in another function -

I have created a function to read in the CSV file and then writes some data from the CSV file in another file. Before writing, I had to manipulate some data from the original CSV file. Perhaps in the next two months, it would be very important to manipulate this, so I wrote another celebration to do that manipulation, but I have trouble having a call at my second ceremony. This is the function I am trying to call: import sys, math def convLatLon (measurement) should be imported into #: # # ### 'format tpoint = float (measurement) point_deg = math.floor = get degree for # decimal and lolan point = tpoint-point_deg # #subtract To get latitude from decimal only to decimal = dpoint * 60 # Feels degree min npoint = str (point_deg) + str (pointmin) print (npoint) How do I call this function in any other function? They are currently in the same directory. I am used for Matlab and I think this would be a simple call in the command, but I can not find it. Any help would be very ...

visual c++ - Regarding Windows Programming Using C++ -

There are several functions available in the Windows API for use, is there any book that is available as a comprehensive reference for APIs available Will work in windows? I mean that the books give basic information to the ones I have read. I would like something broad, like we have Standard C library by Plager. I need some manual (preferable) or book (preferably) which will divide the Windows API on its features etc. and give the names of available functions. Remove the old one, the Bible of the programming Windows Windows API by Charles Petzold. The previous versions include Windows 98 and NT 4.0. However this is only C. To program in C ++ with API, you can build your own structure, use MFC or, as I would recommend, use QT, where you API and QT programming can easily mix, WinAPI's online reference is in MSDN, here:

android - Setting list item background color loses highlighting -

I have created an inbox activity and I am mirroring some of the default mail applications that come with Android. In the mail, the background color of a message that has not been read is a slight color compared to the rest of the list. I have reflected it by calling the setBackgroundResource in my adapter's getView method, SetBackgroundColor does nothing. if (! MsgSum.getIsRead ()) {LinearLayout l = (LinearLayout) v.findViewById (R.id.inbox_background); If (l! = Null) {l.setBackgroundResource (R.color.inbox_unread); }} And {LinearLayout l = (LinearLayout) v.findViewById (R.id.inbox_background); If (L! = Null) {l.setBackgroundResource (R.color.inbox_read); }} The problem is, the items lose the ability to highlight again. What do I mean, usually if you scroll your mouse wheel with the emulator (or if you have some scrolling capabilities in your Android device), the list item will be as yellow as they focus. Thank you for your help The reason is that the list item H...

How to have normalize data around the average for the column in MATLAB? -

I am trying to take a matrix and try to normalize the values ​​in each cell around the average for that column I am doing Normally I mean decrease the value from the mean value of that column in each column i. Decrease the meanings by the values ​​of column 1 of column 1 ... Decrease the values ​​in column N of columns. I'm looking for script in mytube thanks! You can use the function to get the meaning of each column, then to reduce that Function from each column: m = bsxfun (@ zero, m, mean (m));

jquery UI widgets without the CSS bloat -

Questions about jquery UI widgets. Is there a way to get them all without the bloat of CSS they take and present? I am making a complete mess with the tabs presenting all those jquery-ui-widgets, jquery-ui-panel, etc. Does this man here somehow ? She does not use the JQuery tab widget.

clojure - How to run the jar made from 'lein jar' command? -

यह एक फॉलो-अप है 'lein जार' चलाने के बाद, मैं 'MyProject-1.0.0-SNAPSHOT.jar' है, जो clojure-1.2.0-beta1.jar और clojure-योगदान-1.2 शामिल नहीं है मिलता है। 0-beta1.jar। और चल रहा 'लीन uberjar' मुझे दो जार फ़ाइलें देता है। पहले वाला (जो कि एंड-स्टॅन्डोनोन के साथ समाप्त होता है) जार में सब कुछ होता है, और दूसरा वाला 'लीन जार' से उत्पन्न जार के समान होता है। यह दूसरा एक के साथ जार का सवाल है पहले जार के साथ चलने में कोई समस्या नहीं है, जैसा कि मैंने पिछले में बताया था। जब मैं चलाने जावा -cp PATH_TO_THE_CLOJURE_AND_CONTRIB.jar: $ CLASSPATH जार MyProject-1.0.0-SNAPSHOT.jar ' , मैं निम्नलिखित । त्रुटि की वजह से: java.lang.ClassNotFoundException: clojure.lang.IFn पर java.net.URLClassLoader $ 1.run java.security.AccessController.doPrivileged पर (URLClassLoader.java:202) (मूल निवासी विधि ) java.net.URLClassLoader.findClass (URLClassLoader.java:190) java.lang.ClassLoader.loadClass पर (ClassLoader.java:307) जावा में sun.misc.Launcher $ AppClassLo...

Scroll Element into View with Selenium -

There is no way to scroll the browser window in Selenium 1.x or 2.x, so that any special element Is there an XPath browser to be recognized? Selenium has a focus method, but it does not appear to be physically scrolling in Firefox. Does anyone have any suggestions about this? For this I need it, I am testing the click of an element on the page. Unfortunately this phenomenon does not work until the element is visible. I do not have control of the code on which the element is clicked, so I can not debug or modify it, so, the simplest solution, scroll to see the item. Many things have been tried to scroll, but the code below provides better results Have done It will scroll by the time the element is looking: web element element = driver.fix element (bye. ID ("id_of_element")); ((JavaScript Extractor) driver) .executeScript ("argument [0] .scrollIntoView (true);", element); Thread.Sleep (500); / element you want to do anything

rubygems - Ruby - Get client IP Address from inside a gem -

I am trying to make a gem and I have a feature in it which is the customer's IP address. Originally it is like the train, but within the gem I do not want to depend / depend on the rail. Am I using Ruby to do something like this? I have found, but when a production server is deployed it is not only server IP address and customer . Any help would be greatly appreciated Thanks a lot It is possible due to Ruby :) If you are developing a web app then you should use the rack! It is very good and simple otherwise you will have to deal with the 'net' module.

objective c - NSFetchedResultsController predicate is a little too real time...? -

So I have an NSFetchedResultsController that I activate with ViewDidLoad with managedobjectcontext which has been passed on from the appdelegate on load. I have put a stigma on some fields, it is called "section number" and says that it is equivalent to 1 in my understanding. NSFetchResultsController works fine until I use MOContext ... I use MyMO * newObj = [NSEntityDescription insertNewentity] ... Start filling in different areas [newobj setName: @ "me"]; [Newobj setAge: 12]; etc ... Once I put [newobj setSectionNumber: 1] - it gets very quick on it and crashes the app separately. CPCADAADADADADACSSSS leads to. It all happens on the main thread. Any ideas why? How can one be around? UPDATE: This only happens when I use my saveMOC method which is called at the end of the specific thread of the NSXLL parser. I called the Save MOC on a successful parse with [self-demonstratoronMineTrade] Goes on .... if I just add additional managed objects thro...

iphone - Sort an NSArray in Descending Order -

हे लोग, मेरे पास NSArray का NSNumber ऑब्जेक्ट है I [myArray sortedArrayUsing Selecter: @selector (तुलना करें :)) हालांकि, मुझे यह सॉर्ट करने की ज़रूरत है अवरोही आदेश मैं इसे लेता हूं कि तुलना करें: केवल आरोही क्रम में ही। जबकि मैं NSArray को पीछे करने के बारे में जा सकता हूं, मैं इस बारे में उत्सुक हूँ कि क्या ऐसा करने के बारे में जाने में अधिक सरल या अधिक प्रभावी तरीका है। धन्यवाद! संपादित करें : मैंने पाया जो कि एक NSArray : के लिए दोबारा उल्टा करने के लिए एक सरल तरीका प्रदान करता है (id someObject [ MyArray reverseObjectEnumerator]) यह काम करता है ठीक है, मुझे लगता है कि यह एक अच्छा सरल समाधान है, लेकिन मैं उत्सुक हूँ कि क्या कोई क्रम अवरोही क्रम में सॉर्ट करने का तरीका है या नहीं। एक प्रकार का वर्णनकर्ता का उपयोग करें NSSortDescriptor * sortOrder = [NSSortDescriptor sortDescriptorWithKey: @ "आत्म" आरोही: नहीं]; वापसी [myArray सॉर्ट किया गयाअरेज़उपकरणडिस्क्रिप्टरः [एनएसएआरआरएआरएरेओब्जेक्ट: सॉर्टऑर्डर]];

javascript - Need some help with my jQuery input styler -

यहाँ, छीन लिया गया कोड, $ (document) .ready (function () {Var $ input = $ ('input [type = "चेकबॉक्स"]'); $ input.wrap ('& lt; div class = "stylecheck-container" शैली = "प्रदर्शन: इनलाइन" / & gt;')। AddClass ('स्टाइलचेक')। छुपाएं (); $ कंटेनर = $ input.parent ('div.stylecheck-container'); यदि ($ container.parent ('label')। लंबाई & gt; 0) {$ कंटेनर.append ($ Container.parent ('label')। Text () + ''); $ container.parent ('label') replacewith ($ कंटेनर);} $ input.change (function () {alert (1); }); कंटेनर.क्लिक (फ़ंक्शन () (यदि ($ इनपुट। (': चेकबॉक्स')) {यदि ($ इनपुट। (': चेक')) $ input.attr ('चेक किया', सच है) ; और $ input.attr ('चेक किया', गलत);}});}); मुझे जो समस्या आ रही है वह है कि जब मैं मूल लेबल को आज़माता हूं और उसे निकाल देता हूं, तब बदलाव नहीं मिला। अगर मैं रेखा 6 बयान, यह ठीक काम करता है। सौदा क्या है? एक शॉट के लायक लेकिन क...

iphone - How to check which UIViewController is active -

I have to check which UIViewController is active, so I have implemented some cases based on the result. [self.navigationController.visibleViewController className] It always gives blank. I am checking with this statement: if ([iDetailController isKindOfClass: [IDetailController class]]) but It fails, please help me if I'm doing something wrong. Use the following method: if ([self amber ecloss : [IDFTE Controller Class]]) { CFShow (@ "Yes, this is the IDETTE Controller Controller"); } isMemberOfClass tells you that the example is an accurate example of that class. There is also KindOfClass: if ([isCindOfClass: [BaseView class]]) { CFShow (@ "For all this The classes that are extending the baseview will be logged ");` } The hacking test is that the class is an extension of a certain class.

iphone - Downloading route details from google map -

I have desites A & amp; B guidelines have been mentioned, I am able to do this through Google instructions, thank you goole .. I just want to create a static map with that path and therefore I would like to provide all the latitude and latitude details in the CSV 100 The route will be obtained for meter distance. Is there any possible way, as currently I need to put a marker at all points and manually need to make a copy of the coordination with the map when I get 100km + P> Any help provided is appreciated If you get directions through Everyone can be done according to the program, but I'm assuming you are the page L are your instructions? If so, you can get KML related to the guidelines through your map. After requesting your instructions, you can go to the bottom of the text guidelines and select Save to My Map . This will add directions to your My Maps page (assuming you're logged into a Google account), go to My Maps and select the entry you just ...

solaris - What is an OpenSolaris syscall calling convention (x86)? -

ओपनसोलारिस सिसॉल कॉलिंग कन्वेंशन (x 86) क्या है? एफ.ई. मैं 32bit विधानसभा में एक प्रोग्राम लिखना चाहूंगा जो कंसोल के लिए स्ट्रिंग प्रदर्शित करता है। इसके लिए मैं "लेखन" syscall (संख्या 4) का उपयोग करना चाहता हूं। लिखने के लिए सी परिभाषा: ssize_t लिखना (int fildes, const void * buf, size_t nbyte) क्या रजिस्टरों को फ़िलिल्ड , बफ़ और nbyte तर्क? आप किस बीच में कॉल कर सकते हैं? आप एक सी प्रोग्राम लिख सकते हैं जो लिखते हैं , इसे असेंबली भाषा में संकलित करें ( -S विकल्प का उपयोग करें)। और फिर आउटपुट को देखने के लिए जांचें कि कम्पाइलर कैसे करता है। संपादित करें: ओपनसोलारिस libc ऐसा करता है: सबसे पहले जब आप इसे कॉल करते हैं तो कुछ चीजें चेक करें और फिर __write कॉल करें: pushl 0x10 (% ebp) pushl 0xc (% ebp) pushl 0x8 (% ebp) कॉल c2730 & lt; __ लिखें & gt; और __write फिर दिखता है: और लिखित; __ लिखना>: कॉल c2735 & lt; __ लिखना + 0x5 & gt; पॉप% edx mov $ 0x4,% eax mov% esp,% ecx $ 0x10 जोड़ें,% edx sysenter jae c2751 & lt; ...

sql - List search results in a combobox -

I want to change our search because now it is a little bit that currently it works like this: Enter a text in the user's text box, for example Volvo and start searching. This search with SQL containing all posts containing Volvo The result is a list with 2 columns, bolded and display values. BoldID is a unique number to identify objects in the database The display value that the user sees in the list of results. Each line in the results list is identified with a line number in the users list 1 with the first, second with 2 and so on. There is also a limit to show up to 99 hits by looping the query into the code. This is a query that returns many hits returns is not good because it does not mean that the list of users is high. In that case the search should be more specific. The result list is displayed in a separate global window, which is called Daiyapa, that the part is that if you are searching with a model dialog, then DApplication should be uncompressed...

What's the relationship between a Linux OS and a kernel? -

I've been using Linux for many years, but do not go ahead with installing CD / DVD. If the app manager did not see what I was looking for in the software, then I was lost. But right now I'm trying to get a hold of "Linux". / P> The first word "kernel" in my head is after reading on Wikipedia, I understand that to give access to a software hardware (CPU, RAM +++) other software (OS + App) Its going on. It also handles memory, but it is not what OS should do (what do I remember from the OS class)? Is there a rich list of Linux software? Take my favorite portraits: Fedora is now in version 14 and the ship with kernel 2.6.35. Does the kernel come central from anywhere and every is the core of Linux distro? If this is true, is there a way to make Linux user friendly to Linux using a computer? In this way, the distro + kernel OS is because without the other one is not usable (probably the net kernel, but who sits on it?). Too much right for ...

maps - Android - Distance between two Cities -

I need distance and driving time between two cities in my Android application. Is there a possibility to calculate these things by Google Navigator or Google Maps? (Driving distance, not air line distance) Instead of using the web API, Later versions should use java rappers available with more information about the map API Keep in mind that this is not the Android Maps Jar API, but there is an additional API content so that you can get your APK in construction.

Serializing Android Bundle for network and/or persistent storage? -

I need to sort a broader application (game) status to be transmitted over the network or saved on disk And is retrieved later. The bundle, of course, is used to save / restore states in many uses cases, so their use would be ideal. However, for some reasons, the bundle is not sysalizable. Searching for solutions has changed the bundle into parcel and has received an unacceptable hack and then it has to be martial, but it is not an acceptable solution because there is no guarantee that after a date or a remote device It would be possible to add data to That's because now it looks, get all the keys bundle, every single thing from the only solution, make a huge switch / case on each object. Manually create a huge byte buffer or similar data, with the size and type of information, the side to completely rearrange the whole thing on the other hand. Not quite right. Does anyone know better? Perhaps someone has already created a utility function for the bundle that does this...

php - Symfony - set form value on save -

A quick question I have a symphony form when I save the form, I want to save my built-in field Automatically set up So, I am passing the current user ID as an option in this form: $ this-> Form = new contract form (empty, array ("created_b" => gtc; $ this-> getUser () - & gt; getId ()); And in the form class I have configured: $ this-> Set default ('created_by', $ this- & gt; getOption ("created by")); If I had a widget created and it was hidden, it would do a great job, however, I do not want to display a field because the user can easily firebug or other device one like. So my question is, if the field does not exist as a widget, how can I save the column value? You do not need a widget for this, in the configured form of your form call. & lt ;? Php $ this- & gt; GetObject () - & gt; SetCreatedBy ($ this-> getOption ('created_by')); ? & Gt; There really is no need to overwrite a ...

iphone - Redeclaring/extending typedef defined in Objective-C protocol in class conforming to protocol -

मेरे पास एक उद्देश्य-सी प्रोटोकॉल है: टाइपिंगफ़ enum {ViewStateNone} ViewState; @ प्रोटोटोल व्यूस्टेटेबल - (शून्य) initViewState: (व्यूस्टेट) दृश्यस्टेट; - (शून्य) सेटविवेस्टेट: (व्यूस्टेट) व्यूस्टेट; @end मैं निम्नलिखित वर्ग में इस प्रोटोकॉल का उपयोग कर रहा हूं: #import "ViewStateable.h" टाइपिंगफ़ाइल enum {ViewStateNone, ViewStateSummary, ViewStateContact, व्यूस्टेट स्थान} व्यूस्टेट; @ इंटरफेस व्यू नियंत्रक: UIViewController & lt; देखेंस्टेटेबल & gt; {} @end मैं अपने आवेदन की बारीकियों में बहुत दूर नहीं जाऊंगा, लेकिन मैं यहाँ क्या कर रहा हूं typedef एक गणन में एक प्रोटोकॉल ताकि प्रोटोकॉल के तरीके उस प्रकार का इनपुट मान ले सकें। तब मैं उस प्रोटोकॉल के अनुरूप वर्गों में टाइप टाइप किए जाने या फिर विस्तारित करने की उम्मीद कर रहा हूं, ताकि प्रत्येक वर्ग के पास अपना हो देखें राज्यों हालांकि, मैं निम्नलिखित दो त्रुटियों में चल रहा हूं: गणक का पुनर्वितरण 'व्यूस्टेट नॉन' विद्रोस्ट के लिए विरोधाभासी प्रकार ' मुझे यह स्वीकार करने में ...

php - wordpress add settings to user page -

I want to add a field to the user profile editing page in WordPress. The field should contain a checkbox and it should only be edited by 'administrator'. Does anyone have an idea where I can get it or how can I do this? I searched through the whole Wordpress codex but I could not find anything useful .. Thank you very much! You can see additional user SIMI

java - toggle button vs image changing button -

When to use this functionality and to use the other? I personally should use a toggle button to switch between two different ways but I need to explain to some people at work. Any formal UI literature on this topic? Thank you I do not have a reference for you, but as a user, I can tell you I hope what I will do. I hope that when you take the option of an action for each other, the buttons to change the images because you enter a different mode. It is actually relevant to save real estate in your toolbar etc. For example, you can have have a dedicated play button and close the button as usual. Saves space with one button, because neither point is both enabled. I expect a general depressed / ineffective toggle button when there is a mode that you enable or disable, an example of this is the "Toggle Mark Records" in Eclipse, by pressing that toggle button a new Action does not constitute, but rather to disable an active mode.

Efficient (PHP?) Filtering from MySQL with 3 Big tables -

I'm working on a filtering section with "large" tables and display (for selection). is. table_1 has 710,000 records and looks like this: (pk) game_id param_1 param_2 param_3 422,218,503 records in Table_2 And looks like this: (pk) set_id value_1 value_2 table_3 has 56,312,204 records and looks like this: (pk) relation_id game_id set_id box_1 box_2 Inserts are not common (once a week), but there are selections (many, daily). 3 types of searches are common: Only by table_1 (using param_1, param_2, param_3) only to table_3 A combination of both Every search will have a maximum of 20 games, and I am worried about the 3D case, where they both for Paramer, Paramol and Price_1 in Table_1 and Table 2 Do the search. I do not want to use any selection ... because the templates are due to the size of the tables (3 table is more than 10 GB between the data). The one I am thinking about is as follows: Step 1: Select Set_Ad Step 2: Select all Ga...

python - List web url dir contents -

I want the list of the UL-R content of the external webpage such as I do this website example.com/dir/dir / Images / urllib.urlretrieve (page_url, save_url) But I want to list all the images in a directory, or anything for that matter ells I want to use Python Unfortunately this can only work if the web server in question asks you to navigate Magistrate while will provide a directory to the URI of the directory. If this happens, the typical directory list creates a very simple markup so that they make a major candidate for various forms of web scrapping. Otherwise, you are out of luck.

c++ - Can functions be in a struct? -

Can we describe the work in the structure? For example, is this code valid? Structure function {int func () {return 5; }}; Yes, between a struct and Class contains C ++: In C ++, a composition is a square defined with a straight keyword. Its members and base categories are public by default. The classes defined by the class in a class, by default, are private members and base classes. This is the only difference between structures and classes in C ++.

mysql - output sql statement is grouped -

To I have the following statement is a little problem, mysql: Select the Cmfilm *, Cmgenre.titel genretitel, in the form of cmvertoning. *, Cmzaal.titel cmfilm join cmvertoning on as zaaltitel left cmvertoning.film_id = cmfilm.id LEFT JOIN cmgenre on cmfilm.genre_id = cmgenre.id Join left Cmzaal Cmvertoningkzaal_id = Cmzaal Kid Where cmvertoning cmfilm.id ASC order by .id (74,74,74,74) because I'm asking the same ID 4 times it only gives me 1 results. But I have to return the result 4 times, as I had said to do it. Anyone knows how to solve this? Perhaps it would be better to achieve this on the application side - returned rows into a map , Then iterate on the ID you expected and get the appropriate rows from the map. Because there is another problem - the lines can not be in the order of which you specified ID in order (Biteedblu. This line can also be used in order to find the problem). Union solution will work, but, honestly, I think you have some design problem...

c++ - stringstream fails "streaming" negative values in unsigned types? -

I am having the same problem using gcc4.4 in Ubuntu 10.04, using the same code GCC 4.1, Works fine on 5.5 #include & lt; Sstream & gt; # Include & lt; Iostream & gt; Int main (int argc, char ** argv) {std :: stringstream mystream; Mystream & lt; & Lt; "-123"; Unsigned int myUInt; Mystream & gt; & Gt; MyUInt; If (mystream.fail ()) {std :: cout & lt; & Lt; "The Philadelphia" & lt; & Lt; Std :: endl; }} does not fail, I have already found it: Where it was said that it was in gcc4.1 It was not right, it is not certain that if he misses (as long as I am missing something) then it is related to the same problem. I'm not sure why you are expecting it to fail Sscanf () also failed , But reads the numbers, and C ++ streams should function like the scanf function: #include & lt; Stdio.h & gt; Int main (int argc, char ** argv) {unsigned int n; If (! Sscanf ("-1", "% ud", &...

Filter an OData query based on a link count? -

Given a framework where two types have appeared in an Odata system with a master / extension relationship: Order - Order Details How would you filter a query based on the count of related order details? In my head, this is something with lines of / order $ filter = count (OrderDetails) eq 0 but surely no count Not working. So, how do you prepare a list of orders that do not have any orders? Very similar question for this one: Currently the Odita Protocol does not have any operator / Does not support the query. The best solution is to expose a service operation that directly displays such operation from the server.

c# - How to access repeater items from JavaScript -

I have got a hidden control inside the repeater. How can I get it from javascript? Are you using JQuery? This can be easily done by: $ ("# & lt;% = repeater1.ClientID%>"). ("Input [type = 'hidden']" / code> Which whole repeater diarrhea; Because each item does not present a cover around it (for example a div or a table), Search is done by searching the HTML tree altogether Otherwise, you have to loop through each element, or wrap each item with a div and enter it into the hair nodes collection of that div, and it will be more of pain without JQuery. But very likely Is. Actiac.

objective c - If object respondsTo still throws warning -

I am working on a project where I have a class in which UIView property I also define a class which is a subclass of UIView that defines a certain method if I have the following code, I get a warning when I will create: // In this example, MyView is the UIView property which * * could include a UIView or // my subclass-UIView which is my law If the method does ([myView responds: TiceAcclator: @Sylector (Merimath)] {[myView myMethod]} The warning is "UIView can not answer" -myMethod " It's a warning that the app is not designed to stop creation, but I'm trying to understand how to deal with it. Is this the right way to do it? Is there any way to stop this warning? Warning only because compile Do not know that this view is your custom sub-class. Of course, at runtime this will work fine, because it will be a subclass, you have two options to fix it: [MyView performSelector: @selector (myMethod)]; (hence the compiler method does not check ...

jquery - How to get datepicker in jqGrid search toolbar? -

I want to place datepicker in the search text fields and ultimately in the editing areas of a jqgrid. Is there any way? Has anyone used this kind of combination? Date picture with JqGrid? You will do the following in the field definition, callmodel: [ Name: 'Start', Index: 'Start', Search Options: {Soaps: ['eq', '' ''], Dotent: Function (AMM) {$ (AMM). Datapikar ({showButtonPanel: true})}} },

php - The Zend Framework way of storing modified classes? -

मेरे पास एक प्रोजेक्ट है जो ज़ेंड फ़्रेमवर्क और Zend_Translate का उपयोग करता है। I को मानक सीएसवी एडाप्टर को थोड़ा ज़ेंडट्रांसलेट में बदलना पड़ा। अब मुझे इस सवाल का सामना करना पड़ रहा है कि यह बदल एडाप्टर कहां है। डिफ़ॉल्ट रूप से, एडेप्टर / library / zend / translate / adapter / adaptername में जमा किए जाते हैं। Php यह वह जगह है जहां मैंने नया एडेप्टर भी रखा है। हालांकि, मैं अपने कस्टम एक्सटेंशन के साथ "Zend" पुस्तकालय को "प्रदूषित करना" पसंद नहीं करूंगा : मैं फ़ाइलों को खोने के बारे में चिंता किए बिना ज़ेडएफ को अपडेट करने में सक्षम रहना चाहता हूं; मैं ज़ेडएफ के केन्द्र स्थापित संस्करण का उपयोग करने में सक्षम रहना चाहता हूं; और कस्टम एडॉप्टर उस प्रोजेक्ट का हिस्सा है जो मैं काम कर रहा हूं, वास्तव में क्या इस से निपटने का एक ज़ेंड फ्रेमवर्क तरीका है, या वैकल्पिक लोडिंग स्थान निर्दिष्ट करना है? $ this- & gt; _adapter = नया $ एडेप्टर ($ डेटा, $ लोकेल, $ विकल्प) का उपयोग करके भाषा एडाप्टर लोड किए गए हैं; (जहां $ एडेप्टर होगा Zend_Transla...

why do i need GetHashcode() in the IEqualityComparer interface? -

I think the IEqualityComparer interface is equal (obj x, obj y) and GetHashcode (). I understand perfectly equitable () methods because I have to say that two things are the same or not, but why do I need to apply the gatehach code () method?

mysql - Does anyone have considerable proof that CHAR is faster than VARCHAR? -

Is there any benchmark, graph nothing? All academic and theoretical on the web OK, this is not the first time that this question has been asked, do they all say that CRAR results are used faster? I also read in MySQL books, it's all the same, but I did not come in any benchmark that proves this. Can anyone put some light on this? This is the simple argument, to simplify I will take the example of a CSV file ... Will it happen faster 1231; 231; 32345; 21312; 23435552; 1231; 1; 243; 211; 3525321; 44343112; Or this one 12, 23; 43; 56; 56; 76; 54; 83; 45; 91; 28; 92 As long as you accurately define your length, the variable should be fast as the predefined formats help in processing time.

layout - How do I determine how much text will fit in a TextView in Android? -

मेरे पास एक ऐसा लेआउट है जो इस तरह दिखता है: [TextView 1] [TextView 2] [TextView 2 spill-over] मूलतः, मुझे अगले पंक्ति में लपेटने के लिए TextView 2 की सामग्री की आवश्यकता है, लेकिन जहां TextView 1 शुरू होता है वहां से शुरू करें। मैं सोच रहा था कि यदि मुझे पता था कि पाठ को एक पंक्ति में स्थान से बाहर करने से पहले टेक्स्ट कितना टेक्स्ट फिट होगा, तो मैं बाकी पाठ ले सकता हूं और इसे पहले दो के नीचे एक और TextView में डाल सकता हूं। तो मुझे मापने की आवश्यकता है कि टेक्स्ट कितना टेक्स्ट टेक्स्ट में फिट होगा (जो कि मुश्किल हो सकता है क्योंकि जब तक मैं बता सकता हूं कि एंड्रॉइड एक टेक्स्टव्यू में पाठ को एक अच्छे स्थान पर तोड़ने का प्रयास करेगा ताकि यह किसी शब्द को नहीं तोड़ सके मध्य अगर इसे टाला जा सकता है) या मुझे इस बारे में एक नए विचार की आवश्यकता है। किसी भी मदद की बहुत सराहना की जाएगी। अग्रिम धन्यवाद, दुर्भाग्यवश, पेंट। लेटटेक्स्ट ने उसी नतीजे को वापस नहीं किया, जैसा कि देखा गया था जैसा कि मेरे दो-पंक्ति पाठदृश्य में। हालांकि, यह काम int numChars = textView.getLayou...

http - Download only new/modified files with perl (or wget) -

I have a Perl script that downloads a large number of files from remote servers, I would like to avoid teasing the server, so Would I like to avoid downloading a file if it has not been modified since my last check? Is there a good way to do this, either in Perl or with a shell script? Do I want to send the server HTTP for uncompressed files instead of HTTP? Yes, use and pay special attention to the mirror method. It is also available as a procedure in the form of the mirror function. Will go If the file already exists, then the request will be "if-modified-from" header that matches the modification time of the file. If the document on the server has not changed since then, then nothing happens. If the document has been updated, it will be downloaded again. The amendment of the file will be compelled to match the time server. Return value is a response object. The HTTP 304 response code is if you pass the -modified-test and your copy is r...

Emulating iPhone and iPod Touch Inbox Edit Mode (Red Check Marks, Blue Background) -

How to emulate UITableViewCell (S) used in bulk editing (all inbox> edit) in the mail application In particular, hollow circles that fill with red filling and white check mark when selected (and the cell also turns blue). Is it possible to do this with current disclosures? Thank you. In the method to select editing style return 3. This should start with you.

html - Adding doctype url causes eternal refreshing -

मेरे पास ऐसा पृष्ठ है, जिसमें कार्यप्रणाली होती है: & lt;! DOCTYPE HTML PUBLIC " - // डब्लू 3 सी / डीटीटी एचटीएमएल 4.01 ट्रांसिशनल // एन "& gt; मुझे अंत में यूआरएल जोड़ना है, या jQuery का डेट पिक्चर सही ढंग से प्रदर्शित नहीं करता है। जब मैं कार्यप्रवाह कहता हूं: & lt;! DOCTYPE HTML PUBLIC "- // W3C / / DTD HTML 4.01 ट्रांस्क्रिप्शनल // एन" "http://www.w3.org/TR /html4/loose.dtd"> पृष्ठ स्वयं को इसे और फिर से ताज़ा करना शुरू करता है मैं एनडीए की वजह से कोड नहीं डाल सकता, लेकिन मैं उम्मीद कर रहा हूं कि किसी को यह पता चल जाएगा कि यह क्या होगा। अद्यतन: ऐसा लगता है कि इस सिद्धांत को आसान लिस्टबॉक्स के साथ समस्या है, जो लगता है मेरी समस्या हो। डॉकटाइप घोषणा अनिश्चित ताज़ा करने के कारण नहीं होनी चाहिए। आपके कोड में यह सबसे अधिक संभावना है।

Java regression testing (with AWT involved) possible without stealing desktop focus? -

I have found a regression test of a Java system that does not bring any graphical elements but the AWT event thread is any way Is it possible that I can set things to run this test suite on my workstation in the background without continuously grabbing the focus of whatever I am doing? (I'm running on Mac.) If on Mac:

Scala method that returns multiple concatenated filter functions -

In my app, I'm filtering a file array in various ways, such as the following: val files: array [file] = recurring list files (file) .filter (! _ToString.endsWith ("png")) .Filter (! _ ToString.endsWith ("gif")) .Filter (! .tostring.endsWith ("jpg")) .Filter (! _ToString.endsWith ("jpeg"). Filter (! _ToString.endsWith ("BMP")) .Filter (! _ToString.endsWith ("DB" )) But it would be better to define a method that is a string Takes the array and returns all the filters in a similar function. Is this possible? So that I will write val files: array [file] = recurring list files (file). Filter (notEndsWith ("png", "gif", "jpg", "jpeg", "bmp" , "Db")) You can do something like this: def notEndsWith (suffix: string *): file = & gt; Boolean = {file = & gt; ! Suffix.exists (file.getName.endsWith)}

How do you create file with a variable in C++? -

I was wondering how to put a variable where is "example.txt" below : offstream file; File.open ("example.txt"); Just put a variable there: - P if you Use the std :: string and you need to get the .c_str () by using the const char * so that your options are The types are: const char * filename = "example.txt" file.open (filename); or: std :: string filename = "example.txt" file.open (filename.c_str ());

performance - In ADO.NET, is a DataTable or a DataReader better to serialize? -

I have the static data in the same table that I have to serial; I have often read that a DataReader can perform more If you want data-read-only data that you come only once. If you want to sort this information, will the datatable be better? "Better" is the one thing that can be "serialized" from the data table of trade-offs WriteXml () method. The problem is resolved. If you are ready for tuning the display, you can get some benefit by writing a custom serializer for the reader, but you can exchange the development time for (we expect) Are there.

Solr Faceting result with more than just count -

itemprop = "text"> This is what I need: I have a list of products listed in the Solar and Canned, Other category names and category multiple fields I would like to faceting on the class, but want to have all the category id, category name and category with the numerator number along with the numerator number. Is this possible? Or do I have to faceting only for classroom IDs and inquiries from another request or our SQL Server database should get the rest of the information from that category? If the slight increase in index size does not matter to you, then you can change the schema And if you are able to do a full reindex, then add a new area 'categoryFacet' for it. This new area will keep the information described in your query. Most likely, you will solve this by editing the SELECT statement used for indexing it.

String to Date in Java -

Hi, I am converting string to date format. But this gives an incorrect date, for example, string start date = "08-05-2010"; // (mm / dd / yyyy) I want to convert it to "date" object like this, 05-JUL-10 How to do this? I tried this kind of SimpleDataformat dateformat = New SimpleDateform ("DD-MMM-OR"); Scal1.setTime (dateFormat.parse (STARTDATE)); But I'm getting an "ineffective date". If you want to convert a format to any format in a date string in another format, then You can use class formats () and pars () methods Before you set the string to the purse () method format pattern and then setting the format () method to the target object Format: SimpleDateFormat sourceFormat = New SimpleDateFormat ("MM-dd-yyyy"); Date source format Dat = sourceFormat.parse ("08-05-2010"); SimpleDateFormat destFormat = New SimpleDateFormat ("dd-MMM-yy"); String distorted datastring = difference form...

indentation - How can I tell emacs how the arguments to my elisp function should be indented? -

I wrote (actually a macro, but whatever) that works similar to progn Does. How can I tell if this function is progn ? it ( 'Myfunc' lisp-indent-function 0) should be inserted lisp-indent -function ( f lisp-indent-function RET ): lisp-indent-function `Lisp-mode.el 'has a compiled Lisp function (Lisp-indent- Function indent-point state) This function variable is the common value of `lisp-indent-function`, its function is used to indicate a line within the call, to see that Hnkshn has called that line is nothing special to say about how to indent or not. Indent-point is the situation where the user typed the tab, or the equivalent. Point is located at the point of the indent (for the default indentation); State is `parse-partial-sex 'state for that condition if the current line is a lisp function in which a non-blue property is' lisp-indent-function', which indicates how to do an indentation. The value of the property can be: * `` `` `` `` `...

C# to Automate an ASP.NET Website -

I have a website on which I have to pass 4 parameters and then have to remove the data programmatically, but one There is a big problem. The website is built with Ajax inside form AJAX. Therefore, I can fill a field in a programmatically and then I fill out another area. To fill the third area requires clicking a button, so I press the button in programmatically, the problem is that when I click on the button, the second filler becomes empty before filling the button and the cause of the error Is formed. So is there any way from which I can fill the areas fast without errors? Take a look at the Web Automation Library - such that you can talk like this.

sockets - python line editing telnet server -

I am creating a server in Python (what this is doing is irrelevant), but I would like to accept the telnet connection And provide a command line interface (tab end, IMax / Wi-mode, etc.) and history per session with line editing capabilities. I've successfully created the Telnet session, the incompetent line mode and the competent server. My initial thoughts were using readlines but the dragon readline module seems to work for only one session stdin; And checking the built-in Redline Library as it works. What do I want to do, though an example for each client (call it if it is liked), and as the character (bytes) the state is receiving the feed. Once the full line is ready, it can pass it on the server which can parse it. So my question is, if there is a library that handles such things, even the C-Library will be sufficient. Edit : To clarify, I've already got a fully functional server, but I have to add, add, connect, and telnet interfaces Want to Maybe lib...

sql server - Natural Sort in NHibernate -

I have found a hibernate query that gives a list of objects and I want to order by a title to make it a user Is the area kept and some of our clients like their headings are prefix with numbers, this is not something I can control. The data is something like this: - 1 first thing - 2 second thing - fifth thing - 10 tenth point - 20 twin thing - no numbers have any work A traditional .AddOrder (order .asc ("name")) This generates a literal type: - 1 first thing - 10 tenth thing - 2 second thing - 20 twenty thing - 5 fifth thing - nothing with numbers This is right because it's a Nvarchar is the field but do I have anyhow Can I even get numbers to sort? There are many types of people who are prefixed to all areas, but like this, do any of these work through NHibernate? / P> This application is run alternately on Oracle and MSSQL. Cheers, Matt You create an implementation You can consider who allows you to specify the collation on the col...

ios - give some screenshots to create UIBackgroundModes key in Info.plist for iOS4 -

Image
I'm new to the development of the iPhone. I have previously gone to create UIBackgroundMods key through some search pages for Info.plist IOS4. But it is a bit difficult to understand. Please provide some steps through the step process with a screenshot example to easily understand ... Also specify that the requirements are required, i.e. iPhone, OS Version 4.0 ... Audio - plays audio content for the user in the background in the background. Location - VoIP - This application provides the user the ability to make phone calls to access the Internet connection. You can edit the Info.plist file on Xcode. To add a new key, sign in to + and type: iOS 4 " UIBackgroundModes "as the key, make sure that the typed string is set and then the value audio , location or VoIP requirements : iOS 6 Set the type of " as required background mode " key and then in the drop down menu.

java - Hibernation annotations, specify column default value -

मेरे पास डोमेन ऑब्जेक्ट है और एनोटेट निम्नानुसार है @Entity @Table (name = "अनुरोध") सार्वजनिक वर्ग अनुरोध {/ ** * इस अनुरोध के लिए अद्वितीय आईडी * / @ आईडी @ जनरेटेड वेल्यू कॉलम (नाम = "ईक्यूआईआईडी") निजी लंबे अनुरोध आईडी; / ** * * / @ कॉलम (नाम = "EMAIL_ID") निजी स्ट्रिंग ईमेल आईडी; / ** * * / @ कॉलम (नाम = "REQUEST_DATE") निजी तिथि अनुरोध दिनांक; / ** * गेटर्स / सेटर्स छोड़े गए * /} स्तंभ Request_date रिक्त नहीं हो सकता और डीडीएल के अनुसार डिफ़ॉल्ट मान sysdate (oracle DB) है। मैं इस क्षेत्र को कैसे एनोटेट कर सकता हूं ताकि यदि अनुरोध किया जाए कि संपत्ति की संपत्ति शून्य है, तो हिब्रानेट स्वचालित रूप से sysdate सम्मिलित करता है। वर्तमान में यह त्रुटि फेंकता है जब फ़ील्ड रिक्त होती है, जो बहुत स्पष्ट है क्योंकि यह डीबी बाधाओं के अनुसार शून्य नहीं हो सकता। यह कैसे करना है? एक विकल्प इस क्षेत्र को क्षणिक रूप में चिह्नित करने के लिए है और सम्मिलन ठीक काम करता है। लेकिन नकारात्मक पहलू यह है कि, मैं मूल्य (request_date कॉलम) के प्राप्त नही...

jboss5.x - SaxParser errors with Hibernate and JBoss - conflicting versions? -

I use JBOSS 5.1.0.GA and Hibernate while trying to connect to the database I am doing I get the following errors 10: 21: 03,042 information [version] Hibernate Commons Annotation 3.1.0.GA 10: 21: 03,049 Configuring Information [Configuration] Processing: /hibernate.cfg . XML 10: 21: 03,049 information [configuration] configuration resource: /hibernate.cfg.xml 10: 21: 03,077 information [STDOUT] WARNING: 21: Attempt to use the SAX caught SAX 03.077 information to load a SAX XMLReader 10 [STDOUT] WARNING: The exception was: java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser can not be molded in org.xml.sax.XMLReader 10: 21: 03,077 information [STDOUT] Warning: I print stack trace If the default SAX Parser is used on 10: 21: 03,077 error [STDERR] java.lang.ClassCastException: 21 :: org.apache.xerces.parsers.SAXParser org.xml.sax.xmlReader 10 May Molded can not have 03,078 ERROR [STDERR] At org.xml.sax.helpers.XMLReaderFactory.loadClass (Unkno wn Source) 10: 21: 03,...

iphone - CoreDataGeneratedAccessors not generating automatic selectors -

I'm currently working on an app that uses core data, I try to specify CoreDataGeneratedAccessors in intervals , But the accessories like setName did not automatically get generated. Is this something wrong in my XCODE configuartion? Thanks, Jith. You are not likely to be directed to the @ dynamic for the property in the implementation (.m) file. You need to do something like this: @implementationMyManagedObject @dynamic propertyName; ... to get access to managed items