skysight-inc/HackerNews huggingface dataset:
There is one example of really bad app behavior when the last window is closed and it's one that Apple makes themselves: QuickTime Player.

If you open up QuickTime Player and then play back a video, then close the video, as soon as you background the app, it auto-quits itself. I wonder if they made it behave this way at some point to get around a memory leak. It's such an unexpected thing and it infuriates me each time I encounter it.
Exactly. These countries put forth policy they cannot afford and are out-competed via taxation. Allowing them to express force on smaller countries in an effort to reduce their profits seems mind blowingly aggressive.

I guess its the kind of dumb policy we have to put up with until someone points out that those affected by this are likely 'minorities" in western societies and is therefore racist/bigoted. Its the only way to argue nowadays.
In many programming languages, environment variables are a mutatable dictionary/map, which makes it the ultimate place to store global variables.

It's definitely my guilty go-to-hack when I'm not up for refactoring everything to be more functional and/or take a dry_run function parameter everywhere.
> How do you approach supporting/maintaining relationships with teams whose work is not the most impactful but who still come to you for engineering support?

If it is a new relationship, I tell them no. I then provide them with my estimation for the impact of the proposed collaboration and my estimation for the impact of the work that we are funding. And I encourage them to escalate through my management if they disagree with my conclusion.

The harder one is if we have already provided something for this team. The way to avoid this is to try to document support expectations as clearly as possible in the very beginning and ruthlessly prevent things from growing beyond that. I've done this poorly in the past and ended up inheriting support for less impactful collaborations that I can no longer deprioritize.

> Also, how do you balance or position for greater long term impact vs lesser immediate impact?

Work with leaders to define their priority balance for short vs long term impact and try to match that. Some orgs really really need short term wins. Other orgs can afford to take a longer vision.
I was really into it in my teens, tore my ankle up bad at 17 where I couldn't do any flips. Waited a year and got back into, tore the ankle again within a year. Still every time I try a flip my ankle hurts bad. Kind of sucks, it was the only "sport" I ever enjoyed :/
I think that when using email aliases to identify spam sources, the crucial part is that you can filter the stripped address (as well as any unapproved alias) to be directly identified as spam and then the +alias part becomes a key to properly get into the inbox.

That whole setup for tidiness is broken the moment a desired website does not accept an alias in your address, of course.
Please don't use slashed O because then it is hard to distinguish the Norwegian/Danish character:

"Ø (or minuscule: ø) is a vowel and a letter used in the Danish, Norwegian, Faroese, and Southern Sami languages. It is mostly used as a representation of mid front rounded vowels, such as [ø] and [œ], except for Southern Sámi where it is used as an [oe] diphthong."

https://en.wikipedia.org/wiki/%C3%98
Dry-run can be implemented succinctly in Python with a function decorator wrapping those functions that should run conditionally.

Nice aspects of this technique:

Inside the decorator you have access to both the function’s name and its arguments so you can print descriptive messages to the user e.g. “In dry run, would have run function ‘delete’ on ‘/foo/bar’”

You can use the name of the decorator as de facto documentation, e.g. “@destructive”
I gave my grandmother a iPad because I felt confident that she could not install anything nasty, nor could be tricked into installing anything nasty.

If Apple allowed you to unlock your iPad, they would also be allowing my grandmother to be scammed into unlocking hers.

Building a walled garden was a great decision for consumers by Apple, and if it was profit driven then that’s +1 for capitalism.
Feel free to not respond as the thought is mutual but it's not my "view point". It is a matter of fact that Saudi Arabia and Israel have violated nearly every human rights charter in the UN and I'm sorry that my recognition of that fact does not give you any "leeway" to weasel your way out of acknowledging their crimes against humanity - or the US's complicity in all of this by continuing to supply them with arms.
> If you give an answer that is poorly cited, your comment gets deleted.

That's not quite true. Sources are strongly encouraged but not required. However, if you're asked for sources and don't provide them then yes, you will probably get deleted. [1]

In practice, it's usually pretty obvious which replies aren't going to be able to back themselves up, and they almost always fail the "in-depth" test too making it a moot point.

[1] https://www.reddit.com/r/AskHistorians/wiki/rules#wiki_sourc...
Silicon Valley Wants Dogs to Live Longer So Humans Can, Too
You then end up having FAANG setting a company called FAANG which each FAANG owns exactly 20% of the FANNG companies and the sole purpose was to relicensing trademarks patents or whatever.

At the end of the day moving profits around isn't illegal and I dont see how banning it solves that problem. As long as it is taxed somewhere, which is what all country cares.
I'd sort of raise the issue that "Writing an email parser from scratch is a bad idea due to the sheer complexity involved. If you're looking for serious email address validation there may be better options out there that have dealt with this complexity rather than start from the ground up."

Not to say I wouldn't try just for the sake of working through it as an example / 'where would you start' discussion.

But if we're pretending this is a real world task I'd probably discuss how this is an endless / possibly ultimately futile time sink and there might be better options than starting at point A ;)
I find one thing very very very useful with finder.

spacebar to preview.

select multiple items to preview them all.
Lot's of conspiracy theory people and no investigation ever people in here. I don't have any view on either side, but I think it's appropriate to investigate the possibility that the point of origin was from a lab. Honest question, for those who are against investigating this, what evidence would be needed to soften your view on that?
Which is fantastic - and hopefully Galileo can deliver both the 1cm and the free option - I personally never saw the pie in sky galileo revenue fantasies as anything other than hot air.
The US can tax the US company. The US will have a hard time taxing the Luxembourg subsidiary of the US company especially if the parent owns less than 100% of the subsidiary.
"Cutting" is a no good, terrible idea, but a good idea would be to allow a "Grab", and then let the user navigate elsewhere and "Move grabbed item here." Mac doesn't have that because it breaks the visual/spatial metaphor.

Of course, "Copy" does too, yet Mac allows that...
The article is actually talking about something different - the 90s style mountain bikes that were precursors to gravel/cyclocross bikes had what is comparable to bullhorn handlebars.

Drop bars will never go away :)
Duktape’s host API is pretty much a ripoff of Lua’s, and the latter wasn’t rejected on those grounds, so…

QuickJS’s API isn’t particularly well-documented, but it’s not hard to find your way around it either if you dig into the source (the engine is very hackable, too; you might even fix some of the language’s design flaws – obligatory wat talk reference – if you’re so inclined). The host API follows the CPython model, with objects represented by pointers and explicit reference counting on the C side. There are some predefined macros to ease defining built-in classes. Some type-level hackery in C++ might ease things even further. I don’t know how much deader-easier you want it.
> the "Somebody else got away with it!" line is not a valid defense for anything.

It actually is, if you are tacitly saying "and we will let them them get away with it again, and again, and again…" but "these other guys you must help me stop".
"No, websites should not play sounds, it is annoying" I have a somewhat different response to that. They are correct sounds can already be played. Supporting control in CSS (although I am not sure how) would allow the end user's CSS to override it, as well as for alternate style sheets provided by the author to override it, so it is still useful. CSS media queries may also be available, such as mono/stereo/surround, which may also be useful.

My own ideas of a new web browser include meta-CSS that the end user can use (I have not yet defined the syntax of meta-CSS), as well as some new CSS commands, such as !priority; only values in a narrow range are allowed for !priority for document authors, while the end users may use values above and below that range too. If you simply want to mute all audio, maybe you can write:

* { audio-volume: 0% !important !priority(255); }

More complex preferences could also be defined using user CSS and meta-CSS.

So, yes, CSS for audio seems like it might be a good idea. However, the web browser will need to be designed with better user control of these things than many existing implementations tend to do.
The US could tax dividends and cap gains for foreign shareholders, if it wanted.
It wouldn’t even be blind deconvolution since they can use the cheese label as ground truth.
That is correct, and many of my family members are American accountants and/or CPAs. I suspect that this individual is mixing "fraud and abuse" for "things I don't like and/or agree with paying Uncle Sam [the US government taxman] for". But, that is just a part of life for just about everyone who pays taxes.

If the above individual wants to see widespread corruption, you may want to check out some European Union countries that have this culture. Croatia is a good example, where nepotism is the modus operandi, as in whom you know will get you places in society. Bulgaria is also a great example.
G7 is close to agreement on taxation of world’s largest companies
Totally possible! I'm just going by my own experience. Most of the applicants I've seen have been unqualified, though, at least going by their resumes. I'd love to find some talented women of color to join
If you doubled or tripled the number of cops in LA, would they solve more difficult crimes in the monied and lawyered Hollywood Hills? Or would they go after more petty crime in South Central, where it’s easy to get a conviction?
So they have drug product with prints.

They match those to the hand / fingers holding the cheese.

Presuming the EncroChat is anonymous, how do they then tie that to the person arrested? Where and how does that happen?
They have revolutionized the sport to the extent that they're banned in some popular mountain bike areas. That said, I think a lot of studies have shown they don't cause any more trail damage than a traditional bike.
"Press CMD-J"

It's amazing how far Emacs has penetrated UI design.
My company tries to go out of its way to be inclusive in the hiring process (including trying to do away with requirements etc) and the hiring pipeline is predominantly white/Asian men, and outside of it the occasional Asian woman. The really rare candidate that falls out of this category interviews alright at best and we have given them offers in the past. Unfortunately 3/4 of those people were actually really bad at their jobs, they just wanted to phone it in. All 3 quit at the one year mark and went to another job. This is their entire resume - a string of one year stints with assumably increasing salaries. Not saying this is representative of minorities but theres a few who have figured out that they can phone it in because they are diversity-quota and milk it to the extreme.

The poster clearly mentions they want to increase diversity and unless they do something sexist /racist as part of their interview what more are they supposed to do? If they look all white now what are they supposed to do about it? Find the token colored person from some corner of the company and paste them in every page in their website?
> That's only if the app is already open. If you Quit Finder when no windows are open, the first click opens no windows.

I'm not sure what you're talking about - you cannot quit Finder and the app is always open. You can only force restart it but it is never in a quit state for you to do what you're say you're doing, and if you do force-start it it behaves as already described.
Usually the option key uncovers more available options in context menus.

> How does one discover Cmd-Opt-V?

Keyboard shortcuts are not usually meant to be "discovered" (how do you discover ctrl+x?). You can learn and memorize them. Although, there is a common theme with the option/alt modifier on the mac.
Cool, good work! I see someone else posted the GitHub link, I’ll check it out.
> Is the IRS a global institution now?

In their own minds, they always have been.

I also find it funny that a country that can't even level-set taxation within it's own 50 territories wants to dictate taxation for the world now.
Not to mention the bikes are WAAAYYYYYYY faster over just about all terrain (suspension design, tire design, etc), and even more so going downhill. Instead of hooking bars at 10mph, you're doing it at 20mph+.
>Whether the problem is worth solving is very often not your call as an engineer.

True, but as an engineer you do need to provide accurate feedback regarding "Hey, this is gonna work much of the time but email is hard, this is a complex problem. If we do this from scratch we're going to miss a lot of things potentially".
The one on the front cover is lovely.
The solution is to bring in more school marms?
This is also my preferred approach.

If I can send you an email and you can verify that you have access to that email, your email is "valid enough" for me.

Then, the validation is basically "is there an @ and after a dot in there?". I find that after that, every hour spent on improving the validation will just cause more emails falsely flagged as invalid, more support requests from the people who couldn't sign up with valid emails, it's code we need to maintain, anytime edits the validation logic risks breaking sign ups completely.

So with more "improvements" to the validation, you just cause more problems. Then why do it?

I hear the reputation arguments, but in practice, it never happened to any of the organizations I worked for.

What happens though very often is naive engineers trying to solve problems the business doesn't have with knowledge they lack...
That would actually be really cool, especially for HN.

Imagine if HN submissions allowed an optional field with a link or short description for "additional context" that the submitter could fill in.

I mean, I can't count the number of times there's been a post on the front page that's just a link to a newly released version of something many readers have never heard of, and half the commenters are like "I've been waiting for this for so long, congrats!" and while the top-voted comment is "what is this exactly? Can someone explain?"
All social media accounts are delectable on a long enough timescale.
I think you’re overstating the case when you say it’s a burden.

All of us google stuff all the time so that’s not a huge burden either.

It’s just more efficient for one person to write a quick definition than it is for 10 or 1,000 people to go look something up.
I know relatively little about skateboarding, but there's a certain genius-from-restriction, literally tinkering-in-the-garage romance to Mullen's skateboarding journey that I really like. From Wikipedia [1]:

> When his family moved to a farm in a remote part of Florida, Mullen began perfecting his flatground techniques in the family garage; he has said that the isolation and lack of terrain naturally guided him towards freestyle skateboarding. Mullen cites July 1979–August 1980 as his "most creative time," a time when he was predominantly a loner who counted the cows of the family farm as his best friends....[i]n 1980, the 14-year-old Mullen entered the Oasis Pro competition, defeating the world champion, Steve Rocco.

Every now and then I think about trying skateboarding again, but I wince just thinking about all that force on early-30s knees.

[1] https://en.wikipedia.org/wiki/Rodney_Mullen
Now I miss my 90s cheap MTB. I remember me as a teenager buying and setting up the bar ends. It felt so cool. For a kid it was like the ultimate performance improvement.

But well, right, they were so 90s. That wouldn't really fit at all with the current super posh MTBs out there.
There are other approaches to this as well:

1. Passing around a configuration or context (similar to your gripe around params)

2. Referencing some kind of global configuration (a la env vars)

3. Referencing a local or scoped configuration (for example, a method of an object can check instance variables that dictate behavior)

I personally prefer either a passed context or a local configuration; I find both easier to test in isolation. Global contexts have their uses, but tend to become problematic when they clash with other libraries or tools that may also be present in the execution environment.
Yeah, you noticed? These activities did not exist when IT was driven by enthusiastic and clever developers rather than lazy managers creating artificial activities in order to justify their existence.
How can you make money on linux?

Correction: I understood the original comment as developing software for linux and getting paid for it, and not using it to make web apps, doing web development is platform independent obviously..
You're right in general, but I do remember Mac Pro being announced at WWDC.
That would be no surprise, since I have called it too many times before and waited and I will call it once again.

Now the M1 hype squad are becoming slightly short-sighted with their purchase, I'll just sit back and wait for the new generation to come (which is not far off) and the ecosystem to mature, (unlike what happened on November 2020) and at least this year, me and the newcomers jumping on Apple Silicon will have a much better experience.

I am bullish on Apple Silicon and looking past the M1 generation and will get the newer generation models instead and skipping M1.
You may be interested in https://gitlab.com/kragen/derctuo/blob/master/markdown/hacke..., although it's pretty incomplete. Yuan isn't on there, for example.
Does anyone know why this approach would be preferred over the use of VAT (Value added tax) instead of a corporate profit tax?

I recall a US presidential candidate in the most recent election cycle mentioning this as the solution to the current corporate tax avoidance problem. In fact it was a major part of his campaign.

I am not very knowledgeable of the downsides of a VAT approach and how it could be gamed, but what he seemed to say did make sense to me. The idea was to tax the value created in the location it was created. I suppose the way you could game that system was to somehow show that no (or very little) value was created in the US?

Would moving to taking a small percentage of revenue solve this? A federal sales tax that is included in the price of products that cannot be avoided. Sure the argument against this may be that they will just pass the increased costs down to the consumer, but why wouldn't the same would happen if the corporations start having to pay more taxes in general .. whether on their profits or on something else?
There is nothing wrong with it, the only trusted component is (obviously) in terms of the initial distribution of the staked coins, which is the central feature of proof of stake.
> I bought 3x Arlo cameras

How is Arlo in terms of data privacy? I could never bring myself to buy a Ring because of Amazon vacuuming all personal data.
Because I have a historically viral video, they cancel my account?
Punitive taxes and regulation is what heightens wealth inequality.

In any case I find that any appeals to decrease wealth inequality is ultimately no more than greedy appeals to take from the responsible and give to the irresponsible, so I've long since stopped seeing that as a legitimate argument.
Mac user here. I've never given it much thought but you're right.

Return is a holdover from typewriters. It means "return the carriage to the left margin". I'm surprised the Mac keyboard doesn't say "Enter". It seems like a much more accurate word to describe what the button does.

Yes, "Return" applies in the context of editing text (return the cursor to left margin) but not in any other context on a computer I can think of.

I wonder why they continue to label it return and not enter.

/end random musing

edit: Downthread, someone provided a link to a StackOverflow page explaining how MacOS treats enter and return differently in some rare instances (it's program specific).
Yes. Tons and tons more people are biking now, especially those that weren't able before. Older and also overweight people can now bike much more easily. All anecdotal, but Denver has seemingly many more bikers.
What's wrong with command-up to go to the enclosing folder? As the poster stated, you don't even need to use the keyboard shortcut, there's a menu item.
When I've tried to work out estimates, currently EV's suffer a 20-25% weight penalty over gas/diesel. Part of the weight penalty is due to cascading effects. A battery plus and electric motor weighs more than a gas tank plus engine/transmission. Which means the structural elements have to be heavier.

I think if batteries energy density increases by 50% the weight penalty goes away.
Also, sorry for the double post, but how large do you see the collaboration requirements of academia? Is there a lot currently or is this something you are trying to change with a lower friction solution?

Can definitely see it as a very good way to share results and raw data (esp as we go more and more into a big data world), sort of like github but for academic data!
Apple's goals with a highly curated app marketplace and the existence of exploits are orthogonal to each other.

Nor is security just about "can the device be exploited or not?".

What are you trying to explain with these articles? How does the existence of iOS exploits support your thesis that Security and Openness can co-exist?
Why do so many people responding to this seem to assume the plus sign is to fool spammers? Of course it's not useful for antispam. It's mostly meant to make it easier to trace where a (legit) email comes from, for example to set up filters. https://gmail.googleblog.com/2008/03/2-hidden-ways-to-get-mo...
What I like is a system where you first create a plan for what you will do, then there is an executor that will execute the plan. So --dry-run just doesn't run the executor. Of course, depending on what you are working with that might not be possible, but if you can design it like so, do it. It also makes everything nicely decoupled.
The article shows a photo with the pearls highlighted with circles. I'm generally skeptical of AI, but this system produces a certificate that a human can verify much faster than doing the work themselves. IMO, that's the right way to do it. You can trust the system 99% of the time, and check a random 1% by eye every day. Or, you can keep a human fully in the loop and still save time (though, if the error rate is too low, humans will get bored)
I do attend a number of Women Who Code meetup events and I've been to two HBCU career fairs in the last few years. It's definitely something we do, but as you suggest, we could always do better. I'm a big advocate of this, but our recruiting team is the one who does most of the sourcing efforts and it's been tough to get them to think outside their traditional high-yield tech-bro mindset. I'm working on it!