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).