« first day (603 days earlier)      last day (4362 days later) » 

user1385191
1:14 AM
L O L
 
user1385191
never ever imitate Google's client-side code
 
user1385191
don't imitate Google; don't imitate Twitter; don't imitate Apple; don't imitate Microsoft
 
user1385191
none of them have figured out DOM scripting
 
hello
I am stuck. Here is my question stackoverflow.com/questions/10949156/…
anybody here with javascript charting....??
 
user1385191
1:46 AM
1
A: Is there a way to make native function chainable?

skafandrijQuery will save you a lot of typing work, and a huge of coding work.. jQuery: The write less, do more..

 
user1385191
ugh
 
2:07 AM
No Javascript guru-fu's online right now?
 
user1385191
2:42 AM
a lot of the people that use this room are European
 
4:32 AM
 
 
lol
 
In Soviet Russia, JavaScript you!
 
5:05 AM
@Derek In Soviet Russia , Children Speak Binary as they are born.
 
5:15 AM
@Abhishek LOLOLOL
 
 
6 hours later…
11:34 AM
How can i remove the class 'active', if any, from anchor links with class filter_link
$('a[class=filter_link]').removeClass('active'); i tried this not working..
 
that sound like something you should be doing in the backed
 
huh ?
 
12:09 PM
$('a.filter_link').removeClass('active'); is enough
 
s/backed/backend
 
attribute selector looks at static attributes so it won't work if you added class dynamically
I think..
 
12:38 PM
I hate when i fall ill T.T
my head is way too heavy to work
any suggestions ?
 
Stop being sick
 
Cant help that one lol
 
be awesome instead
 
trying to be
 
12:44 PM
but i can barely concentrate :-|
 
Added an alias feature.
!!~foo = bar
@Zirak Saved alias foo
!!~foo
 
!!~zirak=awesome
 
@Zirak bar
@Abhishek Saved alias zirak
 
!!~zirak
 
@Abhishek awesome
If you're an owner, you can also override existing aliases:
!!~zirak = smells like dead ostrich
@Zirak You are not allowed to do this, young padawan
erm:
!!~zirak == smells like dead ostrich
@Zirak Saved alias zirak
= is normal assignment, will always error when given an existing alias; == is forced assignment, will overwrite if you have permission
I think you can use `==` for both, if I did it right:
!!~test == awesomeness
!!~test
@Zirak Saved alias test
@Zirak awesomeness
hrm, there should be a corresponding command, so you could delegate with tell
Actually, there should be a listen command, so !!blah blah is the same as !!/listen blah blah
 
12:51 PM
Nice!
:-(
 
@Abhishek Command listen does not exist.
 
:-( no candy for me
 
You're too sick for candy
 
>.<
Alright i am going to divert my attention to C++ maybe it makes me feel better [or i might just go back to sleep learning it]
 
Word of advice: If you're ever feeling down, Freebird
 
1:00 PM
@Zirak i hear this youtube.com/watch?v=LIDwgpBh0Aw when i feel down [ since it got launched ]
 
ew, pop/hip hop/any of that kind.
I rock, I don't pop.
 
Linkin Park - In the End ? [ no what thats kind of mix breed ]
 
ew, soft rock
 
haha
 
My rock aint supposed to be soft :P
 
1:03 PM
A7x ? [or is that too hard ?]
 
A7x? Never heard of them
 
Avenged SevenFold
 
Heard the name, not anything they made. I'll check them later
 
:-)
Am going to listen to my girlfriends hard-drive [ full of hard rock music ]
and code .. cya
 
They're funny
 
1:11 PM
who?
 
Avenged Sevenfold. They're like Metallica, "yeah, we're a serious metal band, hear us ROAR!"
And the result is funny
 
lmao ( that really made me laugh , i wonder what you will say when you listen Bullet For My Valentine )
 
Hearing their first album and giggling all over
 
lol
I am listening to Skillet - All Album -> Breaking Benjamin - All Albums
kinda sooths :D
 
"The band has stated that their music is influenced by classic heavy metal acts such as Metallica, Iron Maiden, and Slayer." LOL
Metallica and Iron Maiden are heavy metal like my shoe is made of peanut butter
 
1:19 PM
lol
 
Oh, c'mon...just listen to this one...how can you not laugh?
"YYAAARRRGGG!!! I'M GONNA SCREAM SOME MUMBLING INTO YOUR EARS AND SOUND AMAZING, ESPECIALLY WITH THIS MINOR POWER-CHORD RIFF"
 
lmao
 
okay, enough fluffy bunny music; it's Zeppelin time
 
1:37 PM
!!/tell 4060207 listen ~test
@Zirak awesomeness
oh yeah...it manually overrides. Well, that's regular behaviour with `tell` anyway...but just for another test:
!!/tell penguin listen what~'s an octopus?
@Zirak Could not process input. Error: Unexpected end of input: Expected ' on column 34
@penguin Y U NO MAEK SENSE!?
!!what's an octopus?
@Zirak Any of numerous carnivorous marine mollusks of the genus Octopus or related genera, found worldwide. (source)
!!/tell penguin listen "what's an octopus?"
@penguin Any of numerous carnivorous marine mollusks of the genus Octopus or related genera, found worldwide. (source)
 
0
Q: Experience formula with javascript

StealingManaI'm having trouble working out a formula using this experience curve to get the total exp after each level. I bet its easy and im just over thinking it. maxlvl = 10; increment = 28; baseexp = 100; function calc(){ for (i = 0;i<(maxlvl*increment);i+=increment){ expperlvl = baseexp ...

0
Q: HTML5 file API or Java bridge to acces to local Files?

philienI've to access to files on the software user and I don't know if it's better to use a full JS app with HTML5 File Api rules or use Java and communicate with it ?

 
1:53 PM
@Zirak , i need some "My Dying Bride" to feel clean again
 
Modern Music ( 2006+) : Skillet , L.P. , Three Days Grace .. etc.

Modern Music Disaster :: Justin Beiber (ruining ears since 2oo9 )
 
i would disagree
 
?
you like Justin Beiber ?
 
!!> var a = 0.1, b = 0.2, c = 0.3; (a + b) + c === a + (b + c);
 
2:10 PM
woops, wasn't on...try again
 
!!> var a = 0.1, b = 0.2, c = 0.3; (a + b) + c === a + (b + c);
 
@Oleg false
 
don't compare floating point numbers for equality :P
 
urgh
 
!!> function normalize(n) { return Math.round(n * 1000000000) / 1000000000; } normalize((0.1+0.2)+0.3) === normalize(0.1+(0.2+0.3))
 
2:16 PM
@Esailija true
 
!!>console.log( ((0.1+0.2)+0.3) , (0.1+(0.2+0.3)));
 
@Abhishek false
 
ah.
 
@Abhishek undefined Logged: 0.6000000000000001, 0.6
 
awesome
so i guess i will mix my music in C++ aswell [ that kinda error in sampling can turn justin beiber into skrillex ] lol
 
2:20 PM
lol
 
actually after seeing libuv i seriously think a pure c++ thing will be better
but then my C++ sucks so i cant actually do it
 
Seriously? Chrome sees teleport as a spelling error?
 
yea
 
lol
maybe as its not invented by google (yet)
oh wait it detects google as spelling error as well
 
you can add it to dictionary
then chrome assume its a correct word
 
2:30 PM
That wasn't the problem. The problem is that it isn't by default in the dictionary.
considers sending this as a bug report
 
lol
 
yes, but it's not that serious
new word generating everyday
 
oh no, it's dead serious.
 
chrome is not a standard dictionary or something,
 
I expect thousands of programs to break because of this.
 
2:32 PM
@didxga trust me don't debate you wont be able to win over the awesome zirak!
!!~Zirak
 
@Abhishek smells like dead ostrich
@Abhishek Nothing found for Zirak
 
lmao
 
I am not going to debate with him
 
@Zirak maybe you should add your bot something that autotrolls!
 
Replies to a random message "your mom"?
 
2:36 PM
lol
 
2:46 PM
elegant answer of the day stackoverflow.com/a/10969552/995876 :D
3
 
!!> var n = [5, 10, 25]; n.sort(); console.log(n);
 
@Oleg undefined Logged: [10,25,5]
 
2:59 PM
@Zirak I think you were reading v8 source code a while back aye ?
 
3:15 PM
@Abhishek A bit; I didn't delve into the C++ part, only read some of the function implementations.
 
nvm :-)
 
Also, how would you categorize a missing dictionary item? "Defect report from user" or "Translation Issue" or "Enterprise issue"?
oh nvm, it's just a template
!!/help help
@Zirak help: Fetches documentation for given command, or general help article./help [cmdName]
 
 
1 hour later…
4:32 PM
0
Q: querySelectorAll shim for non-IE browsers

KolinkEvery shim I have seen for this function has used the IE-only CSS expression trick. While there's no denying it's effective, it's made useless if the browser is not IE and doesn't support querySelectorAll either. jQuery is out of the question, since I don't want to get a whole framework just to ...

 
4:44 PM
0
Q: Parse text file on click and display

John RI am thinking of a methodology for rapid retrieval of code snippets. I imagine an HTML table with a setup like this: one two ... ten one oneTwo() oneTen() two twoOne() twoTen(...

 
 
1 hour later…
5:51 PM
cb->ERR = Persistent<Function>::New( Local<Function>::Cast(Obj->Get(String::New("Err"))));
// Actual Implementation
vs

cb->ERR = Persistant<Function>Cast::(Obj->Get("Err")); // whats its basically going to do
seems like v8 was made to make a developer confused beyond imagination !
 
user1385191
6:11 PM
@Feeds oh boy…
 
user1385191
can anyone see the naïveté of "shims" now?
 
user1385191
they're silly at a micro level and stupefying at a macro level
 
6:28 PM
Is anyone here?
Do anyone know what is ~~?
It seems like ~~1.3 is the same as Math.floor(1.3).
 
user1385191
it's the bitwise NOT operator doubled
 
but it is ~~ instead of ~
 
user1385191
"doubled"
 
user1385191
just like the logical NOT operator doubled
 
user1385191
6:34 PM
!true; // false
 
user1385191
!!true; // true
 
so it should return the same number
 
user1385191
take the effect of the operator
 
user1385191
apply it once
 
user1385191
then apply it again
 
6:37 PM
so when you do ~1.1 it will remove all the numbers after the decimal point?
 
user1385191
why don't you investigate it yourself?
 
I am not familiar with binary numbers
 
0
Q: How can I find commonly duplicated questions from stack network dumps?

aking1012Why? I got tired of searching for the same duplicate questions over and over again. What? These are a couple of scripts I threw together in order to cut down search time for common questions and vote to close targets. dupes.txt is the output in a flat text file of the form: Link: url Count...

 
6:54 PM
@Zirak youtube.com/watch?v=9LjbMVXj0F8 what about this ?
 
user986408
7:46 PM
for how long is stuff stored in the local storage ?
 
until it's cleared
 
or u nuke it
 
user986408
i'm building some hybrid app with cordova.. so does closing the app and closing this internal browser lead to loss ?
 
not sure what those words mean
localStorage is stored on hard drive
closing browser won't affect it
 
user986408
i've a small moodboard where i can load images from the filesystem and drag/scale/rotate them on the board.. now i want to persist the position/rotation and stuff.. i'm not sure if i should do it with docs.phonegap.com/en/1.7.0/cordova_file_file.md.html#File or try it with this new local storage thing
 
user986408
7:52 PM
as i'm already using cordova i might use that api right away.. i just thought hey maybe it can be done with local storage too..
 
user1385191
Firefox can be configured to delete private data when closed
 
user1385191
which includes "offline data"
 
user986408
it's iOS
 
user986408
so safari
 
well all browsers can be used so that localstorage is cleared or not even used
 
user986408
7:56 PM
so basically i could go with local storage because the key/value pairs are not deleted until i decide to delete them? there's no expiration date or something like that ?
 
no expiration date
 
user986408
thanks
 
@ThatWebNerd it wont ever erase anything
cordava / aka phonegap is just a webView
 
user986408
@Abhishek thx!
 
o/
 
8:05 PM
@Abhishek Cute, generic.
urgh, bot script freezes the chat window sometimes. I can't see new messages
 
 
?
 
oh my god, I love gif s.
 
...
 
 
8:11 PM
we need moar FP
...
 
:D
 
domready in node? LOL no
 
user1385191
anyone here using Opera that wants to read an article draft?
 
why opera
 
user1385191
mht file
 
8:19 PM
webkit
 
user1385191
otherwise I'd have to send a zip of the project site
 
...
 
user986408
can i save whole objects containing arrays and functions into local storage ? or is it only meant for strings/numbers to be the values ?
 
upload it to the internet you shit
 
user1385191
it's not done yet
 
8:22 PM
temporary HTML file upload
remember you can change the HTML file.
use the web properly
 
user1385191
I just sent you a link
 
@ThatWebNerd JSON.stringify
 
@Derek Why U steal my Picture!
 
1
Q: Why don't we just fix Javascript?

Jan MeyerJavascript sucks because of a few fatalities well pointed out by Douglas Crockford. We talk a lot about it. But the point here is, why we don't fix it? Coffeescript of course does that and a lot more. But the question here is another: if we provide a webservice that can convert one version of J...

 
8:37 PM
@Feeds loltrollz
 
user1385191
when will people realize that CoffeeScript is just pretty pink lipstick?
 
It's more like smeared lipgloss
 
8:52 PM
 
9:23 PM
Haha
Is anyone here?
I have a problem
I thought an vote should be +10, right?
But I don't see anything there.
What happened?
 
There is a rep cap of 200 per day
if youve exceeded it then upvotes won't get any points, the cap doesn't count for bounty's and accepted answers tho
 
really?
I am getting 247 today.
 
7
Q: What is the "daily reputation cap"?

AzharThis is really a mystery for me. How can I get Epic, Legendary, and Mortarboard badges?

read it
 
I didn't know there is a daily limit
There shouldn't be one
 
then good old skeet would have 5000000000000000000000000000000000000000000000000000rep already
as soon as you've posted enough answers, you start getting rep by doing nothing
in fact the last 5000 of my 17k just came from up votes on old answers...
 
9:31 PM
wow
my old answers are just floating in empty space.
 
also, people start upvoting you a lot more when you cross the 10k. at least from my experience
 
They are excited to see the word K.
 
mwah i dont have it that much, maybe 4 upvotes a week or so
and im around 11K
 
they should have this limit only for people over 10K
 
it are always c# answers though that get upvoted after time
 
9:34 PM
...
 
or maybe i just have way more c# answers
anyway move this discussion over to meta, i have seen it like 12378436786816784332478 times already
 
really
 
10:22 PM
Did anybody put up a sign that says "channel for random utf-8 characters that don't render in any browser" ?
 
0
Q: Can I get some help on a javascript project?

HenryOrrinI'm learning javascript and I thought it would be fun to build a "simple" calculator. I spent a few hours coding, and implementing the functions, but it only works partially. Can one of you look at my code and try and figure out what's wrong? The Calculator.zip Here's some explanation of the issu...

 
user1385191
this might be one time where I'd miss being a room owner
 
@MattMcDonald Why (or how) did you loose that ?
 
user1385191
I took it away because I deemed myself unworthy
 
10:41 PM
0
Q: HTML5 Canvas Tileset Animation

VeyhaHow to do in HTML5 canvas Image animating? I am have this code now: http://jsfiddle.net/WnjB6/1/ In here I am can add animations something like -> Animation.add('stand', [0, 1, 2, 3, 4, 5]); But how to play this animation? My image drawing function is -> drawTile(canvasX, canvasY, tile, tileWi...

 
@MattMcDonald Really ? I personally liked your approach to most things
 
user1385191
11:05 PM
BTW, it turns out that IE 4 doesn't have the DOM Core after all
 
user1385191
but having throw in the raise module and try/catch in the create module nullifies any shot I have of passing in IE 4 (i.e. the select module)
 

« first day (603 days earlier)      last day (4362 days later) »