« first day (599 days earlier)      last day (4342 days later) » 

2:10 PM
looks like nano to me
 
3
A: Javascript: Use function as variable

pimvdbNot with variables, but it is possible with properties on objects. It's called a getter. var obj = { get xvar() { return $('#y').width(); } }; Then you can use: obj.xvar; // will run the above function

does that work?!
 
it is easier to write xvar() than obj.xvar though
 
yeah, but in case of objects, getters/setters look fine
looks like defineProperty sugarized tho
mdn down :(
oh, it's back.
 
:)
 
no info about browser support on mdn, let's see what I can find
 
2:22 PM
Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support 2.0 (1.8.1) 1 9 9.5 3
There you go...
damn that was fast. :)
 
hm, it has.
I gotta learn to read.
 
:)
 
you look like awfully sarcastic, do you know it's offending?
 
I'm trully sorry, I didn't mean to!
 
heh, no offense then :)
 
2:25 PM
Anway my appologize!
 
@FlorianMargaine. You should learn how to google things about javascript. you add an MDN prefix... Examplegdoron 11 mins ago
+1
 
I had some mdn results, but they were not satisfactory, after two other searches, google knew what I wanted and got me the right result
 
google knew !
 
"They" know....
 
ddg -> !js javascript getter
 
2:30 PM
what is it?
 
love duckduckgo because of this feature
 
duckduckgo
has some "dev" features
 
!js "prefix" uses the mdn search directly
 
you can search "!jquery post" and it'll search in jquery api, same for !github, and a lot of other stuff
 
connected with the address-bar, this is just great
 
2:31 PM
Really
 
I just don't like it because it's way slower than google -_-
 
?
 
the speed is getting better
 
it was horribly slow at the beginning, now it's okay. Way faster than googling and clicking the mdn - link ;)
 
2:33 PM
is there a way to get straight to the first article however?
because as it is, it's just like chrome's tab feature
 
if it finds a perfect result in the mdn - search, you get directed there immediatly
 
example?
duckduckgo.com/?q=!js+array.prototype.map doesn't redirect to the map page :/
 
at least i thougt it was :/
just tried it.... weird, i could swear that worked before
 
same for !jquery
 
Hello guys
 
2:35 PM
o/
 
@Abhishek o/
 
\o
what are you all upto ?
 
does anyone have any info on making an animation that involves transparent edges like an explosion in canvas?
 
@FlorianMargaine dammit, this is pissing me off now :D
 
2:38 PM
never mind, some creative googleing worked
 
@used2could did you checked out
uh okay nvm Lol
 
@Abhishek well i'm up for any learning material, if you've got a link let me know
 
Fabric.js
 
i haven't but i'll link into it. thanks
 
i'll write ddg about this
 
2:39 PM
@GNi33 keep me informed
 
fabricjs.com @used2could
 
hmmm
\mdn document just worked
 
back slash
 
ah, thanks :D
 
2:45 PM
np
 
\js map or \mdn map or even \js forEach doesn't give great results though :/
\mdn foreach does work
 
:p
 
@Esailija um basic question just wanna make sure if i am not doing something wrong .
 
sup
 
float f = (float)( buffer[0]<<24 | buffer[1]<<16 | buffer[2]<<8 | buffer[3] );

that should convert a char buffer to float , right
char = 8 bits
float = 32 bits.

Hopefully i am not doing something wrong :/
 
2:52 PM
heh, C++ and playing with bits
how fun
 
do you mean the file has float encoded in bits
or turn integer into float type
 
yes
it has float encoded in bits
its not a file its the output of the mpg123
 
then that won't work
 
:-/ whut will ?
 
what language is this even
 
2:54 PM
@FlorianMargaine yes, \ at the beginning just takes the first search result
 
C++
 
and bang-syntax generally uses the on-page - search
 
in javascript you would do var floatNum = new Float32Array(buffer)[0]
 
but javascript is slow :-(
 
just saying an example
I don't know c++
but what you are doing is just converting integer to float, not decoding float
3
Q: How to read a float from binary file in C?

Polaris878Everything I'm finding via google is garbage... Note that I want the answer in C, however if you supplement your answer with a C++ solution as well then you get bonus points! I just want to be able to read some floats into an array from a binary file EDIT: Yes I know about Endian-ness... and no...

 
2:59 PM
actually converting character to float [even worse]
 
read this and you'll see why you can't just directly use the bits and must decode them en.wikipedia.org/wiki/Single-precision_floating-point_format
for example 7f7fffff = 3.4028234 ×10e38 but if you just directly read the bits you would get float with value of 2.13909504 × 10e9
 
takes the eyes of a coder :) just had to go fix some boards that the engineers couldn't find the mistakes in. 300+ parts and one is soldered in backwards. i caught them all on each board in a minute or so.
 
@Esailija there is the documentation for that buffer
 
years of looking through hundreds/thousands of lines of code looking for the :/;
 
3:07 PM
:p
 
from that it appears that would work but cant be sure
 
what would work
can you give me the buffer0-3 value as binary like ffffffff from some file
 
sure.
138,54,140,183
 
-8.789447E-33 or 2318830775... which makes more sense?
 
-8.789
 
3:16 PM
what is this number even about
 
PCM
its a pulse code modulation output generated by libmpg123
it just dumps all output
into a char * array
 
right
 
js decoding was way too slow
 
when did boxee stop offering their software and guides on how to "make a boxee"
 
so you can't use the (float) thing, because that would give 2.31883085E9
decoding it as single precision float gives -8.789447E-33
 
3:23 PM
1
Q: Reinterpret float vector as unsigned char array and back

RaymondI've searched and searched stackoverflow for the answer, but have not found what I needed. I have a routine that takes an unsigned char array as a parameter in order to encode it as Base64. I would like to encode an STL float vector (vector) in Base64, and therefore would need to reinterpret the...

 
yeah
 
:-) thanks for making me understand what i needed :-D
btw i am reading IEEE wikipedia :-)
 
@Esailija  my final solution was ::
	float * fl = (float *)buffer.data();
and it worked
 
:)
 
3:34 PM
 {[-0.000003232581093470799,
 -0.00001963611794053577,
 -0.000008793767847237177,
 -0.000019883551431121305,
 -0.000015638303011655807,
 -0.000016714697267161682 ] }
 
yo - I am trying to very simply make tabs out of Jquery - can some one help
<script type="text/javascript">
$(document).ready(function () {
$(function () {
$("#tabs").tabs()
});

});
</script>
<ul>
<li><a href="#tabs-1"><img src="images/search.png" align="left" style="margin-right: 10px;" border="0"/><b>SEARCH<br />EVENTS</b></a></li>
<li><a href="#tabs-2"><img src="images/iwatch.png" align="left" style="margin-right: 10px;"border="0" height="40px" /><b>WATCH<br />EVENTS</b></a></li>
<li><a href="#tabs-3"><img src="images/calendar40.png" align="left" style="margin-right: 10px;"border="0" height="40px"/><b>START<br />EVENTS</b></a></li>
</ul>
 
wow @Esailija for an mp3 file is it normal to have a lot of values in negetive region ?
 
b = new Float32Array(a.buffer)
[-0.000016714697267161682]
 
so my answer was correct ?
 
what do you mean
 
3:40 PM
The first frame i see most of the values are < 0
 
What do the values mean?
 
can anyone help me with this?
 
1 frame is only like 1152 samples
like 0.05 seconds of music or something
 
that small !
 
0.026 actually
 
3:42 PM
oh wow!
 
@Zirak amplitudes for samples I guess
 
no one can help me use jquery tabs?
 
@ScottSelby i think you need to be calling .tabs(); on the ul, not the individual links. That's just a guess though
@ScottSelby see jqueryui.com/demos/tabs
 
@used2could is correct
 
<ul id="tabs"> still didn't work
or <ul class="tabs">
 
3:47 PM
follow the example jqueryui.com/demos/tabs it should be pretty straight forward
 
@Loktar o/
 
hey @Abhishek :)
 
I got dumped 8-)
lol
 
@used2could I copied and pasted it , and I know the site is finding library because .hide() hides element
 
for coding >_>
 
3:48 PM
lolwut
:o
 
My gf dumped me cause i pay too much time with JS and C++ instead of her
3
funny eh ? lol
 
@Abhishek I just started marriage counselling for the same thing
 
lmao
My last message to her "#TypeERROR :: No conversion defined from Geek * to w.e_you_want **"
 
what is the song name with first frame all negative samples
 
lol
The woman likes having nice cars and not having to worry about working but complains about me having a full mon-sat schedule
 
3:52 PM
you could use Audacity to verify it
 
UGh
linkedin leaked 6.5 million passwords
already 300k decrypted
 
ouch
@used2could lol mine wanted my time and wanted me to earn loads
both cant happen together
 
yep
time<>quality<>budget, pick 2
2
 
4:05 PM
I should change my name to ECMApanda
 
@Esailija its called Akon Lonely
i dont have audacity
 
downloading
in the meantime , can u tell me how to read mp3 pcm output in audacity ?
 
file -> open
and see if it stays under the line for first frame
well that's pretty zoomed out
but I think you can zoom in to see 1 frame at time
 
4:24 PM
This version of audacity was not compiled with mp3 support
i did yum install audacity lol
 
:I
 
yum install audacity-freeworld
 
@copy o/
 
user1385191
@Loktar I've said before that LinkedIn is probably one of the worst (big) sites ever developed
 
user1385191
though Stack(Exchange || Overflow) is giving it a run for its money this morning
 
user1385191
4:29 PM
falls apart with manual cookie handling
 
@Esailija i was correct
 
correct with what
 
my code was
is stays down for most of the first 5 frames
 
cool
 
and then booms up :D
thanks for the help bro :-)
 
4:32 PM
-0.00001 means pretty close to the center line though
 
+1
audacity supports vertical zoom aswell
[atleast the zoom cursor did that]
 
` The Stack Overflow 2011 community moderator election is underway — nominations now being accepted.`
dafuq?
it's halfway 2012
 
I nominate Raynos!
 
Are you kidding ?
 
Raynos isn't there though
 
4:37 PM
@DieVarDump yes lol
 
user1385191
lol
 
how is moderator different from 10k rep
 
user1385191
this is the time of year when people flaunt their badges and rep counts, begging the community to revere them
 
Probably you get to block bitches :3
 
user1385191
and the community will oblige by once again nominating the users with the highest rep counts
 
4:41 PM
Rogers business internet: 8Mbps down, 1Mbps up, 1 static IP, 9 emails, unlimited bandwidth. $100/mo
Rogers consumer internet: 75Mbps down, 2Mbps up, 1 dynamic IP, 20 emails, 250GB bandwidth. $90/mo
WTF rogers
 
user1385191
at least it's not Bell
 
and they tell me I cannot get a static IP on my consumer internet
 
250GB bandwidth. $90/mo VS unlimited bandwidth. $100/mo
unlimited ? limited ?
 
"why" i ask.
"It's a technical limitation, unfortunately the internet servers don't work that way"
 
lol
 
4:42 PM
TROLOLOL you gotta be effing me
 
olol
 
@DieVarDump business internet, i'm not downloading or streaming. I don't care about bandwidth. I need speed + static IP
we don't host anything
 
user1385191
so I figured out a way to unit test browsers with inadequate DOM Core support
 
we do remote access our control systems from our business though so we need speeds up and down.
 
user1385191
4:43 PM
a form!
 
basically you can have speed + low price or static IP + high price + low speed.
 
what do you do with a form
 
not speed + static ip + any price
 
internet in north america is really weird
 
user1385191
you modify disabled form control values
 
user1385191
4:44 PM
no DOM core required
 
user1385191
all DOM 0
 
i told them I don't care what it costs... I need a static IP with at least 75Mbps down and 2Mbps up and they said "can' t do it"
what a business model
 
Rogers ^^
 
yea
Bell is worse
 
Canada is known for its monopoles
 
4:45 PM
they're all like "yea we can do that, here is your 50Mbps connection".... speed test shows 4Mbps..
we're with bell right now and the speeds on their best business package are abysmal
no coax in my area either (business district ) so rogers said they could run us lines but it would also cost us.
or they could serve us up over copper cables but that would be slower than bells ADSL
we just can't win.
 
user1385191
is TekSavvy out there yet?
 
MG1
Hello - I am trying to build an application where a user imports a CSV -> the data gets formatted into proper object/array format and is displayed to the user -> then the user is given options to make changes to certain data, and I need this data to be updated in the object. For some reason I am not seeing this... Can the original object values that was created and is used to display the data be modified based on user input?
 
not that i've seen
@MG1 sure why not.
 
var ??? = {left: x, top: y, width: w, height: h}; How would you guys name that ??? object? "Coordinates" and "position" don't really apply to width/height...
 
MG1
I am doing this type of an assignment element.PmtRec.PmtFormat = PaymentFormat and then looking at it in the console, but I don't see the change.
 
4:49 PM
@Oleg info
 
@MG1 Probably wrong "element"?
@rlemon everything is "info" and "data" too.
 
yea
what is wrong with that
you are mixing dimensions with positional data.
matrix_info
 
var coords = {left: x, top: y, right: x+width, bottom: y+height}
 
or that ^
then refactor your uses.
 
MG1
@Oleg I've double checked and it is the correct one
 
4:51 PM
@MG1 can you provide us with a example, jsfiddle.net
easier to help if we can see the data, and the user input.
and does element exist in the object array or does element reference a HTMLElement
 
@Esailija again a question
 
sup
 
which is a better solution for the api
options are
a) mp3Read(file,function( data ){
/* Dumps all data at one */

});

b) var reader = mp3read('file');
reader.on('data',function(){
/* do something */
});
 
I am worried about the first option dumping 50 - 60 mb of data at once :-x
 
MG1
4:55 PM
I don't know where to enter the actual object data in fiddle..
 
then b) :P
 
probably b is safer and better :-)
allows me to make room for data coming lol
 
BWAHAHAHAHA
 
user1385191
you really should move this project to the node room
 
4:59 PM
it's not just node it's all kinds of stuff
 
paste.ubuntu.com/1027162 THIS SINGLE LINE METHOD IS TOO LONG TO PASTE INTO THE CHAT?>!!?!?!?!
 

« first day (599 days earlier)      last day (4342 days later) »