« first day (1696 days earlier)      last day (3258 days later) » 

10:00 AM
1,0,0,1,1 === 9 ???
why
 
@SuperUberDuper Z
 
1,0,0,1,1,1 = -23 ???
?
 
@SuperUberDuper lsb maybe?
 
@FlorianMargaine OMG thanks !! super helpful
 
Morning
 
10:01 AM
so sconfuded
 
In computing, the least significant bit (LSB) is the bit position in a binary integer giving the units value, that is, determining whether the number is even or odd. The LSB is sometimes referred to as the right-most bit, due to the convention in positional notation of writing less significant digits further to the right. It is analogous to the least significant digit of a decimal integer, which is the digit in the ones (right-most) position. It is common to assign each bit a position number, ranging from zero to N-1, where N is the number of bits in the binary representation used. Normally, this...
 
!!tell SuperUberDuper google lsb
 
oh
how to splice the number part?
 
!!> "how to splice the number part?".split(/\W/g).splice(3).join(' ')
 
10:07 AM
@Neil ["the","number","part",""]
@Neil "the number part "
 
how to return a new array with out the lsb?
 
function addFruitRow(data) {
    var row = $('#fruittable').append('<tr itemId="' + data.FruitID + '" ></tr>');
	row.on("click", function () {
        alert(data.UserID);
    });
}
why do i get same get for different users ?
 
!!> var num = [1,0,0,1,1]; num.pop(); console.log(num)
 
@Neil "undefined" Logged: [1,0,0,1]
 
why is 1,1,0,1 = -9 ???
 
10:12 AM
@SuperUberDuper you should be asking that in mathematics room really
 
i dont have time, i got 10 mins
to finish test
 
you shouldn't be using this room for that...
well you shouldn't be getting help from others for YOUR test
 
the test makes no sense
 
Don't use us as your cheat engine...
 
1,1,0,1 = 3, illuminati confimred
 
10:15 AM
1 message moved to Trash can
@KeonKim Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
Smashed
 
1101 in no way can represent -9, what a dumb test
 
depends. there are various bases in mathematics
sesquinary (base-1.5) is a nice one
 
@JanDvorak he is doing test... what if he becomes your manager after getting this job then :O
 
i want to group variables in a list like this gist.github.com/keonkim/72b518b743d365d85f68, how should i do it? any keywords?
 
10:18 AM
Don't worry. I'm not helping him.
 
@user2262511 Could happen
:P
 
its base -2
who ever heard of such a thing
 
@KeonKim map or just a for-loop
 
codility hah
 
@SuperUberDuper I have heard of base -2
runs
 
10:20 AM
why is 1101 -9 in base -2?
 
well failed that test
 
@SuperUberDuper we are delighted not to help you
 
I hope that test wasn't supposed to represent programming ability
 
Which test? I like tests!
 
10:33 AM
I like trains
 
Not like I use base -2 every freakin' day
 
the test is, why 1101 ies -9 in base -2
just modular arithmetic
 
I don't like this test.
 
kippie's sad
:(
 
10:38 AM
@Kippie @Kippie what sort of tests do you like then ?
driving test ?
 
10:50 AM
@towc Kind of makes you wonder.. if we adults didn't see phallic symbols everywhere, maybe we'd make that mistake just as often
 
probably
 
Would if I could :O
 
11:04 AM
I need to answer more questions instead of doing boring moderation things... so I can get rep and... do.... boring moderation things. Damn.
What am I living for? :O
 
@wonderb0lt bacon?
 
@PeeHaa someone down vote it for me please as i can't
 
11:21 AM
Handling many if-else loops in _.js?
 
@user2262511 Cannot downvote twice sorry
 
I got you bro @PeeHaa
 
THE
11:42 AM
if you need to add a tab layout
would you use any plugin /
or just do it using tabs
 
how should i use map to convert this?? gist.github.com/keonkim/72b518b743d365d85f68
 
Morning
 
Vague question time: I have an angular application that uses angular.bootstrap to boot up. Nothing shows up on IEMobile. No idea why. No window errors. Anything I could check out of the top of your head?
 
11:58 AM
Resetting the cache is usually the first thing I do whenevr something doesn't make sense
 
@Kippie I sort of found my own way to do this but I think your code is simpler and better, thanks!!
I will have to change my code
 
does there exist anything like a multiple key map?
 
What's that?
 
Where multiple keys point to the same value
 
12:05 PM
like multikeymap.get(['key1', 'key2', 3])
I suppose you could stringify the object
 
you mean, a map indexed by a vector?
 
sure
 
You could have a nested map
 
my colleague's writing one himself, and I figured there should be some library support for that
 
maaybe in underscore.js?
or check if the ES6 map allows array keys
 
12:10 PM
leaning on ES6 is definitely a no
probably won't take a lot of lines of code to do in any case
 
Just import a shim for ES6 maps or something.
 
frankly? Just JSONize the key
 
wouldn't that be less efficient than creating a nested map?
 
just checking out some demos and it really bothers me when someone includes jQuery JUST for resize event and $(window).height() and $(window).width()
ugh
 
resize events ? Why ?
Is there something specific for resize events in jQuery ?
 
12:18 PM
No, people are just silly
 
'course there is! jQuery !
 
!!should I truncate my table?
 
@rlemon I can neither confirm nor deny
 
thanks.
 
12:23 PM
can we do ajax without jquery yet?
 
could we ever not do ajax without jquery?
 
If you ever work with PhoneGap please do support this github.com/phonegap/phonegap-app-developer/issues/298
2
 
!!mdn xmlhttprequest
 
12:26 PM
going to give Terminator a shot today
looks alright
Pantheon looks alright as well. might try that out later this week
 
Pantheon?
@rlemon oh btw, did you understand what I meant about NoDelay/WithDelay stuff?
 
@rlemon I use it all the time
 
I wanted something I could layout like this
db on top, remote server 1 bottom left, remote server 2 bottom right. sick of switching terminals.
 
if you dont care about ie9 is is ok to use:
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","ajax_info.txt",true);
xmlhttp.send();
or is it better to use jquery and promises
 
12:40 PM
If you don't care about IE9, use the onload event
but yes, promises are great
 
@Ant's Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
@CapricaSix ah, c'mon, the formatted code is even worse due to its insane identation
 
@CapricaSix: Sorry
I'm new to _ js, and I have code like this
Looks like I'm not using _ js fully, still I guess it can be done better. Any ideas?
 
#1: don't use tabs for indentation. Use two or four spaces. Not more.
 
#2: don't listen to people who tell you not to use tabs or spaces.
 
12:46 PM
#3: only the rule #2 is relevant, all the other ones aren't
 
Do you not think the code looks horrible, @rlemon?
 
#3 don't listen to people who tell you not to listen to people who tell you not to use tabs for spaces
 
@JanDvorak I use tabs, and concede it doesn't fucking matter and arguing or telling someone otherwise is a waste of everyones time. just be consistent
 
#4: don't listen to people, unless you're being given a cookie afterwards
 
@rlemon the problem is that they render as eight spaces in chat and pastebin
 
12:47 PM
Sorry for it, any suggesstions for improvements in the code using _ ?
 
that is the chats and pastebins problem. not mine.
:P
 
@rlemon wanna go over it?
@rlemon I use tmux
 
@FlorianMargaine not atm no :P it is for some arduino code :P
 
use the terminal you want... and tmux is an ncurses app in it
 
which is all at home. I needed the epoxy to dry anyways
 
12:50 PM
^ tmux in my emacs terminal
 
sexy
 
so keep the terminal you want, and just love to use tmux :)
 
okay, I think I am doing type checking wrong in javascript... what is the right way to check types easily?
 
which you can use to keep a session open on a remote server, btw.
 
@FlorianMargaine can you do something like... tmux inside tmux? ^_^
 
12:52 PM
@corvid Not checking types.
 
autoValue: function () {
  if (this.value instanceof String) {
    return this.split(';').map(Number)
  } else if (this.value instanceof Number) {
    return [this.value];
  } else if (this.value instanceof Array) {
    return this.value.map(Number)
  }
}
 
[florian@localhost enterprise]$ tmux
sessions should be nested with care, unset $TMUX to force
@akaRash ^
 
Is there some way in which i can query redis store to see if specific sessionId exist? (express, session, node)
 
@corvid By using a better language ;)
 
haha nice
@PeeHaa like php, hides
 
12:53 PM
 
Didn't you post this image on this chat a few times already ? :p
 
I did
always relevant
 
Now I want an image about pork typing
 
not sure it's relevant...
 
Any idea for my code suggestions?
 
12:58 PM
@FlorianMargaine That screenshot is so sexy I kinda wanna learn emacs
 
@rlemon the sexiness is mostly tmux
only the most bottom bar is emacs
 
@FlorianMargaine I just remembered I have tmux installed but I never really used it much.
 
I only get a green bar at the bottom
 
here is how the same layout looks with Terminator
idk. yours is just sexier
 
1:00 PM
probably because of the colors
no one likes a flat red color from the corner of the graph
 
red is just active terminal
I'm sure I can theme it
 
@FlorianMargaine I remember your tmux config. I even said this:
Mar 27 at 22:02, by Awal Garg
I like your tmux config
 
but hot damn @FlorianMargaine's emacs/tmux looks very similar to my sublime
 
Please kill that:
-8
Q: What does this Javascript Regular Expression do?

Max723What does the following Javascript regular expression do? /([ALE]\d\d[a-z]*)/g

 
where is emacs is that screenshot?
 
1:03 PM
@rlemon I don't use tmux in emacs though...
I just did it to show you :P
I just spawn new terminals
 
I like to be able to see multiple terminals at once, easily.
 
I have 2 terminals there ^
see the names
 
yea, well If I used emacs I could do what I wanted without a tiling terminal
fucking Ubuntu
 
ubuntu?
 
yea, ubuntu terminal / tiling options out of the box suck.
and I'm too lazy to learn how to use emacs
 
1:07 PM
ah
I'd tell you to just learn tmux then
it's very portable
 
Terminator seems to be okay for what I need
 
and very useful when you want to keep a session open on a remote server, even if you disconnect or stuff
 
I'm just commenting that your looks better
 
learn tmux anyway
 
@rlemon That's what your mom said to me last night...
 
1:09 PM
how do you wanna play this? she has a peen and said yours looks better? (in which case you're sleeping with a tranny) or that you have a vag and yours looks better?
your choice.
 
@rlemon or peehaa's penis looks better than your dad's
 
^
 
@FlorianMargaine With tmux, can you easily adjust the sizes of the terminals (like with the mouse) ?
 
@DenysSéguret yes
 
@FlorianMargaine I saw it that way, in my mind
 
1:10 PM
@FlorianMargaine he found my father?!?!
 
@rlemon no, your mother
 
@rlemon One of the many possible candidates yeah
 
she did meet your father at some point, right?
 
your mother is saying that to peehaa duh
 
@FlorianMargaine she can't find him either.
@FlorianMargaine I think they were both drunk
 
1:12 PM
@rlemon furry muff
 
or maybe your mother was also having a discussion regarding programming and there's nothing sexual about it
shame on you all for slandering her words!
 
moral of the story: @rlemon and @DenysSéguret should learn tmux
 
\o I'm alive
 
flagged the penises
2penis4me
 
@NickDugger really? you want 2 penis just for you?
 
1:19 PM
wait
nopls
@SomeKittens Do you use twitter? Look up recruiterbro if you've not seen it.
 
@FlorianMargaine I'll probably learn it, but terminator already covers 99% of my needs
 
If you're a great fucking developer who wants to make a bunch of money working somewhere awesome then keep reading. http://t.co/5XeFxpjYjc
 
Anyone know if you can split windows in smaller sections than half in windows? I know win+left || win+right will do left or right, but I need like.. quarters
 
@RoelvanUden Hi
are you online?
 
@Cereal I don't think windows does that natively
 
1:21 PM
ugh
 
I'm sure there's software to assist
 
I miss awesome wm
 
maybe
 
Anyone know a reliable windows tiling manager?
 
1:22 PM
I tried bug.n a bit ago, and it more or less ruined my life. I'll try it again
 
lol
 
bug.n looks awesome
 
@macroscripts no
 
is it as awesome as it looks?
 
@RoelvanUden k
 
1:23 PM
♻ I read on your profile that you have experience with JavaScript/Backbone. How are things going for you? What did you have for lunch today?
 
@ElliotBonneville Last time I tried it, it kept bugging out. Will update as I try it again
 
@NickDugger Apart the wording, what's so wrong here ? The bad emails I receive are much worse (and deleted, sorry)
 
@Cereal Cool, thanks
 
@DenysSéguret Nothing terrible, just really funny.
 
1:25 PM
I double click the .exe and it rearranges all my windows
The left screen is tiled and the right is not
oh dear
 
!!weather kitchener
 
@rlemon Kitchener: 20.05C (293.2K), light rain
 
light? it is pouring buckets here
 
@FlorianMargaine I am not sure how to apply your config persistently :(
 
@recruiterbro "Yes, a recruiter email, but I promise I'm human!"
 
1:27 PM
> starting narrator
Oh for the love of god all I did was try to resize
 
@rlemon could be worse, I guess
 
@rlemon is it fun?
I usually enjoy rain but it gets worse here (the streets jamming etc..) when it happens. So I not enjoy it too :/
 
what if I am not sure if I am a human?
 
dear lord
It took over my mouse
 
I love rain, but Texas has seen enough rain for now
 
1:28 PM
I couldn't click on any windows.
 
@Cereal you have my sympathy
 
It's becoming sentient
 
The native windows hotkeys started overriding the built in ones
 
pretty soon your computer is going to start rewriting its own software, shortly before it uploads itself to the internet
 
@rlemon hah, it was dumping here earlier, but its lightened up to a trickle. I hope it stays that way
 
1:33 PM
I thought you left waterloo
 
mississauga
 
ahh
so you get rain + smog
acid rain! woo woo
 
Id much rather be in waterloo, but work is here, so not much choice
 
hello how to debug big js files
 
a debugger?
 
1:35 PM
like you debug small js files
 
an intern?
 
^
 
Wow
 
If you right click the task bar, you can just press "show windows side by side". It'll organize all the windows to take up the screen
 
1:35 PM
@FastSnail practice
 
@akaRash ~/.tmux.conf
 
@FlorianMargaine I placed it there, but nothing seems to be happening :/
 
you don't have the pretty stuff when running tmux?
are you already in a tmux maybe?
 
@Neil i want to get alert when i reseved a facebook message .but ther are lot of js files and i'm try to find which code catch the message
 
nope. I just see this:
I closed the terminal, relaunched, then entered tmux, still no change :(
 
1:38 PM
ls -al ~/.tmux.conf
 
> The Web was invented in 1990 and it has 30 billion pages. It is a collection of HTML documents.
 
oh wait, the period at the beginning
sorry :P
 
codepen.io/lmart/pen/vOmRZa -- why would someone talk about HTML and CSS for programming basics? Fucking plebs.
 
@FlorianMargaine yeah working now, thanks! :D
 
1:39 PM
@akaRash yup, it's a dotfile
 
@NickDugger those colors are offensive (wait... it's just accorded to the content, no problem with the colors)
 
That pen is bad
 
@DenysSéguret what am I missing
 
bad content
 
every time I close Terminator session it over writes config
so none of my theme changes ever persist
 
1:41 PM
use tmux
 
yay! sexy terminal without any increment in obtrusive junk!
 
use tmux is the new use linux...
 
@FastSnail My advice is to work backwards from where the dom gets changed when message occurs
 
1:42 PM
find out where its origins are, and try to add an event hook there
 
@rlemon dunno why, I don't have this problem
 
damn
 
but I don't play much with the settings. I've just set some transparency, then removed it a few years later when I started using vim
 
slowly moly, my use of debugger for "debugging" is decreasing because lots of stuff that I write these days "just works" :D
 
so what do you use your debugger for, now ?
 
1:44 PM
var condition = prompt("How is your Mood?");
switch(condition){
    case: 'Good'
    console.log("Good Mood");
    break;
    case: 'Bad'
    console.log("Bad Mood");
    break;
    case: 'dont know'
    console.log("Dont know");
    break;
    default:
    console.log("Check Mood");

}
 
writing code, and figuring out how things work @DenysSéguret
 
what is syntax error here?
 
@rlemon awesome
@Harish re-read how to use switch/case
the syntax error is everywhere
 
@Neil tnx but isn't itso hhard
 
user image
10
 
1:46 PM
@FlorianMargaine give me one hint?
 
@Harish no. Go back to your tutorial on how to use switch/case.
 
@FlorianMargaine ok
 
I'll give you a hint. if () x === 1 { }
 
oh god
And this, dear children, is why Java should stop taking drugs. — Griwes Jun 25 '13 at 16:35
 
@rlemon yes that is pretty much what happens. Except that I am not "experienced" still.
But I am happy :)
 
1:49 PM
:)
 
fixed it
thanks.
 
bin in ...
 
1 message moved to Trash can
@Harish Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
// Write your code below!
var condition = prompt("How is your Mood?");
switch(condition){
    case 'Good':
    console.log("Good Mood");
    break;
    case 'Bad':
    console.log("Bad Mood");
    break;
    case 'dont know':
    console.log("Dont know");
    break;
    default:
    console.log("Check Mood");

}
 
always fun to see this happen
 
1:51 PM
@Harish great :)
 
@FlorianMargaine thanks for the hint of everywhere.
 
serious question: where is it appropriate to use switch over <one of the many alternative approaches> today?
*in JS
 
When you need a condition to cascade I guess
Yeah I dunno
 
I suppose letting things fall through is an advantage, but I've also read that people don't like that because it is "confusing"
 
Those people need to "learn"
 
1:55 PM
@rlemon in js? I mostly use truth tables
 
@rlemon I use it when handling keyboard events
switch(event.keyCode) {...}
 
truth tables > switch for handling keyboard events too
 
@FlorianMargaine yes if possible I tend to truth tables only
 
but is there a real advantage? I could easily use if's or a object map to do that
 
var events = { 39: handleLeft, 40: handleRight };
function handleLeft() {} function handleRight() {}
events[e.keyCode]();
 
1:56 PM
@rlemon fall through
 
truth table = object map
 
@FlorianMargaine Huh. Never thought of doing it like that
 
@akaRash .. can be done without :P
 
I used switch(true) not so long back, I was very tired
 
I feel like it is a 'style' preference.
 
1:57 PM
@rlemon not as cleanly. lemme spin an example
 
the more you have in data and the less in code, the better
(so truth table > switch)
 
switch() {
  case 1:
  case 2:
  case 3:
    shhit();
  break;
  default:
   shoot();
}

if( [1,2,3].indexOf(cond) > 0 ) shit();
else shoot();
 
switch(event) {
	case 'foo':
		//do something specific to foo
	case 'bar':
		// do something required for both bar and foo
		break;
	// stuff
}
 
what @DenysSéguret said
 
@akaRash use an if...
 
1:59 PM
@DenysSéguret I don't like too much nesting. but then again, I try to refactor to avoid these situations anyways.
It's rare that I use a switch
 
I have a great example for what @DenysSéguret said: mesprojetsimmobiliers.fr/sites/all/modules/mpi/mpi_form/…
 

« first day (1696 days earlier)      last day (3258 days later) »