« first day (1542 days earlier)      last day (3424 days later) » 

8:00 PM
@JanDvorak That does not seem to fix the issue, the page still scrolls. The only in Firefox on the Surface way to get the entire page to not scroll still seems to be to prevent "wheell"
 
doesn't seem right
 
For that matter, touchstart never fires if wheel is firing
which just seems wrong
same thing with mousedown
if I tap the screen, a mousedown will fire
 
weird...
 
but if I swipe no mousedown or mousemove or touchstart or touchmove will fire
only wheel will fire, and preventingDefault on wheel will not suddenly allow those other events to fire
ugh, this has got to be a bug.
 
Use Chrome :-D
 
8:02 PM
chrome and FF work fine, but I am trying to fix GoJS
 
Are you experiencing it just on the SP3, or all Win8 touch devices?
 
have only tried the SP3 for touch-enabled Windows 8
 
Use Win7 :-D
 
If you have something live, I can test on a different Win8 device later tonight, if you'd like
 
or Windows Nein 10
 
8:09 PM
/me :crosses fingers: compiling for windows from linux
 
Good luck.
 
I hope it fails and you end up accidentally cracking the code to bitcoin and you become a millionaire and share it with me because I predicted it and now we're in a time loop and I have laser vision and we ride a tiger into the moon and it explodes into bitcoins
 
So I have a really dumb question.
 
@doodla 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.
 
@doodle
Just ask
 
8:12 PM
dammit
no errors, but I have no idea where the compiled files reside now
 
in the moon with the bitcoins
 
How do I search like :
for ( i =1 to 12)
 
/:/ ?
for(var i = 0; i < 12; i++);
lol
 
uh, no sorry. lemme compose that in text and get back. :)
 
has anyone here used node-webkit-builder?
 
8:14 PM
for (i = 1 to 12)
{

if (obj.q1 == ""){
do something
}

}

This should iterate like obj.q2, obj.q3 and so on. How do I do this?
 
You mean for(key in obj) ?
 
Why do you have q1..q12 in the first place?
obj['q'+i]
 
@DmitryKrekota 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.
 
@Catgocat Object.keys(obj).forEach
 
8:15 PM
It doesn't make sense you are iterating over i and then you do access a completely random propertie.
@rlemn #ES5
 
small part of a big program.
 
@Catgocat #so?
 
@doodla Do you need to learn about arrays?
 
and?
!!caniuse Object.keys
 
8:17 PM
You win
 
IE doesn't suck so much today
supporting modern IE is a breeze
 
still doesn't have native promises though...
 
I don't understand why they haven't changed that ugly ass browser design.
 
I might try it out once they're done reworking the GUI
 
eh, BlueBird all things. so native promises isn't such a concern for me
I already use a library
 
8:18 PM
@Catgocat They're working on it
 
@doodla whats your data look like, exactly?
 
@JanDvorak Nah. I'm getting an XML string and storing values in an array. Each value is a JSON string which will give me an object when parsed.
 
What are promises? I hear about it but don't know its meaning.
 
Promises will change your life
!!mdn Promise
 
8:19 PM
@Catgocat It's an object which you can pass a callback, and it returns you a promise that resolves when the promise that the callback returns resolves
 
@rlemon most def
 
We have async in C#. Promises are... underwhelming.
 
in short: it makes asynchronous code look much more synchronous
 
Ok so, promises = async?
 
@KendallFrey what exactly do you think you await in C#?
 
8:20 PM
Hmm.. I may be able to replace the object in question with an array, as the condition is the only place I'm using them.
 
Promises + Haskell's do, however, would be awesome
 
Also, are arrays better/worse than objects purely from a performance perspective?
 
wat
 
@doodla I highly recommend learning the basics of javascript.
 
@JanDvorak a promise generator does the same thing that do does, and it is indeed awesome.
 
8:21 PM
I like objects as they increase readability.
 
@BenjaminGruenbaum A Task, of course, which is the .NET equivalent of a Promise
 
@BenjaminGruenbaum example?
 
Ow it's ES6
 
@doodla they're two different things.
 
@doodla from a performance perspective it doesn't matter on v8.
 
8:21 PM
don't worry about types most stuff and performance until it becomes a bottleneck.
 
@BenjaminGruenbaum Thanks.
 
otherwise you'll spend too much time chasing a lead that not be chased
 
@JanDvorak yield* [x,y,z,y] where they're all promise returning functions is the same thing as do x\ny\nz\ny - look at Bluebird's Promise.coroutine or the co pacakage.
@KendallFrey exactly, promises are what makes async/await work in the first place.
 
does Chrome support coroutines and similar already?
 
@JanDvorak on canary, but Facebook has the regenerator package which is pretty good.
 
8:23 PM
@BenjaminGruenbaum Right, my point is that I prefer Task to Promise for its power and flexibility
 
Your mum has power and flexibility
 
@BenjaminGruenbaum I'm asking because I want a test environment to test them on, not because I'm missing the functionality they provide
 
@KendallFrey uhh. why? Tasks do the same thing as Promises, and you can do async/await with yield, the only problem with Tasks is that they complect silly stuff (like they have a ton of states, like cancellation tokens, and like .Start which is virtually never used).
@JanDvorak then yes, v8 supports generators and you can use them in Chrome under a flag.
 
experimental-js? I already have that on.
 
@BenjaminGruenbaum If you can show me a simple example of how promises are fucking brilliant, I will change my mind.
 
8:25 PM
Time to really dive into ES6 then, thanks.
 
is there a npm flag to not list the dependencies of the top level modules?
 
@JanDvorak Then you can use generators right now, just type (function*(){}) and see if it compiles.
Or maybe you need canary.
@KendallFrey they're the same thing basically, anything tasks do promises do and vice versa.
 
did work 8-0
 
Minus irrelevant stuff you're not even using.
 
@BenjaminGruenbaum I know, I just like async
 
8:26 PM
@JanDvorak right, now implement yield for generators - that is, make a generator pause when it gets a promise until it unwraps it - it's a fun exercise. If you're stuck there is a solution in the transcript.
 
I need to read a tutorial first :-/
 
@KendallFrey yeah, I do too - it's just the same thing in JS :D
 
8 mins ago, by Nick Dugger
Promises will change your life
so, not likely for me
 
Can anyone tell me a powerful argument to use when someone asks what are your interests and you reply programming and some days after when you argue with that person and she says something to offend you as someone who likes computers. I would rather ignore but just wondering.
 
Ignoring seems fine if they definitely want to offend you
 
8:29 PM
@Catgocat wait what?
 
Not to offend the person, but the concept, the area, programming itself and anything related to computers.
 
why does var d = "" + "test"; give "test", but var d = "" ; d + "test"; gives nothing ?
 
Why would you get offended by someone making fun of computers?
 
How do you offend someone by saying they like computers, unless you "like" computers ?
 
@Anonym.. Because you aren't setting d the second time.
 
8:30 PM
Well, the classic "nerd" doesn't work anymore
Target their potential residence of basement
 
var d = ""; d = d + "";
 
@adeneo Not saying that they like computers, but saying that is worthless and lifeless.
 
@Anonym.. depends on the console; seems fine to me
 
@Catgocat why the fuck do you care what other people think about your hobbies?
Life pro tip: If you have a constructive hobby you like - fuck what people think about it.
 
@Catgocat if anybody ever makes fun of you for liking computers, kindly tell them that your skillset is worth more money.
 
8:31 PM
@SecondRikudo oh, ok. didnt thinkt about that. Thx !
 
MLM
Are the download counts on npm broken(all 0) for you guys?
 
Even if your hobby is ant farms, if someone is bringing you down for doing stuff they're the problem - not you.
 
@SterlingArcher true
 
And what do you do with problems?
You solve them.
 
@SterlingArcher I do?
 
8:33 PM
I make problems
 
@KendallFrey well you could go another route and dissolve them but that's a bit illegal in most states.
 
@Catgocat no no, telling someone your skillset is worth money isn't a way to get their sympathy - telling someone "well I make more money than you" is really lame.
 
It's only illegal if they find out
 
I like programming because you can DO something.. when you are a reporter, or a doctor, or anything else you don't usually make something, you just know it and apply it to do your job. You don't ADD nothing to the world.
 
well, that's quite subjective and pretty wrong
 
8:34 PM
Indeed
 
@rlemon yea
my screensavers and I did grapple hero
 
I would argue that a construction worker "makes" something that you don't. IT workers merely reroute data, not actually make anything
 
I like programming because it makes me feel smarter than everyone else, except for people that are smarter than me
 
@BenjaminGruenbaum That's wrong, because I make more than you.
 
@KendallFrey I didn't say it doesn't.
 
8:35 PM
@Loktar did you compile them on windows?
 
I make things all the time
 
@SomeKittens you probably do :D
 
@rlemon yea
 
or better yet, have you attempted to compile an executable from linux? and what did you use for it?
 
I like programming because... shit, I don't know why, but it's fucking fun.
 
8:36 PM
No it's not !
 
@rlemon a hex editor
 
@Catgocat doctors who do cancer research don't ADD something to the world?
 
@Loktar I tried to use this: github.com/mllrsohn/node-webkit-builder in linux. it seemed to work, but didn't
 
Focus less on what other people don't do and more on what you like about it yourself.
 
I like programming because it's a challenge
 
8:36 PM
@BenjaminGruenbaum usually
 
Lots of people have important challenging and interesting jobs. Don't belittle professions.
 
@adeneo It's evil right, terrible.
 
^ agree with @BenjaminGruenbaum
 
As someone married to a teacher, she makes much more of a difference to the world than I do.
 
@Loktar @rlemon I did canvas stuff and it was on codepen! It was so exciting!
 
8:37 PM
I like programming because I get to make stuff. I like making stuff. I suppose I could have done other jobs and made things, but with programming you don't need much at all to do amazing things. if I wanted to be a woodworker I would have to have an entire shop at my disposal
 
I've always wanted to be an astronaut
 
@SomeKittens Why? Doesn't she teach in the US?
 
Indeed
 
@rlemon that is EXACTLY why I did CS instead of engineering or bio
 
I'd be a woodworker too but fuck the environment apparently
 
8:37 PM
@NickDugger Same, long before I discovered programming
 
@SomeKittens you teach though so there's that.
 
@SterlingArcher I'll be sure to tell my brother
 
I wanted to be a taxi driver because I liked cars and they were always driving, so yeah.
 
lol it's illegal to cut down trees in my area
 
@SomeKittens Also oddly enough I didn't remember you were married. You don't have kids though yet right?
 
8:38 PM
I want to be Neil Degrasse Tyson when I grow up.
 
@KendallFrey ...yes?
 
because there are barely any left sniff
 
user1596138
Woodworker !== tree harvestor
 
@SomeKittens ;)
 
Fine I'll just go back to harvesting souls D:
 
8:38 PM
@BenjaminGruenbaum Nope, just had our first anniversary.
 
user1596138
That's too provocative
 
No kids for a while (sorry @BadgerCat)
 
@NickDugger I want to be Neil DeGrasse Tyson's role model when I grow up.
 
I'm so lame for not remembering -_-
Jan 14 '14 at 21:36, by SomeKittens Ux2666
Just got married myself.
 
Actually got married on Dec 21st
 
8:40 PM
the darkest day of the year
slow clap
 
@KendallFrey not every year. Some years it's my birthday.
 
the 2 year anniversary of the end of the world
 
@SomeKittens oh I had no idea it was so recent
 
it's only going downhill from now ... until the divorce
 
@SomeKittens happy belated anniversary!
 
8:41 PM
@SimonSarris Dec 21st, 2013
@SterlingArcher Thanks!
 
I don't think you understand the game, sir
 
@SomeKittens THIS MAKES MORE SENSE
 
@rlemon shit sorry
sidetracked at work
 
@SimonSarris I've been writing!
 
8:44 PM
well I might be able to hack node-pre-gyp to allow me to compile this from windows
LOTS of fucking around today
 
@SomeKittens oh?
 
@SimonSarris Both code and English. Mostly fleshing out ideas into outlines.
 
in C#, 1 min ago, by Caprica Six
@KendallFrey You do not have permission to use the command undo
 
Got my personal blog up (it's down now though)
 
8:45 PM
just change .scr to .exe
 
nope, didn't work
 
@rlemon did Cap's permissions change?
 
are you a room owner in c#?
 
@Loktar I was blown away when I learned that
@rlemon yeah, but....
 
8:46 PM
!!live
 
!!slidepoop
 
!!undo
 
@JanDvorak You do not have permission to use the command undo
 
@NickDugger not sure if it's that offensive but it is in bad taste :P
 
8:46 PM
bug...
 
@BenjaminGruenbaum which is why I made it go bye bye lol
 
Good call.
 
I was so lazy and hardcoded something today
Instantly bit me in the ass
Like, almost literally instantly
 
That sucks
 
3 seconds?
 
8:49 PM
Just about lol
Serves me right for being lazy though. So I did it the right n' proper way
 
global constants?
 
using eval ?
 
php?
 
e) all the above
 
8:51 PM
Using eval on global constants in php
 
${$consts_prefix.$const_sth_postfix}
 
....... on a partridge in a pear tree
 
can't we just ban PHP and be done with it?
 
Lol, I just got +7 and didn't realize how I could get +7, I thought it was a upvote, two downvotes and a delete on a downvoted answers.
 
8:52 PM
can someone who had no permissions try again?
I wanna see what the logs say
 
@SterlingArcher what?
 
!!live
 
@KendallFrey I'm not dead! Honest!
 
@BenjaminGruenbaum I'm not dead! Honest!
 
8:52 PM
all better
 
!!slidepoop
 
!!live
 
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
no effing clue. I refreshed her
 
@JanDvorak I'm not dead! Honest!
 
8:52 PM
suppose that sorted it
 
!!get rekt
 
@NickDugger That didn't make much sense. Use the !!/help command to learn more.
 
... how?
 
@BenjaminGruenbaum eval'ing global constants with PHP of course
 
8:53 PM
@SterlingArcher Why would you do it?
 
he was lazy
 
it rustled his jimmies
 
Oy, back off me jimmies
Nah jokes aside it was more a SQL subquery loop with hardcoded IDs instead of finding them programatically
 
var TWELVE = $.ajax({url: '/numbers.php?num=twelve', async: false});
 
system(10.times.map{Char.new(rand 32..127)})
 
8:56 PM
var TWELVE = eval($.ajax({url: '/numbers.php?num=six', async: false}) + "+" + $.ajax({url: '/numbers.php?num=six', async: false}));
 
var undefined = eval("void 0")
 
@Loktar are you busy tonight? care to help a brotha get this node-webkit shizznat working on windows?
 
prime factorization plzz
 
@KendallFrey 15=1*15
 
var TWELVE = (function () { var number; while (number !== 12) { number = Math.random() * 12; }; return number; })();
 
8:57 PM
@JanDvorak void eval(void "void undefined")
 
@rlemon Im always busy
lol j/j though
ill be around
 
function twelve() {
    var twelve = 0;
    for(var i = 0; i<10000; i++) {
         twelve += .0024 * Math.random()
    }
    return Math.round(twelve);
}
 

« first day (1542 days earlier)      last day (3424 days later) »