« first day (1728 days earlier)      last day (3235 days later) » 

10:00 AM
@Zirak no, I think it's quite a nice solution which is why I linked to it in the first place, the real "mindfuck" is that generators are bi-directional at once, they can send data to the queue as well
For example, yield can send the queue information about what data it's interested in, a timeout, or anything else really - it's very powerful.
 
It's weird that I've used python for so long without knowing about this huge core mechanism
 
@Zirak few people do :)
 
@GNi33 the functions I define inside an event callback are not used outside and are private for use inside the callback function. Linting doesn't frown.
 
user3119231
Hello!
 
@Maurize we don't say Hello! here
 
user3119231
10:04 AM
No, you say Cheers :D
 
I don't have a drink
 
user3119231
Then go get one
 
latter part is optional
 
!!wesworkingcode
 
user3119231
10:09 AM
 
@GNi33 is this good way to write JS? jsbin.com/nareme/11/edit?js,output
 
@abhisekp but you still define it everytime the callback is fired
 
@GNi33 i guess that's the reason I asked. What should I do?
 
define it outside, call it in the handler-function
 
@abhisekp you are doing this for learning purposes only right? because es5 has those FP methods natively and I guess you already know that ;)
 
10:18 AM
@AwalGarg yep!
 
@AwalGarg have you seen the google barrel roll ?
 
@abhisekp ok. good job :)
 
have you seen the google tilt?
 
@argentum47 nope, linky?
 
or just search do a barrel roll in the search box
 
10:19 AM
you can search "tilt" too
 
@argentum47 lol ok. youtube does the harlem shake as well :D
 
@Neoares google titled :D .. does it spiral too ?
 
is my google going to be titled forever like this.. or is that the straight is feeling tilted .. oh no
 
10:26 AM
google.co.in/?gws_rd=ssl#q=recursion what sorcery ... the did you mean is same as search term
did you play snake in youtube? best pass time while video loads
 
user3119231
lol am i stupid?
 
user3119231
function createImage(src, x, y, w, h, parent){
	e = document.createElement("img");
	e.style.background = "url("+src+")";
	e.style.height = h+"px";
	e.style.width = w+"px";
	e.style.left = x;
	e.style.top = y;
	e.appendTo(parent);
	return e;
}
 
@Maurize You are, regardless of that code.
@Maurize var e
 
Eh, what experimental stage of Babel would let me do return [for (key of Object.keys(this)) this[key]];
 
10:31 AM
@MadaraUchiha @Mosho @Zirak if you guys want a beer today I'm up for it if I know about it in the next 2 hours :)
 
It's dangerous to go alone. Take this with you: 'use strict';
 
@BenFortune that won't make it, at least by how it looks
 
user3119231
@MadaraUchiha even with var no image is created
 
@BenjaminGruenbaum Works in the browser repl with experimental ticked
 
@BenjaminGruenbaum Given I'm about 200km away from you right now, I'm not likely to make it.
 
10:32 AM
stop edit pinging me :(
 
@BenjaminGruenbaum Currently I have no means of transportation, this edit ping looks like fun though
 
Meh, I have a car but I'm not gonna drive 200km :D
 
@BenjaminGruenbaum God damn ' is close to the ENTER key
 
I may be in Tel Aviv in September, not entirely sure yet
 
@BenjaminGruenbaum goo.gl/F9klu5
 
10:34 AM
would anyone be interested in grabbing a beer with two Austrians?
 
@Maurize parent.appendChild(e);
 
@BenFortune yeah it's a proposal
@GNi33 100% yeah, you can count on me I'd love to have a beer with you
 
awesome. I'll let you know if we take the trip, we still have to decide
 
  "scripts": {
    "build": "babel --stage 1 --out-dir lib es6",
    "build-watch": "babel --stage 1 --watch --out-dir lib es6"
  },
:(
 
Awesome, Tel Aviv is pretty cool :D
I don't mind showing you around too if you'd like
 
Current plan is meeting up in Moscow with my gf when she returns from her Mongol Rally, then head to Tel Aviv and Jerusalem for some time
 
user3119231
@MadaraUchiha your fiddle isn't showing any picture
 
@BenjaminGruenbaum is it true that you guys like goats?
 
@GNi33 Neat! Looking forward to it ;)
@Maurize It does for me.
 
I'd like to select an input element on click of a button and .focus() or .click() don't seem to work
 
10:36 AM
@AwalGarg doesn't everyone?
 
I'll ping you guys as soon as I know something definite
 
user3119231
 
user3119231
@MadaraUchiha
 
@GNi33 sure, I'm from Jerusalem originally so I might be able to show you around there if you give me enough notice. September is holidays here so really good time to come too.
 
@StevensHaen Any particular reason you're not using a <label> element?
 
10:36 AM
@BenjaminGruenbaum that would be brilliant!
 
is it better to use addEventListener('click', cb) or jQuery alternative?
 
@BenjaminGruenbaum I mean cats are more popular on the internet I think :/ In India we are forced to like cows. By nature we like to ride horses and don't like pets.
 
@abhisekp If you're already heavily leaning onto jQuery, use jQuery.
 
@MadaraUchiha It's an anchor on top of the page, and then the form is at the bottom. It has to be activated by the time the button takes them to the element.
 
@MadaraUchiha I intend not to use jQuery at all when I build apps. Easily possible?
 
10:38 AM
@StevensHaen myInput.focus() would work then.
What have you tried?
@abhisekp Very much, yes.
 
@GNi33 sure, just let me know in advance, I have training in Eilat for a volunteering thing I'm doing in September (that's 5 hours away from Central Israel) and I'm at Amdocs 3 days teaching advanced JS, so we'll need to be careful with the schedule
 
@MadaraUchiha Is it ok if i don't learn jQuery at all?
 
@abhisekp It's worth learning at some point, but not before you're sufficiently familiar with JavaScript.
 
@abhisekp great going. Not many people have such noble thoughts. Hangout here more :)
 
Not to mention we already have a @Abhishrek here, so double the fun! :D
 
10:40 AM
lolz :D
 
@AwalGarg Everyone likes pets except cockroaches, lizards, rats and mouse.
 
@argentum47 only little kids do, and that too only puppies.
 
@AwalGarg I like cows too.
After a certain time and temperature.
 
that.. is weird. I am not sure what you mean.
what does time and temperature have to do with you liking cows?
 
Because when they grow up and become stray dogs and drink drain water(oh boy, today d.w. is everywhere) ... no one likes to touch it.. thats healthy
@AwalGarg meat
 
10:43 AM
...
 
which you will never eat ever
 
Cows are like pets. Why eat them?
 
I meant as pets... @MadaraUchiha
yuno get it
 
@BenjaminGruenbaum will do, I'll talk to the gf today right after work
 
Sure, let me know
 
10:44 AM
wanted to visit Israel for some time now, might as well do that this year :)
 
Awesome, you can also message me on FB (Or Dor (@MadaraUchiha ))
@Zirak isn't 13, so he can't join Facebook yet :(
2
 
@Zirak are you still in the army?
 
user3119231
lol even this does not work on my system??
 
user3119231
function initialize(parent){
	var background = document.createElement("div");
	background.style.background = "#333";
	background.style.height = "100%";
	background.style.width = "100%";
	parent.appendChild(background);
}
 
10:45 AM
he can, just not legally
 
@abhisekp I can say the same for dogs...
 
I... wait.
 
@GNi33 The battle for your heart rages on
 
is dog edible?
 
@Zirak that's what I wanted to year... 2.9
 
10:46 AM
I knew @Zirak had something to do with army
 
@argentum47 in some cultures.. yes
 
@argentum47 In China, Thailand, Korea, sure.
 
@MadaraUchiha I tried .focus && .click
 
year -> hear...
 
@StevensHaen Can you set up a jsfiddle demonstrating the issue?
 
10:47 AM
@Zirak do you carry large rifles? you do right?
 
gross.. but well every living thing is edible..
 
@GNi33 messages can be edited.
@argentum47 even humans are edible.
 
@AwalGarg Dildos
 
I know, i know. I just didn't want to double-ping Zirak, he threatened to cut my balls off when I did that once back in the day, I don't want to risk that. I kinda like my balls
 
@Zirak lol
 
10:48 AM
@GNi33 chat app needs to be fixed
 
so now I see the reason for paranoia :D
 
@abhisekp it does make sense sometimes. It's just annoying when you double-ping just to fix a typo
 
@argentum47 I'll give you one adult human and you give me two children.
 
so @Zirak is our hunter youtube.com/watch?v=0PzTGGRue1E
 
@Zirak so you write code for army? don't they require all code to be 100% bug free. so that's why they took you... ahh now it all makes sense. I am a detective
 
10:50 AM
@argentum47 what the hell is that?
 
@abhisekp no man I dun give children.. i ain't a female cock
 
:D
 
@GNi33 a song from a movie .. I wish there were subtitles.. :P
 
in other words: we should not ping Zirak too much since he does important security related stuff
 
the english chorus is enough already
 
10:52 AM
haha :D
 
So I realized I have WhoisGuard domain protection lifetime. I had registered a domain in an old company which provided the whois protection, and since then I transfered the domain to another company. What happens is that the old company forgot to remove the whois protection (and this was for 3 years now)
 
@GNi33 See why I don't like talking about my personal life in public chats?
 
@afonsomatos soon whois protection for companies are going to end.
 
@Zirak absolutely, really sorry for that.
 
are you two trolling me :(
 
10:56 AM
@abhisekp this is good right? :p
 
@afonsomatos soon the dev will get too many spams.
 
Simultaneous chatting in JS channel and learning JS. Is it a good or bad habbit?
 
@Zirak what do you do at the Icelandic army? Fight volcanos?
 
there is a really dumb Irina at live chat support in namecheap.com
I ask her WHY??? and she answers me "Yes"
 
11:05 AM
@Zirak kick liberally :D
 
@afonsomatos as Why again. XD
Why as in why do this
 
she got angry and gave me a Terms and Conditions link
 
lol ..
 
@afonsomatos ask to speak to her supervisor, simple as that.
 
Guys, I'm learning hexidecimals... 10hex would be 16, so logically, 1hex would be 1.6, right?
 
11:14 AM
@afonsomatos as of my experience with namecheap live chat, the agents were very informative and nice.
 
user3119231
lol whats wrong here?
 
user3119231
	document.onmousemove = function(e){
		var angle = Math.atan2(e.pageX - (player.offsetLeft + player.width / 2), -(e.pageY - (player.offsetTop + player.height / 2)) * (180 / Math.PI));
		player.style.transform = "rotate("+angle+"deg)";
		alert(angle);
	}
 
yes, but that girl was annoying
 
anyone know where to begin with rxjs
 
user3119231
always saying NaN
 
11:14 AM
@argentum47 the link which kittens posted here a while ago
 
ok looking into transcript.. it bettter not be xgrommx.github.io/rx-book/content/getting_started_with_rxjs/…
 
@afonsomatos never chatted with any girl agent in Namecheap.
 
@argentum47 honestly? I'd read the Rx book it's much better than anything on RxJS
 
@abhisekp interesting, I have ONLY chatted with girls
 
11:16 AM
This is the Rx book btw: introtorx.com not that JS one
 
oh I thought it was that github.io .. ok thanks for the link.. plus I see examples in the book.. that's relief
 
I read that hiding and then manipulating the DOM element is a good practice for performance for no reflows. Should I use the visibility: hidden or display: none ?
 
If you have already that element in the page do display: none
because visibility will only hide the element, but the block will still be there
 
@afonsomatos and hence it will reflow while manipulating. right?
 
also, if you want to manipulate the DOM element before it's in the page, do the stuff before you append it to the page
 
user3119231
11:25 AM
works perfect! jsfiddle.net/axrfyr6a
 
> Too much Questions and answers . Lets share your experiences about the funniest thing you have ever had in one line.
I guess Q&A is completely missing the point of SO
 
user3119231
better version: jsfiddle.net/axrfyr6a/2 maybe someone can look at this..
 
now I see, a lot of lot of work is/has been done in java and mostly surrounding jvm than in other languages like ruby (not talking into account the sudden bloom in js frameworks)
 
@rlemon lmao those were funny, classic kids
 
@Maurize no one is going to look at it. :P
 
user3119231
11:28 AM
Rofl
 
Just to prove @abhisekp wrong, I opened the link.
 
user3119231
Only tell me where the problem is :D
 
What's going wrong?
 
user3119231
the cube isnt rotating
 
Use a voice recognition and say the word: "rotate cube"
 
11:31 AM
@Maurize wouldn't canvas be better?
 
user3119231
nevermind, got it _D
 
user3119231
works fine! :)
 
see i told you it will work
 
user3119231
calculation is heavy in this one
 
11:36 AM
@Maurize Advice: add the background to game at the end after all kinds of DOM manips.
 
did someone say rotating cube?
 
@rlemon @KendallFrey imgur.com/gallery/AMMwM
 
OH MY GOD I FORGOT
 
hehehe
 
11:37 AM
Hehe
> Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.
 
omg you're gonna love me Kendall
 
@Maurize and extract css styling to the css part and moreover the cube is shivering not rotating
 
I really don't like ruby, I mean metaprogramming is ok.. but still rails is boreable .. should I look into java and its frameworks for job purposes
 
last night, for the first time in my life, I ate poutine.
 
@KendallFrey what an accident!
 
11:38 AM
since I am only 1 year experience in rails (not ruby) .. and I can self learn .
 
Jan 21 at 13:32, by Cerbrus
@KendallFrey: Accidentally? That's some Chuck Norris level accident, man!
lol ik
 
Scientist invent God by accident
 
I did release a library out of it.
 
link?
 
@SterlingArcher WTH is poutine?
 
11:39 AM
@SterlingArcher dude
 
seems a private library
 
@Neoares it's fries with gravy and cheese curds
@KendallFrey dude!!!
 
@Maurize and you could have easily extracted all the styles to an external stylesheet
 
user3119231
@abhisekp why
 
@SterlingArcher Do you feel like a god now?
 
11:41 AM
@Maurize for better maintainability
 
@SterlingArcher :o I want that
 
@KendallFrey i've been missing out my entire life
 
nomnomnomnomnom
 
I think I cried a bit when I ate it
 
user3119231
lol is it normal that I cant trigger onkeydown for 2 buttons same time?
 
11:42 AM
why
 
user3119231
	document.onkeydown = function(e){
	if (e.keyCode == 87){
		player.style.top = player.offsetTop - 5;
		}
	if (e.keyCode == 83){
		player.style.top = player.offsetTop + 5;
		}
	if (e.keyCode == 65){
		player.style.left = player.offsetLeft - 5;
		}
	if (e.keyCode == 68){
		player.style.left = player.offsetLeft + 5;
		}
	}
 
> I maple my pants down when I see you.
 
must be a keyboard issue
 
@Maurize why do you want to do that?
 
user3119231
@Neoares Let me show you something :)
 
11:42 AM
@KendallFrey I asked a link to your library
gimme nowwwwww
 
yeah! The order is ready
 
@afonsomatos i was looking
 
@KendallFrey you're good
 
@Maurize you should use else if, because "e" event only has one "keyCode"
 
user3119231
 
if you press 2 keys, it's firing the event 2 times
 
must be a CPU issue
 
@SterlingArcher haha
 
user3119231
@Neoares it just dont move diagonally
 
You don't want to move the thing in the key event
you want to move it in a timed loop
 
11:45 AM
just do polling and check for keys pressed
 
based on which keys are down
 
like 60 per second
 
throttle :P
 
user3119231
show me a quick example
 
any basic JS code that uses keyboard movement
 
11:46 AM
@Maurize you always code when I'm at work
I can't help you now xD
 
@KendallFrey next task: canvas gta
 
user3119231
@Neoares creating on github
 
setInterval(function(){//check for keys},1000/60)
 
@Neoares don't use setInterval, use requestAnimationFrame
 
11:47 AM
maybe handle keyDown and keyUp, maintain your own list of "currently pressed keys".
 
@Luggage that sounds good, coz one can filter for text and distinct text
 
user3119231
 
user3119231
Wanna probe that it is possible to create a game in js
 
and in your game loop, you have a 'pressedKeys' variable that you maintain to reference.
 
yeah that
 
11:49 AM
It's quite possible. You'll run into performance problems. Some that can be fixed by knowing JS, some that maybe can not.
but games in JS are quite possible.
 
user3119231
If you got something to improve, do it on github. The game will be free to play. Just a minigame where you can shoot on stuff :D
 
I want git to ignore everything but index.html and all files under dist/. putting the following in .gitignore should work right? But it doesn't :( It ignore dist/ as well :/
*
!index.html
!dist/
 
shouldn't !index.html ignore everything already but index?
 
@AwalGarg Try putting a seperate .gitignore in /dist
 
no idea but that could be
 
11:53 AM
it doesn't make sense adding a star there
 
according to stackoverflow.com/questions/987142/… you might also need to add !.gitignore
 
because you are saying "Ignore everything", "Now ignore everything that is not index.html"
 
@KendallFrey what should I put in that separate gitignore?
 
no, it's "ignore everything", ... but not index.html
 
11:53 AM
I've never used nested .gitignores
nothing maybe
 
But I think ignoring everythign is a bad idea
 
idk if it wil override
 
@Luggage added, nothing changed
 
try removing the star
just saying
 
@Luggage it is for a gh-pages branch
@afonsomatos it unignores everything
 
11:55 AM
add those to the untrack list
 
then I will have to do that everytime I add a new file
 
@AwalGarg compile your gh-pages to a folder, e.g. /static.Ignore just that directory.
 
and the star down
@AwalGarg inverse the thing, put the ! in the top
it has 21 votes, so .. idk
 
Then, inside /static clone the repo and make a gh-pages branch that's not related to the main branch
that branch can keep a separate history of just the generated static content.
 
@afonsomatos didn't work, but what the commentor said did happen:
Wrong. You negate after the "ignore everything". — EdMelo Dec 7 '12 at 13:10
 
11:57 AM
so why people upvote the question??
it doesn't make sense
 

« first day (1728 days earlier)      last day (3235 days later) »