Posts

Showing posts from June, 2010

Passing an array of structures to an Oracle stored procedure (CFMX) -

I am looking to write an Oracle stored procedure where I will pass (from the coldfusion) structures and loop on the array DB to insert the bits and pieces within the structures for each instance. I have not written this kind of procedure / package before I am planning to do SP / package as sketched in the second answer of this thread: How do I call the process from ColdFusion (I am using MX) and pass my array? As far as I can see, none of the CF_SQL_Types makes sense. The only way I have passed the OCI interface and archive of any data type for OCical SP To use If there is any way to do this directly in Pro * C, then I have not found this. The OCI is a more 'verbose' interface. Here is a base documentation.

.net - How to set a property of a C# 4 dynamic object when you have the name in another variable -

I'm looking for a way to modify properties on the dynamic C # 4.0 object with the name The property is known only on the runtime. Is there any way ( expandoObject is used as just an example, this can be any class which is IDynamicMetaObjectProvider ) : string key = "testkey"; Dynamic e = new expandoObject (); E [key] = "value"; Which will be equal to: dynamic e = new expando object (); E.TestKey = "value"; Or the only way to reflection? Not very easily, reflection does not work because it considers a regular type model, which The whole series of not dynamic is if you are actually talking to regular objects, then use reflection here. Otherwise, I hope you get that code reverse- Engineers can compile the compiler for a basic assignment, and it can easily be used by members Refers to the name Y-I will be honest, though: this is not an attractive option; A simple: dynamic foo = ... foo.Bar = "abc"; Its transl

send name="" in jquery javascript? -

तो मेरे पास यह है: हाँ: & lt; इनपुट प्रकार = "रेडियो" मान = "वाई" आईडी = "SCvoteY" नाम = "वोट" & gt; & lt; / input & gt; नहीं: & lt; इनपुट प्रकार = "रेडियो" id = "SCvoteN" मान = "N" नाम = "वोट" & gt; & Lt; / इनपुट & gt; मैं कैसे लिखूं कि उसे नाम = "वोट" डेटा स्थानांतरित करना चाहिए? #vote काम नहीं करता है, या तो (अनुमान करें कि यह क्लास और आईडी के लिए कारण होता है) लेकिन नाम के बारे में क्या होगा? फ़ंक्शन DoSCInsert () {$ ("# SCres")। Html (" कृपया प्रतीक्षा करें.."); Var nocache = '0'; वैल (), वैल (), वैक्स ($) ("# वोट"), वोट: $ ("# वोट")। वैल (), टिप्पणी: $ ("# टिप्पणी")। Val (), nocache: nocache} ; $ .get ('insertSC.php', डेटा, onSCInsertComplete); } और मैं इसे कैसे छोटा कर देता हूं, ive ने सुना है कि आप jquery में स्ट्रिंग्स को पार करने के लिए serialize कहते हैं, लेकिन आप (यदि आप जा

Silverlight database -

I am looking for an embedded database for the Silverlight application. I have got many options like MCObjects (www.mcobject.com) and Efeperrose (www.effiproz.com). Which is the most suitable local cache? See also Silverlight, Wp7, Monodroid ...

eclipse - m2eclipse - after pom and dependencies definition - no libraries on classpath / Maven Dependencies -

I have been doing just simple archaic projects so far, and always depend on the dependency definition and pom.xml immediately after the Maven dependence The library was full of libraries. Parent (pom packaging, shared dependency) Actual project (Jar packaging, some more dependencies) Actual project (Jar packaging, some other dependencies) / P> I created them from upper part of "Create Module" ... The problem is that I can not fill it myself automatically in the Maven Dependency Library .classpath file In this line & lt; Classpathentry kind = "con" path = "org.maven.ide.Other" work "is in the form of projects, but nothing on the syllable, eclipse. MAVEN2_CLASSPATH_CONTAINER" /> Any suggestions please? Can you run mvn dependency: tree on the command line for the child Project and confirm that you see the dependency of hope if you do not, then there is something wrong with your palm (you will have to post to get mor

debugging - PHP - print all properties of an object -

I have an unknown object in the php page How can I print / echo it out? So, I can see what happens to the qualities / values? What about the tasks? Is there any way to work any object? & lt ;? Php var_dump obj)? & Gt; or & lt ;? Php print_r (obj)? & Gt; These are the same things that you also use for arrays. They will show the protected and private properties of the object with PHP 5. Members of static classes will not be shown according to manual. If you can know member methods that you can use: $ class_methods = get_class_methods ('myclass'); // or $ class_methods = get_class_methods (new myclass ()); Foreign currency ($ class_methods $ as method_name) {resonant "$ method_name } Related Content: & lt; - For example name

ruby - Getting can't modify frozen string when using string.insert -

यह एक त्वरित सवाल है मेरे पास निम्न रूबी कोड है, जो ठीक काम करता है। def add_zeros संख्या, शून्य संख्या = number.to_s zeros_to_add = zeros - number.length zeros_to_add.times do संख्या = "0 # {number} "एंड नंबर एंड" लेकिन अगर मैं नंबर = "0 # {number}" को बदलता हूं number.insert (0, "0") तब मैं प्रकार एरर मिलता है: जमी स्ट्रिंग को संशोधित नहीं कर सकता है, क्या किसी को पता है कि यह क्यों है? "post-text" itemprop = "text"> यदि उत्तल तर्क संख्या पहले से ही शुरू करने के लिए एक जमी स्ट्रिंग है, तब संख्या = नंबर.ट_एस कोई चीज़ नहीं बदलेगा और आप उसे इसे संशोधित नहीं कर पाएंगे ( number.insert के साथ): < पूर्व> add_zeros ("24" .freeze, 10) # = & gt; TypeError: जमे हुए स्ट्रिंग को संशोधित नहीं किया जा सकता इससे कोई नया स्ट्रिंग बनाना ( "0 # {number}" ) एक समस्या नहीं है, बिल्कुल। < / P> आपकी स्ट्रिंग जमी जाने का कारण सूक्ष्म है। जब आप एक हैश कुंजी के रूप में एक स्ट्रिं

Using open source SNES emulator code to turn a rom file into a self-contained executable game -

Is it possible to take source code from SNES emulator (or any other game system emulator for that matter) and games for the system ROM, and in any way to make a single self-sufficient executable that lets you play that particular ROM without having to manually play the individual ROM or emulator? Would it be difficult, assuming that you have already received the ROM and emulator source code? If you have emulator source code then it should not be very difficult to use you using such a method Which can often be used to store images in source files. Actually, what you need to do is create a char * variable in a header file, and store the contents of the ROM file in that variable to automate it for you You might want to write a script for. Then, you will need to change the source code, instead of reading the ROM from one file, it uses the memory version ROM is stored in its own variable and included in your header file has gone. If you need to emulate file pointers, or you

Wordpress Custom Posts -

I have a serious problem with custom post types in Wordpress. I've created a post type called "preach" then I Add a meta box with some text fields and let echo the results on the web page. But here's my problem. The first time you add "sermon", then it works fine and the meta box displays the field output correctly. However, when I try to edit one of the meta boxes and do not edit others, (say that after I shut down the web browser I had to add something to the fields), the field that was edited Not done, it has become empty and the contents are wiped out in it ... not good at all So, just to make it easy: For the first time the Meta box is full, they work fine. However, while editing the post a second time, the fields which do not fill up, but they were dropped, are saved when saving the post. Help ... I'm not a very developer, so I'm not sure how to fix it ... (This meta field was difficult to work on.) ( If you want to use the actual cod

ruby on rails - Adding confirmable module to an existing site using Devise -

I am using devise a web application and wanted to add confirmable module for the site. However, since a confirmation_tone has not been generated, users can not log in. When did 'confirmation instructions not found?' Link generates tokens still generate confirmation email just short notice token in the link (URL). & lt; P & gt; & Lt; A href = "http: // localhost: 3000 / users / confirmation" & gt; Confirm & lt of my account; / A & gt; & Lt; / P & gt; What is the best way to get it to work? Many thanks, Tony I'm looking for the same answers I am suspicious that the data model is included or not, each user is confirmed. It appears to add: <: confirmation_token, confirmed_at, confirmation_sent_at In addition, confirmable module These methods appears to add P>: confirmation_token = ,: confirmation_token = ,: confirmation_token_change ,: confirmation_token_changed?, confirmation_token_was ,: reset_confirm

jquery - accessing list sent from server as JSON object -

How to use a menu in a list sent as a jazan object on the templates received in the AJAX callback function. The code is as follows: views.py def showfiledata (request): open ("/ home / tazim / webexample / test.txt") f: List = f .readlines () f.closed return_dict = {'filedata': list} json = simplejson.dumps (return_date) HttpResponse (json, mimetype = "application / json") .html in template showfile: & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "/ jquerycall /" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("button"). Click (function () {$ .ajax ({type: "POST", url: "/ showfiledata /", datatype: "Jason" Success: Function (data) {var s = data.filedata; $ ("# someid"). Html (s);}});});}); & Lt; / Script & gt; & Lt; / Top

flash - Equivalent of Flex DataBinding using Pure Actionscript -

जब फ्लेक्स कुछ इस तरह देखता है: & lt; mx: लेबल टेक्स्ट = "हैलो {MyVar} विश्व! "/ & Gt; यह एक्शन स्क्रिप्ट में किसी भी रूप में अनुवाद करना चाहिए लेकिन अगर मुझे कुछ ऐसा करने की आवश्यकता है, तो रनटाइम पर मैं किस गतिशीलता को पूरा कर सकता हूं? जब मैं बाइंडिंग टेम्प्लेट की सामग्री नहीं जानता हूं। एक्शन स्क्रिप्ट में इसे कुछ इस तरह दिखना होगा: सार्वजनिक फ़ंक्शन कस्टम डायनेमिकबैडिंग (स्ट्रिंगटोबिंड: स्ट्रिंग): लेबल {// * उदाहरण: स्ट्रिंगटौबिंद के: // "हैलो {मायवर्स} विश्व!" // "उत्पाद: {name} $ {price} .00" // "{data.label}, {data.description}" // मैंने इसे इस तरह से लिखी है क्योंकि मुझे पता नहीं है कि सटीक पाठ को बाउंड होना है डिजाइन समय पर [बिन्डेबल] var लैब: लेबल = नया लेबल (); Lab.text = ??? वापसी (लैब); } मैं इस तरह की "गतिशील" बाध्यकारी कैसे प्राप्त कर सकता हूं ... जहां मैं "स्ट्रिंगटोबिंद" का मूल्य रनटाइम तक नहीं जानता है? इस प्रश्न के प्रयोजनों के लिए हम यह मान सकते हैं कि मुझे पता है कि "Str

c# - how to add values in array -

I just want to ask again, I've made a method to read the values ​​in Gridview, I get the value from Gridview Was able to do and read The problem now is how can I store the values ​​inside an array and I want to pass it on the second page. Here is the code I created Private zero getrowvalues ​​() {string combinedvalues; Foreach (GVVRO products in row line .RO) {string prodname = ((label) row.FindControl ("lblProductName")). Text; String txtvalues ​​= ((Textbox) row.FindControl ("txtQuantity")). Text; Joint value = diagnosis + "|" + Texthuvyues; }} To store a string or strings, I need the result string combined property which I can access on other pages. Is there any way of doing it? Any input will be greatly appreciated. Thank you! Just saw the answer to the Croix which is similar, I leave mine for example code. Private zero getrowvalues ​​() {string combinedvalues; & Lt; String & gt; Joint lists list = new list & lt; S

php - Recursive Function To Create Array -

I use KOHANA framework and I am trying to code the recursive function to create a class tree. My Categories Table id int (11) No PRI tap auto_increment name varchar (50) No tap parent_id int (11) No null projects_count int (11) No null My example which is not working public stable work category_list ($ parent_id = 0) {$ result = database :: example () - & Gt; Query ('SELECT name, projects_count FROM project_categories WHERE parent_id =?', Array ($ parent_id)); $ Project_categories = Array (); Forex Currency ($ result as $ line) {$ project_categories [] = $ line; Project_Categories_Model :: Factory () - & gt; Category_list ($ parent_id + 1); } Return $ project_categories; } Using hierarchical data implementation is extremely non-optimal, because of receiving For each subcategory you should do a different query of the database. Here you want to create a recurring function. If you still can change your table structure, please check it. This article

algorithm - question about VHDL coding tips and tricks -

कृपया मुझे बताएं कि यह एल्गोरिथ्म कैसे काम करता है? यह लिंक बहुत उपयोगी था। बीसीडी द्विआधारी कोडित दशमलव है जिसका अर्थ है कि हेक्साडेसिमल है लेकिन केवल 0- 9 अंकों का उपयोग किया जाता है। एल्गोरिथ्म एक द्वारा बाएं पारी की एक गुच्छा करता है प्रत्येक के द्वारा छोड़ी गई प्रत्येक शिफ्ट दो से गुणा की बराबर होती है। जब आप एक हेक्साडेसिमल अंक दो से गुणा करते हैं, तो यह अगले अंक तक ले जाएगा यदि यह आठ या अधिक है बीसीडी के साथ, आप चाहते हैं कि यह 5 या अधिक है, तो यह दशमलव की तरह व्यवहार करे। प्रत्येक बदलाव से पहले, प्रत्येक बीसीडी अंक की जांच की जाती है। यदि यह 4 से ऊपर है, तो यह 3 की वृद्धि हुई है। अंक A के तहत होना चाहिए वैध बीसीडी होने के लिए, इसलिए यह नहीं ले जाएगा जब बदलाव होता है, तो 3 जादुई रूप से बीसीडी में गायब हो जाएंगे। मूल्य 0,1,2,3,4 स्पष्ट हैं। दो गुणा करके कार्य करता है मूल्य 5,6,7,8,9 मुश्किल बिट्स हैं। उन्हें दशमलव में 10,12,14,16,18 में मानचित्र होना चाहिए। हेक्साडेसिमल में वे ए, सी, ई, 10, 12 को मैप करते हैं, जो सभी वांछित मानों से 6 से बंद होते हैं, जो 3 * 2 है

django - python global variable not working in apache -

I am facing a problem with global variables, when I run into the Digengo Development Server, it works fine Here's the code given below: red = "/ project3 / test /" def Showed recipes (request) : #global objc url = URL.strip ('http: //') url = "http: //." ErrorMsgURL "] =" "in the" userid "request: urlList = request.POST URL = str (UrlList ['url']) "+ URL recipe = __addRecipeUrl __ (URL) (recipe == 'FailToOpenU RL ') If (or the recipe ==' invalid-website URL '): # request.session ["ErrorMsgURL"] = "Please check url, please enter a valid URL" ObjC ["ErrorMsgURL"] = "Please check the URL Please enter the valid URL "print" here. Global_context = ", ObjC arurl = HttpResponseRedirect (" / project3 / import / "add) arurl ['ErrorMsgURL'] = ObjC [" Error MsgURL "] #return HttpResponseRedirect (" / Returning (arurl) and: O

html5 - Geolocation under firefox 3.6 requires Proxy Authentication? -

I'm trying to share my location on Firefox geo enabled pages from Firefox 3.6, but get any kind of success Not being able to or failure When I wrote my custom JS Navigator.Golocation with .getCurrentPosition (func1, func2), the success callback has not been called at all. When I am compromising http requests on Firefox, request to return with status: 407 [Proxy Authentication Required (ISA Server requires authorization to complete the request. To Web Proxy Filter Access is denied.)] ... Yes, my network is behind the proxy server but works with Chrome only I have not tried other browsers yet.

java - How to deploy axis2 + MyBatis -

I am trying to webservice (I am quite new in web site under Jaw) I am using Netbeen Axis2 is having trouble finding the XML configuration file for mybatis Can anyone tell me how to implement the mybatis configuration successfully? Manually configure should be copied under 6.8 \ apache-tomcat-6.0.20_base \ webapps \ axis2 \ WEB-INF \ classes or The other settings? You must enter your XML configuration file for Ibetis in your class, I place it on my src folder. And it works

java - How to load ms word document in jasper report -

How to load a Word document in Jasper reports in Java Place a word document anywhere on a shared network drive and add a link to it in the report. You can convert the word document to PDF and then link it to your report. In this way, almost any person on the planet (not just Windows users) can read it. You can convert word document to PDF and then use a tool to convert it to PNG. Or JPEG images (one page = one picture) and then include images in your report. This will make the report much bigger. You can expect that Microsoft will implement a MS Word Reader in Java and during this time your boss will tell that it is not possible without some shortcomings.

java - Why is the main method not covered? -

मुख्य विधि: सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] args) अपवाद फेंकता { यदि (args.length! = EXPECTED_NUMBER_OF_ARGUMENTS) {System.err.println ("उपयोग - जावा XFRCompiler ConfigXML PackageXML XFR"); } स्ट्रिंग configXML = आर्ग्स [0]; स्ट्रिंग पैकेज एक्सएमएल = आर्ग्स [1]; स्ट्रिंग xfr = आर्ग्स [2]; AutoConfigCompiler कंपाइलर = नया ऑटोकॉन्फ़िग कंपाइलर (); compiler.setConfigDocument (loadDocument (configXML)); compiler.setPackageInfoDoc (loadDocument (packageXML)); // compiler.setVisiblityDoc (लोड दस्तावेज़ ("VisibilityFilter.xml")); compiler.compileModel (XFR); } प्राइवेट स्टैटिक डॉक्युमेंट लोड डॉक्युमेंट (स्ट्रिंग फाइलनाम) अपवाद फेंकता है {TXDOMParser parser = (TXDOMParser) ParserFactory.makeParser (TXDOMParser.class.getName ()); InputSource स्रोत = नया इनपुट स्रोत (नया FileInputStream (fileName)); parser.parse (स्रोत); वापसी parser.getDocument (); } टेस्टकेस: @Test सार्वजनिक शून्य परीक्षा कम्पाइललमोडेल () अपवाद फेंकता है {// बिल्ड पैरामीटर URL कॉन्फ़िगर

java - Unable to load main-class for jar file -

I have developed an application using Eclipse IDE. After making the application, I exported the project in jar format. When I'm trying to run this jar file, I get an error: Unable to load the main class. help please. When you are exporting your project as a jar (see this), you The main square in the export jar wizard.

c - Fetching gtk theme background color -

I'm almost a GTB NBB, and I'm exploring a way to get background color for the current theme. Then this code: GdkColor color = gtk_widget_get_style (main window) - & gt; BG [GTKADDNDMAR]; The main window works only after the display, before it gives a weird ugly gray. Try appending the "feel" signal to the widget and then the style information you want Hold it. Static Zero WidgetAligate (GtkWidget * widget) {GdkColor * color = NULL; GtkStyle * style = gtk_widget_get_style (widget); If (style! = Null) {color = style-> bg [GTK_STATE_NORMAL]; / * Whatever you want with it here * /}} Zero Fobre () {g_signal_connect (main windowHandle, "realize", GCLBack (widget_realized_cb), NULL); }

debugging - Grails - showing page processing/render debug information in development mode -

I have been experimenting with Grails for the past two days and till now, I'm really happy with it. / P> Coming from the rail, the only thing that I really miss is the information of the Devo-mode debug shown after page-service. What does this mean to me: Processing User Controller # Show (127.0.0.1 for 2010-06-14 10:28:44 at) [Gate] parameter : {"Id" = & gt; "2"} Choose user load (0.0ms) from where "user" ("user". "Id" = 2) layout / providing template within users / presenting full user / show in 24ms (see: 5, db : 0). 200 OK [http: // localhost / users / 2] Is there any way to get something similar in Grails? I have tried the "debug" plugin but it is not very useful because it only shows the total processing time. I know that it is not difficult for me to roll anything (except that database stats part), I just wanted to make sure that I was not unnecessarily modifying the wheel again . I know t

stl - Releasing memory from map. C++ -

std :: map & lt; int, int & gt; * एमपी = नया स्टडी :: नक्शा & lt; int, int & gt ;; के लिए (इंट आई = 0; आई & lt; 999999; i ++) {एमपी- & gt; सम्मिलित करें (std :: जोड़ी & lt; int, int & gt; (i, 999999-i)); } पी ("बनाया"); // सांसद & gt; स्पष्ट (); - या तो एमपी हटाएं में मदद नहीं करता है; पी ( "मुक्त कर दिया"); समस्या यह है: "एमप हटाना" कुछ भी नहीं करता है तुलना करने के लिए: std :: vector & lt; int & gt; * Vc = नया स्टडी :: वेक्टर & lt; int & gt ;; के लिए (इंट आई = 0; आई & lt; 9999999; i ++) {vc- & gt; पुश_बैक (i); } पी ("बनाया"); वीसी हटाएं; पी ( "मुक्त कर दिया"); मेमोरी रिलीज़ करता है कैसे मैप्स से मेमोरी को रिलीज करने के लिए? पीएस: पी ("स्ट्रिंग") बस प्रोग्राम को रोकता है और इनपुट के लिए इंतजार करता है। अनुप्रयोग द्वारा उपयोग किए गए रैम को यह बताने का एक सटीक तरीका नहीं है कि स्मृति को semantically मुक्त किया गया है। मुक्त स्मृति स्मृति है जिसे आप

php - Login to Facebook API with known username and password -

I want to create a script, where I am automatically logged in with PHP scripts, update status or It would be great to use w / e and then log out graph API or FQL, it is not that I get a dirty pop-up on which I have to log in and the 'app' is allowed. I do not want this, I know my own username and password and just want to login, its content and log out. Is it possible with Facebook API? I do not really like FB scrapping but they do not like me much = / so I want to login via PHP script immediately. Thank you! You can use FB with e-mail and password, but against FB Toss this link See http://www.daniweb.com/web-development/php/code/290893/facebook-login-with-curl if you want offline permission Recent news from Facebook, it does not support offline permissions: ( https://developers.facebook.com/roadmap/offline-access-removal/

concurrency - Java Download Concurrent Data -

I am developing an app that downloads map tiles around different locations in a city. To do this, I have a thread for each location in which I select the tile and make a thread to download each. Well, the question is how to avoid thread for a tile that already exists. Thread Pool It should not be just checking that the file exists, because it is possible That thread for that tile already exists (secondly, the tile is needed from the other place), but the file is not created - Any thoughts? Thank you You ConcurrentHashMap & lt; Tile, thread & gt; in which you store all downloader threads. Before you start it, add a thread to hashmap and delete it before deleting it. Surely you will check the hashup for a specific tile before starting a thread for that tile. This is my simplest solution that comes to my mind, it will be easy to implement, but you have to read carefully how to use this type of hamster, in which there is no compatibility problems with guarant

visual c++ - Problem with newly built VC++ application? -

My application that was built on VC ++ 2008, when there is an error running on a freshly installed XP dot net. Fx asks to install. And I also faced a similar problem when I tried to run it on another XP system after installing it, it started running. Is there any way i can create applications independent of all these extra installations? Do not you compile the managed C ++ (CLR targeting) instead of the real C ++ ? In the past, dotnetfx's .NET runtime is not exactly optional and there are some optional editions. In the latter case, you only need VC_redist in the x86 or 64bit version. It installs only C and C ++ DLLs These are side-by-side assembles and should match the compiled version for you.

c# - Listview DataPager with ObjectDataSource problem -

The dataPager control was added to me within the list. There is no problem while displaying the data but when I click on the next page button, I get an error. Error: The operation selected by object data source 'ObjectDisource Source 2' is not supported, unless the selection method is specified. Protected Zero Page_Old (Object Sender, EventArgues E) {if (! IPOB) filgrids (!); } Private Zero FillGrid () {user user = new user (); User = (user) HttpContext.Current.Session ["Login"]; ObjectDataSource2.SelectMethod = "GetDetails"; ObjectDataSource2.SelectParameters.Add ("Customer_ID", DbType.Int32, Convert.ToString (user.Customer_ID)); ObjectDataSource2.SelectParameters.Add ("Selected_Period", DbType.String, Convert.ToString (Request.JQueryString ["Duration"])); ObjectDataSource2.TypeName = "online.lib.translation"; } Codebeside: & lt; ASP: LISTviewview ID = "LISTVIEW 1" run = "server"

objective c - iphone SDK confusion -

I accidentally deleted my SDK 3.0 directory, thinking I did not need it Now when I launch a project and I compile it says that my base SDK is missing. Where can I download 3.0 sdk? Are all 3.2 and 4 beta SDX available in Dev Center? 3.2 In SDK you also need to develop for earlier versions too.

drawing - xaml shapes - relative to canvas size -

I need to draw shapes in XAML which are always relative to the container window / canvas size. For example, I need a window to show a 3x3 grid on it, where the grid divides the window into 3 equal parts. Can I create lines which are bound to 1/3 of the width of the grid? Thank you for the grid you want, the columns in XAML You can set the Definition ... You only have to set the column width in percent and you will get the desired effect. Does this solve your problem or am I forgetting something

conditional - How to delay execution of a method in c#? -

मैं इस अगर हालत, अगर (SendSMS (Convert.ToInt32 (DLComportNo। SelectedItem.Text), TxtDriMob.Text, TxtCliDet.Text) & amp; & amp; SendSMS (Convert.ToInt32 (DLComportNo.SelectedItem.Text), TxtCliMob.Text, TxtDriDet.Text)) {// मैं अपने डाटाबेस के लिए विवरण डालने कर रहा हूँ} और मेरे SendSMS विधि इस तरह दिखता है, निजी bool SendSMS (portno, स्ट्रिंग mobNo, स्ट्रिंग विवरण int) {try {serialport SerialPort1 = नए serialport (); SerialPort1.PortName = "COM" + portNo.ToString (); SerialPort1.BaudRate = 9600; SerialPort1.Parity = समता। एक; SerialPort1.DataBits = 8; SerialPort1.StopBits = StopBits.One; SerialPort1.RtsEnable = true; SerialPort1.DtrEnable = true; SerialPort1.Encoding.GetEncoder (); SerialPort1। रीसाइज्डबाइटट्रेसहोल्ड = 1; SerialPort1.NewLine = पर्यावरण.NewLine; SerialPort1.Open (); SerialPort1.Write ("एटी" + SerialPort1.NewLine); नींद (500); SerialPort1.Write ("AT + CMGF = 1" + SerialPort1.NewLine); नींद (500); SerialPort1.Write ("

Event Listeners in HTML5 Video on the iPad Safari not working? -

मुझे इसे & lt; head & gt; : में मिला है & lt; स्क्रिप्ट & gt; फ़ंक्शन लॉग (इवेंट) {var Url = "./log.php?session=<?php इको session_id ();? & Gt; & amp; event =" + event; XmlHttp = नया XMLHttpRequest (); XmlHttp.open ("GET", यूआरएल, सच); XmlHttp.send (नल); } & Lt; / script & gt; और यह & lt; body & gt; : & lt; वीडियो आईडी = "वीडियो" src = "./ वीडियो / लैरीविडियो.एमपी 4 "नियंत्रण =" नियंत्रण "पोस्टर =" ./ img / video_poster.jpg "onabort =" लॉग ('ऑनबोर्ट'); " oncanplay = "लॉग ( 'oncanplay');" oncanplaythrough = "लॉग ( 'oncanplaythrough');" ondurationchange = "लॉग ( 'ondurationchange');" onemptied = "लॉग ( 'onemptied');" onended = "लॉग ( 'onended');" onerror = "लॉग ( 'onerror');" onloadeddata = "लॉग ( 'onloadeddata');" onloadedmet

c++ - Check whether a string is a valid filename with Qt -

क्या QString वर्तमान ऑपरेटिंग सिस्टम पर वैध फ़ाइल नाम (या निर्देशिका का नाम) है? उदाहरण: // कुछ वैध नाम परीक्षण, मैं नाम के लिए मान्य होना चाहता हूं, नहीं । Under_score .dotted-name // कुछ विशिष्ट नाम बृहदान्त्र: नाम // यूनिक्स ओएस के तहत वैध है, लेकिन विंडोज में नहीं क्या? // यूनिक्स ओएस के अंतर्गत वैध है, लेकिन अभी भी विंडोज पर नहीं मैं इसे कैसे प्राप्त करूं? क्या कोई Qt अंतर्निहित फ़ंक्शन है? मैं एक खाली फ़ाइल बनाने से बचना चाहूंगा, लेकिन अगर कोई अन्य विश्वसनीय तरीका नहीं है, तो मैं अभी भी यह देखना चाहूंगा कि कैसे इसे "स्वच्छ" तरीके से करने के लिए। बहुत धन्यवाद। I ऐसा मत सोचो कि क्यूटी में एक अंतर्निहित कार्य है, लेकिन यदि बूस्ट एक विकल्प है, तो आप बूस्ट का उपयोग कर सकते हैं। फाइलसिस्टम। यदि बूस्ट एक विकल्प नहीं है, तो name_check फ़ंक्शंस पर इसका पृष्ठ अभी भी एक है विभिन्न प्लेटफार्मों की जांच के लिए क्या अच्छा अवलोकन।

c++ - Function pointers usage -

संभव डुप्लिकेट: हाय सब, क्यों ये दो कोड एक ही आउटपुट देते हैं, केस 1: #include & lt; stdio.h & gt; टाइपफीफ़ शून्य (* mycall) (int a, int b); शून्य ऐडमी (int a, int b); शून्य म्यूल्मे (int a, int b); शून्य subme (int a, int b); मुख्य () {mycall x [10]; एक्स [0] = & amp; addme; एक्स [1] = & amp; subme; X [2] = & amp; mulme; (एक्स [0]) (5,2); (एक्स [1]) (5,2); (एक्स [2]) (5,2); } शून्य एडेम (int a, int b) {printf ("मान% d \ n" है, (a + b)); } शून्य म्यूल्मे (int a, int b) {printf ("मान% d \ n" है, (a * b)); } शून्य subme (int a, int b) {printf ("मान है% d \ n", (a-b)); } आउटपुट: मान 7 है मान 3 है मान 10 है केस 2: #include & lt; stdio.h & gt; टाइपफीफ़ शून्य (* mycall) (int a, int b); शून्य ऐडमी (int a, int b); शून्य म्यूल्मे (int a, int b); शून्य subme (int a, int b); मुख्य () {mycall x [10]; एक्स [0] = & amp; addme; एक्स [1] = & amp; subme; X [2] = & amp; mulme; (* एक्स [0]) (5,2); (* एक्स [1])

wpf - Close View From viewModel using MVVM or without ViewModel -

When the user clicks on the close button (x) at the click or I just want to know something like the application quayand, Yes, an application is a comma. Close and use only this as a suggestion: anywhere you have a close button, bind it to the application command. Turn it Off: & lt; Button content = "{StaticResource CloseX}" command = "shutdown" /> Now in your base class you use your ideas, register the event handler for this command and when it sets a fire, remove the view from her parents. Or otherwise close the view. The description of how to do this depends on how your view windows are managed, if each view is an independent window, just close the window. But if a visual manager manages the layout, then delete that scene.

user interface - Is there any crossplatform GUI library for C language? -

संभव डुप्लिकेट: क्या सी भाषा के लिए कोई क्रॉसप्लैट जीयूआई लाइब्रेरी है? (मेरा मतलब है कि कम से कम मैक लिन जीतना है) यदि कोई भी एक्सएमएल-जैसे जीयूआई संपादन मॉडल है, तो कोई जीयूआई संपादन क्रॉसप्लेट विज़ुअल प्रोग्राम ग्रेट हो जाएगा!) मैं बहुत उपयोग करता हूं यह उपयोग करने के लिए सुसंगत और अच्छा है। इसे पूर्व में जिम्प के लिए एक आम प्लेटफॉर्म के रूप में उपयोग किया गया था, लेकिन इसे व्यापक रूप से इस्तेमाल किया गया और लिनक्स के अंतर्गत ग्नोम डेस्कटॉप के लिए आधार टूलकिट है। जीयूआई संपादक का उपयोग मैं लिनक्स के अंतर्गत कर रहा हूं। विंडोज के तहत परिवर्तन के बिना उत्पन्न कोड को फिर से बदला जा सकता है जीएलआईबी एक अंतर्निहित पुस्तकालय है जो फाइलें, नेटवर्क, मूल प्रकार और संग्रह प्रदान करती है। जब तक आप ग्लिब का उपयोग करते हैं, तब तक आप ज्यादातर ओएस स्वतंत्र होते हैं। मैं यह उल्लेख करना भूल गया था कि ग्लैड ने एक्सएमएल में यूजर इंटरफेस को स्टोर किया है और इसके बाहर कोड तैयार किया है। ग्लैड पेज पर मैंने देखा कि वहाँ एक विंडोज़ संस्करण है लेकिन मैं इसके व्यवहार के बारे में बहुत कुछ

asp.net - programmatically logout a "specific" user -

Is it possible for a user to log in to aspen MVC? I know that you can use it: FormsService.SignOut (); But it requests the context of the webpage. I am trying to stop a user logging twice so if I call: membership user memberUSUSR = membership Getuser (username); If (membershipUser.IsOnline == true) {// logout this user, we can log them in FormsService.SignOut () again; } Calling FormsService.SignOut (); There is no effect on user context, already logged in with another webbrover? This is a common method to accomplish this goal, on each page load, check that existing users Need to sign out or not. if (User.Identity.IsAuthenticated & amp; UserNeedsToSignOut ()) {FormsAuthentication.SignOut (); // Kill the authentication cookie: Response.Redirect ("~ / default.aspx"); // Make sure that you do not redirect to a cookie request)} You are concerned that this method will be very slow, < P> "Why do I call this cursed function every page lo

ruby - rvm and different versions of a system library -

Let me run a set of tests against same ruby ​​version and the same gemset Required but with different versions of .so library For this, I need two Ruby installations (for the same version 1.8.7), each indicates for each other .so files How can I go about doing this? The use of Gemset is already too late because library binding is done when RVM installs a Ruby version is installed. This will work well with a hack and 4 ~ 5 different configurations (tag, revision number, date of modification, and so on) < P> Problem solved

automation - Can a Heroku app add/remove dynos or workers to/from itself? -

Heroko allows you to add and remove the dinosaurs and workers on the flight, and each copy takes you into each charge. Is it possible to install my app so that it can add / remove the dinosaurs and workers on the basis of that load? An API is mentioned on Heroku.com, but I do not know much about it. Yes you want something like this: ' Haruku: 'Hauruku :: Client. Anne ("username", "password") is required. Set_workers ("appname", num_workers)

java - What does 'Conditional expressions can be only boolean, not integral.' mean? -

'Conditional expression can be only boolean, not integral.' What do you mean I do not know Java and I know that C + + is not deffenetly to understand what it means .. Please help (C ++ and Java item 7 has been found compared to sub-item 1) From a logical point of view, conditional expression is naturally bullion (truth or false). However, some languages ​​such as C and C ++ allow you to use numerical expressions or pointers as a conditional expression. When a non-Boolean expression is used as a conditional expression, then these zeros are converted into zeros in comparison. For example, you can type: if (numeric expedition) {// ...} and this would mean: If (numeric expression! = 0) {// ...} This short code allows, especially in pointer languages ​​such as C and C ++, where testing for zero pointers is fairly common, however, it does not explicitly make clear your code in high level languages ​​like C # or The Awa, using numerical expressions are not permitted

objective c - Simple Drawing App Design -- Hillegass Book, Ch. 18 -

I'm working through Aaron Hillegos Coke programming Mac OS X and I challenge Chapter 18. Actually, the challenge is to write an app that can pull the egg using your mouse, and additionally, add saving / loading and undo support. I am trying to think of a good class design for this app which follows MVC. Here's what I did: is an NSV-subclass, which represents an oval (called jabwal), which I can easily attract an oval. There is a main scene (JBDrawing Weave) which holds and stores Jebows. The thing is that I was not sure how to add the collection. Should I collect every jebwal? I think this will work, but collecting an NSView does not seem very efficient any ideas on better class design? Thanks is an NSView-subclass that is an oval (JBOval ), Which I can use to easily draw an oval. It does not sound like MVC "JBOval" looks like a model class for me. There is a main view (jb dropping weave) that holds the jawballs and pulls them. I have to do

Java EE 6.0 and .NET 4.0 comparison -

We are running our applications on .NET 3.5 and are either updating either updating to .NET 4.0 or completely switching to Java platforms. , Java EE 6.0, as we have heard from some clients that "this is better." Can anyone explain some major differences between the two platforms and what type of cost can be associated with switching, instead of just updating, to Java, or to me some such comparisons In some articles or papers indicate? Thank you! (half-smart-alecky, half-serious). Do you like them with Pro-.NET bias, or a Java-bias? You can get articles with both spin, your customers are only biased if you are already trained. NET developers, and a big codebase in .net, switching is not understood, especially if some uninterested customers claim that religious views are "good" Java. She said, here is an article. And to avoid just mis-interpretation, I'm not saying that Java is bad. I think that both of the good platforms are in spending time and

asp.net - Can I have a .net 4.0 subdomain of a .net 3.5sp1 website? -

I am maintaining a .NET 3.5sp1 website. I want to upgrade a portion of the site to 4.0 so that I can use Silverlight 4.0 & amp; RIA Services Can I create a subdomain of my main site, and whether subdomain 4.0 is running while the main website runs 3.5? 4.0 uses a new runtime, that means two sections of your site separate app domains , And that means some things like session and authentication token will not be released well, this does not mean that you can not do that, but to overcome some challenges.

vb.net - How to 'do' ByVal in C# -

As I understand it, the C # parameter passes in the context according to the context. In VB.NET, you can specify it with ByVal and ByRef by default byVal. Is it compatible with Visual Basic 6.0, or is it just random? Also, how can I use C #? I think the value of passing the value to the parameter like value There are parameters in C #, this clear from the value default passed There is no modifier to do, but if you add ref / outside the parameter is referenced. Here is the general confusion between the differences: Passing the value value (Changes in the value-type are not visible to the collar, but values-types Should ideally always be irreversible) The value-type is passing from the context (the change in the value-type is visible to the collar, but value-types are ideally irreversible in any way Should - so important that I Changes made in the context of the passing value ( field / properties of ref-type are visible to the collar, but for a new / different

Visual Studio 2010 Not Debugging .NET 2.0 Code -

Please paste it with me, this is a strange thing. Since upgrading from VS-2008 to VS-2010, some people (and mine) found that we can not debug any of our breakpoints in our code anymore. Used to be. Without giving too far, I have written NET apps that we run above the developed custom platform application. These apps have been compiled in .NET 2.0. Debugging usually involves setting up the startup program to debug our platform app's X. and launch it from there. Interestingly, none of our developers working on Vista / Windows 7 machines - were just Windows 2003 / XP crowds. About combining Visual Studio 2010, .NET 2.0 and Windows XP, something means that we can not debug anymore in our applications. I do not know exactly why this problem should only occur in Windows 2003 and XP machines. Can anyone leave any light? "post-text" itemprop = "text"> I have been able to find a workaround, thanks, the problem is that when code is debugging, which i

jQuery Tablesorter - column not sorting alphabetically -

I'm not sure what's wrong with this page: The first column type is , But it is not returning the data in the correct order. The table automatically pulls information from a WordPress database that is being generated by the custom PHP function, I thought this could be a problem, but as you can see the fourth column (end date) correctly I could also see that I thought it could be a link in the first column that was messing things up, but break the text-extraction code completely. This is the jQuery code I'm using to call Tablesbury: & lt; Script type = "text / javascript" id = "js" & gt; JQuery (document) .ready (function ($ ($) {$ (document) .ready (function () {// caller plugin calls the magic markup $ ("# projecttables"). Header logic and an object / Debug / abugging: true, // sortlist: [[0,0]], header: {0: {// set the column to sort as text sorter: 'text',}, // second column Assign (we start counting zero) 1: {//

c# - Can I clone an IQueryable in linq? For UNION purposes? -

मेरे पास WorkOrders की एक तालिका है। तालिका में प्राइमरीवर्ककार & amp; प्राथमिक भुगतान फ़ील्ड इसमें एक माध्यमिक वर्कर और amp; माध्यमिक भुगतान फ़ील्ड (जो null हो सकता है)। मैं 2 बहुत ही समान प्रश्नों और amp; उन्हें संघ बनाएं ताकि यह एक कार्यकर्ता फ़ील्ड और amp; पे फ़ील्ड इसलिए यदि एक एकल वर्कऑर्डर के रिकॉर्ड में दोनों प्राइमरी वर्कर और माध्यमिक वर्कर क्षेत्र में आते थे तो मुझे दो रिकॉर्ड वापस मिलेंगे। इन 2 प्रश्नों का "खंड" हिस्सा बहुत समान है और निर्माण के लिए लंबा है। यहां एक डमी उदाहरण है var q = ctx.WorkOrder.Where (w = & gt; w.WorkDate & gt; = StartDt & amp; w.WorkDate & lt; = EndDt); अगर (showApprovedOnly) {q = q.Where (w = & gt; w.IsAprproved); } // .. अब अधिक फिल्टर लागू अब मेरे पास hideZeroPay नामक एक सर्च फ्लैग है अगर यह सच है तो मैं रिकॉर्ड को शामिल नहीं करना चाहता, अगर कर्मचारी को $ 0 का भुगतान किया गया था लेकिन जाहिर है कि 1 क्वेरी के लिए मुझे PrimaryPay फ़ील्ड की तुलना करने की आवश्यकता है और दूसरे मे

oop - Is it possible to implement Separated Interface in PHP? -

I recently relayed the unit of operation and Asked a question in the Mapper classes: - (which was answered by Gaber De Meuse - Thx) In PoEAA, Martin Fowler to manage these dependencies separate interface My question is simple - is it really possible to implement this method in PHP, or what Is Java Interface Specific? I have searched high and low and it is difficult to find references to this pattern anywhere outside PoEAA. Yes, this is possible (why would you doubt this?) If you are looking for an example, you can check it out.

ajax - Calls through UpdatePanel cause ASP.NET validations (css) to not show up -

I have an ASP.NET AJAX form where ASP.NET verification is baked. When I push the code into a production environment and use the form, beliefs are not shown after an AJAX call (Validation is still working, but not showing CSS - eg * Field Required Message). If I do not call an AJAX, then the legalization just looks fine. I have read that there is a bug in UpdatePanel: and I read this blog for which there is an alternative solution for this - which does not work for me: Can someone put some light on it? ? Thank you. It is easy to put the style in the update pinal. XMple directly taken from the link & asp: UpdatePanel id = "TheUpdatePanel" runat = "server" & gt; & Lt; ContentTemplate & gt; & Lt; Style type = "text / css" & gt; Div {display: block; Overflow: Auto; }. Collapsed {Height: 50px; }. Expended {height: heirs; } & Lt; / Style & gt; & Lt; ASP: Panel CssClass = "collapsed" run = "server&

PHP: variable not working inside of function? -

$ पथ गूंज; // काम करने की फंक्शन बनावट सूची ($ पुनर्प्रवल) {echo $ path; // प्रिंट काम नहीं कर रहा है "& lt; form method = 'POST' क्रिया = '' enctype = 'multipart / form-data' & gt;"; ($ $ मूल्य के रूप में लौटाया गया है) {प्रिंट "& lt; इनपुट प्रकार = 'चेकबॉक्स' नाम = 'हटाए गए फाइल्स []' id = '$ value' value = '$ value' & gt; $ value & lt; br & gt;"; } प्रिंट "& lt; इनपुट वर्ग = 'submit' name = 'deleteBtn' प्रकार = 'जमा करें' मान = 'दिनांकई (एन) लॉस्चन' & gt;"; प्रिंट "& lt; / form & gt;"; } मैं क्या कर रहा हूँ गलत? क्यों $ पथ सही createlist फ़ंक्शन के बाहर मुद्रित है, लेकिन यह फ़ंक्शन के अंदर पहुंच योग्य नहीं है? क्योंकि यह फ़ंक्शन में परिभाषित नहीं है। इसके बारे में कुछ तरीके हैं: 1) एलेक्स को बता कर कहें फ़ंक्शन यह एक वैश्विक चर है: $ पथ गूंज; // काम कर रहे फ़ंक्शन बनावट सूची ($ रेटवाल) {वैश्विक

setup payment for django satchmo -

This is a novice spec question ... so I've applied satchmo for a deseggo e-shop. I am here. After the tutorial I have a setup sathakami, some products have been created, tested that I can order, and then by clicking on 'accept real payment' and switch to 'real mode'. The question is how can I pay my bank account (a bank in Greece)? I have not found any reference on this, please help! At BTW, checkout page, I get this You need to fill at least one field * How do you want to pay? Payment method * Payment examination module gift certificate then what does the payee test module mean? Do I have to install another application? Currently the settings include 'payment', 'payment.modules.dummy', 'payment.modules.giftcertificate', Thanks a lot for any help! Satchmo has multiple payment methods I'm not sure who interacted with your Greek bank account There will be payment methods. Generally people use something like Authorize.n

scalability - Database security / scaling question -

Usually I use a database like MySQL or PostGreSQL on the same machine because the application using it, which makes it easy to access And becomes safer. I'm just building the first site in which there will be a separate physical database server (later this year). I am thinking of 3 things: (Security) What should I consider for security related initiatives to access a different machine database? (scalability) Should they consider scalability issues related to their (technology Ahnostic)? (More ServerFault ish but related) If DB is started on the same physical server (using separate VMVero VM) and later on going to a different physical server Are there unequivocal problems that I have to deal with? localhost ? Still, another VMM has not been used through if these questions are completely ridiculous, then I apologize to you DB experts. Easy, I'll provide you safe .. well, security with the physical location of the database server There is a lot to do. Howev

html - Inline form fields with labels placed on top -

I do not believe that I have to ask this, but I am at the end of my intelligence I'm trying to display 2 form fields inline, but with the label of each field at the top. In ASCII art: label 1 label 2 --------- --------- | | | | --------- --------- should be very simple. & lt; Label for = foo & gt; Label 1 & lt; / Label & gt; & Lt; Input type = text name = foo id = foo / & gt; For labels & lt; Label = bar & gt; Label 2 & lt; / Label & gt; & Lt; Input type = text name = bar id = bar / & gt; I'll find this: --------- --------- label 1 | | Label 2 | --------- --------- To get a label at the top of the box, I add display = block: & lt; Label = foo style = "display: block" & gt; Label 1 & lt; / Label & gt; & Lt; Input type = text name = foo id = foo / & gt; & Lt; Label = = "display: block" for style = & gt; Label 2 & lt; / Label & gt; & Lt; Input

issue when outputting an http:// address in a sub-array with json and php -

I'm trying to get an output like this {"status" : "Ok", "0": {"id": "11", "title": "digg", "url": "http://www.digg.com"}} but instead I am receiving it {"status": "ok", "0": {"id": "11", "title": " Digg "," url ":" http: \ / \ / www.digg.com "}} This is the PHP code being used to generate jsson $ links = array ('id' = & gt; '11 ',' title '= & gt;' digg ',' url '= & gt; "http://www.digg.com "); $ Msg = array ('position' = & gt; 'right', $ link); Echo json_encode ($ msg); Any idea what's going on? UPDATE I should pay attention to the actual URL, "should be in the" before "/" in the output, or is there a way to stop it? Both of these are valid, JSON, so it should not make a

c++ - no match for operator= using a std::vector -

मेरे पास इस तरह घोषित वर्ग है: वर्ग स्तर {निजी: std :: वेक्टर & LT; mapObject :: MapObject & gt; विशेषताएं; (...)}; और इसके सदस्य कार्यों में से मैं इस तरह से उस वेक्टर के माध्यम से पुनरावृत्ति करने की कोशिश करता हूं: vector & lt; mapObject :: MapObject :: iterator; के लिए (यह = features.begin (); यह & lt; features.end (); यह ++) {/ * लूप कोड * /} यह मुझे सीधा लगता है, लेकिन जी ++ मुझे यह बताता है त्रुटि: src / level.cpp: 402: त्रुटि: 'ऑपरेटर =' के लिए कोई भी मैच नहीं = ((कॉन्स्ट यरल :: लेवल :: लेवल *) यह) -> यारल :: स्तर :: स्तर :: features.std :: vector & lt; _Tp, _Alloc> :: आरंभ करें [_Tp = yarl :: mapObject :: MapObject, _Alloc = std :: allocator & lt; yarl :: mapObject :: के साथ MapObject & gt;] () ' /usr/include/c++/4.4/bits/stl_iterator.h:669: नोट: उम्मीदवार हैं: __ gnu_cxx :: ___ सामान्य_ईटरेटर & lt; yarl :: mapObject :: MapObject *, std :: vector>> & amp; __ gnu_cxx :: __ normal_iterator &

How to insert a xml node as first child in another xml document in java? -

उदाहरण के लिए रूट = & lt; रूट & gt; & Lt; param मूल्य = "एबीसी" & gt; & Lt; param मूल्य = "बीसी" & gt; & Lt; / जड़ & gt; नोडटॉइन्सर्ट हो सकता है & lt; insert & gt; & gt; पैरामीटरDesc & gt; afds & lt; / parameterDesc & gt; & lt; / insert & gt; आउटपुट होना चाहिए: & lt; root & gt; & LT; सम्मिलित & gt; & lt; parameterDesc & gt; afds & lt; / parameterDesc & gt; & lt; / डालने & gt; & Lt; param मूल्य = "एबीसी" & gt; & Lt; param मूल्य = "बीसी" & gt; & Lt; / जड़ & gt; अगर यह निकलता है तो मैं वास्तव में चिढ़ जाऊंगा मैंने आपके लिए आपका होमवर्क किया । पैकेज com.akonizo.examples; आयात करें java.io.ByteArrayInputStream; Import java.io.StringWriter; आयात javax.xml.parsers.DocumentBuilder; आयात javax.xml.parsers.DocumentBuilderFactory; आयात javax.xml.transform.OutputKeys; आयात javax.xml.transform.Transformer;

Multiple many-to-many JOINs in a single mysql query without Cartesian Product -

Currently, I can get results with two different SELECT statements SELECT from: COUNT (rl.refBiblioID) selection bl.biblioID by biblioList BL Left group_concat ( ', al.lastName, al.firstName) order CONCAT_WS (by al.authorID) include bl.biblioID = rl.biblioID group refList rl When biblioList BL left al.authorID = ba.authorID include Group ba.biblioID = bl.biblioID on biblio_author which AuthorList Al Ba JOIN combining them in this way, however, select group_concat (CONCAT_WS (':', al.lastName, al.firstNa Me) order by al.authorID), COUNT (rl.refBiblioID) biblioList BL from left to biblio_author ba.biblioID = Join B on the BL To Duplicate name author results column Join Join al.authorID = ba.authorID AuthorList al biblioID Left refList rl by bl.biblioID = rl.biblioID Group bl.biblioID Causes for How do I get the desired results from a SELECT statement without using DISTINCT? Along with alcohol? If subdivision is acceptable, then I believe that you can do th

c++ - Help with this compile error -

I've just picked up an old project and I'm not sure what the following error might mean. g ++ -o BufferedReader.o -c G -Wall -std = c ++ 0x I / usr / include / xmms2 -Ijsoncpp / include / json / -fopenmp I / usr / included / ImageMagick I / usr / include / xmms2 I / usr / include / libvisual-0.4 -D_GNU_SOURCE = 1 -D_REENTRANT I / usr / include / SDL -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SCRIPT_LIB -DQT_SHARED include I / usr / / QtCore I / usr / include / QtGui I / usr / include / QtScript BufferedReader.cpp file included BufferedReader.cpp in: 23: /usr/include/stringkh:36:42: error: binary operator missing the first token "(" file /usr/lib/gcc/i686-redhat-linux/4.4.3/../../../include/c++/4.4.3/cwchar:47, included from / usr / lib / gcc Is / i686-redhat-linux /4.4.3/../../../../include/c++/4.4.3/bits/postypes.h:42, / usr / lib / gcc / i686-redhat -linux / 4.4.3 / Usr / lib / gcc / i686-redha t-linux / 4.4.3 /../ from /../../../../ included / C ++ / 4.4.3 / iOSFWD: 42

Killing COM object from C# -

I have a COM object that we are calling from C #. It works great, and I have my own objects, whenever I want to be able to use it. Now I have to kill the object. I have tried to release the COM object explicitly and then collected the trash from another thread, but it does not do anything, is there any other idea to kill this object? Thanks for the help. I have tried system time. Interact Services Mursal Release Com Object (myApp); GC.Collect (); GC VATForming Finishers (); MyApp = null; And I make it by myApplication.ApplicationClass myApp = new myApplication.ApplicationClass (); This complete code is written in this COM object vb6, below is the C # code vb6 component phone myApplication.ApplicationClass myApp = new myApplication ApplicationClass ( ); String user = this._User; String pass = this._Pass; String company = this.companyNumber; Try {if (myApp.Login (Ref: user, Rif Pass, referee company)) {// Make some actions} Other {Throw New System. Exposition (MIS

java - How to force delete cookies even if one window is still open? -

In IE8, this option apparently 'preserve favorite website data', even if I unchecked it, the browser still keeps cookies until the last window is closed. The problem scenario is that I am logged into somesite.com, without logging out, I closed the window, but still another IE8 window was opened in this case IE8 will keep cookies on this site. So if I open the site again (one window or other) then the site will not ask for login information. Customer wants to log off the web application as soon as the user closes the browser Can I delete cookies that save IE8? Or maybe I can stop the user from closing the window until I can not simulate a click on the logout button? Thanks everything, I have tried many ways including you, and it did not work. My solution was as follows: When the user clicks the X button (the browser closes), a JavaScript onunload function will be called this function logout Clicks on the button. The function prevents the browser until the logout i

c - What is DEFAULT_CC in function declaration? -

I'm relatively new to C , and I'm curious that this syntax is in the declaration What does it mean: int DEFAULT_CC foo (zero) Where DEFAULT_CC is probably defined elsewhere: #define DEFAULT_CC "Something" (I realized that I had to do the previous example completely irrelevant). More likely calling conference A calling conference determines how values ​​from a function are exceeded And come back. Specific values ​​can be cdecl or stdcall . For a comprehensive explanation of the X86 Convention, see. int "cc" foo (zero) will not be compiled.

algorithm - question about cryptography -

I have a question that can give me a link about cryptography with algorithms? Thanks, I'm using it very commonly in Java language, it is also possible in C ++, but the site's heart must be part of the methods and principles Just try googling this link: Secondly if you are Google for" Cryptography in Practice ":)

postgresql - problem with TEMPORARY TABLE -

मैं PHP के भीतर: 1।) एक अस्थायी तालिका बनाई गई है: टेम्पलेट तालिका new_table बनाएँ SELECT .... FROM ...; 2।) उसके बाद मैं एक आकृति फ़ाइल बनाने के लिए इस तालिका का उपयोग करना चाहता हूं: shell_exec ("pgsql2shp .... -u username -P password .. ।); Separetly उन दो बातें काम करते हैं, लेकिन एक अस्थायी तालिका बनाकर और pgsql2shp में इस तालिका का उपयोग करने के बाद काम नहीं करता है। मुझे यह दबाएं क्योंकि अस्थायी तालिका की अवधि सत्र के अंत में है। Shp फ़ाइल बनाने के लिए मुझे यूज़रनेम और पासवर्ड का उपयोग करने की आवश्यकता है जिसका मतलब है कि नया सत्र शुरू होता है और अस्थायी तालिका को मैं आकृति निर्माण के लिए उपयोग करने से पहले हटा दिया जाता है। कोई भी टिप कैसे इसे हल कर सकता है? धन्यवाद! हां, अस्थायी तालिकाओं को सत्र के अंत में या वैकल्पिक रूप से अंत में हटा दिया जाता है लेनदेन। सामान्य तौर पर आप उन्हें किसी अन्य प्रक्रिया में नहीं भेज सकते हैं। एक वास्तविक तालिका बनाएं, इसे स्टिकर द्वारा एक अनन्य नाम दें इसे एक आईडी एनजी और आकृति निर्माण चलाने के बाद तालिका ड्रॉप। यदि आ

java - How to make 2 HtmlUnit's WebClients use same cookies? -

If I make 2 webcells in different threads, how can I use them one cookie? You can use the following code: cookie manager Cookiemanager = new cookieManager (); WebClient1.setCookieManager (cookieManager); WebClient2.setCookieManager (cookieManager);

c - How do I execute a function from RAM on a Cortex-M3 (STM32)? -

I am trying to run the function with RAM on a Contex-M3 processor (STM 32). The function erases the internal flash and rewrites it, so I should definitely be in RAM, but how can I do this? Is I have tried to do it: Memkpi (copy it to function in a byte array in RAM using the check right is aligned properly), function pointers point to the byte array (Indicator) when calling a function for This probably works well for 10 instructions (I can follow the execution with the debugger) but then I get a bass error and reset the processor. The buzz error occurs through the loop on the second loop, so the code should be fine (because this first pass works). I am thinking that using RAM faster in some way eliminates Brus time ... Is there any way to do this anyway? How does a scatter file look like a function automatically in RAM (I use the Qylax UI for Cortex-M3)? In Edit: More information: Tulcan: Real Viyyu Mdike-ARM v 4.10 Compiler: Armsisi v4.0.0.728 Assembler: Armsm v4.0.0.728 L