« first day (1433 days earlier)      last day (3498 days later) » 

1:27 PM
Good morning
 
morning
getting older? (:
 
Everyone's getting older.
 
and.. each day
even second :p
 
yup, if you're not getting older, you're dead
 
@ircmaxell 31 right?
 
1:38 PM
yup
 
zan
Happy Birthday @ircmaxell
 
j0h
http://php.net/manual/en/function.imagecolorat.php
I get 7270171 what sort of colour is that? how can I make that a hex colour?
 
zan
I am going to watch all your videos from now onwards on youtube
 
@ircmaxell lol
morning
 
@j0h look at example 1 in the very same link you posted
 
1:43 PM
@ircmaxell happy birthday :)
 
:-D
thanks all :-D
I'm not joining a private room...
 
but, but, but he has all these nice pictures to show you
 
zan
lol i dont , just give us advice how to be a great developer like you , thanks
 
his consultation fee is 198$/h
 
that's cheap
 
zan
1:50 PM
oooh great , then i will be consulting him after few years
 
@FlorianMargaine sorry ... I am from third world country .. sometimes it shows
 
it's alright, I know it's your salary/year... might be big
 
@tereško you're off by a factor of 4
 
zan
stackoverflow.com/questions/16356420/… i loved this ... implemeting it slowly..
 
@ircmaxell now you just being mean
 
1:52 PM
no, seriously, my consultation rate is $850/hr...
 
you're doing consultation?
 
so, basically, you can earn my monthly salary in 2 hours
 
@FlorianMargaine nope, that's why I charge so much, so I don't have to do it...
 
I see.
does your contract even allow it?
 
1:53 PM
sure
 
Happy Bday Ircmaxell
 
j0h
I still dont know what that number is, I know its a pixel colour., but its not a hex index.
 
@ircmaxell ah ye good ol' "I don't wanna fee" :)
 
@j0h dechex()
@PeeHaa precisely
 
j0h
@Feeds lel
 
question: When I call function to get an object and echo to page, the character à and whatever gets printed, when I call it trough ajax.. it becomes ?, did i need to encode or smthg, did I miss something?
 
@ircmaxell If you're dead you're still getting older, you just stop attending your own birthday.
Among other things.
 
@NikiC If I do it in pass_two it seems I also need to check for special-case functions there too, such as constructors and destructors.
(ones you can't use return types on)
Otherwise it says "Oh! You returned null with a typehint of MyClass" but the real error is the return type on the special function.
I'm beginning to think that doing this check at compile time really isn't worth the cost ^^
Actually, I could do that particular check earlier.
 
2:18 PM
good afternoon all. This isnt a PHP question as such, but i think you guys will have the skills to answer this. I have a load balanced setup with 3 web servers. I have a subdomain that has it's source pointed to the load balancer (ads.example.com). Currently i only have the vhost setup on one of the load balanced servers (of 3) and not the other 3.
 
j0h
Iam unskilled but here I go!
 
will this give me false reporting? SHould i setup the vhost / alias on all 3 web boxes
or is the load balancer clever enough to know what it's doing (i'm currently thinkin g i've made a setup issue and this is actually dropping lots of traffic)
 
@Andy you should configure the balancer to send requests to only the server that is capable of serving that request...
 
@DanLugg well you still attend it, nobody else does
 
@Danack i thought as much, as i dont have a clue how i setup the LB in the first place (well someone else did) i dont think i've done that. Where might i do that?
 
2:20 PM
@Leigh Self-absorbed dead people... I want an invitation!
/me gets a shovel
 
@Andy Well it depends on what load balancer you're using....
 
@Andy what do you mean by "false reporting"
 
> [...] We need layers to abstract away the underlying implementation so we can change it? OK, let’s give this some serious thought. How often do you really change the implementation? [...]
^^ I don't think that's the only problem it solves though. It solves the related problem of supporting multiple disparate sources under a single (or less, at least) APIs
 
typically a LB will do a healthcheck to the participating nodes, makes more sense to check with the host header set
whats the problem with setting up the other 2 nodes with a vhost anyway, would have taken less time to do it than to ask about it :p
 
@Leigh well i'm trying to work out if my advertiser is sending me all the traffic i'm paying for and currently i've got a drop off of around 77%, which means i've been overcharged by like $10K which isnt ideal.
so i'm trying to see if it might be something my end that's a major issue
"whats the problem with setting up the other 2 nodes with a vhost anyway, would have taken less time to do it than to ask about it :p" --- there isnt an issue and i can do it, or setup a ServerAlias.
but if you consider the LB will round robin and if 2 of them have invalid vhosts then that could account for 66%
 
2:24 PM
nice thing about vhosts is, you can give them custom log files
 
which i have done :)
 
if the LB detects a site misbehaving it should drop it from the pool
so maybe 1 server is getting preferential treatment
 
but, only on WB1 [which has the vhost for default and ads.example] whereas the other two just have default vhost and not the ads.
 
are you using a hardware load balancer or just a VM with nginx or something?
 
@Leigh im using a couple of cloud machines (from serverlove.com) that being said i didnt set them up
 
2:26 PM
hm, well, no idea if you can get request logs from the load balancer
 
hmmm, it looks like 000-default is called for traffic to this subdomain, which is good as i only have the one vhost
 
but that obviously seems the best place to monitor to make sure all of the traffic you deserve is reaching you
 
so does that mean, panic over, should be fine?
@Leigh i agree, will be checking that next
just checking is all
 
@ircmaxell test
 
(i know this because i updated my hosts to point ads.example.com to one of the servers that doesnt have the vhost setup and it behaves as expected)
 
2:28 PM
sorry I had :18961258 in my chat window but forgot what I was replying to :P
 
ok
I almost wasn't going to reply to confuse you...
 
:-D
 
31... wat... you look older :x (although I haven't really inspected you that closely)
 
@NikiC pass_two being defined in Zend/zend_API.c really sucks.
>.<
 
dude, today's one of the guys in the JS rooms birthday, we're the exact same age
 
2:32 PM
Doesn't have access to zend_add_class_name_literal or seemingly anything nice.
During pass_two the op_array doesn't know if it is a constructor yet.
 
@ircmaxell like "to-the-timestamp" exact?
 
2:49 PM
@SecondRikudo U here?
 
I guess I could add a pass over the function after pass_two that is called only when there is a return type and the function is not a generator.
 
Has anyone ever encountered PHP Warning: session_regenerate_id(): Session object destruction failed
 
Noob question but I am urlencoding a string with + in it and spaces. Which naturally makes it ++ so decode just removes them both. What's the normal solution?
 
@Gordon to the day at least
 
2:54 PM
@ircmaxell ah. that's not so spectacular then :D
 
lol
 
rawr got it
 
@Fabien Even better: have sane urls :)
 
@HassanAlthaf Now that I've noticed it, I can't un-see Jack Black.
 
3:25 PM
@HassanAlthaf that's just painful
 
where is echo defined?
can't find it on lxr
 
@Naruto Yo
 
@FlorianMargaine zend_vm_def.h
 
@bwoebi ty
 
3:30 PM
I need to do a PWA on Big-O complexity
@ircmaxell Considering new Drupal or Full Stack PHP dev jobs in NYC at this time?
 
ok fine room 11 people. I need to upgrade a huge php 5.scary project to 5.4. Is there anything out there that can ease the pain a little for me? (wasn't @nikic working on something like this)?
 
I can't tell if that guy doesn't understand Big-O or if he just has no ability to explain it.
 
@ircmaxell Not WordPress?
@PeeHaa Just take the leap, and fix what's broken.
That's what I did with our 5.1 system. Painful, but over relatively quickly.
 
@SecondRikudo Normally exactly that would be my approach, but when I say huge I mean it this time :P
 
I think he understand the core of Big-O, but he misses a lot of it
 
3:34 PM
@PeeHaa I did with with a 50 page app
And by page I mean page
Classes? Pfft, who needs 'em
 
why can't I see the definition of this function? lxr.php.net/xref/PHP_5_6/Zend/zend.c#332
 
So... the easiest way I can think of to remove the type checks on return statements in generators is to hook into pass_two and make the opcode a no-op.
 
@SecondRikudo Did you know the functionality of the site before?
 
Anyone have a better idea? @ircmaxell @bwoebi @NikiC
 
example: the reason we don't say O(n)*O(1)+O(1) isn't because the "line will always be under or parallel". It's becasue O() says nothing about runtime, but everything about scalability. So O(n)*O(1)+O(1) is identical (scalability wise) to O(n)*O(1) since the constant time reduces off, and that's identical to O(n) since it fully dominates the scalability
 
3:35 PM
@PeeHaa Yes
It wasn't a site, it was a monster CLI program.
 
@FlorianMargaine because there's no function, it's an opcode. ZEND_ECHO I think-
 
Which makes it all the more complex.
 
@LeviMorrison return statements are errors in generators...
 
@bwoebi ah, damnit
thanks
 
@ircmaxell Untrue.
 
3:36 PM
@SecondRikudo Problem is I don't know anything about the site :P
 
$a = function(): \Iterator {
    yield 1;
    return;
};
 
@LeviMorrison they can be empty returns?
 
@PeeHaa Well then, just fix the PHP errors and hope for the best :D
 
@ircmaxell Yes.
The hotfix was to check at runtime if the function is a generator and then skip the check.
Would it be better to analyze it in pass_two and make it a no-op instead?
 
@SecondRikudo Also not really an option for this specific project. What did I get myself into :(
 
@LeviMorrison yeah, that sounds reasonable
 
and I can't find the definition of write_func :|
 
Looks like I just need to get myself some testers and let them click everything
 
That's what you should do ^
 
3:39 PM
I want to see where the "send to buffer" is done in echo
 
@FlorianMargaine it's a passed parameter? look at the function args…
 
get it, my bad
 
I think I have a businesscard somewhere of a company which uses autistic people to click all the things @SecondRikudo think that's my only option
 
@PeeHaa Or.... Selenium?
 
@SecondRikudo That would involve me writing all the tests. Don't really feel like that. That's going to take a month at least just writing those.
 
3:44 PM
@PeeHaa What the hell did you get yourself into? :|
 
Yeah. If only I was filthy rich yet :(
 
There's probably random link clicker script out there that monitors status codes and console errors.
if not, tm.
 
Write a crawler :D
 
Yup, crawler + disable fail2ban or whatever would stop bots crawling your site. Smash it and see how it goes.
 
How do I check the javascript stuff? phantomjs?
 
3:48 PM
@PeeHaa You could
 
@PeeHaa Capture traffic from the in-production system for a while then replay it to test :D
 
I guess zend_write is another opcode?
 
@FlorianMargaine check zend_vm_opcodes.h lxr.php.net/xref/PHP_TRUNK/Zend/zend_vm_opcodes.h#27
 
Bummer. The good news is that self and parent as return types work properly when used properly. Unfortunately they aren't checked for inheritance violations :/
 
@Leigh not there
 
3:59 PM
So it's not an opcode :)
 
then I'm stuck :P
I'll see later :)
 
@FlorianMargaine ah I scrolled up, that function is passed as a parameter
 
@LeviMorrison yeah... I don't know how this is called as a function though
it's a struct :/
 
It's not a struct
 
@LeviMorrison it's defined here lxr.php.net/xref/PHP_5_6/Zend/zend.c#665
(the zend_write func)
I just don't see where the implementation is
 
that last one is an assignment, not a definition
 
@FlorianMargaine Note that it is of type zend_write_func_t which is a typedef for a function signature.
 
so, a function signature can be a type, what it means is you have to pass in a pointer of a function of that type
 
4:04 PM
gotta go catch a train, sorry, I'll come back later
 
au revoir
 
posted on September 18, 2014 by kbironneau

/* by n1k0 */

4
 
I've been there ^
 
since when do managers get a say in your dev tools?
 
I did work for a company that forced zend studio on the team
 
4:08 PM
o.O
 
Needless to say it was a fast exit
 
I've heard "we're an emacs shop" in an interview before.
I'm not sure if that'd be better or worse.
 
Dammit stupid edit window
1 message moved to bin
 
My inheritance checks don't work on abstract classes or normal extends either, just interfaces.
>.<
 
4:23 PM
dat feel when IDE shits the bed wildly.
 
@DanLugg try XCode :D
 
I.. I don't wanna.
 
/me has been using SublimeText3 ... it's quite ok
 
Used PHPStorm?
 
hated it with passion
 
4:28 PM
How come?
 
it felt like someone has taken away all my toys and before leaving took a dump on my desk(top)
 
We're using PHP, it always feels like someone took a dump on your desk.
 
dunno , my code usually is quite pretty
 
It's just a matter of whether it's divided into manageable piles, or splattered around the room.
@tereško Oh, I never said it wasn't pretty. There are some fantastic shit-sculptors; I aspire to be one ;-)
 
=P
 
4:31 PM
I'd follow that analogy to WordPress, but I fear it may become too vile for the audience.
 
I have been working on wordpress plugin today
 
Screw it; analogy carried:
 
and of course, the PMs in their boundless wisdom decided to give that task to the ONLY guy who has not written a single line for wordpress
 
Using PHP: Someone takes a dump on your desk.
Using Wordpress: Someone comes in, eats the dump the last guy took on your desk, and then takes a very special kind of dump on your desk.
@tereško Perfectly reasonable train of thought: "Who should do this?" "Oh, probably the sysadmin/devops"
 
it's more along the lines of:
> "so we have few meetings and nobody here actually understood what the client wants .. lets give it to only person in this company who can make a rocket from string and bubble gum"
 
4:37 PM
@tereško How's that rocket coming MacGyver?
I gather than whenever someone needs to delegate a task, and don't know to whom they should delegate it, you're the guy, eh?
 
testing the water, due to loop+else dangling else ambiguity, what do you think about
while () {

default:

}
 
hi guys, can anyone think of a reason why my apache logs might be counting users that my application doesnt see? e.g. my apache logs say i have had 100 users from my ads, but DB impressions (first thing on page) counts around 30.
i'm thinking someone is doing this: <img src='http://ads.example.com/campaign-url' /> which will hit apache, but as it's an image wont actually load the php module / my views?
or, is it something else? I'm quite to very stuck on this
and i want to blame the advertiser so i can get a refund on the clicks they're sending
 
@Leigh Ick. And I still say dangling else's aren't actually ambiguous.
 
also loop {} default {} is an option (taking the meaning from switch - if nothing else matched, do this)
that way nicki can be happy it doesn't encroach on the python way too
 
So... the reason my inheritance checks aren't working out is because of early binding.
They can't be done at compile time.
 
4:59 PM
@Leigh I dunno, so long as that works with the common use-case of:
<ul>
    <?php foreach ($c as $i): ?>
        <li>...</li>
    <?php default: ?>
        <li>Nope.</li>
    <?php endforeach; ?>
</ul>
 
@DanLugg more like, when then need to delegate the task, which they do not understand and they are pretty sure nobody else will understand it either
 
I am also the guy who is called in when someone has broken something on his/her computer and everyone else has already tried everything
 
Also...
 
usually related to git or network or http or ssl or ssh or regexp or mysql or permissions ... well .. a lot of stuff
 
developer stuff
 
Soon fridays
and congrats @ircmaxell btw
 
Dat templating syntax
@extends('layouts.master')

@section('content')

<h1>Dashboard</h1>

@include('Includes.create')

@include('Includes.show')

@stop
 
@DanLugg I hope you are talking about calling it statically and not the error opr punching or required
;)
 
@PeeHaa The whole Blade templating engine/syntax is ripped straight outta .NET's Razor engine.
@PeeHaa I... I wanna call it statically.
 
tahnks :-)
 
@DanLugg I hate you right now
 
5:17 PM
@PeeHaa Calling it statically is the same in nearly all contexts that you instantiate it.
The difference being is that it looks cleaner because I can pass the result directly to a recipient method.
$this->process(DOMDocument::loadHTML(...))
Either way, you're hard-bound to DOMDocument because I don't believe there's any interface relief there.
 
@PeeHaa What is real difference between $dom = new DOMDocument(); $dom->load('file'); and $dom = DOMDocument::load('file');?
 
Yes @PeeHaa, what is the real difference? ;-)
 
I thought we were talking about hiding those pesky dependencis
Also Y U NO (new DOMDoc)->loadHtml()? @DanLugg
ow wait
... :|
 
@PeeHaa B CUZ Y loadHtml RETURN BOOLZ!?
 
@PeeHaa Because that would result in $dom being true or false
 
5:20 PM
that's why
 
Yeaaah that was pretty much stupid
 
With that stupidity out of the way I will go out and get me some food for tonight and think about my stupidness :)
later all
 
@derp Oh wow, that was only 2 days ago.
 
lol @DaveRandom
 
5:23 PM
/cc @DaveRandom and his awesomeness.
 
The guy just fucking reads minds
 
Before the minds think the things that they thereafter believe to have been read.
 
Before that mind even has the... DAMMIT @DanLugg
 
Isn't he amazing!
 
maybe he's not reading minds, but writing them
 
5:24 PM
Mind... blown! @derp
 
@derp These are not the droi-- wait, where am I? What's happening?
TIL @DaveRandom is a jedi.
 
lol my reheated pasta from yesterday tastes like crap
was great yesterday.. =[
 
Hey
I have a problem, can i ask to you?
 
i've reached the limit of "ask"
"Sorry, we are no longer accepting questions from this account. See the Help Center to learn more."
 
5:38 PM
Did you see the help center?
 
Oh yes <.<
I must answer other problems
 
Then why are you asking for help in some other channel?
 
i try it... but i'm ever blocked
i've a problem with PHP
 
we all do.
 
anyone can help me in private?
 
5:43 PM
Hello everyone! I have a question about mvc,
 
I'm starting a project with the MVC structure, I could use some framework, but due to some limitation I do not want to use it, anyone know about any site where I can find a good MVC structure
?
or any advice.
 
@Kakitori advice, forget about mvc =]
 
why?
 
5:47 PM
@derp nice link
 
@derp great, I'll take a look, thanks!
 
i've a problem, i'll do a query INSERT INTO , where some var is NULL , but it tell me error , because i must specified all variable
how i can resolve it?
 
@Carbos what is the error?
 
A class that post-processes rendered output (templates) should be called Processor or Transformer? It may result in a completely different output (depending on the scale of changes) which could be seen as a "transformation"...
I guess PostProcessor would be even more accurate, but it sounds odd.
 
The error is: query doesn't worked
 
5:56 PM
=] TemplateFormater
@Carbos are you kidding me =]
 
I was thinking "formatter" too, but it's not just changing the structure, it may change the data.
 
oh okay, will imo processor does not sound that strange
 
Formatter sounds too analogous to "beautifier", like re-indenting, etc.
 
Processor sounds okay, but PostProcessor (which is more accurate) sounds odd.
 
5:57 PM
@DanLugg it sounds cool, use it
 
Meh, Processor, and if I hate it later I guess.
 
Transformer is good enough for XSLT. Either is good enough for me.
 
See, implementation dependent, it may perform an XSLT transformation, it may just attach more markup, it could do str_replace, or trim or whatever.
I've an interface, an aggregate implementation (as a pipeline) and then a default Html* "processor/transformer".
 
I didn't mean that to be implementation specific, just an example of the word being used in the way of the thing you're doing.
 
Yes, which is why I'm still considering it as an option.
It's probably a rather considerable use-case; whether actual XSLT, or some XSLT-ish transformation process.
 
6:02 PM
You should call your class, 。◕‿◕。
 
I'm starting to consider it.
 
。◕‿◕。 extends ◕‿◕ implements ‿
 
Curiously, the wrapper for XSLT transformation appears to be called XSLTProcessor
@salathe lol -- the message.
 
@DanLugg hehe
 
TIL Google is sleepy and happy when it can't find shit for you.
 
6:08 PM
@derp i'll set all colomn NULL to default
and it works
 
C is killing me today =]
 
why?
 
Any way to support CORS in php build in server ?
 
I recognize some of those words.
 
figa viva
 
6:13 PM
@Vamsi header("Access-Control-Allow-Origin: *")
 
6:29 PM
@derp . dont really want to do that in app level .
mhm, will just stick with nginx too for local dev server .
 
:-)
 
user895378
morning
 
morning @rdlowrey
 
lol just was checking hacker news and found about this xss in TXT DNS records .. who.is/dns/jamiehankins.co.uk
 
Not bad.
 
6:45 PM
yup
@Vamsi why? You shouldn't be using in production. And you shouldn't be developing against a non-production configuration (setup). So...
 
user895378
I woke up this morning having dreamt that PHP 5.6's TLS functionality was totally broken and it was all my fault and everyone was really upset about it :)
 
user895378
performance anxiety, man.
 
dreams can feel strangely real
 
@rdlowrey I have the same dreams about password-hashing...
 
6:51 PM
I was dreaming that I was hunting some strange monster, with a sword
 
@tereško LOL
 
PHP is a hell of a drug.
 
user895378
@ircmaxell oh, good to know it's not just me :)
 
user895378
@ircmaxell Also, happy birthday!
 
it's a scary thought. All you can hope is that you did enough testing and asked for enough review to the point that if something is broken, it's not obviously your incompetence...
and thanks :-D
 
6:54 PM
nobody want's another heartbleed
 
@tereško has your job brightened abit up lately?
 
user895378
lol
 

« first day (1433 days earlier)      last day (3498 days later) »