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



Comments:

<0> Ciantic: yes... but ofcourse I was hoping that there was a function for it, gm supposed to do it with th -colors options but it seems that that function is broken
<1> Ries, well its painfully easy, just use imagecolorsforindex to that
<1> Ries, if the ImageColorsForIndex is the color table fetching function :)
<2> shramko: please no advertisement here...
<3> Okay
<0> Ciantic: But shouldn't I change each index on the image aswell?
<1> Ries, i think you should loop all the index numbers on each image and look for duplicates on single image
<1> Ries, but i can't fully understand where do you need that
<4> when output buffering can a header be unset?
<1> unsetting header :D
<1> you should review your code my friend
<1> xlotlu, it has nothing to do with output buffering
<1> xlotlu, only to be able to send headers has something to do with output bufferin
<1> since, of course, headers should be sent before output
<4> Ciantic: it's a php engine issue i'm trying to overcome with dumb code. that is: session cookies need not be set by the server when the user already sent the cookie in the request
<1> xlotlu, you lost me, that doesn't make sense



<5> hi there. There's a feature I've been looking for but couldn't find in the docs: is is possible to rename an already defined function from PHP code after its definition. The ultimate goal being to wrap it in another (possibly lambda-style) function ?
<1> xlotlu, header cookie (setcookie) is irrelevant to the user sent cookie
<6> whats the best way to asyncronously push loads of similar data from a bunch of different websites to a single master machine?
<4> Ciantic: the cookie is a http header. well nvm
<7> osinet: not in regular php, you need stuff like pecl modules cl***kit and runkit which are highly experimental
<6> runkit barfs on all my experiments
<1> xlotlu, yes, but explain more about your problem, that what you said is not clear
<5> thanks for your answers
<6> does really bizzare things like remapping functions permanently until you restart apache
<2> MikeSeth: pcntl_fork or non-php language
<4> Ciantic: if the browser sends a cookie along a request, it's useless for the server to set that cookie on a subsequent response, unless changing its value. agreed?
<7> MikeSeth: if you want to pull the data i recommend curl-multi
<1> xlotlu, yes agreed
<7> xlotlu: its a standard practice to send a cooke along with each response
<4> Ciantic: now the fun part of it: according to the http rfc, setting a cookie alongside a response effectively turns off any caching mechanism for that resource
<6> edink, basically, I migrate a lot of database rows from machine to machine
<1> xlotlu, that causes some problem?
<7> xlotlu: http 1.1 specifies no such thing
<4> edink: it's standard practice for everybody out there that doesn't give a damn about caching. and unfortunately browsers behave off-specs because of this "standard practive". IE for one, and then Opera to the extreme
<7> xlotlu: what mechanism are you using to enable caching? etags?
<1> I'd sure like to know is there even a good way to create caching in PHP
<1> I haven't cracked that yet
<4> edink: if-modified-since
<1> Since parsing those modified since tags from all dynamic data is not what i call easy task to create tidy
<7> xlotlu: you need to detect that on server side and send not-modified response
<7> xlotlu: that's not something browsers do, you need to send 304 response yourself
<4> edink: forget all that. it's done already. the problem is that setting cookies for a response *should* force a browser to ignore the Expires header
<8> hey guys
<7> xlotlu: i cache pages all the time using $_SERVER["HTTP_IF_MODIFIED_SINCE"] and setting Content-type: Content-length: and Last-Modified: http headers. Cookies do not interfere with this method
<4> edink: http://www.ietf.org/rfc/rfc2109.txt
<4> edink: see 4.2.3.: the page should be stored in caches "pre-expired"....
<7> xlotlu: i give up, you said you are using if-not-modified-since, and now it's something different... everyone is sending cookies on each request, trying to go around that will accomplish exactly nothing
<4> edink: last-modified & etag are validators. running a validator implies firing a get/head request that could of course return the 304. but the UA ahs the choice of serving the resource from its cache right away (just as well as caching proxies). according to the spec, setting a cookie should prevent direct serving from the cache and require compulsory validation (but of course, browsers misbehave)
<4> edink: this is all theory anyway. what i was trying to actually do is have session_start() not set the cookie unnecessarrily
<2> you can set that in php.ini, but it's a GOOD IDEA for session to use cookies if avaliable.
<7> xlotlu: well, nobody had need for that. anyway writing your own custom session cl*** is trivial and then you have 100% control. this is what i do in all my projects
<7> Stormchaser: automatic link rewriting is both slow and evil :)
<9> bull****
<2> edink: Who cares? :)
<7> Stormchaser: :)
<7> Jymmm: eh?
<10> Yes, link rewriting is evil, I hate having session IDs in the query string - they can leak very easily
<4> edink: i know, but i'd like to have it written in C... and that i hadn't had the time for. and $_SESSION is just easy to use for everyone using the code base. anyway, think i'll try to get my way around it with mod_headers
<7> xlotlu: hint: if you don't use session_* functions, you can still use $_SESSION, just make your own shutdown function that will store the vars where you want them :)
<7> of course, you'll need session_start() equivalent too, but there you can check if cookie was sent via $_COOKIE
<11> hmm... who said my nick?
<9> Lateralus what if I did ?!
<4> edink: very nice hint; always had the idea it'd throw an error w/out session_start()-ing it
<12> <p>text</p><li>text</p> -- how can i replace </p> with </li> without losing text?
<11> Jymmm: Obviously I would have to kill you.
<2> Lateralus: You can't. He holds the unimaginable power, while you don't ;)
<9> When the hell did I get that?!
<2> when you became a demi-god >:)
<9> Ewwwwwwwwwwwwww
<2> lol
<9> Yeah! http://www.harborfreight.com/cpi/ctaf/Displayitem.taf?itemnumber=94171
<10> kapishonas: That isn't well-formed html - you can't close an element which wasn't opened
<2> Jymmm: Have you checked the gumstix link, that I posted yesterday?
<11> Stormchaser: what are you doing with a gumstix?
<9> Yeah... I'm gonna take a 55 pound solar camping with me.... NOT!



<2> Lateralus: Nothing... I don't need it. My friend is going to buy one with ethernet, USB, bluetooth and MMC.
<9> Stormchaser: Ah, yes I did. I'm aware of them from about 7 years ago. They are really expensive; especially in comparison to AVR's at around $6/ea
<11> Stormchaser: my roommate has one.
<7> hm, i didn't realize a demi-god yelled bul**** at me ;)
<9> Stormchaser Hmmmm, maybe I was confusing them with another thing, got the link still?
<2> Jymmm: gumstix.com
<9> ty
<2> Lateralus: I'm thinking it would be quite interesting to tackle with bluetooth module, tho :)
<9> I hate their website... no specs
<2> Jymmm: They are. Just dug deep down...
<9> Stormchaser: No, they shove if off to a wiki.
<2> http://www.gumstix.com/spexwaysmalls.html
<12> MarkR, <li> is opened :) i need to close it
<9> Stormchaser: Sorry, not those specs as much as application datasheets... like which item goes with what, what each thing/accessoery/board does, etc
<9> Stormchaser how and what each item does/is for.
<2> Jymmm: Yah... Those are pretty bad... I coudn't find any proper datasheets :(
<9> Stormchaser: Look at the 4 items on the link you just gave. price goes up, but doesn't say why (at the top), you have to look down to see the last two items have bluetooth. I would have just gone NEXT...
<2> Jymmm: *nod*.
<9> Stormchaser: If you want to get into uC's, check out Atmel AVR's - theres ****loads of linux dev applications, support, forums, etc. very cheap too.
<9> just google 'AVR'
<9> 37M resutls
<2> I already heard of those... Can't remember exactly... I'll google
<9> Stormchaser: http://www.atmel.com/products/AVR/
<9> that's what all the hype is about - good stuff
<12> <p>text</p><li>text</p> -- i need to replace only those </p> which goes after <li>, any suggestions?
<9> Stormchaser: If you want to get your feet wet, there's the butterfly $20 http://www.atmel.com/dyn/products/tools_card.asp?family_id=607&family_name=AVR+8%2DBit+RISC+&tool_id=3146
<9> Stormchaser: That thing is VERY cool!
<10> kapishonas: Read the html into a html dom using the dom loadhtml function, which will automatically fix well-formedness errors.
<10> Or use tidy
<2> Jymmm: OH, yeah... I remember now... You and itrebal had some talk about those :)
<2> I'll look into them... IIRC, I can actually buy them in the local electronics store :)
<13> Hello can someone show me a cgi proxy script that has a working SSL config in it?
<13> http://www.jmarshall.com/tools/cgiproxy/
<13> that come from there
<2> !+g10
<14> Guideline #10) We don't support xyz script. We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts
<15> Rewriting an app I did a few years back - man I wish I knew about include back then ><
<16> "Rewriting an app" adding new improved bugs
<15> yep - to be fixed some time in the future
<1> mikere, laughs to you :)
<12> lol, $doc = DOMDocument::loadHTML("<html><body>Test<br></body></html>"); says: Fatal error: Call to undefined function: loadhtml()
<15> It was supposed to be a one off project, however it looks like we have more clients lined up that want something almost exactly like it so I'm rewriting it to be more maintainable.
<15> and making it somewhat less ugly as soon as I get to it
<1> less ugly is the Good to Go mark
<16> looking at ones old code can be entertaining
<1> mikere, don't ever go to corporate world, there is just nooo way you could do "less ugly" since there are many times so many idiots along writing
<15> Haha
<15> Nope, I'm not leaving consulting any time soon.
<15> But if you think corporate is bad, you should try NGO's
<17> is there a php solution like ActiveRecord to make managing a small database really easy?
<1> i was lucky that i did not began coding with PHP
<1> it's development (PHP's) been so ugly itself that i can't even think (oh yes i can take a random "coding" page and look for the php scripts) how horrible it must be
<15> Ciantic: I started with Watcom Pascal back in college
<18> i started with C
<18> only coz my father is a C programmer
<18> and obviously i learnt
<2> that's so damn lame reason
<1> i began with Pascal too
<18> not really....
<1> Stormchaser, it's not
<2> I began with C64's basic
<1> its logical, my big brother taught me to code with pascal and thats how my coding began
<18> my farther had enough patience to teach my the science and maths behind code
<18> not just C
<18> how to code in practice
<18> which helped me
<18> shame he died :\
<15> indeed
<18> he left me all rights to his code, and his old books
<18> but ive stored them sumwhere
<19> Hello.
<18> Hey
<18> whats up
<20> re


Name:

Comments:

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






Return to #php
or
Go to some related logs:

javascript changing an elements class
apt-get install nvidia-kernel-common nvidia-kernel-$(uname -r) nvidia
#javascript
#suse
#oe
haskell concurrency message passing
#suse
#mysql
#javascript
package.mask madwifi



Home  |  disclaimer  |  contact  |  submit quotes