« first day (1557 days earlier)      last day (3390 days later) » 

3:00 PM
WTFaKs is similar
 
@SecondRikudo no, there's a name input (which is used by github to make a "filename")
 
it's just starting out and is a weekly newsletter I think
nothing special until now though
 
@dystroy You mean a file's name?
 
but Now I Know is really good imo
 
It isn't the gists name directly
It's the name of the file in the gist
 
3:01 PM
@GNi33 Seems alright. Maybe I'll subscribe to it just to see
The website looks pretty bad :P
 
@SecondRikudo you're right. I just realized you can have more than one file in a gist (I never use that thing)
 
@dystroy Yeah, it's also not unique
(As in, even if you have just one file per gist, the names are not unique)
Every gist is a valid git repository
You can have multiple files, PRs, the whole treat.
 
@NickDugger you never emailed me for 12 days
do you want amazon or thinkgeek
 
buy yourself a beer
or something
or drugs
 
dammit just tell me
 
3:10 PM
no
 
or pick someone to give it too if you don't want it
make a friend
 
@rlemon a gift card for shipyourenemiesglitter.com
 
I choose you @rlemon
 
next year I'm blacklisting you from the draw
 
@SecondRikudo "Purchasing has been temporarily suspended. You guys have a sick fascination with shipping people glitter. We've received all orders & working through them. There was a ton so be patient."
 
3:11 PM
k
 
they're already trying to sell the page
 
it was going for $65k last I checked
upto 70 now
crazy
 
hmm, the latest tweets look like they'll continue though
@SomeGuy do you have a "main topic" on your blog?
or just interesting stuff no matter what topic?
 
user1596138
Morning
 
@SomeKittens your prize was sent.
 
user1596138
3:21 PM
@NickDugger lol you douchebag // not 100% srs bsns
 
@copy I need your steam account.
 
@GNi33 Like an "all" tag?
 
@Jhawins because I want him to keep his money?
 
No, because I don't really need one
 
nah, the general topic of the blog
 
user1596138
3:22 PM
What's everyone up to this week
 
Oh, no, not really
It's about pretty much anything
But usually about neuroscience, psychology, or unusual things
 
@KendallFrey ping me with your paypal deets
@GNi33 your prize was sent
@dievardump need steam or as we discussed. ping me
 
Guys, archive.org/details/softwarelibrary_msdos_games/v2 I'll just leave this here :)
 
@MoshMage "Softporn II"?
 
3:32 PM
DOSBox games :)
 
@SterlingArcher your prize was sent
@RahulDesai your prizes have been sent
 
@rlemon email is the same as the one I entered with
 
@MoshMage lol thanks for posting that link on the internet for the 10,000th time :P
 
@KendallFrey kk
@towc looks like I have to buy yours in store and then email you the codes. next time I'm somewhere I can buy one I will
sorry
 
@Loktar Thank god I didn't break the habit of repost new things for me :P
 
3:38 PM
posted on January 20, 2015

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) {} Okay, geeks! Tomorrow is the last day we'll be holding open the preo

 
put mine in a time capsule
 
@KendallFrey your prize was sent
 
In JS, can events not be related to elements but for objects?
 
uhh, technically you can-ish...
 
3:42 PM
@AndréSilva yes, more or less. There's nothing special about them, it's just an object triggering events and something subscribing.
Rather than using on and a predefined (DOM-triggered) event, you define your own name and somewhere else trigger it.
 
I have an object, and everytime a property receives a new value I want to trigger an event
It's nothing that is needed, I just want to see how it works :X
I'm reading on CustomEvent and such, but it seems that it is directioned to elements
 
@AndréSilva Look into Object.Observe; though it doesn't have great browser support
 
Or you can use a property setter (ES5) for that.
 
Or you can use a library like Knockout.
 
or just use jQuery, because it does all things
 
3:47 PM
in Lounge<C++>, 6 mins ago, by Bartek Banachewicz
A draft of my newest article - proofreading welcome. Bash it at will.
 
@AndréSilva What sort of object is it? A model or just some regular object? Are you using an MVC framework?
 
Hm, other libraries would require more study that would overlap current studies
@ssube Not really, I'm just using jsfiddle and messing around with some OOP stuff
 
If you aren't looking for anything complicated, api.jquery.com/trigger and api.jquery.com/on
 
I'll look into it :) Thanks
 
@AndréSilva just create a setter for that property, and within, pass a message along to any subscribers.
 
3:51 PM
@NickDugger Your name is not a good name for dyslexic to read
 
How many times are you going to make the same joke?
 
Hm, getters and setters are a thing in JS ?
 
@ssube He is trying to fire events on an object, not a dom element.
 
@NickDugger I said that already? o.o
 
Yes
 
3:52 PM
@AndréSilva Sure, you can have getters and setters in any language, no?
 
Really? Did I phase out? I don't remember saying that
@ThinkingInBits I guess, can't confirm haha
 
myObj {
property: 1,
subscribers [someObject],
setProperty: function(prop) {
someObject.notify();
}
} -- for a very basic example
 
@ThinkingInBits still works
 
rather than calling someObject. you would iterate over all the subscribers
@FlorianMargaine really?
@FlorianMargaine What would you use as a selector then?
 
@ThinkingInBits yeah, jquery event emitter works standalone
 
3:55 PM
 
@ThinkingInBits look at the comments. You can use an object as the selector
 
@FlorianMargaine Ok, so that isn't really supported 'out of the box' with jquery...
@FlorianMargaine but cool nonetheless :)
 
this works:
$(myApp).on('someEvent', function() {
  alert('someEvent!');
})

$(myApp).trigger('someEvent');
 
Thanks @ssube
 
Yes, after you've extended myApps prototype, naturally.
 
3:56 PM
no.
 
@AndréSilva combine with @FlorianMargaine's technique of firing on an object, and you'll have a fairly nice pub/sub system
 
the code I just pasted works out of the box
 
Just because I thought it was fun @AndréSilva
function Book() {
  var _ = {};
  return {
    on: on.bind(_),
    get title() {
      return _.title;
    },
    set title(value) {
      if (_.title === value) return;
      _.title = value;
      notify(_, 'title', value);
    }
  }
}
function on(name, handler) {
  var _ = this;
  if (!_._on) _._on = {};
  if (!_._on[name]) _._on[name] = [];
  _._on[name].push(handler);
}
function notify(_, name, value) {
  if (_._on && _._on[name]) {
    _._on[name].forEach(function(handler) {
      handler(value);
 
anyone familiar with gulp/vinyl and all that
 
@FlorianMargaine that's cool. Did not know that... they should clarify that in the docs.
@Mosho I use gulp, never heard of vinyl.
 
3:58 PM
@RoelvanUden Gah, too much _
@Mosho Only very slightly
 
I'm writing a plugin and I want to return a stream of vinyl files
 
user1596138
I figured-ed it outs jsfiddle.net/e77d73wj/1
 
@ThinkingInBits vinyl is what creates the virtual files gulp uses in the background
 
@Mosho Plugin for gulp?
 
3:59 PM
@FlorianMargaine I know (experimental; ES7). But thank you.
 
available in chrome
 
Very interesting. I'll take a closer look on fiddle :) Thanks
 
@SecondRikudo yeah, like gulp-concat
or whatever
 
Okay
So where's the problem?
 
I don't know how and can't find docs
but I guess I'll rummage through some existing plugins
 
came across it
just don't have too much time for it atm
 
Anyone else working on the monthly challenge yet?
 
@RoelvanUden nice, did you just write that up just now?
 
@ThinkingInBits Yeah.
 
that was fast :D
drinking red bulls this morning, are we?
 
4:15 PM
Sort of on the topic of the monthly challenge; do people use Reactive Programming much? It seems like a neat concept, but I'm not sure how well it applies to significant projects
 
@BenjaminGruenbaum Is this detailed enough? :-) gist.github.com/Deathspike/382dfa0c2981d2801e2c
@ThinkingInBits It's almost evening here. :P
 
good morning ya'llerinos
 
@Retsam It's still being researched, but it shows very promising results overall.
The costs of introducing it are typically quite big (As in learning, adapting your technology et al), but I think it should scale well.
that being said, don't do it in Javascript of course.
OCaml, Scala, Haskell, F# or Elm should be a good place to try it (order random)
Elm perhaps in particular because a lot of its ideas is based on FRP
 
Well, I'm going to feel free to ignore the second half of your advice, since I'm interested in Javascript programming since that's my job and everything. But thanks for the first part.
 
4:30 PM
@Retsam JS has historically had no use for a lot of interesting patterns/paradigms, being single-threaded. With workers and node, you can do a little bit more, but it's still not heavy on parallel anything.
It's kind of a shame.
 
@ssube Reactive Programming, though, doesn't have anything to do with threadness or parallelism, though, as far as I can tell.
 
There's a ton of clever stuff that could make your code more legible, but otherwise don't work in JS (especially since a lot of them have pretty poor performancE).
@Retsam I thought one of its major benefits was making it easier to handle events from/to multiple threads?
 
@ssube It might be a benefit, but it's not one I've seen listed in any of the resources that I've seen on the subject (which admittedly is a short list)
So I don't get the impression that performance concerns are the "point" of RP.
It's more like Promises on steroids; and the main benefit of Promises isn't performance considerations.
 
I guess I just assume that all these fancy over-engineered paradigms are meant to hide threading.
back in my day, we were taught how multithreading actually worked, starting with a function pointer
 
@Zirak crashed again. this happens like 3 times a week
 
4:35 PM
damn kids with their purely functional, reactive, cross-cutting event-driven frameworks. goto is enough for anything that really matters.
 
we need a solution :?
 
@Retsam Well don't get angry if it appears that your precious hammer isn't a proper tool then.
relevant
 
When you've got a hammer in your hand, everything seems like a nail
 
!!s/hammer/javascript/
 
@BartekBanachewicz I wasn't angry, it was my fault for not clarifying the original question, but I'm getting there.
 
4:37 PM
@BartekBanachewicz When you've got a javascript in your hand, everything seems like a nail (source)
 
also it's really F R P
for all I understand about it
 
user2620028
@Neil I KNOW RIGHT
 
@BartekBanachewicz It's really ironic having you invoke the golden hammer argument for one, given that you're the one that seems to see Haskell as this magic golden hammer that does all things and sees all other tools as inferior.
 
@Shmiddty morning!
 
@Retsam you have to invoke something, and nobody has ever invoked haskell, so...
 
4:43 PM
@Retsam a few messages back
> OCaml, Scala, Haskell, F# or Elm should be a good place to try it (order random)
 
Anyone played with html5 video and custom controls
 
Bartek likes Haskell, obviously, but he doesn't tell us to always use it
 
@dystroy I might have more accurately said "sees functional programming as a golden hammer"; but yes, I'm not being entirely fair.
 
There's a difference between promoting a paradigm and using a tool because you don't know anything else
 
@dystroy I'm fine with promoting a paradigm. I'm a little frustrated by asking a question in the JS room about JS (though again, I didn't clarify, my bad) and getting a "oh why would you use JS that language sucks" answer in a sneering condescending tone.
 
user2620028
4:50 PM
@retsam maybe you read that into it? Because it actually came off funny to me.
 
OK, I see your frustration. I guess I'm used with that (and I'm OK with it when it comes from somebody interesting and not just condescending)
But I'm sure I've already broken a few of the rules I've just read in the last room meeting conclusions...
 
I've got everything for my custom video controls functioning correctly based on how most common video players work(play, pause, scrub, fullscreen).

I would just like to be able to make it so that at the end of the video it goes back to or shows the video "poster" screen again with out reloading the video buffer.
 
5:04 PM
This one page documentation must be the one I open the most frequently... css-tricks.com/snippets/css/a-guide-to-flexbox
 
@dystroy like?
 
Another close vote please : stackoverflow.com/questions/28050936/…
@FlorianMargaine like not publicly commenting a regular's behavior ?
 
only if it's related to moderation decisions
 
ok
 
@dystroy which makes sense, no?
 
5:11 PM
@FlorianMargaine yes. I wasn't criticizing.
 
user1596138
5:38 PM
Ohhh. I'm a bit late.An hour late.
 
@rlemon Got it.
 
@SomeKittens rlemon is afk: lunch
 
Bruce Lee's on my head. but don't call me a Lee-head
 
user1596138
Facebook.turnOff();
Facebook.turnOn();
// come on guys
 
user1596138
Better
 
6:00 PM
Q: what do you get when you cross Bruce Lee and a Pig?
A: Pork Chop
 
@rlemon I was going to go with "illegal genetic experimentation", but yours works too.
 
now that the holidays are over getting back into my diet sucks.
I <3 bread
bread hates me
 
user2620028
That is why i don't diet :/
 
I'm just trying to cut back on the amount of bread I eat
I used to eat like 2 loafs a week
 
user2620028
Cut back on the bread and eat more mcdonalds
 
user2620028
6:03 PM
Just go for the chicken nuggets. not an ounce of real food in that.
 
I had a salad for dinner and I didn't feel satisfied at all, but I just ignored my belly and all was well in the end. I had soup and a healthy wrap today too. I'm trying to stay away from red meat especially, and no fast food
 
other than over consumption of bread, I eat pretty healthy
no fast food ever
ohh and beer isn't good for me
 
Beer is great for me, but it's terrible for my surroundings
 
I used a modifyed version of answer number 4 from this link stackoverflow.com/questions/14245644/…
but check what happens when you get to the end of the video and it goes back to the poster frame benlevywebdesign.com/50logos50days.html
 
user2620028
6:22 PM
I had wine tonight. and a little bit of thai beer
 
any ideas before I take that part out
 
I just got my first car!
 
congrats!
is it a lemon?
 
!!rimshot
 
Thanks! It's a leased car so I don't pay for gas, insurance and all that and once a week someone would wash it for us.
 
6:25 PM
Caprica Six posted media.giphy.com/media/SUeUCn53naadO/giphy.gif but it was moved to chat.stackoverflow.com/rooms/61037 because gifs get annoying fast.
 
@BenjaminGruenbaum wow, that is not how leases work here
 
@rlemon my wife started working for Amdocs which is a big tech company so she gets big tech company perks. So she got a car, a new cell phone, discount gym membership and they have food there all the time for really cheap or free.
 
ahh, so the company is paying the gas and insurance?
 
It's the perks of working for a big company, ones I'll likely not enjoy for a while :D
 
because here, you lease the car, you pay all of that on your own
 
6:27 PM
@rlemon yes, but gas is not limited (it technically is, but by a ridiculous limit you'd have to drive 10 hours a day to reach)
 
@BenjaminGruenbaum Did you see my comment about the dupe question?
 
It's a small car (Suzuki Swift) so it's easy to park but it's new and has all sorts of perks like MobilEye and sensor arrays and stuff.
@BoltClock yeah - thanks. To be fair I mostly commented on that post to strengthen the question and answer since the question was getting a lot of downvotes and I didn't want to see it die since it was a legit question. Do any browsers actually support that now?
 
@BenjaminGruenbaum Yeah. No wonder I never saw that question - it was just so horribly bad in its original state
 
Yeah, I edited it and upvoted. It's a legit question even in the original revision but it was heavily downvoted.
We have a problem where people downvote questions that they don't understand too fast :)
Also - what's up?
Did you guys all see this: techcrunch.com/2015/01/20/…
 
11
A: input selector mystery i input[type="search" i] in Chrome

BoltClockThat is the case-insensitive flag for attribute selectors, introduced in Selectors 4. Apparently they snuck an implementation of this feature into Chrome as early as August 2014. In a nutshell: this flag tells the browser to match the "password" and "search" values for the type attribute case-in...

I explain it in my answer. So now I'm debating just merging both questions since they are basically the same thing "I found this peculiarity in Chrome's UA stylesheet"
 
6:32 PM
@BenjaminGruenbaum Has anyone ever gone so far as even to need more to do look more like?
 
@BenjaminGruenbaum wow, nice
 
@BoltClock it's hard to merge and hard to keep this way - it exposes a fundamental problem in the SO model.
 
@SomeKittens :D
 
@BenjaminGruenbaum What do you mean it's hard to merge?
 
I love how Octavian once fell for it when we pretended that the sentence made complete sense
 
6:34 PM
@BoltClock if you add your answer to that question it will likely never get enough momentum to overcome the accepted answer which is worse - if you merge you lose both momentum and some context.
@BoltClock a decent alternative is to close that question as a duplicate of the one you answered but that might come off as unfair to those two people - and you can get away with it a lot less than I since you're in a position of power.
@SomeKittens I don't understand that question, maybe I'm just tired.
 
@BenjaminGruenbaum Fortunately there won't be any loss of context here. They're almost exactly the same. In fact the screenie in the newer one is a subset of the older
 
@BadgerCat yeah, I love how my wife is the one putting bread on the table :) It's so nice to see her do well professionally and get perks that are usually reserved for programmers in tech companies.
 
@BenjaminGruenbaum Now I make double what my boyfriend makes. :)
 
@BoltClock yes - but it's still a tough call, and the more general issue is older questions with mediocre answers that have gained enough momentum to stick as first because they're old or accepted. It's why most sites don't rank based on score but rather use a more advanced algorithm for the order they display - in SO that'd be confusing.
@BadgerCat we get to see who wears the pants in your house @copy :D
 
and here I thought I got dibs on a Selectors 4 question :'(
 
6:39 PM
I have seen how infinite scroll works (without plugin), but all the examples i have seen so far loads the same data on and on when the bar reaches the end. what i want is that i have a folder with ample images in it and i want 9 images to be retrieved at a time. so that when the user scrolls the end of the page it triggers the next 9 images to be retrieved and so on.. i know how to do tht BUT what i dont is : HOW TO RETRIEVE IMAGES IN BATCHES OF 9 from the folder
say the folder has 100 images and i want to retrieve 9 new images every time
 
@BenjaminGruenbaum btw, after enabling the flag the selector will work in selector libraries as long as qSA is called
 
@BoltClock that makes sense.
 
I did not test this but it is assumed to be the case since it works in CSS
 
@BoltClock you can and totally should do Q&As on selectors level 4 questions - it would be very positive.
 
show of hands everyone who thinks infinite scrolling websites are terrible
o/
 
6:45 PM

BoltClock Geeks Out about CSS Selectors

Sep 1 '14 at 5:05, 34 minutes total – 70 messages, 4 users, 0 stars

Bookmarked Sep 1 '14 at 6:50 by BoltClock

 
@BoltClock Making canonicals early is very beneficial imo.
@rlemon it makes sense sometimes. It's better than paging often but still pretty bad.
 
@BenjaminGruenbaum I'm only concerned that it might be too early. A lot has changed since the FPWD in 2011
 
Technically in most cases the content you want should come up on the screen without scrolling :)
 
@BenjaminGruenbaum I hate the UX of sites with infinite scrolling
ofc that is a personal opinion, but I do
 
I don't like jumping the gun because then I'll have to keep updating my answers as the draft changes
0
Q: Latest on CSS parent selector

U r s u sThe most recent information I can find regarding this is the W3C Selectors Level 4 Editor’s Draft, but, as far as I can see, it doesn't mention the parent selector anymore. I know there was a Google survey about this, but that's over now. What happened to the parent selector? Will it ever be in...

 
6:47 PM
@BoltClock some features will likely change and some will stick. I don't follow the CSS docs but in ECMAScript I can tell today which features in ES6 (and likely ES7) will likely stay and which will be dropped.
 
waht if there are 100 of images and you only want them to be retrieved when needed
 
@Sadiq that's not infinite scroll - that's just lazy loading.
 
@BenjaminGruenbaum I can make a few judgements here and there as well, for example I'm pretty sure the i syntax will stick, it doesn't break compatibility and it's so simple and straightforward
 
I think css and html need to be replaced :D
Then again adding useful things is definitely helping
 
CSS is getting nicer
HTML is getting more semantic, but I don't know if that is actually solving any real problems
 
6:49 PM
@BenjaminGruenbaum ok... do you know how to get all images in batches while scrolling through the page?
 
It's not, we could get away with something much much much simpler than HTML and CSS for what we actually need.
 
@Sadiq look up 'XMLHttpRequest'
often mislabeled "ajax"
 
@rlemon now why would he do that?
 
he wants solutions, I'm handing out fishing poles
hopefully it will lead to a good question in the future
 
@Sadiq there are plugins that do it - I know there are jQuery plugins and Angular plugins and that sort of stuff. I implemented it in native one and it wasn't a lot of work - you look how much the user scrolled and if it reaches the threshold you add whatever you want to add to the DOM
@rlemon Yeah but if you want to lazy load an image why would you use XHR? You can do let im = new Image; im.src = "http://myimage.jpg";
 
6:51 PM
then you get a spinner
 
yes know there are plugins available.... but i was trying to write my own as plugins have got lot of over kill
 
I don't like the spinner. pulling the images via xhr you get no browser 'busy' notification
 
@rlemon the spinner is good, not giving the spinner is bad UI imo since the user does not understand that the page is loading more content.
@Sadiq then what I said above is the gist of it.
 
I don't like the "browser spinner", I do advocate you put a notification icon yourself.
most browser 'things' don't flow correctly with a page (think alerts) (imo)
 
Alerts are an exception here. The browser spinner is the browser's choice - alerts being blocking is forced by DOM0 - no one thinks it's a good idea
I think it's about letting the browser decide what to do vs. forcing it
 
6:54 PM
I still disagree with lazy loading images using new Image. xhr gives you more control. more control is good imo
 
I get what you're saying though - you don't want the users to feel that the site is "not ready" after it loads once.
 
but this is all moot given his question, which you gave a nice overview for
 
@rlemon xhr is slower, limited by the cross origin policy and I don't understand what extra control it gives you- you have .onload and .onerror events on images too.
!!afk quick beer
 
user2620028
Daaaaaaamn SO just decided it didn't like me. It logged me out when i went to submit a chat notification and when i clicked log in with google it chose my work account and said registration complete. It wouldn't let me specify what google account to try and log in with. I have to use account recovery options to specify what account i wanted to log in with.
 

« first day (1557 days earlier)      last day (3390 days later) »