Cygwin Rails Command Failure
Running Rails myproj on Cygwin doesn't work at the moment. This is due to a bug in Ruby that has been fixed, but hasn't yet made the Cygwin project.
At the moment the workaround is to run the Rails command in a windows command prompt. This sux, but only a little bit really. Alternatives focus around patching and rebuilding ruby on cygwin. Don't really want to do this.
See
Rails 2.0 Bundle for Textmate
Followed Dr Nic
Teminal App Colours
Terminal App Colors
Basic problem is default blue in terminal is very difficult to read. Two approaches to this problem
- Configure Bash to to use the default blue color
- Configure your terminal application so the default blue color is rendered more legibly.
This SIMBL plugin takes the second approach adding a color picker to terminal so you can change how any ANSI color is rendered
Safari Advert Blocker
Safari Advert Blocker
Installed Pith Helmet which is a $10 shareware advert blocker and general bling tool for Safari. Evaluating this at the moment, seems quite promising.
Part of this is SIMBL One cool plugin for this thing is the configuration of colors for terminal.
OSX CUPS Client
OSX comes with Cups installed, so you can connect on localhost:631 and add the printer on little-un, using Add Printer. However browsing and discovery of printers doesn't work, so you have to get the correct address
Finding Correct Printer path
Log into the CUPS interface on your linux box. (My path was http://192.168.0.2:631/printers/) Right click the "Print test page" button and "Copy Link Location"
Use this to create your correct path (remove cruft at end first)
Mine ended up being
http://192.168.0.2:631/printers/Kyocera_FS-1020D_USB_1
With the correct path the printer installs easily and works from applications. You can also see the printer in System Preferences | Print & Fax, so you don't have to use the web interface anymore.
Only took me 4hrs
Printer Server
Aim is for little-un to be printer server for mac, windows and linux clients. Need to install Cups and Samba to do this.
Cups installation
sudo apt-get install cupsys cupsys-client
documentation in
*/usr/share/doc/libcupsys2
sudo gunzip /usr/share/doc/libcupsys2/README.txt.gzsudo gunzip /usr/share/doc/libcupsys2/README.Debian.gz
Cups configuration
Used lynx on localhost:631 to get to web interface of Cups then turned on remote administration. Somehow config file got corrupted. Detected this by
- Editing
/etc/cups/cupsd.confand setting the LogLevel (on line 1) to debug tail -f /var/log/cups/error_log
Log showed error line so fixed and restarted /etc/init.d/cupsys start. After successful restart found that remote admin is working.
Connecting Printer
Plugged in printer to usb port. Used dmesg to confirm that system had recognised printer. Configured printer using web admin on the server using Lynx. Used this to setup remote administration, however wouldn't save because config had faulty DefaultAuthType none. Set this to DefaultAuthType basic. Now can install printer driver.
Installing Printer Driver
Did this through web interface little-un:631 you have to fill in a couple of forms. The printer was detected automatically. I chose to use a ppd driver which I got from linuxprintingorg
Installing Clients
[Cups Client on OSX]
Wireless Networking
Writing this in the garden at the front of the house. Its an amazingly beautiful sunny afternoon, incredibly mild for the middle of February.
Thumb Base Joint
Although I already knew that the base joint of the thumb is actually adjacent to the wrist, and not the joint where the thumb and first finger meet, until a couple of hours ago I really hadn't understood what this means for my guitar playing. All of my current thumb movement comes from my second joint. Because this joint is almost as strong (if not stronger) than the first joints of my fingers, this has felt fine. However making thumb movements from the first joint makes me aware of the following
this is new feeling for me - the muscles are not familiar with this motion
there is a lot of leverage involved - a small muscular movement provides a large and powerful movement in the thumb
there is a feeling that a great deal more sublety of control is available - because control is coming from earlier in the chain of movement
I need to add this awareness to my practice working on thumb fundamentals (perhaps with a thumb pick as well
Schedules and Plans
I have a great need to be more organized in the planning and recording of my activities. My progress in all things is quite eclectic and wide ranging. At the same time it is not very focused and often not appreciated. This results in dissolution and also makes it difficult for me to reach goals.
I really am not at all goal orientated except when I'm employed. This doesn't mean I'm lazy, just not focused on specifics. So whilst I might spend a several hours a day thinking and working on guitar, and am making progress in a number of areas, I often feel a deal of frustration about what I am doing.
In an almost direct contradiction to the above, a major problem with my guitar is that I focus to much on one thing. For example currently I'm focused very much on Blues and the Woody Mann 'Basics' DVD. This is a great DVD and well worth studying. Still in addition I could and should be doing
- 15 minutes of ear training
- 30 minutes of theory and scale playing
- 15 minutes of rhythm training
all of the above should be done daily
What this means is that a day then consists of very many small activities rather than one or two big activities. This is a real problem for me as I feel I can only do at most three things a day. So I can compute, eat well and play guitar (these three are really tough), but that gives me no real room to run, stretch, wash up, be clean and tidy. Perhaps I can address this each day by planning very specific activities. However for this to succeed all the activities need to be much more specific. This leads to a very GTD like approach to things were we have alot of projects and alot of specific activities to do. Each of these activities requires planning and recording, and this of course goes against my general pattern of learning, and takes considerable time, effort, and consistency. It also may remove the time for general thought and speculation - but that should be included in the activities as part of the process of planning and review
So my conclusion is that I need to get back into GTD and try a very much more detailed approach to planning and executing my life. Does this mean I now have to spend days dicking around choosing my GTD tool!
Admin::Tests
Been struggling a little with testing Admin::Controllers, mainly because I don't fully understand the scaffold functional test code. Anyhow just generated Admin::Poop!! so we can see how the nesting affects the tests
class Admin::PoopsControllerTest < ActionController::TestCase
def test_should_get_index
get :index
assert_response :success
assert_not_nil assigns(:admin_poops)
end
def test_should_get_new
get :new
assert_response :success
end
def test_should_create_poop
assert_difference('Admin::Poop.count') do
post :create, :poop => { }
end
assert_redirected_to poop_path(assigns(:poop))
end
def test_should_show_poop
get :show, :id => admin_poops(:one).id
assert_response :success
end
def test_should_get_edit
get :edit, :id => admin_poops(:one).id
assert_response :success
end
def test_should_update_poop
put :update, :id => admin_poops(:one).id, :poop => { }
assert_redirected_to poop_path(assigns(:poop))
end
def test_should_destroy_poop
assert_difference('Admin::Poop.count', -1) do
delete :destroy, :id => admin_poops(:one).id
end
assert_redirected_to admin_poops_path
end
end