« first day (889 days earlier)      last day (4284 days later) » 

22:00
0
Q: localStorage getters/setters for key "getItem": bug, spec inconsistency or something else?

Florian MargaineThis code sums up my question: localStorage.setItem('getItem', 4) undefined localStorage.getItem function getItem() { [native code] } localStorage['getItem'] = 'user' "user" localStorage.getItem "user" Using the setItem method or using the property accessor changes the way localStorage react...

@JanDvorak Don't write your code so condensed, it's very hard to understand and use bitwise operations instead of strings of '1' and '0'
Or math
@copy it's hard to select every third bit using bitwise operations
It's hard to bit-reverse a number using bitwise operations
There are way better ways to turn a number into a color
While making low-order bits significant?
And those things aren't hard, simply make a function for it if you have to
22:04
yeah I'd say that's the issue with the code : everything is in one function
I don't know from the top of my head, if you want to do it the math way, ask SO or Benjamin Gruenbaum
Benjamin Gruenbaum already saw my code, and didn't mention my bitstring manipulation.
Is it possible
to have part of image as background
One idea: A bitmap and then modulo
which is scaled to n% ?
22:06
@Darkyen yeah
surrounding div and overflow: hidden
nah..
3d stuff bro
wanna make a skybox
for my 3d model(s) :->
Prototypal OOP should be popularized just for its acronym
22:23
about the SteveJobs nick: no problem with it
it's not even impersonation since the original one's obviously dead
So it's not impersonation if I nick myself Jesus Christ?
Wait... he's alive; NVM
!!/stat somekittens extended
@JanDvorak User Elusio proved elusive.
@JanDvorak It's backwards. extended comes as the second argument
@JanDvorak [SomeKittens](http://stackoverflow.com/users/1216976/somekittens) has 4776 reputation, earned 0 rep today, asked 56 questions, gave 236 answers, for a q:a ratio of 14:59.
avg. rep/post: 16.35. Badges: 2g 14s 37b
Also, protip: If you're intent on a series, don't look things up on wikipedia while an episode is downloading. You might stumble upon a gigantic spoiler.
How can I take this out of consideration now...it's a fucking plot twist. Its purpose was to be unforseen.
I hate you, self.
22:43
!!/urban spoiler
@JanDvorak [Spoiler](http://spoiler.urbanup.com/1030004) When someone reveals a previously unknown aspect of something which you likely would have rather learned on your own.

*discussions of art media such as video games, movies, etc. especially vulnerable.
Dumbledore dies.
everyone dies
Beauty is more important in computing than anywhere else in technology because software is so complicated. Beauty is the ultimate defence against complexity. [David Gelernter]
Hey, can any awesome JS peeps take a look at a question of something I'm stuck on?
Oh, I see. The question has an answer although it hasn't worked and I think I know what the problem is.
Has anybody used Ratchet? A framework for prototyping iPhone apps
wow seriously
source maps are awesome with browserify2
i.imgur.com/sIf8kj1.png I can debug the original files (unbundled)
Hey guys how do I get a border on the revealed div's in this? jsfiddle.net/94jerdaw/WJQkA/8
@Dave, they have borders?
Oh the clicked ones?
@phenomnomnominal the clicked (colorful) don't get the hover border as the grey ones, and when i try to add one to them it get's double with a diagonal offset
23:05
So you want them to have borders when they are matched pairs?
i want all boxes to have hover border, no matter what color including grey ones.
I managed to fix it :)
write in ES6 with browserify2, it gets compiled to ES3 compatible code, and source maps allow you to debug as if no bundling had been done github.com/thlorenz/traceurify
23:09
@Darkyen, nice :P
@phenomnomnominal I managed to think of my own solution, yay jsfiddle.net/94jerdaw/WJQkA/10
@Darkyen really nice
it only works ... on small screens though :-(
@Darkyen, have you done much WebGL stuff?
@phenomnomnominal Oh I noticed only the last clicked box turns grey if incorrect, tried to find info about also removing class from previously clicked div but can't find that. Any hints? jsfiddle.net/94jerdaw/WJQkA/10
23:17
@SomeKittens See, as I was reading that book it became horrendously obvious that Dumbledore was about to die.
The plot in Harry Potter can't compare to Evangelion's, really. First and foremost, the latter is sci-fi, so it can make stuff up and it'll make sense (to a certain extent of course.) Secondly, the latter is brilliance itself, and Harry Potter was decent at best.
@phenomnomnominal nope
i live in Cascading style sheets :[
Yo @Zirak, I’m really happy for you, Imma let you finish but Dumbledore was one of the the best wizards of all time…one of the the best wizards of all time!
@Darkyen, try it, you'll like it
any resource for webgl?
learningwebgl?
23:23
@phenomnomnominal How does one go about learning all these things? I mean, is it all from experience if not school? I'm just doing this on my spare time, any tips on where to learn this instead of being a help vamp? :)
I really want to use browserify at work...
it's just awesome now
@FlorianMargaine, yeah it's good, most of the other tutorials just say, "OK, so use Three.js"
@Dave, I don't know how you can really learn problem solving? It's just experience and asking questions
Not saying that Three.js is a bad thing, in fact it's pretty great. Just doesn't go into the nitty gritty
@phenomnomnominal Very well then, I guess that's what it boils down to: asking about things to learn :)
m59
m59
Is it valid to check for an optional argument using ! ?
    function foo(bar) {
      if (!bar) {

      }
    }
foo();
23:31
why wouldn't it be?
m59
m59
I dunno. Somehow I ended up in an infinite loop because the check never worked.
That sucked.
but be careful, foo(true) or stuff can hurt you
m59
m59
wait, I asked the wrong question
var bar = 1;
foo(bar);
bar would be considered true, right?
@m59, !! casts to a boolean, so !!! might be better :P
m59
m59
I didn't get that ^
23:36
@m59 what about var bar = 0
m59
m59
It's actually an object containing a lot of information and always is
@phenomnomnominal will do it
after i prove the fact that dom rendered games are better ;D
then just check (bar == null)
not better then webgl though
@m59, then it will fail on undefined and null and be okay for falsey values
23:41
@Zirak best terminal emulator
@Zirak To be honest, I never read HP beyond the first book.
@copy which one?
That's what I'm asking
You tell me
!!s/best/What is the best/
@phenomnomnominal @Zirak What is the best terminal emulator (source)
23:50
@copy I've found tilda was the best at handling transparency
for awesome, I like xterm though
with a nicely configured Xresources
tilda if you want a quake-like terminal
I am using xterm now, but have a several problems with colors
Used the xfce4 one before, but now I wanted to get rid of that dependency
well with xterm you need to tweak around with ~/.Xresources
I've tried, but that file is horrible
Maybe I didn't try hard enough
23:53
yeah... I just took a full-ready one on some forums
posted on March 23, 2013 by Randall Koutnik

Like I've said before, learning as an activity that blocks coding is annoying.  I want to Get Things Done, not browse unanswered Stack questions trying to figure out why your API returns an error.  I've also noticed as we continue working on textbooktrad.es that there are plenty of times where a library might come in handy (templating, for instance) but a vanilla implementat

@FlorianMargaine do you still have it?

« first day (889 days earlier)      last day (4284 days later) »