« first day (1871 days earlier)      last day (3071 days later) » 

10:00 PM
fucking eh
 
eh bud
 
> TIL that while attending the University of Tennessee, Peyton Manning, pulled down his shorts and sat on a female trainer's face during an examination. He proceeded to rub his rectum and testicles on the woman's face until she was able to free herself from him.
Wow
reddit dun did it again
 
"rectum"? That's... inside of your anus
 
crl
10:07 PM
rectum means right in Latin, no?
 
damn near rectum
wait
I screwed up the punchline
 
If you're given a done function for async operations, will instructions after it still run?
 
rectum? damn near killed him
 
crl
so, assholes are right
 
@corvid yes
 
10:10 PM
my internet is so fucking slow right now...
wat... speedtest says I'm getting 50mbps down... why the fuck can't I load any videos, then?
 
@crl Google says "dexter" is "right" in Latin. (Hence "ambi-dextrous" = "both right" = "two right hands")
 
because left handed people are diseased
 
Sinister, actually.
 
@Nick because all your bandwidth is going to speedtest
 
no
 
10:13 PM
@Nick maybe the server is being slow? or some node that your packets are going to between you and the server is being slow?
 
It's not the server, because I'm trying on multiple servers/services, so whatever node that comcast is running is being a bitch
 
do a traceroute maybe?
 
@Nick ISPs prioritize speedtest traffic
 
crl
@Retsam it's 'right' in the sense of left/right, I meant 'right' like 'straight'
which is rectus
 
I thought that was "ortho"
 
10:16 PM
@crl so are you saying gay is wrong
 
crl
@Retsam good point, maybe synonyms
@KendallFrey :)
 
10:28 PM
Huh probably a dumb question... but how would you test a reconnect function on a socket? For example:
 
unplug the cable?
 
let server = await openSocketServer
MyModule.connect(server.address());
server.close()
// now my module should attempt reconnection, not sure how to test
 
newegg.ca/Product/Product.aspx?Item=N82E16813130779 somebody explain this. is it 2 USB 3.0 ports on the board and one additional plug for a case port?
 
@ton.yeung What do you mean by that? openSocketServer is a fake TCP socket server for testing my client
It would have a status set to "disconnected", and will retry connection every 5000 milliseconds for 5 times before declaring it offline
 
can you provide some quick advice on debugging javascript problems? under some circumstance, something happens that causes all the scripts on the page to be reloaded and jQuery gives the error about Synchronous Ajax being deprecated.
 
10:34 PM
@r3wt You gotta pass a callback to your ajax calls
 
@r3wt Google the error message <- all problems solved
 
if only
i've been through every line of my framework code, near as i can tell the problem is with the template library loading the template
 
@ton.yeung haha, then you use it some more and you realize how shit your life has become for using it.
How suddenly everything is global, every single $http requests dirty checks all the watchers in your entire app and there is no obvious opt out.
Suddenly, when you want to migrate your life is hard.
@ton.yeung you will.
 
stackoverflow.com/a/33558395/2476755 can some 10k+ users delete this answer? it hardly addresses the question
 
Angular does everything globally, all applyAsync causes digests.
 
@ton.yeung that's how Angular works. $http does $applyAsync so that your scope gets updated whenever an HTTP request happens (actually, when a promise resolves).
 
@corvid you could create a connection generator function that accepts an address, returns the status, and yield until you reach the limit or connect (if `MyModule.connect() is async)
 
@ton.yeung this means your data is always updated when data returns from the server - but since it has no dependency tracking - it checks all the data from the $rootScope on.
If you make constant $http requests, you have to step out of it.
Also, services are global mutable singleton state - just saying.
And there is only one injector - so good luck with that.
 
You guys ever have a conversation with someone, they say something that is contextually correct, but has no relation to the topic, then google search what they said and find it in the second or third search result?
 
@NathanJones I do want to do that, but can't use generators with this framework
 
10:43 PM
@Plummer yes.
 
@BenjaminGruenbaum Is there a term for this behavior?
 
@Plummer fuckwitery
 
@corvid writing a callback (or promise) pump on generators is 8 LoC.
 
Thank you.
 
@ton.yeung right, and jQuery works great for small projects too :D
 
10:44 PM
@corvid if you can use promises, you could manually create a generator using promises promisejs.org/generators
 
I'm not saying "don't use Angular", it's just far far far from a silver bullet for frontend, far.
 
@BenjaminGruenbaum more like a shit-shined bronze bullet
 
True.
 
@tereško any markdown writing tool for atom ?
 
@NathanJones his implementation are so ugly.
 
10:44 PM
@Abhishrek there i a markdown preview.
 
@phenomnomnominal lmao
@ton.yeung yup.
 
@Luggage err no preview I'd prefer a WYSIWYG
or snippet helper :D
 
ew.
 
@ton.yeung :P true dat
 
@NathanJones Ooo, that's helpful, thank you good sir
 
10:46 PM
I can't say for certain, but I doubt you'll find a wysiwyg for atom.
wizzywig.
 
So I will just use the preview. I have just been reluctant to learn markdown
 
Ugh.
 
@Abhishrek but markdown is so simple…
 
a preview next to the markup is the perfect way to learn.
instant feedback
 
ProTip: check for tp before sitting down.
 
10:47 PM
that reminds me, i need to stop at the store on the way home. Thanks, @rlemon
 
@corvid that may not be the cleanest solution...you could also try making a promise reducer that reduces to either a connection or whatever you return for connection errors. see: bluebirdjs.com/docs/api/promise.reduce.html
 
I have stockpiles of tp
 
let tryingToWorkMode = true;
 
When a good sale comes on I buy as many packs as they let me.
 
I can't use bluebird because this dumb library overrides native promise :\
 
10:48 PM
@corvid just spit-balling here, that might have issues too...
 
Bluebird isn't dumb
Bluebird is superior to native promises
 
i have created an npm package and i'm trying to test it locally
what's the way for that?
 
crl
he meant this = the other lib
 
wrong, can still use bluebird. You can name it something other than "Promise" when you import it and it's compatible with any other promise lib.
 
i have read this article podefr.tumblr.com/post/30488475488/… and it doesn't work
 
10:49 PM
but you don't need bluebird, most likely.
 
i don't want to publish my npm
just try it locally
on my machine
 
crl
npm help
 
try npm link instead.
 
i tried that too
 
Ask @FlorianMargaine
He knows all
 
10:50 PM
@rlemon bluebird is very good. This library, though, overrides promise so if you try to use bluebird everything gets messed up. If I could use bluebird most of my problems would be solved already
 
what library?
 
Orangebird
 
@ton.yeung okay learnt it
 
some library I used wanted "q", but I was able to tell webpack to give it bluebird and it didn't bitch.
 
@corvid why would everything get messed up
 
10:51 PM
ok
got it, i think that article has confused..
npm link works
 
@rlemon what @Luggage said
 
crl
not sure .promisifyAll would work over another promise
 
and you can easily reduce promises without bluebird
 
@Luggage meteor
 
10:51 PM
See. That's the answer to everything. Listen to Luggage.
 
crl
!!youtube Luggage
 
weeee
 
10:53 PM
wow i'm stupid
 
@Mosho I still have no idea how to make a promise chain without actually executing the promises
 
Ontario, CA US
This thing got me confused.
 
Canada is the 51st state.
not in order.
Ontario is a city located in southwestern San Bernardino County, California, United States, 35 miles (56 km) east of downtown Los Angeles. Located in the western part of the Inland Empire region, it lies just east of the Los Angeles county line and is part of the Greater Los Angeles Area. As of the 2010 Census, the city had a population of 163,924, up from 158,007 at the 2000 census, making it the county's fourth most populous city after San Bernardino, Fontana, and Rancho Cucamonga. The city is home to the LA/Ontario International Airport, which is the 15th busiest airport in the United States...
 
@corvid these promise chain examples might help: javascriptplayground.com/blog/2015/02/promises
 
crl
@corvid you can't
by def, a chain executes each step
 
10:57 PM
@corvid make a promise library. A simple one. You'll learn a lot.
 
@ctrl i think what he's looking for is a way to define a Promise without immediately "invoking" it
 
that's called a function that returns a promise
 
@corvid put it in a function and call it when you need to
 
1 message moved to Trash can
@Luggage Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
you b.
 
crl
11:03 PM
!!> var p=x=>new Promise(r=>r(x)); p(3).then(x=>console.log(x))
 
@crl "undefined" Logged: 3
 
Should you use promises for monitoring connection? I feel like that won't work well
 
> there is something poorly documented, but walking fire god use npm link. - @FlorianMargaine 's article, translated
no, promises are for one-time results. look at observables or just plain events/callbacks.
 
How to keep <div> in constant position when border show/hide ? jsfiddle.net/0bm4wq7h/20
 
you can do a promise loopy thing, maybe.
 
11:07 PM
As you see, I add some margin for doing that, but it doesn't work at well
 
crl
@Shafizadeh could use box-shadow
to have no pos changes
 
Yeah I think the thing I am doing falls under the "observable" pattern
 
crl
since outline-top won't work
 
yea, but just using a plain callback is fine for a one-off
no need to get all into observables which are just a special pattern for callbacks
 
@crl yes box-shadow can be fine. but actually I don't want to use it, because the most of my website's visitors use old browsers. So, is there any alternative?
 
crl
11:10 PM
not really, except an overlay div
 
@Shafizadeh keep the same border width and jsut make it transparent?
 
@Luggage hehe
french expressions don't translate very well :)
 
One big problem I am having is that it seems to call my on closed callback way too much without a timeout.
 
@Luggage wait .. I will check it
 
11:12 PM
not quite working the way I hoped..
@FlorianMargaine I'm going to start using that one in daily speech.
 
please do.
 
@Luggage perfect. thanks buddy
 
let retries = this.collection.findOne({ name: this.name }).connection.retryCount;
this sounds wrong
I think findOne is not synchronous...
 
It is in meteor, due to some futures sorcery
Or it's "synchronous", like await Collection.findOne
 
11:17 PM
ok
 
@Shafizadeh jsfiddle.net/9kgu13zc <- alternate transition settings, but it's a little 'shakey'
transitioning margin and border
 
@Luggage in the code you just posted a few minutes ago, you had a function that returned a value. If I'm using that value in a chain of promises. I prefer to wrap that value in a Promise so I can treat everything in the chain the same way. Do you have a preference?
 
That still looks wrong. findOne() likely returns a promise with additional properties (like connection)
so it looks liek you are firing off a request for finding a user, but not using it
@NathanJones a preference between always returning a promise or having the caller wrap in Promise.resolve() to promote? I don't have a preferenece and am not 100% consistent :(
 
crl
@Luggage connection is surely an attribute of the document in that collection (sry for mongo terms)
 
no, more likely a property of the request.
 
crl
11:22 PM
hmm...
 
like $.ajax(...).xhr or the like.
 
crl
I see what you mean, but don't think o
 
I'd put money on that being a promise/other object hybrid.
just based on that one line of code.
Not a lot of money, mind you.
 
crl
I bet 10 internet bucks
 
it's a mongoose 'query' object, that has a .then().
 
crl
11:26 PM
I remember he said he doesn't use mongoose, more the defaut mongo driver
 
ohh, ok
 
knife numero 3
bout 40% done
 
notbad.jpg
 
there are pits in it from where I'm not hammering flat
those go too deep to fully grind out
:/
 
11:35 PM
as long as it can kill
 
knives don't kill people; bears kill people.
 
Just came across this (cheap) idea - If you are using GitHub/GitLab, in 1 repo, create "n" number of orphan branches so you can keep "n" number of projects all tracked in there. LOL
 
sounds like a terrible idea
your repo would be so messed up
 
True
hahah
 
basically 90% of the benefits of using git are gone
 
11:38 PM
And GitHub/GitLab would be pissed.
 
may as well just upload your code to dropbox
 
But does Dropbox do version control?
like git
 
@RahulDesai why? projects are free
 
@FlorianMargaine I mean, in case of private repos.
 
I don't remember how many free projects I have...
must be ~150
@RahulDesai they wouldn't care
it's super cheap
and honestly, better go on bitbucket for private repos, at least you'll get real repos...
not your hack to not pay a cent
 
11:41 PM
Well, for private repo, you would still need to pay at least $7 for GitHub.
 
!!civilization or javascript
 
so use bb and it'll be free
 
@Shea civilization
 
@FlorianMargaine You mean, private repos are free on bb?
 
11:42 PM
wow
I am moving to BitBucket right now.
 
sure
I'm going to bed personally. I worked well on remon.
 
How do you go to bed personally? :D
 
Anybody got any advice on PSUs? How much of a margin should I have? Seems to me that most PSUs on the market are overkill, like what setup would actually require 750W of power?
 
get gold at least
in terms of wattage there are wattage calcs out there
 
can i create an npm package that has expressjs in it with some added features?
that scafolds expressjs
 
11:47 PM
@KendallFrey check out pcpartpicker.com
it's pretty good with showing the wattage you will draw
 
folks - if you were creating a new user-facing website and mobile app (in this case, a bird watching app), what tech stack would you favor?

The backend needs to be able to do autocomplete style searching based on a couple facets such as common and scientific name, and geographic location.

The front end will be a website and a mobile application.
 
Personally I always go gold or platnium rated PSUs as well
as for what would require 750 watt, lots of PC's :P mine at full load can hit 1000w but I'm running crossfire. 800w and above are generally for multiple gpus though
just depends on what you're putting into it
check brands too, I go with corsair generally, there are some other good brands as well, but also ones to avoid so check reviews, ect.
 
I read the specs for my GPU and CPU, and together they add up to less than 400W. So I'm curious where the rest comes in
 
@Loktar Mm yeah I want to be careful to not get another faulty one
 
11:51 PM
@KendallFrey eh I wouldnt go below 500w ever in this day and age
they are pretty cheap anyway and you want some headroom
I mean 500 watters are cheap
 
@KendallFrey generally it's a good idea to have headroom. The number you see on a PSU is max load - it's good to be under max load most of the time :)
PLUS GOLD certified :)
 
^ +1
 
higher certification = more efficient = runs cooler. Usually through fancier power switching such as better rectifiers and by using active components rather than passive components for switching
also stuff like solid state capacitors
 
that is my build for the most part
 
of course... I got a Fury X, so... yeaaaah. hahaha
 
11:56 PM
didn't add any peripherals
 
I'll probably get another 16GB of RAM at some point in the near future. shrug
 
yeah it is overkill tbh.. I've ran 32gigs for like 4 years now.. only benefit has been a ram drive lol
damn nice man
 
yeah
I just need to make a boot stick for mine so I can build it
the only thing that still needs to arrive is the CPU :(
and that's not getting here til wednesday
 
laaame
such a wait man
 
everywhere and I mean EVERYWHERE was out of stock of the i7-6700k
well I did order it on the 24th :P
 
11:58 PM
yeah I'm thinking of going Intel with my next build
 
yeah
I wanted Z170
dat M.2 sweetness
 
if the zen comes out before though I'll probably go with that
but intel has been crushing AMD for desktop processors :/
although their apus are pretty cool
esp the upcoming ones (upcoming in 2017 that is)
also grats on the furyx man!
 

« first day (1871 days earlier)      last day (3071 days later) »