« first day (1747 days earlier)      last day (3201 days later) » 

3:00 PM
Moar core!
 
@JoeWatkins When you work at the candy store... you have access to free candy though
 
<insert Tim Allen howl>
 
How long does it take to boot up your computer?
3 seconds?
 
I'll bet that's what it is @Sherif
it was actually painful to buy this processor ... I can't imagine handing over even more money...
 
2.6GHz
2.6GHz dual-core Intel Core i5 processor (Turbo Boost up to 3.1GHz) with 3MB shared L3 cache
Configurable to 2.8GHz dual-core Intel Core i5 (Turbo Boost up to 3.3GHz) with 3MB shared L3 cache or 3.0GHz dual-core Intel Core i7 (Turbo Boost up to 3.5GHz) with 4MB shared L3 cache.
 
3:01 PM
@Sherif iirc at fb they program on 16+ht
 
that is my processor
Is that good?
 
@PeeHaa I think no ifs is a little extreme
 
@NikiC Do they? Are those the desktops? Because I know the Macbooks definitely don't have 16+ht
 
@JoeWatkins I paid €200 for mine
 
@JoeWatkins for 2 more days
 
3:02 PM
@TheSerenin That is a horrible naming scheme then (createIP() at the very least). Also I now realise what you are doing makes no sense... you replaced the createRange() method with a mock, it's no longer got an internal implementation, so it won't behave as you expect. You'd have to create a partial mock where only the create() method is mocked to verify that it's called 256 times.
 
As far as I can see they are talking about the wrong problem, but their website is hard to get what their actual point is
 
But I'd argue that this is not a sensible test anyway, you should not be testing the internal implementation, only the public API
 
Need some help guys
 
@ircmaxell ooooh ... I get it ...
 
@Sherif I'd assume remote
 
3:03 PM
they don't do remote @NikiC
 
@NikiC Oh yea, the remote I can believe. I had access to everything I wanted in the data center when I was at tumblr.
 
they told me they didn't ... at least for senior roles, you gotta be onsite every day ...
 
<html>

<head>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

<style type="text/css">
.row
{
margin-left: 30%;
margin-top: 10%;
}
 
@JoeWatkins Remote as in running on server
 
oh oh
 
3:03 PM
what am i doing wrong
my search wont work
i am building a search function for my mysql database
connected to it fine with mysql i
mysqli
 
we got servers with 32 cores, but if I can't lick it, it doesn't count ...
I'm not allowed to lick the servers ...
8
 
everytime i run I get error message with "The requested URL /test/seach.php was not found on this server."
 
Anyonef rom UK here?
*from
 
1 min ago, by Sharath Zotis
what am i doing wrong
almost everything
 
brb, going to lick the servers
 
3:05 PM
teresko can u help
 
@JoeWatkins I don't know that you'd want to. Do you know how hot a 32 core machine would be after running all day?
 
@Sherif I do. 150ºC
 
I'm not sure I can. You seem to be terrible at JS, SQL and PHP
I dont think I will have enough patience
 
where is there js in this
please help me it seems like a relatively easy task
im just getting something wrong in the syntax
 
at my job we're going to get access to an oracle big data appliance for a big data project soon, the starter edition is 6 nodes each containing two of those 18 core cpu's
 
3:07 PM
Well.
its very easy to get help and fix your problems.
However,
 
but i won't be able to lick it, so i guess it doesn't count :)
 
The reason why we are not helping you out is because we want you to improve your debugging skills.
 
@Hassan how do i go about this
 
Dry run your code
Look at URLs
File structure
 
@JoeriSebrechts To be fair, it's the sort of thing you could do so quickly that no-one could stop you
 
3:08 PM
File permissions
 
@DaveRandom the problem is one of geography, i'll be in one country, the server will be in another country ... curse you internet, always thwarting me!
 
ok when i click submit
i am getting the following url
 
Actually the internet could work to your advantage here, you could outsource the server licking responsibilities to others
 
also, can you please explain @SharathZotis , what is mysql_fetch_array doing in your code ?
 
3:10 PM
I might start a social network specifically for people who want to work together to lick as many servers as possible
5
 
'lick' ?
 
@DaveRandom Let me know when you start the private beta
 
is that not how u call an array with result
of your query
fetches the data baseed on query
 
@PeeHaa Maybe we could create a new SE site for it
To the Area 51 mobile!
 
@SharathZotis few lines above you have new mysqli .. so, answer is NO
 
3:12 PM
ok so what should i use
 
In my honest opinion,
check out how to use PDO.
 
pdo requiures installation
i dont want to complicate that installation
 
@chozilla what is that
@SharathZotis oh really... doesn't PDO come in default with your installation?
 
AOL Bitcoints.
 
3:14 PM
why you showing me that lol
 
@chozilla lolwut
How many you need to store the chain?
 
JUST ONE MORE GAME TO HIT 1 BILLION WINNINGS :D
 
2
Pick Up Artists

Proposed Q&A site for pick up artists, love gurus, dating experts

Closed before being launched.

3
dafuq
 
> Proposed Q&A site for arseholes
 
3:15 PM
@rdlowrey why didn't you tell us about your proposal site?
 
user895378
lol
 
I mean: morning sir
 
Guys, I have a problem.
I wanna know how to fix it with code.
 
Hello guys, morning
 
How do I get top notch muscles like Arnold?
 
3:17 PM
@HassanAlthaf Steroids
 
@HassanAlthaf roid. Lots and lots of roids
 
His are legit
I believe
 
Fuck no
 
Yeah no...
 
Btw, one of the side effects of steriod
I cannot handle that side effect lol
 
3:18 PM
morning pretty ...
 
no Hassan PDO didnot
 
@PeeHaa: back in the days, the bitcoin chain was really really small.
 
@HassanAlthaf sideeffects are the natures way of removing the stupid for gene pool
 
What do you mean?
 
can I use of this :
if($_SESSION['login'] != '') {}
instead of this:
if(isset($_SESSION['login'] && $_SESSION['login'] != '') {}
?
 
3:19 PM
I don't want to have problems later in my life lol. :P
Why the fk am I getting level 140s and 150s in this shtty game when I am only level 81
 
I have tried debugging the thing I concluded is that the problem lies in the actual
submit
is that correct?
 
dunno
"Every program which is written works perfectly as it should, it is just us who don't write it perfectly as we want it to behave." -- Hassan Althaf
Holy fk, one of the best players of 8 Ball Pool is playing with me.
I am definitely losing.
 
3:46 PM
Morning.
 
morning @levi
 
4:12 PM
@NikiC @bwoebi In PHP 5.5, usleep() is interrupted by the arrival of signal, but in PHP 5.6 the signal does not interrupt sleeping. Is there something that changed between releases or something with configuration/compiling I'm not aware of?
 
@Trowski Nope, I'm not familiar with that stuff
And I think zend signals is older than that
 
PHP 7 also has the same behavior as PHP 5.6. Might have something to do with how I'm compiling them...
Though I don't know what that would be...
 
@JoeWatkins ;-)
 
@NikiC Know of anyone who might be familiar?
 
wich wordpress theme
 
4:17 PM
@bwoebi might know
 
He's a more signal-y person
 
which theme using banggood.com
banggood.com is iti wordpress or opencart
 
@Trowski a stab in the dark ... since the php impl is just calling the system function, it's probably that the 5.5 build has zend signals enabled and the others don't, or vice versa ...
a signal should interrupt usleep ...
possibly zend signals disables trapping (or traps for another reason) that signal, not sure ... or it might ignore it completely ...
what are you sending ?
 
@madu what makes you think it's one of those?
 
4:23 PM
do you normally recv signal when not sleeping ?
 
its has nice themes
@Orangepill
 
@JoeWatkins SIGTERM, SIGQUIT, SIGUSR1, SIGUSR2
Yes, the signal arrives when not sleeping.
 
@madu and... what makes you think it's wp or opencart? Why do you think it's even php?
 
so ... show me a reproduce script ...
 
Ok, just a minute.
 
4:31 PM
krakjoe@fiji:/usr/src/php-src$ time make -j16
...
Build complete.
Don't forget to run 'make test'.


real    0m12.416s
user    1m5.918s
sys     0m25.206s
In a minute, I could conquer the world ... or build another few versions of php ...
 
@JoeWatkins Hmm... So now PHP 5.5 is acting differently on this computer than my laptop at home.
 
php -i | grep Sig
check for zend signals ... I'll bet there is a difference ...
 
Says disabled, I'll have to check at home.
Or I'll just recompile it here...
--enable-zend-signals, correct?
 
yes
anyone ever seen twitter.dev as referring domain, or any traffic coming from there in logs maybe ?
it's okay, I can wait for you all to search logs ... I assume that's what you are doing ...
 
@JoeWatkins Looks like Google owns .dev, so maybe they let Twitter have a domain.
 
4:38 PM
could be intranet couldn't it ?
 
I don't think you'd see an intranet domain in your logs.
 
as referrer
 
Oh, well anything is possible there.
 
yeah is only referrer ...
 
twitter.dev does resolve.
So it's possible they're using it for something.
Oh, wait, except I should have looked at the IP it resolved to, lol
127.0.53.53, which is the ICANN's way of saying "This domain will be used in the future".
 
4:40 PM
@Trowski There's no whois entry for it, it's probably some internal thing.
 
yeah
 
@JoeWatkins So even after recompiling with --enable-zend-signals, usleep() still isn't being interrupted.
Well, clearly I can't rely on usleep() being interrupted by a signal. I'm going to have to set up a periodic timer to check for signal arrival.
 
you could break on signal, find out what is installing handlers ... I think it must be getting swallowed ...
but it won't fix the problem ... but might answer the question ...
 
@JoeWatkins I do get the signal, just after usleep() has finished.
 
but but ...
that doesn't make sense
 
4:48 PM
pcntl_signal(SIGUSR1, function ($signo) {
    printf("Recieved signal: %d\n", $signo);
});

posix_kill(posix_getpid(), SIGUSR1);

$start = microtime(true);

usleep(1e6); // Sleep for 1 second.

printf("Slept for %4f seconds.\n", microtime(true) - $start);

pcntl_signal_dispatch();
@JoeWatkins I'll have to test it at home again, but I've had that script interrupt usleep() immediately and trigger the signal, so it only sleeps for a few fractions of a second.
Clearly I have to put pcntl_signal_dispatch() on a timer though.
Adding declare(ticks=1) also solves the problem, but I imagine would be a performance nightmare.
 
$strrr='[{"id":1},{"id":2,"children":[{"id":3},{"id":4},{"id":5,"children":[{"id":6},{"id":7},{"id":8}]},{"id":9},{"id":10}]},{"id":11},{"id":12}]';
$books = json_decode($strrr,true);
how to get children id and children paramente
r
anyone know
 
@Trowski bit
what create_object alloc's, we no longer need to free, ze does it for us using offset stored in handlers ... because fuck basic rules ...
 
@JoeWatkins merged
 
@Trowski I wonder why we don't just throw on signal
 
cool
 
5:02 PM
Like Python
 
user895378
@Trowski it most certainly would
 
The exception may not be immediately handled, but relatively close to where the signal originated
 
@NikiC that'd be not so easy I think ...
the handler is executed in another thread ...
 
also: github.com/ircmaxell/php-security-scanner /cc @BenjaminGruenbaum
 
@NikiC Just throw the signal exception from anywhere?
 
5:06 PM
@ircmaxell Whoa, you're spewing out code like crazy
 
@NikiC feels good to be inspired :-)
/me wants to work more on the compiler, but that laptop is at home
 
found another ...
 
oh yeah?
 
pr awaits, simple one ...
 
you now have push access to the repo
 
5:12 PM
thank you, kind sir :)
 
no, thank you!
 
The Intel guy is awesome
 
you can give people push access to a non-org repo on github? :O
 
If big corps start contributing, it'd be great for php-src
 
php doesn't have a function to parse html attribute style string into an array does it. i.e. property=value property2="value2" property3='value3'
 
5:14 PM
if he's awesome, that's probably how he landed the job at Intel? ;)
 
I mostly mean it in the way that Intel contributes to php-src
 
ThW
@Orangepill That's what DOM is for, parsing XML and HTML.
 
doing something like simple_xml_load_string( "<body ".$attributeString."/>") would work but I was wondering if there was something more primative
@ThW not dom... just happens to be be stated like an attribute list
 
no build warnings now .. which is nice @ircmaxell
 
@JoeWatkins yay!
 
5:20 PM
@ircmaxell nice
 
I don't think I'll backport any of it to PHP5. Yet another reason to push people to upgrade.
 
stackoverflow.com/a/25758425/2224584 - should this answer be deleted? it offers no real advice and has a score < 0, despite being accepted
 
@ircmaxell nope
@ircmaxell lol, nice
makes me think of zephyr somehow
 
@ScottArciszewski edit in a warning
 
5:21 PM
or, err, hiphop :P
 
@FlorianMargaine except this is compiling from native PHP
 
@FlorianMargaine Yeah, much more like hiphop.
 
@FlorianMargaine the output is optimized, so there is a reason to do it,
 
@ircmaxell I wonder how you're going to implement classes
 
5:24 PM
@FlorianMargaine I wonder how much slower the PHP code output there is
 
@FlorianMargaine how? they are already limited implemented
 
implementing some kind of C OOP with virtual dispatch et al?
@ircmaxell oh
 
@FlorianMargaine use normal PHP classes. And I have to do normal dispatch since PHP can extend these compiled classes.
 
@ircmaxell oh right, it's transpiled to a zend ext
 
one of the things I'm thinking about is checking the CE to see if it's one I know about, and if so do direct property/method access rather than indirect
so $foo->bar would be compiled as if (CE(foo) === internal) { result = foo.p_bar } else { result = zend_lookup_property(foo, "bar") } (semi-pseudo-code)
 
5:28 PM
in C land, there is little need for such dark magic ... also you could know about a class I extended and am using magic in php land ... __get/__set ...
 
@ircmaxell yeah, actually that's the way to go. looking up by name is slow.
 
going to support magic, right ?
 
@JoeWatkins yes, however at compile time I should be able to know if it'll hit a magic method or not.
 
@JoeWatkins that's probably just not applying the optimization in case get/set are set
@ircmaxell You can't… at least not with dynamic property access?
 
yeah ... just trying to think of all the things ...
 
5:30 PM
@bwoebi I can, because I'm only talking about using the static lookup if I know the class entry (meaning the instantiated class) is actually an internal compiled class
@bwoebi I can't do that anyway with a dynamic prop access. I need to use the normal lookup mechanism
 
so ... tests ... what will they look like ?
 
which will proxy back to my read handler
@JoeWatkins I don't know, which is why I haven't written any :-P
 
@ircmaxell how's that?
 
we could knock up a test runner ... looks like we'll have too ...
well ... couldn't the tests be phpt tests bundled with demo ...
 
@ScottArciszewski how's what?
 
5:32 PM
and couldn't demo be the test kit ?
 
the edit
 
all you need do is rename it to "tests" and it is so
 
@ircmaxell I mean an example like … class foo { public function __get($x) { return NULL; } public function __set($var, $x) { $this->var = $x; } } $foo = new foo; var_dump($foo->var); /* __get */ $foo->do_set = 1; var_dump($foo->var); /* no __get */
See the problem?
 
@JoeWatkins well, should the tests actually run gcc or not...?
 
hey =]
 
5:34 PM
@ircmaxell yeah, gcc and execute.
 
@bwoebi yes
@bwoebi however, I can detect that
 
not sure what you mean, you want to test the actual build ?
oh oh ...
I'm catching up ...
 
@JoeWatkins right, or should the tests simply do matching on the generated result (or lower)
 
Greetings
 
@ircmaxell with generated result you mean after compiling and running via dl()? then yes.
 
5:37 PM
anyone Interested in Maths..
curious. is it correct...
 
I think testing the generated result is better than testing nothing at all ...
 
@bwoebi "generated result" meaning the generated C, not using gcc at all
 
and don't really have any great ideas (other than a custom test runner, and format, and oh my god) for testing the actual compilation step ...
 
@ircmaxell I wouldn't test the generated result. That'd be possibly a lot of work for some API changes which may not happen that rarely.
 
@JoeWatkins I wonder if it'd be worth while making a CFG out of the C code. That way we can test the structure
 
5:39 PM
But what's supposed to be always constant is the output of running the C code.
 
@Rafee answer
 
i^i = 1/sqrt(e^pi) :P
 
by generated result, I was talking about running normal phpt's against a "test" (the developed demo) extension, totally normal using run-tests.php ... we can do that easily, tests are stable, runner is stable, everything is okay ...
 
5:40 PM
I think testing the generated code, before it is built, is definitely worthwhile, but might be made harder by the fact that it would be brand new code and we haven't tested anything else ...
 
@ScottArciszewski you mean… i^-2i = e^pi? (looks nicer)
 
so normal phpt's might be a starting place allowing you to develop the CFG for C and do proper testing ...
 
@bwoebi yes. And having one or two end to end tests is fine. But I worry about speed and fragility of those tests (fragility of environment)...
 
if the CFG renders anything else obsolete because it's so freaking cool, then no harm done ...
but wait ...
 
5:42 PM
@ircmaxell actually, you can compile a lot of outputs into one .c file. At that point then the gcc compilation could be fast.
 
we would have to generate those tests too ...
or no we wouldn't ...
 
thanks
 
anyone know a orm or great persistence layer that plays well with auryn?
 
@RonniSkansing If you're using repositories then Doctrine? aka what problem are you having.
 
@Danack I had some doubts from github.com/rdlowrey/Auryn/issues/48
Cause I think I would like to use Doctrine
 
5:49 PM
must walk dogs, I'll be back ...
 
> $injector->delegate('BugRepository', [$entityManager, 'getRepository'], [':entityName' => 'Bug']);
 
ehm.. I read that comment.. but guess I did not understand it.. but I do now.. thanks
 
lol I wonder if hackerone's IBB covers the PHP 7 beta ;)
probably not
hackerone.com/reports/73255 omg they actually fixed this one?
 
Ah, can I submit bugs there as well?
 

« first day (1747 days earlier)      last day (3201 days later) »