fixing my macOS machine: couldn’t play any videos – YouTube, Vimeo, local QuickTime or VLC

Leave a comment

 I’m writing this so if it ever happens again I don’t have to remember it, but rather can use google (I mean “google” in the generic sense, because of course I use DuckDuckGo).

 What search turned up didn’t help. This one from 2015 was all about Flash. This undated one says it can be YouTube servers, graphics drivers, or browser plugins. All possible and I poked around, but no luck.

I use Little Snitch, and that has caused weird things in the past, so I disabled it, and the problem was still there. Huh!

What I was seeing is that YouTube stopped playing videos – instead, I got the perpetual spinning white circle, then the message if the video doesn’t start playing, restart your device. I actually did that once, and it fixed it briefly, then it started (err stopped) again. Plus, restarting this machine is really disruptive — it’s my server for so many services: minecraft, owncloud, logitech Squeezecenter, deadwiki (and more?) Further diagnosis: QuickTime player and VLC also weren’t working – they started up, then stalled, just like YouTube. This is a pretty deep system-level issue. Of course I checked my networking – in fact, my son was using Zoom on his machine throughout, and I was able to use youtube-dl to fetch a video that wasn’t playing, then wasn’t able to play it using VLC.

So I tried to track it down. Quitting Steam and GoG Galaxy seemed to fix things, but only briefly. What else could it be? Well, I do have a number of Audio Output devices – I switched the System audio out to my TV instead of my USB D/A converter, and Boom- it started working! Switching it back to the USB D/A converter, and everything stopped – there’s our culprit. It’s hung somehow, not accepting data, and freezing threads trying to write to it. So I unplugged it from USB (thus rebooting it) and plugged it back in, and now all’s well again.

Writing a CS-2 book!

Leave a comment

I’ve got a textbook in me and I’m doing my best to let it out. The idea is that it’s a second class in computer science for students who just learned how to program in a garbage-collected language (such as Python or JS or Swift or Java or …) and want to learn how it all works under the covers. I’ve always been a “let’s take this apart and see how it works” person, so when I took this course at UC Berkeley, oh, some 30+ years ago (!) it blew my mind – when it clicked that a single person can comprehend a computer all the way from transistors up through logic and ALUs to assembly code to a systems programming language, the lights shone down from the heavens and I was permanently hooked.

So, back in the day, we learned PDP-10 assembly code, and our systems programming language was C. Not too shabby – I think those two choices still hold up in a lot of ways. More recently, folks are using MIPS/SPIM and C++, which in my opinion, are both prematurely gray.

So, my high-level idea for this class is to use Logisim to introduce Logic and ALU design including key RISC-V components, use RISC-V as the assembly code, and then Rust as the systems programming language. For folks who have the extra time and want hands-on stuff, I’m planning on incorporating an under-$30 hardware option where you can build a system with a breadboard and an I2C interface, so you can write RISC-V programs that blink lights, sense things, and write to cool little displays.

So, that’s the idea. Like my 3/4ths book on cryptography, it’s going to be on GitHub, but I’m open to having a publisher also produce it in physical form. I’m already having a blast learning RISC-V and Rust. I’m front-loading project infrastructure, so I don’t have any chapters ready yet, but here’s a RISC-V reference card that I made as I was learning its assembly code. The repo for the book is here.

Domain Squatters Stink

Leave a comment

My previous post (3 years ago!) mentioned that discountdomainregistry was a bit wonky. Turns out they were circling the drain, and about 2 years ago were bought by web.com.  For some reason my “mecodegoodsomeday.com” domain didn’t come along with my other ones, and I had a difficult time convincing them I was the owner of the account, which interfered with my ability to renew the domain until…da da dum, a domain squatter (from Japan, of all places) registered my domain, and won’t let me have it back.  The web.com folks in charge of the snafu apologized to me, but didn’t make it better.  I’m bummed out.

Something’s up with my DNS provider

Leave a comment

I use(d) discountdomainregistry as my DNS host for mecodegoodsomeday.com and cheapimpostor.com. I got a weird spam from someone claiming to be them asking me to change my password, and shortly after, saw their site was either defaced, hijacked, or otherwise wonky.  It’s now down, and so are the DNS records for my two sites.

Hmmm.  Wonder what I should do?  Wait another day or two and find another host and try to migrate them?  It’s a puzzling state of affairs! Searching the web, I don’t see tons of other folks with my problem – I see a few tweets about the issue, so I know it’s not a “personal problem.”

[edit] Seems to be working fine now, though maybe under new management.  Feels a little iffy, but functional.

Revisiting my data+voice connection options

2 Comments

I currently use Comcast for Internet, Broadvoice for VOIP phone service, and AT&T with Edge for my mobile data (1st generation iPhone).  I decided to preorder an iPad.  The thought of another $30/month in data fees to get the iPad online while I'm on the road has me reconsidering all of my data connection options. So, I decided to get the Wifi only iPad, and figure out a better way.

I've decided to take up Verizon, Sprint and Clear on their "try it and return it if you don't like it" offers. So, for the next month I've got the Verizon MiFi, and the Sprint 3G/4G Overdrive, and for the next week, the Clear 4G home service plus 4G USB modem.
My goals are to get decent internet access from all of my devices, even when I travel (Chicago, D.C., California, sailing in the San Juans, camping), break even, or reduce my monthly bills, and have access to decent international calling rates. I'm planning on using a non-data plan SIM card in my iPhone, and use WiFi to access the internet from my data modem.
So, I'll carry these three devices around and take measurements, and report them here, along with reporting on ease of use and total billing for the various options.  I'm a bit shocked how similar it all pencils out, regardless of whose service I go through — it smells a lot like collusion in the market, but that's another topic.

Read and post comments | Send to a friend

just joined the iPhone borg…

Leave a comment

When the iPod touch was announced, I preordered one immediately — I didn't jump on the iPhone bandwagon because I didn't hate my cell provider, and I disliked the idea of being bound to ATT — I thought I wanted an iPhone without the phone. They said the touch would ship in late September, so I preordered and thought I had a few weeks to think about it.


Last Thursday I decided to cancel the order – the thing that most excited me about the iPod Touch was the ability to install 3rd party applications, not the 16 megabytes of storage, which is the only advantage over the iPhone, on the other side, it lacks a camera, speaker and microphone. Then, thinking more, I thought that the iPhone's "hacking scene" was going to stay more vibrant than the iPod touch's, mostly due to the challenge of carrier lock-in.  The final straw was when I thought of a way to get a cheaper plan than the $110/month "family plan" that was the minimum one Apple or ATT offered with the iPhone: which is to get a normal cheap AT&T family plan, then, as an existing customer, add an iPhone for $20. So, for $10 more per month than we were paying T-Mobile, I get unlimited data with my iPhone.

I picked up the phone at the AT&T store, then went to the Apple store to check out the accessories. What do I see there on the counter of the genius bar?  A stack of iPod Touches!  Boy am I glad I canceled my order — they were probably about to ship mine!  Worse still (or better, given my decision), it would seem the "jailbreak" operation that allows you to install 3rd party applications on the iPhone does not just work on the Touch. Zoinks would I have been frustrated.

On the other hand, doing the jailbreak on my iPod wasn't a walk in the park.  I found couldn't just do it by following directions — John L. could plug mine into his machine and do it, so I knew I had a shot, but it took a while.  I finally had to delete iTunes and reinstall it from the .dmg file to reset the weird state my machine was in.

Now I'm a happy 3rd-party-application-running iPhone owner.

My favorites so far:

AppTapp installer (the bootstrapping operation to get stuff on, and a very nice package manager)
Lights off – a gorgeous logic game. Apple could have designed it.  
FiveDice – a very nice implementation of Yahtzee.
Term-vt100 – the best terminal app, silly, but also very cool.
NES – an NES emulator. Not perfect, and the touch-screen controls are tricky, but shows lots of promise. M.U.L.E.! Solar Jetman doesn't work on it yet — I'll donate something to the project.
Summerboard – once you have this many applications, summerboard lets you flick through your applications.

There's a lot of not so good things out there too — proof of concepts, and "gee, look what I can do" — kind of like the early Macintosh games. But the above titles give me hope that this platform will last for a while.

Read and post comments | Send to a friend