@# 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 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33



Comments:

<TML> Lateralus: Listcomps are god.
<Lateralus> TML, they're damn convenient, and I love that. But my coworker uses them for _everything_. Everything. His code is unreadable.
<Ceran> Lateralus: Being hard to learn, or being like Perl?
<TML> Lateralus: Well...
<Ceran> or both? :)
<TML> Lateralus: You can write unreadable code in *any* language. :)
<m1chael> i'm the only coder on our staff
<Lateralus> Ceran, Like perl. I didn't find Ruby hard to learn, however.
<kuja> ^Artnez: Meh, more that bad habits are let loose wide in the open for anyone to **** around with :)
<Lateralus> TML, But in some cases the language helps
<TML> Lateralus: Nah, every language has its own way of helping.
<kuja> Lateralus: gangsta!
<Lateralus> kuja, You keep up this gangsta routine and Kim is going to abduct you to train his army.
<kuja> Lateralus: GANGSTA! :D
<VisezTrance> hello, i'm tring to build a form and submit some data and i wish to preview the page before actually submiting it, but the problem is in that preview there also has got to be a picture that i uploaded with the form, but how can i see that picture without uploading it to my pictures folder on the server ?..
<FatalRemedy> can you refer to an item of an array in another way other then $Array[Item] someway to break it out of [] so its like $array->item ?
<FatalRemedy> I have an array of array's and its getting real messy.
<boneill> FatalRemedy: $array[][][][][] :)
<^Artnez> VisezTrance: you need to upload the picture one way or another. the best thing to do is to first validate to make sure it is a valid image of choice (jpg, gif, etc) and then move it to a temp folder
<VisezTrance> previewing pages will create quite a mess, i'll have many unneeded pictures uploaded
<^Artnez> VisezTrance: if the image is bad, unlink() it :)
<^Artnez> VisezTrance: if the user closes their browser for example, the image will stay. in this case you'll need to periodically go through the temporary directory you've established and truncate it
<VisezTrance> well i wanted everything to be smooth ..
<digx> ;P
<VisezTrance> is there anyway i can clean an entire directory.?
<VisezTrance> as in.. delete everthign within ?
<^Artnez> VisezTrance: i'm sure you can use rmdir()
<p0windah> rmdir will recursively delete files also ?
<VisezTrance> rmdir -R :) ?
<^Artnez> p0windah: my mistake, i'm wrong it wont
<^Artnez> VisezTrance: are you using PHP4 or 5?
<VisezTrance> 5
<^Artnez> goody :)
<^Artnez> use the new Iterator functionality
<^Artnez> i'll send you a link for reference, one sec
<Lateralus> Jymmm, I love you for pointing out Synergy2. Marry me?
<^Artnez> VisezTrance: in PHP5, you can loop through an entire dir with this handy little snip:
<^Artnez> foreach( new RecursiveDirectoryIterator( $path ) as $fullpath => $basepath ) {
<Jymmm> Lateralus: No, but I will have *** with you anytime you like, how's that?
<^Artnez> VisezTrance: check the new SPL library for more info: http://us3.php.net/SPL
<VisezTrance> thanks!
<kuja> Lateralus: Let's do something. Come up with a new design pattern. Implement it in PHP, feeling a little bored. Get me a svn repo so we can start.
<Jymmm> Lateralus: You really should ask BigE to marry you, she's the one that pointed it to me a ways back.
<kuja> rofl, "she" :)
<Jymmm> kuja what you laughing at you shemale!
<kuja> :'(
<Jymmm> kuja =)
<Jymmm> kuja you know you love it
<kuja> Jymmm: Weeeeelll, maybe if you poke me, a little here and there :O
<Jymmm> kuja: sure, where's my broomstick?
<kuja> Harry Potter stole it, use the pogo stick from now on.
<pek> i little regex help: http://pastebin.com/575279
<Jymmm> !+mre
<php-bot> [MRE] 'Meal, Ready to Eat' used by the military in the field and others during a disaster as they have a long shelf life. But you probably wanted 'MRE - Mastering Regular Expressions' the bible of regex http://www.oreilly.com/catalog/regex2/ Use this utility for learning/understanding/troubleshooting your RegEx --> http://www.weitz.de/regex-coach/
<tonester> hey ya'all is the most prefered method when dealing with managing xml data "DOM" ?
<kuja> tonester: Is that the real question? Or is the real question "what is the easiest way to parse XML?" :P
<tonester> kuja: heheh well I found the EASIEST way
<tonester> SimpleXML was super easy
<tonester> until I needed to add a node
<kuja> Well, sure, I was going to say that :)
<kuja> tonester: Well, if SimpleXML is available, I'd use it :)
<kuja> Jymmm: There is.
<tonester> then I ended up finding this guy that converts xml to an array
<Jymmm> kuja: Last time I looked, it was icky
<tonester> and back and forth
<kuja> Jymmm: Not sure of anything native, but, there is. Libraries of the exact same name somewhere, in phpcl***es.org (yes, very icky) :P
<kuja> .org or .com? Meh, who cares :P
<tonester> but found that it[ incredibly inefficient and slow
<tonester> with the dataset I am working with it took 3 minutes just to convert the xml doc to a php array
<dbe> how do I print out the URL of the page?
<Jymmm> !+gv
<php-bot> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
<tonester> hehehe
<kuja> dbe: print_r($_SERVER)
<kuja> That will give server related variables.
<dbe> kuja, thx
<Jymmm> I always mention $GLOBALS, that way they can see all the vars that are availabel to them and MAYBE they'll learn something more than they come in with.
<kuja> Jymmm: Then you get, "HOW DO I ACCESS THE _SERVER ARRAY IN $GLOBALS?!?!?" :)
<Jymmm> kuja: If they can't figure that one out, they have more troubles.
<kuja> Or, people start doing $GLOBALS['_SERVER']
<kuja> Jymmm: Yeah... people are retarded :) ... YOU TOO!
<Jymmm> kuja but i can bitchslap you any time I want.
<kuja> Jymmm: Sooooo, I can still totally call you a retard, which is like, not even an insult, but still...
<pextris> Auuhe.
<Jymmm> kuja: Yeah, keep pushing it bitch!
<shad0w`> moin mman ;P
<kuja> $jymmm->push(LIKE_A_BITCH)
<kuja> :D
<kuja> <3 Jymmm
<Guest88438> keylogger
<caffinated> kuja: if it's a constant, it shouldn't be 'like' something, it should 'be' something ;)
<shad0w`> keylogger
<shad0w`> Oo
<Jymmm> FUUUUUUUUUUUUUUUUUUUUCK
<kuja> Someone take care of those two ****wads.
<kuja> caffinated: lol
<_MMan_> moin shad0w`
<kuja> Jymmm: Guest88438/shad0w`, offenders, rid them!
<caffinated> eh? shadow` didn't actually do anything
<Jymmm> caffinated /topic
<caffinated> ah
<Jymmm> caffinated =)
<caffinated> missed that, apologies
<Davey|Work> wtf is that about?
<kuja> caffinated: slow poke. That's what you get for hanging out in #ruby-lang too much! <3 :D
<Jymmm> Davey they are trojan commands
<caffinated> kuja: #ruby-lang is a m***ive dissapointment
<Davey|Work> I see.
<kuja> Davey|Work: And Norton will automatically kick you off IRC if it detects any of the commands
<Davey|Work> I think shad0w was responding to the other guy
<kuja> caffinated: Why so! :(
<boneill> http://www.ctrlaltdel-online.com/comic.php?d=20060218
<caffinated> kuja: I really expected better out of that place. I think it's been useful a total of one time in months. I'm not sure why I'm even still in there.
<boneill> sorry about that :/
<kuja> caffinated: lol, I know more people now, so I generally get heaps of help. It's all about the connections man! The konnektions!
<Cheesecheese> how do I add dates with php? I want to add 2 months to a date value in my database when i click this nifty orange button. Please point me in the direction of date-add-ness!
<caffinated> kuja: aparently I'm missing something. all I get out of them is stupidity and arrogance.
<kuja> caffinated: Not much different from #python or ##php, not until you start familiarizing yourself. You know how it works :P ... the only really helpful channels on this network are Linux distro channels
<outofjungle> how do i get to know the name of the cli script inside the script? if i call $_SERVER['PHP_SELF'] from an include file, i get the name of the include file, but i want the name of the executed script
<kuja> outofjungle: __FILE__
<Jymmm> Davey|Work: Damn you have too many connections. and I didn't see a questionmakr in his response in his response or wouldn't have done a thing.
<caffinated> kuja: the first time I was in there, I was asking if there was a way in ruby to resolve symlinks to real paths, so that a directory recursion method I was writing could be made to check to see if it was visiting a place it had already been. the response I got from one of the 'experienced' ruby programmers was that I should not bother with it, because it would never happen.
<outofjungle> kuja: doesn't work
<kuja> outofjungle: Yes it does.
<outofjungle> kuja: it returns the name of the include and not the name of the executed file
<kuja> caffinated: lol, who was that? The smart*** dagbrown, or rue?
<kuja> outofjungle: You're wrong.
<caffinated> kuja: today I got called stupid because someone said that viruses in linux were not possible, and I said that was a false statement.
<caffinated> kuja: I can't remember his name offhand, but it was one of the 'important' people
<strobedream> Jymmm: LOL yeah that is a total ****y situation
<outofjungle> kuja: i just checked it. if i include it in the main file, it returns the script name. if i place it in an include, it returns the name of the include
<kuja> caffinated: Hah! Man, some people. I hear ya. There's some people who are generally very helpful for me. rue (occ***ionally), slyphon - dr_bob - dblack <-- Very helpful bunch.
<kuja> caffinated: Target questions at the right time :)
<Jymmm> strobedream: Hell, I wouldn't have even placed the order at all if it wasn't in stock. eeeesh.
<caffinated> kuja: for other problems requiring some thought, people just don't bother to respond. I guess they just can't be bothered.
<Jymmm> strobedream but at least it's only on backorder till MArch 10.
<Jymmm> and will autoship then
<caffinated> kuja: in any event, I haven't had too many problems getting along without them.
<strobedream> Jymmm: LOL depending on what that is that could really screw you
<BarnacleBob> when using serialze/unserialze to store information is the resulting string safe for verbatim insertion into a database (mysql in this case)? or will i have to escape things such as ' and \?
<outofjungle> the $_SERVER['_'] seems to return the executed script filename in PHP5, but nothing seems to be working in PHP4
<kuja> caffinated: I do my friendly humping, and I get them answers. There's always the ***es and helpful ones, (I'm the *** of ##php).


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#python
WYSIWOD emacs
#web
xorg i810 Cannot read V_BIOS
#css
audio player not using X
shellbind fedora
delete files from dvd
Diablo II in non-fullscreen OS X
#debian



Home  |  disclaimer  |  contact  |  submit quotes