Couldnt think of a good place to post this, please move as appropriate :)
I have 2 servers in separate locations - One is an ISP shared server, and the other sits in my house. I'm wondering if there is a way to host an identical file on both boxes and when a user wants to download the file I...
Another Windows gripe here.
Whenever I go to map a drive (start->right click 'my computer'->Map Network Drive...-> use different user name) it always has the wrong username in the combobox.
How can I either remove this or reset it to the username I want to use?
I'm thinking this is somehow...
IsNumeric(123+) returns true, while
IsNumeric(1+23) returns false
Seems like a bug to me, can anyone provide insight why this is? Is there a better way determine that a string contains all numbers without looping through each character? TIA-
I have 4 datagridviews on a form, each sits within its own tab (tab control). I'm changing properties at run-time. All 4 have the same properties, so rather than writing the same code 4 times, is there some way to set up a loop that can handle this? TIA-
jr
I'm adding data into a dgv's cells via code. The data in the cell looks like "A/CV/D" (fields separated by forward slash. I would like for the user to be able to right-click on this cell and be presented with a small form that displays each individual field (i.e. A - CV - D) as well as a...
I've only been programming in .net for a few months now. I've managed to successfully create a few apps, mainly just UI's for a database. These have all been pretty straight forward procedure based apps: Retrieve data - display the dataset - update the db.
For some time now I've been hearing...
I have a perl script running as a cronjob that is giving a strange error - 'xxxx: command not found', in the system email I get. I think this is odd since the script runs fine from the command line. I'm not the admin on this box, so the script is a crontab entry this also means I can't access...
Still learning the ins/outs of hashes...this code seems to work, but not when reading from the db (uncommenting db lines). I understand the database stores data as a hash so perhaps I am missing something?
#!/usr/bin/perl -w
#dbmopen(%events,"events",0666)||die;
%events = (
q123 =>...
$ln=~ s/\.\s+/\. /g;
I'm looping through lines in a file, the aim is to ensure all sentences are separated with 2 spaces. The period isn't necessarily at the end of a line.
I would like to modify the code so it will not pad 'Mr. | Dr.' or really any periods which aren't the end of a sentence...
Wasn't sure exactly where to post this, figured this is as good a place as any.
The problem: I would like to run a perl script once a day, but when it needs to run I won't be at the computer, or logged in or have access to the server.
The setup: perl script sits on a linux box, I'm not admin...
I'm trying to pass 2 values into a function, using a foreach statement. For example
my @things = (car::grey, house::yellow, base::own);
foreach (@things){
print "My $first is $second.\n"
}
searching for array pairs returned mostly result about hashes.
I never had to use hashes, so I know...
I'm trying to retrieve a file with net::ftp. The problem is, I know that it will be in one of two directories, either $year=2005 OR $year=2006. Chances are it will be in 2006, but if not, how do I cwd into 2005 automatically if it does not exist in 2006? I've tried messing w/ '-e' doesn't seem...
Hi all, after a bit of searching on google I have (re)turned to tek tips. I have a perl cgi script which generates a dynamic listing of files in a folder for a webpage.
Right now it default sorts by name, but would like to also sort on date, if a link is clicked. Seems pointless to have 2...
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.