HNHacker News
TopNewBestAskShowJobs

porlw

276 karma · joined April 21, 2010

Enterprise software hacker - integrating and making commerce systems more flexible for the past 15 years. hn@phred.org.uk
submissionscomments
porlw··on Ask HN: Create an app that sends an email with some text
This can easily be done with a small shell script and standard linux commands.

   #!/usr/bin/bash
   
   MAILTEXT=$(grep "dbkey" db.txt)
   
   cat emails.lst|while read ADDR NAME
   do
      mail -s "Subject" $ADDR <<EOT
   Dear $NAME

   $MAILTEXT

   EOT
   
   done
Schedule with cron.
porlw··on Solar Storm Knocks Out Farmers' Tractor GPS Systems During Peak Planting Season
Another reason is that farming machinery compacts the soil.

Techniques such as min-till and no-till aim to minimise soil disturbance (to reduce emissions from deep ploughing and improve soil fertility), but to achieve this you really need to make sure the equipment accurately follows the same path through a field every time, so that the area affected by compaction is mimimised.

Not a farmer, I learned this from the youtube channel Harry's Farm.

porlw··on Bash Debugging
grep has a bad interaction with set -e, since it (infuriatingly) exits with 1 if no lines are matched.
porlw··on Undocumented 8086 instructions, explained by the microcode
I remember back in the day these were used by the A86 assembler to identify code assembled with the unregistered version of the software.
porlw··on Simulating protected mode in the Z80 [video]
I think it was because in the 80's the US was wealthier and systems with disk drives were a lot more common.

People would swap games on disk, and there was less pressure to learn how the underlying system works.

Having a disk drive also enables more complex, larger games, which would be harder to produce as a lone programmer.

Contrast this with the UK - we had much less money, it was common to type games in from magazines, which is how a lot of us learned programming.

We mostly had to make do with tapes, which limits the size of a game and its sound and graphics to physical RAM. It was entirely possible as a lone programmer to create a commercial level game with a few weeks of late night hacking.

porlw··on Ask HN: I miss Usenet. Are there any modern equivalents?
The thing I miss about Usenet is maintaining article and comment scoring in trn (based on the subject, keywords and/or author)

With this I could easily surface interesting articles or replies by insightful people, while avoiding subjects and authors in which I had no interest.

This worked at a thread level, so I could quickly see any new threads, and new replies added to threads I was following, skipping over everything I had already marked as read.

For me this was more effective than the communal post scoring that took over on web forums, reddit, hn etc.

porlw··on System/360 Announcement (1964)
I'm curious - are there any features of System/360, that we don't have in modern operating systems, that would be worth implementing?
porlw··on If the US Market for SWEs is on fire why isn’t Europe’s, or India’s?
1) The contracting scene in the UK is massive, that's where a lot of the higher paying UK tech jobs are. I suspect this skews the salary averages.

2) I'm in South Africa, I've recently been approached on linked-in to (quote) "Earn a US based salary working remotely from South Africa". So it seems some US recruiters are starting to look further afield.

porlw··on Upgrading the soldered-on RAM of a Dell XPS13 7390 laptop
It's not really a conspiracy, just the natural outcome of design optimization - any part that still works reliably at the end of the design lifespan is a candidate for cost cutting in the next iteration.
porlw··on What happens to used electric car batteries?
Tyres are breeding grounds for mosquitos, shredding them stops this so this law is having the intended effect.

https://blog.epa.gov/2015/08/26/improperly-stored-tires-lead...

porlw··on How much power can we expect from rainfall?
There is an interesting series of videos on Youtube about harvesting energy from gutter flow: https://www.youtube.com/watch?v=S6oNxckjEiE
porlw··on ZedRipper: A 16-core Z80 laptop
Ben Eater's Youtube series building a simple CPU from scratch was a real "lightbulb" moment for me. After 40 years of programming (including Z80 assembly back in the 8-bit days), it took my understanding of the CPU from a mysterious black box to what's basically a simple look-up table and some control signals.
porlw··on I don't know how CPUs work so I simulated one in code
What I find fascinating is that Lisp, commonly perceived as too high level to be practical, is actually at its core (in its original implementations!) an incredibly low level language.
porlw··on Ask HN: Anyone getting sick of all the 'web apps'?
The problem is latency, which actually will get worse as bandwidth increases.

1 request pulling down 1 Mb can be quicker than 4 requests for 10Kb each.

porlw··on The privacy wars are about to get a whole lot worse
Typically an architect's design would need to be signed off by a structural engineer before construction begins. The structural engineer would take on the liability for safety critical aspects of the design.

The architect and engineer would presumably collaborate to ensure that the design is at least clear enough to be safely built.

porlw··on Coming changes to Apple's App Store
Use my new app!

It's a special folder.

When you put an app in the folder it will DELETE the app from your phone and store it like a symlink. When you try to open the app from the folder it will install it again for you.

Think of all the subscription money you will save!

Only $5 per month.

porlw··on Persistent “pipes” in Linux
Soooo...

What happens when an errant grep wanders in to the directory holding these persistent pipes?

porlw··on Estimate the cost of a Web, iOS or Android app
Double that to get the agency rate, and no one wants an app completely designed by juniors, you'll need at least one senior resource and probably a PM.
porlw··on Estimate the cost of a Web, iOS or Android app
The politically correct HR unit for worker resources is FTE (Full Time Employee)
porlw··on Estimate the cost of a Web, iOS or Android app
I'm in South Africa, and I'd say realistic rates would be about double.
porlw··on Linux, IRIX and “Posix Capabilities” (1999)
Eros and KeyKOS had some very interesting ideas in addition to capabilities.

Global process persistence meant that you could pull the plug on a running system and start it back up right where it left off. It was constantly journalling system activity onto permanent storage. This also provided some level of system roll-back, kind of like a database but applied to the whole OS and all its activities.

Something like that could be very useful on low power intermittent use devices like smartphones.

porlw··on The New Way to Save Money: Playing the Lottery
In the UK they've had a similar concept called Premium Bonds for over 50 years.
porlw··on CurrentC: The Big Retailers’ Clunky Attempt to Kill Apple Pay and Credit Card Fees
Handling cash costs money too - security guards, safes, deposit runs, counting.
porlw··on What If You Only Invested at Market Peaks?
Interesting. I wonder how does this compare to:

1) Buying every month

2) Only buying at some set period after each correction (e.g. market drops x% over 7 days).

Are there any online tools that make it simple to work out these ideas?

porlw··on Firm Inefficiency
I think that in most large companies the efficiencies produced by economies of scale are mostly captured by the management hierarchy (in terms of executive compensation and the support apparatus provided by consultants)

And why not? - the main shareholders are institutional investors who can't manage investments in hundreds of small companies, so it's not like they're going to take their money elsewhere.

porlw··on IBM announces $3B research initiative
Maybe Google should buy IBM.
porlw··on Correlation behind adblock growth surge and AdSense revenue doldrums
I'm not so fussed about ads I can ignore, but (along with analytics and stuff like social media buttons) - they all add latency to web browsing with extra DNS lookups and HTTP requests.

It's especially bad on mobile.

So no matter how nice, useful or relevant the advertising is, unless it's hosted on the site I'm visiting, it will probably be blocked.

porlw··on A Year of Functional Programming
You know, you're right - that does sound a lot like Erlang.

Which is generally considered an extremely pragmatic language.

I guess it all goes back to the Actor model and the origins of OO in Simula.

porlw··on A Year of Functional Programming
I'm starting to think that different programming styles are more suited to different levels of abstraction - maybe you can program in an OO style at a high level, use functional style code for the low level implementation.
porlw··on Ask HN: Best current Linux-compatible laptop?
After 2 years my X220, which runs off battery for a couple of hours pretty much every day, reports it's at 74% or original capacity. This is with vanilla Ubuntu 12.04

Wasn't there a recall for some Thinkpad batteries a while back? Maybe you can get a replacement.

Page 1 of 4Next →