Cygwin Rails Command Failure

Posted by Andrew Premdas Mon, 18 Feb 2008 14:10:00 GMT

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 Ticket

Rails 2.0 Bundle for Textmate

Posted by Andrew Premdas Thu, 14 Feb 2008 05:53:30 GMT

Followed Dr Nic

Teminal App Colours

Posted by Andrew Premdas Wed, 13 Feb 2008 11:11:51 GMT

Terminal App Colors

Basic problem is default blue in terminal is very difficult to read. Two approaches to this problem

  1. Configure Bash to to use the default blue color
  2. 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

Posted by Andrew Premdas Wed, 13 Feb 2008 11:09:39 GMT

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

Posted by Andrew Premdas Wed, 13 Feb 2008 10:56:34 GMT

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

Posted by Andrew Premdas Wed, 13 Feb 2008 10:35:00 GMT

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.gz
  • sudo gunzip /usr/share/doc/libcupsys2/README.Debian.gz

ubuntu forums guide

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

  1. Editing /etc/cups/cupsd.conf and setting the LogLevel (on line 1) to debug
  2. 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

Posted by Andrew Premdas Tue, 12 Feb 2008 13:46:00 GMT

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

Posted by Andrew Premdas Tue, 12 Feb 2008 13:44:00 GMT

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

Posted by Andrew Premdas Tue, 12 Feb 2008 13:40:00 GMT

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

Posted by Andrew Premdas Thu, 07 Feb 2008 08:02:00 GMT

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

Older posts: 1 ... 8 9 10 11