« first day (1380 days earlier)      last day (3569 days later) » 

5:02 PM
@mrzepka protip: object pool
 
@rlemon was dat?
When would I use setInterval vs setTimeout?
Holy shit idk what I'm doing but this breaks codepen so often
 
@mrzepka Is that a legitimate question?
 
@Neil yeah. My guess is set interval is for things that happen more than once but timeout is for functions you want to run on a delay
 
@BenjaminGruenbaum Getting on to LinkedIn to test their API was how I got suckered in
 
@mrzepka Yep, that's it in a nutshell
 
5:14 PM
@Neil ok. I just hadn't seen setInterval until just now.
 
setInterval was commonly used for polling the server and things requiring constant update before websockets were thought up
I suppose you could use it to draw something repeatedly, but nowadays there is requestAnimationFrame so, not even that
 
ah ok. Thanks for your help!
 
I suppose you could still use it for drawing canvas on old (really old) browsers
 
@Neil oh thanks!
 
@Neil polling is actually a case where set interval is not used
Same for drawing
 
5:26 PM
@FlorianMargaine Then how was regular polling done?
 
SetTimeout
If you set interval, with network delay you can end up with several simultaneous requests, which you don't want
 
user1832583
I'm having some trouble with injecting JS into my browser page, I am trying to change the refresh rate of an email program that I use. The refresh rate is a variable. After asking this: stackoverflow.com/questions/24893470/… question I found out I could change it through a chrome extension, my only concern is, if my code says 'refresh_rate = 60;' will it actually change the refresh rate?
 
Or different order of requests
Same for drawing, you want to make sure that the previous frame is drawn before drawing the next one
 
@rlemon oh yeah I did that but I was updating it wrong.
 
5:28 PM
@mrzepka that is also an example of how to use a particle pool
don't create new objects each time. create them at the beginning and re-use them
 
@SomeKittensUx2666 haha, cool
 
@rlemon definitely going to try some particle stuff soon
 
That's really all I needed from there.
 
I say particle, but it is true for most objects
if you can just re-use them. do so
don't create them over and over again
 
@FlorianMargaine If a message didn't get through, wouldn't you want to make another attempt?
I'd think if anything, you miss 2 responses, and you stop setInterval
 
5:30 PM
@Neil with setInterval, it will run every x, even if other stuff hasn't finished or something
 
best is a recursive setTimeout
 
(function foo() {
  // codes
  setTimeout(foo, delay);
}());
 
Also, if people could contribute to that answer (I will rather soon) that'd be nice.
 
I'm trying to set up a chromium dev environment...
2 hours and still downloading stuff
(I have optical fiber.)
 
5:32 PM
@rlemon I fixed mine up to do the reset thing.. that's a great idea
 
Here comes the hate train... That question actually still attracted lots of upvotes and I got messaged "thanks" because of it in the last month, but I guess I can't please every self-righteous user. As for your "kind request" I'm afraid your rudeness and disrespect will not gain you much other than the sympathy of other rude or disrespectful users, I hope you find comfort in that. — Benjamin Gruenbaum 6 mins ago
 
some of microsoft great stuff came to me today
 
Should've told him that instead of all of this ^
 
Lol, that could actually work just as well.
 
@BenjaminGruenbaum I tested webgl on iOS 8 ipad
seriously.js worked as nice as chrome :-) so was quite impressed (though there are still some stuff broken)
 
5:35 PM
Divinity: Original Sin is a fun game
 
@Octavien Battlefield is great.
 
@rlemon You are the third person I heard say that. Which is enough to pique my interest.
 
 
user1832583
Is it possible to change a JS variable on a webpage through a chrome extension? Would the variables "comply"? It's been a while since I've worked with JS, but I remember something about global variables...
 
@rlemon i have an intresting use of your photo mosiac thingy
 
5:37 PM
@coding_corgi Yes, it is. If it's global it's easy, if it's not it's harder (stealing Function.prototype.apply)
 
take a set of n photos, build n mosiac photos using it
resulting into another super huge mosiac.
 
user1832583
@BenjaminGruenbaum How can I tell if it's global or not?
 
user1596138
Developing offline is not easy...
 
@AbhishekHingnikar that is what I'm working on now
 
It is, but only in Python
 
5:40 PM
well not "right now" but now
 
@copy I think you mistyped C
 
I scraped imgur for images and ~35% of them were porn
so I got discouraged for the weekend
 
@rlemon i'd love to help u
with it :-)
 
Only 35%?
Try again
 
@towc im shamelessly stealing your rainbow color pallette
 
5:41 PM
@SomeGuy will help you count
 
lol
 
@FlorianMargaine You have no libraries and no documentation
 
I'm upping my rates to 20 cents an hour now, okay?
 
@copy man
 
5:41 PM
@Zirak No libraries
 
It's C
 
man libffmpeg ?
 
You've prepared yourself for the pain
 
@AbhishekHingnikar try typing man 3 fopen in your linux terminal
 
Yeah, but we're talking about coding offline
 
5:43 PM
@copy you mean other than the stdlib?
 
Yes
Which has like 15 functions
 
I guess we're not talking about the same language
 
@copy which library is this ?
 
For instance, no types like Bigint, set, hashmap
 
@copy um ?
 
5:48 PM
No network protocols, no regular expressions
 
What, you never implemented Ethernet just for the heck of it?
 
@room ping me with helpful development utilities / extensions for chrome and windows
 
inb4 linux
@SomeGuy Primitives (like strings) get regular completion now.
 
@AbhishekHingnikar I'm using none
At least not chrome
 
ps really js should have a decent ass demo by end of tonight :-> #excited , don't rant about the horrible code ... i will clean it.
 
5:53 PM
828
A: What is the best comment in source code you have ever encountered?

Rohit// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass

 
@copy there are regex :P
 
@BenjaminGruenbaum command line replacement for windows
 
@AbhishekHingnikar ConEmu + git bash
Even if not in use with git bash, ConEmu is amazing
Combine that with the unix utils package, and you're golden.
 
@Abhishek virtual box to have linux
 
@FlorianMargaine i have vagrant
but am too much used to off doing things in command prompt that i even dislike the explorer now
 
5:59 PM
I have a friend who does that. He uses the VM all the time (even for graphical environment), shared folders make it decent
 
@FlorianMargaine I do that too, when I have to do something in Windows
 
@FlorianMargaine i cannot do that my inferior gpu will scream
 
@AbhishekHingnikar git bash
 
Does any one here know if there is any simple way of asking only for stable versions with semver (preferably in maxSatisfying)? (github.com/npm/node-semver) e.g. only x.x.x not x.x.x-tag
 
6:07 PM
@agam360 You'd need a specific version
 
@BenjaminGruenbaum conemu + git bash now :D
 
@SomeKittensUx2666 ?
 
@agam360 that's actually a decent question. I've had to do that once but I forgot.. I do remember I got the help at #node.js though
 
@BenjaminGruenbaum I am glad to hear! Any directions at least?
 
@agam360 to be fair I remember not being able to find out anything useful before asking in #node.js
 
6:12 PM
@BenjaminGruenbaum hehe, I can make my own algorithm "contraption" but it just feels wrong.
 
Hey guys - How can I 'concatenate variable names' in JS?

http://pastebin.com/X7EFuv1A
 
eval
But preferably, you use an array
 
alert (eval(Q + i)); ?
 
really looks really better on windows :P
 
0
Q: Parse CloudCode and nested/looped queries

RealCasuallyI have been trying to wrap my head around Promises in Parse Cloud Code but am struggling. Here is what I am trying to do: Run a query to get a list of items Foreach item, change a value, and save After saving, send a push message Each time I try this, the saves complete, but the async pushe...

 
6:23 PM
@Zirak Awesome
 
@SomeGuy It's getting closer and closer to release
 
@Zirak what is the timeline in your mind for jsh ?
 
Need to work on the readme and stuff, maybe theming options, give it a nice introduction message, and then it's backend time.
 
@Zirak I'm excited
 
I'm sure your nipples explode with delight
 
6:25 PM
Maybe we need code-highlighting too, though?
 
@SomeGuy in a console ?
 
I thought about it, still undecided on the matter. On the one hand, sure, on the other...you don't really write code there, you write snippets
 
Support for indentation too, at least
 
@Zirak not sure about indent. but syntax highlight could be good
 
Why are you not sure about indentation?
 
6:27 PM
@SomeGuy A lot of people won't write more then single line inputs there
 
So he shouldn't even support the people who do?
The tab key does nothing in the Chrome Dev Tools
So it's not like it'd be changing anything, like code-highlighting would
 
add that later maybe ?
or have an ace element ? // full blown developer tool ?
 
It does. When there's only one completion available, tab accepts it.
Start writing addEventListener, hit tab when it's the only one left.
 
@Zirak it might be better if you can just have any open source code editor as input ?
like ace element of polymer
 
But...it's a console
 
6:29 PM
Ah, yes. I forgot about that. So I guess indentation would need to be context sensitive for you
I think the open source editor is a bit too far
 
@Zirak no something like mozilla's implementation
 
You're not meant to write large chunks of code in it. Maaaybe a function declaration.
 
they allow u top open a scratchpad
where u can write multiline js :P
// that was firefox 18 when i last used it so dunno if it still exists
 
Curious, when I want to write multiline js, I switch to my actual editor
 
I usually do too
But when it's just a function that I want to test out on that page, I write it there
 
6:31 PM
me three
 
are there freely available language dictionaries with attached usage frequency
?
 
Tab-at-beginning-of-line for indentation is ok
 
And the manual indentation always gets to me
 
@SomeGuy i kind off have a tool that used to take care of it
from sublime
i mapped windows + shift + c
to throw the whole file to clipboard
and then paste :P
wish i knew chrome enough to just let that run in chrome :'( from subl.
 
...there's an emacs plugin for that :P
 
6:32 PM
@Zirak That's all I ever wanted
(Select and indent would be good, but it isn't necessary for snippets)
 
I'm a tab programmer, because I can't stand having to backspace 4 times to remove spaces
The width is also adjustable
 
@Neil Use a different editor
 
Get a decent editor
 
@Zirak Ha, first. NOOB
 
@copy You win this time, Captain Copy...
 
6:34 PM
How would an editor know that you mean to eliminate all 4 spaces with one backspace as opposed to eliminating just one?
 
I sent him an email with a link to sublime text 3 T_T before u guys pasted, noobs
 
What if I wanted to eliminate one? There's a certain ambiguity there
 
When you're at the beginning of the line (that is, just whitespace before the cursor)
 
@AbhishekHingnikar Thx for the e-mail
 
Most editors also feature Shift+Tab to go back to the previous "tab stop" (multiple of tab-width)
 
@Zirak sounds god-awful
 
@Neil no its very helpful
when moving multiline comments
 
@RyanKinal Nice!
 
@RyanKinal enjoying the song i see :D
 
So what's wrong with using tabs and simply backspacing?
 
6:36 PM
@Neil Honestly, with a decent editor (like emacs), I never think about the indentation.
 
@Neil u can select multiple lines
and change the indentation in single shift + tab
or tab
beat that caveman :P
 
I can select multiple lines using tabs
And the ability to switch to spaces isn't a bonus imho ;)
 
@Neil JUST USE SUBLIME
 
Hi!
 
u can edit a variable name eveyrwhere
@florian hi !
 
6:37 PM
@FlorianMargaine Your twin's on the loose
 
now poor florian will be pinged every time :D
we ping u
 
Is someone here a big fan of google spreadsheet conditional formatting? ;-)
 
@florian They have that feature also in excel and open office
 
@florian Yeah, it's nice
 
Yeah, I know that. but I need help with google spreadsheet.
It's not as easy as with Excel...
I have two columns (one with keys and one with values), and I want to change cell background color when value is empty. This is easy.
But at the end when there is nothing in the key column, the value column keep the conditional formatting
If you see what I mean...
 
okay this is the first video in a while that has actually made me exclaim "what the fuck" youtube.com/watch?v=tSrH-6YUf1g
wait until the end
 
@rlemon wat
 
@rlemon u want contributions to your browser thing ?
 
once i've done a first draft
you can feel free
 
:D
I would love to get your generous help on really.js's 2d canvas editor
 
6:55 PM
so many pings :(
 
@florian Sounds like everything you want to happen is happening..
Change cell background when value is empty. There is nothing in key column, cell background is changed.
Maybe I'm not understanding something
 
windows search
kind:= pictures is dope !
 
Not exactly.
I want cell background to change only in the value column when the value is empty.
 
wow... I have 3 pens on the first 2 pages of picked pens! I feel awesome!
 
The probleme is that at the end of the sheet when there no key and value entry anymore I don't want formatting
 
7:08 PM
quick, someone tear down my morale!
 
@florian Then you should modify the condition such that it applies when value is empty and when key is not
 
@towc Life is a meaningless parade, aimed at distracting you from the gaping, closing void that is eternal nothingness.
4
 
@Zirak too poetic :/
 
@Neil yeah I know but I don't find a way to do that
 
If you inspect your core beliefs and values, you will find irrefutable conflicts, leading you to question every day behaviour.
You will never be able to understand anyone.
 
7:11 PM
There is no higher moral code. We are but bacteria on a rock floating through space
 
Society isn't a thing. Most everything you think about and live with is a made up concept, invented by humans.
 
@florian It'll be similar to your condition for the value, just negated (applying to key column) and both conditions "anded" together
 
Earth is another planet's hell.
 
@Neil no because I need to reference the key cell on the same line of the value cell being formatted
 
You will never amount to anything. Your life will not have anymore impact on the world than an anthill in africa
 
7:13 PM
@Neil why have u not filled the form
 
@towc Shall we continue?
 
@Zirak I expected more something like 'You suck', but oh well... go on
 
You suck
 
@towc Would that really be worse than what we've already said?
 
@Zirak D:
@Neil for a teen probably yes... I'm not deep enough for you humans
 
7:15 PM
any good markdown editor for windows ?
 
I think he just admitted being a robot
 
I think he just admitted being an Italian
 
I think you just admitted being humans
 
Found this, might help you. Examples always help me more than tutorials ever did
Oh sorry.. combobreaker, or something
 
STOP PINGING ME
 
7:18 PM
Hahahaha
@Zirak What kinds of conflicts have you come across?
 
When I ping florian, am I also pinging you? That's hilarious :D
 
@SomeGuy The merge kind.
(whadya mean?)
 
Haha, regarding your message earlier
When you were talking to towc
 
For instance, our conversation yesterday about the potato salad kickstarter.
On the one hand, it's bad; on the other, we do the same thing all the time, only with a step between us and the conceived-as-bad act.
 
Yeah, that was interesting. I was wondering if you had more examples on hand
 
7:22 PM
@Neil Reminds me of the time @Some was here
 
Treating other people equally is a really good one.
On the one hand, people are equal, right? On the other...that's just so obviously false.
 
So @Some pings both of you then? Beginning to see the value in a uncommon name now
 
heh, makes me think of the french declaration of men's rights
it's not "all men are born equal"
 
that's what people choose to believe because it's politically correct and because it's the only way some people will allow themselves to behave in polite society
 
@Neil Go away, Neal :p
 
7:24 PM
@Zirak What's the context of this?
 
it's "all men are born free and equal, social distinctions can only be made based on common utility"
which today translates to: "rich are not born equal"
 
Like how I always hear that men are equal to women. They're not. They're obviously not. That isn't to say one is better or worse than the other, just different
 
@Neil will try with this
 
@SomeKittensUx2666 Some guy was asking me about what moral conflicts: What we think to be true, but upon inspection, turn out to be irritably untrue.
Well not moral conflicts, more like a moral dust under the carpet.
 
like javascript
 
7:27 PM
@Zirak Ah, yes.
 
sorry, this was a reference to this.
 
@SomeGuy Here's another one: You'll succeed if you try hard enough.
 
@Zirak Explain
 
Success doesn't have as bit a correlation to hard work as we think
 
@copy If you succeed, you tried hard enough. If you don't succeed, well.. try harder ya dope..
 
7:28 PM
Or as people claim, I guess
 
@Neil It says if, not iff
 
@copy I can't sing for shit. I have some musical aptitude, and when I'm about to use my vocal chords, my brain has a good notion of what do to. My vocal chords don't co-operate.
 
@copy It's english, not a programming language
 
Over the years, I've tried singing over and over again, with ever growing failures. I just can't sing.
 
@Neil Even in English there's a difference between "if" and "if and only if"
 
7:30 PM
I also can't be a ballerina. I can't sprout wings and fly (I'm not Sephiroth, y'know).
 
@BenjaminGruenbaum Are you on Secret?
 
@copy You don't often hear "if and only if" unless emphasis is on being accurate
 
@Zirak Yes, but that doesn't make the original statement "irritably (?) untrue"
 
The same can be said about non-physical things: A lot (a lot) of people can't even grasp basic mathematics. Their brains just aren't mapped up to it.
 
beer!play more video games or BBQ some turkey dogs.
 
7:32 PM
@copy It annoys me to no end. I've tried, and it just keeps getting worse.
 
@rlemon BBQ some turkey dogs.
 
We'd like to think that we can do anything we want if we just give it another shot, but that's just wrong
 
@Zirak I'd agree, but wouldn't phrase it that strong
 
Take "If it ain't broke, don't fix it." This isn't written as "If and only if it ain't broke, don't fix it" for one because it doesn't ring as well and two, it is an obvious "if and only if" Nobody's proposing you to fix something that isn't broken.
 
hi
 
7:34 PM
I still want to know who's the genius who decided that if and only if === and vice versa
 
I have a question which I posted. Can you guys check ?
 
wow... I've never noticed so many details in font-choosing design.codeschool.com/levels/1/challenges/1
 
0
Q: How to rotate div in circular manner having circles on its edges which are also supposed to rotate?

NitsSo., This is what I am trying to achieve. Look at the image. Circles on the edges are clickable. Its structure is made such that each rotation will be multiple of 45 deg. I am using css transform rotate property for rotation. How its supposed to work? When we click on any circle on the edge it...

 
@Zirak For instance, most people fail at math because they don't care, not because they couldn't do it
 
@copy Of course. There are many reasons why people don't succeed at certain tasks.
 
7:36 PM
@copy ORLY?
 
@copy There are tasks that certain individuals can do and some cannot though.
 
github.com/darkyen/really.js/stargazers =( am open source forever alone, but ffs i am ugly ( code wise )
 
For instance, only a psychopath can effectively rule over a country or a large organization.
And no, I'm not joking. Over 80% of the top 500 richest people in the world are psychopaths :)
My brother did the research for a school work once
 
@FlorianMargaine angular-generator :P
 
7:48 PM
@FlorianMargaine seriously.awesome.js
 
I probably will write something to load the seriously modules on the fly
 
@SecondRikudo You do have to keep in mind how difficult it is to determine if someone is a psychopath, though
(I assume we can use psychopath / sociopath interchangeably)
 
@SomeGuy It's actually a pretty straightforward test
 
it supports AMD but not out of the box in angulaaar
 
@SomeGuy No, we cannot
 
7:49 PM
Care to highlight the difference?
 
The two are completely different mental issues
 
Oh, yeah?
According to what?
 
A psychopath is generally the alpha type, they usually care little for others, and will step on their colleagues in order to reach the top
A sociopath is usually someone who doesn't fit in, or doesn't want to fit in.
 
IIRC, the DSM makes no distinctions between the two
 
@SomeGuy I don't know what the DSM is, but looking at the two Wikipedia articles should give you a good start
 
7:51 PM
Might be wrong, though. Been a while since I researched the topic
 
Like I said, my brother did a rather comprehensive research (as much comprehensive as a high-school task can get) about the subject.
 
Yeah, looking at the Wikipedia Psychopathy article, it starts with "Psychopathy, or sociopathy...."
> Both have also stated that their diagnoses have been referred to, or include what is referred to, as psychopathy or sociopathy, though distinctions are sometimes made
Also, the DSM and the ICD are like the bible of diagnosing mental disorders
@SecondRikudo Regardless, what's this straightforward test?
 
@SomeGuy It's not exact science (as all of psychology), but there are several indications that exist in most psychopaths on some levels.
 
My skepticism at how easy it is to determine if someone is a psychopath comes from Jon Ronson. I haven't read his book, but his articles seem to highlight some good points
 
!!wiki psychopathy checklist
 
No caprica?
@SomeGuy That's what the doctors use AFAIK
 
That's the thing though, how does a checklist show you if someone is a psychopath?
Like, truly a psychopath
 
I don't think there's a clear line "this guy is a psychopath" "this guy is not a psychopath"
I'm guessing it's more of a level thing, "this guy shows more signs of psychopathy than the normal"
 
Yeah, but where do you draw the line?
What's a healthy level of cunning?
Superficial charm?
 
TBH I have quite a few of the items on that list, but I'm lacking that "Alpha type" kind of characteristic. :P
 
7:58 PM
I am so naming my son (if i have any) Alexander
 
@SomeGuy No idea. I'm not a mental health specialist.
 
yeah, you've already killed many people, but still feel remorse.
 
@SecondRikudo Exactly, I have a bunch of them too, but I'm definitely not a psychopath
> Need for stimulation/proneness to boredom
 
@AbhishekHingnikar Is this the right place and time to decide that?
 
@FlorianMargaine I've killed thousands of people, most of them in one meteor strike. So? :P
 
7:59 PM
That's one of the silliest ones I've seen
 
@copy nope the reason being... "he will never get a free email 3:)"
 
A free email?
 
always gonna be a huge email ^^
 

« first day (1380 days earlier)      last day (3569 days later) »