« first day (1381 days earlier)      last day (3559 days later) » 

9:00 AM
@BenjaminGruenbaum Oh you answered too ?... Well, a queue is basic programming, you don't need to know jQuery for that... But I'll remove my answer as I had in fact forgotten that jQuery had a kind of promise...
 
No worries, im really new to javascript just grabbing the basics
 
@dystroy NOOO YOU NEED A PLUGIN
$.ququueeue
 
Thanks guys just need to try your exampels
 
@dystroy you don't have to remove it and I was not criticizing, I was just curious on why you did that.
 
You may award your bounty in 23 hours.
Thanks Ben, worked a charm I will add that tomorrow when it comes available. Only one issue the animation stops before the end?
 
9:03 AM
have to make this .. the top bar is difficult
 
@World holy frickin cow I can't take it anymore! I love Schrödingers cat jokes, but seriously its SCHRÖÖÖÖÖDINGER and not SCHRODINGER you ignorant pricks !!!
 
@Brent What do you mean animation stops before the end?
 
Basicly the animation fires up for the loader and after the 2nd request it fades out. But in console all the uploads go up fine.
 
In that case another piece of code is doing $(".containerFixed").fadeOut();, is it always after the second request in particular?
 
Yes it is
And no there is no other piece of code
done with 0
After this one it the loader fadesout
 
9:07 AM
@BenjaminGruenbaum I don't use jQuery promises much, and I don't use jQuery ajax functions apart on SO, so I had simply forgotten you could chain them, and I'm used to this kind of queue writing so it was the natural thing...
But now I don't think my answer is useful
 
@dystroy oh ok
@Brent how many items are there in data?
 
over 100
but once done it will be in the 1000's
 
soon...
it's OVER 9000!!!
 
Im building a database builder from my CMS to Joomla, Im basicly converting my database to there's and uploading it via an api.
Sounds mad eh.. it is
 
and you do that in a browser ?
 
9:09 AM
Yeah
 
wh... why ?
 
Well im building a easy CMS builder that converts my data and imports it to there Joomla Site
I will be doing for wordpress etc etc
It will be the first of its kind if it works
 
@BenjaminGruenbaum how do you get around? plane, train, car?
 
@GNi33 train probably from Paris to Amsterdam through Brussels, from there to Prague through plane
 
43
Q: Files - in the database or not?

Jack DouglasWhat is the best place for storing binary files that are related to data in your database? Should you: Store in the database with a blob Store on the filesystem with a link in the database Store in the filesystem but rename to a hash of the contents and store the hash on the database Something ...

 
9:12 AM
okay. you won't pass through Austria I guess? ;)
 
Any ideas benjamin, no worries if not i'll try and fix it up.
 
Hmm
@GNi33 it's in the wrong side of Europe, sorry
 
yeah. Prague is pretty near, about 4 hours by car, 5 hours by bus. Planning to go there for a weekend again
 
It's nice and cheap if I remember it correctly.
 
beautiful city, absolutely astonishing
and the pubs are great :)
 
9:16 AM
Any tips?
 
do try the czech beer
 
the castle is a must see
we've only stayed for 2 days, so we didn't get to see too many of the local restaurants and bars
 
Charles' bridge is worth seeing, too. At least for the view from it.
 
definitely
 
it's kinda crowded during the day, though
the night skyline is worth seeing
 
9:23 AM
Wenceslas Square is worth a visit too, but those are the best known locations anyhow
the cool thing about it that you can find some small interesting places almost everywhere in the middle of the city
just make sure you'll have some time to just roam through the streets and explore the city that way
really enjoyed that
 
Czech out the Old Town Square and the streets around it
 
@JanDvorak lol :)
Well, there are like 3 things to do in Prague other than drinking a lot of beer and eating a lot of hot dogs which actually taste good.
 
if you're into that kind of stuff, Prague has the biggest stadium ever built, the Strahov stadium
 
The bridge, Wenceslas square and fortress.
 
9:25 AM
@GNi33 it's quite destroyed by now, though
 
I was already in Prague in 2010 and it was fun but Prague is no Berlin to be fair :)
 
@BenjaminGruenbaum you mean bridge, right ?
 
yep, it is
fascinating nontheless. I like stadiums ;)
 
@dystroy yeah, I did :P
 
go to Rome :P
 
9:26 AM
The Dancing House is our finest most famous piece of modern architecture. We call it a "crushed can".
 
@jAndy The game.
 
lol
 
:D
@JanDvorak our?
 
@FlorianMargaine I once worked on a server-side for an image service
 
s/our/czech/gf
 
9:29 AM
The way we did it there was rather simple, and very effective.
 
actually it was about @GNi33's love for stadiums.. Rome.. Colosseum :P
 
PetÅ™ín is worth visiting, too. Do you like astronomy?
 
When an image is uploaded, it is renamed to the sha1 hash of the file's contents.
Let's say we have a1b2c3d4 as a result of the hash
 
@BenjaminGruenbaum is it normal that these aren't freed? github.com/v8/v8/blob/master/src/objects.cc#L4615-L4616
 
The file is then saved as /webroot/uploads/a/1/a1b2c3d4.originalextension
The files original name, as well as any other relevant metadata is saved in the database.
 
9:30 AM
@FlorianMargaine uh.. sure?
 
ok, don't bother :P
 
The uploads directory is owned by the PHP user, and has a 600 permission.
 
@FlorianMargaine You just get a pointer to the Isolate, an isolate is a v8 runtime (like a v8 process) - freeing it any time you get a pointer to it would be absurdly costly :D
 
@BenjaminGruenbaum oh, true
I thought it would be something like that, thanks
 
When user requests for http://example.com/uploads/my-original-name.jpg, PHP will lookup the file's hash from the DB and serve the file from the uploads physical directory.
This setup worked with tens of millions of files quite easily.
 
9:32 AM
@FlorianMargaine np
 
@SecondRikudo why not just serve the folder under apache?
 
@FlorianMargaine Because I renamed the image, remember?
 
The image is no longer called my-original-name.jpg but a1b2c3d4.jpg physically on the disk.
@FlorianMargaine 1. It allows for images with the same name to be uploaded. 2. It's an effective dedupe.
 
@SecondRikudo but you serve the image under its name anyway
so you still don't handle dedupe
 
9:35 AM
I need a new rainbow on black idea for today...
 
@FlorianMargaine Technically speaking, it was http://example.com/uploads/userid/image-name.jpg
 
@SecondRikudo and why not create the folder userid and put the image straight in it?
sounds like an over-engineered solution for something as simple as static serving, from what you're explaining
 
Because I don't want millions upon millions of directories.
 
it's better to have millions of directories than a single directory with millions of files, that said
and.. why don't you want millions of directories?
 
@FlorianMargaine That's why I keep it physically like /firstletterofhash/secondletterofhash/hash.jpg
@FlorianMargaine It makes reading slow
 
9:37 AM
I'm not trying to belittle your solution, but I don't see the point of it
@SecondRikudo oh, that changes a lot
so it's just for fs performance that you did this
 
7 mins ago, by Second Rikudo
The file is then saved as /webroot/uploads/a/1/a1b2c3d4.originalextension
:)
 
php is le' silly
 
@BenjaminGruenbaum This solution isn't tightly coupled to PHP though
 
yeah it's just an fs performance issue there afaicu
 
9:39 AM
@FlorianMargaine TBH, that project was before the era of SSD
I don't know needed it is today
 
it's more related to the filesystem than the disk type
 
@jAndy I'm planning a trip to Rome for way too freaking long. I just gotta go some time
will go to Liverpool and London in December though, so maybe Rome will be next year
 
My favourite places in Prague, though, are the forest in HostivaÅ™ and the Hamr pond
 
@BenjaminGruenbaum why is php there again
it's like weeds in the garden
 
@BartekBanachewicz not sure.
 
9:51 AM
you work in the sun, trying to get rid of it
 
@JanDvorak cool :)
 
you pour chemicals on it
and then you leave and after 2 days it's back
terrible :|
 
The HostivaÅ™ neighborhood hosts some beautiful butterflies
 
hey guys
how r you today?
tnx im fine too ^^
guys got a problem of getting actual height of a nested UL list... my solution that im using now is $list.children().each ... += $(this).outerHeight(true)
and when i do that it doesnt get the the marging/padding from nested guys
any1 got solution for this?
 
$list.outerHeight(true) won't do?-
 
10:04 AM
if i use not nested list its ok
but if nested both mine and yours dont help
my parent li is smaller then the ul inside it
i mean the height is the same
but margin/padding
thats the problem
 
halp! I need to find out something to do with rainbows on canvas today! Suggestions?
 
assign the same margin to the list as well
 
@towc Nyan cat?
 
@SecondRikudo hmmm
 
@towc do you want a golden sky somewhere over the rainbow?
 
10:07 AM
@JanDvorak sure, why not
 
Because the next step, a sweet silver-song of a lark, would be problematic. Canvases can't do that.
 
@JanDvorak, tnx man it helped.... but i cant margin the same becouse its not very pretty after that...
 
@mikrowelt margins overlap, they don't add up
 
!!tell mikrowelt mdn margin collapse
Dangit
 
ohhh
thanks guys
now i got it)))
love u <3
 
10:23 AM
@BenjaminGruenbaum can you explain bluebird's setScheduler to me? The docs are rather vague as to what the purpose of it is
 
@SecondRikudo setting the scheduler, that is - changing how it executes asynchronous stuff.
Every .then is executed asynchronously - the scheduler is the part that decides how. For example - you can use setTimeout as the scheduler
 
I see
 
It's useful for things like $evalAsync hooks with Angular and their counterparts in other fws.
Also for mocking and testing
 
Okay, so in your Angular example
How does it work without modifying Angular's code?
 
@SecondRikudo lemme find that answer
 
10:31 AM
8
Q: How do I use Bluebird with Angular?

Benjamin GruenbaumI tried using Angular with Bluebird promises: HTML: <body ng-app="HelloApp"> <div ng-controller="HomeController">{{name}} {{also}}</div> </body> JS: // javascript var app = angular.module('HelloApp', []); app.controller("HomeController", function ($scope) { var p = Promise.delay(100...

 
4
Q: angularjs $q -> deferred API order of things (lyfecycle) AND who invokes digest?

artyThe $q service is very powerful in angularjs and make our life easier with asynchronous code. I am new to angular but using deferred API is not very new to me. I must say that I completely ok with the How to use part of documentation + there are very useful links for that within the docs + I ch...

 
@BenjaminGruenbaum this? ^
 
That one
Angular schedules a digest if one is not scheduled when you run $evalAsync - this is what $q itself does.
 
Define "digest"
 
If you don't know what a digest is you should probably read an Angular tutorial :D
@SecondRikudo personally I really like that tutorial
 
10:33 AM
Probably ;P
Will do o7
 
11:17 AM
ok, found out what my rainbow thing for today will be
this is going to be awesome
 
11:37 AM
Morning
!!monster original or baller
!!why are you never alive
 
11:53 AM
!!imissu
 
12:10 PM
Anyone knows of a way to place breakpoints on jsbin?
 
debugger; ?
 
:O Nice!
TIL
But it seems as though I still can't see the code being run
 
\o/
 
I finally got a couch for my apartment.
 
12:21 PM
 
@rlemon Can be done without JS
 
your point?
 
Should be done without JS :P
 
not what he asked for
people sometimes program for fun you know
 
@rlemon PHP people also program for fun
except they're into BDSM.
 
12:26 PM
Not everyone's a masochist
 
and so not everyone writes php for fun :O
 
PHP programmers are masochists.
 
yes that's more or less what BDSM means
the "BD" part gets even funnier in this context
 
@BartekBanachewicz if you want an interesting language discussion, you should hop onto #lisp@freenode
 
@FlorianMargaine I can't I'm moving squares
4
@WalleCyril cool avatar :)
 
12:35 PM
@BartekBanachewicz nice
 
@BartekBanachewicz I like the stats page
 
@BartekBanachewicz how do you control that?
 
@JanDvorak use the force mouse
 
I'm stuck on level 10
 
@BartekBanachewicz damn, it's addicting
 
12:41 PM
I lied. I got it
 
@jAndy thanks? :P
 
@FlorianMargaine I'm sorry :)
 
@BenjaminGruenbaum dmi :P
 
!!urban dmi
 
@SecondRikudo dmi = don't mention it
 
12:42 PM
Nice Job Benjamin. — jAndy 28 mins ago
 
@BartekBanachewicz oh. Apparently it doesn't like the mouse if you have a touch-screen
 
you deserved it. very nice "article"/answer about v8's optimizations
and since i'm a performance-matters guy, .. it was a breath of fresh air :)
 
@FlorianMargaine yea I had to bookmark and close it
not yet 9am
can't start the day off playing games
 
@jAndy I hope you don't use that optimization in your code though :P
 
any thoughts about Evolve anybody? (THE Game, muhaha)
 
12:49 PM
ps4, right? I'll probably get it, just because I can, but it doesn;t seem like my type of game. WOn;t know until more gameplay is shown.
 
Totally useful for promisifyAll and such, not very applicable generally.
 
I just started playing Divinity: Original Sin
 
@NickDugger I think its pretty much all platforms.. gameplay videos are out on YT
 
pretty good game, interesting mechanics
 
I'll watch a video of it then
So, its Left 4 Dead 3? lol. I'd probably get bored of it pretty quickly.
 
12:58 PM
Anybody play Unrest?
I guarantee it'll be the best choice-based RPG set in a fantasy version of ancient India that you've ever played.
 
Guys, there was a node-webkit IRC client on github some time ago. Does anyone know what the project was called? I can't think of the name
 
exactly! thanks a lot
jesus, that was fast :P
 
@BartekBanachewicz Do you know where it comes from ?
 
@GNi33 I googled "node-webkit irc client" and this was the 1st result :>
 
1:03 PM
yeah, I'm an idiot. I don't know what I googled before, but I couldn't find it.
tried it right now, bam, first result. Need more coffee
 
@JanDvorak shitty UX
@WalleCyril Of course I do
 
Wait what?
0
A: JavaScript replace newline escape sequence with newline

minitech[\\n] is the set of the characters \ and n. Just take off the brackets: ….replace(/\\n/g, '\n')

How did Minitech's answer get -1 (I just upvoted it) and bjb's get +6?
 
@rlemon is it a grown up Borderlands? I watched a video, looks awesome.
 
@BenjaminGruenbaum Some people think regular expressions are slow and generally unreadable
 
@mikedidthis it is hard to explain. I'll stream some tonight if you wanna see some gameplay
 
1:06 PM
I would definitely not recommend extending the native prototype for this sort of thing. Especially since it might be added in a future version of ECMAScript and this, especially being unguarded can mess with its behavior. — Benjamin Gruenbaum 5 secs ago
 
@rlemon sure, if I miss it, I can watch it anyway?
 
@copy seems fishy... it's a really simple regex... really simple.
Definitely not 'abuse'
 
@mikedidthis yea
 
Sweet. That would be awesome. I presume you got it for your PS4?
 
nahh pc
 
1:08 PM
Using regular expressions to replace regular strings in a string is also definitely not abuse. — Benjamin Gruenbaum just now
 
Oh, I am an idiot. I read that as Destiny, not Divinity. Idiot.
 
lol
it is like all of the old RPG's I used to play all rolled into one modern package
 
Looks pretty fun, is it only PC? The mechanics call for it, but I don;t have a play-worthy computer at all.
Googling it brought me to a forum, where I read the following:
> The game is a CRPG... last time I checked the C stood for computer and the ps4 is not a computer
lol'd
 
@BenjaminGruenbaum bjb's answer here looks retarded
2
 
Seems kind of dumb to stick the platform in the acronym.
 
1:15 PM
@NickDugger it kinda is
 
"Mass Effect is a CPS3X360RPG in which..."
 
@dystroy looks really retarded, when I opened the Q it had +6 with -0 and minitech's had negative score -_-
 
yea it wouldn't work well with a controller
keyboard and mouse are a must
 
@BartekBanachewicz The joke is that the user who wrote that was taking the "C" in CRPG to be too literal.
but yeah, it definitely seems like a mouse is a must for it
 
is there no mouse for PS4?
 
1:18 PM
PS4 mouse? You;d think they'd figure out how to handle keyboard/mouse input by now, but I don't think there is, no
 
@JanDvorak you can certainly plug it in for web browsing
The PS4 gamepad has a touchpad after all.
 
@Qantas94Heavy in case you didn't notice stackoverflow.com/q/24987896/1348195 is "hot network questions" right now.
 
That's true, but it's too tiny.
 
why does imgur have so much porn :(
 
@rlemon filter 18+ only?
 
1:21 PM
no clue how I would filter with the brute force
 
HAve you checked the API?
 
the API is limited with requests
I use the API for lemonmeme
I'm just going to download the images from somewhere else :/
 
you could scrape the gallery page
 
I just wanted to make a really big one :P but being able to see the contents of the thumbs (as it is right now) is NSFW
 
Just cut up the avatar wall in the PCG question I've linked you
 
1:22 PM
already did that. I wanted to test with MANY images
but alas life isn't perfect ;)
 
Google Images?
 
their api limits requests as well
 
@rlemon I don't think I've actually run into any porn on imgur; even when I occasionally browse user sub.
 
it would be a LONG scraper
 
@rlemon what's wrong with porn?
 
1:23 PM
> gi red
gi blue
gi green
...
@BenjaminGruenbaum ...
 
@BenjaminGruenbaum when the top half of the mona lisa's face is all dicks and vaginas ....
 
brb
 
@JanDvorak Apparantly you CAN play games on PS4 with mouse/keyboard, if the developers put the effort in to make it work: kotaku.com/…
 
@rlemon I don't see the problem here?
 
:P
 
1:25 PM
@BenjaminGruenbaum You know there are entire websites where you can get that, right?
 
@Retsam just so you know, all of /r/gonewild pictures are hosted on imgur
 
@FlorianMargaine Ahh, right I forgot that imgur is the backend to reddit's image sharing.
 
We're lucky that it isn't the case with 4chan
 
all of the 'flesh toned' spots on the images are basically turning out to be porn matches
this could be a new technique to scrap imgur for porn o.O??
 
@rlemon How are you currently getting random imgur images if not through the API?
 
1:36 PM
Can anyone check out this post?
 
@UnknownUser Yup, that's definitely a post. :P
 
Oh my god. I just got like.. a 2000% speed increase
 
> look up porn
> cancel
> look up images with color:skin
 
Like holy mother of shit
 
@Cereal removed a zero from a speed up loop?
 
1:37 PM
@JanDvorak Did x, y times instead of y, x times
 
@Cereal blame caching
 
@Retsam :O
 
speaking of caching... is there a significant penalty in accessing a[x], a[x+600], a[x+1200] inside a tight loop that increments x where a is a Float64Array?
 
Is there anyway to contact the codepen people to get a pen removed? I accidentally refreshed while I had an infinite loop in the code, and now the browser locks up whenever I try to change it.
And the js runs in the preview menu for whatever reason, so I can't do it there.
 
@Cereal throw a debugger at it?
 
1:42 PM
I can't get the page open long enough..
 
@Retsam brute force.
@Cereal tweet them
 
open the debugger > navigate there > pause execution > throw an exception > edit
 
they are pretty quick to answer
 
Alright
 
or disable JS and load the page
 
1:44 PM
Disabling js won't let you use the editor on codepen
 
but you can delete the pen
can't you?
 
The pen list thing won't load either without js
 
WAY too much porn in this for me to continue at work :/
 
user1596138
Morning
 
was trying to render this with 48*48px images
 
user1596138
1:47 PM
^ Took me three tries to type that without messing it up wtf
 
@rlemon I have my images insanely small to avoid that issue
 
but @Loktar wanted to be able to see the images
so I'm going to have to finish my other program instead
unless @Loktar doesn't mind the porn
 
haha
yeah thats the crappy thing trying to filter those out
 
The guy in the picture simply gained a lot of weight when viewed in chrome. I haven't tried it but you can try setting a max-width on the image so the weight gaining could stop. — Huangism 16 mins ago
 
images.filter(function() {
  return !penis && !butthole && !vagina && !weirdFetish;
});
didn't work.
reddit filled imgur with porn
I would hazard a guess it is 50% or more :P
 
1:50 PM
Considering how big gonewild is, I don't doubt it
 
posted on July 28, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Whee!

 
user1596138
@SecondRikudo Haha good catch
 
@rlemon you're still just generating random ids i suppose?
 
Chrome supports max-width on images (contrary to w3 specs), whereas FF and others do not.
 
@GNi33 yup
 
1:51 PM
Although Chrome made its own call on it, I agree with it.
 
ok, no nsfw-flag on that ;)
 
I have other solutions. I'm just talking about imgur right now
 
isn't imgur offering quite a fine api?
 
if you keep the images <12px*12px it is fine
yea but it is limited in requests
brute force on the other hand they haven't cared.
 
oh, okay, that sucks
 
1:53 PM
so we've just put a new MVT test live, on a new platform and its slowed our page down something chronic, phoned up to complain "nah you lying bruv, there no letency at all on our MVT shizzle"
ok, well that mathmatically impossible!
 
there has been a js library that filters out nipples and that stuff. has been some experiment I've seen a while ago
 
nahh I'll just use trusted image sources
 
I have a crazy idea: downscale the images to (say) 12x12, then throw them at brain.js trained to detect porn
 
user1596138
@rlemon there's nude.js
 
user1596138
1:55 PM
Oh shit. Nice timing
 
secondly im not your brother,
 
user1596138
The demo for nude.js is of course NSFW lol
 
it isn't bad
he blacks out the important bits
 
user1596138
Bad for work for sure
 
but the Cosmo in the lobby.. perfectly fine ;)
 
1:57 PM
@rlemon yep, that's the one
 
user1596138
lol anyone who saw that on my screen would question it. That's all
 
this blurs the line between between nudity and node.js, nothing is safe any more
 
but this... is okay according to society? but a women in a bikini isn't?
 
Hey nerds, is there a term for when a particular subject in a sample shows the intended result? For instance, if you're measuring how many coin flips come up heads (in particular), is there a name for a coin that comes up heads?
 
1:59 PM
just look at those titles! jesus man that magazine is horrible.
 

« first day (1381 days earlier)      last day (3559 days later) »