Posts

java - packaging jruby script into jar with all dependencies? -

Is there any way to create my existing Vertex script in a single single executable such as Jar or XE? You can do this, and also create OSX .app packages .

objective c++ - Include Obj-C++ header from C++ source file -

अनुवर्ती स्थिति पर विचार करें: MacFont.h struct मैकफॉन्ट: फ़ॉन्ट {// ... NSFont * font; }; मैकफॉन्ट मैकफॉन्ट.एम में कार्यान्वित किया जाएगा फोंटएन्जीन सीपीपी: #if परिभाषित (ओएसआईएमएसी) # "मैकफॉन्ट .h "#elif // ... #endif // ... इसे संकलित करने के लिए, मुझे FontEngine.cpp का नाम बदलकर FontEngine.mm करना चाहिए, लेकिन मैं नहीं हूँ को अनुमति दी। तो अब क्या? यदि आप फ़ाइल नाम बदल नहीं सकते हैं, तो चिंता। फ़ाइल प्रकार को बल देने के विकल्प के लिए अपने कंपाइलर मैनुअल से परामर्श करें, और कंपाइलर को बताएं कि एक्सटेंशन की परवाह किए बिना, यह फ़ाइल उद्देश्य-सी ++ फ़ाइल है।

How do I build two different installers from the same script in inno? -

I want to set a "standard" for external use, but I will use the same script and tell it Probably with a Command Line Ultimate?) To include the second set of files (PDB files for debugging) for our laboratory installations. (And fully install EXE) How can I do this? Is this possible? I do not know how to set it in [File] section. (Add files based on some conditional / absolute value) Note - This user is not allowed to give an option during installation. I want a build-time option to set up my Hudson creation or batch file. I think I can only make a separate installer for PDB, but I have only one file to do everything You can just use #ifdef DebugVersion file: *. Pdb ... #endif and then call this kind of compiler: iscc.exe -DebugVersion ... I will add something like this so that you get different output filenames: #ifdef DebugVersion OutputBaseFileName = mysetup-dbg #else OutputBaseFileName = mysetup #endif Note that you will need an InnoSetup...

jquery - How to access child element out of children()? -

I want to get an element of children instantly, and then want to get a particular class of a child index . Something like this: var index = 25; Var children = $ ("# myListElement"). Children (); If (index; lt; children.length) {if (children [index] .hasClass ("testclass")) {Warning ("Hello!"); I think that. Syntax () is fine, but how do I get them into indexed elements in jQuery style? Thanks children method one Array-like object that includes plain dome nodes, you can wrap it to an inherent element with jQuery, or by using the eq (index) method on it hasClass should be able to use jQuery methods. If ($ (children [index]). Haclas ("Test class")) jQuery does not wrap them by default for obvious performance reasons Does If you are using a firebug or Chrome / WebKit developer tool, you will get an exception when you try to call an undefined method on an object. See . Make sure you are viewing the console output :) ...

c# - Update query for Access Database for certain Parameters -

I am using MS Access as a database and to update some records in it, c #, .net I am using But this is making a mistake in saying: "No value has been given for one or more essential standards." The table has 5 columns and I want to update only 2, I have it for "User_DRL set user_role_id = '" + _UserRole + "', Auth_id = '"+ _authId +"' "+" WHERE id = '"+ _Id +"' "; Where _UserRole, _authId, _Id is the string What could be the error. Do I need to give every parameter in the update parameter or any other way. Thanks Whenever you get such an error, be a breakpoint and Test your query to ensure that you expect. For example, a useror actually exists in the _authId and _Id query. You can add some defensive code before preparing the statement - this example checks to ensure that _UserRole is empty or empty. if (string! I.e.n.l.l.a. (_UserRole)) {...

elisp - In Emacs can you evaluate an Emacs Lisp expression and replace it with the result? -

For example if I have the text: Sum of items (+ 1 2 3) I want to move at the end of the line, evaluate the expression and replace it with the result, so that it can read: Cu Cx Ce In the / kbd> buffer, the preceding parentheses will include the value of the expression. You can do this, then manually back up and delete the original expression. If this is a lot of work, then here is a command that evaluates the preceding expression and changes it with its value: (defun replace-last-sexp () (interactive) (Two (value (eval (predecessor-sexp)) (kill-sex-1) (insert (format "% S" value)))

mercurial - Why TortoiseHg not show the "merge conflict"? -

Brief version of the question: Since I already have TortoiseHg, I clicked on the file on the right to see the merge paradox Was trying for, but there is no way to see it? Description: To make a simple case of merge controversy, I will send a report on hg init win 7 After that clone it to another folder. Now, in a work directory, I added the code "123 is" line, committed. And in another folder, I have done a "hg bridge" and "hg update" Now, I go back to the first folder, and "123" to "123abc" , And then a "hg committed" and then I go to another folder and edit "123" on "123xyz" there, and "commit HG" and when " HG push ", then it says that it can not do. So I try to see any visual tool that is struggling, but ... Is there no alternative to Tortoise HG to do this? There is no conflict yet as SVN or CVS you can back beforehand Before you need to make changes in th...