skysight-inc/HackerNews huggingface dataset:
A reason not mentioned is that testing public methods only is more black box testing. It's important to do this not just to allow significant changes to the implementation without affecting the test, but also because if you tie testing too much to your implementation you may miss holes in your interpretation of the requirements/interface that are better caught in a black box test.

If you want coverage then private method testing is giving you fake or inferior coverage. Those hard to reach paths are only truly tested via the public interface (i.e. called by the function that will call them in practice, not your contrived test function).
Go live in Europe. Start with a 1-month exchange program in a French family (although I don’t think this is possible for adults). US foods are full of sugar: bread, prepared dishes, I bet even water has added sugar…
We're hiring for Ruby/Rails. We're also hiring JS. I've used Ruby/Rails my entire career and don't plan on switching. Pay seems good. Definitely more JS jobs of course but I'm happy with what I'm doing and making. I bet you can pick it up in no time.
> Actively opposing programs designed to counteract racism, is supporting racism, you do realise that?

Your accusation is weak. I disagree and I think a lot of programs are racist and should be opposed on that merit. I am not talking about outreach programs here. There are much more relevant factors why specifically black women might be underrepresented. If I generalize that to women, the reason is sexism. I don't believe in these simple explanations and much more importantly I believe these facts do not allow for anyone to be discriminated, which has to be said specifically also extends to white people.
As probably the only person here who actually did make autonomous
remote heart surgery code (Ada), very early in my career as a novice,
I disagree with the idea of licensing _programmers_.

What is needed is licenses for those who _deploy_ software in critical
applications. They should be audited to hell and back and face
catastrophic liability for failure.

We already are moving there, creating a small number of well paid,
highly skilled senior positions who have 40+ years in software and
full ISO9000/27000. It's a chartered quality assurance role that
overlaps cyber-security/safety and resilience engineering.

And we must remember, that despite construction work being regulated
to the hilt, we still got the "cladding scandal" and Grenfell Tower
fire in the UK. Software "safety inspection", where appropriate, must
also be a thing.
I dunno, I just had a weird incident happen last week where a family member of mine received a ton of cyber bullying on Twitter because she’s an actress and has an unusual surname. When I reported stuff Twitter said it wasn’t against their policies.
Vim Twitch Line Sign
I'm not sure if I picked it up from a documentary or book, but worth noting that the photographer Frank Hurley dived into the ice water and chopped through a wood wall to rescue the glass plate negatives from the sinking ship. I'm not sure what the best source for this is, but it's at least mentioned in [0]

[0] https://www.pbs.org/wgbh/nova/shackletonexped/images.html
Yeah, so why does the US have to be involved? The countries could co-operate on their own?
I don't know what the jailbreaking scene looks like now but it was amazing almost a decade ago. It's probably worth a try.
They provided a tutorial video [1] in the post.

I tried watching but didn't go past 90 seconds. Too verbose, TBH...

[1] https://www.youtube.com/watch?v=H7fv17HSYrc
This has gotten better in the UK. I give blood regularly and the questionnaire now makes a distinction for monogamous homosexual relationships. It doesn’t impact me so I’m not sure if there’s some other hurdle to cross but I thought it was a good sign.
Skip breakfast
Although a little bit polemic I like the article. I wrote a comment a few days ago that kind of hit the same note.

Almost all developers I know can make things work. They get the job done and thats fine. Like some people here wrote, for many applications thats enough. But already one "level" higher, density gets way lower. I only have my subjective feelings but as far as I can tell, developers who not only get things done but have a okayish code quality and an acceptable test coverage are so much more rare. True software master craftsman are almost not existing.

I guess our view of the software industry here is a bit distorted. Naturally people who are active here (or on other sites) dont represent the big mass of software developers. The top people in our software industry can keep it up with the top people of other industries (at least I hope and think so) but the entry and average level is not on the same level as the entry or average level in other industries. Thats where good and structured qualification paths can help.
My weird tip is change your habbits forever. Eat less, eat better, your new friends are your sportfriends, going out means no more bars but nature and biking, dont smoke and dont drink. That is the magic ...
Russia to Disconnect from Global Internet
I think this is the right summary:

https://arstechnica.com/science/2016/02/the-audacious-rescue...

Basically yeah, it could have been done, but only by pulling out one of the other shuttles out of active maintanance, skipping a whole bunch of repairs and necessary checks, launching in record time, and actually managing a situation where there are two shuttles in orbit, something NASA wasn't exactly prepared for at the time.

And the biggest question of all - what if the second shuttle becomes damaged in the exact same way on the way up?

That's not to say that NASA shouldn't have at least attempted a rescue. Knowing anything about the way US approaches situations like this, it would have been a "no expenses spared" effort and they would at least try. But unfortunately it's extremely likely that the second shuttle would have also been lost on the way, with crucial maintenance and checks skipped just to make it space worthy in time.
With a few exceptions large numbers of languages are more similar than different. When working on something in a new or unfamiliar language I usually find my difficulty is less the language itself than the (much larger) ecosystem around it. Usually it's the build and dependency management systems which end up being the biggest blocker. For newer languages lack of a mature third party library ecosystem.

Rust is an interesting example here. The borrow checker was a completely new concept to me and is definitely a challenge. But the build system is far easier to work with than the many alternatives for C/C++ so I end up having an easier time writing Rust than C or C++ despite my previous college experience with those.
Hmmm, this argument would hold more weight if offshoring for cheap labor was not eerily like modern slavery. This is exactly what happens now - the West has laws, and corporations go abroad to ignore them and absolve responsibility, while lobbying for and supporting the lack of human rights.
Definitely more than you? Stupid questions get stupid answers.

By the way, when China used to have disasters, international communities use to donate 10x that amount. Some food for thought.
♔ Play chess ♔

https://premierchess.com/uncategorized/how-chess-players-can...
I've found that laying off carbs (Atkins, keto, etc.) gets rid of the growling and hunger pains entirely. On a carb-restricted diet you eat because you want to, not because your stomach is craving for food.
https://youtu.be/iJHnvGIj09A
>>> 1 is 1
True
>>> 999999 is 99999
False

"is" is a pretty special operation in python. The only thing it can be reliably used for is to check if two things refer to the exact same object. Retrieving the same value twice has no guarantees about returning the same object twice.

"is" causes so much confusion I'm not sure if it should've been a part of the language in the first place. It can always be substituted with the more explicit

id(a)==id(b)
Bytebase: Database schema change and version control tool
Nothing weird, just no snacking and avoid sugar.

I retired a year ago and decided to try and get into shape. And I wanted it to be a permanent life style change that I hopefully can stick to for a decade or two and also it shouldn't feel like I am depriving myself anything:

- Run for 30 minutes every second day.

- Eat fruit for breakfast. A banana and some berries.

- Lunch and dinner what ever I want. I often eat white bread, pasta, meat or fastfood. Just be mindful of portion sizes and if fastfood, skip any fries and icecream.

- No snacks in the evening. This was probably where I used to get most excess calories.

One year in I have lost 20kg and I am pretty much in the shape I was when I was a teenager. I can definitely keep this going, I don't really think about it anymore.
I didn't mind the result when I would actually build things but getting to that result in Godot was utterly obtuse.
This article beats around the bush but never explains why Onion addresses solve these issues.

From Wikipedia:

> Addresses in the onion TLD are […] automatically generated based on a public key when an onion service is configured.

> 256-bit ed25519 public key along with a version number and a checksum of the key and version number

That's all you need to know.
A lot of hay gets made about The Obesity Code wherein the author claims that "calories in calories out" doesn't work.

Obviously he's trying to sell books but the nugget of truth is that if you operate at a significant caloric deficit your body goes into "starvation mode" for lack of a better term.

The result is that eventually your base metabolic rate also decreases which means you need to cut calories even further.

For people who are significantly obese to begin with this can be unsustainable, and the author of The Obesity Code talks at length about how glucose levels respond to diet and eating patterns and play a significant role in fat metabolism.
I received a warning messages from Google a couple of days ago.
GMail is no longer supporting password-based login or special privileges for third-party apps. If your email client wants to access your GMail account, it must support OAuth2, so that it can use Google's own authentication service. For example, Mozilla Thunderbird works just fine (I tested it); I read that the latest versions of MS Outlook are also fine.
For me, this is a high motivation to get rid of my GMail accounts, and move to some real, privacy-friendly email provider.
Some equations can be incredibly simple, and explained as a part of text. I'm sure Cormac McCarthy is speaking about some abstract proof that would jolt the reader no matter what. But "Writing quality is a product of clarity and simplicity, (q = c*s)" doesn't have to be the high crime McCarthy claims.
Not really weird tips, but these two "meta" dieting tips worked for me.

(1) fast. Doesn't have to be harsh (I do the 500 calories method) or often. However, I found that it helps reset my gut. If I'm in a phase where my stomachs churns, farts and I'm constantly trying to calm it with food (especially carbs), a short fast resets me somewhat. It also breaks up habits.

The side effect of fasting has been better body understanding and food related psyche. I can tell the difference between actual hunger and belly messages. I instinctively know that certain hunger feelings will pass in an hour or too. That I don't actually have to eat every few hours.

(2) is basic calorie, glycemic and macro awareness. Counting is (imo) too much and unsustainable. But, some counting sometimes helps you pick up an intuitive understanding of your diet and hunger. Where are you getting your calories. Why are you hungry? Did you eat a 250 calorie, carb based lunch?

For example, I've seen a lot of weight conscious friends plate <200 calorie meals. It's true that these are healthy, but unless your on a pretty strict short term diet... your going to make those calories up elsewhere. People unknowingly fall into patterns where most of their calories come from snacks, because meals are calorie poor.
>Bodybuilding.com misc & 4chan are super toxic communities.

They're places that provide access to actual human beings though. So many other online communities - especially ones with wide readership - are astroturfed into oblivion.

My take on it is that having to deal mentally with lunatics howling at the moon and screaming about the upcoming Great Replacement is the price you pay for access to actual opinions. That screaming horde is what keeps the astroturfers and consent manufacturers out.
> Companies would just offshore all work to somewhere with lesser requirements.

That didn't work out so great for Boeing.
Eat more fat and absolutely no sugar.
Do you literally mean FizzBuzz or is that a stand-in for tricky leetcode puzzles? The latter seems to be a thing that selects for people who like puzzles. I’m in that camp but I don’t think it’s a super important area of interest.
How could a warrant canary work when you don't know which exit node you will connect to?
@baybal2

Your comment is dead.

It's US publication, they're not blackmailing themself unless drive for strategic clarity. But not compelling deterrence. Response in TW media to report was leave TSMC alone. Nothing official I've read suggest blowing up fabs for US protection since US protection is for those fabs. Like I don't doubt TW will play blackmail card if viable, but US can't slap enough free missile defense to make TW semi supply chain defendable.

On point two, perhaps. In the meantime, I assume it will take decades to reshore supply chains independent of TW making for some uneasy peace. I'll be stocking up on hardware.

E: Shame, a lot of your comments are dead actually.
> anyone can build a suicide vest or IED. it's much harder to attribute than a nuke.

One of the apartment bombings used RDX, a tightly controlled explosive only made in one factory in Russia. Compare this to the Oklahoma City bombing in the US. It used ANFO, an explosive made from ingredients commonly found on farms.

You couldn't blame a random terrorist, but you can point to the mushroom cloud and say "NATO did it" pretty convincingly on Russian state TV.
I've been trying Orion these days. It's pretty awesome although there are some rough edges. The most annoying quirk is using my Airpods Pro with Google Meet, for some reason the mic input does not always get recognized (. This behaviour also happens from time to time in Safari so this may be not an Orion issue.

Looking at the orionfeedback.org, I'd say that their most important challenge now is deciding what not to do.
Anyone who has actually fasted knows this is all nonsense. Sure, you can lose muscle mass — that's always true of going into a caloric deficit, which is the only way to lose weight.
Is this $60 disposal sustainable?

I mean, if we're concerned about using a renewable energy source, shouldn't we be concerned that its materials are also renewable?

How much does it cost to renew that $4000/kg solar panel so that it can continue to be used?

I bet renewing will cost more than $4000/kg. If that's true, we're taking a 50-75% discount on the expense of future generations, as I said. Solar is more expensive than we are lead to think it is. This should be accounted in decision and policy making.

Just my person opinion.
Crazy ideas? Don’t eat and drink anything other than water for 48 hours. Not for the weight loss benefits, but for learning what actual hunger feels like. What you think is hunger is most likely just cravings.

Then work on your diet until you no longer get those cravings and can decide when and what to eat instead of being driven by impulse
Blanks in the slides are filled during the lecture with the students. With this solution, students don't have to copy the notes while trying to listen.
I know this is possible for organizations in the US, but for private persons too?
Yes, specifically, highly concentrated oxygen can burn out the lungs and the retinas.

https://en.m.wikipedia.org/wiki/Oxygen_toxicity
If a person is otherwise healthy, no. Or at least, there is no medical indication to do so. But a person with pre diabetes is not generally otherwise healthy. T2DM is not a condition of a healthy person, it is a lifestyle disease caused by lack of exercise, poor diet and obesity. This person should see a doctor, but they’re not a healthy person. They should be aiming to exercise and reduce body mass.
Draconian, "excessively harsh and severe."

Where I live, the pediatric psychiatry clinics are still badly overloaded due to children who coped and then, when school and social activities were harshly constrained, didn't cope. I had the impression that NZ's lockdowns, such as they were, avoided that kind of severity.
My take is that Django is stronger for websites: leaning slighly more towards a selfbuilt CMS. Whereas Rails is stronger for webapps. With a large overlap, and only slightly so.

But that both lack severely for complex business flows, -logic and integrations. Both are strong for CRUD cases, with accidental workflows attached to those operations. But that both lack tooling, and have the wrong architecture, to support complex, intermingled, businesslogic over time.
Yeah Letsrun forum is really infamous in the running communities. The main reason for it that anonymous comments are allowed.
Why would you leave bugs in the code?

The reason is simple - there isn't enough time in the day to both push out the required features and fix all the bugs. We prioritize features because that's what we believe increases our value. Whether or not that's actually true is a matter of opinion.

Our predecessors were expected to write code more slowly. They could take a year to make a small business app that a dev is expected to push out in 4 weeks now. And all credit to today's devs, we hit those deadlines. We achieve amazing things in very little time. But in our push to be as productive as possible we have largely forgotten that the most fundamental skill in software development - thinking about how to solve a problem well - hasn't changed at all.

We believe that using a new framework, or buying a faster computer, or typing on a different keyboard, will make us faster, more productive developers, and in our effort to compress the amount of time it takes to build something we have also compressed the amount of time we spend thinking about it. That's why we leave bugs in code.
If you're looking for weird options it's because you're trying to avoid the hard work of actually changing your life. But there is no substitute for learning and practicing discipline.
The price to stop a madman with nukes and drunk with power increases with time and appeasements. You may hope that sacrificing people and countries now to his insane desires will buy the rest of the world time, but in reality that time will be used in the dictator's favor since he is the one with a terrible purpose: getting to you.

The price to stop Putin in 2014 would've been a local war with NATO losses. The price to stop him now is to risk walking the nuclear line. The price to stop him in another 10 years will be guaranteed nuclear war.
You can already see the effect of regulation on ISO certified enterprise software. It's software which is bought generally by big companies which are themselves certified, so if there's a problem there's somebody to push the blame onto. To put it lightly, it's expensive and it's shit.

I'd be against setting any sort of guideline currently. IT is still too immature and everything is still changing too fast. To make one easy example, setting guidelines for testing would just result in worthless unit tests.

I'd be more favorable to some FAA/EASA style of institution where we evaluate a company/project/people based on its incident-response track record. And even then, I still see too many recipes for abuse.
Don’t eat sugar. Remove simple carbs. Altogether. This is all you need for a big kick off. Observe the scale. Good luck
Unless you're a competitive weightlifter or similar, you're unlikely to see significant enough muscle loss with very significant calorie restriction over the kind of time frames people would stick to very strict diets like that for it to matter much.

I wouldn't do it every day, but mostly because I find it too hard, but I do currently aim for ~600 kcal 4-5 days a week to drop down. I do it in multiple small meals, but I've also done intermittent fasting with narrow feeding windows. On the remaining days, I eat normally - I don't binge.

It'd likely have more of a negative effect on my muscle mass if I did it every day, but if I did, I'd also reach my target weight far faster, so even if I'd had to spend time bulking up again later I'd have done that if I was able to stick to it, but I know from experience I'm not.

I also power lift (not competitively), and I've had steady progress while doing that, with the caveat I'm not at my peak - I wouldn't expect to progress with this diet if I was. But most people are so far off hitting limitations caused by food intake in their exercise it matters for quite few people.

People should keep up resistance exercise while on diets to reduce muscle loss.

It's not sustainable over long periods of time in that sooner or later you get to an inflection point where it impedes your progress, but it works when your body fat percentage is high, and for most people looking to lose weight it's simply not what they should be worrying much about.

That you accumulated fat with what you think was a net daily deficit sounds to me like it wasn't a net daily deficit. Intermittent fasting works, and limiting yourself to a single daily meal is not nearly long enough fasting periods to mess much with body composition. But it may have messed with your activity levels. It takes little change in e.g. dozing off on the couch rather than walking around to have an effect.

People are mostly more sedentary than they think and burn fewer calories than they think. When I was at my peak, exercising every day and lifting heavily 3 times a week, to maintain my weight I needed to keep my intake around 1800kcal because my life outside of that was not very active. I'm 185cm, and at the time I was about 93kg, with body fat around 15%.

Someone with a more active life outside of the gym might burn more. Many burn less. Kcal guidelines for adults have remained static for way too long with declining levels of physical activity, and people really should count calories for a few weeks and adjust their intake and figure out how little they actually burn...
I've edited my comment to reflect that the first step is visiting a nutritionist. I'm not an expert, and this worked for me under the supervision of a professional. I never starved myself, and I stopped at around 75Kg.
Hydro / Pumped-hydro
> You mean like leet code, white bording and take home tests? Except that instead of being standardized/credentialized, every company has a different variation you need to study or do unpaid work, for every interview.

We don't test our accounting candidates on advanced accounting theories. We just trust the certification and the experience on their resume.

But we ask our developer candidates with take home tests. I wonder why. /s
We have no idea how to even hire people. Think of all the tests, schemes and exercises we come up with and argue about in the context of hiring.

Now imagine some busybody picks one and mandates it, legally, across the entire industry.

What a nuisance. Shoo!
If you are running an onion service but don't need to hide the server IP, like you do if you also provide clearnet access to the same server, you should enable single hop mode [0] to reduce the load on the Tor network and also speed up the connections. This way your server directly connects the introduction and rendezvous points while the client still stays anonymous with a 3 hop circuit.

[0]: Search for HiddenServiceSingleHopMode on https://2019.www.torproject.org/docs/tor-manual.html.en or just use the following config options

SOCKSPort 0

HiddenServiceNonAnonymousMode 1

HiddenServiceSingleHopMode 1