Hi,
I am using a FileSystemWatcher to monitor recursively file creation in a directory. Because there are really a lot of files, I wanted to increase the InternalBufferSize. I googled and found that if the buffer is not high enough on huge directories, it can actually miss some events.
So I...
Hi,
I am getting the 'Cross-thread operation error' when running a backgroundworker. I googled around and did a search here in the forum and I understand a trhead cannot write to another.
The thing is I do not want to write, but actually only read.
I want the backgroundworker to loop on a...
Hi,
I am currently learning C# and I would need some advice from experienced programmers.
I am currently writting a small app that is comparable to a printing queue except that the app monitors directories for files and then processes them one by one.
This is what I have done so-for: I have a...
Hi,
This is a followup of the following thread .
I decided to expose my requirements and eventually get feedback from the community. I have spent the WE looking for various options and I have found so many that I would really need advice on which technologies to use.
Introduction:
I want to...
Hi,
I'm pretty new to C# and I'm thinking of writting a small client-server application.
I actually want to have a program running twice on 2 machines talking to each other, I sppose like chat apps.
I've done some searching and I have found some options using sockets, but I not convinced this...
Hi,
This may seem a basic question, but I want to be sure I get this right. I'm writting my first C# form and I still need to understand a few basics.
First question:
My form displays a multicolumn listview to display files that are added by the user. I've created a class for thes e files as...
Hi,
I'm new to C# and I'm trying to build a small application.
This application needs an external program that will be called from inside my own application. Considering that this is a rather small *.exe, I was thinking of including the external exe in my own app and at runtime, extracting it...
Ok here goes...
By the nature of my question, you will understand I am new to XML.
I an trying to create an configuration file in xml format instead og the plain old *.ini
I have projects, that should be associated to a specfic version of an application. So my idee was to define applications...
Hi,
I'm trying to write a small export utility in VB to write the coordinates of a polyline to a text file and I'm tripping on the the bulge.
On a polyline, Autocad reports coordinates and a Bulge on a vertex. I need to convert this to an arc item, and my application supports a constructor...
Hi,
I'm trying to build a SQL statement to get Excel data.
The data is rather messed up, so I wanted to perform some cleanup within the SQL, but the SQL syntax for Excel is confusing me. I need functions, but I can't seem to find which functions are available: I'm used to the oracle functions...
Hi,
I need to extract dates from an Oracle table: I am using the OCI functions.
When I use the "ociresult" for a date field, I get someting similar to (see last two colums):
1088170292,1088170292,25-JUN-04,25-JUN-04
1088170292,1088170293,25-JUN-04,25-JUN-04...
Hi,
I need to create a bunch of temporary files to store information. Best solution seems to be File::Temp, as the files will automatically be removed when script ends/dies.
The thing is, I would like to store the filehandle references in a hash, this would make it easy to maintain, loop, ...
Hi,
I have to create unix format files from windows environment.
So I read in DOS files, parse the data and do things like
print OUTFILE "new data\n";
I'm pretty sure I can use another string escape sequence and
I tried \f and \r, but these did not give me what I needed...
Any suggestions...
Hi,
I'm trying to update an applet in HTML using javascript.
According to documentation, I can pass the parameters as a Hashtable object which doesn't seem a bad idea.
This may seem trivial, but I'm not really a javascript programmer, but more a perl/php guy. When I try to construct the...
I'm trying to compute a value and return it to a scalar. want to do this through an anonymous sub, but I can't figure out the syntax. I basically have something like
$val = sub { return 2 };
I'm creating a reference to the sub, but I would actualy like to get the value 2 in $val.
Must sound...
Hi,
I'm processing a few hundred text files every night to do some cleanup. Basically, I loop on the files and process every line...easy. The thing is, I want to read the regular expressions from a configuration file. So I basicaly load the regex into a @regex array and I loop this array. It...
Hi,
I'm using File::Find to look for files, but File::Find appears to traverse to folders in reverse aphabetical order, that is always starting from the last directory up to the first.
I could of course put everything in an array and reverse it, but I could then be loading an huge array in...
Hi,
I have an application that can callup any URL, including of course PHP, but only using the GET method. It's a bit unfortunate, since the users can see all the arguments passed to the script and could eventually attempt to hack it.
My idee would be to have the php script check is the passed...
Hi,
I'm trying to load a hash with a array as follows:
Standard syntax would look like this
my @array = (15,89,23);
my %hash = ("Value1" => $array[0],
"Value2" => $array[1],
"Value3" => $array[2]
);
I'm trying to do the...
Hi,
If I do a grep on an array, grep returns the lines where the regex was found.
I would like to return the line numbers instead of the contents. I've seen a standard solution (?somewhere?), but I can't seem to find it back.
I'm trying not to re-invent the wheel, so if somebody has this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.