HNHacker News
TopNewBestAskShowJobs

weaksauce

7,020 karma · joined May 31, 2008

five nine plus r at gmail

https://www.github.com/fiveNinePlusR/tabist

submissionscomments
weaksauce··on Mercedes-Benz commits to bringing back physical buttons
> Sadly marketing drones think everybody wants a Tesla-style "everything is a screen" design whereas a 1999 Toyota pretty much had it right.

they also had to redesign the door handle and people have gotten stuck in the cars because of that and died. not just one isolated incident... more than one case of the car door not working because it's electrical only and the backup physical release mechanism is under a door panel you need to pop off and reach inside to pull after you just got into an accident and are physically disoriented.

weaksauce··on California high-speed rail price tag jumps to $231B, nearly 7x 2008 estimate
in addition... you need a real id or a passport to fly. a lot of people have extreme anxiety about flying. those are big hurdles that a train does not have.
weaksauce··on Optimizing Ruby Path Methods
looked into it more and the docs say that an index out of bounds will return nil. also says if offset == size and length >= 0 it will return an empty array.

``` If offset == self.size and size >= 0, returns a new empty array.

If size is negative, returns nil. ```

either way if you are doing stuff with arrays and not checking bounds you can throw an `Array(some_array.slice(x, x+100))` and it will always behave.

weaksauce··on Optimizing Ruby Path Methods
the docs say... if index is out of range return nil. the edge case is that if you specify the exact end index of the array and want a slice of that index to 100 it will return an empty array. if you go out of bounds it informs you that you are out of bounds with nil. not sure it's the best api but probably is mimicking some C api somewhere as a lot of ruby does that. that said it will never error on this alone but it will almost certainly error if you chain it with something not expecting nil.

The easiest way to get around that if you are not carefully using the ranges would be to do `Array(array.slice(a, b))` as that will guarantee an array even if it's invalid. you could override slice if you really wanted to but that would be a performance penalty if you are doing it often.

weaksauce··on Optimizing Ruby Path Methods
because it's meant to be a more functional language. if slicing an array out of bounds threw an error it would be java.

[].slice(0, 100).each do |x| puts x end

that shouldn't be an error and it seems to be the principle of least surprise imo.

weaksauce··on Microsoft terminates VeraCrypt account, halting Windows updates
It does seem like linux is having its moment right now. there's the money and effort valve is putting into KDE making the steamdeck and steammachine polished for their hardware which helps all users of KDE. cachyos is making having a rolling distro really smooth and snappy on old hardware and making games work mostly ootb. stuff like winboat and wine will let you use the few windows apps you need. you are kinda stuck though if you want to use something like fusion360 or solidworks. freecad has improved quite a bit but it's still like gimp where it's slightly worse UX in a lot of ways.
weaksauce··on Iran-linked hackers breach FBI director's personal email
i think the facts of the matter are that a gmail vulnerability is on the very low likelihood kind of event. they wouldn't burn their insanely valuable vulnerability on showing how much of a fratboy kash is. the most likely possibility is that he either clicked on something dumb and gave access through phishing(really bad) or had a really weak password without 2fa(also really bad).
weaksauce··on Iran-linked hackers breach FBI director's personal email
you don't think that it's relevant and concerning that the director of the FBI didn't take operational security seriously enough that his account got compromised? even if they didn't get anything incriminating (which maybe they did and are going to blackmail him later) that show a shocking lack of competency for someone in that kind of position.
weaksauce··on People inside Microsoft are fighting to drop mandatory Microsoft Account
there's good reason the equivalent shift-command-s isn't bound to screenshot by default... it's the command to save a file and there's no good way to do partial screenshot and full screen screenshot with just command-shift-s + option if you want the option to put it into memory instead of a file. they chose command-shift-3 for full screen screenshot. command shift 4 for partial screenshot and add option to do either of those into memory which is a very common paradigm in macos shortcuts. the option key does something slightly different to the original shortcut in system shortcuts. in any event windows didn't get the non-printscreen version of a screenshot tool until very late in the game and osx had it in for a long time.

that issue isn't even an issue if you really want screenshots to be something else. you can change basically any shortcut in one place in macos. same with kde.

weaksauce··on People inside Microsoft are fighting to drop mandatory Microsoft Account
reading all these comments about windows having better shortcuts and window management features makes me feel like i'm taking crazy pills. windows for me was hands down the worst experience in ux. the shortcuts in macos are so well thought out and consistent.

now i'm using kde in linux land and it's the best and most customizable experience. I can't imagine going back to windows ever and would be missing a lot from linux if i went back to macos(though it would be fine).

getting macos keybinding in linux land is a game changer to me: https://github.com/RedBearAK/toshy and this just makes me feel at home.

weaksauce··on Miscellanea: The War in Iran
this misses the fact that petroleum is incredibly useful outside of the burn it to make electricity and burn it to make car move use cases.
weaksauce··on Time to Dump Windows?
the only two things that would make linux unstoppable would be affinity being first class and having something like fusion360 or solidworks work. there are web based versions of solidworks and another option that escapes me atm that would work but that's the web and it's not the same as native imo. i know there are some opensource projects out there but the ones i've seen have been not as good.
weaksauce··on HP trialed mandatory 15-minute support call wait times (2025)
I was a programmer at a small company that had their programmers field tech support calls and there is a good reason they do this... most of the people calling in are dumb as rocks when it comes to whatever they needed help with... some called while driving for help that required you to be in front of a computer.
weaksauce··on The Los Angeles Aqueduct Is Wild
to put this to numbers... the exports are just about 0.5% of california's GDP. so yeah pretty much a rounding error.
weaksauce··on Wayland set the Linux Desktop back by 10 years?
they just agreed to move forward on the protocol to do that thing.
weaksauce··on “This is not the computer for you”
yeah... it's good stuff and if python breaks something after a package update reinstalling toshy is quick and easy and the config is safe if you only write your modifications inside the areas where they tell you to. (though backup of the folder is a good idea when doing that)
weaksauce··on Warranty Void If Regenerated
i don't find the luddite comparison accurate. they were against looms and anti-ai people or ai skeptical people are against the wholesale strip mining of intellectual property as it exists... both public domain and non-public domain. it's used to enrich the capital class at the expense of the workers. sure it's similar but it certainly didn't have the copyright and wholesale theft of all of the human ideas behind it. it just feels quite different.
weaksauce··on “This is not the computer for you”
using a linux with toshy to get the best of both worlds wrt keybindings. linux and kde is amazing nowadays... I don't miss macos but would be hating linux without mac style keybindings.
weaksauce··on Rebasing in Magit
my non-command line gui version of doom emacs with a bunch of packages enabled loads up fully for me in 0.45s which is hardly slow. sure it's slower than neovim but also not slow in the absolute sense and i don't have the emacs daemon running which would make that even faster.
weaksauce··on Making Firefox's right-click not suck with about:config
I don't know what I've done to have a small right click menu but mine is only a handful of options and I even tried selecting an image and a link and some text to get all the options.
weaksauce··on Making Firefox's right-click not suck with about:config
there is a middle ground where you could do something like about:mouse (about:keyboard for keyboard shortcuts already exists) for the power users. doesn't need to be fancy but it would be easy enough to do.
weaksauce··on Welcome (back) to Macintosh
I'm rocking cachyos(arch based though) wayland+kde and https://github.com/RedBearAK/toshy. it's great to keep the keyboard shortcuts that I'm so used to from the mac almost seamlessly. kde lets you configure pretty much everything how a mac was if you want it though it did take a month or two to get everything the way I like it. I've found that it is nice to have an operating system that is mine and not the whims of some company trying to make money off me. I don't think I'll go back unless I'm forced to for a job.
weaksauce··on What it means that Ubuntu is using Rust
there has been a few adopters of rust... linux formally choosing it for some of their systems being the most notable recently(maybe a few months ago).
weaksauce··on Halt and Catch Fire: TV’s best drama you’ve probably never heard of (2021)
halt and catch fire is so good. one of the best things i've watched as a tv series.
weaksauce··on Amazon's Ring and Google's Nest reveal the severity of U.S. surveillance state
basically the patriot act was a big piece of temporary safety that never produced any.
weaksauce··on Total surface area required to fuel the world with solar (2009)
i assume heat since most energy in an ICE engine is wasted to heat (~60% wasted iirc)
weaksauce··on Show HN: GitHub Browser Plugin for AI Contribution Blame in Pull Requests
I think the special feature is that it tracks on a per line basis in a blended commit what AI is doing vs. whole commits. not sure the utility of it.
weaksauce··on The Codex App
microsoft also uses react native for the start menu and also bricked that during a recent upgrade apparently... along with breaking other stuff.
weaksauce··on Flameshot
yeah i tried it the other day because spectacle feels lacking and it completely failed on my multimonitor kde wayland setup.
weaksauce··on Amazon cuts 16k jobs
you see the reason h1b is so popular with the c-suite in a lot of cases is that you get absolute loyalty to a company that holds all the power of your being allowed to stay in the us. you lose the h1b job and you have limited time to find a new valid employer to sponsor you or else you go back to your country. it's one of the reasons musk loves it for twitter.
← PreviousPage 3 of 34Next →