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



Comments:

<0> I don't really travel.
<1> sell it :)
<1> play with it
<2> Go get lost on a mountain.
<3> send it to me
<4> I just heard a law called patriot just p***ed ...
<4> was that amendments to the original?
<4> anyone know a little more about what they just p***wd?
<4> er, p***ed
<5> Hi, strange question
<5> Ages ago I saw in some code a metohod or error catching. I can't remember it, and can't find it while searching around for it.
<5> What happened is that there would be a statement and then a string that I can't remember and then a statement to execute if the first statement failed for any reason.
<5> Can anyone point me to a web page on this?
<6> something like a ? b : c ?
<5> Thats an ok way of doing it but it wasn't *the* way that I remember. It was something more like:
<5> command() iffailed die("such and such an error");



<5> but I can't remember what the iffailed bit was
<6> a or b?
<6> (do something) or die("error");
<5> or maybe I am remembering wrongly
<5> yeah
<5> so the or says "if that fails do this"?
<6> yeah
<6> well, b executes if a evaluates to false
<5> thanks very much
<7> does anynone know of any newsletter manager that allows templates and schedule delivery ?
<2> leOn: Cron is your friend.
<7> mattmcc: yes, i know cron, but i also don't need to re-invent the wheel if there's already that does what i need ...
<8> one with a cheesy inside
<8> im a genius!
<2> Cheese, Grommit!
<8> cheeeeeese
<7> i'm aware that the application will use cron the process the deliveries, but right know i have just cron ... no content management nor devlivery management from a web interface
<8> damn, now I want some
<7> =)
<7> s/the/to/
<9> le0n: your sentance makes less sense now that my mind ran that regex;)
<10> i have a postgres DB that stores download auth codes, so I want to have a download.php that verifies the auth code (that's easy and i've done it), but now how do I cause the file to be pushed out to the user once the auth code is verified without exposing the file to the whole world through some obscure link ?
<2> http://php.net/header (See the part referring to Content-Disposition)
<7> lith: s/cron the/cron to/
<7> my bad
<9> leOn: hehe no stress, just bustin your chops
<11> cisse: maybe readfile
<9> what does that mean anyway??? "bustin your chops" ?
<7> everything i could find in google leads to commercial spamming solutions ... *sigh*
<12> leOn: a lot of CMS's have that kind of feature
<13> hi, someone familiar with PDO?
<7> ||cw: yeah ... but didn't really want to go there ... it's like getting a cannon to kill a fly
<7> anyway ... i think i've managed to get by this thing ... just handed it over to the development department
<14> array([0]=>'',['submit']=>'',[1]=>'',[2]=>'') how can I order that, with ['submit'] at the end? If I use ksort, it changes 'submit' into 3
<15> trovster: use usort() and make a custom sort function
<15> err, uksort
<14> I looked at that,wasn't sure of what function to do.
<15> well, is 'submit' the only string key?
<14> Yeh.
<15> then just make a condition where if you're comparing an integer to a string that the string has a lower sort order
<2> Or after sorting, pop off the last key and re-add it by name.
<16> hi all. I'm trying to hunt down a problem (won't say a bug) with horde and translations. I tried this code: http://pastebin.com/578719 but it doesn't seem to work, while calling gettext from the console works. any hints?
<17> caffinated: You **** kuja bawlzz!! >:O
<17> StyXman: We don't support third party scripts here.
<16> kuja: uhm??? this is not third part, I made it my self! this is a php channel, right? that's a 15 line php script.
<16> may be I shouldn't have mention horde at all...
<16> forget I did
<17> StyXman: Normally when you mentioned 3rd party stuff that's the response you're bound to get :)
<2> Knee-jerk reactions, and all..
<16> kuja: I see :-)
<17> mattmcc: I don't have knee-jerks, literally :S
<16> won't make a joke whit jerk in it :-P
<15> kuja: we don't have an electron microscope powerful enough to find them :(
<14> caffinated: Something like this? http://pastebin.com/578723
<17> caffinated: Oh that's harsh, boy! :P
<14> <2> Or after sorting, pop off the last key and re-add it by name. -- aha, that's what I tried the first time ;)
<15> trovster: not exactly what I had in mind



<17> You hurt my feelings, so now I go play PS2 -_-
<15> kuja: ;)
<17> Well, I was planning to, but at the right moment :D
<17> Time to level some characters... FFX... I hope my girlfriend comes online soon -_-;
<17> Cause I'm just tired as **** :P
<15> trovster: you don't actually have to rebuild the array, all you have to do is return 1, 0 or -1 to tell it how to change the order. it will operate on the array in place
<18> did you know an IDE for php programming on linux?
<15> trovster: see: http://php.net/uksort
<16> nxvl: quanta
<14> Yeh, I'm there, don't really understand it
<15> trovster: the callback gets two values. if you return 1, it means the first value is larger than the second. if you return -1, it means the first value is smaller than the second. if it's 0, it means the two values are equal.
<15> the callback will get called repeatadly until it determines the keys are 'sorted' based on your criteria
<14> http://pastebin.com/578727 - that "works" but is ugly... cleanArray, just removes any empty arrays
<15> it will alter the array in place, so at the end, you should be able to do a reset() on the array, and it will be in the order produced by your code
<16> so, noone can help me with php and gettext?
<15> trovster: you can do that, ***uming you don't care what order the numeric indexes are in.
<19> must php files be +x?
<20> sqlite> create table if not exists poo (
<20> SQL error: near "not": syntax error
<2> It's probably drop table if exists.
<21> I think PHP files would need to be executable from system context if they were executed as a shell script
<21> (d-o)
<21> but they at least have to be readable by the PHP binary
<19> _etm, i'm talking apache
<21> lol, ok
<19> _etm, +x not required, ya think?
<21> wish I were more familiar with apache
<19> thx anyways
<22> hola
<16> d-o: depends on if run the php scripts as cgi programs or thru mod_php
<19> mod
<16> d-o: then no
<19> k thx
<23> is there a function that I could encrypt and decrypt a string?
<16> beerdeliveryguy: xor?
<16> beerdeliveryguy: sorry, nevermindme
<24> hmm, is DDL a php-thingie that you could make to handle TimeZone-stuff? =)
<23> lol
<24> I know my question is wierd, but a friend gave me the advice to "make ddl for the timezone-thing"
<23> mcrypt_encrypt and mcrypt_decrypt, how would those work?
<24> php.net
<24> :p
<25> Is it whise to use mysql_free_result ?
<25> When talking about optimalisation?
<2> Depends on the situation.
<2> It may be helpful, or it may be a waste of time.
<26> what package do i need to run php codes on command line?
<25> Could it lead to a mysql error: 'Too many connections' ?
<25> lead/cause
<25> I got this error. I'm closing each connection at the endo f the file, and I'm trying to find the error
<25> using mysql_connect, and closing it on the bottom with mysql_close
<7> hawking: php-cgi
<27> what is a "this error" ?
<25> myc; <25> Could it lead to a mysql error: 'Too many connections' ?
<15> mattmcc: have you done anything with SOAP in php?
<27> sean`: increase the number of connectiosn mysql accepts
<25> myc; I know thats a possibility, but is it adviced to close each connection on the page?
<25> using mysql_connect, afaik it is adviced
<2> caffinated: I have not.
<15> mattmcc: ah, so I guess you wouldn't know of a library to do it that doesn't ****
<28> mattmcc, caffinated, either of you familiar with GD?
<2> caffinated: Alas, no.
<2> Davey|Work: Yeah, it ****s.
<29> Hi all, anyone know a simple way of implementing a priority queue in PHP?
<29> (I mean in memory, no database malarky)
<30> MarkR2, explain the priority queue?
<15> Davey|Work: I do, unfortunatly I have my own issues I need to deal with right now .. and they all kinda start and stop with php soap libraries ****ing
<30> MarkR2, it's actually detailed fairly nicely here: http://en.wikipedia.org/wiki/Priority_queue <-- how to implement
<29> Julian|Work: It's an abstract data type, known to computer scientists everywhere. Its behaviour is that you put things in the queue with a priority, and you always take out the highest priority one. So things come out in a (potentially) different order. Normally it would be implemented as a tree structure or something. For example, in C++, STL provides a type mutli_set which does it
<27> My hospital has a broken priority queue
<30> They go into cost of operations and such on that Wikipedia page-- probably worth checking out.
<29> Just to clarify: I know *HOW* to implement a priority queue, but I don't *WANT* to, because I'm sure someone else has already implemented one which works
<30> Gotcha


Name:

Comments:

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






Return to #php
or
Go to some related logs:

untuntu source kernel headers
#perl
#debian
gyach ubuntu
hci0 dapper
xorg cannot find screen
#gentoo
mysql select into outputfile
#postfix
OpenVPN bridge-start FC5



Home  |  disclaimer  |  contact  |  submit quotes