« first day (1526 days earlier)      last day (3405 days later) » 

12:00 AM
Yeah that makes sense
I just counted it twice
 
yessss, just fixed a major FF bug
 
Neat!
@Shiuyin That's not so valid json
 
...wait, wat
 
user1648409
hm what i do wrong? O.o
 
12:02 AM
@Shiuyin JSON.parse throws an error on me
 
@Shiuyin there is an error at the bottom of the console. invalid json.
 
Nicer, but should still be better: jsfiddle.net/91ets1b2
 
user1648409
hum... the exact same String works in my JSON.parse() ...
 
Then it must not be the exact same string
@SomeKittens Wait what'd you do?
@BenjaminGruenbaum It's a bit weird that decrementing work is done irregardless of whether next[2] finished
But if the goal is just fitting function calls in a time frame...
 
Yeah, it doesn't wait for the actual request, it only waits for the timer
 
user1648409
12:05 AM
i copied the String from my js console..
 
@Zirak SVGs weren't displaying in FF after an update to Angular 1.3
Ended up digging through lots of useless stuff until I found a GH bug that fit my problem.
was able to fix from there.
 
I think 17 is it, I'd love for it to be shorter and more concise though.
Mostly the concise part though
 
@Shiuyin That extra space is not at all from JSON.parse. JSON.parse didn't even execute. It is just the string itself.
 
It's pretty concise, I guess.
 
There's nothing extra going on, simple recursion. Sorta.
 
user1648409
12:08 AM
@AwalGarg if you say so ... I don't know how to find the cause of it
 
Maaaybe you can merge working and queue?
Nah
 
Working and queue are fundamentally different
 
next[2](fn.apply(next[0], next[1]));. Ew.
 
@Shiuyin @Zirak jsh.zirak.me/30vr5
 
@phenomnomnominal js has no tuples
 
12:12 AM
next.resolve(fn.apply(next.context, next.args));
@BenjaminGruenbaum orly :)
 
user1648409
@AwalGarg uhm ok... what the hell is \g
 
also lol, the new Promise part is definitely wrong because of this being set to rubbish
 
Needs a bind, or a =>
 
12:15 AM
@Zirak hey don't go anywhere, wait.
 
@Shiuyin has someone figured out your problem yet?
nvm awal caught it
 
user1648409
@rlemon i guess so. but i dont understand it yet :D gie me a bit
 
!!google new line character in json string
 
@Shiuyin ^
 
12:17 AM
@rlemon I deserve all that 340 rep. :(
 
ok
 
I am officially on holiday
And I think I got just about the best Kris Kringle present ever at work yesterday. It's a 14 in 1 build your own solar powered robot kit.
 
nice
 
@monners can we be friends?
 
i'm also on holidays .. as of 2 hours and 22 minutes ago
 
12:22 AM
PARTY!
 
Hangouts in a few?
 
Sure, although I just got out of bed
 
user1648409
well thanks anyway guys ...
 
user1648409
still not working but i guess i have to fix that on my own :D
 
12:39 AM
PARTYY!!!!!!!!!!!
 
Friendly reminder to all JS roomies celebrating Christmas: when wrapping presents, don't forget to include a LICENSE file
 
@Zirak i can haz hangout? i lonely
 
@rlemon Tru dat.
 
12:58 AM
 
@rlemon haha thats great
 
@Loktar you enter todays draw?
Game Programming Patterns
an ebook by Robert Nystrom.
 
just did
 
Loktar should write a book "How to tame canvas", co-authored by lemon the book may be named "How to tame canvas like a boss"
 
haha
thats a good title
 
1:13 AM
I think Simon won that though.
 
!!xkcd photos
 
user image
6
Yes, I'm proud of that one.
 
@SterlingArcher i.imgur.com/sTfSsOB.jpg
this is neat
 
 
2 hours later…
3:14 AM
@SomeKittens HAPPY BIRFDAY!!!!
16
 
@monners woo!
 
I bought you a cake... and ate it.
 
3:29 AM
SKITTLES IS TURNING 67 IN CAT YEARS!
(i have no idea how long a cat year is)
 
user2620028
3:48 AM
@KendallFrey The buttons dun work.
 
@HatterisMad That makes this other ad very relevant:
 
user2620028
Calls number
 
no, that is not a screenshot
 
user2620028
button still didn't work
 
Do JavaScrips interpreters do optimization?
Take for instance for (i = 0; i < 10; ++i) { $("#myID").foo(i); }
Does it make sense to leave the lookup for the element &myElement = $("#myID"); outside of the loop.
 
user2620028
4:02 AM
each time it would loop it would reselect the element.
 
user2620028
If the element does not need to change each time it loops then it would be beneficial to move it outside of the loop
 
@HatterisMad Thanks. I would imagine that looking up the element with CSS selector is a fairly heavy procedure.
 
user2620028
@nickalexeev If you are worried about performance then you can test different ways of achieving your goal by inputting the code in jsperf.com
 
@HatterisMad I'll try that. Not that I'm worried about performance at this stage.
 
user2620028
4:12 AM
@NickAlexeev Just trying to return the knowledge people in this room have given me :) Good luck.
 
would anyone be intersted in working on a project with me for 1/3 of the profits made when I release it in January?
 
Morning Folks
My friend is looking to set up a company that includes web development, mobile apps, big data and related stuff
So, he really needs a suffix for the company like technologies, software, systems, webapps etc

Say, if the company name is abc. we want whether for the above said work which suffix will be more suitable
 
user2620028
4:32 AM
Uday no idea buddy. Im not good with that kind of stuff :)
 
user2620028
@rlemon finally found out where click the kanye takes me :)
 
m59
5:36 AM
$true = TRUE;
 
@udaysagar It doesn't really matter.
 
m59
 
mind if i ask a css question in here?
 
user2620028
Whats up man
 
i'm trying to make a tool tip, but the span isn't hiding. what's wrong:
/*tooltip*/
.tool span{
display: none;
}

.tool:hover span{
display: block;
width: 100px;
padding: 5px;
background: #aaaaaa;
text-decoration: none;
text-align: center;
border-radius: 11px;
position: absolute;
top: 20px;
left: 30px;
}
 
5:44 AM
show moar code
 
<div class='tool'>survival
<span>
        <br>food 1.01000
        <br>growth 1.01000
</span>
</div>
any ideas?
@darkyen00
odd, the fiddle worked, but not the page code from the single page load
 
 
2 hours later…
7:40 AM
@SomeKittens Happy birthday! :D
 
@SomeKittens Meaw Meaw meow .. here take some cat nip
@SomeGuy lets bail out of the country, shall we ?
 
7:56 AM
Im totally watching that movie
looks legit
@SomeKittens also Happy Birthday!
 
 
1 hour later…
8:57 AM
@Loktar lol
@Loktar my wifey and I starting to write a game shivers
about bacterias inside stomach...
i guess i should outsource it to one of u xD
 
9:57 AM
Wow that was weird...
Apparently the email I use to login to SE is bound to a new account now
And I was able to recover my old one with Facebook login
 
Hi
 
10:30 AM
this thing is pretty awesome
 
@SomeGuy lol
 
translates any text in a page in ghetto style: the link shows the transcript of this room with that
you can put whatever link you want in the url: it will work
 
it can't XSS
the domain is still gizoogle.net
 
Yo ass must be logged in ta talk. See tha faq fo' mo' shiznit.
lol
 
10:34 AM
use it on reddit: it's too funny
 
how do I fix a cold-ass lil computer
 
anyone wanna make an icon for the next big thing?
 
let me guess, for your submission to the monthly challenge?
 
not at all
 
You are gonna wait for someone to say "then?"?
 
10:39 AM
no, I was rolling my cigarette
it's for this: github.com/Ralt/pgp-ext
 
boo
 
so something for pgp
 
Vamp like the trolls. "HALP PLZ" or something. You will get some help.
!!pushstate and ajax fun or classy old flickering site done on time?
 
@AwalGarg classy old flickering site done on time
 
Actually, I can write a script which can handle the ajaxing thing for me. Or I can use a library.
!!caniuse pushstate
 
hmm, browser support seems good
 
11:00 AM
@SomeKittens Happy date which coincides with your expulsion from a uterus!
 
this ctrl+l thing in the console should ask for confirmation too
 
No @rlemon, I did not win... my gf is gonna kill me now.. =/
=]
 
@towc solid shizzle
 
11:25 AM
prove me wrong
 
Hey Guys
Can i write a bash script to setup node.js ?
 
@towc Here you go: fotoforensics.com/…
 
@underscore uh, sure, why not
 
This is my entire target
 
@Jonathan Dear god they're everywhere!
 
11:32 AM
Setup Nginx @Zirak
Setup Node Js, Setup Mysql via bash script. is it possible ? both ubuntu and windows ?
 
It has very good ninja detection code, seems it found several thousand
 
@Jonathan that tool is awesome
 
2 mins ago, by Zirak
@underscore uh, sure, why not
Write down everything you usually run to set it up in a script. Done.
 
i though so
Thanks for making up confidence in advanced
Do i need to identify the OS and need to code based on that right ? @Zirak
 
What do you think?
Can you do everything identically on both?
 
11:37 AM
I mean can't we use that bash script for cross os ?
both on windows and ubuntu
 
Being written in one language doesn't mean you can do everything exactly the same. But maybe what you're doing can. Just check.
 
@towc Haha awesome
@rlemon Today's prize is great, by the way
 
he should totally use that as the description (maybe next year? if you'll still be alive?)
@jonathan actually just filling with a different color using paint would have been easier
 
Sure but the problem with that is that the image could have been Photoshopped
They might not be real ninjas!
 
11:49 AM
@towc heh, there are 99.5.
 
I read ninjas wrong
"There are 100 niggas in this image"
 
@Zirak
 
It's cool, my gf's black. It's not racist.
 
@Zirak won't the paths be different in windows and linux?
How can he use a single script on both the platforms, in that case? :/
 
MinGW is one way, cygwin another
 
11:58 AM
Why not just use chocolately on windows..?
 
Because chocolatey is a package manager, not an environment, so it has nothing to do with it?
 
he wants to install packages, no?
ah shit
btw, has anyone here used vagrant?
does it always downloads fresh ISOs from the cloud? Because my internet is crap, and I can't download 1gig setups everytime I setup a VM :/
 
there is 96 too many ninjas
 
?
 
100 = 4
 
12:16 PM
-_-
 
Nuclear: ☢
Biohazard: ☣
Death by robots: ?
How should that sign look?
 
 
A_l
12:32 PM
their is a nice way you go over String char by char like foreach char?
 
no onebox? ok...
 
100 more :P
@A_l for(var i = 0; i < string.length; i++) somethingOn(string[i]); or string.split("").forEach
Can we reopen this so other people will be able to add answers? stackoverflow.com/questions/26682705/…
 
12:40 PM
Morning JS people
GRATZ @SomeKittens
 
Happy Birthday @SomeKittens !
 
That's the one I meant :P
 
Have another great year :) You're learning tons and improving - I hope that next year is even more useful than the last and funner :D
 
How do you guys find out about everyone's birthday?
 
We have a list
Also, facebook
 
12:48 PM
Happy birthday @SomeKittens!
@BenjaminGruenbaum btw I meant to ask you, planning on having kids yet?
 
Planning? Yes, in two years.
 
I'm not sure where yet though... that's a big question.
Why?
 
Just wondering
You don't want to stay in Israel?
 
I love Israel, but I've been living here my whole life except for one year when I was 13.
 
12:50 PM
@BenjaminGruenbaum Why two years?
 
I think it would be really cool to move somewhere for a few years, just an ideaI'm toying with.
@Zirak me and Orit will finish our degrees and obligations and have time to save some money and take a 4-5 month tour.
 
@Zirak @BenjaminGruenbaum have you guys learned lisp?
 
uhh... yeah :P?
 
Sorta
 
@Zirak are you on lispkit?
 
12:55 PM
I wouldn't say I "learned" lisp, I can READ lisp much better than I could a year ago but I still can't write anything meaningful without an API reference.
 
Oh? Did you somehow practice?
 
My LISP is kind of like my Ruby or my Haskell.
Well, worse than my Haskell, better than my Ruby.
Yeah, I did a bunch of exercises in Clojure and one in Scheme (plz don't hate for no CL :P)
 
@FlorianMargaine No, cbf to tinker with it. Sorry, I'll get around to it, but I've got a thousand projects lying in desolate wastelands
 
Ah, clojure and scheme... Yeah they're not like CL... They don't have streams for example afaik
@Zirak eh, it's alright. Not forcing you or something :P
streams are a big part of lisp when you start doing IO or string manipulation
 
VLC wears a hat in christmas :O
 
1:00 PM
since forever, yeah
 
that is so cool.
 
@AwalGarg VLC as in the player?
 
@PeeHaa yeah
 
Funny
 
Not sure if this is in older versions or not, but on my ubuntu, the status bar shows that the vlc icon is wearing a christmas hat!
 
1:01 PM
hi guys quickquestion .. for javascript can include name in it?:
like this:

<script type='text/javascript' name='flightdate'>
 
wat. why.
 
@compski sure, you can. Why do you want to do that though?
I don't think it wlil have the effect you're expecting
 
@FlorianMargaine basically I want to use PHP to record the timepicker from the javascript script
like this :

echo "<script type='text/javascript'>
$('#datetimepicker').datetimepicker({
pickTime: false

});
</script>";
 
I don't think it will have any effect whether you expect it or not.
-_-
There needs to be a command in cap for such cases...
 
and then from the PHP file i can say .. "$flightDate = $_POST[''<name>']
 
1:06 PM
facepalm
 
@compski That doesn't make sense
None
 
@PeeHaa i guess it wasnt a quick question after all lol
 
:-)
 
i just wanna save the date variable by PHP in this manner : "$flightDate = $_POST['flightdate']" but im not sure wat the right way is
 
@compski When? On for submit?
On change?
On Christmas Eve?
 
1:14 PM
for example .. previously how it worked :
file1.html:
<select name="movie" id="movie"> ....

file2.php:
$myMovie = $_GET['movie'];
 
The name of the post index will be the name of a input inside a form with the post method attribute.
 
@PeeHaa YES for submit!
 
@compski Than just use the name of the input field...
 
^ Yes, that
 
You are attaching the datepicker to an input field. That is what contains the actual data
 
1:18 PM
ahhh this one :
echo "<div id='datetimepicker' class='input-append date'>";
echo "<input class='form-control col-sm-10' type='text'></input>";

....
 
No, because that doesn't match with your shared javascript selector
 
inputs are self-closed tags
but that's the least of your worries for now, I think.
 
For the love of God, just end PHP ?> when you have a block of HTML.
 
@FlorianMargaine lulz didn't even notice it :)
Also what @Shea said.
 
@Shea </script>
 
1:23 PM
LOL sorry about the ugly code writing but maybe this screenshot will help u guys help me? imgur.com/VcWtZxq
 
Screenshots never work for us
Use a fiddle site
 
/bail
Gn guys
 
later @Shea
 
@BenjaminGruenbaum totally what I'm doing right now...
 
1:28 PM
It's the story of my life
 
@BenjaminGruenbaum I don't even need to do both at the same time. Just attempting to design does that to me :)
 
I actually got worse at design over the years :D
 
do you mean like photoshop design?
 
:-)
 
@PeeHaa thx using the fiddle site now
 
1:32 PM
@FlorianMargaine in general, I used to be better at it when I was younger.
 
1:43 PM
@BenjaminGruenbaum But he's so happy
 
Zirak, the dogs lover
 
I lost faith in the js community. None left. Zero. Zilt.
% grunt
Running "browserify:main" (browserify) task
Warning: Object #<Object> has no method 'concat' Use --force to continue.
That's after four hours of fucking around trying to make dependents work right on the latest browserify
And updating grunt to latest
Why do we like to play with poop
Why do humans like making other humans play with poop
Don't we have better things to do?
 
don't use grunt
I just use makefiles...
 
I don't use grunt, this archaic project does
 
1:50 PM
Cool, so just call browserify directly, right? Nope! Apparently, you can't override the builtin replacements (like stream or net) from the command line
At least not from my experiments
 
So googling leads to "don't use grunt, use gulp/broccoli/brunch/breakfest/fuck-you-incorporated, it's so much better, it uses streams and magical ponies and FUCK YOU"
WHY MAKE POOP
Instead of building poop on top of poop, don't built poop
 
but poop is so shiny
 
@BenjaminGruenbaum Love it
 
How do i use gzip compression on server again ?
 
1:55 PM
@BenjaminGruenbaum Doggy :D
 
@Zirak What are you working with?
 
Some crap project
 
just send the file right ?
 
@darkyen00 You compress with gzip
 

« first day (1526 days earlier)      last day (3405 days later) »