« first day (1718 days earlier)      last day (3224 days later) » 

5:00 PM
So long as I can receive nudes, my phone is good enough. Doesn't need scrollbars or multitasking, cause I sure ain't.
 
@ssube the only thing worse than a "my platform is better than yours" is "i'm above this discussion, you are all lonely losers". :)
2
 
How do you guys split your javascript files for the browser and wrap them around an IIFE?
 
@ssube I once installed android on an iphone
 
I am multitasking regularly
 
@afonsomatos we don't. We use modules and combine them.
 
5:00 PM
I used gulp to concat files and then replace a variable in a body.js BODY with the resulting code.
but then deleted all that because that's nasty
 
@Luggage It's not that, it's that none of you should care.
 
@afonsomatos I did something like that
 
@ssube no worries, i'm joking.
 
Smartphones are a lousy invention that are only good when you're alone and don't want to be.
 
5:01 PM
People sitting on their phone when they're around other real people is awful.
 
@afonsomatos webpack. it'll wrap in IIFE and concat and all
 
But, just don't do that. Use modules. This is 2015.
 
@ssube false
 
@ssube I also wonder why people like to put widgets on their desktop. Who the fuck stares on the desktop?
 
@ssube how about Wikipedia?
 
5:02 PM
@Luggage why would I use webpack instead of browserify
 
@Luggage oh wow it gets much worse. You can post a meta message about how these discussions go.
 
@afonsomatos Check out @ssube 's GitHub, he has a good sample there
 
@JanDvorak my friends and I have actually agreed to just debate things and draw other friends into the conversation, rather than looking them up
spirited debates on the back porch are much more fun
once we've come to a consensus, then we look it up to check
 
browserify is a good one, too. webpack is like browserify + a bunch of other tools. it'll let you require('some.css'), handle dependencies like iamges and fonts, etc
 
@ssube Try debating over why bicycle are stable even without a rider.
 
5:03 PM
@MadaraUchiha @afonsomatos github.com/ssube/web-template
 
@ssube we have a game for that - whenever we meet we put our phones in a pile, whoever picks up their phone first buys everyone else's beer. You can only respond to SMS/calls.
 
@MadaraUchiha they... aren't?
 
Works beautifully.
 
Hint: It's not (just) because of the gyroscopic effect of the wheels
@ssube They are
 
but as long as you organize your code into files (as it sounds like you are) then you are good. you can change build toosl at any time
 
5:03 PM
hello guys
 
@JagadishDabbiru 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.
 
@MadaraUchiha oh, you mean when they're moving
I don't believe in moving
 
@ssube Yes, of course.
 
anyone good at regular expressions
?
 
Nope. Not a soul.
 
5:04 PM
When at sufficient velocity, bicycle will self-balance and won't fall over.
 
no
 
Those that are will never admit it
 
!!tell 24189430 xkcd perl
 
@JagadishDabbiru well, you should be
 
5:04 PM
@JagadishDabbiru What is regular expressions?
 
It's like asking "hey, anyone good at shoveling shit?"
 
@JagadishDabbiru I posted something about regular expressions and I got a lot of people complaining about it :(
 
@CapricaSix not the one I was going for, but better :D
 
@MadaraUchiha I imagine it's because anything metal with wheels is determined to kill people.
 
!!s/bicycle/yo momma/
 
5:05 PM
@ssube Brutal.
 
@Cereal When at sufficient velocity, yo momma will self-balance and won't fall over. (source)
 
!!xkcd regex
 
So it chooses not to fall over to further its misanthropic efforts.
 
!!s/shit/shit for me/
 
5:05 PM
@JanDvorak It's like asking "hey, anyone good at shoveling shit for me?" (source)
 
ok I got a problem
 
Also, can we not be assholes :D?
 
congrats!
 
can you guys help me building
regular expression
 
@BenjaminGruenbaum We can try.
 
5:05 PM
@BenjaminGruenbaum well, we could just be ignoring him
 
@BenjaminGruenbaum I wonder how that'd be
 
@JagadishDabbiru What do you want? What have you tried? What failed?
 
@MadaraUchiha it wasn't regular enough
 
Need more fiber in your expressions.
 
@AwalGarg Needs more regulation then.
 
5:06 PM
I have two strings like stackoverfsfsfsfldsfsdsdfsdflflow
 
@JagadishDabbiru more importantly: Why are you not asking your question in StackOverflow.com ?
 
@ssube FYI, JS doesn't do stupid unicode stuff
!!> "𤭢".charCodeAt(1)
 
@KendallFrey 57186
 
@BenjaminGruenbaum This is technically stackoverflow.com
 
and stackoverflowfsfsfsfsfsdofofsoaso
 
5:06 PM
@Cereal Stack Overflow [so]
 
@Cereal host names are case insensitive
 
@KendallFrey utf-16 only is pretty stupid
 
I'm curious how you managed to obtain these strings
 
@BenjaminGruenbaum I need it quickly
 
Cheeky
 
5:07 PM
We don't.
 
@JagadishDabbiru well then...
 
Ben's good at doing things quickly
Especially when direct pinged
 
@JagadishDabbiru We aren't obligated to give you an answer quickly
 
@KendallFrey sure it does, codePointAt pfft. (cc @ssube )
 
@JagadishDabbiru you have to ping him atleast 5 times. He likes being pinged.
 
5:08 PM
@JagadishDabbiru The better question you ask, the more likely you are to get an answer quickly
 
@KendallFrey you guys are amazing I know ;)
 
@KendallFrey I don't like how JS deals with unicode but it's better than a lot of languages and worse than a lot of languages.
@JagadishDabbiru you haven't asked your question yet.
So we haven't answered it quickly yet.
Please, it's urgent, ask your question.
7
 
(😄=>(😃=>(😀=>console.log(😄,😃,😀))))('foo')('bar')('baz') <--- Should be valid!
 
I have two strings "stackoveradvhfsafssfasflow" "stackoversffasfshefsaffdsa" how can i identify uniquely 1st string
 
@Shmiddty not on Win7-based interpreters
 
5:09 PM
@JagadishDabbiru str === "stackoveradvhfsafssfasflow"
 
@JanDvorak dumb.
 
@JagadishDabbiru /stackoveradvhfsafssfasflow/g
 
@JagadishDabbiru str == "stackoveradvhfsafssfasflow" would work.
 
@JagadishDabbiru /w$/ ?
 
Also what @KendallFrey said
@JagadishDabbiru did it work?
 
5:10 PM
/^stackover.+flow$/
 
Are you satisfied with response?
 
if(string === "stackoveradvhfsafssfasflow") {}
 
i want something like "stackover.*"
 
/o.*o/
 
@JagadishDabbiru see what I posted
 
5:10 PM
@JagadishDabbiru but that matches both
 
/stackover.*flow/
 
@AwalGarg .*
 
/low/
 
@Cereal that matches "stackover the joke is also over your headflow" which is not the intended result of OP's question.
 
I thought it was?
 
5:11 PM
@MadaraUchiha how do you know their won't be any flow between the garbage which only god knows where he got from?
 
@Cereal Please take it seriously, it's urgent.
3
@JagadishDabbiru why are you not responding kind sir?
 
okay i understood
 
Please, quickly, you are not responding.
 
but the problem which i simplified
 
Is it working for you?
 
5:12 PM
!!> (🖕=>(🖖=>(🖔=>console.log(🖕,🖖,🖔))))('foo')('bar')('baz')
 
Can't we just close Jagadish's question as unclear and be done with it?
 
@MadaraUchiha "SyntaxError: illegal character"
 
@JanDvorak shut up it is urgent
 
@JanDvorak didn't you read it's urgent?
 
Looks like it doesn't like the finger.
 
5:12 PM
Challenge: make the most unreadable regex that could be done in a very simple one.
 
Some people have no respect...
@JagadishDabbiru well did it work for you or not?
 
okay got it
 
uh, what?
 
@FlorianMargaine Not so much a challenge as it is a time-sink
 
are you looking for negative lookaheads?
 
5:13 PM
@JagadishDabbiru Look up negative lookaheads.
 
@JagadishDabbiru So / "stackover.* and not flow/g - what / does is start a RegExp literal, then the second / closes it and g is for global matches.
@FlorianMargaine look at what people are asking for in RegExp.escape :D
 
@Shmiddty This work?
!!> (\u1f604=>(\u1f601=>(\u1f602=>console.log(\u1f604,\u1f601,\u1f602))))('foo')('ba‌​r')('baz')
 
@SomeKittens "undefined" Logged: "foo","bar","baz"
 
thanks guys
see ya
 
@JagadishDabbiru where do you live in India, if I may ask?
 
5:15 PM
 
@AwalGarg that's racist
 
@JagadishDabbiru we're glad to help. Please come again, but please take your issues more seriously.
@JanDvorak how the heck is that racist?
 
@BenjaminGruenbaum That's oppressive.
 
Is geographical location now a race?
 
yeah I am confused too
 
5:15 PM
@BenjaminGruenbaum It is..
 
or maybe not, sorry
 
@SomeKittens Nice
 
/\u0073\u0074\u0061\u0063\u006B\u006F\u0076\u0065\u0072.*\u0066\u006C\u005F\u007‌​7/
 
@uselesschien no, it's not.
 
@BenjaminGruenbaum @KendallFrey yeah, it has to figure out which byte(s) are part of that character and do some normalization-type stuff
 
5:16 PM
@JanDvorak not when asked by an indian
 
In India, asking for your geog. location is considered racist.
 
That should get you in the right direction.
 
@uselesschien this is not India. I mean this room.
 
> Oppressed today:
Me: I'm a white, hetrosexual male.
Them: I'M OPRESSED!
 
Well technically this is India but...
 
5:16 PM
@ssube what does? Strings are iterable by code points so JS will generally do the right thing when you need to work with surrogate pairs.
 
I know but it's still racist.
 
Where in this room are you?
 
Only charCodeAt will fail for this.
 
@AwalGarg No, this is Patrick.
 
@AwalGarg This is Sparta, actually
 
5:17 PM
@ssube It doesn't though. It treats surrogate pairs as two characters
 
@uselesschien what?
 
Hi All, Im writing a new app using angularjs + laravel (PHP) and I had a very basic doubt

When I call www.website.com/ it should hit one of the angular routes and render the view from angular and laravel works as a API only. When I go to www.website.com/ laravel routes should not be referred. No PHP views should be rendered ?
 
How large is this room?
 
@ivarni No.... this is Patrick!
 
@BenjaminGruenbaum yup
 
5:17 PM
@uselesschien how is that racist?
 
Why do people use the word 'doubt' like that?
That's not what doubt means!
 
@AwalGarg from the inside, or from the outside?
 
@MadaraUchiha it is in Inidian English which is a pretty common dialect.
 
@BenjaminGruenbaum north india vs south india is a thing in India. but it is somewhat moot now.
 
@AwalGarg yeah, but why would asking someone that be racist?
 
5:18 PM
@BenjaminGruenbaum "Indian English" is not a dialect...
 
@MadaraUchiha I am confused as to how to go abou tit
 
Even if you directly asked him "What race are you" it would still not be racist.
 
@BenjaminGruenbaum how do you iterate strings by code points? Seems to me it just uses code units
 
@BenjaminGruenbaum The arms race.
 
5:18 PM
@MadaraUchiha Most races have arms.
 
@BenjaminGruenbaum It's not a different kind of English, it's English, only taught/learned badly.
 
!!s/abou/about/
 
@ivarni @MadaraUchiha I am confused as to how to go about tit (source)
 
@MadaraUchiha No, it is a different kind of English
 
@BenjaminGruenbaum just general etiquette thingy. It might appear to the other person that the asker is racist and will discontinue the conversation if he is not from the same race. Basically, it is stupid. And that is how it is.
 
5:19 PM
@CapricaSix So am I little guy, so am I.
 
The problem is not which races have arms, it's if and how they use them.
 
There are bigger issues to worry about. Like casteism.
 
@KendallFrey for(let codePoint of string){ /* do stuff! */ } with the standard iteration loop?
@AwalGarg this is beyond me, I don't understand - sorry.
 
!!> for(var codePoint of "𤭢𤭢"){ console.log(codePoint); }
 
@KendallFrey "SyntaxError: let is a reserved identifier"
 
5:20 PM
@uselesschien why would asking where you're from geographically be racist? Does it create an impression you'll be discriminated against by people who'll know it?
 
@BenjaminGruenbaum Yeah it is stupid, just ignore it.
 
@KendallFrey run it in your Chrome console.
 
@KendallFrey "undefined" Logged: "𤭢","𤭢"
 
@BenjaminGruenbaum when I asked in meta to not allow non-English in chat, I was called racist by so many people, surprisingly all from the same locale
A lot of people tend to think you're out to oppress them for some reason.
 
@MadaraUchiha I hate those assholes from locale. Always demanding they get things their way.
 
5:21 PM
@ssube That's racist
 
@ivarni That's oppressive.
 
@BenjaminGruenbaum Nice, too bad any sort of string indexing fails
 
YOUR FACE IS OPPRESSIVE ANIME
 
@BenjaminGruenbaum Yeah, kind of. It's complicated.
 
XD
 
5:21 PM
@AwalGarg That's racist.
 
@MadaraUchiha Sure it is.
 
@KendallFrey yes, but string indexing is treating a string as an array so that makes some sense.
 
@BenjaminGruenbaum I'm including substr, charAt, codePointAt in that as well
 
I am discriminating between real people and anime people. HAHAHAHAHAHA.
 
5:23 PM
@KendallFrey codePointAt?
 
> anime people
Implying anime characters are people
 
!!> "𤭢".codePointAt(1)
 
@KendallFrey 57186
 
@MadaraUchiha meh, you can't really blame them (although it's clear it's not racism).
 
Letting your true colors show, greg
 
5:23 PM
@Cereal That's what they think they are. HAHAHAHAHAHA.
 
*colours
 
I actually liked India, I hope to return there one day but hopefully I won't get as tourist scammed as last time :D
 
You make a compelling point
@BenjaminGruenbaum You're from Israel, right? Is English a standard language there?
 
ask @MadaraUchiha who thinks he is real. HAHAHAHAHAHAHA.
 
@Cereal virtually everyone who comes in touch with tourists speaks it, it's also an "official" language, so I'd say yes. It's mandatory and everyone learns it for 10 years in School but that doesn't mean everyone knows it.
Practically everyone I interact with knows it, and everyone tourists interact with does too.
 
5:25 PM
Order pizza, prepare X+Y shekels for tip, Y shekels coin drops out of sight, start looking, 10 seconds later, pizza guy comes knocking, gets X shekels tip -_-
 
@MadaraUchiha pizza pics or it didn't happen
 
@BenjaminGruenbaum Neat. It surprised me when I found out you were from Israel. Your english is flawless
 
also, shekel pics please
 
So I think I need a way to index a string quickly, and with support for Unicode. Do I have to build an array using the same method as for..of does with the string (whatever that is)?
 
@Cereal *English :p
 
5:26 PM
It surprised me that Israeli people live on the Internet :P
 
@AwalGarg That's racist
 
@Cereal My English is pretty bad - it used to be better, @MadaraUchiha @Zirak @Mosho and some other people are also from Israel - not that it's a big deal. I find nationality an artifact of chance.
 
@KendallFrey You can't in the general case. But a representation that fails less often is an array of unicode code points
 
It always surprises me when I learn internet people actually live somewhere
 
@JanDvorak they live at the FBI headquarters, duh
 
5:27 PM
@copy Any examples of when it would fail?
 
@KendallFrey Symbol.iterator - just an Array.from(string) would work probably.
 
@JanDvorak You're a brain in a jar anyway.
 
@BenjaminGruenbaum Your written English is actually very good
 
TIL Zirak is a real person
 
@ssube do they call them "headquarters" now?
 
5:28 PM
@uselesschien lolwut. HAHAHAHAHAHAHA.
 
@uselesschien No, Ben was wrong.
 
He is from IL, but he's not a person, he's merely an entity
 
> FBI Headquarters
> 935 Pennsylvania Avenue, NW
> Washington, D.C. 20535-0001
It is officially the FBI Headquarters
 
@ssube you can check out any time you want, but you can never leave?
 
5:28 PM
He is the yellow floating head from Phineas and Ferb.
 
@ivarni It's not nearly as good as most people I interact with online, my spoken English is a lot more fluent than my written English.
 
@JanDvorak That's the Hotel California, and the FBI is illegal in California, as they're known to cause cancer there.
 
@KendallFrey It depends on what you want, but there are characters that are made of 2 unicode code points. For instance, you could construct ö from a special code point and o
 
I don't read enough novels, I read a lot of technical articles but that doesn't really count since it's all technical terms and slang.
 
5:29 PM
http://www.commitstrip.com/en/2015/06/30/coder-dilemma-6-choosing-the-right-stack/
CommitStrip - Blog relating the daily life of web agencies developers
Coder Dilemma #6 – Choosing the right stack
CommitStrip
1435685361
 
@BenjaminGruenbaum I can relate to that. I've no problem communicating in English but ask me to name some random vegetable and I'm lost. That's a lack of vocabulary though, not a failure in commanding the language.
 
@copy you mean the thing of single characters being considered equivalent to a normal char and a combining mark?
 
@ivarni Just name any of the vegetables in this room
 
@MadaraUchiha That was kind of my point, I can't.
 
@ivarni yes, my vocabulary isn't particularly good in English either. That's probably more because I mostly interact with an international crowd so I stick to as few complicated words as I can.
 
5:31 PM
i.e. ö can be a single code point or two
 
@ivarni What, you can't spell "Zirak"?
 
This room has such variety. Anime, libraries, and smileys from Israel. Lemons from Canada. Caprica from botlandic. copies from germany. and cats from california.
 
@KendallFrey Yes, if you consider the latter a single character, you can't index fast because you have to inspect all previous characters
 
Cats from california could be a book title
 
not fair, earrings are not vegetables
 
5:33 PM
@copy You could have an index
 
@ivarni but vegetables can be earrings
 
catgocat?I thought he was in europe.
 
!!translate zirak uz en
 
@Cereal That didn't make much sense. Use the !!/help command to learn more.
 
!!help translate
 
5:34 PM
@Cereal Command translate does not exist.
 
:o
 
@Luggage SomeKittens is from California.
 
ah
 
@ivarni They are if you're brave enough
 
5:34 PM
@uselesschien Zirak's a terrorist?
 
@MadaraUchiha/@BenjaminGruenbaum have you seen Zirak irl btw? is he 12ft tall?
 
@Cereal These days, everyone is.
 
@AwalGarg 18.
 
Only in America
 
@AwalGarg sure, want pics?
 
5:35 PM
ofcourse
 
This is @Zirak last week
 
@AwalGarg a 400-foot tall purple platypus-bear with pink horns and silver wings
 
This is @Zirak's brother having a beer with me:
 
@BenjaminGruenbaum thats his wife.
 
5:36 PM
@Abhishrek that's offensive :D
 
@Abhishrek Careful now
 
o_o erm what ?
how is that offensive ?
 
This is @Zirak after he colored his hair being a total a-hole and not waiting for everyone else to toast their beer:
 
Bro code #475: Don't make fun of another guy's wife
 
@BenjaminGruenbaum @MadaraUchiha so you lied to me? not 18ft at all :/
 
5:37 PM
@Cereal erm okay
 
You lost me at 'bro'.
 
Bro Code #001 fix this ?
who the heck uses 3 digit color notations anymore ?
 
@AwalGarg Zirak values his privacy, I am not going to disclose any details he did not already disclose publicly himself.
 
and hes not me.
 
@BenjaminGruenbaum I feel so proud I know where he lives. Bestest achievement of my life.
 
5:39 PM
Amaan found it by a google search long back, Derp.
 
So, there's this guy.. twitter.com/zirak, not 18-feet tall
 
unlikely to be zirak
just not awesome enough
 
not zirak. zirak is zirakertan on twitter
 
@uselesschien "ReferenceError: atheists is not defined"
 
5:44 PM
@AwalGarg could just google it but ok :D
 
@Abhishrek That's 52 minutes long..
 
Its from a timeframe when dawkins wasn't harsh
 
!!google where does zirak live?
 
@AwalGarg get lost, lol
 
5:47 PM
@AwalGarg right, so just drop it.
 
i know how to but i wont help u @AwalGarg and am more than sure that zirak fixed that too cause well hes zirak and hes smarter
 
@uselesschien big whoop so what. This sort of mentality is why we can't have nice things :D
 
Aright, so here's a trivia problem for you guys:
I need to run an asynchronous, CPU-intensive background job in node, maybe in JS or maybe in C. It needs to run every N seconds, then the foreground process (the event loop) needs to pick up the results and distribute them via socket. Think updating a simulation and broadcasting the new state.
 
TIL some PHP by reading docs o>O
 
Persistence of the state would be nice, but I need to package this up so it can run on any old machine (making a DB tricky but not impossible).
 
5:52 PM
@uselesschien lol
maybe you should do it more often ?
 
@ssube lucky for you the OS scheduler is optimized for this and will give the io bound process priority.
 
This answer has a lot of interesting suggestions. How would you guys handle throwing a bunch (100MBish) of binary data between threads in node?
 
So the CPU intensive tasks will run but the scheduler will still not starve the io bound process.
@ssube buffers, only buffers.
 
@BenjaminGruenbaum buffers and child processes, buffers and native threads, buffers and mash?
 
imma go write some C and PHP and sleep. have fun peeps.
 
5:54 PM
@ssube wait, fuck.
 
Losing a few frames is also ok, so long as I can persist at some point. This is all game related.
 
You're right, you can't actually send data that way, you can use a memory mapped file.
 
I thought @Zirak was Douglas Crockford in disguise.
 
The easiest way to synchronize data is to use a database.
 
@BenjaminGruenbaum right. I can have a worker process do the next sim step, write to a DB, then the server process grabs and broadcasts. That works, but leaves me deploying two processes and a mongo/redis to everyone's machine.
For server-side/scaling it's great, but less than ideal for single player.
Having pipes/sockets/mmap/buffer between processes is nice. Web workers (or threads pretending to be workers) would be pretty sweet, if it didn't serialize so often.
I am gonna have to serialize at some point anyway, but would rather use bson or some compressible format.
 
5:56 PM
@ssube There is no way to share data across threads in NodeJS right now that I'm aware of. As I said - this is being fixed but the PR is taking months.
 
!!caniuse appendchild
 
@ssube look into the structured clone algorithm.
@SterlingArcher since Netscape 4 :D
 
@BenjaminGruenbaum this module looks a lot like what I Want
 
Ok thanks, why doesn't caniuse have it?
 
5:57 PM
maybe 3.5 even
 
@ssube Threads A-GoGo is old, broken and not working.
 
So appendChild > innerHTML += (assuming += [some element]) right?
 
@BenjaminGruenbaum and maybe ie8
// just kidding
 
Especially since having "web workers" would let me shove it all into the browser at some point.
 
@SterlingArcher everytime
 
5:58 PM
Good good
 
@ssube your points are good, so good that this is actually a thing happening right now - but it's not ready yet - if only you asked in a year :D
 
stackoverflow.com/questions/31144992/… I tried to make that comment here but she deleted her question and is now using innerHTML += :(
 
@BenjaminGruenbaum that library claims to be a successor to threads A-GoGo
 
@ssube have you watched the video the birth and death of js ?
 
@ssube I think anything but database will be painful for you, you can use a queue like zeromq but it's more work. What memory are you distributing and why?
And how fast do you need it to be?
 

« first day (1718 days earlier)      last day (3224 days later) »