« first day (1552 days earlier)      last day (3398 days later) » 

user1596138
5:00 PM
I manage my smoking a lot better when I have a computer. If I have no computer I have to revert to outdoor hobbies (under / around things with engines) and ofc I smoke down like a chimney while I work in the shop
 
and I know what is wrong
who here has worked with Chrome extensions and chrome.storage.sinc get/set?
 
@rlemon (By the way: I ended up buying the theme for $14)
 
\o/
ok well I'm going to lunch
I'll have to finish the extension after food
 
user1596138
@rlemon $179?
 
!!afk food
 
user1596138
5:04 PM
jesus fuck
 
@Jhawins worth every penny
 
user1596138
That's ~800 cigs
 
user1596138
Maybe after I have a new job lol. Next year
 
Kind of entertaining reading to the end of the article criticizing Angular and then it's immediately followed by "this site is sponsored by Google"
 
@Jhawins when I was a pool boy I would smoke almost a pack.5 per day
chain smoking dude it was bad
 
user1596138
5:09 PM
I've only smoked a full pack in a day a few times. Usually I get a pack every other or every 2 days
 
As of last week a pack would last me ~4 days
 
@Jhawins for me, that was like 3 weeks of smoking
I smoked a pack a day - the investment has already payed for itself.
 
Hi everyone, I've got a quick question, I want to display a popup window to users once they enter the site, I am using this: github.com/brettdewoody/jQuery-Interstitial but I want to make it display each 2 months.. so there is no need to keep referencing both the .css and .js files all the time in the master page, I need to use it per user each 2 months.. is there a recommended approach?
 
In college, a pack lasted a day but I only smoked half.. the rest were somehow bummed out
 
user1596138
I went to visit my brother 4 hours away with my dad, dad bought a pack of smokes on the way and had 1 left when we went to sleep lol and ofc starts trying to bum my smokes haha
 
5:11 PM
@Jhawins parties will do that to you
 
user1596138
@ssube Or getting dumped haha shit I don't party
 
You should party, it's good for you.
I've been having an awful week at work, but luckily, a buddy is having a two day rager out in maplehood, which should sort that right out. :D
 
user1596138
Is it?
 
user1596138
I would party but fuck alcohol and if you're not drinking you're not partying ig
 
5:15 PM
That's true, but it's a great opposite to help balance out working constantly.
 
Yeah a party without booze really isn't fun
 
Plus, ladies (and homies).
 
unless it's a Captain Holt party
 
user1596138
I have my lady and booze is... Eh it's not fun to me.
 
user1596138
So I'm probably fucked in life haha
 
user457812
5:16 PM
Is there a mostly preferred promises package on npm or should I just go with Q and be content with that?
 
You may accomplish things, but you'll never be fun, so it won't matter. :|
 
user1596138
There are other releases haha
 
I'm a different kind of drinker though. Through various experience, I somehow know exactly when I've had enough to drink. So I always have fun and don't make an ass out of myself
 
user1596138
I find that 1 meth a day works for me // this was a joke
 
5:17 PM
I'm loose, social, and shockingly a smooth talker
And probably the best beer pong player you guys have ever seen
No lie
 
user457812
I'm a boring, lightweight drinker, but it apparently makes me extremely talkative and laugh at everything.
 
@SterlingArcher If you're ever in MN, we'll play.
I'm ok, some of my buddies are great.
We're all fantastic at flip cup, too.
 
I love flip cup
 
Only problem is, I hate beer.
 
5:19 PM
Can't drink more than like 6 before I get sick, without getting properly drunk.
 
We had beerlympic tournaments at my house in college and my brother and I won 4 years straight
 
user1596138
lol you and your bro are weird
 
Now, gimme some party liquor... whiskey, vodka, shine, turpentine, acetone, brake cleaner
 
user1596138
I have 9 siblings and I don't do anything with any of them haha
 
We had timed beer bongs and cup chugs as events. His beer bong time was 1.12 seconds, mine was 1.56 seconds. Our combined time for the cup chug was 7.28 seconds and the next closest time was 14.85
 
5:20 PM
I guess guys here are not interested in JS stuff? :S
 
user1596138
Well I have one really dumb brother I let help me with stuff haha
 
(He chugged, slammed, I begin, not at the same time)
@BrittanyRutherford we are, but we're all well versed with each other so we get off topic a lot
 
@BrittanyRutherford If you have questions, they'll be answered.
If there are no questions on the table, everybody gets bored.
 
We can discuss document.getElementById all day but we all know it, so there's no point in talking about (logically speaking)
But we answer questions as we can
 
I've asked one :(
 
5:22 PM
I would answer but I'm unfamiliar with said plugin you're using
 
the idea is not about the plugin, it's about that I don't want to load certain js or css files everytime the user opens the site, they will be loaded once each 2 months per user, after he clicks: Not interested to participate in the poll. It won't ask him for it for 2 months, after that it should ask him again..
 
user1596138
@BrittanyRutherford This is a server side problem
 
my question is, is it ok to keep loading these js and css necessary for the poll popup all that time?
or is there a way to make it like lazy loading using require.js or something?
 
@BrittanyRutherford should be possible.
 
+ cookies
 
5:25 PM
Have the server (or client, if cookies) make the 2 month check.
 
user1596138
@BrittanyRutherford It is perfectly fine. You won't find a fool-proof solution to this at such a long interval unless you track it server-side. You can do it per-device/session with cookies, sure, but what about the user logging in from somewhere else?
 
If you should show the box, require() your JS and CSS for it, and when they've loaded, then make the calls to insert it to the DOM and display.
 
You could dynamically load the script based on cookies or localstorage
Server side would be best, as @Jhawins said. Client side storage is easily destroyed
 
I guess users will be ok with it, as it's an intranet
so I don't think they will change laptops or something
does localStorage support time intervals?
 
user1596138
I would just load the script anyway. Do you use the same plugin for popups anywhere else on the site? Or is this your only popup
 
5:27 PM
ooh, who wants to flag a copy-pasta answer?
2
A: jQuery increment variable in recursive function

ssubeYour function will recurse immediately, dispatching all of the animation requests around the same time. To stagger them, you should recurse with a timeout: $(document).ready(function() { var slide = 1; nextSlide(slide); function nextSlide(slide) { $('.conte...

 
it's the only popup am using :( that's why I think it's unnecessary to load it all the time
 
user1596138
@BrittanyRutherford You can use localStorage to store a time and then compare with it, if that's what you mean. But you can't count on the value staying there for 2 months lol
 
@BrittanyRutherford "time intervals" are long integers
 
user1596138
2 months is a long time to try and store something client-side... Jus sayin
 
even a cookie/
?
 
user1596138
5:29 PM
For sure.
 
so what do I do?
 
user1596138
Like I said, you'll need to handle this server-side. You could log the last time the user was alerted in your DB in some way.
 
and I check that on page load each time?
 
user1596138
If you want it to be fool-proof that is. You can totally do it client-side if you want
 
user1596138
Check on authentication probably
 
5:31 PM
@BrittanyRutherford your files should be cached anyway
 
If you have some log of logins, then you can compare server-side and use that.
 
user1596138
Store the data in the session
 
Otherwise, it's reasonable for the message to pop back up after the user clears their cookies.
 
I wouldn't worry about a user downloading one more js file, especially on an intranet site.
 
That shouldn't surprise anyone.
 
user1596138
5:32 PM
Yeah honestly you're not going to gain much. I would just leave the files
 
aaha
ok :D
I love easy lazy solutions haha
 
well a good caching strategy isn't lazy
 
like what?
 
your users shouldn't really be redownloading js files everytime they hit the site anyway
 
I was thinking of just leaving the files there and check on each page load with the cookie
 
5:34 PM
what's protocol for opening a topic on meta? If some user has a couple answers, all of which are copies of other answers on the same Q, is that worth it?
 
@BrittanyRutherford here is what Google recommends when it comes to using browser caching developers.google.com/speed/docs/insights/…
> We recommend a minimum cache time of one week and preferably up to one year for static assets, or assets that change infrequently. If you need precise control over when resources are invalidated we recommend using a URL fingerprinting or versioning technique - see invalidating and updating cached responses link above.
 
so the cookie would store today's date, and each time I check if it's today + 60
 
user1596138
@BrittanyRutherford Yeah I'd leave the files and determine whether or not to show the popup with a cookie. It shouldn't be a problem if the cookies are cleared and they get another alert early, right?
 
the cookie is to determine if you should load a file?
yeah the pop/cookie thing is fine, but the file loading I wouldn't worry about like @Jhawins said
 
@Jhawins yes it's alright
 
user1596138
5:35 PM
Your other option is to set the value server-side and you could set a cookie based on that value
 
@Loktar cookie to determine if I should show the popup
 
do users login?
is this popup pretty important?
 
@Loktar they're already logged in to the intranet
 
I mean that would be a determining factor between client vs server
 
well, it's stupid popup :S but important to the PM
 
user1596138
5:36 PM
But yeah we don't know if you have a user table or authentication of any sort or if this is really per-device.
 
if your users change machines all the time and they get annoyed with popups do it server side, otherwise just use the cookie
 
@Jhawins I won't care about per-device thingy as it's an intranet, they just login from their work
 
user1596138
But they have individual accounts?
 
yes
so each user has a desktop @ work
 
user1596138
i.e. you aren't calling an htaccess "secured" directory your intranet?
 
5:37 PM
with their username password
@Jhawins it's a SharePoint internal site
 
oooh Sharepoint bleh
yeah haha might be easier to just do it client side in that case
people expect weird stuff to happen with sharepoint anyway :P
 
@Loktar hahahaha
I hate SharePoint
but I am stuck with it
 
user1596138
 
@BrittanyRutherford everyone is, don't worry.
 
^
 
5:39 PM
I wish Google have made it
 
Thus goes the enterprise.
 
unless you are in management then Sharepoint is "awesome"
 
would have been much easier
and I hate C#, so I tend to do everything JS (which am still beginner with)
 
it would be externally hosted, perpetually in beta, have some weird per-user pricing scheme, and be discontinued after a few years.
 
my main issue with Sharepoint was just being restricted
 
5:39 PM
P.S: I finished college 1.5 yr ago
 
@ssube hahah I was typing up that almost exactly
 
The only feature there that's attractive to the enterprise is a weird, indecipherable pricing scheme (thanks oracle)
 
I dont think its terrible as a document repository honestly
it just falls apart when people try to use it for more than that
 
gitlab's wiki makes for a pretty sweet document repo
 
you mean.. when people try to use it..
 
5:40 PM
its a step up from random shared directories out on some drive anyway
also ugh the check in/check out stuff is annoying I guess
I was a "Sharepoint admin" which mostly involved force checking in files
 
so guys, just to sum up my idea inside my head :S
I make a cookie, and check the cookie each time the page loads?
 
user1596138
@Loktar I had a .45 pistol explode in my hand once. That's what happens when you buy the mexican ammo // facebook :P
 
haha
yeah Century Arms apparently have a record of blowing up
that video was crazy though
 
Twilio sucks at support
 
5:42 PM
luckily that guy was alright
 
I gotta tell you
 
@SterlingArcher NO IT DOESNT
 
I don't know how you will live w/o <$>
 
they gave me full refund in 2 hours
 
user1596138
@BartekBanachewicz Haskell nenur nenur nenur
 
5:42 PM
when i switched to plivo.
plivo is cheaper by far.
 
where is $ going?
 
@darkyen00 I opened a support ticket 3 days ago and no response
 
@Loktar <$> is an operator
 
@SterlingArcher us the little blue birdy
!!should i blow their minds tomorrow or let go they are just kids
 
Twitter?
 
5:43 PM
@darkyen00 let go they are just kids
 
:-(
!!should i sleep or work ?
 
@darkyen00 work
 
@BartekBanachewicz What does <$> do
 
!!work on college or work on work ?
 
@darkyen00 work on work
 
user1596138
5:44 PM
!!die
 
@Jhawins Registered; need 1 more to execute
 
:O WHAT THE HECK !
 
@copy it's an infix fmap for applicatives
 
this bot is like mom !
 
or, in human
p : Promise a
f : a -> b

(f <$> p) : b
 
5:45 PM
@BartekBanachewicz the only words I understood there was "copy" "it's" "an" and "for"
 
same here @SterlingArcher
 
4/7 ._.
 
@SterlingArcher you don't know what "infix" means?
 
I just nodded in real life, pretending to know ofc.
 
what about "postfix" and "prefix"?
 
5:45 PM
isn't "pre" a prefix?
 
@BartekBanachewicz So, map
 
user1596138
@Loktar on a related note Indiana is making it so we don't even need a permit to carry. Because fuck yeah MURICA why not. Crazy bastards
 
@copy oh right, JS map is more general
forgot about that
 
@Jhawins conceal or nah?
 
@Jhawins yeah not sure exactly where I stand on that, I see it both ways.
 
user1596138
5:46 PM
@SterlingArcher Do what the fuck you want lol. Constitutional carry.
 
Fuck yeah
 
If you are legally allowed to purchase a weapon why can't you carry it (concealed), however I don't like people w/o training just walking around with weapons
 
@SterlingArcher "pre" is a prefix of "prefix"
 
there are a lot of wanna be Bruce Willis's out there.
 
user1596138
We don't differentiate between "concealed carry" and "open carry" they are the same in Indiana. Carry is carry.
 
user1596138
5:47 PM
@Loktar Not like they can hit jack shit anyway. They're just a walking liability haha
 
(+ 2 2)   <- prefix notation
(2 2 +)   <- postfix (suffix) notation
(2 + 2)   <- infix notation
 
There was a homeless black man on the metro today, talking to another presumably homeless man via walkie talkie, about how he was going to "beat him till he can't wake up" and "you better not cross the street because im going to hit you like a dump truck"
He was pretty aggressive but the walkie talkies ruined any menace
 
@BartekBanachewicz Neat, but not very explicit
 
user1596138
Most people around here have snub nose POS. A lot of people have .22s :'D
 
He got off the train and I started laughing while people were crazy scared
 
5:48 PM
@SterlingArcher did he at least say "over"?
 
@BartekBanachewicz oh cool! Informative!
 
> Gonna beat you till you cant walk... over
> Oh yeah try it!! .. over
 
@Loktar NO HE DIDNT HOW UPSETTING IS THAT
 
@copy welp <$> is just $ for contextful applications
 
hahah
 
5:49 PM
Like who threatens somebodies life via walkie talkie?
 
user1596138
Hahaha
 
yeah.. and why would you even give a walkie talkie to your enemy
 
It was most likely a 2 way so these guys were easily within 100 meters of each other
 
user1596138
I'm picturing being threatened over Voxer
 
@BartekBanachewicz Oh, right
 
5:49 PM
> here bro take this so we can talk to eachother
 
main = do a <- head . unwords <$> getLine; print a, for example
 
@BartekBanachewicz It's not asynchronous though, and Promises are
 
I did find out what metro passengers were cowards though
 
@copy asynchronicity is-a context
 
Several people slinked away from him
 
user1596138
5:54 PM
@SterlingArcher lol oh do you see the same people every day?
 
@BartekBanachewicz Ok, good to know
 
user1596138
Man I feel like compared to you guys I may aswell live in the fuckin woods haha. I don't interact with a stranger one single time some days.
 
@copy to expand on that a bit: you know of course that IO is a context. Running asynchronously is a subset of IO.
 
@BartekBanachewicz Isn't a something that is still packed in that example?
 
@Jhawins most I didn't know, but I recognize a few people
Like I see this pretty girl who rides my bus at 7:10pm sharp everyday. But sometimes I'm early or late so I only see her a couple times a week
 

« first day (1552 days earlier)      last day (3398 days later) »