« first day (1377 days earlier)      last day (3576 days later) » 

2:00 PM
how do you know if the function is applied then, i.e. the code is executed?
 
You don't. The compiler does that for you only when you need the results.
 
You can take the inline code of the function and cut - paste it inside the invocation
You can reduce every program to a single function call, inlined.
 
I don't see how that's related
 
apparently my game is much smoother in fps now... could you tell me if it is any different than before?
 
@FlorianMargaine if you have a function taking a function parameter, you simply write its name when supplying an argument
 
2:02 PM
for those reading towc comments : I've pinned the link to the game, see at right
 
Thanks, iwas already looking for it :)
 
@BartekBanachewicz yes. There is a difference in both of them, right? pastie.margaine.com/1f882dde-ffe4-41d3-ac75-0e4f2edd6915
 
@FlorianMargaine you're still thinking about "functions taking 0 arguments"
a function taking 0 arguments is a constant
because if the input doesn't ever change, neither can the output
 
ASR
@rlemon got st-rucked jsfiddle.net/X5NgG/3
 
so, let a = 5;, and everywhere you use a, you can simply write 5
 
@ASR jsfiddle.net/X5NgG your js can be simplified. $(this).attr/prop is almost always wrong
this.id works
 
@FlorianMargaine a function applied to one argument is also always a value
 
there is no need to introduce jQuery where it isn't helping you
 
let f x = x + 1; f 5 = 6, always
 
@BartekBanachewicz do you have a resource to explain this kind of thing?
 
2:07 PM
Well let me try again first.
 
(sorry, brb.)
 
@FlorianMargaine LYAH is great.
 
LYAH is big vOv
 
user1596138
morning
 
goodnight
 
2:09 PM
posted on July 24, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {}

 
so I found this: jsfiddle.net/WurNc but I want it to rotate more every time I click the button.
(I'm rotating boxes today)
(I just figure boxes are easy to work with for learning the basic stuff behind animation things)
 
div.style.webkitTransform = 'rotate('+deg+'deg)';
div.style.mozTransform    = 'rotate('+deg+'deg)';
div.style.msTransform     = 'rotate('+deg+'deg)';
div.style.oTransform      = 'rotate('+deg+'deg)';
div.style.transform       = 'rotate('+deg+'deg)';
think about how you could simplify this a little more
tip: you only need a single call
 
@FlorianMargaine this example has side-effects and that's the main reason you're having problems with it imho
 
deg += 60;
 
!!youtube Weird Al Yankovic Word Crimes
 
2:14 PM
 
ASR
@rlemon thanks, but now problem is i have to apply the css for all the links should be same, but when i try to change the id to class content is not displaying
 
@rlemon I grabbed that via a SO link to it so I'll read up on those things on MDN and get back to you
 
Why is that a cv-pls?
 
He basically wants to have the documentation of those functions copied for him. It's too broad.
 
2:19 PM
I DVd and CVd
 
He's not asking for documendation; he wants to know pro's/con's, comparatively.
 
They do different things
Comparing apples to oranges, so to speak
 
user1596138
@rlemon lol so pretty
 
@Shog9 I wasn't done reprimanding them for the flags!
you could have waited 30 more seconds :P
 
so I only need div.style.transform = 'rotate('+deg+'deg);
 
2:23 PM
@mrzepka no, you need to determine the prefix and apply it
don't apply them all when the browser only cares about one
 
!!youtube Weird Al Yankovic handy
 
@NickDugger ^ best one
@rlemon so each one applies to a different browser?
 
ASR
@rlemon jsfiddle.net/X5NgG/4 this is my updated code
 
@mrzepka different view engine
but essentially that yes
 
ASR
2:24 PM
i have changed it to dynamic
not working
 
@ASR until you clean up your JS i'm not looking at it any deeper
sorry
 
ASR
ok
 
every time I see $(this).attr('id') a small part of me dies
 
tomorrow is Friday :0
 
@RalphWiggum gonna have your bowl?
 
2:25 PM
my bowl of bowels
 
@mrzepka also jsfiddle.net/rlemon/WurNc/364 there are much easier ways to write the rotation
not sure why you keep a boolean when anything but 0deg would be 'rotated'
 
ASR
@rlemon i have changed id to class jsfiddle.net/yGFau
 
@rlemon I was modifying code from SO and was in the middle of changing things/not cleaning it up because I was going to borrow it in what I"m making
 
$(this).attr("id")
nope
 
The original had a boolean that would swap back and forth between rotated and not rotated so it would just flip between 2 different degrees
 
2:27 PM
I was about to ask a question but then I answered it in the question, so I deleted it... lol
 
@mrzepka you still wouldn't need to have a boolean. you know both numbers
 
@NickDugger Half the questions I write are deleted before being posted (sometimes thanks to the suggestions, people should read them more).
 
@rlemon idk man I didn't write the original. I was trying to google before coming here
 
Wrapping it up in something reusable isn't quite that easy, but it's still pretty darned tidy: jsfiddle.net/bEFjB/2 Nice! — T.J. Crowder 3 mins ago
:(
 
Haha, you're still on that?
 
2:32 PM
@mrzepka lol I know you didn't
I'm just saying
 
@rlemon I agree it's not the best way to do something but he was just showing an example for an answer on SO so I guess he wanted to be thorough
 
(now you can't just rest on the floor!)
 
@mrzepka stuff like that doesn't make it thorough, it just wastes my time when reading it because I have to sit there and think if they intended it to do something else. needless stuff like that only makes you second guess later. (just a tip ;P)
 
@rlemon It threw me off as well lol. Same with all those different div.style.xxxxx = things
 
@towc why do you zoom the canvas?
 
2:36 PM
man I hate questions you answer
and the asker tries to hold the accept hostage
 
can you make that a toggle option
 
> Can you make it do this too?
fuck you, no I wont
 
@Loktar tell them to ask it in another question
double dat rep son!
 
yeah I generally do, last time I actually deleted my answer
 
lol
 
2:36 PM
and the guy was like "plis undelete!"
 
please undulate
 
This is what I ended up with codepen.io/mrzepka/pen/rnkEj
if anyone wants to be hypnotized
 
found it
gave you an upvote
 
@mrzepka All of a sudden im very dizzy
 
@BenCraig Yeah I'm realizing that as I'm editing the info
maybe I should slow it down
 
2:40 PM
@mrzepka If you're using CSS3, why not also use a transition?
Erm, keyframes animation, i mean
 
@NickDugger because I'm still learning
 
similar, though
Oh, alright
 
That's on my to-learn list
 
user1596138
 
user1596138
Idk why this is cracking me up so good
 
2:41 PM
I'm trying to make one or two little things each day to experiment with different things
 
@mrzepka you should calculate the perfect number of squares for the page
 
user1596138
I would cry if someone used that picture of me in the newspaper like they did XD
 
@rlemon That's the next iteration
 
@mrzepka This is a good reference for CSS keyframe animations: css-tricks.com/snippets/css/keyframe-animation-syntax
 
well, after I get them to rotate differently (ie not all the same degrees at the same time)
 
2:43 PM
@mrzepka make them speed up and slow down
 
@rlemon I could do that, my next step was goign to be them rotating at different speeds
it's slowly but surely coming together
 
yea you made me make this
you bastard!
 
@rlemon dem colors
it looks faded lol
 
it is your favorite colour equation
return Math.floor(Math.random() * 127) + 128;
 
lol
dude Math is so slow omg
why are you using it?!
use bitwise!
 
2:47 PM
Hi all, Good evening.
 
/me jokes from discussions a few days ago
 
what is great about that is that the difference is so moot and changes depending on the browser
 
Anybody have knowledge on Angular Js ?
 
@Loktar but you missed the .bind(null,i)
 
haha
 
2:48 PM
I am disappoint
:P
 
I was wondering why you could only get a few hundred thousand operations a second
 
@rlemon : Why ?
 
I was like hmm my brain detects slowness
lol
fucking bind, they need to fix it
 
Screw Michael J Fox, cause he shakes when he walks
 
because its handy as hell
 
2:49 PM
@NickDugger wait what?
for real?
 
It's from a Key of Awesome parody, lol
 
yea out of context it just makes you look like a HUGE asshole.
 
Yeah, I wanted to see someone's reaction, lol
 
you might want to clarify that stuff
 
@rlemon have you used requirejs to write js modules?
 
2:52 PM
no
 
ok
 
If I were to set an inputfield to height:0, width:0, border:none is that really any different than visibility:none?
visibility:hidden*
 
visibility: hidden; keeps it inline.
so it still takes up space on the screen
 
ah I see
 
so no it isn't the same
 
2:54 PM
so is it essentially the same as display:none?
 
are you trying to hide an element?
 
You can also animate opacity if you use visibility, but not if you use display:none
Wait... if you're hiding an input field, just add a "hidden" attribute to it
 
Well if I do visibilty:hidden or display:none the onchange event doesnt trigger. But height/width: 0 it does.
 
You can manually call change on the element when you set the css change
 
@Jhawins inviting u on gmail
gimme an ivite
 
user1596138
2:55 PM
I haz ping
 
:'(
I don't know what he wants but I give up, he can have his edit.
At least he was very polite
lol stackoverflow.com/a/24931302/1348195 , I can't be mad at that.
 
Hello can please anybody help me here ?
 
I don't know, can we?
huehuehue
 
@vikky maybe
 
2:58 PM
I'm calling him out on meta
 
damn
he really loves that rep
I need to have the earliest timestamp. I'll write nothing than delete, then edit, then undelete.
 
@RalphWiggum : Thanks Ralph, I am new new to Angular Js but I have good experience with Jquery and Javascript. now I want implement one web application using Angular JS and I went through docs.angularjs.org
 
gooooood morning stack overflow
 
@BenjaminGruenbaum link me to that meta post when you do
that is just insane
 
3:03 PM
I tried: git fetch upstream
from github
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
 
@RalphWiggum : Now I am ready with prerequisites for developing Angular App.
Like Webstrome, Angular Js file, Node.js
 
oh, okay
 
@FutuToad Please make sure you have the correct access rights
 
its a public repo
 
does github have your public rsa key?
 
3:05 PM
You need to generate a key, and add it to your account
 
0
Q: Initial edits and fastest gun in the west

Benjamin GruenbaumI've noticed a form of abuse recently. Take a look at this revision history I've noticed this user as well as several others often do the following: Leave an empty answer that does not contribute to the question. Delete it, so it can't be down voted. Write the answer down. Undelete it. This...

 
@RalphWiggum : But I have lot of confusion regarding Node.js for running Angular app, I have good experience with web servers like Tomcat and I have good experience with Application server like Weblogic.
 
you know I wonder how SO would look if every accept was $1
 
I'd buy a lollipop
 
@BartekBanachewicz it would be full of cheap bad coders
BTW there's a site inspired by SO where you're paid for accepts
 
3:07 PM
@BenjaminGruenbaum you white out his name in the picture but link the revision history? :P
 
@RalphWiggum : And I heard about npm package - I am not sure what it is. Can you please help me if you have wrap up on these ?
 
@vikky npm is like a package manager and repository for node.js
 
@rlemon it's the most I can do :/
 
@BartekBanachewicz Arun does that ?
 
@BartekBanachewicz horrible.
 
3:09 PM
Why would you clear out his nickname if you link to his revision history? — Bartek Banachewicz 2 mins ago
 
@BartekBanachewicz I can't clear the name from his revision history, I would if I could. This is "minimizing the witch hunt" as I'd really like to focus on fixing the problem rather than focusing on a specific instance. Any suggestions welcome. — Benjamin Gruenbaum 1 min ago
 
@RalphWiggum : You mean without npm package we can not start the node server right ?
 
The real question here is: is this a pattern from that user, or did he get distracted by a phone call or something like that this particular time? This is quite surprising from a 100k+ user. — Bruno 25 secs ago
after a quick peek, it is a pattern just not as bad as this one example
 
@RalphWiggum : we can not run the node server right ?
 
uh, you can run node without npm
 
3:13 PM
@RalphWiggum : Then why npm ? Please.
 
because package managers make your life easier
 
It's for downloading node libraries and packages
 
@RalphWiggum : ohhhhhh. Thanks. It makes much more sense for me.
 
Theyre going at different speeds, but I"m trying to track the speed at which they're increasing decreasing to fine-tune the actual speeds
#boxes
 
@RalphWiggum : Can you please guide me how to configure the node server in Webstrome IDE.
 
3:19 PM
I have no idea
 
@mrzepka show me your code
 
try punching your computer
 
(not in codepen please, codepen has horrible cache issues. you are better to 'tweak' in jsfiddle or local and upload to codepen when you are done)
 
Hi, I've asked about the . . thing on meta, I'm sorry if you get downvotes for it it was not my intention and generally I appreciate your contribution to the site. Here is a link: meta.stackoverflow.com/questions/266689/… . It would be great if you could participate in the discussion there. — Benjamin Gruenbaum 7 mins ago
 
good call
 
3:22 PM
@RalphWiggum : Thanks Ralph, Can I know the difference between Node server and Tomcat server please.
 
I agree this shouldn't turn into a witch hunt. and his two cents would be very nice to hear on this
 
!!s/./game/
 
@jAndy Could not process input. Error: invalid quantifier on line 208
 
aaarrgg
 
@jAndy game agree this shouldn't turn into a witch hunt. and his two cents would be very nice to hear on this (source)
 
3:24 PM
@rlemon I'm kinda happy with what I figured out codepen.io/mrzepka/pen/rnkEj
 
Anyone here heard of saving a javascript command to HTML localstorage?
 
w0000t lol
 
@Incognito it's just localStorage[key] = value
or something like that
 
I just realized, it's possible that he answered it, figured his answer didn't work, edited it, after 3-4 minutes when he couldn't figure it out deleted it, came back to it later, and wrote it.
 
it's pretty primitive
 
3:25 PM
If you edit it right away, the revision doesn;t show up in revision history?
 
@BenjaminGruenbaum Why would the initial revision be empty ?
 
@NickDugger can I use the same one I use for openshift:
ssh-rsa AAAA
..
k47DGJ OpenShift-Key
 
I don't know, I don;t use openshift
 
@BartekBanachewicz I can store functions there too? groovy.
 
Only strings
 
3:26 PM
So you'd have to eval it, which would be yucky
 
@Incognito There are some restrictions
 
booo.
 
@Incognito convert your function to a blob
 
@vikky node uses javascript, tomcat uses java :|
 
run as a webworker
store it in localStorage
 
3:28 PM
0
A: Initial Edits and Fastest Gun in the West

Benjamin GruenbaumI've just thought up a pattern where this form of revision history is not abusive: You answer the question thinking you've provided a useful solution. The OP edits the question in the first 5 minutes to change it, or in second thought you realize the solution doesn't work. You edit the answer t...

 
The interesting thing with js functions is their closure. This makes them hard to stringify
 
IndexedDB > localStorage
 
I need to write something meaningless.. I believe its getting obvious to co-workers if I just click my mouse for like an hour
 
@BenjaminGruenbaum I discuss this in the comments under the main Q - It is plausible but I don't think it is likely considering in other questions he is very liberal with deletes for that exact purpose (to edit the question)
 
Hello () whats {} going on guys {} ? THE GAME
 
3:30 PM
i lost
 
I am that I am
 
For what it's worth, his answer is objectively pretty bad anyway :P
 
:P
 
@RalphWiggum : node uses javascript, tomcat uses java for what can you please elaborate more ? You mean handling applications depending on technologies.
 
!!s/java/shit/
 
3:31 PM
@jAndy @RalphWiggum : node uses shitscript, tomcat uses java for what can you please elaborate more ? You handling applications depending on technologies. (source)
 
ahhhhh nooooo
 
lol
 
haha
 
:P
 
3:31 PM
I feel so snazzy. I got 11 comment-upvotes on that meta topic, lol
 
you need the snazzy-napper
go google it
 
gnah just for the heck of it
 
lol, I got pictures of the snazzy napper, and those muslim garbs that go over the women's faces. Apparently people have made comparrisons.
 
3:44 PM
!!soup or sandwich
 
@rlemon sandwich
 
!!turkey or roast beef
 
@RalphWiggum : Thanks.
 
@rlemon Both!
 
that probably wouldn't taste very good
 
3:44 PM
!!bitches or money
 
!!Chipotle or eat out with team
 
!!afk getting sandwich
 
@NickDugger eat out with team
 
Damn... I kinda wanted chipotle
 
then get Chipotle
SHE AIN'T YO MOTHA
 
3:46 PM
yes I am
 
oh...
 
See?
Must obey...
 
does this mean @CapricaSix was impregnated? whoa...
 
!!is Ralph pregnant?
 
@KendallFrey Indeed
 
3:49 PM
:3
 
!!are you the father?
 
@KendallFrey Probably
 
whoa...
 
buttbabby
this day isn't going by fast enough
definitely need more heroin
 
3:50 PM
and less buttbabies
 
moar buttbabies
 
buttbabies are people too
 
crabpeople are people too
 
!!urban buttbaby
was hoping for something a little more graphic
 
I missed it, what'd it say?
oh
wil u gibe me buttbabby
 
3:53 PM
I'll give you two
 
and something I got from a cheap hooker
 
I'm not sure if I want that...
but I'll take it just for you bb
 
It tickles. You'll like it
 
I'll love it
 
user1596138
3:54 PM
> Dick Hyman
 
user1596138
Well alright
 
user1596138
That's actually his name
 
user2862309
@work
 
user2862309
 
user2862309
@Jhawins a little bit like Peter Ian Staker, or in short Pisstaker
 
user1596138
3:56 PM
@Mr.Meshuggah SOmeone asked me if you were zigi yesterday. Now your ISP is "ZIGGO"
 
user1596138
Weird
 
user2862309
It is really famous in the Netherlands.
 
user2862309
It must have bean Foamy, they say that I am obviously him.
 
user2862309
But I really can't care less.
 
I get faster upload at my home-area starbucks than I've ever seen elsewhere. They jsut got google internet, lol
 
3:57 PM
@Mr.Meshuggah That's precisely the kind of thing Zigi would say.
 
user1596138
@NickDugger Haha I go to BK. They have 15up. That's fastest in the county
 
user2862309
I live in NL.
 
there is TISP... anyone knows of it here?
 
user1596138
@Mr.Meshuggah Foamy?
 
user2862309
Yes, a guy from the Android room.
 
user1596138
3:57 PM
Eh I don't think it's him.
 
user1596138
If you are zigi you'll freak out on us soon :)
 
user2862309
I do not know than.
 
user1596138
And then report me to the UN
 
user2862309
Sure, that's what I am planing.
 
user2862309
Haha, yeah!
 
user1596138
3:58 PM
For discriminating against NL residents that are from Bulgaria specifically.
 
user2862309
Lolz.
 
user2862309
I just wanted to show you that my net speed is faster at my work.
 

« first day (1377 days earlier)      last day (3576 days later) »