« first day (248 days earlier)      last day (4701 days later) » 
00:00 - 20:0020:00 - 00:00

12:23 AM
night folks
 
gnight
 
night
 
1:01 AM
night folks :)
 
1:24 AM
hi
 
hi
 
2:01 AM
JavaScript!
yeaaaaaaaaaaa!
hullo!
ok babay
 
2:17 AM
RT @dalmaer: Joshua Johnson has a fantastic guide on doing amazing things with CSS reflections http://t.co/gQuGHym
RT @rworth: If a11y and JavaScript are important to you, please consider attending the ARIA Hackathon http://t.co/Qtm524H Toronto July 1 ...
RT @codinghorror: Performance is a Feature http://t.co/Vs1S1ff
 
3:09 AM
RT @johnallsopp: RT @sherro58: Are you a HTML5 & Accessibility guru? #AGIMO details how to be involved http://t.co/3dpAQdC #a11y #gov2au
 
user1385191
...learn something new every day
 
3:54 AM
yi..
 
 
5 hours later…
8:35 AM
quick and extremely stupid question : were JS variables case sensitive ?
 
user196106
Yes
 
8:59 AM
CTRL+SHIFT+J -> var foo = 4, Foo = 5; foo === Foo -> false
 
9:15 AM
Microsoft architect Avi Bar-Zeev: "Why Microsoft and Internet Explorer need WebGL (and vice-versa)" http://goo.gl/VUFxj
Avi Bar-Zeev: "There is clearly only one direction forward for Microsoft and 3D on the web. WebGL is the way" http://goo.gl/VUFxj
 
user196106
Those feeds are so annoying...
 
9:27 AM
RT @Paul_Kinlan: WebMessaging is broken http://post.ly/2FnsY
 
9:42 AM
Gregg Tavares: "WebGL Security and Microsoft Bullshit" http://t.co/EELu7h7
DOS vulnerability in Silverlight 5's 3D (similar to WebGL DOS vulnerability) http://t.co/PnFJQ61
 
 
1 hour later…
11:08 AM
in jquery or Javascript is there any way to find the id of element which is triggered last but one
 
:D
"last but one" what?
most recent event that was triggered?
why are your events hard coupled?
 
the event occured before most recent event
i have got many table data td withinn single tr on clicking any td onclick event will trigger
 
Ok
so grab that td from the click event
 
yes
 
e.srcElement or e.target
 
11:14 AM
i want to know the id of previous element which is triggered an event
not the most recent element which is triggered an event
 
why do you care. redesign your code so its not hard coupled
 
got it!
 
:)
 
11:49 AM
@Raynos I proposed the get more RAM solution to a 80GB table index yesterday. They didn't seem happy about that. :(
 
RT @fjakobs: We are so thrilled: Cloud9 Raises $5.5M From Accel And Atlassian Software http://t.co/eJDV8Sw via @techcrunch
 
12:22 PM
@gsnedders what does that mean?
80GB of data
or the list of primary ids fills 80gb?
 
@Raynos No, the index is 80GB. The data is far bigger.
 
80 billion records gets a bit silly.
That's just 4 x 32 gb. Easy
Can a server OS support 128gb ?
 
@Raynos Oh, sure, easily
 
256gb ?
I can I just slot in 8 x 32gb on one machine?
 
@Raynos The OS can cope with huge amounts. On AMD64, the limit is 4PB.
 
12:35 PM
I see.
can hardware cope with it?
 
@Raynos If you look at the sort of hardware that has a double digit number of processors, yeah. Dunno about lower-end stuff than that.
 
12:55 PM
My motherboard has 4 slots :D
 
@fjakobs
when i first say that my brain processed it as fake jobs
saw*
 
Hello folks
 
1:46 PM
Morning ninjaland
 
Is it worthwhile to find a js -> assembly compiler
and play around with simple snippets of js to see what is actually happening?
 
@Raynos Well, you'd want to use actual JS engines.
@Raynos Especially with stuff like TraceMonkey, V8 3+ (i.e., Crankshaft), and Carakan which do run-time based optimization
@Raynos They probably have options in their shells to show disassembled generated code
3
A: How can I see the machine code generated by v8?

sstockI don't know how to invoke the disassembler from C++ code, but there is a quick-and-dirty way to get a disassembly from the shell. First, compile v8 with disassembler support: scons [your v8 build options here] disassembler=on sample=shell Now you can invoke the shell with the "--print_code" ...

 
assembly what a nightmare
 
@ChrisMarisic ARM assembly isn't that bad!
 
the only college class i ever submitted a non working program
except it was also every assignment, i still had a B+ in the class with one of the top grades
every program always looked right as far as i could tell, and ever run always just some strange error with no way to solve it, probably didn't have the right tools with notepad + msasm
 
2:07 PM
@ChrisMarisic I don't know any assembly
nor do I understand the difference of computation expence between i++ and i = 42 and i = "foo"
 
@Raynos The computational expense depends upon whether the variable is a local variable or not, for a start; in the former case, i++ then depends upon the register allocation scheme and whether or not i is in a register; etc.
 
2:32 PM
Yes, but I don't know any of that.
Would reading / looking / playing with disamebly help gain that knowledge
 
Hi ! I'm working on a PHP function that write à JS function... everthing working fine but there is no newline between each "echo" so i've add \n at the end of each echo, but when I do that I receive à Illegal Token error on my JS Console... could someone could give me a hint ? (exemple: echo 'var m_title = "'.$circuit[nom_intervenant].'"; \n';)
 
@Raynos Given a proper manual, sure. But you probably want to start looking at disassembled code from something far lower level. OO languages are inherently more complex, so start with C… and compile it to assembly with -O0 (i.e., no optimization).
 
@JonathanLaf Since you're using single quotes, your string literal isn't parsed, and thus your escape character (\n) isn't turned into its actual counterpart (line break).
@JonathanLaf Use double quotes around the \n, and it should work fine
echo 'var m_title = "'.$circuit[nom_intervenant]."\"; \n";
 
okay thanks Ryan !
@RyanKinal
humm @RyanKinal
something i don't understand
you are starting with a single quote and finissing with a double
 
2:50 PM
@JonathanLaf Which is?
 
^o)
 
@JonathanLaf There are a couple different strings there
$string1 = 'var m_title = "';
$string2 = $circuit[nom_intervenant];
$string3 = "\"; \n";
echo $string1.$string2.$string3;
 
I always have problem with quote -.- loll
Yeah
@RyanKinal ho ! I think I just understand
 
@JonathanLaf :-)
 
but you are using double quote to put arround a double quote ^o)
 
2:52 PM
@JonathanLaf Yep, but as long as it's escaped, it doesn't matter
 
@RyanKinal hooooooo !! damn !
 
Hence the backslash before the inner quote
 
you're right !
 
lol, it's like I just saved the world or something :-P
 
@RyanKinal thank you for this lesson ! lolll never think about escaping double quote ... always escaping single for word's ... lolll
@RyanKinal save me time, that better than saving the world lolll
 
2:53 PM
hehe
 
i'm a novice programmer, and working for a little companie, so time is money, and If i take to much time there is no more money :P
 
hehe
I know what you mean :-)
 
just to be shure now for the explanation of the error, the string leteral isn't paresed ? Woot? single quote are bad?? loll
 
@JonathanLaf Actually, single quotes are usually the ones I use. They're faster (really).
@JonathanLaf The problem is that they're faster because they're not parsed for escape characters and variables.
So, '\n\n\n' will yield the literal string \n\n\n (the characters will actually show up)
While "\n\n\n" will yield three line breaks
Similarly, '$var' will yield the literal string $var (dollar sign and everything)
While "$var" will yield the value of $var
 
hummf okay ! jeez, I was'nt know that, especialy for the single quote faster than double (always using double exept when there is a double quote in the string lol, I was unlucky)
Good explanation thank you, I will write this down on my notes ! Got to go, thank you very much Ryan !
@RyanKinal
 
3:00 PM
feeling a little guilty for discussing PHP in the JavaScript room
@JonathanLaf Good luck
 
LOL Ryan ! you're right... I was thinking it's a JS issue since I get this in my JS console
thank you @RyanKinal have a nice day !
 
@JonathanLaf You too
 
3:32 PM
RT @__DavidFlanagan: Firefox 5: http://t.co/Gg5C0fB Press release: http://t.co/GWz57R4 New features for developers: http://t.co/3PNx52f
 
user1385191
All HTML elements now have the accessKey attribute, as well as the blur() , click() , and focus() methods. These are specified in the HTMLElement interface
 
Hey @RyanKinal still there ?
 
@JonathanLaf Yep
 
Could you give your help again for a similar thing ?
 
Sure
 
3:40 PM
What's wrong with that ?

$html_string = '<h3 class="rockwell">'. $circuit[nom_intervenant] .'</h3> <p>'.$circuit[desc_intervenant].'</p>';

echo "var m_infowindow = '".$html_string."'; \n";

look like the $html_string dosn't work... Like i told you I HATE QUOTE :-D lolll
 
Are the two parts of $html_string on different lines?
 
user1385191
I'm kind of iffy on parsing CSS/JS with something server-side like PHP
 
user1385191
I know vBulletin uses it for some of their CSS files
 
@MattMcDonald What do you want to parse that for?
 
user1385191
it's used for variables
 
user1385191
3:49 PM
you save the file as filename.css.php and serve it as text/css
 
@MattMcDonald theres nothing wrong with parsing CSS
all the compiled CSS tools do it
I dont see a problem with writing SASS or LESS in PHP
 
user1385191
yeah, it's just foreign to me I guess
 
@Raynos ...assuming you're not compiling for every request, right?
 
@RyanKinal sorry, i've been interupted, and effectivelly they where on 2 lines... putting them back on one line get it to work, but why I coul'nt put them on two line when sometime I can do it ?
 
I wonder when we'll see the first native LESS parser in a browser...
 
3:52 PM
@Raynos You could still run PHP in theory, running through less doesn't strip/validate CSS.
 
@AndyE of course. It's statically compiled when you boot the server
 
I'd advise running a validation against the CSS.
LESS only does what it knows, and it doesn't know what </style><script>xss</script> means.
 
@JonathanLaf I think if you terminate the first part of the string, use the concatenation operator, and start a new string on the next line, it should work.
 
@RyanKinal sorry?
 
$html_string = '<h3 class="rockwell">'. $circuit[nom_intervenant] .'</h3>'.
    '<p>'.$circuit[desc_intervenant].'</p>';
Ooh, lunch is here
 
3:57 PM
If I've got a function like this:
var test = [x1,x2,nX1,nX2].sort(function(a,b){return a - b});
should I separate out the sorting function or is it okay to leave it inline?
 
i'll give a try @RyanKinal thanks good lunch !
 
@Radu If it's short, I'd leave it inline. Entirely a matter of style, though.
 
user1385191
it's just a function expression vs a declaration, right?
 
yes, here's a test I made: jsfiddle.net/radu/KSEsX/1
seems like if you have the function separate it's quite a bit faster.. at 10 million iterations lol
I bet if the function was a bit more complicated the results would be more dramatic
 
4:16 PM
@Radu defining it separately will be quicker if you're within a function and you define it as a local variable
 
4:31 PM
comcast 100mbit is so sick, i wish i had enough money to burn i could justify having it as a home link
 
4:44 PM
Yikes!
 
Crazy stuff
 
@Chris I'm just excited because the cable company pulled fiber in my 'hood and I can finally get 10mbps.
 
5:01 PM
hi all
 
Hi @Neal
 
0
Q: Making jQuery contains search case insensative?

AnApprenticeI'm currently doing the following: $(".Item:contains(" + q + ")").show(); Problem is this is case sensitive. How can I make the above work case insensitive? Thanks

^ Anyone want to throw a close vote in here?
OP said the dupe was no good and then posted the accepted answer in the dupe question as an answer on his question... crazy.
 
5:18 PM
that's pretty suspect :S
i'm afraid I don't have close votes yet though :P
 
@ChrisMarisic Move to Scandinavia?
 
@AndyE The hell? shakes head Voted.
 
hmmm... Feeds didn't mention that jQuery Mobile is finally in beta.
 
Psh. That whole "mobile" thing is a fad, anyway. Seriously, who's going to want constant internet access?
 
Wow, I was wondering how that 'anapprentice' guy had so much rep....
 
5:29 PM
dev.w3.org/csswg/selectors4/#matches <-- 3 CSS revisions late, IMO :-p
 
872 questions, 32 answers
 
user1385191
sadly, those people do exist
 
hmmm... with only 32 answers he must not do that trick every time.
 
he just asks a lot of questions :(
 
user1385191
people like him are why question upvotes have a reduced score
 
5:31 PM
@RyanKinal Who's going to want constant gradients and drop shadows?!?
 
user1385191
I remember the good old days when an answer upvote was worth the same as a question upvote
 
@Nathan Gradients and drop shadows? What are we, graphic designers?
 
@RyanKinal hey are you fishing in your new gravatar or what?!
 
user1385191
next you'll be telling me we'll have rounded corners
 
@Nathan Rappelling. Off the top of my office building 8-)
 
5:33 PM
(y)
 
@MattMcDonald I should hope so, it was only a year ago!
 
rappelling is a lot like fishing.
 
what is the score for upvoted questions now?
 
@Nathan Yeah, except you're dangling yourself off a ledge, instead of dangling a fish off a boat.
 
user1385191
I thought it was 2
 
user1385191
5:34 PM
might be 5
 
hmmm... so far I haven't caught any fish heavier than myself. Need to work on that.
Maybe I should lose some weight :)
 
lol
 
@Nathan I wasn't going to say it :-P
 
@david 5
 
that's not too bad
I should probably start answering more questions, atm i'm just downvoting things... it's slowly eating into my rep
 
5:36 PM
Still, biggest fish so far was 77 lbs and I don't think I can get that low without amputation or something. I've assisted with a 120 lb one... but still. I better find a bigger fish.
 
Okay, so, I have a problem. I have some code stored in my database. It's HTML, which contains a script tag. Ideally, the script referenced by said tag would run when said code was added to my page, and everything would be awesome. But it doesn't. Any thoughts?
 
@david yeah, but questions get upvoted waaay to frequently
 
@RyanKinal so the HTML from the database is loaded by ajax after the main page load?
 
user1385191
and added as an HTML string, right?
 
@Nathan Yep
This is where everybody tells me I'm wrong and it's impossible, isn't it?
 
5:37 PM
well.... eval()...
it's definitely not impossible.
 
user1385191
how are you adding this html to the db?
 
@MattMcDonald Currently, manually. It will eventually be added by an internal tool.
Definitely not externally visible.
 
user1385191
because you can try adding some sort of markup (think bbcode syntax) for scripts and split the string when parsing it
 
hmm... I wonder if I could stuff a JS engine into a console emulator for easy game customization.
 
user1385191
then create the script through the DOM
 
5:40 PM
loading it in an iframe would be a simple solution.
 
user1385191
but the problem with DOM scripts is asynch loading
 
@Nathan Yeah, that's my current solution. But I don't like it.
 
Yeah I don't like it either.
 
@MattMcDonald I don't think I mind blocking at this point.
In fact, it might help my cause, lol
So, what I have currently is as follows (in pseudocode):
for every script tag in the HTML string
	build a new script element via DOM
	replace old tag with new element

win?
 
user1385191
it looks like some obscure whitespace-based language
 
5:46 PM
what was the name of that language that only used like spaces, tabs and carriage returns?
 
Python :-D
 
Acme::Bleach will do that for your Perl.
 
oh, it's just called 'whitespace' >< how unexciting
 
brb, meeting -_-
 
Hah. The source code for Acme::Bleach is even more entertaining than the documentation.
 
6:06 PM
RT @__DavidFlanagan: Using Firefox Aurora? Be wary of Web Console until this bug is fixed: http://t.co/GaJibxK
RT @mfinkle: Firefox 5 for Android is live in the Android Market! Install/Update today!
 
6:18 PM
lol
 
0
Q: Organizing page functions and page state using the Module pattern

JefClaesSo I'm developing a webpage using MVC which will be mainly JavaScript driven. Instead of using global variables, and global functions, I would like to do it right this time. I don't want to use something to complex, because the team and I are new to large JavaScript applications. I tried impleme...

 
standard w3c html question. every td element is (I believe) supposed to have a cellIndex property. How can I verify this?
 
user1385191
I was looking at it earlier
 
so this means all browsers are supposed to have them right?
 
user1385191
6:27 PM
that's just the standard
 
@MattMcDonald You don't want to look at DOM Level 2 HTML, but rather HTML5 which replaces that
 
user1385191
wow, the html 5 spec is massive
 
@Nathan I have 16mbps comcast at home, would be nicer if i had like 5mbps+ upload instead of 1-2ish
but i'm quite content with my service for $89.99/month
 
user1385191
16/1-2 for $90 a month?
 
RT @jeresig: jQuery Mobile 1.0 Beta 1 is released: http://t.co/Dd0wiBt Includes improved browser support!
 
6:34 PM
wow
i get 30 mbps
for $55
30-45* but its usually 30
 
... i live on a dirt road of the internet.
 
:(
move to japan
 
I literally have about 300 ft of cat5 cable laying on the ground to my neighbor's house so we can share a wireless connection to this ISP
so I'm pretty stoked about the fibre they pulled.
(i had no way to get line-of-site from my house)
 
lol
 
@MattMcDonald yes, comcast business class
 
6:49 PM
whats the best way to detect browser prefixes ?
 
@Nathan why don't you chop some trees down from the forest your house lives in lol
 
... the trees in question are on other peoples' land or I totally would :(
 
you could probably get the FCC to compel them to
 
:D
 
@MattMcDonald It like, uh, actually defines stuff.
 
6:53 PM
@Nathan that your rights to accessing FCC approved communication (the sat internet) is being blocked by your neighbors trees
might be a long shot but it sounds like an absurd move the FCC would do
 
I could alternatively build a huge mast in my back yard.
 
ironcially that'd probably be illegal
or atleast require very arcane permits
 
but the fibre/cable solution is going to work out for me so it's all good...
 
user1385191
I wonder what would define a "bandwidth hog" up in that neck of the woods
 
yes, that's funny. I'm not sure the FCC was involved in the ISP installing my neighbor's antennae in a tree.
 
user1385191
6:55 PM
"hey, stop watching 240p wmv files!"
 
The connection has mostly been reliable... except the time the antennae at my neighbor's house was struck by lightning. Poor Belkin router was never quite the same after that :(
 
anentas are generally allowed if they're under a certain height
once they get past a certain point off the ground is when it needs approved
i find the # of laws we have to be absurd
if i have a yard, and i want to stick a cell phone tower in it
i should be damn well allowed to stick a cell phone tower in it
 
Alaskans are always in tension about those sort of laws.
On the one hand everyone is independent and libertarian, especially in rural areas, but when people get closer together they tend to want to put restrictions on what their neighbors can do.
 
if alaska wasn't basically in siberia, i could really consider moving their due to their State govt
 
NIMBY or Nimby is an acronym for the phrase not in my back yard. The term (or the derivative Nimbyism) is used pejoratively to describe opposition by residents to a proposal for a new development close to them. Opposing residents themselves are sometimes called Nimbies. The term was coined in 1980 by Emilie Travel Livezey, and was popularized by British politician Nicholas Ridley, who was Conservative Secretary of State for the Environment. Projects likely to be opposed include but are not limited to tall buildings, chemical plants, industrial parks, wind turbines, desalination plants...
 
6:59 PM
same thing with texas being the opposite for too hot =/
 
where are you now?
 
i'm not a hypocrit, if i support something I support it in my backyard, PA
Corbett has been doing a good job so far
 
oh, yeah, the east coast is high civilization.
now, Japan...
 
i really like japan, but they're way to authoritarian for me to ever live there
ive never been there in person yet i definitely plan to
i want a japanese swordsmith to hand forge me a samurai sword among seeing a bunch of shinto temples etc
 
Just don't kill him after he makes it or his son will hunt you down and kill you.
 
7:04 PM
lol for real
 
> Konnichi wa. My name is Inoue Toyomoto. You killed my father. Prepare to die.
 
koma nesaiiiiiiiiiiii
 
Huh. The external script I'm trying to load is using document.write. After the DOM has loaded. That... is not going to work.
Crap.
 
@RyanKinal that would work just probably not as expected correct?
 
it would overwrite the page?
 
7:13 PM
@david Either that, or it doesn't work at all. Depending on what's being written.
 
shouldn't write either at the top of or the bottom of the HTML tree?
 
iframe = no issue.
 
user1385191
I seem to recall using document.write for scripts makes them synchronous
 
@Nathan Yeah... I realize
@MattMcDonald I wouldn't be surprised. But my problem is that the script I'm including (through DOM manipulation) uses document.write to write a div to the page.
And then tries to load a video in that div
So... I might have to go back to iframes. sigh
 
@RyanKinal if it makes you feel any better, you're not alone.
 
7:17 PM
@Nathan Yeah, I realize
Ooh, I got it working without an iframe... in Chrome, at least. goes to check other browsers
 
user1385191
 
user1385191
yep, synchronous
 
user1385191
 
7:33 PM
@Nathan evil flash =/ locked up FF when i accidentally right clicked the video
 
@ChrisMarisic :( it didn't give you an html5 video ?
 
well i suppose it could have
but it gave me a right click menu
and then everything froze
 
user1385191
mind your tongue, there's a flash dev in the room :)
 
sigh i really hate IE
"Internet explorer blocked this website from displaying content with security certificate errors."
does not tell me what "errors"
 
Gyar
 
7:38 PM
clicking show content, creates an infinite loop refresh page, dialog pops up, refresh page, dialog pops up
 
i hate it when i middle mouse click to open things in a new tab, and then forget where the link came from, so i lose context
I have this link open: i.imgur.com/ZTadd.png
but i have no idea why :(
 
i agree it would be nice if the back history context was some how conveyed to pop opened links
 
meta.stackoverflow.com
 
7:51 PM
 
@david IE groups tabs with color codes to help with that
 
user1385191
ha reminds me of the jobs domain rim had
 
ahah
 
user1385191
> If you do know what the term means, you’ll probably find it a bit entertaining that the URL Rim.jobs is being used in a perfectly safe-for-work way. More accurately, it’s being used in a perfectly safe-for-getting-work way: it’s the short URL for RIM’s (as in Research in Motion’s) career/jobs page.
 
00:00 - 20:0020:00 - 00:00

« first day (248 days earlier)      last day (4701 days later) »