« first day (1633 days earlier)      last day (3314 days later) » 

12:00 AM
Oh, dear, I forgot it was mongodb... *awkwardly backs away off into the distance(
 
I'm not the best with JavaScript can anyone give me a hand? stackoverflow.com/questions/29460276/…
 
@Jack 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.
 
@Jack ident it properly and you might find the missing/extra bracket
 
@CSᵠ Alright I will indent correctly and take another look thank you :)
 
also there are two error:'s
But I agree with @CSᵠ and think that proper formatting will help with seeing the structure and spotting problems.
 
12:17 AM
Where are the errors?
 
crl
God, indent that code
 
Haha I indented the code
 
crl
it still lacks closing (curly) brackets
 
me twitches at unformatted code
 
most editors have a 'jump to closing bracket' feature as well, and should highlight your beginning/closing brackets for you :)
 
12:24 AM
and when i think about it, when started programming i mostly didn't ident at all
about 4 years later my teacher flunk me for that, had to learn the hard way
 
Better I learn now haha
 
I kinda just cheated and created a separate collection
 
@Jack Yes :D formatting is ridiculously important for mental sanity
 
Especially in JavaScript is seems lol
 
@Jack Noo all languages... being able to see nesting/scopes makes debugging and determining what the code is doing significantly easier.
 
12:30 AM
Yeah I defiantly agree with that haha but it just seems much easier to loose track of things in JavaScript rather then a language like objC if you aren't formatting correctly.
 
It is certainly more accepted/easier to nest anonymous functions in a language like JS, which would mean you have a higher number of nested scopes.
 
12:47 AM
learn python @Jack
 
1:28 AM
@CSᵠ I haven't used python in ages haha
 
2:12 AM
I'm being ignored in Ubuntu chatroom because I told them you wouldn't use LibreOffice if you had money to afford MS office. And I compared it to rich guy driving BMW and poor guy driving Toyota
 
no wonder, that's a bad prediction, bad analogy, wrong set of assumptions
I for one would use M$ office if first, both were on the same price level (0), it would also be OSS (any! Open licence), third the more permissive the license is
btw this is awesome: javascript:(function(){$(".answer").each(function(i,n){if(n.id!==('answer'+docu‌​ment.location.hash).replace(/#/,'-'))n.style.display="none"})})()
 
2:32 AM
@EnglishMaster google docs > all!
installing programs onto your actual machine to perform tasks like that seems so archaic honeslty
 
@Loktar especially when a doc is made to be shared...
 
hah yea
 
still maybe not the best usecase for a bookwriter that only needs an off-the grid laptop with some word processor
till the work is ready to go to the agent->editor->print
writing 7th harry porker online, having the misfortune someone steals the pw and leaks the story.. umm
 
true, however even in that case something bare bones is apparently fine Game of Thrones author George RR 'Why I still use DOS'
> Then I have my writing computer, which is a DOS machine not connected to the internet. Remember DOS? I use WordStar 4.0 as my word-processing system."
lol that cracks me up
 
@Loktar That is why I hate principle of "getting married", it just sounds too archaic way to get laid.
 
2:41 AM
@Loktar fuck whaaaaaaaaaaaaaa
 
@EnglishMaster if you have to get married before you get laid... well there are probably some other issues
 
@EnglishMaster archaic.. no, traditional yea, but to get laid?!?!? if you need to do that to get that you better run off to someone else
 
^
although I want my kids to wait ofc :P
 
even your boys ? :P
coz.. the girls i can dig that
and LOL, prolly never gonna happen
 
well I can't be a hypocrite
 
2:43 AM
@Loktar They have surgeries to make your girls look virgin nowadays.
 
haha but yeah I'm realistic :p
 
@EnglishMaster and there's the lobotomy to make the brain forget the sexual experiences (and other stuff)
btw that's almost extinct, still legal in a handful of places on earth iirc
 
yeah
You can't trust any girls nowadays
 
@EnglishMaster since i'll assume you're good with the tech english language, may i get your attention in the html room pls
 
3:17 AM
Which one looks the most nerd?
1) Looks skinny, almost malnourished, but have 212 wpm typing speed and wears the biggest glasses in your college. You can't ever see his eye balls because glow from his screen makes his glasses look almost like sun-glasses.
2) Socially in-adapt, always wear t-shirts with Mozilla logo on it. He is fond of military stuffs so wallpaper on his laptop is a photo of Marine Corps. But unlike his military hobby, he is fat as hell
3) Looks like a rejected Sesame Street character, uses Lenovo Thinkpad. He loves talking about girls (e.g. which girl is hot in school and
 
1. nerd, 2. lazy ass wanabe smth, 3. creep
Disclaimer: sound like !
 
m59
3:32 AM
What's the right way to set body styles with React?
like, 1. from an object like you do with other elements inline 2. like how routes can optionally set their own body class (or do we do the same with React?)
 
@EnglishMaster You clearly haven't met many real nerds
 
3:49 AM
developer.mozilla.org/en-US/docs/Web/API/URLUtils/hash Of course the most useful thing I find today has to be implemented in only one browser
 
:(
the most interesting useful thing i know of isnt supported anywhere useful :( dev.w3.org/csswg/css-snappoints
 
@GrantWatters Unless you're a Windows developer ;)
 
@BoltClock i pinged you a few days ago with that snippet, didn't even notice it's a FF only feature
thanx, didn't even read the mdn, i found it natural to use
strange thing is i wrote it on Chrome, and tested it on FF, lol
 
@CSᵠ I don't remember lol :S
Oh that one. Yeah maybe I didn't pay attention to it since it's a bookmarklet
 
i used it again, really useful on a post with a ton of answers
 
4:01 AM
So... what's the alternative to check if an a[href] matches location.hash?
 
regex?
 
fine
 
hey
wait
Chrome latest has it
those docs need upgrading
please test, i have it on chrome
and the shortest regex once could go away with...
document.location.href.replace(/^.*#/, '')
!!>document.location.href
 
@CSᵠ "ReferenceError: document is not defined"
 
Neat, works for me too
And on IE...
 
4:07 AM
what?
 
OK, MDN. You are giving me more reasons to stop trusting you
 
lol
but what else? mdn is like the bible dude...
:P
 
inb4 the chat starts pushing w3schools to everyone
 
!!urban w3schools
 
@BoltClock w3schools a site created by webdevelopers whose only purpose is to misinform other webdevelopers in order to keep their job
 
4:11 AM
The new microgeneration doesn't know what w3schools is = success? ;-)
 
they did some updates is seems
in PHP, 53 mins ago, by john c.
http://www.w3schools.com/php/php_mysql_connect.asp
 
@CSᵠ href.match(/(#.+)/)[1] At this point I'm wondering if I should use replace or match
 
well...
hashtags prolly have a \w structure i hope
maybe you know more @BoltClock
 
@CSᵠ twitch
 
then match would be better than a replace on some really strange urls
@BoltClock why?
 
4:16 AM
You said hashtag
 
You just trying to compare the hash from an href with the hash from window.location?
 
@GrantWatters Yeah
 
@BoltClock tired, lol, sry
 
Would be super nice if the info on browser support for .hash was correct, in the meantime I have to stick with tried and tested .href
 
@BoltClock document.location.href.match(/#[\w-]+$/)[0] Better
but prolly the specs allow more chars
 
4:18 AM
#multiplehashtags #confusethebot #dontthey
 
@CSᵠ I'm thinking of just simplifying it for alphanumeric hashes
I don't need a fully URL compliant parser if the only possible hashes in this page will be alphanumeric
 
[a-z0-9]/i
 
Or just . :P
 
which page? SO ?
 
@CSᵠ An SO question :P
 
4:20 AM
what about double hashes
 
@CSᵠ wat?
 
so questions work on numeric only...
http://bla.bla/inde.bla?bla=val#bla-kjh#bla
 
No no I'm just taking code from a question and messing with it. Not querying an SO page
 
 
1 hour later…
5:36 AM
 
6:23 AM
lol
 
function isAdmin (cipherText: Buffer): Boolean {
  return ecb.decrypt(cipherText)
    .toString('utf8');
    .split(';');
    .some(item=>item.indexOf('admin') > -1);
}
Valid chaining or too confusing?
 
that won't work
 
wait, what's with those semicolons?
 
@CSᵠ semicolons are a derp
@JanDvorak I'm assuming you meant the semicolons? Or the idea altogether?
 
6:36 AM
@SomeKittens why derp? lol
is this some kind of a test?
 
Then I'd use .indcludes over .indexOf
 
@CSᵠ Nah, I just didn't notice the glaring syntax error.
 
Other than that, it lgtm
 
@SomeKittens I meant the semicolons
 
@BenjaminGruenbaum No Babel here...
 
6:37 AM
Although, not really sure about what that function does to begin with
@SomeKittens you can polyfill that all the way to ES3
 
> The second function should decrypt the string and look for the characters ";admin=true;" (or, equivalently, decrypt, split the string on ";", convert each resulting string into 2-tuples, and look for the "admin" tuple).

Return true or false based on whether the string exists.
 
Yeah, but why is that encrypted to begin with?
Is it on the client or the server?
 
!!urban lgtm
 
@CSᵠ LGTM An acronym for "Looks Good To Me", often used as a quick response after reviewing someone's essay, code, or design document.
 
6:39 AM
Oh, a challenge, I was just making sure you're not using it for authentication on your website or anything
 
@BenjaminGruenbaum oh, no. I'm not dumb enough to use my own code for anything security-critical
 
The only truly secure way of encrypting information is to XOR with dev/random and then erase the key with a hammer to the RAM.
 
@JanDvorak but RAM is volatile
other than that i agree
 
OK... powering it down and watching it for a few seconds might do
but the act of powering it down might write to the page file temporarily
 
@JanDvorak that's actually not too secure :D
/dev/random isn't random enough
 
6:50 AM
/dev/urandom?
 
not any better - the thing is /dev/random generates random numbers from environmental noise which you can listen to :P
 
all /dev/random gives is trochees
 
fetching the key from random.org leaves you only as secure as the SSL you are using... and someone could pretend they are random.org - you just need to RE one cert
 
@BenjaminGruenbaum it should be pretty good encryption, surely you can't replicate a 1:1 encryption vs /dev/random
 
@CSᵠ I can't but Adi Shamir can :D
Heck, the dude listens to the sound the CPU makes from the outside to decrypt RSA
 
6:52 AM
googleing...
funk!
 
@BenjaminGruenbaum Is that the class you're taking?
 
@SomeKittens no, just insanely cool
I gotta eat some breakfast, ttyl
 
bon apetit
 
!!afk where are thou @rlemon
 
@JanDvorak then smash the drive to be sure, also it might write to it while encryptng, so it needs the hammer
wakey wakey, eggs and bakey @BenjaminGruenbaum :)
 
6:55 AM
In the mean time... the tavern has succesfully triangulated Bjb568's position
 
why is the JS troubling you @NullPoiиteя ?
who's that and why
 
hell.. I'm sure I can close my computer in a 10" thick metal box with no air inside and the guy will read my hard drive by watching the wires that power the PC vibrate
 
stackoverflow.com/questions/14220321/… i need this i know what asyn and syn request means , but function in js are quite different
 
@JanDvorak let metal = 'lead'; and draw regulated constant power from mains
btw that lead will put up some weight...
bye bye portability
 
constant power means your battery level will fluctuate. I'm pretty sure that will affect something.
 
7:05 AM
thanks now its working
 
@JanDvorak what battery, no battery, draw constant current inside the box, and the pc will use that extra PSU and take what it needs
also filter noise everywhere
 
Nah, still susceptible to rubberhosing
 
Crap, I closed an email that I sent to my college with "Kind Retards," instead of "Kind Regards". You know, t is located right above g, that sneaky little bastard.
Do you think they will expel me for this?
 
@EnglishMaster use Dvorak
 
@EnglishMaster if they do, they're what you kindly said...
 
7:12 AM
Right, but I've already sent the email containing that 'r' word to head of IT faculty of my school.
 
har, har. That's an old (and tired) joke.
 
@SomeKittens Dude, I'm not kidding.
 
@EnglishMaster I highly doubt that.
 
Gosh, look at the Quokka in my profile photo, do I look like I'm dishonest?
Why are they so funny?
 
You typically act like someone who wants attention.
 
7:19 AM
I seriously don't care about attention, I actually wish people in public to stop "stare-raping" me all the time.
Ok, I'm sorry.
I was only posting Quokka selfies because we all think they are hilarious.
 
It would be embearassing if something sat on your car...
 
7:40 AM
I just went down the rabbit hole of function scopes in javascript, wondering what the hell was wrong with the app, and how function expressions work at deeper level
only to find out that my function was missing a return statement
and that was the problem
 
Too much Ruby :-)
 
on the bright side, I learned a lot of how functions work on js
and that I shouldn't be coding at almost 5
 
5AM?
 
yep
because who needs sleeping right?
 
Why? You learn a lot about Javascript function that way :-D
 
7:46 AM
@JanDvorak no one ever learned js by sleeping
 
hi
 
8:04 AM
Nice weather
What was your first programming language?
Mine was Actionscript 2
 
c language
 
Pascal here
 
Actionscript is a phucking good language, it's only undervalued due to Steve Jobs and his thugs
 
My last pascal experience was ages ago though, back when Windows 3.1 was a new thing
 
would there be a delay between fetching 2 scripts and 3? assuming those are all that are loaded and are roughly the same size
 
8:12 AM
they will be requested at the same time, but they will be parsed and run one by one.
 
ASM
 
@phenomnomnominal good, running those would be negligible
thanks
 
@JanDvorak Were you alive when this happened?
I think I was 2 years old or something
 
I'm from 1987
 
Do you think the guy on the left corner is now in his 40s?
 
8:21 AM
I saw 98 ..
 
looks like he already was in his 40s
 
shit, then is he probably dead now?
Why are they even so excited about Windows 95? I don'[t get it
 
Because at the time it was pretty awesome
You think in 20 years you'll be excited about the current version of whatever OS you use?
 
Probably not. It doesn't even support holographic displays.
... or even transparent displays, for that matter.
There. I've said it. We'll have holographic 3D displays by 2035
Not sure how popular touch screens will get. Mice are still pretty much awesome.
 
8:39 AM
I'm just waiting for fully available virtual mating
I think engineers at pornhub.com are working on it atm
 
That year will be the last recorded birth in human history. 50 years later, humanity is doomed.
 
Yeah, I mean who would date a real woman? Real women are so complicated
 
@EnglishMaster I feel so badly for you.
 
what do you mean?
 
Real women are incredible.
 
8:54 AM
Yeah but real women always complain and whine
but virtual women are configurable to suit your need
@JanDvorak On the bright side, it can be used to solve ever increasing population issue without nuking a whole country
 
9:10 AM
...
i doubt that "virtual mating" would be better than real mating
 
my virtual woman setting:
whining: 2%
humour: 60%
breast: 100%
 
big boobie lover ?
 
ya, what about you?, show me your settings
 
I have something like this in my gruntfile
    js_files: [
      {
        expand: true,
        cwd:  'src/js/',
        src:  '**/*.js',
        dest: 'build/js/',
        ext:  'min.js'
      }
    ],
now for watch if I do
watch: {
  files: ['<%= js_files %>']
}
will it watch for the build/js/*.js files?
 
@EnglishMaster i won't use numbers to define woman. They have much more then those 3 settings.
 
9:29 AM
@KarelG I think we've discovered why @EnglishMaster thinks women are complicated.
 
:p
 
9:43 AM
@EnglishMaster : by coincidence, i encountered this image on 9GAG : img-9gag-ftw.9cache.com/photo/adYnygQ_460s.jpg
 
10:16 AM
@phenomnomnominal well, he's virgin, what else
 
very clearly
 
Most men are far more complicated than women. Trust me, I dated both kinds.
3
 
@dievardump just the right place to let us know
 
It's public here that @rlemon is my lover.
6
 
@dievardump really? a pizza and he's happy
and I mean...
I forget everything...
@CSᵠ mdn is a wiki, if it needs upgrading, please do it, it'll only take a couple of minutes
 
10:38 AM
in HTML / CSS / WebDesign, 6 hours ago, by CSᵠ
there's a big Edit button in MDN (top right)
@FlorianMargaine i saw that button, first time i pushed it was today
but no action
i'll use it
i used the php one for the docs there for smth
 
thanx though
 
I also initiated something yesterday: bugzilla.mozilla.org/show_bug.cgi?id=1151298
we'll see if that gets picked up
 
1st time?
 
it's not a content contribution
but yeah, I just forked github.com/mozilla/kuma
content contribution is not the first time, no
 
11:08 AM
@FlorianMargaine Not sure the person you're with will think the same.
Or maybe you're a golden lover. Marry me ?
 
@dievardump of course not, she's a woman
@dievardump sorry, ring's already on my finger
 
11:36 AM
Are there any language feature hacks for executing a function N times, without using for?
 
is a developing on a dell Venue 11 Pro any good?
I was thinking of using webstorm/sublime
 
both software doesn't ask a lot resources
but did you have read the review ?
 
I can get one for £200
yeah
i read it, not sure I can attach and ext monitor
 
@Unihedro no
 
It does, although I;m still tempted to get the mac
my clients might think it strange if I bring a tablet to work
 
11:40 AM
So far I have while (N--) f()
 
it's not a "language feature hack"
but sure
function doN(fn, number) {
    for (var i = 0; i < number; i++) {
        fn();
    }
}
now you can do doN(f, 10);
 
It's more readable and more elegant, I agree with that method.
 
@Unihedro For what purpose?
What are you expecting to gain by calling the same function over and over?
 
@SecondRikudo nothing, just an impure function
 
in lisp, there's dotimes
 
11:45 AM
@SuperUberDuper i'm talking about its negative point : "ergonomics"
 
(dotimes (i 10)
  (f i))
 
@FlorianMargaine Not only in Lisp :p
 
yeah, clojure has it too
 
@FlorianMargaine Isn't Lisp purely functional?
 
@SecondRikudo NOT. AT. ALL.
 
11:45 AM
I guess I have a lot to learn
(Shamefully, I've never tried Lisp)
 
Um actually, I think they hacked most of it together with Perl
 
whats wrong with its ergonomics? @KarelG
 
Common Lisp can be everything. Procedural, object-oriented, functional, w/e.
 
@SuperUberDuper the review has classified it as negative point, and since you're a dev, you would use that tablet a lot. It's best to go to a store to see if they have an example of it, and try to place your hands on the keyboard. If it fits well, then its ok
 
@KarelG uh, webstorm can...
 
11:48 AM
@FlorianMargaine not bad as netbeans ;)
i don't get why schools are advising this crap to their students for JAVA
 
because it's free...
 
Wait until they discover Bluejay.
Then all schools will officially use crapware for teaching...
 
I'd rather recommend eclipse than idea for students
it's: free, open source
better than: paid, closed source
 
@Unihedro oh god I remember that shit.
 
@FlorianMargaine same here
but does idea not have a community edition, which is free ?
 
11:56 AM
with the array.reduce(function(all, item, index){ }); method, does all return all the elements of the array?
 
iirc that's not the correct order
 
previous, next, index, array
 
@phenomnomnominal so, basically this method is not going to reduce (sum all the elemtns) our array unless we do something like:
 

« first day (1633 days earlier)      last day (3314 days later) »