HNHacker News
TopNewBestAskShowJobs

Hjfrf

252 karma · joined December 8, 2020

submissionscomments
Hjfrf··on HTML Sanitizer API
Considering the history of mysql_escape_string it's an important argument
Hjfrf··on Practical SQL for Data Analysis
Covering index is right.

Select * has a few valid use cases.

If you're selecting from a cte or subquery then writing the same column list twice is redundant and increases complexity/risk of mistakes.

* is also harmless for count and exists.

Hjfrf··on What is Chia cryptocurrency and why is it bad news for hard drives?
We can always hope that trading Chia is made illegal, along with proof of work algorithm based currencies in general.

Governments so-far failing to regulate existential threats to themselves is honestly odd.

Hjfrf··on A second Bitcoin exchange collapses in Turkey amid crackdown on cryptocurrencies
With an exchange, you can have a centralised database of how much is in each person's account.

So for internal transfers, you can just update the good old relational database and dodge the fees.

For transfers between exchanges, they can settle the net balance daily (or have some thresholds etc) to minimise any actual on-ledger transfers.

Of course all this makes the decentralized aspect of the currency pointless, but most people don't actually understand or care.

Hjfrf··on How to Learn Unix Tools
The default options for shadow-IT are VBA and Powershell, since you don't need to ask permission or install anything to make a mvp.

I guess there will be many Powershell users in future for that reason alone.

Hjfrf··on The more complex crypto seems, the higher the pyramid schemes can go
Despite all that, people mostly trade crypto on centralized exchanges.

The users really hate the decentralized aspect of crypto, as shown by immediately giving away their wallet to some "trusted" third party if it reduces fees.

Hjfrf··on Firefox 88.0
Hopefully
Hjfrf··on Making Librem 5 Apps [video]
It's an exciting idea that as phones get more powerful, plugging the phone into a monitor could replace the desktop entirely for many home users.
Hjfrf··on Best practices for writing SQL queries
Yes all databases will use indexes for joins. There's quite a few mistakes like that.

My guess is the author heard something about not using implicit inner joins (deprecated decades ago) and misunderstood.

E.g. This old syntax- SELECT * FROM a, b WHERE a.id = b. a_id

Hjfrf··on Best practices for writing SQL queries
Does that still look ok if you're selecting 10+ columns with functions, or would you split out the first line situationally?
Hjfrf··on Best practices for writing SQL queries
LIKE 'abc%' will use indexes but LIKE '%abc' will not.

At least for the latest versions of every database. If you go back to a version from 10+ years ago there's no guarantees.

Hjfrf··on Best practices for writing SQL queries
Lots of mistakes (or at least rare opinions going against the crowd) here.

Here's a better general performance tuning handbook - https://use-the-index-luke.com/

Hjfrf··on Bike Theft Map
Nobody steals just one backpack.

By prosecuting one person, you could prevent thousands of future stolen bags.

Hjfrf··on Ubiquiti all but confirms breach response iniquity
Google did it with an allied op recently. Not NSA, but as close as we're likely to hear about. https://www.technologyreview.com/2021/03/26/1021318/google-s...
Hjfrf··on Spreadsheet is a software development paradigm
Excel's spill functions are in that space.
Hjfrf··on Countries That Consumer More or Less Electricity Than Bitcoin in 2021
If you're just going to use off-chain centralised exchanges with a relational database backend anyway, what's the point of bitcoin?

You could do the same with dollars.

Hjfrf··on Louvre makes its entire collection available online
I can sell Jack's tweet right now.

That's a bigger issue than Jack being able to sell it multiple times.

Hjfrf··on Identify a remarkable trait in anyone, then either copy or avoid it
If you can just find a young person and a rich person, you'll be sorted.
Hjfrf··on Google's New Career Certificates Could Disrupt the College Degree
Reads like an advert

How can you not mention Google using education to build a moat around their monopoly?

Hjfrf··on All 5000 Images in Beeple’s $69M Magnum Opus:What I Found Isn’t So Pretty
It's more like buying a receipt, not the good itself.

They can display the receipt but have no more right to the art than you or me.

Hjfrf··on Ask HN: What are some “10x” software product innovations you have experienced?
Power query for Excel. It trivialized data transformation for admin/operations users, who would have spent 50x the time on a VBA solution or (more likely) not bothered.
Hjfrf··on Metakovan, the mystery Beeple art buyer, and his NFT/DeFi scheme
Forest is a clear exagerration, but this article goes over numbers.

A few weeks of ordinary household energy usage per NFT is realistic.

https://www.loop-news.com/p/the-big-problem-with-nfts-energy

Hjfrf··on “ISO obstructs adoption of standards by paywalling them”
The only bits people actually know are yyyy-mm-dd and pre-92 implicit joins.
Hjfrf··on Total Cookie Protection
Why is this a complaint at Firefox, and not at Google for abusing their monopoly to create new features on a whim regardless of what it does to other browsers?
Hjfrf··on Before buying a NYT subscription, here's what it'll take to cancel it
They choose to offer refunds but also to bury the unsubscribe button behind 5+ screens with misleading text and reminders of what you'll "lose".

Rather than good customer service, Amazon try to be generous on the visible aspects that people might talk about, but quietly cheat you with antipatterns.

Hjfrf··on Why SELECT * is bad for SQL performance (2020)
Your first question is fairly common too- select * is to be avoided if your table can change or you care about order of columns.

Select * is better from cte/temp table because you then only need to make changes in one place.

I'm not sure how much deeper it's possible to go.

Hjfrf··on Drawbacks of P2P and a defense of Signal
Facebook messages are emails, I believe.

At least an email to the user's @Facebook email address gets picked up in messenger.

Hjfrf··on A deeper dive into our May 2019 security incident
That might not have helped in this case, if the email was sent from the same account.

The hacker had access to messages from the sender side without access to the account being reset.

Hjfrf··on MasterCard to stop processing payments on Pornhub, cites unlawful content
No need in the case of PH. It's already full of illegal content and getting caught would sabotage KYC regulations for years.
Hjfrf··on Tesla to raise up to $5B in share offering, its second in three months
Elon knows exactly why -

https://mobile.twitter.com/elonmusk/status/12562398152567971...

← PreviousPage 4 of 4