HNHacker News
TopNewBestAskShowJobs

jks

564 karma · joined June 20, 2011

submissionscomments
jks··on We have to talk about this Python, Gunicorn, Gevent thing
There's a 2017 writeup from Instagram: https://instagram-engineering.com/dismissing-python-garbage-...
jks··on Swedes rebelling against a cashless society (2018)
We have MobilePay in Finland, but I don't know if it interoperates with the Danish system. Denmark is part of the Single Euro Payments Area, so I would expect transfers to be possible.

There were iZettles in many Helsinki cafés a few years ago, but it seems to me that most of them have been replaced by normal PoS terminals.

jks··on Finland's police board requests investigation into carbon-offsetting foundation
Finland has strict laws for fundraising for charitable purposes, and apparently offering carbon offsets for purchase is considered misleading consumers.
jks··on Programming trick questions
Here's a similar one: What's the best possible time complexity of a program that plays perfect chess, assuming we could write such a program?

Answer: O(1), since it could be written as one big lookup table from game state to optimal move. To get a nontrivial complexity class, you have to have some parameter that can vary, so e.g. the question "what's the time complexity of a program that plays perfect chess on an n-by-n board?" (assuming a suitable generalization of the chess rules is given) is much harder to answer.

jks··on The text adventure game of exiting a Telnet session
On many keyboards, ^] can be typed with ctrl-5. Also, ctrl-2 is ^@ (NUL), ctrl-3 is ^[ (ESC), ctrl-4 is ^\, ctrl-6 is ^^ and ctrl-7 is ^_, all of which can be hard to type on national layouts. Except for ^@, these correspond to the last digit of the character code in octal: ^[ is 033 etc.
jks··on A guide to freelancing in Finland
> A fun exercise when learning Finnish is writing a tool that can conjugate verbs or nouns, which is totally feasible in an evening or two, showing just how straight forward the grammar is.

Only if you provide the tool with the stems of the words. For example, the genitive ending is -n, but the genitive stem of käsi is käde- and the stem of aasi is aasi- and figuring that out might not be within the reach of a two-evening tool.

https://en.wikipedia.org/wiki/Finnish_grammar#Noun/adjective...

jks··on Finland's prime minister wants her country on a four-day workweek
Misleading: see https://yle.fi/uutiset/osasto/news/govt_corrects_inaccurate_...
jks··on Whatever Happened to News.gmane.org?
It was some smaller company, one that I had never heard about until they picked up Gmane. The name is probably somewhere in the gmane mailing list archives (available via nntp) but if Lars doesn't want to name them, I think it would be polite not to publish it here.
jks··on Finnish PM Marin calls for 4-day-week and 6-hours working day in the country
Not a lawyer but I work in Finland. This is not a "right" of employees but sets the limits for what kind of flex-time agreements can legally be entered into. In many white-collar jobs people don't really care about the legal limits, and in fact the new law (in force since yesterday) allows for more flexible arrangements.

https://www.finlex.fi/fi/laki/ajantasa/2019/20190872#L4P13 (doesn't seem to be available in English at this time)

jks··on Finnish PM Marin calls for 4-day-week and 6-hours working day in the country
I am Finnish and am equally puzzled about this whole news story. It seems to be referring to an event in August 2019 that celebrated the 120th anniversary of Finland's Social Democratic Party, where Marin apparently suggested reducing the work week. While she is now prime minister, Finland always has a coalition government that currently consists mainly of leftist and centrist parties, and the coalition agenda is the result of a negotiation. The current agenda does not include reducing the work week: the closest I can find is

> The prospects for increasing the flexibility of working time will be examined with a view to balancing the harmonisation of work and family and prolonging working careers. The aim in particular is to improve part-time working opportunities for parents of small children and for those who are caring for elderly relatives.

http://julkaisut.valtioneuvosto.fi/handle/10024/161935 (there's a PDF link on the page)

jks··on How to annotate everything
At least in principle it is possible to annotate a PDF file while leaving the original file as a prefix of the end result. The directory of objects is at the end of the file, so the annotation software can build a new tree of objects, referencing any unchanged parts of the original, and append its own directory which the reader software will find. I don't know of any PDF editors that do this, though.
jks··on Fuck Off Google
A post about that was discussed on Hacker News a while ago:

https://utcc.utoronto.ca/~cks/space/blog/programming/GoIsGoo...

https://news.ycombinator.com/item?id=19978200

jks··on Why Finland leads the world in flexible work
Yes, the fall of Nokia (even though it didn't go completely out of business) had a big impact, especially in some regions. Here is a rough timeline: https://www.quora.com/How-has-the-decline-of-Nokia-affected-...
jks··on The race is on to develop new strategies for storing nuclear waste
Here's a disposal site in Finland: http://www.posiva.fi/en/final_disposal/basics_of_the_final_d...
jks··on Matias RGB Backlit Wired Aluminum Keyboard for Mac
I've been happy with the Keyboardio Model 1: https://shop.keyboard.io

Note that the keys are in columns and not staggered, so there is a learning curve.

jks··on A Failed Experiment with Python Type Annotations
What's the status with numpy types? I find two projects, https://github.com/machinalis/mypy-data/tree/master/numpy-my... and https://github.com/numpy/numpy-stubs but neither looks very complete and neither has been updated recently.
jks··on Ask HN: Which RSS reader do you use?
Miniflux (https://github.com/miniflux) has a paid version but you can host it yourself
jks··on Facebook Asking for Some New Users' Email Passwords
The Finnish authority’s stance is that asking for passwords and screen scraping the bank pages is not acceptable. I only have a source in Finnish but Google Translate seems to work: https://www.finanssivalvonta.fi/saantely/kannanotot-ja-tulki... https://translate.google.com/translate?sl=auto&tl=en&u=https...
jks··on Facebook Asking for Some New Users' Email Passwords
Klarna tried to ask for people's bank access codes in Finland until Finland's Financial Supervisory Authority ruled it illegal. Seems like a shady business to me.
jks··on 2.7M medical calls breached in Sweden
Recording the calls could even be a requirement. You call in to get medical advice, then later decide the advice was wrong and sue them for malpractice. Recordings of the calls could be crucial to deciding the case later on.
jks··on Design flaw behind MacBook Pro’s “stage light” effect
I still have a 2006 Mac Mini, and its power brick is external. The size of the computer suggests it was built around the optical drive, while the newer Mac Minis are visibly wider than a CD. http://lowendmac.com/2006/mac-mini-early-2006/
jks··on Firefox Fights for You. We keep your data safe, never sold
There was some kind of a TV show ad about a year ago, which people also didn't like. Mozilla promised to improve, but apparently it didn't last.

(Source: https://utcc.utoronto.ca/~cks/space/blog/web/MozillaStillTru... )

jks··on Finland’s plan to train its population in artificial intelligence
Did you click through to the course? Chapter 2 is about search algorithms and planning, albeit not in very much depth.
jks··on The fate of reduce() in Python 3000 (2005)
I think I was personally surprised by two assumptions that I implicitly held, both of which disappear when you write them down:

1. The syntax of comprehensions led me to think that they introduce some kind of a variable binding, such as `let` in many Lisps, and that binding `lookup[x]` would have been a syntax error. Of course Python didn't introduce anything like that for comprehensions, and it's just a normal assignment operation, with an extra scope inserted in Python 3 to stop `x` leaking into the enclosing scope.

2. Because of the swap idiom `x, y = y, x` I thought tuple assignment happens somehow in parallel, so my code should have caused an undefined variable error, even if it is not a syntax error. But of course it just evaluates the right hand side first and then assigns to the left hand side in left-to-right order, which the language reference https://docs.python.org/3/reference/simple_stmts.html#assign... notes "sometimes result[s] in confusion" (near the end of the section).

jks··on The fate of reduce() in Python 3000 (2005)
It's still an assignment operation, and you can still get weird effects in the enclosing scope. I did something like this by accident:

    Python 3.7.1 (default, Nov 28 2018, 21:47:25)
    Type 'copyright', 'credits' or 'license' for more information
    IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.

    In [1]: lookup = {}

    In [2]: [x for (x, lookup[x]) in ('ab', 'cd', 'ef') if x in lookup]
    Out[2]: ['a', 'c', 'e']

    In [3]: lookup
    Out[3]: {'a': 'b', 'c': 'd', 'e': 'f'}
jks··on Sweden’s Decades-Long Failure to Integrate
Also, AFAIK, in Sweden you traditionally aren't expected to pay back the principal on your mortgage in any specific amount of time. They have added restrictions in recent years, but I think you can still start making only interest payments once the principal is worth half or less of the loan collateral. This combined with low interest rates would have the effect of letting home prices surge.
jks··on Runbox 7 Webmail App Is Now Open Source
The article link is broken at this time, but this seems to be the Github repository: https://github.com/runbox/runbox7
jks··on Google Fusion Tables Shutting Down
The end of Inbox was announced in 2018 too.
jks··on Clan Wars Blamed for Ancient Collapse of the Male Chromosome
In Finland I get historytv.fi. Google Cache to the rescue: http://webcache.googleusercontent.com/search?q=cache:ehTZ26r...
jks··on Why does man print “gimme gimme gimme” at 00:30?
It could just check if the POSIX_ME_HARDER environment variable is defined. http://wiki.wlug.org.nz/POSIX_ME_HARDER
← PreviousPage 6 of 7Next →