skysight-inc/HackerNews huggingface dataset:
I see what you're saying and I definitely think there's truth in it (both Cognitive Therapy and Stoicism are based on the idea that happiness is controlled by our thoughts).

However, I do think that there is more to it than that. There are things that the average person has gained in the past decades but there are also things that people have lost. I think it is possible that some of the things that have been lost such as home ownership, connection to community, a high rate a marriage, autonomous work (e.g. working as an artisan, independent farmer, or small business owner) are more important to happiness than the luxuries that we gained.

I also think that its possible that some of the luxuries that we've gains (e.g. microwavable food, reality TV, cheap clothing) bring less happiness than the luxuries that are now less common (e.g. engagement with the arts). However, this certainly isn't true of all of the luxuries that we've gained (e.g. antibiotics, the ability to video chat with family on the other side of the world).

Finally, I think it is possible that society plays a role in how likely people are to have or develop the thought processes that you correctly point out lead to happiness. For example, it seems to me that American society often does a poor job of encouraging people to express themselves and to be themselves (e.g. by emphasizing art, toxic masculinity, etc.) which could lead to less confidence and satisfaction. Note that when I say "be themselves" I am referring to lifestyle and expression not the idea that people need to "follow their dreams" to be successful.
For HN, there's an extremely important item missing from this list:

* Get a job in cleantech.

I got into the climate-change fighting industry 6 years ago when I became a project engineer for a commercial solar company, then eventually I started my own cleantech software company. By working in the industry, I have had orders of magnitude more impact on fighting climate change than adjusting my lifestyle to be more carbon neutral.

Luckily for the HN crowd, there's a huge need for software and other tech skills (data science, sysadmin, etc.) needed for the energy transition. With the deployment of so much "intermittent" generation like solar and wind, we need tons of software and communications infrastructure to run a new "flexible" grid.

So if you're thinking what can you to help fight climate change, the best thing you can do is get a job in the climate change fighting industry. Start googling around for jobs with climate change keywords ("solar", "wind", "clean energy", etc.). Start showing up to clean energy events (if you live in the bay area, check out my bayareaenergyevents.com). There's so many people in this space who came from other sectors, and it's incredibly easy to move up or start your own company doing some specific thing you think is needed for the fight.
Yep. But thankfully archive.org has it. [0]

[0] https://web.archive.org/web/20190708094632/http://pdp2011.sy...
But in order to build with BuildKit you MUST BE connected to the internet during the build... So not ready to go yet...
Show HN: Maker Monikers – Brandable domain names for side projects
That's an interesting point and I can't really compare that.

But I noticed with an old thinkpad (x220) that I can reduce overall resource consumption and prolong battery life just by switching everything I can to a more terminal-centered workflow.

Ranger consumes less than dolphin, I use NMTUI because i3wm doesn't have a clickable task bar item for configuring WiFi (at least in my setup) and VIM/NVIM consume less than VSCode, IntelliJ, Atom or other editors.

Clearly there is a difference when you compare an electron app to some other running in the JVM or natively but in the end I have the feeling that terminal apps run better and faster.

Another very important thing in my opinion is the possibility to use these apps via SSH which is still my preferred way to remotely use computers (no VNC, RDP, teamviewer etc.).
I’ve wanted to visit Iceland for three decades.

It’s only in the last decade that I have both the means and the circle of interested friends, but the selfie-crowd and the influx of tourists pretty much killed my desire.

Places like Barcelona have a similar problem, but at least it’s a city and meant to be awash in crowds.
If the team agrees with the formatting, I don't think anyone would "think less of you" for applying it.
Front end Weekly Digest (1 – 7 July 2019)
I built this marketplace over the weekend as a hack project. It's basically BrandBucket but more affordable for makers and indie hackers who just want a decent domain name to start their project with.
If you don’t write unit tests on an assignment like that, you’ve pretty much failed. I made the same mistake in a similar situation with a different company. It’s tough because the expectations aren’t spelled out clearly, but unit tests are non negotiable.

[speaking personally, not on behalf of my employer]
But the point of this article is that we can initiate the change. If we collectively decide and eliminate plastic bags in our town / place or whatever subdivision then for sure we can make an impact. There is nothing bigger than people power.
Show HN: Run a Kubernetes Workshop with VSCode in the Browser
Mistakes Women Make That Hold Them Single for a Long Term
There's also Mailpile, which is GUI (webapp) but FOSS self-hostable.

https://github.com/mailpile/Mailpile
I thought about using Docker for a reproducible build environment but, in that context, found it problematic that every time a Dockerfile is built you may end up with new base images and different package versions. That's hardly reproducible.

Perhaps I'm coming at this from a wrong angle.
Absolutely.

Not just tabs vs spaces, but also camel case vs underscore, line length, etc.
Fair enough: That was indeed true many years ago.
Funny how people advertised for decades on tv, in newspapers, and with leaflets through the door, without invasive tracking
Legal Ops Software Market to Be Worth $3.6B by 2027 – Report
The small incentive from gamification works surprisingly well, especially for things where it's hard to visualise the net gains (Oral care, cleaning, etc).

For tasks though, I personally use Todoist, which I've haphazardly rigged via IFTTT and Microsoft Flow to sync through to Habitica.
That way I get the organisation of Todoist, but the incentives from Habitica.
It's insane you have to use ADB for this, and seems like Samsung is hate-selling Bixby to users.

You could run Lineage OS to accomplish this, but aside from being a pain to install it's not fantastic in terms of security.
14 Best WordPress SEO Plugins in 2019
1. Transaction reporting requirements are a blatant violation of privacy. Stopping crime is not a sufficient justification for warrantless mass surveillance of private interactions.

2. If money is dirty, you should be able to prove a crime was committed to procure that money. If you can't, then the allegation is mere suspicion, and we've entered the territory of "guilty until proven innocent" civil forfeiture.
Cool project. Kudos for offering an example via telnet!
Please don't downvote parent. This is true.

It is a fact that everything that happens in a Dockerfile execution via `docker build` can be done with a `docker run` and executing commands and ending with `docker commit`. Even the caching mechanism can be replicated. (Except with more control in my opinion.) It is also a fact that `docker run` has more capabilities than `docker build`, such as being able to mount things in.
Beautiful Code Principles
It amazes me how Pilots are required mainly for the purposes of being able to act as a last resort against a computer which has gone haywire, and the public feel better thinking that the pilot can "take control" and then at the same time aircraft manufacturers are removing the ability for the said Pilots to override the computer. That's progress!
Thank you! I didn't know that!
As long as draconian IP protection and the DMCA exists this is not a free market.
COPY --chown is a big improvement, but the way that COPY works differently than a Unix cp can be an impediment. (It flattens directory structures.)
That's nonsense. Zimbabwe (like the famous Weimar republic, by the way) had a extreme fall in the real productive capacity of the economy (1). Inflation was going to happen nevertheless the monetary policy they adopted.

(1) - http://bilbo.economicoutlook.net/blog/?p=3773
> because online advertising by and large does not work but targeted search ads - emphasis on targeted - do.

as an adsense and adwords user i'm very skeptical about the effectiveness of targeted ads beyond exact keyword matching in general. Keyword-based ads work great, because they are answering exactly what the user is searching, but people rarely search "what should i vote". Other forms like display advertising are also quite effective, depending on the kind of product one wants to advertise (that's why google bought doubleclick). I don't know of any studies with statistics that corroborate google's pricing of ads with their effectiveness.

That said, all advertising is manipulative by definition. Not just advertising, most media reporting is also manipulative to the degree that everyone has biases.

> ads are in a way a solution to the problem that the best organic PageRanked result for a query like 'flowers' might be a Wikipedia page on flowers, whereas almost certainly what the user actually wanted was a hyper-local result for a flower delivery service

I think you are also misstating how adwords works. Google doesn't care if your ad is about the best flower shop, but how much you are willing to pay to rank before others in ads.
are you the builder of this ?
Leaving aside the fact that the article does say though that the fine is also divided up between other EU data protection organisations... Equifax lost my data, it is unlikely that the American government be compensating me from any fines / enforcement action they take (I am not an American)

Conversely, if someone went to jail over this, at a net cost to the UK taxpayer, would the British Government be able to claim expenses from around the world? Has every other government that has citizens using BA chipped in to pay for the ICO?

Fines are a punishment not compensation. Whilst as a UK taxpayer I am delighted at this tremendous bounty my nation has received - and the thought of it getting into foreign hands disgusts me (/s) I would rather have law-abiding organisations.
I feel they all add up together. There is a water scarcity not because of less rain but because of plastic wastes form a layer in the earth that prevents water to seep through and increase the ground water level.

I definitely agree with reusing plastic stuff, but how many times do we do it. Rather than it is cheap and easily available, how many we throw them daily? How many times can you reuse them? Cotton bags at least are not made by destroying the plant (I think) and they are reusable many times. If they are torn we can stitch them or throw it in the earth they will degrade. Is that the case for Plastic ones.

I know politicians and corporations have power. But for some time let us stop pointing things towards them and do what we can do.
Beware of Fake Microsoft OneNote Audio Note Phishing Emails
Are you okay with your bosses enabling “techno-fascism?”
> Indentation is semantic only in Python

And in Haskell. And in Nim. And in Haml. And in Sass. And in YAML.

https://en.wikipedia.org/wiki/Off-side_rule#Off-side_rule_la...
My impression is that many people are not confident in their understanding of tab behavior; there's a perception of them being weird, unpredictable voodoo (as exemplified by comments which imply that many programs don't support tabs well, despite that virtually all programs support tabs flawlessly, right down to notepad and standard GUI toolkit textboxes.)

I think this stems from a broken mental model, whereby tabs are regarded as "representing x number of spaces", where x is some unknown variable in the editor of whoever created the file. These people say things like "tabs are just a compression mechanism" and "tabs are inconsistent across editors". In the minds of these people, spaces have primacy, and tabs are just weird inconsistent not-spaces that catch you out.

The proper mental model, of course, is to recognize that tabs don't represent any number of spaces - they represent indents, and that's that. You could quite happily set your editor to display tabs as indents π spaces wide. It is an error on the part of the person writing the file to assume any particular tab width.

There are a few coding style conventions that break the assumption that the indentation should strictly reflect the nesting depth, like breaking up a long argument list over multiple lines and trying to line the second line up with the opening parentheses. In my view these are bad coding styles anyway and should be retired.
Meetup.com Seems to Be Down
For anyone else unfamiliar with the term, TUI appears to refer to "Text-Based User Interface"
Complexity.

You don't really need isolation if the code is so simple as to obviously contain no bugs (instead of containing no obvious bugs.)

Instead, we have a whole industry built upon encouraging the creation of things as complex as possible, and working around the problems caused by that by adding even more complexity, mainly because it means people have more to do.

http://countercomplex.blogspot.com/2014/08/the-resource-leak...

(No, downvotes from the complexity-brigade are not going to make me change my mind either.)
Note: The following statements are for sake of argument and I realize that they are likely not practical.

I think is a result of the fact that styling is outside the domain of front-end software engineering. I don't mean this literally; clearly it is part of the job description. What I mean is that as a software engineer my primary skillset is in programming and CSS generally has very little to do with programming.

This is true semantically (CSS lacks good support for variables, functions, conditionals, etc.). However, it is also true in terms of of how designs are generally structured. For example, layout tends to be "I want exactly this spacing at this breakpoint and this spacing at this other breakpoint" instead of "I want the spacing to scale according to this equation of screen size".
For flight one, I completely agree. Sadly we do not have any other options there
I jumped off the Golden Gate Bridge&survived–one sentence could have stopped me
Oh come on, you're still giving this guy shit for making a mistake while spending his free time developing it?
PyRobot: An Open Source Robotics Research Platform
Also, the default IRC message compose in Thunderbird is white text on white background.
Input your logs, output anything unique
Tip #6 (Use official images when possible) is certainly convenient when you're just spinning up something (I use them in local docker-composes all the time), but it's surely opening yet another security hole when it comes to prod. We're not lacking examples where packages are hijacked (feels like it happens constantly on npm, rubygems had it just the other day...), and docker hub has already had one security breach.

Perhaps worth a mention in this blogpost?
How so? No waterproofing, worse camera, worse battery life, much chunkier..
Did iOS ever have a “virus”?
Lucky for you. But not everyone has that luxury or option.
I think tablets have paired extremely well with Point and Click adventures. The Journey Down was very enjoyable, for one.
> Do the regulators take into account whether the firm is actually at fault?

To echo others: yes, a lot. To quote the Information Commissioner:

> "I have no intention of changing the ICO’s proportionate and pragmatic approach after 25 May [the GDPR intro date] ... Hefty fines will be reserved for those organisations that persistently, deliberately or negligently flout the law."

A good overview of the ICO's approach: https://www.pinsentmasons.com/out-law/news/gdpr-uk-watchdog-...

The whole draft policy for how the ICO applies its powers is here. It's a good read, but not short: https://ico.org.uk/media/2258810/ico-draft-regulatory-action...
> I didn't need to provide any shred of evidence of where the money came from.

Why would you need to provide such evidence? The money is being sent via bank transfer and the state knows what money is going in and out of your account, they can easily spot if your funds are illegitimate as long as your state has a semi-competent financial authority.
Correct. And frankly, that's the logical choice. It allows to use different tabwidth for representation, while still aligning variables correctly with spaces. But this only works when you enforce an autoformatter, and way too few languages have a standardized autoformat.
I agree completely. Elastic tabstops are such an elegant solution to the whole debate. It turns the tab character into what it should be semantically, a character to denote alignment, just as it is used in a wysiwyg word processor.

When supported by the editor, it also allows the user to align columns using a proportional font instead of the fixed-with fonts we have to use now.

The concept has been discussed on HN earlier, but the accessibility argument is something that I hadn't considered or seen anyone discuss.
I am not saying the problem will disappear. But we can extend the timeline. Maybe (stressing on maybe) nature will evolve.
Fog Computing – The Emerging Paradigm for IoT
I don't know how's the English translation, but I've read the original version and it's really wonderful. Not only for the insects, but it provides at times fascinating glimpses of ordinary life in the 19th century: Fabre tells how as a boy in the 1830s, up until 7 he walked only barefoot and only wore year-long a ragged shirt that dropped to his knees; also don't miss his visit to the village butcher's backyard in search of necrophagous insects...

[edit]: reading the article, this is an abridged version of the Entomological Memoirs. Definitely read the thicker tome, it's well worth it. Plus practically nothing in it had been invalidated scientifically (he was opposed to Evolution, but was not a bigot; he had an interesting and rich correspondence with Darwin).
> started doing TUIs

Terminal-based interfaces predate GUIs and have never really stopped being popular among a specific crowd. Perhaps they are gaining more traction now because of all the warts that current popular GUI frameworks have, but it is by no means a new development that is suddenly happening.
All code being in one 750 line file is a bad thing.
It would never pass a code review where I work.

I would not really care if it worked or not and have
the team or developer come back with a broken down
version. (which if the code is structured well inside
a single file should be very fast to accomplish)
Given these calculations, I guess you're right. The surface area facing the Atlantic with air on other side would be 200m x 14000m which would probably require such a width of concrete to be structurally sound that only the largest payloads would make so much as a relative dent in it.
It's not surprising if you think about how our ability to store video has changed over the years. The delay on analog TV is so low because the picture data had to go straight from the camera to the screen with basically no buffering since it was infeasible to store that much data. (PAL televisions buffered the previous scanline in an analog delay line for colour decoding purposes, but that was pretty much cutting edge at the time.) Now that we can buffer multiple frames cheaply, that makes it feasible to compress video and transmit it without the kind of dedicated, high-bandwidth, low-latency links required in the analog days. Which in turn makes it possible to choose from more than a handful of channels.
RSA is a fragile cryptosystem
The feedback was only that the code was disorganized because all 750 lines were in one file and there was no test automation.

These days a coding test has a pretty standard minimum set of features to get a pass, and they include reasonably well organized code and having some tests. If you're working alone those are less important but as soon as you join a team they're critical.

I really got the impression they didn’t even look at the code or execute it to see if I achieved success or followed instructions.

When I do technical interviews I assume the candidates code works (and it often doesn't, but that's not the point). I review it first, then I see if it meets the acceptance criteria. If your code isn't the sort of code that would be acceptable in the organization it doesn't matter if it works.

I would rather reject a candidate on quality than failing the test. Also, occasionally, if the candidate has made an obvious error that stops their code working but it's clear they write great code I might still recommend making them an offer.
I appreciate that a lot of people use Mac and/or Windows, but calling it cross-platform and then excluding the third big platform option is I think missing the point.
Tugadar Online Forum and Discussion
But switching between input mode and text mode is not (for me, at least, as an untrained user)

I deeply appreciate the automation vim & co. offer, but many people, like me, simply have no interest in climbing up the learning curve for editors.
Checkout machines will have RFID readers. When you place your bag inside RFID reader, all tags will be read.

UHF based RFID readers are better since they have more than 1 meter of read range.
Mussolini was invading other nations. Which nation was Gaddafi invading ? If Mussolini wasn't carrying out invasions, he would have definitely got a pass.
That's actually one of my arguments against tabs --- the sudden "acceleration" of the cursor when it runs through a series of tabs is quite disorienting because it means you can't estimate as easily how long it'll take to get to a certain point.
Could someone explain why tip#9 is a good idea? To me it makes more sense to build the application in the CI pipeline and use Dockerfile only to package the app.

The post is focused on Java apps but, for example, there is a distinction on runtime and SDK images in .NET Core. If you want to build in Docker, you have to pull the heavier SDK image. If you copy the built binaries to image, you can use the runtime image. I guess there could be similar situations in other platforms too.

Other than that, it looks like a decent guide. Thanks to the author.
As the other comment suggested it's language independent. For me, three characters have enough width to be easy to visually distinguish from plain spaces, and the occasional typo, but still easy to keep track of with multiple indentations.

I do suspect that Fitt's Law[0] applies to the question of ideal indentation width though. In that case there is a trade-off between trying to minimize the number of characters for less distance, since that makes it easier to "hit the target" with your reading saccade, and having enough distance to make sure indentation has a visually distinct gap from plain spaces. However, the sweet spot of that trade-off is undoubtedly very personal and dependent on many factors.

[0] https://en.wikipedia.org/wiki/Fitts's_law
Why is this dead? It provides a commentary on the feature linked.
> content being removed

I used to watch a lot of Monty Python sketches on YouTube, and in the past few months they've been removed. Last time I looked it was impossible to find the super popular Parrot Sketch!

They're not on Archive.org, no decent results on alternative sites such as DailyMotion, just disappeared.

That's absolutely shocking to me, a huge piece of popular culture is unreachable unless you specifically go pay for it or are lucky to find a collection on a torrent site.
Python tips and tricks, June 2019
Hi Lucas!

Yes, my name is Adomas Baltagalvis and I'm one of the co-founders of Eddy Travels. If you have any questions or feedback, feel free to share them with me.
Machine Learning for Art – Deep Kitsch or Creative Augmentation?