« first day (1475 days earlier)      last day (3472 days later) » 

12:22 PM
Hello, can someone help me?
 
@Chris We won't know untill you ask..
 
@JoeWatkins hehe, you just replied as I sent my mail… now we say two different things ;-D
 
@bwoebi seriously, lets just start again with a clean slate, we fucked up, we need to do it properly and the solution is going to look much different than it does now ...
 
my index.php <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<?php include_once '2.php';?>
</head>

<body>
Content of the document......ă
</body>

</html>
 
@JoeWatkins What do you mean with clean state?
 
12:25 PM
@DaveRandom we haz hoody - do you want to pickup or post?
 
@Naruto and 2.php <title>test</title>
 
we need to remove the remote stuff and web helper and everything that isn't necessary for 5.6, we should start again with remote stuff in the proper way so there is no point in keeping it in master either ... we need to start again
 
@Farkie Oh hey man I was planning to ping you in IRC later, can i just pick it up at phpnw next wk?
 
@JoeWatkins what's wrong with the webhelper?
 
how well tested is it ?
that's not really a question ...
 
12:26 PM
@JoeWatkins PHPStorm dev already implemented it… seems to work for them
 
Sure
:)
 
cool, catch you there :-)
 
@JoeWatkins I got bug reports about a lot of things, but not about the webhelper. not one.
 
@Chris your question?
 
@Jimbo typo in blog post... "instantiaging"
 
12:28 PM
@Naruto I do not add in the head but in body
 
@bwoebi it doesn't matter, they implemented it using what, their xml brach ?? which is now useless ??
 
@Jimbo how is job going?
 
@Chris you don't what in the what now? The title tag appears in the body?
 
@JoeWatkins It doesn't depend on XML. It's just the wait command. There just are maybe three things related to XML which all just inform you about success/failure
 
@KevinMGranger yes
 
12:31 PM
@JoeWatkins wait command doesn't have to do anything with it.
 
@Chris how do you know this? Are those the exact contents of the files, or did you retype from memory? Could you perhaps put the full ocntents of both files and the full html output in a gist?
 
Is there any reason why this couldn't work eval.in/212598 ?
 
@KevinMGranger example: md-tube.com/publicitate/1.php
 
@PeeHaa try it again, but on master branch…
 
@bwoebi No shit?
wow
 
12:32 PM
@Chris ooh, that is weird. Can you put the full content of those two files in a gist or pastebin or something?
 
noice
 
index.php <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<?php include_once '2.php';?>
</head>

<body>
Content of the document......ă
</body>

</html>
@KevinMGranger 2.php <title>test</title>
 
@Chris In a pastebin, not in the chat please
And you're sure that those are the exact contents? And that they're both in the same folder?
 
@KevinMGranger What is pastebin?, I'm new here
@KevinMGranger yes
@KevinMGranger files are encoded in utf-8
 
It's just to prevent polluting the chat feed with walls of text
 
12:38 PM
@DaveRandom If you trade in utf-8 without BOM work, but I want to stay utf-8
 
I don't see what your issue is, btw? The document at md-tube.com/publicitate/1.php appears as I would expect it to?
Although that ă appears to be an artefact of some flaky encoding conversions
And your included file has a BOM in it
 
@DaveRandom files are utf-8
 
I can see that, but both documents have a UTF-8 BOM in them
 
@Chris That pastbin should render what you have?
 
I can see them in my hex editor...
 
12:44 PM
@PeeHaa yes
 
So what is the problem? :P
 
@DaveRandom if you inspect the HTML, the <title> tag appears in the <body> instead of in <head>
 
@DaveRandom pastebin.com/6VCB4b4y I added the result
 
That's what I get
 
12:49 PM
When will php "7" be released?
I can't search...
 
@Chris @KevinMGranger what browsers are you guys using?
it renders exactly as ^^^ my pastebin in Chrome, FF and IE11
 
@DaveRandom google chrome and firefox
 
I don't have anything else I can readily test with
That's pretty weird
Do a ctrl + f5
or whatever the stupid chrome thing is
 
@DaveRandom Chrome 38 on GNU/Linux
 
maybe it's a cache problem
Maybe it's a linux problem
The double quotes are kinda weird as well though
 
12:51 PM
Happens in Firefox 33 too
 
I suspect the BOMs are screwing it up, putting a BOM in the middle of a document may confuse the rendering engine
 
Youtube now supports 60fps.
 
Weird it would show up like that in view source though
 
Wait wut? BOM? KILL IT WITH FIRE!
There is no reason to have it in there and lots of reasons to not have it in there
 
@PeeHaa "shartcar" doesn't sound like something I want
 
12:53 PM
:P
 
Never really understood why UTF-8 has a BOM sequence in the first place
 
@DaveRandom I always thought because microsoft is stupid, but I might be wrong
 
I don't think there's any part of UTF-8 where endianness is significant (?)
@PeeHaa Actually M$ aren't going to have had a part in this, they use ANSI All The Things, which is its own special kind of retarded but it doesn't affect UTF-8
 
fair enough
 
@DaveRandom don't they also UTF-16 SOME OF THE THINGS?
 
12:56 PM
Still... microsoft!
 
It's kind of UTF-16, only fucked around with a little bit so it's not quite compatible
 
Ah, that
 
Also they call them "wide characters" for some reason
 
:D
 
@DaveRandom 2 chars per character, that's wider than normal
Big-boned at least
 
12:58 PM
wideboy characters, innit
 
If you change the encoding to 2.PHP in utf-8 without bom is work
 
@KevinMGranger Yeh that's what pisses me off about UTF-16 as well, there's really nothing wrong with UTF-8
@Chris Change the encoding of every file you own to that
General advice
 
@DaveRandom UTF-32 is even almost understandable in some cases... just not 16.
 
/me designs UTF-64
 
@DaveRandom well how else are we going to fit all of these new emojis
 
1:00 PM
@DaveRandom how best utf-8 vs utf-8 Without BOM
 
There are cases where it would even make sense to have 1 code point per register. Not a lot of cases, but some. OK, a couple. OK, one. OK, none.
@Chris UTF-8 does not need a BOM, it does not make sense in the context of UTF-8, it does nothing but break things
hence:
7 mins ago, by DaveRandom
Never really understood why UTF-8 has a BOM sequence in the first place
 
Hello guys, can anyone tell me what's wrong with this query?
SELECT planID, naziv, opis, DATE_FORMAT(datum, "%d.%m.%Y"), op, namen, opomnik, (SELECT COUNT(*) FROM plan WHERE DATE(opomnikD) = CURDATE()) as opomnik_num) FROM plan WHERE status="0"
 
It has a nazi in it?
2
 
10 mins ago, by PeeHaa
There is no reason to have it in there and lots of reasons to not have it in there
 
@BikerJohn what error message do you get?
 
1:03 PM
@DaveRandom You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') FROM plan WHERE status="0" ORDER BY STR_TO_DATE(datum, "%Y-%d-%m") ASC, planID' at line 1
 
Oh yeh, you have too many closing braces
 
@DaveRandom Is otherwise query okay?
 
@PeeHaa and how can I remove that BOM?
 
Syntactically. Can't comment on whether it's a good thing to do without understanding more about what you are trying to do...
Ordering by STR_TO_DATE() doesn't sound like an awesome thing to do, why aren't the dates stored as dates?
 
@Chris File -> Save as -> UTF-8 (without BOM)
 
1:06 PM
@DaveRandom they are stored as dates
 
Sorry for triple pings :P
 
@BikerJohn Then just ORDER BY datum ASC
 
@DaveRandom okay, thank you
 
Also please for all that is sacred use english names @BikerJohn
 
^ also this
 
1:08 PM
@PeeHaa yes you are correct, i will change in production version
 
And try formatting your code as well, there's really no more reason to put all your SQL in one huge long line than there would be to do it with you PHP code
 
So your production will be different than dev / staging?
Sounds like fun
 
Makes it easier to spot errors like extra braces
That's not a question
 
user895378
morning
 
SELECT
    planID, naziv, opis, DATE_FORMAT(datum, "%d.%m.%Y"),
    op, namen, opomnik,
    (
        SELECT COUNT(*)
        FROM plan
        WHERE DATE(opomnikD) = CURDATE()
    ) as opomnik_num
FROM plan
WHERE status="0"
ORDER BY datum ASC, planID
 
1:10 PM
@PeeHaa what i was trying to say is that i will change to english table names later ;) this is just a demo version of something. different versions are not cool, i know that :)
 
Doesn't the read much more nicely?
 
@DaveRandom yes, definitely much better :)
 
(bool) "Will change that in production" == false
3
 
@SergeyTelshevsky true
 
:P
 
1:11 PM
@SergeyTelshevsky so it's false that it will not be changed in production? :P
Wait, that might have been what you menat
never mind, need more coffee
 
works like it should now, thanks guys for all the help :))
 
or even strtotime("Will change that in production"); // string(5) "never"
 
/me writes easter egg into timelib
bbiab
 
user895378
Oh, hello 90s Alternative Rock channel on the internet. Pardon me while I teleport back to my youth.
 
Morning @rdlowrey Are you free for a quick test/debug of a POST i am having issues with?
I doubt it's an artax issue but some advice wouldn't hurt.
 
user895378
1:17 PM
yeah sure.
 
user895378
@Fabien Always happy to help.
 
Going to gTalk you the deets due to password
 
I see there’s a README…I’ll probably just ignore it and ask inane questions whenever they come up.
 
We don't have a str_splice equivalent?
 
1:30 PM
Wait, I think substr_replace
 
@PeeHaa What does requestable use to make requests?
 
@Fabien curl iirc
 
Plans to artax?
Or wrapper.
 
Why'd you build it anyhoo?
 
1:47 PM
@Fabien I needed to test some requests
 
Which postman wouldn't have sufficed for?
 
I needed something available everywhere
 
@rdlowrey On artax if I login with one request, to continue to make another to the same site as a logged in person do I need to just assign cookie stuff etc or will it nicely handle it for me?
 
user895378
@Fabien nah artax will do that for you
 
Awesome thanks. So I will just update the request with the new url
 
1:57 PM
Good morning
 
user895378
@Fabien I'll be able to push that update in the next hour or so and that workaround won't be necessary.
 
user895378
@ircmaxell morning
 
@rdlowrey Cool. I'll hold off for it :) Thank you
Morning @ircmaxell
 
Morning!
 
2:15 PM
@ircmaxell morning
 
user895378
@Fabien Pushed. I'm not tagging a new RC for now though. You'll need to use dev-master or the 1.0.x-dev branch alias in your composer to get it.
 
I don't always use 3rd party code but when I do I use dev-master
 
yeah read it
:P
Second one this month rite?
 
user895378
I seriously don't trust any of the major php frameworks on security.
 
2:20 PM
no, still the first one
 
ah k
 
and this one gives me a "see I told you so" element as well
 
@rdlowrey Thanks :)
 
user895378
The sad thing is most people who use frameworks do so in part because the frameworks "know about the security things and will keep me safe."
 
user895378
@Fabien np, thanks again for finding weird edge cases!
 
2:22 PM
I think I may have found the subject for tomorrow's blog post
 
@ircmaxell ah, blog post. regarding foundations of oo: imo title does not match content or title is too pretentious. I agree it's important to know the difference between simple and easy, but not sure I'd raise this to a foundation level.
 
@Gordon yeah, I thought about that after
but actually I do think complexity is a foundational element, except that we don't really think about it
 
@ircmaxell yes, I agree. not sure how to better explain. its just that my expectation for sth titled "foundations of OO" was quite different to what I then read.
 
I agree
I thought that after I posted it, but then was too late to chagne
 
Contentwise I am completely fine with it
 
2:32 PM
woot! just crossed the 6000 twitter follower mark
 
you actually give a poop about that number?
 
not really
but it's a nice thing to look at :-)
 
Hehe, yeah. Followers is a weird thing. I got quite a bunch of new people following me after IPC. I am constantly tempted to feel important
 
Minions!
2
 
it's a hard thing to do (keep a level head)
and I fail at it too often
 
@Fabien I want to hire some
 
@ircmaxell for google? sign me up!
 
If any are in Soton you like send them my way -_- we're looking.
 
@Gordon for minions
 
@ircmaxell as long as its google im fine with being a minion
 
2:39 PM
if you want in, send me your resume and I'll submit it for you as a referral. But be warned, you might have to move ;-).
 
user895378
-1 for minions, +1 for groupies \o/
 
user895378
Actually, I'll take whatever I can get :)
 
nah, groupies in tech (the one's I've seen) just get weird... They aren't the cool kind of groupies...
 
:P
 
@ircmaxell there is nothing to do for a PHP dev at Google afaik. At least, I never see anything at their job offerings. And yeah, I know I'd have to move. They'll close down the Düsseldorf office and the ones in Hamburg and Munich don't have anything that looks like I could take on.
but thanks for the offer :)
 
2:43 PM
there is one thing: advocacy
 
Is there an easy way to do this 'correct and fast'
if( empty( $email || $password || $firstname || $secondname || $street_no || $city || $zip_code || $country || $phone ) ){
 
@Gordon Probably just commercial stuff... Engineering is in USA mostly.
What about Facebook?
 
@ircmaxell that would be awesome indeed. not sure I have what it takes. I mean, the stuff you churn out recently, is way beyond what I could produce. That Recki thing: way over my head.
 
if (! ( $email && $password && $firstname && $secondname && $street_no && $city && $zip_code && $country && $phone) ) {
 
&& harakiri()
 
2:46 PM
Why &&
 
think about it logically what it's doing
 
What about something alike this: paste.jesse-obrien.ca/KWf
Oh, makes sense @ircmaxell makes sense. :)
 
@Duikboot Does not work
 
Doesn't make sense at all.
 
At least not how you think it does
 
2:48 PM
oki
 
Would have to be !count(array_filter([$a, $b, $c, $d])); ^^
But don't do that either.
 
Those should be array keys.
 
$array === array_filter($array)
 
Hey PHP
I submitted a PR to core for a new DateTime format constant for RFC7231 (https://github.com/php/php-src/pull/882)

I now have to dig a bit deeper into the date library to handle the new format being always a GMT format, but I'm not very experienced with C.

My biggest problem is that it takes Travis-CI ~30 mins to make a build and test. Is there a way that I can compile and test a subset of PHP to test my code in a quicker response loop? Otherwise, doing a 30 minute build everytime I want to test my code is going to get pretty hairy considering my lack of C experience. :/
 
so, do a build locally
and then edit the file you want, and run make again
 
2:53 PM
right, even then it takes a bit
 
and it'll just recompile the changes
 
ah, I am noop
lol
 
suggestion
./buildconf && ./configure --disable-all --disable-cgi && make -j4 for the intiial build
you may need to enable date, not sure if disable-all will kill it or not
but you want disable-all to get a much faster build
and -j4 after the make will build with 4 threads
 
oh man
this is why I ❤ you, man
 
nope, it should build by default
 
2:57 PM
/me has been looping this song since monday
.. just sharing my addiction
 
@Rican7 you can use ./run-tests.php ext/date/tests/ if you want to run ext/date tests only
 
@tereško if today was friday, I'd ninja edit it to Rebecca
 
Yah! I can pull my hair into a sad ponytail, finally!
I'm growing it out one last time, I figure I might as well enjoy it while I can, before it starts falling out.
 
hi all i need help in sql
 
@Gordon (phew)
 
2:59 PM
@FlorianMargaine oh awesome. thanks
 

« first day (1475 days earlier)      last day (3472 days later) »