« first day (2206 days earlier)      last day (2758 days later) » 
00:00 - 23:0023:00 - 00:00

12:00 AM
anyway, going to bed now
It's like 1 am CET
(Actually 2 am CEST … but that's irrelevant in about one hour)
 
k well I will work up a horrid patch with a load of preprocessor magic for you to refactor \o/
 
@DaveRandom I'm not opposed to you doing the refactoring too :-P
 
I will make something that works and then reapply brain tomorrow
 
@Andrea at least fake the link to actually point to SO main site…
 
 
2 hours later…
2:33 AM
\o
 
2:52 AM
Happy Halloween and diwali to all..
10
morning
 
3:25 AM
'nin
!!? diwali
 
Search for "diwali" (https://www.google.com/search?q=diwali&lr=lang_en)
• Diwali - Wikipedia - Diwali or Deepavali is the Hindu festival of lights celebrated every year in autumn in the northern… (https://en.wikipedia.org/wiki/Diwali)
• Diwali - Festival of Lights - National Geographic… - Diwali, or Dipawali, is India's biggest and most important holiday of the year. The festival gets i… (http://kids.nationalgeographic.com/explore/diwali/)
• Diwali 2016 - Diwali Date 2016 - 2016 Deepavali i… - Diwali 2016 - Diwali/Deepavali is a 5 days festival in India, full of lights and crackers. Read on
 
noice
 
4:07 AM
moin
 
Wes
mornings
 
\o
anybody mining zec?
 
4:23 AM
\o
 
Wes
@Andrea i'm trapped forever. click. click. click. click. click. click. click. click.
 
@Wes lol
 
morning Joe,Wes
lol who stared morning
 
5:13 AM
posted on October 30, 2016

New Cyanide and Happiness Comic

3
 
 
1 hour later…
Wes
6:23 AM
Russian dogs are the greatest. https://t.co/71BcQeCZb1
 
6:35 AM
posted on October 30, 2016 by krakjoe

- UI\Draw\Text\Font\Descriptor::getFamily - UI\Draw\Text\Font\Descriptor::getSize - UI\Draw\Text\Font\Descriptor::getWeight - UI\Draw\Text\Font\Descriptor::getItalic - UI\Draw\Text\Font\Descriptor::getStretch - UI\Draw\Text\Font::get...

 
7:04 AM
Morning
 
Wes
\o
 
o/
 
7:28 AM
o/
 
Wes
\o
 
o/
 
8:02 AM
I'm very bad at versioning things
I'm very bad at vcs
Hi, I'm your local friendly PHP RM :D
 
@JoeWatkins As long as you do not merge round too much, all fine :-P
 
8:32 AM
	switch (brush->b.Type) {
		case PHP_UI_BRUSH_RADIAL_GRADIENT:
		case PHP_UI_BRUSH_LINEAR_GRADIENT:
			if (color) {
				php_ui_exception_ex(InvalidArgumentException,
					"brushes of this type cannot use the color parameter");
				return;
			}
			break;

		case PHP_UI_BRUSH_SOLID:
			if (ZEND_NUM_ARGS() > 2) {
				php_ui_exception_ex(InvalidArgumentException,
					"brushes of this type cannot use X0, X1, Y0, Y1, or radius parameters");
				return;
			}
		break;
	}
pretty nasty, right ?
Brush is a mess, because I didn't get it ...
I think I'll do over ...
 
yomin jimboze
 
9:06 AM
db field contains some rows like admin12class , adminclass13 how to use orderby numerically in such cases?
 
Wes
you create a column with just the number in it
 
no other way? ..
 
Wes
it's the only sensible way
 
something like cast int
or php sort
natsort() is supposed to work . its not.
 
you could usort and compare numbers found in the string?
 
9:18 AM
@Wes More earthquakes? :/
 
Its just @PeeHaa's mom jumping around again
3
 
Wes
:P
@MadaraUchiha yeah. not near me or my family though
 
@Wes Seems like the tectonics really don't like each other for some reason...
 
@Jimbo forget it
 
9:24 AM
@Jimbo thanks.
 
9:41 AM
@Wes hah, uh, now how do I use it :x
Chat still wants to use gravatar
 
^ That's pretty much exactly what I see when I look at @Leigh's avatar anyway, always have
 
10:02 AM
aftermorn'
 
oi
 
hey @bwoebi, we can't use 0xFFFFFF | 0xFF << 24
it still overflows ...
 
Wes
10:28 AM
earthquake in malta
the fux is going on?
 
1 hour ago, by Jimbo
Its just @PeeHaa's mom jumping around again
 
@JoeWatkins it's a normal 32 bit value. It just will be a negative number.
I see no issue with that
just cast it to uint32_t for working with it.
 
Heh, that photo of bwoebi keeps reminding me of my very first friend =)
(He is from Belgium, ftr)
 
@Ekin How's Istanbul?
Enjoying yourself?
 
Yep, had so much delicious food and was mostly drunk so far @Madara.
Also kind of getting used to walking with lots of people on the street.
 
10:44 AM
@Ekin Hehe, you don't get that in Uruguay, I reckon?
 
No you don't :)
Just the population of Istanbul is probably 8 times larger than the whole Uruguay.
Sorry, make that 5.
 
Aye, I got the same experience in Tokyo
35 million people in the city, 4 times that of all of Israel
How long will you stay? (Or is that a quasi-permanent arrangement?)
 
Wes
watched ghostbusters, the 2016 one. i was all like "it can't be that bad" and "you can't make a bad movie with such a great plot"
but they did
my eyes are bleeding
 
At first it literally gave me tremors, felt really bad and nauseous.
@MadaraUchiha I think I'm here until February. Not really sure about later yet.
But I would like to avoid staying here longer than I need.
 
@Ekin Fair enough
You're studying there, right?
Or have some sort of internship?
 
10:59 AM
Nah, I study online. I'm here mostly for a work opportunity and family reunions.
The work is not here ftr, but the people I need to talk are. Plus the visa work should be done here.
 
Mornings
 
Mornin'
 
11:20 AM
\o
 
Need a good use case for some code that does way too much (probably 4 things) that I can then refactor using SRP. Anyone?
Simple, though
 
Does Artax have a nice way of setting query vars?
 
@Jimbo You are looking for an actual real life example?
 
@Sean I don't think so.
 
Or can I pull one out of my ass?
 
11:36 AM
@Jimbo Take a User class that's responsible for fetching the user from the database, maintaining the user's business logic and state, and rendering something to the screen with echo.
Separate it into 3 classes
 
@MadaraUchiha There's infrastructure required around that User and persistence etc there...
Bit too complex perhaps
My current idea: take a user's input, validate length of text < 140 chars and image url exists, then tweet it, and send an email to the admin saying someone has used our tool
But then they'd question why they would even use this perhaps
 
morning
 
> 7.1 magnitude earthquake strikes central Italy
> Downgraded to 6.6
How do you downgrade an earthquake? Use apt?
 
@Ekin you still here ?
 
Yes, but on tablet. Back to laptop in about 2 hrs
 
It's ok. I will open an issue instead. I foudn something else I need to add anyway
 
Alright =)
 
Wes
basically there's one every 5 min @Jimbo 3 richter
daily a big one, 5.5+
not actually big though but enough to raze to the ground medieval buildings
some even older actually :( like churches
 
12:10 PM
lol, a company here apparently paid $2k for the ugliest psd file I've seen lately... and planning to pay triple that for the static implementation of the design...
 
Wes
i should be paid more
damnit
 
Yeah indeed
This is just way too dumb
 
I've got a question, where in src I can find saving zend_function into HashTable XG(function_table) ?
I cannon locate that place :(
 
@NikiC I propose to extend key() with an extra parameter giving the offset and allowing negative offsets for wraparound. Then when removing IAP, we can still access the key of the last element.
 
Ok, never mind I think this is it ZEND_API int do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time)
 
12:31 PM
@brzuchal XG? Is that xDebug globals?
 
no i mean CG|EG
do_bind_function which I've located adds ptr to that hash and didn't fount that earlier
speaking of user declared functions, because muilt in I've already located
 
@DaveRandom scary
 
12:53 PM
Does jeeves strip http:// from urls or something when using postMessage?
 
It should not
 
Oh SO chat doesn't like formatting anything when it's a multiline string
 
Correct
 
What's the workaround? Posting multiple messages? :x
 
Posting full urls
Instead of markdown formatted ones
If it gets out of control you can use bitly shortener
 
1:02 PM
$x = 0x1 | 0x4 | 0x10;
$elements = magic($x);
// $elements is now === [0x1, 0x4, 0x10];
Does anyone know a function that does that ^^
 
@Sean See !!google
@Danack what, natively? No. Do you need the values or just the positions of the set bits?
 
@DaveRandom I found an easier way....I wanted the values....but as I already have the known values:
$knownWriters = [
    0x1, 0x2, 0x8, 0x20
];

foreach ($knownWriters as $knownWriter) {
    if (($type & $knownWriter) !== 0) {
        //do the thing.
    }
}
so I was overthinking it.
But on another matter @DaveRandom - is there an easy way to get libdns to dump out what responses it got, in cases where it is unable to lookup a DNS entry?
 
libdns is just a message parser/builder really, it doesn't know whether it was able or unable to do anything because it's just a thing used by the client - I guess you need to be looking in amp/dns
moment
@Danack what's the actual use case here? Just debugging or long term logging?
 
1:20 PM
@DaveRandom I made a site crawler. About one time in 4 it just fails straight away on looking up a host name, unless I hard code it in /etc/hosts.
 
Either way you probably want to decorate the default amp/dns resolver with something implementing this, you can then assign the app-wide resolver here
 
This is on two separate computers....I was going to blame my companies shitty DNS server, but it seems to happen for competent people's servers as well.
ta. I'll have a go at finding the issue.
 
There are a couple of known bugs in libdns, that lib really needs some love
 
LogicException: Cannot tick() recursively; event reactor already active in S:\projects\jeeves\vendor\amphp\amp\lib\NativeReactor.php:149 Hmm.
    $allRequests = \Amp\some($this->httpClient->requestMulti($requests));
    list($errors, $responses) = \Amp\wait($allRequests);
 
\Amp\wait
Don't do that
 
1:26 PM
yield $allRequests?
 
yes
FYI wait is used if you want to make it block
 
from DUS airport
 
Which is never in jeeves
@Jimbo morning from rotterdam o/
 
o/
o/
 
in Jeeves' Playground..., 2 mins ago, by Sean
Zoolander (2001) [ http://www.imdb.com/title/tt0196229/ ] - At the end of his career, a clueless fashion model is brainwashed to kill the Prime Minister of Malaysia. [♥ 6.6 | 🍅 6.0]
Zoolander 2 (2016) [ http://www.imdb.com/title/tt1608290/ ] - Derek and Hansel are lured into modeling again, in Rome, where they find themselves the target of a sinister conspiracy. [♥ 4.8 | 🍅 4.5]
Derek Zoolander: Male Model (1996) [ http://www.imdb.com/title/tt0291853/ ] - N/A [♥ 7.0 | 🍅 N/A]
Derek Zoolander University (1997) [ http://www.imdb.com/title/tt0291852/ ] - N/A [♥ 6.9 | 🍅 N/A]
\o/
 
1:29 PM
Nice!
 
It's pretty disgusting under the hood, I'll put up the PR and you can vomit
 
kk
 
@Sean You almost certainly do not want some() there, you probably want all().
As a general rule you want it to explode if one of them fails
 
Why? The idea there is if one fails don't bother adding in the extra information for it.
 
OK then make sure you log failures
in general, nothing like that should ever fail, if it does something needs fixing somewhere
 
1:37 PM
Yeah, agreed
I'm actually surprised at how everything just seemed to work. I barely had to do any debugging because nothing really went wrong during testing. Loving this yield stuff and Amp
 
Evenings
@Sean nice pr
 
@Wes fantastic
 
@JoeWatkins thanks for the tip with phpize on windows
 
1:56 PM
@Archer Cheers ^^
 
2:08 PM
AAAAAAAAAAAAAAAHHHHHHHHHHHHHH
^ current status
 
2:31 PM
joining the PC Master Race \o/
with a gtx 1070
 
Wes
naming cosmetics question: when you think of lists, arrays, sequences, you think of them to be horizontal or vertical, eg. $list->shiftRight() or $list->shiftBottom() (note: method doesn't make sense, it's just an example)
or even shiftDown/Up, or forward and backward
 
Anonymous
Moin
 
\o
 
Wes
\o
 
\o
 
Anonymous
2:36 PM
Just like to reiterate, you're dp is fucked up @Archer
 
no it isnt, its kawaii
^^
 
o/
 
@bwoebi of course you are right ...
switch to RRGGBBAA, moar speeed
 
it's a sunday so room 11 will be dead, but I'm gonna ask this anyway
what's the most pleasant lightweight PHP framework you've used?
 
@JoeWatkins :-)
 
2:45 PM
yes, I know room 11 hates frameworks.
 
@Andrea Arya. But it's a bit unmaintained currently:-/
 
@bwoebi D:
 
3:00 PM
@Andrea I could be bothered to update it though if someone wants to really use it.
 
@bwoebi idk
you know what's fantastic? how basic examples for “modern” frameworks contain XSS vulnerabilities
you know someone's gonna copy that example somewhere
$app->get('/hello/{name}', function (Request $request, Response $response) {
    $name = $request->getAttribute('name');
    $response->getBody()->write("Hello, $name");

    return $response;
});
what if my name is Miss <script>alert(1);</script>?
 
Agree.
 
I mean presumably it tells you to use a proper template or something later, but there's no warning.
> filter_var($data['title'], FILTER_SANITIZE_STRING);
oh god
oh god
deprecate the entire filter extension tbh
 
3:18 PM
@Andrea 90% of it is enough
 
@bwoebi yeah
 
3:31 PM
@Andrea I like Andrea ...
plus having non-alphabetical characters in your name gives you life long headaches ... I used to think I had one ...
 
@JoeWatkins heh
 
there was so much I was meant to do today ...
 
Wes
3:56 PM
omg today i wrote actual code
 
Wes
4:06 PM
and it even works
 
Hello from Cambodia
 
\o
 
A holiday in Cambodia?
 
yo fab, wes
dan
 
4:24 PM
More like early-mid-life crysis @Danack
Been away for two-months now
 
> Note that PHP-View has no built-in mitigation from XSS attacks. It is the developer's responsibility to use htmlspecialchars() or a component like zend-escaper. Alternatively, consider Twig-View.
goodness me
I'm probably going to use Slim anyway but, uh, this does not inspire much confidence
 
4:43 PM
Does anyone know why I get the error:"Fatal error: Call to a member function bind_param() on boolean in " when I run this code?
$token = "2016-10-30";
$query= $mysqli->prepare("select voornaam,achternaam,telefoonnummer,email,token from personen where token=?");
$query->bind_param("s",$token);

All the variables exist and are the right value. I read that the error means that the query is wrong?
 
mysqli_prepare() returns a statement object or FALSE if an error occurred.
your error says $query is false
 
@Loko That's PDO telling you to stop using dutch names
 
@Stricted Still no clue whats wrong my variable $query
 
something is wrong with your sql query
check with php.net/manual/de/mysqli.error.php whats wrong
aaaah i hate it -.- always the language on php.net is changed to german
 
@Stricted Apparently nothings going wrong with the query nor connection to the database.
 
4:55 PM
something is going wrong otherwise it would works :D
 
smart
 
@Andrea ehm. Aerys. Ehm. Ehm. Eeeehm.
 
Okay I've been looking whats wrong with my query but I cant seem to find the mistake. It must be something small that you wouldnt think about or something.
 
@bwoebi I know, I know…
 
5:11 PM
o/
 
morning
Nice Avatar, @Andrea!
 
@Andrea I see it coming... You'll end up using it eventually:-D
 
@kelunik glad you like it :D
 
Hi
 
5:22 PM
hi, the time is changed now in europe (one hour back) and now (at 18:23) when i create a record in my DB (MySQL) it saves it like it's made at 17:23
 
things I like in Haskell which I should really add to PHP some day: the _ variable
 
how to solve this problem
 
@lewis4u use the correct time zone in your code?
 
where in my code
Current default time zone: 'Europe/Berlin'
Local time is now: Sun Oct 30 18:15:56 CET 2016.
Universal Time is now: Sun Oct 30 17:15:56 UTC 2016.
mysql> SELECT @@global.time_zone;
+--------------------+
| @@global.time_zone |
+--------------------+
| SYSTEM |
+--------------------+
1 row in set (0.00 sec)

mysql> SELECT @@session.time_zone;
+---------------------+
| @@session.time_zone |
+---------------------+
| SYSTEM |
+---------------------+
1 row in set (0.00 sec)
 
What the hell... this is my query: 'select voornaam,achternaam,telefoonnummer,email,token from personen where token=2016-10-2710' How is there ever anything wrong with this?
 
5:34 PM
;
 
Wes
aliens
illuminati
 
hahaha
 
Wes
freemasons
 
6:17 PM
evenin
 
6:31 PM
o/
 
\o
 
Facebook api geeks in the room? :D Maybe on sunday
 
7:03 PM
today I learned that Slim is actually quite pleasant
 
7:21 PM
Hey, is it possible to edit a session variable based on session id? Like, if a user is logged in on two browsers (so two sessions) into the same account, and they do an update, I update the session. But can I update the session variable on the 2nd browser's session?
 
Murrrrrrr
 
rawr
 
7:37 PM
my brains are all lemony
 
sounds lemony
 
Lemon party?
 
7:56 PM
Points at door
 
8:16 PM
Is It right developer has an age limitation? How long can I work as a web developer
 
Check your best before label
 
Harro.
 
harro
 
haribo
 
Like @PeeHaa said, check your best before label. We all don't bother doing this for birth control with @PeeHaa's mom, though.
 
8:29 PM
@DaveRandom So, I'm definitely seeing something weird with Artax and DNS requests, where I'm getting an error looking up a domain name. I ran TCPDump to capture the packets, and the DNS response appears to be returning in under 0.008 seconds. It doesn't happen every time, but it should be semi-reproducible with:
git clone github.com/danack/SiteTool
composer install
php -d memory_limit=256M src/cli.php site:crawl -j 4 phpimagick.com
If you have pointers to debug it - I am all ears. btw the exception message is "All name resolution requests failed" with something like "all promises passed to Amp\Some() failed to resolve."
also, I can put the appropriate entries in my /etc/hosts and everything works.
 
@Danack Me and @Fabor both experienced Artax DNS weirdness too
 
@Leigh Do you see occasional/rare weirdness or constant weirdness?
 
I don't see it anymore, I changed jobs, but it was occasionally occurring persistent weirdness
and I forget what the fixes were, but normally did something environmental
in this context, occasionally occurring could be related to deploying to a fresh EC2 instance, I really can't remember much beyond... there was weirdness
HALP, need to make pull request for hacktoberfest, can't find anything interesting to hack on
 
8:44 PM
Hey Im trying to create a query that will show all the events with the amount of members assigned to it. So theres 2 tables with

Events:
Id, name

and

Members:

Id,Firstname,Lastname,Event_id

How can I get all the events with the amount of members assigned to it?
I was trying the count sql function in my join query but it only shows the first event.
 
Personally, I don't see why so many #developers are up in arms about the new #macbook2016 .. I mean, I'm sure this… https://twitter.com/i/web/status/792469679486832640
 
Apparently you can use group by but that only gives me 2 events out of the 9
 
9:04 PM
/me sleeps, nn
 
NN
 
9:36 PM
@Leigh This still doesn't give me an extra 16 GB RAM … :-D
 
XY problem. I want to do stuff, so I need a Mac
 
@Danack I think it's an old bug we failed to locate given no reproducibility by us devs :-/
 
@JoeWatkins when you no longer sleep, do you mind if I use (with accreditation) the async/parallel diagrams from your blog?
 
Perhaps @DaveRandom will have any success this time?
 
Pretty sure it was a case of code working locally, not remotely, and it was enivornmental
 
9:43 PM
@bwoebi I will look into it but I'm kinda focused on getting this talk right for the next 2 days
despite having worked on it for weeks I still hate it and feel this:
 
s/while crying//, but otherwise accurate.
 
@Danack Is that (the speed of the return) consistent or is it quicker when the problem occurs?
 
@DaveRandom The time is that of a timeout when the problem occurs.
Or in english:
When it works, it is fast. When it doesn't work, it takes about 5 seconds, like it's timing out.
 
OK well that's a silently swallowed exception if I ever I saw one
@Danack what OS are you using?
Not that it will probably make much difference
 
Here, centos vagrant box, on mac. At work - possibly the same.
 
9:53 PM
Roughly how frequently does it happen?
 
Interesting... when you put it like that: twitter.com/vennsplain/status/790899655634812932
 
like, how many runs of that command is it likely to take before I hit it?
Also, does that script halt when it gets that error?
 
I have a simple question, for some reason my LIKE query isn't returning as many results as it should, if I have an entry in column that is cat,dog,mouse and I use "WHERE column LIKE %mouse%" will it find the entry or does the % indicate that there HAS TO BE something there?
 
otherwise, I don't see anything obvious
 
I got a repro case and it's UDP
 
9:57 PM
@Alesana % is a wildcard. Literal *mouse*, it will find it even if there is nothing after mouse
 
looking into it now
 
@leigh
Oops, lol
 
@DaveRandom okay, great… if I can look into anything too, tell me … I'll do tomorrow then. good night.
 
Night bobby, kiss kiss
 
@DaveRandom Up until about 2 hours ago, it would happen 1 time in 3 when first running the app. Once the app has been run successfully, it seems to keep working 100% for the next 10 minutes or so. From about 2 hours ago, it seem to be 100% broken.
 
10:00 PM
@Leigh so % is for 0 or more characters?
I had thought it might have been for 1 or more
 
except if I put an entry in the hosts file.
 
Thank you :)
 
@Alesana % is 0 or more. _ is exactly 1
 
I guess I could have looked this up if I had thought of the right question to ask aha
 
A quick test Google for "MySQL LIKE" turns up exactly what you need
 
10:05 PM
I actually searched for an explanation of wildcards
I found two differing pieces of information
 
MySQL docs say 0 or more
I'm assuming you're using MySQL because, 1) PHP room, 2) most people do
 
I figured w3schools was more accurate, and yes that is why I came here
 
10:25 PM
@Danack Can you try flipping $allowTrailingData to true here?
Also in the Decoder ctor
I think the factory is used with no arg
 
@DaveRandom That may have made a difference. Changing between true and false it seems to have moved away from failing 100%, so I'll need to leave it a few minutes to see if it fails again later.
btw would the wireshark file be of any interest?
 
@Danack only if you have caps of when it failed and when it didn't
However...
This is an issue I've run into before (that's why that arg is there at all), and I really have no idea wtf is actually going on in terms of what the proper behaviour is here.
Are you using google's public DNS?
Either directly configured or via your router
If you are getting response times <1ms then I assume you are using a router which a cache (or some other local thing)
Basically Google - and possibly other things as well - sometimes return 4 trailing bytes of garbage on the end of response packets. The data itself doesn't see to actually mean anything - I can find no reference anywhere on the internet to it in any shape or form, except (possibly) this.
 
10:40 PM
ta, will look now
@Danack are these from before you applied the "fix" I assume?
 
The broken one is from before. The working one is with the 'fix'.
 
Well that's pretty weird tbh, the broken one there does not exhibit the problem that allowing trailing data would fix :-P
 
Yeah....I think it's just heisenbugging. Whereas for a couple of hours it was failing reliably, it's might have gone back to failing occasionally, and working if there was a successful DNS lookup done within the last 5 mins.
 
@Danack I assume that when it fails, it fails at startup?
 
yes.
 
10:49 PM
hmmmm, I cannot repro then :-(
I had the trailing data issue because I am using 8.8.8.8 directly
wait...
@Danack is it possible there are some ICMP messages missing from that cap?
what's the wireshark capture filter you are using?
 
yes - I was only capturing with tcpdump -i eth0 udp port 53 -w site_tool_dns_working.cap
I should capture all udp ?
 
No don't worry, I have found something interesting on my side when I use my router directly
I suspect something is going on when responses are very fast, although the exact nature of why that would be I couldn't even begin to guess
I will come back to you in the next half hour or so, don't go away :-P
 
00:00 - 23:0023:00 - 00:00

« first day (2206 days earlier)      last day (2758 days later) »