The night before

Posted in Commentary, Musings on December 31st, 2019 by juan

Well, the decade is almost over. I know, not technically, but the 10’s are done for and the 20’s start tomorrow. It’s really hard to believe that not so long ago, we were going to start the new millennium. In many ways, it feels like Y2K was just yesterday. In many other ways, so much has happened. The world is different. We have the most politically divisive administration happening right now. Our borders are tightening and disappearing at the same time (i.e. the wall and the multinational). The Internet is not new, and is in fact a core service – not too different from power.

I’m not going to go political and will likely ruminate on the other changes later. For this one, I’m going to focus on the internet and maybe some predictions:

A dozen years or so ago, when I first started this blog, self hosting was not unheard of, but also not very common. Today, it’s in a similar place, but for different reasons. There’s a ton of services that offer blogging platforms for next to nothing. However, they seem to be ephemeral. Many people are also choosing to use one of the various social networks as their blogging platform. I’m not a fan of those for a number of reasons, but the biggest is the pernicious nature of their monetization. Others have written extensively on that, so I’ll skip the diatribe about being the product. For me, at least, self hosting is eminently more doable and practical now. The cost of storage is essentially zero. Back when this got started, gigs cost real money. Now, TBs are around $15/TB. That means a gig is 1.5 CENTS. A gig of writing will take a lifetime. What’s more amazing is the transfer cost has reached essentially zero as well. I have full symmetric gigabit internet coming into my home via a fiber link. The speed of my blog is nearly instantaneous. Even if I post images, they are automatically optimized by WordPress. If you click on one of them, it’s expanded and even at full resolution sending a 3-4MB image is fractions of a second. That’s nuts.

This same "freeness" of storage and bandwidth has led to an expansion of gizmos and services that are internet connected. I run a moderately complex home network. It includes several automations (lights, garage, doors, alarms, etc.) as well as several voice assistants (Alexa, Siri, etc.). Add up all the gizmos and gadgets and my home now, on average, has about 120+ things with IP addresses on them. That’s nuts. And it’s only going to get crazier. I have a few upgrades planned over the next few weeks that will help me manage that better (switches with better VLAN support, faster storage, etc.). I’ll write about those as I go through them, but in the end, I suspect I’ll be ready for a cambrian explosion of internet things. And I’ll have to worry about security – even more. The fact that I have this bandwidth and all these gizmos means that my attack surface has exploded. The fact that I have to create an enterprise level network to manage it is crazy. The fact that I have to do it with some serious skills and that it’s not been figured out as a simple appliance is crazy. Maybe there’s a business idea in there somewhere.

Anyways. It’s nuts. The last decade has changed many things and the home network is one of them. It’s not what I started to write about, but I’m glad I put it down. Let’s see how I/we adapt to this over the next decade.

Another rabbit hole

Posted in Commentary, Time Sink on December 30th, 2019 by juan

One day at my daughters karate class I noticed one of the other dads writing on his notepad. He had small handwriting like I do and his pen was … different. It was a fountain pen but a cheap one. So I got to talking to him. He pointed me to the brand. Platinum Preppy. They are about $9 each. Dirt cheap. You can also get refill cartridges that make this an extra super good value…

But it’s the start of a rabbit hole.

The first test for these was flying. Fountain pens have a reputation for not flying very well. This is largely deserved unless you take some precautions. Not knowing much about this, I did a quick look on the YouTubes and found this video. That was super helpful, but several hours of GouletPens videos, I was hooked. It took a while for me to internalize the content and then decided to step it up a little bit by upgrading with one of these Plaisir. For $13 or so you get a nicer looking pen. I couldn’t find them with the Extra Fine nib, but the nib from the Preppy and the Plaisir are interchangeable.

But … it still looks cheap.

So further down the rabbit hole I went. Spending more time with the Goulet video channel, I ran into one that talked about good traveling fountain pens. They ranged in price from about $50 to crazy money pens. Two of them stuck out. This upgraded Platinum and this TWSBI. The Platinum is about $100 and the TWSBI is about $65 before shipment and all that. I opted for the TWSBI because it looked cooler and it was refillable rather than a cartridge one. I liked the extra capacity of the refillable and the fact that it would let me try out different inks. And, I liked the idea of giving Goulet some money for all those videos

Turns out that that was another rabbit hole. Inks come in "wetter" and "less wet" varieties. Who would have known? The wetter ones flow faster – which is probably a good thing if you like to write with nibs larger than EF. The dryer ones are thicker and will produce thinner lines – which also don’t bleed through the paper as much. Speaking of paper, that’ll be another post where I get into the notebook rabbit hole. The first ink that I tried was a Waterman Black ink. Not knowing better, and having heard that brand before, it seemed like a good idea. It was only after I did that, that I discovered that it’s well known for being a particularly wet ink. Some more googling, and I found that the Pelikan 4001 varietal should work better. And it did.

But I wasn’t done.

Filling a piston filler, like my TWSBI, apparently has some magic involved. I couldn’t get a full reservoir. I tried several methods. I took the pen apart and cleaned it. Took it apart again and lubricated and cleaned it (turns out that’s important). Tried several variations of the refill and I could only get 1/3 of the reservoir filled. But … TWSBI makes a special gizmo that makes it stupid easy. Another $20 or so later and I finally got a full fill of the reservoir.

The line I produce with this TWSBI is not as EF as the Platinum. I suspect part of it is the pen and part of it is the ink. However, it’s pretty good and … it does write very very nicely.

But I haven’t flown with it yet. That test comes in a couple of weeks. I’ll make sure to bring some extra tissues in case I get a blow out, but theoretically the vacuum fills should not have that problem.

More on that later.

Tags: ,

Speeding up low priority stuff on a Mac

Posted in Commentary, Geekfest on December 29th, 2019 by juan

I’m in the middle of taking a MacBook Pro I have that’s been sitting idle and setting it up as my kid’s computer. First thing I had to do was to wipe it clean. Then a reload (High Sierra was loaded on it). As part of the setup, I stupidly turned on FileVault.

I then went to upgrade to Catalina and I have to wait HOURS while the drive is encrypted. That’s ridiculous. It’s a brand new install with nothing on the encrypted drive but the basic OS install.

However, I did find a neat little trick and figured I would share:

sudo sysctl debug.lowpri_throttle_enabled=0

That disables the low priority mode for a bunch of services like Time Machine and FileVault. The progress bar is still showing hours, but it’s significantly faster. In the few minutes I’ve had it on, the progress bar has moved from ~20% to ~50%!

Great tip for future reference.

Oh, and this does not persist across boots. Not sure I want it on all the time, but in case I do, there is a mechanism to do that via Launch Daemons. I’ll experiment with that on this MBP when I’m running Catalina. I fear that it will not work there because of the new sandboxing of the OS. More on that later.

And things change

Posted in Commentary on December 28th, 2019 by juan

The lovely Mrs. and I did something for the first time. We left the kids at home alone without a babysitter. This feels like a major life milestone, specially for since I’ve had little ones in my life for 26 years.

We went for sushi at our favorite place, Sushi Nami. As usual, it did not disappoint. William, the head chef, did us a solid by bringing out some rather unique things, including the pictured lobster. He was very happy to see that nothing went to waste and we (I) ate the legs and the inside of the lobster. If you haven’t done that, you are missing out. Eat it like you would a crab. The meat is rather sparse, but what you do get is absolutely delicious.

And sorry for the neon. That’s the Mrs’ idea of cool now days.

On cast iron

Posted in cookery on December 27th, 2019 by juan

For Christmas I got a cast iron skillet to go on my green egg. I’ve been meaning to get one, so that was a nice present. One of the big reasons is that I wanted to see how much yummy crust (i.e. Maillard Reaction ), I could get for meat. My, very well raised, daughter asked for steak (and fixings) for dinner for her birthday. So, I tested it.

The result? The best steak I’ve ever cooked. Here’s how:

  1. Get some good prime steak
  2. Get the steak to room temp ahead of the cook (2hrs or so)
  3. Salt and pepper to taste
  4. Put the cast iron over a direct heat and set the temp to be about 500 or so on the egg. The cast iron will be much hotter. Check out the thermometer reading in the picture. It read 640F
  5. After the egg is stabilized, put a generous amount of oil on the flat side of the cast iron. I used a little over a tablespoon. I also used avocado oil which has a very high smoke temp
  6. Put the steaks on and don’t touch them for about 2 minutes.
  7. Check the underneath real quick and make sure you have that real good sear
  8. If you have the real nice crusty sear, flip it over. If not wait at most one more minute and then flip over.
  9. Cook for another 2-3 minutes. I didn’t get the same sear level, but it was close. It’s really easy to over cook, so I erred on the side of having one side super presentable and the other almost as good. Turns out that was the right choice.
  10. Let rest for about 10 to 15 minutes
  11. Eat the best steak you’ve ever had (or so my very biased, but also very educated family says).
Tags: ,

On cookery

Posted in cookery on December 26th, 2019 by juan

Since I started this thing back in the day, both the Mrs. and I have significantly improved our #cookery. I figure that this would be a good place to share some of that moving forward.

I’ll start with something rather easy, but always tasty. The picture is of a 9lb (pre cooked weight) rack of pork. We basically don’t like eating pork chops cooked any other way. Costco sells these during holidays and they are a bargain. This whole rack came in under $20 and fed 7 adults and 3 kids with some leftovers.

The cooking? Couldn’t be simpler. I make sure to bring it up to room temperature by taking it out of the fridge at least a couple of hours ahead of time. I prep it with just a salt and pepper. The salt is used a little bit more liberally than the pepper, but use your own taste to judge.

Then on the Green Egg, I set up for indirect cooking at 350 degrees. Once that’s up to temp and stable, put the rack in with a meat thermometer in it. Avoid the bone and go for the thick part of the chop. Cook until it’s internal temp is 141-142. Take it out, put it on a carving board, cover with foil for at least 15 minutes. Slice and serve. It’s awesome.

Oh and for those that think it’s too pink? You are wrong.

Tags: , , ,

One more basic diversion

Posted in Commentary, Geekfest on December 26th, 2019 by juan

I found and loaded a copy of BBCBasic on the AltairDuino. This is a basic I never used when I was really running CP/M but it looked interesting. In the veins of the previous MBASIC post, I ran the sieve on it to see how well it ran:

[2019-12-25 10:45:15] >LIST
[2019-12-25 10:45:17]     5 PRINT "Start"
[2019-12-25 10:45:17]    10 DIM flag%(8191)
[2019-12-25 10:45:17]    20 count = 0
[2019-12-25 10:45:17]    30 FOR i = 1 TO 8191
[2019-12-25 10:45:17]    40   flag%(i)=1
[2019-12-25 10:45:17]    50 NEXT i
[2019-12-25 10:45:17]    60 FOR i = 0 TO 8190
[2019-12-25 10:45:17]    70   IF flag%(i+1)=0 THEN GOTO 150
[2019-12-25 10:45:17]    80   prime = i+i+3
[2019-12-25 10:45:17]    90   k=i+prime
[2019-12-25 10:45:17]   100   IF k > 8190 THEN GOTO 140
[2019-12-25 10:45:17]   110   flag%(k+1)=0
[2019-12-25 10:45:17]   120   k=k+prime
[2019-12-25 10:45:17]   130   GOTO 100
[2019-12-25 10:45:17]   140   count = count + 1
[2019-12-25 10:45:17]   150 NEXT i
[2019-12-25 10:45:17]   160 PRINT "End, Primes =", count
[2019-12-25 10:45:17] >RUN
[2019-12-25 10:45:19] Start
[2019-12-25 10:50:49] End, Primes =             1899
[2019-12-25 10:50:49] >

As you can see, the code is slightly different. The indentations are provided natively by BBCBasic. Interesting note is that I couldn’t LOAD(yes, it all has to be caps) the code. This Basic is expecting a tokenized form. However, I did some sleuthing and found out you can *EXEC "FILENAME.TXT" and it will import an ASCII file in.

Anyways, the result above is pretty clear. This basic runs the sieve in 5 minutes 30 seconds or roughly 21% faster. Cool. Wish I’d know about this back in the day.

And it’s Christmas

Posted in Commentary, Musings on December 25th, 2019 by juan

Santa has been extremely generous this year. The kids are super happy and the lovely Mrs was very surprised by her presents. That’s always a good thing.

For me, the presents were also very nice. However I’m excited about the revival of this blog. The tools available to post are just amazing compared to what I had back when I first did this. WordPress itself has evolved amazingly. Looking forward to playing with that. But the fact that I’m writing this on my phone and will soon be posted to the site is just … well cool. So cool.

And an Altair diversion

Posted in Commentary, Geekfest on December 24th, 2019 by juan

Back to the future with an Altair!

Retro computing is one of those things that I dabble in. I’d like to do it more, but there’s this thing with time that I don’t have a lot of. But during one of my breaks this last year, I was able to put together one of the AltairDuino Altair replica kits. It’s cool because of all the effort that went into building it and the fact, that I have a dedicated Altair sitting next to me on my desk. One of the semi-recent updates to the emulation code allowed me to run Z80 CP/M (as opposed to the real 8080 stuff). Lots of fun code can be run this way including Turbo Pascal and such.

But – I wanted to know how fast this was. The canonical test of the time was/is the Sieve in basic.

I took the code I had laying around from my experiments with my Atari 800 and modified it to run in the more limited space of the simulated CP/M environment. The change was to put a % next to the flags variable. In MBASIC that marks it as an 8 bit integer. Without that, the program runs out of space. Here’s the code:

10 DIM FLAG%(8191)
20 COUNT = 0
30 FOR I = 1 TO 8191
40 FLAG%(I)=1
50 NEXT I
60 FOR I = 0 TO 8190
70 IF FLAG%(I+1)=0 THEN GOTO 150
80 PRIME = I+I+3
90 K=I+PRIME
100 IF K > 8190 THEN GOTO 140
110 FLAG%(K+1)=0
120 K=K+PRIME
130 GOTO 100
140 COUNT = COUNT + 1
150 NEXT I
160 PRINT COUNT

And here’s the time stamped output of the run:

[2019-12-24 13:59:10] run
[2019-12-24 14:06:09]  1899
[2019-12-24 14:06:09] Ok

How’d I get the timestamps you ask? Well a bit of background on that. The Altair didn’t come with a "console". You used a serial port to connect it to some sort of terminal. What I’ve done is used a USB to serial cable that connects my iMac to the Altair. I then used minicom which I install via homebrew. One of the options of minicom is to timestamp all the output lines in the serial connection.

Anyways. My little emulation thing ran the sieve in just under 7 minutes. Comparable to a time appropriate machine. Cool.

A long time coming

Posted in Commentary on December 23rd, 2019 by juan

It’s been 3 years since this site had any updates. The issue has been mostly laziness, but that took several forms: a) I needed to move my site to a modern OS, b) I’ve been too focused on other things, c) didn’t really feel the need to blog any more.

Well that’s all changing. I’m now on a new, current, much more secure server (still self hosting). The DCF configuration has changed dramatically since I posted this. Pretty soon you’ll see that I’ll update to use SSL for this sit as well. I’m also going to start blogging more frequently for work (internal and maybe more externally as well). That means that I need to get my blogging muscle back to shape.

Stay tuned. The ramblings will begin picking back up soon.