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
I often have a command that processes one file, and I want to run it on every file in a directory. Is there any built-in way to do this?
For example, say I have a program data which outputs an important number about a file:
./data foo
137
./data bar
42
I want to run it on every file in the directory in some manner like this:
map data `ls *`
ls * | map data
to yield output like this:
foo: 137
bar: 42
When I code, I always write little pieces of unit, and compile it often. This helps me to make sure that everything run correctly, but it's very time consumed. is there any programming language that can support us to do coding and running at the same time side by side ? i mean as soon as a key press leads to valid code, the effect of the edit is incorporated into the executing program.
What is the best way to prepare for a java career ? Could you study on your own, make a few open source projects or work as a freelancer to build credibility ?
OR should I sit through my 3 year CS program. I am in heavy student loan debt from my previous degree....so I'm trying to find the fastest way to find a job, or get paid !
I have some text files with some useful data wrapped in between HTML tags like <td>, <span>, etc. I want to write a program which extracts the data in between the tags.
The text file contains other junk data too. I would also like to store these extracted data into SQL Table. Anyone who can guide me in right direction?
Is there a way I can find out all changes to memory by a particular piece of code( a function or a line of code ) without knowing in advance where I expect the changes(I want to watch the whole program memory space)? watch in gdb requires me to know what I expect is changing...
I would like to use the GCC -fstack-protector-all option on release mode. The main issue is that when there is an override a code is built. I would like to plug something that will just dump the stack and let the program continue. Is there a way to do that?
Hi,
How to properly construct regular expression for "grep" linux program, to find all email in, say /etc directory ?
Currently, my script is following:
grep -srhw "[[:alnum:]]*@[[:alnum:]]*" /etc
It working OK - a see some of the emails, but when i modify it, to catch the one-or-more charactes before- and after the "@" sign ...
grep -srhw "[[:alnum:]]+@[[:alnum:]]+" /etc
.. it stops working at all
Also, it does't catches emails of form "[email protected]"
Help !
Is it possible to capture all the sound from a computer and have it pass through a equalizer before reaching the speakers?
How can you program a band pass filter on it?
EDIT: I'm trying to get this on Windows (with Python? heh) but if there is a generic, cross-platform approach that would be great.
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 ?
Hi I have a wordpress installed on
h*ttp://domainname.com
and I would like to have replication of the same website on a subdomain for example
h*ttp://sub1.domainname.com
h*ttp://sub2.domainname.com
What should I do to make this happen without copying any database and the wordpress should be smart enough to recognize the "sub1" and "sub2" to be used later in the program.
Hello to all, I'm doing a html text feature extractor in C++; the program need to be REALLY fast: i need to extract a this features in ms per html page and the memory usage needs to be good and finally unicode encoding well be nice.
I know how difficult is to have all of this things, but i want a parser close to these things at least.
Somebody have a suggestion?
I am doing some input/output between a c++ and a python program (only floating point values) python has a nice feature of converting floating point values to hex-numbers and back as you can see in this link:
http://docs.python.org/library/stdtypes.html#additional-methods-on-float
Is there an easy way in C++ to to something similar? and convert the python output back to C++ double/float? This way I would not have the problem of rounding errors when exchanging data between the two processes...
thx for the answers!
Hi all
I am looking for some compare application that i will be able to use from my code .
I need to compare files and know if they identical if not to get the lines and text where the difference was found.
Most;y i compare a text(ASCII) files.
So i need program with easy api for that thing.
Thanks for help.
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)?
In my node.js program I have a response stream attached to a message queue (zeromq) delivering data at a very high rate. Due to slow network connection the response stream and its underlying implementation is unable to consume data at that pace thus occupying a lot of memory. Do you have any suggestion to solve this problem.
For reference please see the code snippet below:
zmq.on("message", function(data) {
res.write(data);
// End response on some event
});
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 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.
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'm playing with TI-83+ BASIC development. But I want to know if I can
write my code on the computer and compile it, then transfer the
program to the emulator.
I'd like to prove that a GUID is not unique in a simple test program.
I expected this to run for hours but it's not working. How can I make it work?
BigInteger begin = new BigInteger((long)0);
BigInteger end = new BigInteger("340282366920938463463374607431768211456",10); //2^128
for(begin; begin<end; begin++)
Console.WriteLine(System.Guid.NewGuid().ToString());
I'm using C#
as we know, we can run eclipse in command line as follows:
eclipse.exe -clean
I need run my eclipse rcp program in the same way
myrcp.exe path
then how can I get the parameter "path" in myrcp code?
thanks~
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),