News for hackers. Stuff that matters.

tlocke

Re:Devtools must be open source on Tuesday August 04, 2026 @11:01AM (#49169959)
Very well put.
Re:Our Commitment to Windows Quality on Saturday March 21, 2026 @06:06AM (#47465695)
Good to hear Bradford On Avon mentioned, the town where I grew up. Is there a link to the place where they're installing Linux?

The Tithe Barn in Bradford On Avon was the medieval equivalent to an Amazon warehouse!

Re:A simple web we own on Tuesday February 24, 2026 @07:54AM (#47136502)
Could IPFS be the solution here? https://ipfs.tech/
I'd have thought there are many tech angles. For example, in a possible Greenland invasion, what are the implications of the US having control of dominant platforms such as Windows, Android and Apple? Not to mention all the dominant cloud platforms.
Re:Pipelining in psql (PostgreSQL 18) on Sunday October 12, 2025 @04:09AM (#45556314)
I must confess, the Python driver pg8000 which I maintain doesn't support pipeline mode. I didn't realise it existed until now, and nobody has ever asked for it. I've created an issue for it https://codeberg.org/tlocke/pg8000/issues/174
Exergy is the amount of work that a system can potentially do. It was on my physics course in the UK I'm fairly sure.
The least well-off don't have cars at all, but suffer from their ill-effects the most. So the least well-off benefit the most from congestion pricing.

Ask HN: Using the TruffleBot to detect bed bugs

Is anyone using the TruffleBot electronic nose (or something like it) to detect bed bugs from the VOCs emitted by them?https://projects-raspberry.com/trufflebot-sniffs-out-and-accurately-identifies-specific-chemical-odors/There's a paper that mentions using VOCs to detect bed bugs:https://pmc.ncbi.nlm.nih.gov/articles/PMC10048870/I think someone tried to do this in 2011, but it didn't seem to...

( Read More... | no comments | 2 points | on HN )
Re:I algorithmically donated $5000 to Open Source on Saturday December 07, 2024 @09:46AM (#42350120)
I was 18th on the list, thanks for the donation!

There's also the approach to funding that looks at things from another angle, and says we should have a basic income, or negative income tax, for everyone.

Re:Ask HN: What are you working on (September 2024)? on Monday September 30, 2024 @10:05AM (#41697239)
I work on Chellow, an open source Web app for checking and reporting on UK electricity and gas bills for large organisations https://github.com/WessexWater/chellow . It's a mature project that's used by two organisations. Please get in touch if this is something you're interested in.
Re:Wind Becomes Britain's Largest Electricity Source on Monday September 09, 2024 @08:50AM (#41488032)
For nuclear, the subsidies are often in insurance and decommissioning and long-term storage of waste.

So looking at insurance, it's impossible to fully insure a nuclear power station, and so the state effectively insures it.

With long term storage of waste, the material has to be securely stored for about 10,000 years. As far as I know, only Finland is doing this so far.

With decommissioning, it always costs more than is set aside, and so the taxpayer gets left to pick up the pieces eventually.

With your example of Ontario I don't know how these costs I've outlined will be handled, but if it's anything like the UK the costs will be pushed onto the taxpayer.

Re:Wind Becomes Britain's Largest Electricity Source on Monday September 09, 2024 @07:59AM (#41487701)
Comparing electricity costs between countries probably says more about government subsidies than the underlying cost of generation. Nuclear fission is an expensive source of electricity (see the high subsidies for Hinckley C) and so I suspect France's nuclear power is heavily subsidised.
Re:Google Removed Organic Maps from the Playstore on Saturday August 17, 2024 @10:21AM (#41274797)
The Android app StreetComplete is an excellent start for updating OSM I found. There soon become occasions when you have to bring out the big guns and edit it using the web editor at https://www.openstreetmap.org/ , which is possible to do on a mobile phone if it has a big enough screen, but much easier on a laptop.
Re:The Infinity Machine on Tuesday July 30, 2024 @08:45AM (#41108570)
I know the light switch idea as Thomson's lamp:

https://en.m.wikipedia.org/wiki/Thomson%27s_lamp

I used it as an interview question many years ago. I wasn't very rigorous about it, basically any plausible answer was good enough for me. Answers fell into two categories, the theorists (it's an infinite series that doesn't converge) and the pragmatists (you couldn't physically do it).

Re:The World Has (Probably) Passed Peak Pollution on Friday May 10, 2024 @04:20PM (#40323400)
True, I struggle to think 10 years ahead these days. The horizon for predictions is definitely shrinking.
Re:The World Has (Probably) Passed Peak Pollution on Friday May 10, 2024 @04:10PM (#40323327)
Yes, fertility is heritable.
Re:Features I wish PostgreSQL had as a developer on Friday April 05, 2024 @06:31AM (#39940775)
I'd like to see an option for automatically adding indexes for performance.

Perhaps a background process could re-run the query planner for frequent queries and add an appropriate index if there's a big speedup.

I met Simon once ages ago when I was due to speak at a PostgreSQL conference. It was my first time speaking at a conference and he was a nice bloke and gave me a bit of advice afterwards. He said not to worry about having to be entertaining, it's enough just to get the points across, that's what people were there for. I found that very reassuring!
Re:TinyMCE (also) moving from MIT to GPL on Wednesday March 27, 2024 @08:50AM (#39838374)
For my projects I prefer a permissive licence, specifically the MIT No Attribution Licence. People argue that corporations will just take your code and make it proprietary. They might, but an internal fork like that means that it's difficult to benefit from improvements in the original project. So in my experience corporations don't create an internal fork, they use the code as it is. Then if they find a bug for example they will contribute the fix to the project rather than forking, because it's the easiest option.

So in other words, corporations are more likely to use code that's licensed under a permissive licence, and so they're more likely to contribute, simply out of their own self interest.

Re:TinyMCE (also) moving from MIT to GPL on Wednesday March 27, 2024 @07:59AM (#39837917)
The way I think of it is that with permissive licences the freedoms can be removed from the code, but with copyleft the freedoms can't be removed from the code. By freedoms I mean the freedom to study the source code, to run it for whatever purpose you want, to make modifications and to share the code with other people.
Re:Luxury Beliefs Are Status Symbols on Tuesday October 31, 2023 @05:03AM (#38081974)
> “I’m so fit that I can afford to expend valuable energy to show you how strong and robust I am compared with the other gazelles.”

Is this why humans dance?

Out of interest, whereabouts in Europe is that?
Interesting. In the language feature list, what is 'try star' ?
Re:What Learning APL Taught Me About Python on Thursday August 17, 2023 @05:41AM (#37159312)
I'd argue that even though it's well defined behaviour in Python, it still appears to me as a programmer as weak typing. For example, Python lets me write:

  if 23:
      print('hello')
and it'll print 'hello'. But I'd prefer a strongly typed approach where this code would give an error saying, 'a bool is expected here'. Sure it's a subjective thing, and this is just my preference.
Re:What Learning APL Taught Me About Python on Thursday August 17, 2023 @05:31AM (#37159241)
Interesting, so I did a little test:

  python -m timeit 'sum(1 for age in range(100000) if age > 17)'
  50 loops, best of 5: 5.08 msec per loop

  python -m timeit 'sum(int(age > 17) for age in range(100000))'
  50 loops, best of 5: 7.96 msec per loop

  python -m timeit 'sum(age > 17 for age in range(100000))'
  50 loops, best of 5: 4.78 msec per loop
Re:What Learning APL Taught Me About Python on Thursday August 17, 2023 @03:44AM (#37158475)
Someone else has mentioned it, but I would have gone with:

  sum(1 for age in ages if age > 17)
with the other method you're treating a boolean as an int. Weak typing.
Re:Google Maps has become an eyesore on Monday August 07, 2023 @04:27AM (#37031835)
OpenStreetMap does hold opening hours of businesses. Here are the details (including opening hours) of my local cafe https://www.openstreetmap.org/way/485163917 I go round entering OSM data using the StreetComplete app. It's slightly awkward if a shop doesn't display their opening hours, because then you have to go in, and I feel I need to buy something and then ask their opening hours.
Re:Is anyone using PyPy for real work? on Monday July 31, 2023 @10:03AM (#36942619)
I work on pg8000 https://pypi.org/project/pg8000/ which is a pure-Python PostgreSQL driver that works well with pypy. Not sure if it would meet all your requirements, but just thought I'd mention it.
Agreed, AI training should respect the licence of the code it's being trained on.
Some open source licenses are fine with AI training, eg. MIT No Attribution https://choosealicense.com/licenses/mit-0/ and BSD Zero Clause https://choosealicense.com/licenses/0bsd/

My view is that it's good to allow AI training to use your code. This democratises AI models, otherwise AI will be the exclusive preserve of wealthy corporations. So I say, let's license our code under permissive, no attribution licences!

Older »