« first day (1749 days earlier)      last day (3199 days later) » 

10:00 AM
@Ant's don't randomly ping people.
 
@Ant's there isn't an effective object.clone in javascript, and javascript objects are mutable. no way around it. look at ImmutableJS from facebook.
 
@AwalGarg .freeze()?
 
that doesn't allow for composing
 
.create()
 
@FlorianMargaine What I'm worried about most is compat, you don't seem to have a fine grained control over dpkg like I have over alpm.
 
10:05 AM
@Zirak ?
 
meh on second thought you're probably fine if you can implement index
 
it's in the blocks, I'll push tonight
but I use apt, not dpkg
(of course.)
 
does any of you use a trackpad driver?
 
why is the w10 store fixed on top of my 2nd monitor and I can't move it?
and it doesn't load the content
 
10:16 AM
there seems to be many bugs in w10
 
yes x.x
 
not upgrading for a while
 
but yesterday it was working
I'm restarting da shi.
 
news.ycombinator.com/item?id=9976298 weird. Is it not possible that the data stays on your PC and not goes to Microsoft, and the processing of "what you want" be done client side and requested from the server? that way you get privacy and personalization.
 
user2620028
I have incredible lag on the vargar.io game but might be because of thailand lol
 
10:18 AM
you are blaming a whole country because your system is slow? :?
 
@Mr_Green yes.
@Mr_Green don't you blame China if you can't go on google?
 
user2620028
@Mr_Green yes
 
I would blame government but not innocent land :P
 
user2620028
I don't blame the government i blame the thai people
 
user2620028
who seem to think that dial up and dsl is sufficient internet in this day and age.
 
10:23 AM
...
 
Oh yay, kitematic is finally available for Windows
 
Hi people, I've had a question about Javascript, if I may.
 
do you still have that question?
 
!!welcome altay
 
caprica became old
 
10:28 AM
Yes I do.
 
Cap's dead :( @JanDvorak
 
!!welcome Altay Mazlum
that confirms. she is dead
@AltayMazlum please ask then
 
I sometimes see onclick="return example();" and sometimes onclick="example()". What's the difference?
Does it have something to do with the function itself?
 
neither is particularly great
but the latter doesn't even allow the function to cancel the default action
 
why do people say "google now knows everything about you"? isn't it just google search with some personal assistant style commands and voice recognition?
 
10:34 AM
@JanDvorak Oh okay, thank you.
@AwalGarg well, doesn't everyone has their own unique frequency of voice? Maybe that's how. Just an opinion.
 
Any ideas for how to create a "global" error-handler in the browser? All I'm getting using window.onerror is literally the string "Script Error"
 
A global try catch?
 
wrap all your code in a try catch block
 
At the entry point of your code
 
Isn't that bad for performance?
 
10:40 AM
no
 
faster than window.onerror
@FlorianMargaine hi ninja
 
@AwalGarg Hi turtle
 
shut up I wrote a longer message than you so it took more time.
;D
 
So when docs for npmjs.com/package/catchall says All function bodies are wrapped in try-catch blocks, so it would be a terrible idea to use this for production code that's basically not true?
 
Let's make it worse for you: I'm on mobile
 
10:43 AM
@ivarni obviously because it doesn't explain why it is a terrible idea.
If it means file size will expand... ok.
catching an exception and rewinding the engine is a bit heavy task. so if your code doesn't throw exceptions, you see no performance hit at all
 
We basically throw the user to a generic error page at the first hint of trouble so in that case it's a non-issue. Cheers.
 
cheer
 
11:05 AM
$promise: Promise
$resolved: true
authentication_token: "fxzQp3UzmyWgSaWSx5ZT"
email: "foo@foo.com"
first_name: "Tom"
id: 1
last_name: "mi"
provider: "email"
__proto__: Resource
How do i get email from that obj?
 
seems straightforward, where's the catch?
 
he doesn't know js
 
Truth has been spoken.
 
I need this
 
 
11:13 AM
@TommyAdey obj.email :) Next time just request an express answer by typing @ followed by Flo and then your question.
 
I want a roomba
fuck keyboard waffles
 
lol xD
 
morning
 
my robot had a pet roomba
 
Good afternoon!
 
11:15 AM
oh wow they're pricey
 
yes
 
since quadrocopters can be obtained cheaper than roombas, I'm wondering if there's a way to have a quadrocopter cleaning your house
 
Problem is they work by pushing air downwards which is more likely to move dirt than to remove it
 
@flo Thanks @AwalGarg it says undefined. The obj looks more like this.
 
Yeah you need to request an express answer by doing what I said. Type @ then Flo followed by a space and your question.
 
11:25 AM
Done
 
now just wait for flo to come. it could take a few minutes.
if it doesn't, create a new message maybe.
 
Lol who is flo?
 
bot
 
Ah! I see.
 
Which library is that?
 
11:30 AM
Angular :)
 
Is that deferreds or are promises handled like that angular?
 
Good morning
 
@AwalGarg You're evil, man
 
Fridays are bad :|
 
11:45 AM
I think they are handled like that.
 
@AwalGarg ...
 
waaaat
With w10 groove music, you can put music files on onedrive and play them anywhere
Like the app will pick them up
neat
Too bad I haven't downloaded music in 5 years
 
u olde
:P
I didn't know what music was 5 years ago
 
How old are you ._.
 
(as in, the good music)
 
11:53 AM
how do I javascript?
 
I listened to MJ when I was 10, not sure how...
 
@corvid You don't do JavaScript. JavaScript does you.
 
> 1. smack your head on the keyboard a few times
2. if no error comes out
- good job
else
- go back to step 1
 
@corvid Internet Explorer 7.0 provides CSS expressions which let you execute javascript code. That's where we write javascript code.
 
You're right you know. That was how i got the answer.
Thanks for the help :)
 
11:56 AM
is javascript anything like jquery?
 
@corvid jQuery is a library of Javascript. They're both pretty similiar but jQuery is much easier I think.
 
I was joking (badly)
 
Ah I see.
 
javascript is a jQuery library
5
 
Why bother with JavaScript,, just build a native Firefox addon
 
11:58 AM
@corvid if you want more details, look at this tutorial: jquery.com
 
@towc He's trolling I think. Just like Neoares. ^_^
 
@AltayMazlum yeah, there are horrible people around these days
but javascript really is a jQuery library, Neoares' no troll
 
how do I selector? I keep trying to tell it which div I want $('that div with the that says "title" at the top of the page')
 
who wants to team up?
look out for each other and get to 1st and 2nd place?
 
With you? scoff
 
12:00 PM
I go by name SUPER ok?
 
Team up... to make a super hero squad? I don't see why not
 
@corvid you may be looking at $('div[title="put whatever you want"]')
 
No, it's the opposite. jQuery is a library of Javascript.
 
Use, XPath for that duh
 
@AltayMazlum where did you hear that?
jQuery > vanilla-js.com > javascript
 
12:01 PM
Javascript is the main language. jQuery is just a library of it.
 
ok lets play at 1:10pm/
 
many just don't know about that step in the middle tho
 
I need to get tea?
 
It's everywhere.
 
@AltayMazlum He's trolling
 
12:02 PM
I prefer stawberry over vanilla... can I please have strawberry flavored javascript?
 
:P peace?
 
I no troll
 
Oh God!
 
@corvid me too! I'll go get some for both
 
With whipped cream
 
12:03 PM
1 message moved to JS trash
 
thx
 
agar.io rules, especially on fridays !!
 
@corvid omg, google "strawberry javascript" on images 0.o
 
sure
 
God damn it
 
12:03 PM
I'm clicking that rebeca link
xD
 
wtb addons for edge
ever just userscripts
 
mission accomplished
 
maybe it has userscripts hidden somewhere
 
ugh but being serious now, can you wait on a class construction until two socket's readyState's are confirmed to be connected, and throw an error otherwise?
 
waiting for anything in javascript is generally a bad idea
 
12:07 PM
Wait for ES7
 
Who installed Windows 10 here?
 
me
 
Isn't it awesome?
 
me
 
12:07 PM
I loved it.
 
it is
but still windows
 
I need to get used to it... but yeah
 
Yeah it's still windows
I can't build fuck all
 
You mean you've updated your system virus? :)
 
@JoshLeBlanc but... if the socket connection is not established the whole instanced class is basically worthless, because it relies on the two sockets. What is the appropriate way to do it?
 
12:08 PM
I'm going to installit at home cause I want to play no-java minecraft
 
Windows ? That Microsoft thing ? Did they eventually create a version with jQuery ?
 
@corvid I dunno, connect, and resolve a promise that creates the class with the newly instantiated sockets?
 
@JoshLeBlanc so wouldn't that be like thing = new Thing().then(() => { })?
 
Ready TO PLAY?
 
12:10 PM
Possibly. I don't know anything about websockets
Oh, edge has a pretty print button in the debugger
 
Anyone in here owns Mac?
 
@JoshLeBlanc it is a simple 2 function API.
 
ayy I own a mac (but mostly because my company payed for it)
 
People always try to defile Mac but I think it's much better than Windows will ever be.
 
12:11 PM
!!mdn websocket
I own a mac
 
@JonClements for free, yeah.
 
@JoshLeBlanc Cap died :(
 
@AltayMazlum of course. Why else would anyone want to buy it for that price tag?
 
@corvid Can't you just assume it's connected unless there's an error?
 
Yes. Wouldn't make much sense would it.
 
12:14 PM
I'd probably just run arch on everything if I could. But mah vidya
 
do anyone of yo knows how to win a girl's heart?
 
im in lead
 
@user3783598 I do.
 
@JoshLeBlanc ah... I think I am managing the events wrong in an es6 class then
 
can you please give me some tips
 
12:15 PM
@user3783598 IN THE ARENA, OF COURSE
 
Hey guys whats the best way to disable a link?
 
Whats a girl? :\
 
pointer-events: none
 
every man's weakness
 
@JoelL $('a').click((e) => e.preventDefault()); is one way
 
12:16 PM
@corvid no
 
Girls are only in animes :|
 
Oh well in that case, we have someone who knows how to win their heart
 
@user3783598 Listen, it's just like conquering a castle. It takes time, but first you have to take down the wall by being nice, caring and keeping yourself in the distance. Don't try to act tricky or she acts tricky too and hurts you. Once the wall is down, slowly be a part of her life, tell her things, make her laugh. Stuff like these.
 
It's just like conquering a castle -- better left to someone else.
 
12:19 PM
hey. do you guys have any suggestions on how to store a boolean value for 148 different id's which are on the document?
I mean website ;)
 
@crusty why?
 
but, that's the view, not the model
 
@AltayMazlum thanks bro.
 
1) I need to generate it in real-time (onclick)
 
@user3783598 You're welcome, brother. Good luck out there!
 
12:20 PM
2) and pass it later on to PHP
 
@crusty then... use a database and put a field in the collection?
 
database? why and what for? :P
I know I can define 148 variables
but it's lame
 
function noDiac(e) {
    e.match(/^[ƍƜǝɅɐɒɥɯɰɹɺɻʇʌʍʎʞʮʯʴʵʻ̒ᴂᴈᴉᴔᴚᴟᵄᵆᵌᵎᵚᵷᶛᶣᶭᶺⅎ]+$/) && (e = e.split("").reverse().join(""));
    for (var t in diacSubstitutions)
        e = e.replace(new RegExp("[" + t + "]", "g"), diacSubstitutions[t]);
    return e;
}
Wat. From the master-chat.js file
 
so here I am asking you guys
 
You heard about Arrays or Objects?
 
12:23 PM
You can, but don't you want the data to be persistent?
 
heard about both. but I'm better off with php :P
 
Uhhhhh
 
It's a bit of subject but, someone is good in math here ?
 
arrays and objects are not serverside languages
@Baldráni I took math courses, does that count?
 
arrays and objects aren't languages
if we're talking about the same thing
 
12:24 PM
@JoshLeBlanc Depend on the number of years and what you remember of it
 
What's the question
 
How Can Languages Be Real If Arrays And Objects Are Not Real?
8
 
anyway. is there any fast way to define that kind of array (148 elements) without having so many lines of code
 
Oh Sorry didnt noticed the pass to PHP.
 
user2620028
Still crossing me fingers on the windows 10 installation working
 
12:26 PM
var els = document.querySelector(myElementSelector).map(e => myCondition(e));
woo
 
user2620028
Damnit Pirates of the Caribbean i knew it was a mistake to watch you.
 
@rlemon LINE 21 FFS
 
@JoshLeBlanc I've got curve (get by point) its a parable that is growing but with coefficient of growing down warding what is the method to get the function out of it ?
 
@JoshLeBlanc removes diacritics from usernames mostly
 
@FlorianMargaine :D
 
12:27 PM
So is "front end" just considered anything that runs on the client? Someone is trying to convince me that front end is only html and css
 
front-end is stuff the user touches
 
+1
 
I don't touch, I lick
 
I don't lick, I push
 
Awkward silence :|
 
user2620028
12:31 PM
I don't push, i facesmash
 
It's only awkward if you make it awkward
 
Where is Google's documentation for JavaScript? Like MDN from Mozilla, MSDN from MSFT etc?
 
user2620028
@awal i believe they refer to mdn lol :D
 
@JoshLeBlanc So you've got no idea ?
 
Check v8 source code
 
12:32 PM
what
 
wow @rlemon you actually had a good idea for the bot
 
@rlemon if I were you, I'd do it :D @Zirak is busy doing other things
 
I'm waiting for him to clear up a few things about how undo and unformatted code work
 
e.g. writing some specs
 
12:33 PM
...
 
@Baldráni That depends, did you mean to say parabola?
 
@BenFortune all trees are blue
 
@JoshLeBlanc Hum yeah
probably, didnt took my maths course in english
 
Should I use my laptop while charging?
 
@JoshLeBlanc Lets took a simplier example : How to determine the function of this curves --> villemin.gerard.free.fr/GeomLAV/Cercle/aaaAIRE/…
 
12:36 PM
That Moment When Peeing Feels So Good You Start Crying.
 
That's not a parabola at all!
 
is this legal syntax?
this._connection = {
  port: conn.port || this._connection.port
}
 
ye
 
Only weed is illegal. The rest is legal.
 
@Baldráni I'm not sure
 
12:37 PM
@JoshLeBlanc Yeha I know lol this is just to have a simplier problem
 
Use getters and setters :p
 
Well a parabola is just ax^2 + bx + c
What variables do you know?
 
@JoshLeBlanc none
@JoshLeBlanc well yeah c of course
and the result
 
var cname = ["", "prochnica", "wypelnienie", "korona", "amalgamat", "u_przyszyjkowy", "brak_zeba"];
how can I create variable for each element except first one?
 
So you don't know any x value, or any y value?
 
12:39 PM
like
var prochnica = [];
var wypelnienie = [];
?
 
@cswl I'm trying to, set the connection via an object
 
@crusty what are you trying to achieve
beyond that
 
But since the curve is a bit downwarding i guess its more like x^-a()+b^x
@JoshLeBlanc The main problem is this is probably not this kind of function
But I indeed can try to resolve it with a classical function of second °
 
@crusty only in the window scope, yes.
 
@catgocat I use this array to create a list in the document. but I need array for each element for further purposes. And I want the number of variables to be dynamic
;)
@AwalGarg can you explain?
 
12:41 PM
@JoshLeBlanc Ha and yeah I actually now 3 set of each (y,x) that lead me to construct the fonction on paper
 
arr.filter(Boolean).forEach(el => {window[el] = []})
 
nice
 
arr.forEach(el => el && window[el] = []);
 
your code is bad and you should feel bad
 
I'm not sure
 
12:43 PM
:D
 
I'm so sick of my supervisor. I need to rewrite half of my code for the third time
 
> I'm yet to see
Close
 
because he changed his mind
>.<
 
for (let v of arr) v && (window[v]=[]);
just for the lolz
 
12:47 PM
@BenjaminGruenbaum how many of your apparently awesome feature-requests have been marked status-accepted till now? :-P
 
Mine doesn't even work :(
> Assigning to rvalue (1:27)
 
okay
sooo
arr.filter(Boolean).forEach(el => {window[el] = []})
this one is good, I guess
 
mine's best
 
but how to do it for every element EXCEPT first one?
 
for (let v of arr.slice(1)) window[v]=[];
 
12:49 PM
hi, anyone have ie8 ?
 
@crusty It's not going to do it for the first one, since it's been filtered.
 
so it just drops first element, which is empty?
 
@crusty if it's empty it's not added
 
!!mdn filter
 
@argentum47 in a vm
 
12:50 PM
rip in peace cap
 
I think I should RTFM sometimes
 
!!urban RTFM
now I have to go to the website?
aaaaaaaaah
 
@ivarni anywhere.. I need 2 screenshots of the landing page. smarketplace.com .. with the browser window full sized and then other with a window resized at < 768px
@catgocat Read the F**ing manual
 
oh
 
12:55 PM
@argentum47 fetch a vm from modern.ie :)
 
!!urban urban
 
Someone bring back Cap
 
:D
 
pretty sure rlemon kidnapped her
 
12:58 PM
I'm about to lose my mind
You’ve been gone for so long, I’m runnin' outta time
 

« first day (1749 days earlier)      last day (3199 days later) »