News for hackers. Stuff that matters.

tie_

Re:Lossless video compression using Bloom filters on Monday May 26, 2025 @05:12PM (#44101728)
Ain't it cute 'splaining what redis is designed for to the person who designed it
Very cool project and would be super useful with something like GraphQL, which tends to produce big nested JSON objects. Thanks for sharing it!

One improvement in my eyes would be to remove the "connector" boxes, like `members (2): "Array"` and `powers (3): "Array"` and have the arrow go straight to the array property. Those connector boxes take up a lot of real estate without conveying new information.

The "two big mobile platforms" were not established by an irreversible act of God. Before the current time of two platforms, there was a time of (mostly-)one platform i.e. the Web, and that platform had quite a few nice features.

One of the small conveniences is indeed that you didn't need to develop the same thing twice, which made the barrier to entry much lower. The functionality that you were exposing to users did not need to pass a review at one of two US tech giant companies, which could reject publishing it for any or no sensible reason at all. You were not forced to pay 30% of your revenue to the gatekeepers of the platform. You were not banned to invite users to buy your product in any way that works for them, even if it meant sending you checks over carrier pigeons. There was no _chokepoints_ that a single company could squeeze to further its own interests (after the collapse of IE).

Re:Why do prime numbers make these spirals? on Wednesday April 26, 2023 @02:24AM (#35710156)
Isn't 4k+1/4k-1 rule trivial though?

If we take any number K=N*4 divisible by 4 and >2, that'd be an even number by definition. The two closest odd numbers on either side would be (K-3), (K-1), (K+1), (K+3). As it happens (K+3) is the same as K(-1) for the next N, and (K-3) is the same as (K+1) for the previous N. So _all_ odd numbers follow this rule.

What "4k+1 or 4k-1" says in a roundabout way is that all prime numbers (>2) are odd, which isn't much of a surprise.

Re:The new and upgraded Framework Laptop on Friday May 20, 2022 @01:13AM (#31443602)
Ever tried playing something like (multiplayer) Quake with an Apple trackpad? I used to win online matches with the trackpoint. Once you get use to it, the difference in speed and precision is quite significant.
Re:The new and upgraded Framework Laptop on Friday May 20, 2022 @12:56AM (#31443510)
Totally understandable. I'm a trackpoint junkie, but I also could not get to using it on an HP laptop from work. It felt completely gimped (and yes, having just 2 buttons was probably a part of it).
Re:The case for LineageOS and the PinePhone on Tuesday April 19, 2022 @04:36AM (#31080839)
Word! PWAs are awesome (for a lot of usecases), and I don't quite get how they are not becoming a center pillar of mobile development.
Re:Where Linux's load average comes from in the kernel on Monday April 18, 2022 @04:02PM (#31075729)
Install atop and configure it to sample every second.

I can't count the number of times this has helped solve a mysterious behavior. Atop is king.

I'm using Firefox fulltime, both on my work and my personal machine. The two things I'd love to see are: - Fix the ever-growing memory usage on Linux - Make it the best platform for using Progressive Web Apps (PWAs)

Despite PWAs not being a mainstream thing now, there are still a lot of them. Particularly on Linux, a PWA can be the best option for software that doesn't have a native client - e.g. Outlook 365. PWAs have a lot of untapped potential, mainly due to mobile software authors not being familiar with the approach.

With Firefox standing for the open, net-neutral web, it makes sense to me that they would also stand for web-based, cross-platfrom, appstore-neutral apps.

Re:Back-end languages are coming to the front-end on Friday February 11, 2022 @06:59AM (#30300372)
Sorry, my statement indeed got confusing. I'm using LiveView for online interactions. I'm using PouchDB + JS for data synchronization and enabling offline work. You are right that LiveView itself does need to be online, since it's whole point is to move (back) the UI logic to the server side.
Re:Back-end languages are coming to the front-end on Friday February 11, 2022 @06:55AM (#30300344)
WebPush is the feature that I'm missing. See https://developer.apple.com/forums/thread/114503
Re:Back-end languages are coming to the front-end on Thursday February 10, 2022 @12:03PM (#30289130)
I'm happily using Phoenix+LiveView for a website that works as a PWA. This also includes offline mode with sync-when-internet-is-available functionality (thanks PouchDB!). This covers online/offline/mobile usecases, with no explicit RPC, and no requirements for the end device that the app would run on, other than a _capable_ browser.

(Admittedly, browsers on iOS are gimped, but that's part of the Apple tax).

Re:Containers are not just for Kubernetes on Tuesday February 01, 2022 @04:22AM (#30160297)
Same here. The first time I hear that containers are hard-linked with Kubernetes in anyone's mind. Docker standalone was used for a long time before Kuberbetes was a thing. AWS, Azure and Google have had options to run containers long before they had managed K8s. There have always been excellent ways to use containers without involving Kubernetes.
Re:Issue with TLS-ALPN-01 Validation Method on Wednesday January 26, 2022 @01:54AM (#30082591)
Same here. Fixed by deleting the traefik pods. The underlying Deployment regenerated them and a new cert was obtained.
Please stop suggesting that SQL Injections are a sanitization problem. They are a problem of escaping in the application constructing the query, not a problem with whatever the user has typed in.

The log4j vulnerability shares some common traits, but it's completely different at the core. It's not a problem of sanitization, and I'd argue it's not a problem of escaping either (though escaping could fix it). It's a problem with an obscure feature that is left with insecure defaults, and is (was?) unknown to the vast majority of developers who integrate the library in their apps.

Re:Log4Shell update: second Log4j vulnerability published on Wednesday December 15, 2021 @02:25AM (#29563017)
Insightful conversations at https://github.com/apache/logging-log4j2/pull/608 - the original vulnerability patch.

Most JNDI lookups are disabled, except for JAVA and _LDAP(S)_. What I don't get is why would someone who knows about the vulnerability would _still_ want to do LDAP lookups during logging, even when restricted to localhost.

Re:The IPv4 Cleanup Project on Friday November 19, 2021 @02:45AM (#29274805)
So the answer is pills that can damage your health while having no long-lasting benefit?

One other hidden cost - all the body of knowledge (courses, tutorials, books, blog posts, etc) that we have accumulated over the years for IPv4 would now start being slightly incorrect and misleading. That's no longer the IPv4 that we know - it's rather something like IPv4.5.

Instead of inventing new IPv4 mutations and pouring energy into getting them adopted across the Internet, causing incompatibilities and countless lost hours of debugging, adopt IPv6 instead.

Re:I analyzed SaaS billing dark patterns on Thursday November 18, 2021 @05:29PM (#29271450)
I haven't really tested it in court, though I did get the official correspondence that leads up to it. Friendly law practitioner had suggested that I really don't stand a chance.

Not sure about credit damage, but in case of a loss in such a suit, I'd also have to cover the expenses for the other side, so it's a risky proposition.

With my wife we did consider it for a while, but then decided it's better to do focus on solving that problem with software and thus started working on contrax.app (shameless plug!).

Re:I analyzed SaaS billing dark patterns on Thursday November 18, 2021 @05:13PM (#29271314)
More like gym, "clubs" (Verein-s), mobile phone, internet, electricity, etc. It's an established contractual practice, and e.g. Telekom are not in any way obligated to notify you when your cancellation date approaches. They can very well sue you, however, should you refuse to pay your automatically-renewed-in-advance contract.

Even in the cases where you're allowed to cancel on the last day of the subscription, we as humans are very prone to forget to do that, particularly for longer-term contracts. Tracking contracts and subscription deadlines is a damn profitable habit that I wish I had acquired much earlier.

Re:I analyzed SaaS billing dark patterns on Thursday November 18, 2021 @04:52PM (#29271107)
Here in Germany, physical businesses have even more egregious subscription policies than most "dark" SaaS-es. Think, you do not cancel 3 months before expiration date - congrats, you're now signed up for another year. As a result, ended up writing a small PWA to keep track of my contracts and subscriptions.
Re:Why is Excalidraw so good? on Friday November 05, 2021 @04:30AM (#29116731)
> Just. Fucking. Let. People. Instantly. Use. Your. Full. Product.

I love that - and that's how I aim to build things now.

Excalidraw has few calls to external domains as well - just Google Analytics and Sentry.io. That's still two that can be reduced, but it's much better than most modern clustertrucks.

Re:Weaponizing Middleboxes for TCP Reflected Amplification on Thursday September 16, 2021 @05:26PM (#28557879)
Getting the 3-way TCP handshake and decrementing TTL is quite easy to get right. Those are very much foundational properties of the respective protocols. We are not talking about obscure edge cases.

Also, building a bridge is not simple either, but it's a well known and well solved problem. When a bridge crashes we don't just shrug and wave at the construction company with "It's OK, bugs happen".

Re:Weaponizing Middleboxes for TCP Reflected Amplification on Thursday September 16, 2021 @10:09AM (#28552013)
We are talking about following well understood and published standards, such as TCP and IP. The people implementing those stacks were either negligent, or were consciously cutting corners and safeguards that those open standards had already in place. The result: lots of network pipes can be subverted by crackheads into flooding innocent netizens.

No, I got no sympathy for the people who built and sold those devices.

Re:Do You Love Me? [video] on Tuesday December 29, 2020 @04:24PM (#25575226)
Mandatory XKCD reference: https://xkcd.com/331/
Re:Improving DNS Privacy with Oblivious DoH on Wednesday December 09, 2020 @02:37AM (#25356258)
No discussion of DNS privacy should go without a link to Bert Hubert's awesome talk on the subject: https://www.youtube.com/watch?v=pjin3nv8jAo
Re:Goodbye PowerDNS on Saturday November 28, 2020 @09:42AM (#25237793)
> I experienced how many good tech people don’t understand DNS...

Totally agree there.

Root DNS servers would not answer your computer's (stub resolver's) _recursive_ query. You do need a recursive resolver to do that - whether ran by an ISP or by yourself.

Re:Germany begins 3-year universal-basic-income trial on Thursday August 20, 2020 @03:09AM (#24220685)
> If the minimum support level provided by UBI is used (in whole or in part) to offset and reduce minimum wage, it also reduces the barriers to people moving immediately to a less-inderprodicing level, and eventually up and out of the underproducing group.

You can get rid of minimal wage with or without UBI. In fact Germany just recently introduced minimum wage - there was none before. The lack of it was clearly not regarded as boon to the society. The barrier effect is minimal, if any.

Re:Germany begins 3-year universal-basic-income trial on Wednesday August 19, 2020 @04:59PM (#24216362)
Well, the UBI money you get would be used to buy something that someone else has produced (an iPhone, a piece of bread, a bottle of wine, etc.). In this sense, the UBI that you are getting represents _goods_ that _someone else_ is producing (and "donating" into the system in the form of taxes). I find this easier to reason about when you take the concept of "money" out of the equation.

So,oOption A is that you "donate" more goods into the system than the UBI you are consuming, which is all fine and dandy for the rest of us. Option B is that you are consuming more value that you are donating, which is less fun for the rest.

So, some people will need to overproduce in order for the people who under-produce to get their UBI worth of goods. Mind you, this isn't different than the current state of affairs. The big question for me is how would the introduction of UBI ultimately affect that ratio, given that you would be less disincentivized to stay with the underproducing group?

Re:Microsoft and Google collaborate to make PWAs better on Friday July 10, 2020 @07:00PM (#23797598)
Awesome! I hope this will put some pressure on Apple to add support for critical PWA features (e.g. push notifications) to iOS.

Older »