News for hackers. Stuff that matters.

bourgeoismedia

Affiliate links are an obvious conflict of interest for Consumer Reports. Affiliate links pay them a percentage of the sale, so their direct incentive is to recommend the higher-priced product as they make more money that way. So if you're in the market for a toaster and there's a perfectly good $30 model on Amazon they might instead recommend a $100 model because they make more money that way.
Re:PostgreSQL reconsiders its process-based model on Tuesday June 20, 2023 @12:31AM (#36399742)
A static variable in C is mutable in the same sense that a local variable is, but since it's not visible outside the current compilation unit the optimizer is allowed to observe that it's never actually modified or published and constant fold it away.

Check out the generated assembly for this simple program, notice that kBase is folded even though it's not marked const: https://godbolt.org/z/h45vYo5x5

Re:Intercepting t.co links using DNS rewrites on Sunday January 29, 2023 @04:34PM (#34573005)
Is your argument that it shouldn't be possible for a user to intercept t.co in this way? Seems like a perfectly valid use case (sidecar process to unwrap 9 layers of redirects from an anonymous browsing context). If the sidecar is validating the original t.co certs and you trust it then what's the problem?
Re:Dear Adobe, we need a special price in Egypt on Friday January 20, 2023 @02:15PM (#34458231)
Your calculation is wrong. UK prices and German prices are quoted VAT-inclusive, so £999 already includes VAT @ 20% and the German figure includes 19% MwSt. £999 is all you'll pay. In the US you will pay an additional amount at the register based on local sales tax, for example in Cupertino you will pay an additional $91 of sales tax bringing your total up to $1,090. Converted to USD the price difference is almost entirely tax (9.125% vs 20% on a $1k purchase).
You can write from multiple processes and this is enabled by default (see PRAGMA locking_mode [1]). If you've got multiple writers you might have to occasionally handle SQLITE_BUSY and retry.

[1] https://www.sqlite.org/pragma.html#pragma_locking_mode

So 3 months of gardening leave with benefits and a final Feb 1 RSU vest. That seems completely fair and reasonable if it's accurate.
It barred IIED claims specifically because they were targeted at activities protected by the 1st amendment.
Re:Impressions from a first-time Mac user on Tuesday April 12, 2022 @12:13AM (#30998543)
Some corporate IT security policies just don't make sense. Why is he allowed to install random software from homebrew but not signed apps from a developer who has a contractual relationship with Apple? Even the economics are broken - hackers are going to refine and commercialize security exploits against widely used apps like Slack because of its large and ubiquitous deployment. They are not likely to spend resources targeting power user Mac apps that change the appearance of the alt-tab menu.
A shocking thing for me is that if you're an American living abroad registered to vote in California you're allowed to vote by email (well technically fax, but there's a DoD email alias you can send your scanned ballot PDF to and someone will print it out and fax it, which counts). Oh, and if you vote any ballot this way other than a write-in for federal offices you might also get a residency audit and have to pay California's personal income tax (which doesn't recognize any US tax treaties). You're not allowed to vote by fax or email if you don't have a non-US address.
If you held the preferred shares while you were a resident of California, why shouldn't you be subject to California CGT when you realize the gain in proportion to the length of your residency, just like if it were deferred employment compensation (taxed by CA in proportion to workdays in CA vs workdays elsewhere) or real estate (taxed in full by CA)?

Why should VCs get a tax preference employees don't get?

Re:Show HN: Python Tools for Visual Studio on Wednesday October 31, 2012 @11:52PM (#4726124)
Looks pretty neat!

Does it integrate with virtualenv/pip?