Posts

c# - Output parameters not updated after ExecuteReader() -

जब मैं cmd.ExecuteScalar () या cmd.ExecuteNonQuery () चलाता हूं, तो ऑब्जेक्ट पर आउटपुट और इनपुट आउटपुट पैरामीटर से अपडेट हो जाता है संग्रहीत कार्यविधि में परिवर्तन हालांकि सीएमडी के लिए ऐसा नहीं होता है। एक्सक्टेयर रीडर () यह SQL सर्वर और MySQL कनेक्शन दोनों पर हो रहा है क्या इस डिजाइन से व्यवहार है? अरे यह आपकी सहायता कर सकता है ऐसा प्रतीत होता है कि यह निश्चित परिस्थितियों में एक समस्या हो सकता है।

ruby - RubyZip - files from different directories have path in zip -

I'm trying to use rubypip to package some files, I currently have a method that is special Visually zips on directory and sub-directories def zip_directory (zipfile) Dir ["# {@ directory_ to_zip} / ** / **"] Reject {| F | Reject_file (f)} Do each. File_path | File_name = file_path.sub (@directory_to_zip + '/', ''); However, I want to include a file from a completely separate folder, I have the following method to solve: Zipfile.add (file_name, file_path) and end / P> def zip_additional (zipfile) additional_files.reject {| F | Reject_file (f)} Do each. File_path | File_name = file_path.split ('\\'). The last zipfile.add file (file_name, file_path) expired The file has been added, instead of giving the place, file the directory structure copies in the root of the folder. This is really annoying and makes working with it more difficult. How can I do this? thanks The full path for ZIP (or out) zip libraries, check that setti...

c# - Extension method on type -

Is there a way to create an extension method for that type? I am able to make them for examples. public static class MyExtensions {public static string test (this string) {return "test"; }} Public class test {static zero test it} {string.Test ()); // string will not compile the s = null; S.Test (); }} No, this is not possible. Extension methods can only be made for example

c++ - Most efficient way to store a mixed collection of doubles and ints -

I need to store ints and a couple of doubles (representing nominal and actual valuable data) in C ++. I have to explicitly assign them all to std :: vector & lt; Double & gt; I can store in , but it feels a bit wrong and does not get aesthetics bonus points. I could have cooked up something based on polymorphism, but I need to make the collection really efficient: collecting and retrieving the data in the archive should be as fast as possible. I find it difficult to decide whether such a solution would be more efficient. I have also come to know, which can be of help here. Additional information: The number of objects in the collection Briefly: I can clearly explain it in countless ways, but I'm not sure what a good solution would be when ( I) Efficiency is really important and (ii) I also want to write some good code. What is my best bet here? Edit, additional information: The collection represents a 'row' in a large data set; its elements represen...

javascript - Wrapping a div around the document body -

I am trying to dynamically wrap the body tags of a document in a DIV. Up to now, I have used the following code: document.body.innerHTML = '& lt; Div id = "wrap" & gt; + Document.body.inner HTML + '& lt; / Div & gt; '; This works, but there is an unwanted side effect that the other script is working on the same page (I believe because any object referencing the internal HTML is useless Can). What will be the best / most effective way to achieve and retain references using a pure javascript or prototype framework Thanks in advance! You do something like this: var div = document .createElement ("div"); Div.id = "wrap"; // Move the body of the body to this cover, while (document.body.firstChild) {div.appendChild (document.body.firstChild); } // Add the ring to the body document. Don.appendChild (div);

compilation - Ironpython 2.6 .py -> .exe -

I have already tried to use py2exe (not compatible with ipy) and pvc (from old time) . Can anyone tell me in the direction of a good compiler? You can use, the Python command-line compiler , which version 3.1 has been included in IronPython so that an executable python script can be compiled. You can find it on your hard disk at % IRONPYTONINSTALLDIR% \ Tools \ script \ pyc.py . Example Assume that you have a simple script test.py which prints something out of the console for you to command it with a command line Executable (assuming that the IronPython directory is the current directory and that is also test.py ): ipy.exe tool \ script \ Pyc.py /main:test.py/ target: exe Note: If you are using the form and do not want the console to open the window, The / target: winexe instead of / target: Want to use the exe . Click the result for two files, test.dll and test.exe . test.dll will include your actual script code, while test.exe is only a launcher f...

.net - C#/ASP.NET: Create Database Report? -

How do I go about creating a report that receives data from the database? I go to the third party tools, because a flexible reporting solution is itself a project, and possibly : Do not fit in your development program. There are several options for asp.net.