@# 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



Comments:

<0> is anyone here very familiar with indy 10, namely the tidnntp cl*** ? :)
<1> hi
<0> hi
<1> http://www.youtube.com/watch?v=pgX-hiQdfFw
<1> lol
<1> Hoff's da man
<2> hey Crc!
<3> WPF animation stuff is too confusing :P
<2> nah
<2> it's fairly doable.
<3> well, moving something like you did in that is pretty easy
<3> but, it appears there's about 80000 other things to do with animation
<2> well
<2> it can do a lot :)
<3> so what else can it do? :P
<3> other than slide things around, haha



<2> a lot.
<1> ki9a! goodge!
<2> didn't I just say that?
<2> :)
<1> heh
<2> one of the days, I really need to learn how to do that photographic memory thing.
<3> i want more demos!
<4> ki9a: when you master that... I'll pay you money to teach me.
<2> hehe.
<3> DaynaGirl, I'm sure you've seen the late night infomercial memory things...just buy that
<4> nah. I want the real stuff.
<4> is anyone conversant in php willing to write me a test page?
<2> anythe stargate project scans have the original "SECRET" stamps on it
<2> :)
<5> dayna: I'm a php developer... what do you need?
<4> ki9a: huh?
<2> DaynaGirl: remote viewing
<2> stargate was a project the US govt has been doing since 1970
<2> till 1995 or somethingf
<2> was recently released as part of a freedom of information act.
<4> k0deg3ar: I need to receive a file posted in http POST method along with some $_REQUEST data and have it create a page which echos that the file transfer was successful and echo the $_request variable(s)
<4> is that possible?
<5> yep
<5> not hard... hang on, I probably have some stuff done for this here I can use
<5> dayna: how big is the file you need to have uploaded?
<4> k0deg3ar: say... up to 5Mb
<5> hmmm......
<5> well....
<5> The problem you will have is that the default PHP.INI file settings might have problems with files > 2mb in size
<5> and especially if you are deploying the solution on a web host
<5> that doesn't let you tweak the PHP settings that much
<5> what version of PHP?
<4> 5?
<4> its just for testing.
<5> To be honest, I wouldn't use native HTTP POST method for file transfer for PHP
<4> lets say less than 2Mb then
<5> We use Java applets for this... Much better
<4> k0deg3ar: I didn't write the requirements. i just write code for them.
<5> yeh, but you have to deploy them
<5> its the deployment that is the challenge
<4> actually I don't have to do that either.
<4> just upload the damn file.
<5> Have you seen www.javazoom.com 's jClientUpload?
<4> I need a test page to catch the file and show me the filename and success along with posted arguments.
<5> Take a look at the source of: http://cgi-lib.berkeley.edu/ex/fup.html
<5> Change the Action on the form to your PHP page
<4> *laugh*
<4> why is everyone showing me how to send a file?
<5> If you want to send other variables, create Hidden form vars with the contents, and use a Javascript in the action to change the action to post
<5> The sending of the file is 50% of it. The receiving PHP is just like any other web page that is called from a POST method
<4> I want code to _RECEIVE_ a file and posted variables.
<5> so what you put in the Action string is what is posted, along with the content of any form vars
<5> if the form var contains a file, so be it
<5> Your receiving PHP page simply loops through the $_REQUEST or $_POST array and does with it what you want
<4> I don't do php
<4> I don't know hot to 'simply' anything
<4> how to
<1> wooot?
<1> anna nicole smith is no more?
<1> http://news.bbc.co.uk/2/hi/americas/6344725.stm



<6> ?
<1> found dead
<6> here we go agin
<1> irc gods been busy?
<4> why do I torture myself like this?
<5> what happened?
<4> its called a netsplit.
<5> oh
<5> anyway i have some code for you. How can I get it to you?
<4> (ircd.choopa.net ircd.he.net) <-- one of these two servers unhooke
<4> d
<1> i gotta go, just wanted to say hi :) gonna visit my mom tomorrow in Troms far north in norway :)
<1> so l8r all
<3> What's wrong with VS Express?
<7> I give up. what is wrong with VS Express?
<3> I'm not sure
<3> You tell me
<8> you don't have the webservice template
<6> new york wants to fine iPod users $100.00 what a country we live in
<9> i bet that will reeeeeaaaally help :P
<9> i mean.. if you get hit by a car because you're not paying attention, we're better off without you anyhow
<9> natural selection
<9> heh, people up in northern norway have been putting up frozen raindeer cadavers by the roads as a demonstration against people who just hit&run and don't bother cleaning up after themselves; http://gfx.dagbladet.no/pub/artikkel/4/49/491/491308/rein16_858_1170876114.jpg
<9> maybe NYC should put up ipod-roadkill :P
<10> is it possible to put multiple conditions in a single if then? i.e. if foo = bar and bar = oof then
<3> if (foo=bar) and (bar=oof) then
<10> ahh, thanks :)
<11> Aha! Finally found the major culprit to this performance problem.
<12> profiled it?
<11> In a sense, yes.
<11> I put in some timing code in a couple of precise places.
<11> And narrowed it down until I found a p***-by-copy string parameter where the string is often VERY long.
<11> And since it was called several times in succession, it was bogging things down a bit.
<11> We're not talking huge performance hits here... tying to get rid of 15ms.
<12> why?
<11> Because it can be triggered by a keystroke.
<12> when only 15ms?
<12> *why
<11> And a 15ms delay between hitting a key and seeing a letter on the screen is perceptibly annoying.
<11> Because when I timed it, that's how much I was losing from what Delphi would normally do.
<12> ahhh
<12> i'm working on something similar right now, vibes
<11> The biggest performance hit during keystrokes now is just copying the source out of the editor.
<12> do you do a full repaint for a keypress?
<11> Not always.
<12> doesn't delphi always do a full repaint?
<11> Nope.
<11> Left to its own devices, Delphi paints only the lines you've changed.
<12> i've had to write my own controls in order to get delphi to do partial paints
<11> The Delphi editor control is special.
<11> It's not a windows textbox control.
<11> Doesn't descend from TCustomMemo, as many people think it would.
<12> it does use the same messages as a Rich Edit control though
<12> TCustomRichEdit maybe?
<11> I think there should be compiler warning or at the least, a hint, for not using const or var with parameters that are not register sized data types.
<12> ?
<12> why?
<13> i think that would freak out a lot of people who have no clue about that
<11> Because if you want to be able to change it, it should be a var, and if you don't, it should be a const.
<12> "var types" ARE register size
<11> No reason not to have it.
<11> Rahly: Right.
<11> So are const types.
<12> its compiler enforced
<11> If you use const or var, it just p***es a pointer. If you don't use a modifier, it copies the data structure and p***es a pointer to the copy.
<12> it only copies, if you write to it
<12> const that is
<11> Yes. I'm saying that *NOT* using a modifier is a performance hit (as well as a style hit) and it should be noted by the compiler.
<11> So any time you do procedure foo(s: string);, it should throw you a hint that you SHOULD use const or var.
<12> right, but it only copies it, if its written to
<11> Don't have to, but you can.
<12> if you don't write, its not needed
<12> but why though? it'll still p*** as pointer, no copy, no performance hit
<12> if in your function, you do S:= 'Hello World'; thats YOUR fault for that performance hit


Name:

Comments:

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






Return to #delphi
or
Go to some related logs:

#bsd
zel-ekt
#gentoo
defaultfeature defaultcomponent
#beginner
wow panic status good
#politics
#winxp
cingular 2125 accessories
TDS buffer length too large



Home  |  disclaimer  |  contact  |  submit quotes