Archive for the ‘ubuntu’ Category

0.8.6 supports PostgreSQL and has better output formatting

Monday, August 24th, 2009

New features:

  • Added support for PostgreSQL databases.
  • Each item of output now has a preceding display line and a description of its data source (database and table) and when it was created.
  • Improved layout of exported scripts.
  • Added unit tests for main statistical algorithms used.
  • Better handling of timestamp and autonumber fields in data entry/editing.

Bug fixes:

  • Fixed script export bug.

Additionally, the Windows package now installs a menu shortcut for uninstallation. It always should have, of course, but the latter is still an example of a little thing which makes newer versions of SOFA Statistics nicer to use. The idea is that, collectively, thousands of details like that will create a sense of polish. The Ubuntu 100 papercuts project is one inspiration.

wxPython hourglass cursor not working in Ubuntu

Monday, August 17th, 2009

The following code worked in Windows but not in Ubuntu:

# hourglass cursor

curs = wx.StockCursor(wx.CURSOR_WAIT)
self.SetCursor(curs)
Something happens that takes a while … … … …
# Return to normal cursor
curs = wx.StockCursor(wx.CURSOR_ARROW)
self.SetCursor(curs)

Use instead:

wx.BeginBusyCursor()
wx.EndBusyCursor()

NB good to use wx.IsBusy() with EndBusyCursor().  On Windows, ending a cursor if one is not running causes an error.

if wx.IsBusy():
    wx.EndBusyCursor()

Installation testing using VirtualBox snapshots

Thursday, May 28th, 2009

VirtualBox is brilliant.  You can set up Windows XP, Ubuntu Jaunty etc and test installations into them.  Then reset to snapshot and rinse and repeat.  Installing onto systems that are not “clean” is never as certain – perhaps you have already installed comtypes or whatever.

One tip for sharing files between a host OS and a Linux (Ubuntu) guest OS (see http://www.virtuatopia.com/index.php/VirtualBox_Shared_Folders).

Within the guest OS, make a directory e.g.

sudo mkdir /transfer

Then mount the shared folder you set up externally in VirtualBox using:
sudo mount -t vboxsf sharename mountpoint
in my case:
sudo mount -t vboxsf transfer /transfer
It is then easy to grab files from the host OS e.g. a deb package that needs to be installed.

Ubuntu packages the only Linux option

Thursday, May 28th, 2009

I have just watched a fascinating video entitled “Why Desktop Linux Sucks” by Bryan Lunduke (http://anotherubuntu.blogspot.com/2009/05/why-desktop-linux-sucks.html).  Desktop Linux works really well for me but Bryan makes a lot of important points.   I certainly agree that packaging is a big problem.  The approach I have taken for Linux installation with the SOFA Statistics project is to only release a deb package aimed at Ubuntu (http://www.sofastatistics.com/downloads.php).  I am already spending a lot of time packaging as it is and would like to spend more time developing new features.

Launchpad puts the Open into Open Source

Friday, May 22nd, 2009

I have made some more revisions of SOFA Statistics (bugs fixed, mainly regressions after refactoring).  Launchpad makes it easy to see every difference between the different versions.   http://bazaar.launchpad.net/~launchpad-p-s/sofastatistics/main/revision/5 Truly, nothing is hidden which shall not be revealed!  These are very powerful tools, all made available through the power of open source.

Working SOFA deb package under testing – release soon

Monday, May 11th, 2009

A working debian package has been created for the SOFA project.  It will be uploaded onto the installation page http://www.sofastatistics.com/wiki/doku.php?id=help:installation in the next few days once a few extra test installations have been completed.

Windows and OS X packages are on the agenda once wxWebKit has been packaged for those platforms.

Made first demo deb package successfully

Friday, May 8th, 2009

The instructions kindly provided by Horst Jens  at http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb were very helpful.  There are a few details I have to understand better but it all looks doable.  One gotcha when editing the rules file in gedit – tabs != spaces and manually added tabs are converted into spaces!  Copying and pasting tabs from elsewhere solved the problem.

Working on streamlining manual installation

Thursday, May 7th, 2009

Making sure that the program can be manually installed on a clean Intrepid/Jaunty system (see http://www.sofastatistics.com/wiki/doku.php?id=help:installation#ubuntu_linux_intrepid_or_jaunty) exposed a few issues which have now been resolved.  The default SQLite database now has 1500 records and is indexed.  One of the design goals for the project is easy installation and that is what is being worked on now.