Ubuntu keyboard shortcuts

May 13, 2010 by Steve · Leave a Comment 

tombunto blog logo
Taken from original page here

Workspaces

* Ctrl + Alt + Left/Right/Up/Down arrow – move to the workspace in the given direction
* Ctrl + Alt + Shift + Left/Right arrow – move the current window to the workspace in the given direction
* Super + E – “expo” effect, shows all workspaces (move windows with left mouse button, zoom to a workspace with right mouse button)

Window Management

* Super + W – “scale” effect, shows all windows in current workspace (left click selects window, middle click closes window, right click zooms window)
* Super + A – “scale” effect, shows all windows
* Alt + F10 – toggle maximize current window
* Alt + F9 – minimize current window
* Ctrl + Alt + D – toggle show desktop
* Alt + Middle mouse button – resize window
* Alt + Left mouse button – move window
* Alt + Right mouse button – window menu
* Alt + F7 – move current window (without holding down mouse button)
* Alt + F8 – resize current window (without holding down mouse button)
* Alt + Tab – switch windows on current workspace
* Ctrl + Alt + Tab – switch windows on all workspaces

Accessibility

* Super + Mouse wheel scroll – zoom screen
* Super + Middle mouse button – draw rectangle to zoom to
* Super + N – invert colours of current window
* Super + M – invert colours of screen (Compiz is configured for this shortcut, but the messaging indicator seems to have taken it over so it doesn’t work)

Open Office tweaks

May 8, 2010 by Steve · Leave a Comment 

In tools -> Options -> Memory:
Reduce the number of Undo steps to a figure lower than 100. Websites suggest 20 or 30 steps.
Under Graphics cache, set Use for OpenOffice.org to 128 MB (up from the original 6MB).
Set Memory per object to 20MB (up from the default .5MB).
Set the number of objects under Cache for inserted objects at 20.
Check OpenOffice.org Quickstarter.

Now highlight Java on the left panel, uncheck Use a Java runtime environment

Exit and re-load open office.

mathematized

November 17, 2009 by Steve · 4 Comments 

Started a pet project trying to code up the equations from the Mackay and Glass, Oscillation and Chaos in Physiological Control Systems (1977) paper. I need to learn some maths, and some maths programming to broaden my skills beyond wet lab molecular biology. Copasi is ok but it’s reaction based and I worry a point and click interface wont get me a job when I graduate. However, I am rapidly lost in Matlab and Mathematica. I chose Matlab for compatibility and support in the MIB community, but drifted into Mathematica as it seems easier to program using symbolic maths. Both are ok with algebra, then I just get blown away doing anything dynamic like ODE’s. If anybody reads this and has any good tutorials for programming up ODE systems in either/any computing language please let me know :/

Ubuntu 9.10 countdown

October 27, 2009 by Steve · Leave a Comment 

Karmic Koala is out, and it’s biting at the heals of Windows 7 and Snow Leopard.

“You are capable of choosing your own destiny. The question is, which path will you choose?”

I’ve been running Windows 7 on a dual boot with Linux Mint for the duration of the Windows 7 beta program. Windows 7 has proved to be a worthy successor to Windows XP, and dragged Microsoft from the pit of despair they hurled themselves into with Windows Vista. In the wake of Vista and the iPOD, the Mac community was able to plough forward with OSX, gaining increasing ground with the macbook pro and air, and more recently had an update from Snow Leopard providing increased speed and some tweaks to their interface. Ubuntu peaked with Jaunty Jackalope and finally released a Linux distribution that gave the Linux community a foothold in the home desktop market. Hardcore Linux users balk at Ubuntu and the heresy of proposing a pre-built linux OS. It has been the long tradition that Unix users compile their own OS and applications, custom built for their own machine, learning the code along the way. There is a steep learning curve for many computer enthusiasts who seek the stability and speed of a Unix OS, but lack a lifetime of dedicated study in the dark art of the command line. Ubuntu broke the mold and provided a generic ready to roll Linux OS that was completely free of any proprietary drivers and codecs, so it could be distributed in any country to any hardware and enable everybody to use a computer regardless of wealth.

Ubuntu 9.10 (Karmic Koala) was released yesterday and continues to build on the improvement of intrepid ibex and jaunty jackalope. I’ve installed a copy of the 32bit desktop edition on a Dell XPS M1530. Installation was much the same as previous version 9 incarnations, with some graphic improvements. Drive partitioning was straight forward enough and it will sit alongside the existing Windows 7 partition without a problem. The OS installed in about 15 minutes and grub picked up the Windows installation to dual boot. I don’t like the new login window. The old version was more streamlined, with the current version requiring me to click on my account and enter my password, even though I’m the only user account on the machine. They also seem to be increasing the number of animated splash screens during the login, where 1 is unnecessary in my opinion. Get to the desktop and stop wasting computer cycles on spinning logos and flashing lines.

Ubuntu comes with no proprietary drivers so I had to install the latest nvidia driver set and download broadcom wireless drivers. This would be a major problem if I didn’t have ethernet internet access as straight away my laptop can’t connect to the internet. Fortunately I do have a wired connection so I could just grab them from the snaptic repository. This wouldn’t be obvious to the casual computer user though and would most likely, from their perspective, brick the machine and send them back to Windows / OSX. After this brief inconvenience I added in the restricted repositories and downloaded all the 3rd party codecs for multimedia playback and I have a ready to go OS again. DVD and MP3 playback is excellent in Totem player and rhythm box. I downloaded Exaile and VLC for myself but the pre-installed media playback tools are excellent. Ubuntu 9.10 comes with Firefox 3.5 which is much faster than 3.x previous versions, with improved Java engine. There is no pre-installed Thunderbird or Sunbird which I don’t understand (considering Firefox is there), instead choosing Evolution, which I haven’t used so can’t comment on. Ubuntu comes pre-loaded with Office 3.1.1 which is more than sufficient for word processing, spreadsheet, and presentations, supporting open document format and mostly compatible with Office 2003 (some compatibility with Office 2007, but personal experience has been bad with powerpoint 2007). Pidin IM has been replaced with empathy in this karmic. Empathy is compatible with all the major IM clients, as well as pidgin’s facebook chat plugin. 9.10 uses the ext4 filesystem as default providing faster data access speeds than previous ext3 and Windows ntfs. Copying files between ntfs and ext4 is noticeably quicker, and it boosts the OS bootup time considerably. 9.10 has also implemented a new “software centre” in place of the add/remove programs in 9.01. This is a streamlined equivalent of the old application, grouping software into easy to navigate sections for first time users. Personally I use the synaptic package library but it’s very useful for new users to find their way around the huge library of additional software that is available.

One of the newer implementations has been Ubuntu one – an online storage drive from canonical providing 2gb of free storage. I found this service to be less reliable than dropbox, which can be installed as a 3rd party application. It had some problems syncing my latex documents in my home folder when I made frequent changes. It was a beta application in Ubuntu 9.04 though and I might give it another go in 9.10. It’s still not bad to have 2gb free synchronized file storage out of the box for free, and an interesting feature that isn’t included in Microsoft or Apple’s OS.

For the complete list of the updates in Ubuntu 9.10, check out the new features page at Ubuntu.com here.

So for the grand price of £0 you get a ready to rock operating system in 32 and 64bit flavors that can (after a little bit of downloading) play high definition movies, music, do all your graphics and office work, surf the net, and send your e-mail. I hope Ubuntu continues to develop in the future, and spin off distributions like Linux Mint build on the Ubuntu base providing custom variations for any perceivable application. Hardcore Linux users might balk at the ethics of Ubuntu but it provides a shallower learning curve for new users like myself to experience the Linux world and break the monopoly of Microsoft and Apple in the home computing market. Once familiar with the environment it enables more serious users to move into the realm of Arch and even Gentoo, eventually compiling their own OS and joining the ranks of the command line battle hardened linux community.

Socialist computing has arrived.

OfficeTab

October 13, 2009 by Steve · Leave a Comment 

Useful tool of the week:  OfficeTab

OfficeTab adds a tabbed interface to Word, Excel, and Powerpoint.  Rather than having separate windows with different files, this little 3rd party Office add-in opens them as tabs within the main application making it much easier to flick between different windows.  The authors site is in Chinese but the download links are in English.

September 21, 2009 by Steve · Leave a Comment 

EliteAnniversary-1920x1200Today is 25 years of David Braben and Ian Bell’s Elite video game.  This isn’t really systems or synthetic biology, but back in 1984 it was the inspiration of Cambridge students David Braben and Ian Bell that captured the imagination of a generation who spent the next 25 years carving a name for themselves in the Elite universe.  Published by AcornSoft in September 1984, Elite has long been considered one of the best video games of all time and inspired the whole “space trading” gaming genre with games such as Eve online, Freelancer, and the X series continuing the tradition.  Elite was the first video game to create an “open universe” for players to explore and follow their own path as they chose, creating the concept of “sandbox” gaming popularized by the likes of Grand Theft Auto and Morrowind decades later.  Long before the “RPG” scene emerged from dungeons and dragons with class based character development Elite enabled players to choose their own path as explorer, trader, pirate, bounty hunter, mercenary pilot, or all of the above literally doing as they pleased within a dynamic universe.  Players could upgrade their ships to haul more cargo across the galaxy or more effectively vaporize the competition on their quest for “Elite” combat status.  Explorers could roam over 2000 worlds across 8 galaxies, while budding entrepreneurs could chose to find lucrative trade lanes between planets trading between industrial and agricultural economies slowly making their fortune.  Meanwhile more nefarious players could become bandits and pirates, stalking rich systems for cargo laden traders, living as a fugitive from deadly Viper police patrols, seeking refuge in anarchic systems dealing in contraband narcotics and slaves.  Whatever your persuasion, Elite had a corner of the galaxy for you.

Many of the aspects of Elite sound routine in 2009, with the likes of Eve online, World of Warcraft, and Starwars Galaxies, but all this was available 25 years ago on an 8bit home computer with 32kb of memory and no internet and was an enormous computing achievement.  Elite contained 8 galaxies, each with 256 planets which had to be procedurally generated.  A single seed number was run through a fixed algorithm the appropriate number of times and created a sequence of numbers determining each planet’s complete composition (position in the galaxy, prices of commodities, and even name and local details — text strings are chosen numerically from a lookup table and assembled to produce unique descriptions for each planet). This means that no extra memory is needed to store the characteristics of each planet, yet each is unique and has fixed properties. Each galaxy is also procedurally generated from the first.  Elite was a technical masterpiece of it’s time and remains unbeaten in it’s achievements and success.

For those who have never experienced the Elite way of life check out the 25th Anniversary website, or for those who fancy dusting off their old combat skills Oolite continues the legacy of Elite with community maintained content and development

… at least while a generation awaits Elite IV.

Firefox maintenance – vacuum the sql database

August 24, 2009 by Steve · Leave a Comment 

# Open the Error Console: Tools menu/Error Console
# In the Code text box paste this (it’s a single line):

Components.classes["@mozilla.org/browser/nav-history-service;1"]
.getService(Components.interfaces.nsPIPlacesDatabase).DBConnection
.executeSimpleSQL("VACUUM");

# Press Evaluate. All the UI will freeze for a few seconds while databases are VACUUMed

From lifehacker.com

tools of the trade

May 18, 2009 by Steve · 2 Comments 

I’m a fan of open source software as an alternative to expensive commercial packages, and after being asked about various tools by colleagues and watching the lab splurge huge volumes of cash on expensive software I decided to compile a list of the stuff I have been using in my studies.   Hopefully it might help others in the future from jury rigging powerpoint posters and watching 30,000 word documents go up in smoke at 3am when you inserted that last minute graph.  There is also an excellent database of this kind of stuff over at open source alternatives.

If anybody has any other favourite gadgets or recommendations for the list let me know :)

  • ApE
    • ApE is an excellent tool for planning your cloning. Personally we use clone manager, but it’s expensive commercial software. ApE offers most of the features of clone manager and a few handy extra ones that the big companies don’t. You can draw plasmid maps, search for restriction sites, plan cloning (even simulate your digests with ladders), and even read ABI files to analyse your sequencing data. There are versions for Windows, Mac, and Linux. Recommended
    • Bioedit
      • Bioedit is a freeware nucleic acid sequence analysis tool with numerous alignment and online database functions.   The essential tool for the molecular biologist
    • Chromas Lite
      • Free  DNA sequence analysis tool.  Limited functionality version of commercial package.  Useful for quick anallysis of sequence house chromatograms.
    • kbib / JabRef
      • Open source bibliography software to keep track of article collections and simplify bibliography creation.  JabRef is a Windows Java based reference library compatible with bibtek format bibliographies
    • Mendeley
      • Mendeley is an interesting reference manager allowing users to store bibliographies online and share them with other Mendeley users, forming project/research groups shared reference libraries.
    • Texmaker / LaTeX
      • Open source publishing software for Linux, essential for any student writing a thesis or other sizeable document.  I highly recommend students attempt the steep LaTeX learning curve in favor of Microsoft Office.  Save yourself last minute thesis and bibliography formatting hell and let LaTeX do it for you.
    • TexnicCenter / MikTeX
      • Windows equivalent LaTeX setup.  TexnicCenter contains inline spell check and a nicer interface than Texmaker, but is Windows only.
    • AbiWord
      • If you just need a word processor avoid the bloat of open office and use AbiWord.
    • Open Office
      • The benchmark free office suite, rivaling Microsoft office and supporting open document format.  I find problems in compatilibity with Powerpoint however, particularly since the release of Office 2007 but I haven’t fully tested the latest version 3.1 yet.  However, barring compatibility with Office users you get a fully functional office suite for free.  Also bundled as standard in Ubuntu Linux.
    • Mozilla Firefox / Thunderbird / Sunbird
      • Do yourself a favor and dump Microsoft Outlook for Thunderbird.  Firefox is moderately web standards compliant and significantly more compliant than internet explorer.  Sunbird is a fully fledged callendering application.  The extensions available for each of the 3 packages extend their functionality and allow users to customize them for their own application.
    • Foxit reader / Sumatra
      • Adobe Acrobat reader has become increasingly bloated and resource demanding and currently weighs in at a 41mb download.  Free alternatives Foxit, pdf-xchange viewer, and the ultra light weight Sumatra are excellent alternatives to Adobe.
    • PDF Creator / doPDF
      • Windows users can create PDF files using either of these free tools.  The software installs a virtual printer that will create a PDF document from anything you send to it.  An excellent alternative to Adobe Acrobat suite.
    • 7zip
      • Free archiving tool compatible with all major file formats (zip, rar, tar etc).
    • PSPad / Notepad++
      • Free text editor compatible with many programming languages.  Tabbed interface, inline programming syntax and spell checking, and loads more.  Notepad++ also does the same but is more lighweight.
    • Dia
      • Free diagram drawing tool.  Ditch microsoft office / powerpoint clipart.   Outputs in various image formats and post script to drop straight into LaTeX or Office documents.
    • Inkscape
      • Open source vector drawing package supporting scalable vector graphics (SVG).  Free software now rivals adobe Adobe Illustrator
    • Scribus
      • Open source desktop publishing package.  Open source desktop publishing package orginially developed for designing scientific posters now rivals the likes of Adobe InDesign.
    • Paint.net / the Gimp
      • 2 free graphics packages that I find indespensible.  Paint.net is great for making quick image edits but requires the dot net framework.  the Gimp is a comprehensive graphics package rivaling Adobe Photoshop with compatibility with photoshop filters.  Available for both Windows and Linux, the interface takes some getting used to but the software can do pretty much everything found in the more expensive proprietary graphics packages.
    • ImageJ / Fiji
      • ImageJ is the current software of choice for image analysis with a wide range of extensions and macros available.  Fiji is the Linux port of ImageJ.
    • IrfanView
      • Freeware image viewer compatible with nearly all image formats
    • Google Picasa
      • Free image viewer with basic editor functions and facility to upload and share images through web albums.
    • Kompozer
      • Updated version of nvu WYSIWYG web design package.  Save yourself the cost of Dreamweaver.
    • Antivir / Avast! / AVG
      • Free antivirus for Windows.  Antivir is less resource intensive than Avast! and AVG.  Keep an eye on VB100 to see which retain their virus detection certificate.
    • Malwarebytes antispyware / Spybot S&D / Adaware
      • Spybot S&D was the standard in spyware removal but recently lost out to Malwarebytes, however browser immunization and tea timer still provide superior protection to the competitors.  Adaware is resource intensive and not as stringent as Malwarebytes or Spybot.
    • CCleaner
      • Clean the sh1te from your Windows installation and free up disk space.
    • Defragler
      • Freeware disk defragmentation tool.  Run this once a week or month to keep Windows responsive.
    • Pidgin
      • Got msn?  Got ICQ, yahoo, AIM, AOL, Jabber, myspace, IRC, and a myriad of other online communication tools as well?  Connect to them all simultaneously without being bombarded with adverts from the proprietary IM clients.
    • Windows 7
      • Depressingly awesome next generation operating system from Microsoft.  Join the beta program and trial the release candidate for free.
    • Ubuntu
      • Ready to roll open source / freeware Linux operating system complete with office and graphics applications. Synaptic package manager provides thousands of additional software packages. Ubuntu provides a friendly introduction to using Linux that can help migrate from Windows before diving into the more demanding distributions.
    • Linux Mint
      • Based on Ubuntu,  Linux mint includes proprietary 3rd party drivers and multimedia codecs that Ubuntu doesn’t package, and includes some fixes like the wireless problems that continue to plague Ubuntu.
    • Portable Apps
      • If you want to go all the way and not even have your own operating system Portableapps.com has created a number of applications modified to run from a USB memory stick so you can take your favorite desktop applications wherever you go.  You also don’t have the security hastle of working on a public computer as all your data and temporary files never leave your pen drive.

Jaunty Jackalope

March 27, 2009 by Steve · Leave a Comment 

Ubuntu 9.04 – Jaunty Jackalope beta has hit the Canonicle servers.  Full release is due at the end of April.  I’m going to give the 32bit desktop edition a run out on my laptop over the weekend.

9.04 promises Open Office 3.01 and the new ext4 filesystem which is reporting faster boot up times.  No 2.6.29 kernel however as the development team will freeze the feature set before its release.  9.04 will ship with 2.6.28 stable.  Ubuntu 9.10 will be shipping with 2.6.30 or 2.6.31… or neither if we’re all credit crunched to oblivion :p

choose your weapon

March 4, 2009 by Steve · Leave a Comment 

Faced with the task of creating a PhD dissertation over the next 3 years I briefly investigated alternatives to the standard Microsoft Office suite.  I had played with Lyx last year but I quickly found myself outgrowing the WYSIWYG interface as I learned to code.  I also required a reference manager as my literature review was comprising over 200 references and the easiest way to get these software packages to interact was to dump the crutches.

I have tried to stay away from Microsoft Office this time as I have spent many years wrestling with auto correct, auto formatting, and frustrating middle of the night sessions watching figures jump around pages and printed documents looking nothing like what is on the screen, not to mention the random events that will occur when I send it to another machine.  I have also moved over to Ubuntu 8.10 as my primary operating system and adopted open office.  Still, the prospect of writing a thousand page document in MS or open office didn’t feel practical.  I stuck with open office initially and needed to investigate a reference manager that would play with it.  The Universities recommendation was Endnote but this was out on my Linux box so I began with bibus as it can store your references in an sql database and I had visions of being able to keep my library on a web server.  Unfortunately I ran into problems when exporting the database – it wouldn’t, and it didn’t play very nicely with open office, requiring time to install pipelines to pass data between the two applications, and generally being unpleasant if I wanted to rapidly throw in reference on the fly.  Bibus also had problems finding references in pubmed and often couldn’t find them even with PUID numbers.  As with bibus, Endnote also appeared to require a break in the writing flow to input a reference.

I cut my losses with office suites and took the plunge into LaTeX proper with Tex Maker and kbib.  Kbib so far hasn’t failed to find a reference search I’ve thrown at it, and imports citations from the web and exports my library into various RIS, xml, and endnote formats ensuring some future compatibility/portability.  Tex Maker isn’t the best LaTeX editor and is still digital blasphemy for hardcore vim or Emacs users, but I like the help it gives me with the code and syntax.  Kile is better with in-line spell check, but texmaker gives me a native gnome application and I can do bulk spell checks periodically.  The code was a hurdle at first, but after a few pages I had grasped a set of basic formatting codes and LaTeX was allowing me to just write and not think about headings and margins, and where the heck figure 9 just went.  I also seemed to grasp the equation editor relatively quickly and found it fairly straight forward to use.  It isn’t as simple as the MS and open office equation editors, but allowed me much greater control.  The real power of LaTex for me has been the labelling and tagging capability.  I can just tell LaTex what’s a figure, equation, diagram, etc and carry on writing.  References are much the same, just inputting the library identifier and carry on with the text.  The compiler will then number and reference them automatically, which is an enormous time saver and doesn’t break the flow of writing.  Inserting a new figure in the middle of a 300 page document at 3am the night before submission is a horror I have experienced plenty of times before in Office, and manually curating a bibliography is impossible this time.  LaTeX isn’t all loved up for the user though.  Document compiling can be a daunting experience when a random $ sign can give you a completely incomprehensible error message at 2am requiring an hour of debugging.  This is where MS Office scores a few dozen points back.  LaTex GUI’s could definitely improve the bug hunting for “noobies”.  After 3 months though I am fairly happy now creating all of my documents in LaTeX and would recommend anybody creating anything greater than an essay to use it, as you can quite literally just write and let the compiler worry about everything else.  Happy days.

For our impending conference visit I attempted to create a scientific poster in LaTex.  Error.  I gave this a good go… honest.  However I found my LaTex Jedi skills to be somewhat under developed and there just wasn’t enough control over the layout without a serious time investment in learning some more advanced code to complete the task.  The University recommended MS PowerPoint, however an A0 document with images in Powerpoint is a nightmare without a quad core processor and as much ram as you can stuff inside the case.  Open Office also requires an enormous amount of time to load and save this kind of document, especially converting between MS office formats.  This time I turned to Scribus, an open source desktop publishing package that was designed by a LaTeX user also struggling to create scientific posters and struggling with the lack of available software. I hadn’t really used Scribus before but found it very easy to input text boxes and images, with fine control of positioning using a WYSIWYG interface.  Scribus also exports as PDF so you can export your documents and send them to the printers moderately confident of what will come back.  Scribus is also infinitely more sophisticated than powerpoint with support for scalable vector graphics and templates for almost any kind of document.  Happy days again.

My next challenges are finding some alternative graphing software to escape Excel and some training in Matlab.

Next Page »