I would like to evaluate some clojure code entered by users interactively, and I would like to "use" certain namespaces and "import" certain Java classes as well. I end up running the code using:
(defn execute-command [string-command]
let [
code-with-context (add-code-context string-command)
result (eval(read-string code-with-context))
]
result
)
My question is how can I program "add-code-context" to add the required context to the code in "string-command"?
I am adding contact functionality to my program, and I want to save the contact list of each individual user, what is the best solution for this? I am new to XML and databases and I don't know which would be best or if there is a database solution that saves locally. Thanks for the help.
During compilation and linking.....what is use of .exp and what is the difference between .lib and .dll . I know that .lib will be used while linking and .dll will be used when running the program... but what exactly is the difference between .lib and .dll does .lib contain the code for the functions comming from .dll? please clarify me... thanks inadvance
Chinese people do not like numbers with a digit 4 in it. I am going to implement a membership program with membership numbers not including the digit 4, say:
number = 3
number.next.has4?
=> true
how the has4? method can be done (efficiently)?
What is the best way to update a Java or GWT program from MySQL. For example, a MySQL database which holds Weather information... updating whenever the weather changes a degree. How would I update a Java / GWT field with each update. Would I use a thread to query every few seconds??
Hi,
I have a C# application which request .net 2 on client system. I like to replace the error message box in case if .net2 is not detected with ruuning an executable program which I have a written how do not request .net2.
I have a C++ program that takes user input for fopen in order to initiate a file write. Could someone help me find a function which will return a FILE* and use the Windows specific version of mkdir in order to create the folder structure for fopen to never fail to open a new file in the specified location because one of the folders does not exist. Thanks a bunch!
Was wondering what kind of software and hardware component cant fail in a rmi program?
so for example in a client server model when a client invokes an object in the server?
thanks
hey ,
I'd like to make a recursive function using C++
I make this class
class linklist
{
private:
struct node
{
int data;
node *link;
}*p;
void linklist::print_num(node* p)
{ if (p != NULL) { cout << p->data << " ";
print_num (p->link); }
}
in the main program what should I write ...
I have about 40000 records in that table that contains plain text and within the plain text, contains that kind of tags which its only characteristic is that they are braced between [ ]
[caption id="attachment_2948" align="alignnone" width="480" caption="the caption goes here"]
How could I remove those? (replace by nothing)
I could also run a PHP program if necessary to do the cleanup.
Is there any program that anyone knows off (not a debugger) that will produce a stack trace of a crashing application?
The application crash can be simulated at will on a server on which I cannot necessarily install a debugger. That's why the question if there's no other way to get a stack trace so I can then have a look.
I was wonding if there was an alternative to itoa() for converting an integer to a string because when I run it in visual Studio I get warnings, and when I compile my program under Linux, it won't even compile.
Thanks,
tomek
Hi,
is there an easy approach to store my model, which I use with EclipseLink, in XML files?
I want to implement an export functionality in my program and I was wondering if this can be done with eclipselink or with any other framework.
Thanks
Hello Everyone,
What is the difference between "+" and "-" before the function name interface declaration in an iPhone program. Example:
- (void)continueSpeaking;
+ (NSArray *)availableVoices;
What's the difference?
how to take user input in Array using Java?
i.e we are not initializing it by ourself in our program but the user is going to give its value..
please guide!!
I have been facing an error when I trigger XSLT from a C# code, It mentions something about dll file access failure every time, so just want to know whether this transformation code creates any dll files (in C:\Windows\temp directory) as such??
(I have mentioned the error and triggering program in my previous question),
It's fairly simple to play a sound file, say temp.wav, from Visual Studio C#. I'm looking for a way to do this without temp.wav being locatable from the machine running the program.
IE - I want to read the .WAV file into my solution so that it is somehow inside of my .EXE and be played by it.
Is this possible?
I am reteriving the set of values inside a table from database in a jsp page then it is in the form of link. Now I want to click that value and move to another jsp page.
How to code the program so that it can recognise that value and it can move to the next desired page.
But I unable to do that.
please help me....
I am trying to create a map app for iphone and I have a little problem. Every pin on the map has a different name. How can my program know which pin button is pushed so it can get the data from the server. I've created only one detailed view and I don't know how to make this work.
How can I change the icon of a .JAR file I want to distribute? I have changed the icon that shows when the program is run, but I want to change the icon in the environment (e.g. Windows XP), that is for the file itself. I googled, but the best I could find is converting the .JAR to a .EXE, which is not the best choice.
I was wondering if there's an implementation of a XML schema reader that for an arbitrary node in XML schema provides list of nodes which are supposed to be present as child nodes of given node, restrictions on nodes and so on.
I'm planning to program it for my purposes but I would like to know if it isn't solved somewhere. I really need only a small subset what I described above.
Thanks for tips!
I have hashtable, my program want to record the valuse of hashtable to process later!
But i have a quesiton . Can web write oject hastable in to file ? if can,how to load that file ?
I want to get the fine name with out the file extension in VIM.
I wrote the following functions in my .vimrc file for compile and run the Java program.
:function! JAVA_RUN()
:!javac %^M
:endfunction
map <F3> :execute JAVA_RUN()<CR> :source $HOME/.vimrc<CR>
In side the function how can I get the file name with out the extension.
If you don't care about minifying your code, is there a way to get started using the Google Closure library without having to set up a subversion client and use the compiler? The Notepad sample program on Google's website refers to
<script src="closure-library/base.js" > </script >
Can you simply download closure-library/base.js somewhere and start playing with the UI examples? The Closure Lite quick-start version doesn't appear to include goog.ui