Better HN
topnewbestaskshowjobs
Log inSign up

weaksauce

7,020 karma · joined May 31, 2008 (18y ago) · 3,135 submissions

five nine plus r at gmail

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

Submissions

comment 6mo ago · link · parent

It's useful for me to have a "production" website remote that i just run on my computer for myself locally. rsync could also work but tagging with rollbacks make it easier if something goes wrong. it's not a common thing but it's nice to have that as an option. just because you can't see the utility of it doesn't make it useless

comment 6mo ago · link · parent

considering nvidia has garbage gpu drivers in linux land and amd has pretty good ones i suspect you’re correct.

comment 6mo ago · link · parent

the more I look at it the more I think this is AI yeah. sigh. I'm tired boss.

comment 6mo ago · link · parent

what's funny is the website looks AI generated though that's just the style of the time i guess.

comment 6mo ago · link · parent

navidrome is pretty good.

comment 6mo ago · link · parent

it's because you're the product and they want the designs i think

comment 6mo ago · link · parent

they could do it like they do it for accessibility settings. you have to opt in for an app and you need to know damn well if it is a reputable app before giving those controls over. there's enough friction in that that it is not done by many apps but not hard enough that it's a huge ask to whitelist the app.

comment 7mo ago · link · parent

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

comment 7mo ago · link · parent

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.

70.

The Missing Bundler Features(byroot.github.io ↗)

3 points · by weaksauce · 7mo ago · discuss

comment 7mo ago · link · parent

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.

comment 7mo ago · link · parent

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.

comment 7mo ago · link · parent

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.

74.

Optimizing Ruby Path Methods(byroot.github.io ↗)

134 points · by weaksauce · 7mo ago · 64 comments

75.

Windows Defender Is Being Used to Hack Windows(hackingpassion.com ↗)

16 points · by weaksauce · 7mo ago · 3 comments

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

to put this to numbers... the exports are just about 0.5% of california's GDP. so yeah pretty much a rounding error.

comment 8mo ago · link · parent

they just agreed to move forward on the protocol to do that thing.

comment 8mo ago · link · parent

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)

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.

comment 8mo ago · link · parent

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.
12345
105