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



Comments:

<0> If I felt inclined to help Canonical further fracture the open source community, I'd probably take a whack at it. It's not the worst protocol ever.
<1> hmm ive got a problem
<2> hi, it is my php cl***. http://pastebin.com/553979 it is grabing gmail list and saving in database. i am having problem with e-mail address. it is saving all e-mail address with extra "&nbsp;". suppose it grab my e-mail address from gmail like this " abc@xyz.com&nbsp; ". how i can fix this.
<1> i have a cl***, "Holiday", that queries a database for a list of holidays
<0> lith: Except for the differences between [a-z] and [[:alpha:]], yes.
<3> TML: Aye, there's a lot of choices today. And they're all trying different things.
<0> ePhlox: Trim &nbsp; from the string.
<1> i need the cl*** to obtain a user ID from a session cl*** stored in a session variable
<3> Thats what always happens when a field reopens op.
<2> can you tell me line number?
<3> pardon, up.
<1> i define the cl*** object as a global variable (global $myvar)
<1> but i cant seem to access it from within my holiday cl***?
<4> isn't a '@' before a statement supposed to ignore errors? Don't seem to work..
<0> jblack: Actually, they're almost all trying one of two things. There's the centralized-server-model and the decentralized-p2p-model
<0> jblack: To me, having a new way to diff doesn't mean you should re-create SCM from the ground up



<1> how do i access a global variable from within a cl***?
<3> Yes. And you can break that down further too.
<5> TML: cool thanks
<6> if you are inside a functin you have to say: 'global variable_name;' then you can access it
<6> you basically have to declare it as global in the scope of that function
<3> Monotone is trying backward building. GnuArch is trying the archive model. Git is trying to see if advanced merging can be skipped.'
<1> oh within the function :) thanks
<2> hi TML, can you tell me line number. and how i can modify it?
<6> yep otherwise it will ***ume that its local
<1> i was trying to initialize it within the cl*** header.
<1> works, thanks!
<7> anyone here now why imagedestroy doesnt destroy the image created in /tmp ?
<7> i have a /tmp full of gifs
<7> created by php
<0> ePhlox: I can't tell you the line number because I don't know your code. To modify, try str_replace(), trim(), or others.
<2> here is my code : http://pastebin.com/553979
<8> freakie: imagedestroy() frees any memory ***ociated with image image. image is the image identifier returned by one of the image create functions, such as imagecreatetruecolor().
<9> Does anyone here know anything about mod_rewrite?
<7> aaah...but i never noticed this behaviour untill i used a new server with newer gd and php
<7> and now my /tmp has too many files making the sites very slow or not working at all
<0> freakie: Your old server probably ran something like tmpreaper to cleanup its /tmp
<8> freakie: You should do unlink() to those images created.
<0> freakie: imagedestroy has *never* deleted files. Something else was deleting them.
<10> can anyone help me? http://www.pastebin.com/553992
<10> its only displaying the first line from the result
<7> i dont get it why php all of a sudden uses /tmp to keep the gifs
<11> freakie; I don't think it does
<7> aidan: i can show you a ll here :P
<7> or a ls -al
<11> freakie: because you have files, does not mean php created them
<7> i now php created them
<8> pyre|cipher: while ( $pidline = mysql_fetch_array($pidresult, MYSQL_***OC) ) { // PRINT IT }
<7> looking at content and user rights
<10> tws: tried that too, same result
<12> hi there
<3> TML: thanks for the help.
<13> while($pidline = mysql_fetch_***oc($pidresult)) { echo $pidline['products_id']; }
<13> I think
<3> I'd love to hear your concerns sime time, when you have time.
<13> yep
<13> that should do it
<13> pyre|cipher while($pidline = mysql_fetch_***oc($pidresult)) { echo $pidline['products_id']; }
<12> i need to search for an time stamp (integer) inside an mysql table, but i have only a date not the time as search pattern. the timestamp inside the db contains date and time
<10> luu: thanks, that worked
<13> ;P
<0> jblack: I think I was pretty clear about my concern. Shuttleworth and Canonical seem to re-invent every wheel they come across, to the detriment of the projects that already exist in that space. Ubuntu has, IMO, been nothing but harmful to debian, as one shining example.
<10> how do i set the last value equal to a new variable though?
<13> el_mexicano ##mysql has a nice site with all the documentation for mysql you could wish for
<10> the last row i mean
<3> TML: You wish to discuss this here?
<13> pyre|cipher: like.. what?
<0> jblack: I don't particularly think there's much to discuss, but sure, if you feel the need to respond.
<3> I do. =). You're partly right.
<10> like set $mynewvar = (the value of the last row)
<13> you tell your mysql to make the id auto_increment
<13> then it'll be one bigger automatically, when you insert new values
<3> There's a lot of things we do use (sqlobject, zope, plone, moinmoin, drupal come to mind). There's about three things we don't. Launchpad.net, bazaar-ng, and ubuntu.
<10> i dont want to auto increment though
<10> i just want that value
<13> you could make a new query that selects the last row in the table
<13> or I'm sure there's some neat php function to use



<10> :/
<3> Ubuntu speaks for itself because of Debian's release process. Launchpad.net makes complete sense to anyone. Bazaar-NG is because the existant ones don't do things that we think is right.
<0> jblack: What do Drupal or SQLObject have to do with Canonical? They're both significantly older than Canonical, and if they're getting any funding from either Canonical or Shuttleworth, it's pretty well hidden news.
<3> TML: You said that we rewrite every wheel that we come across. I'm illustrating that thats not actually true. =)
<0> jblack: I think debian's release process is the BEST thing about Debian, and I spend at least 10 hours a week handholding Ubuntu users whose systems are constantly broken because an Ubuntu release doesn't have near the quality of a debian release.
<10> what would that query look like luu
<10> ?
<0> jblack: You're part of Canonical?
<3> I am.
<13> I'm not sure
<13> oh
<13> the query
<13> "select x from y order by x desc limit 1"
<13> or so
<13> that should select the last entry
<10> by x desc?
<13> descending
<13> so the highest number first
<3> And sure, you're right. Early and often does have a cost when it comes to reliability. If you spend three years to get a release just right, then it darn well better be Really, Really good.
<13> but I'm sure there's an easier way to do it
<10> so, "select pid from products order by pid desc limit 1" ?
<10> that seems easy enough
<0> SELECT MAX(pid) FROM PRODUCTS
<0> Would be easier
<13> that could be done too
<13> :P
<12> i got the timestamp inside the table "1139909330" it contains the date and time. but i need just to search the record by date?
<0> But both of those have a distinct disadvantage over auto_incremented fields in the way they run parallel with other processes, so the number might change between your insertion and your query to get the "last number"
<10> TML: would that get the last entry or the maximum value?
<8> el_mexicano: Convert the date to UNIX timestamp and do the search.
<0> pyre|cipher: My query does exactly the same thing as luu's
<10> ok
<0> In a lot less SQL
<10> indeed
<0> Both get the highest value
<13> I said there was an easier way :)
<0> luu: I wasn't picking on you
<3> No. He was picking on me. :)
<13> TML I know, but I also know my skills aren't at guru-level yet, so there's lot of my stuff that can be done more efficiently
<0> jblack: No, I'm not picking on you, or Canonical, or even Mark. I *am* frustrated that Ubuntu exists instead of rolling the same resources back into debian, but that's just me voicing an opinion.
<0> jblack: And the same goes for most of the Canonical projects I've seen. You seem to suffer from severe NIH.
<13> TML but I guess the MAX solution doesn't let you select more than one item, right?
<0> luu: That's right, MAX() is only going to find one row.
<8> It's like the world has more than enough GNU/Linux distribution and people are just keep on rolling a new one that has not-so-interesting thing.
<13> okay.. so there goes my chances for optimizing my php stuff :P
<3> TML: Nobody's perfect. :|
<8> Perfection ****s.
<0> jblack: Except me.
<0> But that's my cross to bear.
<3> You're perfect?
<10> TML: so possible to set your statement into a non array variable?
<3> What's that like?
<0> jblack: Lonely.
<0> pyre|cipher: What?
<3> I suppose infallability would be a lonely prospect.
<0> jblack: It's hard to maintain friendships when you find everyone around you sorely lacking.
<10> setting the output of your statement into $thisvar, and then saying echo $thisvar ?
<3> Try asuffield. He's right up your alley
<0> pyre|cipher: See php.net/mysql for examples of how to fetch results from a result resource.
<10> ok
<0> jblack: I know asuffield. He didn't measure up.
<0> Been awhile since I checked with him, though.
<0> Maybe he's improved.
<14> TML: not likely
<3> Nah. He's the same naive curmudeon that thinks everyone and everything ****s.
<0> jblack: That does indeed sound like Andrew.
<3> I asked him once to name three things that didn't ****. His only answer was "anime"
<8> el_mexicano: Talk here.
<12> thats the given timestamp "1139533349" i converted i into normal date/time (2006-02-10 02:02:29) and then i converted i again in unix timestamp "1139577689" there are an difference
<8> el_mexicano: Paste the code at pastebin.
<0> jblack: I'd be mildly interested in your results with the python-in-php thing. Not that I'd ever consider doing such a thing, but it'd be good to know if I should keep pointing people to the project, or if it's still too blue-sky.
<3> TML: I'll let you know
<12> http://pastebin.com/554025
<0> el_mexicano: h:m:s?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

lactophilia video
cellpadding-right
#fluxbox
regex remove www
div tag +rounded corner +css
centos yum g++
niggercum
lirc +telus
#python
howto install ubuntu without cdrom



Home  |  disclaimer  |  contact  |  submit quotes