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

3:00 PM
@PeeHaa I consider myself not totally insane. (err, well, sometimes, hehe...) but legacy things often have completely different configs etc..
 
There is really no excuse for hardcoded paths though ;-)
 
no. But I didn't write that code…
 
@bwoebi you've been in technology long enough, you're definitely insane
there are only two types of people in technology, those that are new, and those that are nuts...
10
(and I've been doing it for a while)
 
@bwoebi it happens. With proper SOLID principles, most of your code shouldn't care about where stuff lives.
 
@ircmaxell well put.
 
3:03 PM
:-D
 
@KevinMGranger What does solid have to do with placing code?
 
@ircmaxell but there are still different levels of insanity. I usually have a sane (well, yea) architecture and insane ideas how to achieve it :-)
 
@PaulCrovella Indeed. Follow up bonus question. Said application is a REST interface. Using BDD style testing, recommended CI service?
 
that's better than those who create insane, unmaintainable architectures…
 
@bwoebi I always start a project that way. What does that make me? :P
 
3:05 PM
@bwoebi sane people can create really insane things. The key isn't the persons sanity, but their dicipline
 
user895378
Everything I write is insane. It's only through constant, iterative review and refactoring that it becomes sane.
 
@ircmaxell yep, my point. the thing is just how they do it. And the foundations of insane things should be written in a sane way.
 
and yes, there are definitely different levels of insanity
 
@rdlowrey So much that
 
@rdlowrey code is sane, idea remains insane :-P
 
Quick question: would you ever think of catching real segfaults because wrong data and then let the application continue as if nothing went wrong?
 
@Pheagey can't help you there, I never dove into anything bdd-specific. Travis-CI seems to be all the hotness these days though.
 
@ircmaxell so ... some people are still trolls, right ?
 
@bwoebi no
 
@bwoebi no
 
3:09 PM
@bwoebi no
 
good morning
 
so, that's why I'm insane.
doing things nobody would do in code.
 
@PaulCrovella k, ty. I'll look into it. iirc this BDD application can generate some unit tests. But will have to see how good they are.
 
oh for fuck sake
how politically incorrect is that
 
sigh
 
3:11 PM
@FlorianMargaine trolls gonna troll
 
@FlorianMargaine That is not alllowed on github because all right reserved
 
since when does github require open source code only?
 
it doesn't
 
Since always unless you have a paid account
 
3:13 PM
If you put anything on THE INTERNET you should have rights to publish it or prepare to be blamed
 
@PeeHaa That's just for private repos. Gtihub does not require public repos to be made available under an open source license.
 
I'm pretty sure that's allowed? choosealicense.com/no-license
 
(misread)
 
Using <?php mkdir('http://site.com/images/misc/', 0775); ?>
Can you create a new directory from website A to website B?
I tested this out and it didn't work to no surprise as I see major security risks there, but was wondering if it is in fact possible.
 
3:14 PM
@PaulCrovella I'm fairly certain I have read it when I signed up
 
how are you going to keep code closed source while storing it in a public repository ?? you have to pay for private repos ... seems obvious that public repos should be for open source code because of common sense, regardless of terms from github or anywhere else ...
 
@KevinMGranger Interesting, so anyone can fork...
 
@JoeWatkins public source doesn't mean open source if the license doesn't allow it
 
thecodinglove.com is fun... but it also kinda disgusts me, it's like 9GAG for programmers
 
3:19 PM
Open source (as in you can see the source) and Open Source (as in OSI approved) are not necessarily the same. And people complain about Free Software...
 
@PaulCrovella hmmm
 
OSS and FLOSS are different, know ur acronyms!!
 
@AndreaFaulds yeah, it's chock full of ads.
 
OK, new room 11 rule: you can link to thecodinglove gifs, but only if you hotlink the gif to steal the site's revenue.
 
@AndreaFaulds Uhhhhmmm adblock?
 
3:20 PM
@Joe How is your course cming?
 
i read that as "the coding glove" for some reason
 
@PeeHaa This also stops FB tracking you!
 
@AndreaFaulds So does ghostery ;)
 
@Fabien pretty good, nothing due for a month though ... pretty slow paced because part time ...
 
3:21 PM
@PaulCrovella It's not actually the same pronunciation
'ing' is a different sound to 'n' 'g'
 
@AndreaFaulds depends on how you slur it
 
'the codin glove' and 'the coding love' are different
 
@ircmaxell en.reddit.com/r/PHP/comments/2iqmjy/… I tried to engage him, I dunno what that is ... trying desperately to believe he's being passionate and trying to tell me something ... it's not working ...
 
@KevinMGranger No, it's never the same.
 
@AndreaFaulds I know, it's just how my head picks apart "thecodinglove" at first glance
 
3:23 PM
At least in standard British and American English, -ng is /ŋ/ while n, g is /ng/
@PaulCrovella Ah :)
 
american here. thanks though :)
 
(I'm studying linguistics... :p)
 
@JoeWatkins su joewatkins && echo "127.0.0.1 en.reddit.com" >> /etc/hosts
 
oh? I worked with a lady who studied theoretical linguistics. I never could entirely wrap my head around what that meant.
 
I've actually done that again....can still visit in on my phone......but it's never a positive place to be.
 
3:25 PM
Ugh, reddit.
It has some wonderful little communities. Like /r/polandball or /r/vexillology
But most of the site is horrible. And anonymity and the site's voting system brings out the worst in people
Every single default subreddit is a cesspit of misogyny and blatant racism
People are incredibly argumentative even in smaller communities
/r/PHP is awful
etc.
 
user895378
@AndreaFaulds Exactly.
 
user895378
Reddit is just The Worst™
 
4chan is actually superior in some aspects
It's a cesspit, but it doesn't try to pretend it's not
 
I don't pay much attention to reddit "communities" ... just flip through a few subreddits, or /r/all every now and then, to catch some headlines and the occasional funny repost
 
@ircmaxell Nope. Doctor is unsure. It doesn't carry any other concerning symptoms, for now we'll just watch it.
 
3:28 PM
@PaulCrovella .......and then it's 4am.
 
it's always 4am when you're unemployed with insomnia
 
@JoeWatkins don't kill yourself. that's not what I was trying to imply :-)
@JoeWatkins and yes, some are just trolls... But try to treat them well
@LeviMorrison well, good luck :-/
 
@AndreaFaulds If I say them out loud, they sounds the same to me. Maybe my pronunciation isn't proper, but I do what I want.
 
@KevinMGranger They would sound the same to you, yes, but you wouldn't actually make the same sound
Well...
 
They sound the same but aren't the same sound?
 
3:38 PM
do codin glove and coding love sound the same to you?
 
Only when slurred in the right way.
 
@AndreaFaulds Codeine Glove? I'd wear one of those.
 
@DanLugg :p
 
I bet that's what the rhinestones were on MJ's attire!
O. M. G. Mystery solved.
 
@KevinMGranger Right, they're not normally pronounced the same. If you slip up, you might say them the same, but usually they aren't.
ng isn't an "n" and a "g", weirdly enough.
 
3:40 PM
@AndreaFaulds or if I do it deliberately incorrectly for the sake of humor...
 
It all makes sense.
 
@DaveRandom Oh btw, master introduced zend_long zval_get_long(zval *) :)
 
@Ja͢ck wat
 
@AndreaFaulds hmm?
 
That's just Z_LVAL_P, no? Or does it use convert_to_long?
Er, get_long_func
 
3:43 PM
@AndreaFaulds The latter, sort of.
 
When dealing with a callable that's an array, if I were to list() it as list($a, $b) = $c, what would be an appropriate name for $a, given that it can be either a string or an object for static and instance context respectively? $context?
 
Eases those issues with string arguments that end up as long :)
 
$scope? $binding?
 
@Ja͢ck I know, just needs backporting. New stuff isn't really an ABI break...
 
3:45 PM
@ircmaxell I think I was nice ...
 
I would go with context; sounds about right :)
@DaveRandom Yeah, only master gets the shiny stuff :)
 
@DanLugg scope sounds nice
 
@Ja͢ck zend_string too...
 
@DaveRandom Not really. You should just stop writing code for PHP 5.6...
 
lol
 
3:46 PM
1 Context 1 Scope 0 Binding
 
only fix bugs for 5.6
 
@rdlowrey You ever crawl google?
 
EOL All The Things!
 
@Ja͢ck Yes :)
 
user895378
@Fabien It has been awhile. Why?
 
3:47 PM
sad thing: php 5.4 will be EOL in a year ._.
 
Results differ between artax and browser. Tried with headers copied from browser :(
 
Differ in a good way?
 
There's no good or bad but I want the browser ones.
 
@FlorianMargaine good thing: PHP 5.4 will be EOL in a year -- FORGE AHEAD MIGHTY WEB WARRIORS! CLEAR A PATH!
 
@DanLugg good for php core devs, not so good for everyone else
seriously, php 5.4 LTS will be really short
 
3:49 PM
@FlorianMargaine Legacy schmegacy. If I give a shit that OpenCart 1.1 doesn't work anymore, then my priorities are mismatched.
 
5.4? Pff! Now that master is passing all tests, time to think about PHP 8 :D
 
(lol, and here I thought it would've at least been a >=2.0 release)
 
drupal 8, currently in beta, supports down to php 5.4
 
I was actually moving to PHP-JAVA
isn't it a thing?
 
PHP on .NET is (VMs, VMs everywhere)
 
3:51 PM
There's a php-java bridge I believe
 
PHPBananas
 
That should be our versioning; each version is named after a fruit with more potassium than the last.
 
And there's Quercus to compile PHP into Java VM :D
 
@DanLugg so each time someone complains about being stuck on an old version, the response is more and more "...K."
 
@KevinMGranger Yes. Yes it is.
Or we could just say "Eat a banana" as a euphemism for "Fuck off and upgrade"
2
 
3:56 PM
does anyone use youtrack in a team development setting? i have some questions about it, if so :)
 
@JoeWatkins you were
and I especially like this line: The purpose of the post is to introduce people to the idea that maybe the next thing for Zend doesn't have to be JIT, it's worth pursuing other optimizations that do not result in extreme complexity, but actually make things simpler.
 
can we pass arrays as reference without making a variable first in master?
 
@FlorianMargaine not sure I understand the question
 
4:03 PM
@AndreaFaulds I think the if also needs to use dval_to_lval
 
On mobile right now... But function too(&$foo){} foo([1, 2]); gives an error, does it still in php7?
 
or not?
 
@NikiC I was thinking that too... but does it?
Think about it. The problem values will still break.
 
@FlorianMargaine yes. or at least it should
 
4:04 PM
I don't particularly care what value it produces, so long as it's something crazy which won't match up, right?
 
@AndreaFaulds hm, maybe it'll work
 
posted on October 09, 2014 by kbironneau

/* by CarlosMamasu */

 
@AndreaFaulds but then, does the actual conversion have to use dval_to_lval?
 
@NikiC For example, say it doesn't wrap, but saturates, on some given platform. It'll still not match up. In this case we aren't concerned about the value at all, only that it matches.
 
can't that use (zend_long) as well?
 
4:06 PM
@NikiC ...no, it probably doesn't need to here, since we just proved the conversion is safe :D
Hmm...
 
@AndreaFaulds my concern is that we want to avoid any discrepancies due to differences between dval_to_lval and (zend_long). so it should both either be dval_to_lval or both (zend_long) imho
or ideally you'd do the to-double conversion just once and stick it in a variable :)
 
@NikiC zend_dval_to_lval does just do (zend_long) here when the cast is safe (not INF, NAN, -INF, or out of range)
So using it here is redundant.
 
@AndreaFaulds not on all platforms
 
@NikiC No, on all platforms.
When it's out of range, we sometimes use a special conversion algo.
But I said when we're not out of range :)
 
ah okay
 
4:15 PM
To check I wasn't wrong, I'll start up my 32-bit Ubuntu VM and see if it still works...
 
@AndreaFaulds github.com/theodorejb/PolyCast/commit/… This feels much more consistent now, I think.
 
yeah
Wait, that isnan check in my code is redundant now. Lemme get rid of it... done.
 
holy shit
that question
 
4:38 PM
http://stackoverflow.com/questions/26283339/can-html5-localstorage‌​-stored-data-be-accessed-in-different-tab-of-a-browser?noredirect=1
 
@obiNullPoiиteяkenobi there's no need to delete questions that are already downvoted or closed - they will get cleaned up automatically. Deleting is only appropriate for offensive stuff.
 
@TheodoreBrown it did? that was a bug
I think
I'm not actually sure... that might've been intentional.
 
@Danack i never run out of delete vote
 
@AndreaFaulds It's in the conversion rules table: wiki.php.net/rfc/scalar_type_hinting_with_cast
 
@TheodoreBrown Hmm...
@TheodoreBrown The conversion table was wrong.
 
4:44 PM
@AndreaFaulds :) +1 to a simpler approach.
 
It's probably not the only place in the table that was incorrect
 
@AndreaFaulds Hopefully a giant table can be avoided in the next RFC...
Better to just describe the behavior and then give examples of each function, IMO.
 
I'd like to make a table to make things clear
but base it on actual test results
 
@AndreaFaulds Yeah
 
make a test that generates the table
 
4:49 PM
@FlorianMargaine Right.
Settled an argument this afternoon using PHP’s support for whisky time: https://github.com/php/php-src/blob/master/ext/date/tests/strtotime_variation_scottish.phpt /cc @derickr @scottmac
PHP supports fucking whisky time. Awesome.
 
I kinda want "back of 7" to come out as "07:15:ish" though
 
@bwoebi simple check: phpdbg xml never has children right?
if that's so, writing an xml parser shouldn't be very hard
I mean it's not like I'm writing a parser for all the html pages out there
 
5:12 PM
@ircmaxell I fitted it into a tweet ...
the next thing for Zend doesn't have to be JIT, pursue optimizations that do not result in extreme complexity, but make things simpler. #php
 
Will I be killed for this?
Ugly hacks today, as per my tradition: http://3v4l.org/aB4ll #php #proxies
 
Official statement: PHP does not make any backwards compatibility guarantees for code written by @Ocramius.
23
 
@NikiC bwahaha
I'm actually considering it for the next version of the d2 proxies, as it reduces stack traces complexity by a lot
 
5:27 PM
I don't even
 
basically, proxies disappear :P
and also, I can now skip all the code introspection stuff to find out which method uses which property... should be a win <_<
 
o.O
I hate you, Germany:
 
Question:
I have a php file that echos all rows using mysqli in a table format. I also have a delete a href link on the very last column of all rows. I have it so when the delete linked is clicked it goes to delete.php.

How do I remember what row the clicked delete link belongs to because I want to delete it from the table from the delete.php file
 
@Hellovart Add the id of the record
Also add a csrf token while you are it please
 
5:36 PM
What do you mean id of the record? I have a column called id
 
Also change it to a form instead so you can do a proper post instead
@Hellovart Yeah that one.
 
so I need to put all my code into a form?
 
Only the thing that deletes
 
ok but how would I know what id belongs to the corresponding delete link
 
Because you add the id to a hidden input field in the form
 
5:39 PM
that makes a lot of sense, thanks
 
yw
 
so form doesn't need to have an action right?
 
how does the form know where to do the POST request if there's no action?
 
@Hellovart I think in html5 it doesn't. Not sure about that though
 
@FlorianMargaine then how am I supposed to implement the link
 
5:45 PM
If it doesn't have an action it'll submit to the current url. If you want it to submit to a different url, like delete.php, point it there action="delete.php"
 
@PaulCrovella but the thing is, I want the a href link to act as the submit button
would I have to make changes to a href?
 
@Hellovart There is no href
It's a form
Submit it with well... a submit button
 
I can't to do that. It needs to be a href link
 
@Hellovart I bet you it doesn't
 
No, it really does. It is the requirement for the assignment
 
5:50 PM
@Hellovart oof, that's rough
 
tell me about it
 
@Hellovart The requirement sucks
 
isn't there some way to make the href trigger the action?
 
Why the hell is that a requirement?
 
Hi guys! Does somebody could tellme how can I download a proyect in a xampp server?
 
5:50 PM
Yes you can, but that would break fast
 
@DanLugg Strict professors. lol
 
Change schools.
 
@Hellovart you might want to clarify with them... I had a professor give us a requirement that was literally impossible due to the Same Origin Policy
They might just be mistaken
 
^^ Very much.
 
the web site is on my xampp server, but i dont know how to download it. Any idea?
 
5:52 PM
@KevinMGranger s/mistaken/stupid and out of touch with any real programming in the real world
 
xampp is not a server
 
@webarto I wasworking with php and xampp
so... any idea? :S
 
Err... guys, I'm not seeing what the issue is with @Hellovart's problem? It seems like it just needs an <a href="delete.php?id=$id"> type thing?
There's no requirement for a form or any of that complicated shit...
 
I've been prewashed, precooked, preheated, prescreened, preapproved, postdated, freeze dried, double wrapped, vacuum packed, and I have an unlimited broadband capacity.
 
I mean, it would suck to do it like that but it can easily be done
 
5:57 PM
@DaveRandom yes, that'll work. but it's wrong. GET requests should never modify data
 
@DaveRandom I'm trying to make it so the link triggers the form's submit
or action
I can also use javascript apparently
so if anyone has any suggestions
 
@DaveRandom CSRF ahoy!
 
Good afternoon, room.
 
@PaulCrovella ...and POST should not be considered idempotent and... yada yada yada. It's a simple project for a course of some kind, it's not like any teacher ever has adhered to best (or even good) practices...
 
Hey @LeviMorrison
 
5:58 PM
document.getElementById('form1').submit();
 
is it okay to put document.getElementById('form1').submit(); inside the onclick of the href?
 
@FlorianMargaine right.
 
@PeeHaa Referrer check :P
 
@Hellovart Just put it somewhere else and intercept it.
Inline JS is just bad news ^^
 
5:59 PM
@PeeHaa Yeh but... over-complication is over-complicating. Considering the audience I think that a simple GET will be fine for the assignment. You might even get bonus points for saying "I did what you asked, but this apporach sucks and here's why"
 

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