« first day (2193 days earlier)      last day (2772 days later) » 

2:02 PM
So my name matching function doesn't work quite right, but now HR is telling me that this report they gave me had a SSN field, but they just stripped it out. Thanks for just now telling me, had a unique value this whole time!
 
Node 6 LTS starts tomorrow \o/
 
thank you
 
np
 
yeah thank you @rlemon
 
mah bad
 
2:14 PM
Hey guys is anyone able to help me figure an issue out that is baffling my brains XD
 
@rlemon I'll look at it
 
0
Q: Why does image not fill slide container, with 100% width/Height

RickyIf this is a duplicate apologies I could not find an answer. I am making a Pure Javascript Slideshow and have nearly done it. However I am facing an issue i cannot seem to resolve. I cannot get the images to fill the div with 100% width and 100% height. Which once done should slide all images se...

 
@Zirak line length and cancel Case
Er. Camel
Both not important
 
You're not important
 
Listen. I try.
 
user3119231
2:18 PM
good ol' cancel case.
 
Do you though?
 
I work on her, so ya?
 
That's a point
 
fight fight fight
 
This is a point .
 
2:19 PM
No fight only love @rlemon
 
Zirak and I fight with lube.
For profit
 
But we don't mix business with pleasure anymore
So no bodily fluids
 
What about clamps
 
guys, rain design laptop stand is phenomenal, highly recommend for anyone with a mac
 
is table not enough? :D
 
2:22 PM
way better, tables are usually too low
 
standing desk ftw
need it to be higher? grab a book or a pizza box
 
I'm too fat for standing table
 
> too fat for exercise
 
get walking table then
 
Swimming table, the most effective
 
2:26 PM
@corvid $50 for a laptop stand, hahahahaha
 
user3119231
@rlemon pizza box is bad idea -> crumb in the fan could cause a fallout
 
Or 4 fallouts
 
meh, anything cheap is always complete garbage and not worth owning
 
@corvid Like toilet paper?
 
I deg to biffer
 
2:28 PM
I need a function that can match names. Should I pass their name into regex or do something else?
 
@Maurize don't put it in the box nerd
:P
 
I'm thinking about isolating every word surrounded by spaces, then look for those words in the other name.
 
split the names into words, strip punctuation, strip titles
match the arrays
but bob joe and joe bob would match
 
user3119231
 
user3119231
ok
 
2:30 PM
Can't tell if bomb or science project clock
 
@rlemon OK I'll start in that direction, ty.
 
I like your notebook case
where can I get one?
 
@SterlingArcher Depends on who your imaginary friend is
 
@monkeyinsight Dominos
 
they don't deliver to me :(
 
2:31 PM
react seems so magical
 
@SterlingArcher remember that muslim student who got shit for building a potato clock?
 
@monkeyinsight Awal Garg will deliver
 
user3119231
@KendallFrey hm, I do. Poor dude. He forgot the sour cream
 
I don't actually remember what it was
Wikipedia says it was just a disassembled clock
 
user3119231
@KendallFrey "I built a clock to impress my teacher but when I showed it to her, she thought it was a threat to her," Ahmed told reporters Wednesday. "It was really sad that she took the wrong impression of it."
 
2:33 PM
Is it bad practice to mutate data from a Set during iteration?
onRemoveMark(id) {
    this.setState(state => {
        for (const key of state.selected.keys()) {
            state.selected.delete(key);
            delete state.marks[key];
        }
        return state;
    });
}
 
the saddest part was some kid gutted a digital clock, put the guts inside of a pencil case, and got national press for being 'an inventor'
 
I wonder how smart I am then, I took a rpi and a lcd display and programmed the lcd display to show local time
 
user3119231
2:36 PM
@littlepootis ok, you got protected. -.-
 
@corvid No, but check the docs to make sure it works as expected
In some implementations it doesn't
 
@Maurize I like your computer
 
old
 
sure, 24th sept is old
you're older
 
It's ancient in Internet time
 
2:47 PM
keep up with the memes, bro
 
Probably not the best way to match names, but appears to work for all my cases, jsfiddle.net/xcwqbhxy
 
user3119231
0
Q: PHP getting a value where key is between a range

Abdullah MallikIs there are any efficient way to get a value. where the key is between range? for example. i want a value where the key is 13 or any range in that array that includes 13. as you can see the second element's range is 11-25. so i should get that value. because 11-25 also includes 13 $array = arra...

 
user3119231
LOL first comment - classico
 
@Waxi Accidentally quadratic
 
@copy Say what?
 
2:50 PM
Use filter instead of that foreach
Also you should probably remove prefixes like "Jr" rather than everything with 2 characters or less
 
I'll look into filter, don't think I've used it before.
Maybe I'll make an array of things that shouldn't be there and just match for the string exactly?
 
user5915322
how can i do an if else (if something is triggered
 
user5915322
the do
 
user5915322
then do something *
 
user5915322
of am i high ?
 
user5915322
2:54 PM
or *
 
user3119231
You are high, my friend. Go home.
 
user5915322
thnx
 
user5915322
i want it m app to do something if something is triggered
 
Please type a clear to understand question.
 
Fuck me, are you still trying to do this?
 
2:57 PM
-6
Q: How to do it follow image in HTML only?

raghavendra t I want to do it like mentioned in the image using only html5/html. How can i do it?

 
@SterlingArcher The irony
 
user3119231
@BenFortune No, he's high, he wants to do it in hard mode.
 
@KendallFrey wat
 
@S.Oruc You're making an app for SJWs?
 
@SterlingArcher What you said is hard to parse
 
2:58 PM
-1 despite effort
 
@littlepootis haha
 
I wouldn't say harder
 
@KendallFrey no it's not ._. are you high?
 
@SterlingArcher it is tho
 
it really is
it's kind of a garden path sentence
 
2:59 PM
"a clear to understand question" clear doesn't work there
 
Gardens are pretty
 
It sounds like you're telling someone that before they can understand the question, they need to type a clear
 
a clear
 
user5915322
No @BenFortune That's done ( i passed to my frend)
 
that didn't help at all, guys
 
user5915322
3:02 PM
@littlepootis Nope
 
Now type <[^>]
 
@S.Oruc you are EXCLUDED
 
user5915322
?
 
!!clear
 
god the lag
the lag is real
 
3:10 PM
// loadOverview's `results` is used to render the Overview component,
// but how do i do a similar AJAX call for my other routes?
// Again, probably an XY question...
loadOverview()
  .then(results => {
    render(
      <Router history={hashHistory}>
        <Route path="/" component={Nav}>
          <IndexRoute {...results} component={Overview} />
          <Route path="/schedule" component={Schedule} />
          <Route path="/test-results" component={TestScores} />
        </Route>
      </Router>,
the entire app is 'readonly'
the only pattern is just "make request, use results to render component"
 
Is there any 'best practices' on running 2 functions in a single statement without caring about the return values? Is doing foo() & bar() perfectly valid? (Would any operator work in place of the &?)
 
@Mico why would you short circuit them?
 
@Mico , or ;
 
@Mico foo();bar(); ?
 
3:14 PM
^
 
I was thinking to do something like this.lock = () => this.save() & $rootScope.currentEvent++;
with ; needs the { and } 's :P
 
that won't do what you want
 
if you have more than two.. can always use an array [foo, bar, baz, lolz].forEach( fnc => fnc() );
 
really?
 
@rlemon & doesn't short circuit
 
3:15 PM
foo(); bar(); is by far the best way
 
So basically this.lock = () => this.save() & $rootScope.currentEvent++; vs ` this.lock = () => { this.save(); $rootScope.currentEvent++;}`
 
if you need to use a lambda, foo(), bar() can work, but it's ugly and rarely used
 
should i make this an actual SO question?
 
@Mico this.save() & $rootScope.currentEvent++ will bitwise-AND the two results and return that value
 
3:16 PM
f1(), f2(), f3() works too, but why would you write that?
 
Well in this case, I don't do anything with the return values. So it would work.
 
@littlepootis gl in uglifying/minifying such lines
 
@littlepootis foo(bar())
Iz best
 
thats an interesting idea @rlemon :P
 
Pls dont
 
3:18 PM
we have an operator for this: ;
 
this.lock = () => { this.save(); $rootScope.currentEvent++;} it is then. :o
 
; is the and-now-for-something-completely-different operator, also known as the larch operator
 
using lambda like that is counter intuitive and not meant to be
lambdas are for inlining stuff without the need to create explicit functions by keyword, but in such a case... always go for function.. just for readablity for gods sake
 
@jAndy unless you want a predicate that always tests some relation between properties on this, or in that case, does something on this and increments something else
 
this, ^
 
3:20 PM
what do you guys think of this method: reddit.com/r/reactjs/comments/3itdpe/…
 
lambda does more than just 'inline the method'
 
defining a new method with lambdas is perfectly reasonable
 
this.lock = this.lock.bind(this);
no one likes doing this
 
well granted, the access to this might be an exception, pretty much the only one
 
Yes, atleast when working with angularjs, when using lambdas is super, no need to mess with this.
 
3:21 PM
we hate it enough that there's a proposal to make an operator for binding methods
 
::
so sexy
 
alwage name your functions
 
C++ programmers will love it
 
lamda is like any other tool in js; it's great if you use it correctly
 
..not
 
3:22 PM
But actually, I got an better idea. Return a promise from save(), so I can do
`this.lock = () => this.save().then($rootScope.currentEvent++);`
 
what will the debugger print if some exception is thrown within that lambda actually?
 
.then(() =>
 
this.lock = _ => this.saveAndIncrement();
 
anything from use?
 
just write a helper
 
3:23 PM
@jAndy it generates a name for most functions
 
@jAndy it would be an (anonymous) function
 
the debugger (and runtime and everybody else) doesn't care if you use a lambda or the function keyword
 
@BenFortune right
 
chrome will still run up mostly-accurate stack traces, regardless of which syntax you use or whether you name things
 
@ssube but you can create a name using function regardless if used as declaration or expression
 
3:25 PM
@jAndy if you need an explicit name. Chrome uses the name of the variable you're assigning to otherwise, which is usually more than good enough.
 
Named obese arrows for ES9
 
What do you need a name for if you can drill directly to the line with the debugger
 
There were cases were I loved to know where an exception happened.
 
function names are for stack traces in the log, that's about it
 
^
 
3:26 PM
yes it makes reading a stack trace.. a lot.. sexier
 
@jAndy Check pause on exceptions
 
that shit never really worked great for me.. at least not on sites with huge amounts of code
 
@copy doesn't really work when the error is occuring on a production machine running node, or a client browser with some logging service
 
@copy if you're using a debugger, you're already fucked
if your logs don't have enough info to debug, have fun fixing prod
 
So you push code to production with bugs just to let your logs tell you what's wrong?
 
3:28 PM
Good point
 
of course, production is the best place to test things
 
there are alternatives?
 
let the customer fix it
 
I log all of my jquery with ng-logger and I now have more bugs
 
fix it? thats funny
 
3:29 PM
@rlemon boxed software sold from a shelf
 
@ssube you mean "clients" >??
 
However, I think it costs you literally nothing to name all your function expressions but you gain a ton on exceptions
 
@SterlingArcher this is fucking sick
@SterlingArcher new band for me thanks bruh
I've never listened to them lol
 
@rlemon if you test in prod, customers will complain that prod is broken and you end up fixing it. If you box and sell your software, you can be out of state by the time they find out it's broken. :D
 
3:32 PM
Haha I listened to them back in 2011. Check out "Visions"
They've really improved
 
@ssube do I need a sarcasm sign? :P I headed a SQA department for 4.5 years
 
@SterlingArcher ah, now your fascination with skinny jean bands make sense, you filthy hipster <3
 
I'm just lazy now that I'm a developer
 
that is how developers go
 
@ssube lol I was emo af in middle/hs
 
3:33 PM
I kind of want to give up being (dev)ops and go back to being a dev, so I can enjoy coding at night
 
so what are you doing now? :P
 
me?
 
Hi guys, anyone from NYC who would be willing to help me understand javascript a little bit more? We would go over my two javascript files and see what bad practices I do. Beer would be on me!
 
@JakubKohout if you can post some specific questions, I expect plenty of folks here would help you sans beer.
 
cc @Neal ^
@ssube fuck you I want beer
 
3:37 PM
@SterlingArcher nice
 
@Loktar shit dude, "The Virus" is also heavy af
These guys have really gotten sick
 
they got sick and that caused them to gain weight?
sounds like they should go see a doctor about the sudden obesity and any tourniquet-type business those pants might be causing
 
@ssube I basically described my problem here. https://www.reddit.com/r/codereview/comments/57t319/javascript_coffeescript_bad_practices_check/

I worried that I'm using my init function in a weird way
@SterlingArcher No wonder because you are the same alcoholic as your mother! :D
 
omg lol
 
3:40 PM
Mom doesn't drink much :( Occasionally she'll have some of my beer but she doesn't like alcohol
 
@SterlingArcher Archer Joke.... No disrespect for your actual mother
 
@JakubKohout Why coffeescript?
 
@littlepootis teascript is too fancy for some people
 
3:41 PM
dude why
 
@rlemon took me a second to notice the shoop
 
lol
 
goomp
 
I typed in emo hair and @SterlingArcher's current hairdo showed up
 
is this revenge for texting you while pooping
 
3:41 PM
@SterlingArcher have you considered touring with the Black Veil Brides?
@rlemon the beard makes it weird, though
 
@littlepootis because I thought it's nice and fancy :D
 
and ded
 
--------------------------------------------------^ @SterlingArcher
 
why only one hair style? emo hair is all about layers
paste a few more on there, really make it legit
 
@littlepootis yea I agree that now when I understand javascript slightly better I would be better off without it. I used coffeescript because I didn't know how to write modular code in javascript.
 
3:43 PM
@JakubKohout if you're learning and want to make things more clear (i.e., more explicit), I'd suggest TypeScript if you want to use any other language, but the recent versions of JS are pretty good now.
however, convincing people to read CS is tricky :P
 
coffeescript is dead
was a nice toy for a while.
 
@ssube I agree but for now that doesn't solve my problem :)
 
I escaped form the Coffee-cult. Take it from me.
 
@rlemon shit I wish I could pull off that first one
I'm growing my hair back out. No more brother to badger me to cut it lol
 
@SterlingArcher plaid shirt and desert boots without socks.
 
3:45 PM
@SterlingArcher define back out
 
you can pull it off just fine
 
swear to gawd m8 if you post pics with a mullet or creeper hair, I'm coming to VA and we're settling this like men
 
fml I don't have any of my old pics anymore
My hair was long af
 
we all had myspace hair at one point, but myspace is gone now
plz don't bring it back
 
I have hair down to my lower back when i had hair.
 
3:46 PM
I mean my undercut. Short sides, long top
 
ohh man I have some pics of me with a mop
I don't think they're on this pc tho
 
Does anyone speak perl?
 
i.stack.imgur.com/Yty8v.jpg . Here's one with long hair
 
Need help deciphering this piece of code.
 
messy hair too jesus
 
user1596138
3:49 PM
@SterlingArcher Tag that NSFW, jesus. Now you got every one of us running around at the office with a hard on
 
i.stack.imgur.com/HedpJ.jpg . @Jhawins check out the muscle gainz
 
user1596138
/me goes to the bathroom where I can view it in private ;)
 
user1596138
!!afk being gay for Sterling
 
Maybeeeeee a month and a half between those 2 pics?
 
user1596138
3:50 PM
Lol nice dude. I have lost weight each month this year
 
A face and a half
 
user1596138
Not in a good way
 
I've been doing extra weights for shoulders trying to get gainz on my traps
Im getting big son
 
user1596138
I will try again over the winter
 
user1596138
And quit smoking. Who knows what I'll really do tho lol
 
3:52 PM
Quitting cigs was harder than quitting drugs tbh
 
get a cheap vape, srsly
 
Like waaaay harder
 
user1596138
@KendallFrey how can you do that with an LED strip? Not just your average RGB strip?
 
keeping the habit and nicotine but getting rid of the cigs made it super easy
 
@Jhawins It's addressable
 
user1596138
3:53 PM
Mine has segments, but I don't see how I would light up one segment more than any other
 
@SterlingArcher then... don't be a quitter?
 
^ nicotine is addictive but it's not bad for you.. no worse than caffeine
 
user1596138
Ahhh makes sense.
 
@Jhawins what kind of leads does it have? If it's just got R, G, B, and Gnd, you basically have 1 LED repeated
 
user1596138
That's cool, might have to swap out the lights in my truck for some like that someday. I just have your average RGB strip in multiple segments
 
3:54 PM
Mine is a WS2812 strip I think
 
user1596138
@KendallFrey lol yeah
 
@SterlingArcher well, it is, but we consume much less nic than we do caff
 
it has a microcontroller in the led itself
 
so relative they are on par
 
user1596138
Yea mine's just LEDs in series
 
3:54 PM
Even all the sick dank vapes I do? @rlemon
 
and it communicates via a serial connection
ironically, less leads
 
@SterlingArcher vape for a half hour and get 1mg of nic. smoke one cig and get 2mg of nic. drink a coffee and get 40mg of caff
 
user1596138
It looks dope af tho, they go down to like ~450nm so things glow like a black light lol
 
what kind of coffee has ohh, you corrected
 
@Jhawins I have yet to find an RGB LED that doesn't hit a little bit of the blacklight range
 
3:56 PM
oh whaaaaat? OpenBSD doesn't support bluetooth?
 
even the phillips hue bulbs I have around the house can make a decent blacklight
 
@towc omg, you moved onto openbsd, now?
linux was too mainstream?
 
Oh wow. Yeah I smoked like 4 cigs an hour
 
@Jhawins That makes it sound like the wavelength is adjustable, which isn't how LEDs work
 
@Luggage wait till I do gentoo (this is a joke)
 
3:57 PM
btw, i found a pic of you online, @towc
 
no but seriously, openbsd so far seems to be the best thing that happened to me. But then it doesn't support bluetooth?
 
@towc wow
 
user1596138
@KendallFrey I'm working so excuse terrible phrasing.
 
@littlepootis that was a joke
 
@towc what have you done to your life that openbsd seems like a good thing?
 
user1596138
3:57 PM
The R+B setting looks like a black light
 
can anyone explain line 3 to me? I under stand is number is evenly divided by 2 but what exactly does === 0 after mean
 
I've done gentoo. It;s like normal linux but you wait forever for everything to build
 
@towc OpenBSD is not a desktop operating system.. it just isn't...
 
user1596138
ANd actually makes things glow. There's some weird lensing in my strip so you don't get two distinct colors, they totally blend (perceived anyway)
 
@Luggage just -bin
 
3:58 PM
If you want a BSD, get macOS.
 
is that === 0 setting it to true? is 0 true 1 false in javascript?
 
Yup.
 
@Tantrik modulus operator. === is typed equals
 
user1596138
@kendall And I can adjust the intensity of each color. So in a way you can change the color, obviously not the wavelength for real.
 
3:59 PM
Gentoo makes it easy for you to build from source.
 
Look up comparison operators @Tantrik
 
@ster
 
@Luggage OS X is as customisable as my skin tone
 
@littlepootis but but but
 
@SterlingArcher yes I understand those but what does making it equal to 0 do
 
3:59 PM
yeah my strip has 8-bit intensity resolution
 
It's not
 
or if equals
 
I think it uses PWM
 
@towc No. Really. It isn't.
 
3:59 PM
Stop lying to yourself.
 

« first day (2193 days earlier)      last day (2772 days later) »