Forum: Perl Apr 4th, 2009 |
| Replies: 4 Views: 631 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 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 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 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 Views: 1,207 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 Views: 1,207 |
Forum: Visual Basic 4 / 5 / 6 Mar 23rd, 2009 |
| Replies: 4 Views: 334 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 Views: 334 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 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 Views: 715 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 Views: 1,610 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 You need to setup and configure "samba" |
Forum: C++ Mar 15th, 2009 |
| Replies: 11 Views: 1,198 |
Forum: *nix Software Mar 15th, 2009 |
| Replies: 7 Views: 1,170 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 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 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 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 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 Views: 1,310 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 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 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 For which browser (firefox)? |
Forum: C++ Mar 1st, 2009 |
| Replies: 12 Views: 638 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 Views: 508 replace will work, and is more efficient than using left$(). |
Forum: Visual Basic 4 / 5 / 6 Feb 26th, 2009 |
| Replies: 6 Views: 735 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 Views: 508 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 |
Forum: C++ Feb 22nd, 2009 |
| Replies: 2 Views: 343 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 Ah.... You are posting VB.NET code in the VB 4/5/6 Forum. |
Forum: C++ Feb 19th, 2009 |
| Replies: 2 Views: 553 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 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 *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 |
Forum: Visual Basic 4 / 5 / 6 Feb 17th, 2009 |
| Replies: 9 Views: 686 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 Views: 336 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 How is the linker supposed to know about the object/variables? |
Forum: Visual Basic 4 / 5 / 6 Feb 13th, 2009 |
| Replies: 2 Views: 559 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 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 #!/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 #!/usr/bin/perl
system("cat '/something/something/something/darkside.txt'"); |