« first day (2441 days earlier)      last day (2498 days later) » 

12:19 AM
Using properly JavaScript code is probably your best bet. — Danny Fardy Jhonston Bermúdez 18 secs ago
What does that even mean :P
 
probably something like "I read too fast"
I know because I reaaaalllly often comment that
 
I need to bridge two more hours
somehow
 
"bridge"?
like... quickly get through?
 
yes. stay awake
 
well, there is always the possibility of arguing with laravel fans on twitter
 
12:24 AM
That only makes more more tired :P
 
@PeeHaa Where did you get that?
btw, it's been a while. :)
 
the comment was deleted quickly, probably when poster realized this was... a funny thing to comment ;)
 
lol, how much more "proper javascript" does he want me to do it?
 
HOLY FUCK @Wes, WAS THAT DANAERYS ON DRAGONSTONE!!!!!!!! OMGGGGGG!!!!!!
ERMAGAAADDDDDD
ahem. sorry.
 
@reikyoushin yeah it was a comment under your question
And yes been a while indeed :)
The other comment may have a point btw
momentjs is great and does all the things
Maybe they fixed that up too
 
12:31 AM
aaannd, it doesn't use left pad, so you should be safe
also dat lazy answer.
 
aaaaaan morning
 
an fine morning to you too
 
Wrong DB2 drivers link – #74795
 
imo one should never do date stuff in JS without moment
JS datetime stuff is even worse broken than php's
 
@PeeHaa I dont have momentjs in my app, it is based on angular though. the problem is that the Date object is the one that garbles up the year. Should I just replace the slashes with spaces before running it through new Date()?
 
12:34 AM
shocked gasps in the audience
 
test momentjs in isolation
If it works add it to your app
You can never have enough dependencies in JS applications
:P
Rob seems to agree with me
 
:P
@PeeHaa he doesn't seem to keen on reading other people's comment too
oh, I just assumed their sex. bad me.
 
Why is LSP so hard for people to grasp? :-(
 
^ There, now I gotta test it in IE11
 
-2016 :D
 
12:51 AM
maybe that's 2016 BC
 
Sometimes I'm on the internet, and I'm like, damn, internet, you so cray
 
@reikyoushin It's IE afterall :P
 
@bwoebi because visual debt
 
Note that IE9 and IE10 returns the correct date
 
@FélixGagnon-Grenier meh, that joke is old.
 
12:52 AM
yes ;)
 
@bwoebi SO'S YOUR FACE
 
~Maybe IE11 is supposed to break stuff~
 
@Dereleased It's maybe old. Yours is older though.
 
<-- doesn't know how old bob is. Thinks bob probably has a lovely face
@bwoebi Oh my god the oldest. It's like Methuselah chainsmoked. And TANNED! (Mine, I mean)
 
12:55 AM
@FélixGagnon-Grenier OMGOMGOMGOMGOMGOMGOMGOMGOMGOMGOMG
 
dat reskin
 
@PeeHaa You have IE11? You would see even moment.js returns "-2016" LOL
 
7 mins ago, by PeeHaa
-2016 :D
I ran it :)
 
@WesStark lol is that a b&w version of the husky with a lovely face with the bad puns meme?
 
Also, I'd say people don't get LSP because they're sure that a comment ISA type of post
 
12:57 AM
What the.. my question was marked as duplicate
1
Q: IE 11 returning negative year when creating new Date using MMM/dd/yyyy

reikyoushinWhen I try to use new Date("Dec/30/2016") it returns Fri Dec 30 2016 00:00:00 GMT+0800 (PHT) but when I do this on IE11, it instead returns Fri Dec 30 -2016 00:00:00 GMT+0800 (PHT) Is there a way to patch this up like a polyfill/shiv to make it work as expected?

 
@FélixGagnon-Grenier i had a waving panda, now i have a waving direwolf
... sorta
 
awwwwwwwwwww
 
That direwolf is disguised as a husky
 
Why can't I embed jsfiddle on my SO question?
 
@PeeHaa you can't tell from the picture but that's 300kg of animal #iswear
 
1:01 AM
:P
 
@reikyoushin yes, I'm not sure either, I find it's different enough to not warrant a duplicate
 
My question is more specific than the one he linked to..
 
@reikyoushin no worries, I am pretty sure this will get reopened
 
i'm about to try another render of the elesquid
 
yeah. Will check later. thanks!
 
1:13 AM
@PeeHaa I have an updated one.. jsfiddle.net/hx038a03/5
 
Yeap. Looks like you have to fix it yourself :)
 
@PeeHaa maybe I could fix it by always removing the slashes.. let me check if it works.
 
1:37 AM
gl @reikyoushin. I have to go out now
laters all o/
 
2:08 AM
@FélixGagnon-Grenier @PeeHaa
ignore the errors
and the incomplete trunk :B
 
that's... actually gorgeaous @Wes
I like how the "fang", ugh, ivory thing, is mirrored by the empty space
where did the big pixels of color idea came from? it's very cool
 
it's a trend in flat design tbh :B
 
nothing new
 
I really know nothing jon snow
I would make their width gradual though
 
2:12 AM
what do you mean?
the dark area of the ear is perhaps a bit too dark
 
the first three strips from the outside are equal width, then two big ones, then three small. would it be ok with gradually increasing width?
not sure about the dark thing, I don't know, but if you say so, it's probably true
 
strips of what?
the slices around the circumference?
 
hmmm, yes, I think
basically, the strips of colors. each color change corresponds to a strip, yes?
there are three color change strip, from the outside of the circle, before having two big colors squares
 
i have no idea what you mean. can you put an arrow in mspaint :B
 
:)
sure, just a minute!
actually, several minutes, I suck at this :)
 
2:21 AM
but i can already tell you, almost everything is precise. there are 18 slices around the circumference
 
also, I hope I am not insulting you with my ungraceful ideas about design.
yes, such canadian, very excuses, blah blah blah ;P
hmmm... but yeah, I guess that it would be worse if the color separation would cross the eye or something
 
aehm
there is a gradient
 
and you probably thought about all this already
 
you probably have a terrible monitor :B
 
what, is taht the golden ratio?
 
2:29 AM
notebook i'm guessing :B
 
yes ;)
nah
terrible monitor, but not notebook
 
you seriously don't see that line?
not even barely?
 
hmmwat?
yes, I see the lines
but the distance between each color change goes like, 0.99, 1, 1.01, 10, 12, 1.01, 1, 0.99
 
so you mean they should be a evenly spaced
not necessarily linearly
 
nah, more like, 3, 5, 9, 13, 9, 5, 3
 
2:31 AM
yeah, it won't work :P
 
2:47 AM
@WesStark I won't be of much use atm. I am a zombie on the airport
 
ha :P
 
Gonna try lots of beer to see if it helps
Brb finding a bar that is still open
 
dude. try and catch your next plane @PeeHaa
 
3:04 AM
2 more hours to go...
 
@PeeHaa are you diing?
 
Yo, you guys any experience with failing external drives?
 
@Ocramius diing? :p
 
doong
 
3:16 AM
@PeeHaa deeng
oh, interesting, must have found a "bad apple" vocabulary
listing "diing" as valid conjugation
 
Deeng? Not sure if you talking gibberish or me sleep deprived
:D
 
both
 
;)
Yay found beer
Life is good again
 
4:01 AM
morning
o/
 
@PeeHaa I just ran out of beer… now I'm sad. :-(
 
Sorry :(
 
It's ok… I have whiskey.
 
But tbh I really need it :p
Damn you
/me orders another beer and whiskey
 
Whiskass
 
4:04 AM
I know little about Kentucky and probably wouldn't like it there much… but they certainly know how to make a quality potent potable.
 
Funny thing. Some random (for me) girl just started talking to me.
Hey aren't you that guy that was drinking whiskey and beers on the plane early morning couple months ago
How the duck do people remember that
 
She wants the peehaa
 
She's gay
 
Be careful though, she might not be prepared for the full PeeHaa experience.
 
I remembered that what she talked about that trip
@Trowski nobody is ready for that
@Fabor sorry taken. Already told @JayIsTooCommon a 1000 times
 
4:08 AM
@PeeHaa Jay is too pretty for you.
 
Hehhehe true
 
You were supposed to come to Vietnam and find a gf PeeHaa
 
I don't think non vietnam gf would agree :-)
 
Maybe she would. Ask.
 
:p you ask it
 
4:17 AM
don't ask
 
Teenage mutant ninja squids \o/
10
Sorry no sleep and beer
 
:B
 
moin
\o/
o
\o/
 
morns
 
o/
 
4:21 AM
\o
At paradise yet?
 
maybe I am drunk I see lots of phelephant
 
@WesStark That's awesome.
That should be a T-shirt for Amp.
Seriously.
 
look at the actual one please, in the amp room :B
 
@RonniSkansing still at airport in NL drinking beer
And found a filthy smoking area
 
4:33 AM
Do a deadpool one next.
 
I expect a GoT one first somehow :)
 
What's the correct method for this? I have members delete content, i mark it for deletion in database and no longer display the contents. Now, the image that's to be deleted after a week, do I move it to a non-accessible folder OR do I change permissions and change it to not allow reading?
 
@PeeHaa lol
afaik there are mammoths in the books
and giants ride them
 
@PeeHaa (=yay
 
i.imgur.com/amJGu5m.png guys i don't know what you think but this is awesome to me
 
4:38 AM
Dunno. Books are effort
 
cc @Trowski ^
 
So... user_id or userId?
 
ear is not perfectly shaded yet but nearly
 
@WesStark I agree, looks fantastic.
 
Quick! Shiiip iiit
Before bob or saint niklas are here
 
4:41 AM
the ear is still a bit too dark
but otherwise only the trunk is missing
 
Saint Niklas? lol
 
morning
 
why isn't bob a saint
 
Cmon
He's bob
Such an outlaw
 
is bob robert? i wondered just now
 
4:46 AM
 
Wat :p
@Trowski there better be children in there
 
what's on the sign
TOR
 
Paint
 
frehalten?
 
@PeeHaa I certainly hope not… I assumed that was the dungeon where he was kept.
 
4:47 AM
:-D
 
i'll add a window and a sign, "don't feed the beast"
 
hehe
 
Brb thing is going into the air o/
 
lata \o
 
5:15 AM
!!dad
 
Why was the function sad after a successful first call? because He didn’t get a callback.
 
if (!extension_loaded('fileinfo')) {
	if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
		if (!dl('fileinfo.dll')) {
			exit;
		}
	} else {
		if (!dl('fileinfo.so')) {
			exit;
		}
	}
}
Would that be the correct way to check if the fileinfo extension is loaded or not?
 
yes. though dl() is disabled on most systems IIRC
 
@Gordon Ah, thanks :)
@Gordon You're right. Just reading about it on php.net. Would it be safe to leave it in there anyway? It's for a secure image upload library I'm writing. I could just only test if it's loaded or not and return some error if it isn't. Just thought it'd be a nice courtesy to try and load it for them
 
you could add a test for function_exists to see if dl is available
 
5:30 AM
Of course. Thanks a lot :)
 
dl doesn't even exist anymore iirc
since php7?
 
@WesStark Not sure if it no longer exists. php.net says it's disabled in php7: 7.0.0 dl() is disabled in PHP-FPM.
But with the function_exists test it doesn't really matter. I think fileinfo is enabled by default on most systems these days. I'm just implementing the test to be absolutely sure
I had the idea after my answer on this question: stackoverflow.com/questions/38509334/… It's quite popular and I'm even receiving a couple of emails by users about it.
Still my knowledge about PHP only goes so far. The library works fine but I'm sure the code can be improved by others with more knowledge. Perhaps I should make a documentation about it and have others work on it
 
@PeeHaa This is dumb..
var patchIE11Date = function(dateStr) { return new Date(new Date(dateStr).setYear(Math.abs(new Date(dateStr).getUTCFullYear()))); };
Assuming I don't need years in BC..
 
6:04 AM
@bwoebi @trowski github.com/amphp/aerys/blob/… should really just use Amp\call.
 
6:18 AM
@kelunik I think (at least initially) it's reasonable to queue pending requests when a given server runs out of spare IDs. > 65536 pending requests for a given server is basically never going to happen, and when it does it's most likely because the server is having problems, so creating a second socket with a new ID pool isn't going to accomplish anything and may actually exacerbate the problem.
 
good mornings
 
chances are that even if you just push requests in a loop, by the time you register the 65536th the first one will have received a response. DNS is generally very fast.
I would place handling this very much in the "future scope if anyone ever actually has this problem" box
 
I would handle the limit (e.g. error out).
 
Well we can still queue them, the client will only see a delay
 
ah okay
 
6:21 AM
the worst that can happen is that they time out
in which case the timeout will be reported as usual
 
but waiting for a timeout can be cumbersome. perhaps giving a warning on the host at least if someone finally triggers that.
 
@DaveRandom Yes, we can just do that, too, but we have to be careful with timeouts, because a slightly slower server might then answer a little late and the client will use that answer as an answer to a new question?
 
@kelunik the response packet will usually contain the original question record, and even if it doesn't you can compare the name in the answer records
@hakre well... not with amp :-)
you are just doing $response = yield $client->request(...) which will throw a TimeoutException that can handle with a try/catch in the usual fashion
It's opaque to the consumer, as if it were synchronous
@kelunik we can short-circuit over the extra checks by maintaining a list of "timed-out IDs" and only performing the extra checks for responses with IDs in that pool. Again, in the general case this should be a very small percentage of the pool
that said, it should probably be optional to turn the extra checks on for all responses (or on by default maybe), I can see it being a useful anti-spoofing measure
 
@DaveRandom I applaud your confidence, then throw an exception ;)
 
i_have_no_idea_what_im_doing_dog.jpg
 
6:37 AM
@DaveRandom We should just turn that on everywhere.
@hakre Already have a plan what you'll build with Amp? :P
 
@kelunik have to real work but will be back in ~3hrs to actually do some stuff
 
@DaveRandom Well... will start having no time in ~3hrs...
 
god damn it
well I will start by porting the existing amp/dns to ampv2
 
@DaveRandom That's already done.
 
...
I will find something useful to do
 
6:48 AM
The main thing we actually need to change is removing the CNAME queries if possible.
 
OK well that should simple enough #FamousLastWords
 
@DaveRandom Do nameservers always resolve them?
And the other question is whether we can cache on response type or just on query type.
 
o/
 
@kelunik When a name server fails to find a desired RR in the resource set associated with the domain name, it checks to see if the resource set consists of a CNAME record with a matching class. If so, the name server includes the CNAME record in the response and restarts the query at the domain name specified in the data field of the CNAME record. The one exception to this rule is that queries which match the CNAME type are not restarted.
 
So yes, we can safely remove them then.
 
6:54 AM
As long as we always set the recursive flag, then yes (at least, that's how I read it)
again, that can go in the "future scope if anyone ever actually has this problem" box
 
Yes, if problems arise, we can always change it back / improve it.
Currently the people have more problems with it sending too many queries and not having a persistent cache.
@DaveRandom Did you have a look at the new master branch yet?
 
@kelunik I will re-read the RFCs about this later
given that the TTL is defined at the record level, my gut says we should just cache records rather than whole responses
and resolve entries from the cache based on the query type only
 
@Gordon did you warn your people I was traveling through?
The only thing I didn't have to do was bent over
 
Like, if I ask for an A record and the response includes a CNAME record, a second request would just pull the corresponding A record from the cache. Because I asked for an A record, I don't care about the CNAME
 
@DaveRandom We actually cache records... somehow.
 
6:59 AM
But the day is still young I guess
 
But internally the initial response would have created an A record in the cache for the aliased name as well as the requested name
@kelunik no, I will in a bit
actually need to do work now or will get shouted at
 
@DaveRandom github.com/amphp/dns/blob/… caches by type, but all records of a type, not individual records.
 
@kelunik I suspect that is "wrong" in theory but immaterial in practice
 
@DaveRandom We'd need a cache with wildcards otherwise (for querying)
 
Sorry can you elaborate on that?
client shouldn't know about wildcards
 
7:03 AM
don't mean to kill anyone's productivity but today's google experience is pretty awesome :D
 
unless I'm missing something
 
Hi , i have a doubt . We can generate screenshot or pdf of the current web screen [which is dynamic like user can insert images , they can movr images anywhere in the div etc ] using php?
Please reply
 
No, that would be a client-side job, that would usually be accomplished with the browser's "print" function.
 
or i have 2 question , can we done this using both php and jquery
-1
Q: Making a proper image capture of Current screen using jquery Or PHP or Convert div to pdf

abilash erI write some code for to convert svg to inline svg and take screenshot of that div . Please check .Please copy this code int to your local host and test it . Because screen shot is different in different width . https://jsfiddle.net/7bqukhff/15/ <link href="style.css" rel="stylesheet"> <scrip...

0
Q: svg image is not coming when converting html page to pdf using jQuery

abilash erThis is my html page . https://jsfiddle.net/4qeb9r9t/ $(function() { $( "#img-div" ).draggable(); $('.pdf').on('click',function(){ var pdf = new jsPDF(); pdf.addHTML(document.body,function() { pdf.save('web.pdf'); }); }); $(".desgign-class").on("chan...

 
You would be better asking in chat.stackoverflow.com/rooms/17/javascript
PHP really has nothing to do with it, it's all client side
 
7:12 AM
@DaveRandom If you cache single records, which cache key do you want to use?
 
...the question name?
 
If you have multiple response records with different TTLs?
 
@DaveRandom ok. Php is server side . But may be you can help me with this . Please check that questions . Also i have other doubt , some time websites are give ablity to use for drawing their pictures , signatures etc thtat time how they are saving this pictures ?
@DaveRandom i already asked there . May be someone from here also can help
 
@kelunik Well a record is cached with an absolute expiry time. When a request is looking at the cache, it iterates all matching records and returns only those where the expiry time is in the future, and removes others from the cache. General cleanup depends on the specific cache implementation, but e.g. could run a cleanup loop once a minute.
 
@PeeHaa yes
 
7:16 AM
@abilasher I don't know, I don't really do a lot of web stuff
 
@DaveRandom ok . Thank you :)
 
@DaveRandom That works with ArrayCache as implemented in Amp v1, but not with any other cache like Redis.
I think if you have multiple records, they usually have the same TTL, so we're completely fine caching with the minimum of them.
 
@Gordon tbh at some point gloves came on and I was scared
Tl;dr your zoll are morons
 
@kelunik ugh
fine
simple is better I guess
 
Yes, definitely.
 
7:21 AM
@PeeHaa should have left your drugs at home
 
@Gordon actually did. Had the swaps to prove it
 
3 messages moved to Trash
 
> Jeeves has invited you to join Trash.
 
look in the amp room
 
7:23 AM
moin @Jimbo
 
mornin
 
mornin
 
7:38 AM
morning
 
7:51 AM
mornin
 
what if we gave the elesquid a BFF @kelunik
 
lol :D
We could actually make it grey now and use a green twig to have still color in there
 
Does anyone know if in Java you can just do new Object instead of new Object()
(as in, no brackets)
Or is it just PHP that does this?
 
no @Jimbo
 
Anonymous
mornin
 
7:57 AM
yes, just php
 
@Jimbo no.
 
Anonymous
yesterday, by Wes
@Kurisu WHO THE F ARE YOU
 
you can do (Object)null tho or something like that :B
@JayIsTooCommon a boy has no name
 
Anonymous
lol
 
Anonymous
the line at the bottom of the ear is weird btw
 
7:59 AM
@JayIsTooCommon do you like the BFF
 
Anonymous
apart from that, i do indeed :)
 
i wanted to do it magenta but people would complain about gender discrimination. i liked magenta because of the color, not because boyz and girlz
 
Anonymous
@PeeHaa taken but still a slut
 

« first day (2441 days earlier)      last day (2498 days later) »