« first day (2621 days earlier)      last day (2318 days later) » 

Wes
12:07 AM
gn and thanks for that. will make jeeves utterly awesome :D
did you use the script i wrote in the jsfiddle?
omg it will be amazing :D
 
12:30 AM
Document that objects in sessions are automatically serialized & unserialized. – #75704
 
1:00 AM
huh, when did the bold-italics get added to “CVE-ID”?
 
 
1 hour later…
Wes
2:22 AM
\o
 
3:15 AM
o/
 
I just started looking for work a couple days ago and today I had a company reach out to me for a job interview, and the pay is way higher than I expected :D
Well the pay isn't like out of this world high but I'm coming from a call center so it's all relative :P
 
3:54 AM
morning
 
4:50 AM
\o morning
 
Wes
\o guys
 
5:08 AM
\o guys
\o above
 
morning
o/
 
posted on December 19, 2017

New Cyanide and Happiness Comic

 
mrng ppl
 
6:23 AM
Hi guys,
just found this chatroom. beginner at php master at screwing up things. How you doin?
 
@Vishwa Oh yeah? How many production DBs have YOU hosed?
 
6:40 AM
@DamienOvereem Those are actually 2 Jeeves, we were running some tests, and decided to make a loop.
!!wotd
 
daily-breader British. a commuter.
 
uwot
 
mornings
 
user8057627
help me. check my question please.
 
user8057627
0
Q: Why Uncaught TypeError: b.wrapper.transitionEnd is not a function?

SeongwonI have the following HTML code. <script type="text/javascript" src="js/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="js/swiper.jquery.min.js"></script> <link rel="stylesheet" href="css/swiper.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery...

 
6:54 AM
wrong room
 
7:07 AM
Hello guys
a question
iam using Ispring quiz maker
that do quizes and sends the result to a server
as you see in the image now it sends to a web server
but what i should write instead of that link if i want to send the results to a server in local Lab LAN
the IP of the server computer in the lab is 192.168.1.9
i tried to write that adress inseted of that link
but didnt send
any idea?
 
7:33 AM
@Dereleased I stopped counting things long ago ;)
 
Wes
mornings 2
 
@Seongwon Your question would get better response if you try on jquery/js chat room I guess
:40503167 did you tried using **127.0.0.1/whatever_your_siteaddress_here**
 
@Patrick can I pick your brain on $user->render($tableRenderer) versus $userTableRenderer->render($user) as well as $user->save($dbGateway) versus $userGateway->save($user)?
 
Wes
are you referring to variable naming?
i need a coffee
 
@Wes Somewhat the sameish. But gd doesn't do automagic newline handling. SO had to bruteforce that too
 
Wes
7:43 AM
what img lib are you using? gd? imagick?
 
gd2 yeah
 
Well you know it's morning development when you wonder why your form isn't working and realise you didn't put name attributes -_-
@PeeHaa Let's Terraria!
 
ugh
Too early
Leave me alone
:P
 
You'd wake up feeling better if you quit smoking
 
:D
 
Wes
7:46 AM
also get a standing desk
:B
 
I'm having a coffee, a cigarette and a kinder surprise instead
 
@PeeHaa you'd wake up feeling better if you'd just quit being @PeeHaa
 
Wes
i have become the people i hate the most
you know, those people that "hey, you should try being a vegetarian"
 
@PeeHaa did you mean tinder surprise?
 
:P
Those days are long gone
 
7:48 AM
@PeeHaa I love kinder stuff but that shtuff is pretty bad. High in carcinogens... oh wait... smoking.
 
Wes
what surprise did you get?
 
@PeeHaa you are not 30 yet. You haven't unlocked "those days"
 
@Wes Some egg with a thing in it. But I still need to open mine
 
@Gordon I wish I was still 20 something :P
 
7:49 AM
@PeeHaa how old are you again?
 
Wes
@PeeHaa how can you resist opening it???
 
@Gordon 33
 
He has a +5-10 age modifier for smoking.
 
hahahahaha
 
Wes
lol
 
7:50 AM
And -5-10 life expectancy
Ok that's enough smoking shame for one day.
 
@Wes It's kinda a bootleg egg. Not the same taste
 
@PeeHaa really? I always thought you were 25-27ish
@Fabor there is no such thing as enough smoking shame
 
Kinder Egg toys declined HUGELY in quality over the years. My favorite one was in Africa, I got one with a little flick basketball game. Now all you get at crappy single pieces or cheap cars.
 
people should just quit. If I could do it, so can everyone.
 
@Gordon Nope. I'm old like you
@Fabor Yeah :(
 
7:52 AM
@PeeHaa Welcome to the Old Farts Coding Club FTW
 
Yeah, I tipped in to 30 this year. </life>
 
Sorry for you
 
8:05 AM
Man, all these crypto currencies are going up a lot last week.
Wish they'd stop
 
lol
 
Shitcoin™ is going to be the next big thing.
 
moin
We consider 30 old?... ye gods..
 
I am 19, so my mid-life crisis just ended.
 
Wes
lately i am listening to abba all the time. what's wrong with me
 
8:13 AM
@Wes There's definitely something wrong with you, but listening to Abba has nothing to do with it.
 
Wes
@DamienOvereem we joke but it's actually acknowledged in the scientific fields that brain capabilities peak at around 20-25. so technically yes, at 30 we are in the descending phase already :B
 
oh god.. I hit 40 last oktober ...
I'm a decade closer to being senile ..
 
Wes
good thing that at least you keep your brain trained more than the average person
not as a mathematician probably, but still, better than the average people :B
i remember clearly that i had no problems with complex logic expression, e.g. mix of "not" "and" and "or", now i sometimes get confused by them and i have to break them down bit by bit in order to understand them...
 
wat??
 
Wes
stuff like (not x and not y) or z or not k
 
8:25 AM
morning
 
Wes
especially logical not confuses me, for some reason... :B
 
@Wes here is your segfault for the day: manatee and squid and not elephpant or pizza
 
Wes
head explodes
 
and I apologize for bringing that up again although I promised not to.
 
Wes
it's ok. i get reminded of that at least once every day
 
moin
 
mogguh chris
@DaveRandom how busy are you this morning? :)
 
Anonymous
8:45 AM
morning
 
morgen
 
@PeeHaa fairly, depends what you want :-P
 
@DaveRandom I need you to debug and fix an artax file upload call for me :P
 
actually @ThW I would like 5 minutes of your time if/when you have it pls
 
Wes
\o
 
8:50 AM
Going to push it to a separate branch and keep bugging you the entire day
 
@PeeHaa k, what in?
 
Comic plugin in jeeves
 
plugin to turn Jeeves into a comedian?
also, uploading a file to what?
 
Yep :)
@DaveRandom A webservice I just created
 
oh lol so it could also be a problem on your side :-P
 
8:52 AM
I doubt that. I am great and do all the things wright
 
:-)
does anyone know of a way to make datetime::createfromformat error out when it gets something that makes no sense (like the 30th Feb or month 0)?
 
when creating a simple html form with the required fields it works
 
> Connection to server severed before the request write could complete
first instinct is that the request Content-Length is smaller than the actual request body size
 
hmmm I don't manually pass the length
lemme try
 
Wes
@DaveRandom format it back to the original input.
function safeCreateFromFormat($f, $s){
    $a = DateTime::createFromFormat($f, $s);
    $r = $a->format($f);
    if($s === $r){
         // valid
    }else{
        // invalid
     }
}
 
8:59 AM
@PeeHaa need a capture of the bytes exchanged on the wire as a first step
most likely the problem will be obvious if you look at that
 
So wireshark?
 
is there no way to get artax to log them out?
 
Idunno. You are the expert
 
wireshark likely to be more difficult because I am assuming HTTPS
 
ah right
yes
 
9:01 AM
which you can do but you have to fuck around decrypting it
 
No thank you. I would prefer you just fixing it
:P
 
@DaveRandom There is on Artax v2, but it has been removed in Artax v3.
 
I am on 2
 
@kelunik That seems like a seriously missing feature, is there some way it could be implemented in a middleware-ish way?
 
How do I tell it to gimme?
 
9:02 AM
tbh I would just grep for fwrite() and add an echo :-P
that's usually faster than reading docs
:-D
 
Anonymous
morn
 
ohai o/
 
Hey jameson
 
@DaveRandom There will be in Artax v4, which will probably no longer be named Artax.
@DaveRandom Same here, that's why I removed it. ^^
And because the output format wasn't that good.
 
basically @PeeHaa, the server is either responding or abandoning the request before it has been completely transmitted. Which means either there's a major syntax error (in the case of the server dropping the request) or the request indicates that it is shorter than it really is (or artax thinks the request is longer than it really is). A request should indicate it's length with content-length, but it may also be indicated by the end of a multipart message.
 
Wes
9:06 AM
@JayIsTooCommon <3
 
POST / HTTP/1.1
Content-Type: multipart/form-data; boundary=7c8efdceaab5c48d5dc0c051fabaabaa
Content-Length: 213195
Accept-Encoding: gzip, identity
Host: comic.pieterhordijk.com
User-Agent: Amp\Artax/1.0.0-dev (PHP)
Accept: */*

--7c8efdceaab5c48d5dc0c051fabaabaa
Content-Disposition: form-data; name="api_key"
Content-Type: text/plain

xxxxxxxxx
--7c8efdceaab5c48d5dc0c051fabaabaa
Content-Disposition: form-data; name="userfile"; filename="219af8b1-4f2f-4a93-afa5-8151537994f2.png"
Content-Type: application/octet-stream
 
So either you have a content-length that is not being sent correctly, or the multipart message is prematurely indicating it has ended
 
Sorry all
 
Anonymous
@Wes >3
 
brb
 
9:07 AM
It looks like it's not doing the file data at all?
And my server is being a good boy waiting for the rest of the bytes to come in because of the length?
Does that make sense?
 
@PeeHaa yes because with HTTP 1/1 and no Connection-close the server & client have no other option then to wait until length(content) == Content-Length to know when the req/res is completed
 
Now go fix my plugin :P
 
Wes
why is it wrong accessing a static member using $this again?
 
Because you are working with a class not an object
?
 
Wes
i mean, it's not as bad as accessing a object method statically :B
or am i missing something
i can't get self:: to autocomplete because there's no way to phpdoc comment it, but i can do /** @var MyClass $this */ and have e.g. $this::MY_CONSTANT working
 
9:21 AM
@Wes why would you do that though? If it's $this then self (or static) will work fine
 
Wes
@DaveRandom it's a closure that gets rebound. i can get $this working but not self:: or static::
 
@tereško Aren't you in Latvian now? Well where are you?
 
@PeeHaa what is nginx logging?
 
Nothing much
 
firstly what is the response code logged in the access log, and secondly is it logging any errors?
it must be at least logging the response code
 
9:25 AM
> 188.56.25.64 - - [19/Dec/2017:10:06:08 +0100] "POST / HTTP/1.1" 408 0 "-" "Amp\x5CArtax/1.0.0-dev (PHP)"
408
timeout
 
Wes
 
Pretty sure that the UA string is lying btw because "amphp/artax": "^2",
 
@Wes you are implicitly coupling the closure to the class, so why not just use the class name?
 
Wes
$this is not of one type only. yeah i realized i could improve this :B
 
The fundamental problem with variable access to static members is that static members are not part of an abstract interface, they are part of a concrete implementation
Also @Wes you know that Closure::bind has a 3rd arg?
 
Wes
9:30 AM
yes
 
and that doesn't work for you because...?
 
Wes
for the autocomplete?
code works, regardless of call bindto or bind... it's the autocomplete that doesn't work :B
but i can improve that
 
I feel like this question is symptomatic of a much bigger (actual) problem with the code :-P
 
Wes
yes :B
did you see my answer about datetime
 
@PeeHaa well clearly this is an issue with the formbody/filebody implementation in artaxv2, but I can't see it from a cursory glance
@Wes oh no, reading up, moment
 
Wes
9:33 AM
i'm not sure how reliable is that because i don't often have wrong dates. but it helped occasionally spotting some errors
 
@JayIsTooCommon You're back.
 
@Wes Yeh I do something a bit like that atm, was hoping there was some magical thing I could do to make it throw that I didn't know about
 
@DaveRandom Poop. It's the last version supporting amp v1 :(
 
Wes
@DaveRandom intl calendar has the non-lenient feature that spits out the error if the date is invalid
 
Why is programming still so low level with writing so much code, instead of generating most of it?
or abstracting it to the next level
 
9:37 AM
@PeeHaa try removing this error suppression
see if you get any errors logged
 
@PeeHaa I said a long time ago that you should upgrade. Artax officially doesn't get any support anymore in a few days.
 
@kelunik Yes. DSo Are you going to update all code and dependencies? :P
 
@PeeHaa I have done my work and wrote a better DNS and WebSocket lib, now it's your turn. ;-)
 
:D
Jeeves is going to be a huge thing though
Especially with the deps
 
@Wes yeh I was hoping to avoid the icu dep for this project, it's supposed to be "lightweight" and "portable" but at the same time it's PHP7.1 minimum version and I suppose it's reasonable to assume that intl is installed in most places 7.1 is
 
9:39 AM
!!dad
 
What do you call cheese by itself? Provolone
 
@kelunik you mean artax v2?
 
@bwoebi yes, obviously
 
I already worked around icu once with some fucking retarded iconv() tap dancing, I might just relent
 
guys what does "crash course" mean? It means a long course? Or expert course? or what?
 
9:40 AM
@bwoebi Could you debug the segfaults please?
 
@Shafizadeh it means "short, intensive course"
 
ah, good
 
Wes
@DaveRandom i wish php relied more on icu. a fuckton of the standard library should just be replaced with icu
 
@Wes while I agree in principle, icu has one major problem that's hard to ignore (imho) and that is the fact that's it's geared towards UTF-16
You can make it use UTF-8 by default, but then we'd have to ship our own bins because the system version won't be compiled like that
 
@Fabor Hi how are you doing today?
 
9:49 AM
Wut
 
Wes
@DaveRandom the system version?
 
$ php -l ./path/to/script.php
' in ./path/to/script.php on line 28
 
Wes
i think icu has both utf-8 and utf-16 versions, but utf-8 is incomplete and the developers actually suggest to use utf-16 and convert when necessary
 
@Sean somebody sneaked a carriage return in?
 
@Wes as in, the one shipped by apt/rpm/whatever. For the most part, those distros try to ship a single copy and build against it
 
Wes
9:51 AM
because basically internally it treats utf-16 as a fixed width encoding for ucs only strings
 
which is how we end up with those fucking retarded backports
 
Nope, just a bad bracket
 
Guy can anyone help me out making my system secure. I have a general question, it would be appreciated if anyone can point me in right direction?
 
@Wes yeh, which would be pretty expensive for PHP, because there would be a lot of converting back and forth for any moderately complex unicode-based app
 
Wes
i read on the mailing list that the utf-8 support will be abandoned because it's just not worth it
but they might support utf-32 in future
 
9:53 AM
I want to prevent data access or you can say hide data and few apps like (MSoutlook, Wamp folder, Skype, Browser Access, and few directories in my computer).
 
@Wes oh, sure, let's use a more retarded representation :-P
 
Wes
utf-32 means no hacks
and memory is cheap :P
 
Guys what is the best way for
"I want to prevent data access or you can say hide data and few apps like (MSoutlook, Wamp folder, Skype, Browser Access, and few directories in my computer)."
 
What would be the best way to duplicate each value of an array . e.g. I have an array (1,2,3) I'd like to make it (1,1,2,2,3,3). Is there some function I could use?
 
@Wes true, but that's the Java attitude. 4 bytes here and there sounds like not a lot, but when your primary function is string manipulation (which, in case you haven't noticed, is the entire job of web servers :-P) those bytes quickly become gigabytes
 
9:56 AM
@PeeHaa To my experience it's not that hard upgrading from Amp v1 to Amp v2, we spent way more time improving the APIs themselves instead of spending time on those upgrades.
 
@Wes imo this is just not worth pursuing unless PHP's string model is changed to "char array" instead of "byte array". Without that abstraction, PHP's model is always going to require devs to think about binary representations, so we might as well keep the footprint as small as possible.
 
@DaveRandom @PeeHaa @Ekin @bwoebi Anything other PhpStorm should handle? I have: "Warn if returned promise is not used" and "Infer yielded types in coroutines"
 
imho
ymmv
 
@kelunik It's mostly just a loooot of places
@kelunik Not sure from the top of my head
 
@kelunik warn if a mix of promise/non-promise is yielded?
 
10:00 AM
@PeeHaa Things like ->when(->onResolve( can be done with a global find and replace, the most annoying parts are probably replacing Amp\pipe and finding missing yields for Artax' bodies.
 
i.e. yield $obj->doSomethingAsync(); yield 1;
 
Wes
there is a paper somewhere on the icu website, they've benchmarked it @DaveRandom utf-16 in the ucs range, fixed width, is much faster. you use less memory on average because utf-8 strings stay in memory for longer, since they are harder to make operations upon. locating a substring in ucs is constant time, utf-8 requires linear search. utf-8 is good for transferring data, but not for string manipulation
 
@DaveRandom good point
 
is yield a php thing?
 
@kelunik We almost never used when. But there are also api changes it things like artax
And other libs
 
user8057627
10:04 AM
Can I ask questions related to jquery?
 
Wes
ahahahaha
 
:-)
Need to add support for the other illustrations etc, but /me likes a lot
 
Oo, I earned a famous question badge :O
 
10:28 AM
mornings
 
I just got a secret hat
What the hell is a hat and why is it secret
 
10:43 AM
@Seongwon I would be mighty carefull with that. The horde might grab their pitchforks and hang you.
 
!!comic thelook nevermind @DaveRandom. I fixed it...
 
:-P
 
what was it?
 
10:51 AM
@DaveRandom I moved the generation of the comic also to the webservice. Which is actually a much better idea anyway
So the service just expects a post request with an api key, mood and text
 
well I don't understand why that would make a difference but OK... :-P
 
@DaveRandom Because I don't need to upload the file
The webservice generates it and gives me back the url
 
oh lol I though you were uploading it to imgur or sth
 
Nope :)
comic.pieterhordijk.com
Also I need a room11 subdomain for it actually<3
 
I'm pretty sure you have access to the domain cpl
 
10:54 AM
gimme gimme gimme
oh rite
\o/
 
> peehaa.room11@p*******k.com
how that works I dunno though
 
kk tnx <3
 
I just have it associated with my actual google account
 
I will figure it out or bug you later
 
@Gordon sure. But I'm a little late I guess ^^
 
10:57 AM
@PeeHaa btw I set up CAA for room11.org pegging it to letsencrypt, but I assume this is not an issue
also I think I did a hsts preload for it
 
Nope. It's fine
 
may not have got around to it though
 
@Gordon Assuming it's a user entity, I don't think a user should be able to render or save itself.
so second for both
 
@Wes fair enough, but I still think it's likely to create more problems than it fixes with PHP's current string == char* approach
 
But if user is a UI component (like in react), then render would make sense
So it depends on the context I think
 
10:59 AM
@Patrick that's the thing… why, on the one hand, it should be full of business logic, but on the other hand, not with render or save?
as in "avoid anemic domain model", but dont put render or save into it
 
Because they are presentation and infrastructure logic
Different layers
 
@Shafizadeh I am in Latvia, in Riga, to be precise
 
I think it's just separation of concerns in the end
 
also, mornin' everyones
 
moin o/
 
11:02 AM
@Patrick I heard ladies ride on tigers there. is it true?
 
wat
 
I second that wat
 
There was a young lady of Riga
Who went for a ride on a tiger
They returned from the ride
With the lady inside
And a smile on the face of the tiger…
 
@Gordon! Hey, @Gordon, there is some twat at you computer, writing bullshit
 
no, I lock my screen when I leave the computer.
so what about the tigers in riga now? and the ladies.
dont tell me you dont have tigers or ladies
hello @MarkBaker… it's your bday today, right?
11
 
11:17 AM
\
@MarkBaker my condolences
 
@Gordon Yup, 39 today (if thinking in hex)
 
happy birthday :-)
 
it's the annual "look up what's new in life extension research" day
 
Glad you finally got your elephpants
 
Happy Birthday!
 
11:24 AM
Sorry it took so long
 
Gratz @MarkBaker
 
happy birthday @MarkBaker :)
 
Thank you's peoples
 
@MarkBaker Happy BDAY!!!!!
 
@MarkBaker happy birthday
 
11:36 AM
@MarkBaker Happy Birthday :)
 
Happy Birthday! :o
 
@MarkBaker yeah, I am glad, too. Thanks much for handling it. I guess it was a pain for you.
 
Certainly frustrating, but those last ones are all sent out now, and I'm just hoping that they all arrive safely
 
konbanwa
 
12:47 PM
Is it just me, or does every Laravel question however stupid gets upvoted immediately as it is asked?
 
yes.
that stuff happens in too
 
you cannot answer yet to an "or" question
 
@Gordon it short-circuits
 
@Gordon Yeah, you can answer later. :P
 
12:51 PM
var_dump(itsJustMe() || everyLaravelQuestionHoweverStupidGetsUpvotedImmediatelyAsItIsAsked()); // bool(true)
4
 
@mega6382 I'm sorry Dave, I'm afraid I can't do that
 
@DaveRandom Mind, tweeting that?
 
12:54 PM
var_dump(itsJustMe() || everyLaravelQuestionHoweverStupidGetsUpvotedImmediatelyAsItIsAsked()); // bool(true)
 
s/var_dump/dd/
 
lol
 
E_STATEMENT_NOT_LARAVELLY_ENOUGH
 
huh? timeout?
 
!!angry
!!uptime
 
12:57 PM
╔══════════════════════════════════════════════════════════╗
║ [2 hours, 10 minutes and 35 seconds] without an accident ║
║               since [2017-12-19 10:47:04]                ║
╚══════════════════════════════════════════════════════════╝
 
!!horoscope
 
@FélixGagnon-Grenier Usage: !!horoscope <sign>
 
!!horoscope taurus
 
> ♉ Taurus
Love, wisdom, and luck are all strong in your zodiac sign this week, providing further proof that you are not your zodiac sign.
https://www.theonion.com/your-horoscopes-week-of-december-12-2017-1821225885
 
!!horoscope pisces
 
12:58 PM
> ♓ Pisces
You’ll continue to spend your days covered in feathers and bird shit, proving that being dressed by birds every morning isn’t all it’s cracked up to be.
https://www.theonion.com/your-horoscopes-week-of-december-12-2017-1821225885
 
inb4 /derail complete \o/
commuting, laters
 
lata
 

« first day (2621 days earlier)      last day (2318 days later) »