HNHacker News
TopNewBestAskShowJobs

janosdebugs

1,557 karma · joined April 20, 2022

submissionscomments
janosdebugs··on Synchronize a 3D scene across multiple windows using Three.js and localStorage
I believe that's true, but I'd guess most people don't edit their README using the GitHub editor.
janosdebugs··on Synchronize a 3D scene across multiple windows using Three.js and localStorage
Visuals are hard to include because you need to store them somewhere. If you store the in the git repo, they bloat the repo. It's really annoying to clone a repo and having to wait forever because it has a bunch of binaries in it. I try to use SVG whenever possible, sometimes animated with CSS (see example[1]) as they are made if text and are much smaller. When I need non-SVG images, I host them externally, but that's a bit if an overhead and you need to make sure you don't break the image link accidentally.

[1] https://github.com/gotesttools/gotestfmt

janosdebugs··on CEO: Europe needs tech entrepreneurs 'whose project is not to sell' to US[video]
Austria here. Relatively high corporate taxes (25% on corporate profits, then 27% on distributed profits to shareholders if I remember correctly), and it's hard to give employees shares. The latter they are trying to fix now by adding a new company type called a FlexCorp which essentially works like a GmbH, but you can give out up to 25% of non-voting shares to employees in a simplified process. I don't know how attractive that is, it sounds dumb to me because I don't understand why they can't be normal shares and your company will be named Example FlexCorp instead if Example GmbH. (Doesn't sound shady at all.)

On the funding side, we have the Austria Wirtschaftsfond, which provides angel-level funding on some level, but the amounts are relatively low and there are restrictions what the money can be spent on. (E.g. only employees, which shareholder-CEOs are not in all circumstances, etc.) Basically, it's tricky and a jungle to navigate. I have never done a US startup, but from what I saw it seemed less intricate.

On the flipside, my wife and I have a GmbH and since we got over the initial unknowns, it seem relatively straight forward to actually run the company on a day-to-day basis, provided one actually makes money.

janosdebugs··on This page knows your battery charge level (unless you're using Firefox)
Let's say you are showing something performance intensive like a 3D model. If the user is known to be on battery / low battery, the user could be asked or that feature disabled to save on battery life, allowing the user to reenable it.
janosdebugs··on PHP 8.3
Several years ago I worked on an interop project with Quercus, not sure if that project is still alive and tracking the changes.
janosdebugs··on Ask HN: I'm bad at design, which stops me from finishing side projects. Advice?
What helped me a lot was learning design specifically. Not in a structured fashion, but I picked up bits and pieces about grid systems, vertical rhythm, color theory, typography, etc. While I was doing that, I also learned from the descriptions what an art person would look at. What's their way of thinking? How do they look at content as shapes on a drawing board? How do they guide attention?

The result? I'm "ok". Apart from the current website I made with my wife, I mostly made relatively simple designs which I could at least look at. Theory really helps provide guardrails, rules to follow. Later you can stop following the rules once you know what you are doing.

Edit: I also find multiples very helpful. For a website, I'd start with a base line height of 1.5rem and make everything a multiple or divided by a whole. Menu height? 3rem. Border radius? 0.75rem. Padding? ... You get the idea. Later on you can bring in stuff like golden ratios. When I started 3D stuff, I did the same in Blender. I moved everything via the coordinate box.

janosdebugs··on The blender.org servers are experiencing a DDoS attack since last weekend
Autodesk maybe, but Adobe? I don't see anything on their product portfolio like Blender. Substance Painter maybe? But when it comes to ease of use and feature completeness, texture painting in Blender is a very rudimentary tool.

At any rate, taking down the Blender website wouldn't help them I don't think.

janosdebugs··on SEC charges Kraken for operating as an unregistered securities exchange
This sounds good in theory, but in a world where you can open companies by the dozen, international jurisdictions, no compulsory registration of company facilities, no private right of audit it's impossible to keep track of who is doing what. Additionally, tainting the news by flooding review sites and what not doesn't help either.
janosdebugs··on The big TDD misunderstanding (2022)
Genuine question: can somebody please explain why there needs to be a distinction between "true" unit tests and tests that work on several layers at once as long as said tests are runnable <1min on a consumer-grade laptop without any prior setup apart from a standard language + container env setup?

Over the years I had several discussion to that effect and I truly, genuinely don't understand. I have test cases that test a connector to, say, Minio, so I spin up a Minio container dynamically for each test case. I need to test an algorithm, so I isolate its dependencies amd test it.

Shouldn't the point be that the thing is tested with the best tool available for the job that ensures robustness in the face of change rather than riding on semantics?

janosdebugs··on I will always prefer to work from home
Hear, hear. This is especially tricky since being an introvert doesn't mean that one is completely unable to interact with people, just that it's super draining. "You an introvert? Impossible." - is a typical reaction. WFH is a massive quality of life improvement.
janosdebugs··on Screen time does not affect child development
Unfortunately, from what I see it achieves exactly the opposite. The kids who have experienced an authocratic parenting style seem to be the ones most likely to do something untoward (~11-12 year olds).
janosdebugs··on Screen time does not affect child development
> Then why do so many kids scream their heads off and have temper tantrums when the phone is taken away?

Taking things away as a method of enforcement doesn't seem to be all that effective and it undermines the kid's self determination. The only thing it does make kids angry and disappointed. A lot of kids have to live by arbitrary rules that don't make any sense, or if they do, haven't been explained to the kid. "Go to your room" and taking things away need to go away from the parenting toolkit, they just lead to kids who get accustomed to going behind the parents' back.

janosdebugs··on Sentry Relicense Again (FSL)
To add to the sibling comment, the Apache license requires you to carry along the NOTICE file, whereas MIT does not. This is often overlooked.
janosdebugs··on Paris to hold referendum on higher parking fees for heavy SUVs
Let's see... If we privatize roads and every owner (pinky promise) only makes everyone pay basod on vehicle weight... That almost sounds like a tax based on car weight.
janosdebugs··on Ask HN: Dear startup founders, what have you developed in-house?
Gaming(-ish) startup, developed a schema-based serializer for Godot (open source) to ensure communication with various servers and the mid API is well documented and the data validated.
janosdebugs··on A coder considers the waning days of the craft
> middling generalists can now compete with specialists.

They can maybe compete in areas where there has been a lot of public discussion about a topic, but even that is debatable as there are other tasks than simply producing code (e.g. debugging existing stuff). In areas where there's close to no public discourse, ChatGPT and other coding assistance tools fail miserably.

janosdebugs··on Android App Devs now require 20 people to test before publishing to Play Store
Wait what? So if you have a company, you don't need to test?

Edit: wow, that's how I'm reading it too. If you have a DUNS number, this will presumably not apply to you. So this isn't about quality, it's an anti-spam measure. Crazy.

janosdebugs··on To free the Baltic grid, old technology is new again
As I understood from the discussions last winter here in Austria, a black start is not a single switch, you need to start on one side of a country (where you have power or blackstart-capable plants) and then work your way through the grid. That takes a while and you don't want citizens without power even for a few hours if you can help it.
janosdebugs··on Diamonds Suck
My wife and I bought a titanium ring with a wood inlay for our wedding. Would buy again.
janosdebugs··on Go modules and the domain expiry problem
You don't need to do that with Go, go.sum stores the checksums and you can use go mod vendor to download the dependencies to your own repo.
janosdebugs··on Go modules and the domain expiry problem
No, the article suggested that when hosting a Go package on your private domain that domain might expire. However, most Go packages are published as the module name being github.com/author/packagename, in which case domain expiry is not a problem, but you need to keep a hold of the account.
janosdebugs··on Go modules and the domain expiry problem
It's not _my_ tests that depend on C, but B's tests. I don't maintain B, nor do I care for its tests. They shouldn't be in my dependency tree at all.

This is a problem because every time C has a vulnerability, you get a deluge of vulnerability scanner alerts or Dependabot pull requests to update it, even though your application has nothing to do with C.

If anyone has a solution for this, I'd really love to hear it because it consumes a silly amount of time to deal with bogus vulnerability alerts.

janosdebugs··on Go modules and the domain expiry problem
One could argue that if the personal website goes away, you should be taking a hard look at that dependency anyway as it may have become unmaintained. Also, you can use vendoring if this is a concern.
janosdebugs··on Go modules and the domain expiry problem
My main gripe with it is the missing separation between test and prod dependencies. Let's say you work on program A, which depends on library B. Library B uses library C as a test dependency. It shouldn't have any effect on A whatsoever and should not even be downloaded. Yet it is.

Apart from the obvious bandwidth and storage space wasted, this is also a problem when compiling an SBOM (Software Bill of Materials) and when scanning for vulnerable dependencies. There is simply no way to tell if your Go binary is vulnerable simply by looking at the go.mod/go.sum file, you have to build and analyze the binary and hope that everything went well. Same for compiling NOTICE files for license compliance. (wink wink Apache license)

This isn't an unknown or unsolved problem either, Maven solved this ages ago.

There are also some minor nitpicks, such as their absolute requirement to do path-based semantic versioning from v2, but not from v1 or v0. If you change anything, but absolutely anything that's publicly visible, you must increase the minor version of the library you are publishing or you will have a really bad time. If you want to publish both a library and an application, you have to either version them with ridiculous version numbers, or you have to split the two.

janosdebugs··on Go modules and the domain expiry problem
I have a lot of bad things to say about Gos module system, but this ain't one of them. With this system you don't need an account somewhere to publish a package and you still get to use GitHub, Gitlab, etc. without your module URL being dependent on them. If you consider alternative systems with accounts, if you loose access to the underlying email, you may be out of luck, too. Or in the case of Rust/crates.io, if you delete/switch your Github account you can't log in anymore either.
janosdebugs··on Capturing the WebGPU Ecosystem
There's a whole bunch of 3D stuff you can do on the web, from product demos and configurators to interactive navigation. Simple casual games will work fine too if optimized properly. Heck, my wife and I built a 3D content website with BabylonJS for no other reason than we could.
janosdebugs··on FBI and Austria's C4 Hit Z-Library with a New Wave of Domain Seizures
Nitpick: never is a strong word to use, the neutrality can be revoked by an act of parliment. See https://www.parlament.gv.at/fachinfos/rlw/Was-macht-die-oest...
janosdebugs··on Maine's constitution has unprintable sections
In a lot of places in Europe minorities have varying degrees of autonomy, protections and special rights (use of language, schools, sometimes more). History and legal systems are complicated and a lot of it doesn't make sense without the historical context.
janosdebugs··on Ask HN: Am I unhireable?
I'd love to join to help out in the support group, but Discord decided a while ago that something about my e-mail, phone number, browser, or IP is something they don't like and instabans me 10 seconds after signup. The most nafarious thing I did was deleting my account a while back. Go figure.
janosdebugs··on Exim 4.97.0 – SMTP Mail Server – Message Transfer Agent (MTA)
It is flexible to the point where I would call it programming more than configuration. You can implement pretty much anything mail-related with it, including a mailing list. A good 15 years ago I used multiple Exim instances to implement a highly scalable regional mail service. (Microservices before they were called that.)
← PreviousPage 7 of 20Next →