HNHacker News
TopNewBestAskShowJobs

thought_alarm

5,145 karma · joined April 6, 2010

submissionscomments
thought_alarm··on Vulnerability in Honda's Remote Keyless System
Cars with key fobs are easily stolen and shipped overseas by programming a new key fob.

https://www.cbc.ca/news/canada/marketplace-car-thefts-1.6396...

thought_alarm··on Apple and Major League Baseball to Offer “Friday Night Baseball”
I was an MLB.TV subscriber for a number of years, back when there were no blackout restrictions (or ads) in Canada. It was a really great service.

The thing I learned very quickly was that most local team broadcasts were orders of magnitude more entertaining than the "neutral" national broadcasts, even for a new fan learning the game. The great local broadcasters have the solid on-screen chemistry that only comes from doing 100+ games a year, and an actual point of view without being bald-faced homers. It's a lot more fun to watch.

The national broadcasts, on the other hand, seem to be aimed at people who hate watching baseball.

In a three game series, I'd watch the home team broadcast for game 1, the away team broadcast for game 2, and the better of the two for game 3. If a game was national broadcast I'd usually just skip it. In the playoffs, I always listened to the local team radio broadcasts synced up to the video.

In recent years MLB has experimented with broadcasting some games on Facebook and YouTube, and the result is always awful and hated by most fans. I don't expect the Apple TV+ version to be any different. It'll be baseball for people who don't want to watch baseball.

Anyway, MLB.TV turned to crap in Canada, so I no longer watch. MLB produces some great content, and then does everything in their power to prevent people from watching it.

thought_alarm··on The decline and fall of Java on the desktop
Apple went all in on Java, but the developers didn't follow.

The unusual syntax of Objective-C was always seen as a hinderance to OpenStep/Cocoa adoption, and Java was seen as the solution to that problem.

But Java wasn't a perfect fit for AppKit development, and once developers wrapped their heads around Objective-C most of them stuck with it rather than deal with Java/Cocoa idiosyncrasies. With few developers, the Java/Cocoa bridge died.

thought_alarm··on Delphi Timewarp – 1995 and Delphi’s Mythical Origins
Borland's VCL was a great achievement that brought some much needed cohesiveness and sanity to Win32 development in a way that Microsoft was never able to do. I've always found it interesting that OpenStep/Cocoa and VCL were released at about the same time in the mid-90s, as they're both so similar.

Even though I was a complete C++ snob at the time, I had to admit that working with Delphi/Pascal projects was surprisingly painless. The compile times were insanely fast.

But I preferred to use the VCL with C++. Well into the 2000s when .NET has completely taken over, I still felt that native VCL/C++ was the best solution for most Windows apps.

thought_alarm··on Reverse engineering the 1988 NeXT keyboard protocol
I like to think that there's an alternate universe where the entire industry adopted NeXT's idea of replacing the dedicated Caps Lock key with a Command+Shift key combination, because it's such a smart and obviously correct thing to do.

Sadly, I'll never live in that universe.

thought_alarm··on End of the line finally coming for BlackBerry devices
Right, but that only applies to data and push functionality. It's still not clear why vanilla voice and SMS functionality would be affected.
thought_alarm··on Using BeOS on a Power Mac (2001)
It's worth noting that at this point in history (2001) Mac OS X is still a turkey; visually unique, but very slow and incomplete. It would have only been of interest to the freaks and geeks in the Unix/OpenStep community. I can only imagine there was much hand wringing in the old school Mac community about whether Apple was on the right track or not.

It wasn't until version 10.3 in 2003 that OS X rounded into a form that would drive the final nail into the coffin of Classic Mac OS.

In 2005, version 10.4 takes a giant step forward, leap frogs everything else on the market, and becomes a genuinely compelling alternative to both Windows users and Unix/Linux users. This is also the version that adopted arguably the only really compelling feature of BeOS (Spotlight), and the first version to support Intel.

Apple's next release would be iPhoneOS 1.0.

thought_alarm··on Apple’s use of Swift and SwiftUI in iOS 15
> Which should autocomplete/hint while writing code

It does not. Parameter types and alternate parameter names are ignored by Xcode autocomplete.

If you want to use init(from:), you have to already know that it exists and does something good. Typically, you only find a method like that by looking at the Obj-C header. And that method is declared in the NSPasteboard header, not NSURL.

thought_alarm··on Apple’s use of Swift and SwiftUI in iOS 15
The Swift naming convention makes it more difficult to learn, discover, and use large, complex APIs like AppKit and UIKit, so I'll often revert back to Objective-C when writing AppKit (and to a lesser extent, UIKit) when given the choice. It's common for me to still mix the two languages in a single app.

For example, this the AppKit API for pulling a URL off of the pasteboard:

    +[NSURL URLFromPasteboard:]
It's easy to find, since it has both URL and Pasteboard in the name.

The Swift version gets melted down to this:

    URL(from:)
which is obfuscated nonsense. Unless you already know that API exists, you'll never find it.

The Swift version of AppKit is littered with this kind of obfuscation. Since I don't code in AppKit very regularly, I usually just throw my hands up and switch to Obj-C whenever I start running into these kinds of road blocks.

The Obj-C naming convention has advantages and disadvantages, but has always been considered verbose. The Swift designers considered this a problem in need of a solution. As is almost always the case in software development and language design, the solution was a giant overreaction and overcorrection that just replaced one problem with another.

thought_alarm··on Old CSS, New CSS (2020)

    > this company Netscape had been selling its Navigator browser (to businesses;
    > it was free for personal use), and then Microsoft entered the market with its
    > completely free Internet Explorer browser, and then Microsoft had the
    > audacity to bundle IE with Windows. Can you imagine? 
I believe the larger problem was that Microsoft offered companies and OEMs discounts on their Windows license fees if they agreed to stop purchasing any Netscape software, client and server, thereby collapsing Netscape's revenue from both ends.
thought_alarm··on Susan Kare Explains Macintosh UI Ergonomics (1984) [video]
When Apple ported the classic Finder to OS X they added a NeXT-style "browser" mode (browse between folders inside of a single window) in addition to the Classic MacOS mode (each folder is its own window).

Unfortunately, they did a very poor job of trying to blend the two modes into a single user interface, to the point that ruined both modes.

A signature feature of the classic mode is that each folder window saves its own customizable view state. Whenever you return to a folder is looks exactly the way you left it.

Unfortunately, browser mode clobbers the classic view state of any folder you visit. There's no way to customize the look of a specific folder (like /Applications) and have it stick, because the settings are always getting rewritten by the last browser window to visit the folder.

Similarly, there's no way to set a preferred browser window size or style. Instead, it always adopts the classic view state of the first folder you open. And as you browse around the view state of that first folder spreads to all other folders you visit.

If you open a folder that has no classic view state, you get a hard-coded default browser window. You see this tiny hard-coded default browser whenever you create a new folder on your desktop and open it.

thought_alarm··on Explainer: .DS_Store Files
Why does Windows not deal with hidden files correctly?

It's 2021. Hidden dot-files are not a new thing.

thought_alarm··on Only 90s web developers remember this (2014)
DHTML means using Javascript to animate multiple LAYER tags inside of Netscape Communicator 4. The "D" stands for "Daft".
thought_alarm··on A Prototype Original iPod
Anyone with a moderately sized music collection depended entirely on iTunes to manage their library, and were hence locked in to the iPod/iTunes eco-system. There was no reasonable alternative.

Manually copying mp3 files to a Nokia or Blackberry just didn't come close to cutting it, and any attempts by those companies to compete with iTunes on the desktop ended in miserable failure due to piss-poor software quality.

thought_alarm··on Windows 11’s first update makes AMD CPU performance even worse
Windows NT 4.0 Service Pack 1, good

Windows NT 4.0 Service Pack 2, bad

Windows NT 4.0 Service Pack 3, good

Windows NT 4.0 Service Pack 4, bad

Windows NT 4.0 Service Pack 5, good

Windows NT 4.0 Service Pack 6, bad

Windows NT 4.0 Service Pack 6a, less bad

thought_alarm··on Steve Jobs tried to convince Dell to license Mac software
This would have been a re-badged version of OpenStep, then named Rhapsody, well before OS X roadmap was plotted out, let alone released.

NextStep/OpenStep had support for x86 since 1994, so it was all ready to go if Dell wanted to play ball. But it wouldn't have included any support for Classic Mac software.

In other words, it wouldn't have supported any software at all, except for the few OpenStep devs still hanging on. But perhaps it would have been a good way to help kick-start OpenStep development.

Apple's original plan was to ship OpenStep as the next generation Mac OS, while running classic Mac OS software in a VM. This OS was eventually released as Mac OS X Server in 1999

But this plan was hugely unpopular in the Mac community. Microsoft and Adobe told Apple that there was no way they would port Office and Photoshop to OpenStep, and that killed the original plan.

This forced Apple to go back and tightly merge classic Mac OS and OpenStep, with the Carbon APIs and a ported version of the classic Mac Finder.

And thus, Mac OS X was conceived.

Three years later it was released.

Two years after that, it was good enough to use.

Two years after that, it was running circles around an aged Windows XP.

thought_alarm··on Old video game advertisements
So mid-90s. Seeing this makes me want to program my VCR to record the series premiere of Ally McBeal.
thought_alarm··on When CDs Launched in America (2016)
This technology was developed in the 1970s.

So, if you want to record 60 minutes of CD-quality digital audio you need about 600 MB of raw data storage. In the 1970s this was an impossible amount of data. 600 MB of hard drive space would cost as much as a house.

Without a way to easily store that huge amount of data, the CD could not be developed. And in the 1970s the computer industry had no answer to that problem.

The solution was ingenious.

They take a stream of digital bits, convert it in to standard broadcast video, and record it with a plain old VCR.

Broadcast video refreshes at 60 FPS, 245 scan lines per frame. If you draw 96 black-and-white pixels per scan line, that works out to three 16-bit stereo samples per scan line.

3 samples X 245 lines/frame X 60 frames/second = 44100 samples/second. Hence, the CD audio standard that we still use today.

So, to answer your question, they weren't burning CDs in '84. They encoding 600 MB of data on to plain old VHS tapes, and sending those off to be mastered.

thought_alarm··on Apple blocked the FlickType Watch keyboard then announced a clone of it
Alternatively, Apple prevented people from wasting their money on a feature that was about to be built into the OS.
thought_alarm··on The Macintosh Way (1990) [pdf]
That's a description of the early Macintosh Division relative to the rest of the company (which at the time was being kept afloat by the Apple II).

I'm sure there are groups within Apple that think the rest of the company revolves around them, as there are in most companies.

thought_alarm··on Xerox Alto Emulator
The Xerox Star is the machine that had a direct influence on the look of the Lisa software.

The Star was Xerox's big swing to try and enter the exploding business computer market.

Xerox assembled a huge team of software engineers to build a networked office system based on the initial research from PARC, but by that time most of the PARC researchers had long since left Xerox to join the rest of the industry.

The Star was the result of that effort, released the same year as the IBM PC, but it was a flop.

The Star and the Lisa were similar in that they're both the opposite of the "start small, do one thing really well, and iterate" methodology. Both were impressive in the long list of features they tried to introduce all at once, and both ended up as not very good systems.

thought_alarm··on Commodore 64 BASIC and KERNAL on Atari 8-bit hardware
> It's unfortunate that Commodore shipped BASIC 2.0 on the 64

There are many things that are unfortunate about the way the C64 was shipped. For Commodore, the entire point of the C64 was to slap it together and shove it out the door as quickly and cheaply as possible, to try and capitalize on the unexpected success of the VIC-20, which was itself slapped together when the VIC graphics chip didn't sell.

What's fascinating about the C64 is just how right that "slap it together and shove it out the door" strategy was.

Market price and timing were absolutely key to the C64's early success. All those bugs and missing features? The 3rd party developers would quickly take care of that.

The products that Commodore tried to make good, better than "shove it out the door" quality, like the Plus/4 and C128, were complete duds. Much better design, much better software, and irrelevant.

thought_alarm··on Build your own NeXT with a virtual machine
On US-English keyboards, the pipe character is in the regular spot, but the back-quote/tilde key is on the number pad instead of its usual location above the Tab key. The Escape key is above Tab (Because there are no function keys).

But it wasn't a problem, because if you typed "Shift+Escape" it would translate to the tilde character, just as if the back-quote/tilde key was in its proper location.

I always thought that was a clever touch.

thought_alarm··on Build your own NeXT with a virtual machine
It's worth it to install the developer tools. A few observations:

This is running a mix of older NextStep apps and newer OpenStep apps. For example, there are two text editors: Edit.app, and TextEdit.app. Edit.app is the original NextStep editor circa 1989, and TextEdit is the OpenStep reimplementation circa 1995. You can tell if it's a newer OpenStep app because it draws Windows-style focus rings around the buttons and controls.

OpenStep became Cocoa, so OpenStep code looks very familiar to anyone who's done Objective-C development for Mac or iOS. NextStep code, on the other hand, looks very foreign to modern eyes (There are no NS classes. It's basically just plain C and AppKit classes like Window, Button, View, etc.)

The TextEdit source code is included in the developer examples folder, written by Ali Ozer. Apple would continue to include the latest TextEdit source code with Xcode up until about OS X 10.9, if I remember.

This version of TextEdit is cross platform, so there's plenty of #ifdef WIN32 code.

There's no NSDocumentController, so there's boilerplate in the app controller, like checking if documents need to be saved before quitting, that a modern implementation would no longer need to worry about.

If you're old enough to remember using Xcode 3, prior to the Xcode 4 redesign, you probably found that IDE quite strange and difficult to master (I miss Xcode 3, myself). Xcode 3 was a descendent of the NeXT Project Builder circa 1996. Playing around with the older, and much simpler, Project Builder makes it easier to understand why Xcode 3 worked the way it did.

thought_alarm··on Build your own NeXT with a virtual machine
If you set up this VM, there's a tiff image of a young Scott Forestall hiding in the AppKit framework resources. See if you can find it.
thought_alarm··on Amiga at NASA (1999)

    > For more than a dozen years, Amiga computers have been
    > hard at work at Cape Canaveral's Hanger AE supporting the
    > launches of every American spacecraft including the space
    > shuttle.
12 years from 1999 would mean that they adopted the Amiga back in 1986 or 87. That time frame makes a little more sense. The Macintosh wouldn't have been a good choice if you need to interface with custom hardware (the Mac II arrived in 1987 with NuBus expansion slots, but that was brand new).

It's not entirely clear why, say, an IBM AT 286 with multiple ISA slots is less suitable than an Amiga 1000 with 68000 and a single expansion slot.

I guess it depends a lot on personal preference. That would be a very fun job, especially when you get to choose which platform to work with.

thought_alarm··on What is ranked-choice voting and why is New York using it?
It's not fool-proof.

In Canada in 1952, the province of British Columbia switched to a ranked ballot and it nearly ended in disaster.

The ranked ballot was an attempt by the traditional Liberal and Conservative parties to keep a rising socialist party from gaining power, as they assumed no Liberal or Conservative voter would choose the socialists as their second choice.

But there was so much animosity between the parties that most voters chose a fringe right-wing party as their second choice, as a protest vote.

The two traditional parties were wiped out and the fringe right-wing party narrowly won, despite having no leader and little governing experience.

Fortunately, saner heads took over the fringe party and quickly steered it to the political center as a sort of big tent party for former Liberal and Conservative voters. But it could have gone very differently.

The ranked ballot idea was quickly dropped, but the event shaped British Columbia politics for the next 60+ years. That fringe party elected by accident became the province's natural governing party.

I suppose the moral of the story is that no voting system can prevent irrational voters from shooting themselves in the foot.

thought_alarm··on iOS4 Built in SwiftUI
Screenshots: https://imgur.com/a/JNVaFBI
thought_alarm··on Apple is sued for telling you that you're “buying” movies
They use DRM, but movies and TV shows are downloaded as regular movie files. You can move and copy them to wherever you want.

Downloaded movie files can be played using either iTunes or the QuickTime Player, copied to an iOS device, or streamed to an Apple TV box.

thought_alarm··on Apple is sued for telling you that you're “buying” movies
If you purchase and download a movie you can copy it, back it up, and watch it whenever you want as many times as you want.

The lawsuit is about repeated downloads and streaming after the copyright owner has removed the movie for sale.

← PreviousPage 3 of 28Next →