skysight-inc/HackerNews huggingface dataset:
Ask HN:Is component factory a good software design practice?
Recently I have been looking through older code that was designed with a component factory, and it is some of the most confusing stuff I have dealt with. Granted I am a stronger C developer than C++ so some of the inheritance is also new to me. I may have the opportunity to refactor this code, but I don't know if I should. Is component factory still a good paradigm for designing software?
If one believes that an activity (be it homosexuality, eating pork, or using emacs) offends the Almighty, and one also believes that we all will have to answer to the Almighty eventually, it doesn't make sense to fight for the right of another to cause that offense.
The Earn IT Act Raises Good Questions About End-to-End Encryption
I've made as little as ~30k and as much as ~220k, and I've learned the hard way to not share (or implicitly show) how much you make when you're at either extreme end. Most people have very unproductive and toxic kneejerk-reactions to it, and you'll just pay for it in one way or another.
I wish restaurants in the midwest would start embracing contactless payments. A local place I frequently visit finally introduced portable terminals that the wait staff brought to your table and I was pumped. They reverted back to the old way a few months later because "people got confused and didn't like having to interact with the terminal."
Wouldn't you prefer your browser use more RAM? I'd much rather it cache as much as possible than have unused RAM sitting idle. Hell, I even stick my `~/.cache/` in RAM.
I think some of this is dependent on the hardware used? At least for Apple/Google Pay, I've noticed that for some merchants (Safeway), I can "pay" at any point while the cashier is still scanning times, while for others (Trader Joe's), I have to wait until the cashier is done and moves the transaction into the payment phase.

On the other hand, I don't recall a merchant where I could physically insert my card whenever I wanted, so the A/G Pay option is better in many/most places, even if there are some where you have to wait.
Hacking group secretly mining crypto on Android-based smart TVs
That's so kind of you. Thank you so much ;D
Catalyst != Marzipan, not even architecturally.
If I’m not sure, I say “Apple Pay okay?” to the cashier first in what I hope is a friendly way. Sometimes they’re not sure and will say, “you can try,” and then it feels more okay to give it a shot.

Feeling rude happens because when you suddenly produce your phone or watch, you suddenly reveal you’ve been thinking of the transaction differently and maybe that the cashier was incorrect or ignorant to assume you would swipe your card. You are unmasking yourself, in a sense. Proactively mentioning it lets them work with you and share their knowledge about the terminal if it’s relevant.
From the abstract:

> This article uses a locksmith’s design for a mechanical hand in
the surgeon Ambroise Paré’s widely influential Oeuvres (1575) to examine
the transmission of technical knowledge in early modern Europe

Sounds like an interesting weekend read.
Interactive Programming Book (Clojure, REPL, JVM, Emacs) by @draganrocks
These are coming pretty soon :)
LV is an entertainment economy. It necessarily presents itself differently than other locales.
There is a lot of deliberately confusing marketing. "Tokenization" simply means that a new PAN is generated once per device. This is a normal PAN registered with the payment scheme and your issuer. It has to be a normal PAN, otherwise it would never pass through all the exiting payment infrastructure.

What is generated per transaction is the EMV unpredictable number, but this is part of the EMV protocol and done for any EMV transaction. Think of this like the dynamically generated symmetric key for an SSL session.
When I first got the chip it was like 30 seconds to auth. Now it's about 1-3 seconds, basically put it in, beep, pull it out. Like a less-likely-to-fail swipe.
Event driven architecture is like GOTOs but with data instead of execution flow. Throw your data to the wind, someone somewhere will handle it (I hope).
Biodiversity Heritage Library’s Albums
Shit – An implementation of Git using POSIX shell
My anecdotal experience in the super market is people have about a 15% error rate in removing the card too early, and have to start the entire process over again.
She Said, He Sued: Men Sue Accusers for Defamation
I can vouch for this. I took the course after seeing it posted in HN and feel like among other things I finally understand joins
Much better to use contactless from your iphone. You don't broadcast it, it's via bluetooth and only lasts for a few seconds.
A single fact isn't protected by copyright, but if I understand correctly, collections of facts are, if creative work is involved. The article seems to describe digesting all the facts in a book, and making them available to third parties in a way that competes with the book itself. I can see copyright being an issue there.
I bet these numbers don't include WePay/WeChat use in China ....
Is there a good age to start introducing stuff like this to kids? My niece is 7 and seems to have the personality that would be perfect for a programmer.

But I don't want to rush her into stuff like this when she's still a kid who should be having fun.

I was thinking around ~10 would be the ideal time. But I'm not a parent and know little about kids and childhood development.
Yep. Medical professionals have been aware of this dilemma for millennia: many people die from an ailment if no treatment is attempted, but bad approaches to treatment can kill people that would have survived otherwise. And setting 'better average accident rates' as the threshold for self driving vehicle software developers to be immune from the consequence of their errors is like setting 'better than witch doctors' as the threshold for making doctors immune from claims of malpractice.

Move fast, break different things, is not the answer.
I think the parent is right. The EU has limited the interchange fee for credit cards (like Visa and MasterCard where the scheme and merchant bank are separate entities) to 0.3%.

They did not make a statement about whether we like cashless or even contactless payments, just that the associated fees are limited, which makes rewards programs essentially infeasible.
Token Bucket
We backup data that's not on S3 outside of AWS (code, operational databases), but most of our S3 data is effectively stuck due to the insane export prices. It's not the end of the world if we were to lose everything in S3 anyway.

To anyone reading this: Don't store lots of small files on S3. It's a terrible idea.
When I was in Australia this August, most waiters were "Stunned" that I didn't need a pin to buy things. It doesn't take much to "Stun" a waiter when it comes to tech.
Don’t forget Privacy Badger. Thanks EFF!
So, yep? They didn't claim it was a unique feature of Apple Pay.
my contactless cards need a PIN when used for significant money, don't they all? Is skimming a major issue?
This is amusing because having waitstaff bring over a terminal for you to pay with your card is pretty much ubiquitous in a lot of countries, such as Canada and Russia.
Samsung gives foldables another go with the Galaxy Z Flip
I skimmed that book. I already knew some machine learning and AI techniques, so it was a bit to verbose for me, but was a good book.

I never did get a working Go AI though. I'm a Go beginner and never created an AI that was close to challenging to me. I didn't follow the book exactly though, I did my own thing loosely guided by the book, so my failures do not necessarily reflect poorly on the book.

Did you ever get a working Go AI?
This kind of reminds me of this comment (moveable feast engine): https://news.ycombinator.com/item?id=17877155
From what I can tell, we keep the best people around, or maintain good ties with them as they are leaving to ensure knowledge transfer. Many come back because they find the work environment to be unmatched elsewhere.
There is a great WW2-era training film from the US military on how rifles work.

Don't want to link it as I am at work, but it's on YouTube.

It follows the same philosophy--start with a tube. Add a bolt. Add a trigger. Add a magazine. Etc.
Yes, but with LaTeX which has better algorithms than my browser. On FF preview the spacing is atrocious. At least the site didn't reimplement it's own kerning in JavaScript...I wonder if you could complete LaTeX to WASM and render the PostScript output to a canvas...
People who work on making ads more attention-grabbing are actively working on making the world worse.
Modest is putting it mildly, it's pretty much irrelevant as a net transfer (would take something like 50+ years to align countries, and by then other factors are magnitudes of order more salient in the output).

EU budget always had a kind of political and strategical value attached to it — e.g. to protect agriculture, which is sound strategically (to be able to feed yourself in isolation if it comes to that), but the deeper symbol is that Europe is very afraid of famine. In the 1940s, it all began with cooperation around coal, energy. The EU, at least originally, is built to ensure individual countries can't F with the really important stuff (between each other, nor shoot themselves in the foot).

Evidently, the mission has been met with some difficulties.
How do you assure that users will transition to something that will pay the lenders? If a SaaS startup goes down tomorrow and the VC backers or lenders don't own the direct competition, then when users jump ship the VC backers or lenders have nothing. The SaaS startup's cloud space can't be sold at auction, they probably rented any office space, and the employees will take their CV elsewhere. The IP might be salvageable if patented or otherwise unique but that's still a long shot given any direct competition.

No where in there is a method to retain users or shift them to benefit the VC backers or lenders and recover debt. Maybe via user data that can be sold or pitched as useful to a competitor? Maybe by standing up a competitor and advocating users shift there an can migrate their accounts?
Well, it's the EEE I'm comfortable with. I hope it stays this way.
... and why are there two Mayors?
Isn't this true for just about any skill, not just math and computer science? You're only going to get better at tennis by playing tennis. Or piano. Or woodworking. Or communication skills. Best way of learning is actually doing the thing, not reading about doing the thing.
This was done in the span of a few hours, and was committed to sr.ht using itself.

Drew even livestreamed the whole thing, but I don't think he's uploaded it to a PeerTube instance yet.
XFCE is designed from the get go to be very light weight. On my laptop I average ~300 MB Ram usage idling with XFCE.

MATE is the spiritual successor to Gnome 2, which isn't as light weight (but they haven't tried to add things to make it bloated, and gnome 2 was never too resource intensive). It is taking ~700 MB idling on that same laptop.
> You don't want innocent person to be kept in hidden prison, but you feel safer.

Umm, no. That this happens makes me feel less safe. If it can happen to anyone, after all, it can happen to me or the people I hold dear.
Yeah I’ve based out of PHX a few times as well as LAS and would agree. If there was a subscription air charter at either place I would think it would be gang busters but that’s just me.
Never had any weird looks from people (other than CA, I've used it in NV, AZ, MA, OR, WA). Almost every-time, it makes me quicker than everyone else, so not sure why would people make a comment. Also, if I don't see any NFC payment sign around, I would quickly ask while cashier is scanning my items.
> Not in Switzerland! Over here pretty much only credit cards work with Apple Pay. I haven't found a single debit card that works with it (other than Revolut, which is only a bank if you squint at it)

I've found the official Apple list [1] to be very accurate. There seems to be quite a few on the Switzerland list that don't have (Credit cards) behind them.

[1] https://support.apple.com/en-sg/HT206637
But they appear to be already operating in other non-EU settings. What would make the UK any different?
I've done this loads of times. Albeit in the UK and Canada, where the card reader is brought to your table.
Whoa whoa whoa... I do web animations for a living. What industry/agency/brand do you work with? Are they looking to hire?
Maps are collections of facts about road locations, and if I write directions based on a map, doing so doesn't infringe on the map producer's copyright.

But if I'm starting a map company, and I scan in and trace the roads in my competitors' maps? I'd say that's less clear cut - and may well be copyright infringement, even though I'm extracting facts from their publication and creating a new publication containing the same facts.

If I use an entire copyrighted book to train an AI, is it more like the first example, or more like the second?
I am not. I am pointing out that the Constitutional provisions preventing slavery have a loophole big enough to drive an aircraft carrier through.
Deliberately creating uncertainty around the copyright in ML-created works (through legislation), would be a low-key and indirect way of impeding the automation of creative work. Not that I'm advocating it.
Special case in what sense? It's a payment method, you pay for things with it. What's the big deal.
The CIA’s ‘Coup of the Century’
Contactless phone payments work great, but I find contactless watch payments to be really physically awkward, for a number of reasons. First, the watch is worn on the wrong side of the hand for conveniently accessing the contactless reader. Second, the contactless reader is itself usually on a counter below requiring me to stoop over to make my wrist reach it. The extra 1 foot of reach you get with a phone is very helpful in this situation.

Third, I like seeing the visual feedback confirming on the screen of the payment device, which you can't do with a watch held with it's face to the reader. Sure, it vibrates, but that isn't a great indicator of success IMO.
I use it too, and have just experienced how wonderful their customer support is thanks to a stolen card (online unauthorized charges, likely via a web store I used recently). I was alerted to the charges thanks to the app alert, which is really fantastic. They fixed the problem swiftly and sent me a new one without charge. Very pleased with the good service. Plus I'm not aware of the lock function in the app so I'm going to keep the new card locked unless I want to use it, thus avoiding future possibility of fraud.
We used to do an opening question at every meeting! It got axed eventually because people found it annoying. I'm sad we didn't just change the frequency it was really fun.
Blog post has some more detail https://www.impira.com/blog/introducing-mango-beta
Support for terrorist watchlists hidden in your terms of service
This is great and your art is great. I'd love this for interstitials or throbbers.
I don't disagree with you, but your comment was worded in a way that implied you thought it was source-available.

Frankly, Apple probably doesn't care how many people learn Swift. Playgrounds is aimed at children, who don't yet care about software licensing.
I'm not sure there is a best, but different styles that appeal to different people.

One prominent candidate is Horowitz's Art of Electronics. Learning the Art of Electronics is a hands on lab oriented course with one project per chapter.
Here is a more recent effort in the same vein by some GNOME developers (and developers for GNOME): https://stopthemingmy.app/
Paraic O’Donnell: MS is meticulously destroying me. I am being unmade
The auth DDOS sounds familiar. Was there a blog post or previous HN about this?
I really really wish Ubuntu had decided to ship MATE as their default desktop at the time of the GNOME 2 to 3 transition, instead of trying to create their own DE, abandon it 4 years later, and then reverting on GNOME3 ...
When scheduling a meeting at W:30 I would still need to know if other people are sleeping that time (let's say it's 2am in Japan) but otherwise certainly beats .beat time (aka https://en.wikipedia.org/wiki/Swatch_Internet_Time)
Apple have been hiring a number of developer relations and community relations folks from Kubernetes-land lately; my suspicion was that they were planning to create some kind of public platform or runtime service and wanted well-positioned ambassadors.

Maybe this is it.
Animations introduce each new coding concept at a high level before you dive into the puzzles

This sentence says the opposite of what is meant to most non-technical people.
Out of curiosity, why are you using docker containers on windows? For emulate static linking or to provide network/process isolation (and does docker under windows provide "proper" i.e. secure isolation?) or something else entirely?
That's not entirely true. launchd was released under a free license, and it was one of the most interesting innovations in software in a long while, for example.
Yeah we used to do the political stuff via email updates at a place I was at.

It wasn't the worst way but also not a "system" for sure.

Half the battle with political stuff was really was defining the problem in a way that everyone outside engineering understood, and keeping everyone updated / aware of what was factually (not rumors or panic) going on, what was known, not known, what was happening, and when they would get their next update.

And that's not even the technical stuff where folks here are asking about recording conference calls and etc ;)
Is it possible to use Google Pay to do contact free payments on iPhone?
Ask HN: Create business bank account with API?
Has anyone found a way to create business bank accounts with an API? Or know any banks that would allow for large number of bank accounts? Our company needs to set up a new account for each customer for accounting purposes and it would simplify our flow a lot if we could spin up a new bank account whenever a new customer signs up.
In my view, if the buyer and seller were acting in good faith and if the vehicle was equipped and sold with optional features included, activated or installed, as a result of an error claimed by the manufacturer, the optional features are deemed included in the purchase price at the point of sale.

The bad faith in this case points to the manufacturer for attempting to reclaim ownership and control of something it unwittingly transferred and sold to the buyer.
> Only thing that's really perplexing is why they keep buying more and more of the high-failure-rate Seagate 12 TB drives.

I am guessing they RMA the drives and get replacements.
But why didn't they stay popular?

Did the Flash disaster cast fear into people?

Did Web-tech based systems perform so much better, business wise, than native desktop apps?
> at most 5 seconds

Not where I live.
Microsoft Patents Ones, Zeroes (1998)
In my compilers class we used a book that my professor wrote that takes you through all the steps and algorithms for making a compiler for a c like language. You can find it online for free at:
https://www3.nd.edu/~dthain/compilerbook/

I really like this book because it really takes you through all the steps. However, it's very readable and provides great examples of how to actually implement some of the components.

I also like it because it explains how to use tools like Yacc and Bison, while explaining how they work underneath and the motivation for using such tools.

I leaned on this book heavily in the class where the main assignment was writing our own compiler from scratch in C, and I'm currently using it now to make a compiler in rust for a custom language.
Can you elaborate further about this setup? Is there an article or a FAQ topic about it?
What if its very much better average accident rates? This isn't black-and-white.
> In fact I can't think of a single good design reason to ever animate an icon

I can think of a few cases where animated icons make sense.

1. Control feedback. If your icon deforms slightly under your mouse when you click, it provides extra feedback indicating that your action was registered.

2. Notifications. As you, yourself said, motion catches attention. So animated icons would serve well for any kind of event notification. New message or event, action completion etc.

3. Progress indication. An icon for something that takes a long time, like a file download, could be animated to indicate that the process is still ongoing.

I am sure there are other examples.
While I am happy about their efforts, it's interesting that in the bottom left image of their example I can clearly see another unlabeled car in the lower left half (standing at the sidewalk of the street). Also, I am not sure, but it seems like there's a cyclist on the sidewalk, visible between the stroller and the car (the wheel and hands are more clearly visible).
The google image marks a car and a few pedestrians, but completely misses the traffic lights at the junction.

So I guess even their fixed dataset still misses many labels, if already their showcases miss some.
1. The only people who can attempt to breach into my home are within driving distance.

2. My home has security systems which can either stop a crime from occurring (security lights, security doors, dogs, alarms, me) or will result in those perpetrators being caught (alarms which contact police, cameras).

3. I don't have the voter details of 6.5M Israelis in my house.
I love privacy 'n' stuff, for sure.

But relative to the risk of global nuclear war, and the certainty of global climate disruption, I couldn't care less about the NSA and its adversaries.

And hey, maybe all that spying reduces the risk of overt war.
Pretty sure that ML is adding billions of dollars of value in ad ranking
So we are 100% clear, contactless cards generally have very weak security relative to apple pay.

https://www.which.co.uk/news/2015/07/which-reveals-contactle...

There is a reason they are not being promoted in major markets.
Honest Australian Government Advertisement “After the Fires”
It's specifically an addon for folks who normally have dozens (or hundreds) of tabs open, and I can only imagine it's actively detrimental to someone who only has a handful of tabs at a time.

IMO you should just be thankful that your workflow/habits haven't develop in such a way that you benefit from the organizational power of tree style tabs ;-P
And isn't your actual credit card number
Oh for sure, it's way easier.

Especially with certain... methods... of IP transfer.

The fact that china relinquished communist economic models in favor of capitalism most certainly helped a lot too.
And for 2 years of boring paranoia there may be 2 days that save the day.

I would expect that people that speak up are mostly dissatisfied and frustrated people.

And for opacity, one part of the org will likely not know about what is going on on the other side.

A big selection bias.

But who knows...
Maybe they plan to support it for iPadOS devices and either no support or stripped down for iPhone. It’d be cool if we at one point had desktop power in our pockets though. (Yes I know we do to some extent, but it’s still a bit of a stretch for a daily driver.)
Micro 2.0.0
I don't know what qualifies as "significant", but I've used contactless on my actual card a handful of times and never needed a PIN
Although all you need to be a scientist is to use the scientific method properly, most people believe that you also need to have a PhD or a job that requires a lab coat