News for hackers. Stuff that matters.

crunchbang-excl

Re:Hollow Core Fiber (HCF) on Friday May 09, 2025 @10:39AM (#43937292)
That fullwidth question mark really makes the URL stand out, not in a good way.
The issue I find with the first linked article is that the people tested were not allowed to type normally. They were required to type with their dominant hand only, which reduces most people to hunt and peck typing.

Typing this way is a very different experience from typing with two hands, especially for people who can otherwise touch type.

I'd like to see a similar study with people allowed to touch type.

Re:Modeless Vim on Tuesday January 16, 2024 @12:30PM (#39016029)
The caps lock key is definitely using prime real estate on a keyboard for something that doesn't get used often.

I have taken to remapping it to a function key, moving caps lock to function+shift. Function+tab is mapped to escape, a combination I can easily press with my pinky alone.

This allows me to map a lot of the keys that would require moving my hand to function+[alphanumeric key], function+i is insert, function+u is page up, function+j is page down, function+r is home, function+f is end, and other such combinations.

I use a keyboard that supports QMK, so all of this customization is on the keyboard, but this could probably be done with software running on the computer, like AutoHotKey on Windows.

I thought that one was an example where you don't have to do anything.

I just went back to check and I saw that you are supposed to make some changes, which are shown in the solution, even though they are unnecessary to pass the tests.

The challenge generic class can be solved without making any change to the pop() function.

I got it to work with this code:

# Code starts here

class Stack[T]: def __init__(self) -> None: self.items: list[T]

    def push(self, item: T) -> None:
        self.items.append(item)

    def pop(self):
        return self.items.pop()
# Code ends here

This code has fewer changes than the solution provided, and doesn't need imports. I'm not sure the solution needs those imports either.

Perhaps the tests for that challenge should cover more cases.

Re:Google Drive has lost user data on Monday November 27, 2023 @09:29AM (#38432607)
AWS support can be very hit or miss.

I've had experiences where they will claim that something is possible when it is absolutely not, and you have to provide a lot of supporting information to get them to see reality.