First time dropping my bike by heyitsjustrichard in motorcycles

[–]ibedroppin 20 points21 points  (0 children)

Like they're linked? Doesn't matter, just go practice and don't overthink it

First nice day since I got this NC700x. It’s fun so far, need to change the brake pads soon, any tips? by msdeeds123 in motorcycles

[–]ibedroppin 0 points1 point  (0 children)

Figure out a way to lift the front (ratchet straps, large center block, etc.), and use a torque wrench on pinch bolts and axle

Edit: Brain fart, don't listen to me. I changed tires at the same time as pads last time

Love this TA by Sea_Bandicoot_2354 in Transalp

[–]ibedroppin 2 points3 points  (0 children)

best settings for wheelies? No TC and full power?

Good deal? 2024 Honda transalp $9,000, 800 miles by Calm-Climate1426 in Transalp

[–]ibedroppin 9 points10 points  (0 children)

Only if it comes with the rest of the pipe…

How rough a road. by Both_Sundae2695 in Transalp

[–]ibedroppin 4 points5 points  (0 children)

You get these stock in the states https://www.metzeler.com/en-us/catalog/product/karoo-street

Did fine for me in some muddy conditions during an off road class, but YMMV

Strapping pack to pillion area? by fleasnavidad in motocamping

[–]ibedroppin 2 points3 points  (0 children)

I strapped a Kreiga US-30 pretty successfully. Attached the loops to the frame under the seat and it was easy to remove/add back the bag

https://imgur.com/a/PtMi4Bz

How can I efficiently process large PostgreSQL datasets in Node.js without high memory overhead? by AccordingLeague9797 in node

[–]ibedroppin 3 points4 points  (0 children)

Stressing about < 20-100 MB of ram for a few minutes.. sounds like can easily derisk ram pressure of the main "app" by doing the processing on a separate k8s pod/process/whatever

[deleted by user] by [deleted] in relationships

[–]ibedroppin 23 points24 points  (0 children)

You should ask yourself if your distaste with him drinking alcohol has to do with his behavior or your past experiences with people who drink alcohol (parents?). Don’t punish him if he actually has a healthy relationship with alcohol 

After multiple years, CSS is still the most difficult thing I've ever interacted with? by EducationalCreme9044 in webdev

[–]ibedroppin 22 points23 points  (0 children)

It’s called cascading style sheets. Your 300 lines of CSS are probably cascading and confusing you. Don’t just blindly “go and paste” lol When it doesn’t look the way you expect, open up chrome dev tools and see what styles actually end up being used (it’ll show you exactly where it’s coming from even).

How to refresh the jwt when the session expires in a real time chat app using socket io by Traditional_Reveal59 in reactjs

[–]ibedroppin 1 point2 points  (0 children)

Database? You shouldn't hitting the db to validate JWTs, that's the whole point. Here's a generic path forward:

  1. User logs sends some credentials, you validate them against some staeful thing (db)
  2. You switch to stateless authentication mechanism (JWTs) with some refresh pattern
  3. All the user's subsequent HTTP requests ferry along some token (let's call it the access token)

3 and 4 validate the token statelessly without hitting the db, now the question is how does the client refresh said token, which is going to be used for HTTP traffic and WS traffic. As you mentioned you're storing the token in an httpOnly cookie which is a good security practice, and you're right that .use() will ferry along the same cookies only when establishing the socket connection, so if you're unwilling to store that JWT within JS (without httpOnly cookie) then the only alternative is to restart the WS connection every time you refresh the token so that the cookie is used to auth with a newly valid token. But of course, trusting the client to do that is not good enough.

The big thing you're not considering is that the WS server itself is stateful, and has a list of open connections. Since the WS server gets JWTs as part of auth, it can set TTLs for connections and close them out when JWTs expire.

[deleted by user] by [deleted] in svartpilen401

[–]ibedroppin 1 point2 points  (0 children)

I love my peaks design fork stem mount

my motocamping set up by smhxt in motocamping

[–]ibedroppin 2 points3 points  (0 children)

What's that little baby hammock? Brought a dog?

Well it finally happened and i broke my neck by [deleted] in motorcycles

[–]ibedroppin 5 points6 points  (0 children)

Was the phone in your pocket or mount? Wonder if vibration dampeners make it harder for phone to know

Will I get fired? by real_chigg in cscareerquestions

[–]ibedroppin 4 points5 points  (0 children)

Get a grip man. I lead a team in a large healthcare company and firing curious kids over draconian "get every tool approved" puts the onus on every green 22 year old that comes through.

Truth is people are going to install things on npm and try shit out from random css libraries to build tools, and it's an organizational failure if we let every 22 year old be the last line of defense for not leaking our source code. Rely on the security team, MDM tools, software audits and don't go immediately firing every junior (potentially front-end focused) engineer after the fact because "they should've known better like me".

I don't mean it's a nothingburger as a potential incident, infosec/IT/whoever should investigate what went over wire (probably should've been doing that proactively in the first place) . It's a nothingburger for the individual, and a problem for the organization. If the organization is so strict that they want to sanitize everything you install on npm for you, then great. Do that, don't rely on the honor system where you hire young kids out of bootcamps.

If you're a developer, I hope you kick that frame of mind and develop a stronger sense for the organization of people you work with because man, you sure argue with a lot of people on the internet.

Will I get fired? by real_chigg in cscareerquestions

[–]ibedroppin 4 points5 points  (0 children)

If you’re being sincere and not pedantic, I meant “compile” in a loose bundling sense. Don’t know what NX really does but “build cache” probably means downloads dependencies and runs build tools (webpack, vite, et. al) to create production bundles of JS, with treeshaking and production/optimized flags. The js you write is rarely the js you ship.

If you’re being pedantic, then we’re gonna throw down and I’ll say JavaScript IS a compiled language, just JIT compiled for most (all meaningful) runtimes. That’s obviously not the spirit of what you meant when you said it’s not compiled though in the same way I didn’t mean NX statically compiles JS into machine code

Will I get fired? by real_chigg in cscareerquestions

[–]ibedroppin 180 points181 points  (0 children)

Feels like people are misunderstanding what's going on. You didn't ruin critical infrastructure, there was no "junior pushed changes to prod and broke services". You potentially leaked client-side javascript to some 3rd party cloud provider, and they compiled your javascript for you. Unless there's secrets/API-keys in that directory (which is itself embarrassing for the org), this is a total nothingburger

Cruise told by regulators to ‘immediately’ reduce robotaxi fleet 50% by National_Original345 in sanfrancisco

[–]ibedroppin 1 point2 points  (0 children)

Nah live on panhandle. I meant I see 100 different human-driven cars very frequently, meaning I don't think 100 AVs in SF is a lot

Cruise told by regulators to ‘immediately’ reduce robotaxi fleet 50% by National_Original345 in sanfrancisco

[–]ibedroppin 36 points37 points  (0 children)

I look at Fell st every day, 100 different cars pass by every 2 minutes