« first day (2690 days earlier)      last day (2273 days later) » 

12:17 AM
@BenFortune getcrankshaft.com
 
@Luggage Hot damn, where'd you find that?
 
hacker news
 
I managed to compile openauto and aasdk manually, but this is pretty cool
I need to find a decent double din case for the pi
Not sure it's ready to replace my android stereo yet though, until there's some basic canbus functionality
 
s/find/print/
 
@KendallFrey I was actually shopping for a 3d printer, until I needed to buy some new glasses :/
 
12:23 AM
find the metal part, print new face and adapters
i thought you had one
 
@BenFortune print em :D
 
Nah, I was looking at them a while back
Ended up spending £360 at specsavers yesterday
 
starts printing a lens grinder
 
Honestly, you'd make so much money
I bought my first ever pair of prescription polarized glasses, I'm excited
 
for what
 
12:28 AM
idk, driving and shit
My eyesight is so bad, I need to get the lenses thinned to fit in the frame without them looking like swimming goggles
 
Hey yall
 
are those the ones that let you see through ladies garments, or the ones that block light but only and some angles?
 
why polarized though
you'll be permanently sunglassed
 
I bought 2 pairs lol
One normal
 
12:32 AM
Howdy JS enthusiast. I have a question regarding js. jsfiddle.net/7cxbfn59
I can not understand why the NON-commented out code, does not do the same thing as the Commented code
 
That right there is an empty fiddle
 
Hey Ben, could you recommend a code sharing site?
 
You linked one
 
^^I think that one is working correctly. Thank you in advance for taking a look at it.
 
@JamesP. What do you think % does?
 
12:38 AM
console.log(6%10)
6
 
That did not answer the question
 
console.log(10%10)
0
It performs long division and returns the remaineder
remainder*
 
There's nothing in the second snippet that does that
Maybe you need to explain why you think they should be the same
Also you should show an example of how they're different.
 
This is the style of looping through an array that I learned using java. I was hoping that they would be the same for javascript
^^this here is the code in Java, that I used for an android mobile app a few months ago. Idk if you will understand it, but it is the same logic I am trying to implement in JS
 
[redacted]
 
12:42 AM
@ShrekOverflow You okay buddy?
 
one wraps around, one does not
 
@BenFortune wrong window :P
 
lol he redacted
 
Angular 1.1.1
boy thats older than React
also there is no code on the snippet
 
@Luggage when the numerator of the % division matches the denominator, then the answer will be 0, resulting in a loop
 
12:44 AM
!!> 10 % 10
> 0
 
she's still out
 
What happened to her ?
 
lemon wasn't at work, she'll be back up tomorrow
 
oh ok
 
@ShrekOverflow the first snippet I could not figure out how to share
 
12:45 AM
right, both 'wrap'.
 
gist
What are you trying to do ?
there are morbidly enough ways to loop an array in JS like Java
some as ugly as Java too
 
People still use that crap?
 
Cofffe like really?
 
evidently
covfefeScript
 
12:47 AM
How is that a loop?
 
it's not. it gets the next and previous IDs for the current position
 
I forgot to mention that $scope.artists.length is a JSON data array
Not sure if that is the correct vocabulary
 
work through the math and find out why it's differnt
 
@JamesP. run it slowly with values
 
if you know $routeParams.itemid and $scope.artists.length you should be able to do that all in your head. if not. console.log()
 
12:49 AM
also 😉 is your java variable unsigned?
 
or yea, use proper break points
 
also my head is insanely light on the back of my neck
and I am insanely confused
so my advice might be cryptic
 
when running kubectl run, is there a way I can pipe all current environment variables into my container instead of defining them all one by one?
 
sure
do you want to pipe your Google API key
and whatever else is in env without knowing?
 
@ndugger xargs?
 
12:52 AM
yeah
 
xargs
 
didn't know about that. I'll look it up
 
don't say that I didn't warn ya
we did, we did
 
I'll set up proper config and secrets later. Right now, I'm just trying to focus on writing code
 
xargs is just a way to repeat a command with a list of inputs
 
12:56 AM
env | sed 's/^/--env=/g' | xargs kubectl run
 
that doesn't do kubctl run for each one?
ohh, that's what sed is fixing?
 
yeah sed is concating the args
My regex is shit, and they probably need wrapping in quotes
 
@BenFortune thanks, boo
 
I'd test that lol
 
for sure
 
1:03 AM
I was thinking of xargs -I, which runs the command once per item.
 
I like how in TrollLand nobody gives an absolute fuck about cybersecurity including Scam500 companies.
 
the only thing trollland cares about is jquery and shitty outsourced call centers
 
@Luggage The idea was that It would be a loop when the numerator of Number($routeParams.itemid) + 1 is equivalent to the denominator of $scope.artists.length, then the % expression will result in a zero. For example, when the current itemid is 9+1, and the array.length is 10, then 10%10 is 0
 
yea, do debug why they are different
which version doesn't do that and where does it go wrong?
 
Is there a cli
to just fetch and show the cert
from a domain?
 
1:09 AM
openssl s_client
also ssh-keyscan, but that's more specific
 
Ok
Thanks ssube :)
qq, do you see anything wrong with the certs at auth.goph.me/checkall
 
No, it's valid
 
Mm ok
 
just put it in ssllabs.com/ssltest
although that might not like the 404
they check everything and give you a breakdown
 
Oh nice!
Thanks man!
Weird now it works :S
 
1:14 AM
Yalll... I figured it out. I accidentally misspelled a variable... The itemid was supposed to be itemId
Here is the corrected code if anyone is interested. Thanks for the help @ShrekOverflow and @Luggage
 
LOL
wow I wonder how it worked in Java but
its not (atleast for the prevItem) case
$scope.nextItem = (Number($routeParams.itemId) + 1) % $scope.artists.length; // No problem here

$scope.prevItem = ((Number($routeParams.itemId) - 1) + $scope.artists.length) % $scope.artists.length; // See the difference?
 
Yes, that one was completely wrong
This is both previous and next buttons. Looping through an array using the % operand
Thanks again, see you next time
@ShrekOverflow What were you saying about angular 1 being outdated? I am trying to learn more frontend technologies, and have been focusing on angular and node.
 
Angular 1 is ancient
Angular is IIRC On 5 now :/
and they changed almost the entire paradigm to become a more sane framework
 
more sane, but still not sane
 
^
Writing Angular in JS is outright impossible now
you have to use TypeScript
Reason why I think Ionic is bad
is that they took Cordova and Angular two most insane frameworks
and forged an bad framework second to none
 
1:31 AM
Sorry, I have no idea what any of that means. I have to google all those terms. Thanks for the advice, regardless.
 
If you are learning look at React
or better yet learn javascript first :D
 
Java EE with Spring and Thymeleaf is what brought me to Angular
 
I'm so glad I convinced my team to not use spring for our new apis
that was an uphill battle
 
I figured if I know the DOM well enough, I could just google the syntax
good work ndugger
 
Instead we're gonna use Ratpack, which is like 1000% more sensible, especially for "microservices"
 
1:36 AM
You lost me at Java
 
o.0
@ShrekOverflow What do you mean by "insane" and "sane"
 
Insane meaning totally not sane
sane mean logical, intuitive and doing what it claims to do well
 
Thanks
Wasn't sure if bad was good or good was bad
lol
I feel like angularjs 1 works just fine lol
 
Yeah, but you're coming from spring. Anything would seem to "work just fine" to you
 
I guess angular 1 was fine
but there was so much room to improve
 
1:45 AM
Any programming on the client side that can reduce the load of the servers, is great. Especially when it updates as quickly as AJAX
I feel that node.js is going to do some serious damage in the coming years
 
You're talking as if angular is the only thing on the front-end that can do that
 
Node is already on its way out
 
Node.js is going to fade into oblivion
 
@JamesP. - some guy in 2011
 
Nodejs is kind of like php, easy to get up and running for newbies
 
1:47 AM
This is why I love stack overflow, you guys keep me hip
What other front end do you recommend I look into, just react?
 
Yeah react
Elm is still really good apparently
 
I'm excited to see what the web turns into once WASM gets the GC addon.
Then you can access the DOM from WASM
 
Wait until someone figures out a better alternative to css
 
I mean, with WASM + WebGL, anything is possible
 
1:50 AM
I overheard something about CSS grid yesterday, apparently is it more useful than bootstrap with layout
 
That's a strange point of view, seeing as how bootstrap uses flexbox, and I'm sure it will use grid in the future
I generally consider bootstrap less than useful anyways, since the addition of flexbox
 
The person believed that the grid was better than bootstrap because it handles adjustments between sm xsm ect
better*
 
Is bootstrap even used that much outside of like
shitty github pages
 
Hello I just want to ask sumthing
 
I think people also use it for shitty internal dashboard pages too
 
1:53 AM
can you do nested ternary operation
 
yes, but please don't
 
how would that look?
 
wait
 
No, nested ternaries are hip these days
You're supposed to use them
 
like this
regInspOfficer : result.data.cdHsInspMstPojo != null ? result.data.cdHsInspMstPojo.regInspOffr != null ? result.data.cdHsInspMstPojo.regInspOffr.firstName : '' : '',
mstpojo has reginspoffr but i have to check if thats null too ....
 
1:54 AM
I feel like you can simplify that logic but it hurts my eyes to look at
 
I guess you don't need parentheses for js conditional statements in ternary operators
 
i think ill just separate this from the rest to check for null checkers ..
so frustrating this has been a blocker at my job atm lol simple null checker
 
I use the babel null safe plugin
 
@Leroy If I was writing it, I would use an if else statement
 
lets you do C# style amInull?.property
 
1:56 AM
Scala-style option types
 
if amiInull is falsey it doesnt access property
 
Are the best
 
We use Java for backend and Extjs for front .
 
result.data.cdHsInspMstPojo && result.data.cdHsInspMstPojo.regInspOffr && result.data.cdHsInspMstPojo.regInspOffr.firstName
Though it's still not pretty
 
I use toilet paper for my backend
 
2:01 AM
@ndugger Like you wipe
Okay it's 2am, o/
 
2:23 AM
@BenFortune how do you structure large if conditionals? Multi-lines?
 
@Meredith replaced by what?
 
2:45 AM
i really like bothering people outside of ontario and quebec by posting pictures of bagged milk because the concept is so foreign to them and they go crazy
I should print and sell those jugs
 
You should do math first on the cost to make vs what they already cost plus shipping and potential patent infinrgement
 
The best price I found was 2 for 15
 
@ShrekOverflow Depends on what you're doing. But for what I use node for, something like Scala or Elixir is way better in most cases now. It used to be that node was that much faster to develop in that it was worth dealing with the worse performance and the fundamental issues with the language, but the competition has really stepped up and there really isn't a point in starting a new project in node
 
@Meredith on the contrary, our core uses Scala and our more process intensive node server runs at a 10th of the CPU usage
 
Really?
 
2:55 AM
Yuppers, I was shocked to hear it, but my team lead helped build both and showed me
@KendallFrey can you make them cheaper/better?
 
Yeah I'm shocked to hear that too
 
I mixed apple brandy with spiced rum, and it’s really good
 
I got alcohol poisoning from spiced rum and now I get sick if I smell it
 
@SterlingArcher Making them is probably a buck or two, shipping would be the main cost
ok maybe "a buck or two" is a little low
 
@KendallFrey it's always the distribution model that fucks you. Have you considered some sort of lid so you don't risk the bag falling out on a hard pour?
or a spigot?
 
2:59 AM
that's not a problem that needs to be solved
IME, the biggest problem is getting the bag in
star that out of context
 
Well, coming from the saner side of things, it seems like all your problems are solved by NOT PUTTING MILK IN A FUCKING BAG
 
Why not just like
pump milk to everyone's house
so they can have it on tap
 
Ok so bear with me on this one
Breast implants that are hollow and refillable and you just pour it with your nipples
Like dude one side could be chocolate milk
 
I hate chocolate milk
 
They make bras that you can fill with wine
You could just fill them with milk
 
3:01 AM
Not everybody wears bras though
This is some universal shit
 
What about milk shoes?
 
god no i hate feet
 
Please don’t put chocolate milk in my moobs
 
@Meredith yeah and then everyone asks why you're carrying a cooling unit in your fanny pack
 
By no means do I have a foot fetish, but why are people so grossed out by feet?
 
3:03 AM
Most people don't wash their feet well, if at all
 
I’d go barefoot everywhere if I could
 
I make a point to wash my feet really well
I just love washing between my toes so much
 
wat
 
Never know when you might need to give a footjob to save your life
 
The last time I stood up to wash my feet I almost broke my neck
Always sit down
 
3:05 AM
Except my feet are all calloused and rough because I walk barefoot often
 
@ndugger That and also having clean feet is great
 
fucking hell UPS is expensive
 
Lotion + one of those foot rock things
 
@KendallFrey didn't we establish this when the cost of a box was like $100
@Meredith a pummice?
pumice?
pumice.
 
Yeah
I didn't know how to spell it
 
3:06 AM
more than $30 if I want to ship one package within S. ON
 
I just use a cheese grater
It really gets those under-the-skin-dirts
 
@SterlingArcher no, it's an ocelot
 
I keep my callous, thank you
So I can walk on the street barefoot without being in pain
 
Man just wear flip flops
 
No
 
3:07 AM
I have calluses on my toe knuckles and the inside of my left thumb
 
You’re weird
 
wait callus and callous are different words
 
indeed
if I came in 2nd in ANY olympic sport. https://t.co/y8WHWWmzZT
 
I believe callus is an adjective?
 
callous is
callus is a noun
80% sure
 
3:10 AM
Quinta works/worked for buzzfeed
You linked buzzfeed
 
whaaaaaaa
 
I’m gonna spell however I want
I have smoked salmon in the fridge
 
@KendallFrey you was 80% right
 
It sounds amazing right now
Brb
 
I should take a spa day
 
3:12 AM
Oh god, it’s so good
 
You just eating strips of smoked salmon out of the fridge?
 
I’ve had a few drinks
 
oh baby yes
 
What do people usually eat with smoked salmon?
 
3:14 AM
So that awkwardly silent chick had a real snippy moment btw
 
@SterlingArcher You don't even get that reference shut up
 
Bagels
 
A lambo drove past us and I oooh'd at it and she said "They only buy those cars to impress people like you"
 
I don’t have any bread right now
 
I was like damn, the fuck that mean
 
3:15 AM
then why do you have smoked salmon
 
@KendallFrey I know the track and I know racing?
reference be damned a track day is a spa day for me
 
@Meredith it looked good at the grocery store
 
The track is named Spa
 
Oh
I thought it was the Nuremberg
The url planted it in my head
 
No it's in Spa
In europe
 
3:17 AM
@SterlingArcher lol no that's a Nazi thing
 
I have strawberries too. Brb
 
wrap the strawberry in salmon
 
Nuremburg: war criminals
Nurburg: racetrack
wrap the salmon in strawberry
 
huh.
in other news I purchased a hand carved Horus
 
like, the egyptian thing?
 
3:19 AM
yup, hang on
 
horuses are rectangles
 
...why?
your mom's a horus
 
Oh that explains so much
 
You could make a chess board with those
 
3:21 AM
What is that?
 
yeah well I own a 3d printed rubik's cube
@ndugger keep up
 
It’s a jewish salt and pepper shaker
Oh guys, jordan matched with a little person on tinder
 
no shit?
 
I got it from an antique shop on my moms birthday. Apparently from a WWII soldier but idk if that's true at all
The dudes son could have carved it out back but it's cool
@ndugger not matched, she liked me
 
how do you know that without liking her back
 
3:23 AM
Tinder Gold son
 
I should leave now instead of making an incredibly offensive remark
 
Oh
How is that working out for you
 
yawn
 
@Meredith pretty good actually
 
@KendallFrey i told him to pick her up
 
3:23 AM
see you tomorrow morning
I'm tired
 
@KendallFrey laters tater
 
@Meredith Makes sense, I have found rust insanely more useful lately
not for node style stuff, but writing clis :P
 
I’m gonna pick up rust seriously here soon, after I finish some other things
 
Rust seems like a great language but I haven't had a reason to use it yet
 
Write a CLI or drivers or systems stuff
 
3:32 AM
Make me
 
@Meredith I’d be ok with that. One time I took a date to a steak house, and then she told me that she hated everything on the menu, and she asked for a kids menu, where she ordered chicken tenders.
 
We had a company lunch at a place with really good rolls
I had to force myself to only eat 1
 
Now i want hot rolls and garlic butter
Why am I so hungry
 
Some people in this thread are such prudes
If your date asks you to rub calamine lotion on her rash, you don't just say "umm no" and leave
 
@Meredith depends on how hot she is
 
No it depends on how itchy the rash is and how hard it is for her to reach it
 
On a first date though?
 
It must be really itchy if she's asking
 
I guess
 
3:52 AM
@ndugger that was meredith
@david when do we have our call ?
 
@ShrekOverflow Tomorrow i think?
 
Crimson?
 
yeah!
10am our time, what is that for you?
 
4:49 AM
It's not border radius so they're probably still hiding some things but check out this CSS "keylogger" hackaday.com/2018/02/25/css-steals-your-web-data
 
5:05 AM
 
5:46 AM
@david I work in EST
I thought you were in China :|
 
i build for china
 
Hi all
I have this line
jQuery(".ui-dialog-titlebar-close", ui.dialog | ui).hide();
can someone please explain what is ui.dialog | ui is?
because generally we do jQuery("class|id").hide();
 
the API says it is the context
 

« first day (2690 days earlier)      last day (2273 days later) »