I Moved

September 25th, 2021 Uncategorized

It’s been quite a while since I updated this. I’ve since moved to Redding, California. I bought my first house, and it’s all still new enough that it’s all still fun and exciting.

Order of Operations in comp

February 24th, 2020 Clojure

I’m digging back into Transducers in Clojure. This time, I think I might actually understand them.

One thing you have to get used to is replacing your reliance on the threading macros -> and ->> with the (comp) function.

TL;DR — (comp) runs in the same order as threading.

(sequence 
  (comp
    (map #(str % "a"))
    (map #(str % "b")))
  ["0", "1", "2"])

=> ("0ab", "1ab", "2ab")

The same applies when you (comp) a (comp); the order follows.

(let [p1 (comp (map #(str % "a"))  
               (map #(str % "b")))
      p2 (comp (map #(str % "y"))
               (map #(str % "z")))]
  (sequence (comp p1 p2) 
            ["0" "1" "2"]))

=> ("0abyz", "1abyz", "2abyz")

Installing old Adobe CS6 apps on a modern Mac

June 24th, 2019 googlefood

Adobe no longer has a public web page to download the DMG for their old CS6 apps. Fortunately, you can still get to them by logging into your Adobe account.

– Go to “Order History”
– Click on the Order Number for your product
– Click on the “Downloads and Serial Numbers” link
– Follow the “Download .dmg” link.

Download the DMG file and open it.

If you try to run “Install.app” it will fail with an error popup. Here’s how to get around that.

1. Open a Terminal window
2. cd /Volumes
3. cd into the directory for your product or bundle
4. cd Install.app/Contents/MacOS
5. ./Install

Clojure: Inverting a nested hash map

October 26th, 2018 Clojure

We all know and love (assoc-in a kv v)

How can we take an existing map and invert it to the assoc-in commands that would create it?

I’ve been struggling with this problem for far too long. I finally found a nice solution by Jay Fields

Cisco CSR 1000V “license boot level” broken

May 9th, 2017 googlefood

So you’re trying to install a Cisco Cloud Services Router 1000V. You try to install the Evaluation license that you got from Cisco.

But the command doesn’t work. :(


router# conf t
router(config)# license boot level ax
^
% Invalid input detected at '^' marker.

Solution: At least in AWS, there are several different classes of CSR. Once of the discriminations is “License Included” vs. “Bring Your Own License (BYOL).”

You can only install an eval license on a BYOL version. You’re probably trying to install it on a “License Included” version.