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.

Blog posts are back!

Posted in Commentary on February 12th, 2012 by juan

After a very long hiatus, I’m going to start blogging on my personal site again. If you are a new reader, welcome! If you are an old time reader (all three of you), sorry for the delay. Other things have been taking time. Some of those I’m blog about.

so I remember

Posted in Commentary, Geekfest, Musings on March 10th, 2011 by juan

One of my clear recollections of my early computer usage was the day that I bought my first hard drive. At 5 MEGA BYTES it seemed a luxury beyond all imagining. It only cost me $3,000.00. In 1980.

Had the same feeling in the mid 80’s when I upgraded my Amiga to 2MB of RAM (remember the sidekick?) and a 40 MB hard drive. It seemed like RAM beyond measure. Storage beyond possible utilization.

In the early 90’s my work gave me a computer with a super high rez screen, UNIX, 4 MB of RAM, and 1GB of hard disk, and a SPARC Based UNIX operating system with INTERNETS. Mere PC’s were useless to me. Imagine the _power_ of my configuration.

In the early 2000’s (naught’s?), my laptop came with dozens and dozens of GB’s of hard disk space, and a Gigabyte of RAM. It used windows, but that’s before OSX became stable.

By the mid 2000’s my laptop had a 17″ screen with super high rez screen, 120 GB’s of hard disk, 1.5 GB of RAM, and UNIXes. Welcome to the vortex of Steve. The power was mind boggling.

In the mid 2010’s my laptop still had a 17″ screen, but hi-rez to a new level, 8GB of RAM, and 500GB of HD. The processor had two cores each of which is nothing less than a super computer.

By the late 2010’s I got the first desktop I’ve used consistently since the early 90’s UNIX workstations. It has a 27″ inch screen, 8 cores of super duper computer horsepower, more RAM than I have used yet (no swap), it’s connected to 20+ TB of storage in my home gigabit network. My DCF has officially exceeded a [LOC](http://libraryofcongress.gov).

My current laptop has 128GB of storage, 4GB of RAM, and two cores.

Say what?

What just happened? When did it become a feature for less to be more?

Simple: we have too much juice. All around. What we __can get__ and what we __use__ are worlds apart now.

Interesting.

Tags: , , ,

first flight

Posted in Commentary on March 9th, 2011 by juan

Sitting on a plane right now. Flight got delayed because of a “mechanical problem.” Good news is that I was upgraded and we were allowed to board early. This is the first flight. Experienced the joy of 11″ (no comments from the peanut gallery). Check it:

![First Flight](http://dl.dropbox.com/u/360385/img/airplane.JPG “Flying with Air”)

Tags: , , ,

It worked

Posted in Commentary on March 7th, 2011 by juan

## It’s nice when a theory works
One of the nice things about my job is that there’s no set hours. That’s nice when it works out to my advantage. However, most times it doesn’t and my job means I’m working all the time. Witness tonight. I’m getting ready to launch a product and need to develop much material before my hard dead stop. So, after putting the wee-one to bed I spent a few minutes with the Mrs. and wandered over to my office. My office is in my basement. Our media entertainment complex (big screen HD tv, couches, tivo, etc) is also in the basement, within shouting distance of aforementioned office. After a couple of important calls and some deep powerpointing on the iMac, my wife asked me a question. In the past, I would have yelled (as in elevated voice, not angry-white-man) back. Or, I would have stood up, and in a huff gone over to the MEC, answered whatever question had come up, and then return.

However, tonight, I just announced “one moment darling.” Closed all open documents on my iMac, grabbed the MBA and went to my comfy couch. There, I talked to the Mrs. for a few, and then opened up powerpoint on the MBA… and … resumed working.

YES!

So – the workflow was:

1. Work
2. Wife asks questions
3. Save all work
4. Close all apps
5. Grab MBA
6. Open all apps
7. Open all work
8. Resume work

## On to Lion

That was really cool. My data transparently migrated to all my devices and I was able to move from where I was. Problem is that I had to remember to close all open apps. My state didn’t transfer from one machine to another. Now how cool would it be if __state__ transferred that cleanly? One of the new cool features of OSX Lion is that you don’t _save_ work. It’s automatically done for you. See where I’m headed? Another feature is that the position and state of your applications is preserved across reboots. Now you see where I’m headed?

How cool would it be if that state was stored in a format that’s cloud enabled?

In this fantasy world (Steve, o steve, make it so) – my workflow would have been:

1. Work
2. Wife asks question
3. Grab MBA
4. Resume work in different location

How f’ing cool would that be?

Tags: , ,

faster, must do faster

Posted in Commentary, Geekfest on March 6th, 2011 by juan

## Act without doing

One of the big pleasured I found since switching to the mac is [Quicksilver](http://blacktree.com). For years it was _the_ way for me to launch, open, do anything. If you’ve never used it, it’s definitely worth you looking at. Unfortunately, the developer Alcor, has moved on to a lucrative job at google and left it’s future to the tubes. When leopard came out, QS broke (supposedly – it’s fixed, but I’m fickle). That sucked for me. I’ve been looking for a replacement since. There’s a ton of products that kind of do the same thing: [launchbar](http://www.obdev.at), Google’s [quicksearchbox](http://google.com/quicksearchbox), and [butler](http://manytricks.com/butler/). But – I’ve just started using [alfred](http://www.alfredapp.com/). I like it because it’s FAST, lightweight (for me with full indexing of everything, it only consumes 12.5MB of real RAM), and it has a clipboard manager (when you buy the powerpack).

The developer is very active on twitter and on their support forums. For $15 bucks (was on special at [AppSumo](http://appsumo.com)). It’s well worth the bucks.

Tags: ,

Post PC world

Posted in Commentary, Geekfest, Musings on March 6th, 2011 by juan

## It’s about who uses it

So I’ve been ranting about how, for me, the iPad is not the device for content creation. After further reflection, that needs to be revised. I should change my tone because it could be for others. At the iPad 2 introduction The Steve made a point of mentioning that this is the intersection of technology and liberal arts. That’s it. That’s who can use the pad for _creation_. My world is emphatically not liberal arts. My passions all revolve around technology. My work is _all_ technology. Interestingly, my content creation, although putatively creative, is all technology driven. The closest I get to liberal arts is … media consumption. Aha.

Now, the truly creative folks – the artists/authors/painters – they are typically not technology driven. They want something to capture their creative expression in an intuitive way. They could care less about the megaseekels and geegasquirtz. They care that it turns on, they point, and it does. iPad.

I get it.

But not for me.

Tags: , , ,

Was Sun right?

Posted in Commentary, Geekfest on March 2nd, 2011 by juan

## My move to the cloud
It turns out that my move to the cloud might be what everyone else is going to be doing. Over the last week or so, I’ve changed the way I look at my computing devices. For a very long time (well just about forever), I’ve really only had one computer that I used as “the computer.” That’s despite having a ton of hardware laying around doing things in my basement and my desk. Those “other” computers were utility devices: my vmware farm for email/http/etc services, my mac mini for desktop/utility services, my netapp/open solaris boxes for file storage. My laptop was still the primary holder of what I considered critical functionality and data. If I lost or broke my laptop, I’d be in a world of hurt. Well, not really, backups are a good thing. I’d be in a world of “recover, waste time waiting, and then do work.”

With my acquisition of a truly powerful desktop (iMac 27″ core i7 – woot!), I needed to make a change. I’d prefer to work on my desktop when I can, and then go mobile when necessary – and do it seamlessly. The email part was easy, or should have been easy. I’ll post on that later. What was not easy was the data. In retrospect, it should have been easy, but I made it hard for myself. In my ultimate fantasy world, I would have liked a complete copy of all data, application state, and application configuration transferred from one machine to another. That way I could literally get up from my desk, move to the couch with the laptop, and just continue. Sure – I could have done that with remote desktop of some sort, but that’s not really an option when I’m on a plane or in a hotel with crappy internet. In the ideal world, I would only be sacrificing compute performance and screen real-estate for mobility. To get there, I played with a ton of sync options, both commercial and open source: rsync, goodsync, chronosync, etc. Unfortunately, none of them really give you the state of applications, and in the case of chronosync – your computers have to be physically close (as in the same network) to effectively keep them in sync.

My path to the cloud became clearer with the acquisition of the MBA 11″. Even though it’s a top of the line 128GB SSD model, it simply does not have the capacity to hold all of the data that I kept on my previous core machine – my 17″ MBP. That meant sacrifice. Out of sacrifice came clarity. Before this, I had not fully committed to the iMac being “the computer”. That’s because I wanted full access to everything while on the road. Well, the 11″ is going to be the on-the-road machine. I can’t have full access on it. The decision was simple: the iMac became the ‘puter. All of my iTunes and iPhoto stuff left the MBP and moved over to the iMac. With that move, I loose the ability to sync my i-devices on the road, but that’s ok. I’ve not been fanatical about that anyways.

All that was left was the problem of having my core important data available to me at all times on all computers. Enter Dropbox. Finally, I purchased a paid account on the dropbox service, and sync’d all of my core data to the cloud. My work flow had to be changed a little bit based on where I placed my stuff. Instead of ~/Documents/xxx, I now place it in ~/Dropbox/xxx. That service now automatically sync’s all data to the cloud and back to my devices – even my iDevices if needed.

### the network is not the computer
Sun’s vision was to make all services cloud based – including compute. The only thing you would need is an access terminal and your data and applications would bet there. The access device really needed only enough horsepower to run authentication, the network, and the display. VMware’s view and the rest of the VDI gang are headed down this same path. For much of the enterprise needs (think call centers and things like that), this is __the right way__. But – for me that means I have to be on the network. I’m not always on a reliable network or even a fast one. I have to have local compute and storage to do what I need to do. In all honesty, I think a very large segment of the non-home, non-drone corporate worker user base is in the same boat. The problem has been exactly the path that I went through: how to make the data and the compute always available.

### where I ended up at
After much mashing of teeth, and angst, I ended up here:

– The iMac is my central compute platform and also acts as the master sync for all data, including the iDevices
– Core data is hosted on Dropbox and automatically sync’d to all my devices, mobile or not (great value for $100/year)
– My MacBook’s have essentially become interchangeable. Use the Air for when I need light weight and simplicity (most of the time). Use the MBP when I’m traveling and need a desktop replacement (large screen, compute horsepower, etc.)
– The idevices (iPhone, iPad) have become more useful because I can use the data from Dropbox to do quick work on recent data

To accomplish this, I had to make one major workflow change: Close all apps at the end of the day. Because OSX is so reliable about sleep mode, I’ve gotten into the habit of just closing my laptop and moving on. Many times I don’t even save my work. Really. It is that good. Well, the sync thing requires that I do not do that. It’ll take a little while to break a 7 year old habit, but that can be done.

Anyways, if you think about what I have gotten to, it is this: My compute devices are interchangeable and I can select which one I use based on practical location requirements (i.e. am I sitting at my desk?, on a plane?, at a customer’s?, etc.). As a side effect of this, my data is now also safe. It’s on the cloud, and multiple devices. Loosing any device due to theft, negligence, failure, etc – means little other than replacement of the device. The important stuff, my work and data, are simply re-instated. Pretty damn cool.

Tags: , , ,

My public and private cloud experience

Posted in Commentary, Geekfest, OOTT on February 27th, 2011 by juan

## So – I lost some images…
Today I had to do some errands, one of which included me going to a car wash. It was more than just a simple wash – it was the first wash of my wife’s 1.5 year old car. Yeah – that’s not good, but it is what it is. Naturally, that wash took some time \(and money\). During the wait, I fired up my MacBook 11.6″ \(weee!!!\). I looked and saw that there was no open wifi around. But not to fear, I whipped out my trusty clear hotspot. In a manner of a few minutes, I’m settled and I start doing today’s stuff.

Today’s stuff happened to be an update my daughter’s lacrosse website ([rhsgirlslax](http://rhsgirlslax.com/ “RHS Lax”)). I had to put some of the sponsor images on the website via a pretty cool WordPress plugin called [Ad Squares Widget](http://www.primothemes.com/ “Ad Squares”). It felt good to be happily resizing images, redoing some of the logos so they would fit, etc on a really small form factor computer. Definitely something I could not have done (well easily) on an iPad. Anywho, about halfway through the mini project, I noticed that the plugin had been updated. WordPress does a nice job of notifying you about this. So – not thinking twice about it, I told wordpress to go ahead and update the plugin. While it was doing that, I finished fixing the code for the plugin and then added all the URL’s to the adds into the widget. But, when I went to reload the site, none of my images worked. A serious WTF moment later and some digging showed me what should have been pretty evident all along. The example code from the plugin places the images in the folder with the plugin. I did that. Well – when you update the plugin, it doesn’t update the directories and files – it replaces them! BAM! All my images were gone.

No big deal, right? Just upload them to the server again and poof. Well, that wasn’t so easy. The 11″ MBA just came into duty and all I had was the images that I was working on that day (got them from my email). Well – the good news is that the iMac that had those images was at home. A quick ssh to my home server and a hop over to the iMac and I was there. Then I ran into a simple problem: how do I efficiently transfer those files back to my 11″. That’s when Dropbox did a double whami AHA! on me. A quick “mv rhsimages ~/Dropbox” later they were in the cloud and seconds later on the 11″. Wee!!

It gets better. I serve the website from my home server via my DSL line that has a relatively meager 750Kb/s uplink. It works well for most things, but it sure isn’t enough to quickly serve something with tons of images. Well Dropbox, has this public folder thing. If you want, you can generate a URL to any file in that folder. So rather than copying those images back to my server, I left them on Dropbox and grabbed the public URL. I used that in the Ad Squares page and now my daughter’s site is being served a zillion times faster.

So – what is this then? I like to think of it as my cloud migration experiment. I’m doing a blend of private (my vmware farm with the web server) and public (Dropbox) clouds to do something better. How about that.

Tags: , ,