« first day (972 days earlier)      last day (3981 days later) » 

3:00 PM
anyway, I have to get back to my research. laters.
 
@Gordon ah i see ... yeah, possible i guess ...
 
@Jack it makes me want to
 
@Baba had you managed to run the newest pthreads yet? (on your win?)
 
@Gordon okay, thanks! :)
 
3:01 PM
@bwoebi i gave your would run it on my centOS VM instead
 
@Baba and it runs…?
 
@bwoebi Not yet
 
Undo global warming lol
 
@Baba why? (or didn't you have the time yet?)
 
patrol 403, Investigating reports of open source activity
 
3:03 PM
?!
 
@bwoebi search from ts rpm for php
 
why don't you build it from source? when you're on an unix?
 
@tereško Are auto-mappers like EntityFramework or Hibernate common in PHP?
 
nope
 
3:05 PM
@bwoebi how do you manage multiple instances of php on one single unix ?
@bwoebi eg 5.4.6 ts , 5.4.16 nts etc
 
@Baba ./configure --with-prefix=/a/new/version/in/each/folder
 
@Baba I have trunk/master as main version and the rest I make but not make install.
 
@Jack cool .. thanks
 
The dynamically linked libraries might cause issues here and there of course ;)
 
@bwoebi what do you mean by not make install
 
3:06 PM
@BenjaminGruenbaum automapper is a specific component in ASP.NET constellation. EF and Hibernate are just general purpose ORMs. And PHP has ORMs.
 
@Baba the command make install is moving the php binaries to the different locations
 
Oh, when I said auto-mapper I meant ORMs. I wasn't even aware there was an automapper component in the ASP.NET constellation.
 
I leave the binaries in the folder where I installed PHP.
 
@bwoebi you you run only make
 
I'm sure PHP has ORMs, I was just wondering if using them is common practice.
 
3:08 PM
depends
 
@Baba yes
 
@bwoebi nice tip i would experiment on that today ...
 
@Baba Oh yes, that's the other way ... once you make you can run from ./sapi/cli/php :)
 
and address the cli binary with ./path/to/install/sapi/cli/php
 
Do you use them?
 
3:10 PM
@BenjaminGruenbaum php projects are more wide-ranging then in java or asp.net. ORMs are good idea for medium-size projects with multiple developers and simple DB schema.
 
@bwoebi i think am loving Unix every day .. why did not lean this a long time ago
 
if any of these 3 parts is different , ORM might cause more damage then benefit
 
Are PHP ORMs good? (That is, are they easy to use?) In C# you pretty much use language integrated querying for all your work with collections regardless of the ORM, ORMs just provide an adapter that converts input to these queries to SQL on the fly.
 
@Baba don't know; at least I have on os x nearly all the features of an unix command line... that's one reason why I like OS X so much...
 
(That's probably why I enjoy working with ORMs often in C#, but really hated it when using Java)
 
3:13 PM
@bwoebi very tempting but it was difficult for me to leave my alien ware .... but i think i have gotten to a stage that i need both
 
@BenjaminGruenbaum You could check out Doctrine 2 and see how it works.
 
@bwoebi after i buy the new alienware of cause
 
@bwoebi and the new retina display for mac pro is cool
 
I've had pretty okay experience with Doctrine, though some will yell clusterfuck when they hear the term ;-)
 
3:15 PM
@Baba I like it (the best is to have also native resolution :-P)
 
@bwoebi getting both ... that would be a good way to be on top of things :)
good eyes ... most people did not see the `
Undo global warming` button
 
@Jack The fact you have to resort to writing queries as strings kinds of beats the point doesn't it? That's not how they work in C#
 
running the benchmark now, a total of 10 times, with min/max/average case recording...
 
@Jack Did you notice what caused starvation ?
 
@BenjaminGruenbaum Ehm ... don't you always write queries as strings? :)
 
3:18 PM
@Baba Did you even try 2880x1800 on 15"? You need to have not too bad eyes ^^
 
@Jack No! :)
$query = $em->createQuery('SELECT u FROM CmsUser u WHERE u.phonenumbers IS EMPTY'); // doctrine
var users = db.CmsUsers.Where(user=>user.phonenumber==null); // C#
 
@BenjaminGruenbaum Hmm, maybe you should read on :) You're looking at hydration.
 
$query = $em->createQuery("SELECT u.name FROM CmsUser u WHERE TRIM(u.name) = 'someone'"); // Doctrine
var names = db.CmsUsers.Where(x=>x.name.trim().Equals("someone")).Select(x=>x.name);// C#
 
@Baba Ehm no ... I wasn't always looking hehe
 
Ok, will read on
 
3:20 PM
@bwoebi 15" always to small for me .. prefer 17" upwards
 
@Baba oh btw, the other java vid :)
 
@Jack Eatagram 1:24
 
@Baba me too. but there was no MBP retina 15" :-(
 
@Jack Link?
 
3:22 PM
@Jack lol porn was better than .net .....
@bwoebi really ?
My son is a Monster ... very funny
 
 
@Baba oh. should be "no retina MBP 17"" xD
damned typos
 
Think I'll rather read the RFC ;-)
 
3:30 PM
@bwoebi Oh ok ..
 
@Jack lol Yes, but for building a parser, this is quite useful.
 
Hmm, I see ... a gigantic regular expression to parse http =D
 
@ircmaxell ./sapi/cli/php -d "memory_limit=1G" ../temp.php

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 179830800 bytes) in /private/var/root/temp.php on line 5

seems to work, but why does PHP first jump up to ±1.8 GB before it quits saying that 1 GB RAM would be used? (instead of quitting at around 1 GB used?)
 
@Jack That's a lot nicer :)
 
:)
 
3:36 PM
@bwoebi Wut? 1,073,741,824 = 1GB, 179,830,800 = 179MB
 
@bwoebi I have that fixed, let me commit and push
Also, updated benchmarks: gist.github.com/ircmaxell/5782139
And pushed
 
@Danack not this. I've seen up to 1.81 GB on /usr/bin/top
 
ah.
 
ok, will have a look now
 
which is actually pretty interesting, because it's faster all around, but fairly significantly on the micro-bench (although it does hurt a few specific cases)
 
3:44 PM
@ircmaxell It shoves off 1s on micro bench?
 
"shoves off 1s"?
 
micro bench becomes 1s faster
 
shaves
 
oh
 
and yes
 
3:45 PM
yeah, maybe that word ^^
 
@ircmaxell in isset mainly I see… but why the hell is the modified faster in isset(Foo::$x) but slower in isset($x) and isset($foo->x)?
 
that's quite significant. are you sure?
 
@bwoebi prob to do with when the GC is triggered
@NikiC the exact same configure options, the exact same build (other than my modifications to the GC), and run 10 times to factor out any interference
I'll give you the script if you want to try it
 
@ircmaxell and how is the speed in real world applications?
 
@ircmaxell in that case congrats. to get this kind of perf improvement with a small change is pretty rare
 
3:47 PM
cache coherency ftw ?
 
Oh, and in this case, no xdebug and no debug build
@bwoebi Will have to benchmark some more
 
@NikiC When I suggested this change to ircmaxell, I thought the performance would be ± equal… But I hadn't expected such an improvement :o
 
@bwoebi same here
Updated with benchmark code: gist.github.com/ircmaxell/5782139
 
@ircmaxell same? you thought it'd be significantly slower ;-)
 
adf.ly is down, wtf, any idea how to get the complete link? :O I can't download a single apk
 
3:51 PM
I'm going to try running the ZF2 test cases
@bwoebi Yes, I did...
running make test now too
 
Hey guys!
 
ok, someone needs to fix make test so that it doesn't make network calls or whatever
 
@NullPoiиteя too late
 
you clicked .. or its deleted before you clicked ?
 
3:58 PM
closed prior to click
well, yes deleted
 
@PeeHaa埽 Please could you review and if satisfactory submit a PHP docbook change. User 29494, 'APC shm_shared_buffer'.
 
@NikiC: shaved 6 seconds off of make test... but that doesn't mean anything considering how slow it is anyway
 
If I was a hacker who wanted to hack the server, I would not turn the javascript input checking on ... just saying :D
 
@Jack It's right, but YaK's answer sounds better. It's more imperative.
 
4:13 PM
@Telkitty猫咪咪 I wouldn't even be using a browser for that payload
 
many ways to hack the server ... you can use a browse for certain methods
 
Sure, but there are tools for that :-D
 
@ircmaxell who needs tools when he can do it the hard way xD
 
true
why have one when you can have two at twice the price!
 
True ... seems no one wants to invest time in trully innovative hacking methods anymore >_<
 
4:17 PM
ummm
people are doing it all the time
 
'improvement' on old methods
 
nah
 
@Telkitty猫咪咪 yiz - changed ur name so that u cn ask more perl questions? :p
 
nah my perl script is well taken care of by now :p
speaking of which I am still Question banned on meta
 
is it mean to edit your sister's bridal tea pictures into memes? (i.imgur.com/PPyZNp4.jpg)
 
4:21 PM
@bwoebi Yeah, maybe. Apparently repetition is vital ;-)
 
@Jack löl, yes....
 
I would like to know who exactly deleted my Troll Bin room
it was almost becoming popular
 
@Telkitty猫咪咪 complain on Meta :P
or just get over it :)
 
I will set up a new account on meta once I become less lazy ...
Or you can just tell me :p
What exactly is the advantage of PHP over perl?
 
ARG! I thought C++ wasn't allowed in core!!?!?!?!?!?!
 
4:28 PM
?
There is embedded C++
how could it not be allowed in core?
 
@ircmaxell where is there C++?
 
@Telkitty猫咪咪 PHP doesnt look like RSA encryption before and after RSA encryption
 
INTL extension binds against libicu... Which is a C++ lib
 
@ircmaxell it's okay in extensions right? :)
 
@Telkitty猫咪咪 if it's oh so important: stackoverflow.com/contact
 
4:32 PM
@ircmaxell C++ is allowed, but not in the Zend core or the extensions everyone may need. So that people who don't have a c++ compiler don't have a disadvantage
 
screw ZF2
 
@ircmaxell mhm?
 
@Gordon "I thought you zipped this Perl file?" "I did, dammit!"
Oh, it's 12:34am here ... time for bed =D
 
Laterz ...
I probably should too ...
 
@ircmaxell Did you know: When ISO standardized the various forms of bolt threads, the labeled the document: The Taming of the Screw
 
4:35 PM
@Gordon Can mods lift ques/ans bans?
 
@Jack Laterz
 
@NullPoiиteя cya :)
 
@Gordon or you can just tell me who it was ...
 
lol
 
what is the secrecy?
 
4:35 PM
@Jack tada
 
@ircmaxell I admit, I made that up. But wouldn't it be great if they had
@Mr.Alien no
@Telkitty猫咪咪 or you can write to stackoverflow.com/contact
 
Seems silly if I do :/
 
@Telkitty猫咪咪 then let go of it :)
 
But I am curious
 
@Telkitty猫咪咪 E_RECURSION
 
4:39 PM
MUST ... NOT ... HACK ...
not do I know how to
 
@Telkitty猫咪咪 btw, how come you picked up PHP lately?
 
I was doing some server side programming - been working on the PHP/Perl scripts for a while.
and I was hoping maybe one day you could tell me who deleted my Troll Bin :'(
 
@Telkitty猫咪咪 It was the Troll Bin Binner
I wonder if answers to emails I got via about.me actually reach the recipients. I got two recently and they didnt respond to my responses. I'd expected the second one not to answer after he heard my daily rates but the other was from a promising recruiter.
 
4:56 PM
Grrrr. Why can't I access the USMC and Navy Seals Doctrine pages. Is that because I am outside the US?
 
Guys I'm doing a simple MVC framework tutorial (phpro.org/tutorials/Model-View-Controller-MVC.html#7) and I've got a question about it. About halfway through the tut, it asks me to run a function in my base index.php file. It says to do so with this line of code: $router->setPath (__SITE_PATH . 'controller'); What is confusing me is that I don't have an instantiation of the router object in a variable called $router, I have the router object in the app registry like
Continued: so $registry->router = new router($registry);. Shouldn't I be calling the setPath method with $registry->router->setPath()?
 
no
 
@tereško Is this a response to my question?
 
... on a slightly different note: that tutorial is filled with a lot of shitty code
 
It's a dated tutorial, but it seemed to be the simplest I could find and I'm just learning OOP.
 
5:06 PM
if you are just learning OOP, why the hell are you messing with MVC ?
 
@tereško How am I able to call setPath using $router->setPath? if $router hasn't been defined yet?
Well I understand the basics of OOP somewhat.
 
most likely somewhere higher in that tutorial there was said to define it
@billmalarky , maybe better start going through this list: stackoverflow.com/a/16356866/727208
 
@tereško I've done a control+F search on "router" and it isn't defiined earlier in the tutorial.
Since the router object is in the registry, why wouldn't I call setPath from the registry using $registry->router->setPath()?
 
@NikiC: initial results show a 1% savings off the Symfony2 test suite
 
@billmalarky that tells me , you have not actually read that tutorial
copy-pasting code is not a form of reading
 
5:10 PM
@tereško Trust me, I have read it and I am reading it thoroughly. But you have to understand this is all quite foreign to me. Can you please help me to understand this part?
Also, thanks for that SO link, will difinitely be reading that today.
@tereško Holy shit, that post of yours is awesome man.
 
looks like there is a mistake in that tutorial
it tells you to add this to index file:
 /*** load the router ***/
 $registry->router = new router($registry);
instead , to keep the tutorial consistent, it should be:
 /*** load the router ***/
 $router = new router($registry);
 $registry->router = $router;
also, i should warn you that registry is considered to be an antipattern
 
@tereško Yes, see that actually makes sense to me. It's so damn frustrating that 90% of online tutorials have major flaws in them. It really hampers the speed of learning.
I've been hearing about "dependency injection" being used instead of a registry, but to be frank it looks a bit more complicated so I'm sort of trying to build my way up on the concepts right now.
 
@billmalarky Dependency injection is not complicated at all.
Dependency Injection only means that your methods and objects simply ask for what they need
 
@MadaraUchiha Do you have a link to an excellent an descriptive tutorial?
Actually, does anyone here have something similar to the tutorial I am using (extremely basic MVC) but that actually uses current and best practices?
 
5:21 PM
So instead of new Obj($registry); //Registry gets param1, param2, param3 You simply use new Obj($param1, $param2, $param3);
 
^^ That explains Dependency Injection
 
@ircmaxell Was just about to post that :D
 
@ircmaxell Hey, that's you! thanks man.
 
so aparently, I am unbanned from Reddit! I don't know if I want to be excited or not
@billmalarky :-D
 
@ircmaxell How did you get a sitewide ban?
 
5:23 PM
posting only content from my blog
 
@ircmaxell Not surprising, reddit has pretty much gone to hell. It's gotten so big that unless you only post from trusted sources the mods are too overwhelmed and just ban you instead of checking to see if the submission is actually of quality first. Which is funny, because it's the same problem digg had (only getting content from a small amount of sources) but whereas digg had it built into their system, reddit has sort of evolved into that due to lack of mod resources.
 
it wasn't a problem with the mods
it was the admins that did it
 
@ircmaxell What the fuck? That's a pretty big violation of their "code", to you piss off someone on the team or something?
 
nope
 
5:29 PM
Are you sure that you weren't just caught in an automated spam filter?
 
it was automated
 
Well regardless my point still stands. I suspect that the next successful content aggregation site will rely heavily on a mix of UGC and professional editors. Users submit the content and push it up to a "trending" level (aka the basic form of content quality assurance) and then professional editors actually decide what goes to the top. The only way to make it successful though would be to have amazing editors that really understand good content.
@ircmaxell Ah, that makes more sense. Alright guys, I'm going to research the information you've provided. Thanks for the tips. Also, ircmaxwell I'm going to watch your video first so I'll probably have a question for you in a few minutes just fair warning ;)
 
Good luck!
 
In cross domain authentication, how do you identify the user. (that they are the same person that logged in on the other site)
 
5:50 PM
@ircmaxell So if I'm understanding this correctly, dependancy injection is similar to a registry but instead of importing every single variable and object in the entire app into the new class being created (aka new class($registry), I just think about the actual variables/objects that the specific class I'm creating will actually need and then inject those (aka new class($db,$somethingelse,$etc).
 
Please help me out if you know: stackoverflow.com/questions/17078831/…
 
@billmalarky registry is a separate concept
DI needs no tools
 
@ircmaxell How do I make DI dynamic though? So the class will automatically get the dependency objects it relies on passed to it? Is that this "dependency injection container?"
 
yup
 
@ShadowZzz "What I have been stumped with is: How do I identify who the user is?" Wouldn't you just have their token saved in a database table row that also had their username or userid in it, then when they presented the token you would know who the user is.
@ircmaxell So I need to create a DIC class and then pass it to each new class created like new newobject($dic). And the DIC class will somehow discover what dependancies the newobject class has and return those?
 
6:00 PM
@billmalarky I know that i pass the token form the client site to the auth server with the 1x1 pic... but how does the client side know what the token is? since you can pass sessions or cookies...
 
no, that's a service locator
you would ask the DIC to create an object $dic->create('newobject')
 
@ircmaxell saw it :)
 
:-D
 
Login to domain1.com and recieve domain1.com auth token in a cookie. go to domain2.com and then in the domain2.com webpage you make a request to domain1.com/isloggedin.php via the 1x1 pic img tag. The isloggedin.php file will recieve the initial auth token from the cookie that is sent, if isloggedin.php finds an acceptable token in it's DB,
it makes a call using cURL to domain2.com and inserts a token into the domain2.com db then sends back a redirect header to the img tag that points the img tag to domain2.com/login.php?token=thetokenid so the domain2.com can set it's own auth cookies on the users browser.
I've never tried anything like that, but I think it would work.
 
@billmalarky If you're getting an auth token "via the 1x1 pic img tag" you are almost certainly doing it wrong.
 
6:14 PM
You could also do it with JS but then it wouldn't work for people with JS turned off.
 
I'm sorry, the idea of getting an auth token through <img> is an awful idea. There's no way to be nice or friendly about it. Do not do this
 
@cspray What would you do?
 
@billmalarky oauth.net
 
I just suggested that idea because that's what ShawdowZzz initially brought up.
 
heh, I considered running my own Dispora pod. Then I saw it uses RoR … nuff said
 
6:23 PM
lol
hrm, today will not be a rep-cap day... :-(
 
hows the Glass btw?
 
Hi, anyone working with magento?
 
Quite interesting
minimal (in terms of interface)
 
@Manoj no, we care for our sanity
 
it's not something you're going to play with all day
BUT, it's there when you want something. Which is really nice
so all in all, not what I expected, but in a good way...
 
6:25 PM
okay, do u know how to show related products in the frontend?
 
@ircmaxell and what you're going to do with it? you wrote something about authentication
 
I don't know, I might still do that... Not sure yet...
 
@billmalarky Ok thanks - This game me a bit to think about... I will see what I can do...
 
@ircmaxell well, the two ideas I had for it are already heralded as the next killer apps
 
I actually have an interesting idea for it... Fitbit integration
 
6:28 PM
POV porn and Instant Face Recognition. The latter wont be allowed says Google and the former won't be available from the Play Store ever.
 
there's only a few apps right now, which is odd...
 
I wouldnt do just trivial face recognition though as that company in the news. I'd calculate a matching factor to revolutionize partner finding.
 
nice
The thing is, it would be weird to use
because it's not transparent... It's not augmented reality
You'd need to click or speak to activate it
and by that point your cover is blown
 
So I don't just look at people and get an overlay next to their head telling me the score?
 
nope
although that would be epic
but now I have one, I can start hacking
although I have been getting TONS of dirty looks (and a ton of "woah, that's awesome" looks)
 
6:32 PM
Can't I say "Ok Glass, start matching" before I leave the house and then it just keeps going and going? I mean I can do Navigation, right? That runs until reach your destination, or?
 
well, kind-of
the display goes off until its time to turn...
You can always wake it back up again
but it's really meant to be out of your way until you need it
as opposed to constantly decorating everything (like a pilot's HUD)
 
Hmm, well, Google said they won't allow facial recognition until robust laws are in place. Not that this means anything when you can still root the thing and put whatever on it, including always on face matching.
 
Hey guys, I'm having trouble finding resources on my problem. I have a website with users that have currency and items. I'm trying to make a system for trading items and/or currency between them. I can think of a way to do it art by part with PHP, but I want to find resources on doing it in real time. The problem is any searches I've tried produce results about stock trading...
 
Well, it's picture-based facial recognition, so snap a photo, and then it sends it off and comes back
 
oh. no real time?
 
6:35 PM
nope...
 
ah well. give it a year or two, then i will have that, too
 
same with QR codes
Next conference we are at together you can try it :-P{
if any
 
yay! thanks :)
 
actually, I'm just going to jump the bullet and sign up for unconf slots "play with glass"
 
the Glass runs Android, right? So Java and Python?
 
6:36 PM
@ircmaxell nice :-) are there maybe any other places which depend heavily on recursion?
 
not sure yet
 
@ircmaxell It can't do realtime qr code scanning?
 
nope
but it does it just out of real time
meaning you take a photo, and it decodes it
 
@ircmaxell just like on android
we are nearing message ID 9999999. I wonder what will happen after that
 
@ircmaxell That is absolutely terrible. It requires too much work from the user...
 
6:45 PM
@billmalarky I guess they had enough to do with making the various parts of your smartphone fit into the Glass for the first version
 
@Gordon integer overflow is far away.
 
Con someone explain what this line of code means. I've never seen this type of syntax: $route = (empty($_GET['rt'])) ? '' : $_GET['rt'];
Is it some sort of shorthand if statement?
 
Great, thanks.
 
743
Q: Reference - What does this symbol mean in PHP?

GordonWhat is this? This is a collection of questions that come up every now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list. Why is this? It used to be hard to find questions about operators and other syntax tokens.¹ The m...

helpful
 
6:48 PM
@Gordon Excellent resource. I pity the fool who has to do ctrl+f "?" on that page though :-)
 
@billmalarky search for ?: instead ;)
 

« first day (972 days earlier)      last day (3981 days later) »