« first day (1324 days earlier)      last day (3846 days later) » 

15:00
and neither should frames
totalframes/timepassed*1000
what's the *1000?
timepassed is in milliseconds
I think I finally got why someone would get a mac.
15:02
aluminium
Maybe I'll get one for my next computer, haven't had a mac in ages.
@BenjaminGruenbaum doesn't occupy a hand unlike an umbrella?
@cocco most good computers are aluminum, both my laptop and desktop are at least.
mh .. one thing. i'm djing sometimes. and software like traktor crash on systems that are not osx
but i don't like mac's to...
i prefer linux or win
anyway there is no way to run dj software on win
A shame the .net stack which is by far the best stack today sucks on macs, then again - the net stack is now being decoupled from iis and runs on mac/linux so we'll have to see.
A shame i/o is built in a really broken way in the linux kernel (and the bsd one for that matter)...
15:05
Mac definitely has the best UX. Good choice for non-powerusers non-gamers
what is UX?
UI?
User experience
bah
@copy well, the part I like is the fact everything is polished so I don't have to waste time, but I still have a linux scripting experience.
Plus, xcode is supposed to be a very good environment for c/cpp, and given they're the ones writing the best compilers for c/cpp that's good. Most of the other stuff I use like Python etc works everywhere anyway.
One of the things that bothers me the most about windows is that it feels too graphical to configure. It's a culture problem, PowerShell is just as powerful as bash/zsh, and I do most of my computer side scripting in Python anyway.
@thykka Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don'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.
15:12
You can't really make software that works best for power users and dumbest assumable users at the same time
I guess that's true.
mac is great
I really hope they make Visual Studio faster, the fact it's so clunky is annoying. You can get it to go fast, but it requires an ssd, a lot of ram, and a fast cpu :/
if u dont have a windows/linux program you can emu it
You can also emulate OS X from Windows or Linux
15:17
meh
but why would u use windows/linux in the first place :P
str="@Val([Query].[Name]) + "Hello"" i need to split the string str in like that Query will be placed into a variable name will place into another variable and hello will placed in another variable how can do that in javascript? can anyone help?
@lawm macs are still too expensive, somewhat slow, and don't run a lot of programs.
They're good value, but bad value for money, just like an iPhone.
They're also a closed ecosystem.
eh it depends I guess
not necessarily closed
well
to repair stuff yes
@shishir123 read the mdn tutorial on strings.
but generally im good with the programs it offers, and my fave games run on it
devs are better about making mac versions
Github Atom is exclusive to mac atm
15:19
@lawm it's not that, have you ever compiled a kernel for your mac?
hehe no
I didnt buy a mac not to use a mac
Sometimes, it is very useful to be able to fine tune your machine.
meh
Also, lol @ github atom, it's a very mediocre piece of technology (so far)
yeah lol
but
yeah :(
15:21
It's like sublime, only without all the useful plugins.
Or like vim, without all the useful shortcuts or plugins.
u can write the plugins in js
:OOOO
Of course, but there is no big ecosystem.
one thing I am dissatisfied about is that the tab closings dont have animations :((
lmfao.
The defaults are not that helpful anyway, especially since there are very good editors for most languages that are really helpful.
yeah I dont use it
15:23
Also, Atom works on windows.
I use Coda 2 panic.com/coda
yeah someone ported it
Also on linux
bleh fine it was a bad reason lol
I use WebStorm, it's the only decent editor for JavaScript atm imo. Visual Studio comes close with ReSharper but still.
Lol Coda looks ridiculous, its features are "code folding" :D
stfu it's good enough for me :P
it does support plugins....
15:25
Literally no editor I've ever worked on does not support plugins in one way or another. You can even script around notepad :D
lol
no but srsly it's not as intrusive as webstorm
it's a text editor at heart but it has cool features like a text expander
WebStorm does static analysis :D
ll
lol
ok let me ask my question
15:26
It does refactoring, it understands your code's structure.
:((((
coda has git support baked in tho :D
and variable autocomplete sometimes works!!
So does webstorm, you even have "right click -> publish gist"
SHHHH
ok I must ask my question
Im making a url generator in nodejs with a mongodb, and it's querying the mongodb inside a while loops which is a bad idea yes I know... and then it hangs up the server when it doesnt work xD
so I know it's an async issue, but I cant find a better but just as easy solution. heres my code: http://pastebin.com/teWsWfCK
Does makeHash always return the same value?
nope
it makes a 6 letter "hash"
like random letters/numbers lol
15:31
That code looks rather stupid :P but ok. I can try
k :D
Mongo?
What db driver?
meh whatever:
hang on
require("mongojs")
^
I really think it is a semantic issue to the mongodb itself tho
Promise.promisifyAll(db.items);
Promise.try(function attempt(){
    var hash = makeHash(6);
    return db.items.find({uri:hash}).then(function(items){
         if(items.length === 0) return hash; // try again
         return attempt(); // try again
    });
});
promise...
15:34
@BenjaminGruenbaum wait for it..
Wait for it...
0
Q: Java function with code as input

GlennI have a Java function: <script> function clicker(text){ var thediv=document.getElementById('displaybox'); if(thediv.style.display == "none"){ thediv.style.display = ""; thediv.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='1...

var Promise = require("bluebird");
Dat Java function.
@RUJordan lol
lol I love how they are stuck on "Java" vs "Javascript"
@BenjaminGruenbaum no but I dont want to use a library for this :( is there a vanilla way??
@RUJordan downvoted.
I will not buy this record, it is scratched. — Benjamin Gruenbaum 6 secs ago
@lawm Sure, you can code your own asynchronous semaphore, that wouldn't be as clear. Also, you're already running a library
15:36
@BenjaminGruenbaum but for this one problem I need a library?
Also, that find should be .findAsync in my above sample.
@lawm you don't need one. It's just helpful.
@JanDvorak my man. :D
My hovercraft is full of eels. — Dave Newton 55 secs ago
@RUJordan You didn't have to wait for me ;-)
function attempt(callback){
    var hash = makeHash(6);
    db.items.find({uri:hash}, function(err,items){
         if(err) throw err;
         if(items.length === 0) return callback(hash); // try again
         attempt(callback); // try again
    });
};
15:37
@JanDvorak I know you're always lurking somewhere. Ready to strike. :3
ooo
lol bad typo...
@SomeGuy lol, looks like I started a thing there.
@lawm that's vanilla, usage would be something like:
@RUJordan Hopefully I won't get a stroke from reading SO :-D
attempt(function(unique){
   /iuse unique here
});
15:38
ok
@JanDvorak hahaha well at the rate of these questions we never know...
so all the further code using the hash is nested inside the attempt callback?
or...
var uri;
attempt(function(unique){
uri = unique;
});
<noscript>alert("Y U NO JAVASCRIPT?!");</noscript>
Has there ever been an SO question about a problem that was caused by a missing comment sigil?
Guys why doesn't my noscript work?
15:39
lol
:has a stroke: <---- one day
!!google comment sigil
looking at the java questions code, it looks like the poor guy has a long way to go lol
@RUJordan //
Cap I don't care about WoW T_T
Ohhhh
15:41
@lawm makes it too broad as well as unclear and probably a typo question
@lawm with callbacks? Yes,
@JanDvorak can I answer it for the lels
for free karma
plsplspls
im only 99 :(
Getting my "don't answer crap" comment ready
@BenjaminGruenbaum ok thanks
@JanDvorak :(
will people downvote my answer lol
@lawm it can always happen
15:43
oh god
Got another one guys.
It seems like you're new to asking a question as well. Think about it -- read your question -- how do you expect us to give you an answer with the details you've given? — RUJordan 15 secs ago
@RUJordan dievoted
I mean.. maybe a quick beating in a dark alley but he doesn't deserve to die for that D:
but, a downvote and closevote are entirely appropriate
@JanDvorak P.I.: Judge, Jury, Executioner -unlicensed, completely qualified-
15:46
okay I composed my answer.... and mocked his spelling in it too... I named the variables input_variabel and second_variabele
:D
What's the reason for a gallery today?
@lawm I'm lurking on the question waiting for you to post it
!!mute
ok
im almost done
HELPING THE DAMN COMMUNITY
@AnnonomusPenguin when somebody is muted, it auto-galleries. Looks like the last person to be muted was for 30 days. And yes, it was 100% deserved. Mad help vamp that doesn't give up.
15:49
@AnnonomusPenguin the usual troll duo
we aren't leaving gallery anytime soon
@RUJordan I see....
Didn't know it auto-galleried (is that even a word?)
I would bet money that Illaya will come back too
I've finally figured out what bothers me about people like bjb :/
It's a new feature
@BenjaminGruenbaum the constant condescending tone?
They care too much?
15:50
@copy closer.
@Loupax Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don'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.
Closing/deleting questions in SO/SE is giving them free QA, which is something I wouldn't do for a lot of money. Most people who do it actually do it to help the community grow and clean the site to make it a good resource.
SEND THE UPVOTES HERE BOYS, LAWM SAVES THE DAY ONCE AGAIN stackoverflow.com/questions/23981449/…
People who use a condescending tone and are rude to other people just like the power. They've been given oh so very little power by the community, yet they abuse it.
Just was heading over to SO and was wondering if I was making a stupid mistake (or Chrome is) before posting there. I'm getting this error:
> Uncaught SyntaxError: Unexpected token }
That's fine, but </div> is the line that it points to.... :/
15:52
It's not that they care too much (they do), it's that they abuse every little inch out of it.
> You clearly have a long way to go with Javascript programming (this is javascript not java), as well as some grammar to properly explain your issue
doesn't belong to an answer
@JanDvorak ok ill modify
@JanDvorak Flag for convert to comment I'd think
done sorry
@BenjaminGruenbaum the biggest biggest thing with him, is that if he asks a question or makes a statement, and you ask for an explanation or clarification.. he says "Why?"
15:53
@AnnonomusPenguin it was only the first paragraph
All the comments and flags are condescending, saying who 'deserves' an answer, that sort of stuff.
That pisses me off to no end
@JanDvorak Ahh
@lawm also, I'm not entirely happy with the wall of stringified HTML
But I'm just confused why it's giving me such a weird error. Let me see if FF does that, too
15:54
@RUJordan lol, that actually makes me laugh, petty cases of acting like an idiot (e.g. stackoverflow.com/questions/23889317/… ) don't bother me one bit. The fact someone would abuse so little power doing free QA for a site bothers me in a "what's wrong with man kind" level.
@JanDvorak me either.........
@AnnonomusPenguin try running the code through jshint
but I answered his question of concat
and gave example
@Loupax why does console.log((true && false) == !(true || false)) feel wrong?
@lawm noted. And, as always, I'm not upvoting answers to crappy questions.
15:55
@JanDvorak k
But, sure, you've earned my non-downvote.
okay :DDDD
@BenjaminGruenbaum ugh... "That should be obvious" if it was obvious there wouldn't be a question on it.. that's why I tell everybody to explain their answers no matter what
@lawm "I strongly suggest you take the javascript course at codecademy.com, it will help you out greatly with things like this." looks like an advertisement.
@JanDvorak K will do, also trying FF
15:56
@RUJordan like I said, that part doesn't bother me, he was being petty after we've had a somewhat long and pointless argument here, so he found some arbitrary question I've posted and downvoted it.
@BenjaminGruenbaum it's an intro to js which introduces fundamentals like that.... the guy probably is learning js simply by google searching
@BenjaminGruenbaum lol wow
@lawm "looks like"
I've no other word for that.. just petty. lol
fine I will link some MDN DOCS TOO
15:57
@BenjaminGruenbaum OTOH, the rules of this room promote thanks-upvotes
@RUJordan I don't mind pettiness, I mind power abuse. I'm a lot more bothered by stuff like this:
at least it used to
user image
7
@JanDvorak rep is meaningless beyond the point it gets you way too many interviews :D
@JanDvorak It seems to be something wrong with the arguments... can't figure it out. Firebug gives me an error that's 58 lines away from Chrome but they seem related... digging into it more
It's pretty pointless before, but good answers are a lot more valuable imo.
@RUJordan also stuff like meta.stackoverflow.com/a/257866/1348195 :/
16:02
@BenjaminGruenbaum I do agree that bad questions shouldn't be answered. I can't see the question, though.
There is a link in the last comment on that meta thing.
@BenjaminGruenbaum I can't read most of the comment links because < 10k :(
@RUJordan just looking at the URL looks like it might be a vampire question
Truth
Also stuff like meta.stackoverflow.com/a/256694/1348195 (especially the deleted answer).
Oh well.
16:10
So I watched a pretty decent horror movie last night with a surprisingly really good twist
Granted I was wasted beyond belief last night... the movie is called Evidence.
cool :)
BTW if I may ask a rude question - I forgot, what are you currently doing with your life?
What do you mean?
Like where do I work or why do I drink? lol
Like, are you working as a software developer somewhere :P?
We all drink to forget, that's a silly question :D
hahaha
I'm a website developer for a non-profit anti-sexual assault company in Washington DC
You're like, one of the few regulars whose like I know little about :P
16:15
Been there for about 9-10 months now
@RUJordan oh yeah, I remember you saying that at some point, that's cool :)
Learning stuff?
I love it there. Minus the commute, they have great benefits, flex hours, and I feel good helping abused women and men
Definitely learning things. Unfortunately a lot of it is ColdFusion, but lately they've been teaching me Python
Python is good.
I'm very intrigued with it. I love how it forced good indentation
But other than work, I'm actually quite the social person. After work most days I'll go hang out with friends till late, playing golf or something.. every now and then we'll throw a little party at our apartment
You're into golf?
I love going golfing. Get some cigars, a few beers and descend into a cold spiral of life hatred when you top the drive. LOL
One wouldn't normally associate golf with a cold spiral of hatred.
Unless you imagine the ball is your repressed childhood
I've never really golfed, looks fun :)
No, I don't actually get mad. I'm not terribly good at golf, but I'm not an angry golfer. I know some angry golfers though lol
@BenjaminGruenbaum if you don't care about winning or being good, it's the most relaxing sport
16:24
"angry golfer" lol
!!youtube family guy quagmire golfing
I was a lot more social when I was 22, when I got discharged from the army, I went out to some party/bar/friends about every day for about two years.
Now I try to limit myself to two times a week.
I come online every day to talk to you guys. That counts, right?
16:27
I'll drink a beer or two every other day ish, but I only drink drink every couple weeks or so.
Yeah, me too. I always have beers in the fridge, I love the taste of beer and scotch.
My stomach can only handle so much alcohol before I just get sick (not poisoned sick, just upset stomach sick)
I'm a vodka guy
I like Vodka, the problem is there is so much bad Vodka, and people usually drink it just to get drunk
Really, people often drink any kind of alcohol just to get drunk
So much bad vodka...
16:29
At least at my age
I have expensive tastes when it comes to vodka
Yeah, when I was 17 I drank mainly to get drunk
I usually drink midrange vodka, Grey Goose and Van Gogh mostly. I'd rather spend more money on scotch :)
18-21 I drank hard. I mean.. I went to Virginia's low-key party school lol We had better parties on a random tuesday night than most schools did on a holiday weekend
Once I turned 22 I slowed down a lot.
But
!!afk Jon Claude Van Damme
Jean* :p
16:45
@PawełWszoła Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don'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.
17:15
@SomeGuy oops lol
@Loktar what a weird picture
@Solo Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don'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.
17:48
@kvambaam Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don'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.

« first day (1324 days earlier)      last day (3846 days later) »