« first day (1970 days earlier)      last day (2994 days later) » 

1:00 PM
@AwalGarg "fuck college"
 
user3119231
I just want to be cool as you. I'm sitting here animating animals with svg .__.
 
@Maurice maurice, how are you going to do that?
i tried everything animating a polygon within a svg element
failed.
 
@FlorianMargaine that's my workspace to do college related stuff. It lives only on Tuesdays and Fridays.
 
user3119231
@lost polygons + javascript works well. oh and dis: greensock.com/tweenmax
 
user3119231
 
user3119231
1:11 PM
I think we need to speak, agent.
 
@Maurice pls
 
user3119231
give me your msn
 
russianwifedealer666
 
user3119231
u serious?
 
totally
!!tell maurice pootisland
 
1:16 PM
@maurice Pootis invite you to Pootisland
 
Hey I got a question on the d3.js force-layout-algorythm.
From the doc I found this: "•index - the zero-based index of the node within the nodes array."
Does that mean if I want to draw a graph the first element in the nodes array has to have id 0?
 
user3119231
@littlepootis noo, please, not pootisland :D
 
@Maurice but, i tried literally everything and nothing worked
i've now seperated the parts i need from the svg and put them as own div container including the part i removed, to animate it from there on
 
user3119231
@lost would show you an animated animal (code a.a.a.) but I'm not allowed (actually I'm just too lazy) :D
 
@Maurice thanks, i've also looked into d3's examples, i just don't get it
 
1:26 PM
guys is Vue.js any good?
 
lemme show you the codepen AND YES I KNOW I MADE IT UGLY AF don't blame me for my noob code :(
 
user3119231
@corvid 1 of 10000 librarys? nope, sorry.
 
@littlepootis lol'd
but it's so desolate
 
@Maurice click the second car which is lower than the others - the black panel is just for testing - but if you click on the rear 'door/gate' thats where i tried to 'slideup' the backdoor
 
user3119231
Typisch Deutscher.
 
1:28 PM
wat :o
 
FEUERWEHR AUTOS!
 
user3119231
go on with this. It goes in the right direction. You will finish this soon..
 
user3119231
I have to continue work on my script :D
 
@GNi33 You have no idea how satisfying it feels to be able to read German that I find in the wild. Even when it's just 2 words :P
 
1:30 PM
hehe, good job
 
i will make it better soon ^^ still getting back into js but i can't seem to get it sliding properly.. it works fine with png/jpeg but not with svg
haha @SomeGuy
 
user3119231
svg -> can be interactive - jpg or png -> static (normally)
 
@GNi33 Congrats on finally getting back to your Italian, btw
 
i was on the university this morning. Met a foreign exchange student with a name Ping Pong
 
@rlemon I take it you're not interested in commenting there?
 
1:31 PM
i thought that he was joking, but he isn't
had to struggle to not laugh
 
@KarelG That's ridiculous
 
yeah thats why i wanted to use the svg, since i could have a better quality + less traffic loading it
 
@BenjaminGruenbaum christ, calm down man. it's 8am here
I'll comment if and when I'm ready
 
@rlemon oh fuck right you're in canada lol
 
user3119231
(means when he got some coffee)
 
1:32 PM
@rlemon no need to be a negative nancy about it
 
40 secs ago, by rlemon
@BenjaminGruenbaum christ, calm down man. it's 8am here
 
@SomeGuy hehe, I'll keep trying ;)
 
@rlemon I take it you're not a morning person?
 
2:30pm here
 
seems like I still know the basics
 
1:33 PM
@BenjaminGruenbaum not for that kinda crap :P
I like to put all drama off till post noon
 
nice
@copy is it allowed to use google API for that ? :P
 
i.imgur.com/Vhu5l3g.gif @Maurice this works fine, but not with svg :(
 
@GNi33 Did you manage to connect the server ?
 
yeah, I think it's under heavy load right now though
 
1:41 PM
something something your mum something something heavy load
 
Hey random question, do any of you use DroidEdit?
 
heh, imgurs 404 page is funny
 
@KendallFrey ew
 
I get pissed when I need to send a message on my phone. So no... coding without a proper keyboard is totally out of question
 
if I need to change something when I'm out, I usually just ssh in
 
1:43 PM
@GNi33 Better than not coding, IMO
 
I'd rather not code
 
meh
 
If I don't have access to a computer and I want to write some code...
 
@KendallFrey ssh, vim
 
I did have a ssh terminal emulator on my phone once though
 
1:44 PM
I don't want to write code outside of work these days
 
drunkenly wiped my old site, because I didn't like it once
 
@BenFortune * don't have access to the internet
 
JuiceSSH works amazingly well
Terminal emulator?
 
@KendallFrey so you'll have the source on your phone too? huh
 
yeah
Just something to keep me from getting bored
 
1:45 PM
S'pose it'd be alright with a bluetooth keyboard
 
gaming on mobile is super crap
 
I tend to play stupid games on my phone for that, but your idea of killing boredom sounds a lot better
 
@BenFortune ah yeah, good idea, i'll carry one of those in my pocket everywhere
 
@BenFortune hmm, that could work. I'd actually be intrigued to try that
 
I play my ukulele to avoid being bored
Doing something other than programming is pretty great
 
1:48 PM
haha, when visiting the daily mirror page, it shows a popup with an ad. But the add got blocked by the government because the company behind the add is not following the government laws. As result of this, the pop up closed immediately due of no reply
 
I like programming
 
I used to like programming
 
I used to like you
loljk
 
!!youtube when your heart stops beating
 
1:51 PM
@KendallFrey You can get the 25% ones
Low profile that fold in half
 
a phone sized keyboard? great. oh wait.
 
@KendallFrey What's wrong with that?
 
I already have one
it's called a phone
 
How is it called if I create 1 HTML element with multiple elements inside it, and I want to duplicate and use it in a javascript array?
 
how do you want to use it in a array?
 
2:02 PM
@ErwinOkken .clone(true)
 
@BenjaminGruenbaum isn't it cloneNode(true)?
 
Doesn't soudn familiar but I'll take a look. Thx
 
or are you talking about NodeList here?
 
Probably
 
Hmm I'm not sure anymore =)
 
2:10 PM
Wow, I missed some drama
 
there were no drama here
 
@SterlingArcher story of my life
 
I'm feeling human again.
 
Human after all - Daft Punk
 
I had one of my terribad migraines yesterday.
 
2:14 PM
One of their best songs, imo
 
@Zirak depends on how much sugar you like ;)
 
@ThiefMaster happy birthday, come back to us. I want to see a gladiator battle for the room with Madara. Kthnx
Jesus
 
Burrito
 
@SterlingArcher Jesus isn't a charity
 
2:20 PM
what is jesus
 
baby don't crucify me
 
woah now
 
Jesus is just a famous person in the old ages
 
nailed it
 
@SterlingArcher nailed him, rather
 
2:23 PM
jesus...
 
@rlemon Oh god, their poor bows
 
@SterlingArcher of nazareth
 
No of Tijuana
 
multi line removes formatting
like
**so**
 
2:29 PM
!!afk Blah blah blah Rob sucks blah blah
 
that's not cartoon
 
It's drawn whatever
 
you're a cartoon
 
So professional, much release cycle, wow
 
2:36 PM
@KendallFrey how isn't it?
 
@rlemon How is it?
 
because it meets the definitions of Cartoon
 
@ndugger No, I'm a cartoon.
 
@rlemon which are?
 
> A cartoon is a form of two-dimensional illustrated visual art. While the specific definition has changed over time, modern usage refers to a typically non-realistic or semi-realistic drawing or painting intended for satire, caricature, or humor, or to the artistic style of such works.
it's semi-realistic, satire, drawn, two-dimensional
what more do you want?
 
2:38 PM
comic mod
 
@rlemon cel shading
 
@rlemon It's not carpal tunnel, it's cubital tunnel which is apparently much less severe
 
carpet tunnel
 
guys, what is a usage of generators in JavaScript? Like what is a common, real world application of them?
 
@SterlingArcher keep the genital talk out of here
 
2:39 PM
@MadaraUchiha I just noticed your left eye glows :o
 
@AwalGarg I only have a left eye in this picture.
 
@MadaraUchiha woah
that sucks
 
@BenjaminGruenbaum Yeah, broke our build unexpectedly.
Had to downgrade the version
(And waste an hour or so hunting it down)
 
@MadaraUchiha where be the right one
 
2:41 PM
@BenFortune so, could it be used for example for pagination? Can parameters be passed to it just like any other function?
 
@AwalGarg Some traitor is wearing it. I get it a few minutes from that moment though.
 
Finally got around to posting on the repo issue (#9)
It's all I have to say on the matter
 
This person is going places in life
 
the amount of strict mode incompatible code in popular libs terrifies me
 
Then don't use it
 
2:53 PM
@SterlingArcher I saw that comment on God's page
 
Whoa you know god?
 
@SterlingArcher Don't use my name in vain please.
 
Also, in which way do you copy the properties from an instance of a different class to the constructor of another class? Object.assign?
 
@MadaraUchiha I prefer my god main lined in my vein
And by god I mean skittles
I am shooting up skittles
I have a problem
 
I am my own problem
 
2:57 PM
I am yu
 
lol, the title
-12
Q: Jquery stuck dont know it anymore

Danny VorstenboschI'm trying to make something like this: The game The game is click the correct time, you will score a point. I've got this at the moment: (function game1) clock 1 == opt1 if opt1 is clicked (right answer) alert (Good job Score: 1) if opt2 is clicked (wrong answer) if opt3 is clicked (wrong ans...

 
that's rich
 
My god
 
let's roll up our sleeves and fix him!
right after I live my life and die
 
wat...
Why am I getting a "welcome" message?
 
3:07 PM
new feature
 
@Cerbrus you're the 10th person to ask today
 
@Cerbrus To welcome you.
 
@AwalGarg try Knockout :D
 
@BenjaminGruenbaum I should probably pay attention then :P
 
@BenjaminGruenbaum yes. chains of with. I blame JS for that and not knockout. But I do blame libs for doing stuff like global = this || window inside function scope and other stupid things.
 
3:09 PM
@ton.yeung lmao, uses bluebird
 
user3119231
!!welcome @Cerbrus
 
@@Cerbrus Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
@ton.yeung it doesn't, someone needed to publish a a paper
 
user3119231
And this is our personal welcome message :D
 
3:10 PM
lol the double anon ping
 
> I'm trying to make something like this: The game
 
Imgur makes me want a raccoon
Fuck
!!define isomorphic
 
@SterlingArcher isomorphic (mathematics) Related by an isomorphism; having a structure-preserving one-to-one correspondence.
 
@ton.yeung someone needed to publish an article
This is very common in academia
 
So for example, a simple addition function could be isomorphic, correct?
 
3:18 PM
Yes, this is very common in academia
 
user3119231
How is it possible to stop the textarea from "temping" the last inserted text?
 
user3119231
I don't want to use js just for doing value = ""
 
function a() {
    return 5;
}

function b() {
    return 7;
}

a() + b();
b() + a(); //same result?
Or is it a little more complex than that
 
user3119231
should be both the same result
 
@SterlingArcher dat title
 
3:20 PM
@SterlingArcher Not guaranteed by IEEE 754
 
@copy sorry, I'm not sure what that is. Let me google
 
It's called commutativity, by the way
 
@MadaraUchiha see flag :P
 
Not isomorphic?
 
why do people do this
 
3:21 PM
@rlemon probably in that case to call mod attention to a suspension avoiding user?
 
not the flag, why do people make second accounts and advertise it
if you're gaming the system, probably don't tell the system you're gaming it
 
lmao oh yeah
Back to the issue at hand -- what's a good example of isomorphic functionality in JS? I'm rather intruiged
Beyond a simple arithmetic function
 
@SterlingArcher yeah that's not isomorphism at all
 
@rlemon People who normally get suspended aren't usually the sharpest knives in the drawer to begin with.
 
8 mins ago, by ton.yeung
@SterlingArcher from what i can gather its a FP concept where you can execute two functions in any order and still get the same result
Is that wrong then? @KendallFrey
 
3:25 PM
According to wikipedia, yes
it may have another meaning I don't know about
 
Hi @RoelvanUden Good Evening
 
@SterlingArcher totally wrong. Isomorphic JS means the server and client use the same code.
 
@SterlingArcher i.imgur.com/iEAnPf5.jpg XD
 
omg
@ssube wait, like source code?
How can a client and server use the same code?
 
source or compiled, either way.
 
3:27 PM
@SterlingArcher that specific concept is just called purity, btw
 
The most common case is when you write a library with your business logic, then have a server backend and a client frontend both using that.
 
i.e. lack of side effects
 
it's probably tattoo tuesday on imgur
hot females with tattoos
but tattoos are nah for me
 
tattoos are great. I'm gonna get another one soon
 
@ssube ah, so if I abstracted my game logic into a lib, and ran SourceUndead, it would be purity?
Since it's basically a server API as is. All it does is return JSON to the client
 
3:29 PM
@SterlingArcher that part is isomorphic. Now if you get React to pre-render HTML on the server (or enable it to do that), then the view stuff is isomorphic.
 
@ndugger do you have one or more ? Or a sleeve ?
 
Ohhhhh very cool
 
I only have one so far
 
but I wanna get a lot
 
3:29 PM
i have seen some people with sleeves on both arms. Not interesting
 
It's possible but not usually very useful to make the entire app isomorphic, so it can run entirely on the server, entirely on the client (simulated), etc
 
I'm very impressed by this picture
 
@Mohit Well hello there.
 
@rlemon # of tries ?
:p
 
@ssube I can see more server isomophism being better, since templating engines make rendering cake
Client side seems... not smart?
 
3:31 PM
you can't split server/client isomorphism
isomorphic means the code can run on both sides
 
We tried to use react for that, but it just felt really bloated
 
How can the server code run on the client side though?
that doesn't make sense
also, cc @rlemon imgur.com/gallery/x7WmxmC
 
you would use the routing/templating code
 
@SterlingArcher The normal way? It just uses an in-memory DB instead of a DB connection (or still goes through the server for the DB, but that's it)
 
Like... localStoage?
 
3:33 PM
isomorphism is much more focused around views and rendering, though
 
Sounds like way too much overhead
 
so instead of the app going back to the server for a new page, it would just render it client-side and make api calls to the server if needed instead.
 
in theory, it's less overhead and allows you to support old/slow clients better
you can detect IE and render server-side, f.ex
 
isomorphic code: console.log('such isomorphic', 'very compatible')
 
@SomeGuy did you already link me this stuff at some point?
 
3:38 PM
 
@rlemon it's sad that I need to say this, but we'll see about that
 
Line A is 20 units long and Line B is 13 units long. Line B overlaps Line A on the tail end by 10%. How many units are overlapped?
 
I think the site indicates he is a loser, not that he'll be the loser
@Waxi 10% of what
ask better questions
 
That's all the information I have. Line B and Line A always have a 10% overlap.
 
10% of which line?
 
3:42 PM
Line B starts 10% before the end of Line A.
Oh, I answered my own question then ? lol
 
So take 10% of each line and there's your answer
3.3 units
 
Mother fucker...there I go again complicating everything. Thank you!!
 
question:
if i removeclass() and addclass() and then use new class to run a function at click
is it possible that the new class is unrecognized?
 
Anything is possible?
 
I'm trying to decipher the real problem: you have $('.foo').on('click', shit); and THEN you add the class .foo to the element?
 
3:46 PM
TIL hold right click and scroll in ST3
 
you mean middle click?
 
nope
 
@lost depends on how you attached the event handler
 
1 message moved to Trash can
@lost Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
sorry
 
3:49 PM
$('.bar-new').click(function { // I am run when the code is parsed... NOT when you add the class
//do shit
});
the short answer is use delegation with .on
 
thought so that what i've done was crap
 
I keep getting expected function but got [object Undefined] from Bluebird
 
thanks <3
 
@corvid then you should probably pass it a function
 
@corvid bluebird is finding your bugs :D
yay bluebird
 
3:52 PM
import Promise from 'bluebird';
class Blah extends EventEmitter {
  // ...
  run() {
    return new Promise((resolve, reject) => {
      this.once('complete', hasError => {
        if (!hasError) resolve();
      }).once('error', reject)
      this.start();
    }).timeout(60 * 1000);
  }
}
 
i pressed strg k :(
 
1 message moved to Trash can
@lost Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
i did press ctrl+k f...
 
it works completely as expected with normal promise library
 
user3119231
@lost German: Erst text schreiben, dann einfach strg gedrückt halten und dann k. dann sollte alles eingerückt werden.
 
3:53 PM
Ich kann deutsch nicht sprechen weil bin ich ein Katze :(
 
i did that, everything what happened was one tab
so the whole code was tabed in
 
user3119231
so:
$('.bar-new').on('click', function {
// do stuff
});
 
user3119231
works fine.
 
user3119231
@corvid you can't german because you are a cat? :D
 
$(container).on('click', '.bar-new', e => {})
is technically what I meant with delegation
 
3:55 PM
@Maurice did I say it wrong? Ich kann deutsch sprechen aber nicht so gut, Ich habe eins jahre in realschule studiert
 
user3119231
@corvid no, it's okay. It was weird because "cat". A native German would understand this, anyway.
 
user3119231
btw your picture is fantastic, made me laugh
 

« first day (1970 days earlier)      last day (2994 days later) »