HNHacker News
TopNewBestAskShowJobs

hknmtt

352 karma · joined September 5, 2022

submissionscomments
hknmtt··on Bluesky migrates to single-tenant SQLite
good luck with running updates.
hknmtt··on Building a high performance JSON parser
what does this bring over goccy's json encoder?
hknmtt··on What's the difference between Capitalism and Socialism?
well you have capitalism where you have free markets and meritocracy. a natural order of things how they work in nature and real world. then you have communism where the government owns everything and there is no meritocracy and everything is dictated. the opposite of natural order and meritocracy or invention and creativity do not exist there. and lastly you also have fascism which is something in between where you still have free markets and meritocracy but the government will occasionally step in and take over over a company or anything, really, and assert their control while leaving the rest of the society and market alone. so it is a triangle. socialism is somewhere within this triangle and it can be closer to any of the sides or edges so it is not just one socialism, it is more about the flavour. but in essence socialism is about taking money from people who have it and giving it to people who do not have it. which will eventually corrupt the entire system where politicians will be buying votes with welfare and inevitably the system will break when the rich will simply leave because consumers always outweighs producers and when you sqweeze your producers too much you end up only with with consumers and such system cannot survive.
hknmtt··on Ask HN: How to survive indefinite DDoS attack?
why would i care about udp when i run only tcp?
hknmtt··on Ask HN: How to survive indefinite DDoS attack?
sacrificial proxies make sense although they would all have to be essentially located in the same local network as the target server to avoid routing traffic over different geozones and essentially function like a more advanced firewall. still, it is possible solution and not even expensive.
hknmtt··on Ask HN: How to survive indefinite DDoS attack?
but all how are all these services able to let in valid traffic? won't they simply cut me off altogether to protect my infrastructure at the cost of no access for my users?
hknmtt··on Ask HN: How to survive indefinite DDoS attack?
ever since cloudflare went political and started kicking off customers for their opinions, i never touched that service and never will. and i have a very long memory. but alternatives are welcome.
hknmtt··on Tell HN: This is how you can bypass YouTube's Anti-Adblock mechanism
i have been using firefox+uBlock Origin and until last week i only had to log out, clear all app data from brwoser and as precaution flush ubo cache, once a day and that worked. but since couple of days ago i have not had to log out and it works just like always. either ubo got some new filter or youtube reverted some intrusive changes.

i have also installed freetube which works great except recommendations because you are not logged into youtube so it lacks history.

hknmtt··on Ask HN: If you were to build a web app today what tech stack would you choose?
i cannot answer objectively for obvious reasons. but i am very happy with Go back-end, Quasar front-end, JSON for message formatting and MariaDB for data storage. I have made couple of project in this manner, in addition to previous ones, so I am very happy with this setup and cannot really imagine trying anything else that would work better. Quasar can be also built into a mobile app which is another bonus.
hknmtt··on Upgradable Read Write Lock for Go
iirc RWMutex used to be much slower than standard Mutex so there was no good use case for it over standard Mutext. That might have gotten fixed, don't know.

Secondly, you can use atomics instead of mutexes. They will be faster by about 400% iirc.

Thirdly, you do not need to be concerned for readers, only for writers. Readers can concurrently read and they do not care if value changes. The only concern is writers because the can collide and that is where you need synchronizing. Protecting reads makes sense only in rare cases where you might have a map and it gets set to nil. So obviously reading from nil map will panic. Other than that there is not really much cases to protect readers and add locking overhead just for them.

hknmtt··on Banging errors in Go
the only people who constantly complain about errors in Go are those who have no or only small experience with long running programs, so mostly scripts(php, python,...).
hknmtt··on Bandcamp's Entire Union Bargaining Team Was Laid Off
a) they can always go work for another company, that is the main point here b) who the fuck are you to tell people how much their work is worth? commie much? how about you mind your own business and let other people make their own decisions.
hknmtt··on The sad decline of cursive
it's not sad. cursive is horrible writing style. most people cannot even read their own writing. yes, it can be done properly but it takes a very long time to practice and writing this, clear and readable, way is slow. hence why most people switched to small case printed letter writing, or the hand-written style of it. even a bad writer can get his works read. a bad cursive writer can not. and the compromise between speed and readability is better. some go with full on printing style letters but even though they offer best readability, speed of writing is the worst.
hknmtt··on The importance of handwriting is now better understood
you could try pilot frixion that uses ink that you can erase with rubber end of the pen because the ink is heat-sensitive.
hknmtt··on The importance of handwriting is now better understood
Firstly, do not take the notebook as something sacred. Especially if it is hardcover, you might see it as more valuable than a simple notebook you would use in school. It is not. You can buy a simple softcover with 20 sheets in it to give it a try and not feel like you are wasting "good notebook". But you will soon realize that it feels not worthy of your thoughts and time. You will want to write into something better to give it more meaning. Hence, go for something better right away. As for what to write, literally anything. What gained your attention during your day, what angered you, what was good, some philosophical topics you were pondering or some conclusions you came to during your day. Long or short, it does not matter. This is one of those things where "just do it" is the answer. After couple of days you will settle into it and start forming your own style of what to write, when, how... Personally I have added two aspects to my writing - I always put a date before I start writing if the date has changed form last entry and I draw a border round it to make it visually distinguishable. And I also highlight the main words that the entry is about by underscoring it. Like a hashtag on twitter. This allows me to browse pages and quickly see when i wrote and what i wrote about.

I have also ordered an A6 "pocket" notebook where I want to write one or two sentences or just key words per entry as condensed conclusions to my thoughts or sayings or quotes i heard or read. It should be this condensed book of knowledge and philosophy where long form is not exactly suitable for it.

PS: in my first month, i wrote a lot because there was a lot on my mind. But after a while your brains gets a bit quieter because you are doing this "exercise" and you will go through a short phase where you will be looking for something to write about. That might last a week or two until you settle into the habit and write only when you feel like it. I kinda miss writing when I have nothing to write about so sometimes i just write meaningless thoughts just for the sake of writing. Not all the time, just sometimes.

hknmtt··on The importance of handwriting is now better understood
Already got 4 on order :D But the Energel will be hard to beat. Even on practicality side of things. I think we have figured out the modern gel pens and they are just so good that i doubt fountain pens will be able to compete even on smoothness of writing. But i want to give it a try just for fun.
hknmtt··on The importance of handwriting is now better understood
I tried Zebra Sarasa, Pentel Energel, Pilot G-2, Comix, Bic Gelocity, Bic Gelocity Quickdry(indeed they are very different inks), Muji, Sharpie S-Gel, Unibal Signo,... probably even more, but Energel indeed is in a league of its own. I would put Bic Gelocity Quickdry as close second. Which surprised me. Though their pen cases suck(rattling noise while writing, changing writing angle can mitigate this). Also not all tip sizes are equal. Pilot G-2 0.7mm writes like Pentel 0.5mm for example. You have to find the one you like the best and it mostly comes down to your preferred tip size. To me, 0.5mm or 0.35mm will always be scratchy, no matter how smooth the ink is. 1mm can be good but 0.7mm is just the sweet spot for me. Also not all black are equal. I think Zebra wins here. Uniball is the worst(can become almost gray).

YMMV.

hknmtt··on Detroit wants to be the first big American city to tax land value
Strangely, I am in europe and here there is separate property and land tax and as far as i know it always was like that. Land is based on size and property based on purchasing price. Although some politicians want to change the land tax(so people pay more).
hknmtt··on The importance of handwriting is now better understood
I have started to journal last month. I came to it through pens when I randomly decided to find a good pen when I got interested in it through some youtube videos(wow, YT actually working as intended, for once). To anyone interested, Pentel Energel 0.7mm is the best gel pen in the entire world, hands down. For oil-based ink, it would be Uniball Jetstream, i guess(i am gel guy). I always wanted to journal and thought it would be great to be able to read my worldviews, problems and daily life from years ago. But I just never did. Anyway, second month in, I must say, i love it. Not because of writing about some interesting philosophical topics, but rather because it allows the brain to dump all that chaos out(onto the paper) and allows me to focus more or just be chill in general. It literally frees your thinking. Like clearing up your RAM. I would never thought this would be the main effect but it is. If anyone wants to try, I recommend getting a notebook with 100gsm blank paper. They are hard to get though. Mostly you will find either dotted paper or 70-80gsm. Do not compromise on the density, dots vs lines vs grid vs blank is personal preference. Preferable is black pen over blue one, but again, PP. Blank pages impose no restrictions on you in regards to formatting though. There are well price notebooks on aliexpress, look for dot ding, legendary notebooks or paperideas. Soft or hard cover is personal preference as well. Format, A5 is the best/most practical. If you go with A6, note that most items are actually close to A7 so make sure you buy a correctly sized one. And smooth PU leather cover will catch fingerprints, so go mesh or rougher PU surface. As for hand writing, the slower you write, the prettier it will be. You have to find your own tempo where you are satisfied with speed and the look of the letters.
hknmtt··on Better HTTP server routing in Go 1.22
it is a quite form the article itself.

they say that get /foo/{id} takes precedences over path get /foo/23 or get /foo/bar

hknmtt··on LinkedIn is laying off nearly 700 employees
no surprise. the website is quite bad, to put it politely. the experience just really sucks.
hknmtt··on Better HTTP server routing in Go 1.22
> Therefore, the new ServeMux documentation meticulously describes the precedence rules for patterns

This is so backwards it's not even funny. It is supposed to be exactly the other way - conrete paths MUST TAKE PRECEDENCE over patterns.

hknmtt··on Mastercard Should Stop Selling Our Data
Actually all current card payment providers should be put out of business altogether. Two companies(master/visa) hold complete control over the entire customer spending in the whole world.- They also prevented banks from catching up to the 21st century, technology-wise, and we still do not have instant online payments. There is so many things bad with banking and many causes can be traced back to these card payment providers. We need alternatives, as many as there are banks in the world. Every bank needs to be a card payment provider, an online payment gateway providers and so on.
hknmtt··on USB inventor explains why the connector was not designed to be reversible (2019)
:D
hknmtt··on USB inventor explains why the connector was not designed to be reversible (2019)
They didn't have to double the wiring, just add wiring to the other side of the connector. That is barely 2 cm of wiring, at most. Also, manufacturers could have made the connectors in a way that would clearly show which side is the top and which is the bottom. So none of the issues had to happen but lazy manufacturers and gullible inventors caused all of this on their own.
hknmtt··on How to compete with Patreon
No, you don't. That would be simply copying them and going head to head against them. I am doing neither. Just because I am taking the general idea of selling digital content does not mean I have to know what exactly patreon does or or how it does it or that I have to do the same thing. It is like complaining that Yahoo mail isn't exactly the same as gmail. Or Office365 is not the same as google docs. The general idea is the same, but the implementation is nothing alike. If you cannot grasp that concept, I have nothing else to say to you.
hknmtt··on How to compete with Patreon
I am not trying to copy Patreon. I am merely implementing the general idea of selling your digital content online. That's all. If people like Patreon and their monetization channels, I am not here to try and steal them away. Not my intention whatsoever. I am doing a lot of things very differently to Patreon.
hknmtt··on How to compete with Patreon
Yes, but they operate from american llc.
hknmtt··on How to compete with Patreon
> The IRS and Patreon need to know who you are. Patrons don't.

As i commended elsewhere, if Patreon acts as the publisher, then yes. The authors are merely sub-contractors and their relationship with patrons is quite different.

> Likewise, are you claiming that the "by works" model that patreon supports today is illegal?

As I commented elsewhere, I might not have understood what the author has been describing and misinterpreted it.

The API question, based on your take, then needs to be expanded on. Too many variables here. Sound more to me like this is not an API question at all, but rather lack of functionality/forms/pages/lists on the front-end side?

> I'm definitely curious about what you come up with, especially if you get traction with artists - but only about half a dozen of the artists I support through patreon are outside the US anyway, so until you work out US support I'm probably not going to notice. Good luck, though.

It will have no geo-restriction so who ever comes will be welcome. Frankly, I am not looking to get millions of users. I will be satisfied if it pays for itself and people's salaries and author get alternative means of communicating with their fans, or the world, in this modern era of censorship and political correctness. My setup if very different from the one bigtech uses, so I hope that will be what will attract people there. I have been working on this for a year with about 5 month break. It will be out next year.

hknmtt··on How to compete with Patreon
"publishers" is the keyword here. You have answered your own question.
← PreviousPage 2 of 9Next →