[1]: to name one: https://fgz-risc.de/forschung/inra-studie
430 karma · joined October 26, 2021
[1]: to name one: https://fgz-risc.de/forschung/inra-studie
When a newbie learning programming sees this message, then this is a downer.
"Hello World from example.com [more info]"
* The black hole is not moved until the cursor has moved more than five pixels.
* The first time the black hole moves in the dragging process, it moves more than one pixel, afterwards one. So it is a small jump and then it moves smooth.
* The cursor icon changes to the drag symbol only after the mouse has already moved five pixels, not as soon as the mouse button is hold down.
* When the mouse is outside the draggable zone, but still in the game window, the black hole is not dragged along the border.
/* define layer order. Not necessary here */
@layer pico, nils;
/* import framework into layer */
@import url("pico.css") layer(pico);
/* define own styles in own layer, they have precedence. CSS vars are still global. */
@layer nils {
p:first-of-type {
color: green;
}
}A young child using a Linux, just having a restricted amount of knowledge resources will probably learn it better than with the internet connected. At least I made that experience. I learned programming the Web with just having local access to the SELFHTML documentation.
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...
--- 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.
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.__...
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)
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 ...
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.
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.
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.
https://github.com/ramensoftware/windhawk is also worth mentioning, I use it to unfuck the Taskbar.