Posts

Showing posts from June, 2011

Really basic Django E-commerce? Where do I start -

I am trying to establish a truly basic ecommerce site with Django, and to find the best place I'm trying to start. I am relatively comfortable with the framework, but have never done any kind of development of e-commerce in any language, so I want to learn some of the best practices so that I can not make any big or obvious mistake. I have seen Satchmo, and even went to install and play with it, but it looks more like it than my preference. I basically want to show a list of things to users, and they want to click on a button to buy one. No car, no shipping, just click on a button, join the authorize.net (or something similar) to the transaction, and then display a confirmation page. Any suggestions or online tutorials have found people helpful? Tutorial in another language maybe. Or maybe the lightweight Jenga plug-in that does not try to do everything like Saito? I am coming for a while. Thank you! What I have recently done is actually, I think that Sachel is now

.net - w3wp.exe keeping files locked after processing in webservice -

I have a webservice and I have noticed that after executing the webservice some of the DLLs are logged in the wwwroot folder Are there. After the restart of the PC, the problem is resolved. Do I have something in my code that releases DLS? Iisreset / stop will close iIS and will release DLL's IIS will restart the backup. If you recycle an application pool, then Lock of DLL will be released until no one kills your website again, and receives a new lock.

cocoa - How do I specify the block object / predicate required by NSDictionary's keysOfEntriesPassingTest? -

For learning purposes (for practical - yet) purposes, I use the following method on an NSDictionary to give me If a group of keys has been returned using a test defined by me, unfortunately, do not know how to specify the ingenious. NSASA KeysofprintspringTest: - (NSSET *) KeyofentrespacingTest: Understanding Bull (^) (ID, AD OBJ, BOL * stop)) example For, all my values ​​are NSURL, and I would like to return all the URLs present on port 8080. Here is my busted coding - although it is not really, I understand that this would be correct: NSSet * mySet = [myDict keys * Stop) {If ([[Ozbase port] is Eval: [NSNumber numbers: 8080]]) {return key; }] And that's because I get the following compiler error back: Incompatible block pointer type 'zero' ('^' ( Struct objc_object *, struct (*) Objc_object *, BOOL *), 'Expected' BOOL (^) (struct objc_object *, struct objc_object *, bool *) ' What do I remember I am appreciating an indicator on some

kernel - Reliability of UDP on localhost -

I know that UDP is inherently underlying, but when connecting to a local host, I hope the kernel connection is different Handles because everything can happen internally, in this special case, is UDP considered a reliable protocol, or will the kernel still junk some packets when the burner is over? I repeat a related question. To be portable, always hope for your UDP sockets or get from order data.

java - referencing ints from other classes -

How do I do this if I want to refer to an int from another class? increases the public class zoom {Personal Image Image; Public int zoom controller = 20; Public zoom (reference reference) {super (reference); Image = context.getResources () getDrawable (R.drawable.icon). SetFocusable (true); } @ Override Scared Protected Zero (Canvas Canvas) {Super. Don (canvas); Image.setBounds (getWidth) / 2) -zum controller, getHeight () / 2) -zum controller, getWidth () / 2) zoom controller, (getHeight () / 2) + zoom controller); Image.draw (canvas); }} Class HelloOnTouchListener applies OnTouchListener {@Override Public Boolean OnTouch (see ARG0, MotionEvent arg1) {Back to Truth; }} In this case I want to refer to the zoom controller from the first class in the second HelloOnTouchListener class. You have to create some gates like the first class. public int GetZoomController () {return zoomController; } And it will be in your audience. ((zoom) arg0) .getZoomController (

Ruby environment messed up, How to uninstall ruby-gems-rails from Leopard? -

In my Mac Leopard all messes in my Ruby environment and I want to uninstall the entire Rabi, Mani stack and I want to re-establish them from scratch. How can I do this? Please point me to good resources on the net. Thanks And have you tried ?

data binding - Silverlight 4: How to trigger an Animation when TextBlock’s Text is changed during a DataBinding? -

I have a user control that is set on the datacentext visual model. User controls have some textboxes and text boxes, Attributes are bound to see. I would like to do a little animation when the value of the property of a visual model changes, but I do not think there is a way to do it in the Silverlight. In WPF we can use properties such as notification and binding notifications. The goal is updated to modify but they start disappearing from Silverlight, in my case the animation is not based on the value of the property, which means that I do not want to start the animation when the value of some property is for instance 5 is. Instead the animation should change the value of the property every time (Content for the user to highlight by changing) How to do this in WPF is the answer: But I used Silverlight 4 How can I do this? "itemprop =" text "> You should be able to include this in the expression mix to be done using the new trigger stuff 4. There Ne is

css - HTML Table width in IE? -

Image
I'm using the table to display a set of data, my HTML code goes here ... < / P> & lt; Table range = "1" cell exposure = "0" cell padding = "0" style = "width: 780px;" & Gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td style = "width: 780px; height: 25px;" & Gt; & Lt; East width = '100' style = 'width: 780 pixels; Wrap-wrap: break-word; '& Gt; The data goes here .... & Lt; / Pre & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td style = "width: 780px; height: 25px;" & Gt; & Lt; East width = '100' style = 'width: 780 pixels; Wrap-wrap: break-word; '& Gt; The data goes here .... & Lt; / Pre & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; This table works fine in Firefox, Safari and IE8. But the problem arises in

google app engine - appengine log console extremely slow -

I am using a dragon app engine and I'm finding that the log console on the local development server is very slow this window The output shows about 5-15 lines of volume per second, is it unique? I think it is very slow that it disrupts my debugging time to wait for log data. I think this situation can be as good a response as possible in any form. Actually, I stopped and reopened the Google app engine launcher, and the output was returned appropriately quickly, if someone has a suggestion that why this happens, So it would be great for now, though, at least it slowed down.

php - Json_encode Charset problem -

When I use json_encode to encode my multilingual string, it also changes to special characters. What should you do to keep it? For example This gives something like ["\ u015f \ u00fc \ u011f \ u00e7 \ u00f6"] but I want ["şüğçö"] Try it out: & lt;? Echo json_encode (array ('şüğçö'), JSON_UNESCAPED_UNICODE);

MYSQL and Array with PHP for create Tag Cloud -

I am trying to create a tag cloud for every user in my page, I am using PHP5 and MySQL My table is named "tag" and I want to create an array, but in summary, the table below, array user1 array = {[car, 1], [cat, null], [Pen, 1], [DVD, 1], [can be for CD, tap]} user name totaltag tag 1 tag 2 tag 3 tag 4 tag 5 admin 5 car cat Penn dvd CD user 1 1 1 1 user 2 1 2 12 1 user 3 3 2 10 1 Do it better: Username tags user 1 car user 1 pen user 1 cd user 2 car user2 cat

vba - To pull data into Microsoft Excel 2007 with web queries -

How can I enter a username and password for dragging data from a Web query into Microsoft Excel ??? Can any solution be made to resolve such a problem? If you can pass the URR and PWD queries as arguments (i.e., user name = Your name or something) Then just create string web queries (such things, HTTPQuery or a library to do something)

Solr/Lucene Scorer -

We are currently working on a proof of concept for a customer using Solr and to configure all the features Are able to except for scoring. The problem is that they want the scores that fall into the bucket: Bucket 1: Exact match on Category (Score = 4) Bucket 4: Partial Match on Name (Score = 1) At first we had developed a custom equality class, which would return the correct score on the grounds and on an exact or partial basis. The only problem is that when a document matches both the category and the name, the scores are added together. Example: Search category for "restaurant" gives details of documents in the restaurant, in which there is a word restaurant on their name and thus a score of 5 (4 + 1) gets them, but only 4 get. I think we will need to develop a custom scorer class to work for it, but we have no clue about how to include it in solar. > There is probably a simple solution that we do not know. All suggestions are welcome! Scorers

iPhone like picker control using Javascript\Jquery -

इस सवाल का पहले से ही एक उत्तर है: < / P> 3 जवाब मैं iPhone- जैसे "पिकर" नियंत्रण जो वेब में इस्तेमाल किया जा सकता है किसी तीसरे पक्ष के नियंत्रण या फ्लैश \ चांदी का उपयोग किए बिना केवल HTML, शैली पत्रक, जावास्क्रिप्ट \ jquery आदि की अनुमति है। अगर कोई मेरी मदद करता है तो मैं सराहना करता हूँ अग्रिम धन्यवाद .... कुछ साल के अंत तक, लेकिन यहां जवाब भी है! < / Em> अन्य जेकीआई UI प्लगइन्स की तलाश में मुझे यह मिला: मैंने इसका इस्तेमाल नहीं किया है, लेकिन यह जाहिरा तौर पर समर्थन करता है मेनू पंक्ति आइकन टैब स्क्रॉलबार पासवर्ड फ़ील्ड टॉगल स्विच पिकर वैसे भी, आप संभवत: googling द्वारा अन्य (संभवतः बेहतर) विगेट्स को ढूंढ सकते हैं चीयर्स!

how to convert a list into string in tcl -

मैं Tcl में स्ट्रिंग में एक सूची को कैसे रूपांतरित करूं? सबसे अधिक संभावना है कि आप क्या चाहते हैं, हालांकि यह निर्भर करता है कि आप ऐसा करने के लिए क्या प्रयास कर रहे हैं, यह आवश्यक नहीं हो सकता है। , फलस्वरूप आप अपनी सूची को रूपांतरण के बिना स्ट्रिंग के रूप में उपयोग कर सकते हैं

c# - Is it the best practice to extract an interface for every class? -

I have seen the code where each section has an interface that implements it. Sometimes there is no common interface for them all. They are just there and they are used instead of concrete objects. They do not provide a common interface for the two classes and they are specific to the domain No, it is not the best practice to remove the interface for every class It may actually be reversed, however, the interfaces are useful for some reasons: Test support (socks, stubs). Implementation Intangible (forward on IoC / DI) Collaborative things such as C- and Contra-Virus support in C # To achieve these goals, the interface regards is a good practice (and in fact it is necessary for the last point). Depending on the size of the project, you will find that you do not have to talk to the interface at any time or you are continuously removing the interface for one of the reasons mentioned above. We maintain a large application, some parts of it are great and

php - Indexing different type of Entities/Objects with Solr Lucene -

Assume that I want to index my store via solar lucene. I have several types of entities: product, product review, article How can I index those types to my Lucene, but how to do each with each schema? You want to index 3, which are called products, product reviews and articles, of each index May be your schema. The difference between Lucene and a relational DB approach is that a line in DB translates roughly to a document in Lucene Note: Each document can have its own schema (which is relational There is another difference from DB).

syntax error in python: -

इस सवाल का पहले से ही एक उत्तर है: < / P> 10 जवाब मैं अजगर सीख रहा हूँ यह इस स्क्रिप्ट में वाक्यविन्यास त्रुटि देता है मैं समझ नहीं पा रहा हूं। आयात अपवाद वर्ग फ़ाउंड (अपवाद): पास x = [1,2,3,4,56,73,29,35,12,32, 63,12,76,75,8 9] जबकि सही: कोशिश करें: परीक्षण = int (raw_input ('पूर्णांक को सूची में चेक किया गया है:')) x = 1 में y के लिए count = count = y == परीक्षण: मान के रूप में मान बढ़ाएं ई-प्रिंट को छोड़कर: प्रिंट "एक वैध पूर्णांक नहीं (% s)"% (ई) को छोड़कर: मुद्रण "% (% d)" (% d) "% (परीक्षण, गिनती) अन्य: प्रिंट" (% D) "% (परीक्षण, गणना + 1) x.append (परीक्षण) अंत में: सूची" प्रिंट एक्स प्रिंट "" अमान्य सिंटैक्स & amp; यह इस पंक्ति में डबल कोट को बंद कर देता है: प्रिंट "मान्य पूर्णांक नहीं (% s)"% (e) प्रिंट कोष्ठक के बिना, अजगर 2 से है, आपको print () । आप किसी अपवाद को % d - % d पूर्णांकों के लिए प्रारूपित नहीं कर सकते।

jquery - showing loading image still shows "browser loading image" icon -

shows an Ajax loading image until I load all Asennc my images that is running this code and download the real image . $ ('img.loadable-image'). CSS ('Background', 'Transparent URL (/images/ajax-loader1.gif) No-Dual Center Center') $ ('img. Loadable-image'). Load (function () {$ (this) .css ('background', '');}); This works shows my Ajax loading icon until the images download, but the background will also show Here is my original image html: < / P> & lt; Img class = "loadable-image" src = "mysite.com/validimage.jpg" range = "0" height = "50" width = "50" & gt; Here I get it is a screenshot: As you can see on the left, you see a little Ajax loader But also any suggestions? , which defines that and Code> src attribute. Unavailable category src & lt; Img & gt; Set Tag feature if it's a valid image is not set on the URL, then you

excluding a column in csv file with regex -

Is there any way to exclude / remove / change a field from a CSV file with some regexp in Notepad ++? I have some data such as a CSV file: '1', 'data1', 'data2', 'data3', 'data4', 'data5' , 'Data6', 'data 7', 'data 8', 'data 9', 'data10', 'data 11', 'data 12', 'data 13', 'data 14', 'data 15' 'Data 16', 'data 17', 'data 18' 'data 19', 'data 20', 'data 21', 'data 22', 'data 23', '\' data 24 with some commas, Here and there are some "double quotes" and full pillar. ', 25 Data', 'Data 26' The problem I am experiencing is with data24 where I have the \ '< / Code> and then "" and some wild characters like , and . This is especially fixed in 24 areas. For the purpose of clarity, I have registered a new line here. But the entire text

How to generate a GUID in Oracle? -

Is it possible to automatically generate a GUID in an insertion statement? In addition, what type of field should I use to store this GUID? You can use SYS_GUID () function to generate a GUID in your insert statement: insert mytable (guid_col, data) values ​​(sys_guid (), 'xxx'); The primary dataType RA (16) for archiving GUIDs is Gopinath Answer: select sys_guid () double dual union all select sys_guid () Association Dual Download from 88FDC68C75DDF955E040449808B55601 88FDC68C75DEF955E040449808B55601 88FDC68C75DFF955E040449808B55601 only separated by a letter 88FDC68C75D D F955E040449808B55601 88FDC68C75D email F955E040449808B55601 88FDC68C75D F F955E040449808B55601 Maybe useful:

How to verify XML attributes using XSD enumeration? -

मेरे पास निम्न XML अनुक्रम है & lt; property name = "a" value = "एक्स" / & gt; & Lt; प्रॉपर्टी नाम = "b" value = "xx" / & gt; मैं y, z] और "b" जैसे मानों की सूची में "a" को सीमित करना चाहता हूं [Xx, yy, zz] जैसे किसी अन्य सूची में क्या यह संभव है XSD का उपयोग करके, और यदि यह कैसे हो? यदि यह संभव नहीं है, तो आप कैसे सलाह देते हैं एक्सएसडी सत्यापन के लिए तैयार करने के लिए एक्सएमएल प्रारूप को बदलने के लिए? (मेरे पास दो से अधिक property नाम / मान जोड़े हैं) एक्सएसडी नेस्टिंग का उपयोग करके आप क्या चाहते हैं (सशर्त सत्यापन)। इसलिए जब आप एक विशेषता के मूल्यों को दूसरे (जैसा) के मूल्यों पर सशर्त बनाने के लिए एक्सएसडी का उपयोग नहीं कर सकते, तो आप XSD का उपयोग कर सकते हैं तत्व के तत्वों पर सशर्त गुणों का मान: & property; propertyNameA मान = "x" / & gt; & Lt; propertyNameB मान = "xx" / & gt; इस मामले में प्रत्येक संपत्ति का अपना तत्व है, और प्रत्येक &quo

asp.net - Convert my aspx page to png image -

I am generating an ASPX page after which I have to convert to PNG and store it elsewhere. A similar situation with me was asked before but no reply was received yet. I also tried the code which is said by Swapnil Phagade, but the code is constantly requesting for loading and no conversions are being made in fact. I have found some solutions on the web but they have webbrother control which I think can be used as windows, but I am building a web project. Can you give me an indication or suggest an article that shows the full example in doing this work. Thank you in advance. It looks like you want to:

If don't own proprietary database engine, what is best way to convert database to mysql? -

I worked for a very small company. I recently had to face the question that proprietary database engine proprietary database Whether or not the owner of the engine is a good way to change a proprietary database. If a large Oracle database file (or select your favorite proprietary database engine format), but does not have any license for Oracle database engine, then convert it into a MySQL database format to provide a good, fully reliable Can the method be read with the MySQL database engine? My question is very vague because the proprietary format is source, because there will be many sources and it seems that they will be "different and diverse". My suspicion is that there are not entirely reliable ways, especially if there are some proprietary formats for which it is possible for me, I still would be interested in knowing, though "different and varied" probably the real issue is. It is important to reduce cost, effort and correct conversion, so I think that t

Authentication problems between Groovy & CouchDB? -

Groovy is fairly new and I'm trying to write some test cases that the rest of the outside for Groovy Is the interface. To set up our test stability I need to clean Cochindi database and a simple script has been written to do this, but for some reason I am getting back the unauthorized message from Cochindi. Reduced the code and still can not see how easy the example script is. The admin user in CouchDB example is setup, but it is the only deviation from default setup. Username / password checked several times Annoyingly groovy counterclaims from the logs and connects 'curl -x ..' works from the cmd line. @ glitch (group = 'org.codehaus.groovy.modules.http- builder', module = 'http-builder', version = '0.5.0') Import groovyx.net.http. RESTClient RESTClient couchDBRestApi = New RESTClient ('http: // localhost: 5984 /') sofa DBRTAP.oth.basic 'Scott', 'tiger' ['mydb']. Encourage each {name -> def resp = couchDBRes

C++ multiple definition error -

To start with the answer to sth for this question: I was thinking that to solve many definition errors, if the following code is placed in the header file, then differently. CC files are included multiple times and linked together: template & lt; Typename T & gt; Square c {stable constant int k; Stable Ostream & amp; Print (Ostream and OS, CONST T & T) {Returns OS & lt; & Lt; T;}}; // common case template & lt; Typename T & gt; Const int c & lt; T & gt; :: K = 1; // Specialization Template & lt; & Gt; Const int c & lt; Int & gt; :: K = 2; Move specialization into one of the .cc files . Skip the template version in the header

asp.net - How do I load external Crystal Reports (2008) files in c#? -

Can anyone tell me that external crystal rocks (2008). Is it possible to load RPT files? Now I embed them so that they compile with my original. It would be nice if I make any changes in any report layout without rebooting. Is this possible? Thank you. Yes, it is possible in the following example, the .rpt file can be uploaded and then a Standard ASP.NET CrystalReportViewer is set as the source of control (in this case, reportViewer ). using CrystalDecisions.CrystalReports.Engine; ... report document document = new report document (); Document.Load (reportPath); //"C:\\path\\to\\report\\file.rpt "; ReportViewer.ReportSource = Document; ReportViewer.RefreshReport (); If the database credentials embedded in the .rpt file are incorrect, then they can be set as: using CrystalDecisions.Shared Tax; ... Private Zero ViewReport () {ConnectionInfo connInfo = new ConnectionInfo (); ConnInfo.ServerName = "dbservername"; ConnInfo.DatabaseNam

sqlite - Question regarding ideal database implementation for iPhone app -

So I have a question about the ideal setup for an app that I'm getting ready to build. The app is basically going to be a memorization tool and I already have an SQL database that I'm using for the app. The user will navigate through the contents of the database (using UIPicview), and select something to remember. If the cell of that row or data is selected, then it is put in a pool or a worthy view that indicates that your "need to remember the pool" when you go to that tableview, You can select, and the actual data will be populated. This is the thread. I know that there are, with the database interface, all the information in the table view will be deletable, in the event that they should not do it anymore ... There are some Different options, in this particular setup, is Core Data the easiest way? Is there any other way that would be better? I'm just looking for a point in the right direction, any help is appreciated !! Core data is going to b

How to suppress machine accounts in TFS work items -

In our TFS implementation, if I am creating a bug report, assigned "drop down" I can see backup account, and some others who have been made mandatory by our IT department). I think these accounts appear because they have been assigned administrator privileges on the local server, and so they are the Team Foundation Server Administrators. I would like to know that there is a way to filter these accounts. It is possible that some similar filters may be applied on Sharepoint as described here: It involves a bit more than that. You can do it like this (maybe more, but this is what comes into the mind immediately). First of all, you need to rest in editing the type definition of your type of work. First of all, install TFS Power Tools or it will give you the tools needed to edit tool items. This is done once, open Visual Studio, and go to Menu Tools-> Process Editor-> Open WIT from Server Work Item Type Open which you want to change to the drop down li

java - JDBC ResultSet total rows -

I am implementing paging in my application. For this, I run a query and get a result. Now I have to get the total number of records in this resultant for my paging calculation. How do I get it? I do not want to execute additional SQL, which gives me the total line. Add another option to count query as a sub query column in your query if your database is slightly If it is small, then it will execute only once. You will be able to use the query analyzer easily in your preferred database. Selection ID, user name, (users select number (ID) from users;

internet explorer - jquery not showing up in IE? -

I am pulling information from an XML file and div class = "long" works great But anchor does not work or does not appear in IE. It works in all other browsers but not IE? any idea? $ (this) .find ('desc'). Each (function () {var url = $ (this) .find ('url'). Text (); var long = $ (This) .find ('long'). Text (); $ ('div class = "Long" & gt; & lt; / div & gt; ') .HTML (long) .appendTo (' # link _ '+ id); $ (' & lt; a href = 'http: //' + url + '"& Lt; / a & gt;') .HTML (url) .appendTo ('# link _' + id);}); $ ('& lt; a href = "http: //' + Url + '" & gt; html (url) .appendTo (' # Link _ '+ id); ? You open your a tag.

asp.net mvc - mvc2 host on iis6 : The incoming request does not match any route -

I have to host my project on iis6, I can not change the IIS setting on the server. So, I modified the world. as shown below. If I add a default.aspx and browse the project, I get an error like this: Incoming request does not match any route. If I did not add the default ASPX, I found HTTP Error 403.14 ? Thank you Public Static Zero Register Routes {routes.IgnoreRoute ("{resource} .axd / {* pathInfo}"); ("Default", // root name "{controller} .aspx / {action} / {id}", new {controller = "home", action = "index", id = ""} // parameter defaults) ; ("Extension", // root name "{controller} .expx / {action} / {id} / {sid}", new {controller = "home", action = "index", id = "", ""} // parameter defaults)); ("ForGoogle", // root name "{controller} .aspx / {action} / {friendlyUrl} / {id} / {partialName}", new {controller = "home", act

compilation - error compiling gcc: undefined reference to libc_name_p -

When compiling GCC, there is only one error to complain about the gperf deficiency in the creation process May be very far-established. After installing Gperf and running, I hit an undefined reference for " libc_name_p ." I have seen the solutions, but they were not useful. When gperf was not installed, the compile script ran the command anyway, but an empty ./gcc/cp/cfns.h generated. Since this file was new to the source ( ./gcc/cp/cfns.gperf ), the makeup file was left alone and never again 'real' the file when gperf was actually To continue, run rm ./gcc/cp/cfns.h and try again.

sql - Select 2 Rows from Table when COUNT of another table -

Here's the code I have: SELECT `A`. * FROM 'A', 'A' on 'B' `A_ID` =` b``` value_1``````` where `b` is` value_2` and 'b' isusirid '' rand (No. 2 currently What this is going to do, this selection is made to 2 rows with A , when 2 rows A_id is not selected value_1 or < Code> value_2 in b and b are different for different users with the rows user id . Whatever I have to do, he too has to do this so that he also knows Does it already match in B with A_id (either in value_1 , or value_2 ) And userid , and if the N is more than the line, then it does not select the A line. The following will handle your first request: choose ... to be included on the left (bevelui = aa_id or bevalue_2 = a .adid) and bisirid = @ osirid where B & L; Non-worthless columns & gt; The tap is The part of the move is taking your criteria into the link of joining the left. I'm not sure that the second part of your

cruisecontrol.net - MSBuild find value in file -

So I run my work with ccnet and makes my work file what is the best way to read and recognize the file Is there any definite value from MSBield in it ?? This is dependent on your file. Plain Text with Multiple Rows If the file is like that: Building XXX ... build successful total time: 38 seconds buildfile : File You can use ReadLinesFromFile to read the file and CreateProperty to condition You can check the value with & lt; Asset group & gt; & Lt; ValueToCheck & gt; Advanced SUCCESSFUL & lt; / ValueToCheck & gt; & Lt; / PropertyGroup & gt; & Lt; Target name = "check value" & gt; & Lt; ReadLinesFromFile file = "@ (MyTextFile)" & gt; & Lt; Output Task parameter = "Lines" item name = "value" /> & Lt; / ReadLinesFromFile & gt; & Lt; CreateProperty value = "true" condition = "'% (value.)' == '$ (ValueToCheck)' & gt; Output

xml - PowerShell: How to add XmlElement to a non-root element -

I'm having trouble adding an XmlElement to a non-root element in PowerShell. Actually, this XML has been given: I want to receive it & lt; Clubs & gt; & Lt; Club name = "Boca" status = "1" & gt; & Lt; Region & gt; Bombonera & lt; / Region & gt; & Lt; Region & gt; Bombonerita & lt; / Region & gt; & Lt; / Club & gt; & Lt; Club name = "racing" status = "19" & gt; & Lt; Region & gt; Cilindro & lt; / Region & gt; & Lt; / Club & gt; & Lt; Club name = "barracas" /> & Lt; / Clubs & gt; I create an element, $ new = $ clubs.CreateElement ("barracas") when I want to add this element to the non-root node i.e. $ clubs.clubs.club + = $ new I get I try. "club" can not be set because XmlNode properties can only be used as string values ​​for setting. What am I missing? AppendChild on th

http headers - Triggering CSV download using Javascript? -

मेरे पास एक यूआरएल / reportcsv है जो कि content-type के साथ एक सादा पाठ सीएसवी उत्पन्न करता है : पाठ / सीएसवी और विषय-वस्तु: अनुलग्नक; फ़ाइल नाम = report.csv । मैं जावास्क्रिप्ट का उपयोग करके डाउनलोड करने के लिए इस सीएसवी ट्रिगर करना चाहता हूं। मैं दो विधियों पर विचार कर रहा हूं: / reportcsv दोनों सफारी में काम करने लगते हैं मैं सोच रहा था कि उनके बीच कोई फर्क है, या यदि किसी दूसरे की सिफारिश की जाती है मेरी मुख्य आवश्यकता यह है कि मैं उपयोगकर्ता को वर्तमान पृष्ठ छोड़ने के लिए नहीं चाहता। आपको होना चाहिए जब तक आप सामग्री-प्रकृति शीर्षलेख को सही ढंग से सेट कर रहे हैं तब तक ठीक। उस स्थिति में, location.href सबसे अच्छा तरीका के रूप में दिमाग में आता है क्योंकि यह आसान है और यह सिर्फ एक डाउनलोड लिंक को दबाने जैसा होना चाहिए इसके अलावा यदि आपका सर्वर फ़ाइल के अलावा किसी अन्य चीज़ के साथ उत्तर देता है (जैसे कि एक त्रुटि कोड), तो उपयोगकर्ताओं को यह देखने के लिए निश्चित होगा कि आइफ्रेम पद्धति में वे हमेशा प्रतीक्षा कर सकते हैं (यह मानते हुए कि iframe दृश्यमान नहीं है)।

CALayer: callback when animation ends? -

I'm going to animate several collars at the same time with some issues, and hoping that someone I can tell in the right direction. My app has an array of CALayer, each layer's status is set to (previous layer. position.y + previousLayer.bounds.height) , which is basically Combines them like tables. I have a method, every time it is called, adds a new layer to the stack and sets that its Y position is set to 0. The Y positions of all the other layers in the array are then filled with the height of the new layer (essentially pushing all the old layers down) Problems with me are coming, till the last animation is complete Stopping adding layers. When an inherent animation has ended, what is the way to say it? Alternatively, if I use CABasicAnimation and animation adfish , then there is no way to tell that when called animation code is? You can set the arbitrary value for the key on your animation object. This means that you are animating your layer with animati

MySQL update with two subqueries -

itemprop = "text"> Where do I delete a column from the MySQL table with the subquery that returns a date for the block, and another subquery I'm trying to is: UPDATE wtk_recur_subs_temp SET wtk_recur_date = (Choose final form from final, bb, wtk_recur_subs WHERE final_bb.msisdn = wtk_recur_subs.wtk_recur_msisdn) WHERE wtk_recur_subs_temp.wtk_recur_msisdn IN (final_bb To choose final_bb.msisdn) The response from the MySQL engine is "Subquery returns more than 1 line". use: UPDATE wtk_recur_subs_temp, last_bb, wtk_recur_subs SET wtk_recur_subs_temp Wtk_recur_date = final_bb.date WHERE final_bb.msisdn = wtk_recur_subs.wtk_recur_msisdn and wtk_recur_msubs_temp wtk_recur_msisdn = final_bb.msisdn error is because: set wtk_recur_date = ( Select final_bb.date from final_bb, wtk_recur_subs where final_bb.msisdn = wtk_recur_subs.wtk_recur_msisdn) ... final_bb.date value all date values ​​where final_bb and wtk_recur_subs msisdn match t

Proper way to build a data Repository in ASP.NET MVC -

I am working on using the repository method in my app and I have a very fundamental question. When I make my model, I have the Data.dbml file and then I'm putting my repositories in the same folder with it .... IE: < P> Data.dbml IUserRepository.cs UserRepository.cs My question is simple. Is it better to build folder structure like above, or is it OK to put user interface with user registrar CS? Data.dbml UserRepository.cs & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; which includes both the interface and the square Thanks in advance, just looking for "best practices". Normal best practice is to have a square or an interface per file. Here's a more general discussion, which I think applies to your case: As a new developer in your project, I would like to know that IUserRepository is present - without File Your UserRepository.cs Without

java - Spring Roo and aspect-oriented programming -

I am running my own experiment with Spring, and it feels good, but I saw this device model Heavy use of AOP on the layer. I am thinking of creating a real project using Roo and what I want to know: Why is AOP everywhere? Is this okay? What are the advantages and disadvantages of this approach? I am quite new to aspect-oriented programming and some guidance would be greatly appreciated. The Spring Framework has extensive AOP capabilities, and it is understood to use them in RU-based applications. AOP allows you to create a good and clean partition between business logic and system logic. When done properly, you get a more accessible and understandable codebase. Damage is a small demonstration, but I am not enough to worry about it. To know more about Spring and AOP, take a look at this. Uses AOP for things like Spring Transaction Management and Asynchronous Operations. Edit : As stated by @Shadeen correctly, AOP is compiled time-owed, so normal AOP affects pe

how to show products at magento homepage -

I'm new to Magenta; I want to add a list of products such as color, size, quantity and cart options in the Magneto frontend , But in the front page I see the message ... There is no product matching selection. I used the code in the homepage editor: {{block type = "catalog / product_list" category_id = "3" template = "catalog / product / list. Php "}} You also get the same message for the correct category id. Then do the following: Go to System> Index management and reindex all indexes. Click on the system >> Cash Management Flush Magneto Cache, then you will get the product.

c# - can i fetch the xaml button style on my dynamic button? -

I have a problem. I have some dynamic buttons and I want to give it some style like the other style (Xaml button) How can I get xaml code using C #? But it returns an N buttonlanguage.Style = (style) application. Present. Fund resource ("glassbutton"); Put your style in the resource section in XML and code-call from the back: myDynamicButton.Style = (style) myWindow.FindResource ("myButtonStyle");

geolocation - Determine iPhone user's country -

I need to figure out which country the user is in for an iPhone application. I probably have to turn on Location Services and some kind of reverse geocode has to be done. I do not really want to use a third party web service, so are there any other suggestions for determining the country from location services? Initially, I just have to check whether the user is inside or not, but it can change to add more countries in the future. I understand that the placement can not always be determined or the user may have turn off location services. In fact, I have to know that the user has come to close a special feature as being inside the US. EDIT: Upon further reading, it seems that MKRW is going to be a geocode, except that I do not want to display any map in my app, which means that I have permission to use it is not. Another trick you can try is checking the carrier: #import & lt; Core Telephony / CT Telephonon Network Info & Gt; #important & lt; Core Telephony

javascript - handle multiple event in web control -

Previously control how many events in the web control by using JavaScript for handling onstop and on the keyboard event in Texture < / P> There is no special trick for specifying individual event handlers in an element, Define as you want: var tArea = document.getElementById ("myTextArea"); // Define 'Open Paste' Handler - Note that Opera does not support `OnPash` Tieria.ONPist = function (avt) {} // Define` onkeyup` handler tArea.onkeyup = function (evt) { } If you want to assign multiple functions to the same event, then you have to use it for IE and other browsers.

android - fade in and out music while speaking a text -

I have an Android application that uses TTS (Text to Speech) API, everything is working perfectly But now I want to stop music (like the user playing music with the music) in or out, or even when the app speaks a text right now, I think both music and TTS messages are sent to the same stream (music) ), And understanding voice messages is important The Kil be. I have tried to run the text on a different stream, such as audio manager. STREAM_NOTIFICATIONS stops this music, but when the text is spoken, it does not come back, so I did not achieve the goal. Nothing has been received so far, so I hope someone can help here. Thanks! Whatever the last thing I'm doing though is not true, in case of a fairly dirty trick. Can help someone: It is fixed with requestAudioFocus and AudioManager's abandomAudioFocus methods on ADI 8. But for pre-versions, you can try to run TTS through a different stream channel, say STREAM_NOTIFICATIONS, then you just have to return the audio fo

java - strange messages in log file @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ -

I have an application server for network operation written with Java based on Apache Meena. Recently, in my log files, I have to face a strange behavior I noticed that the log file @ ^ @ ^ @ ^ @ ^ @ ^ @ the @ @ @ @ @ @ @ @ @ @ @ @ @ @ i mean that the unpredictable characters There is a huge amount because the log file gets hundreds of GB in a few hours! I have no clue about this problem and it is almost impossible for Google to do what may be the reason? Thanks in advance. = "post-text" itemprop = "text"> those characters are (NUL, ASCII values ​​0). Carat marking for control characters is zero characters ^ @

getting OSGI Bundle from Eclipse IConfigurationElement -

I have the extension that is implementing a particular extension point, and using the following acceptable method to do this : IExtensionRegistry Extension Registry = Platform.getExtensionRegistry (); If (extensionRegistry == zero) {return templates; } IntegralEngineering I want to get the version of defined bundles. I would use the following API, but the API for PluginVersionIdentifier is no longer valid: (IConfigurationElement e: config) {BlueprintTemplate Template = New BlueprintTemplate (); IExtension declaringExtension = E. GetDeclaringExtension (); . PluginVersionIdentifier versionIdentifier = declaringExtension.getDeclaringPluginDescriptor () getVersionIdentifier (); I could not find an alternative in the new API - from an IConfigurationElement i.e., how do I get the bundle version ID descriptor. Obviously, with the bundle I can get the version of the bundle. Getting Gate-Headers (), bundle-version value - but how do I get bundles in the first place ??? Platform

vb.net - Visual Basic my.resources icon file as image on button -

I am using resources in VB.NET (2008) to manage my files and have 3 icon files On which 3 buttons (buttons change to the button size pressed by the button) ICO_1.ico ICO_2.ico ICO_3. Ico But when I try the code given below, I get an error that "type type system.drawing.icon can not be converted to system.drawing.image". what is wrong? btnIcon1.image = my.resources.ICO_1 btnIcon2.image = my.resources.ICO_2 What it really says, a button wants a bitmap, not an icon You can use the icon. ToMail () But the resulting bitmap usually looks pretty bad. Use a good image editor to get better results, one in Visual Studio. As a result add bitmap to your resources.

c# - Specifying the Encoding format on XMLDoc -

I have a System.Xml.XmlDocument object and I want to change UTIL encoding from UT16 to UTF8. How do I do this? XMLDChat uses the own (dom-based) internal representation of XML; Encoding only comes when the XML is written and stored somewhere in the form of text, you can use the method and use XmlWriter using a XmlWriterSettings And you can pass in XmlWriter.Create . Is a property where you can specify UTF 8. For example: XmlWriterSettings xmlWriterSettings = new XmlWriterSettings (); XmlWriterSettings.Encoding = encoding. UTF8; (XMLRMRMMRRIR = XMLRRRT. (Filename, XMLRertifications) is using (XML Document YRTTO (XMLR))}

autotools - Path managment in Linux programs -

I have a newbie Linux programming question. Suppose I have a project that uses Autotools for compilation and deployment, and I have data files that have any data such as / var / something or / usr / share / something Can be installed in place etc., but in AutoConf, I can change these installation paths. How should the program find these files? How does it know where they are actually installed (if anywhere, the program should work even when it is installed, but it should walk from where it was made)? Usually if your program depends on files stored in a specific location, which can be tuned by the build system If you are qualified, you should give this path as a compiler definition and should use the definition in your program where you need it.

Performance issue on Android's MapView Navigation-App -

I have a question about making a navigation app faster and more stable. The original my app's layer is a simple map view, which is covered with multiple overlays (2 markers for start and destination and one for route). My idea is to apply a thread to display the path, so that the app will not be hanging during a more complicated route calculation (as it is now). After updating the thread, no update is shown, you may be able to help me with a little bit of my code below: The Private Class Uses MyLocationListener LocationListener {@Override changed the location to Public Zero (location location) {posUser = new GeoPoint (int) (loc.getLatitude () * 1E6), (int) (Public Legacy (*) * 1 A6)); New thread () {public zero run () {mapView.invalidate (); // Delete old overlay mapView.getOverlays (). clear (); // Update overlay elements and update basic map settingsText (); If (first refresh) {adjustMap (); First Replenish = false; } GetAndPaintRoute (); DrawMarkers (); }}; } Som

java - compile error: The import xxxx cannot be resolved -

I am developing a Java project using Eclipse. The project uses another project called engine , which I have added to my project build-path such as the dabo class called home Need to do, in my project named window , I've used the following code: import ee.asus.kernel.House; I found the following error in compiling the time: Exception in the thread "main" java.lang.Error: unresolved compilation problems: not resolved import House can not be solved by a type of house. A type of house can not be solved. A type of solution can not be solved on the main. ASUSUU FrameworksWindows & Lt; Init & gt; (Window.java 10) Main .ee.asus.GUI.StartApplication.main (StartApplication.java13) It is worth pointing out that my present and dubbed Do the projects use the same directory / package name? Does anyone have a clue where the error can be? The first part of the error can not be solved Package name: Ee are you sure that Will the package start? I see that

c# - Invoke target throwing invalid cross-thread operate exception -

विधि इनफ़ो माइ = टाइपफ (नोटिफ़िक इंक)। गेटमैथि ("शोकॉन्टेक्समेनू", बाइंडिंग फ्लेग्ज.इनस्टेंस | बाईंडिंगफ़्लैग नॉनपॉलिक); Mi.Invoke (सूचित करें, रिक्त); यह निम्न अपवाद को फेंकता है: {"अपवाद को एक अभिवादन के लक्ष्य के द्वारा फेंका गया है।"}} निम्नलिखित आंतरिक अपवाद: "क्रॉस-थ्रेड ऑपरेशन मान्य नहीं है: नियंत्रण '' जिस धागे पर बनाया गया था, उसके अलावा किसी थ्रेड से पहुंचा।" अगर मैं टिप्पणी करता हूं कोड की एक पंक्ति बाहर जो संदर्भ मेनू प्रविष्टियों के लिए छवियों को सेट करता है तो यह अपवाद फेंकना बंद कर देता है। कोई भी विचार? आप invoke विधि MethodInfo की भ्रामक हो सकती है, जो वर्तमान कोड के साथ वर्तमान थ्रेड पर बस को आमंत्रित करता है; को आमंत्रित करें जो UI थ्रेड पर एक प्रतिनिधि को आमंत्रित करता है। यदि आप सही UI थ्रेड के अलावा कोई थ्रेड से UI तत्व तक पहुंचने का प्रयास करते हैं, तो आपको यह अपवाद मिलता है। मूल रूप से आपको इस कोड को UI थ्रेड पर इसके बजाय निष्पादित करने की आवश्यकता है। क्या कोई कारण है कि आप ShowContextMe

How do I override file.write() in Python 3? -

The code below works on Python 2.6 but not on Python 3.x: old_file_write = File.write class file (): def write (self, d): if isinstance (d, types.bytes): self.buffer.write (d) Other: old_file_write (d) # ... something I can not change the code or f = open ("x") f.write ("...") f.write (b "...") sys.stdout.write (b "...") system Do not want to. Stdout.write ("...") print (b "...") print ("...") The problem is that the first line one in Python 3.x Error will occur: name error: name 'file' is not defined How can I do this in Python 3.x? In fact, two years later, I am still looking for a solution that will work on both versions (2.5+, and 3.x). For those, who are still wondering why I am looking for it, only to work with new versions of Python old code (other code, which sometimes you have not modified Can be able to create). This is not about my code, that is how you can write some code tha

cocoa touch - iPhone autoresizing -

Is the coco-touch a "stick-down" autorecising mode? Actually, I've got a UIImageView in the lower part of another UIView. When the size of UIView changes, I do not want to change the size of UIImageView, but keep it at the bottom of the UIView, while the other sub-views are only resizing in my UIView above the UIImageView. Is it easy to assume that you want to change the image view horizontally: P> imageview Facade mask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleWidth;

.net - Web service recieves null parameters from application using ksoap method -

I have seen topics that discuss this but no solution is posting. At the moment, I own I am testing norms for the Net Web Service. When parameters access the web service, then it adds an additional string, it also returns my application; But what I'm returning to is a string message, I have not passed the parameter soap: SOAP object request = new SOAP object (NAMESPACE, METHOD_NAME); request.addProperty ("A", "WORVER"); SoapSerializationEnvelope Envelope = New Soap Enification (EnoughEffe. Envelope.dotNet = true; envelope.setOutputSoapObject (Requests); http TransportS Android HTTPRSport = New HTTP TransposeE (URL); Try {androidHttpTransport.call (SOAP_ACTION, Envelope); Soap Affected Results = ( Soapprimitive) envelopegateresons (); // soap object result = (SOAP object) envelope. Gatresons (); string result data = result.Toss Test (); testTV.setText (resultData);} hold (exception e) {testTV.setText (e.getMessage ());} This is my simple.NET web serv

c++ - I want to make a wrapped acces type for certain internals of one of classes and I have some performance questions -

I'm writing an abstract matrix class (and some solid subclasses) for use on very different hardware / architecture etc. Want to write a line and column type, which provides a transparent context for the rows and columns of the matrix. However, I want to tune for performance, so I want this class to be essentially a compiler's construction. In other words, I am ready to sacrifice some dev temples as little as possible to the upper part of these deities. I think all (small) ways want to be inline? Keep the structure short? any other suggestions? The design for efficiency golden rule number 1 is really completely completely completely completely Understand and appreciate Understanding the cost of each compiler you are using Understand how the compiler uses memory Li> Make an appropriate design behind an envelope or napkin, if it is not suitable, then you are in trouble. Create small examples and test / disassemble Review the design again. Then test

Structuring an iPhone app with several views -

मुझे ऐप डिलीगेट, मेन वान्डो और विभिन्न दृश्य (और संबंधित contollers) के बीच संबंधों से उलझन में है। मैं क्या हासिल करना चाहता हूं, ऐप लॉन्च के तुरंत बाद, "मुख्य नियंत्रक" वर्ग में हाथ नियंत्रण करना जो बदले में निब-फाइलों को आवश्यकतानुसार लोड करता है (ऐप प्रतिनिधि में प्रोग्राम लॉजिक को कम करने के लिए) सबसे पहले, मुझे एक लॉगिन स्क्रीन लोड करने की आवश्यकता है, और आवेदन सामग्री को सफलतापूर्वक लॉगिन करने के बाद, जिनके तर्क मैंने पढ़ लिए हैं, आदर्श रूप से ऐप डिलीगेट के बाहर रहना चाहिए, इसलिए "मुख्य नियंत्रक" वर्ग। क्या "मुख्य नियंत्रक" की आवश्यकता है एक (रिक्त) निब फ़ाइल के साथ कनेक्ट होना है? क्या यह मुख्य नियंत्रक UIViewController वर्ग subclass हालांकि यह अपने आप में कोई GUI सामग्री रखती है और [खिड़की addSubview: mainViewController.view] के साथ instanciated किया जा रहा है; [खिड़की बनाने के लिए और जानकार]; ? या मैं alloc / init वाक्यविन्यास का उपयोग करना चाहिए किस मामले में, मैं विचारों को प्रोग्रामैटिक रूप से जोड़ने के लिए (उप) दृश्यों से विंडो का संदर्

sql server - Performance of stored proc when updating columns selectively based on parameters? -

I'm trying to figure out if it is T-SQL with relatively better performance (the SQL Server 2008). I need to create a stored procedure that updates a table. Prap accepts many parameters because there are columns in the table, and with the exception of the PK column, they all become zero by default. Looks like body this process: process create proc_repo_update @object_id bigint, @ varchar OBJECT_NAME (50) = null, @ object_type char (2) = null, @ Object_weight = integer zero, @ owner_id = integer zero - ... etc beginning object_repo OBJECT_NAME = IsNull (@object_name, OBJECT_NAME) set updates, object_type = IsNull (@object_type, object_type), object_weight = IsNull (@object_weight, object_weight), owner_id = IsNull ( @owner_id, owner_id) - ... etc where object_id = @object_id return @@ ROWCOUNT end so basically: only one column Update provided its corresponding parameters , And was to leave the rest alone. It works quite well, but as IsNull call value column will ret

ios - Question on ExtAudioFileRead and AudioBuffer for iPhone SDK -

I'm developing an iPhone app that uses the extended audio file service to read the audio file, and the audio bufferlist I try to use ExtAudioFileRead to store data in the structure. AudioBufferList is defined as: struct audiobufflist {UInt32 mNumberBuffers; Audiobuffer buffer [1]; }; Typing form audio booster list audio buffer list; and AUDIO buffer are defined string audio buffer {UInt32 mNumberChannels; UInt32 mDataByteSize; Zero * MDAta; }; Typingfund audio booster audio buffer; I want to manipulate mData but I wonder what zero * mean? Why is this zero? How can I decide how the data type is actually in MDTA? The MDATA field is marked as zero because of the different storage requirements Required. Basically a zero indicator can indicate anything in C. so you can mData = (ms = 32) * s (numerile); And then when you want to use it, put it in the desired data type. Sint32 * myBuffer = (SInt32 *) mData;

iphone - Isn't it better to create the subview hierarchy in -viewDidLoad rather than in -loadView? -

Docs says that the entire SubView hierarchy can be created in the load-weave. But it is also that this view-load-load method, which is actually good for overwriting to create a hierarchy, when the scene loads. I think that this is just a matter of taste but it may be useful to see that the view load is adjusted to accommodate any type of bar like the scene controller status bar or tab bar or toolbar Adjusts the frame of? Viewedload is created after after the visual hierarchy has been created. LoadView should create hierarchy and the visual property should be set if you are not loading with any NIB file. If you are looking, seeDidload is also called after a memory alert. When you receive the memory warning view, the download is asked to give you a change to release objects, which can easily be made in VisualDeload. To understand this better, read "Subcling Notes" and "Memory Management" section.

flex - Dynamic Google Maps API InfoWindow HTML Content -

I am working in Flash Builder 4 with Google Maps Action Script API. I have created a map, loaded some custom markers on it and added some mark up to each marker audience. When I load an InfoWindow panel, then the problem is that I want to dynamically set html content based on the information stored in a database. The problem is that this information can change in every two seconds, and every marker has a unique data set, so I can not really set it when creating a marker. I have a way that will load all records from my database in every minute or so many object variables. The basic foundation in the problem is that there is no way to identify a specific info window for me. , So I can not determine what information to draw in the panel. marker.addEventListener (MapMouseEvent.ROLL_OVER, function (e: MapMouseEvent): zero {showInfoWindow (e.latLng)}, incorrect, 0, wrong); This is my mouse event listener. The function I call, "showInfowindow" looks like this: private

security - md5 decoding. How they do it? -

I thought it is impossible to decode MD5 hash, but I got the device, which decoded them. But I do not know how they do in such a short period (this is about each other). Please help me understand. Thanks This does not decode an MD5 hash Uses what is called a ... This is the reason that it is very important to use it instead of storing a hash ...

c# - Spawning form in new process -

I originally created a Windows form to communicate the main form of my projects, the dialogue is now becoming very complicated Need to start it in your process? Is there a way to do this in the code or do I need to create a new project and link my files? I ask questions here - a new "form" needed to start a new process There is no reason. If this form is being complicated, then I advise to simplify it, if there is no reason other than applicability. As it is said, you can always start a new process through code. If you want to keep it in the same project, but want to start a separate process, you can launch XE with the command line argument, which allows you to load the "form" at startup.

xsd - How to specify read only text or label in an XML data schema -

I am referring to the XML data schema as explained here:. When I retrieve the data from the database and submit it to the client, there are text fields that I want to keep in the form of an unexpected display / just read the fields. For example, hypothetically in the following sequence, & lt; Xsd: element .... & lt; Xsd: element name = "employee name" xsd: type = "xsd: string" /> & Lt; Xsd: element name = "projID" xsd: type = "xsd: string" readOnly = 'true' & gt; & Lt; Xsd: element name = "give rent" type = "xsd: date" /> & Lt; Xsd: element .... & lt; Xsd: element name = "today" type = "xsd: date" to read only = 'true' /> & Lt; Xsd: element .... Where client performance will interpret XSD stream and will create input form. Of course, the label is a Fide Schema tag, for which I have been explained my needs to keep a readable field in the mi

hibernate - Deleting JPA entity containing @CollectionOfElements throws ConstraintViolationException -

I am trying to remove entities in which there is a list of integers, and I am getting constraintiolation exception due to the foreign key. It is possible that the table generated for the integer appears to be cascading in the mapped mapped collection. I have done a lot of research, but in the way I have seen the examples I have seen, a mapped collection of other institutions can be annotated; Here I am storing a list of integers. @Entity @Table (name = "CHANGE_IDS") @GenericGenerator (name = "CHANGE_ID_GEN", strategy = "org.hibernate: Here Class I is the relevant excerpt from'm storage. Id KenhancedkSequenceStyleGenerator "parameter = {@Parameter (name =" sequence_name ", value =" course_changes_seq "), @Parameter (name =" increment_size ", value =" 5000 "), @Parameter (name =" adapter " value = "submit")}) @NamedQueries ({@NamedQuery (name = "ChangeskgetByStatus", query = &

.net - XSD.exe question about include files and code generation -

If you have an XSD that contains references, is it possible to generate 2 different square files? 1 for xsd, and 1 for xsd? Instead of maintaining 4 XSDs, each of which shares 15-20 element definitions in common, I would like to end it with 4 XSDs, which are all common: My Scenario Refers to a fifth file with definitions, and code 5 cc files are ready to be used. No, XSD.EXE will generate classes for all imports. It supports XML (a level deep, though).

database - need a button that calls a php function -

I should have a button that calls a php function to support data displayed from DB. How do i hake I just found out that because the PHP server is the side it's useless. So any help please? This is a job for Ajax, as mentioned by others, if I can expand If you are starting, then I would like to make it easier for my life using the Javascript library. With this, your button may look like this: & lt; Input type = "button" id = "button_foo" & gt; Button & lt; / Input & gt; Here's how your JavaScript might look: $ ('button_foo'). Inspection ('moushudown', function (e) {new ajax request ('handler.php', {method: 'post', onSuccess: function (t) {$ ('table_bar'). Update (t.responseText);} });}); This may seem a little challenging at first, but I think the basic JS is a learning curve when using the library. The above code, which takes the handler.PHP output, and replaces the contents of an elem