Search Results

Showing results 1 to 40 of 49
Search took 0.01 seconds.
Search: Posts Made By: onaclov2000
Forum: Perl 26 Days Ago
Replies: 6
Views: 667
Posted By onaclov2000
$target =~ m/^[yY]ou/; # this will grab lines starting with you or You (not sure if the character class is right, but it looks to be).
just do an "if" on that above search, and then don't print if...
Forum: C++ Sep 14th, 2009
Replies: 4
Views: 238
Posted By onaclov2000
Thanks,
I will try these when I get home, I didn't realize I could "step through" a line by using the >> and a vector.

I am a little confused about:
istringstream iss(line);

I've never used...
Forum: C++ Sep 14th, 2009
Replies: 4
Views: 238
Posted By onaclov2000
So I guess my question is:

Can I grab an entire line using cin.getline(), and grab an entire line and ignore the whitespaces?

What I'm trying to do is grab the following line:
2 3
and I want...
Forum: Perl Aug 17th, 2009
Replies: 5
Views: 1,038
Posted By onaclov2000
I know i've used print `command`; as well with varied success.
Forum: C Aug 17th, 2009
Replies: 1
Views: 212
Posted By onaclov2000
Ok, so this is confusing me alot, right now I have a structure as such:
struct f_c_8 {
union {
float f;
unsigned char c[8];
};
};
now I declare a variable of that type
...
Forum: Java Jul 23rd, 2009
Replies: 1
Views: 194
Posted By onaclov2000
I can at least look at this reference,
Basically the regex can be broken down as such
1. look for an a
2. now look for either none or more ba,
OR
none or more ab
(But not both)
3. look...
Forum: Python Jul 23rd, 2009
Replies: 11
Views: 426
Posted By onaclov2000
Sorry, not a python guy, kinda more of a perl guy (gonna try to learn python someday), but I expect that python has RegEx support, would it be possible to extract that data via a RegEx not sure if...
Forum: Perl Jul 17th, 2009
Replies: 2
Views: 313
Posted By onaclov2000
# Fill in the following variables.

# Source file in the format of
# FirstName, LastName, ClassYear, Home Phone#

$infile="US2010";

$tmpclass = substr($infile,$inlen_len -2);

# Drive and...
Forum: Apple Hardware Jul 15th, 2009
Replies: 2
Views: 3,765
Posted By onaclov2000
I will say at least for me alot of times I put music on in the background so I can study in peace (at home), so when you go into a test and don't have that "common" element it can make the test...
Forum: VB.NET Jul 14th, 2009
Replies: 2
Views: 762
Posted By onaclov2000
When you publish the project is there not a .exe file that is associated with it in the deployment folder, or have i mistaken the question?
Forum: C++ Jul 14th, 2009
Replies: 1
Views: 165
Posted By onaclov2000
first off...you're trying to store ji as a integer, and it's not an integer, you would most likely want to store it as a string or char array.
so what you would want to do is write it as string k,...
Forum: VB.NET Jul 13th, 2009
Replies: 6
Views: 643
Posted By onaclov2000
I haven't had time to play with it much for a while (and might not for a bit again),
"For now" I just used BG worker and passed back the results through the e, and then in the "work done" (can't...
Forum: Perl Jul 13th, 2009
Replies: 7
Views: 693
Posted By onaclov2000
First things first, looking at your code, you're only searching on the string you provide
my $string = my $string = (FT CDS complement(join(18028..18116,19351..20668))); # string to...
Forum: C++ Jul 10th, 2009
Replies: 10
Views: 429
Posted By onaclov2000
Wouldn't a simple If Not Defined wrapped around the include solve the "conflict"?

Sorry I'm still learning too, so far this has been a quite informative post and I didn't even ask the...
Forum: Windows NT / 2000 / XP Jul 10th, 2009
Replies: 4
Views: 315
Posted By onaclov2000
I would check out process library.

There is also a link on Lifehacker for a tool called:
Process Quicklink...
Forum: C++ Jul 10th, 2009
Replies: 10
Views: 429
Posted By onaclov2000
The original post doesn't specify if it's a header file or not, thus my confusion, typically if you write a function in your header file, then #include it would that not be a legitamite way of doing...
Forum: Perl Jul 9th, 2009
Replies: 7
Views: 7,107
Posted By onaclov2000
This is gonna sound terrible, but Google. I did most of my learning in google, but that is primarily for syntax, if you know how to program but don't know the syntax, then simply search what you're...
Forum: C++ Jul 9th, 2009
Replies: 10
Views: 429
Posted By onaclov2000
Wouldn't you just use a "include" statement and include the second file in the first, then it's just a normal compile and the compiler will handle what files need to be compiled due to direct...
Forum: Windows NT / 2000 / XP Jul 9th, 2009
Replies: 3
Views: 250
Posted By onaclov2000
Well this one will take up a little math, but figure out how many days have occured between then and now (# of years times 365.25) and then the number of days from the 4th of january to todays date....
Forum: VB.NET Jul 9th, 2009
Replies: 6
Views: 643
Posted By onaclov2000
So I tried reading a little, I'm still having some problems:

An error occurred creating the form. See Exception.InnerException for details. The error is: Current thread must be set to single...
Forum: VB.NET Jul 8th, 2009
Replies: 6
Views: 643
Posted By onaclov2000
so if I call invoke is that calling the "current" running instance? I'm not sure if I'm following why you get the cross thread error, I do recall getting that, but I'm not sure how the thread that...
Forum: VB.NET Jul 8th, 2009
Replies: 6
Views: 643
Posted By onaclov2000
When I'm attempting to load a program, there is a certain aspect that relies on a separate api to grab information to stick in a listbox (combobox whatever). I would like to be able to load the...
Forum: Perl Jul 8th, 2009
Replies: 6
Views: 660
Posted By onaclov2000
I ran into that question on another topic I was discussing with a co-worker, we suspect since i have cygwin setup that might be skewing my answer,
ALTHOUGH we should be able to use the dir command,...
Forum: Perl Jul 7th, 2009
Replies: 6
Views: 559
Posted By onaclov2000
I would say that you could do something like /Check\s+(\d+)?8/

I believe that would say match Check and a space or more, and one or more optional digits and an 8, and that *should* match anything...
Forum: Perl Jul 7th, 2009
Replies: 6
Views: 660
Posted By onaclov2000
I'm not sure if it's fast or not, but can you do a ls-t, grep the names, then print them?
Ex.
@x = `ls -t`;

foreach $x (@x)
{
print $x;
}
$asdf = <>;
Forum: Perl Jul 7th, 2009
Replies: 3
Views: 639
Posted By onaclov2000
I suppose I found a "way around" using the clipboard, for anyone interested check out my blog, I still want to get the entire selected file list but I suppose I can't seem to figure it out at this...
Forum: Perl Jul 7th, 2009
Replies: 5
Views: 419
Posted By onaclov2000
That was my suspicion not sure how those are read in....
Forum: Perl Jul 7th, 2009
Replies: 5
Views: 419
Posted By onaclov2000
Would you please post example data?

It's hard to know how to handle the data if we don't know how it's read in by the script.
Forum: Windows NT / 2000 / XP Jul 6th, 2009
Replies: 3
Views: 910
Posted By onaclov2000
couple ways to do it, I would say if you're testing you'd want to open a command prompt and then type in the name of the batch file, then a space then the first parameter, then a space then the...
Forum: Shell Scripting Jul 6th, 2009
Replies: 15
Views: 1,516
Posted By onaclov2000
If you have perl, this would be a simple program to come up with.....you can just grab all .txt files, then open each of them, and read it in print out as needed, and once you see for example 2 blank...
Forum: Windows NT / 2000 / XP Jul 6th, 2009
Replies: 3
Views: 910
Posted By onaclov2000
Have you tried just running
call c:\folders\do.exe -a -b

It should be as simple as that...now if -a and -b are files, you really need to pass the entire location in, because if you call from a...
Forum: Perl Jul 6th, 2009
Replies: 7
Views: 693
Posted By onaclov2000
First I would really like to see the output (If any).

Second I would recommend
for :FT CDS complement(join ( 14006...14068, 19351..20068))
1. /^FT \s+ CDS \s+ ...
Forum: Perl Jun 26th, 2009
Replies: 4
Views: 605
Posted By onaclov2000
So I'm assuming you are looking for things that "end with" such and such,

that being the case a simple regular expression might do?

if ($line =~ m/yahoo.com/i)
{
if ($line =!...
Forum: Perl Jun 26th, 2009
Replies: 3
Views: 382
Posted By onaclov2000
First off I would recommend doing this to get all the text (in my opinion) if you dont' have a large file anyways:
open(FILE, "<", "numb.txt" ) || die "Unable to open numb.txt <$!>\n";

@inputFile...
Forum: PHP Mar 6th, 2009
Replies: 6
Views: 864
Posted By onaclov2000
I wanted to basically setup a "web text editor" and make it so if I do HW anywhere (school home work etc.) I can just login access the file via a web interface, then click save, then compile and it...
Forum: Windows NT / 2000 / XP Mar 5th, 2009
Replies: 0
Views: 227
Posted By onaclov2000
I posted this in the Perl Section of the forum.http://www.daniweb.com/forums/thread179893.html


What I'm looking for is a way to find a "list" of all files selected in a particular window, I.E....
Forum: C++ Mar 4th, 2009
Replies: 11
Views: 514
Posted By onaclov2000
Glad I could help!!
Forum: C++ Mar 4th, 2009
Replies: 11
Views: 514
Posted By onaclov2000
Also you may want to take a look at this for setw
http://www.cplusplus.com/reference/iostream/manipulators/setw.html

Basically you wouldnt have to do the " " in all the places you...
Forum: C++ Mar 4th, 2009
Replies: 11
Views: 514
Posted By onaclov2000
Not sure if this will help but here goes:
http://www.cplusplus.com/reference/clibrary/cmath/log.html

Looks like you can just call log(n) and it should work?

I'm not sure why it's not working,...
Forum: Perl Mar 4th, 2009
Replies: 3
Views: 639
Posted By onaclov2000
I thought of that "kinda" but the problem is right now I call it via:
cmd.exe /c myscript.pl %1

it will only run them one at a time, so it won't run the "second instance" until the first is done,...
Showing results 1 to 40 of 49

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC