« first day (1119 days earlier)      last day (3845 days later) » 

4:00 PM
:)
 
no no no
fix it fix it fix it ...
 
Where's the file?
 
Minimalism is your thing huh =)
 
@webarto out of bed ... fix it fix it fix it ...
sandbox.html just pushed it ...
ff fine, chrome is being gay
 
Somehow, I'm drunk.
 
4:01 PM
@webarto that is terrible ...
 
@JoeWatkins where?
 
@webarto we got code browser
but css is wonky
 
@webarto but people are supposed to be drunk after fridays right?
 
Anonymous
Is there any way to make a function accept unlimited number of arguments?
 
@Simon_eQ use func_get_args
there's a limit, I forget it ...
 
4:02 PM
php -r 'var_dump(explain("<", EXPLAIN_STRING));'
Parse error: syntax error, unexpected '<' in explained on line 1
Segmentation fault: 11 (core dumped)
 
I think there is anyway ...
 
nice, @JoeWatkins … very fault tolerant :-D
 
We'll fix it @Joe
 
@bwoebi About ~1h for beginner, intermediate, experienced, palindromeda
 
are there any spl iterator gurus that could help out with: stackoverflow.com/questions/19863264/…
 
4:03 PM
@bwoebi fixed
 
Nice work, mate.
 
Anonymous
guys come on. Yes/No
 
yeah this is what I imagined when I said code browser ...
 
@Simon_eQ Yes
 
css needs tidying ...
 
4:04 PM
@Simon_eQ that's variadics, no?
 
Anonymous
@reikyoushin variadics redirects to us1.php.net/func_get_args
 
It's fixed?
 
Anonymous
sorry :)
 
@hohner Why do you want multiple child iterators?
 
4:06 PM
@webarto this is still only code browser for a single file ... but the same idea can be extended, I've made it so explain only returns in $classes and $functions classes and functions that are contained in the last code/file explained, so you can use explain($file, EXPLAIN_FILE, $classes[$file], $classes[$file]) and everything will make sense ...
 
@JoeWatkins Is that intentionally by ref? directly linked to the opcode? ["op1"]=> &int(1) (self-modifiying code v2.0 =D)
 
you can loop through a directory of files explaining files and it will build a usable tree ...
 
@hohner because each iterator populates itself with a different URL (retrieves JSON collection)
 
@bwoebi it doesn't matter, they won't be manipulated .... better to use by ref than copy ...
 
Anonymous
@reikyoushin What I am saying is, that I want to name the function without any arguments, ...
 
Anonymous
4:07 PM
But, I'm thinking now, it is not possible
 
@JoeWatkins well, by ref might just confuse users ;-)
 
@hohner I sounds like you just want to use a MultipleIterator
 
yeah but not the sort of people tooling surely ?
you won't see that on explain.so or in default output ... so not really a problem....
 
@hohner Do you know how big the total collection is before starting?
 
no - that's the annoying thing
 
4:09 PM
@JoeWatkins I've done some, don't know what I'll end up with, but it should be a complete service, etc, I'll update you :) Basically all you said that would be good to do.
 
@hohner I don't really understand what you're trying to do... so suggesting what to do is difficult.
 
@webarto excellent, sounds sexy :D
 
Wahey, get to leave at 4 on a Friday :P
 
@HamZa I'm faster then ;-P (how do I translate Schwanzlängenvergleich in a positive sense?)
 
@hohner do you want to create a child iterator, iterate over its values and when getting to the end create a new child iterator to try the next chunk... and continue until some condition (no more JSON results)?
 
4:10 PM
@bwoebi I did all the 4 in ~1h o_O
 
@salathe yeah, pretty much
 
@HamZa do it in 45 mins the first time ^^
 
@hohner Do you really need to create more than one iterator?..
 
And I'm not the most experienced regex user ;-)
 
@salathe it's either create separate child iterators, or just append the new result set to an ever increasing private array
 
4:12 PM
because that crossword really isn't much about regex, it's mostly about logical thinking.
 
@bwoebi Well I did it at night while I was half asleep. But I'll admit my defeat
 
@hohner do you need all of the results available at once? or just to iterate over them?
 
@HamZa Well, I'm already half asleep at this time^^ (17:12 local time…)
 
@HamZa all i see on that crossword are alien symbols..
 
@bwoebi lol It was 00:00 :)
@reikyoushin haha, easy !
 
4:13 PM
@salathe just for iteration. i don't think it's possible to apply logic to the complete set - you'd need to iterate over all the URLs in order to get there first
 
@hohner right
 
@HamZa I'm more tired now than I'm usually at midnight
 
@hohner from your description you really just want a plain-old-iterator that goes and fetches the next JSON page as it needs it and spits out one result at a time when iterating
 
@bwoebi developer attitude :)
 
lol, Dmitry proposed me to move the RFC instantly to vote: "dmitry: so go forward with voting and pushing it" … "me: first let us wait the two obligatory weeks before moving this to vote…" … "dmitry: "I don't know the rules" :-D
 
4:15 PM
@hohner I'm distracted at the moment (with real work!), but it shouldn't be a bother to write something up for you this evening
 
@salathe awesome, thank you
@salathe it's either a normal iterator, or something like this: php.net/manual/en/class.multipleiterator.php
 
it doesn't sound like you need anything more complicated than your own simple iterator, or even a generator if you can use PHP 5.5
 
1 message moved to bin Reason: E_MISSING_CONTEXT
 
@bwoebi lol that's a meta question
 
@HamZa I need to relearn reading… see I'm tired^^
 
4:19 PM
/me baking a blogpost \o/
 
1 message moved from bin
@bwoebi how about my powaaa :D
 
1 message moved to Trash can
@HamZa You aren't room owener in Trash Can?
 
ok let it be there, I don't care xD
 
haha :-D
 
@bwoebi nope, only bin, regex and ajax
 
4:22 PM
@Ocramius When will it be baked?
 
I think that I need to go repfarm a bit ...
 
@HamZa another idea
 
@bwoebi like ... ?
 
Anonymous
@HamZa You'r still interested in having reps?
 
@HamZa Who's the fastest with double cross #regexcrosswords?
 
Anonymous
4:24 PM
I forgot about them like 6 months ago
 
@bwoebi I already have done that yesterday
@Simon_eQ print str_repeat('10K ', 9001);
 
@HamZa do you have done them all?
 
@bwoebi I was almost done with Cities :)
 
Anonymous
@HamZa yeah.. dreaming is fun :)
 
@Simon_eQ Actually it's quite easy, I've had many oppurtinities in the regex tag. But I chose to close vote it, and then some high rep users came and answer it -_-
@bwoebi btw the one who gave me that site gave me another one this morning regexcrosswords.com not sure if it's as good as the other
 
4:28 PM
@HamZa you have already done?
 
@bwoebi nope not really, I will check it now
 
ok everybody, stop panicking, I fixed my css
 
@HamZa if not… I propose the giant :-)
 
@bwoebi ok, let's go
 
@webarto any chance you could update explain.so with this basic default while you're working on the proper one ?
 
Anonymous
4:32 PM
Man! there are no great movies to watch anymore. Only, great movies to re-watch
 
@Simon_eQ Watched Blood Diamond?
 
I actually just asked a question on StackOverflow o.0
 
Anonymous
I had meant to, but I didn't. I assumed, it would be just like Lord of War. @Fabien
 
@Simon_eQ Negative. Blood Diamond is an awesome movie and will make you fancy the pants off of Leonardo's acting.
 
@LeviMorrison that's nothing, I've been doing css ...
 
4:35 PM
lol
 
Anonymous
ehh Ok. I'll give it a try then. @Fabien
 
@bwoebi pretty hard :-)
 
@HamZa I have something that can't work here… :o
 
@bwoebi lolwut
 
Ahahaha, found the answer already (I think). Why is it that the moment I ask for help I find the answer?
 
4:40 PM
@LeviMorrison A sign of being a good developer ?
 
I'd been looking for a while, though.
 
@HamZa ah, misread
my time … 10:36 @HamZa
 
@bwoebi you finished ? I'm still working xD
 
^^ you're sooo slow :-P
 
My counter is saying 28:oo o_O
 
4:44 PM
28 mins? rly?
 
yup xD
well I'm not finished yet xD
 
not 28 :o
I just once paused for 3 mins to go to toilet^^
 
@bwoebi damn I think I've to do it again, I've messed it up
 
@HamZa ^^
it's all about logical thinking, not about regex^^
 
#php: explain gets a code browser :) http://t.co/I3C339wnmT
 
4:46 PM
@HamZa I finished all the regex crosswords.
 
@SweetieBelle great
 
Was fun
 
@SweetieBelle try "Giant" regexcrosswords.com
 
Jay
guys I have an problem I was hoping someone could help me with
 
@Jay
 
Jay
4:48 PM
basically I have a .sql.zip file. Inside the file is the .sql file. How can I get the name of the file inside the .zip after I have extracted it using exec() ?
@HamZa hey mate
 
@Jay php.net/manual/en/book.zip.php without even using exec()
 
5:00 PM
7:14 for giant. Wasn't really very regexy though.
 
I think I got another one of those questions ...
 
Jay
@HamZa is there anyway to get the files name using the exec?
 
@SweetieBelle nice, I'm wondering why I'm stuck at it ...
@Jay why in the world would you like to use exec ?
 
Jay
@HamZa its not me its the programmer who wants it with this. I have no idea
 
lol ...
ok, there is likely a path where you're going to extract it, read that directory with something like scandir() http://php.net/manual/en/function.scandir.php and you'll get an array with the file names
I;m going to eat cyaa ...
 
5:04 PM
given $a = foo and $b = bar, output barfoo, echo & print in one statement, no functions. You must reference $a before $b.
2
 
bah.
 
echo ($a=$b.$a);
Or does that not count as a reference before?
 
x)
 
no assignments
 
echo "bar".$a;
 
5:09 PM
:D
 
oh ...
 
Use print
 
nope
 
echo ($a ^ $b).$b.$a;
 
no assignment, no constants, no other variables
 
5:11 PM
Works - and I don't no why.
 
it has to actually work ...
 
I think you troll.
 
oh - because it's false.
 
Use print.... print has return value...
Use the return value
 
@JoeWatkins echo $a.!print $b;
 
5:12 PM
damn it bob
we could have wasted hours of their day
 
:-)
 
:)
no
that's wrong
$a and $b are the wrong way round
 
:|
$a . !print $b huh?
 
@JoeWatkins fixed ^^
 
5:14 PM
Gimmie a use case for this :D
 
echo $a . !print '' . $b;
yeah or that echo $a . !print $b;
 
@MackieeE yeah, print returns int(1). You have to prefix it with the ! to convert it to false. and a bool(false) is, casted to string, empty.
 
So $b gets evaluated first by the print method or something ? :x
@bwoebi I see =)
 
Why bother with the print? echo ($a == $b).$b.$a;
 
@Danack huuh? … -.- that misses the point
 
5:17 PM
ok so it wasn't that hard ... probably could have worded it better ...
why does the me tab on twitter glow ?
 
How important is it that I run make test for PHP when it compiled successfully?
 
Not very
 
@JoeWatkins anything changes when you click on it?
in JavaScript, 1 min ago, by Hasan Alaca
is Benjamin Grunbaum a German Nazi?
…wtf … wtf, flagged posts!
@JoeWatkins any other nice PHP riddle?
 
@bwoebi troll, don't worry about it.
 
5:27 PM
Iz I allowed to stuff?
 
@Manishearth Have you paid your membership fee?
 
@cspray who do I bounty? :>
:P
 
@bwoebi none that I can think of .. wanted too, friday ...
 
@Manishearth Of course.
 
@crypticツ if you are running a new version you might want to run make test ... if you rely on specific external extensions too ... or running an RC ...
 
5:30 PM
Please tell me if a post shouldn't have been ed then if that happens
 
you can make sure nothing is drastically wrong just by testing Zend
make test TESTS=Zend/tests
and extensions you rely on ...
make test TESTS=ext/whatever/tests
testing Zend takes about 1 minute ...
 
@Manishearth that's a meta.. ^_^
 
@reikyoushin clipboard
@reikyoushin but sure, close all the meta questions you want. I can actually help there, I have >3k :P
 
sometimes it says I may have found something wrong, and it asks to send the report to php.net. I've looked at the report and it doesn't really help me as I don't understand it. @JoeWatkins
 
5:35 PM
@reikyoushin should this be closed as "not showing enough understanding of the problem"?
(doubt it)
 
if the only failures you see are under expected failures, then all is okay ...
I dunno why it asks you to send a report even if all tests pass
 
@Manishearth what is the question? it seem like a request to me :/ I read it and it seem unclear to me
 
@happy the question is "can haz html hlp plz?" :P
close it then!
 
@Manishearth sound like it :]
 
5:38 PM
too low..
*
Only 350 for window8?
 
niiice
 
means 5$?
 
Of course, I got it free. DreamSpark ^_^
@Fasilkk yep
 
@Manishearth if I don't have enough rep to close vote can I down-vote or is it inappropriate?
 
It is orginal and why it is free?
 
5:39 PM
Eww Windows :P
 
@happy down vote and flag for close
 
@Manishearth okay
 
and leave a comment if you wish
 
Im afraid to buy it because of its low price.
 
@Fasilkk at first it was 40$ to upgrade from win xp lol -> blogs.windows.com/windows/b/bloggingwindows/archive/2012/07/02/…
 
Anonymous
5:41 PM
Anyone have any idea, on how to chain classes together instead of methods ?
 
and people need to pay 50$ more for 8.1 sound terrible to me -> all of this to get start button that was removed
 
@happy is it a good decision to buy windows8 for that 5$?
Now im using windows7..
 
@Fasilkk it seem too good to be true. Even a refurbished licence cost more than that
corporate deal could be like 11.50$ for office 2013
 
32 bit or 64 bit.. which is better?
 
@happy Yup..
 
5:44 PM
@Simon_eQ You may want to give an example of what you're trying to achieve, as that sentence doesn't make that much sense.
 
@Fasilkk it depend mostly on maximum ram vs software compatibility. Generally speaking a system cannot get over 4 gb of ram on 32 bit. There are exception but that's it. 64 bit system has been marketed to support up to X amount of ram but it is a licence limitation. Otherwise hardware motherboard and cpu are those real limitation. All of this is from a Microsoft perspective
 
My ram is 4GB.
 
Anonymous
class foo{
	function a(){
		return $this;
	}
}
class bar{
	function b(){
		return $this;
	}
}

$o = new foo();
$a = $o->a()-chain class bar here then call directly->b();
 
Anonymous
@Danack
 
?
 
5:47 PM
@Fasilkk Generally speaking a system with 2 gb on 64bit is equivalent to 1 gb 32 bit. That being said, if there is no software compatibility issue (be it a driver or a general program) I would recommend go 64 bit if your cpu support it.
 
@Fasilkk Use 64-bit
 
Anonymous
maybe @nickic knows
 
@Simon_eQ "One line, one function call" is a good rule to go by. I kind of see what you're trying to do, but you've missed out where bar is actually being constructed, and the definition of it's constructor.
 
today is friday tomorrow is coding day yeah
 
Today is coding day, tomorrow is coding day, sunday is coding day.
9
 
5:50 PM
@SweetieBelle I'm in a small business so I wear multiple hat. Customer service is not one I prefer :/
 
@Manishearth it's been a while :P
 
heylo
y u no in DMZ?
 
@Simon_eQ Maybe write it as separate lines, then say how you want to put it on one line.
 
@Manishearth I'm quite busy lately and the DMZ is a place ... You know ... xD
 
hah
 
Anonymous
5:51 PM
@Danack I tried it once, and almost had done it. But, wanted to find if such thing already existed here.
 
Hey. one more doubt..:)(last one)
 
why is there no iptable joke ... I guess it's because it's not considered fun :[
 
@JoeWatkins Yes, real work interference at the moment, sorry :)
I'll give you access later in the day.
 
@JoeWatkins nice trick !
 
@HamZa: which one? :O
 
5:57 PM
@webarto cool
 
oh wow. echo $a . !print '' . $b; -- cool
 
When I run make -j2 the compiler is suppose to open 2 jobs to compile and technically speed up the compile. I check using top and I see two instances of the compiler running, one at around 98% CPU usage, and the other at around 60%. Does it use a single core per instance or if I compiled regularly with one instance will it use up to 200% if allowed?
 
It probably leaves it up to the OS on what core it should be assigned.
 
:P
 
Also realize that make is somewhat I/O bound. This means if you are doing almost nothing with your machine except compiling and you have 2 cores, then -j 3 probably going to be faster than -j 2.
 
6:01 PM
@webarto what happened to the template you bought for your website?
 
@AmalMurali click on the little arrow
$a = 'foo';$b = 'bar';$c = 'lol';
echo $a . !print $b . !print $c; // :D
 
Can someone explain how it works?
echo 'b'.!print 'a'; // outputs 'ab'
 
@LeviMorrison -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. so does that mean if I don't specify the amount of jobs it will open as many as it wants and choose the optimal amount? Confused now =o\
 
Eh, depends on the make vendor ^^
I've never seen someone leave off the parameter before.
 
Anonymous
@AmalMurali I think !print is getting evaluated to true because, it is being considered as undefined-constant. So, only the two letters are getting echo'ed echo 'b'.!print 'a'
 
Anonymous
6:07 PM
But, I'm only like 1% sure.
 
@AmalMurali Well, you have an echo here, so the rest of that statement is evaluated first, then it sees 'b'. and evaluates the right of that which is a print statement, it does that and prints a and then goes back, 'b'.!print something is just b because false as a string is the empty string, then it finishes the echo and prints b so ab in total.
 
@MackieeE hmm?
 
Was just linking your explanation why to Simon_eQ =)
(For the $b !print $a thing!)
 
lolwut \/
-5
Q: Where to move your services from USA?

DerfderI am dissapointed on how Google is reacting to the spying of NSA and others. I would like to know where should I move my email and other online services to escape this spying. What countries in 2013 could give me better security than the USA. Is Brazil or South America in general a sefe spot ...

 
6:19 PM
You almost sound like a German war criminal... — Lucas Kauffman 1 hour ago
lol
 
indeed
 
but if you don't let the NSA gather your data the terrorists win =o(
 
@crypticツ prove it
 
@crypticツ As if the NSA cares whether that data is stored on US soil or not :P
 
@cspray exactly, you can put it in a server on a desert island in the middle of the Pacific, as long as it's connected to the internet the NSA is grabbing the data.
@HamZa that was sarcasm
 
6:23 PM
@crypticツ I see, the internetz iz full of sarcazm ...
 
Encrypt.
Outsourcing privacy is a f**king stupid idea.
If the email is private, use PGP.
 
Yay head first design patterns dispatched
@SweetieBelle Sorted out Bf4 yet? -_-
 
I don't know if encryption is 100% secure from the NSA now. Considering they spend $200+ million on breaking encryption each year, they likely have broken popular encryption methods. Encryption is only as good as the current speed of computers, with that much money being spent over the past decade they are sure to have some of the most powerful or the most powerful supercomputers at their disposal to crack it. Snowden said that even if they can't decrypt they store the data to decrypt later.
Just go off the grid if you want to be sure =oP
Also encrypting your data puts you higher on the list to be monitored, they assume you are then trying to hide your terrorists plots =oP
 
=== Total 106 memory leaks detected ===

err… shit. << first thought when seeing that.
 
6:37 PM
Story of the day: a fellow student showed me today a login script that he created with another page(s). So when he tried to login before me, after he logged in. I told him to bring up the login screen. He did. So guess what I tried ? ' or 1=1 :)
 
Anonymous
@Fabien I was gonna read the book, but then I read this .. codinghorror.com/blog/2005/09/head-first-design-patterns.html :/
 
> I didn't say the book was entirely without merit. I like the writing style, and it's a good overview of patterns.
That said, I feel very strongly this advice -- that patterns are complexity, and not to be used lightly -- should be presented up front, not 600 pages in..

Jeff Atwood on September 6, 2005 12:21 PM
 
Anonymous
@crypticツ You believe the NSA is spying on people just to protect you from terrorists? I don't believe a word of it.
 
@Simon_eQ Seems his main gripe is with people new to PHP picking up this book.
 
Does sending perl code over email get you on the NSA watchlist? They take one look at it and think it's a cipher-stored terror plot.
 
6:41 PM
@SweetieBelle being in the php chatroom, you're fated to be on the NSA's watchlist :)
 
@Simon_eQ I can't tell if you're being sarcastic or not. But no I don't believe their bullshit lies.
 
Anonymous
@Fabien The book uses JAVA to illustrate the examples, I found "Professional PHP Design Patterns" to be a better one
 
image steganography is more likely being used by terrorists to plot attacks, and their communications channel for it are porn sites.
 
Anonymous
lol
 
@crypticツ steganography*
 
6:44 PM
@HamZa yeah, =oP
 
Anonymous
They said they found Porn inside Bin Laden's house. Not sure, if they were trying to tarnish his image or not.
 
Anonymous
I get suspicious and feel greater threat by the people who keep things secret than the one's who shout and talk about blowing up some place.
 
Did they say what kind of porn?
 
Goat porn.
 
Anonymous
:)
 
6:58 PM
Bin Laaaaaa-den
 
Anonymous
Even if it was a Goat porn, I still blame America for making it.
 

« first day (1119 days earlier)      last day (3845 days later) »