HNHacker News
TopNewBestAskShowJobs

mvolfik

796 karma · joined December 13, 2020

https://mvolfik.github.io

[ my public key: https://keybase.io/mvolfik; my proof: https://keybase.io/mvolfik/sigs/VJT0Utkifb_Y2h3hM7OYj50eT4rBTTmCAGhVg_1q7uw ]

submissionscomments
mvolfik··on Flask 2.0.0 has been merged into master
How are these set in werkzeug? Sound like you would be using the werkzeug dev server then...

But this works for me:

    @app.errorhandler(ApplicationError)
    def handle(e):
        resp = e.args[0]
        resp.headers["Access-Control-Allow-Origin"] = "..."
        resp.status_code = 500
        return resp

    @app.route("/err")
    def err():
        raise ApplicationError(jsonify({"reason": "test"}))
mvolfik··on GitHub repository for Sedgewick's Algorithms is taken down
well, if this is the author of the book, they probably have their contact anyways. And if the claim was clearly illegitimate and the owner didn't want to provide this, I guess he could try going without it. There are probably easier ways to dox people
mvolfik··on GitHub repository for Sedgewick's Algorithms is taken down
yup, it was the author, see counternotice: https://github.com/github/dmca/blob/master/2021/04/2021-04-2...
mvolfik··on RotaJakiro: A long live secret backdoor with 0 VT detection
How does it help them? If you find file with this MD5 on your system, you have either the virus, or a colliding binary crafted by the attackers - bad in either case \o/
mvolfik··on Amulet – a short poem with a lucky SHA-256 hash
reminds me of the reddit bot that lets you know when you accidentaly post a haiku. Internet can be a nice place at times
mvolfik··on Ask HN: How to get back hacker's mentality and joy of coding
I know that market has changed a lot, but seeing the mention of having part-time job since 15, I'd still love to ask about that: how did you finding such job go? Was it remote? Any advice for high schoolers looking for something like that now?
mvolfik··on Cryptocurrency Is an Abject Disaster
I'm not a crypto supporter, but I'd say that he is right there. If _you_ found private key to a wallet with 1 BTC somewhere, would you leave it be? Even if you can't buy a coffee with it, the exchangability for USD is real.
mvolfik··on Ask HN: Options to build a little online store
After posting this, I found https://chrisdiana.dev/simplestore/. This is pretty much the level of what I'm aiming to build - session in local storage, two clicks checkout. Doesn't look very complex. I just wanted to be careful about Dunning-Kruger effect - already ran into that once quite hardly
mvolfik··on Millions of the Pentagon’s dormant IP addresses sprang to life on January 20
why would somebody use public ranges (even though unused) internally?
mvolfik··on Spotify is killing the open podcast ecosystem (2020)
Beware though that "available on Spotify" (idk Podimo) doesn't necessarily mean that it's exclusive there. But it's very common around here and many people use it for convenience (and the podcasts can advertise it as "look we are in this fancy mainstream app", not weird (?) RSS, while they likely offer that too). I myself used Spotify for freely available podcasts too, only recently switched to Podcast Addict for nerdy automatic download settings
mvolfik··on Representing SHA-256 Hashes as Avatars
That would be so creepy. Imagine a random face you've never seen in your life appearing as your avatar
mvolfik··on Representing SHA-256 Hashes as Avatars
these are pretty. Do you have any idea if there is a way to use the library with other data (hashes) other than the Urbit 'names' or what it is?
mvolfik··on Representing SHA-256 Hashes as Avatars
Try changing just a few letters in the hash. If you change letters at the start, it changes drastically. But letters at the end change just small bits
mvolfik··on Czech PM claims Russia played major role in 2014 ammunition warehouse explosion
Some interesting things for context:

- Russian embassy in Prague is one of the biggest embassies in CZ

- our president is strongly leaning to Russia, lobbying for Sputnik V vaccine even though it's not approved, and verbally dismisses sanctions against Russia

- all of this is happening during preparations of Dukovany nuclear power plant expansion, where Russian Rosatom still wasn't dismissed despite clear security risks

mvolfik··on .new – Action Domains
I got used to these so quickly – my favourite ones are cal.new (Google calendar event), docs.new (Google doc) or gist.new, I use these almost every day
mvolfik··on Why Rust strings seem hard
this is way too common in Python world too - packages (crates) use dashes (they look nicer?), but the packaged library is named with underscores, because `-` is math operation and can't be in a name
mvolfik··on Securing a Postgres Database
I'll be soon doing this for a project running on LAN without connection to internet, during events once COVID is over
mvolfik··on Securing a Postgres Database
Then you can retrieve salt, do hash on server, and use the stored procedure to compare. More requests, but a tradeoff for security \o/
mvolfik··on I bought ISO 8601-1:2019 and 8601-2:2019
I think there was some bug in a big service (Twitter? very unsure) a few years ago related to this conflict of ISO and 'real' year
mvolfik··on Deliveroo April Fools' joke backfires in France
Czech Mapy.cz (part of a big corporation for cz scale) also has a good one (almost) every year. This year they restricted you from browsing more than 10 km from your location and the map went blank after 9 PM, according to current covid restrictions here. Obviously, there was a simple way to escape it.
mvolfik··on Fighting cryptojacking and doing good things with content security policies
I loved this article, but I'm confused about one thing – if I read it correctly, it seems to connect hacked routers inserting tokens into traffic, and tokens found on hundreds of pages (discovered with a script run by the author). But he wouldn't see these at all, so the same token found by him on many hosts is caused by something different, isn't it?
mvolfik··on PHP's Git server compromised, moving to GitHub
in comments on the first commit it was said that the access was revoked, but another one appeared, which points at the server
mvolfik··on PHP's Git server compromised, moving to GitHub
but why would you test that so obviously ('fix typo' but add code)? and they made it clear that they likely had access to the git server (by pushing 'from' different accounts), which (obviously, if that's what is actually happening) can kill their access
mvolfik··on PHP's Git server compromised, moving to GitHub
am I understanding it correctly that somebody had breached the PHP git server and tried selling it to 0-day and similar exploiting businesses?
mvolfik··on Robots.txt for the NYT has a specific exclusion for an 1996 news article
This is the thing - for some things (e.g. searching for tech to use), you care about recency. But for something you absolutely don't. But the search engines magic seems to throw this all into one bucket and notice that people are more clicking the '2021' links. And the consequence of this is SEO optimization done by automatically updating all links to current year - I searched for something on 1st Jan and already got a bunch of '2021 comparisons'
mvolfik··on Tell HN: Discord, Spotify, Niantic games are down
A Google Cloud incident ongoing: https://status.cloud.google.com/incident/cloud-networking/21...
mvolfik··on Show HN: Create your own cellular automata
I've been fine-tuning my forest for way too long and here's what I came up with:

    {
      "0": [
        "CountAdjacentChance eq 1 1 1 0.01",
        "CountAdjacentChance ge 1 2 1 0.03"
      ],
      "1": [
        "SpontaneousChange 2 0.00001",
        "ChangeByBlockAge gt 200 3 0.1",
        "CountAdjacentChance eq 2 1 2 0.4",
        "CountAdjacentChance eq 2 2 2 0.8",
        "CountAdjacentChance ge 2 3 2 1.0"
      ],
      "2": [
        "SpontaneousChange 3 1"
      ],
      "3": [
        "SpontaneousChange 0 0.25"
      ],
      "InitialCondition": "1 0.0005",
      "colorMap": {
        "0": "black",
        "1": "green",
        "2": "red",
        "3": "brown"
      },
      "timeStep": 30
    }
mvolfik··on RegEx Crossword
I hate you. I've just spent there way more time than I'd want to admit
mvolfik··on The tree-based approach to organizing documentation sucks
This article seems to miss one important point: how to ensure that links are added correctly and enough). In the wiki scheme, when you just dump info about a problem on a page, how do you now find pages where you need to link to this new page? If you solve this, you have just solved the main problem with the tree system. And I believe that it's actually easier to find related places in the tree-ish structure, than if there is seemingly infinite amount of free-floating articles.

And Wikipedia has a tree-ish structure too, after all - look at portals, categories etc

mvolfik··on Vim Clutch – A hardware pedal for improved text editing (2012)
Yes, that's exactly my experience with Emacs - I read their tutorial to do basic tasks (open files, open windows, switch windows, basic replace). Also, I never learned to use their "smart" (?) terminal, python console...

Otoh, then I tried Pycharm community, and eventually redeemed my github student pack for free pro version, and now I can't imagine living without it. Also there's a great plugin that annoys you with small non-modal popup in LB corner whenever you use mouse and reminds you of the correct hotkey

← PreviousPage 3 of 5Next →