HNHacker News
TopNewBestAskShowJobs

RandomBK

1,535 karma · joined September 22, 2014

submissionscomments
RandomBK··on Show HN: Tailspin – A Log File Highlighter
Probably not as efficient, but I've been happily using grc [0] for the past several years. It handles simple rules quite well - beyond the basic info/debug/error coloring I use it for QOL such as different colors for even/odd timestamps and highlighting decimal places in large numbers.

[0] https://github.com/garabik/grc

RandomBK··on Sally Ignore Previous Instructions
When will we ever learn to separate control from data?
RandomBK··on Flake8-Logging
If it's CPython we're talking about, a function call can cause non-negligence performance impact in a hot loop. I wouldn't assume anything in Python is 'cheap'
RandomBK··on Intel shows off 8-core, 528-thread processor with 1TB/s of co-packaged optics
This isn't a production unit, but a research project to play with silicon photonics.
RandomBK··on As wildfires spread, Canadian leaders ask Meta to reverse its news ban
Don't give them ideas... They'll happily spring for a way to funnel taxpayer dollars into the media empire while laundering it through this innocent-sounding setup.
RandomBK··on Policy Engines: Open Policy Agent vs. AWS Cedar vs. Google Zanzibar
The google paper refers to the existence of some 'permissions-aware index' (paraphrasing) that's used to answer range queries like this, but doesn't cover how this index would work.

I know various Zanzibar implementations have exposed APIs to solve this problem, but I still don't have a great intuitive understanding of how they work beyond 'push the ACL logic into the data layer', which brings us back to a pre-zanzibar world.

RandomBK··on Electronic Structure of LK-99
I'm not a scientist, but personally I expect I'll have two "wow, this is really happening" moments:

(1) When there's peer-reviewed replication from a group of reputable labs.

(2) When I see the classic superconductor-on-magnetic-track demo, but without liquid nitrogen.

RandomBK··on ASUS to manufacture and sell Intel’s NUC products
Alas, we have Wall Street to thank.

Nobody really believes this - not even Wall Street - but everyone knows how the game is played and begrudgingly plays along.

RandomBK··on ASUS to manufacture and sell Intel’s NUC products
I find the development quite interesting, and it lends credence to the theory Intel's NUC line was technically profitable (or at least not horrifically in the red), but just didn't make strategic sense - especially from a 'competing with your own customers' view.

While I never bought one of these NUCs myself, I've used quite a few deployed as thin clients and kiosk machines. Let's see what ASUS ends up doing with the product segment.

More broadly, I hope the trend of selling off business units rather than closing them outright continues (Google Domains selling to Squarespace being another recent example).

RandomBK··on Brute-forcing a macOS user’s real name from a browser using mDNS
A common abuser of this is the Discord desktop app, which listens on a local port.

When your browser navigates to a Discord channel's join page, it sends a request to localhost via this port and sends the channel ID to the client. This lets the app pop open a native 'Join Channel' experience.

I discovered this when I noticed how this behavior worked even in incognito mode and my browser was signed out of Discord.

Not. Cool. We need to massively improve sandboxing - of all applications - in the desktop world.

RandomBK··on StabilityAI cofounder says CEO tricked him into selling stake for $100
The extreme case of this would be Poison Pills, so if that's allowed then I suspect you can contract for this as well.

Having said that this is the type of thing that is likely to get dragged in front of a judge, so the more foolproof way would be to retain 51% control or dual-class shares. Once you give up majority control to third parties, you can't really prevent everyone else ganging up on you and outvoting you.

RandomBK··on Passkeys will come at a cost
My hunch is low volume and an enterprise-leaning customer base. Engineers aren't cheap, and those who can build security-sensitive products even less so.

When I bought a (single) Yubikey from their website late last year, it was Fedexed to me directly from their Palo Alto downtown office, not some distribution center in the middle of nowhere. That can't be cheap.

RandomBK··on Bcachefs File-System Plans to Try Again to Land in Linux 6.6
In the early days of SSD adoption there were 'Hybrid HDD' that effectively acted the way you described, using a small SSD as a read/write cache.

Ultimately, the price of SSDs dropped to the level were such solutions filled an ever shrinking niche and they fell out of favor.

RandomBK··on Bank of Canada raises its interest rate to 5%
The Federal government controls immigration policy, and also wields tremendous power through taxation.

They also control inflows of money from outside investment.

RandomBK··on Ask HN: Meta Threads – no dotcom domain name, no desktop site, MVP gone mad?
Given the '.net' link is going to be embedded all over the place now, I wouldn't be surprised if we never see 'threads.com'
RandomBK··on Ask HN: Meta Threads – no dotcom domain name, no desktop site, MVP gone mad?
It's on pace to hit 100M users in a few days, so if anything I think it's evidence that (at least in social media) those things simply aren't that important these days.

Disclosure: work at Meta, not on Threads

RandomBK··on Supreme Court Opinion on Student Loan Forgiveness [pdf]
I think standing as a whole is a useful rule, but it needs to be disambiguated and more consistently enforced. The Court has always used standing as a convenient excuse to weasle out of difficult subjects.
RandomBK··on Supreme Court Opinion on Student Loan Forgiveness [pdf]
While I agree with the overall outcome of this case on congressional authority and moral hazard grounds, I must say I am quite concerned about the court's logic regarding standing in this specific case.
RandomBK··on YouTube is testing a more aggressive approach against ad blockers
I feel this was the inevitable outcome of the increased availability/popularity/awareness of ad blockers - a tragedy of the commons scenario that's set us on an escalating feedback loop that won't end well for anyone involved.

EDIT: I do wonder if the price point of youtube premium is too high to capture an audience that simply doesn't want ads but doesn't care about any other features. $6/mo feels higher than the typical per-user ad revenue.

EDIT2: While I don't know youtube's average revenue per user, both Facebook and Google's ARPU for the NA segment is ~$100-$200/y, which would put $6/mo quite close to the replacement cost of lost ads revenue.

RandomBK··on Ross Ulbricht Threatens LowEndBox. It's Weird
I'm very confused - how did LowEndBox get involved at all? I thought it was just a place to promote & discuss cheap VPS hosting, self-hosted software, and other technical topics?
RandomBK··on Larry Ellison: Oracle Database 1,000x Faster Than AWS Aurora
Show me a serious (i.e. used in production) web framework that is 10,000x faster or slower than React or Vue or Spring when measured on a real-life workload (i.e. not testing a single function in a hot loop).

All I'm saying is that if you're approaching a benchmark between serious competitors providing similar functionality used in the intended way, you almost never see 1000x+ performance differences.

RandomBK··on Larry Ellison: Oracle Database 1,000x Faster Than AWS Aurora
15s vs 1s is only a factor of 15x, not 1000x.

The load time of the oft-considered-bloated reddit.com for me is ~5s. Let's use that as a benchmark. If you told me you got reddit.com to load 1000x faster (5ms), then yes that is extraordinary.

You're also missing the point of my 'apples-to-apples' caveat. A modern webpage might load slowly, but it also does a lot more than a static html one-pager. Sure you might not consider that to be useful, but those features (tracking, A/B testing, ads, redundancy, CDN, etc.) are useful to someone.

RandomBK··on Larry Ellison: Oracle Database 1,000x Faster Than AWS Aurora
In that case the fairer comparison should have been to Redshift, though I will concede that Amazon walked into this one themselves by overhyping Aurora's OLAP capabilities.

OLTP != OLAP, and the sooner database vendors learn to stay in their lane and focus on one use case, the better.

RandomBK··on Larry Ellison: Oracle Database 1,000x Faster Than AWS Aurora
Perhaps, but Python vs C is hardly an apples-for-apples comparison. I could get 1000x differences benchmarking Aurora vs Redis for example. That's what I meant by "used in a way not meant to be used".

Broadly speaking, there's plenty of public benchmarks indicating that a properly-configured Aurora is within the same order magnitude as a properly-configured RDS Postgres which is in the same ballpark as MySQL. That's an indication to me that Aurora isn't fundamentally broken in some way, making a 1000x claim quite extraordinary.

RandomBK··on Larry Ellison: Oracle Database 1,000x Faster Than AWS Aurora
They don't even bother trying to make this sound believable.

You claim it's 1.5x-2x faster? Sure I might believe that despite your prohibition against benchmarks.

10x faster? You better show how your engineers pulled out that miracle.

1000x? You've either picked out a very weird edge case, used something in a way it's not meant to be used, or just made that up. Anyone who's done any serious benchmarking in a competitive space will instantly recognize that as a 'that cant be right' result.

RandomBK··on Sam Bankman-Fried fails to dismiss criminal charges related to FTX
Given much of this comes from English Common Law, we get to blame time immemorial for how our legal system works.
RandomBK··on Sam Bankman-Fried fails to dismiss criminal charges related to FTX
Why is it a gotcha? These kinds of treaties in general only care about the 'feelings' of nation-states, not individuals. The rule exists because countries often have some say in whether to extradite, and they make that decision based on known facts.

In this case, it's a statement from the US to the Bahamas about what they intend to do to SBF once he's in custody. If the US then goes on and punishes SBF even harder than what they originally told the Bahamas, the Bahamas might feel lied to. Think of it as a "we wouldn't have extradited if we knew he was facing the death penalty" kind of scenario. This rule thus exists to give the Bahamas a chance to remedy that.

RandomBK··on Build your own Docker with Linux namespaces, cgroups, and chroot
And let's not forget Alpine, which is a fairly common minimalist distro clocking in a ~5MB
RandomBK··on Why use OpenID Connect instead of plain OAuth2?
This complexity is a security nightmare.

I write SPAs. I use Keycloak OIDC as the authentication layer. I have the SPA set up as a client using the 'Standard Flow' with no Client Authentication[0]. I've carefully set my valid redirect URIs. I use the official Keycloak JS client and the standard JWT authentication implementation in my API server.

To this day I still have no idea if I'm doing everything correctly. I guess I'll have to eventually hire some expensive security consultant to go over everything, but every step of this setup is filled with hidden gotchas:

* There's multiple overlapping standards, each with a dozen different variants. The Keycloak OIDC config refers to OAuth2 over a dozen times.

* There's thousands of blogs and articles, each 1000s of words long and each recommending different things. I have yet to find a concrete guideline for what a 'sane default' set of choices are.

* Am I vulnerable to the issue described in the article? I guess I must be, given I don't see the server-side JWT validator doing anything special beyond validating the signature, so there's no validation of whether the token was generated for my app.[1][2]

* What are best practices for "client scopes"? I notice that the more I add the larger the JWT, but are there any gotchas to watch out for?

I think much of this boils down to there needing to be a published set of recommended defaults for common use cases, alongside some cleanup around deprecated/not-recommended config options.

[0] Given client secrets can be trivially extracted.

[1] Though I guess the fact I'm only using my own auth server and there's only one client means this isn't a problem.

[2] Isn't this how SSO works? One set of tokens to grant access to a bunch of different services?

RandomBK··on Everything that uses configuration files should report where they're located
Dbus says hi
← PreviousPage 3 of 11Next →