« first day (536 days earlier)      last day (4410 days later) » 

2:00 PM
nope because only >>> will result in unsigned integer
 
and its TWO characters less :p
hmm
 
0xFFFFFFFF >>> 0
4294967295
replace with any other bitwise operation and you will get -1
except & of course
 
@GGG guess what :3
 
I never got how bitwise operators work :/
 
0xFFFFFFFF & 0xFFFFFFFF
-1
:-P
 
2:02 PM
@copy cheater the second operand supposed to be 0 :P
 
@rlemon thanks for the link to scast -devel that day
 
np
did it help
 
I am testing a pre-alpha
of broadcaster :3
sounds chipmunks but works :D
 
you got any good link on bitwise operators in js?
 
so yes it helped a lot!
 
2:03 PM
@FlorianMargaine they are only useful if you are writing or reading binary files like mp3
 
yeah, well, it's also to understand how they work
and clearly, they're also useful for other stuff :p (as shown in the polyfill)
 
that's javascript specific use, since we normally only have Doubles
 
@Esailija: define "useful", I guess there a quite a few places where I'm happy to have those
 
js doesn't have float only?
 
@jAndy I mean in situation where they are in a solid main role
of course they are nice to have with ~indexOf and such
but it's not a dealbreaker
in that situation :P
 
2:06 PM
so, any good link? :p
 
A bitwise operation operates on one or more bit patterns or binary numerals at the level of their individual bits. It is a fast, primitive action directly supported by the processor, and is used to manipulate values for comparisons and calculations. On simple low-cost processors, typically, bitwise operations are substantially faster than division, several times faster than multiplication, and sometimes significantly faster than addition. While modern high-performance processors usually perform addition and multiplication as fast as bitwise operations, the latter may still be optimal for ...
 
fair enough.. or if you're writting a gameboy emulator in js or something ^^
 
I have written mp3 id3 tag parser and youtube audio extractor
 
by "good link", I mean "link where I will understand why, how and where to use it"
 
but yea not much else
oh and .wav writer and parser
 
2:08 PM
I am writing a x86 emulator, bitwise are really important for this
 
well doesn't matter if you don't have, I'll try to play with my google-fu
 
maybe also for FileReader API and binary's as you mentioned
and BSON
 
GGG
@Esailija how do you read the file?
 
@FlorianMargaine the best way to learn is of course to write some kind of binary parser yourself
@GGG FileReader api
 
:-)
 
2:08 PM
heh, I guess so.
wow
bharathi, Bangalore, India
527 3 19
 
@copy: you have too much time or something ^^ ?
 
this guy has many questions... not so many answers
 
@jAndy I guess so :P
 
GGG
ugh why is browser support always all over the place on cool stuff like this
no wonder i never heard of it
 
I just had my personal disappointment with fileReader API today.. when I wanted to show some colleges my cool new uploader using fileAPI, websockets and node
 
GGG
2:11 PM
everyone can get on the same page about 10 different array iteration functions, but something useful like reading a file? Nahhh.
 
works great.. except.. on iOS and so no iPad / iPhones
I totally forgot about that sucking sandbox file system on iOS
just disabling any input type file
 
what you can't use input type file on iphones/pads?
 
GGG
heh is that how it works
yeah i've never tried it i guess
 
@Esailija: no, except you jailbreak it
 
FFS iframe hack for ajax upload is a biatch
 
GGG
2:13 PM
does it work on android?
 
iOS doesn't allow any file access
yes android works fine
 
I am probably an idiot :(
lulz
 
:D
 
i read the file off the server :< , and used file upload for user to upload the song
 
it also works on iOS actually, webkit supports the API, but the iOS just doesn't allow for webkit to do its work
 
2:14 PM
but its fast though as i can use lame on server
 
@GGG you can also drag n drop files to your browser, and google chrome exclusively supports adding folders at time
you can try add folders of mp3 files here if you have chrome tuohiniemi.fi/~runeli/petka/dplayer
 
RT @w3c: #w3ccommunity Call for Participation in Speech API Community Group http://bit.ly/HKfrS3
RT @w3c: W3C Launches Web Cryptography Working Group http://ow.ly/1iz08P
 
GGG
huh, crazy...
 
I <3 my gf , i just found out what i am writing as a ' family ' project
can cost huge :3
as in huge (XD)
but i am evil , i'd just open it
 
I <3 my gf, she bought me a car. :D
but i am evil , i'd just open crash it
 
GGG
2:20 PM
speech api?
 
no but really, she bought me a car.
 
GGG
yeah i bet that'll have some staying power @_@
 
lol
 
holy shit
is she rich
 
@Esailija sounds like lulz
@GGG she got me making a web-based broadcasting software
like SAM broadcaster
well to compensate speech i am using flash fallbacks [ugly] and phoneGAP native's[even uglier ]
 
2:28 PM
can someone tell me what I'm doing wrong here? jsfiddle.net/dreamling/AMLaj/3
 
you're using jquery
 
oh, right, i should include that
haha
i know it's after 9, but it feels so early
 
sure
 
ok, aside from jquery(which is now added in the fiddle) jsfiddle.net/dreamling/AMLaj/7
 
lemme see
 
2:32 PM
don't use inline event handlers btw
makes reading code horrible
 
$('body').removeClass('*').addClass(CurrentTextClass); <-- like that?
 
var CurrentTextClass=text(TextClass2);

hm?
 
@gni33 I think that was me flailing
 
was mostly wrong css jsfiddle.net/AMLaj/9
 
@Dreamling: no, like that : <div onclick="function()">
 
2:33 PM
initially set to simply =TextClass2
 
and functions declared in a closure instead of being global
no wrap head fixes this
 
@Dreamling
why no CSS 3 ?
 
css here is simply for testing
 
nooo
i assume
 
working with a legacy system
 
2:36 PM
you are applying layout classes
for responsive web-design ?
 
@Dreamling you know you can just write one function, pass the className as parameter and add it?
 
@GNi33 +1
 
no need for three functions there
 
that's true, makes it nicer
 
actually if this has anything to do with media
like width , height etc
css 3 media queries would be b8r aye ?
 
2:37 PM
it's not about responsive as much as it is about user pref
 
ProTip: if functions pretty much look the same with some minor differences, there's a good chance you can merge them into one ;)
 
I agree, @gni33
 
TipByExperience: Media Queries will pawn javascript in speed
 
@Abhishek: I think her stuff is more about accessibility than screen size
 
Hmm if she tells what it is ?
 
2:39 PM
@florian yes, this is true.
 
of course they do
 
GGG
heh... this guy modified his iphone to say "Sent from my Robot Trumpet"
 
and currently it's all being handle by another js that inserts class="font-size:65.5%"
or larger %
i mean style=
@esailija what did you fix?
 
just select [no wrap head] in jsfiddle above the framework selection
so the functions will be global
 
oh!
how do i add that in by myself?
 
2:49 PM
hi friends
anyone knows how to use scss in sublimetext?
 
@Dreamling
are you asking how do you add wrap head ?
or are u asking how u remove the wrap ?
@Steve no :( ask in CSS room
 
add it so the functions can be global? (in jsfiddle it's a drop down) how do i replicate?
 
@Steve what do you mean? start a build - process within sublime?
 
You don't have to replicate. It's the default behavior in normal webpages
 
i usually got a build-process running, that automatically builds files on change
 

« first day (536 days earlier)      last day (4410 days later) »