HNHacker News
TopNewBestAskShowJobs

smalu

211 karma · joined December 1, 2013

submissionscomments
smalu··on PHP 8.2.35
same here.

`[00:06:03.209] pecl install -f amqp igbinary redis imagick` :sad_face:

smalu··on Insecure vehicles should be banned, not security tools like the Flipper Zero
It is funny since there are devices other than Flipper Zero which are designed specifically for stealing cars with key-less systems AKA "SOS opening" and they come in GameBoy-like enclose. Keywords - "SOS Autokeys Bulgaria".
smalu··on A search engine in 80 lines of Python
I am aware of it, but as far as I understand, cyclomatic complexity is used to compare implementations of single flows (algorithms), not for codebases. What is the cyclomatic complexity of Facebook? :)
smalu··on A search engine in 80 lines of Python
What is the point of flexing about LOC, if it is not a total number of \r\n since we are using external deps? I know that there is no unit for codebase in SI system, but I think we should measure cognitive load somehow.
smalu··on Vox: Alpha open-source browser engine in V
And its also the name of American news site (vox.com), Polish furniture company (vox.pl)...for every major gtld, the vox.* is taken for something...Do not event start with the fruit nammed apple.

Context is the King, like @eggy said.

smalu··on How Open ID Connect Works
I do not known why OIDC has so many bad comments here. At my $company we are using Keycloak for multi-realm (multi-tenant) authentication of users and clients (applications). Yes, the learning curve is long for OIDC and even longer for Keycloak. The FreeMaker Template Engine is awful compared to Twig. Updates of Keycloak can break something, so better have proper test/stagging environment. But this is the tax for not implement something, that is not in core domain of organization.

OIDC solves problems for OAuth2 like "every Identity Provider has different endpoints" with OpenID Connect Discovery (/.well-known/openid-configuration).

smalu··on Exchange rate for PLN (polish złoty) gone crazy due to a bug
Due to an error in data from a third-party data provider (Morningstar), the EUR/PLN exchange rate displayed by Google, Forbes, and other websites was inaccurate.

The error caused the euro to be displayed at 5.4 zlotys, which is a significant increase from the actual exchange rate of 4.2 zlotys. The US dollar was also displayed incorrectly, at 4.8 zlotys instead of the actual exchange rate of 4.0 zlotys.

The National Bank of Poland (NBP) issued a statement emphasizing that the error was caused by a third-party data provider and had no impact on the real situation on the foreign exchange market. The central bank assured that currency exchange rates in Poland are stable and that there is no reason to worry about their further development.

smalu··on Hidden gems of moreutils
I recommend zmwangx/ets package, it is the modern version of ts. I'm using it in CI/CD pipeline in gitlab for debugging performance.
smalu··on Show HN: Generate JSON mock data for testing/initial app development
Using real domains (like yahoo.com) for "fake" e-mail address is not a good practice. There are domains like example.com, example.net or example.org for such purposes (RFC 2606, RFC 6761).
smalu··on How To Marry The Right Girl: A Mathematical Solution
false
smalu··on Show HN: Go HTTP Request Router Benchmark
What about Revel framework?
smalu··on Firefox Developer Tools – Editable box model, Sublime Text keys
You can enable logging XMLHttpRequests in dev tools settings (gears icon on bottom-right edge) -> console
smalu··on Cool Things You Can Do with the Facebook Graph API

  GET /{user-id}/likes/{page-id} 
may produce false-negative if user has weird privacy policy. Using signed request (tab applications) is only safe way to check if user is fan of a fanpage.
smalu··on Ask HN: What's the worst you've ever screwed up at work?
chmod -R 0777 /* instead of chmod -R 0777
smalu··on Tell HN: Server Status
The world would be better place if software could exist without hardware.