@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9



Comments:

<0> Actually, I'll try ExtractFilePath(Paramstr(0))
<0> I found some examples that seem to imply that nil will leave the current directory alone.
<0> At least I don't have to update the updater program. Getting an EXE to update itself is a pain in the butt....
<0> Hrmmmm.... I think I'd rather hunt with **** Cheney than ride with a Kennedy....
<1> i'd rather hunt **** Cheney :P
<0> There is that.
<1> bang!
<1> http://www.pbs.org/wgbh/pages/frontline/darkside/
<1> he needs a cloak to look more like the Emperor
<0> Hehehehe.
<1> nice docu, btw
<1> probably "leftist" if you're a o'reilly-cheerleader
<1> interesting bits on the internal power struggle between the CIA and the Pentagon
<1> reminds me, i need to check alt.binaries.documentaries 8)
<2> "Billy Connolly's world tour of England, Ireland and Wales"
<2> that's on BBC2 now



<3> i'm idling on some reality british drunks show on bravo.. basically following typical british youths on a night out..
<3> loads of beer, usually a curry.. then fighting..
<3> it's quite amusing..
<2> heh. What's her name is on again. Fran
<1> hahah go Israel! "Fox Reporters Shot at by Israeli Forces in Gaza"
<2> finally. We've been hunting fox for ages.
<1> well if they're gonna shoot at someone, Fox News seems appropriate
<1> leave Lebanon and Palestine alone
<2> well time to sleep I suppose.
<2> laters.
<3> i suppose that's one thing this country has to be proud of.. it's drunken lout culture :)
<3> don't seem to get that so much in the US.. ..probably a lot of Europe is similar though..
<1> get what?
<3> booze culture.. heavy weekend drinking..
<1> o right. im quite sure you have that there also
<3> yeah.. that's what i'm saying.. it's typical here (in England)..
<1> but like.. an article once said that our capitol in weekends became "the biggest village in norway" :)
<3> heh..
<1> its quite true.. atleast around 3am fri/sat
<1> downtown then... the horror
<3> yeah.. i've been out around town.. i can't see the appeal really..
<3> nightclubs are pretty lame.. and they all play that f**king annoying song 'Gold' by Spandau Ballet..
<3> one of Blade^'s favourites IIRC though.. so i shouldn't mock :)
<0> with nightclubs, >90% of them are crud, but you can sometimes find one that's decent.
<0> Dunno about England, but here in the US if you're in a big city you have a chance.
<3> i can stand the odd rockish music club (more my taste).. but generally, the majority seem to play like kareokee tunes with a LOT of b*** or something.. maybe bigger cities have more to offer though
<3> and you get a lot of 'townies' in the UK.. soley looking for a fight on a saturday
<3> does that make you hard?
<3> i think not..
<3> maybe if you could find one that looked like Saturday Night Fever.. with the multi-coloured floor tiles...
<4> is there a function to read a file into a string
<4> stream rather
<5> THere's a stream that reads files.
<5> TFileStream
<4> k
<4> oh and also, is it easy to do stuff asynchronously
<4> if it isn't, i won't even bother
<4> i know it can get complicated in C#
<5> What do you want to do?
<4> well
<4> see im logging data
<4> and every30 seconds, i upload it to a ftp server
<4> the upload takes about 1-2seconds, therefore i lose small amounts of data
<4> so i want to run the upload asynch
<5> You could do it in another thread. Threading in Delphi isn't too hard.
<0> bobb - I've got some components that do that really nicely
<5> Read the help on TThread.
<0> Vibes^ Threading probably isn't necessary. Doing it async is how I do it on my stuff here and it works well.
<4> Mjolnir: ok like what
<0> What I'm using is Internet Component Suite (ICS)
<0> bobb - are you familiar with state machines?
<4> no
<0> That's the way to go with this stuff....
<0> It's a fairly straightforward concept... Lemme see if I can find a good example.
<4> Vibes^: ok but is the VCL thread safe?
<0> VCL is not thread safe usually
<5> Most of it no.
<5> You have to be careful.
<4> actually that doesnt matter since this will soon become a daemon
<0> bobb - I can give you a section of code of a state machine that does ftp, but I have to rip some sections out that are specific to my clients. So it may not compile as I give it to you.
<0> Are you interested enough to look it over anyway?



<4> yeah sure
<0> Actually, there may be some code on the net to do the same thing and I wouldn't have to rip mine apart.
<0> lemme look.
<0> State machines are incredibly useful when you're working with protocols, be it FTP, or POP3 or whatever.
<4> ah
<4> all i want to do is upload a file using put asynch
<4> thats the only asynch thing i want to do
<0> Why not do it all async? With a state machine that's really easy.
<4> Mjolnir: probably too involved, and the rest dont matter if its async, they arent time dependent
<0> Well, look at this code and see if it's really too involved. ... I don't see any examples so I'm hacking up a piece of mine.
<0> !paste
<0> ?paste
<0> ? paste
<6> Pastebin: http://www.vkarlsen.no/pastebin
<0> Ah, third time is the charm
<0> This example goes farther than what you need because it lists the files on a server and downloads the ones it wants.
<0> But it's still fairly compact.
<4> ah ok
<0> Ok, this goes with Piette's (I think I spelled his name right) internet component suite. Basically the routine is called after an operation completes.
<0> http://www.vkarlsen.no/pastebin/default.asp?id=7315
<0> Ok, there you have a sample of state machine code.
<0> RqType is an enumerated type that tells what operation just completed with the FTP server
<0> I originally maintained the states myself so you'll see a lot of "State:=" lines but I need to remove those with my new logic.
<0> Anyway, do you see how this works?
<0> The idea is that in one state, you look at your situation, and then go to another state based on what you find. For example, after downloading a file, if there's more to download, I go back to getting the file size state, otherwise I go to the shutdown state.
<4> yeah
<4> thats neat
<4> that isn't difficult at all
<0> You should be able to clip that structure down for your own use. The main thing you'll need are the ICS components which you can get off the Delphi super page.
<0> Are you familiar with that site?
<4> yeah ill find it
<4> thanks for your help
<0> You are welcome. State machines are neat. And simple. And they run the internet.
<1> http://www.metacafe.com/watch/178205/every_mans_dream_girl/ (ws)
<7> hello all
<1> more ot; http://www.youtube.com/watch?v=qRGC9U-M9pA (some indian music video)
<7> oh yay - just what I wanted
<1> mc hammer, eat your heart out
<7> oh!
<7> you HAVE to watch this one:
<7> http://www.youtube.com/watch?v=MfAYqezZvMI&search=steering%20wheel
<1> great:)
<4> Mjolnir: you there
<0> Yup
<4> Case RqType of
<4> what would my RqType be
<4> only thing im confused about
<0> I switched to using the FTP control's states instead of my own.
<0> Hold one -
<0> Got several thing going on here.
<4> how is that asynchronous
<4> it doesnt look it
<0> The RqType is generated by the control set I'm using. However I left in some of the old state code by accident. If you were to do things independantly, you'd use State instead of RqType
<4> ah
<4> ok
<4> nevermind about the async thing, i see how it all works now
<0> Did you find ICS ok?
<4> yup thanks
<0> I wish I had a clean example of a state machine, but with a lot of things, you're running along with someone else's. Another example is dial up networking.
<7> bitches
<7> watch it: http://www.youtube.com/watch?v=MfAYqezZvMI&search=steering%20wheel
<8> http://i12.photobucket.com/albums/a247/Achtane/stuff/1151543979.swf
<9> hey
<9> is there someone who can please tell what i'm doing wrong... i'm trying to set > DateTimePicker.Date := StrToDate('24/12-2000'); but it just keeps on telling me that the value isn't a valid date
<10> hiya WraithX
<8> because the function doesn't know the format of the date?
<9> i've set the "format" on the DateTimePicker to dd/MM-yyyy
<8> so?
<9> didn't help
<8> StrToDate function doesn't know it
<9> how do i've "tell" it
<8> read the documentation?
<8> you are using the default date format for that function, which is what is defined in your system to use
<11> quote from a comedian.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #delphi
or
Go to some related logs:

ubuntu textinstall
#stocks
fedora core6
tcl error char map
faisal skyblog
#visualbasic
SATAIII SATAII SATAI
#gamedev
#politics
#computers



Home  |  disclaimer  |  contact  |  submit quotes