Posts

Showing posts from August, 2014

manifest - Create jar file that can be executed on any machine -

I have a simple Java app that prints 'Hello World'! On console it is packed in app.jar: Jar Structure: Main / Hello. Class - Singing printline method with my main category Meta-INF / MANIFEST.MF The following are the manifest files: Manifest-version: 1.0 Main-Class: Main.Holo Everything goes fine. But when you have reliance on troubles, I am not sure, but in this case think that you have to keep all the lbs in a jar file. If I put them in Meta-INF / lib, then I'll have to specify a "class-path" in the manifest. How will "class-path" look? PS has some similar questions but I have not received the correct answer. I use the ANt build script to package my app and all the required jar files The build.xml file looks something like this: & lt; Project default = "create_run_jar" name = "Create Runnable Jar for MyProject" & gt; & Lt ;! - Requires ANT 1.7 - & gt; & Lt; Target name = "crea...

api - How do you move a SharePoint 2010 DocumentSet from one list to another? -

I have tried many forms. Send to Library - It creates a ZIP file in the drop-off library, then it does not route through content in the content organizer API - I have an export, import Have tried, but always got the same error. This is the MSDN document copy: Sample snippet: Byte [] exported file = set .export (); DocumentSet.Import ( DocID: site prefix is ​​not set . Error received: DocID: Site prefix is ​​not set . end Get it to run in this document related to the id feature.Make sure it is active on every site. Let's run at night (need to run timer jobs) then content organizer can easily set up your document sets. Antrit will unpack.

c - What techniques are available to test if a character string is all spaces? -

चार * p = "woohoo"; Int condition = / * कुछ 0x20 / रिक्त स्थान / रिक्त स्थान के लिए केवल * / if (condition) {} else {printf ("not") को देखने के लिए p * / / * पर लागू कुछ गणना; } Printf ("सभी रिक्त स्थान \ n"); एक-लाइनर: int condition = Strspn (पी, "") == strlen (पी); थोड़ा अधिक अनुकूलित: int condition = p [strspn (p, "")] == '\ 0';

Rails w/custom TCP data service -

I am building a Rail App that needs to be connected to custom TCP data service, which exchanges exchange data -Usages to provide. Functionally, this is not a problem, but I'm having difficulty in architecting it in a way that is considered "clean". Short overview: The user logs in to the log app, on login, the credentials are valid with the data service and the "reference ID" has been returned. Request: & lt; Login & gt; & Lt; Username & gt; Testuser & lt; / Username & gt; & Lt; Password & gt; Mypass & lt; / Password & gt; & Lt; / Login & gt; Answer: This context_id is basically a session token. Request: & lt; History & gt; & Lt; Context_id & gt; 123456 and lieutenant; ; / Context_id & gt; & Lt; Start_date & gt; 1/1/2010 and lt; / Start_date> & Lt; End_date & gt; 1/31/2010 and lt; / End_date & gt; & Lt; / History & gt; Feedback...

String format in java? -

Input String: 115.0000 Output must be like string: 115.00 I used this code: string. Format ("% .2f", "115.0000"); I found illegal subdivision exceptions . what can I do now? You are submitting a string, but it is a floating point value. Remove the quotes around the number (the second parameter).

Dynamic deep selection for a JavaScript object -

एक एकल संपत्ति के साथ यह काफी आसान है: var jsonobj = {"test" : "ठीक"} var propname = "test"; // चेतावनी "ठीक है" चेतावनी (jsonobj [propname]); लेकिन मुझे क्या करना है नेस्टेड प्रॉपर्टी का उपयोग करना है: var jsonobj = {"test": {"test2": "ठीक है"} } Var propname = "test.test2"; // चेतावनी अपरिभाषित चेतावनी (jsonobj [propname]); क्या नेस्टेड "गतिशील" संपत्ति का चयन करने का कोई तरीका है? मुझे पता है कि मैं jsonobj.test.test2 कर सकता हूं, लेकिन समस्या यह है कि प्रोपेनाम एक संपत्ति में बदल सकता है जो 1,2 या 3 स्तरों को गहरा कर देता है (उदाहरण, परीक्षण, test.test2, ...) फ़ंक्शन समाधान (cur, ns ) {Var undef; Ns = ns.split ('।'); जबकि (क्यू & amp; एनएस [0]) कर = क्र [एनएसशफ्ट ()] || undef; वापसी कर; } उदाहरण के लिए // 1: हल ({foo: {बार: 123}}, 'foo.bar'); // = & gt; 123/2: var जटिल = {a: {b: [document.createElement ('div')]}}; संकल्प (जटिल, 'a...

Is there a common vocabulary for all programming languages? -

It is really upset that each programming language has its own vocabulary for example, in Java if ... {} So far in the Bash script we have if ... then ... by using the fi # "Fi" is so crazy for me It would be great if all programming languages ​​share the same vocabulary, language designers could then define the underlying words. I wonder if any efforts were made to make such a terminology? "post-text" itemprop = "text"> Good, one IBM product, Visual Age Generator, which was the common language, then from CNX to COLL's C to the mainframe There was something 'compiled' to do. I think that this is now out of service well and other such efforts can be made that do not instantly come to mind in spring. However, the whole thing to be different words is that languages ​​are different, otherwise there will be no reason to select Java on Cobol or Ruby on BOPL. and fi was an superb idea. The parser was made easy to create...

c# - How to modify select parts of default chart style? -

I have a LineSeries that I am trying to create with code instead of XAML. I am using a LineSeries, but I want to remove the markers, and it is just the line. To do this, I have changed the style so that the heights and width are zero: Various methods of style style Modify Style = New Style (TypePoint (Datapoint), B Chat style.); Line style. Add (New Setter (Datapoint. Highproperty, 0.0)); Line style. Set up Add (new setter (Datapoint with property, 0.0)); // add a series of charts to var a = New LineSeries (); A.IndependentValueBinding = New system.window.Data Binding ("key"); A.DependentValueBinding = New system Windows Data Binding ("value"); A.DataPointStyle = lineStyle; It works, though the colors change from the original style - these are both yellow / orange. I like they were not! Am I better off implementing new colors or can I modify the default style instead of a new application? "post-text" itemprop = "text"> For exam...

Zend Framework fancybox confirmation dialog with ajax and posted values -

I have created a confirmation page to delete an item. It works perfectly. Now I want to show the confirmation page in the faxbox, still pass all the variables and delete the data or close the dialog. It is important that the process still works as it does now (remove-> confirmation page-> redirect / deletion) so that Javascript can disable disabled users without performing any of these actions. . Now I am reading about Zend Framework, Ajax, JSON and more, but the less I read, the less I understand. In essence, my question: I want to pass a variable in the fancy box and if the 'yes' deletion has to be performed or the 'no' dialogue should be closed, it should be closed to the jnd framework and jquery Is within Any suggestions or suggestions are appreciated! You need to use content switching in your AJAX which will properly present your action. , For example: function confirmDeleteAction () {if ($ this-> _request-> isxmlHttpRequest)) {// ...

TreeView in wpf ... Is there a SelectedItemChanging event? -

मैं एक सिस्टम का उपयोग कर रहा हूँ। Windows.Controls.TreeView एक wpf अनुप्रयोग में। असल में मुझे एक SelectedItemChanging ईवेंट के समतुल्य की आवश्यकता है ताकि मैं ट्रीदृश्य की चयन इवेंट को रद्द कर सकता हूं। क्या ऐसा करने का कोई तरीका है? मैं किसी ट्रीव्यूव्यूज पर चयनित ईट्स-चेंजिंग इवेंट को ढूंढने में सक्षम नहीं था। धन्यवाद! मुझे कैसे करना है पर एक लेख मिला। आप चयनित लेख में ChangedPropertyChangedEventArgs के NewValue और OldValue सदस्यों के संयोजन के साथ उस लेख की तकनीकों का उपयोग कर सकते हैं।

What's wrong with my HTML/jQuery toggle script? -

I have this function in a header in the header (generated by firecracker, it works): function MM_swapImage () {//v3.0 var i, j = 0, x, a = MM_swapImage.arguments; Document.MM_sr = new array; (I = 0; i & lt; (a.length-2); i + = 3) if ((x = mm_find obja (a [ii])) = = null {document.MM_sr [j ++] = x ; If (! X.oSrc) x.oSrc = x.src; x.src = a [i + 2];}} Then I have a group of TD and TRS In which it is a: Then, after the table is over, Enter the script:

sql - Access 2007 to Oracle 10g linked table -- query with flawed results, but no errors thrown -

The wrong filter results are returned to the database to be asked from the linked Oracle 10G tables, from where the WHERE query is used to filter out Can be done for unwanted records. Oddly, some is being filtered, but not by reliability. I can display / display the problem like this: Create a new * database * Access 2007. Create a second * new * database with Access 2007, and then "save-as" 2000. Create a third * new * database with an old Access version. Run the following queries in each database: select position, id, LAST_NAME, FIRST_NAME with Oracle10g_table where position = "A" In both of the databases, running this query, you will get a result set that contains some of the record where (STATUS = "A") = false, but not all of those filtered In the database created with earlier versions of Access, where the section filters properly, and the result set is correct. Position is a text field The table is a "linked" tab...

iPhone Build SDK 4.0 With 3.2 Target Won't Install on iPad OS 3.2 -

I am creating an app for iPhone / iTouch that I also want to run on the iPad (not a universal app) , But one that just runs with the 1x / 2x button in the bottom right corner of the iPad). I am using the iPhone SDK 4.0 and setting the following: Base SDK: 4.0 iPhone OS deployment target: 3.2 When I do this, I can just fine-tune an app and run it on an iPhone / iTouch, but when I try to install it on my iPad I got the following error: Application specifies a minimum OS version of Info.Plist 4.0 for the application Ava, if I package binary and submit it to Apple and it becomes available on iTunes store, it shows that it is only available for iPhones (not iPad) when I have an app store icon on my iPad I do not even list this app as available (because Apple thinks it will not work on the iPad, I think). Now I am really confused, because I thought I understand the difference between the base SDK and the deployment goal, but Xcode is telling me that I am not. Can anyone e...

c# - regex exclude match from capture -

Use Regex in the net I will have a set of data that is something like this Comes & lt; Bunch o 'data here & gt; Where & lt; is the only indicator of a new record and & gt; is the end of the record. These records may come in this way & lt; Dataset 1 & gt; & Lt; Dataset to broken, a closing tag & lt; Dataset 3 & gt; They also & lt; Dataset 1 & gt; Dataset 2 broken, any opening tag & gt; & Lt; Dataset 3 & gt; However, I am not sure that this latter matter is possible, and I will cross that bridge when I have to do I will start with this beginning and end To record the use of Reggae on the basis of character, at the end, something like Mail 1 = & lt; Dataset 1 & gt; Match2 = & lt; Dataset to broken, no closing tag match 3 = & lt; Dataset 3 & gt; I am trying to explain how non-captive groups work and maybe my understanding is wrong. & lt ;. *? (?: & Lt; | & gt...

php - mysqli_fetch_array returning less results than expected -

I am using the code to return and resonates the array. If I define 'mysqli_fetch_array ($ result, MYSQLI_BOTH)', then my array is reduced by a result, the first result in the array emits from the list. If I remove MYSQLI_BOTH, then I hope I get those results, but my hosting company throws this error: Warning: mysqli_fetch_array () [function.mysqli-fetch -array]: The result type must be on either line of MYSQLI_NUM, MYSQLI_ASSOC or MYSQLI_BOTH /blah/blah/blah.co.uk/index.php What exactly do I want mysqli_fetch_array ($ result, 0) so that I hold all the results, but do not receive this error message Thanks for any and all help. CODE: $ dbc = mysqli_connect ($ Dbhost, $ dbuser, $ dbpass, $ dbname) or die ('This is a dying error'); $ query = "Select a different continent from travel"; $ Result = mysqli_query ($ dbc, $ query) or die ('This is a query query error'); $ Line = mysqli_fetch_array ($ result, MYSQLI_BOTH); // (0 $ result, 0) to b...

php - how can i create the menu that will open only the article in joomla? -

I've created articles and menu items that link to that article. But now what I want, when I click on the menu, it should open only the article (no template feature, no headers, no footnotes and even menus). Opening the article in a new window is what I got from Googling if I URL & amp; Tmpl = component, it will only load the component, and it will only show the text but I'm not sure how to add this parameter to the menu item from the admin screen. The admin screen shown is not editable !!! Or should I develop a custom menu module to get it? Thanks for the help Tannem Create a new menu item - External link and Then paste the full URL into the box.

python - Referencing further pages with ReportLab -

I am using ReportLab to create long questionnaires and I like the text If you do not have allergies, go to page 168 Does the ReportLab offer some feature that can help me with this reference work ? I understand that this problem is likely to be an two-pass algorithm first, in the near future, the number of pages are found, the second pass passes the text, the proper pages Adjusts references to Is there something in the ReportLab API that can help in this context? Two years after the original question, but I will prepare an answer for those who Can be generated from a search engine: Reporterb supports internal links Read the related section of the Report Lab User Guide [Available Only PDF] ... PDF supports internal hyperlink link type, destination type and a very broad range of events Land, which is to control a click can be started the moment we only support the basic ability to jump into the second part of the document to another part, and zoom the window aft...

Difference between a visit in Omniture and Google Analytics -

GA : «Duration of contact between visitor's browser and A Specifically the website, when the browser is closed or shut down, or at that time the user becomes inactive on that site for a specified period. Omniture : «A visit is a term that refers to access to a visitor's website. The journey begins when a person first sees a page on your company's website. This will continue until the person has stopped all activity for 30 minutes on the site. For example, if you log in to www.omniture.com, then you have an example of the incoming visit until 30 minutes of inactivity, ie you have closed the browser or left your computer. If you are inactive for more than 30 minutes, and then you log on again, then it is considered a new journey. The sitelist completes a trip after 12 hours. In this scenario: A user sees a page, then closes once again and closes the browser before returning GA : it is counted as a 2 visit Ommiture : it Calculates a 1 visit because the ...

dojo - dijit.Dialog not redisplaying in IE7 and IE8 -

Using Dojo verions 1.3.2 The following code is working fine in FF and Chrome, but scratched in IE 7/8 Works in a manner that I'm taking a dialog that is already being displayed and just wants to change its contents. ODialog contracts are always the same, work or not. What is happening is that the dialog disappears, but underlined so that the user is forced to refresh to work again. DIALOG_PAGE); Dialogbox.attr ("Style", "Width: 400px;"); Dialogobox.attr ("Content", OdiLog Contents); DialogBox.show (); } I had the same problem I decided after adding material after adding it Is: // New content does not appear in IE7 / 8, unless we hide the first dialog (dojo.isIE! == undefined) {this._dialog. Hide (); This._dialog.show (); } This._dialog.layout (); / /> >

JavaScript Coding Examples -

I am looking for an open-source JavaScript project from which I can learn about good coding practices, patterns, etc. I am For example, the example of 'horrible code' equivalent to Java might be perhaps the Spring Project Internal. I have thought about taking a look at prototype / jacquire, but any better people (better than I mean, the maximum returns in the investment time)? I am talking about the proper substance as you would find in the Java / Ruby project, as opposed to the 50 line snippet of code to animate my buttons - (maybe this is a little bit javascript-IST ). / P> It seems that when it comes to javascript, everyone has a different perspective. In general, I think the node.JS source code is very clean and straightforward ... This is not a browser scripting, which I think is that 'pure' gives a nice picture of the JavaScript code that does not mess with the host object or the DOM Does. / P>

mysql - What's faster/more efficient: Continuous Deleting OR Continuous Updating + Intermittent Deleting? -

I have a cron that runs through several rows, removal of "bad" people (as per my criteria) . I'm wondering what would be best to optimize the script. I can do one of the following: Remove the "bad" rows immediately after finding the same cron. Update the same cron immediately as the "bad" rows as "1", which means bad. Again, I can set another chronometer which runs and eliminates all the rows with an "1" status for an hour. To make it fast, I think I have an index on "status", but it can also ruin the display. Any suggestions? I have not experienced in my SSQL but on other DBMS I have worked on an update and then Removes no help Just try and remove with huge amounts of data, measure the time when the update + is removed, it helps if there is an index of the columns that act as the criteria of "bad" people.

c# - Should static properties in a Constants class implement backing fields? -

I have a class constraint, in which I store many stable readonly variables. What should I do: Only for private static reading, int _maxThings = 100; ... Public Stable Int Maxings {Meet {Return _ Max Tips; }} This seems unnecessary to me. Is there any reason I just do not do the following? Public Fixed In Maxings {get {return 100; }} edit OK, so this was the brain's fart of a question. I think this issue is that if I am going to set this value in initialization, then it uses a static backing field and a public exposes only the property which will not need to be static. If I am comfortable in setting up a public stable property for a hard price, there is no functional difference between them and just have to cook it in the assembly. As long as I do not remember any other concept, in this case I only use a const. Thanks for the reply. you should public const int maxThings = 100; There is no reason why I can look at the properties in this case to use. ...

php - PayPal IPN returning a shopping cart or order ID for post-processing -

I have successfully postponed my custom shopping cart to PayPal - this order simply processes beautifully, and receives payments However, it sends back the data to the URL that I specified in config. The code is based on the library found here: Then I successfully verify the data back to PayPal in PayPal - it's all great, this is my dilemma - how can I know what the IPN Confirming? I'm not using PayPal's shopping cart, I have my own ID, this is my car ID in my database, and when I get an IPN for that cart, I will "close" the car I want to save and save it as an order to look at the later date. I have tried to pass an additional custom field which tracks PayPal with the redirect, but that value has not been returned to the IPN. Documentation is only lacking on X.com, so I have not received any help. Do anyone have any experience with PayPal and IPN? It does not necessarily have to be with PHP - I can explain the code - but if you have a way of sending a...

How to convert images (GIF, JPG, JPEG, PNG) to TIFF in PHP? -

How can I convert images with PHP? (IM Test on Win XP) I remember that I used the ImageMagic to do this, but now I can not find the code, and no examples can be found on Google. A code sample will be Also, I think this link will Check it out at: , And for this the stack overflow question also See Better Information:

iphone - CoreData the save method is not working -

I am creating an app using coredata for my iPhone There is a visual controller with the object that I want to save that object to my favorite ViewController. By clicking on the Favorites button I want to save my object in managed objectText, but I am getting the following error: End the app due to an incomplete exception 'NSInternalInconsistencyException', Reason: 'Trying to do another operation with a fetch already in progress' * My code: // Step 1: Favorite the object * NewFavorite = (favorite *) [NSEntityDescription insertNewObjectForEntityForName: @Popularity SFTP Dropbox Account object Contaks: managedObjectContext]; // Step 2: Set properties newFavorite.name = @ "Company"; NSLog (@ "% @", newFavorite); // Step 3: Save Item NSError * Error = Zero; If (! [Newfavorite.managedObjectContext save: & amp; error]) {// This is where the program crash NSLog (@ "Unsolved error% @,% @", error, [error user information]); Abortio...

asp.net mvc 2 - Spark View Engine with custom HTML Helpers -

I have system inside my project. Some self helpers have been added to Web.Mvc, and this is the default Asp.net mvc visual engine namespace system. {AntiXss.HtmlEncode (Input) by defining auxiliary like Web.mvc {public static class XSSHelper {public static string H (this HtmlHelper helper, string input); } Public stable string sanitize (this HtmlHelper helper, string input) {AntXSS. GetsSafeHtml (input) returns; } Public Static String Hscript (HtmlHelper Assistant, String Input) {Antivirus Back Javascript encoding; I gave it to & lt;% = Html.h ("& lt; h1 & gt; some string ")%> / P> Now that I'm using a spark view engine, I can not seem to do this work. I got the following error: 'System.Web.Mvc.HtmlHelper' has no definitions for 'H' and no extension method 'H' type 'system does not accept the first argument is. How do I get spark to see additional assistants? Edit: I also do Post text "itempro...

c# - Compare all items from a Collection with items from another Collection? -

अरे, मेरे पास यह कोड है: ArrayList सरणी = नया ArrayList (); arrayList.add ( "एक"); arrayList.add ( "दो"); arrayList.add ( "तीन"); सूची के & lt; DataRow & gt; डेटा लिस्ट = गेटडाटालिस्ट (कुछ पैरामीटर); अब मैं जांचना चाहता हूं कि क्या arrayList में डेटा लिस्ट के तत्व हैं स्ट्रिंग आईटैरेआर [0] में डेटा लिस्ट में है क्या ऐसा करने के लिए एक अच्छा लघु कोड संस्करण है? धन्यवाद: -) .NET 3.5 में यह जांचने के लिए कि एक सूची में से सभी तत्व अन्य सूची में समाहित हैं: bool परिणाम = सूची। सभी (x = & gt; डेटा लिस्ट.संसाधन (x)); या आप इसे और के संयोजन के द्वारा कर सकते हैं: bool परिणाम =! सूची। (डेटा लिस्ट) को छोड़ दें। कोई भी (); अपने उदाहरण में आप एक ArrayList का उपयोग कर रहे हैं। आपको इन विधियों का उपयोग करने के लिए इसे सूची & lt; ऑब्जेक्ट & gt; या सूची & lt; स्ट्रिंग & gt; में बदलना चाहिए अन्यथा आप arrayList.Cast & lt; ऑब्जेक्ट & gt; () । bool परिणाम = arrayList.Cast & lt; ऑब्जेक्ट & gt; ...

Nhibernate - How do I get ordered distinct results with QueryOver? -

सार्वजनिक वर्ग सिटी {आभासी सार्वजनिक लंबे आईडी {get; सेट; } आभासी सार्वजनिक स्ट्रिंग नाम {get; सेट; }} शहर तालिका में डुप्लिकेट नाम हैं और मैं डुप्लिकेट को निकालना चाहता हूं। मैं यह भी चाहता हूं कि परिणाम आईडी के अनुसार क्रमबद्ध हो। पहले मैंने निम्नलिखित प्रश्न के बारे में सोचा। आईडी से शहर के आदेश से अलग नाम का चयन करें; लेकिन यदि यह चयन 'DISTINCT' निर्दिष्ट है तो 'ऑर्डर बाय मदों के साथ चयन को सूची में दिखना चाहिए।' अपवाद। देखने के बाद मुझे लगता है कि मुझे करना चाहिए: नाम समूह द्वारा नाम के नाम से नाम का चयन न्यूनतम (आईडी) तो मेरा सवाल है कि मैं कैसे कर सकता हूं प्रश्नकर्ता के साथ यह प्रश्न? यह आईसीआरटीरिया में संभव है: Var list = session.CreateCriteria & lt; City & gt; () .SetProjection (प्रोजेक्शन। समूह ("नाम")) .ऑडऑर्डर (ऑर्डर। एएससी (प्रोजेक्शन.मिन ("आईडी"))। लिस्ट & lt; स्ट्रिंग & gt; (); लेकिन यह वर्तमान में क्वेरी में संभव नहीं है, क्योंकि। ओडरबी (आईपीओजेक्शन) अधिभार गुम है। एक बार लापता अधिभार...

java - Spring Transactional Management - Where to Place the Annotations? -

If I have a transaction-managed class, in which I have two methods Zero OuterMethod {transcriptural ("manager"), zero inner method (data amadeata) {// write some things} {this.InnerMethod (somedata)} Is this valid? I can not take it for writing in the database for some reason, though it does not give me any errors. Spring does not use bytecode instrumentation to implement AAP. Therefore it can be assumed that if a method of an object calls another method in the same object, the method will not be applied to the call. Spring Although this method calls the Propose Process as true and to apply the aspect on the call. by using. Can use. The information may be a little late, but in my knowledge it is still accurate although the "expose proxy" is not sure about the flag) See

assemblies - How to access namespace which is part of different project? -

I have two C # .net projects Project 1 and Project 2 (single name) I am using Visual Studio 2005 . I have right click in Project 2 in context of Project 2 and choose 'Aad Reference'. Both projects are not of the 'application' project type Class library type I have some classes in Project 2 which I want to use in the project. After adding the reference I try to use Project 2 Import Namespaces in Project 1 But I think that its not available Visual Studio Intelligence is not showing me the desired namespace, is there any suggestions Sector could show you how to many projects using namespaces and classes? Edit: - Is this because there are separate assemblies for both projects? Thanks Be sure that the sections you want to reach are public Assume that you have the following class in Project 2: Project 1 in Project 2 after Project 2: Namespace Project 2 {Public class} {}} 2 You can use this class: Namespace Project1 {using Project 2; Click on the public c...

templates - WPF MenuItem header text is partially hidden -

I show items in a menu, but, for unknown reasons, I'm having trouble showing the whole text menu Here's a screen capture of the problem: Here is the markup code that I used to template it: & Lt; / ItemsPanelTemplate & gt; & Lt; Datatomplate x: key = "sidebiremmetlet" & gt; & Lt; MenuItem command = "{binding}" header = "{binding text}" background = "alisblue" & gt; & Lt; MenuItem.Icon & gt; & Lt; Image width = "16" height = "16" source = "{binding image}" /> & Lt; /MenuItem.Icon> & Lt; / MenuItem & gt; & Lt; / DataTemplate & gt; & Lt; Style x: Key = "SideBarStyle" TargetType = "{x: type menu}" & gt; & Lt; Setter property = "item template" value = "{static resource sidebartystem)" /> & Lt; Setter Property = "Itemspanel" value = "{Static Resources SidebarTypeTemplate}...

Silverlight DataGrid TemplateColumn adding problem with ComboBox -

I am facing a lot of problem with this problem. I have created a datagreat and it has Datatapplet column. Here for xml & lt; Data: DataGrid x: name = "Portgrade" height = "124" margin = "23,0,17,2" vertical alignment = "bottom" itemsource = "{port ports grid data, mode = two}" auto generate column = " Wrong "selectionmode =" single "& gt; & Lt; Data: DataGrid.Columns & gt; & Lt; Data: DataGridTextColumn Header = "Specific Port / Range" CanUserResize = "False" Width = "130" Binding = "{Binding Port}" /> & Lt; Data: Datagrid temp column header = Resize "timeout" canus = = "falls" width = "130" & gt; & Lt; Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combobox x: name = "timeout combobox" isEditable = "true" selectedIndex = "{bining time...

php - How to fix odd value returned from select list populated by database -

Using PHP I'm populating a dropdown list with values ​​taken from the MySQL database, the list looks fine, my The problem occurs when I try to recover the selected value. I am defining a variable and giving it a dropdown list name for the POST array: $ variable = $ _POST ['dropdown list']; But the contents of $ variable are \ {value} " Why is it putting in {else}, and how can I get rid of them? Can I really use it to get? If you are part of the price Curly brackets are getting that they are in their HTML code. The probability of your code is something that resembles '{$ value}'; instead of echoing "{$ Value}" or something like that.

c++ - Memory Management + containers -

मित्र कंटेनरों के पास स्वचालित मेमोरी प्रबंधन तंत्र है जब मूल्य प्रतिलिपि निर्माता का उपयोग करके डाला जाता है और जब मूल्य हटा दिया जाता है, तो प्रत्येक मान के लिए नाशक को बुलाया जाता है। बहुत सारे धन्यवाद Div> कंटेनरों में स्मृति प्रबंधन नहीं है, ऑब्जेक्ट्स को मेमोरी प्रबंधन है। obj a; {Std :: vector & lt; obj & gt; ख; बीपीश_बैक (ए); // कॉपी 'ए' यहां दी गई है) // प्रतिलिपि 'ए' में वेक्टर नष्ट हो गई क्योंकि प्रतिलिपि दायरे से बाहर नहीं निकलती विशेष रूप से वेक्टर // 'ए' अभी भी मौजूद है वैकल्पिक रूप से obj * a = नया obj; {Std :: vector & lt; obj * & gt; ख; बी। पुश_बैक (ए); B.push_back (नया obj); // पॉइंटर प्रकार obj यहां लिया जाता है) // ओबीजे डिस्ट्रक्टर नहीं कहा जाता है / को मेमोरी रिसाव मिला क्योंकि obj निर्मित अभी भी मौजूद है, लेकिन कोई संदर्भ हटा नहीं है; // लेकिन अभी भी

c# - Error passing socket to child process when using STARTF_USESTDHANDLES flag with CreateProcess() -

I am trying to call a FastCGI application from the Net - this means that I have a socket in a socket The child's procedure must pass. But what I see is that if I use the flag, the child application fails when he tries to read from the socket. I did this job that I do not specify STARTF_USESTDHANDLES , but I want to understand why . , especially as my understanding This is my C # application (error checking etc ... has been removed for brevity) string Command = @ "fastcgi.exe"; Socket Listener = New Socket (Address Family.Inter Network, SocketType.Stream, ProtocolType.Tcp); Listner. Bine (new IPPpoint (IP address no., 8221)); // Duplicate the socket handles so that this unsafe protected filehandsal childhandle; Basic methods. Duplicate Handle (Native Methams.GetContrent Process ()), New SafeFileHandle (Audience Handle, False), Basic Methods. GateContent Process (); Out-of-child Handle, 0, True, Basic Methods .DUPLICATE_SAME_ACCESS); Basic methods. STARTUPINF...

PHP Unit Testing with Zend Auth and Zend ACL -

I have an application that is behind the login and uses zend_acl and zend_auth. During pre-transmission, I have an ACL plugin that makes all the rules for ACL. I also have an eth plugin that checks whether you are logged in or not, and if so, according to ACL Access the requested resource. As the entry is completely APL, only when you are logged in. Unit testing seems to be impossible, or more likely that I'm seeing something clearly. In my unit test setup method, I am following a successful login which gives a zend_auth example, the passing test indicates that this login was successful. However, if I send it to another location through the test, or evaluate whether a user has access to a given resource, then it is always rejected as a plugin They are not logged in yet. I'm not sure why this is so, can anyone give advice? For example this pass: public function testLoggedIn () {$ This-> AssertTrue (Zend_Auth :: getInstance () - & gt; Hendency ()); } ...

SQL Server 2008 - Capturing all SQL Statements Hitting the Server -

Can anyone give any suggestions for capturing all SQL statements to send out our profiles in the SQL Server is? I am aware of two ways of doing this, but I have to ensure that I am ignoring any existing DM visual etc. Thank you very much. In SQL Server 2008 These seem to be quite low. Perhaps due to the lack of UI support, but more flexibility than SQL traces (more events and better filtering possibilities) is more flexible than more light weight (due to better filtering and possibility of skipping events rather than blocks) The example syntax is below. Although there are many more events, actions, predictions and output target possibilities. if existing (select * from form names. 'Test_trace') drop event session [test_trace] ON server; Add event session [test_trace] to server sqlserver.sql_statement_completed (add action (package0.callstack, sqlserver.session_id, sqlserver.sql_text), add event sqlserver.sp_statement_completed (action (package0.callstack, sqlser...

java - How to build a URL in the JSF page? -

I type & lt; in my Facelet XHTML page. A & gt; I'm trying to create a tag, but I do not understand how to do it. This is what I am doing: & lt; H: Output links value = "static / faq.xhtml" & gt; FAQ & lt; / H: OutputLink & gt; Am I using the right tags? This should work. Open the page in the WebBrover, rightclick and view the source to see the JSF-generated HTML output. Send you a & lt; A & gt; element must be generated. Provide an HTML "a" value for an anchor element "value The HTML code rendering JSF components is referenced here: Href "has been presented as the value of the attribute.

php - pagination and row numbering -

I want to print an attached number with each term. It's like every platform. I currently use it: $ i = 0; While ($ post = mysql_fetch_assoc ($ rs)): $ i ++; Let's say I print 5 posts per page This is what happens: # 1 first post # 2 second post # 3 third post # 4 fourth post # 5 5th post, 2 # 1 6th post on page # 2 7th post # 3 8th post # 4 9th post # 5 Go to 10th post I do not want to do this, I want to remove the most numbers from the first page SQL: SELECT u .group_id, u.username, u.title, p. Poster, P.M.Sece, P. UID = PPster Inner Group Group GSIG GIGIID = UFMIP_ID WHERE P. as Thread_ID, GG_title, GG_UserChittlest Post. Thread_ID = $ id LIMIT $ startIndex, $ perPage You must recognize a variable that Multiply the page number by the number of elements per page that you have on the page, unique ID of the first element of page N.

java - SAXParser '&' concatenation problem -

I am currently using SAXParser with SAXParserFactory, and I want to cut 'string' to '& amp; ; Symbols For example: "The nation has made our world and everything in it" becomes "everything" in it. Obviously, I do not want to do this. In the XML input, the character can be properly defined as & Amp; amp; How can I fix this? Try {SAXParserFactory spf = SAXParserFactory.newInstance (); SAXParser sp = spf.newSAXParser (); / * Get the XMLReader of the SAXParser created by us * / XMLReader r = sp.getXMLReader (); // It handles XML and the Entries array XMLHandler handles = New XMLHandler (); // Register event handlers r.setContentHandler (handler); string URL = "http: //foobar.xml"; r.parse (URL); return handler. Gateentreas ();} This is in my default handler class .... public zero characters (four f [], integer start, integer length] {string value = new string ( Ch, start, length); if (! Value.trim (.) Equals ("")) ...

c# - Must declare a body becase it is not marked abstract, extern or partial -

I created the following class, however, I can not get it before error: It is necessary to declare a body because this essence is not marked as external or partially The class is as follows: Using the system ; Using System.Collections.Generic; Using System.Linq; Using System.Web; Using System.Runtime.CompilerServices; Namespace VDSORDAL {Public intangible class object compiler & lt; T & gt; : ICompair & lt; T & gt; {Public object compactor (string comparisonfield, string direction); Fixed Private String Comparison; Public string comparison movie {get {return compareField; } Set {compareField = value; }} Get Public String Directions {return {return CompareField; } Set {compareField = value;}} Public abstract integration (T x, TY); }} Can someone point out the error in my way and also tell me what I am doing and why is throwing this error? You must add a method body to the public object compaiper (String comparisonfield, string direction); I thou...

wcf binding - Custom processing of CSV file via WCF -

I have a project through which I have a WCF service, which I basically leave the file in a specific directory are given. I have a basic custom transport channel argument that I published on the web, which is about transport on a file. However, there is another issue, the content of the file itself is going to be a comma-delimited file of the file data. For each line in the file, I want a specific method to apply to the service. This is the part with which I have trouble Has been there. I understand that it will include a custom message encoder. Here is the napkin design behind me that encoder will receive a stream of data (read the file) from this file and create a message from it (I still do not talk a little bit on that part). Then, the fact is that in order to read in the stream, the more data file transport channel should tell it to read the second message from it. Am I on the right track? The second question is how should my encoder handle the buffed calls. I get the value...

windows - RegistryTreeChangeEvent via C# & WMI -

"itemprop =" text "> I am getting this error: Exception without verb: System.Runtime.InteropServices.COMException (0x80042001): Exception from HRESULT: in MyNamespace.Program.Main on System.Management.ManagementEventWatcher.Start on System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode, IntPtr errorInfo) () (String [] args) 0x80042001 { } Somedir \ Program.cs: line 16 And here is my C # console app that I am using to view the registry: Using the system ; Using System.Management; Namespace MyNamespace {class program {static void key (string [] args) {var viewer = new ManagementEventWatcher (New WqlEventQuery (select "RegistryTreeChangeEvent *")); Var Handler = New MyHandler (); Watcher.EventArrived + = Handler. Valid; // Start looking for Event Viewer. Start (); While (handler.eventshinstead) {// nothing} // stop watching the watch. Stop (); } Public class MyHandler {public bool EventHasntFiredYet; Public MyHandler ()...

javascript - setTimeout not working in Greasemonkey user script when JS disabled in browser -

I am working on a project for which my user needs to run on scripts pages because they Javascript is presented without execution. This means that we have to browse with disabling javascript. I am facing a problem, however, when I try to delay the execution of the function within my script. Whenever I call window.setTimeout , the function I pass is never executed. I think this function is actually calling unprotected voice instead of window, is there a way to resolve it? When I enable javascript, call setTimeout should work properly and everything else in my script is working fine without enabling JavaScript. Help! Even if Greece's JavaScript goes with high privileges, as Pausi said, SetTimeout Functions have been added to the JavaScript space of the page - wrapped in a closure as needed. (In normal operation, the Grezamky example often goes to the timer of any timer, which is set, there is a fire.) Therefore, if the page's main javascript is disabled, ...

sql - what is the query to return Name and Salary of employee Having Max Salary -

What is the maximum salary for employee's name and salary? ) Note that if more than one employee has maximum salary then it will return more than one line

python: getting element in a list -

def do_work (): medications_subset2 (b, ['हाइड्रोकोडोन', 'मॉर्फ़िने', 'ऑक्सिकोडोन']) डीईएफ़ दवाइयों_सब्सेट 2 (बी, ड्रग्स_एनेडेड): मॉर्फ़िन = ['एस्ट्रैमर पीएच', 'एविंज़ा', 'कॉन्टिन', 'दुरमोरफाह', 'इनुमोरप', 'कादियान', 'एमएस कंटिन', 'एमएसईआर', 'एमएसआईआर', 'ऑरमोरप ', ORAMORPH SR', 'ROXANOL', 'ROXANOL 100'] प्रिंट दवाओं की स्वीकृत [1] [0] मैं ASTRAMORPH कैसे प्रिंट करूं? मॉर्फीन में पहला तत्व मुझे दवाओं का उपयोग करने के लिए की आवश्यकता है, क्योंकि यह do_work से पारित किया जा रहा है क्या आप इस तरह मोर्फीन को परिभाषित कर सकते हैं? drugs = {' मॉर्फ़िन ': [' एस्ट्रैमर पीएच ', ...],' हैड्रोकोडोन ': [...], ...} तब आप इसका संदर्भ प्रिंट (ड्रग्स [दवाएं] [1]] [0])

c++ - Building an index: Copies or pointers? -

I have a data structure that stores ... well, data. Now, I need to reach different pieces of data in a slightly different way, so I'm essentially building an in-memory index. But I'm thinking: should there be index pointers or copies? To expand, say that I have class widget {// how to access the list of gear .. private: std :: list & lt; Gears & gt; M_gears; }; Now, I have two widgets s, and between them there is a mapping between their gear s presently , This boost :: unmodified_map> Gear, gear & gt; But gear is quite heavy square, and I think making such copies is bad design. I can store an indicator, but then mapping is valid for the lifetime of this widget s, and you can call - & gt; s ... (and if the std :: list turns into std :: vector , it becomes more complex Is ...) In relation to copies, it is actually a bit bad: two boost :: unordered_map s, one for each direction, therefore, every gear For , I'm making it up...

iphone - Memory Warnings cause app to crash -

Every time I get a memory warning, my app crashes in the debugger, it crashes on the line where I try to set myself. NavigationItem.rightBarButtonItem = myButton; I implemented RéceiveMemoryWarning: and did not include [Super Dondemimary Warning]. Even though it still crashes why my view is being reloaded?

php - how to generate javascript embed code -

How to generate embd code / blog like widget with CodeIgniter? Please give me an idea how to create Let's say that your widget is presented as an IFrame HTML has been done. For example & lt; Iframe src = 'http: //somedomain/.../some-widget'> & Lt; / Iframe & gt; Now, your embed code can be as simple as: & lt; Script src = "http: //yourdomain/.../ some js" & gt; & Lt; / Script & gt; You have to do something inside. JS: document.write ("& lt; iframe src = 'http: // somedomain /. ../some-widget'></iframe>";);

jquery - JQueryUI Dialog display issue -

मेरे पास निम्न कोड है जो एक JQueryUI डायलॉग पॉपअप बनाता है। $ j (' & Lt; div & gt; & lt; / div & gt; ')। HTML (संदेश) .dialog ({autoOpen: true, bgiframe: true, बटन: {' Dismiss ': function () {$ j (this) .dialog (' close ' )}}, करीबऑन ईस्केपः सच, ऊँचाई: 'ऑटो', मोडल: सच, पुन: आकारणीय: सच, चौड़ाई: 400, शीर्षक: 'एक त्रुटि हुई'}); जब पॉपअप पहले उपयोगकर्ता को दिखाया जाता है तो यह एक विशाल शीर्षक के साथ, नीचे की छवि की तरह दिखाई देता है। मुझे पता है कि पॉपअप में कोई अतिरिक्त सीएसएस वर्ग जोड़ा नहीं जा रहा है। जब मैं जॅप्पी पॉपअप का आकार बदलता हूं, पॉपअप सही ढंग से प्रदर्शित होता है शीर्ष लेख को तुरंत रीसाइज किया गया है और ठीक से प्रदर्शित किया जाता है। क्या किसी और से पहले इस पर चल रहा है? मैंने पहले कभी भी उस समस्या में नहीं चला, लेकिन मैं सुझाव दूंगा दो चीजें: यदि आप लक्षणों को ठीक करना चाहते हैं और समस्या नहीं, तो आप एक शैली ओवरराइड कर सकते हैं: .ui-widget-header {ऊंचाई: 100px} आप एक समय में अपने विकल्पों को ...

Determine if the action was "Build" or "Build and Run" in XCode? -

I have a custom application that requires a few things to set before running it. I want to add it as a build phase, so even when I "build and run" I can use it, but when I do not "build" it. How do I see it in a shell script, which runs at the end of construction phase please Do not ask Do not know whether there is a special trigger "build" vs "build and run "For projects you want to see a different build configuration, projects come with debug and build configurations, perhaps a flag may be set in a" config and build ". If the flag is set, then if you set up your setup, it will be easy to switch the configuration, I do something similar to my debug output and only convert it to debug configuration.

ruby on rails - MongoDB and Authlogic, any gotchas? (mongomapper) -

Authlogic, by itself, looks very active for MongoDB (especially MoguPa): However, one interesting thing is that it looks very awesome and simple. Has anyone used it, or has any experience / recommendation for any authlogic mongodb implementation? I went ahead and implemented it in a spike, changed from restful_authentication to authlogic. The only code I received was the need to add the following code /app/models/user.rb In the class user, MongoMapper: : Document ... def self.quoted_table_name "users" end end The quoted_table_name was being requested while creating a new user_session, so I added it and everything was great and happy. Highly recommend. UPDATE Once I start using multiple users, the login feature stops working for me if you're the first user If you use a password, you have to log in it, but nothing matters. I switched to this initiator: which is good, I also recommend watching the divisive, whose mangamaparar is out of the bo...

BeautifulSoup and ASP.NET/C# -

Is any beautiful soup integrated with ASP.Net / C # (possibly IronPathon or otherwise)? Is there a beautiful soup option or a port that works well with ASP.Net / C # intended to plan the library readable Text from any random URL. Thank you There is a similar project, but for this the C # and .NET Edit: To remove all readable text: document.DocumentNode.InnerText Note that this & lt; Script & gt; The text of the tag will return. To fix this, you can press & lt; Script & gt; ; tag, like this: foreach (doc.DocumentNode.Descendants ("script") var script in ToArray ()) script.Remove (); Fairytale (D.C. DocumentNode.Descendant ("Style") contains a variety of style. Toure ()) style. Remove (); (credit)

load testing - 100% connreset with httperf? -

I'm wondering what the importance of connreset with the helpperf is, while testing a single webpage, I did not get any errors I have a simple with many pages When using the log file, I'm getting 100% connreset errors, tips on how to overcome this? . Man page says the following: connreset: A TCP connection has failed many times due to a reset from the server. Typically, a reset is received when the client tries to send data to the server, at the time the server has already closed the end of the connection. NT servers also send resets when trying to establish a new connection, when the queue queue completes. To prevent this from happening, I had to disable the server-side connection off to get my own server implementation. It is known that the server was very aggressive about closing connection connections.

Connection attempt from disallowed node on ejabberd -

I am getting and trying to ping the node before the second release with an ejabberd cluster, I get: "Connection to Disapproved Node" I know this is not a cookie issue, because cookies match on both servers. I know this is not a cookie issue, because the cookies match on both servers Just to make sure, if you checked that both nodes are actually using the same cookie value, you can erlang: get_cookie (). can be used in use.

database - Connect to IBM DB2 with .Net using only .dll reference -

I would like to connect to a DB2 database, especially an iSeries version, using .NET and C # .dll And not installing any software on the server We currently use IBM.Data.DB2.iSeries.dll , which is installed as part of iSeries Access for windows. I do not have to install all this. But apparently I have no choice because other providers IBM.Data.DB2.dll need to be installed before it works as per the stack overflow post: Anyway in your code one. Is there any way to connect to DB2 from .NET c # code to referring to Dll and not installing other software on the server? I know you can do this with Java and JET Open Toolbox () Why can not you do this with the net? Here is a basic example that we are currently IBM. Data. DB2 How to use the ISROZ DLL string Sql = "select 1 from SCHEMAX.TABLEX"; System.Data.IDbConnection Connection = Null; IDataReader Reader = Faucet; Try {Connection = new iDB2Connection (Configuration Manager.ConnectionTracing.conction String); Connect...

How do I set the local document root in Apache? -

तो यह मेरी निर्देशिका संरचना है / / परीक्षण index.php blah.php blah .php तो /test/index.php में मेरे पास इस तरह के एक लिंक है & lt; a href = "/blah.php">Link</a> लेकिन मैं इसे /test/blah.php , रूट कोड में blah.php से लिंक नहीं करना चाहता। असल में, मैं एक स्थानीय दस्तावेज़ रूट सेट करना चाहता हूं। क्या यह .htaccess का उपयोग करके या httpd.conf ? यदि एक टैग पर /test/index.php का href सेट है तो / Blah.php , तो यह ब्राउज़र है जो कि यह व्याख्या करता है कि दस्तावेज़ रूट में किसी फ़ाइल की ओर इशारा करते हुए। तो आप जिस तरह से आप href विशेषता का निर्माण कर रहे हैं, उसे बदलने के बिना आप क्या हासिल नहीं कर सकते। आपके पास इस के लिए कुछ विकल्प हैं: आप दस्तावेज़ रूट के बजाय वर्तमान यूआरएल के सापेक्ष लिंक उत्पन्न करने के लिए आगे स्लैश छोड़ सकते हैं। /test/index.php में blah.php इंगित करने वाला एक लिंक /test/blah.php के रूप में व्याख्या किया जाएगा। आप अपने लिंक्स को उत्पन्न करने के लिए कुछ कस्टम कोड लिख सकते हैं। आपके पास my_...

jquery - setting plugin defaults? -

I'm talking to someone else's plugin, not my own I want to do it without touching my code (I want to do it in a separate file). I thought there was a way to do this, like something: $. Default.pluginname or something else? It relies entirely on the plugin and how it was written. For older people, this time is usually supported ( most of the time) but it is definitely not guaranteed and certainly is different from that they plug How did these coded ... Because there are dozens of different fundamental ways to do this. If you want to post the actual plugin that you want to modify then we can tell you the best method, but there is no guarantee that you can without Editing your code Edit: Because you're using you can highlight the default setting before calling .colorbox () : $ colorbox.settings.opacity = 0.5; // Background opacity for example Anyone set this way.

dynamic - python : read a line, then instantiate a class named in the line -

I'm sorry, if I was not enough in the title, do not hesitate to fix it if you I have a file where there are class names, that is: classa classc classc classc classc classc Then I line it line I want to read and make that class dynamic. I will do something like this in php: while (! Eof ()) {$ class = fread (..) $ tab [] = new $ square (); } How would you do this in dragon (if this is possible)? Thanks a lot! EDIT: After reading the answer, what I'm planning to do is to be more precise: I'm not planning to do such simple stuff. It would be very complicated: I want a user who does not know programming to edit a simple text file and copy / paste some announcements and change its assets and relaunch a kind of parser That would be the reuser to show the results of batch and complex operations. Simplified Example of a file: Car: (red, 4_wheels, 4_places) bike: (blue, 2_wheels, 1_place) Then the user will change it in: Car: (red, 4_wheels, 4_places) Ca...

php - Drupal - using boostrap to check logged in user outside of Drupal not working -

I'm trying to figure it out. I can not get boothrap to work properly when the drupal is out of the dior. It works fine if I run this code in Drupal dir but does not work up a level. My lookup path is / public_html / drupal / I am running script / public_html. The $ user logged user is not returning. I've ensured that this is not a cross-domain issue (i.e. www.domain.com vs domain.com). chdir ('/ path / to / drupal'); Include_once (include './/bootstrap.inc'); Drupal_bootstrap (DRUPAL_BOOTSTRAP_FULL); Global $ user; If ($ user-> UID) {print "log in"; } Other {print "logout"; } If the user is not recognized by Drupal in your separate script, then the possibilities There are more that it does not get the proper session cookie You should check the cookies set by your normal dryup installation and see if they also send it to your script. If not, then check the $ cookie_domain variable in your Drupals settings.php - it is comm...

vbscript - In QTP, is it possible to have an anti-description? -

I have the dollar amount, some of which are links Example: $ 0.00 $ 1.00 QTP- How do I say this in shortest form of land? set desCurrencyString = Description. DesCurrencyString ("micclass"). I think I can only use the Boolean value to see where this link is and somehow capture other parts of the list, Possibly like this: set desCurrencyString = description. Create desCurrencyString ("text"). Regular Express = true desCurrencyString ("text"). Value = "\ $ [0-9] *" set arrCurrencyStrings = Page.ChildObjects (desCurrencyString) desCurrencyString ("micclass"). Value = "link" arrCurrencyStrings.Remove (desCurrencyString) 'or something else, this line will be edited later Just loop through a web tab. To get cell text, use the GetTelData (line, kernel) method of WebTable object. Obtain the child objects contained in a cell, use the childitum (roe, colonel, mike class, intandex) method of the table, table ob...

Return the fields that do not pass validation in PHP to jQuery -

I am using jQuery with PHP for form verification. I want to return those fields which are not valid, so I can highlight them using javascript This is my attempt to use PHP (validate.php): & lt; Php ... $ a_invalidInput = array (); $ = $ _POST from ['to']; $ From = $ _POST ['from']; $ Email_to = $ _POST ['email_to']; If (empty (from $)) {$ a_invalidInput [] = 'to'; } If (empty ($ to)) {$ a_invalidInput [] = 'to'; } // Validate email address if (empty ($ email_to)) {$ a_invalidInput [] = 'email_to'; } Other {// More recognition for email} ...? & Gt; This is my jquery code: ... var data = "to =" + + + "and from =" + + + " & Amp; email_ to = "+ email_to; $ .ajax ({url: "/ validate.php is included", type: "post", data: data, success: function () {// highlight field which passes verification}}); ... I'm not sure whether I am on the right path or not and how to r...