« first day (1392 days earlier)      last day (3572 days later) » 

7:01 PM
0
Q: Node using promises in conjunction with async module

Michael IrwinI'm using the async module to help with creating an object that depends on other objects that are created asynchronously. The asynchronously created objects have validations that are ran against them that ultimately return a promise. The problem I'm having is that the "final" async callback seems...

 
&$*(@#&$*#@()$&#)@ i can't beat slender it's too dark to see :(
 
user2620028
@SterlingArcher you must be bored out of your mind.
 
Well yeah I've read like 125 pages of a java textbook lol
 
I don't like that game. Too scary for me. When "Signs" came out (the movie about mel gibson and an alien invasion), I had nightmares for 3 weeks.
 
It gives me goosebumps but I don't get scared. I just can't see, get lost, and eventually give up because you walk slowly
 
user2620028
7:04 PM
i hate scary movies and games. Knowing that they are not real breaks the mood for me and i can't get scared from them.
 
@NickDugger I've been having nightmares ever since you were born
 
Thanks, dad
 
Now shut up and get me another beer
 
Yes, dad
 
what don't you understand in "shut up"?
 
7:19 PM
What the hell, internet? IE8 doesn't support textContent, but Firefox doesn't support innerText... broken shit.
 
@rlemon That.. doesn't actually work for me. The message content isn't loaded by the time the userscript runs
 
@NickDugger Welcome to funland.
 
really?
works for ALL of my userscripts ;)
 
It's.. weird.
I could be using it wrong
 
@rlemon well, your userscripts must be self-teaching AI, that rewrite themselves on the fly, because for me, it's just as I said
 
@tejas-manohar Still stuck? Where are things going south?
 
Ever get that "I think I just made myself look retarded" feeling?
 
Constantly.
 
elem.innerText = elem.textContent = "my string here";
 
7:22 PM
Also doesn't work! I'm running it from tampermonkey
Rather than the console
 
FF?
no clue about that
I run it in chrome
 
I'm using chrome
 
> I have an unexplainable desire to open the door, even though I'm fully aware of how stupid that would be.
 
Oh hold on, it just started working
wtf chrome I didn't change anything
and it stopped working
I'm assuming it's just not loading the messages before the script runs. It does it asynchronously doesn't it?
 
7:37 PM
@BenjaminGruenbaum iTerm, homebrew, and google for what you need. There are often pretty Mac apps
 
Guys, is it true that putting your laptop on your belly/legs is dangerous?
 
@SufiDeveloper Nah, but you might grow a tail
 
lol like we're speaking about Chernobyl :D
 
depends on the quality of the fan it has. I had a laptop that blew its fans, and it ended up melting a bit of my mothers brand new couch. She wasn't pleased.
I got a cooling mat after that
 
7:42 PM
I read somewhere that this guy put his laptop on his lap to find his "thing" cooked
 
Hey Everybody Random question. Does anybody know how I use javascript to autoselect a file when a page loads in a file input
 
@user1938988 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.
 
Yeah that's also what I'm concerned about
 
@SufiDeveloper I don't think you could "cook" your thing without you noticing it first.
@user1938988 No, your site doesn't know the user's filesystem structure.
 
If you're truly concerned about it, get a cooling mat.
 
7:44 PM
@NickDugger There's also the radiation to be concerned about
 
That's what I thought, but needed someone else to confirm
 
heat for your balls is bad yes
thats why they hang in a sack
they are like 10 degrees cooler than your body
 
True but suppose im just auto assuming a file as in 'C:/Documents/RawData'
 
I wasn't ready.. http://t.co/sUqijOu8w4
 
@user1938988 Don't think you can.
Try with the value= attribute on the input
 
7:45 PM
Ah ok I understand. So that guy presumably got his balls "cooked" because of the heat methinks
ugh
 
eh I doubt that happened though
I mean how the fuck can you slowcook a body part?
pretty sure you would notice
 
haha yes, I think you would feel them slowly getting uncomfortably hotter
 
lol yea
 
@SecondRikudo Yeah I tried that for security reason they prevent you from doing that. I was going to try to emulate keys send to tab to the index and fire the enter and then send the keys but idk if thats going to work
 
@FlorianMargaine Was that screenshot instagrammed? :|
 
7:47 PM
well heck I'm not going to do that anymore anyway if I want to have a son/daughter
 
Your scrotum is one of the most sensitive body parts, you'd notice even the slightest thing about it.
 
Yep, methinks so
 
Reproduction is literally more important to your body than eating. So yeah, you'd notice the heat rising down there before any actual damage is done
However, what your body can't feel is radiation.
 
Got it :)
 
And your laptop does radiate (all electronic devices do, especially ones with wireless connections)
So it's not advised to place your laptop, and even your phone, near that specific area.
 
7:49 PM
So even a laptop emits carcinogen radiation?
 
It could seriously cause impotence or a high chance of getting girls instead of boys in the future.
@SufiDeveloper Yes
 
hahaha well that last part isn't important, a girl is good too
 
And trust me when I tell you, you do NOT want ball cancer. You lose either way.
With that fun thought, I think we should stop the discussion there :D
 
Yes, I think so! :P I'm afraid of mental powers
 
Then you should be very afraid of talking to me. I am Madara Uchiha after all.
 
7:53 PM
Yeah :D
!!afk Going to shield my mind
 
He's just checking
 
at first I didn't understand what was happening, and thought that Dovahkin was digging around in some guy's asshole.
 
Great cryptic aphorism for a real situation.
 
Alright, 2 and a half hour bus ride
What should I make?
 
A mess
 
7:58 PM
@NickDugger And then you understood what was happening, and it was exactly that
 
imgur.com/gallery/0wPaNa7 I read the title, and for some reason I thought they ran into the deer, not a celeb
 
@FlorianMargaine I'm reading through the Wikipedia article, and I'm already confused by syntax
 
quote of the day:
> "Men love a challenge." ... Who the fuck told you that?
i love imgur comments xD
 
s/a challenge/sex/
 
For some that is a challenge :P
 
8:07 PM
WATISTHISINCREDIBLEACT
 
That must feel very weird for her
Imagine having a cat crawl over your belly, crotch and back
 
sigh
-1
Q: Splitting and replacing certain characters in a string

RobertI'm trying to split a string on a certain character, and once it's split, I want replace it with a space. For instance I have an image object that looks like this: var Images = { GIV: 'assets/welcome/btnGIV.jpg', GV: 'assets/welcome/btnGV.jpg', G450: 'assets/welcome/btnG450.jpg', ...

 
@Zirak i would assume cat paws are rather massage-ey
 
So long as the claws aren't out
 
@Zirak what about the syntax?
no semicolon is troubling you? :P
it was designed as minimal syntax, actually
 
8:11 PM
It took me about 10 reads, but I think I got a handle on it
 
@Zirak just go through tour.golang.org/#1
it's fast
 
The func (r RepeatByte) means we're defining some constructor of sorts
 
oh, yes
 
Read(p []byte) (n int, err error) is a function exposed from said constructor of sorts
 
p is the argument, of type []byte
 
8:12 PM
The opposite-day order of name type still weirds me out, but ok
 
n int, err error is the list of types returned by the method
 
It was mainly the RepeatByte thing
 
n and err aren't actually required
 
Seeing that right before the Read caused me a brain fart
 
@Zirak yeah, that mainly means "it's a method attached on the ReadByte type, and r is the instance in this method"
 
8:14 PM
Do you have to do that for every function/property (are there properties?), or is there a shorthand?
nvm, I'll discover that myself
 
honestly, going through tour.golang.org will tell you all you need
and it takes 10-15 minutes or so
Ada makes me think of pascal
even if I never did any pascal
 
sure thing
dammit wrong chat
 
ah, the old days of msn
 
im actually using hipchat
really awesome chat client
 
Sounds hip
 
8:18 PM
it is
 
@SterlingArcher acrocatics
 
my boss found it
 
hipchat?
 
rofl
 
I already heard about it
 
8:19 PM
@Shmiddty you've gotta be kitten me!
 
oh yeah, it's this atlassian thing
lol, the intro makes me think of miaou so much :D
 
@SterlingArcher should I paws and rewind it so you can see it again?
 
> Magikarp used splash! It's super photogenic!
 
!!420
 
8:20 PM
hehe he hehehehe hehe he hehehe he...
 
@Shmiddty if you're feline it
 
seriously, hipchat is a miaou fork or something?
 
@FlorianMargaine I'm not 100% sure but I think I was using it before I knew of miaou
ask @dystroy?
 
features miaou lacks compared to hipchat: transfer file sharing and git/svn integration
@SterlingArcher I was kidding when saying that, dw
 
miaou needs a video
 
8:21 PM
oh
 
but yeah, they're very similar
 
@rlemon it has it
using webrtc
 
no, you misunderstand
 
Sorry, jokes don't go well with me in txt format
 
8:21 PM
it needs a video
 
oh, my bad
 
..
 
you mean a promotional video
 
yes
is a nice promo vid
 
8:22 PM
Pretty sure he's dead
Sorry guys, when I imgur, I binge.
 
no but his collar bone is all over the lawn now
 
but I'm reading this right now
 
the hello world example puts me off
 
1 message moved to Trash
No more
 
@rlemon I like it
 
8:24 PM
Fiiiiiiine
 
they list a lot of huge companies as using hip chat. I wonder what % of employees actually use the stuff. If one guy at HP uses it do they get to say HP uses it?
 
very contract-based
 
@SterlingArcher i.imgur.com/cNDmv1u.gif
cc @Zirak
 
hahaha
 
you can see them glancing occasionally and trying real hard to look natural
@Loktar imgur.com/gallery/IeUqx why along the way did we decide (after we no longer were required to use it) that we should make pixel art suck
fuck that shit is impressive.
 
8:38 PM
cowsays.sh is available. If it wasn't 100 dollars...
 
rlemon.com is 2K
:(
 
Have it link here
!!cowsay I'm dirt cheap, cowboy
 
 _______________________
< I'm dirt cheap, cowboy >
 -----------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
oh is it cowsay, not cowsays?
 
You can't use css3 animations on scrollbars
What a shame
 
8:41 PM
hey guys little confused on remotes
anyone know how to deploy from my github repo ot heroku
 
You just push it to heroku iirc
 
Please make sure you have the correct access rights
and the repository exists.
i did heroku create craigs-yo
now it says heroku git@heroku.com:craigs-yo.git (fetch)
heroku git@heroku.com:craigs-yo.git (push)
origin git@github.com:tejas-manohar/craigs-yo.git (fetch)
origin git@github.com:tejas-manohar/craigs-yo.git (push)
when i do git remote -v
 
html5.ninja is available!
Did you add your ssh key to heroku?
(Do you even have to do that?)
 
@Cereal bet you it isn't
says it is, but likely reserved
 
For 937 dollars it is ._.
 
8:44 PM
I bought like ten cool names and only got one of them
 
I just assumed name.com bought it, and now they're selling it at extreme markup
 
@Cereal never did ssh key
do i need to
 
I would think so
 
i guess probably
to use the git@heroku
 
grep.sh is available
Wasn't expecting that
 
8:47 PM
I don't want anything but margaineis.sexy
so I can have <wife's name>.margaineis.sexy
 
nice
 
lol@the book I'm reading
> Don't write code that already exists in libraries. Most data structures and common algorithms are already
written and residing in component repositories. Some of those repositories are commercial. Others are
open source and free. For military systems, there are libraries of classified components that can be helpful
in building weapon systems.
only in ada books would you see this :D
 
@Cereal How about fi.sh?
 
taken
so is fish.in
 
8:53 PM
I have somebody.codes
 
this is going to be the best site ever
 
if I ever finish it
er
I think my domain expired
 
!!afk he probably just doesn't like you
 
oh, ada has goroutines too
 
I swear I renewed that...
 
9:02 PM
@rlemon @Loktar ^
 
@FlorianMargaine rlemon is afk: he probably just doesn't like you
4
 
9:13 PM
@all How do you feel about case statement fall-through?
 
var dateLimit = "...",
    timespan = 1000;

switch (dateLimit){
    case "last-year":
        timespan = timespan / 30 * 365;
    case "last-month":
        timespan = timespan / 7 * 30;
    case "last-week":
        timespan *= 7;
    case "last-day":
        timespan *= 24;
    case "last-hour":
        timespan *= 3600;
        break;
    default:
        timespan = 0;
        break;
}
Is that code bad?
 
@Shmiddty I strongly don't care
@Shmiddty use an object
timespan *= obj[dateLimit]
 
do you understand what the code is doing, @Mosho?
 
do you?
 
9:25 PM
I wrote it...
 
@Mosho Can you explain what timespan *= obj[dateLimit] does..?
 
@Zirak why do we come here, again?
 
@Shmiddty This is the second time I've ever seen switch statement fall through logic
 
Better than drinking alone
 
@Shmiddty if you're the only one using it, not so much
if not... don't do that
 
9:26 PM
I added a comment, so that makes everything all better, right? ;)
 
not really :P
 
I suppose constants would probably be better anyways.
 
I just know I wouldn't accept that in my codebase
ouch
I just took off a hair of my nose, it hurt my eye
 
@Shmiddty I did something like that once, but had an array of time-spans instead.
Skipped values (year, month, etc) which were too large, started doing logic when it got interesting
 
What I should do is just have each timespan be the value of the option in the select it is being pulled from
 
9:30 PM
@Shmiddty oh I see now
was just glancing :P
 
hmm... but then the markup is kinda ugly
 
9:50 PM
omg
you so don't want to see that guy
seriously, the picture is horrible
 
@Shmiddty
function* getTime(dateLimit, timespan){
  var factors = [3600,24,7,30/7,365/30];
  for (var i = 0; i  < dateLimit; i++) {
    yield timespan*=factors[i];
  }
}
:>
 
@FlorianMargaine So why did you link it?
 
10:05 PM
to share how horrible it is!
 
@FlorianMargaine Why is there new? tour.golang.org/#30
Wouldn't I get the same result using v := &Vertex{}?
 
I love that Florian is the top of the list
 
durr
huh, that seems like a language flaw, actually
Or maybe not?
Yeah, why are basic types special
 
@Zirak pragmatic reasons
 
Lame
 
10:20 PM
yeah, generics is an often-found debate on the mailing list
 
If you guys wanna try and break this while I'm gone, or find problems.. suggestions, w/e. sc.grep.sh
If you guys wanna try and break this while I'm gone, or find problems.. suggestions, w/e. sc.grep.sh
 
If you guys wanna try and break this while I'm gone, or find problems.. suggestions, w/e. sc.grep.sh
 
Sorry, phone connection on a bus. Sends twice when I lose connection
 
@FlorianMargaine I'm not sure that even falls under generics, it's treating user-created structs as the same as your own. Unless Go treats "primitives" like bool and "structs" like most everything else differently
Which it does seem to do, otherwise slices would have a length and cap property: tour.golang.org/#34
 
@Zirak sorry, I didn't parse this sentence correctly
 
10:25 PM
You have "primitives" like int, bool, float64, etc.
And then you have "structs" or "objects", like user-defined ones, or maybe things like strings and slices (I'm not sure how they count)
Is there such a distinction?
 
yes
and indeed, nothing to do with generics, sorry
but for example, you can do that: play.golang.org/p/DtnXfT6uMM but not that play.golang.org/p/64wg6z2duZ
 
So are arrays and strings primitives, or objects?
aw
 
objects iirc
 
Is there a reason they don't have a length or capacity properties?
 
arrays?
 
10:27 PM
Either
 
because they're close to C's array, if you prefer
that's why we have slices
 
Which also have neither
 
@Mosho var timespan = parseInt(this.$('.filters .feed-date-limit').val(), 10);
 
oh, so slices are also just arrays, but with a nicer syntax for creating them.
 
10:30 PM
and you can range over them
@Shmiddty are you sure of your syntax?
@Zirak I assume the capacity is stored somewhere in a slice for the cap function to work
 
heh, this is pretty cool play.golang.org/p/jOurO_PmWG
 
yup, play.golang is really good
 
10:47 PM
> A case body breaks automatically, unless it ends with a fallthrough statement.
Finally
 
:)
my new irc client is telnet
so badass
 
You're weird
 
.... you're the one telling me that?
damn, I must be pretty bad.
that said, irc is pretty much the only protocol I know that you can easily read and use in telnet.
 
@FlorianMargaine did I miss something?
this.$(...) is a Backbone thing
 
oh, my bad then
 
11:02 PM
it's a shorthand for this.$el.find(...)
!!afk weekend time
 
11:58 PM
@FlorianMargaine hahah wth
 

« first day (1392 days earlier)      last day (3572 days later) »