skysight-inc/HackerNews huggingface dataset:
> My personal preference is actually something like Python's "with" or C#'s "using", since they rely on "destructors" rather than explicit calls to close. But they have the exact same issue as simple defer. If you ever need to store or return the thing, you need to handle it manually instead.

Python's "with" doesn't. That is to say, when the with-block closes, it doesn't call any kind of destructor against the variable. It calls the __exit__ method, but it still leaves the variable in-scope. And if the __exit__ method tries to call an actual destructor against the variable, you'll hit a double-free bug when the GC runs later.

You can safely return to the variable after storing it, and do anything it supports after-closing. Including returning the variable.

def retIOWrapper(x):
with open(x) as f:
pass
assert(f.closed == True)
return f

Python's with isn't introducing a scope lifetime.
Hopefully this sentiment doesn’t kill us all.
Which magic button?
G Docs is fine but very basic. Great for sharing and collaboration, not great for exercising precise control over the document.
> Good employees find ways to collaborate no matter what.

The majority are not good employees.

Good employees can collaborate well with LaTeX as well. Yet over 99% of workplaces will not use LaTeX.
"Sure, but the ancients didn't have smart phones, so how much could they know?"--unstated consensus.

Personal contention: humans nature is roughly constant over time. The technology provides a veneer of improvement.
The thing is, you can trivially implement a form of defer with RAII. Where I work we have a decades old C++ macro called ON_BLOCK_EXIT that people use to clean up C-style things that don't have a destructor. Today it's much better with C++ having lambdas.

It won't be "function-scoped" like Go, but (IMO) that's fairly useless feature if you have destructors anyways (you could just collect everything in a vector at function-scope, if you really want that behavior).
When Is a Storyboard Good Enough?
Which certainly reinforces the notion that Bitcoin is not a good "hedge" that is often claimed by bitcoin maxis.

Digital gold my butt.
You again didn't answer my question. How much storage should we have?

Reliability and not relying on other countries are extremely important issues. They are widely held as important issues by many people. I would rather pay more to not rely on another country and to ensure we can have consistent production.

There can be embargo on countries. What happens to Russia in this situation? Maybe they can get power from China, but maybe not. They will have thousands of people freeze to death without power.
Probably best to disclose you're pitching your own baby to us.

What do you feel this content adds in context of the article? I can't tell.
You should watch this: https://www.youtube.com/watch?v=aMcJ1Jvtef0

...if you haven't.
It's great. When I'm in a file in PyCharm or IntelliJ, I use ⌥⌘x (custom keymapping for select branch to compare) to select a branch to compare to and the diff is great.
> That complaint by the telcos is what convinced me to turn it on

To be fair to telcos, (who totally don't deserve it), the original argument they made is that if all phone traffic gets routed to a relay endpoint, and not its real destination, it reduces their ability to network plan and add capacity to the routes that are actually in use.

Hearing this argument means they didn't get what they want and wanted to pull in the antitrust argument, and tipped more of their hands.
Just wanted to thank you again for all the valuable information. It’s certainly food for thought during a couple of coffee breaks!
I’ve been looking for low power cyberdeck designs and haven’t found anything. Where are the Alphasmart, eMate, Psion 5, or Model 100 descendants that run for weeks on AA batteries?
Here’s a more mechanical variation of Maxwells Demon: https://en.m.wikipedia.org/wiki/Brownian_ratchet
I don’t recall a single peep of protest of unfair confinement of Americans in the 2014 Ebola cases in the US.

https://en.m.wikipedia.org/wiki/Ebola_virus_cases_in_the_Uni...

If anything, I recall hearing calls for greater restrictions on the cases and close contacts rather than more lax treatment.

That leads me to conclude that people are capable to calibrate their support for restrictions based on some combination of virulence and transmissibility of a disease. Ebola is far more virulent than SARS-CoV2 but less transmissible, so perhaps people have a different level of concern for each of the factors than others would wish.

(It sucks that this matters to some in the discussion, but I’m double-vax’d plus boosted and went out of my way to get each of those shots literally within two days of my first moment of eligibility.)
I dunno, is it a CEO's duty to conceal certain company factors that could have a negative influence on the shareholders?

In other words, is it OK to straight up lie to fulfill the fiduciary duty?

If the answer is yes, then the CEO is less believable.
Given how hard it is for humans to effectively communicate, im not sure we are so close. In essence, the hard part of most software is giving users something they want which is also correct.
You may be able to buy a laptop with no OS and know what to do, but do the majority of people? It’s not evil; it’s just what’s required if you want to sell computers.
Wikipedia printed in the most compact form could be a really useful book. Obviously it can't have everything, but I wonder what such a book could look like.
Thank you for this, this is the best thing ever.
Never go by metrics. Even if those metrics perfectly align with the business and they rarely do. What you end up with is people working on themselves. It's about maximizing their metrics. Teamwork is hostile toward metrics, afterall you're looking to promote/fire individuals.

Billed the most hours, did the most sales? You aren't incentivized to give any work to your team. You hoard as much as possible. In fact, in MSP land, you incentivize not writing notes or documentation and keep all your stuff in a passworded one note just for you. That work gets prioritized to you because you are the only one who can do the work.

What happens is that the metrics look great for the jerks. Top performers who aren't team players will be the top because they arent wasting potential metric time on helping a coworker. You will promote those people and this will be seen. This will and does cause toxicity in the workplace.

Flipside, how do you decide when to fire someone? If you dont fire a low performer, you are telling the whole team they too can be low performers without punishment.

You still cant do it by metrics. A really good example I experienced. Coworker had saved up 2-3 weeks vacation and did a food tour of italy. When he got back to work there was a metrics meeting and he got publicly chastised for having really bad metrics in the last month. He was beyond pissed off for obvious reason.

Or how about my end of year performance review? I was billing out 50+ hours/week. I was quite commonly available to people afterhours and on weekend to help. I didn't get a raise and was chastised because I was late to work 40+ times. Flipside, I was never late to work, I was often one of the first people into the office. So I demanded to know how or when I was late. I worked 8-5 m-f.

If I clocked in after 8am on a saturday or sunday to help with an emergency. I got listed as late to work. So I worked somewhere between 20 and 40 weekends.

So it wasn't so much the lack of a raise. It was that I was going above and beyond being available to work on the weekends and I was being punished for this.

Metrics are so toxic.
I don't see why you need an accurate clock on both ends, you simply need a precise clock on one end (which can be the car): do a challenge/response where the car sends the key a question and requires the answer back within the very short period of time. The key in that case doesn't need a clock at all.
I just recently tried to revive my Acer Aspire with Debian, after many years of just sitting on the shelf. It installed and runs, but it's not the same. I loved having it originally. Highly portable, I could sit it on my lap on an airplane, and not worry about not having enough space!
There are startling similarities with river-oriented programming: http://xeny.net/HOtMEfSPRIbNG
You just actually quit if they refuse your hard 'no'. I was asked to be a team lead and turned it down as I know it's not right for me. I left my last company after they asked me to do a project in a similar way to an already disastrous one I was on previously. I said no, and left when it was clear that was the way they wanted the project done.
Ask HN: I'm in a bad situation and desperately need advice
Apologies for the ambiguous title, I wasn't sure how to condense it properly. I'm being blackmailed by a girl I met online a few weeks ago. We exchanged photos and she initially blackmailed me for a little over $2k. I thought that was it, but she just reached out again and I tried ignoring her but it made her upset and she demanded more money. I sent her my remaining ~$200 and told her that's all I had, but she's still threatening to send compromising photos to my employer.

I very recently moved to a new state, by myself, for this job. No safety net, no network, no ability to move back. I'm relatively Jr. so getting a new job quickly is still challenging. Assuming she did send those photos and I got fired tomorrow, my next paycheck may cover the rest of this month - but not next month at all. I just recently had an emergency expense that drained my savings and I'm in a bad situation financially.

I'm unsure if I should file a police report or tell my employer. I don't know for certain if she will or will not actually expose those photos, but if I file a report then once she found out her last act certainly would be to send them out. I also fear that being a new employee, the company may not want me due to the PR risks associated with even the possibility of this happening, so telling them before the events unfold could be self-sabotaging should they not unfold at all.

What should I do? I'm an anxious mess right now. If I do need a new job, are there any ways in which I can accelerate the job search process? I've worked fast food and retail before, and will again as a stop gap measure if necessary, but I'd prefer to hop straight into another dev job if possible. I know the common sentiment is that the market is hot right now, and perhaps it is but I still found that before this current job I got many denied applications and the few companies that did respond typically took weeks to do so. I can't afford to wait that long this time.

Any advice is welcome. Apologies for the lack of details, I'm trying to limit anything that IRL acquaintances could use to identify me.
CRISPR Now Possible in Cockroaches
It makes sense. When we were forced to adapt to remote-everything, we discovered a lot of goods and services that we may not have found otherwise. Remote-first became normalized. But now with restrictions gone, many things are going back to the way they were. A few things are sticking though, like a remote-first culture in tech, because we now see the overwhelming benefits, regardless of lockdown restrictions.
> He got an excuse to sell lots of Tesla stock at a price 40% higher than today.

Ironically, Twitter deal plus related announcements hammered the stock more than the overall market downturn. Besides that, I believe no one wants this deal to go through including US government. Earlier, The board could not legally decline the deal
We should have as much storage as we need. How much do we have now?

Even Russia gets plenty of sunshine and wind. And if they stop invading other countries, they will not even be embargoed.
Is there a good alternative to google photo?
Your hands will get very very cold with anything like this setup.

If you're gonna do this, build something that lets you keep your hands below your chest. It's also well worth learning to use a split keyboard.
It’ll be interesting to see if this ends up being a real indication that the NSA and similar organizations (FBI, CIA, etc) are pushing for a stop to back doors in the next generation of encryption standards coming out of NIST.
> Not true. As a quick example, the destructor might try to take some statistics, which might not be safe in an interrupt context, or when a thread is (internally) in an intermediate state.

Which is a problem you also have in C. If someone is going and adding, say, lock duration statistics they aren't auditing all the C call sites just like they wouldn't be doing that with C++ destructors. Which you can search for, fwiw. You seem to be under an incorrect assumption that you can't find those usages. You can.

> There might also be multiple ways to get rid of the type.

This is not incompatible with RIAA. See for example unique_ptr's optional destructor.

Of course, you're always free to just not use RIAA in those specific contexts.
> it is not a pleasant tool for larger/complex setups.

I'd say it still is. People forget you can code your own modules in whatever language you want and just expose a nice declarative interface through Ansible.
> If I look at the horrible experience, which is Google docs or MS Office 365, especially their word processing parts, they lack behind soooo much compared to a tool like Libreoffice. You cannot even properly use styles…

As a reasonably serious user of Office 365 and someone who's desperately wanted to like LibreOffice, I'm not sure what you could mean by "properly use styles". I'm guessing this is specifically a critique of the Word web app, but the native Office apps also do "online, live collaboration", and it all generally just works. Even Apple's overlooked suite feels more mature (and offers a dramatically better user experience) than LibreOffice.
Congress to Hold Its First Hearing on UFOs in More Than 50 Years
I'm kinda the same, but chose Kotlin over Groovy. Especially with IDE hotkeys and smart refactoring a, I'm as fast as in Python Jupyter, if not faster.
It kind of does address those points:

'In curtailing private tutoring, the government seemed to have multiple goals: rein in unchecked capital in the educational system, relieve pressure on overworked students and parents, address the sluggish birth rate (under a premise that less money spent on tutoring would mean a greater incentive to have babies), and impose greater ideological control on students in general.'

and

' In this new era, the government’s ideal young graduates aren’t joining hedge funds, flipping properties, or listing metaverse-related startups; they work in what Wang calls “the physical world” and proceed to “make babies, make steel, and make semiconductors.”'
File a police report for sure - pretty sure your employer wouldn't fire you for being a blackmail victim either. Sorry, sounds stressful to say the least. I am not a lawyer.

Also if you exchanged photos that behavior can go both ways.
Doesn't section 230 absolve youtube of legal liabilities? As long it's eventually taken down after being reported, there's no real incentive for youtube or its engineers to be proactive.
So no reason that driverless cars can't be misused lots of other ways, by everyone. Sending bombs, civilians spying on government and police, anyone spying on anyone, stalking, sale of illicit items, and more I'm sure. The real problem is the cameras, not the cars. Anyone can put a camera anywhere and make it mobile by attaching it to anything mobile.

An automated camera detector (which looks for light reflection off a camera lens) would be useful as a cheap, easily available tool. You can get cheap manual ones on eBay. An augmented reality one should be possible to build as a cell phone app. Maybe one exists already? Yes, they do:

https://play.google.com/store/apps/details?id=com.hiddencamd...

https://play.google.com/store/apps/details?id=com.wondertech...

https://apps.apple.com/us/app/hidden-camera-detector/id53288...

https://apps.apple.com/us/app/spycam-detector/id1507203634

Easy to dedicate a cheap phone to detect cameras everywhere.

The other issue is who gets to decide what the police can do? This comes up over and over, where the police see there is nothing preventing them from doing something so they do it, regardless of whether it is a good idea for society and with no oversight. We don't just need laws regulating what the police (and CIA and NSA, and DHS, President, Senate, House, town officials, etc.) do _after_ they do something bad, we need live, real time oversight of decision making by someone independent and representing society. Not elected officials, but real representatives drawn from the people at large who go in and watch what goes on. This should be part of any public job and a civic duty for everyone, just like jury duty.
The workforce size in CA is 18M.

1 in 18 workers in CA serve alcohol? How?
Sorry your use case isn't being met, but it's hardly the point of inkscape to become a saas. The typical use is, "I need to draw something on my PC."
New US lab to create versions of atoms never recorded on Earth
I have a lot of respect for Inkscape (the fact of its existence and ongoing development). I used it to make the main logo/home link on my personal site and for some freelance work, partly because I wanted to see how it had progressed, partly because I was between jobs and found it unreasonable to budget a commercial tool license.

I’ll be … gentle in my criticism but, I found Inkscape hard to use. I eventually found my way to do what I needed to do. But it was like relearning Adobe tools with subtly different confusions almost every step of the way. If I recall, it’s structurally very close to 1:1 with the SVG output. Which might be what users want! It might even produce better SVGs. But I found myself thinking “can I bail out to the text editor like I’m using an HTML WYSIWYG?” fairly often.

I’m sure if I used it more and got more familiar I’d know or develop instincts for where to look for … everything. But if Inkscape devs are here and want (I promise, this is intended as constructive) feedback, the learning curve was pretty steep for me.
And in Visual Studio (full, not code) you have an amazing IDE that is an incredible help when writing the code.
The obvious implication is "it was at no cost beyond what I was already paying for".
I didn't write this demo (Joseph Huckaby did), but I wrote the original version that the demo is based on, and I wrote the new mobile version: https://pixfabrik.com/livingworlds/
In reality: It is not going to 'die in a fire'. Is that why regulators supporting CBDCs and companies part of the ISO standards have created ISO 20022?

> I can’t say I learned anything particularly novel from this interview, but Weaver’s cogent arguments and descriptions of how cryptocurrency works gave me confidence that I wasn’t missing anything. There just isn’t any there there other than burning an unconscionable amount of electricity.

So the ISO 20022 cryptocurrencies like XRP, Stellar, Algorand, Hedera etc are burning up the planet? Perhaps Nano (which isn't part of that standard) is also incinerating the planet as well?

> Weaver also makes a strong case that ransomware is only feasible as an industry because of cryptocurrency.

Except that we can trace these transactions on the chain and the on-ramps, exchanges, etc will delist privacy coins and also use the chain to blacklist addresses tied to the scammers, preventing them from actually using that ransomware money and converting it to fiat; rendering it useless.

Regulations and standards such as ISO 20022 will just make it harder for them to hide, especially the use of CBDCs. Not many cryptocurrenices and their technologies will comply with this and only a few will be around to see the light. So it doesn't really help arguing from an absolutist standpoint as it takes at least one example to refute them.
Every day they're using 20.7 litres of water to keep a single panel clean. It's an interesting problem, but I'm certain there's a better way if one were willing to develop better automation.
Still quite shitty of Google to insist on sunsetting this one. God damn, it's infuriating. Never again will I be so naive and trust them. Damn Big-G cold blooded.
A YouTuber I follow recently put up a ~1 hour long documentary on the land trains [1]. It's well-researched and contains some interesting details not covered by the article.

And if you enjoy that, be sure to check out his video on the Soviet Kharkovchanka Antarctic cruisers [2]. It's just as entertaining and what initially led me to his channel.

[1] https://www.youtube.com/watch?v=abGyX2uwXsw
[2] https://www.youtube.com/watch?v=f6R-h06IsJw
Tons of great general suggestions here. But I want to chime in for the Tailwind garage door opener. It's very obviously built by engineers and for engineers. Install is harder than other options, but rock solid, zero maintenance unlike others and it can do automatic garage door opening and closing totally self contained by detecting your phone + car Bluetooth. I was absolutely blown away by it compared to the MyQ which is usually touted as the best and is so locked down because they signed a deal with Amazon as to be totally useless.
Pall-ette. Palette.

Loose. Lose.

Programmers who can't spel are allways anoying.
Another clickbait article based on strawman's by an author with no clue what the blockchain is for. Yawn, nothing to see here.
> didn't the Germans court the Mexicans in WWII?

Italians and Germans were active all over the Americas, in response the US created the Office for Inter-American Affairs [0] to spread its own counter-propaganda. Among other things, they hired Disney to create The Grain That Built a Hemisphere, using corn as a symbol for Pan-American unity.

[0] https://en.wikipedia.org/wiki/Office_of_the_Coordinator_of_I...
> a laptop into a protective container?

the pelican laptop cases exist, the 1495 is a great product, albeit huge and heavy. you can actually fit 3 modern laptops, a satellite phone, a usb battery pack and a shitload of accessories into one.
Good point, but I think that microcosm event, home spun mask businesses, will be an MBA case study. If it hasn’t already.
Come clean completely if it's just something embarrassing and not illegal. The blackmailer will lose their power and you will appear relatively sympathetic, everyone has stuff they'd rather not get shared around and will identify with your case. Your concerns about PR are probably overblown, even if it seems like a big deal to you, most people won't think about it much

If it's something really bad, and not just an embarrassing sexual thing or something, act accordingly and realize you may have to start a new life somehow. Look into being a day laborer, for example. Hopefully you're not in that situation.

(And just in case it's child abuse or something like that, turn yourself in, and seek help, you deserve what you get)
Unless you have an injury, why would anyone want to do this? It looks like a terrible way to work.
For lots of info on the history and technology behind these demos, check out https://iangilman.medium.com/living-worlds-for-ios-android-4...
The NSA assuring me that there are no backdoors, if anything, makes me more suspicious that there are and that NSA is aware of them and intends to use them, so please everybody go use our cool new encryption schemes that we totally promise are safe
It's also a really poor idea from a security point of view. Businesses put web servers in DMZs for that reason to if they still host them on prem.
Question: When you say things will go back to the way they work, what do you think will drive this? Perhaps cost, time, convenience?
Go to a bar and you’ll find out
Darn tootin'! I'd ask for my money back.
This warms my heart!
Cross code looks really nice from the trailer - part of it looks like Chrono Trigger (still one of the most beautiful games of all time IMHO)
Of course, if an employee is crummy, you'd want to silo their work product so it did not infect the rest of the org.
The best UFO thing I’ve ever read was posted her a couple years ago.

Check out https://UAPTHEORY.com

It’s a long and thorough read but it’s worth it