HNHacker News
TopNewBestAskShowJobs

nilslindemann

449 karma · joined October 26, 2021

https://github.com/nilslindemann
submissionscomments
nilslindemann··on Ask A Monk – A digital wilderness for thoughts with no immediate answer
Ditto. This sucks :-)
nilslindemann··on We got admin access to Baseten's production GitHub
Your intuitution is right. At least in Germany it is not legal if not asked for permission first.

https://www.nilsbecker.de/rechtliche-grauzonen-fuer-ethische...

See also the German Criminal Code, starting with §202a "Data espionage":

https://www.gesetze-im-internet.de/englisch_stgb/englisch_st...

nilslindemann··on Mexican student creates an acoustic fire extinguisher to put out fire in seconds
I also just asked the AI [1], and it too states that you are wrong, fsckboy. Quote (translated to english):

--- start quote ---

This system is precisely tuned so that the air mass within the tube resonates — acting like an additional diaphragm — at the resonant frequency. This delay inverts the phase of the sound wave from the rear of the diaphragm, causing it to exit the enclosure in phase with the sound from the front. Instead of cancelling each other out, the sound waves reinforce one another. This significantly increases efficiency in the bass range.

Efficiency:

A bass-reflex enclosure increases efficiency in the low-frequency range compared to a sealed box of the same size. At the resonant frequency, the speaker requires less amplifier power and less cone excursion to produce the same sound pressure level.

Boominess and Neutrality:

The first user claims the port is there to reduce boominess. The opposite is often the case: poorly tuned bass-reflex speakers are prone to "booming" or imprecise ("boomy") bass precisely because of the resonance. A sealed enclosure often sounds more "neutral" and precise by nature, though it does not extend as deep into the low frequencies."

--- end quote ---

[1] https://share.google/aimode/tmlU5Bho6uHZ9IrGq, available for seven days.

nilslindemann··on Chess.com Leak Exposes 7.3M Users, Evidence Points to Scraping
I just logged in to delete my chess.com account, got a message: "This account is closed, please log in with your e-Mail to reactivate". No word by them having been hacked.
nilslindemann··on Mexican student creates an acoustic fire extinguisher to put out fire in seconds
Well, a search for "youtube acoustic fire extinguisher" indicates it has already been invented a few times by people all over the world. The most interesting video is https://www.youtube.com/watch?v=ZvnCQg4w4o8
nilslindemann··on Python sets and dictionaries can have quadratic-time performance
Actually, as the Google AI just taught me [1], the bad performance results from hash _collisions_, not from using bigints (which the author also mentions):

    import timeit
    
    def test(M, n):
        values = [i * M for i in range(1, n + 1)]
        s = set(values)
        sum(v in s for v in values)
    
    M = (1 << 61) - 1   # This is a bigint and also a Mersenne prime number
    N = (1 << 61) + 42  # This is a bigint, but not a Mersenne prime number
    
    # This runs slow
    for n in [1000, 2000, 4000, 8000, 16000]:
        print(f"M=2^61-1, {n=:5d} ->", timeit.timeit(lambda: test(M,n), number=3))
    
    # This runs with normal performance
    for n in [1000, 2000, 4000, 8000, 16000]:
        print(f"N=2^61+42, {n=:5d} ->", timeit.timeit(lambda: test(N,n), number=3))
(1 << 61) - 1 is a Mersenne prime number, which Python uses internally on 64-bit systems for the hash algorithm for big integers. When multiplying numbers with this prime number, hash collisions become common, and this slows down the performance.

This is not completely theoretical; hash-DoS attacks make use of that. For this reason, there is hash salting since Python 3.3 for strings, bytes, and datetime objects [2], but not for integers, because the most common attack surface is JSON, but JSON keys are strings, and hash salting would slow down the performance of math operations.

[1] https://share.google/aimode/cXQyw0SDPr5FnhBc5, available for seven days

[2] See the grey info box here: https://docs.python.org/3/reference/datamodel.html#object.__...

nilslindemann··on Stockfish 19
Is your fork public? Have an example of where Stockfish does not blunder with your change?
nilslindemann··on Stockfish 19
However, Stockfish 19 has gotten better at understanding fortresses:

https://lichess.org/analysis/1b3r2/8/4P3/2pP2k1/3nB2p/3P3P/5... (now finds 1...Rxf2 = immediately, the evaluation is closer to 0.0)

https://lichess.org/analysis/8/kp2q3/1Np5/pPPp1b2/P2Pp1p1/4P... (finds 1.Nc8+ = quicker (let it ponder four lines), the evaluation is closer to 0.0)

https://lichess.org/analysis/rk6/1p1b4/pBp5/PPPp4/3Pp3/4Pp1p... (The evaluation is closer to 0.0, though still far away)

https://lichess.org/analysis/7k/4p3/5p2/1p1p1p2/1PpP1PpB/1pP... (Evaluation is closer to 0.0)

nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
Interesting, but isn't Wayland the future? Edit: I see it links to alternatives to that, like ydotool and dotool. But these do not seem to be active, well documented projects. Far away from the usability of AutoHotkey.
nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
Thank you, dick from the internet, for these links, which are not as relevant as you think they are. I will prefer my yanky, well-documented DSL. I think you are right with the userscript.
nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
See my answer to user orbital-decay above.
nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
> GUI automation is fairly alien and roundabout way of doing things on Mac and Linux.

That's a nice claim you just made up there, out of thin air.

> If you have something specific in mind, you can say it.

I need something to hack together a solution and then go on. I don't want to

* Create GitHub issues and hope and then wait.

* Learn how this GUI was written and fix it by modifying and compiling the source.

What I need is the ability to:

* Activate windows

* Detect the active window

* Move and rescale the active window

* Move the mouse relative to the active window

* Move the mouse absolutely to the screen (if the relative method is broken)

* Sometimes move the mouse relative to itself

* Press mouse buttons, including WheelUp, and WheelDown (and that is sent to the active window)

* press keyboard button combinations (and that is sent to the active window)

* Send text (yep, many tools can do that)

* activate menu entries in the active window

* Get the text of active menu entries in the active window

* Find icons in the active window by providing an image, rarely used, when all above attempts fail.

* Finally, define shortcuts that do combined actions of the above.

I won't walk with you through every concrete possible application, but I give an example for Scid, which is also a Linux tool. Both on Windows and Linux, it happens that the save game dialog is partly moved outside the view rectangle of my screen. No idea why that is so. I need to drag the save dialog to the middle of the screen first. AutoHotkey to the rescue:

    #HotIf exe_active("scid")  ; `exe_active` is a shortcut
    
        ^s:: {
            Send("^+s")
            WinWait("Scid: Partie speichern...")
            WinMove(19, 95, 660, 651)  ; place it over the board.
        }
        
        ; ...
    
    #HotIf

Another example. Every window manager I tested, which has "snap window to border in order to place it on half the screen" does not restore the window to full screen when I press the button left of the "close window" button. Instead, they place the window in a random position. It is not "click the middle button twice to switch between full screen and snapped position", which is the common use case. Thanks to AutoHotkey, there is a fix available on Windows: https://github.com/RamonUnch/AltSnap Edit: Okay, thats not AutoHotkey but raw C. But still that would be a use case for AutoHotkey.

I hope I’ve managed to clarify my point regarding the need for an AutoHotkey on Linux. There are simply too many bugs, idiots, and unimplemented features to get back into the flow quickly without AutoHotkey.

Just when sending this text, noticing that this site does not properly handle markdown bullet list, I found another great use case for Autohotkey, when pressing the Enter key on Hacker News ...

nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
> It's packaged in Debian and Ubuntu as "doublecmd-qt" and "doublecmd-gtk"

Ah, I found it now. I must have misspelled it, just saw the language files earlier. Yes, this seems to be a valid alternative to Total Commander. It has what I need, including script buttons, very nice. There are still a few bugs, like the buttons are currently all light grey. I will see if I can resolve that. Thanks for this tip.

nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
The points I made were valid blocks for using Linux exclusively. Like the other dude answering, I wonder if you ever used Autohotkey to unfuck annoyances in software. I bet you have no clue at all. Regarding your other improvement suggestions, yes, it is actually easy to log in as administrator, and yes, DoubleCommander is a great alternative. You people are right about that. No, Total Commander does not run smooth under Wine, at least on Linux Mint. No, there is no good replacement for AutHotkey. You people are wrong about that. <Homer Simpson Voice>so far</Homer Simpson Voice>.
nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
> everything it does is done in different ways in other systems.

You are not the first Linux user claiming that to me, but it is not true. you never actually tried, admit it.

> TC can be run on Wine absolutely everywhere

I just tried again on Linux Mint. The folder tabs overlay the path to the current dir and the window can just be full screen. Those are the bugs detected after a minute of usage.

> DoubleCommander is a near-direct replacement

Okay, I was just able to install that, and it seems to have what I need. So thats a valid Point, Linux has something comparable to Total Commander.

> Log in as Administrator (...) Sure, it's trivial

Yes it is, I just did that. I give you that.

nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
It is not listed in the Linux Mint App Installer. The Portables downloaded from Sourcefoge do not work. Can it filter-as-you-type the file list? Does it have chainable script button bars? Is there a poweful rename tool? Can it look pretty (example: https://i.imgur.com/tLt5B1m.png)?
nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
I tested these things and the results were not so great. Also, if I need to emulate my OS under wine, then I can as well just use it directly.

The only Linux Software I miss on Windows is Timeshift. Thats not enough.

Edit: I just have set up root login on Linux Mint. Okay, thats actually not much more difficult than on Windows.

nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
You may also check out https://github.com/flick9000/winscript. It has a GUI, but generates a powershell script.

https://github.com/ramensoftware/windhawk is also worth mentioning, I use it to unfuck the Taskbar.

nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
Oh, I also need a way to compile CodeBrowser 4.9 [1]

[1] https://github.com/nilslindemann/Code_Browser_49

nilslindemann··on O&O ShutUp10 – The antispy tool for Windows 10 and 11
Fine, I will switch when your OS has Autohotkey, Total Commander, and allows me to log in as Administrator.
nilslindemann··on Twitter Viewer – View Twitter Without Account
Why not just a website?
nilslindemann··on A Friendly Introduction to Racket
that look*
nilslindemann··on A Friendly Introduction to Racket
Curious, how would look that in Python?
nilslindemann··on Our Servants Will Do That for Us
Because people die and new people get born, and those will grow up one day playing games with their house roboter.
nilslindemann··on Our Servants Will Do That for Us
Agreed, that will take a few generations. We can start today and tell every kid that the work-all-day-cake is a lie.
nilslindemann··on Our Servants Will Do That for Us
According to Castaneda, what you call a "ruler" is merely a person who has already succumbed to the warrior's second enemy (fear, power, clarity, death). Such failed figures may disrupt the natural flow of things for a time, but ultimately, all that remains of them is a Wikipedia lemma. New tools and environmental conditions, by contrast, have a profound impact on human evolution.
nilslindemann··on Our Servants Will Do That for Us
The basic plan (figure out the details yourself):

1) We make a list of things all humans without work need daily, to survive.

2) We calculate how many work hours are needed to make these things.

3) We divide these hours by the number of humans who have no work (and therefore can not buy these things).

4) Every one of those humans works that number of hours to get these things.

5) Over time, we improve the workflow, getting the amount of work hours closer towards zero, but people still get the same things.

6) Above that, free markets and luxury, as people desire, with the usual rules keeping the playing field clean.

The difference to the system we have now is that now the system wants (or needs, due to compound interest) people to work AS MUCH AS POSSIBLE. My plan wants people to work AS LITTLE AS POSSIBLE BUT AS MUCH AS NECESSARY.

nilslindemann··on Our Servants Will Do That for Us
Yes. And I’ll be waiting for you on the terrace of a Dutch coffee shop, gazing at the evening sun over the sea, with a chessboard on the table, a joint in my left hand and a cup of coffee in my right, while jazz plays.
nilslindemann··on Our Servants Will Do That for Us
> “Drudgery” and “meaningful work”.

The future is not: The computers do the boring work and we do the fun work. The future is: the computers do the work and we have hobbies.

> we prefer solipsistic convenience over human relationships

If we would not like to be with other humans, we would not have sex with them, dance with them, play chess with them, go into a restaurant with them, smoke a bong with them, climb on and then basejump from a mountain with them.

nilslindemann··on Copyright does not protect AI-generated content in EU
Actually, in Germany, copyright remains with the author and their heirs until seventy years after the author's death; it cannot be sold or given away, even if someone paid them doing it. Instead, there is "Verwertungsrecht" or "Nutzungsrecht" ("License", "Usage right"). In the USA, copyright can be sold completely to another legal entity.
← PreviousPage 2 of 15Next →