Search Results

Showing results 1 to 40 of 411
Search took 0.04 seconds.
Search: Posts Made By: Comatose
Forum: Perl Apr 4th, 2009
Replies: 4
Views: 631
Posted By Comatose
You need to remove the 'mysql' parameter from connect. Should look something like this:
use DBI;

$dsn="DBI:mysql:database=mysql";
$dbh=DBI->connect($dsn, 'root', 'root', {RaiseError => 1});
Forum: *nix Software Apr 4th, 2009
Replies: 17
Views: 2,169
Posted By Comatose
In Samba, the dollar sign has special meaning (something to do with netbios and/or hidden shares). Try sharing the name on the 'doz box without a $, and try to connect to it. You MIGHT be able to...
Forum: Perl Apr 1st, 2009
Replies: 4
Views: 1,561
Posted By Comatose
ah, you are missing a slash of some kind it seems... you are escaping the first backslash with the second. You probably need to add something like this:
$map_drive =...
Forum: Perl Mar 31st, 2009
Replies: 4
Views: 1,561
Posted By Comatose
Wait What?

You're running a script on *nix, and want that script to map a drive on a windows machine?????
Forum: C++ Mar 30th, 2009
Replies: 9
Solved: C++ instanceof
Views: 1,207
Posted By Comatose
Nah, in the overridden virtual wage() method, simply put something like cout << "Manager" in the Manager's method, and cout << "Casual" in the Casual's method.

Or make a virtual overridden method...
Forum: C++ Mar 30th, 2009
Replies: 9
Solved: C++ instanceof
Views: 1,207
Posted By Comatose
Here Here!
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009
Replies: 4
Solved: Bookmarks
Views: 334
Posted By Comatose
mkay. Have you done a msgbox on rs.RecordCount, to ensure it has the right number of elements? Like, just before the first if?
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009
Replies: 4
Solved: Bookmarks
Views: 334
Posted By Comatose
How 'Bout using code tags, and reading the office tutorial?
http://www.daniweb.com/tutorials/tutorial51307.html
Forum: *nix Software Mar 22nd, 2009
Replies: 4
Views: 875
Posted By Comatose
what does your xorg.conf look like? (can be found I think in /etc/X11/xorg.conf, not 100% sure about where it is in BSD)
Forum: DaniWeb Community Feedback Mar 22nd, 2009
Replies: 4
Solved: IRC
Views: 715
Posted By Comatose
Yes. I'm not sure about if it exists through a web page... but you could connect to it with a program like Mirc (http://www.mirc.com/), IceChat...
Forum: Shell Scripting Mar 19th, 2009
Replies: 11
Solved: turn mb to gb!
Views: 1,610
Posted By Comatose
One of the biggest problems here, is getting the shell to handle floating point numbers. I'm not using / have access to a solaris machine, so I'm going strictly of bash in slackware.... but the...
Forum: *nix Software Mar 16th, 2009
Replies: 17
Views: 2,169
Posted By Comatose
You need to setup and configure "samba"
Forum: C++ Mar 15th, 2009
Replies: 11
Views: 1,198
Posted By Comatose
Forum: *nix Software Mar 15th, 2009
Replies: 7
Views: 1,170
Posted By Comatose
Sounds like it was saved in a different format.... is this the same machine you made the file on?
Forum: C++ Mar 15th, 2009
Replies: 11
Views: 1,198
Posted By Comatose
you can't put variables inside double quotes. That means it's a literal string then. You want the value of the variable, so you must take it out of the quotes..... You can't just take it out of...
Forum: C++ Mar 15th, 2009
Replies: 11
Views: 1,198
Posted By Comatose
you can't concatenate it?
float Pi = 3.14;
system("AdjustSeaLevel.exe " + Pi + " 5.4 11.2 c f g");
or make a variable that contains the string to pass in, and then issue that?
#include...
Forum: C++ Mar 10th, 2009
Replies: 4
Views: 570
Posted By Comatose
Your loop, where you have buttons[i] = button... yeah, that doesn't create new instances of ButtonFoo. You are taking button[0] and pointing it to button. Then taking button[1] and pointing it to...
Forum: C++ Mar 9th, 2009
Replies: 4
Views: 655
Posted By Comatose
Just remember scope when playing with those braces. If you declare something inside the braces, it will only exist between the braces:
int main(int argc, char **argv)
{

int a;

{
int a;...
Forum: C++ Mar 3rd, 2009
Replies: 2
Solved: CodeBlocks
Views: 1,310
Posted By Comatose
You have gcc (The C compiler) installed, but not g++ (The C++ compiler). cc1plus is the binary you need, but it comes bundled with g++ (not gcc). Look for build-essential, or at a prompt apt-get...
Forum: Visual Basic 4 / 5 / 6 Mar 3rd, 2009
Replies: 6
Views: 524
Posted By Comatose
Bah :icon_eek:

Wish I would have caught that it was homework :/
Forum: Visual Basic 4 / 5 / 6 Mar 3rd, 2009
Replies: 6
Views: 524
Posted By Comatose
dim x as string
x = "hello world"
if instr(1, x, " ") <> 0 then
msgbox "yeah, space."
else
msgbox "no sir!"
end if
Forum: *nix Software Mar 1st, 2009
Replies: 8
Views: 2,623
Posted By Comatose
For which browser (firefox)?
Forum: C++ Mar 1st, 2009
Replies: 12
Views: 638
Posted By Comatose
I wonder if somehow the C++ program is introducing an EOF character prematurely. I strongly doubt it's a crlf \n issue (that is linux uses a different mechanism for new lines than does DOS/Windows)....
Forum: Visual Basic 4 / 5 / 6 Feb 27th, 2009
Replies: 7
Solved: help
Views: 508
Posted By Comatose
replace will work, and is more efficient than using left$().
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2009
Replies: 6
Views: 735
Posted By Comatose
Module:
Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long)...
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2009
Replies: 7
Solved: help
Views: 508
Posted By Comatose
Split the data in the textbox by space... and then trim the extra characters... so something like:
parts = split(textbox1.text, " ")
rlname = parts(0)
rfname = parts(1)
rmname = parts(2)...
Forum: C++ Feb 22nd, 2009
Replies: 11
Views: 525
Posted By Comatose
It's missing { }
Forum: C++ Feb 22nd, 2009
Replies: 2
Solved: curses problem
Views: 343
Posted By Comatose
edit curses.h and look around about line 559, and 1017 or so. My copy of curses.h, however includes this:
/* these names conflict with STL */
#undef box
#undef clear
#undef erase
#undef move...
Forum: VB.NET Feb 22nd, 2009
Replies: 4
Views: 2,473
Posted By Comatose
Ah.... You are posting VB.NET code in the VB 4/5/6 Forum.
Forum: C++ Feb 19th, 2009
Replies: 2
Views: 553
Posted By Comatose
At the top of your header, you have:
#ifdef shape_h
#define shape_h that should really be ifndef. Why define it if it is already defined? ;)
Also, you don't have "draw" defined in your class...
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009
Replies: 2
Views: 632
Posted By Comatose
you should put your code in code tags. Look ssomething like this:

' your code goes here

Will Look like this (how we like it):
'your code goes here That said, somewhere in your form, probably...
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009
Replies: 9
Views: 686
Posted By Comatose
*Point Above*

You were assigning the value of the caption to the textbox, not the other way around. You can do this:
dim x
x = 5
you cannot do this:
dim x
5 = x These are not...
Forum: Visual Basic 4 / 5 / 6 Feb 18th, 2009
Replies: 9
Views: 686
Posted By Comatose
aha! No Caption Set Yet!
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009
Replies: 9
Views: 686
Posted By Comatose
I guess you could put your entire project on here as a .zip file.... the code you have there, I see nothing wrong with. It is perfect.
Forum: VB.NET Feb 16th, 2009
Replies: 2
Solved: Login Page
Views: 336
Posted By Comatose
I'm not sure how using session to store the invalid attempt count works, but it's sounding like a DoS waiting to happen. What if I (not legit user) want to stop you (legit user) from accessing your...
Forum: C++ Feb 15th, 2009
Replies: 6
Views: 1,919
Posted By Comatose
How is the linker supposed to know about the object/variables?
Forum: Visual Basic 4 / 5 / 6 Feb 13th, 2009
Replies: 2
Views: 559
Posted By Comatose
if you know the caption / title of the window you can try this: appactivate "title of window here"
Forum: C++ Feb 11th, 2009
Replies: 4
Views: 727
Posted By Comatose
You are passing no parameters to the Point class's constructor. It expect 3 floats, during instantiation (Point myLocation). You need to give it three floats.
Forum: Perl Feb 10th, 2009
Replies: 4
Views: 642
Posted By Comatose
#!/usr/bin/perl

$filename = "/root/file";
$var = `cat $filename | wc -l`;

print "$var";

EDIT: you shouldn't be stomping around a system as root.
Forum: Perl Feb 10th, 2009
Replies: 4
Views: 642
Posted By Comatose
#!/usr/bin/perl
system("cat '/something/something/something/darkside.txt'");
Showing results 1 to 40 of 411

 


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

©2003 - 2009 DaniWeb® LLC