« first day (855 days earlier)      last day (4093 days later) » 

12:34 AM
For the record, parse_str() has a stupid signature
 
!seen record
 
Confirmative
 
@DaveRandom it also has a stupid name. so at least it's consistent.
 
@igorw I'd suggest an http_parse_query() to complement http_build_query() but I imagine internals would tell me to f*ck off
2
 
@DaveRandom I fully agree, and I would expect that outcome too.
 
12:50 AM
hi
in mysql there is where id1 in (1,2)
how can i make where (id1,id2) in (1,2) ?
 
i want find couple of id1 and id2 in (1,2)
like that where (id1,id2) in (1,2)
 
1:09 AM
quick question what is best for performance on servers with cron jobs: frequently small batches, or infrequent large batches
@echo_me please avoid using mysql
 
@Dave why should @echo_me avoid MySQL?
 
because MySQL i believe is being deprecated in PHP 5.5.0
4
 
@Dave loooool
 
so if he happened to move server which had that version his entire site won't work
 
1:13 AM
@Dave that's only the mysql extension for PHP
 
Would be a great push towards postgres though ;)
 
this is a PHP room no? @Ocramius
 
@PeeHaa a real DBMS? NEVAH!
 
:)
 
thats why i went to mysqli then i ditched that to pdo
 
1:14 AM
any solution peehaa?
i want find couple of id1 and id2 in (1,2)
like that `where (id1,id2) in (1,2)`
 
@echo_me Have you tried the manual?
 
how
 
google
 
It's not that hard to find
 
i didnt find how to search
how to write in it
 
1:15 AM
echo_me you don't know how to use google? :S
 
I'm thinking OR or AND whatever suits your case
 
i know but the writing
i tried like that
 
the site usually has examples posted by people
 
how to select two values in two values in mysql
but this didnt give me result :)
 
im not sure that sentence makes a great deal sense to me
 
1:17 AM
@Lusitanian you have mail
 
do you mean like WHERE IN (SELECT id1,id2 WHERE id1=1 AND id2=2) ?
 
@igorw as per usual, much appreciated :D
 
i mean something like that : WHERE id1,id2 in (1,2)
 
ooh i got star :)
 
@igorw wow that was stupid. okay releasing 0.1.2 in a sec :)
 
1:18 AM
echo_me so kinda of like checking if the fields are in an array ?
 
yes
i mean id1 and id2 must be 1 ,2
 
52
Q: PHP/MYSQL using an array in WHERE clause

Quinngiven an array $galleries = array ( [0] => 1 [1] => 2 [2] => 5 ) I want to have a sql query that uses the values of the array in its WHERE clause like: SELECT * FROM galleries WHERE id = //values of array $galleries... eg. (1 || 2 |...

 
@Dave That's not the kind of star you should be proud of though. I like to call those "The star of shame"
 
PeeHee clearly you don't read the php documents it plastered on every "MYSQL" page.
id recommend MYSQLi not MYSQL
 
@Dave Nopez. I have no idea what the PHP docs are
 
1:20 AM
@PeeHaa LOL wow you never cease to amuse me
@igorw v0.1.2 released.
 
;)
 
well if i get stars for quoting documents that saves lazy people
echo_me as i mentioned consider mysqli
 
OMG there is an entire site dedicated to PHP docs. @Lusitanian check this out: php.net/manual/en
 
@PeeHaa where did you find that? O_O
 
@Dave I think you are misunderstanding the manual. MySQL is not being deprecated, the EXTENSION is being deprecated. MySQLi and PDO are both using MySQL still.
 
1:21 AM
why would u not approve people to change from mysql to mysqli ?
im referring to the extension "mysql" hense i said use mysqli !
or pdo
the entire language wouldnt be dropped obviously
perhaps u took what i said too literal =/
 
@Dave seems you are the only one to think that, but whatever makes you happy =o)
 
@Dave "mysql" !== "mysql_*" :D Make it clear from the beginning next time
nn all :)
 
@Lusitanian you may want to consider maintaining a CHANGELOG file
thanks btw :)
 
lol :P fine ill be clearer next time :P
damn pedantics!
 
@Ocramius later
 
1:24 AM
@igorw good idea.
@PeeHaa holy crap. there's documentation?!?!?!?!??!?!
@PeeHaa do you understand how much easier my life could have been made?!? I reverse engineered the entire source code to make my own docs.
 
I'm going to celebrate that with a drink
 
guna go back to c++ room for a bit toodles
 
@Lusitanian lol
 
@PeeHaa If your house were wiped off the face of the Earth, you'd celebrate that with a drink.
 
@Lusitanian I would drink to that
 
1:25 AM
@igorw and of course, how goes the development of your comments system
@PeeHaa youtube.com/watch?v=ZR0v0i63PQ4 <---- amazing american song called Cheers (drink to that)
by that I mean terrible song because it's made by a very popular singer
and any singer who is popular in the US generally lacks any talent whatsoever
 
@PeeHaa ...and I'll drink to you drinking to that
 
/mini-rant
@DaveRandom I'll drink to you drinking to him drinking to that.
 
@Lusitanian Not for another few years you won't. Ginger ale for you I'm afraid.
 
You 'muricans with your terrible culture
 
@DaveRandom I'm a ginger. Me drinking ginger ale is canniablism. Lemonade instead please.
@PeeHaa :D
 
1:27 AM
lool
 
@Lusitanian started releasing the individual stack middleware pieces. the first one, which the OAuth middleware depends on, is session: github.com/stackphp/session
 
i would like to say that "middleware" will forever sound too enterprisey to me
but very cool
 
once I have gotten some feedback on this one, I'll work on releasing OAuth
noted :)
 
nice! hopefully that will get oauthlib more users
and thus more issue reports
'course if i actually took the time to write tests i'd probably find those issues myself...whoops.
 
the naming is mostly inspired by ruby's rack middlewares, so I'm not too concerned about enterpriseyness
 
1:32 AM
as long as it's not inspired by java
which has been getting a horribly negative rep in the american press recently and it's amusing me
 
if you need enterprise, run rack middlewares on jruby
 
our government actually suggested that people disable it entirely lol
why does jruby exist
 
because ruby has a GIL - global interpreter lock
 
> blinks.
 
bye everyone :)
 
1:34 AM
ahhhhhh. (read about it)
 
@Lusitanian StreamClient currently throws a TokenResponseException even for API calls
perhaps that should be a HttpException that the token sub-system converts to a TokenResponseException?
 
yes. i've had that on my local todo list forever.
i should put that in the git repo.
 
or github ticket
 
ah right
i'll create it.
 
hi guys
 
@Lusitanian thanks! :)
 
of course. shall get to it soon(ish)
 
yeah, just 5 minutes
 
what i'm trying to decide, though, is whether or not i should kinda scrap the way HTTP is setup now and use Symfony\HttpFoundation
and it's request/response classes
 
the twitter API is currently giving me the HTTP/1.1 429 Too Many Requests treatment
 
1:41 AM
lol
what do they rate-limit it to per hour?
 
@Lusitanian I don't think they are very suited for HTTP clients. there's too many server specifics in there imo.
 
@igorw hm. okay. i also like how the lib is currently self-contained
lemme look at the request class though
 
@Lusitanian 15 calls per 15 minutes for most endpoints: dev.twitter.com/docs/rate-limiting/1.1/limits
 
@igorw oh my, yes, this request class is definitely server-specific. nevermind.
 
2:00 AM
@nikic wtf to Stas. Did he really pull the complexity card? Him?
 
0
Q: php switching to mysqli: num_rows issue

user1938102I recently started updating some code to MySQL improved extension, and have been successful up until this point: // old code - works $result = mysql_query($sql); if(mysql_num_rows($result) == 1){ $row = mysql_fetch_array($result); echo $row['data']; } // new code - doesn't work...

 
errr what am i doing wrong?
BEGIN

DECLARE @previous_access datetime;

SELECT rp_users.last_access INTO previous_access FROM rp_users WHERE id = user_id;

IF DATEDIFF(current, previous_access) <= 60 THEN
		RETURN(0);
    ELSE
        RETURN(1);
END IF;

END
 
user652649
3:02 AM
hello
 
3:13 AM
@wes what happened to your avatar ... did some one hit you ? :P
 
user652649
@DaveRandom php.net/parse_str parse_str()
 
user652649
@NullPointer wut?
 
@wes your avatar sound different
and i mean hit your avatar not you :P
 
user652649
wut? what's wrong with my avatar?
 
@wes dont you edited it ?
 
user652649
3:19 AM
 
user652649
just a new way to troll @NullPointer
 
@wes hahaha ... lol
 
user652649
can you believe that i'm working (4:20 in italy) ?
 
user652649
of sunday morning
 
@wes are you ...?
3am is max after that
its time to sleep
 
user652649
3:24 AM
yes i have to finish a work for monday... i love my life
 
@wes than will go to office Monday ?
 
user652649
i will never sleep today, i think
 
whatever we must sleep atleast 5-6 hours
 
what is sleep
 
user652649
that is the freelancer way
 
user652649
3:27 AM
@Lusitanian who knows
 
user652649
i don't sleep properly since college days
 
i used to sleep 2-3 hour for 1 year than i literally unable to find difference between day and night and than i think its bad
 
user652649
i sleep a lot usually, but it is insane sleeping, because i have "modern day" nightmares... which are taxes, job, taxes, absent social life... and taxes
 
user652649
did i mention taxes?
 
3:34 AM
@wes no i can not see any taxes :P
 
user652649
friday my bank called "sir, you have a problem" and me "i wish i had only one problem"
 
@wes i think there is always another way to save tax isnt it ?
 
user652649
i should join bucolic life
 
user652649
you mean working off the books?
 
user652649
in the black?
 
user652649
3:38 AM
in italy it's impossible, they will surely catch me
 
@wes in india its easy than paying tax
 
user652649
in this period italian government is fighting against tax evasion
 
@wes still recession in Italy ?
 
user652649
yes... since about 1980 actually
 
user652649
lol
 
user652649
3:41 AM
you know that in italy you pay more taxes than any other european state
 
user652649
and the problem is that money is not sufficient
 
user652649
germany pays less taxes and they are not near bankrupt as we are
 
why not leave the Italy ?
ya germany is rich
so the Germans are
 
user652649
i should leave italy... but i can't turn my life into an adventure since i'm 26... I should have done that at 18
 
user652649
also, my job isn't easy
 
3:45 AM
I need some career advice
 
What is the fastest way for me to get a short term job programing over the net? I need something in the next week.
?
 
user652649
a typical conversation with a customer is... if i say "no, you can't have a 800px tall header" customer will answer "no, trust me, i know how internet works"
 
user652649
@NullPointer and what about customers in india? are they the same?
 
4:05 AM
@wes those are not same
pretty strict unless you are either IAS or MP
 
user652649
IAS? MP?
 
Indian Administrative Service officers and Member of Parliament -
 
user652649
i'm sorry but i don't understand what do you mean :P
 
@wes ias are head of department , chairman, and director off all offices
including intelligence, defense , finance ..everything
 
user652649
how that is related to your customers?
 
user652649
4:11 AM
are they?
 
@wes damn on me should have read properly
selling thing in india is depends on the place
link in rajasthan its difficult and in other place its easy like gujarat
 
user652649
@NullPointer damn also on me, i should write properly :P
 
here people specially business man has lots of black money so if one have guts they can earn money like anything
they dont know about internet much
here those are either manufacturer or wholesaler
@wes you can sell static website for 1000$ if can
and on the top they wont interfere .. but dead line is really dead line for them no compromise at all
 
user652649
1000$ for a static site is not bad
 
user652649
here they don't know about internet much, but they thinks to know better than any professional developer
 
4:20 AM
@wes lol...
 
user652649
for example... the new entry of recent days is "we want a site like facebook"
 
@wes here they wont ask anything they just say make my website ... which works and feels good
and some time its worst than asking for facebook
 
user652649
lot of weird things they can ask, for example a customer asked to me to put their corporate logo between each of their partner's logos
 
user652649
so in practice i have made a page containing 30 times the same logo
 
@wes they just say its not feeling good ... and even dont tell what is not feeling good
@wes lol
 
user652649
4:26 AM
then there are the changes of mind... we had to made a web wizard consisting of hundreds of inputs, textareas etc
 
user652649
in the first time we said to that customer that nobody will compile that huge forms, but they insisted to have
 
user652649
2 months of work
 
@wes i had to say one client literally f**k off he was wasting my time like anything and come to my home and sit near me and just want to learn how i am doing and that guy was never see computer however that was millionaire
 
user652649
after 5 days online they agreed that no one wanted to compile that huge form
 
user652649
so, 2 months wasted
 
4:28 AM
@wes lol...
 
user652649
that is what i hate of my job... what i'm going to do is to start my own business with some friends, so i will be customer of myself
 
user652649
otherwise i will move to tibet, since you are indian, and pick a bucolic life :P
 
@wes once i was tried real state business but people dont believe me due to my age
@wes why tibat ?:P
 
user652649
i been in tibet, very nice place, peaceful
 
user652649
what is your age?
 
4:32 AM
@wes 20.8
 
user652649
i had that problem too, for some reason if you are young you are not good enough
 
user652649
in their mind
 
@wes yupp agreed .. but . i want to go Africa i think i can help people with my mind
 
user652649
farming is better :P
 
user652649
africa only needs some peace and basic technologies, medicine, no more...
 
4:39 AM
@wes if there is proper rain or other resources of water
 
user652649
water, yes
 
user652649
was saying... people can live a wonderful life even without a computer
 
@wes technology is always good thing
and computer is one of the greatest invention of human
 
user652649
i don't think so... sophistication killed the world
 
user652649
unnecessary technology, or money-driven technology
 
user652649
4:45 AM
for example the food industry... when i was a kid the food was real, now is in a plastic envelope
 
user652649
and it simply sucks
 
user652649
we slowly have reached a so high level of progress that we have forgotten how much better was a less sophisticated life
 
user652649
probably that isn't the case of india... but you will reach our condition soon and you will see
 
user652649
:P
 
user652649
@NullPointer
 
5:05 AM
 
user652649
@crypticツ lol
 
@wes I feel like rolling back his revision o_0 I wonder...
 
user652649
don't waste time responding those questions...
 
user652649
correction: any question
 
yeah! I'm not getting paid =oP
 
user652649
5:12 AM
they will not thank you even :P
 
user652649
btw i think i had killed @NullPointer
 
user652649
was a nice guy
 
user652649
ahah
 
oh no, what did you do?
 
user652649
don't know... i started a weird discussion about life and existence
 
user652649
5:15 AM
yes we should
 
user652649
I accidentally killed @NullPointer
 
it's taking too long to refresh info
 
user652649
@crypticツ ahah, did you actually changed your nick and your avatar? LOL
 
@wes true very true
@wes noooo . i am back
 
user652649
 
5:22 AM
have to go market for bread
@crypticツ again
@crypticツ omg
 
user652649
ahahahah
 
user652649
thats confusing
 
@crypticツ thankgod you changed your name
 
@crypticツ paid for what?
 
weird it won't show the change for me =o(
 
user652649
5:24 AM
it takes a while
 
that's what you get for trying to trick people ;)
 
we need to have a NullPointer day where we all have the same nick and avatar
 
@NullPointer LOL
 
i was confused.... :P
 
user652649
5:27 AM
@crypticツ lol
 
every one should be cryptic :P
@crypticツ thankyou
 
5:41 AM
hey there any perl unix programmers in here?
 
user652649
@gideon #perl on freenode
 
@gideon do you use khanacademy ?
 
@wes ah thanks
@NullPointer yep I do :)
and I love it!
why?
 
@gideon is it have good video
since most of time i find video tutorial are crap
 
creap?
 
user652649
5:48 AM
 
or for only beginner
 
@igorw you there? have a composer/sf2 question if you are :D
 
Hey guys.
 
@wes chocolate with "?" and banana ?
 
@AshwinMukhija hello
 
5:50 AM
@AshwinMukhija jo
 
user652649
thats a crepe
 
@crypticツ Hello
@NullPointer Hey
 
@wes lol
 
user652649
COFFEE. NOW.
 
@wes surely you must mean crêpe
 
5:50 AM
Good idea @wes
 
@igorw nvm crisis averted
 
Americans... =oP
 
mericans... =oP
 
'Murica! Oh. Wait.
 
5:52 AM
ricans... =oP
icans... =oP
cans... =oP
okay now i'm done.
 
ans.. =op
 
ans...=oP
ns...=oP
 
...=op
 
5:53 AM
.. =op
 
Jon
That looks good @NullPointer
 
5:56 AM
I'll take mine with Beef.
 
I'm vegetarian =o)
 
every time nickelback comes on shuffle i want to cry. keep forgetting to remove this carp. (yes, carp)
 
@crypticツ i am too ...
 
user652649
2 minutes away from keyboard and you guys turned this chat into shit!
 
user652649
ahahah
 
5:58 AM
@NullPointer imho best burrito = carnitas (cuban pork) + chiles + corn + black beans + rice + pico de gallo
 
lol
 
Jon
@wes That burrito isn't shit, it does look rather tasty. =P
 

« first day (855 days earlier)      last day (4093 days later) »