Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,594 karma · joined Dec 4, 2013 (12y ago) · 4,862 submissions

email: I'll add a suitable email one of these days
Submissions

comment 3y ago · link · parent

I often remember my dreams. My wife is always amazed that I remember so many of them (she hardly remembers any). But I never ever remembered a single "dream" I made under anaesthesia.

I wonder if people who remember many of their dreams have different experience? To me it's pretty much like GP: mid sentence and then boom, gone.

comment 3y ago · link · parent

> This is just bananas to me that a browser would perform "super resolution" at all, much less by default.

But it's really not the issue here.

They invented "super resolution" just as they could have used "ultra denoiser" or "elite acne spot remover" or whatever other bullshit term they think they could use to get away with to "explain" why they're sniffing pictures.

The goal is to send the images to Microsoft and nothing else.

comment 3y ago · link · parent

> "read scripts before you run them" is a good bit of advice.

I always read the script and do also verify they're only using ASCII chars (and if they're not, I check which Unicode shenanigan is ongoing).

For example:

    ... $ file /usr/local/bin/somescript.sh 
    /usr/local/bin/somescript.sh: Bourne-Again shell script, ASCII text executable
FWIW most of the scripts out there are only ever using ASCII chars.

comment 3y ago · link · parent

> ... PNG are good enough.

For a start it's 2023 and all browsers do support lossless webp [1].

Lossless webp (webp can be both lossy or lossless) is not only typically smaller than most optimized PNG files but also compresses faster than the optimized PNG encoders.

So, basically, the main reason to use PNG in 2023 for anything Web related is if you like wasting bandwith. For 99.95% of the PNG files (something huge like that) are smaller when encoded with lossless webp.

Heck, even my Emacs supports webp images.

Then other formats are already knocking on the door and promise even better compression than webp.

https://caniuse.com/webp

comment 3y ago · link · parent

> ... about his quest to finish his own Commodore 64 CRPG from 1984. He will be able to do it, too, because he kept all the disks, tapes, notes, and hand-documented assembly code print-outs ever since his teenage project.

Nice! FWIW during the lockdown I happened, by chance, to be in alone, far from my family, in the house where I grew up. Well, not alone... My C128 was there. After watching tutorials on Youtube as to how to clean and grease the disk drive, I found out that a good 1/3rd to one half of my 5"1/4 floppies from the eighties could still be read 100%.

So I'm not surprised he could use old disks, in addition to his printed listings, to get back on his project!

comment 3y ago · link · parent

> I would appreciate "automated rumble strips" that warns me gently if I veer out of my lane.

The Toyota CH-R my wife had did that. Above 50 km/h / 30mph the steering wheel would gently "shake" if you tried to switch lanes without using your blinker.

Several brands/models offer that, sadly sometimes as an extra (FWIW I think it should be illegal to offer that as an extra: it should either come stock or not be offered at all... Safety features shouldn't be something you need to pay for).

It's not at all self-driving though.

I also enjoyed the side mirrors indicating (using some kind of yellow LED) when there was a vehicle in the blind spot.

comment 3y ago · link · parent

> This is what Alameda was doing on FTX right?

Alameda did many illegal things, including lying to investors about their returns to get funding. And pump and dumping a huge lot of shitcoins which SBF created or funded.

So I don't doubt they'd also frontrun their customers.

comment 3y ago · link · parent

> Debian is really solid as a server OS. I wouldn't use it for desktop unless you're using ancient hardware

I'm running Debian 12 (since the soft freeze I think) on my newly built AMD 7700X. I wouldn't exactly call that "ancient hardware".

Zero issue. No headaches for me. FWIW I'm running Debian since Debian 1.1 (1.1, not 11).

comment 3y ago · link · parent

> How do you deal with grossly outdated software on Debian Desktop?

Use the Source, Luke.

If there's something too shiny that I really need on my Debian, I compile it from source.

For example Emacs 29, with tree-sitter and whatnots, is just too shiny. So I compile it from source.

comment 3y ago · link · parent

The SEC was meeting with SBF and failed to protect US citizens who sent money to FTX. So far Binance hasn't pulled a ponzi scam (they existed before Alameda/FTX and have never stolen anyone's money).

So basically the SEC failed to protect people from that ponzi scammer boy SBF was, but they're going after the like of Binance and Coinbase, who, so far, never stole a cent from anyone?

comment 3y ago · link · parent

> Next word prediction IS reasoning

I can write a program in less than 100 lines that can do next work prediction and I guarantee you it's not going to be reasoning.

Note that I'm not saying LLMs are or are not reasoning. I'm saying "next word prediction" is not anywhere near sufficient to determine if something is able to reason or not.

comment 3y ago · link · parent

> This seems like a great idea. If all the kids are offline, there is much less peer pressure to be online.

As I read it it's not about transforming kids into luddite. I don't see where it's explained that, say, a 10 years old cannot play Fortnite at home or that a 8 y/o cannot play Animal Crossing on the Nintendo Switch.

It's specifically about preventing kids from wasting their lives on that inferior piece of mediocre turd that a smartphone is.

comment 3y ago · link · parent

I've got two friends who are doctors and who don't know each other (different countries): most common cause of "toy" bringing kids to emergencies... Trampoline. But: it's nearly always when there are two kids simultaneously on the trampoline. A trampoline with a strict rule: "only one kid at a time or I sell the trampoline" does help a lot (it's what I did).

comment 3y ago · link · parent

The last in TFA with the "drink drink" is definitely done all the time in french too.

Something like the following repetition is ultra common:

"C'etait bien ?" (What is good?)

"Oui c'etait bien. Enfin, pas 'bien bien' mais... Bien". (Yes, it was good. Well, not "good good" but... Good).

The "x is x" is ultra common too, say to a kid, when it really needs to go to bed:

"J'avais dit dodo et dodo c'est dodo!" (even if it's not proper french, it's a typical way to talk to kids: "I said bedtime and bedtime is bedtime").

Even with french "verlan": *"Il etait relou. Pas relou-relou mais quand meme un peu relou!".

Also I'm sure I hear this one all the time: "Quand faut y aller, faut y aller!".

It's everywhere in french.

comment 3y ago · link · parent

I use a Japanese keyboard for that very reason (even though I don't speak japanese). I don't think that, technically, it's an "hyper key". These are the henkan and muhenkan keys, to switch input methods (kanas / romanji / etc.).

But that's precisely how I use these keys: I remap the one at the left of the (always very narrow on japanese keyboard) spacebar to "Hyper".

Note that the USB HID doesn't have the concept of the Hyper key (so I remap it from X11 / xkb).

Now... Some may wonder: why buy a japanese keyboard and not some fancy ergonomic / DIY keyboard? Several reasons. Japanese is kinda a big country and japanese keyboards are here to stay, so my trick shall keep working until long after I'm dead. Japanese laptops: japanese keyboard on the laptop, I now effectively can have a laptop with a "Hyper" key.

And then the main one: the DIY keyboard community can apparently only do variations of Cherry switches or similar switches. My switch of choice is Topre. I didn't find any DIY keyboard with Topre switches.

So I use a japanese keyboard, with Topre switches. And I remap it and there's nothing "japanese" about it anymore.

comment 3y ago · link · parent

Here are the relevant parts of my .xkb file. Note that the "osfUp" code is code I found elsewhere (don't remember where). Just repeat it for Left, Right and Down.

I first added this new "THREE_HYPER" using three levels (you can add more levels if you fancy that):

    type "THREE_HYPER" {
        modifiers= Shift+Hyper;
        map[Shift]= Level2;
        map[Hyper]= Level3;
        map[Shift+Hyper]= Level3;
        level_name[Level1]= "Base";
        level_name[Level2]= "Shift";
        level_name[Level3]= "Hyper3";
    };
Then the "interpret" does the magic:

    interpret osfUp {
        repeat= True;
        action = RedirectKey(keycode=<UP>, clearmodifiers=Hyper);
    };
And for each key, assign the arrow key redirection you want (showing only "i" for up here):

    key <AD08> { type= "THREE_MESH_HYPER", symbols[Group1]= [ i, I, osfUp ] };
I'd say that it's not a job for xmodmap but for .xkb.

Also I don't use xmodmap at all: I set everything, including all the modifiers, from my .xkb file.

My xmodmap output for Hyper (which I set, from .xkb, as mod5):

    ... $  xmodmap | grep mod5 
    mod5        Hyper_L (0xcf)
You'll want to read on .xkb but this should get you started.

comment 3y ago · link · parent

I'm using "Hyper + ijkl" in X11 and it works in every app, not just Emacs. Basically I made a custom .xkb file which does send the actual arrow keys code when "Hyper + ijkl" is pressed. It works in drop down menus, in terminal, anywhere.

It's like pressing the arrow keys.

And it works fine with shift, for as far as any app are concerned they're only seeing "shift + arrow key(s)".

It would work with Super too.

I'll find some part of the .xkb file and paste them here in a few moments.

comment 3y ago · link · parent

I've got friends and family that are physicians and they also work a lot. They're in the EU so at least the "getting sued" part is close to non-existent (there's still a risk but typically only if there's a real fuckup). At least one of them also complain that the job isn't paid well enough and that the job kinda lost some of its luster.

But...

> There's just no reason to do the job when you can get the same compensation working remotely in tech.

Compared to serving ads and/or engaging in surveillance capitalism, at least there's a lot of comfort in that they're doing (and you 're doing) a useful job.

So I know it's not much but thanks a huge lot for what you're doing.

comment 3y ago · link · parent

> This was tricky when developing TOTP-C64

Oh that is soooo awesome, I didn't know it existed. I wrote my own little TOTP app, which I run on an airgapped Raspberry Pi. But TOTP on a C64 / C128 is next level. Not sure about "one disk per secret though".

comment 3y ago · link · parent

> Trying to avoid being a jerk.

There are lists updated in real time by white hats, sharing exact IP of machines known to be engaging in bad behavior. You can, if you want, update your servers in real-time from these lists and then act accordingly: drop the traffic, reject the trafic, serve a "your IP address is participating in brute forcing attempts" page, etc.

FWIW some ISPs may be monitoring these looking for IPs on their subnets and acting accordingly.

It's not about "being a jerk". It's about giving attackers the middle finger.

comment 3y ago · link · parent

> I am sure a lot of work (and time) went into this but what's the point? If the model is not as good and the original then the applications are limited and the training time is moot.

If the several orders of magnitude (two in this case) improvement can be used to train other models, that's quite a thing no?

comment 3y ago · link · parent

> A 27" 5K is 218 PPI, which is the minimum pixel density for desk work, IMO.

I completely disagree with that. 110 dpi is totally fine for desk work. Always has been and will probably continue to be for a really long time.

I take my 38" doing 3840x1600 at 110 DPI over a 27"K (or even two) doing 218 DPI any day.

Now if you do photography or work on designing bills (as in money), then you'll want higher DPI. But for "desk work", there's zero need for anything more than 110 DPI. It may be "nice" to have retina fonts but it's by not a requirement.

I'd even say the real world is powered by something like 95%+ of people doing "desk work" on 110 DPI (or less) screen.

Also, if 5K / 218 PPI is the "minimum pixel density" for desk work, what's the minimum density for creatives?

comment 3y ago · link · parent

> Toyota never claimed any of this stuff.

My wife's (ex-) 2019 Toyota CH-R had warnings for vehicles in blind spots while driving (or parking) and gave a nice feedback in the steering wheel if, when above 50 km/h, you'd steer out of your lane without using your blinker. It was very convenient and a nice security feature without claiming to be an auto-pilot.

comment 3y ago · link · parent

> Seeing four of them in a row in the same range with nothing going over 0x7f suggested SOME WORD IN ALL CAPS. It was.

As opposed to some word in lower caps that would have had some bytes going over 0x7f? ('a' to 'z' go from 0x61 to 0x7a) That sentence got me confused!

comment 3y ago · link · parent

You guys may be right. I really honestly never ever thought it that way.

No hill to die on (and I enjoyed TFA!) that said ^ ^

comment 3y ago · link · parent

> Look at that, it's even doing memoization!

That function takes no argument. I've never seen initializing a single variable and returning the result of that initialized variable from a function call taking no argument called "memoization".

Memoization is a specific type of caching with a space/time trade-off where the result of a particular (set of) input(s) are cached.

I find it quite a stretch to call initializing a single integer for a function taking no parameters "memoization". I'd just say the function's return value is "cached".

I mean: by kinda, sorta, bending the definition of memoization (for example by changing "caching the function's results based on the inputs" to "caching the only result for there's no input to the function") you could say that it is actually memoization but then I'd argue this is not a great example of what memoization is.

I may be wrong though.

comment 3y ago · link · parent

I own several HP LaserJet, including the 4M+ "upgraded" with more memory / fonts / an ethernet adapter etc. Amazing machines for the time.

So I'm an "old HP printers" fan. And yet I'd never ever buy anything from HP.

FWIW I'm very happy with Brother. We've got several Brother laser printers and "laser printer + scanner" and we're very happy with these. Zero problem.

HP fell really low.

comment 3y ago · link · parent

Well I basically used a a Linux distribution made precisely for this: it was called "RasPBX" back then, IIRC. The hardware was simple: a Pi 1, an external HDD hooked through USB to the Pi and Cisco VoIP phones. That Linux distro already took care of picking software components/versions all working fine together and it was tailor made for the Pi. It was pretty plug and play from what I remember.

I'm a software dev, not a sysadmin, but I can find my way around configure Linux machines.

I don't remember it as being particularly complicated. What I do remember for sure though is that once it worked, it worked flawlessly for years.

comment 3y ago · link · parent

Ah good memories! Even though I knew nothing about VoIP I installed, years ago, one at my wife's little SME using "RasPBX" (a distro made of Raspbian + FreePBX + Asterisk) running on a... Raspberry Pi 1 (maybe a Pi 2 but I'm pretty sure it was a 1). The Pi was booting from the SD card but everything was running on an external HDD.

I did put six Cisco VoIP phones and all was working fine as long as no more than four phones were used simultaneously (which never happened). It worked for years like that and wife ended up selling her SME with these VoIP phones still hooked to the RPi 1. We warned them that that thing was kinda a hack ; )

For anyone hesitating: it's not hard to set up. Find a provider to get a SIP trunk, configure the thing, backup the config (I just imaged the entire drive), and you're good to go for a very long time.

It's simple, reliable, stuff that usually won't move under your feet.

comment 3y ago · link · parent

> This exit back to root is not a security hole

Wait... Doing just "su bob" is vulnerable to a known decades old exploit. You should do either "exec su bob" or "su -P bob" or you just gave bob root rights on every Linux kernel older than 6.2 (and I think on 6.2 and more recent the default is still insecure?).

It's explained here with a simple PoC exploit (I tried the exploit and it works/worked) and it's been frontpage on HN in the past I think:

https://www.errno.fr/TTYPushback.html

1
117118119
163