skysight-inc/HackerNews huggingface dataset:
The alternative to DRY is... Repeating yourself. Which is fine once or thrice but not too many times.

Second alternative is code generation, which brings its own problems, but is relatively clean. (Custom build systems are a pain.) You have to keep balance to not turn the code into some DSL for example.

Then you can also do macros, especially if the language has a decent enough support. (In C++ the equivalent is not C macros but templates and RAII pattern.)

And finally, you do not need to move code out to necessarily reuse it all the time, or even make it public. Things that work together best stay together, and strengthen encapsulation.
is how much they admit they're stealing from their grandma.

Does that still work? Most people's grandmas today where very much alive and cooking in both the 70s, 80s and even 90s and thus as steeped as anybody in all the international influences and 'foreign' ingredients that those decades brought.

the way the internet treats cooking is retarded.

And here you and I disagree. I like the way that 'modern' cooking is willing to revisit well established and 'sacred' truths about food and put them to the test. Perhaps a housewife in the 1920s isn't the authoritative source on the best way to prepare a dish, and even if she is there is no way to know without someone actually testing that hypothesis. Sites like Serious Eats and all the sites they begat bring both rigor and the joy of experimentation back into cooking. I mean why not substitute one thing for another just to see what happens or apply the 'wrong' technique to a standard dish? Many a dish that is considered a 'classic' today no doubt got their start that way.
Or better yet, move your rootfs to a more reliable storage medium e.g. a USB hard disk drive.

https://www.raspberrypi.org/documentation/hardware/raspberry...
How do you replace electrolytes after reverse osmosis?
Many other websites are turning themselves into fairly open accrss market places as well, meaning you have to increasingly go through the same steps on them. A few examples: Newegg, Walmart, Lowes. Now, perhaps those 3 examples are better, but they seem to be determined to head the same way as fast as they can.
I always get a bit sad when a chunk of land that was once used to produce something (e.g. an old research plant), gets converted into something to consume something (e.g. a mini mall). Several of the vestiges that existed when I was a kid of what gave silicon valley its name are now gone and replaced with shopping centers.
Modern SoCs cost more than $35.
> we only noticed them if they hit us too hard, we told them to back off, and then they didn't

Response code 429 is your friend: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#429
I suppose this depends on the relative risk that said items have.

I would guess that for a pirate in East Africa some items would be more valuable than others. Is oil more valuable than say iPhones to them?
Recover function information from Go binaries
C++Now 2019: Robin Kuzmin “C++Now and CppCon, the View from Inside”
I would like to hear more about this!
Considering just how much US military presence is in the Middle East primarily for protecting energy assets, I think it is useful. It's disproportionate to the actual value produced compared to other shipping protection deployments.
I wrote my first program in QBasic. I played Gorillas (like, a lot). If they decide to kill VB, I'm gonna cry.
Show HN: Visualize Fuzzy Searches
Too many people create abstractions without also creating the 'means of combination' for that abstraction.

If the means of combination is not created, the abstraction will end up being big and complicated, and non-extensible.
I think reactions like this one, and the tons of crap gnome and systemd devs get are very damaging to the linux desktop community. Criticism is fine, but people are trying to make modern systems with little support. This is hard even for a Microsoft or an Apple, let alone a few paid developers and a a bunch of enthusiast volunteers.
Agree on the first point, which is why the "for example". Regarding second: standard practices, clear thought, good abstractions, readable documentation are all necessary and have much much more impact on the lack of torture. The OP (and I think you) are saying that indirection can lead to torture and hence avoid using it (the title of the article). Misuse or lack of understanding of any technique, principle et.al will lead us and others to confusion and torture. IMHO there is nothing inherently wrong with using indirection, say, as long as we understand what we are doing (as with a lot of other things). And because, as you so rightly said, impressionable people are reading along with us, we don't want to leave the impression that 'indirection', say, is somehow a villain here.
> which are exacerbated by the advice of the author.

Really? what advice is being given here that would exacerbate anything? From what I see, the author is carefully enumerating the problems which need to be carefully addressed before this kind of change can be made.

He is deliberately holding up the 'You just need an API, how hard can it be?' perspective as a naive one and looking at why it isn't that simple.

I found this an interesting and useful argument, particular the element about trust and loss of control
Quora Insincere Questions Classification: Two Notebook Tutorials in PyTorch
Hi HN,

There are many fuzzy search libraries. Sometimes, a match appears near the top that is hard to explain. This tool was created to visually understand those matches.

This can also be helpful if you're curious about how fuzzy search works, or wouldn't mind a refresher!
It's well supported in the model 3 now so that seems extremely likely.
I looked at the dmesg from someones Phoronix testsuite run and it has:

[drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0

So this is vc5/6, not vc4. Additionally:

Vendor: Broadcom (0x14e4)
Device: V3D 4.2 (0xffffffff)
You will be very interested in the Carver challenge [0]. In 1985, Bob Carver challenged the Stereophile magazine by claiming that he could perfectly reproduce the sound of any amplifier they chose by tweaking one of his (solid-state) amplifiers. They took him up with a high-end tube amplifier, and he won. Note that he did not use measurements but a brute-force approach of feeding the difference in output signal of both amplifiers to a speaker, and listening for (and manually correcting) any residual output.

https://www.stereophile.com/content/carver-challenge
The First Platform Exclusively for macOS Dynamic Wallpapers
Great Pacific garbage patch: giant plastic trap put to sea again
All of those questions can be answered through comments. I'd vote for a separate function.

Some of the answers can be encoded in the type system through the use of time units (like std::chrono), optional return values and design by contract (preconditions). Unit tests could be added to further clarify some edge cases.
In Sweden, which has a very limited market, German or UK Amazon is often the only easy way to browse niche goods you want to buy.
Makes sense to me.

But there's a problem, if your testosterone level is too low. In my experience, that increases the risk of tendonitis. Also, it didn't seem that exercise did much good. At least, not for strength training.

But with testosterone supplementation, exercising builds muscle and reduces fat. And no tendonitis. Also better blood sugar management, and less acne. Maybe even darker hair. But clearly not more hair on my head.
and that's not really the same thing. That couple could buy a cake anywhere else if they wanted.

The thing is with social networking websites, there's nothing mandating that the company must allow content on their network that they personally find abhorrent.

Imagine if, pedophiles complained about their freedom of speech to sexualize children in a textual sense. In some countries that would be illegal because it would be child pornography, in others would it be freedom of speech? Would the company be not allowed to remove it? No.

The consistent message social networking/services say is that it's not within the well being of the community to allow "fake and harmful content", in the previous example they would say that it is "harmful".
Coupon Apps for Deal Hunters
This.

Most of the times I Google something I get content farm rubbish.

Know also that low paid "freelance writers" are often writing a lot of this information that so many people rely on.

I use reddit queries for things that aren't really critical, say a video game recommendation (try Googling that and see how many "top 17 adventure games" you get)

For more serious things like "do I have lactose intolerance?", I google something like [wiki lactose intolerance]

I do wonder why one of the world's most advanced intelligent systems built by thousands of the world's most intelligent people employed by a company which pretty much explodes in a burst of millions of dollar bills when you tap it lightly can't seem to show us results that aren't full of rubbish.

It's like Google's "discover" feed - it shows me trash news from a tabloid.

Google knows _A LOT_ about me, don't they know I despise tabloid news? Gossip about Kylie's breast cancer? No.
But you can have a company that is strongly customer-focussed that still faces this class of problem, surely? It would seem to me that solving these problems at a large company where there actually is trust and esprit de corps to get it solved could be tremendously satisfying.
PlatformIO Plus Goes Open Source
Isn't the use of the chip by the user entirely optional?
You might check out the NanoPi Fire3, which I think came out in early 2018:

https://www.friendlyarm.com/index.php?route=product/product&...

Has an eight-core 1.4GHz CPU, and is otherwise mostly comparable to the new Pi: 1G RAM, 1Gb ethernet. Has an SD card slot and no built-in storage.
Simulate the life with cats using my programming skills
Not everyone uses semantic versioning. In chicken, point releases can deprecate or remove functionallity. See http://wiki.call-cc.org/development-process for details.
Surely no one believed that criticism of clean fuel subsidies was anymore intellectually honest than calls for a balanced budget.
OpenSSH will now Encrypt Private Keys with “prekey” consisting of Random data
On the other hand fixing "is_foolike" will be pain to fix if used in many places.
And - "This non-linear reading process requires more mental focus than reading linear code." - isnt't this a god thing?
Good abstraction requires a bit more mental involvement and much less monkey-job when fixing the code.
Wow, they solved one of the big problems with raspberrys, ethernet was terrible.

Now for me there is another very important one for things that stay connected 24 hours: refrigeration. There is a need at least for aluminum cases with holes for wifi.

Right now only Chinese make those, so it takes a long time to get those.
To clarify: historically Germany has been obsessed with left-wing terrorism because we had a domestic terrorist group called the Red Army Faction (RAF) which gained infamy for abducting and murdering a politician in the 70s and also performing several bombings and assassinations against politicians and government officials/institutions all the way into the 1990s.

However the Verfassungsschutz has a terrible track record when it comes to investigating and preventing right-wing attacks e.g. against asylum seekers and immigrants. There have also been several cases of dubious use of informants (at one point it was joked that the far-right party NPD is entirely run by informants) and intentional destruction of records.

Also Verfassungsschutz members have publicly spoken out against the dangers of left-wing extremism while being dismissive about right-wing extremism, the most recent case being the person literally in charge of the organisation who insisted that a video showing a group of people attacking immigrants posted on Twitter was likely fraudulent despite several news outlets vouching for its authenticity and providing fairly exhaustive evidence from their fact checking departments.

On a side-note: in communal politics, the right-of-center "majority party" CDU just formed a coalition with the far-right AfD, which had previously been a taboo and was officially ruled out by the CDU party leadership. So the risk of far-right extremism being normalised is very present and very real right now.
Raising taxes to pay for programs is more fiscally conservative than cutting taxes and raising the deficit
This is cool, but a lot of it is about bash programming, and it also heavily ties you to PDF output. IMO no real Markdown based authoring workflow is workable without a preprocessor. I've used many, from GCC's to several home written ones, but I recently started porting my whole authoring workflow for technical documentation to PP (http://cdsoft.fr/pp). It gives you integrated diagrams with ditaa and several similar packages, and most importantly fills the gap that pandoc leaves wrt composing documents from fragments. Just treating all input files as one continuous input document just doesn't cut it for anything more than simple README's.

Either way, it's great to see how far text-based authoring workflows have come over the last 10 years. At some point Docbook had great promise but XSL is just too hard, and not even that powerful after you managed to grok it, so you still needed to cobble together a bunch of functionality on top of it.
Thanks to you and @kingosticks above for digging up these official accounts.

Cursory examination of rpi firmware suggests that this DRM logic is implemented in start.elf, one of the proprietary blobs required to boot an rpi. This is, in itself, significant, since opening this blob would obviously make this restriction easy to circumvent. In other words, rpi have taken design decisions which essentially motivate them not to open up these boot blobs, but rather use them as a chokepoint of control over the platform, see also [1].

From this, we can infer that rpi.org will probably never get rid of these boot blobs (as opposed to simply not having found the time/resources to do something about them).

[1] https://github.com/nucular/raspi-keygen
It's very unlikely that Assange will be extradited given this set of charges.
NanoPi Fire3: 8-Core $35 ARM SBC
Having a central place for logic is a HUGE pro, while both those cons apply to a very narrow class of situations: having a super simple condition logic on one side vs. not very smartly named indirection. In real life (at least mine) you'll often have a complex or cryptic-looking conditions (requiring that you're deeply familiar with business logic, laws, tax rules, etc.), and abstracting them into sensibly named functions actually helps the review process and debugging IMO.
I'm convinced at this point that most of the conditions and diseases we associated with "old age" are actually a result of lifestyle choices, or at least aggravated by them. Just eat a balanced diet, get regular exercise, and maintain a healthy weight and you'll be better off than the majority.
> 'pavucontrol' seems like just a mixer

It's not a pro-level tool and probably doesn't have the flexibility you are looking for, but pavucontrol is much more than just a mixer. For example I can use it to control which input devices individual recording applications are reading from, and which output devices individual applications are playing to. You can also manage (but not create?) virtual devices that can be used as both inputs and outputs, and use a monitor of any output device as an input, etc etc.

If you do build something that gives complete access to pulseaudio devices and their mappings, I'd love to see the results. I would definitely use such an application.

> I was really surprised that there seemed to be no way to 'list all modules available for loading on the system'

Does `pactl list` give you what you're looking for?
The first 10 mates that upvote are getting a real post card from Australia if this hits the homepages :D
Sure, but it does not seem that any conservative voters are troubled by the increasing debt when a Democrat is not in office. Otherwise approval ratings wouldn't be so high
Making the point. C is not a language for convenient canned solutions. But I'm not too sad about that. There are a myriad ways of doing strings, and most high-level programming languages are still stuck in the 90s with UCS-2 encodings or such, and offering only solutions that don't scale well for, say, dozens of megabytes of strings. C isn't stuck, at the cost of convenience.
You're reading an awful lot into one 2 line throwaway example on a different topic.

CheckHasPermission() could be permission to update the score on space invaders.

Plus how are the other 2 examples in any way better from a security POV.
A Framework for Distributional Formal Semantics
It was an example. It could very well have been checkForSomeNonCriticalThing(x).
Life is unfair. A polio vaccine can't help those who have died
> Under that scheme, pulling power before inspection is what you want to do.

Why? Are you saying there were no measures to make data inaccessible in case of power failure?
Looks like the ethernet is connected directly through RGMII - meaning the USB 3.0 controller is likely completely out of the picture. That would mean you can run full throttle ethernet without affecting the USB speed at all.
Hm yeah, many people are still very critical of USB-C. (It obviously still takes some time to become as mature and well-adopted...) But I'm totally buying into this, all my new gadgets have USB-C and I totally love it.
According to the article the NIC is connected through dedicated RGMII - not through USB3.
Yes, we discussed a similar article a few weeks ago:

https://news.ycombinator.com/item?id=20093668

For some reason, we converge on the same few observations, most of which have nothing to do with actually increasing the human lifespan.
Some of the taxes on Wall Street included stuff like a 1% tax on bonds, 0.05% tax on derivatives

Pretty sure Sanders is also in favor of higher estate taxes. Even Clinton was
depends on the RAM and extras. pure pi with 1gb and no power adapter/cable/case is still ~35€. the more expensive options are with either 4gb ram and/or bundles.
I agree. No idea why they went with micro-hdmi, when mini displayport is more robust, more common, and royalty-free.
I've already written so much and don't want to repeat myself anymore. Certainly the use of a macro that transforms basically all of the code must be one of the biggest problems, because it makes communication between compiler and programmer extremely hard (tooling, error messages, ...). Besides that, there is still considerable overhead compared to the C version (which was written once here, never changed, and is still effortlessly the clearest version), and I miss some punctuation (not just parens) to be able to make sure everything is closed correctly, indented correctly, etc. Having to manually space out variables and types as pairs is also bad ergonomics. And I miss some operators (assignment, subscripting, distinct function call syntax) that give visual cues that allow the skimmer to quickly find what happens in a function.

Fun story: Larry Wall once said, Lisp looks like oatmeal with finger clippings mixed in. I can't disagree, and it's a serious problem for ergonomics.
When the Amazon Marketplace is used by a third party, Amazon don't have defective product liability. At least in the US. https://www.reuters.com/article/legal-us-otc-amazon/is-amazo...
Buy 100% undetected counterfeit money,euros,cad,WhatsApp and1(909)334 2306
Because its the most used and therefore the most targeted. It doesn't have to be considered %100 secure just because its linux, remember the early 2000s with windows 2000 and XP and how they were also heavily targeted. things have changed now of course.

same thing could happen to Mac OS X if it becomes more widely used (happened already).
They will still be shipping 18.04lts, with security updates, for years to come. This will be increasingly outdated. I'd like to hear specific examples of where that would be a problem though, besides Wine. More specifically, I don't understand what Valve is so upset about since Valve already supplies their own run time that games are recommended to use, and I hope that would apply to their photon system.
This is why the FTC should be taking a close, hard look at these guys. The FTC has many tools it can use. They could force Amazon to institute fraud control that actually passes a blush test, or face massive penalties for not complying. Having a monopoly is bad enough. Having an unaccountable, unregulated monopoly is intolerable.
Imho, this type of abstraction should be allowed in case of code repetition. So the reviewer/debugger will have to go non linear only one time.

In any other case the whole code should be in one file.
Common Robots. Txt Pitfalls and How to Avoid Them
1. Ignoring disallow directives for specific user-agent block;
2. One robots.txt file for different subdomains;
3. Listing of secure directories;
4. Blocking relevant pages;
5. Forgetting to add directives for specific bots where it’s needed;
6. Adding the relative path to sitemap;
7. Ignoring Slash in a Disallow field;
8. Forgetting about case sensitivity.
Fwiw, 18.04 is promised security updates until 2028 instead of the normal 2023.
During review and debugging I need to understand what the code is actually doing. I would prefer not to chase through a linked-list of function to uncloak something as trivial as string comparison.

There seems to be this insidious notion that engineers never need to understand implementation details, and therefore should aspire to bury program semantics through layers of abstraction that [often poorly] express the author's intent. This is a recipe to write systems that are insecure, and operationally un-maintainable.
About 3 kg (or 15 miles in imperial units). This is close to the standard 19 BTC/cat measure of quantum prefabricate.
Can't wait to buy this, boot it up, play with it for four hours, then stick it in the same desk drawer with the other Pis I have bought over the years.

(The upgrades look great, just my attention span is not so great)
Raspberry Pi 4 boasts 4K display output
Yes this. Apologies for being vague.
> I would have assumed the OCaml has a larger community of people using it in production

Yes, I also feel that Haskell has a larger community among academia/bloggers, but much lesser community among actual industrial users.

There are dozens of professional high quality OCaml software used by industry: Facebook's linters, Xen stack, Coq, Frama-C, Boeing's static analizer, FFTW, libguestfs by RedHat, camlpdf, Liquid Soap etc.

With Haskell, it feels like there are significantly less industrial grade projects written in it.
I think in general it makes sense to try to account for externalities in everything. If you spend lots of money on things like protecting shipping routes and accounting for that in the product cost tips costs in favour of manufacturing closer, then that's important to understand.
Bare Metal Programming on Raspberry Pi 3
It is always beneficial to learn something new, but do not expect to write production ready code in less than two years learning/practice. So learn how to code as a hobby, and for your business concentrate on your field of expertise, deepen it, communicate a lot with technical people.