« first day (627 days earlier)      last day (4324 days later) » 

12:26 AM
Woot, automatic xdebug compliation with all but master as well
 
user895378
@LeviMorrison Can't provide any valid reasoning why, but I kinda like it on the left.
 
user895378
12:45 AM
Also, here's hoping we've found the Higgs-Boson ... big announcement in a few hours :)
 
1:00 AM
@rdlowrey It looks cleaner.
I think I'm going to leave it on the right.
 
man, a multi-version build system sucks...
 
user895378
1:32 AM
I've been working with Hans Zimmer's score to The Dark Knight in the background all day. Kind of makes you feel like a badass when you're programming :)
 
1:56 AM
lol
 
 
2 hours later…
4:07 AM
Anybody know difference in `array(":Age"=>$age)`
And `bindValue(":age",$age,PDO::PARAM_INT)`
when sending data to PDO
 
In the array, do array("Age: . . . without the :.
 
hey all
:)
have a gr8 day ahead :)
 
user895378
@LeviMorrison hey dude, do you have a couple of minutes? like 5?
 
@LeviMorrison I asked is here any difference in sending data to PDO via array or bindValue function
 
wanna check if a facebook user profile exists.. graph.facebook.com/username is this the best way.. I mean without using their API..
 
 
2 hours later…
5:43 AM
that will do
but sad that no one replied :(
 
it's kinda cool
2 hours later...
 
ya.. it is.. lol
 
6:00 AM
what are you trying to do?
 
it does not matter.. I have already done it
 
well im curious
 
6:25 AM
enter facebook username and check if it exists..
used the graph.facebook.com/userid to get a json value if the user existed
get the profile page link..
that was what I had done..
 
oic
pretty cool
 
7:13 AM
well thanks.. I guess.. was hoping the php experts here could maybe suggest point out some errors in my ways or something :)
any suggestions on how to get the city of a person.. he can enter values into two fields venue name and venue address.. cos there is the case where he doesn't enter the city name in the address field
??
these values maybe entered by someone at another place.. so IP is not an option.
of course more than one venue maybe entered.. should a lat,long based thing be apt?? I am fetching their lat,long via geocoding.
would getting an average of the lat,long received be a good option?? and using this to find out the city be a viable option??
 
morningsa
 
hey @PeeHaa G'morning to you too :)
 
8:19 AM
posted on July 04, 2012 by Fabien Potencier

Rants about PHP are everywhere, and they even come from smart guys. When Jeff Atwood wrote yet another rant about PHP, it made me think about the good parts of PHP. The biggest problem of these rants is that they come from people stuck in the old days of PHP. They either don't care or they don't want to admit that PHP actually evolves at a very fast pace, both at the language level but a

5
 
@Feeds "than what you think". Awesome grammar
 
:-)
 
@Leigh let's pardon him, he's french
Quoting @fabpot: #PHP is probably not the best language out there [...] but PHP is the best web platform... ever.
 
@markustharkun I'm English. I will never pardon a Frenchman :)
 
Hello! everybody!
 
8:34 AM
@JaydeepsinhJadeja you're Dr. Nick?
 
No dude! I m Me!!!!!!
 
morning @Leigh @JaydeepsinhJadeja mr @hakre
 
morning @all :)
 
MORNING ALL @ALL
 
8:36 AM
@markustharkun Yeah, Jeff Atwood has realized the power of PHP, too, but was overwhelmed by it's syntax and usage :)
 
@h
@all I have a problem in php can any one help me?
 
@JaydeepsinhJadeja just ask your question
 
everybody has one (1) question, @JaydeepsinhJadeja asked it already ;)
 
I am trying to unzip a zipped folder but returns empty folder
@hakre
 
@hakre Ah of course, now he must answer someone elses question before he is allowed to ask another ;)
 
8:42 AM
@Leigh my mistake can u answer my question?
@all
 
@JaydeepsinhJadeja Sounds like unzipping fails -or- the folder is empty.
 
@hakre I think Ninjas exploited a race condition and stole all his files between the unzip and checking the folder
 
hello
quick question.
i want to develop a turn based game
so I used to use database to know whos the current play
player
does anyone has an optimal solution to get to know whos the current player
which is not efficient
 
vvr
hi
 
@vvr yo
 
8:54 AM
@hakre :)
 
@meWantToLearn err, I'd say shutdown the server and send the paper-version of the game to everybody. They will then meet real people, you can play, too, instead of fiddling with these akwards problems and you can discuss with your new playmates which free software turn based game to support in the future.
 
i just want to develop one
for myself
the one i developed
it works perfectly well
but it access db every second
 
to check whos the current player
i have a column "Current"
when its 1, tht means the user id:232 is the current player
 
populating the drop down using codeigniter
anyone can help
 
vvr
8:57 AM
i have a problem when i mouse over to thumbnail i am showing large image of that but for loading image first time is it is taking time for second time the image will not take time i am doing this using jquery ( Not using Ajax). So what i need is if the image is taking time for at that time i have to show it as loading. How can i do this ?
please help me
 
Opinions on a name for a classes.... They implement the Open Authentication (OATH) standards Time-based One Time Password (TOTP) and Hash-based One Time Password (HOTP) algorithms, as well as the YubiKey algorithm. They implement a OneTimePassword interface and are created via a factory method.. really not enjoying names like OTPOATHTOTP, OTPOATHHOTP and OTPYubiKey
 
lol, yeah, I can understand your objections @Leigh
But I love the support for YubiKey.
 
I also don't want OneTimePasswordOpenAuthenticationTimeBasedOneTimePassword for my class name
 
@hakre how would you implement a turn based game (multiplayer")
@hakre how would you know whos the current player ?
 
first dropdown coming from the database when i select in the first dropdown second dropdown is empty
help me
 
9:00 AM
@meWantToLearn Stop pinging people @ random. I for myself block those who do, so you just went on my ignore list - just letting you know.
 
if you dont know something y dont u just say it :S
 
@Leigh Is there a simple name what all these different classes do? Maybe authentication?
 
@hakre It's OTPProvider
the factory
@meWantToLearn what's the problem with SELECT player FROM table WHERE game = x AND current = 1
 
@Leigh I dont want to use db
mmm will memcache solve?
 
@meWantToLearn so don't develop web apps
 
9:04 AM
@hakre You should have done that some time ago
 
Yeah, paper games rock! You can do creative designs with ease, develop the game while you play it etc.
@PeeHaa better late then never. or so. :)
 
The only problem with that hakre, is that you need real life friends ;)
 
@hakre :)
 
(not getting at you - just a reason why so many people don't play physical games any more)
 
Too bad all those tiny avatars break the layout of chatroom users :(
 
9:06 AM
@Leigh What about having a OTTP that has an implementation? The implementation could be akwardly (relativly) named, but the rest of the code would not bother.
 
@hakre I guess since it's masked by the factory, the actual class names don't matter so much
 
@Leigh That's what I mean. And you can change them later with ease when you come to a conclusion.
 
Stupid fig naming conventions. Underscores would have been so much easier :P
 
@Leigh Underscores should be possible within classnames, too.
But I'm not entirely sure.
 
9:12 AM
WTF:
> Files MUST use only UTF-8 without BOM for PHP code.
wut?
 
vvr
is any body seen my question ?
 
9:31 AM
hey guys
any ideas how using reflection to get class' methods, but only defined in the class, excluding inherited
?
 
@PeeHaa Well, probably they should have suggested US-ASCII instead :)
 
@zerkms does getDeclaringClass always return the most "recent" declaration?
 
@hakre btw. Already had some time to look further into the cv plugin auto update process troubles?
 
morning
 
@zerkms Extend ReflectionClass add a new function for that, filter ::getMethods. I think you need to do it your own, the manual is not very precise whats exactly returned by getMethods and I don't know from top of my head either.
 
9:46 AM
morning nikita
 
morning :)
@PeeHaa I had had but the worklog has stopped in half and right now too much work :/
 
k
btw would be nice if @gordon also adds the backlog repo to the org :)
 
@ircmaxell Hey, you used to post some links on Software Development theories to a website called something like codemaking or codefactory. Can you tell me what website it was ?
 
@Leigh I never trust everything stated by the LHC group
 
@PeeHaa WHAT?!
Why's that?
 
@Christian They tend to hype stuff and report early to press.
 
@PeeHaa False, and false. I can vouch for that.
 
10:13 AM
@Leigh yup
 
@Christian Faster than light particles. wasn't LHC ?
 
@Christian Well I mostly blame the press for the hyping, but most so called "discoveries" get debunked after further research. LHC: there might be a tiny chance that we've got something here (might also be an error or whatever). Press: OMGWTFBBQ!!! Meaning of life found while discovering life on mars while solving the credit debt and world hunger!!!!!111111!!
 
@hakre yep, could be a good solution in case if I needed that often. In my case I just compared class names
 
@OmeidHerat I believe you meant 'than'. Anyway, no.
 
@Christian edited. 'aight.
 
10:15 AM
@PeeHaa Again, that's just talk. Where are the facts?
 
sigh
 
@zerkms So you want to find the class a function was originally declared in?
 
@Leigh: nope, I needed to only find methods that actually were declared in a reflected class (not in its descendants)
 
how to known the complete object instance location on runtime in flash
 
You guys have no idea about the excellent work being done at CERN. It is no wonder it's the largest physics lab ever built, with the best engineers/scientists from all around the world.
@DanishIqbal Go to the fking flash chatroom. We're in PHP here, can't you read?
 
10:18 AM
@Christian I'm sure not few people in the world actually have idea about how excellent it is
@Christian haha, it isn't physics room either ;-p
 
@zerkms I'm not asking physics questions, am I? :)
 
fair point ;-)
 
@Christian You miss my point. I'm not saying they are doing fucking great / cool work. I'm just saying I'm careful about any new discoveries
From the linked article:
 
@zerkms "needed", you don't need to any more? You can do it quite easily without reflection.
 
> Higgs boson-like particle discovery claimed at LHC
And later
> What lies beyond
> A confirmation that this is the Higgs boson would be one of the biggest scientific discoveries of the century
 
10:20 AM
@Leigh: I've used that method - so I don't need it as long as I solved it
@Leigh: how?
 
This was interesting: pvk.ca/Blog/2012/07/03/…
 
@PeeHaa And? They report their findings. It's not their fault the media doesn't understand "like" from "identical".
 
@Christian Are you f87cking reading what I am saying or are you just trolling?
6 mins ago, by PeeHaa
@Christian Well I mostly blame the press for the hyping, but most so called "discoveries" get debunked after further research. LHC: there might be a tiny chance that we've got something here (might also be an error or whatever). Press: OMGWTFBBQ!!! Meaning of life found while discovering life on mars while solving the credit debt and world hunger!!!!!111111!!
 
If they kept their findings for themselves, you and the media would start talking conspiracy theories.
 
$class = 'Child';

var_dump(array_diff(
get_class_methods($class),
get_class_methods(get_parent_class($class))
));
 
10:21 AM
Well, that's a bit different from your original statement.
 
@Christian Can you tell me a single thing that CERN has change in the world for the better ?
 
@Leigh: yep. Could use it, but I already have reflection for other purposes as well
 
14 mins ago, by PeeHaa
@Leigh I never trust everything stated by the LHC group
 
@Christian Sorry I'm done with you sigh
 
@OmeidHerat Refrigeration, the web.
@PeeHaa Funny, you shoot your feet than you sigh. :D
 
10:23 AM
I'm sure it is inappropriate behaviour for 15k+
 
@PeeHaa Well, I can't waste my time with typical arguments by clueless people who don't have a single idea what they're talking about. Case in point, @OmeidHerat's question.
 
@zerkms Well actually, that method actually wouldn't include overridden methods, so ignore me, you'd need reflection after all :)
 
@PeeHaa Now go back being productive at watching cats :)
 
@Leigh yep, thanks for participation ;-)
 
@Christian :P
 
10:25 AM
It distracted me from work for 5 mins, all good
 
@Christian you seem to have waked up from the wrong side of the bed or something, you started being an English teacher and now tellin' me a typical clueless person.
you started saying' how wonderful it is and I asked what they have done for the better.
 
@OmeidHerat Let me offer you some advise.
Don't criticize things you know nothing about.
 
no thanks.
did I criticize it ?
you seem to be pissed off, go huge a rock or something.
 
How come sometimes when I delete an answer (because someone said exactly the same thing as me before I did) it asks me to vote to delete (answer has no votes)
 
don't actually want to participate in this discussion, but it will be useful only after they use that knowledge for something
 
10:28 AM
@zerkms Exactly. But the real problem here is that the press (as usual) gives a bad impression of CERN to the people.
And the people seem confident criticizing it, even when they don't know anything about it.
 
the LHC is a big toy for big boys. And until they use that knowledge for something related to general people - it is still a toy
 
@zerkms In the making of that big toy, realize that you wouldn't have shiny toys like the iphone.
 
who cares of people critics? ;-)
well, to be fair - LHC didn't bring anything to iphone
and I don't know what it already brings to the world (but to be honest I haven't been interested in it a lot)
 
@zerkms Nope. They have a technology sharing program - something the US gov't tried doing with patents - except their's work transparently.
 
A patent ( or ) is a form of intellectual property. It consists of a set of exclusive rights granted by a sovereign state to an inventor or their assignee for a limited period of time in exchange for the public disclosure of an invention. The procedure for granting patents, the requirements placed on the patentee, and the extent of the exclusive rights vary widely between countries according to national laws and international agreements. Typically, however, a patent application must include one or more claims defining the invention which must meet the relevant patentability requirement...
 
10:34 AM
@zerkms The Web was invented at CERN. I think, if anything, that was worth it.
 
:-S
 
@Christian Tim actually invented WWW before coming to CERN. and refrigeration is also not invented at CERN.
 
Development != Invention
he was working on HTTP in early 80s.
 
@OmeidHerat Yeah, and I'm sure everyone would be happy about an imaginative idea with no physical substance.
"I want to connect the world" - There, invented. Where's my prize?
 
10:45 AM
working != dreaming
 
@OmeidHerat Oh, now so it was working before he developed it? Wow.
 
Damned, stop bitching around guys
Especially @Christian
 
@NikiC Why? He practically insulted something I value dearly.
 
@Christian he developed HTTP and HTML before WWW.
and that is how it started before he joined CERN.
 
@Christian Do you work at CERN or something?
 
10:49 AM
Regular guys punch each other on the face because of some stupid football team.
@NikiC Might be...
 
@Christian Might?
 
@NikiC He has absolutely no right to criticize something he does not understand.
 
Who is he ?
 
I think he is you
 
Reading some retarded news != knowing how they work.
 
10:51 AM
@PeeHaa said that how he doesn't trust LHC.
and all I said was asking @Christian what CERN has changed in the world for the better and he started talkin' crap.
 
Back at primary school, we used to play a game called telephone. The principle is that when you don't know the message entirely, it keeps getting lost on each hop.
Omeid, you should realize that you are at the end of the chain.
@OmeidHerat What crap? I've been factual on each argument, unlike you.
 
@Christian like refrigeration invention at CERN ?
 
@OmeidHerat Modern refrigeration is based on the model from CERN.
 
@Christian what do you mean by Modern refrigeration ?
 
11:10 AM
@OmeidHerat Unfortunately, I can't find the document. But consider that their magnets need to work at 2 K(elvin)...
 
@Christian Well, that has nothing to do anymore with refrigeration in the normal sense of the word
 
hello. Can i define a variable inside IF statement? For example > if($call = mysql_query("SELECT * FROM table")) { $number = mysql_num_rows($call); }
the example is variable $call
 
@John you can but instead you should use MySQLi or PDO.
Jun 30 at 13:28, by tereško
Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun deprecation process. See the red box? Instead you should learn about prepared statements and use either PDO or MySQLi. If you can't decide which, this article will help you. If you pick PDO, here is good tutorial.
 
@Christian If I remember correctly the LHC uses superfluid helium for cooling, because second sound gives it some incredible heat transfer properties
 
@OmeidHerat thanks
 
11:15 AM
not a problem.
 
@NikiC I swear they did something different. Helium at that temperature is useless in regular systems.
See, I went there a few years ago. Had a friendly scientist show me around :D
I especially loved their CCC (computer control room).
There are checkpoints in some specific places which only personnel in the CCC allow you to pass through (they open gates remotely).
 
@NikiC There's also something else. The electro magnet wiring cores are hexagonal. It's small hexagons grouped as bigger hexagons.
You can see more about the wiring here: en.wikipedia.org/wiki/Niobium-titanium
 
11:35 AM
@Christian This explains much of why web and typography don't go well together.
 
Anyway, for whoever is interested, there's this great video.
 
11:54 AM
hey guys.. is there any way to check if a twitter username exists.. maybe using REST or something? Not using the API. I just wanna check if twitter accounts exists. If not, then don't save to DB. Maybe curl to some particular URL..??
 
12:36 PM
@ircmaxell Thanks.
 
12:59 PM
Scale out and then extend while cloud-forcing intersteaming API requests into websockets - Java bindings style. — hakre 1 min ago
 
yay :D, rocks. and the secret is: always works
 
stackoverflow.com/questions/9596616/… - only rotting, can be removed IMHO
 
1:14 PM
How to run python program and get the output in php page ?
<?php
$cmd = "python abc.py ".$_POST['place'];
exec(escapeshellcmd($cmd), $output, $status);
if ($status) echo "Exec command failed";
else
{
echo "<pre>";
foreach($output as $line) echo "$line\n";
echo "</pre>";
}

?>
 
i tried this but command is not get executed
 
can anyone say the answer for that
 
@DicksonXavier have you tried basic debugging: i.e. check whether post contains what you think it does? echo command and run it from commandline? etc?
 
@PeeHaa but SO chat is an interactive debugger...
 
sorry! got it!! simple mistake
 
@DicksonXavier Don't worry. It happens
 
Busy cleaning day eh @PeeHaa ?
 
if i have a url like /profile/id/name/
could i keep the name part even though i dont use it programatically anywhere but for seo instead?
 
1:50 PM
@Yohann I don't see a problem here
How do you handle requests?
 
um well im not really using php, im using asp.net (not that i want to but the project requires asp.net) so im kind of stuck with it
otherwise i'd use a mvc framework
dont think its 100% php related but where do i find articles on seo(not the marketing stuff) code snippets to optimize my site
 
@Yohann SEO === marketing stuff
Do you want the gist?
 
lol, what about meta tags?
"gist"?
 
1) Get good content
2) Get good backlinks
 
http://stackoverflow.com/questions/11330431/creating-a-invoice-php
 
1:54 PM
@PeeHaa agree :D
 
Meta tags don't have much weight
Add a good h1 and <title>
 
1 and 2 are the most important
 
thanks :D
 
np
 
1:57 PM
@PeeHaa #1 is the hardest part for most people it seems ;)
 
2:18 PM
Please give us an update if you found out how to detect the weather using PHP. — Robin v. G. 2 mins ago
 
well the guy actually wrote "detect wheather", a mixture between both..
Still so far from close voting .. still too lazy to farm rep from uninteresting questions..
 
You only need 1k more
@Leigh Just rep whore like a boss for a week
 
sooo boring :(
 
2:33 PM
But it brings great powah :)
 
I'll pay an outsource team to go and upvote all my answers
I need to write some SO account stealing malware, then sell SO botnet services
 
evening people
 
hiya @tereško. You've been quite today
 
i woke up at 4 pm , and had to run to shop, so that i do not starve
 
@tereško Always nice to have something to drink and eat at home
 
@tereško you woke up at 4pm?
 
3:09 PM
it's 6 now
 
@tereško does this mean: vacation?
 
aha
 
@tereško It's 6:20 at my place, where are you now?
 
latvia
far north from where you are
 
@tereško Latvia is +3GMT?
 
3:24 PM
no , +2, but its summer time
 
@tereško Well. Good thing you have rested. There's a long cv list waiting for you ;)
 
i went through some of it
 
great
 
@rdlowrey Apparently I did not
> PHP supports closures

With painfully convoluted syntax, necessitated by the fact that PHP doesn't know what scoping is. Compare:

$tax = 0.5;
$total = 0;
$func = function ( $quantity, $price ) use ( $tax, &$total ) {
$total += ( $quantity * $price ) * ($tax + 1.0);
};
array_walk($this->products, $callback);

with:

$tax = 0.5;
$total = 0;
$func = sub { $total += ($_[0] * $_[1]) * ($tax + 1.0) };
$func->( $_->quantity, $_->price ) for @products;
^ Am I the only one pained by the supposedly better syntax?
It completely breaks the PHP workflow. I'm glad PHP didn't do that . . .
 
3:40 PM
@LeviMorrison Where's that coming from?
 
@PeeHaa A comment on Fabien's article on PHP.
 
@LeviMorrison Yeah, saw that one too
 
What is this, LISP?
yuck.
 
@LeviMorrison I once saw a class about it (MIT it was if I recall correctly). Yuck is an understatement
 
I would like a shorter syntax for function() use(){}, but I can deal with it.
 
3:44 PM
If I can get generator expressions into PHP you could write that as
$total = array_sum(foreach ($this->products as $price => $quantity) yield $quantity * $price * ($tax + 1));
 
Which looks much more like PHP code.
 
which is a nice one liner but in my eyes too hard to follow :/
 
> In my personal opinion, when I read the post of Jeff Atwood, I just thought "Another guy trying get attention to his blog (get more visitors)" and well he got it, what a piece of cake
made me lol
 
Was linked before, but it just stays funny every time I see it: destroyallsoftware.com/talks/wat
 

« first day (627 days earlier)      last day (4324 days later) »