« first day (1243 days earlier)      last day (3930 days later) » 

16:00
@SomeGuy you doing the js1k?
@Loktar It's on right now, isn't it?
yea
I highly doubt it
until march 31st
I cant think of an idea
I might give it a shot if I have an idea
Haha, yeah, the idea is always the problem for me
16:00
same, more so for the 1k's than anything else
because it has to be feasible to do in 1k only..
Yeah, that additional restriction makes it harder
yeah definitely
I want to make a game for Clay.io's Got Game competition too
Which starts in like 3 days
jesus another competition?
16:01
heh I was looking at that roguelike one
Student-only
7drl?
@dystroy well, I want to see if I can do two ajax calls, but have the same loading bar on it. I was hoping there would be a "mini-forum"
Looks interesting
The entire team must be students (high school or college/university) or student age (<=22)
wow what a ridiculous restriction
the last part
Yeah
16:02
either say students or no students
@SomeGuy booo I am not a student :-(
That kind of bothered me too
@qwertynl If you're interesting in making games, you won't need a competition to make one anyway :p
@SomeGuy pffft. But I am Jewish. So MONEY :-P
can someone help with regex please
i have this
route.match(/:([A-Za-z0-9]*)/g)
and i get this result
[":id", ":year", ":month", ":day"]
which is fine, but i would like to omit the : from the result
16:04
New this year: your canvas will automatically be fullscreen.
^ js1k, nice.
I have tried this
route.match(/(?=:)([A-Za-z0-9]*)/g)
but it messed up the regex and no longer works, anyone know how i can do it?
@Loktar Ooh, fancy
JS1k has so much badass stuff too
yea
especially the first one
It's intimidating in a way
that was the most popular by far
16:06
what do you actually win at js1k ?
random prizes
idk what they are this time
Yeah, there isn't too much
I just like them because they're fun
Probably some licences, some cash, and some subscriptions
flight of the dragon is pretty sweet ^
16:08
WHOA
Super laggy, but incredible
that one runs really nicely
I might fix up my road and submit it idk
one I did years ago
since fullscreen is auto now too I can make it not so blurry
That's pretty cool
yeah it was totally random.. the road breaks though after a while
and it was red because it was going to be for the love themed one
ill just say you're a dragon flying in space or something :P
16:12
Hahahaha
What's a good gif for when you finally get the other developers to write working code?
What are cursor keys?
Oh, just arrow keys
Pretty awesome
16:26
var el = document.getElementById('foo');
// ... somewhere else
var anotherEl = document.getElementById('foo');
return anotherEl === el;
Does this work?
i.e eval to true?
@BillyMathews it should
Yeah
Awesome. I want to test the clicked element against some that I have stored with other data attached to them
unless somewhere else deletes the old element in the meantime or adds a new one
Hold on
Nevermind
16:31
Did you guys also received this spam shit from google (verified the whois) ?
The web turns 25 today, Denys!

Some of us remember what the world was like before the web and have seen how much it's changed things. Many younger people today have never known a world without the web.

Which are you? Choose the statement below that applies to you -- then share it along with your memories of how the web has affected your life.

I remember the world before the web:

Google+: takeaction.withgoogle.com/Older-GooglePlus
Facebook: takeaction.withgoogle.com/Older-FB
Twitter: takeaction.withgoogle.com/Older-Twitter
(see full text)
DAFUQ
beat score 18 in that !
@dystroy negative. Probably not authentic
@JanDvorak It doesn't look the way he posted it
16:33
hrrm... which MVC has the best documentation?
@JanDvorak It looks not authentic but withgoogle.com really seem to be google
@SomeGuy well, it looks like this to me...
25 years?
@Loktar not the web, surely...
I didn't even notice that
16:35
Hahaha, me neither
I guess the world wide web was in 1989
the web is from 1993
Tim Berners-Lee invented the World Wide Web in 1989, about 20 years after the first connection was established over what is today known as the Internet. At the time, Tim was a software engineer at CERN, the large particle physics laboratory near Geneva, Switzerland.
Yeah, TCP/IP went global in 1989
Geneva is full of geniuses isn't it
16:37
The first web page is from 1991. And wasn't even reachable on internet I think. So dating the web from a theoretical paper...
damn IMDB is from 1990
@dystroy Really?
. On October 17, 1990, Needham developed and posted a collection of Unix shell scripts which could be used to search the four lists, and thus the database that would become the IMDb was born. At the time, it was known as the "rec.arts.movies movie database", but by 1993 had been moved out of the Usenet group as an independent website underwritten and controlled by Needham and personal followers.
^ crazy
And by 1997 he moved out of his mom's basement.
lol
16:40
For me the consensus always had been that the web was declared born in 1993. But the history may have been rewritten since...
I googled very little, so I may be wrong, but the consensus seems to be 1989
In March 1989 Tim Berners-Lee, a British computer scientist and former CERN employee,[4] wrote a proposal for what would eventually become the World Wide Web
1992 is the earliest copy of the first website that they can find right now
^ looks like the proposal is considered the birth
16:41
kind of weird to call that the birth though
I mean when was Amazon actually made then?
Cool fact: Tim Burners-lee (w3.org/People/Berners-Lee) went to my primary (Junior for you americans) school :D
@Loktar It hasn't been made yet
You're going to wake up from this dream and make Amazon
Yeah I had that idea when I was 10 - Bezos
And then you'll be rich
@SomeGuy haha
16:42
hypertext had been defined a loooong time ago. What makes the web is that it works. Theory is irrelevant.
Thank god it wasn't lazytext
@dystroy I thought web was defined by having two computers exchange textual data
@JanDvorak you had many text based protocols working on internet long before the web
I used email and ftp around 1986 I think
(date unsure but before the web)
16:44
@dystroy how old are you?
blehh... should backbone work with flask? Getting some problems here
I thought @jAndy was the oldest and I was the 2nd oldest
you might make me happy
@dystroy was using email 5 years before I was born.
in which case, I thought the Internet was defined by having two computers exchange textual data
I was 4 in 86
16:44
That just put a perspective on my life.
@Loktar from my cv :
//> calcul de mon âge
	$('#age').html(~~((new Date()-new Date(1972,05-1,07))/(365.242*24*60*60*1000)));
No one cares that I went to the same school as THE CREATOR OF THE INTERNET :(
@BillyMathews Why would we?
hah @dystroy you beat @jAndy and me! hurraay!
by 10 years
According to a lot of SO, that code is "horribly unreadable" because of your double bitwise not (~~).
16:45
@BillyMathews whom do you mean?
4 mins ago, by Billy Mathews
Cool fact: Tim Burners-lee (http://www.w3.org/People/Berners-Lee/) went to my primary (Junior for you americans) school :D
@Loktar You're like 50 years old, right?
52!
@RUJordan I love ~~ but I agree
^ ... bullshit
@Loktar I also had the luck to work, when I was 20 (about), in one of the first companies in France to have internet (using the university network renater)
16:46
@Loktar That's pretty freaking old
Assuming that means 52 factorial
Dude you're not 52
You cant be
He totes is
...I'm retarded ignore me.
First time I heard, I was like OH EM GEE
Fuck, I'm doing it again
!!c> [1..52].reduce (x,y)=>x*y
16:47
@JanDvorak 8.065817517094388e+67
reduce is so awesome
reduceRight too
I'm ignoring you, because you're retarded
2
!!> Math.factorial = function(n){for(var o = n; --n; )o*=n; return o;}; Math.factorial(52)
@Shmiddty 6
@Shmiddty 9.332621544394415e+155
@Shmiddty 3628800
16:52
@Zirak Maybe we should add the traceur compiler to Caprica?
... lol
@Shmiddty 8.06581751709439e+67
I set myself up for that one
@RUJordan Well... it's one line in the source of my CV. No one was supposed to read it until now...
wait wut? only 2 parameters on a for loop?
wow... never seen that
16:53
wat?
@t1wc wat ?
for(var o = n; --n; )
@dystroy wat?
@dystroy I was just bitching lol I think ~~ is quite readable. You google javascript double tilde and suddenly you know what it does
good morning, wat
16:54
@t1wc Where's the confusion?
@t1wc be careful : I had answers downvoted to hell because I used that...
don't worry @Shmiddty ... i understood it... but I've simply never seen it
@dystroy humans...
s/aliens/humans
This one is cool too but gets you many downvotes :
`for (var i=arr.length; i-->0;)`
@dystroy example?
16:55
What on earth?
i-->0?
@dystroy that >0 is pointless
@RUJordan the downto operator, haven't you heard?
"As i approaches 0"? lol
damn, how can i match any character except 2 certain characters in regex?
@JanDvorak naw, I'm only familiar with 3 parameter, basic for loops
16:56
@Shmiddty it's because I like the "goto" operator and I used it in java...
for(var i = arr.length; i--;)arr[i].treatyoself()
@Connor [^cx]
@Shmiddty but that would go forever
ok, I try
@Mosho negative
16:57
I guess you mean it breaks at arr[-1]
negative
then wat
ohhhh
it breaks when i === 0
when i is 0
right lol
@Mosho You have a console to test
16:58
just woke up
ain't nobody got time fo dat
!!> for(var i = 10; --i;)console.log(i)
@Shmiddty "undefined" Logged: 9,8,7,6,5,4,3,2,1,0
whatevs :D
@Shmiddty "undefined" Logged: 9,8,7,6,5,4,3,2,1
@Shmiddty Otherwise you get an infinite loop if i is negative
16:59
@copy true, but array lengths are never negative!
!!> var a = []; a.length = -5; a.length
@Shmiddty "RangeError: invalid array length"
can't even
Right
s'pose you could do something stupid like:
!!> var a = {}; a.length = -5;
@Shmiddty -5
17:00
@JanDvorak You're probably right, I'm just a beginner in regex, if you wanna help, I'm trying to create a regex from a route like /user:id/name and i need to replace the :id with (.*) I'm guessing, I have this so far /(?=[!^:])[^:\/]*/g it's terrible and doesn't work
@ledfusion Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@JanDvorak My answer to this question for example. It now has only 3 downvotes but it had many more just after I posted it
46
Q: Merge/flatten an Array of Arrays in JavaScript?

AndyI have a javascript array like [["$6"], ["$12"], ["$25"], ["$25"], ["$18"], ["$22"], ["$10"], ["$0"], ["$15"],["$3"], ["$75"], ["$5"], ["$100"], ["$7"], ["$3"], ["$75"], ["$5"]] How would I go about making this just ["$6", "$12", "$25", ...]

@Schwertfisch Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
thanks
If i do this /(?=[!^:]).*$/g it kinda works but it doesn't stop on a second occurrence it just treats it as one
17:01
!!> "/user:id/name".match(/\/(.+):(.+)\//)
@Shmiddty ["user:id/","id"]
@Shmiddty it's a dynamic route, so it's slightly different
@Shmiddty ["/user:id/"]
My answer was the first one, the best one, it was the simplest and the most efficient, and it got downvoted to hell very fast ^^
@Shmiddty ["/user:id/","/user","id"]
17:02
This whole "cryptic" thing irks me. What's the point in shorthand if you can't use it without people crying "I can't read it! -1"
@Shmiddty ["/user:id/","user","id"]
@dystroy that's how I would do it, but a lot of people hesitate when they don't see $'s etc. in JS
^ what?
I've managed to extract the params fine by doing this route.match(/:([A-Za-z0-9]*)/g)
!!> [["1"],["2"], ["3"]].join().split(',')
17:05
@Shmiddty ["1","2","3"]
winning
too cryptic -1
@Mosho regex should do
!!> [["1"],["2"], ["3,4"]].join().split(',')
17:06
@Mosho ["1","2","3","4"]
ohno
@JanDvorak yeah, give regex to people who find a for loop cryptic :D
@dystroy Your answer works for the specific use case, but so does join/split
@Shmiddty join/split is heavy
@dystroy true
@SomeKittensUx2666 I don't get it :(
Have you ever seen Short Circuit?
(also, it's me saying 'hello' to the room through a video)
Ha, @SomeGuy looks like an asshole towards mentally challenged people because of off context stars xD
@SomeKittensUx2666 nay :(
RECTIFY THAT IMMEDIATELY
I will not rectal anything =x
17:16
RECTALIFY THAT IMMEDIATELY
!!suppository
@RUJordan That didn't make much sense. Use the !!/help command to learn more.
derp
@RUJordan Command suppository learned
!!suppository
I think that fits
no pun intended
LOL
Caprica Y U NO UN ONEBOX
in HTML / CSS / WebDesign, 41 secs ago, by Billy Mathews
Good question popped up
4
Q: Should I completely stop using inline JavaScript?

Two-Bit AlchemistIn a discussion elsewhere on SO, I was informed that "[m]ost browsers will not execute inline javascript... these days." This is news to me, and I have been researching to try to verify this statement, in order to understand if I need to adjust the code on some of the websites I maintain in order...

@BillyMathews not really a "good" question. It's pretty commonly known that inline JS is bad practice
But not a bad question.
17:29
It's well asked, just not well researched.
^
Well, I thought it was fairly well researched.. he had obviously been talking about it before hand (it made me think - Really? I'd like to know the answer, too) And above all I just think it was well written which is getting more and more rare on main.
The answer: Don't use inline JS.
lol
Wow, 7 upvotes on that. I'm kind surprised.
8 now.
Why is everybody so busy today :(
massive deadline
horrible code
reeeeaaaally trying to avoid cutting corners.
That's a monday problem, not a wednesday.
Deadline is soft tomorrow, hard Friday
17:40
That sounds like my junk's schedule, too.
2
I was gonna go to work, then I stepped outside
fuk
that
@RUJordan Of course.. but regarding this:
As far as I can tell, the commenter is referring to Content Security Policy, a relatively new proposal that would, if implemented, restrict or totally disable inline scripting.
I got the answer now
-7
Q: Can you participate in my survey?

LazWolfInternet usage among young people in big cities. Hello, @username! I need your help! I have a course work at my University. My theme is "Internet usage among young people in big cities" And I need people all over the world to take part in my survey. If you live or study in a city with popula...

Hello @username
^ Lost me right there.
You ARE NOT my personal army and I know it.
backpedaling so hard he could do the Tour de France in reverse.
17:51
@BenjaminGruenbaum , @dystroy db help
was offered a part time position at my co-op next semester :o
I hope they pay better than $16/hr
!!s/pay*/pay/
@RUJordan I hope they pay better than $16/hr (source)
17:52
Dammit
Where's Kendall when you need a regex...
!!s/pay.*/pay/
@SomeKittensUx2666 @RUJordan I hope they pay (source)
Your regex matches zero or more y chars preceded by pa.
o
I don't speak regex. Google does my regex for me lol
I became close enough with a few people to start asking how much they get paid
17:55
@MrA Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
60k out of school and 95k after 5 years
for master's
Not bad, I'm doing 47 out of school
80k before finishing bachelors
125+ after 5 years
What's your official position, Kittens?
In a city where the cost of living is 75k?
17:57
@user3342042 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.

« first day (1243 days earlier)      last day (3930 days later) »