« first day (1453 days earlier)      last day (3511 days later) » 

12:00 AM
Is it a 158gb JSON file?
 
@floppy sure, but if it's a large data-set this would take ages.
 
nono its just 17mb
the full database is 158, im just taking filtered dumbs
dumps
 
PHP has no document model for JSON, only encode and decode.
 
If you are storing NumberLong(\d+) because that's what the vendor gave you then that's what I'd send the user.
 
i know, this external mongodb stores the value as you just mentioned. but the official riot api returns it without NumberLong()
 
12:02 AM
if you get it out of mongodb, perhaps there is some parameter you can make it give you back JSON and not JSON + something encoded in strings inside of the JSON?
(not knowing much about mongodb)
 
You could use sscanf to retrieve the ID if it ultimately comes to it.
 
perhaps use the native driver and you're fine (tm).
anyway it's late for me.
cu tomorrow.
 
nn
 
meh i just removed them in excel with replace NumberLong( with " and ) with ". does perfectly fine.. xD
 
12:38 AM
do you see something wrong in this for loop? for(i=0;i<10;i++){..} (Im getting this: Parse error: syntax error, unexpected '=', expecting ';' )
 
@Marby Have you tried using an ide?
 
@AndreaFaulds Did you find an internal class with a __toString handler?
 
ide? I think I didnt understand PeeHa
 
An integrated development environment (IDE) or interactive development environment is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. Most modern IDEs offer Intelligent code completion features. Some IDEs contain a compiler, interpreter, or both, such as Net Beans and Eclipse; others do not, such as SharpDevelop and Lazarus. The boundary between an integrated development environment and other parts of the broader software development environment...
Or anything basically that does syntax highlighting
 
ah, like netbeans for example?
 
12:44 AM
yeah
 
@Marby If this is PHP the variables need to start with $
 
Im using sublime text, and Im just doing some exercises in individual file
 
@Marby Syntax highlighting should make it obvious where the error is
 
@TheodoreBrown something like 3v4l.org/oaf2n ?
 
ah, obviously!
 
12:47 AM
@TheodoreBrown Sorry, been away. Will do.
@Ocramius Not like that at all. I don't mean the userland method, I mean the internal handler.
 
ah
 
@Ocramius Thanks though :)
 
1:24 AM
@Ja͢ck Ping about Iterator changes
It's not exactly clear what is BC and what has been broken.
 
1:43 AM
@LeviMorrison Before the change, and with ALL_MATCHES enabled it would accept (and yield) an empty array ... you can see that from the changes done in the iterators_52.phpt.
err, it would accept a non matching result and yield an empty array
 
So you'd get one empty array, then it was over.
 
After the change that would no longer happen .. whether that's BC I'm not 100%
 
Yeah sometimes in bugs it's a bit sketch.
 
The way it works now really seems the right way (tm) :D
Judging from the test cases, it didn't seem anyone made an effort to see whether the results actually made sense.
M.O.: write test case, make it fail, copy the output into the expected field :)
 
Yeah, I hate tests like that.
I'll review the actual code changes tomorrow.
 
1:49 AM
Your tomorrow starts in a few hours I reckon?
Drinking my morning coffee now heh
 
@Ja͢ck Morning :P
 
@PeeHaa yellow!
Err, did you move countries? heh
 
One of those "lemme just fix this thing and commit before I go to bed" days :)
 
Oh that :)
Full disclosure, I woke up at 4am and fixed my PR before going back to bed at 6am heh
 
:P
 
1:53 AM
You end up having odd dreams so close to day break :)
 
Yeah that also always happen to me if I wake up to early and sleep in again for an hour or so
 
And, sometimes, the dream would actually involve code .. the horror!
 
@Ja͢ck Starts in roughly 12 hours ^^
 
Did you check out this bug report? sigh
Let's all hail JSON syntax for all the things.
 
Is there any way to test setting a protected property in an abstract class without manually creating a concrete class?
 
2:04 AM
The test would involve declaring a class that implements the remaining methods, if any.
 
Basically my class looks like
abstract class Foo
{
    protected $foo;
}
And I created a stub using
$concFoo = $this->getMockForAbstractClass('Foo');
I want to set $foo using the stub
 
-> getMockForAbstractClass is a phpunit thingy?
 
yeah
 
property_exists($concFoo, 'foo') I guess?
 
@LeviMorrison, your acronym expansion was correct. I'd have said "my multiple bosses" but that'd have been odd.
 
2:10 AM
@Ja͢ck Nope I want to actually set the variable not test it
 
Ehm okay .. so then set it?
 
How?
 
Either I haven't had enough sleep or you've been awake for too long ;-)
 
hehe
 
Well, just a bare mocked object won't do, obviously.
Unless phpunit bestows upon it the ability to get and set protected properties.
Here, anonymous classes would be a nice idea ^^
 
2:12 AM
@Ja͢ck I was hoping there was some magic call in phpunit that lets me do that
@Ja͢ck yeap
Eactly there reason I want them
Meh fook it. Cannot find any info on it. Just going to create an actual class :(
 
Sounds like the most reasonable thing to do ... the method does have support for an array of methods .. but not sure whether that would help at all.
 
@Ja͢ck Nice constructive title :P
 
Yeah :)
 
It would be nice to have a Mock::setProperties() mthod though
Or as you said anon classes
Writing concrete classes for testing purposes also feeld kinda sucky
 
2:28 AM
It would be nice if you could do $obj->method = function($foo) { ... } :D
Of course, this is already possible ... just have to bind it before calling
 
2:40 AM
@Ja͢ck Was too hot to sleep. Looking now.
@Charles ... can you share the company name?
int spl_instantiate_arg_n(zend_class_entry *pce, zval *retval, int argc, zval *argv TSRMLS_DC)
Why not spl_instantiate_args?
Also, doesn't this always return 0?
cc @Ja͢ck
I see the spl_instantiate_arg_ex1 and spl_instantiate_arg_ex2 functions always return 0 as well.
These functions seem to call a constructor of the passed zce; I assume that's why they are named spl_instantiate_*
Is there not already a function that does this somewhere?
 
2:58 AM
I could call it _args() too I guess.
I'm following "convention" as much as possible, though the arg_n() is arguably odd heh
Also, might as well make it void.
 
No usage of spl_instantiate_* in ext/spl actually uses the return value, which is not shocking since it is always 0.
Do you mind if I submit a PR for the PR?
Teehee
 
Go for it :)
 
Also, I assume int argc just for main-like compat
I assume that it must be >= 0; is that correct?
Ah, zend_fcall_info_argp asks for an int, I see.
 
Yeah, should theoretically be unsigned int but I've never seen that being used
I took most of that code from PDO
 
What's the purpose of zend_fcall_info_args_clear?
 
3:05 AM
It cleans up the passed args ... though I was thinking of taking that out and re-adding zval_ptr_dtor(&args[1]) in the calling code.
 
...oh dear
Altering ext/spl/spl_engine.h did not cause anything to recompile when I did make
 
touch ext/spl/spl_iterators.c
 
No, I'm going to fix it.
I hate it when stuff like this happens.
 
I'm not aware you can even do something about that :)
Can you define a dependency in the Makefile or sth?
 
Definitely can do that in makefiles.
I do that in all my hand-written makefiles o.O
I just don't know how to do it in autotools, so I'm going to go learn.
 
3:11 AM
haha
ehm, you're doing that afterwards, right? :D
 
What do you mean?
 
I mean, you're doing that after authoring the PR for my PR? ;-)
 
Maybe.
Depends how hard it is, and how intrusive.
 
Night all
 
Nite!
 
3:22 AM
@Ja͢ck Not only do we use autotools which isn't as nice as cmake, we defined a bunch of our own functions that pointlessly wrap stuff so I can't easily search for help :(
 
Yeap
 
I'm surprised the SPL doesn't have its own Makefile.am already.
 
Not sure :)
 
3:41 AM
It seems the discussion about autotools may be long overdue.
I can't believe this simple case doesn't have proper dependencies.
 
There was once a cmake project ...
In fact, there still is
 
Probably horribly out of date.
 
No doubt.
 
I guess Mac OS X doesn't ship cmake anyway.
 
Of course it does.
Well, you can install it :)
Don't think it ships with it .. just like how most servers don't ship with autotools.
 
3:47 AM
Which just completely boggles my mind.
 
Servers don't really need autotools.
Nor do they need a compiler.
 
I will quietly disagree ^^
Maybe I should start using a BSD.
 
:)
 
@Ja͢ck Where are these cmake sources you mentioned?
 
3:58 AM
"Need to install ICU (icu-project.org) for compiling PHP."
 
eh?
 
That's the error I got when running the cmake stuff ^^
I'll just comment it out and try again.
@Ja͢ck Well there turned out to be less than I thought; not going to submit a PR.
Basically, just add /* {{{ */ and /* }}} */ and change to void.
 
Okay, thanks! :)
 
Some of it I can't really comment on as I don't know how some of it works.
 
4:19 AM
@NikiC Found this proposed patch; I had hoped they would use a "head/tail" structure to manage a linked list .. what's your take on this? it abuses a doubly linked list to achieve the desired effect, but it is likely the smallest patch :D
 
4:36 AM
@Ja͢ck You mean a linked list where a List is a value and pointer to the next item in the list?
 
Does thecodinglove work?
 
struct List {
    List* next;
    zval value;
}
?
 
@LeviMorrison Yes; the problem is that for each element to be appended a function is called whereby only the head of the list is given.
So currently they prepend the values.
 
So you want a simple, singly-linked list that tracks tail?
What does it store, zvals? zval pointers?
 
The values are simple char* key/value pair.
 
4:43 AM
Who cares what they are doing; what would you use it for?
 
It matters because doing it in reverse a) messes up extension loading, b) prohibits overriding previous values.
Alternatively, they use zend_hash for their array-like structures :D
 
5:17 AM
@LeviMorrison I try to not actively name them in public for a variety of reasons, but they're listed in my SO Careers profile, which is linked on my SO profile.
Hmph, I need to update that profile, I stopped trying to pretend and manage people a while ago... hm... need to also figure out what my new title is.
 
@Charles Hey, we're both in HPC.
fist-bump
 
heh
It's a mixed blessing. I do IT, I'm not one of the engineering guys. Man, you wouldn't believe the wide variety of spam we see.
 
You mean the spam you technically asked for when you went to a conference kind of stuff?
Or just more spammy-spam in general?
 
Had some high-quality bioinformatics spam this morning. It was fun trying to figure out waht they were actually trying to sell.
Spammy spam.
So yeah, that website is front half of the horrible codebase I often rant about.
The back end of it? It runs the company.
So, wait, what HPC stuff are you involved in?
 
So like, do you work on stuff here: siliconmechanics.com/c198/intel-servers.php
And do you like, get lots of complaints about it?
Why can't I select the amount of memory I want, rather than the max?
 
5:26 AM
Honestly I haven't touched the category page code in like five years, but yeah. FWIW, the product managers actually set up the HTML for each row by hand on that one.
We restrict memory selections to reduce option overload. Also, it happens that server-grade procs do things with multiple memory channels that make certain memory configurations really bad performers.
We've been struggling with how to best present this information, as your query is one we hear from time to time.
One of our competitors created an actual information graphic thing that changes itself based on CPU selection and the memory you pick to warn you when you make a bad choice.
 
We just meet with Dell or Intel and they tell us that stuff in person ^^
 
We like that idea conceptually, but have decided that preventing people from shooting themselves in the foot is slightly safer.
 
And they take us out to eat when we do it.
 
Vendor lunches are awesome.
 
Guys, when I submit a PR for a bug fix, do I close the bug report, or leave it for whoever merges the PR?
 
5:29 AM
@Leigh The latter, unless they don't take care of it.
(I think)
 
thanks
 
Are you buying Intel's EPSD gear?
We really, really wanted to like it, but they keep changing their damn mind about how they're gonna market it.
 
@Charles I'm not sure what your target audience is, but the UI doesn't really present me with what I want :(
 
@LeviMorrison Trust me, I'm not sure we know who our target audience is either. :)
 
Number of sockets: great. But that's my only CPU option at this point?
 
5:31 AM
We sell random individual servers here or there, random small storage stuff here or there, and then also get these huge multi-rack HPC cluster things...
 
Like... the generation of Intel product really matters. There are important characteristics between v2 and v3 :(
 
@LeviMorrison Ooh, you're only talking about the filtering page.
 
Well, not just that page.
 
Yeah... man, I'll just sum up that one by saying that people are stupid and product management is a real pain to perform properly./
FWIW, we only usually ever sell the current processor generation, and Intel segments their capabilities by socket count.
So in reality, it doesn't actually matter once you've gotten socket count down.
 
Ah. We are purposefully not buying Haswell.
 
5:34 AM
Worse for your use case?
 
Slightly better but way more costly.
We don't benefit from a lot of the features, such as improved power profile.
We want to be running at 100% utilization, all the time.
 
Hmph, can't even filter it out by chipset.
 
We don't care that you use less power when idling, or that you can power individual parts up and down faster.
And in practice we are generally close to 100% so we hit that mark.
Turns out a lot of programs couldn't use FMA instructions either so that's a big feature that should have targeted us but didn't actually do anything.
 
For your use case, if you were a potential customer, I'd suggest mailing our sales engineer folks. The majority of the stuff we ship out the door isn't configured from the website.
Hell, pure website sales account for a tiny fraction of the business.
 
Of course; you don't get free lunches that way.
^^
 
5:36 AM
heh
Well, if you ever need a Supermicro VAR, now you know who to call.
 
But yeah, Ivybridge is pretty good and Haswell also is being released with new memory which is also expensive.
 
Yeah, DDR4 won't be coming down in price for a while yet..
 
So new CPU + new RAM... it's just not worth the little gain we saw.
So we're buying Ivybridge.
 
Given that Broadwell looks like it'll be more of the same (power, power, power), makes me wonder if you'll end up skipping that as well.
 
Depends. If they lower their power footprint per core on average like Haswell did then we might do it because we are somewhat power constrained right now.
We have the space for 3 clusters but only rotate with 2 because of power constraints.
 
5:42 AM
Anyway, I have some spare hardware laying around, some bandwidth to spare, and if php.net infrastructure is down because of a lack of hardware, we might be able to fix that. :)
Power constraints and not enough money to fix them?
 
(and don't get me wrong, we are space constrained too but high-density solutions are getting better)
@Charles Worse: University politics.
 
Ohh, those are delightful.
 
We share the room with CS, who uses 120 volt machines.
Pretty sure they are Pentium II.
No I did not mistype that.
 
That's scary as hell, and I say that as an IT guy that still has at least five or six P4 machines in service.
(Hey, when all it needs to do is run a single Firefox tab, that's all you really need...)
 
I am pretty sure they aren't in use for the most part, but it's about politics.
If they give up the space (or power) they never get it back.
So they fill the space with what they have, turn it on and let professors have the capability to do stuff.
 
5:44 AM
And of course, nobody's about to go and get more space.
 
Server room space is highly contested at universities ^^
 
Yeeeup
 
The room can't be expanded without kicking out the animation people.
I don't see that happening.
What I could see happening is someday they get a new building and we can claim their old space.
 
Yeah, and the chances of leasing space elsewhere are probably pretty darn low...
 
Animation at BYU is a pretty awesome program. Those who get in are very lucky.
@Charles I think they would only be interested in that for infrastructure services.
That's a fairly low load.
the www and rsync boxes are the only high-traffic stuff.
 
5:49 AM
@LeviMorrison That's fine, just heard the whispering about something being down due to lack of hardware.
Wouldn't want high-traffic on that connection anyway.
 
@Charles Yeah, it's only half-true.
Hardware is down and the easiest solution is to bring the stuff back up on another box, which we don't have.
However, all we really need to do is separate out the services and move them other hardware.
That requires time, which nobody with access to the systems has ^^
 
Sounds almost like IT.
 
I think it'd be nice if we could move all infrastructure stuff to something container based, and then deploy them on something like a certain company we know has.
Oh, a container is down? Just bring up a new one.
 
Yeeeup.
 
Do you guys use anything like Docker internally?
 
5:54 AM
Na, our infrastructure and deploy methodology is pretty primitive. Prehistoric codebase on antiquated OS.
Fixing both of those first...
 
Yeah, good idea.
Can't have lxc on antiquated OS anyway ^^
 
Our deploy is 90% svn up && rsync && run_database_update_stuff.sh
and then 10% batshit insanity from the previous devs that we haven't yet purged
 
I do want to make things work in a docker and/or vagrant way, but I have bigger fish to fry for now.
 
Hello guys :)
 
5:56 AM
y helo thar
 
@Charles So do you do any PHP for work? Just a little? A lot?
 
@LeviMorrison I alternate back and forth. Right now I'm in the middle of a giant refactoring to make system warranties actually real things instead of magic strings of text. This has involved touching bits of the code that haven't been touched in the eight years I've worked here.
 
That does not sound enjoyable.
Probably better than dealing with Wordpress, though.
 
After that, we're doing a complete replacement of our entire server and networking infrastructure. Looking forward to playing with 40GbE stuff.
Meanwhile, the rest of the IT team is doing a complete phone system switchout, and the rest of the dev team is trying to wrangle sense out of the most stupid useless SEO consultancy ever ... and tackling minor projects.
 
I can't remember if we have 40GbE between the data center and our clusters.
 
6:01 AM
40 is weird and fun.
 
We definitely have 20GbE
One of our clusters has Infiniband, which works well for us.
 
Yeah, and we'd be using it for similar purposes - communication between storage and VM hosts. I just hate all the hardware for it.
 
Anybody work with symfony from India here ?
 
@Charles We have 2-3 people who work out all the specs, including exact cable lengths and such.
Takes a while.
 
@LeviMorrison That's some serious design thought right there.
 
6:04 AM
@Charles Historically it has saved us a fair bit of $$$.
Plus nobody likes lots of extra cable coils getting in the way.
 
@LeviMorrison The difference between /r/cableporn and /r/cablefail
 
morning
 
Good morning.
 
Open Invention Network
what do we know about it ?
 
that I first heard about it here, just now
 
6:11 AM
Subject: pthreads and the OIN community.

My name is Shane Coughlan and I am from Open Invention Network (OIN). We are a community organisation that helps insulate everyone using Linux-related open technology from patent tension. Because you are working on an Open Source project via GitHub I wanted to talk about working together.

OIN has a community of over 1,000 companies and projects that pledge never to use patents aggressively over Linux System technology. Our community is extremely diverse, ranging from Google, Dropbox, Verizon, Red Hat and LG Electronics to projects like CentOS, Gent
 
@JoeWatkins I know that it has a wikipedia page?
 
yeah read it, read some articles about it and other similar solutions ...
I don't know what problem they are solving ...
 
@JoeWatkins Possibly a defense against the likes of SCO?
 
there have been cases between members, so it looks like it doesn't work to me, am I wrong ?
some blogs in the field paint them in a pretty bad light ... not sure what to make of it ...
 
Looks like it's just a patent pool - everyone can use everyone's patents. That there are cases alone is meaningless, you can file a lawsuit for literally anything.
 
6:18 AM
well cases between entities that are both members seems significant to me ...
(I dunno anything about this, dunno why I'm getting this email, dunno why I'm trying to work it out)
 
What's significant is how the claims hold up in court, not that the claims exist.
 
> Please help us push patent aggression out of Open Source.
this seems admirable I suppose ...
he seems like a clued up chap, and doesn't like it at all ..
 
Hmph. Someone needs to come up with a MIT license variation with the GPL3 patent clause.
 
so.. apache license basically?
 
From Symfony docs:
> The goal of a controller is always the same: create and return a Response object. Along the way, it might read information from the request, load a database resource, send an email, or set information on the user's session.
...don't people claim Symfony is MVC? I'd say that's hardly MVC ^^
 
6:28 AM
@PaulCrovella Hmm, good point.
 
I'm not saying the what Symfony does is wrong or bad... it's just not MVC.
 
@LeviMorrison Someone needs to abolish the term "MVC" from all web frameworks.
 
are they using "controller" in the context of talking about MVC? the word has a lot of uses - front controller, application controller, etc.
 
@Charles At least all of the ones using HTTP.
 
@LeviMorrison true
 
6:31 AM
My latest stance on frameworks: they generally make simple tasks a bit easier after a bit of a learning curve, but prevent you from doing the complex tasks how you'd like to.
And that is really all that matters.
The flagship feature of most frameworks is their ORM or <insert other db wrapper/abstraction term here> anyway, which I don't value at all and may even go so far as to say is harmful.
3
 
I've been enjoying working with the "Spot" ORM for my trivial side project. Violates SOLID in a few places, but I don't have to deal with pseudo-annotation bullcrap.
 
@PeeHaa @bwoebi @JoeWatkins @DaveRandom after starting to think about it... I'm not actually sure what the phpdbg browser extension should do. Should it just be a remote command-line? Should it have an interface where you can see all the files? If you can see all the files, the limit is thin between debugger and IDE...
 
my problem with most ORMs is the same problem I have with frameworks - too much magic
 
My problem is that I have to access/manage my date their way.
 
@PaulCrovella Too much magic isn't the problem. Not being able to easily determine how and why the magic works, that's the problem.
 
6:36 AM
Hi I'll receive an url like foo.com/bar/1/cool/bar Wich is a 1 page registration form. I should create on our server an url like: customurl.com/register/here wich should refer too that foo.com/bar/1/cool/bar url.
 
posted on October 08, 2014 by kbironneau

/* by JtR */

 
Maybe people are just too uncomfortable to write SQL... I dunno.
 
@Charles well, that's what makes it magic
 
But it's important to keep that customurl.com/register/here . Should I do that with a 301? Thx
 
In any case, I think there are a few libraries that make sense to use, even in custom solutions.
Anything dealing with security you probably don't want to write yourself.
(Unless you have very knowledgable security developers; having security IT people isn't enough, it has to be the devs)
 
6:37 AM
@PaulCrovella And is why I hate magic. If I have to go look it up and actually spend significant effort figuring it out, it's too much magic.
The HTTP response status code 303 See Other is a way to redirect web applications to a new URI, particularly after an HTTP POST has been performed, since RFC 2616 (HTTP 1.1). According to RFC 7231, which obsoletes RFC 2616, "A 303 response to a GET request indicates that the origin server does not have a representation of the target resource that can be transferred by the server over HTTP. However, the Location field value refers to a resource that is descriptive of the target resource, such that making a retrieval request on that other resource might result in a representation that is useful to...
 
@LeviMorrison Why are you still awake? :)
 
@bwoebi can confirm, bug fixed
 
@Ja͢ck It's really hot right now (or maybe it's because I'm sick)
 
Speaking of people that should not be awake - I'm out.
E_NIGHT
 
@LeviMorrison What's the temperature over there?
 
6:39 AM
Probably like 76 F
 
@Charles Not 100%m clear to me if the url changes with a 303.
 
@FlorianMargaine it should have a console window, it could benefit from a file browser, but most of all, it should render the output as html, something you can't do on the command line ... how that is going to work is not going to be very easy to figure out ...
 
@LeviMorrison or email. You probably don't want to deal with email yourself either.
 
nn @Charles
 
@JoeWatkins hm, the output seems to be mostly markdown, doesn't it?
 
6:40 AM
@LeviMorrison hmm yeah, that's on the warm side ... it's typically around 26/27 at night
 
huh ?
no, it's not markdown, just text ...
 
for the help, that is
 
@Ja͢ck It's cooler outside, but with the windows open that doesn't seem to be enough :(
But I wouldn't say 76 is hot, yet I'm sweating.
 
Moar fans
 
oh yeah, well that's our own strange format, probably won't look bad rendered as markdown
I was actually talking about output from the script
(what is normally html)
 
6:42 AM
yup
 
/me not sure if question is answered
 
not sure either
but for now, let's say it is
 
okay
 
-><- I cat setup a redirect in my domain configuration when I buy it... too bad they just put an iframe on it with the 'original' website in it.
 

« first day (1453 days earlier)      last day (3511 days later) »