Alec the Geek

or “My big fat geek’s blogging”

Putty — what a cool tool

Previously, like probably 80% of other users, I had only used Putty as a ssh enabled terminal emulator. However after my adventures with emacs I’ve come to realise what a great tool it is, including it’s support for comand line use.

If you are stuck using Windows without OpenSSH (e.g. not using Cygwin) then I recommend you get Putty.

 

Some of it’s features are:

  • Key generation and management (including import/export of OpenSSH keys)
  • A key caching utility (so you don’t have to keep typing the key passphrase)
  • command line ssh support vi plink
  • support for scp and sftp (pscp and psftp)

Every time I’ve used it it’s been rock solid and handled everything thrown at it (including things that OpenSSH had trouble with — although to be fair that was probably not OpenSSH’s fault)

15 May 2008 Posted by Alec | Windows, Work Practices | | No Comments

emacs Tramp on Windows

I am using emacs with the tramp extension to edit files on a remote server using ssh. I had to pull in various hacks to get it to work so I hope these notes might help others.

There are also other free of cost options you may care to consider first:

  1. Both Filezilla and WinSCP have options to edit a file from the remote file system which then invokes a local Windows editor of your choice.
  2. jEdit has an ftp plugin that supports sftp and bookmarks

Now for emacs

  1. Install Emacs for Windows and Cygwin with OpenSSH
  2. Upgrade emacs Tramp to the latest version (in particular ensure that –with-lispdir and –infodir options are set correctly when running configure)
  3. At the Cygwin bash prompt test ssh connection to your host
  4. Generate public/private keys and upload to the host
  5. Test ssh again to see if public authentication works (it did not for me because it had been disabled by the UNIX admin)
  6. Configure emacs to use tramp
  7. Start emacs and test connection using cygwin ssh/scp/sftp. If it works skip to step 13 (I think the reason it did not work for me was that the remote host displayed a security banner)
  8. Install the Putty program suite
  9. Test the connection using putty
  10. Ensure the Putty install directory is on the system PATH
  11. In emacs visit the host (C-x C-f) using the method ’plink’. If that does not work you are on your own
  12. If the public keys worked in ssh then import your OpenSSH keys into Putty
  13. You should be good to go
  14. Use emacs bookmarks to save you common host locations

YMMV

With many thanks to all the folks on the web who documented their experiences and Michael Albinus on the tramp-devl mailing list.

15 May 2008 Posted by Alec | Open Source Software, Security, Software Development, Work Practices | | 1 Comment

Emacs!

For some bizarre reason I have started to use Emacs again (and even fallen in love with org mode). It seems more natural this time…

13 May 2008 Posted by Alec | Open Source Software, Work Practices, ego | | 3 Comments

What I will do when my machine gets back from the menders

Currently I am feeling very cut off as the latop is at the menders having it’s drive electronics diagnosed. However as soon as it gets back I shall be off to the land of Git after re-reading Sam’s updated (and excellent) git-svn tutorial. Git is designed for distributed use, is fast and I’m assured very flexible…

Of course I may not wait that long as I’m being tempted to purchase an HP 2133, despite it having a Broadcomm wireless adaptor and all the bloody aggro that entails.

13 May 2008 Posted by Alec | Linux, Software Configuration Management, Software Development, Work Practices | | No Comments

How Gen Y work?

I found this and thought of Kate.

Of course if you’re not some ultra hip young thing what can you do? Here are my tips on Web 2.0 for Old Farts at Work (of which I am proud to be one):

  1. Publish a weekly report and show what you’re achieving
  2. Get a LinkedIn account — it’s not facebook and has a lot more gravitas; but at least you have an online presense. Spend some time making the profile reflect you and your experience
  3. Use an RSS reader (e.g. Google Reader) to read blogs and news that interest you. It saves a lot of time
  4. Start a blog — you don’t need to post every day, but it’s a good place to put down all the lessons you have learned where they will be useful to others
  5. Try and stop snarling at the young people. Apparently we were like them once (so they tell me)

13 May 2008 Posted by Alec | Work Practices | | 2 Comments

Citing out of print books is a bit useless!!

The utility of the SWEBOK is somwhat diluted by the fact that many of the references it cites appear to be out of print!

Disgusted of Tunbridge Wells

12 May 2008 Posted by Alec | Personal Opinion, Software Development | | No Comments

Software development the Gordon Ramsay way

I often enjoy watching Gordon Ramsay’s Kitchen Nightmares and I’ve wondered if his approach could be used to illustrate common problems with software development.

  1. Know what your customers want and will pay for: i.e. Get the requirements right
  2. Lack of training and experience can be fatal
    • Don’t expect kids with 6 months experience in only one language to implement large complex systems without significant supervision and mentoring
  3. There is no substitute for passion and hard work
  4. Success comes from the whole team working together
  5. Keep things as simple as possible
  6. Ensure equipment is clean, working and eliminate ‘bad smells’ from the materials
    • Version control
    • Build environment
    • Refactor
    • Test planning and infrastructure…

Some come on people, it’s not exactly fucking rocket science is it?

6 May 2008 Posted by Alec | Software Development, Work Practices | | 4 Comments

Now that’s just plain cheeky

BBC NEWS | Business | Analysis: Microsoft without Yahoo

Yahoo likes to write its name with an exclamation mark at the end - “Yahoo!”.
This might be the right time to update the branding: How about “Yahoo?”.

A bit below the belt perhaps , but bloody funny.

5 May 2008 Posted by Alec | Business | | 1 Comment

Top Tip: bcm43xx on nx6125

WifiDocs/Driver/bcm43xx/Feisty No-Fluff - Community Ubuntu Documentation

Step 2b: sp33008 Driver Download/Extraction

First off I’d like to thank Broadcomm for being such a bunch of peasants as to make life hard for people not running operating systems from the West Coast USA.

Here is my contribution to the many, many, comments on the web on how to get the bmc wireless hardware working. Note that there seems to be a lot a variation in peoples’ experience — you would probably be advised to slaughter a chicken and sprinkle the warm blood over your laptop first (it can’t hurt)
ndiswrapper
I used the ndiswrapper route as the native OSS driver did not work for me. Also note that I am running KDE (kubuntu)

  1. Download the latest driver package from hp.com. NB This is distributed as a Windows exe file but you can extract it using wine (sudo apt-get install wine), the file will end up in somewhere like ~/.wine/drive_c/SWSetup/SP34152A/
  2. Make sure the native driver is disabled (instructions on URL above)
  3. Run ndiswrapper -i … (as explained in URL above) but use the HP driver package you downloaded
  4. In System settings/Network settings/ make sure the eth1 interface is configured for dhcp and then disabled.
  5. Install KWiFiManager
  6. Use kWifi Manager to confgure your WiFi connection and then activate it.

Please note that I did not follwo such a direct route so I have limited confidence this would work exactly as documented. I took me 3 days of fiddling around so please be patient.

18 April 2008 Posted by Alec | Linux, Open Source Software | | No Comments

If only it was that easy in Australia

Stardust Global Ventures » Nomadic Computing - Mobile? Casual? Or just evolution?

…many of us are becoming technology nomads, carrying less and less with us in our daily travels because we know where the oasis (of WiFI rather than water)…

Oh if only it was that easy in Australia. There are so few open WiFi spots here (mainly because if the high cost of net access) that it’s a real struggle to wander and work. There are a few pay per use services (e.g. Telstra) — however they can be very expensive. We are seeing a lot of 3G wireless services being pushed as well, but cost is again an issue and they are limited to business use.

Maybe one day we’ll get cheap pervasive networking here (I know it’s better that many places in the world, but for a modern economy it’s pretty poor)

18 April 2008 Posted by Alec | Work Practices | | No Comments

Now you know — eggs are dangerous…

Police get extra powers for torch relay - ABC News (Australian Broadcasting Corporation)

Police in Canberra have been given extra powers to search people and seize items during the Olympic torch relay next week. The ACT Government has made declarations under major events security laws, designed to prevent dangerous items from being brought into the torch relay area. Police will have greater authority to search people and to seize items, including eggs,…

When we will get warnings on the egg cartons and the public education program?

(I don’t usually do politics here unless there is a technology connection, but I couldn’t resist this.)

16 April 2008 Posted by Alec | Uncategorized | | 1 Comment

How to display code in a presentation


Example Code Slide

Originally uploaded by alecclews

Software geeks often want to display code in their presentations. However there are a few problems

  • Displaying code can be a confusing amount of low level detail when you are really trying to make sure people remember a few key concepts and ideas. You risk your message getting lost as people change gears and attempt to analyse what they are reading.
  • The format of the presentation slide does not make is easy to present anything substantial (over 5 statements?) in a coherent fashion. Visual layout, font sizes and a need for consistency make it hard to present much code in single slide
  • In some presentation presenting ‘canned’ code looks fake and casts doubt on how genuine it is (e.g. when showing how to write code for a new framework)

What are some of the ways if getting around these issues?

  1. Don’t use code at all. Refer the audience to examples they can examine later if required
  2. Split the code into very small pieces (1-5) lines that can be used on a single slide to explain a concept (e.g. how to connect to a specific remote data source). Refer the audience to the complete examples they can examine later if required
  3. Change the format of the presentation completely for the presentation of more substantial code. This can be done in one of two ways:
    • Presenting the material in another program such as a text editor. The editor should be pre-loaded with the code before the presentation starts
    • Changing the slide layout to help display code. e.g. remove all background, reduce the font size (carefully), use large margins so that the shorter lines look more natural, change font, change background and font colours to improve contrast
  4. Type the text direclty into a text editor for demonstration purposes. Not recommended unless you are a very good typist or ‘dummy it’ using a tool such as IO::Prompt

Anyone else have suggestions?

9 April 2008 Posted by Alec | Work Practices | | 4 Comments

Which fuckwit thought this would work?

BBC NEWS | UK | Sex offenders face website bans

Sex offenders’ e-mail addresses are to be passed to social networking sites like Facebook and Bebo to prevent them contacting children.

As a parent of two young children and someone who has worked with survivors of childhood sexual assult in the past I am 150% behind measures that will provide protection to the young. However someone needs to educate polititions on what is effective, as opposed to measures designed to chase votes and lull people into a false sense of security.

All measures such as filtering, blocking email addresses etc. can be easily circumnavigated. They only effective protection is to physically ensure the children are safe at the point of delivery (i.e. the child’s computer). In the same way I don’t let my young children wander onto the road or alone into potentially risky situations, I make sure that I know (see) what they are doing online and educate them on safe internet practices.

As you can tell naive ideas as the one outlined above annoy me intensely.

7 April 2008 Posted by Alec | Personal Opinion, Web | | No Comments

Crappy phone

Download Center SAMSUNG

download center for SAMSUNG C520

My smartphone is at the menders (I walked on it and broke the screen!) so I bought a cheap phone until it comes back. However at AU$80 I feel ripped off. The phone has lots of neat features (email, camera, browser,…) which are all so badly done as to be unusable. Plus the connection software only works on bloody Windows!

Bah!

7 April 2008 Posted by Alec | Work Practices | | 1 Comment

MS Office 2004.5 more like

Alec the Geek

bitten the bullet and upgraded from MS Office 2004 (for the Mac) to Office 2008

Well the much vaunted Office 2008 has turned into a damp squib for me. There have been two improvements:

  1. When replying to messages the fonts don’t become so small that you can’t read them
  2. I can check colleagues diaries when booking a meeting

And that’s it!
Personally I am pretty disappointed and look forward to ditching Office in the next couple of weeks

7 April 2008 Posted by Alec | Mac, Work Practices | | 2 Comments

EEE PC starts to look intresting as well

DailyTech - ASUS Shows Off 8.9″ Eee PC 900

ASUS Shows Off 8.9″ Eee PC 900

I considered the EEE PC some time ago and decided that it was not really for me because of storage and screen limitations. However the new 900 has a 1024×600 display and 12Gb flash drive. With USB ports for mouse & keyboard and a monitor port plus storage expansion via SD and USB could this become a serious machine?

3 April 2008 Posted by Alec | Work Practices | | No Comments

If you wonder what I do all day…

If you want to get some idea of the evolutionary life cycle then look at White and Nerdy

2 April 2008 Posted by Alec | Work Practices | | No Comments

Spending far too much time…

pinging data around the intertubes.

I’m currently trying to use Jaiku, ping.fm, feedblitz and email to spray the world with news of this blog post.

Is that self-referential?

1 April 2008 Posted by Alec | Web, ego | | No Comments

The iPhone starts to look intresting

Slashdot | 3G iPhone Going Into Production In May

the rumor mill churning over 3G iPhones coming soon.

Along with the updated software roadmap announced last month (enterprise email, SDK etc etc) the iPhone is starting to look like a worthwhile appliance for serious people instead of a toy for Mac fanboys and girls. My current handset contract expires in 18 months so I’ll look forward to considering it then — provided it’s arrived in Australia of course…

1 April 2008 Posted by Alec | Mac, Work Practices | | 3 Comments

Handy Hack: Making the most of limited hardware

I have recently been setting up an old PC as a backup system for my office enviroment. However 10 year old hardware does have it’s limitations so I had to go through a few hoops to get it to my liking.

  1. Install latest Debian as Ubuntu got a little upset with the old BIOS and disk drives
  2. Make sure that the system has sshd installed, i.e. apt-get install ssh
  3. Stop the graphical login running by executing update-rc.d -f gdm remove
  4. Install xfce4 (it uses less resources than KDE or GNOME), apt-get install xfce4
  5. Make xfce4 the X window manager by creating a file ~/.Xsession with the line ‘exec xfce4-seesion

Now you can log onto the Linux console and type startx or use a remote X server display, e.g. X11 on OS/X using ssh X tunnelling.

e.g. ssh -X -l <userName> <machineName>

When using a remote X server there can be problems if you do not start some programs in an X term displayed by the X server and for which you started your X tunnel. e.g. xclock does not care, GNUCash crashes the X server. So make sure your X server displays an X term of some description.

25 March 2008 Posted by Alec | Linux, Open Source Software, Work Practices | | No Comments