• 9 Posts
  • 412 Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle



  • 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.




  • To me the best use of cli is troubleshooting remotely. I don’t mean like ssh I mean like talking over the phone. It’s easier to say “type in this command” then say "at the top of the window there should be a menu bar, near the right, no not all the way to right, no don’t click the red x, it should say tools, move your mouse over tools, God damn it I said DON’T click the red x, now we have to start over, click the icon on the desktop, no I don’t know why it’s called icon, it doesn’t mean anything religious, please just open the application… I don’t care if you are Christian and find the term icon offesive… Hurry up I am late for the AA meeting I need after dealing with people like you. " wait the problem may just be coworkers…








  • vrek@programming.devtoScience Memes@mander.xyzCNC
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 days ago

    Yeah it’s not something you program repeatedly though. You basically program once and hit a button and walk away and it will make hundreds to thousands of whatever.

    My understanding was you basically programmed it in steps. So like on step 1 operation on one bit, on other bit at same time run this operation and on third bit run this operation at same time. Now when all of those operations are complete move to step 2 and repeat.

    To make it more difficult there was also an automatic bar loader and a automatic bucket changer(it dumped the parts into buckets).

    Also to make it run fast you tried to balance each axis operations in a each step so no axis was ever stopped waiting for the other operations but you also had to stop them periodically to control heat and not break the bits since due to the products we were not allowed to use coolant.

    It took 3 senior engineers and 2 junior engineers 2 years to set it up to make 3 different products reliably. It was awesome when it eventually ran properly though.




  • vrek@programming.devtoScience Memes@mander.xyzCNC
    link
    fedilink
    English
    arrow-up
    35
    ·
    12 days ago

    Ironically a few years back I was starting a project at work and was told one of the machines was a “miyano” I didn’t know what that was so I googled it… Entire first page of images was anime.

    Turns out it was a 12 axis lathe…




  • vrek@programming.devtoMental Health@lemmy.worldTerrifying
    link
    fedilink
    English
    arrow-up
    5
    ·
    12 days ago

    If you want to totally mess up a haunted house when ever someone jumps out ask them a unrelated question.

    “I will eat your brains!”

    “where was your last vacation?”

    “my family is dead and soon you will join them”

    “what is 10x15+7?”

    Most people will stop acting and think of the answer completely destroying the effect of the haunted house.