HNHacker News
TopNewBestAskShowJobs

majkinetor

3,319 karma · joined January 3, 2013

https://milic.info
submissionscomments
majkinetor··on Ask HN: Anyone doing some absurd stuff after getting laid off?
One doesn't need that, but one certainly wants that. Value is not just what you create directly but also indrectly (such as rising moral in the company, attracting people etc.).
majkinetor··on Ask HN: Anyone doing some absurd stuff after getting laid off?
Meh guys, it took 5 minutes just out of curiosity: https://github.com/thewopr
majkinetor··on Tell HN: Sometimes you don't realise how bad something is until you leave
In some places getting unhireing is so slow and demanding that mobing and/or ignoring is the only thing you can do. In my previous company, they were sending such people to the furtest possible organizational unit from home (allowed by law to be 50km) in hope that they will quit.
majkinetor··on Tell HN: Sometimes you don't realise how bad something is until you leave
I do not have that problem. Last time it happened to me, I started learning medicine seriously, entire day on the job. Now I am pretty good, I can handle myself and my family, and I managed to fix several chronic problems of myown and several nasty things in others. Before that, when it happened again, I was developing big framework in arcane programming language. All the things I did due to the 'not having anything to do on the job' are very valuable to me now.

However, nobody was grumpy at me at any time.

majkinetor··on Ask HN: Do you prefer Powershell?
This is a strange rant. It has zero things to do with Powershell.
majkinetor··on Ask HN: Do you prefer Powershell?
$LASTERRORCODE is not the same as $?

It works only on native executable errors. Some executables like git also write logs on error stream (this is a problem on linux too).

majkinetor··on Ask HN: Do you prefer Powershell?
I use pwsh on all platforms. All automation is done with it, and in many cases web app functionality depends on it running in background all the time (for large public services).

Even our GitLab runner uses pwsh.

To organizse build/scripts we use Invoke-Build, a cross-platform task runner: https://github.com/nightroman/Invoke-Build

majkinetor··on QuestPDF: Modern .NET library for PDF document generation
We had very funky case - the crash happened couple of times per month only, with web app doing daily work via REST API producing very large collection of pdfs on single API request, each having from couple to 5k pages. It was very hard to troublehsoot and pinpoint memory corruption problem (took us several months, one doesn't expect this in C# app). Finally we switched to QuestPDF. Surprisingly, performance was exactly the same as with dink (which is surprising); I see in recent changelog 50% speed up on textual PDFs so this might be a game changer (TBH performance is great even now).

BTW, we used dink for half decade in public web apps with millions of users. Dink was used to create PDF reports and we never had a crash in that concurent scenario. However, when we started doing typical non-web multithreading this started to happen.

majkinetor··on Folders with high file counts
> There is zero reason a process would have more than tiny slowdowns with even millions of files in a folder.

What kind of BS is this? Have you ever worked with one such folder? If you did, you would know that almost every app not doing some magic slows down to the point of being unsable (or even not working as described in original post). This is true for both Linux and Windows file systems.

majkinetor··on QuestPDF: Modern .NET library for PDF document generation
You can even compile C# code in it, so it could be direct copy paste with some boilerplate.
majkinetor··on QuestPDF: Modern .NET library for PDF document generation
Can you say more about your typical setup?
majkinetor··on QuestPDF: Modern .NET library for PDF document generation
I am using this in prodution instead of Dink2PDF since recently, generating 30K PDF daily (in tens of minutes, with multiple threads). It works great, highly recommended.

Dink2PDF was crashing monthly in this scenario due to internal unmanaged memory problem so we had to replace it. Not to mention, HTML to PDF libraries are insecure, and dink is no exception - you can execute arbitrary code on the server. Not to mention that you need to have full browser engine in your app...

majkinetor··on Memory loss: Expert advice for improving memory and concentration
Useless.

Its about chemistry and behavior, not about wishes and hand waving. People need ACTIONABLE advice. For starters:

    1. Modafinil 100-200mg (not every day)
    2. Vitamin B complex 50mg
    3. High fat diet, lots of eggs
    4. No THC
    5. CoQ10 100mg
Each of those is demonstrated to influence cognition in multiple research setups, in humans and animals. Some consider Alzhamier to be diabetes type 3.

Also, virtually no side effects.

majkinetor··on A command line tool that draw plots on the terminal
Gorgeious.

I would even use this just to be cool in the public :)

As a realted note, here is one similar thing in Powershell: https://github.com/PrateekKumarSingh/Graphical

majkinetor··on Kristall – a browser without support for CSS/JS/WASM or graphical websites
Yeah, gemini is way to simple, its unpractical.
majkinetor··on Perfect Circle
Yeah, we all totally need consistency reward. The game will become borring without it :)
majkinetor··on Perfect Circle
I literray came here to see who is going to proclaim automation first (and in what way) :) Unsurprinsingly, it was the first comment.

100% perfect circle is a pure math thing and can't be achieved with drawing in any way.

majkinetor··on My bad habit of hoarding information
Not sure why you got downvoted, this comment is amazing way to frame this and its almost 100% how I think about it and why I personally hord bunch of stuff.

However, there are other forms of hording that don't fit this - why do I hord and organize full flac albums (adding each in the musicbrainz), ebooks (calibre), resources (audio/video samples).

And also, why do I hord this stuff: all hardware I buy, all medical diagnostics and lab results, personal metrics (bp, weight, etc.)...

Maybe its all preperedness, in fact, for future potential situation. This sounds a lot like FOMO. But what is the difference between FOMO and preperedness?

I am quite certain that I dont have ADHD, maybe a bit of OCD.

majkinetor··on Men Without Work (2016)
Sounds about right, but when you reverse that, why wouldn't woman do something that she can?

Judging from experience, mostly man do that.

majkinetor··on Debloating Windows 10 with one command and no internet scripts
Yes, its true. I never use store, I install store apps if I need them (I don't, just My Asus shit) via winget. Otherwise, I use chocolatey for everything.

You don't need store, and it is not your friend. Its terrible.

majkinetor··on Why T-shaped people? (2018)
I highly suggest to add medicine, cooking and nutrition to that list. You can't outsource health generally.
majkinetor··on Why T-shaped people? (2018)
> I think this is one of those things that makes sense in theory, but is kinda hard to implement within a corporate structure.

It was bad implementation clearly. You don't get to be generally good at different stuff without first being a lowish worker on each of those, having a person to hold your hand. You can't just declare that everybody should do anything after 2 hours of generic presentation and call it a day.

majkinetor··on Bash retry function with exponential backoff
Here is similar in pwsh, it retries script block while exception is thrown, until no exception or timeout:

https://github.com/majkinetor/posh/blob/master/MM_Sugar/Wait...

majkinetor··on WuMgr: Windows Update but Not Automatic
The point is, that random updates are a menace.

Not sure why would anybody want that, even a grandma, because almost no system can guarantie that it wont get fucked and unless it provides a perfect restore, which some systems do but are nerdy in nature then its probably for the best not to update.

majkinetor··on PostgREST – Serve a RESTful API from any Postgres database
Experts: https://www.red-gate.com/simple-talk/databases/sql-server/t-...
majkinetor··on It's easier and faster to pirate an e-book, than it is to buy it
Same thing with Word.

Not sure how ebook readers handle js or xml exploits.

majkinetor··on I Lost All Faith in LastPass
It looks like premium features are not foss, like SSO for example (but I might be wrong):

https://bitwarden.com/help/about-sso

> Login with SSO is available for all customers with an Enterprise organization

majkinetor··on PostgREST – Serve a RESTful API from any Postgres database
They are considered GOTO of db. Good luck debuging complex trigger hierarchy.
majkinetor··on PostgREST – Serve a RESTful API from any Postgres database
The value is that you can get ultra peformant CRUD app supporint bunch of filtering operations OTB within an hour or so. If you developed one youreself, it would probably be slower TBH. Depending on what you do, this can be lifesaver or thing to avoid.
majkinetor··on PostgREST – Serve a RESTful API from any Postgres database
I highly recommend this. Its so fast that it is crazy. I got 2k req/s on basic tests.

Its filtering DSL is awesome, and should probably get supported by commune: https://postgrest.org/en/stable/api.html#operators

Note that I didn't use it yet in production settings, but intent to. Auth do seem a bit complex.

For anybody wanting a quick test on Windows: https://github.com/majkinetor/postgrest-test

← PreviousPage 20 of 34Next →