« first day (811 days earlier)      last day (4138 days later) » 

6:00 PM
question: How would I merge this existing code into a single class/object so that I can pass and save variables across methods. I need to be able to save a array of shortcutReplacements that already exist for example and that can be checked by multiple methods. Code
 
would be the same as element.getAttribute('data-some-text') but with the .data() function you drop the 'data-' and don't camel case the words
 
in my encoder i just use a vector and shift the whole thing.
 
@RoyiNamir when element dataset is fully supported that will be element.dataset.someText
 
id3.org/mp3Frame is from where I got the formula
 
@rlemon hi . thank you. I just read that from, 1.4.3 JQ returns html5 data attribute with $(..).data(..)
Ok Thank you rlemon.
 
6:01 PM
data- attributes are awesome
 
@ThiefMaster i used the same formula for findout out framesize of data-following
@rlemon Old news is OLD
 
custom attributes are awesome period
@Abhishek air is awesome!
 
actually I think i found my error.. going to test something
 
^ old news or just very obvious.
 
@ThiefMaster if u do lemme known
 
6:02 PM
0
Q: Random array of numbers without repeating - oojs practice

makbolI'd like to practice oojs so I've written code: function Randoms(c, l, h) { var count = c, min = l, max = h, nums = Array(), self = this; //returns random number from given max and min var getRand = function () { return Math.floor(Math.random(...

 
@rlemon when u share an old news i lose one hair -_-
pls don't!
 
yeah, got it
 
@Abhishek Snookie has a baby!
 
i used the length instead of the end position in the copy() call
self.audioBuffer.copy(self.audioBuffer, 0, header.frameBytes, self.audioBufferUsed);
self.audioBufferUsed -= header.frameBytes;
now it works
 
^ sorry dude... I didn't realize how bad it was getting
 
6:04 PM
So the basic Object is an instance of a function being an instance of an Object? — Florian Margaine 40 secs ago
 
@ThiefMaster hmm
i still am worried about the framesize though :-\
 
@FlorianMargaine yea.. that doesn't seem to make sense
 
and he got 4 upvotes by just repeating the question q_q
 
L408
i use the same formula and now i see u are right :D but still makes no sense (x_x)
 
@Abhishek gist.github.com/4450502#file-jsmp3dec-js-L482 how many indentation is that?
 
6:07 PM
@FlorianMargaine 4spaces
 
/ tab
 
indentation = 4 spaces or 1 tab
or whatever
 
oh eeks!
 
but an indentation is the space you add when entering a nesting
not sure I said it right
 
6:08 PM
on the editor it looked fine :-/
 
btw, you got 12 indentations
for that line
or 12 nestings if you prefer
that's... terribad, no matter what your indentation is
 
I wonder if the Math.floor() should be before or after the +padding
I'm doing it after, you're doing it before - but no site I looked at mentioned how it should be done
Or they expect people to use integer division and thus it would be done before the plus...
 
^
 
m59
@Zirak I'm starting to think I'm hopeless. I have lots and lots of functions that do cool stuff. I just don't know how to put them together anymore. I was so much better off writing procedural and my code being as ugly as it gets. At least I made things happen.
 
i read on some forums that it should ignore the rest part [ decimal ]
 
m59
6:11 PM
Why the heck am I getting worse at programming by studying it!?
 
@m59 rule of thumb
 
You're not, you're just realizing you aren't as good as you thought subconsciously :P
 
@ThiefMaster frameSize = Math.floor(frameSize) + ( (!!padding)?ext.ver.slot[layer]:0 );
how am i doing it before ?
 
yeah
 
ah
i see what you mean :-| , duh am so confused atm ..
i should better goto sleep -_-
 
m59
6:15 PM
Well, I'm getting nowhere as of late and it's getting really suck-fest.
 
1
A: In JavaScript, what is the ultimate root, Object or Function?

bfavarettoI believe the end of the line is Object.prototype, which is an object. This is what makes me think so: Function.prototype; // the empty function object Function.prototype.__proto__; // the default Object prototype Object.prototype; // the default ...

 
btw thief u need the original mp3 spec ISO ? just wondering
 
@Loktar this is so true.
 
not really
 
I thought I was so 1337 until I realized eval() and innerHTML were not so 1337
 
6:16 PM
its much better then these blogs and pages [ just saying ]
 
whaa??? inline js is not cool? fakkkk
 
I loved js, then hated it, then loved it back
and now I hate it
 
I love JS and APIs, hate most of the parsers.
 
seriously, we can't generate identifiers? ˜˜
and the syntax just sucks.
 
6:17 PM
JS syntax doesn't suck.. you just don't like it
I hate Python syntax.. I wouldn't go as far as to say it sucks.
 
no, it sucks
any syntax that's not at AST level sucks
 
meh, can't argue with arrogance/ignorance :P
 
python syntax sucks too
 
lol
 
XML syntax doesn't
 
6:18 PM
the only syntax's that suck are joke languages like brainfuck and whitespace
everything else is just 'different' than what you might already know
and if it isn't you probably like it
and erlang... fuck erlang.
 
no that's not it, I know them... it's just that if you're not at the AST level, you can't play around with the language at all
 
That doesn't make the language syntax suck. that means there are limitations with the language.
 
so it sucks :P
 
> padding_bit - if this bit equals '1' the frame contains an additional slot to adjust the mean bitrate to the
sampling frequency, otherwise this bit will be '0'. Padding is only necessary with a sampling frequency of
44.1kHz.
 
language sucking !== language syntax sucking
 
6:20 PM
if your gf doesn't, she has "limitations" as you say, and that sucks
 
m59
Do you guys know of any articles that might help me, rather than tell me great ideas that I can't reasonably implement?
 
or doesn't -- but you get it.
 
if my GF didn't at all would not be the same as she did it but poorly.
 
are you still on about your numeric indices vs named properties?
 
if she didn't at all, it'd suck, right?
 
m59
6:21 PM
no.
 
no, I'd just have two girlfriends.
 
LOL
that's not the answer I expected :D
 
m59
all I've asked/said/done is inevitably about how to structure my code.
 
but you can't argue with my logic ;)
 
I could
 
6:22 PM
@m59 let me take care of this for you
 
but that'd be way too long
 
m59
I've learned too much (supposedly) to think that adding if statements every 5 lines is good programming, but any way around it doesn't work.
 
there aint nothing wrong with if statements
 
@m59 this comes with experience. You've seen quite some stuff these days, even if you don't understand them all, you have seen them and they're now in your subconcious. You'll use them without knowing. Reading your old code in 6 months you'll think "what the hell was I thinking?!"
 
programs need conditions, and we need to determine actions appropriate for the conditions. If statements facilitate this.
 
6:23 PM
if I don't think "what the hell was I doing?!" in 6 months old code, there's something wrong
 
if( foo ) {
  action();
} else {
 // do nothing
}
 
because I didn't learn anything useful in the 6 last months
 
^ this is stupid tho
don't do this
however more and more recently I'm a fan of condensing my own code by hand :P idk why
(foo)&&action();
 
m59
@rlemon You probably have not realized the depth of if statements I'm referring to.
 
Intresting , @ThiefMaster hydrogenaudio.org/forums/index.php?showtopic=85125 seems like you are doing it right
 
6:25 PM
and I never will until you show us your actual code.
 
@rlemon i went through a small phase doing that for kicks and giggles
grow out of it as soon as you can, it's absurd
 
you're so cryptic with your little snippets of pseudo code.
 
I went through a phase of not using any semicolons
and using spaces everywhere, like jQuery
 
@Matt I've been a programmer for ~16 years... I've gone through the stupid habbits. Now I do the ones that make sense to me and are still elegant.
 
heh, fun times...
@rlemon I've been a programmer for 2 years. Damn you!
 
6:26 PM
eh that one is not so elegant. save short-circuiting for assignments, not logical paths
 
things like (condition) && action() are still pretty understandable imo
 
@rlemon i have been programmer for ~3 years [6 if u count the very stupid c code ] and my code is still SHIT
 
@rlemon when I read them from you, yes, because I know it's your style. Otherwise, I'd definitely not recommend it.
 
how does programming tenure come into play here? you have 2 years on me .. ok, but you're still doing something very silly :p
 
@FlorianMargaine not all web. mostly desktop application and machine code (assembly, basic, stupid almost-but-not-quite-java implementations)
 
6:27 PM
@Matt it happens ... as you will go through you will become better and better :P
 
@FlorianMargaine no I don't recommend it. I'm just stating that I find myself doing it more and more now.
I think it's because we read so much minified code :P
 
1 min ago, by rlemon
things like (condition) && action() are still pretty understandable imo
I don't think so ˆ
is what I'm saying.
 
@Abhishek you should grow out of abusing short circuits by the 2nd year or less :P
 
@Matt dunno if i abuse them
 
I don't see it as abuse.
 
6:29 PM
using it for logical path structure is abuse imo
i understand short-circuiting in assignments
 
It's like relying on ASM... I don't agree with it. but it's not abusing the language / engine
it's just.. well.. possible.
 
just use an if-statement o_o
 
@Matt why ?
 
m59
@rlemon 100 unique function in a program that can display 4 similar, but different things = 100 if statements based on option1, option2, option3, option4
 
if it can be done in a short circuit then why not ?
 
6:29 PM
@m59 is that code?
pastebin it man
 
it's more readable. name a language that doesnt use if statement for logic paths
 
just show us
 
@rlemon nice appeal!
 
@Abhishek I can write if statements without braces. Why don't I do it? Plenty of reasons.
 
m59
gosh let me write a whole other fail plugin lol, be back in a bit then
 
6:30 PM
@m59 don't write another anything. whatever code you're looking at now (working or not) paste it in
 
avoiding braces is one thing. avoiding an entire keyword is just silly. it just comes off that you're bored of a stagnate language :P
 
we're getting no where because we're trying to help you with code we cannot see
 
@Matt brainfuck but it has similar stuff en.wikipedia.org/wiki/Brainfuck
 
using an esoteric language to back up your methodology
oooook then that's all i needed to know
 
lol
 
6:31 PM
Abhishek, you lose ;)
 
@Matt to me it is akin to if( condition ) action(); but instead of keyword I use operators
 
i am just saying sometimes using a short circuit can be helpful
@FlorianMargaine i know :P ^
 
same characters.. personal preference.
also, I am the only person who maintains my code :P I win!
 
afaik if abuses short circuits internally , no ?
 
who cares?
I don't know how assembly works
 
6:32 PM
not really.. short-circuiting has its uses. completely sidestepping the (very) readable "if" statement is absurd
 
^- :P
 
you sound bored
 
that reminds me
I have to read this damn book about assembly...
 
@Matt yeah true .. but its not that bad as you were reacting
 
you should use coffeescript, there's alot more room to be ambigious
 
6:33 PM
@Matt the fact that you had to start this discussion because I like to short circuit my simple logical paths means you must be bored.
 
incoming!
 
what was it already...
 
@Matt ok you should just leave now.
 
no doubt i am bored. but i don't let it affect my code quality :P
 
@Matt You're fun. Stay here.
 
6:33 PM
fml ... just spent ~500€ for a new suit.
 
my code quality is perfectly fine actually ;)
 
@OctavianDamiean I was about to ping you!
 
eye of the beholder etc etc
 
@OctavianDamiean show yourself inside it
 
what's the book about assembly again?
 
6:34 PM
@FlorianMargaine assembly is fun
 
don't brag about your 16-year experience until you've grown out of writing silly code. you're making us look bad.
 
@Abhishek When it's back from the tailor I'll do. ;)
 
honestly? I don't know
 
@FlorianMargaine o/
 
m59
@rlemon This code is ridiculous in almost every way. I think examples are way easier to understand than this junk. pastebin.com/1Rt4Mq7Y
 
6:35 PM
@Matt who are you kidding? have you seen my mug... I make this shit look goooooood.
 
m59
@rlemon I don't even understand most of it.
 
@rlemon -_- yeah and sometimes with photoshop good lok shiiiiiiiiiiiiiit
look*
 
m59
@rlemon I just did junk and it worked so I rolled with it.
 
also, 99% of my JS code is bordum code :P I write machine code for a living :)
me no web dev.
 
6:36 PM
well, i can believe that.
 
@m59 you know, when you declare a variable without var, it becomes a global variable
 
ouch... you really are a little bitch arn't you? someone piss in your corn flakes this morning?
 
m59
sigh
 
@FlorianMargaine What for? :)
 
if you're no web dev, why is it i'm supposed to be leaving, exactly? ;)
 
6:37 PM
2 mins ago, by Florian Margaine
what's the book about assembly again?
 
m59
< get asked for code that sucks
 
Because you suggested coffeescript
but are talking about silly bad looking code.
hipster
HIPSTER!
 
to you, yes. since you like silly unreadable code :)
 
huh? How'd you figure I'd know? :D
 
m59
< get treated like coding ability sucks
 
6:37 PM
LYNCH THE HIPSTER!
 
guys
I agree with only one here
 
m59
Yes, I'm very aware of the var keyword. I use namespaces, also.
 
but I think you both went overhead and should stop before insulting each other :)
 
@FlorianMargaine but it's fun.
I hope he isn't serious. I'm not.
 
xkcd duty calls etc
 
6:38 PM
@OctavianDamiean coz you're the one who showed me before iirc :<
hello, @SomeKittens !
 
@rlemon sounds like apple fan
 
who me? how dare you!
 
not you!
the definition
 
@FlorianMargaine Uhm, you sure about that? I can't remember enjoying assembly.
 
(disclaimer: ipods are nice.... Apple is a POS company... jerks)
 
6:40 PM
@rlemon LoL
all thier products are build wise nice
except for totally worthless for the price tag for what is inside
 
my macbook is the best linux machine i ever owned
 
@Matt specs please and cost please :D
 
2011 macbook with 8gb ram that my company gave me
im going to assume 1.5k usd
 
@Matt s/linux/unix
 
xubuntu
 
6:41 PM
i really really doubt , i am making one o 1.5k for 8 gigs ram is un-imaginable in 2008
 
I like the form factor... all experience with imacs has resulted in me hating the form factor for it's lack of heat management and customization of hardware.
 
sexy displays
 
this one is on .. 1204? or 1004
 
@FlorianMargaine The only assembly related book I've read is this savannah.nongnu.org/projects/pgubook
 
6:41 PM
one of the LTS' not sure
 
@Matt Does the UI look ugly?
 
@OctavianDamiean no that's not it... guess it wasn't you q_q
 
i.e. are you running Unity
 
nah xfce is fine. only pain point was getting a workable touchpad driver
 
it's xfce...
 
6:42 PM
osx is still the best OS for the touchpad gestures
 
@Matt the touchpad is far from being at the same level as OSX
 
I hate touchpads
 
Oh missed that he mentioned xubuntu
 
I love touchpads
 
@FlorianMargaine tested windows 8 with it ?
 
6:43 PM
@FlorianMargaine no doubt, but getting 2-finger scrolling was a win. now it's chromebook quality.. :/
 
meh, to each their own.
 
@rlemon I got this apple.com/magictrackpad :D
 
@FlorianMargaine Hello, I've got lunch now!
 
OMG MY BROTHERS GF HAS THAT
RAGE!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
I'm indifferent about touchpads
 
6:43 PM
@Matt yeah... 2-fingers scrolling really sucks when you get 3-4-fingers scrolling on OSX
 
I hated the thing with a passion (mind you I only ever game on her pc)
 
I like touchpads on linux , mouse on windows 7
 
uh. yeah. I got a mouse to play.
 
magic trackpad for gaming is a PITA POS
 
I'm not that crazy...
 
6:44 PM
and the keyboard is too small.
 
fuckin canadians man. can't you recognize a good touchpad @rlemon
 
@rlemon I have such a thing too.
 
but I also dislike most laptops only because the small keyboards
I need a full sized keyboard and a mouse
 
magic touchpad is the only one i haven't hated
 
Touchpads for gaming? Ugh. Done it once, when desperate.
 
6:45 PM
@SomeKittens never again... never again.
 
@SomeKittens done it twice in c-strike
got kicked out of server , voted (x_x) its just most horrible idea
 
@rlemon The full sized Apple keyboard is quite amazing actually.
 
we had one mouse for two laptops. Switched off until the guy with a spare mouse showed up
 
I got this keyboard since quite recently store.apple.com/uk/product/MB110F/B/…
 
The tiny "mobile" mouse isn't much better
 
6:45 PM
but here is the kicker: when developing I don't often ever touch my mouse.... I only use it when web browsing and gaming... I suppose for web browsing it wouldn't make a difference - but for gaming it is huge.
 
@FlorianMargaine you are building a stack of Apple* products ... something in mind or just casual ?
 
we're all saying that touchpads suck for gaming ;)
@Abhishek what?!
 
sorry ... i am high dudes
 
particuarly games that require dragging
i mean really
 
@OctavianDamiean this one is not ^^^
 
6:46 PM
@rlemon I hate that one.
 
Stop showing off -_-
i love my compressed keyboard
 
@Abhishek hehe
 
and my lap-furnace
 
@Zirak ^ ? ^_^
 
6:47 PM
which now is being cooled by running water -_-
 
@m59 Look into pub/sub. Events are the answer.
 
I just have an MBP... and since then I bought the trackpad, and got the keyboard for christmas. I've had the MBP for over a year though
 
@Neal eh?
 
m59
@Zirak why do I need events to run 25 functions in a row?
 
6:48 PM
@Zirak you were being a haiku buff a couple days ago, if I remember correctly
 
@m59 You don't. You probably do if you want to do it dynamically and with awesome.
 
m59
@rlemon lol, I have the same thing here at work.
 
fuck I have like 9 keyboards at home
I need to e-waste them
 
@rlemon 'cept mine's a mechanical keyboard.
 
6:50 PM
I am using this: staples.com/Microsoft-Wireless-Keyboard-800/product_326887 with mouse that came with it
 
@rlemon try fingering them to test which ones actually are still usable
 
every time I get a new one I just closet the old one and say "backup if the new one breaks"
the new ones never break.
 
OMG
I just discovered an awesome xkcd
 
> Please enter the Zip Code where products will be delivered.
 
6:51 PM
stupid
 
@OctavianDamiean i built my own mouse in a workshop
 
@OctavianDamiean I had a mechanical keyboard... tbh didn't notice enough of a difference to pay the price
 
was fun ... amzingly it works just fine (XD)
 
so I didn't get another.
probably still have it in a box in the closet.
 
very very low DPI though , so its like battling the doom when u wanna turn around in a game
 
6:52 PM
@rlemon The difference will show in ten to twenty years.
 
already have carpal tunnel in both wrists.. from programming (jerks)
 
@* if u find a hair reparing thing ping me @Loktar if u find some solution for hair loss ping me ... i need to preserve them
 
@Abhishek will do
I tried one recently but idk
I am still losing my hair
 
@Abhishek Shave em off completely, problem solved.
 
My gf says i will look like that person if i lose em all
 
m59
6:54 PM
@Zirak I just read a pretty detailed tutorial on it.
 
worse , she and her friend sent me that exact cloth set -_-
 
> Yet, there are no good studies that prove carpal tunnel is caused by typing on a computer, using a mouse, or repeating movements while working, playing an instrument, or playing sports.
 
I dont wanna be bald @OctavianDamiean
 
@Abhishek you should
 
Why not, you'd be kinda like the Indian Bruce Willis.
 
m59
6:55 PM
@Zirak still not seeing what to do with my software. I gotta get back to work on some stuff, don't worry about it,
 
My old room mate was balding at 25 and tried a LOT of the 'hair growth' treatments... never found one that worked. BUT from what he researched they are all hit of miss on an individual basis. What might work for Loktar might do nothing for you.
 
@FlorianMargaine i will look like 2x of my age
@OctavianDamiean and i am NOT die hard :-/
as bruce
 
Mercy on my poor RAM
 
so? You'll get girls 2x your age with some effort (but damn they're good), and girls your age without effort (they love "mature people")
 
6:56 PM
@Zirak you know you can refresh the page or disable images
 
he had hairs
@FlorianMargaine really ?
okay tomorrow i am getting em shaved
 
@FlorianMargaine I agree. Older women are really just damn good.
 
(XD)
 
@rlemon But this makes more people sad, and according to the Preservation of Happiness, it'll make other people happy. I'm just trying to help the world.
2 messages moved to recycle bin
bah
 
You know what makes people sad? Rape. You know what makes me sad? The people who are not sad by Rape.... and warm beer.
 
6:58 PM
^ Zirak :D
i have an even better one but dunno if i should post it :-/
 
Disabled images. This looks...different.
 
no onebox... BUT EVERYONE LOOK AT THIS!!!!
 
I can't recognize any of you.
 
Meh, she's alright but not stellar.
 
I like the lower back curve.
 

« first day (811 days earlier)      last day (4138 days later) »