Peter's Blog

Redefining the Impossible

Home


Humyo online storage.

In a nutshell:

Humyo- WTF

Humyo- WTF

Humyo is looking like a waste of space (100G of it) if it won't upload my files.

I'm not convinced it is useful: it uploads modified files immediately so presumably will instantly propogate cockups. Have to pay extra for multi-user account for snapshots which gives me less storage and a superfluous second user account.

The web site is nice but the excessive nagging to upgrade is a bit much. Careful where you click!

Running screaming back to Jungle Disk.


Filed under: crap fail

Add a comment

I decided I wanted an acoustic guitar for a few reasons:

  • I play mostly pre-breakfast time with unplugged electric to avoid disturbing people.
  • the unplugged sound has grown on me
  • it is hassle hooking it up to an amp. Impromptu recitals/singsongs require setting up.
  • acoustic strings are heavier and hence would make my fingers stronger.

I went into town on a mission to try a mid-range £400 ish electro- acoustic, preferably not in a natural wood finish (too folky) and a smallish design, not a huge dreadnought/jumbo.

I found a second hand yamaha apx700 in very good condition (light scratches where pickguard ought to be) in beautiful deep shiny black (i.e it always needs polishing). It was a great price, about £175 off Internet prices, enough to alleviate any guilt about buying a second guitar.

Raw and Unplugged

It sounds amazing, it makes wonderful noise, especially when plugged into an amp, lovely full sound. Open chords are easy to play, barre chords are harder as it is very fussy about being fingered close to the frets. It's all good for technique though.

The neck is slightly slimmer than my electric Vintage V6. Another noticable difference to the V6 is that the strings are dead level and I can strum upwards! This never felt right on the V6 as the strings have individual height adjustment and came out of the box unlevelled which I assumed was how it was supposed to be.

The built quality is pretty much faultless.

The Yamaha can make a lot of noise, even unplugged. For my practise I have been concentrating on gentle arpeggios as they are good practise for forming chords (shows up mistakes). It only takes the lightest touch to pluck a string and I love the sound.

The guy in the shop gave me a free guitar bag and chucking it in the car was enough to knock a few strings out of tune. I used my iPhone app to tune it but it does have a built-in tuner which seems to work, although it needs guessword to determine how far out of tune it is, the iPhone app (guitar toolkit) has a meter.

I need to buy a guitar strap, one that is up to the good looks of the guitar.


Filed under: guitarhero

Add a comment

I bought a great guitar book called Fretboard Roadmaps that very succinctly provides a great insight into how a guitar fretboard is laid out. It describes chord progressions very well, explains the cicrle of fifths and has made it clear to me how to play the basic I- IV-V chord progression in any key.

The I-IV chord change is simply moving from an E shape barre chord to an A shape on the same fret (because the E and A strings are four notes apart! The same interval as I-IV). Then IV-V is just moving along two frets on the A string. Easy. Try working that out from a book of bald chord chards.

I can now do E and A barre chords, although I struggle with the B barre chord on the second fret (finger span not wide enought to fret properly) so I will have to settle for doing B with an E shape on the 7th fret.

It seems that while my little finger is a bit too weedy for four fret hammer-ons, my ring finger bends backwards in a way that means I can sound string 1 on my A shape barre chords.

Other signs of progress:

  • I can play simple open chord progressions without looking at the fretboard (gasp).
  • I can work out simple chord progressions fir songs, e.g. Twinkle twinkle little star: no need for tabs!
  • can play 'Happy Birthday' with bluesy string bending!

Filed under: guitarhero

2 Comments

I had a minor revelation in notetaking today: why not just web clip problems and solutions from web into my Evernote book? No need for me to type, just clip the forum post or whatever where someone describes my problem and then clip the best solution. Chuck it in Evernote and leave it for search to deal with. Et voilà, a database of problems I had and how they were overcome. If there are no solutions out there, solve it myself (it can happen) and blog it.

I also figured out why Evernote web keeps asking for me to log in, I bookmarked http://evernote.com but http://www.evernote.com/Home.action?login=true#Thumbs remembers me.

It turns out that Evernote has a nice iPhone web app, faster and more reliable than their native iPhone app. It is even possible to create a 'clip to evermote' bookmark and this works perfectly, even clipping selections. I created mine by making a bookmark on the iPhone and pasting the 'clip to evernote' link into the bookmark.

Since the iPhone app is slow to start up and hangs or crashes frequently, posting a quick note from the iPhone can be done in three ways:

  1. via email (wish Evernote would delete auto-added sig)
  2. quick note link on web app (hidden at bottom of list of posts but worth bookmarking)
  3. clip to evernote has a notes box

The search on the web app is fast. There is little benefit with the iPhone app since it keeps notes online too ( unless you have the foresight to mark the ones you want offline as favourites).

No excuse for not getting organised sad


Filed under: evernote iphone

Add a comment

On an impulse I bought some wireless headphones. These were for two purposes:

  • playing guitar through Line 6 Pocket Pod and wired headphones I felt horribly wired up
  • on rowing machine I, ahem, stuck my iPhone in a plastic bag and shoved it down my boxers.

The headphones solve these problems nicely. The sound quality is ok (a bit compressed, like fm radio) but quite clear and there is little interference (occasional mobile phone noise). The ear cups get sweaty when exercising but they are quite comfortable and far less annoying than wired headphones.

The range is as far as I am willing to roam while wearing them in case I am seen. They are plugged into the base station to recharge and are supposed to last 15 hours which is enough for 90 10 minute rowing sessions.

Only problem is the total lack of cool.

Uncool But Wireless


Filed under: dick guitarhero philips

Add a comment

Kenken is my latest iPhone app craze. It's like Suduko (spelling?) but with sums instead of the cross patterns. The first beginners levels were taking me 20 seconds to solve but it gets trickier by the 33rd amateur level (below). Yes I did over 33 levels in a couple of hours, it smashes through the play-once-then-meh barrier.

I tried the new Space Invaders but it seems devoid of skill if I use the shoot-round-corners gun and the stuff between each level lasts longer than the levels themselves. Bejeweled 2 is either a total roll of the dice as to how many levels you go or I am just not getting it.

Kenken Puzzles


Filed under: iphone

Add a comment

Found the TuneWiki app on the iPhone app store this morning and it's big fun. It's a music player that plays your iTunes library and shows the song lyric, Kareoke style (spelling?). Not all songs have lyrics but when they are available they are very well synchronised to the playback. I can rarely understand lyrics as sung and seeing them written down is often a revelation.

The tunewiki app lists songs in some random order but I found that since it is a front end for the iPod music player I can start a song from there and flip to tunewiki to sing along.

More than this, it does Internet streaming radio with lyrics too!

Tunewiki can also tell the world that someone in Ashford, Kent is listening to Mr Blue Sky. I better be careful what I listen to. Someone in Soton, Cambridgeshire is listening to Phil Collins cool

It as a free application but it keeps showing adverts for flirting websites so I'd better not show it to the wife.

Having a Singalong


Filed under: iphone mrbluesky

Add a comment

The Line 6 Pocket Pod is a wonderful guitar toy. Most of my practise is with the guitar unplugged so being able to use the pod and listen to real guitar sounds is a good thing. Problem is the pod comes without a power supply, it's an extra that costs £12 (line 6 Dc1).

I bought the pod hoping to live with four rechargable AAA batteries but:

  1. they only last about two hours and suddenly go flat in mid-rock
  2. my charger can only charge two AAAs at a time so recharging was a bind.

I was still reluctant to part with £12 so I looked around for an old one. I found one from a land phone, 6v 400ma. The connector plugged into the pod just right. The DC1 is 9v but since the pod runs from four 1.5 volt batteries I figured 6v would suffice. A google told me the pod draws 200mA so again this should be fine, capacity to spare. The DC1 is used on a few line6 products that presumably need more juice.

The little diagrams on the pod and psu told me the polarity was wrong so I cut the cable and swapped the wires.

It worked: the pod runs fine. I spent the next few hours banging out barre chords to guitar settings like 'white room' and 'smoke on the water'. The good thing about fat chunks of distortion and reverb is that it disguises a lot of clumsy fingering.

In the photo you can see the masking tape on the power line. I really must buy some insulating tape for this kind of work.

Line 6 Pocket Pod PSU


Filed under: guitarhero mean soldering

2 Comments

I have been using the Twitter gem to post tweets regarding new blog updates. During some testing I was seeing bare passwords in urls which prompted me into migrating to using Oauth to authenticate with twitter. However this proved to be a bit of a minefield. Oauth tends to be described in explicit technical details and the gems available have cursory examples based on the simplest use cases and they never explain how to get the tokens.

So here is how to use oauth with twitter in enough detail for other people to do it. The main problem is that even if you are writing, say, a command line twitter app you will still need to write a web based app to get twitter to provide you with the right authentication keys as the process involves being redirected through the twitter web site.

First go here and ask twitter nicely for your Consumer Token and your Consumer Secret. I won't bore you with what these are, if you want to be bored read the oauth docs.

Stick these in a yaml file like this:

---
accountname:
  consumer_secret: ulasdfjasdhflkshdflkjsdfhasdfasdfasdffs
  consumer_token: 9asdjfhkasjdfhkhkjhkjA

I put this in RAILS_ROOT/config/twitter.yml

Now install the twitter gem:

sudm gem install twitter

Here is a library to encapsulate reading and writing these tokens. I called it PetersTwit.rb and put it in RAILS_ROOT/lib:

   1  #
   2  # Simple wrapper for twitter oauth tokens
   3  #
   4  
   5  require 'rubygems'
   6  require 'twitter'
   7  require 'yaml'
   8  
   9  class PetersTwit
  10    #
  11    # Initialise oauth stuff. strConfig points to the yaml config file,
  12    # strAccount is the name of an account in the file (need not be same name
  13    # as twitter account)
  14    #
  15    def initialize( strConfig, strAccount)
  16      @strConfig = strConfig
  17      @strAccount = strAccount
  18  
  19      @oTokens = nil
  20  
  21      begin
  22        @oAllTokens = YAML::load_file( strConfig)
  23        @oTokens = @oAllTokens[@strAccount]
  24      rescue
  25        @oAllTokens = {}
  26      end
  27  
  28      if not @oTokens
  29        @oTokens = {
  30          'consumer_token' => nil,
  31          'consumer_secret' => nil,
  32          'access_token' => nil,
  33          'access_secret' => nil,
  34        }
  35  
  36        @oAllTokens[@strAccount] = @oTokens
  37      end
  38    end
  39  
  40    def consumer
  41      OAuth::Consumer.new(
  42         @oTokens['consumer_token'],
  43         @oTokens['consumer_secret'],
  44         {:site => 'http://twitter.com'}
  45      )
  46    end
  47  
  48    def SetAccessToken( strToken, strSecret)
  49      @oTokens['access_token'] = strToken
  50      @oTokens['access_secret'] = strSecret
  51      @oAllTokens[@strAccount] = @oTokens
  52      Save()
  53    end
  54  
  55  
  56    def Save
  57      YAML::dump( @oAllTokens, open( @strConfig, "w"))
  58    end
  59  
  60    def Auth
  61      oAuth = Twitter::OAuth.new( @oTokens['consumer_token'], @oTokens['consumer_secret'])
  62      oAuth.authorize_from_access( @oTokens['access_token'], @oTokens['access_secret'])
  63  
  64      return oAuth
  65    end
  66  end
Toggle Line Numbers

Now add the following actions to a handy rails controller you may have:

   1    def twitter_oauth_login
   2      oTwit = PetersTwit.new( File.join( RAILS_ROOT, 'config', 'twitter.yml'), 'therealpeter')
   3  
   4      request_token = oTwit.consumer.get_request_token
   5      session[:request_token] = request_token.token
   6      session[:request_token_secret] = request_token.secret
   7  # Send to twitter.com to authorize
   8      redirect_to request_token.authorize_url
   9    end
  10  
  11    def twitter_oauth_register
  12      oTwit = PetersTwit.new( File.join( RAILS_ROOT, 'config', 'twitter.yml'), 'therealpeter')
  13  
  14      request_token = OAuth::RequestToken.new( oTwit.consumer, session[:request_token], session[:request_token_secret])
  15  
  16      #
  17      # Exchange the request token for an access token.
  18      #
  19      access_token = request_token.get_access_token( :oauth_verifier => params[:oauth_verifier])
  20  
  21      oTwit.SetAccessToken( access_token.token, access_token.secret)
  22  
  23      redirect_to( :action => :index)
  24    end
Toggle Line Numbers

When you register your application with twitter you can say it is a web application and where it asks for a callback url you can point to the url of the twitter_oauth_register. I did this but it never called me back sad

Run the rails app and go to the twitter_oauth_login url which should redirect you to twitter where you log into your twitter account (I'm not phishing here, honest) and authorise twitter to let your application connect to twitter without any more tedious password nonsense.

In an ideal world twitter will redirect you back to your app but this is broken for me. Instead Twitter acts as if I asked for a desktop app and displays a seven digit PIN. This can still be used by manually entering the url for:

http://yourserver/your_controller/twitter_oauth_register?oauth_verifier=1234567

where 1234567 is the PIN that twitter gave you.

After this you should have values for access_token and access_secret appear in your yaml file. These are good, keep these safe as they will let you post to twitter without passwords and crap. You can use them anywhere: web app or command line app. They allow your app to access twitter under a particular twitter user name.

Posting to twitter from the command line is now easy:

require 'PetersTwit'
require 'twitter'

oPTwit = PetersTwit.new( File.join( RAILS_ROOT, 'config', 'twitter.yml'), 'therealpeter')
oTwit = Twitter::Base.new( oPTwit.Auth())

oTwit.update( 'OMG jonas brothers')

When developing this the biggest conceptual hurdles came in the handling of the exchange of request tokens and access tokens. What can be confusing is that this can only be done once: if you get a set of request tokens you have one chance to swap them for access tokens and if you screw it up you need a fresh set of request tokens. But you don't need to know that if you follow my recipe, it's an implementation detail.


Filed under: oauth pita rails ruby

Add a comment

I've been having one of my periodic reviews of note-taking software where I seek a nice notetaking platform, then can't be bothered to use it.

Reqall
I haven't played with this since they started charging for SMS messages. Now I can get free mms email on my iPhone I tried using this to send me reminders. It is quite convenient to schedule something, typing '7pm today emmerdale' and it will send a reminder. You can even speak it as it has voice recognition. However, in practise...(my emphasis):

from reQall
reply-to reQall
to peter@boogeddyboo.com
date Mon, Jul 27, 2009 at 1:50 PM
subject Reminder for Jul 27, 2009 11:40 AM: 11:40 am today Is requall any good?...
mailed-by reqall.com

Reqall is more for single liner reminders than full note-taking but the problems in the scheduling put me off. It can automatically send memory joggers every day, kinda like your conscience sending you text messages. I soon learnt to ignore them.

Evernote
the evernote iPhone app either locks up or crashes and is too unreliable and annoying for jotting anything down quickly. For me the web app never seems to remember my login and I have to suppress a scream whenever I have to enter my name/password.

It suddenly occurred to me whether google mail isn't the best place to keep these notes? Lets see:

  • with a decent HTML SMTP client it can handle formatting and graphics
  • fast searching
  • tagging
  • 7G of free storage
  • handles attachment files
  • can be used with native iPhone app

Minuses:

  • can't edit!

I could email notes to evernote/reqall but there's the hassle of deleting my sig every time.

--
Regards,
Peter


Add a comment