« first day (690 days earlier)      last day (4276 days later) » 

1:12 AM
@rlemon that was stolen from yahtzee =P
 
 
2 hours later…
3:02 AM
So boring
 
could somebody approve this edit: stackoverflow.com/questions/12271750/…
 
I'd do : return !truite && truite != false
 
which would always be false?
 
Nop
 
ah, because of the !=?
 
3:11 AM
with null and undefined, it return true
 
missed that
I still think the function he posted is completely disgusting
 
Sure.
Not disguting. Too verbose.
 
it's extremely smelly
(@tereško)
 
I know some devs that would freak out seing a return !foo && foo = bar
Some don't like that.
 
foo = bar?
 
3:15 AM
== yes.
 
3:34 AM
=== yes
I'm sorry i'm drunk.
don't listen to me. it's a wonder I can type.
 
 
3 hours later…
Wex
6:59 AM
bro
 
hi
I want to understand return statement in javascript
Hey wex you there
Hi anybody there
 
swipe events for canvas html5 element is not working ?
Any solution ?
 
@amit Yap i am here
 
can someone please tell me why the hell its alert [1] ?
`var a = 1;
function b() {
a = 10;
return;
function a() {}
}
b();
alert(a);`
 
7:43 AM
i believe function a() defines a local scope for 'a'?
 
 
2 hours later…
9:45 AM
o/
 
hey man, how are you?
 
I'm fine. How's you?
 
@Nile ?
 
riveting
 
10:02 AM
fine, still trying to get used to this macbook keyboard...
 
has anyone tried out elance.com or odesk.com ?
 
10:26 AM
RT @stephanierieger: Awesomely comprehensive overview of mobile web standards and roadmaps from @dontcallmedom http://www.w3.org/2012/08/mobile-web-app-state/
 
10:42 AM
is any regular expression expert here ?
 
11:08 AM
0
Q: Pass data from wordpress to javascript in JSON

NewUserCurrently using this simplified code to pass data from WP to JS. function add_map_data() { $objName = "MapData"; $array = array( "MapViewLatitude" => "51.505", "MapViewLongitude" => "-0.09", ); wp_enqueue_script( 'mapdata', get_blo...

 
11:35 AM
0
Q: Placing Ads after every 10th Post with Infinite Scroll

savunitHello at the moment what I have to do is load a couple of ads, some normal html and two are java script. I've tried the PHP method of this: <?php $postnum++; if($postnum%10 == 0) { ?> <div id="topset"> <ul id="top_ad_list"> <?php dynamic_sidebar('botad'); ?> &l...

 
@RoyiNamir It's because when you call function a() { }; you're defining a in the scope of function b, so before that when you say that a = 10, instead of referencing the global variable a, it references the defined one within its scope. Try using an anonymous function and change that to var a = function() { };. You'll see that it now alerts 10.
( Anybody correct me if I'm wrong :/ )
 
12:02 PM
What is the most reliable way of entering the world of Node.js?
 
@tereško no down votes... he's in a hurry
 
o/
 
\o
 
o/
 
12:13 PM
\o
 
\o
now it's full circle.
 
/o/
 
'o' <-- tiny arms
 
12:18 PM
Hello guys..
Coming from mobile dev.

Need help in web app.. I want to embed doc/docx file in html page.. How can I ?
I have already tried http://stackoverflow.com/questions/8901331/preview-and-embed-part-of-a-file-with-an-iframe. But this doesnot help
 
@OctavianDamiean lol
 
best way imo would be to embed a google doc viewer and upload it to google docs.
 
12:28 PM
Thank you.. rlemon..
I cannot upload it to google docs. because requirements are fixed :(
Crocodoc looks promising..
 
converting it to pdf is no option i suppose?
 
No :(
 
Thanks Google!
 
@rlemon woah really?
thats new, and awesome
also happy birthday.
 
Oh mate! Happy birthday!
 
12:34 PM
Happy Birthday.. Have a blast ;)
 
lol thanks. I removed my bday from facebook a few days ago - so I went from 70 random people saying it on my wall to my mom, and my nephew.
 
Happy Birthday, Mate! :)
 
Still Drunk rlemon ?
 
no, almost felt that way this morning
wore off after a coffee
 
humpf
Happy Birthday
 
12:35 PM
;p
 
6 drinks, I had to work :P
 
> iPhone 5 release
 
@rlemon That hurt a bit.
Thought we'd be <3
 
ohh you guys are <3
you're not random people
facebook is
 
i agree
@rlemon have you tried elance odesk freelancer etc...?
 
12:39 PM
o/ Ryan
 
What up, coders?
 
ntm u?
 
Just got to work. Got some coffee. Kinda hungry.
 
you can haz cheeseburger
 
Not if i can haz weight loss ;-)
 
12:40 PM
@Yohann nahh don't do the freelancer sites
 
I can haz fruit or salad, or anything with bunches of fiber :-)
 
var term = "Happy Birthday To you! "; Array(3).join(term) + term.substring(0,15) + "dear rlemon. " + term;
 
@Yohann oDesk is pretty sweet. But (as an American with bills to pay) it was tough to compete with people that were working for significantly below minimum wage.
I had to put my money where my mouth was, so to speak. I had to make sure I was worth $20/hr
 
@RyanKinal so i've heard....
 
Which, if I may say so myself, I was :-)
 
12:42 PM
where you doing web stuff or something else?
 
Yep, web stuff
 
I put my money where my ass is. But that is only because i'm a back pocket wallet kinda guy.
 
lol
 
@rlemon What does it say that I'm a front-pocket kinda guy?
 
you keep your money with your jewels?
 
12:44 PM
programmers with jewelry ?
wtf
 
@Yohann they have Rubies duh.
 
OG - original geeksta
 
true
 
J-j-j-j-j-j-JUnit
 
J for?
 
12:45 PM
JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with SUnit. JUnit is linked as a JAR at compile-time; the framework resides under packages junit.framework for JUnit 3.8 and earlier and under org.junit for JUnit 4 and later. Example of JUnit test fixture A JUnit Test fixture is a Java object. With older versions of JUnit, fixtures had to inherit from junit.framework.TestCase, but new tests using JUnit 4...
(Yeah, yeah, it's Java... whatever)
 
building native android apps now?
 
Psh. I would build Android apps in HTML/CSS/JS
 
@RyanKinal You sure?
 
No, not really :-P
 
Wheres @Zirak ?
 
12:53 PM
Probably doing something productive with his life
Or, maybe, sleeping
 
Yo, MC Plus Plus, my rhymes are so phat,
I'm PSPACE-complete but I'll reduce you to 3-SAT.
My crew is so hard that we roll in NP,
And bitches dereference my pointer for free.
^ OG
 
lol
 
might i ask what NP refers to?
 
^ OG-er
 
12:55 PM
> I'm an unsigned long int and you're an 8-bit char.
 
@Yohann Nope.
 
[[Euler diagram for P, NP, NP-complete, and NP-hard set of problems. The existence of problems within NP but outside both P and NP-complete, under this assumption, was established by Ladner.]] In computational complexity theory, NP is one of the most fundamental complexity classes. The abbreviation NP refers to "nondeterministic polynomial time." Intuitively, NP is the set of all decision problems for which the instances where the answer is "yes" have efficiently verifiable proofs of the fact that the answer is indeed "yes". More precisely, these proofs have to be verifiable in polynomial...
 
nondeterministic polynomial time
ffff I was on google spell checking that
 
@rlemon are you planning on going mainstream?
 
Mainstream with?
 
12:57 PM
the rap song duh
 
I wanted too but the name I want was already taken
MC++
 
<--- MCSS
:-P
 
nerdcore
seriously. its a genre
 
Nerdcore hip hop, is a sub-genre of hip hop music characterized by themes and subject matter considered to be of general interest to nerds, though it can appeal to others as well. Self-described nerdcore musician MC Frontalot has the earliest known recorded use of the term (to describe this genre) in the 2000 song "Nerdcore Hiphop". Frontalot, like most nerdcore artists, self-publishes his work and has released much of it for free online. As a niche genre, nerdcore generally holds to the DIY ethic, and has a history of self-publishing and self-production. Though nerdcore rappers rhyme ...
 
I love the stuff.
 
12:58 PM
I <3 nerdcore
 
@RyanKinal STOP EFFING NINJAING ME
 
;-)
 
:)
great minds think alike?
 
My wiki-fu is great
 
1:01 PM
Monzy is kinda meh... but Frontalot's awesome. So is Lars.
 
awww yea!
got my own badge
 
Dammit.. forgot how to tag
 
Aw, it won't work :-P
 
@RyanKinal This kind of ?
 
1:05 PM
Yes!
 
[ tag: tagName ]
 
How do you do that? I forgot :-(
 
@RyanKinal you know if you used my userscript this wouldn't be a problem for you
5
Q: Chat Easy Input Tools - Provides keyboard shortcuts for common text formatting commands

rlemon About Provides keyboard shortcuts for common text formatting commands, reducing the dependency on mouse usage. Current version does not have a configurable set of hotkeys but later versions will. How to use. All of the following commands are run if the user has focus in the chat input area. ...

 
@rlemon Why GPL?
 
1:11 PM
why not
like a licence ever meant anything anyways
 
I don't know much about licences
But AFAIK, MIT's better
 
Yeah, everyone uses that now
:p
 
GPL = if anyone ever wants to reuse your code, he has to release the source code under GPL too
 
1:13 PM
that is me trolling through licence
 
Hahahaha
 
that's basically saying: don't ever use my code for any commercial use
 
@rlemon True
 
MIT is just as good, although being professional :)
 
1:19 PM
WTF is professional ;)
 
didn't know array_walk_recursive, it's nice
(yeah, I'm answering php questions now)
 
Like forEach?
 
but it goes recursive if there is a sub array
 
Ooh
 
so I guess it's taking TCO into account
checking...
couldn't find, so...
0
Q: Does array_walk_recursive use tail call optimization?

Florian MargaineJust a simple curiosity. I couldn't find anything on Google, and I definitely don't want to dig into PHP source. Does array_walk_recursive implement tail call optimization?

 
UTF-8 is twenty years old this week. Finally �mlauts work everywhere.
Mouhahahahaha
 
xD
 
I don't get it entirely :/
..mlauts?
 
umlauts
It's a German (but not only I think) caractere
 
Ah
 
Hello, any jquerymobile expert can explain me the RIGHT steps to dinamycally create and add a <select> menu to a existent page div? i keep getting errors like :

TypeError: 'undefined' is not an object (evaluating 'self.list[0].appendChild')
 
evaluating ?
 
well äöü is german but consider Æ in danish... etc. etc.?
 
it shows on $(div).trigger("create") after i created and appended the select to the $(div)
 
var select = document.createElement('select');
document.getElementById('myDiv').appendChild(select);
No ?
 
1:32 PM
i currently do

var div = $("<div></div>");
var select = "<select><option> ......</option></select>";
$(div).append(select);
$(div).trigger("create");
 
@dievardump jQuery!
 
var div = $("<div></div>");
var select = $("<select><option> ......</option></select>");
$(div).append(select);
$(div).trigger("create");
will work but it is ugly
 
it's not currently working :D and its veeery ugly
what do you suggest?
 
did you even look at my change :)
there is a change there
 
.trigger("create"); ??
 
1:33 PM
why $(div) append and not div.append ?
 
oh you used jquery for select too
 
yea otherwise you're just appending a string.. i mean, the entire thing is just bleh
 
@yoshi it seems to work in both ways
 
what are you actually trying to do
@BeNdErR you're re-wrapping the div in the bottom there. it will work but it's redundant and is adding processing to your page that is not needed
you're micro-unoptimizing
 
ok let me try with $ for select too
uhm 1 second
 
1:35 PM
var div = $("<div></div>"); -» I hope you don't need to re-$(div) after that
@BeNdErR why do you need jQuery ?
 
@dievardump i need to dinamically build it
 
Doing that, will work with Vanilla JavaScript (except trigger, maybe too effing boring to implement)
@BeNdErR And you can not without jQuery ?
 
@dievardump what's the problem with jQuery?
 
(don't say "No" or "I don't know", please...)
 
var options = [
  { text: "foo bar", value: "1" },
  { text: "foo bar bleh", value: "2" },
  { text: "foo bar three", value: "3" },
  { text: "foo bar unicorns", value: "4" }
];
var select = document.createElement('select');
for( var i = 0, l = options.length; i < l; i++) {
     var option = document.createElement('option');
     option.value = options[i].value;
     option.appendChild(document.createTextNode(options[i].text));
     select.appendChild(option);
}
var div = document.createElement('div');
 
1:38 PM
seems a little bit longer than with jQuery
 
but will execute MUCH faster
and then you don't have to include jQuery on the page.
 
you won't notice the difference though
 
no
but you will LEARN a shit load more
 
my entire project is built with jquery
 
@BeNdErR either way, look at that code and mix it up
 
1:40 PM
You will also learn much more by writing pure assembler instead of some higher language stuff :3
 
@rlemon ok, but do you think that way i'll could solve my "undefined" is not an object error?
 
@BeNdErR lots of things seem longer w/o jQuery.. but you need to remember you are including thousands of lines of code with jQuery..
so to get some perspective throw the unminified vs of jquery at the top of your source file :P
 
var options = [
  { text: "foo bar", value: "1" },
  { text: "foo bar bleh", value: "2" },
  { text: "foo bar three", value: "3" },
  { text: "foo bar unicorns", value: "4" }
];
var select = $('<select></select>');
$.each(options, function(data) {
     var option = $('<option></option>');
     option.val(data[i].value);
     option.text(data[i].text);
     select.append(option);
});
var div = $('<div></div>');
div.append(select);
 
no $.each
 
@yoshi but will you learn effective javascript for web development? probably not... that argument is lost because you need to be realistic. Learning and using the language before picking up a toolkit is just being smart.
 
1:43 PM
for()
 
not enough jQuery
 
...
fu
 
lol
 
@BeNdErR longer but faster and cleaner
 
You guys really have quite a lot of patience
I've just stopped bothering
They'll learn when they realize for themselves (if they do at all)
Oh. What's ??! in C++?
Tri something
 
1:45 PM
This is our industry (most of us... well some of us at least) and we don't want to see it overrun by a team of jNoobs who don't know the language.
 
I forgot what they were called
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
 
@rlemon it's always good to have a look under the hood, jup. But I've heard there are some people around only knowing jQuery... :C
 
@yoshi Only heard?
 
@yoshi you can't "only know jQuery"
thats like saying I only know 1337 speak and not english.
that claim is just retarded
 
1:51 PM
3u7 c0m3 0n
1 5p34k l337
 
ok, thanks for your diplomatic answer :3
 
Ooh, XHR has a new level?
Wow, that looks neat
 
@yoshi think about it though. you can't use the tool without knowing the language. agnostics? scope chains? function and variable scope? DOM interaction and the process of reflow? to a jQuery "developer" these are alien concepts.
@Amaan you're just discovering xhr2 now?
 
Well, yeah
The article was in today's HTML5Weekly
 
w3.org/TR/XMLHttpRequest XMLHttpRequest Level 2 - W3C Working Draft 17 January 2012
HTML5Weekly is behind the times then
 
1:57 PM
Opera's article was published this week
So can't blame them
 
At the end of the day, jQuery is effing slow.
 

« first day (690 days earlier)      last day (4276 days later) »