skysight-inc/HackerNews huggingface dataset:
Show HN: A Python AST viewer for the terminal
Hey HN! I've been having a play with the idea of building a Python AST viewer that can be used in the terminal. It's very early days yet, but the basic approach is now available for playing with.

Also on PyPi and works fine on GNU/Linux, macOS and Windows.
Mutual aid is a fairly common term in my region:

https://www.lpm.org/news/2022-11-27/eastern-ky-mutual-aid-gr...
Yep, bulbs are now all complete crap - they used to last decades.

Was having my house painted a few years back, I have a triple set of spots near the very top of the roof (so about 30 feet in the air) - painter helpfully suggests - do you want me to replace those bulbs up there while I have my ladder up there? I agreed.

Big mistake, the bulbs their were still working 17 years after I moved in - now I have to replace them about every 18 months with the cheap crap the government only allows to be sold.

Not sure how replacing bulbs and throwing them in the landfill every 1-2 years is doing anything good for the environment.
I just can't see us use returning to protocol over platform either happening or being a good thing.

Protocol was phased out specifically because of 3 things:

* propertiary protocol started to emerge

* standard was not keeping up with the latest tech

* making things interconnect was either asking for bloatware or painstakingly writing your own which just made maintenance harder
v.1.6.0, still in beta[0], is supposed to support Brave and Edge[1] but it hasn’t been released yet because the maintainer hasn’t had time[2].

[0]: https://github.com/xbrowsersync/app/releases

[1]: https://github.com/xbrowsersync/app/wiki/Roadmap

[2]: https://github.com/xbrowsersync/app/issues/425
EU court rules Airbnb must provide rental info to tax authorities
How many times have you seen a plastic product labeled "made with 60% recycled material"? Compare that to paper.
Dutch Tesla driver busted stealing electricity from a lamppost
Syntax is pretty much the entire reason that people stay away from languages like Erlang and Lisp
I hear the fuel is pretty cheap though.
Carlyle: The buyout pioneer in need of a CEO
https://hn.algolia.com/?q=curta
There is no safer time to invest in nuclear power than after a nuclear disaster.
Just grab a Johnson Controls temperature controller. Set and forget.
FTX founder Bankman-Fried to make U.S. court appearance after extradition
It's always worth talking to the repairer they send out when something fails. Hopefully they will have seen at it long enough to witness change in the industry. Case in point my washing machine leaked underneath, not all the time, but at one point completely flooded the floor. Talking to the repairer they enlightened me with fact that a container underneath (made of two parts top and bottom) had calcified between the clips that held it together thus forcing it apart because of hard water in our area. This never used to happen in older machines as the part in question was moulded as one piece originally. Money saving was the motive but I failed to to push on this point.
They’re going to spend well over $100B and potentially up to $1T cleaning up Fukushima.. either figure would’ve been better spent on literally anything else.. hard to call Japan’s nuclear regulatory backdrop a success story. And I’m sorry, there’s absolutely no chance that the next reactor is built in under a decade. Working on Vogtle bankrupted Toshiba’s nuclear unit.
>Fission power is much more expensive than wind and solar and takes way longer to get online

It is also far more reliable, consistent, scaleable, and does not require grid scale energy storage. Wind and solar will always be just one piece of the puzzle until these issues are resolved.
Yes, but it either needs storage or fossil backup. Otherwise you can't compare wind, even offshore wind, with a reliable source of energy.
Rust has the upper hand for incrementally replacing Python modules. With PyO3[0], you can seamlessly replace existing Python code with native extensions written in Rust.

If your use case is to replace entire tools, and your team isn't familiar with static languages, then Go is probably the better option. There's no denying that it's much easier to learn.

[0] https://pyo3.rs/
My point was that there isn't any discrimination in the phenomenon that people with similar values can work together better.

>most people don't need clones to work well with

Having similar values doesn't mean that they have exactly the same value/skill set, they aren't "clones".

> having too many similar people

similar values != similar people
The state of intent data in 2023 and beyond
> It occurred to me that it was perhaps designed to fail rather than the mixer continuing to break the bones of the person who got their hand caught in the paddle.

This is a good call out of potential other reasons an engineer team might make something cheaper & easier to break. It would be awesome to read a summary of the trade-offs the teams discuss in their process.
This isn't a solution, its just hurting people who have been so hurt other places that this comparative hurt is less bad. How twisted is it that you see this as a solution? The solution is workers joining together to enact leverage over the wealth horders in society and demanding better wages for everybody. The money is absolutely there in rich countries like the US and Canada.
Your first sentence ignores what you say in the second. In the US, poor people pay a significant portion of their income in sales tax which is regressive.
Invention and discovery were the same latin word in the early modern age : patents were granted for discoveries in the Americas.
The lawsuit excuse has always been quite a lame one, because regardless of Kotlin or Java, the whole Android development stack depend on the Java ecosystem for the IDE, Gradle, Maven Central based libraries, and Android team never made any effort to port anything on top of Kotlin/Native, or even improve it.
Why Many Cold Medicines Don’t Work to Relieve Congestion
I just do not understand the concept of renting a property. If you can't live there, let other people do!
How good is that system for society? You're rich enough to buy extra property, then you make money of poorer people. That's sick.
Once I adopted this mindset, I enjoyed working on my side projects so much more. Not only has it made it feel less like work, it has also freed me up to experiment with things I’m not as familiar with because there’s no pressure to create something in an expedient manner. The notion that I am making something for the fun of putting things together and not to have something complete to show off at the end has been freeing.

I have even picked up a new hobby of 3D modeling. Will I put that and programming together to make a game? Maybe! Will I ever release the game? Who knows? Will I have fun making it in the mean time? Definitely.
I have a 2nd fridge in my garage, an old philco one - still running perfectly, 365 days a year for almost 70 years. Never needed a repair in the 25 years I have owned it.
Yeah, luckily those longships are extremely seaworthy. The width and lack of height make them stable, and they bend and flex with the ocean.

There's a reason Eiriksson managed to cross the Atlantic and reach Newfoundland at the time, before anyone else (that we know of)
They also rarely give error rate.

Having used lora my gut feeling is you’re not going to get more than 3km unless you take advantage of hills or towers. Use the keyword “fresnel zone” for more information.

Also Lora is one-directional. It’s not even half-duplex out of the box. So you either need 2 sets of radios or you need to implement half-duplex communication in software.
My Tefal kettle is 10 yr old now and I have really hard water. Looks like Tefal still maintains some quality, I've bought a sandwich maker 3yr ago and it still works perfectly, their pans are still top-notch.
Though my LED lights do last a lot longer and cost way less to operate overall, so that is nice.
I don't quite know what to say to what I found near the end in this article:

> Recently, my wife needed a carrot peeler. She needed one rather quickly. Off to Target. The one she bought (the only one on sale)...

I stopped at the phrase "the only one on sale". Inevitably the next part reads:

> looked handsome enough, and the brand was one she recognized, but it failed in the useful department, miserably. It wasn’t sharp enough to peel a carrot.

Is this deliberate, or did the author not notice a core problem right there, in their own shopping behavior?

As for coffee grinders, I've got a Eureka Mignon and machines like that are expected to last a few decades easily, with a little bit of maintenance. If you buy the $99 stuff, well...

Especially in the kitchen some good stuff still exists. It's expensive, heavy - and lasts. Unfortunately you won't find those in many of the regular shops. In my city - Nuremberg, Germany - I only see that kind of (expensive) quality in a single specialized store (Kitchen Loesch, https://www.kuechen-loesch.de/). I myself was not aware of the kinds of good appliances that are still made until I went through the lower levels of that store for the first time. I too only knew the stuff most people know, which does not last long, visible at first glance already, with all the cheap plastics it's made of. Much of the better stuff is heavy and mostly made of metal. Even the hand blenders there almost all cost above 100 Euros, far more than I was used to seeing. On the other hand, those devices looked like they would last for a very long time, not like that shitty plastics Philipps model I own. Unfortunately it's not nearly the same to see pictures online, having the actual appliance right in front of you is very different as far as I can tell after that experience of actually seeing them there. The impression of solidity just does not transmit via some online shopping website picture.
I don't understand why Japan doesn't make more use of geothermal power. There are numerous sources of geothermal power all over Japan but it's barely exploited at all.
Tried it now and audio was hardly hearable because of the fast chopping. 1 user on Windows, 1 on Mac, both having the same experience.
> I don't think the issue is lack of will but lack of plan that actually works in the face of assets with unclear value and/or difficult to liquidate.

At least in the world of stocks, dark pools help solve exactly this sort of problem.

Once you have enough assets there are many tricks available that are simply inaccessible and unusable by regular salaried employees.

Many of the tricks employed by the wealthiest forcefully remove transparency by a combination of legal and practical methods (e.g., Canada and Delaware share a lot in common).

Disallow opaqueness first, then the solutions will emerge.
I would call it “for want of reasonable hiring and onboarding processes”. How does someone get into a data engineering job without any knowledge of SQL and doesn’t even get basic onsite training?
“The evidence is clear that oral phenylephrine does not work,” said Dr. Hatton. “If it doesn’t get into the blood in the first place, it can’t go to the nose and cause nasal constriction and therefore relieve your congestion.”
What do you expect from a mentor? For example, if you work with other engineers (preferably, experienced) in the same codebase on the same project, won't code reviews – a routine practice that a team ought to have anyway — count as continuous mentorship? Won't tech talks about ideas relevant for your field from various conferences count as mentorship? Don't books, blogs, or even tweets/toots by people you look up to count as mentorship?
I would really like to test it. Is there a computer with M68k still on sale ?
Apache Pinot joins hands with Kafka and Presto
Let me see...

You can presume to correct the blog author while in fact being in error yourself, yet you can not tolerate being corrected. Got it.
They don't own the company. They own shares in a publicly traded company. Those shares go up and down in price. If they provide an outstanding service, the shares appreciate in price, and this shows as profit on Microsoft's balance sheet. And Microsoft, like all companies, are incentivized to show profits rather than losses.
I’ve always thought that hotels mandated daily cleaning just to check you are not performing illegal activities (abduction, drugs, sharing the room, prostitution), having a heart attack or stuck and need help.
The author lost me in the seemingly endless list of poor purchasing decisions. I don’t share their pain because I painstakingly research purchases, giving major weight to indications of durability and solid construction in all things. If you find everything you buy comes apart, but others don’t have that problem, can you be said to be a victim of circumstance?
You can do all of that already from immediate mode in both pico 8 and tic 80.
Pyrex used to be exclusively borosilicate glass but some of their stuff is regular glass now. And as the author discovered, it doesn't like sudden temperature changes.
You're incorrect, sorry. It's very easy to creat cycles in inner-mutable data structures (e.g. Rc).
Not sure why the hyperbole. It's literally one class for the client, and one for the request, probably the least you could do without things getting too hard coded.
Familiar size affects perception differently in virtual reality and real world
> Or does every team doing microservices silently expect that one day a data team will start querying for a massive number of records-by-ID from every service, and the veterans in each team plan for this load pattern accordingly?

What tends to be by far more common is that each team fails to envision that someone, somewhere, sometime in the not so distant future will want or be required to retrieve more than one "element" at a time via their APIs. And so panic ensues when "other entity" begins feeding 20 API retrievals per second at their "one-at-a-time API" and their performance goes off the cliff it was always sitting near.
Correct. Money should not have any weight in curious discussion.
Steampipe made leaps forward in 2022
Just a few starting points:
https://www.theguardian.com/environment/2022/jul/08/price-of...
https://www.offshorewind.biz/2022/09/29/vattenfall-steps-in-...
https://www.rechargenews.com/wind/orsted-first-to-give-finan...
Seems pretty counter-intuitive -- care to elaborate?
On one hand, you can't artificially preserve jobs that are not needed. You can't keep mining coal to protect the coal miners.

On the other, automation concentrates wealth in the pockets of those who finance it. Automated checkout machines do not benefit fast food workers, only investors. What happens when you automate a third or a half of the workforce like that?

I hope that we can share the spoils of all this innovation, because the future will be very bleak otherwise.
That.. Sounds graduate-level. How's your PhD?
Ziglings – Learn Zig by fixing tiny programs
I would say that high speed Internet is responsible for this : much cheaper than having to mail updates on physical storage !
> that one guy in my econ class who always ranted that if it wasn't backed by a RCT, all theories are BS.

The converse may be true though. If it is not backed by a theory, an RCT is BS.
IMO...

If the query is for OLAP the data may need to be extracted to another data store.

If the query is for OLTP, then the design is wrong. I don't know your problem space, but pulling data from 128 shards to resolve queries while a user is waiting is just a really bad idea.
I might have missed this in the article but are you sharing any of your work? I know that a lot of the work was manual but some of your tooling might be useful for anyone else who want to go this craftsman route of converting a flash game.
Ask HN: Advice for Giving Technical Interviews?
What pro tips do you have for someone who is administering a technical interview?
We use Egencia which is owned by Amex. And it has all my loyalty program info.
It's also weird that Google will allow you to run Android apps on Windows, but only a few select games via the Google Play Games beta (https://play.google.com/googleplaygames).
The latest floating off-shore wind pilot project in UK went for £87.30/MWh = $105US/MWh.

This is a super low scale project so if it works out we can expect costs to reduce quite drastically when scaling it up.

https://assets.publishing.service.gov.uk/government/uploads/...

https://www.twinhub.co.uk/

Company building the floating foundation:

https://www.hexicongroup.com/
I've been hearing this for decades.

Yet somehow in 2022, peak coal is now in front of us again, and even at these unprecedented production levels, people are buying it for over $400 per tonne. Despite the fact that solar and wind were alleged to have killed coal 10 years ago when it cost $50/tonne. Coal was completely uneconomical, they said. Coal is a stranded asset, they said. How did so many of the "experts" get it so wrong?

At this point it's clear that we can't keep waiting for renewables. You think nuclear takes way longer to get online, non-hydro renewables haven't even matched existing nuclear electricity production yet. They haven't even been able to halt the rise in demand for coal, let alone kill it, 10 years after it was supposed to be dead.

The best time to stop listening to anti nuclear / pro fossil fuel propaganda and save the climate was in the 70s. The second best time is now.
> That letter from Steve Jobs destroyed it all, many talented developers left the Flash world at that time. It was a bit depressing to see all the (unjustified) mainstream hate for the Flash platform that started to appear at that time,

You might not have seen it but the hate for Flash was well-established by then, solely due to Adobe’s gross mismanagement of their platform. Flash was what crashed and took out your entire browser session. Flash was what made drive-by compromises so easy and common. Flash was what popped up annoying “you should manually update” prompts because they sat out the automatic update trend for nearly two decades. Flash was also what made your entire computer visibly slow down because it was so inefficient - they weren’t an option on phones due to the UI differences but performance and memory alone would have ruled them out in any case.

Flash was also painful to develop for. Yes, you could do things which browsers couldn’t do back then but it came at the cost of having to pay Adobe thousands of dollars for shoddy, unsupported tools[1] and while there were a handful of ways where AS3 was ahead of JavaScript there many areas where it was behind and unlike browsers it stayed there, and it was really common to find bugs in Adobe’s libraries which meant you had to build a complete replacement or wait years to never for them to fix it.

People made cool things despite that but I attribute almost all of the blame for Flash’s demise to Adobe. They could have cut their executive bonus pool by 10% to hire a QA team and they’d have had a much better chance at long term success. Instead, they let the platform stagnate to the point where one of the early Chrome selling points was that when Flash crashed you’d only lose that page!

1. I bought a Flash license once. I naively filed bug reports for reproducible crashes in the player and IDE (the debugger was especially unstable), as well as compatibility and correctness issues with their various libraries. Each time, I got no reply before the next major release and then I got a generic “please pay $1,500 for the upgrade and let us know if we fixed it” message.
Expensive yes. But evil? Why?
Previous discussions - https://hn.algolia.com/?q=mentor

Not all results match
> Of course, mankind has demonstrated through thousands of years of history that tribes of men can't really cooperate in any grand sense

I'm assuming this is satire, but it's hard to tell via text.
I wonder why nuclear gets so much hate and fearmongering. Its a marvel of engineering and long term energy solutions lie just within our grasp.

I don't get the fear. Any anti-nuclear POV, however casual, is welcome.
IMO, the advantage of flags is in the fact that a human can copy/paste the command line invocation and get all they need to reproduce an execution. That’s great.

But when the command line invocation is so big that you can barely even copy/paste it any more, and it exceeds the max command line length on a stock Linux kernel, you’re way past the point of convenience being the important factor. All the normal places you’d want to see the flags (set +e in a bash script echoing them back to you, etc) are suddenly overloaded with megabytes of text for a command line invocation… who’s gonna look at all that? Who is this serving any more?

“Flags for everything” would seem like a good idea taken way too far to me.
What I sent to an internal team about hiring regarding my thoughts on coding challenges. I work as a senior data engineer:

“So here are my thoughts:

"Live programming sessions can be really insightful for the interviewer and the company. As the interviewer you get immediate feedback from both the code and the body language and any conversation about thought process from the interviewee. But from the interviewee's point-of-view it can be hell. Think about it like this: they're looking for a job, trying to impress you, working on a task they've never seen and in an environment that IS NOT AKIN to how they would work normally if given the job: everyday Jira tasks aren't timed, with a proctor looking over your shoulder taking notes. We work at our leisure with Google and have colleagues to assist us. So with all that being said there are ways to make the live coding interviews less scary.

I like to re-frame the whole exercise and make it less like an exam and more like a pair-programming session. I also incorporate the idea from code-review that we review the code not the programmer, i.e: "The code here at this line is confusing or I don't think it does exactly what the algorithm suggests..." vs. "Why did you do it like this? Why is it this way?" where the latter has charged language that is accusatory and anxiety inducing.

So now that the interviewee hopefully sees me as a peer in a pair-programming scenario and I've made overtures to help them feel comfortable to ask questions and talk through their process then only do we begin.

I ask them to read the question. I ask them to ask me any questions about the question if something is not clear.

Really strong candidates often restate the question back to me and ask for confirmation if what they've understood is what I've understood. I find this a very strong indicator of success at $JOB as it means they will seek to solve the real problem and not the perceived one and thereby potentially waste engineering time on a task that was not needed.

Prior to the coding challenge part I try to do as good a job in time management as I can to allot enough time for the coding challenge. It is on the interviewer to have an understanding for how long a task should take and allot that time and some buffer.

Lastly, I like to have programming challenges that don't come from leet code or hackerrank but that come from work or tasks I have personally done before. I tell the candidates about this in the interview itself: "The SQL question you have before you today is something I worked on recently myself. This is similar to the kinds of things you'll see when working here at $JOB of course this task is just a small part of what you might work on but it is a real-world problem I've seen. Let's chat about how you will go about solving it and then why don't you write the SQL and we can tweak it together if necessary..."

And finally, the goal should be to see how the candidate thinks through things, how they ask questions to fill in gaps in understanding about tasks or technical things, and if they have the minimum level of skill to be successful at the company.”
Something can be very simple, and still be very hard to achieve because of resistance to it.