News for hackers. Stuff that matters.

joestrong

Re:All clocks are 30 seconds late on Tuesday January 07, 2025 @02:11AM (#42620122)
A slightly related thing I think about someone's, is if I look at the time and it's 13:05 and then I do a task and when I finish a task it's 13:10, you could say that took 5 minutes, but because we can't see the seconds each time could be up to a minute out. So a total of 2 minutes error! Quite big if you're timing something small like 5 minutes!
Re:Does anyone use sound effects in their dev environment? on Monday September 16, 2024 @10:52AM (#41556706)
Definitely interested
Re:Apple Maps on the web launches in beta on Thursday July 25, 2024 @04:14AM (#41066128)
If you put something random after the URL it seems to skip the browser checks: https://beta.maps.apple.com/bleh
Re:Time-Based CSS Animations on Sunday May 05, 2024 @04:19AM (#40263140)
Don't forget that CSS animations are hardware accelerated. If you're doing trig in JS for animations, you're probably also manipulating the DOM to update the UI every millisecond, which is very expensive
Re:Hardest Problem in Computer Science: Centering Things on Thursday April 18, 2024 @05:52AM (#40074529)
> (also don’t ask why justify-content became justify-items)

It didn't. `justify-content` works with grid too, and will bunch all the grid cells into the center. `justify-items` is if you want the contents of each grid cell to be centered.

Also, `place-content` or `place-items` for grid does both the horizontal & vertical at the same time.

I admit that CSS isn't always obvious how it works, but it seems like the author didn't care to check

Re:RyujinX – Open Source Nintendo Switch Emulator on Thursday August 31, 2023 @03:55AM (#37333858)
I second this. I also have a web background, and last year I started with this video, and the Gameboy is a great place to start with this sort of thing.

Start making a game, and you'll soon realise how the CPU works, and making a simple emulator will start to seem very possible.

Re:The Password Game on Tuesday June 27, 2023 @07:08PM (#36499962)
I started this just before midnight, and once I got to the wordle question it didn't work. Possibly because the wordle had changed since starting the password game
Re:Leon: Open-source, self-hosted personal assistant on Sunday September 04, 2022 @03:57PM (#32717074)
I did figure out how to do it at one point. I think you had to remove some default config from a JSON file to stop it connecting to their cloud. You still had to query Google directly for the STT though
I've tried putting my phone in airplane mode and the feature still works. You can easily try that yourself.
Re:HOWTO: Be more productive (2005) on Friday June 04, 2021 @08:02PM (#27400582)
I'm currently doing both of these with success:

- Limit to 1 creative thing per month (music one month, programming the next, etc.) I find it helps to get deep into 1 thing for a while rather than skimming the surface on multiple

- Waking up early, and doing the creative things first (less interruptions in the morning, you have your energy)

Re:CSS Tips on Tuesday April 27, 2021 @04:50AM (#26953568)
I'd argue that `place-content: center` is better than `place-items: center` as it would handle multiple child elements in a way most people would expect from a simple centering snippet.

place-content will position all the children to the center, which is generally what's desired here.

place-items, would make each child element center itself within its own grid square

Re:CSS Tips on Tuesday April 27, 2021 @04:45AM (#26953530)
Actually, this is technically incorrect. It doesn't set justify-content, it sets justify-items. This is why it works with grid, and not flexbox

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items

I think there's a lot of confusion for most people between justify-content/justify-items and align-content/align-items

You beat me to posting this. It's a great video - I often revisit this video for creative inspiration.