« first day (1454 days earlier)      last day (3510 days later) » 

6:00 PM
I think my professor might suspend me if i did that
 
@FlorianMargaine is there no sax parser for javascript already?
 
Not in those words, obviously
 
@DaveRandom Well somebody needs to educate people when their educational system failed
 
and isn't get bad since you can modify inputs from the url?
 
@PeeHaa Granted, but I'd argue that it would be far better to do what you were asked, and then do what should be done.
 
6:01 PM
especially if you have a form that validates input fields
 
You can deny request if it contains image/* in Accept (probable CSRF exploit)...
 
@DaveRandom When is "then"? When you start somewhere as a junior? :P
 
@Hellovart GET is not "bad", the problem is that it implies a simple retrieval of data from the server. If a GET request makes a change on the server, that's bad
Or, well, at the very least it's bad semantics
@PeeHaa No I basically mean submit the assignment twice :-P You know like you do with really stupid clients - "Here's what you asked for, and here's what you actually wanted"
 
@Hellovart Never rely on client-side validation for anything. It's useful for usability, not security. Do any validation you need server-side as it's possible for a client to send anything they like, regardless of whether you provide them a form or a link.
 
What is Reflector::export() for? It is undocumented.
 
6:04 PM
I'd probably say that what you really want in a modern web app for this operation is an ajax-based approach or something, a whole page reload just to delete a single record from something is sucky
 
@DaveRandom Submitting twice? Dude he's in school. He should totally submit it only once and start drinking and smoking pot
 
good to know.
 
:D
 
drugs aren't cool man
 
Sure they are
Totally cool
 
6:06 PM
Ehm... they aren't cool.
 
@LeviMorrison Nothing particularly useful, IIRC
 
Trust me on this one. I have studied for it
 
@DanLugg Right, but I need to implement it so... what should it do?
 
@Hellovart Im with PeeHaa on this. We should be efficient, not double work...
 
@Pheagey Oh I was only planning on submitting once
already have a crap ton of other course assignments to do
 
6:07 PM
@LeviMorrison Actually... that's, kinda confusing.
It's implemented... statically?
 
@LeviMorrison Weird, reading the src I am none the wiser. var_export() maybe?
 
No, it's a static interface method, which is fucky ReflectionClass::export
 
@LeviMorrison ReflectionFunction::export('strpos') and friends...
 
@Hellovart teenagers all do drugs, and they seem pretty on the ball ...
 
@JoeWatkins Then I'm going to heaven aren't I?
 
6:09 PM
Drugs aren't cool --- they're insanely cool
 
Let's not even joke about drugs being cool, okay?
/conversation
 
:P
 
anyway, drugs kills brain cells, and I need to be smarts
 
Serious Levi is serious.
 
Serious Levi is serious.
 
6:11 PM
Serious Levi is serious.
 
Also: I was not really joking ;-)
 
C-C-COMBO BREAKER @PeeHaa
Drugs are so cool, most PHP developers are on them!
 
@AndreaFaulds :)
 
they would have to be considering scripting languages are painful to use
 
6:12 PM
assembly on the other hand ... easy ...
@LeviMorrison look at it like this ... nobody is really getting their view of the social and social economic impact of the drug trade from room 11 regulars ...
 
Narcotic consumption is dangerous, but I found experimentation to be enlightening, if not discouraging of their usage -- however, I wouldn't recommend that approach to most anyone.
 
drug use correlated with PHP abuse - cause or effect?
 
See Also: Ballmer Peak
 
@PaulCrovella POTATO!
 
Lol
 
6:18 PM
@PaulCrovella Effect, I can confirm that
 
I ... don't remember ...
who are you ?
 
Who's hungry?
 
is that the answer to my question, or another question ? just so we are clear ...
 
Hungary /ˈhʌŋɡəri/ (Hungarian: Magyarország [ˈmɒɟɒrorsaːɡ] ( )) is a landlocked country in Central Europe. It is situated in the Carpathian Basin and is bordered by Slovakia to the north, Ukraine and Romania to the east, Serbia and Croatia to the south, Slovenia to the southwest and Austria to the west. The country's capital and largest city is Budapest. Hungary is a member of the European Union, NATO, the OECD, the Visegrád Group, and the Schengen Area. The official language is Hungarian, which is the most widely spoken non-Indo-European language in Europe. Following centuries of successiv...
 
Who's best to represent the opposite of the Ballmer Peak? The ___ Trough?
 
6:20 PM
@jwodder best is when they call C#, C hastag — jgr208 14 mins ago
 
@DanLugg har
 
I was just RT'd by someone with a real fancy job ... "Senior Lecturer in Computer Science" ...
 
@Kevin "Windows ME"
 
@KevinMGranger Lerdorf?
 
I feel like I earned ice cream ... so I'm going out for ice cream ... lata ...
 
6:23 PM
@DanLugg I was going to say that, but wasn't sure how that would go over... I'm a little new here :P
 
just had a burst of followers, weird
 
my bank followed me on twitter. that was pretty weird.
 
Airline website "Get to the airport at least 2 hours before your flight". Airline personel at bag check "We can't even take your bag until 1.5 hours before your flight". #wat
 
@ircmaxell heheh airlines gonna airline :P
 
airlines gonna airline... true true...
 
6:32 PM
if anyone remembers my question. I reverted to using inline javascript to have the href submit the form. however I'm experiencing a problem where the hidden field always contains the id of the first row
I would paste the code here except i'd be flagged for plajorism when i submit the assignment
 
@ircmaxell you sent me a link.. i don't get it
 
@Hellovart the solution is MOAR JAVASCRIPT
 
...
 
uhhhh?
 
@PaulCrovella Javascript == Violence?
 
6:34 PM
@JoeSaad I did?
 
yes!
 
/me is not aware of what he did 30 minutes ago, yet alone earlier
 
^ Speaking of drug use
 
nah, I'm in London, not Amsterdam
well, for another 1.5 hours
then I'll be somewhere else
 
So... in php_reflection.c I see this return_value variable that is, as far as I can tell, never initialized or declared anywhere.
It's just used all over.
 
6:36 PM
@LeviMorrison it's declared by PHP_FUNCTION
 
Sigh... okay. That's horrible, but at least I know.
It's of type zval?
 
#define INTERNAL_FUNCTION_PARAMETERS int ht, zval *return_value, zval **return_value_ptr, zval *this_ptr, int return_value_used TSRMLS_DC
so yes
well, *zval
ok, I'm going to go try to get to my gate... cya later
 
does $_POST['name'] get the VALUE of any element that corresponds to the given name?
i say this because i want to set the value for a href link
 
@Hellovart an href link will not be a POST request
 
okay, thanks
i just figured that out
 
6:47 PM
You could get a little hackish if you want and check out stackoverflow.com/questions/3915917/…
 
eh, it isn't that big of a deal, I can just use a hidden field
anyone know how to make an a href link submit a form instead of using a submit button and have it yield the same results?
i've tried using the method of onclick inline javascript to use .submit() but the inputs are messed up
 
@LeviMorrison yeah, there is a bunch of this kind of variables in macros. Makes it hard to refactor
Well, harder than it should be, at least
 
7:19 PM
Hmm. I want to make a private property for ReflectionType called name so when you var_dump it you see the type name.
But I'm getting:
Fatal error: Cannot access private property ReflectionType::$name
 
check out DomElement, because it does trickery like that
 
And there error is on my 'constructor'.
I guess I just need to update the HashTable entry on the object, right?
 
I don't know
 
Aside from this I'm mostly done, I think.
 
I've always just done private properties outside of reflection
 
7:25 PM
What do you mean by that?
 
anyone up for some erlang porn?
 
@LeviMorrison Unless there is compelling reason to do otherwise, please use get_debug_info instead
 
@NikiC I have no idea what you just said ^^
 
@LeviMorrison There's a get_debug_info object handler that does exactly what you want.
 
@NikiC Okay... can you point me somewhere that uses it so I can see an example? Nothing in Reflection appears to use it yet.
 
7:32 PM
@LeviMorrison lxr.php.net/xref/PHP_TRUNK/ext/gmp/gmp.c#gmp_get_debug_info <-- Here's a nice one with not so much FUD as SPL
 
I'll be honest: I'm not sure how to use that in context of Reflection because it's goofy
 
well, you don't use it for reflection (to refelection, the property doesn't exist)
 
The zend_object handlers are const, so I can't just update it for JUST ReflectionType in the constructor/factory for it
 
:-)
 
@ircmaxell What I mean is that the definitions for all of the Reflection* classes are goofy.
 
7:38 PM
yeah, I realized that and smiled :-)
 
It appears I'll have to do something like:
zend_std_obj_handlers = zend_get_std_object_handlers();
memcpy(&reflection_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
reflection_object_handlers.offset = XtOffsetOf(reflection_object, zo);
reflection_object_handlers.free_obj = reflection_free_objects_storage;
reflection_object_handlers.clone_obj = NULL;
reflection_object_handlers.write_property = _reflection_write_property;
Wait, nevermind. That would do it for all reflection classes
Bleh, I have no idea what I'm doing.
I'll just leave it as a note in the commit and push it up.
 
@LeviMorrison ah well, that's an entirely different question ^^
 
All my latest work is pushed and can be see through the PR
 
it looks very rebased :)
 
Very ^^
 
7:50 PM
wouldn't it be better to split in 2 commits, one for tests, and another for real code?
 
@FlorianMargaine no
 
there are a lot of tests in this one
 
Return types?
user image
3
 
@FlorianMargaine 45 and I know I need at least 1 more ^^
 
The next two flights out of my airport depart at the same time. They are also the last 2 flights. With none between now and then... I find that odd
(21:30 flight, and its 20:55 now)
 
7:56 PM
@ircmaxell nothing weird I think
 
An airport with no flights for 30 minutes? Not weird at a modern airport? :-P
 
at 9pm there is almost no flight anymore
 
Come to the US... Last flights aren't until 10:30 or 11. Or later.
Or NY rather
 
you're not in the US :P
which is why I tell you there's nothing weird imho :D
 
@ircmaxell it's mainly because of noise-regulations
flights after 9PM start paying some pretty aggressive taxes
 
8:04 PM
Fun release names are fun github.com/theodorejb/PolyCast/releases @AndreaFaulds
 
user895378
@Ocramius interesting.
 
Still weird
 
Nah, quite normal: people wanna sleep
 
No matter what you people say :-P
 
user895378
Then those people should rent/buy a home that isn't next to the airport.
 
8:06 PM
Yup, exactly
 
user895378
And the market should accommodate for the negative of being near the airport.
 
I'm ~50Km away from the FRA airport, and a quite loud plane passes by every 15 minutes here
I'd assume an altitude of ~3KM, which is quite low
 
I lived 800 meters from a small airport with a medivac growing up
And 3km is high
 
I don't give a damn, because I can sleep even in a refinery, but some folks are annoyed by noise and can't sleep. The damage induced by sleep deprivation for a lot of folks is much higher than the tax paid by airlines
 
:-P
 
user895378
8:08 PM
Well, this is the fundamental disagreement you find between US and European policies in general.
 
user895378
The few people affected by the flight path don't want noise.
 
user895378
So it's regulated.
 
take a population of 1000 people and assume 1% light sleepers, you got 10 people losing hours of work the next day already ;-)
 
user895378
Thereby creating an inefficiency for everyone else because flight schedules are screwed.
 
@ircmaxell well, the plane that just passed by was quite loud, eh
these are not cessna :P
 
user895378
8:09 PM
I usually find myself in favor of the policies that are most efficient for the largest number of people.
 
@rdlowrey no, it's still few folks flying compared to those living below their flight route :P
 
user895378
But then I'm a dirty capitalist pig :)
 
FRA has ~3M inhabitants in the area nearby the airport afaik
 
user895378
Yes, but now it's more difficult to fly to that area. This means fewer tourists. Which means an additional economic impact.
 
nah, they can increase daytime traffic
 
user895378
8:11 PM
I'm just saying, many/most political decisions on things like that are made in a vacuum and are ignorant to the inevitable consequences that cascade down.
 
or they can just compensate with a higher cost ticket and cope with the taxes
 
user895378
I obviously don't care if airlines make a little less money :)
 
^ that too ^
:D
 
About to go wheels up :-), see you there!
 
user895378
fly safe!
 
8:13 PM
@rdlowrey 95% of the houses under that flight path were there before the airport existed...pretty fair to penalise the airlines that wanted an airport that close to a major population centre.
 
safe travels
 
user895378
@Danack Understandable. Still, though, "fair" is kind of a dirty word as far as I'm concerned.
 
user895378
The "F" word most responsible for terrible consequences throughout human history is "fair."
 
Not fuckwittery?
 
user895378
Fuckwittery was a close second when the senate of my mind voted on this important issue.
 
8:16 PM
btw:
I think we're close to finalizing comments on PSR-7 (HTTP messages); comment now or hold your peace! http://bit.ly/1v3eJf4 #php
is becoming a HTTP3 situation....basing the new 'standard' on what existing projects are doing.
 
@rdlowrey Exactly how I feel about "deserve" - same sentiment.
 
user895378
@Danack that whole thing is fucked. speaking of fuckwittery
 
user895378
My comment: it shouldn't happen and it serves no purpose and none of my code will bother with it.
 
@rdlowrey I'm not that optimistic....it's one of those situations where having a standard is possibly worse than having no standard. Once community based projects are re-written to use PSR-7, they're just never going to be able to move away from it.
 
user895378
It's stupid and it devalues PSRs.
 
8:20 PM
I think most of this 'interop' crap is pretty pointless.
 
@Danack isn't that precisely what the FIG does? (base new "standards" on existing projects)
 
Let's be real: how many people actually use multiple frameworks on the same project?
Also, how many people switch from one framework to another after launch?
 
Zero.
 
user895378
The only thing it's good for is enforcing a standard level of mediocrity on everyone.
 
Their PSR-7 is more complex than whole programs I've written, and their definitions don't actually do anything.
 
8:22 PM
We should make… "PIG: PHP Interoperability Group"
 
@salathe NO. NO, absolutely not, no....no....yes?
> "Having mutable and immutable messages would add a significant amount of
complexity to a HTTP message PSR and would not reflect what is currently being
used by a majority of PHP projects."
/le sigh
 
and a meta IGIG: Interoperability Groups Interoperability Group
2
 
@salathe Careful, PIG would be a slippery slope thing. Although you could encourage membership with bacon...
 
@Machavity a slippery slope, because of the bacon fat?
 
PIGs are slippery in general
 
8:24 PM
For purposes of "interoperability" the HTTP messages should be immutable. Messages across any major boundary should be immutable.
Of course immutability "would not reflect what is currently being
used by a majority of PHP projects", that's because they aren't designed for interoperability.
They are designed to what they need to do in that project ^^
 
And I think the PHP Internals Group would be insulted in some fashion. "How dare they steal our PIG?!"
 
Daniel and I made a brief appearance at the first of the PSR-7 talk, but it was clear our talks were not helping at all.
So to save our sanity we quit ^^
 
there's a PHP Internals Group?!
 
user895378
PSR-7 is the reddit of PSRs: it serves no purpose and it's really just a bunch of people who don't know what they're talking about.
3
 
Well, I guess they call it a list rather than a group (probably because they don't want to be called groupies)
 
8:29 PM
anyone know why the include("page.php") won't change the URL in the address bar?
 
@Hellovart Because you called another PHP file that simply included that file?
 
PSR is Proposed Standards Recommendation right? What the hell does that even mean...
 
@Machavity is there no way to invoke page.php without having an link that the user has to press?
 
Except for the streamable stuff, which is really low-level and doesn't need a baseline IMO, this proposal is quite decent tbh
 
@Hellovart you can do an HTTP redirect or an HTML redirect or do it in javascript.
 
8:32 PM
so there is no PHP method to do it?
 
@Hellovart I suppose you could make it part of the query string and include it that way. But that would be silly. And by silly I mean incomparably stupid
 
Really,i don't want to include anything I just want it to automatically go to another php page when I tell it to
 
> ☑ Yes, I wouldn't not like to exclude prevention for the installer from not excluding 871 browser toolbars
 
If you've sent headers you can't call header to do a redirect. But JS or meta tags work fine
 
when you say javascript are you referring to window.location?
 
8:36 PM
@DanLugg E_TOO_MANY_NEGATIVES
 
or is there a better way
 
@DanLugg I'm not sure that I did not understand that.
 
@Hellovart It's JS, I'm sure there's 500 ways to do it, each slightly different.
 
These are the situations where I thank goodness for VMs and just click
 
@rdlowrey Wait, I thought that PSR-7 was dead in the water?
 
8:37 PM
I'm not unsure that I didn't not misunderstand that.
 
If you get shot and fall into the fountain of eternal life, are you still "dead in the water"?
 
Only if you die before the fountain takes effect.
 
Doesn't the fountain resurrect you?
What if you get shot in the head while sitting in the fountain?
 
ironically the pump driving the fountain died out years ago
 
What if you get shot with a bullet made of water from the fountain of eternal life?
 
user895378
8:41 PM
@Charles I thought so too, but who knows (or in my case, cares)?
 
How do you make a bullet out of water?
And don't say ice...
 
well, I found a javascript method to redirect url but it is x100 slower than include()
 
@KevinMGranger If it's fast enough anything is a bullet
3
 
Hey that's one for you. If you're frozen in ice made from the water from the fountain of eternal life, would your body still shut down?
 
@KevinMGranger And that sir, is the answer to cryogenics.
 
8:42 PM
@Hellovart because you're making a whole new HTTP request, and dealing with all that it entails
 
Actually the dynamics of fast projectiles and the dynamics of fluids are about the same
 
@NikiC even my hopes and dreams?…
 
then I think someone should make a convenient method of doing that but faster in PHP
 
@NikiC MIND BULLETS!!!!
 
@Hellovart there is literally no way to do that if you've already sent all of the page data.
 
8:43 PM
@salathe your dreams involve fast fluids?
 
@Leigh yours don't?
 
@LeviMorrison That's telekinesis, Kyle
 
what happens to a dream deferred? Does it shrivel up, like a raisin in the sun?
Or does it fly fast and true into the hearts of your adversaries and *explode?*
 
@Hellovart PHP is all executed server side. It has no direct interaction with the browser whatsoever. It spits out data, most often in the form of some html and an http header or two. That data can influence browser behavior, but PHP has no direct connection to it at all.
 
I'm pretty sure that's how that poem goes
 
8:44 PM
@bwoebi successfully parsing xml ^
 
@PaulCrovella thanks for telling me that
 
@PaulCrovella not always
I haven't written any "server side PHP" for like, 3 months.
 
@Leigh in that case, your local php interpreter is the server, and your console is the client.
 
le sigh
 
...kinda
 
8:47 PM
@KevinMGranger Not always.
wxPHP stands for "wxWidgets for PHP" and is a PHP extension that wraps the wxWidgets library, which allows to write multi-platform desktop applications that make use of the native graphical components available to the different platforms. It supports the three major operating systems: Windows, Linux and Mac OS X by using the PHP language. Applications are written in PHP language, and since it is an interpreted language, it does not require an intermediate compilation step in order to run the application, provided the PHP interpreter has the extension available. == History == Near 2003 a group of...
 
@bwoebi and.. you have nested elements :P <intros>
 
that's like saying your CPU is the server and your screen is the client... so everything is server side.
 
@Leigh well, that's true isn't it? :P
it serves bits from one thing to another...
 
@DanLugg don't forget the OpenGL extension
 
@Leigh Is there?
 
8:48 PM
there is :)
 
Interesting.
I always thought it'd be neat to write an IDE/editor with PHP-Parser + PHP-GTK/wxPHP
 
did you mean slow?
 
The plan is to use it at: globalgamejam.org
 
writing it: 1 year of work. booting it: 3 years and a data-center.
 
@DanLugg have fun with that. throw in an ncurses interface while you're at it.
 
user895378
8:50 PM
F php-gtk. Browser is the only GUI you need.
 
@rdlowrey No, because JS is fuck.
 
so.... php-js?
 
user895378
@DanLugg
 
user895378
it's true.
 
Rather, DOM is fuck.
 
8:50 PM
 
@Leigh MY EYES!
 
If it were easier to do RTF ground-up in-browser (because NIH) then I'd go that route.
 
You might think it's pure evil, but the guy who wrote it is one of my colleagues, and he's borderline genius
 
But honestly, I'd like to play with wxPHP
 
@Leigh yeah, an evil genius.
 
8:53 PM
check out his other project, x86 emulator in the browser: jemul8.com
 
I don't trust anybody who is that good at javascript.
17
 
copy.sh/v86 i like @copy's better
 
@Leigh \o/ bas files
 
@Leigh well, I write horror as well, so I get that :P
 
doesn't matter which is better, I'm just impresed by the functionality
 
8:57 PM
Yeah, writing a CPU emulator is impressive, end of story
 
@Leigh I know, I just had to advertise his :P
 
(@copy is a regular in the js room)
 
DID SOMEBODY SAY JAVASCRIPT?!
 
Jabbascript, mothafucka!
 

« first day (1454 days earlier)      last day (3510 days later) »