HackerTrans
TopNewTrendsCommentsPastAskShowJobs

wonrax

no profile record

Submissions

A 16-Color Vim Color Scheme

hamvocke.com
3 points·by wonrax·há 11 meses·0 comments

The Guide to Fuji's Film Simulations

imaging-resource.com
2 points·by wonrax·há 2 anos·0 comments

comments

wonrax
·há 10 meses·discuss
I love the container auto update feature. It's so nice to have them built in whereas for Docker I had to use watchtower.
wonrax
·ano passado·discuss
I thought this was a gimmick too until I went to their landing page and it's also an editable doc. It's intentional.
wonrax
·há 2 anos·discuss
> I feel a lot of anxiety when I'm forced to touch fragile bits written in Ruby, Python, and JS.

I resonate with you even with TypeScript, since it's just annotating types but not the true value under the variable. You would have to go to a greater extent to make sure that everything from outside (library code, parsing HTTP responses, database queries, etc.) conforms to your annotated types. Even in the same project code created by other people, I often doubt the validity of the types, asking myself questions like: Should I validate this? What if this has already been validated, thus making mine a performance waste? Does this object contain extra sensitive information that could be leaked when used in a logger?

After having experience with Rust, working with TS feels like navigating a minefield where every refactor could detonate hidden bugs or behavior collectively accumulated by all the historic code and dependencies, small or large.
wonrax
·há 2 anos·discuss
Exactly. If your project already uses npm and Node, why not just use npm scripts for trivial tasks like this? Adding an extra dependency (Make) to build a project doesn't make sense.

Even if your project needs a more sophisticated build system that requires caching builds and managing conditional dependencies, turborepo and the like offer even better support for javascript codebases out of the box. Turborepo can be a workspace dependency so technically you don't even have to manually and separately install a build system to build your project.
wonrax
·há 2 anos·discuss
> Postgres isn't hard to use, but it requires maintenance. You need more scripts, more tooling, more knowledge of DBA, and that may not be necessary.

I don't think Postgres needs to be maintained at all for small databases, which is usually the use case for SQLite. Their default configurations would take care of most things for trivial applications.

> Starting an application with a temporary in-memory database is a lot faster than starting a full container.

Starting a container might be way slower than SQLite, but I would still consider it fast for most, if not all use cases.

> hooking up a Postgres account

You can configure Postgres to start up in trust mode, which doesn't require a password for any user. This is basically the same as the unencrypted SQLite database file but with a fixed connection string: `postgresql://postgres@localhost`
wonrax
·há 2 anos·discuss
Because they would then have to camera track the whole clip to place the bins, and also make sure the bins stay in the correct positions when they reappear and disappear out of frame. In contrast, they only need to camera track the few frames when he does the kick. The quick movement of the ball also makes it harder to spot CGI errors IMO. Whereas if you have to fake the bins, you also have to deal with camera zoom, exposure changes, etc. that happen throughout the clip.
wonrax
·há 2 anos·discuss
Can someone specialized in applied machine learning explain how this is useful? In my opinion, general-purpose models are only useful if they're large, as they are more capable and produce more accurate outputs for certain tasks. For on-device models, fine-tuned ones for specific tasks have greater precision with the same size.
wonrax
·há 2 anos·discuss
This is the exact same problem I encountered back when I was taking the Parallel Computing course, except I was an absolute novice and had no idea about debugging or profiling. I remember it took me several days speculating and searching for an answer to this issue on Google, and I finally found an explanation on Stack Overflow, which also suggested using rand_r. It was one of the first instances where I was introduced to solving and debugging a difficult computer programming problem, and it still sticks with me to this day.
wonrax
·há 2 anos·discuss
I'm not very experienced, but by skimming the headings I can see that it covers almost all of Rust's core features. I'd say you're between a beginner and an intermediate Rust user if you complete the exercises and can be comfortable dealing with lifetimes.
wonrax
·há 2 anos·discuss
> Mocks that help you are the ones that are automatically generated representing actually what production has.

I'm a novice when it comes to mocking, can you explain more on this or link some articles to read?
wonrax
·há 2 anos·discuss
Tailscale remains useful when deploying with GitHub actions. Currently, I have my cloud VM open on an unconventional SSH port so that GHA workers can SSH into it and initiate the deployment. I plan to utilize their action [0] so that any GHA worker can access the deployment machine without exposing any ports.

[0] https://github.com/tailscale/github-action
wonrax
·há 2 anos·discuss
Totally agree. I'm surprised that a post making a big claim with little research and shallow content like this got to the frontpage with over 800 upvotes. Sad you're being downvoted too.
wonrax
·há 3 anos·discuss
I still remember when I first discovered Blender. It was around the time Blender 2.8 had just been released with its new UI. At that point, some people still preferred using 2.7 because the new UI was too different for them. The first thing that blew my mind was the size of the download, which was around 50MB. I had expected to have to download much more than that, which is typical for creative, graphical applications. After using it for a while, I recognized how polished and powerful Blender is compared to other opensource projects I had used before such as GIMP. 3D is not my professional work, I use it as a hobby, and I've learned and created many 3D works that were only made possible because Blender is free. The community on YouTube and Stack Exchange is large and friendly as well. I just love Blender so much.
wonrax
·há 3 anos·discuss
RUSTFLAGS environment variable, it's mentioned in the post too:

> $ RUSTFLAGS="-Z threads=8" cargo build --release
wonrax
·há 3 anos·discuss
For my personal site I run Caddy in a Docker container along with other containers using a compose file. By doing it this way, getting things up when moving to a new instance is as simple as running `docker compose up`. Also making changes to the config or upgrading Caddy version on deployments is the same as a other services since they're all containers. So it's easy to add CI/CD and have it re-deploy Caddy whenever the config changes and there's no need for extra GitHub Actions .yaml's. Setup as code like this also documents all the dependencies and I think it might be helpful in the future.

Having said that, for serious business, this setup doesn't make sense. It possibly takes more work to operate as container when the gateway runs on a dedicated instance.
wonrax
·há 3 anos·discuss
Currently it has only one API route to simultaneously increments the view count in Postgres and returns an HTML badge containing the count. In the future I want to use it for authentication, particularly for admin routes and other stuff to access my private data.
wonrax
·há 3 anos·discuss
I currently host a personal VPN and my website (which includes a static blog, a Rust API, and a Postgres database), all on a $6/m VPS. Being a first-time customer, the service provider offered a 100% bonus on the credit I deposited making it even half as expensive. It probably won't hold up when the site has decent traffic, but for now it's the best money I've spent.
wonrax
·há 3 anos·discuss
> Scans from National Geographic magazines dating back to the 1800's. Wonder if I can use these photos for personal or even commercial projects. Is National Geographic enforcing copyright and license to this medium?
wonrax
·há 3 anos·discuss
At 17446m mark:

> Unlike the troposphere, the temperature in the stratosphere increases the higher you go.
wonrax
·há 3 anos·discuss
> This requires resolve. I constantly get requests to add more icons to the toolbar and I constantly have to say “no” because adding 2 more icons to the toolbar to satisfy 10% of users makes the app slightly worse for 100% of the users.

This, this is why I love the app. Adobe Acrobat has more pleasing GUI but it clutters with buttons and sidebars and functionalities that I'll never use most of the time but they consume most of the screen real estate. When reading, I'd like everything to get out of the way and let me focus on the content, SumatraPDF serves me well.