Bram's Dev Blog

home

100 Days of Code Day 20 report - Homebrew CSS Selectors

09 Sep 2018

Sublime text alias and homebrew broken

Lost some time today after I wanted to merge my fix for the header font

» git merge issue-39 subl -n -w: subl: command not found error: There was a problem with the editor ‘subl -n -w’. Not committing merge; use ‘git commit’ to complete the merge.

The alias I had set for Sublime Text (“subl”), didn’t seem to work anymore. I thought I had installed with the homebrew cask install but I can’t find any trace of that install. Homebrew is a package manager for Mac OS X. Within the whole Homebrew ecosystem, Homebrew Cask goes beyond the installation of CLI packages, but also takes care of nicely installing bigger entire Mac OS X Applications automatically, like in my case, the Sublime Text editor.

Normally, I try to install everything with Homebrew cask, because, as is now the case, I run into trouble wondering if I installed something manually or through cask.

And when running “brew cask list”, instead of getting the list of installed casks, it’s now suddenly complaining about my java7 cask with

Error: Cask 'java7' is unreadable: undefined method `undent' for #<String:0x00000001032f89c0>

Found out it was not my fault and applied the current one liner solution that gets suggested here.

Noticed that the cask sublime-text3 is no longer maintained, and that it’s now just called sublime-text. Uninstalled the old sublime-text3 cask and installed the new, generic one.

I failed to uninstall the sublime-text3 cask, but it seems like my new installation of the sublime-text cask next to it just works and also fixed the alias for ‘subl’.

In case I ever want to fix it further, here are the errors I got during uninstalling/zapping:

» brew cask uninstall sublime-text3
==> Uninstalling Cask sublime-text3
==> Running uninstall process for sublime-text3; your password may be necessary
==> Quitting application ID com.sublimetext.3
Error: It seems there is already an App at '/usr/local/Caskroom/sublime-text3/3103/Sublime Text.app'.
 ✘ bram@Sugarsmooth  ~ 
» brew cask zap sublime-text3
==> Implied "brew cask uninstall sublime-text3"
==> Running uninstall process for sublime-text3; your password may be necessary
==> Quitting application ID com.sublimetext.3
Error: It seems there is already an App at '/usr/local/Caskroom/sublime-text3/3103/Sublime Text.app'.

CSS Fix one: make navbar white blue, and then fade to white

Where I was stuck yesterday:

.navbar-custom a {
  color: #005989;
}
.navbar-custom.top-nav-collapse-font a {
  color: white;
}

Fix I ended up implementing that worked, by sheer trial and error and not by really understanding (yet) how the overrides really work & what takes preference over what. Deployed!

.navbar-custom a {
  color: #005989;
}
a.top-nav-collapse-font {
  color: white;
}

Day 21 Plan

Future days - Analyzer.atmire.com work

Future Days - other ideas

  1. Switch to a different project: start working on DSpace 7 Angular
  2. Setup IDEA so I can start editing these blogposts from there, instead of in a text editor
  3. Developer productivity: Get my IntelliJ IDEA Shortcuts in order (CMD+1, CMD+/, …)

Future Days - Atmire.com work

Investigate and work on search engine optimization (SEO) for the main atmire.com website.

Future Days - Learning just for learning

Sustainability - Raising the stakes - Looking for sponsors

I have raised the stakes by

This way, every day would be a win. These are the rules that I’ll apply:

  1. I can anticipate or fix a lost day by doing an hour extra the day before, or an hour extra the day after. In theory this means I can maximally compensate a streak of 2 missed days.
  2. Goal is to have a steady frequency, so I can’t just do 8h on a sunday to get myself off the hook for the next 7 days.
  3. Sponsor commitments are fully voluntarily: any sponsor can back out at any time.
  4. My commitment is fully voluntarily: if I want to change the rules or back out, I can at any time.

In September, these are already days that will be very tough:

So that’s already a lot of exposure to potentially missed days.

I will raise the stakes this way and gather money for Charity:Water. Let me know if you want to sponsor me and for how much per completed day in September. September 1st is the first successfully completed day.

September tracking

Will only log the failed days here. No failed days so far.

Thanks to the following sponsors!

  1. Jan & Hilde: €2 per successful day (Yes, these are my parents)