1,372 Posted Topics

Member Avatar for externalaw
Member Avatar for DemonGal711
Member Avatar for punitdam

You need to remove the 'mysql' parameter from connect. Should look something like this: [code=perl]use DBI; $dsn="DBI:mysql:database=mysql"; $dbh=DBI->connect($dsn, 'root', 'root', {RaiseError => 1});[/code]

Member Avatar for punitdam
0
531
Member Avatar for MyRedz

Because you never increment "n" anywhere. In your do while, you need to stick an n++ some place.

Member Avatar for MyRedz
0
130
Member Avatar for bipinbaglung
Member Avatar for MohitManocha

I'm not sure what you mean by "clean" the registry key, but it's all too easy to write to the registry like this: [CODE] dim WSH set WSH = createobject("WScript.Shell") WSH.RegWrite "HKCU\Software\Microsoft\Internet Explorer\TypedURLs\url1", "http://www.google.com" [/CODE] That will effectively replace the value in url1 to [url]http://www.google.com[/url]. The most difficult Part of …

Member Avatar for pratik30.ei
0
1K
Member Avatar for Usura

You could look into using find: [inlinecode]find / -name $1[/inlinecode] or you could try doing it by piping it to grep: [inlinecode]find / | grep "$1" [/inlinecode], but in order for you to make it go from shallowest to deepest, you might have to do something with sort, such as …

Member Avatar for Comatose
0
114
Member Avatar for AnGuRuSO
Member Avatar for MosaicFuneral

To give yourself a pat on the back? Another Interesting Fact: you can also post your own arbitrary snippets... but can't post tutorials.

Member Avatar for MidiMagic
0
130
Member Avatar for sweet_girl

How 'Bout Reading The Sticky Post: [url]http://www.daniweb.com/forums/thread41057.html[/url] ?

Member Avatar for abu taher
0
130
Member Avatar for chris5126

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 shell doesn't handle floating point numbers. In a Perl script, I could knock this out, …

Member Avatar for Aia
0
243
Member Avatar for Darkangelchick

Sounds like it was saved in a different format.... is this the same machine you made the file on?

Member Avatar for Darkangelchick
0
140
Member Avatar for dev_kc

How 'Bout using code tags, and reading the office tutorial? [url]http://www.daniweb.com/tutorials/tutorial51307.html[/url]

Member Avatar for dev_kc
0
200
Member Avatar for MosaicFuneral
Member Avatar for cruisx

I hate suggesting things like this but you can use system: [code=cplusplus]system("word.exe");[/code]

Member Avatar for nucleon
0
15K
Member Avatar for sillyboy
Re: IRC

Yes. I'm not sure about if it exists through a web page... but you could connect to it with a program like [url="http://www.mirc.com/"]Mirc[/url], [url="http://download.cnet.com/IceChat-IRC-Client/3000-2150_4-10587438.html"]IceChat[/url], or [url="https://addons.mozilla.org/en-US/firefox/addon/16"]Chatzilla[/url] the firefox add-on. Then you just connect to server: irc.daniweb.com (port 6667), and join channel #Daniweb. There is probably still a web client for …

Member Avatar for sillyboy
0
94
Member Avatar for tux4life

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)

Member Avatar for jbennet
0
267
Member Avatar for perumar
Member Avatar for iamthwee
Member Avatar for Zcool31

Personally, I like the approach of having things as self-contained and self-aware as possible. This gives you greater flexibility because you are then essentially dealing with plug and play objects, instead of a monolithic overseer. I guess though, that the real question that should drive your decision.... is which design …

Member Avatar for Zcool31
0
111
Member Avatar for yhcheong

You could probably get away with using expect. Basically, you could have your script call the expect script in a loop (or figure out how to make expect do a loop) which will be for each machine you want to test. So, make your shell script do a loop, where …

Member Avatar for Comatose
0
1K
Member Avatar for sham
Member Avatar for Blackeagle

I usually just do it at the command line when I want it. Not that you could tell with *nix, but it might help to conserve resources... it's fairly easy: [code]X :1 & export DISPLAY=:1 startkde & # or gnome-session or something[/code] another pretty easy way is to do it …

Member Avatar for Comatose
0
97
Member Avatar for winry
Member Avatar for winry
0
84
Member Avatar for Merlin33069

Good luck. I had a tutorial up once that was taken down, and then administration refused to put it back up when I inquired about it.... Furthermore, all tutorials now go through a rigorous examination from the administration before being put up in the forums.... can't tell I'm still bitter …

Member Avatar for Comatose
0
126
Member Avatar for bilal_h86

Don't confuse the difference between a machine initiating a connection, and having one initiated with it. If 192.168.1.3 tries to make a connection to a server on the internet, it will do so no problem, because the router remembers who start the conversation. You are trying to make a client …

Member Avatar for bilal_h86
0
224
Member Avatar for winrawr
Member Avatar for infernojmd
Member Avatar for ashkash
Member Avatar for Comatose
0
190
Member Avatar for Evan M

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 the same object as button[0]....

Member Avatar for Evan M
0
175
Member Avatar for winrawr

Just remember scope when playing with those braces. If you declare something inside the braces, it will only exist between the braces: [code=cplusplus]int main(int argc, char **argv) { int a; { int a; a=5; } cout << a << endl; }[/code] That is a whole different beast. Be careful of …

Member Avatar for winrawr
0
90
Member Avatar for Comatose
Member Avatar for Henry Schubel
Member Avatar for Henry Schubel
0
112
Member Avatar for fyp_mcs

With a loop. If you are using windows, then focus on Getcursorpos, and Setcursorpos.

Member Avatar for Comatose
0
31
Member Avatar for johnray31

A Structure in C++ [b]is[/b] a class. The only difference between the struct keyword and the class keyword, is that by default struct makes all members not explicitly identified as public. A Class makes all members (unless otherwise noted) private. That's it. No other difference. Struct has a default constructor, …

Member Avatar for Comatose
0
104
Member Avatar for HLA91
Member Avatar for happygeek
Member Avatar for jbennet
0
616
Member Avatar for risa
Member Avatar for veledrom

I think if you are on linux, you should use a real database (like mysql). Sorry I can't give you a better response than that, but I'm just not sure it's plausible.

Member Avatar for vimotaru
0
99
Member Avatar for perlseek

If your e-mail client handles HTML, you can simply enclose it in [noparse]<b> </b>[/noparse] tags. You are really heavily reliant on the e-mail client for this.

Member Avatar for Comatose
0
32
Member Avatar for karthik.c

Capitalize socket in your third line. use Socket, not use socket. Also, remove the qw line following it.

Member Avatar for karthik.c
0
185
Member Avatar for Bladtman242

in windows can you use ShellExecute, which is an API call that will allow you to spawn an application.

Member Avatar for Bladtman242
0
1K
Member Avatar for nav33n

I don't get it on your post here... I don't get it on the first link, but I do get it [url=http://www.daniweb.com/forums/post805292-1.html]Here[/url]. I'm guessing he added those <b></b>'s into the code perhaps?

Member Avatar for nav33n
0
222
Member Avatar for venomocity

[b]Module:[/b] [code=vb]Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long[/code] [b]Play Button:[/b] [code=vb]CommandString = "open """ & FileName & """ type mpegvideo alias " & FileName RetVal = mciSendString(CommandString, vbNullString, 0, 0)[/code] Then research …

Member Avatar for venomocity
0
170
Member Avatar for Alibeg

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 install build-essential. Possibly you might just do apt-get install g++, but I think build-essential has …

Member Avatar for Alibeg
0
620
Member Avatar for k2k

[code=perl]#!/usr/bin/perl system("cat '/something/something/something/darkside.txt'");[/code]

Member Avatar for k2k
0
77
Member Avatar for nagatron

[code=vb]dim x as string x = "hello world" if instr(1, x, " ") <> 0 then msgbox "yeah, space." else msgbox "no sir!" end if[/code]

Member Avatar for nagatron
0
188
Member Avatar for viv_daniweb

*waves his hand like a Jedi* You want to code an open source active directory clone.....

Member Avatar for siddhant3s
0
164
Member Avatar for aqee_se
Member Avatar for Sky Diploma

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). If I'm not mistaken, in linux EOF is ^D, and in M$ I think it's ^Z.... …

Member Avatar for Sky Diploma
0
210

The End.