skysight-inc/HackerNews huggingface dataset:
> In the context of your statement, how are you defining "ethics"? One
could argue that it's completely ethical...

Really glad you asked that Dracophoenix! :)

Indeed, it's such an interesting and extensive topic that I am writing
a book (aprox. 500pp) on it. You will be able to read it in a few
months.

Meanwhile have a look at this one [1] which lightly touches on some of
the issues that intersect ethics and code. Cheers.

https://digitalvegan.net
AES Encryption in Scratch
> My theory, though untested, is that getting an oxygen tank...

Very unlikely to do anything. If you can't get enough oxygen to your tissues, you'll already feel that (lactic acid buildup).

You're not likely to significantly increase your CO2 exhalation that way because you're not some simple "O2 in, CO2 out" machine. The air we exhale is still ~16% Oxygen.

Other than that, I've just started a 5:2 intermittent fasting program. It's not a full fast, two days a week I stick to sub-600 calories. The other days I have cut out or down on my snacking and try to eat 'better', but those two days I go hungry. After about 5 weeks of this, I appear to be adjusting quite well, the 'fast' days are much more bearable than they were at the start. I seem to be losing weight at a steady rate, about 0.8-1kg per week. It's not exactly a weird tip or a hack to ultra-fast weight loss, but it seems to work so far.
It does make it incorrect. Argument is not "Americans lynch blacks and Americans should stop". Argument was "Americans lynched blacks in the past, therefore it is ok for us to jail internal opponents and ok to kick their loved ones from schools and work".

American lynching's are no more relevant then Tibet or ancient Sparta when Havel is talking about events in Eastern Europe.
I think its finally time to convert your 'family recipes' book to your own database to share with the family.

And there aren't many good free solutions out there that are user-friendly and accessible everywhere easily. Desktop apps don't cut it anymore especially now that you want to share something in your family's chat group.

People have also started gathering/modifying their own recipes from sites all over, so importing recipes is becoming crucial, especially with certain diets and a personal <insert diet> plan.
I see a lot of flaws in this article.

He claims that open source software trivializes our profession ignoring the fact that most of the time the open source as is software is the best there is.

He talks about all these examples of software falling boeings, financial firms, lunar landers which by the way are all not open source.

Additionally the boeing case was not even a software failure, if I recall correctly one of the sensors would physically get stuck in a wrong position, you know the kind of physical system designed by licensed engineers.

Then he proceeds to list a number of perceived problems in the software industry, failing to see that they also exist in other industries, these are not symptoms of lack of professionalism they are the reality of profit seeking taken to the extreme.

Liability is a thing, we don't need licensing because we are liable for the code we sell and the services we provide.

Licensing does not fix any of these problems all of the bridges that have fallen, all of the planes that have crashed have been built by licensed engineers, the solution in engineering has been regulations.
It's almost 15 years ago now, but I found Apple (or at least staff in the London Oxford Road Apple store) to be very responsive when the battery for my perhaps 3 or 4 year old MacBook Pro expanded and broke.

I think there may have been a recall (which had expired by that point) but on bringing it in the staff member just unboxed a new £100 battery and sent me on my way. Various employers have purchased maybe 5 new Apple laptops on my behalf since so probably a good call.
Meteor crater discovered beneath Greenland's ice is much older than thought
Having lost ~75 pounds and having (mostly) kept it off, the "trick" is to stop eating certain foods, sleeping well and exercising.

Start by avoiding any sugars whatsoever (exception: fresh fruit), bread, fried food. This will be difficult for a few days to a week, but afterwards it gets easier and easier. You will end up consuming less food. Do this diligently, as even one chocolate might set you back by increasing desire for sugar.

Exercise by first walking and the running, depending on your level of fitness. Lifting weights also helps because it increases metabolism. After running, you may crave apples or bananas, both of which are very good.

Sleep well, it helps the body recover.
Agree. After a while I love the mental clarity fasts give me. Like coffee but longer and without being jumpy
No, you're perfectly good with the stainless steel pan, as the sibling comments clarify (essentially: passivation, chrome oxide layer, all good)
As others said: eating less/different, moving more.

Now the question is: How would you reach that goal the best way? This depends very much on why you are eating like you are. What is it for you etc. My grandfather e.g. was a Nazi soldier on the eastern front when he was 16, where he nearly starved — which is why my brothers and me had to eat every last crumb of a plate over half a century later, because this got so hammered into my father, that he passed ot onto his kids. I managed to reflect on this and watch myself from the outside and sort of get rid of that habit. Your history and relationship with eating might be different, but you should also see it as an psychological issue, as much as an health issue — because usually it is.

One thing that you might try is instead of focusing too much on what you are eating, to focus more on what you are buying and when. So instead of going for groceries hungry and buying unhealthy trash and a lot of it, only go to the store when you ate, buy healthier stuff and exactly the amount your body needs. Then at home you have no choice but stick to the plan and make something good out of what you got.

I know, eating is enjoyable, but it can also be enjoyable if a meal doesn't leave you completely stuffed. In fact it might be more enjoyable if you are not.

Come up with a plan, stick with it, at least for a certain predefiend time (as an experiment), then if you feel better, decide how to go ahead
> Private methods only exist to serve public methods.

> So if you are testing all the public methods you are at the same time testing the private methods that get called.

that's nice in theory but in practice if your API looks like

class my_algorithm {
public:
float compute_next_value(float);

private:
void deborgle_fields(...);
void reticulate_splines(...);
void deboor_network_max_span(...);

vector<float> m_tempArray1, m_tempArray2, ...;
vector<complex<double>> m_protoscalarField[3];
};

you'll have a much better time if you can test every part of the algorithm individually, even if these steps are entirely specific to this very algorithm and useless to any other code and must not be mingled with with API users under any circumstance (and thus made private)
> With so many contradictory viewpoints, somebody has to be wrong! But who?

I think it's the opposite, there absolutely doesn't have to be a wrong. Assuming someone must be 'wrong' is not a healthy viewpoint to take.

What we're running into is a limitation in the languages and frameworks we use, and we are assuming that those languages frameworks are right, they are the only way things should be done. That limitation is then being expressed as the various viewpoints that author has listed.

I'm glad the author took the time to enumerate the various viewpoints and I'm sure there are more!
Let me be really clear, everyone should have a doctor. But the concept of an annual checkup, as though there is a process to it and if you haven’t been to the doctor in the last 12 months is something you have to go through, is not part of general medical care. For the average under 30, and even under 40 male, with no family history, you are literally just pissing money away ordering annual vitamin, hormone and at some level lipid levels (although occasional checks are definitely useful).
The ones with miniUSB cables are good, the USB-C, not so much.
That Murphy guy behind "MarathonInvestigation" claims to be objective and about the facts, but his Twitter looks like a doxxing blog. You would think this wouldn't be appealing, but he seems to have quit his day job as a financial analyst in order to run his website. Is this content really that profitable?
> Children used to steal trading cards and have violent fights over them.

This is messed up - is this real or overstated?

> This is perfectly normal child behaviour

Stealing and fighting? Where would this be the case?
I find picking one calorific food and cutting it out, but otherwise eating the same works really well. For example I used to have small bottle of orange juice with lunch, which I cut out and it put my weight on a downward path. It is easier than worrying about the whole of your diet.
Yes, too much focus on AGI.

We don't need AGI or self-driving to make a big leap.

I want drone fleets that can roof a house or 3d print structures. Nanobots to clear arteries and destroy cancer cells. These things will not need to pass the Turing test or even close.
I believe the EU misspoke and that it does not want to interfere with what information is accessible or not.

It is a bit down the page:

> The European Union has told Google to wipe Russian state media organizations RT and Sputnik from search results in Europe as part of its sanctions on the two entities, a sharp escalation in government attempts to shut down Russian propaganda on tech platforms and sparking fresh concerns regarding regulation of free speech.

Document to Google:

https://www.lumendatabase.org/notices/26927483#

Ironically they already admit the flaws themselves.
> better best practices

Really? No, seriously, where will this end? Now we need better BEST practices?

I mean. This "best practices" wagon is just a nonsense. My impression is some people don't want the burden of thinking, so they want something to memorize. And blame when things go wrong - which they inevitably will, as in any and all "crafts" and "professions".

Engineering, medicine, etc, are all full of examples of failures. Is this evidence they should get rid of certifications and all bureaucracy? No.

Is software failures an evidence we should have more bureaucracy? No, it's evidence we need to think more and memorize less.
you could daisy chain them, swapping them in/out
Can't set default arguments with kwargs. See my example at https://news.ycombinator.com/item?id=30623987 .
Lower the temperature of your room and your body will have to burn more calories to compensate. It's not really going to make a significant change to your weight though (and obviously don't be dumb and take this to an extreme and freeze yourself).

Increase your base metabolic rate (i.e. calories your body burns at rest) and you'll lose more weight without doing anything. Weight lifting is the most bang for buck way to significantly improve your metabolic rate without also eating back all the calories in the process (a problem with long aerobic exercise).

Look into a simple bodyweight exercise routine like DDP yoga and just start doing a little bit every day--even as little as 10 mins or so a day/an hour a week will bring significant benefits over a few months.
There are only three deadly incidents to choose from, thankfully, and it happens they were caused by other kinds of (presumably licensed) engineers. Software incidents include a flight computer failure during the landing of Apollo 11. Another incident caused reset of their navigation computer, requiring them to recalibrate it using a tangible sextant. If we go a little beyond literal NASA, it’s not hard to find computer failures. Aside from the infamous 737 Max, we have the loss of a B-2 on takeoff, which costs the same as a space shuttle. (Thankfully the pilots ejected.) Then the famous story of the Patriot missiles’ first deployment. If I actually Google this, will I find no more?
Can recommend these 21 super weird secret "tweaks" from some shaman healer dude that my girlfriends stepdads mother's uncle met at a silent meditation retreat in the Astral mountains.

https://nutritionfacts.org/video/trailer-for-how-not-to-diet...

https://nutritionfacts.org/video/flashback-friday-dr-gregers...

Edit: Joking aside, the weight loss tweaks can also be found in the free "Dr. Greger's Daily Dozen" iPhone or Android app.
Fiber and roughage can help that. The peak of my own weighloss happened when I regularly ate the most basic oat porridge for breakfast. Oats so big my body barely had a chance to get all the nutrients out.
In my chemical engineering work, I have often private routines I want to test. Pardon me, but this is Fortran code, so I cannot have "complex" class structures to allow different level of testing without complicating the code too much and making it unreadable.

The solution is "stupidly simple". I have at my module level a public subroutine with the name "test_module" which performs the tests of all the private subroutines of the module I want to test (these are usually analytical derivative calculations and stuff like that).

Yes, I have test code in my module, but in practice, after 10+ years of using this pattern, nobody had issues with it.
I have it on, but I can only remember one time it warned me, and that was when I knowingly opened a potentially malicious page (after a colleague had clicked a suspicious email). I'm always doubting about turning it off: Google is not your friend. But I'm not even sure how it works. I did read that Apple proxies it on iOS, so I suppose Firefox does expose part of the URL and your IP address.
I never looked in the source code, but had the same feeling about the founders back then.
Ha, thanks. Missed it on mobile.
Nvidia repositions as a software and services company
The real takeaway about mass loss via carbon dioxide is that you're changing how the engine works, and you're unlikely to notice it.

Get a digital scale, weigh every morning after toilet. I find there is a very quick and variable response to the previous days food, which can be quite motivating.
Seeing it up or down half a kilo each day is very noticeable, and informative about what works and what doesn't.

Eat less dense calories, try to move around a little bit, all there is to it. My general rule is:
-2 small meals = weight loss
-1 regular/big + 1 small = maintain
-2 big = weight gain

Once you stop trying to bloat yourself all the time, it starts to feel nuts how frequently you did
That line of reasoning may have been ok 2 decades ago, but the current CPU model isn’t necessarily serial either, anymore.

Sure, you can express nigh everything in C++, but defaults matter — a parallel algorithm may well be in the “worth it to implement” category for Haskell, and be in the “no way that we can make it work” category for some lower level language.

Don’t get me wrong, sure, the memory model of haskell may also not be the best which has probably the biggest performance impact, but I really don’t think that there is as much of a difference between comparable high level languages to haskell, so it can absolutely be a good choice for certain applications.
Learning the language is usually the easy part. It's learning the libraries, tools, and idioms that takes a bit more time.

It's not that hard but a lot of people resist changes. Also, it takes time to get up to speed which means you are temporarily a bit unproductive. It does not combine well with a job where you are supposed to deliver stuff.

I tend to have a few languages that I favor and a few more where I can wing it if needed. Very helpful when consulting. I would never use ruby, python, javascript, php, scala, etc. on my own projects but I have consulted on projects using each of those and managed to add some value.
In instances where I needed to test private methods, the aim was to provide extra feedback to the failure of a higher-level public method/s that by themselves do not provide enough feedback to pinpoint the issue.

It answers the question "what failed?" on a deeper level. Something you'll need to know when the public-method test fails anyway.

It's rarely needed on proper API designs (in general such scenarios can be split into a separately-testable object which is not by itself exposed), but it's not too uncommon in my experience.

In such cases, all the solutions to test private methods pretty much suck.
The button doesn't appear on mobile web. Does fine on desktop which I just checked.

Thanks!
only Firefox let you decide what exact area you want to screenshot tho (not limited to full page)
Eat more, I lost some weight when I realized that I wasn't eating enough.
I’ve been using the beta for both iOS and macOS and tbh it’s just “meh”.

It’s still in beta and as such has quite a few bugs. I’ve drifted back to FF.

Although I gotta say I love Kagi search. I hope there’s a way to use the service TRULY anonymously though, because a paid service requires an auth token. If they provide a hidden service, a useful api, a cli tool, and a way to pay/use anonymously I’ll gladly pay a hefty annual/monthly subscription.
This is so important but even most professional software developers and testers don't seem to understand it. Tests are not supposed to break on every little change to the code, or even sweeping changes in implementation. If they do, they're not very good test.

https://testing.googleblog.com/2013/08/testing-on-toilet-tes...

https://medium.com/expedia-group-tech/test-your-tests-f4e361...
If we're just talking about aerospace at this point, hasn't the F-35 flight software been notoriously buggy
People who are interested in this may also be interested in Cooklang, a simple plain-text markdown format for recipes: https://cooklang.org/ -- doesn't get much easier than that.
As a variant of your logging example, start enumerate at 1 to get the current line numbers:

for line_num, line in enumerate(open("filename.txt"), 1):
if not line.strip():
print(f"Empty line {line_num}.")
The approach JAX takes regarding PRNG for numerical computing is worth a look: https://github.com/google/jax/blob/main/docs/design_notes/pr...
UK electricity is $0.28/kWh but will be $0.36/kWh from the end of the month - my business is quoted at $0.60/kWh fixed for the next 12 months.

At $0.36/kWh - card alone @450W ~running cost ~= RRP 3090 $1,499

Yes, can power it down to be more efficient, however, that effectively agrees with the previous comment that PPW matters.
I said this on Reddit but I think it's pretty clear that the "test private methods sometimes" view is correct. Some public APIs make it infeasible to test the code using just the public API, but if you can do that then it's clearly preferable because you won't have to rewrite tests when the implementation changes.

This is a nice overview of the viewpoints anyway.
I actually think if we could have worm-level AI that’d already be pretty amazing in itself, even if the next level requires more than just scaling.

Also, I wonder if sometimes people may be talking past each other in this debate. For example, I’m pretty sure (someone like) Yann LeCun considers worm-level AI already an ambitious and worthy goal per se. So would it be a relevant criticism to remind him (correctly) that human-level AI may require symbols?

(For what it’s worth, I agree with Gary Marcus and disagree with DL maximalists, while also believing what DL has achieved is nothing short of amazing. Just saying people may have different goals but call it AI nevertheless.)
Used to take me months, takes me days now. What's driving the assumption that it's hard?
It’s been a while since I worked with Haskell. What’s the issue with Strings, I’m guessing it must be Unicode-related?
Excellent idea.

Somebody with tech skills should set up a service of this kind: Buy a (limited, no porn etc) VPN connection for somebody in Russia.
Falling in love makes you eat less. Also bad heartbreak, lost 3kg in a week last time.
No not exactly.

They were both amateurs in many ways compared to the Norwegians.

Shackleton was a great leader, and managed to survive despite of his failures. But he failed in 3 distinctive ways in the same way as Scott.

* Not understanding the importance of raw meat as a treatment for scurvy

* Not understanding that skis are better than snow shoes

* Not understanding how to use dogs, preferring to man-haul their sleds

Analogously - It is not the failed project that is heroically saved in last minute by a hacker hero that is the best execution. It is the project that delivers on time without anyone noticing any problems.
8 hour feeding window, with only water outside of that.

Drop all processed foods.

Cut out all carbs.

Pick one of these, use it until you plateau, then add another one until you're doing all 3.
"If it tastes good spit it out" - Charles Barkley
This is also the recommended way of structuring things in Rust. It works pretty nicely.
Credentials Leaks on VirusTotal
On chewing gum. Buy them in bulk. Sugarless obviously. Start with half mouthful of gums. Keep chewing. When the flavour runs out don’t spit out the gum add another one to freshen up the stack. Give your jaw a real workout.
+1, as other user wrote, this is the only correct answer, including reading, learning and applying details like what to eat and what to not eat.
> despite Mac's famed usability a hotkey and then filter is too "hacker" to be "the Mac way". The Mac way is one click to get to things, even if that click generates dozens of possible things to get to. Filtering, completion, etc feel like a Linux accent on Mac

The ubiquity of spotlight (for example, the global CMD-space hotkey) throughout Mac OS would seem to belie that view
>
5. Loot boxes are often purchased through currency systems made to separate the buyers understanding of how much they are paying. This is why games often make you buy some currency and then use that currency to buy loot boxes, with some games have layers of currency in between. Compare this to TCG boosters which are sold in stores for specific dollar amounts. This make loot boxes worse.

Converting between currencies is easy "rule of three" - you learn that very early in school. Also, before the introduction of the Euro (and for some border frontiers in Europe even after), children who lived near borders of neighboring countries very often had to become accustomed to two (multiple) currencies from very early on and better were able to convert them in their heads.

> 7. Loot boxes are often built into games on ones phone and use tactics to encourage worse spending habits. This make loot boxes worse.

Encourage bad spending habits: sounds like classical advertising.
There is no magic: your body needs to burn more than what you eat. I think those advices are fairly "easy" to implement:

- eat less - intermittent fasting is easy: just skip 1 meal, everyday, make sure to have 16hours fast. For me 1 skip breakfast.

- drink water, coffee, tea when you want to eat during the fasting time , or want to snack. If you really need to snack, eat nuts.

- stop any soda and fruit juice - they have so much calorie and sugar into it... drink water, tea or coffee instead.

- workout / do any sport, at least 3 times a week, at least 1 hour session each.

- you gym needs to be at 5 minutes reach so you can't make any excuses.

- gym can be boring, try a new sport you can stick with. I usually do volleyball and go to gym, but willing to go to hikes or bouldering with friends from time to time.
A visual introduction to machine learning (2015)
Then perhaps the best practices shouldn't be rules for rote memorization, but better approaches towards thinking and reasoning about code. Maybe this field could use more discipline in how it approaches not just creating code but reading code. What is the use of thinking if it's not guided by methodology? Didn't many of us study computer science?