HackerTrans
TopNewTrendsCommentsPastAskShowJobs

olsgaarddk

no profile record

Submissions

An easy way to concurrency and parallelism with Python stdlib

bitecode.dev
105 points·by olsgaarddk·3 года назад·68 comments

comments

olsgaarddk
·3 года назад·discuss
At the tax authority we could query that directly from a database.

But yes, the public sector suffers from countless different systems that have accumulated over the years. It happens because everything has to go out to a public bid and throughout the times it has been considered anti competitive to built things in-house.
olsgaarddk
·3 года назад·discuss
> My copy actually is just lying in a cupboard in the original packaging. I never got around to actually displaying it!

Interested in finding it a new home?
olsgaarddk
·3 года назад·discuss
It works okay. You can setup unicode blocks and use them.

I have a collection of python scripts you can use for text manipulation:

- regex:https://github.com/olsgaard/Japanese_nlp_scripts/blob/master...

- translitteration tables: https://github.com/olsgaard/Japanese_nlp_scripts/blob/master...

https://github.com/olsgaard/Japanese_nlp_scripts
olsgaarddk
·3 года назад·discuss
Last time I was at the doctor, I answered “not that I know of” when asked if I had any allergies.

Afterwards at the pharmacy, it turns out my prescription included a box of antihistamine.
olsgaarddk
·4 года назад·discuss
Weren't people on the go 50 years ago?

This need for bottled water is relatively new. Some of us on HN lived at a time when the concept was absurd, others have grown up with bottled water.

Meeting rooms used to serve a carafe of water and glasses. Now everybody gets a bottle. So obviously they are competing.
olsgaarddk
·4 года назад·discuss
Obviously there are many things going on here, and I am not saying this is the end all explanation to the whole thing, but an interesting part of the puzzle I came across during a project I did on the brewery industry during my bachelor, is that there exists a whole market segment of consumers who just wants to "try something new".

When you ask yourself in the super market "Who in their right mind wants a snickers and mint flavored orea?" this is that segment.

So, in my case, the beer industry was (is? This was a decade ago) losing sales to ready-mades (Barcadi Breezer, cans of rum and coke, etc.) and a way to hold on to consumers was simply to add new, limited run recipes.

All classes of drinks are trying to hold on to consumers who are being stolen by other classes of drinks, by offering up new colors and strange flavor combinations.

But at the same time I think you are right about companies training consumers to drink larger and larger portions sugared drinks. Like, 1.5 liter coca-cola isn't even the largest size drink in the cinema sometimes!
olsgaarddk
·4 года назад·discuss
A few years ago I decided I wanted to buy one of his limited prints with some extra money I was to earn. Then I pushed it off for a bit due to a few poor excuses, and eventually forgot about it.

And now his prints are of course ... out of print.

I'm not saying I need a numbered and signed limited print like The Tigers New Clothes [1] but it would be nice with maybe just a regularly, unsigned, unnumbered poster on my wall.

Are there any for sale?

[1] https://www.liberdistri.com/en/accueil/100--the-tiger-s-new-...
olsgaarddk
·4 года назад·discuss
I thought I was pretty good at regex, but I could never have written this one and had to consult both `man grep` and regex101.com.

Explanations for the beginner and intermediate regex and grep user:

`-o`: Only return the match, instead of the entire line

`-P`: use Perl compatible regex

`-m` max-count, Stop reading a file after NUM matching lines.

And now for the regex:

`name:`: find the exact match

`\s*"`: Zero or more spaces leading up to and including an double quote

`\K`: This was the kicker for me. "resets the starting point of the reported match. Any previously consumed characters are no longer included in the final match" - basically tells the regex engine that the characters _before_ `\K` needs to be there in order to form a match, but it should only return the characters _after_ `\K` as the match. This is super handy! Is there a "reverse \K"?

`[^"]+`: One or more characters that are not a double quote. This basically means "Find the line that has a key called "name" and return all the characters after the first double quote and until the last double quote"
olsgaarddk
·4 года назад·discuss
Does anyone on HN have any of these "surprising" email addresses that most people and developers do not expect?

How does it work with common e-mail clients? How do people react when you show/tell them your email?

I have a domain that uses non-ascii characters, and while I can receive emails on that domain, hosted by Fastmail, Fastmail clients refuses to _send_ emails to that domain (I can, if I type the domain as Punycode).
olsgaarddk
·4 года назад·discuss
Since we are sharing our getting out of doom scrolling stories, I’ll share how I got off Reddit.

I realized that most of what I was reading on Reddit was fabricated outrage (since then they’ve added subs like “makes your blood boil” and “idiots in cars” - check them out if you feel like you are not outraged regularly enough)

I was the type of person who would sit on Reddit, be bored and type Reddit in the url bar.

So I decided to quit Reddit and used habitica for the task. It’s a gamification for to-do lists and forming habits. I added “visiting Reddit” as a minus 1, and every time I realized I was on Reddit I opened habitica and gave myself a minus 1.

Fictive internet points are quite powerful. I also started flossing this way (flossing at night, +1)
olsgaarddk
·4 года назад·discuss
I really got a lot of use out of taking the GCP data engineer course on coursera (the one by google aimed at the cloud cert) and then later taking the actual certification.

With that being said it was very focused on BigQuery, and my impression is that it is that all their certs are now basically different variations of a kubernetes certification.
olsgaarddk
·4 года назад·discuss
This reminded me of a recent experience on WeChat. I hadn't used it for a few years and recently tried to log in.

I was told, that my account had been deactivate due to inactivity and that it was against my agreement with Tencent not to use WeChat regularly. After that I had to check a checkbox promising to log in regularly.

Luckily I haven't paid for WeChat, and I don't need it anymore to keep in contact with friends, so I was far enough removed from the situation to laugh at it.