vrek

joined 2 years ago
[–] vrek@programming.dev 9 points 1 month ago (9 children)

I know very little of UK politics, what is that group for/against?

[–] vrek@programming.dev 3 points 1 month ago

Look, can I ask a favor? Can you take that, package it, and put it on npm so I can use it in my project?

[–] vrek@programming.dev 14 points 1 month ago

Well you gotta admit a place with bluegrass isn't paradise... It's probably Kentucky!

[–] vrek@programming.dev 47 points 1 month ago (2 children)

Interesting fact... They make all milk fat free, and then add fat back in to make it 1% 2‰ or whole.

Iys simpler to add in a specific amount of fat than to remove that amount and keep the ratio correct.

[–] vrek@programming.dev 6 points 1 month ago (2 children)

Why does the headline have nothing to do with content?

[–] vrek@programming.dev 3 points 1 month ago

I agree with everything besides driving to the grocery store(it was only down the street, maybe 5 minutes each way). It is/was a huge waste of water.

[–] vrek@programming.dev 2 points 1 month ago

To make it worse it was in a medical field...in production for atleast 7 years... To my knowledge still isn't fixed...

[–] vrek@programming.dev 5 points 1 month ago (2 children)

I had this happen to me. The program was only used internally but it was possibly the worst code that would compile. My personal favorite was the "login". When launching the program it accessed a local sql server. On that server was a table named "login" which you would assume had a list of all users and their passwords right?

Now that would be bad because you could launch ssms directly and just look at the table but when you did that there was 1 entry user "admin" password "admin".

But that's not all... When you look at the code these values are hard coded in. There is a linq query to check the login table for an entry with username "admin" and password "admin" and return the values in password. Now you might be thinking what the hell but here's the kicker...when it got the response back it checked len(password) => 5

Yup... Didn't check if password was correct just that the length of the password was equal to or greater than 5.

The actual username entry box? Yeah it didn't validate anything. You could just bang your hand on the keyboard and log in... Really you didn't even have to do that. You had to click or tab into the field and then click login. It didn't require you to enter anything just that the username field was active at some point.

[–] vrek@programming.dev 11 points 1 month ago (2 children)

Years ago I had a roommate who took obscenely long showers. One time we were supposed to go food shopping but he wanted a "quick shower" before we went. I watched 2 episodes of narcos on Netflix, got frustrated, went shopping alone, drove to store, and did a week worth of grocery shopping, drove back, brought all groceries to the apartment (third floor), put everything away, waited another 30 minutes and he finally came out of the shower.

I have no idea what he did in there.

[–] vrek@programming.dev 10 points 1 month ago (1 children)

17/f/California u?

[–] vrek@programming.dev 17 points 1 month ago (3 children)

Ironically the most common use of plumb is probably for drywall. You take a piece of string with some dyed powder and a weight on the end and you can use that to mark a straight line perpendicular to the floor.

[–] vrek@programming.dev 1 points 1 month ago

I'll up vote you if and only if you can tell me the meaning or message they are singing about

view more: β€Ή prev next β€Ί