Monthly Archives: May 2010

LaunchBar Action: Create Short URL with YOURLS

If you follow me on Twitter you may of noticed I’ve been using a custom URL shortener lately, I did this because I purchased matt.mx and got tiered of waiting for bitly.pro. After looking round I found YOURLS a set of PHP scripts that do most of the functions of bitly.pro and of course has the ability to create really short links without the 6 character hash. I might review this at a later date.

Now I did have a LaunchBar action to create bit.ly links that will work perfectly fine with bitly.pro however now I use YOURLS I needed to make a few modifications to support a new API and here is the new AppleScript for you to enjoy (download here).


on handle_string(theURL)
  -- add scheme prefix if missing
     set _firstColon to offset of ":" in theURL
     set _firstSlash to offset of "/" in theURL
     if (_firstColon = 0 or _firstSlash < _firstColon) then
       set theURL to "http://" & theURL
    end if

  -- Process and encode URL
     set theURL to do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv[1])' " & quoted form of
theURL

  -- Create YOURLS
     set login to "YOURURSERNAME"
     set apiKey to "YOURPASSWORD"
     set bitlyURL to "http://YOURDOMAIN/yourls-api.php?action=shorturl&format=simple&username=" & login & "&password=" & apiKey &
"&url=" & theURL & ""
     set results to do shell script "curl " & quoted form of bitlyURL

  -- Copy to clipboard and display
     tell application "LaunchBar"
       perform action "Copy" with string results
       display in large type results
     end tell

end handle_string

You will need to make 3 changes to allow this to work, firstly change YOURUSERNAME and YOURPASSWORD to your own username and password for your YOURLS install and secondly change YOURDOMAIN to point to the path of you yourls-api.php file.

Put the file in ~/Library/Application Support/LaunchBar and rename it to whatever you want the script to be activated by in LaunchBar.

Stay tuned to this page for update’s to this script as YOURLS grows

Microsoft Docs.com

Docs.com is a new offering from Microsoft that is pretty much Office in a web browser. Based on the little play I’ve had the service is fast, snappy and if you’ve had chance to try the Office 2010 beta of the windows app it’s very easy to use.

Surprisingly uses Facebook to login instead of Microsoft own Windows Live ID but this does offer tight integration allowing me to add people I know to collaborate or view a document I’m working on with very little effort.

The clean interface is not only easy to use for current Microsoft Office users but an effortless transition for those who have been using the 2010 beta. It does however lack a few basic features including image alignment, merge table cells and clip art as far as I can tell just search Bing Images. I do however like the way it auto corrects words like the desktop app and the easy to use table creation and edit a tools although formatting the table with heading and colours is yet possible.

So far I haven’t had a chance to look at the collaboration tools but based on what I’ve seen of the core application I have high expectations for them.

I fact this might tempt me away from Apple’s iWork package to Microsoft’s Office for Mac 2011 and swap Google Docs for collaboration. It does however miss a few things I come accustom to in both Apple Pages and Google Docs, Save as PDF I send most of the documents I write in PDF to people for approval or reference. Very little of what I write has a need to be printed. The PDF format is supported almost everywhere, mobile phones, Kindle, computers and more, making it a near perfect solution for my needs.

It does still course problems when copying and pasting out of the app where it will include double spacing on paragraphs and generate some really messy HTML when copying to a web page, like in my case writing this post. I wrote a big part of this on Docs.com and when it come time to copy to WordPress I got double spaces and messy HTML forcing me to use the paste from Word Tools.

Now the service is still in closed beta and there are a few bugs like printing from the web app seemed to do nothing for me and changing the spell checkers language to English (U.K.) doesn’t do much ether. It can also be a bit slow at loading certain parts such as the reading view but as I said it is a beta and I’m sure Microsoft will iron these out in time.

Unfortunately to get access you have to wait in tern or ask a friend with access to invite you to edit a document (not tested).

Ubuntu 10.04

On Thursday Ubuntu 10.04 was released to the world, this long term support version has a very different look and feel and yes it can still give the big boys a run for their money.

In fact the only thing stopping me running it as a full second computer is I don’t have the hardware. The system does everything you expect a modern operating system todo with a few nice extra’s like Ubuntu One.

When I downloaded the 700 MB ISO file it took are 2 hours due to server load on the release date, now today your download times may be a more what you expect but to ease the strain I have made the ISO for the 32bit desktop version available to download from here.

Once I downloaded the disk image I attempted to install it as virtual machine, which worked fine but I could type in the VM so login on proved a little difficult. So I tried to run the system in a VM from the live CD without installing.

Apart from VMWare not working for me the new version ubuntu is faster, simple and packed with the features most everyday users would want and the powerful linux stuff for the hacker in me.

The guys have also made an effort to cater for new users with instant messaging built right into the operating system and the new Ubuntu One online storage/sync services are perfect for anyone with more than one Ubuntu based computer. They have also built in a new music store, think iTunes for Linux, the Ubuntu One Music Store.

Do I Recommend Ubuntu, of course it’s free and as long as you don’t want to to do any heavy graphic/video editing they’ll be some software out there for you and normally for free.

Spring Bank Community Association – Newsletter

Again while working for Spring Bank Community Association I was asked to produce a newsletter that would be circulated to all the homes in the local area.

The Main aim of the newsletter was to market the centre and the new things it’s been doing since the last newsletter some many months before.

A High Resolution PDF can be downloaded here.

 Scroll to top