Readit News logoReadit News
emilbratt commented on CSS Grid Lanes   webkit.org/blog/17660/int... · Posted by u/frizlab
powersnail · 4 days ago
Just curious, what algorithm is good for laying out images of arbitrary orientations, sizes, and aspect ratios? That seems like a pretty difficult problem. Some sort of variation of knapsack problem maybe?
emilbratt · 4 days ago
I dont know what would be the best way, but I personally want each image to be represented correctly in relation to all other image. This means that the way images are laid out will looked jagged. However, as a consequence of that, it is easy to find back to a specific image. Its like when you are coding, you look at the "shape" of the code when scrolling to find that specific function definition etc..

Here is an example of the layout of a photostream that I was satisfied with.

https://frifoto.emilbratt.no/?view_mode=photo-stream&tag=All...

emilbratt commented on CSS Grid Lanes   webkit.org/blog/17660/int... · Posted by u/frizlab
emilbratt · 4 days ago
I always thought that the masonry layout looked good but made it harder to get a good overview of the images.
emilbratt commented on You can now play Grand Theft Auto Vice City in the browser   dos.zone/grand-theft-auto... · Posted by u/Alifatisk
superasn · 4 days ago
This works amazing well. I started playing and just 5 minutes in, I was completely hooked and ended up playing for almost half hour.

It could be that I'm a bit old-school, but this really seemed to confirm that ready to play fun gameplay trumps realistic graphics any day!

emilbratt · 4 days ago
Pushing the nostalgic effect aside, I agree. The gameplay is the important part and is why I can still play snes games to this day.
emilbratt commented on 30 years of <br> tags   artmann.co/articles/30-ye... · Posted by u/FragrantRiver
emilbratt · 7 days ago
Im only half way through, but just wanted to share that I love this kind of write up
emilbratt commented on Common Rust Lifetime Misconceptions   github.com/pretzelhammer/... · Posted by u/CafeRacer
littlestymaar · 9 days ago
I don't think anyone believes the “if it compile it works” phrase literally.

It's just that once it compiles Rust code will work more often than most languages, but that doesn't mean Rust code will automatically be bug free and I don't think anyone believes that.

emilbratt · 9 days ago
Yeah, even the official Rust book points it out and if my memory serves me right (not punintended) also gives an example in the form of creating a memory leak (not to be confused with memory unsafe).
emilbratt commented on Copenhagenize Index 2025: The Global Ranking of Bicycle-Friendly Cities   copenhagenizeindex.eu/... · Posted by u/axelfontaine
aallaall · 25 days ago
Of course it helps if the city, and country in general, is completely flat. Cities in Norway or Nepal have mother nature against all form of manual locomotion.
emilbratt · 25 days ago
In Trondheim, Norway we have the famous bycicle lift. :)

https://youtu.be/zipZ5kwhFfs?si=2kEsb-7wEpcS2Vkn

emilbratt commented on XBMC 4.0 for the Original Xbox   xbox-scene.info/articles/... · Posted by u/zdw
emilbratt · a month ago
I remember modding my Xbox and putting XBMC on it. One of my fondest memories is actually playing games directly off the hard-drive. One of the great "side-effects" of that was basically cutting loading times almost in half.

I especially remember the loading animation in the game Crash Bandicoot - Wrath of Cortex. Crash Bandicoot himself would keep falling during the loading screen. (note: PS2 version had another looking version). The game loading screen for Xbox was designed so that the camera movement nicely panned throughout it during the time the loading took, but due to the loading time being shorter the "animation" was cut short.

..just a fun little thing that stuck with me. :)

EDIT: Oh! I found videos on youtube demonstrating the "difference".

Here is the original experience: https://www.youtube.com/watch?t=1327&v=jLf9EZWLins

Here is the experience when cut short: https://www.youtube.com/watch?t=1157&v=Vk8AuLhnu58

emilbratt commented on Ask HN: What Are You Working On? (Nov 2025)    · Posted by u/david927
paulhebert · a month ago
It definitely has a bit of a learning curve! In playtesting it sometimes took a bit for the rotation to “click” for people.
emilbratt · a month ago
Yeah that was it for me, the rotation really threw me off.
emilbratt commented on Ask HN: What Are You Working On? (Nov 2025)    · Posted by u/david927
paulhebert · a month ago
I recently launched a daily word puzzle!

https://tiledwords.com

It’s inspired by tile placement board games like Patchwork and crosswords. You rotate and move tiles to rebuild a broken crossword.

It’s free, web based, and responsive.

I currently have several hundred daily players and growing. My wife and I create the puzzles and I’m continuing to fix bugs and add new features.

I just launched a ”community puzzle” feature to let players help build new puzzles.

I’d love to know what you think!

emilbratt · a month ago
I love it. I struggle more than I want to admit, but super fun nonetheless.
emilbratt commented on Writing a C compiler in 500 lines of Python (2023)   vgel.me/posts/c500/... · Posted by u/ofou
emilbratt · 4 months ago
That is not a compiler. That is called a wrapper script. But funny none the less.

u/emilbratt

KarmaCake day33November 9, 2024View Original