Posts

Showing posts from April, 2012

How to get reference to jQuery selector for content just added via manipulation method? -

यदि सामग्री को डोम में उपयोग किया जाता है, उदाहरण के लिए, $ ("ul" ) .append ( "& lt; li & gt; परीक्षण & lt; / li & gt;"); किसी नयी सामग्री का चयन करने के लिए सामग्री को अभी जोड़ा गया है? एपेंड () विधि से रिटर्न वैल्यू असाइन करना JQuery ऑब्जेक्ट। var newContent = $ ("ul")। एपेंड ("& lt; li & gt; टेस्ट & lt; / li & gt;"); कोई भी कर सकता है var newcontent = $ ("ul li: आखिरी"); लेकिन क्या इसे और अधिक सीधे प्राप्त करने का कोई तरीका है? धन्यवाद का प्रयोग करें: लक्ष्य के अंत में मिलान वाले तत्वों के सेट में प्रत्येक तत्व सम्मिलित करें ... और .appendTo () तरीके एक ही कार्य करते हैं। मुख्य अंतर सिंटैक्स में है- विशेष रूप से, सामग्री और लक्ष्य की नियुक्ति में। .append () के साथ, विधि से पहले चयनकर्ता अभिव्यक्ति वह कंटेनर है जिसमें सामग्री डाली जाती है। .appendTo () के साथ, दूसरी ओर, सामग्री विधि से पहले होती है, या तो चयनकर्ता अभिव्यक्ति के रूप में या मक्खी पर बने मार्कअप...

Execute and output PHP on a C based web-server - Stuck! -

I am doing some research for the university and I am completely amazed, in fact I have a basic web server in C ( Which uses sockets). I have now got to create it so that any .php file can be run via PHP Compiler and output. The problem I feel is that I tried to use the system () and execlp (the latter was suggested by our lecturer) and do not know how to show it on the page instead of the terminal. This is an exclamation showing the current code. Please excuse all comments ... As you can see that I am trying all kinds of work to do it! CODE: if (strncmp (resource, ".php", 4) == 1) {// cout & lt; & Lt; "testing"; int php; int phppipefds [2], phppid; Four phpc; Pipes (phppipefds); Phppid = fork (); If (phppid == 0) {// children will read the pipe closed (0); // Close studin duplex 2 (ppppfds [0], 0); // reading pipe on studin clause (ppppfdf [1]); // We do not need to write pipe execlp ("/ application / mamp / bin / php5 / bin / php...

recursion - Why won't this Prolog predicate unify? -

I write a bill to find all the potential successor states for the repetition of A * and [(cost, State), ...], which stands at this time: addSuccessors (L, [], _). AddSuccessors (L, [x | T], oristist): - Add (Orgistist, Index, X), ((X, Index), L, List 2), Add Softers (List 2, T, Oristist). AddSuccessors (L, [x | []], Origin: - Add (Genesis, Index, X) (X, Index), L, L2), Add Softers (L2, [], Oristist). Adds something to the end of a list, Memambi receives the th element of a list (index) I know that they work, and when I down to L2 Undoubtedly, I find something like this. - addSuccessors (X, [1500, 3670], [0, 0, 0, 1500, 3670]) x = []; [(1500, 3), (3670, 4)] x = []; X = [_G1175]; [_G1175, (1500, 3), (3670, 4)] x = [_G1175]; X = [_G1175, _G1181]; [_G1175, _G1181, (1500, 3), (3670, 4)] x = [_G1175, _G1181]; ... Which is very disappointing because [[(1500, 3), (3670, 4)] is what I want to do after calling X, so it looks "text"> I am briefly after programmed...

Replacing Multiple XML Node values in TextPad -

I have a file with value "XMLNodeName" "CloseXMLNodeName" change the "value" for each entry of "NodeName" - I need to change all the 'values' with spaces How can I do this in a text pad? textpad? I'm not aware of him, do you have to do it with that device? Most editors will have to find / replace functions and you will be allowed to use regular expressions. Can you easily match all the features and can replace the value with nothing, is there only one feature for each tag? If you have a sample file that you are trying to modify, then it may be easier Edit - "Unknown" - I Not sure of the fact that without a single word, you can help you with a regular expression. Can you edit your post and show us an example?

c# - how to deal with quotes in a string when passing that string to the command line -

I can not find my head around quotation marks. EG, I have a string for MP3 with quotation marks: string ARTIT = "John" The Man \ "Do" Then I want to give it on a command line to avoid scenes. So I need my string (I think): ARTIT = "John \\\" the man \\ "doo" then It seems, every time I have my string (actual) " , I need \" . I have tried: ARTIST.Replace ("\" "," \\\ "") but It is not working. What is the correct way to handle quotes on the command line in my application? Be sure you are: ARTIST = ARTIST . Replace ("\" "," \\\ ""); Instead of: ARTIST.Replace ("\" "," \\\ ""); Is this already the case?

php - Merging sql queries to get different results by date -

I am trying to create a 'Recent Events' feed and it can not seem to be true or my query It is possible how to merge the results from two queries to sort them from the date. Plays a table, and another table holds the functions of these games / I am trying to get recent events to show users 1) Games that are publicly visible (published) 2) When a new game has been created and published Then, in my work table action id, gamid, user id , Action type, last updated in my game table gameid, start date, , Published, last updated I currently have such a query (simplified for easy understanding of understanding me) select action, actions.gameid, userid, functional work, verb. Remove from actions. (Select games.gameid, start date, createdby, published, games.lastupdate games from games published WHERE = 1 and the last update> today-2) published on actions.gameid = games.gameid where games (type 2, 4,5,6,7) and actions.lastupdate & gt; Games.lastupdate and publi...

c# - System.Data.Linq.ChangeConflictException: Row not found or changed -

I wasted a better part of the day and I am not close to understanding this issue, what was I in the morning? I am looping through a set of objects and marking them to delete. The second one always causes the exception to the above. Tb_invoice is an FK in tb_shipment. As always, I'm probably missing something very obvious, but I've already stripped a lot from this code that nothing is left, and I'm still getting this exception, it's a The local SQL 2008 example is definitely nothing and no one changes between invoicing and reading of the invoices. help! myDataContext db = new myDataContext (); IQueryable & LT; InvoiceDetail & gt; Pending Challan = db.GetInvoiceDetailPending (); Forex Currency (Invoice Discrete ID in Pending Invoice) {tb_shipment s = db.GetShipmentById ((Guid) id.shipment_id); Db.tb_invoices.DeleteOnSubmit (db.GetInvoiceById (s.tb_invoices.FirstOrDefault (.ID));} Variable fails (); // Other invoice fails Setting the "Cascad...

c - Texture mapping in OpenGL (with SOIL) -

I have a problem getting a texture loaded with SOIL to show this quad accurately. This is not clear, so I'm just writing 2D PRIZH engines, and this is part of the rendering (without the need for optimization of any doubt). I have not done any OpenGL in a few months, and I have been very messy. #include & lt; OpenGL / OpenGL.h & gt; # Include & lt; GLUT / GLUT.h & gt; #include "SOIL.h" #include & lt; Stdio.h & gt; Glumeil Linktex; Zero draw (GLint left, GLint right, GLint bottom, GLint top, GLuint texture) {// Draw clockwise glColor3f (1.0, 1.0, 1.0); Globbdenactation (gL_treatmentdevddd, texture); GlBegin (GL_QUADS); GlTexCoord2i (1,1); GlVertex2i (right, up); GlTexCoord2i (1,0); GlVertex2i (right, bottom); GlTexCoord2i (0,0); GlVertex2i (left, bottom); GlTexCoord2i (0,1); GlVertex2i (left, above); GlEnd (); } Zero performance (zero) {glClearColor (0.0, 0.0, 0.0, 1.0); GlClear (GL_COLOR_BUFFER_BIT); GlLoadIdentity (); Glotho (0.0, 240.0, 0.0...

How to get a live exchange rate data and apply it to an Android App? -

How to obtain a live exchange rate data and apply it to an Android app? Currently making a currency exchange in my project Welcome to the SO I would say that your The best thing to do is: Currency rate API, If there is a special problem you have to make your project I am sure that people will be happy to hear more information about your help here. Best, -J

svn - Using Subversion Tags to Deploy to Development/Staging/Testing Server -

Is there a good way of posting tags on a development or forum server? I imagine this The trunk gets stabilized, a tag is made with that build. The development server switches on the tag using that subvertion, updates the latest revision of files, no longer needs the files. The server account that I think can only access the repository. Does that mean? I am thinking in a way that I can end up manually copying files to the development / platform / test server. Note: I am not using a build server so I do not need any hooks. Besides, this is a windows box. The subversion does not have the actual tag as the CVS does (). However, you can tag using 'SVN Copy' which actually creates a branch. Nonetheless, this is a best practice for issuing live deployment from the version control system. You can be very fancy with accessories like automatic deployment. One thing I would suggest is that you do a clean checkout elsewhere somewhere before you release it. In this way you w...

php - how to replace 'abc' to 'a\0\0c' -

कैसे 'एबीसी' को 'a \ 0 \ 0c' से बदलना निम्न कोड विफल है और आउटपुट 'एसी' & lt;? Php $ input = 'abc' दें; $ पैटर्न = '/ बी / आई'; $ प्रतिस्थापित = "\\ 0 \\ 0"; $ आउटपुट = प्रीग_रेले ($ पैटर्न, $ प्रतिस्थापित, $ इनपुट); $ आउटपुट गूंज; ? & Gt; जब संदेह में अधिक बैकस्लैश जोड़ता है: $ प्रतिस्थापित = '\\\\ 0 \\\\ 0'; एस्केपिंग का पहला स्तर PHP स्ट्रिंग पार्सर के लिए है। दोनों एकल उद्धरण और दोहरे उद्धरण \\ के रूप में \ व्याख्या करते हैं। अगले स्तर regex पार्सर के लिए है। तो PHP देखता है: \\\\ 0 \\\\ 0 जो इसे के रूप में व्याख्या करता है: \\ 0 \\ 0 जो कि रीजेक्स पार्सर शब्दशः स्ट्रिंग के रूप में व्याख्या करता है: \ 0 \ 0

.net - How can I get close to non-nullable reference types in C# today? -

I have read many questions and answers. It seems that go to non-navigable types in C # (4.0) The best way is to hack John Skeet. However, it seems that C ++ / CLI has solved the problem by supporting the managed references: Foo% (Basic C ++ Foo & The compiler uses this function by adding logic to the modreq (IsImplicitlyDereferenced) by adding a function that is trying to call a function from C # results: '& lt; Function name & gt; ' Not supported by the language nonNullable ? Is there any way (reasonably - i.e. using reflection w / o) C ++ / CLI method Foo :: method (bar%) to C # Call [edit] It seems that currently non-noble ; There is nothing better than ... I wish to get some comments on C ++ / CLI content, because at least partial solution is already there. I have run it in some time ... I have not found anything better than a skeet solution . It has resolved all the issues that I have found, so I have to vote myself. I belie...

java - Unassigned chars in the ascii spectrum? -

Are there any unsecured, invisible characters in the ESCSI spectrum, which I can safely use as a newline marker? The idea is to edit the Markdown in a WYSIWYG fashion (such as SO) to create a Java wordprocessor, but displays the folded marcundo (as opposed to SO) in the frame. Each letter in ASCII (0x00 - 0x7F) () has been given a proper meaning. But why do not you just use \ n (0x0a) as the new code?

jquery - html button elemenents and onserverclick attribute in asp.net -

I am experiencing some very strange behavior using the html button with the onserverclick attribute. What I'm trying to do is to use jQuery to specify the default button on the page. With the default button, I mean "clicked" on that button when a user enters a hit. In the trial, I was killed during an input field and sometimes the "default" button was clicked and defined on the server in such a way that the on-the-fly-specific feature was defined. The second time a post was created without killing the server system back. To separate this issue, I made a case of minimum testing and saw some very interesting results. Client Side: & lt; Html xmlns = "http: // www .w3.org / 1999 / xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt; Title & gt; Untitled Page & lt; / Title & gt; & Lt; Script type = "text / javascript" src = "/ script / jquery-1.4.min.js" & gt; & Lt; / Script ...

How to use sql server 2005 stored procedures in asp.net mvc? -

I just started a new web application with asp.net mvc and sql server Done 2005 ... so far in my webform applications i used ADO.NET ... I am in my asp.net MVC aplication only I want to ... I have a database with all the stored procedures in sql server 2005 ... now I use my stored procedures In your MVC application Want to ..I will not use any ORM ... I do ADO I want to use Net Any sample controller which calls a model using the stored procedure And returns dataset to controller and then to see the controller to show records ... any suggestions ... I use a service or a repository, Responsible for creating the controller sends the scene. Ado me With the desire to use the net, the logic of avoiding the ORM is not convincing. Reality unit structure, Linq2Sql, subsonic, and NHibernate are very proven and reliable. Here's a quick sample that I put together ... It uses SQL connections and SQL command to call stored functioning ... Put this code in ...

Marquee text in Android -

How do I use Marquee Text in the Android application? postprop = "text"> Here's an example: Public class TextViewMarquee extends activity { Private TextView TV; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.main); Tv = (TextView) this.findViewById (R.id.mywidget); Tv.setSelected (true); // Focus on TextView}} XML file with TextView: & lt; RelativeLayout xmlns: Android = "http: // schema .android.com / apk / ridge / android" Android: layout_width = "fill_parine" android: layout_heil = "fill_perror" & gt; Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: Android: fadingEdge = "Horizontal" Android: marqueeRepeatLimit Android: scrollHorizontally = "true" Android: textcolor = "# ff4500" Android: Text = "Simple applic...

sql server 2005 - Merge data for same id -

मदकोड विशेषतागुण attributeValue ----------- ------------ -------- ---------------- आइटम - 000001 बटन 2 बी आइटम - 000001 रंग नेवि आइटम - 000001 कपड़े ऐव मद - 000001 लोपल नोट का आइटम - 000001 पैटर्न स्ट्रिप आइटम -000001 SEASON A6 ITEM-000001 SUSTSTYLE SB ITEM-000001 VENT NOONE मैं डेटा के ऊपर एक ही पंक्ति में कैसे दिखा सकता हूँ क्योंकि वे समान आइटम कोड हैं? तरह का संबंध, ओम इसे आज़माएं: का चयन करें ItemCode, (SELECT AttributeValue FROM Table x WHERE [रंग], के रूप में [बटन] के रूप में (बटन का चयन एटिब्यूटीवॉल से तालिका x जहां x.ItemCode = t.ItemCode और x.AttributeCode = 'COLOR') के रूप में x.ItemCode = t.ItemCode और x.AttributeCode = 'BUTTONS')। .... सभी के लिए दोहराएं ..... आइटमकोड द्वारा तालिका टी ग्रुप से

c# - What is the role of InternalBuffer in .net FileWatcher -

By doing something Google, I came to know that 'This file is used to track system actions' but I I do not weaken the utility, in some intermediate buffer the viewer can trigger the event (events) directly! What is the asynchronous flow of events (copy / modify file) in the synchronous event call? Also, I'm not sure if the file waiter trigger events infinitely. Can anyone put some light on it? The built-in Windows API which works FileSystemWatcher Second logic, lpBuffer Note This one- There is a match that you can set with the internal buffers property. A buffer is necessary because in response to Windows directory changes, users can not easily run user code. These changes are identified by the respective file system drivers, they run in kernel mode. The user mode code requires an expensive mode switch and thread launch switch to run, for each change revealed by each person it is very expensive to start running user mode code and wait to empty the buffer Tax b...

c# - Resizable window w/ taskbar button but w/o the title bar -

Try to override CreateParams as suggested, however, the taskbar button is not visible on initial load. The user must activate another window, then the goal window must be reactivated before the taskbar button appears. Why is this for some reason? How do you work it? WS_EX_APPWINDOW Flag ExStyle Try adding property of CreateParams. Windows is estimating whether there should be a taskbar button in your window by viewing captions and other styles. WS_EX_APPWINDOW lets explain it so that Windows does not require estimation. WS_EX_TOOLWINDOW makes it clear that you should not have a taskbar button edit: like this create protected overrideParamelParamas {{CreateParams cp = Base.CreateParam; Cp.ExStyle | = 0x0040000; // Add WS_EX_APPWINDOW cp.Style & amp; = ~ 0x00C00000; // Remove WS_CAPTION cp; }}

Add a folder having files into a zip file using JAVA -

I am using java.util.zip API of Java to add files and folders to a zip file, But when I delete more than one file in the same folder, what is the old content in any way can I add the file to the zip file without modifying the existing contents in the folder? Please help it, this is important! This is my sample code: ZipOutputStream zip = null; FileOutputStream fileRiter = null; FileWriter = New File Optical Stream (destZipFile); Zip = new zip output font (file author); Zip.putNextEntry (new zipentry (desktop file); Zip.write (content); Zip.flush (); Zip.close (); If you want to add a new file to an existing zip file, you must first Unzip everything, then add all files and zip again. Look for samples.

asp.net - Can I use validators, just to show warnings -

In ASP.NET ... Is there any way to show a warning (OK / cancel) msg Can I use the assumptions? If the user chooses the best .. should continue to submit this page. I know that the Javascript function can work. Just before proceeding with javascript, the thought of checking whether or not the valetors will be of any help. Thanks define an arbitrary JavaScript function with the CustomValidator.ClientValidationFunction property can do. & lt; Asp: CustomValidator ... Client validation function = "AwesomeValidator" /> and: function AwesomeValidator (source, e) {var x; If (value ISBD (E. Vel)) = Confirm ('Are you sure?'); // something with X ...} and more.

security - Two tables relation with sfDoctrineGuard user table (symfony) -

Hi, I have started a part in my web application that allows the user to work Need to be active for it with it I have two tables related: Customers and Enterprise .... First are the users who want to buy a product and the other "user" who want to sell the product. What is the better way to do that? Relation with user 1table 1: 1? How do I differentiate a user type? Because the user types can only edit some information and enter the enterprise in any other module ... Thank you very much. You can use the function on the model. Example Your Model Customer of user is concerned as such: Customer: Relationship: User: Local ID: Foreign ID: ID foreign aliases: customer Then you can check that the user is of the customer type (in the controller): $ this -> getUser () - & gt; GetGuardUser () - & gt; HasReference ('customer'); To make this easy, you can add this method to your myUser category: is a public function client () {Return...

python - Populate ChoiceField from database -

I like many fields in my form which are being provided as favorites that get their contents from the database Are there. I was thinking like something: class series form: Series = forms. Chargefield (option = Series.object.all ()) class meta: model = series exclusion = ('model', 'date_ added',) but area series Now I do not see it in my form. What am I missing? After trying the solution (using ModelChoiceField ), I'm still seeing the same problem. Here's my code: series = forms.ModelChoiceField (queryset = series.objects.values ​​('series'), empty_label = "") Use instead.

deployment - How to Deploy Simple Java Projects into EAR? -

I am using MyEclipse and I use an Enterprise Application Project (EAP) which automatically Deploys Web and EJB projects. These projects use some other projects which are only POOOs, "simple" Java projects like a library, just like the thing. The problem is that when I change things in "simple" Java projects, I have to appoint my entire EAP in my whole JP to see the changes. Do I want the EAP to have a way of automatically deploying those projects (POOSO), so the hot code replacement also works with those people. Any thoughts? With JBoss, you can set your JAR in the server / default / deployed directory Can Drop - It was at least accurate with older versions - thanks (hate it or love it). With Weblogic, you can use "". In both cases, notable features are ownership, i.e. non standard and using them will not make your application portable. Sorry, I mean automatically: 1) Running Server 2) Modify something on the Java project 3) Oh, oh, ...

php loop: repeat just once -

How can I get a php loop to print: 1 1 2 2 3 3 250 way to 250 So basically calculate from 1 - 250, but print each number twice? for ($ i = 1; $ i & lt; = 250; $ i ++) {echo "$ i"; Repeat "$ i"; }

.net - Represent XML without xsd -

Note: I can not use XSD ... why not going. I have a problem that represents the following XML in a class that it should be deserialized: XML: & Lt; Product & gt; & Lt; Sku & gt; Oursku & lt; / Sku & gt; & Lt; Attribute name = "attrib1" & gt; Value 1 & lt; / Attribute & gt; & Lt; Attribute name = "attrib2" & gt; Value 2 & lt; / Attribute & gt; & Lt; Attribute name = "attribx" & gt; Value x and lt; / Attribute & gt; & Lt; / Products & gt; The problem property represents the nodes Whatever I have done so far: [XmlElement (ElementName = "attribute ")] Public attribute [] Properties of the product; Public class characteristic {[XmlAttribute (attribute name = "name")] public string attribute name; Public Attribution () {}} I know that I'm missing something in the price shop, and probably Code [[Serializable] [XmlType (Anonymous Type...

asp.net mvc - ASP MVC on IIS6 -

In our asp mvc application, we are using embedded views, images and CSS files. Though deployed on IIS 6, ideas are being presented but we are having problems with images and CSS files. We are not receiving 404 error. The same application on the UltiDev Casino web server is working fine. The problem with IIS6 seems to be that any kind of advice / help on this topic will be highly appreciated. Are you saying IIS to handle all requests via ISAPI filter? It was not clear that it was done in your configuration. If not, it requires a MVC application in IIS6 ... Go to IIS Manager. Select your website then properties. Home Directory Configuration Then insert a wildcard application map. Set it to [Star]. [Star] and set it executable C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_isapi.dll UNTICK "Verify file exists". This will make IIS6 push all the requests for any file type through ISAPI filter is the negative side performance but the p...

cocoa touch - Handling multiple touches on iPhone -

I am currently developing an app where I have a main view with many subviews. Now I have two specific subviews And I want them to be "touch" only at the same time. So both of them should be able to respond to a touch event but it should not be able to answer that both together, because I have other subviews that should be able to touch at the same time I do not use multitouch or exclusiveTouch property Any thoughts on this? Maybe I can see a single touch region of a group. Thank you in advance Paste on a reading-list property, let's call it Code> View blocked, in your app representative or any other singleton. Make sure you use @property without non-standard . Give an example of a class of two views which the UISponder approach: After touching, Check the value of viewBeingTouched . If this is zero , then set it to itself and call the implementation of super otherwise, do not do anything. Finally, check the value of viewBeingTouched . I...

php - Properly formatted MySQL date insert statement returns all 0's -

I have created a PHP script that parses an HTML page, creates a MySQL query, and parsed it in MySQL Includes data that contains the table. Everything is fine, except one thing: Date field. When PHP runs MySQL statement, the date is read 0000-00-00 in the table. If I resonate the MySQL query, the result is in the following: INSERT sending_table (sending / sending, Sending_time, dispatch 1, dispatch 2, dispatch 3, dispatch 4, dispatch 5, dispatch 6, dispatch 7, dispatch 8, dispatch 9, dispatch 10, sending 11, dispatch 12, sending 13, dispatch 14, dispatch 15, sending 16) Price ('2010-02-02', '10: 46: 17 ', '31.99', '32.15 ',' 32.24 ',' 32.39 ',' 33.46 ', '35.18', '39.33 ' , '39.39', '40.92', '41.79', '41.82', '44.35', '45.47', '46.89', '47.13' , '67.59'); If I copy and paste the statement in the MySQL table, then it correctly inserts th...

oracleclient - How do I browse databases on an Oracle Server? -

Then I am coming from a situation in the form of a SQL Server developer who has written a little bit of PL / SQL. Mists of time but do not know anything effectively. I have a laptop, it is running Oracle is a database on the laptop which I need to see and neither I nor I can talk to anyone, he knows That is what it is called. I have some login in which one is charged with an administrator login. What is the easiest way to browse the database on the server and connect to one? I suspect that my beliefs about the relationship between servers, users, and databases, SQL Server has wandered me, but I can not get past ideas now that the client tools oracle ships , But I'm not really looking for it weird. I'm pretty sure this version is 9.2 which is running. Happy to provide more information but I do not yet know where it is starting. If this window appears in services, each database will have a different service by default named OracleService DATABASENAME . You ...

css - stylish reusable web forms -

I'm looking for some examples of stylish web forms that can be used on any site. I've been googled for "stylish web form", but I think that in most instances there are very creative forms that use a lot of images, which are unlikely to be good on other sites that are different color schemes I have found so many examples of using CSS in layout forms, but they generally do not apply any styles to the form to look good. Do not. What I see is something in between: Well laid out, eg Well-styled, but use of images Glossary is not a valid markup, eg no table or javascript, although I am not radical about it (some extra devices are okay) A reaction that points to an example "Here are one million examples of forms Risht, many of which do not meet your needs. " I know that I am very much in demand here, so sorry and thank you! Here are some good sites, with self explanatory examples and usage. Billion are more online, tutorials, downloadable e...

java - How to create entities in one Entity group? -

I'm building an app based on Google App Engine (Java) for persistence to use GDO. Someone gives me an example or gives me a point in some code that allows many entities (of the same type) within the transaction through javax.jdo.PersistenceManager.makePersistentAll () Shows to continue. Actually, I need to understand how to put multiple entities in one unit group so that they can be saved through transaction in transaction. All (). relates to the exact type of docs.

java - Is it acceptable to return unmodifiableList or should I return array? -

I have the method list & lt; Foo & gt; GetFoos () which receives and returns data from remote server. Of course, the user should not change the number of items in the list because the data will not synchronize the data with the server (and if he wants to change the number of objects, then he will be given special codes such as AddFoo () ). The first method was to return the array and change the signature of the method on foo [] getFoos () . But in Java and generally it is more convenient for the user to work with the archive, so I used the list & lt; Foo & gt; GetFoos () . Archive. Unmodile List (Original List) Therefore, when the user tries to change the list, it will get a runtime exception. Is there any recommendations about API design in similar cases? Collections.unmodifiableList should be completely acceptable and fast ( No need to create an array). Edit - In the context of API design, you should clarify your java code! Those who use ...

java - JDK 1.6 and servlet containers -

When you upgrade to the new version of JDK (1.5 to 1.6), do you want to re-save your entirety container Is it to take advantage of this new JDK? The environment in question is running Java 5 with JBoss 4.0.5. If you are upgrading (moving from 1.5 to 1.6), then you should get your servlet container You do not have to reinstall it unless you are using a very specific library, which depends on 1.5 to fully work (which is not possible). If you are going in the opposite direction and downgrading (moving between 1.6 to 1.5) then you will have a separate version servlet container but it will depend on the accessories you need.

sql server 2005 - Filtering SQL Rows -

टेबल स्कीमा आईडी सक्रिय करें_Date InActivate_Date 1 2009-12-18 10:25: 19.470 2010-01-13 08: 32: 30.130 2 2009-12-18 10: 25: 1 9, 470, 2010-01-13 08: 32: 30.253 3 2009-12-18 10: 25: 1 9, 470, 2010-01-13 08:32 : 30.363 4 2009-12-18 10: 25: 1 9, 470, 2010-01-13 08: 32: 30.583 5 2009-12-18 10: 25: 1 9 .4070 2010-01-13 08: 32: 30.473 6 2010-01-13 14: 46: 53.880 2010-01-13 14: 50: 45.443 7 2010-01-13 08: 32: 30.600 2010-01-13 14: 46: 23.833 8 2010-01-13 08: 32: 30.600 2010-01 -13 14: 46: 23.833 9 2010-01-13 08: 32: 30.600 2010-01-13 14: 46: 23.833 10 2010-01-13 08: 32: 30.600 2010-01-13 14: 46: 23.833 11 2010-01-13 14: 46: 53.880 2010-01-13 14: 50: 45.443 12 2010-01-13 14: 44: 56.397 2010-01-13 14: 46: 23.833 13 2010-01-13 12:42 : 59.113 2010-01-13 14: 46: 23.833 14 2010-01-13 12: 42: 59.113 2010-01-13 14: 46: 23.833 15 2010-01-13 12: 42: 59.113 2010-01-13 14 : 46: 23.833 16 2010-01-13 12:42: 59.113 2010-01-13 14: 46: 23.833 इनपुट पैरामीटर: घोषित @StartDate दिनांक समय घोषित @End...

c# - SharePoint Custom Web Part throws SELECT permission denied on object 'xxx', database 'yyy', owner 'dbo' -

I created a custom web part in SharePoint 2007 using VS 2008 on dev server. It uses SQL DB everything works fine on my server, which was created by the backup client with Test DB. Now I'm taking it to the customer's production server. I was able to deploy, install and activate it. But when I want to add web part to the page, it throws a dialog box "An error occurred while executing the command definition. Internal exceptions for details". It is that I am looking into LOG file: ... Permission denied on selection object 'xxx', database 'yyy', owner 'dbo' ... The web part uses DB using escalated realms, i.e. using the portal app pool service account. This account has the proper authority to reach DB. I do not understand what might be the cause of the problem. With any help, find out what the cause of the error is! Edit: To add the pasted formatting to the code comment, include: SPSecurity.RunWithElevatedPrivileges (Rep ({{WA...

.net - How System.ServiceModel.Web.WebOperationContext works when InstanceContextMode is Single? -

यदि मेरी WCF सेवा में यह विशेषता है: [सेवाविवाह (InstanceContextMode = InstanceContextMode.Single , ConcurrencyMode = ConcurrencyMode.Multiple)] कॉल में एक सिंगलटन काम कैसे कर सकता है? System.ServiceModel.Web.WebOperationContext.Current मुझे यकीन नहीं है कि आप वास्तव में क्या कह रहे हैं ... लेकिन ऑपरेशन संदर्भ WCF में (वे सभी) डिफ़ॉल्ट रूप से निष्पादन धागा से बंधे होते हैं, इसलिए जब भी आप इसे एक्सेस करते हैं (जब तक कि यह WCF अनुरोध के प्रसंस्करण के भीतर है) आप से संबंधित संदर्भ प्राप्त करेंगे अनुरोध करता है। जाहिर है, आपके सिंगलटन को कई समवर्ती अनुरोधों को संभाल करना चाहिए, और इसके दाएं सूत्र में प्रत्येक अनुरोध के ऑपरेशन संदर्भ तक पहुंच होगी। दूसरे शब्दों में, ज्यादातर समय केवल अपेक्षा के अनुरूप कार्य करना चाहिए।

Uploadify/swfobject parameter isues with IE -

I'm using an upload in the app for a few years and it always works well. When I upgraded to version 2.1.0, now it has been bundled with swfobject 2.2. File uploads in Firefox, Safari, and Chrome and everything works perfectly though, in all versions of IE, the javascript flash file is not passing any parameters correctly. For example debugging the button imgig, uploadify works fine inside js, but reads as undefined from inside the flash file, it is only IE. Can the IE JS parameter not pass the flash object? I'm running the latest flash version. I have checked in other related posts here and no one has been able to solve this issue. Absolutely Javascript Errors No Flash Uploader loads and even works, but only with default values. I narrowed down the problem a little further down, but still can not understand what Used to be. In SWFOjbject 2.2, line 436, Javascript is trying to replace the "object" element with a new object and this is the parameter. ...

search - How do I structure a SELECT query for the following -

Hopefully anyone here will be able to provide some mysql advice ... I I'm working on a clear search system: I have tables like: Exercise Exercise Exercise Title SEARCHTAGS searchtagID parentID (-> searchtag) searchtag EXERCISESEARCHTAGS exerciseID (foreign key - & gt; Practice) searchtagID (foreign key -> SEARCHTAGS) The search tag can be arranged in an arbitrary deep tree. So, for example, I may have a tree of search tag that looks like this ... head of head of body parts elbow leg hip knee muscles Pecus byes trips now ... I want to select all search tags in a branch of the tree which is in a subset of records referenced by a single searchag in a different branch of the tree Gives reference to at least one record. For example, suppose the search tag points to a subset of "arm" exercises, if any reference to any of that subset is referenced by the search tag from the "fleshy" branch of SEARCHTAGS. , So if I want to select them, my ...

php - Reusing MySQL results -

I'm having some theoretical question: I am preparing my own CMS / App Framework (different PHP programmers In the form of the first level ... and always will be) either to create a production ready solution or to develop various modules / plugins which I will use later However, I have a full connection to the SQL connection I'm thinking of collecting them and then at one place Run: index.php: & lt ?? Php included ('latestposts .php'); Include ('sidebar.php'); ? & Gt; Latestposts.php: & lt ;? Php function aggregated_data ($ agr) {$ sql = ""; } Function draw ($ data) {...}? & Gt; Sidebar Php: & lt ;? Php function aggregated_data ($ arg) {$ sql = ""; } Function draw ($ data) {...}? & Gt; Now, while the entire module system application is yet to happen, this idea is already floating somewhere in my brain. However, I am thinking, if I am able to load all the gather_data functions first, run SQL and then run th...

objective c - Exception reporting frameworks for Cocoa -

Is there any framework that captures and reports exceptions? I have some things that require errors due to an exception or my program, while it is used by a non-technical user and then email me. Do you handle it on your own projects? Have you rolled your own solution or is the shelf solution closed? Any help would be greatly appreciated. "Oops" for some time is running, on the contrary, Programmer error Exceptions for denoting are usually used in cocoa. Exemplary example of the former: If you are trying to access the 50 elements of NSArray of 10 elements, then out of bounds is generated by this programmer There is an error as you should not let this happen. The classic example of the latter: You try to read from a disk file but the file is missing. This is not an extraordinary case, the task of reading the file is somewhat normal, and thus the exception should not be thrown (this is to recover it properly from your job as a Coca developer, and so on It is ...

php - How to write "if something -> print" "else if nothing -> print nothing" -

I am writing a PHP function for WordPress executed through an XML feed. So we are leaving a feed and then on our website are based on those nodes. Whom I need help with, we have a bunch of different images of credentials (i.e. BBB, Chamber of Commerce etc.), so I need it When there is a link to a BBB, it should display the picture, if not, then it should be empty. The problem I am running is because BBB links will be random based on different businesses. Any help would be greatly appreciated. Thank you. If the URL "picture" and "any picture" Do you mean is? Otherwise please tell your problem better. if (empty ($ url)) {echo '& lt; Img src = "'. $ Url.'" / "Gt; ';} Else {echo' ';} check when is empty incorrect (and therefore ! Empty is true ) and actually consider that it fits your needs.

apache - mod_rewrite to absolute path in .htaccess - turning up 404 -

I want to map several directories to one URL: www.example My web root is / / www.example.com/login / Www / customer / some_other_dir / manual / former> In mod_alias, this will be equal to alias / manual / www / customer / some_other_dir / manual , but as I have only for .htaccess Usage, I can not use aliases, so use me mod_rewrite Do not be. What I have just got from him is the following: rewrite rule ^ manual (/(.*))?$ / www / htdocs / customname / manual / $ 2 [L] This works in the sense that requests are identified and redirected properly, but I get 404 which looks like this (focus on absolute path ): The requested URL / www / htdocs / custom name / manual / resume-to-domain.htm on this server was not found. However, I have checked with PHP: echo file_exists (...) and this file is definitely present. Why would this happen? According to the mod_rewrite docs, it is possible, even in the .htaccess file. I understand that when mod_...

php: usage of define -

Yii में वे इस कोड का उपयोग करते हैं: परिभाषित ('YII_DEBUG') या परिभाषित ( 'YII_DEBUG', true); मैंने कभी किसी को इस तरह से लिखने से पहले (या) नहीं देखा है यह असली PHP कोड या yii का कुछ सिंटैक्स है? यह शॉर्ट सर्किट मूल्यांकन के कारण है। यदि परिभाषित ('YII_DEBUG') रिटर्न false है, तो यह वाक्य को सही बनाने के लिए दूसरी अभिव्यक्ति का मूल्यांकन करने की कोशिश करेगी, YII_DEBUG निरंतर true । अंतिम परिणाम यह है कि, यदि निरंतर परिभाषित नहीं किया गया है, तो इसे true के रूप में परिभाषित करें यदि यह पहले से ही परिभाषित है (मूल्य कोई फर्क नहीं पड़ता है), तो कुछ भी नहीं करें (जैसा कि पहली अभिव्यक्ति सही है, अभिव्यक्ति के लिए दूसरी अभिव्यक्ति का मूल्यांकन करने की आवश्यकता नहीं है)।

embedding short python scripts inside a bash script -

I want to embed the text of a small dragon script inside a Bash script, say, my .bash_profile . What is the best way to go about doing this? The solution is to call the Python interpreter with the option of -c , and interpreter to exec whatever stdin . From there, I can create simple tools like the following, allow me to process the text for use in my interactive prompt: function pyexec () {echo "$ ( / Usr / bin / python - C 'import sys; exec sys.stdin.read ()') "} function traildirs () {pyexec & lt; End trail = int ('$ {1: -3}') import os home = os.path. Cwd = cwd.replace (home, '~', 1) joined in parts = cwd.split ('' 'home' '' '= os.path.join (* parts [-trail:]) if Lane (Parts) & lt; = Trail and are not included. Startswith ('~'): Included = '/' + joined to the printed print END} This approach looks a little strange to me, and I'm wondering what can be the options to do this in thi...

python - What do I do with a Concrete Syntax Tree? -

I am using a simple parsing tree for grammar. Here is an example: ('instructions', [('direction', [(('name', 'retrieve']), ('instructions', using tree lists and tuples. , My question is what ([name ',' committed ']]), (' filename ', [(' name ',' f30502 ')])]] my What is the question at this point, what do I do with it? I know what I am trying to do, but a lot depends, but I would like to consume / use paras trees. Ray has not been able to find much, only making them P> CST (Concrete Syntax Trees) are difficult to work with so they are usually converted into AST (Abstract Syntax Trees) for further processing (details in the same article). For example, (Component which changes the python source code in Python VM bytecode) CST as part of its function Changes in ST. Now, it really depends on your ultimate goal. You're doing parsing? What do you want to do with it? If you are rebuilding the fl...

logging - Django logs location -

संभव डुप्लिकेट: मैं Django का उपयोग कर रहा हूं, लेकिन मुझे यकीन नहीं है कि लॉग्स को कहां से प्राप्त किया जाए। वेब सर्वर में, लॉग को टर्मिनल / कंसोल में लिखा जाता है किसी अन्य वेब सर्वर के अंतर्गत चलते समय, Django सर्वर के लॉग को लॉग करता है।

add on - "dynamic addons" is this the right term? -

I have been asked to do some research about using "adsense" when creating a program. Actually, I have a main program that checks the available components (OSX, DLL, etc.). What depends on the components, it will dynamically create menus and load components. This is possible. Net framework 2.0 or later I think you are searching for the term "plugin" and This is definitely possible with the net. For example:

c# - Return updated POCO object attached to GridView control using Reflection -

I have custom grid view control from the ASP GridView control. Now I am using my custom grid view control. I attach a list object to this custom grid datasource, and store this list in the viewstate so that whenever the grid works anytime, I can manipulate this object. Postback Now every time I do the entry, updating and removal work, I have to manually write the code for data manipulation in all my forms. I.e. retrieve data from the viewstate and then update the data or delete the data or insert the data into that object and store it again in the viewstate. I take care of this task once in a single place in my custom grid view class object, able to update, insert and delete all the forms of my custom grid view control without any code writing form. should be there. Finally, in order to save the data in constant repository, I should get the last POCO object from custom grid view control. It can be achieved with reflection but how? Can you please tell me how can I get th...

Authentication problem with JQuery and SharePoint Web Service -

I am calling a SharePoint Web Service (Webs.asmx) with JQuery to get a list of all subsites : $ (document) .ready (function () {var hrefParts = window.location.href.split ('/'); wsURL = ""; (i = 0; i & Lt; (hrefParts.length - 2); i ++) {if (i>; 0) wsURL + = "/"; wsURL + = hrefParts [i];} wsURL + = "/_vti_bin/Webs.asmx "; Var soapEnv =" soapenv: envelope xmlns: soapenv = 'http: //schemas.xmlsoap.org/soap/envelope/'> \ & lt; soapenv: body & gt; \ & lt; getAllSubWebCollection xmlns = 'Http: //schemas.microsoft.com/ SharePoint / Soap /' & gt; \ lt; / GetAllSubWebCollection & gt; \ & lt; / soapenv: body & gt; \ & lt; / soapenv: envelope & gt; ; "$ .ajax ({url: wsURL, First send: function (xhr) {xhr setRequestHeader ("SOAPAction", "Http://schemas.microsoft.com/sharepoint/soap/GetAllSubWebCollection");}, type: "post", datatype: "xml", dat...

How to clear browsers (IE, Firefox, Opera, Chrome) history using JavaScript or Java except from browser itself? -

In addition to clearing the history of browsers (IE, Firefox, Opera, Chrome) using JavaScript or Java, how to clean Document in the browser. Location data is usually inaccessible to the script because access to any site will allow access to your entire browsing history Most of you can easily manipulate, such as "go to event entry # 37" or "go back to a page" . But you can not find the page in "History Entry # 23" Most banking sites will use Javascript links, so that one click can not stop the history being closed. They will "place. Rare" to kill the last history entry (current page) and to transfer the document with the address of a new page. This effectively removes the "back" option to return one page, because the previous page (as far as browsing history is concerned) is now a new page.

iphone - Weird Error from Xcode Debugger -

After I am using database light sql in my iphone app I have a refresh button on my home screen and then click on the button I refresh the data parsing from my web service and store results in the SQL Lite database. I get an error when I repeatedly click on the refresh button. Error occurs after each variable number of clicks / refreshes error: After this error, my app crashes and when I logged in error it " Returns base Unable to open "error Please help me to resolve this error. Thanks Sandy It seems that the debugger has to load data formatters The problem is happening, which creates a display for it. Various datatype in the Variable Display panel of the Debugger window. If you have added a client formatter, then you should remove them. Try running the program without a debugger and see if you get crashed. If so, the problem is in the app, if not, the Xcode is most likely to test a dummy project and see if you get the same error It is possible that in yo...

java - How to propogate Swing events from a inner component to a container? -

I created a component based on a JPNL that contains a textfield and a checkbox because I use it as a component And keep it in the other panels, so I want to be able to set a key event for the panel. Obiouvsly does not work as the keyPressed incidents fire for this internal text field. Is this a way to broadcast them to JPNL because it was receiving them instead of textfiles? I tried with handleEvent, but it also does not compile make this question clear. I have made this big element a textfield. Now I have to use this element in another and I want to set the other as a listener. So among those there is JPanel that's the problem. You can use javax.swing.event.EventListenerList in jpeanfield with jettaxfile, and add an addKeyListener Create public method. Import javax.swing.event.EventListenerList; Public Static Class TestPanel implements JPanel KeyListener {Private JTextField Text; Private Event List Author List Listener List = New Event List Author (); TestPanel () {...

fork - How can I be notified when a background process terminates in Perl? -

I wrote a Pearl program, which shakes a background program in the hair process and calls and no endless loop What happens is that whatever the stuff does in the original process now the loop should be left when the background program ends in the child process: $ pid = fork (); If (! $ Pid) {exec ("Program Arguments"); } Else {While (1) {# need some help: if the program is finished, break}} OK, Kankaya gives your child's PID to the original process (which you retrieve dutyfully in your code). It is fine that parents can take care of the child. To leave the loop over, you can check whether the child still exists or not by using kill $ $ pid . See perldoc -f kill .

Python: feedback / corrections on first OOP style script -

I want some feedback on my first python script that uses the OOP style, it's a muni plugin that plugins (dell_fans, Dell_temps uses the average fan speed or average chassis floating graph based on the name. An hour or so before that in the fan speed plugin, to get the help of stack overflow to convert it into an open style then I created the two scripts to combine any feedback, suggestions , Improvements will be very helpful Updates : I would like to correct any misconceptions to be modified for the general base class. Any other suggestions? Import System Import Subprocess Class Data (object): def __init __ (self, command): self.command = command.split () DEF average (self): data = subprocess.Popon ( Self.command, stdout = subprocess.PIPE) .stdout.readlines () Count = Total = 0 for item in data: If "read" in the item: #Executive length fan speed, without regex Total + = Float (item split (":") [1] .split () [0]) Count + = 1 # OMOVERPORT sometimes returns...

magento - prototype - Replace & with & -

I am working with Magento which uses prototype JavaScript library. Unfortunately some clients' data (being fed from point of sale system in Magmento) in & amp; and Instead of for the purposes of verification & amp; in the html & amp; Amp; Any method can help to change all instances of of prototype Use a part of the library.

Flash - Mouse Event Handling (Make symbol transparent to mouse) -

I have a flash, which is a background symbol that gives feedback on the click event, There is a phantom in which there is a bitmap with transparent pixels. Both of them are added to the stage, so they are not directly related. I want to go directly to the background on clicks on transparent pixels on the ghost. I have read about MouseAnited / Mouse child but they are not able to work. Icons when I use them, the mouse ignores the event, but it does not pass as transparent. Is it possible to do this with Flash? Or will I have to recreate mouse events again? Thanks You can mouseEvent.CLICK to listen to your event Add a listener on bitmap (There is no need to wrap your bitmap inside Sprite.) Then, in your click handler function, get the pixel use only getPixel32 to get the clicked pixel : var alpha: string = (yourBitmap.bitmapData.getPixel32 (e.localX, e.localY)> 24 & amp; 0xFF) .ststring (16); If (alpha == "0") // Click your symbol to trigger the han...

java - NIO: Send message and then disconnect immediately -

Under some circumstances, I want to send an error message from a server using non-blocked I / O ( ) SocketChannel.write (ByteBuffer) ) and then disconnect the client I will write the entire contents and then disconnect immediately that I believe the customer can not be to receive this message because I think the OS has not actually sent data at this point . Is that correct, and if there is a recommended approach to dealing with this situation? I was thinking of using a clock so that I want to disconnect a customer, then close their connection after 1-2 seconds. Socket Chinal. Writing non-blocking mode will be the number of bytes, which were sent to the network immediately without blocking can go. Your question thinks me that you expect to use full buffer with the method of writing and try asynchronous attempts to send additional data to the network, but this is not how it is working. If you really need to make sure that the error message is sent to the client before discon...

Is there a maximum length for the class name in CSS? -

Is there a maximum number of factors for a class name in the CSS? .thereisnomaximumlengthforaclassnameincss {maxlength: no; } Good luck! There is no maximum length in it.

How to validate XML with XSD in Delphi without using MSXML? -

How do you validate XML with XSD in Delphi without using MSX? I'm limited to MSXML3, which XSD can not make. Googling has not given me anything at all. Please help me, thank you I'm afraid there is no non-MSXML XML library supporting XSD. But there are some who support DTD (eg, you can rewrite your schema DTD, even if the DTD is less powerful.

ruby on rails - ActiveRecord find query with join only doesn't include data from joined table -

मेरे पास दो टेबल हैं: keyword_reports और कीवर्ड (संबंधित एआर मॉडल के साथ)। keyword_reports में एक keyword_id कॉलम, जिसका उपयोग मैं इस तरह की कीवर्ड तालिका में शामिल होने के लिए कर रहा हूं: KeywordReport.find (: all,: joins = & gt;: कीवर्ड,: conditions = & gt; {: page_id = & gt; ; 10}) जो keywords_reports के लिए सही ढंग से वापस रिकॉर्ड खींचती है, लेकिन इसमें शामिल कीवर्ड तालिका से डेटा शामिल नहीं है मैंने उत्पन्न एसक्यूएल को देखने के लिए लॉग को देखा और यह कर रहा है: का चयन करें `keyword_reports`। * से ... के बजाय: SELECT * से ... जिसके लिए मुझे सभी डेटा प्राप्त करने के लिए ऐसा करने की आवश्यकता है जब मैं इच्छित रूप में स्वरूपित करने के लिए मैन्युअल रूप से एसक्यूएल को संपादित करता हूं, तो निश्चित रूप से, यह सभी डेटा को पकड़ लेता है। मैंने उपयोग करने की कोशिश की है: शामिल है और: कोई लाभ नहीं करने के लिए चयन करें मैं क्वेरी को केवल पहले तालिका तक सीमित करने से कैसे रोकूं? मुझे एक ही समस्या थी और इसका उपयोग करके हल किया: : चुनें = & gt; ...

.net - Display inherited methods and properties in Visual Studio -

Are there any options or plug-ins that are inherited when editing class file in Visual Studio (methods / properties) Display Inline? The inheritance code will probably be disabled / gray, but it seems that it can be useful and interesting to get the option of seeing a fully grouped class once. Ah, I remember what I was thinking now. See. :

networking - How to simulate a large network of machines for testing? -

Currently, I am writing an application that uses WMI to scan all the computers on our Active Directory network I'm interested in testing the program against all the flavors of Windows machines in a test environment. Can this environment be explained in VMware or some other things? Any ideas? VMware works well and can host multiple virtual computers You can also insert virtual computers on the Active Directory network. If your goal is to set up a separate large network for testing, which has its own ED server which you can see in trial for Amazon EC2. Here Benefits Once you set up your servers' set up, you can turn them on and off as per the requirement and pay only for real time ($ 0.12 per hour).

java - Concatenate strings in JSF/JSP EL and Javascript -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मुझे परेशानी हो रही है ईएल और जावास्क्रिप्ट फ़ंक्शंस (जेएसएफ़ 1.2, फेसलेट्स, रिचफेस 3.3.0 जीए)। मेरे पास एक ऐसा पृष्ठ है जिसमें एक और रचना शामिल है: & lt; ui: शामिल करें src = "/ pages / panels / examinationPanel.xhtml" & gt; & Lt; ui: परम नाम = "उपसर्ग" मान = "नया" / & gt; और मेरे UI में: रचना मैं प्रत्येक आईडी को उपसर्ग जोड़ना चाहता हूं उदाहरण के लिए: & lt; rich: modalPanel id = "# {prefix} _examinationPanel" & gt; यह ठीक काम करता है। लेकिन समस्या तब आती है जब मैं घटकों जैसे कि अधूरे जैसे कार्यों में पहुँचना चाहता हूं, मैं इसे प्राप्त नहीं कर सकता तार को ठीक से जोड़ना उदाहरण के लिए overcomplete = "# {rich: घटक ('# {prefix} _examinationPanel'}}। शो ();" मैंने कोशिश की है fn: join के साथ भी, लेकिन फ़ंक्शन निष्पादित नहीं करता क्योंकि यह त्रुटियों के बारे में शिकायत करता है जब "#" वर्ण मिल जाता है उदाहरण के लिए: ...

Add to HTML form without losing current form input information in Javascript -

I have a drop, which creates a form based on the selection. Therefore, if a person selects 'FuBar', then it displays the text field, if they choose 'Paneer', this radio button displays the user can enter the data in these forms because they go together Are there. The only problem is that when they add a new form element, all other information is erased. IM is currently using the following to include this form: Document.getElementById ('theform_div'). InnerHTML = document.getElementById ('theform_div'). InnerHTML + 'This is new content'; How can I get it and add new area to the end? You need to create a separate DOOM; Add it by calling tree and appendChild . For example: var container = document.createElement ("div"); Container.innerHTML = "..."; . Document.getElementById ("theform_div") appendChild (container); It is very easy to use.

Where can i get a popout side control ajax? -

I am looking for such control: [control Left] Can anyone tell me a good free, that we can distrubute our web-based software specifically, which has a license, Cheers Peak You can try it out. Here's one. This is open source.

java - Testing a method instead of testing a whole file in Netbeans w/ JUnit -

I am using Netbeans 6.8 and it seems best to run correctly with the IDE to run my Jukeette test. Click on a category under Test Packages and test file Clicking on a specific test is possible to narrow down the scope to test an individual method. How can I test only one individual test from one of the harnesses in Netbeans? Can i Update : Netbans supports this (like see Netbeans 6.8) . Just right-click on the pass or unsuccessful test and then click on 'Run again' or 'debug'. Or right-click in the editor and click Run / debug-focused testing. Old : This is not possible for my knowledge. And it is possible that NetBeans-boys had to keep in mind that all tests should always be passed to one unit. I know tools should not be limited to developers, but if one method takes too long - maybe you should consider a separate integration test? In addition, (BTW: Mayvon projects have a unit possible test ...)

python - M2Crypto: AttributeError for load_dynamic_engine() -

I am using M2Crypto-0.20.2. I want to use to create xmlrpc calls on SSL to create token based authentication from the Allen PKI client for the OpenSC project and engine. I am trying to load PKCS # 11 engine and Aladdin module (see code below). But I get an error: Attribute error: M2Crypto import in the 'module' object has no attribute 'load_dynamic_engine' import, m2 m2.load_dynamic_engine ("dynamic", "/ usr / According to the local / ssl / m2Crypto documentation, this function should be available I / 2 / This is the document I am reading: Can anyone tell me in the right document or how can the engines be loaded? Thank you! I myself The mass module is not used, so I can not give you a definitive answer, however, you should take a look at the module for some points. I am guessing that to load the engine provided by OpenSSL You should not use that code of load_dynamic_engine () , but load_dynamic () or load_openssl () . While loadi...

php - Undefined mysql functions using mySql5 + php5 + apache2 installed by macports under mac os x -

I have installed mySql5 using MacPorts and managed to run MySQL server. But due to some reason mysql-related functions like mysql_connect, an error message "" comes back under a call undefined function .... "php5." Here the partial mysqlnd section is taken from the phpinfo report: mysqlnd enabled version mysqlnd 5.0.5-dev - 081106 - $ revision: $ 289630 order buffer size 4096 buffer Read the size 32768 Read time expiration 31536000 Collect the data Yes Collect the memory statistics Yes Customer statistics bytes_scent 0 bytes_scent 0 Packets_cent 0 Packets_received 0 protocol_overhead_in 0 protocol_overhead_out 0 bytes_received_ok_packet 0 Does anyone have any problem with this problem? Do you know how to solve? Thank you Have you also installed php5 with mysql version? Sudo port installs php5 + mysql .. I have havent installed a php port in a while: -)