Tuesday, May 7, 2013

Toggle sidebar in Sublime Text

The more I use Sublime Text the more I like it. 

One thing that is missing (at least in the Linux version) is a shortcut to toggle the side bar.  The Mac version used to use "ctrl+s", but that's what I associate with saving a file.  I added a shortcut for "ctrl+b"; "b" for "bar" :

{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }

To add this choose Preferences -> Key Bindings User

Be sure to add a comma to the line above as well.

Monday, May 6, 2013

Siently add a management user in JBoss EAP6/AS7

Adding a management user is required and simple to doin EAP6.  AS7 is the same even though its a dead branch.

If you need to add the user silently simply add the "--silent=true" flag to the command :


jboss-eap-6.0/bin/add-user.sh --silent=true <username> <password> [ManagementRealm]

Thursday, March 28, 2013

bash: javaws: command not found...

I'm currently running Fedora 17.  I got the following error starting up a .jnlp file for a web conference :


bash: javaws: command not found...


I checked alternatives, but there was no javaws. A quick yum install solved it :

sudo yum install icedtea-web

Friday, March 15, 2013

Fedora, docking stations and external monitors

I am running Fedora 17 and using a docking station with an external monitor.  Beefy Miracle does not play well in this scenario; apparently Fedora 18, Spherical Cow, doesn't either.

I found the answer on the blog "Note to Self", http://note-to-self.baker.com/.  This blog post has a solution for 17, and this post has one for 18.

Tuesday, December 18, 2012

find and mv files in bash

I thought I would document this shell command for posterity's sake.  My bash skills are sketchy so I will need to look it up again.

I downloaded a few zip files this morning and needed to move them to a new directory.  Moving them to a new directory from the command line was trivial:


for i in $(find . -type f -newermt 2012-12-18); do cp $i /[NEW DIRECTORY PATH/; done;

Monday, December 10, 2012

You have already activated torquebox...

Working with TorqueBox this afternoon I got the following error just after creating a new application :

You have already activated torquebox-core 2.1.2, but your Gemfile requires torquebox-core 2.0.3.redhat.1. Using bundle exec may solve this.

A quick check inside my .rvm/gems/jruby-1.6.7.2@appname/ folder showed that I had two versions of torquebox installed :



I deleted the incorrect version, 2.1.1.  Everything was fine.

Tuesday, August 14, 2012

Fedora fonts and infinality.net

I use Fedora, and I really like Gnome 3.  Gnome-shell is extremely productive.  However, Fedora is not known for the beauty of its' fonts.

A colleague suggested that I install the infinality fonts from infinality.net
 .

Run :
sudo yum install fontconfig-infinality
sudo yum install freetype-infinality

Fedora looks great.

Be  careful though : it deleted a lot of my preferences.