HNHacker News
TopNewBestAskShowJobs

jzwinck

5,693 karma · joined December 14, 2011

submissionscomments
jzwinck··on Goodbye, shitty Car extends Vehicle object-orientation tutorial (2011)
Here are a car and a motorcycle each with three wheels:

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

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

What shall we do with them in our class hierarchy?

jzwinck··on The ups and downs of automated code checking software
A sliding door needing to be operable "without special knowledge" is interesting. Imagine if that code were expanded with "or uses latches and handles certified according to XYZ 123." Then someone can certify latches and handles (with installation instructions of course, like don't install them sideways). The building model would simply specify the make and model of latches and handles to be used, or if it's a simpler building maybe the model would only say "XYZ 123 compliant latches and handles."

This would decouple the complex English language from the need to know whether a door is compliant. Because it can be reasonably understood that a door will be operable without special knowledge if its latches and handles can be. Doors are often custom fabricated, but latches and handles rarely are. And a final check against idiocy can still be performed after construction, as it should be today.

jzwinck··on Top secure C++ coding practices
For example, incrementing an int until it overflows.
jzwinck··on Modern smartphone lenses are crazy
Movies are often shot with anamorphic lenses which are lenses with a sort of vertical cylinder shape. This lets wider aspect ratios be shot using the full frame of a more square aspect film or sensor.

https://www.bhphotovideo.com/explora/amp/video/buying-guide/...

jzwinck··on How much do construction costs matter to the price of housing?
Modern bakers are competing in a market dominated by extremely cheap mass production. The economy of scale has moved out of the local bakery and into the regional bread factory.

People are willing to pay double or triple for artisanal bread compared with mass produced bread. But are they willing to pay 10-20x? If not, and the extreme cost efficiency of modern food factories inexorably lowers prices, the market clearing price of artisanal bread is limited and declining.

jzwinck··on The Smart Modem
If all emergency numbers dial EMRGD, how does it work in places where 999 and 995 are for two different types of emergency?
jzwinck··on People don't work as much as they say
It sounds like you're saying that even reviewing code of subordinates is micromanagement? If you have a team of junior developers, who should review their code? Someone from another team?
jzwinck··on People don't work as much as they say
Why did you feel that making direct technical contributions was micromanagement?
jzwinck··on Twitter doesn't care about spam?
Someone I know well was hired at Twitter more than a decade ago as a senior software engineer. He had experience with natural language processing, and was given a project to identify spam and bot accounts.

He worked on this for a while, all the data he needed was made available and he analyzed every account on Twitter. His analysis said one third of all accounts were bots.

He presented these results to management, who said the number must not be that high, and discussed what it would mean for their MAUs or whatever metrics if these accounts were removed.

None of the identified accounts were deleted. Instead, the project to identify them was canceled, and the engineer quit.

More accounts means more money. Follow the money.

jzwinck··on GPS
Using multiple receivers on the ground to improve accuracy is done, but the details are different to what you describe. See https://en.m.wikipedia.org/wiki/Differential_GPS
jzwinck··on Are you sure you want to use MMAP in your database management system? [pdf]
Can you share a couple examples of those parameters?
jzwinck··on MBO – Garmin Watch Apps for Mountain Bike Orienteering
This is not true, has not been true for years, and probably was never true at least since the public release of their app store.
jzwinck··on A routine gem update ended up creating $73k worth of subscriptions
There is a real parallel between this mistake and the or() mistake. As a native English speaker I glossed over both of them at the first reading.
jzwinck··on QOI – The “Quite OK Image Format” for fast, lossless image compression
You can only seek within a gzip file if you write it with some number of Z_FULL_FLUSH points which are resumable. The command line gzip program does not support this, but it's easy using zlib. For example you might do a Z_FULL_FLUSH roughly every 50 MB of compressed data. Then you can seek to any byte in the file, search forward or backward for the flush marker, and decompress forward from there as much as you want. If your data is sorted or is a time series, it's easy to implement binary search this way. And standard gunzip etc will still be able to read the whole file as normal.
jzwinck··on Regulators Shut Down Lending Platform (YC Alum) LendUp
If a loan is so risky that it requires greater than 36% interest, it should not be made. Loans with gigantic interest ruin lives.
jzwinck··on Boeing, Airbus executives urge delay in U.S. 5G wireless deployment
Your projectile idea is unlikely to be the reason, because I am allowed to have a book in my hands during takeoff and landing, and I am allowed to have a Kindle in my hands so long as it is "off." But I am not allowed to have it "on."
jzwinck··on CT scans of AirPods evolution
Are the speakers farther from the corner of the room in your new place? Proximity to the corners is an old trick for increasing bass output.
jzwinck··on The origins of ‘horn ok please,’ India’s most ubiquitous phrase (2016)
In Rajasthan I saw "Horn Please" everywhere, usually without "OK". And that's the title of a book about the colourful trucks of the subcontinent: http://www.hornpleaseindia.com/
jzwinck··on Campagnolo's revolutionary new gearing system from 1946
The freehub was not invented for another 30 years. But I see that the Cambio Corsa did have a freewheel (similar idea). I was wrong to think it used four fixed gears. So indeed it could have used a chain tensioner!

Video showing it in action (skip to the middle): https://youtu.be/MQe0fLEQ2jY

jzwinck··on Campagnolo's revolutionary new gearing system from 1946
It's because there was no freewheel. A chain tensioner only works well when there is driving force applied in one direction, not the other. Put any force backward into the pedals (e.g. to slow down) and the tensioner will be forced to its most slack position (or broken off).
jzwinck··on Tether Fined $41M for Lying About Reserves
If your regular bank account is in USD that thinking is reasonable. But if your bank account is in another currency you might hold tether to protect yourself against hyperinflation or other things you can't control in your home currency.
jzwinck··on Windy.com
I used Windy when planning a bicycle tour. It told me the wind would be mostly from the east, so I began my trip in the east and enjoyed 1300 km with a tailwind.

The same idea could apply to long distance running or hiking, canoeing, and other non-wind sports.

jzwinck··on USB-C Hubs and Ethernet (2020)
Why do these hubs (or the chips they're made with) want to send PAUSE frames in the first place? What's the potential advantage vs just behaving as a switch with no other devices connected?
jzwinck··on The /bin/true Command and Copyright (2009)
Instead of a symlink to true you could have made an empty script.
jzwinck··on The cost of two weeks in an pediatric/infant ICU
It happened to me in the US and I asked a friend who was a practicing medical doctor at the time, plus another person who worked at a major insurance company. They both confirmed it can be done.
jzwinck··on The cost of two weeks in an pediatric/infant ICU
Thanks I edited my comment to say it's called coinsurance. But the point is the same, and in my experience it is not always based on the final negotiated amount actually paid to the healthcare provider.
jzwinck··on The cost of two weeks in an pediatric/infant ICU
250k not 2.5M. But yes I agree the practice seems fraudulent.
jzwinck··on The cost of two weeks in an pediatric/infant ICU
A quarter million US dollars.

Of course the hospital never expects to receive this amount of money. Either they will negotiate it down for uninsured patients, or they will accept a lesser amount from the insurance company.

Insurance companies like this over representation of costs because:

1. If you have a percentage copay (edit: "coinsurance"), say 10%, they will tell you to pay $25k because it's 10%, but they might only pay $75k. In this example you clearly paid 25% but they tell you it's only 10%.

2. A quarter million dollars is terrifying and you better not ever lose your insurance.

jzwinck··on What should the CPU usage be of a fully-loaded CPU that has been throttled?
If my processor is marketed as 1200 MIPS but can run at 2000 MIPS for up to 0.5 seconds out of every 15 second window (due to thermal constraints), but only up to 1700 MIPS when executing SIMD instructions for 0.5 seconds and 1000 MIPS thereafter, and only up to 900 MIPS when it gets too hot because my laptop is sitting on a blanket instead of a hard surface, what is the correct denominator?
jzwinck··on Uno – the “unit” for dimensionless quantities
This commonplace in liquor stores and pharmacies: concentration by volume is v/v and by weight is w/w.

https://www.bode-science-center.com/center/hand-hygiene/hand...

← PreviousPage 4 of 34Next →