Home

Advertisement

Customize
gaoithe
You can set up a symbian development environment in a couple of hours.
Follow these instructions: http://www.martin.st/symbian/ they are very good.
Here are my extra notes on the install.
They might be useful to someone else (or myself again in future).

I have a nokia E65 and although it is very grotty (interface-wise) it has nice hardware. I like being able to make software for my electronic devices. I played with python apps on the phone a bit. Symbian signing is very awkward for sharing and even playing/experimenting/developing little apps.

I http://www.openstreetmap.org a bit and I use a bluetooth GPS with my mobile to collect the data with WhereAmI http://www.symbianos.org/whereami which is a really nice map display and GPS collection tool. It can also collect GSM cellid information, or rather, it hints it can but it doesn't on my phone. So I want to get the source and see what the problem is and can I get it working.

================================================================================


http://www.google.ie/search?q=symbian+development+linux

http://wiki.forum.nokia.com/index.php/Symbian_development_on_Linux_and_OS_X
The three main approaches. Realistically there seems to be one sensible approach.

Symbian's build system is based mostly on perl. And a bit of make.
It seems heavyish and they should have used make perhaps but the symbian apps are all going to be small enough really. These scripts are modified to work on unix. This matches symbian build system very closely. Seems to be best supported.

Other options: Replacing the build system with makefiles giving a lighter build system or integrating the build system with IDEs don't seem to be well supported.




Start here.


http://www.martin.st/symbian/ based on GnuPoc project
"for S60 3rd ed and UIQ 3, you need the EKA2 toolchain."
Of course we're going to build the compiler from source and not take binaries >;)
And of course we're going to install the extra gnupoc tools so we don't have to use wine too much.


What is going to be installed.



1. Working in this area and tools/scripts + source code are going here:
export SYM_WORKING_DIR=$HOME/src/mobile

2. compiler is going here:
export SYM_COMPILER_DIR=$HOME/csl-gcc

3. SDK is going here:
export EPOCROOT=$HOME/symbian-sdks/s60_3_fp2_v11/


Install steps.



0. Signup to nokia and start SDK download


http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Platforms/S60_Platform_SDKs/
3rd ed fp2 v1.1 430Mish


1. install gnupoc tools and 2. install compiler


mkdir -p $SYM_WORKING_DIR; cd $SYM_WORKING_DIR
wget http://www.martin.st/symbian/gnupoc-package-1.13.tar.gz
# http://www.codesourcery.com/sgpp/lite/arm/releases/2005Q1C  # and form fill and get OR:
wget http://www.martin.st/symbian/gnu-csl-arm-2005Q1C-arm-none-symbianelf.src.tar.bz2

tar -zxvf gnupoc-package-1.13.tar.gz
cd gnupoc-package-1.13
cd tools

less README
# I needed to install bison, I also do other development so possibly already had a
# bunch of other devel packages and tools installed. If it needs bison it probably
# needs make/autoconf/gcc packages 
sudo apt-get install bison

./install_csl_gcc ../../gnu-csl-arm-2005Q1C-arm-none-symbianelf.src.tar.bz2 $SYM_COMPILER_DIR

# I also did need libssl-dev and already had zlib
sudo apt-get install libssl-dev
dpkg -l |grep zlib

./install_eka2_tools $SYM_COMPILER_DIR
#that goes off and gets cross-binutils and compiler and builds them .... 


Here is the error I got that showed I needed bison. "Unexcpected(sic) error"
Flailing newbie help trap.
bison  -d -o gengtype-yacc.c gengtype-yacc.y
make[1]: bison: Command not found
make[1]: [gengtype-yacc.h] Error 127 (ignored)
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I. -I./. -I./../include  \
	 gengtype-lex.c -o gengtype-lex.o
gcc: gengtype-lex.c: No such file or directory
gcc: no input files
make[1]: *** [gengtype-lex.o] Error 1
make[1]: Leaving directory `$HOME/src/mobile/gnupoc-package-1.13/tools/csl-build/gcc-csl-arm/gcc'
make: *** [all-gcc] Error 2
Unexcpected error: aborting.


Here is the error I got that showed I needed ssl-dev package.
It actually did say you needed openssl in the README.
Flailing newbie help trap.
g++ -Wall -gstabs+ -I../include -DTEST -ggdb -c signutils.cpp -o signutils.o
signutils.cpp:36:25: error: openssl/evp.h: No such file or directory
signutils.cpp:37:25: error: openssl/pem.h: No such file or directory
signutils.cpp:44:25: error: openssl/err.h: No such file or directory



2-and-a-half. Read up on symbian build tools and


No excuses for slacking off while compiling/installing/downloading.

Also poke inside the scripts you've installed.

Read more about gnupoc here: http://gnupoc.sourceforge.net/HOWTO/
http://gnupoc.sourceforge.net/
gnupoc_install gnupoc-utils
http://web.archive.org/web/*/http://www.wayfinder.it/resources/uiq_gnupoc.php

Reading the "Build tools guide" is helpful to know more about what the build scripts are doing.
http://developer.symbian.com/main/documentation/sdl/symbian94/sdk/doc_source/ToolsAndUtilities94/BuildTools/index.html
How to use bldmake, How to use abld, etc.


3. install the SDK

# Example on(sic) installing an SDK:

## no! don't get your own unshield. sudo apt-get install unshield
export PATH=`pwd`/unshield:$PATH

cd $SYM_WORKING_DIR/gnupoc-package-1.13/sdks
mv ~/Downloads/S60_3rd_Edition_SDK_Feature_Pack_2_v1_1_en.zip ../..

./install_gnupoc_s60_32 ../../S60_3rd_Edition_SDK_Feature_Pack_2_v1_1_en.zip ~/symbian-sdks/s60_3_fp2_v11

# needed to do this (lzma_decoder.h and any SDK includes need to be findable from working area)
# perhaps should be working inside the SDK dir structure
cd $SYM_WORKING_DIR/whereami_trunk/sis
 ln -s $HOME/symbian-sdks/s60_3_fp2_v11/epoc32 ../../

## I did this:  don't know did it work, switched to using gcc
cp $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools/uidcrc.exe $HOME/.wine/drive_c/windows/
cp $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools/make.exe $HOME/.wine/drive_c/windows/
#MESSY:
cp $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools/*.exe $HOME/.wine/drive_c/windows/
ls $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/release/winscw/udeb/sdkw.exe



Info on figuring out problems with how to set up environment for SDK:
### unshield did not work for me initially at this stage until I figured out where it was and set PATH
./unshield/unshield -V
./unshield/unshield -D3 l _e/data2.cab
find $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools -name \*.orig -exec rm {} \;
cd $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools; chmod a+x *.pl bldmake abld makmake bmconv rcomp makesis epoc eshell petran pfsdump setupcomms elf2e32 mifconv makekeys signsis extmake rtf2ptml cjpeg

### Take a look at the SDK, the install doc, the examples

ls $HOME/symbian-sdks/s60_3_fp2_v11/
epoc32/                                                             S60_3rd_Edition_FP2_SDK_for_Symbian_OS_Installation_Guide_V1.1.pdf
examples/                                                           s60cppexamples/
GCCE_readme.txt                                                     s60tools/
Nokia_EULA.txt                                                      series60doc/

ls $HOME/symbian-sdks/s60_3_fp2_v11/s60cppexamples/
addressbook         clientserverasync     dynamicsettinglist  helperfunctions   localization                   note        progressbar     webclient
aiwconsumerbasics   clientserversync      filelist            helpexample       locationlandmarksrefappfors60  npbitmap    query
animation           contacts              finditemtestapp     hwrmtestapp       locationlandmarksuirefapp      ocrexample  readme.txt
audiostreamexample  datamobility          focusevent          imopenapiexample  locationrefappfors60           openc_ex    registration
brctlsampleapp      directorylocalizerex  graphics            isvtelcallapp     locationsatviewrefapp          openglex    richtexteditor
chat                _doc                  guiengine           isvtelinfoapp     messaging                      popupfield  sipexample
clfexample          driveinfo             helloworldbasic     listbox           myview                         popuplist   uniteditorex

cat $HOME/symbian-sdks/s60_3_fp2_v11/s60cppexamples/readme.txt 
To open the Example Application Help documentation, please go to the _doc folder 
and double-click the index.htm file found there.

wine: could not load L"C:\\windows\\system32\\make.exe": Module not found
make: *** [FINALicons] Error 126

ls $HOME/csl-gcc/bin/
arm-none-symbianelf-addr2line  arm-none-symbianelf-cpp        arm-none-symbianelf-gcov     arm-none-symbianelf-ranlib   bmconv   makekeys  signsis
arm-none-symbianelf-ar         arm-none-symbianelf-g++        arm-none-symbianelf-ld       arm-none-symbianelf-readelf  copy     makesis   uidcrc
arm-none-symbianelf-as         arm-none-symbianelf-gcc        arm-none-symbianelf-nm       arm-none-symbianelf-size     del      mifconv
arm-none-symbianelf-c++        arm-none-symbianelf-gcc-3.4.3  arm-none-symbianelf-objcopy  arm-none-symbianelf-strings  elf2e32  rcomp
arm-none-symbianelf-c++filt    arm-none-symbianelf-gccbug     arm-none-symbianelf-objdump  arm-none-symbianelf-strip    extmake  rem


find $EPOCROOT -name make.exe
$HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools/make.exe
$HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools_orig/make.exe


cp $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools/uidcrc.exe $HOME/.wine/drive_c/windows/
cp $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools/make.exe $HOME/.wine/drive_c/windows/


perl -S makmake.pl  -D $HOME/src/mobile/whereami_trunk/group/s60_v3/whereami WINSCW  
ERROR: Unable to identify a valid CodeWarrior for Symbian OS installation
make: *** [MAKEFILEwhereami] Error 255


MESSY:
cp $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools/*.exe $HOME/.wine/drive_c/windows/
$HOME/symbian-sdks/s60_3_fp2_v11/epoc32/release/winscw/udeb/sdkw.exe






4. try out hello world

cd ~/symbian-sdks/s60_3_fp2_v11/s60cppexamples
cd helloworldbasic/group/
bldmake bldfiles
 abld build gcce urel
 cd ../sis
 makesis helloworldbasic_gcce.pkg helloworldbasic.sis


Yay. Install finished




Install this in your .bashrc



# This goes in my .bashrc or symbian environment setup script:
export SYM_WORKING_DIR=$HOME/src/mobile
export SYM_COMPILER_DIR=$HOME/csl-gcc
export PATH=$PATH:$HOME/symbian-sdks/s60_3_fp2_v11/epoc32/tools
export PATH=$PATH:$SYM_COMPILER_DIR/bin
export EPOCROOT=$HOME/symbian-sdks/s60_3_fp2_v11/




Now play with WhereAmI


 # everyday commands:
 cd $SYM_WORKING_DIR/whereami_trunk
 cd group/s60_v3

 bldmake bldfiles
 abld build gcce urel    # this works instead

 cd ../../sis
 makesis whereami_s60_v3.pkg whereami_s60_v3_jco.sis
 signsis whereami_s60_v3_jco.sis whereami_s60_v3_jco.sisx mycert.cer mykey.key
 cd ../../group/s60_v3



cd $SYM_WORKING_DIR
svn co https://svn.symbianos.org/whereami/trunk/ whereami_trunk

# And this is how I can work quickly compile and make .sis for whereami
# put this in a script or README or notes or blog somewhere
cd $SYM_WORKING_DIR/whereami_trunk
cd group/s60_v3
 bldmake bldfiles
 #abld build winscw udeb  #?  needs wine, .. make.exe problem?
 abld build gcce urel    # this works instead

 cd ../../sis
 makesis whereami_s60_v3.pkg whereami_s60_v3_jco.sis

 # and key signing to make sisx, don't know does this help much?
 # privately made key.  My phone is a bit hacked so I can install any .sis on it.
 # first make key and cert for yourself
 [[ ! -f mykey.key ]] || [[ ! -f mycert.cer ]] &&
   makekeys -cert -expdays 3650 -dname "CN=Name Surname OU=Development O=Company Name C=UK EM=foo@bar.com" mykey.key mycert.cer
 # sign application each time you need to
 signsis whereami_s60_v3_jco.sis whereami_s60_v3_jco.sisx mycert.cer mykey.key

 # how clean make/build?
 # this does a bit of it anyway:
 rm $HOME/symbian-sdks/s60_3_fp2_v11/epoc32/build${HOME}/src/mobile/whereami_trunk/group/s60_v3/whereami*/*/urel/*.{o,exe}




WhereAmI needed lzma_decoder.h



This is done above to resolve this problem:
cd $SYM_WORKING_DIR/whereami_trunk/sis
 ln -s $HOME/symbian-sdks/s60_3_fp2_v11/epoc32 ../../


WARNING: Can't find following headers in User or System Include Paths
 "lzma_decoder.h"
(User Inc Paths "$HOME/src/mobile/whereami_trunk/src/" "$HOME/src/mobile/whereami_trunk/group/s60_v3/" "$HOME/src/mobile/whereami_trunk/inc/" "$HOME/src/mobile/whereami_trunk/data/")
Dependency list for "$HOME/src/mobile/whereami_trunk/src/nmeaparser.cpp" may be incomplete


dpkg-query -L lzma-dev # no, LzmaDecode.h
# here it is:
svn co https://svn.symbianos.org/lzma/
cd lzma/C/Symbian/group
#oops! it's part of SDK:
$HOME/symbian-sdks/s60_3_fp2_v11/epoc32/include/lzma_decoder.h




GSM_LOCATION enable



GSM_LOCATION is compiled out in the source code as you get it now.

+++ add to this file group/s60_v3/whereami.mmp  (after GPS_LBS)
MACRO		GSM_LOCATION
#define		GSM_LOCATION


svn diff >../whereami_enable_gsm_location.patch
meld .
 
 
gaoithe
13 July 2009 @ 11:14 pm
I was putting definitely in an email earlier and had to look it up.
Apparently it is a common enough mis-spelling. :)

It's spelt definite. Not definate! definate seems to be the way I pronounce it which is presumably wrong or my accent. And If it's spelt definite then spelling definitely is EASY.

http://www.google.ie/search?q=definitely =>
http://www.d-e-f-i-n-i-t-e-l-y.com/
http://www.merriam-webster.com/dictionary/definitely
definite definition definitive infinite (again I pronounce _ate!)
http://etymonline.com/index.php?term=define
 
 
gaoithe
Yummmm: Loganberry jam. Logans from Cobh:
http://graciesbakes.com/2009/07/07/loganberry-jam/

Loganberries + sugar. Nyam. Nyam.
Not a very refined or complicated dish.

Loganberry and apple jam. Yumm.

I've tried to sneak a loganberry into back garden but it is a bit obvious and hasn't escaped attention of Fionn :( I want to find a lonely patch and gureilla garden a loganberry into it.

I want to try this:
Blackberry wine. No blackberries but a couple of buckets of blackberry shoots/tips.
http://books.google.ie/books?id=H4h0zC-EKIgC&pg=PA245&lpg=PA243&vq=pine&dq=reed+wildfood+europe
Plus rasins, sugar or honey and yeast.

Did I ever tell you I found a bucket of old apples in the old orchard in Cobh once?
In Wintertime.
All full with wizened old apples (cooking apples) and rainwater,
Not sure how it escaped being kicked over by the cattle who would have been in the field.
It smelled lovely and I brought it back to the yard and forgot about it.
A week later I spilled it out on the gravel which FIZZED and produced a fawn couloured big bubbled FROTH.
Oops wow!
Must try that again using less accidental and more hygenic methods.

We have a small gooseberry bush (with reddish gooseberries on it now) and a very young blackcurrant with fruit and a young apple tree in the front garden.
 
 
gaoithe
The hexdump write last week was part of an epic struggle to get back onto the RedBoot prompt of a device which was booting into a not very well working full linux and which had some problems in the flash images.

The plot of the epic is more or less:

James starts using device and is very cautious with flash mounted filesystem.
After some weeks using the system James gets more confident and puts minor handy links and scripts on the flash system,
After more than a month James is happy making mods to the file-system. Removes a 600kish app and unpacks a package in /lib/modules.
Next reboot => severe b0rkedness.
Struggle and puzzle with device for a couple of hours,
Augh. It's a jffs2 filesystem image.

Nope. Give up. Reflash with OS image and original busybox jffs2 image.
Reboot. Set up system, configure stuff.
Mount drives. Config environment.
Hurngghh. Problems problems problems Ehhh?
Struggle struggle struggle. wtf ?
Extreme puzzledness.

Start again.
Reflash.
Configure configure.
Still same problems! MAH!
But this time the redboot delay is 0 before running boot script.
That's the default after fis init!
AUGH :(
And this image seems to be even more problematic.

Email replying to some questions from device makers, they use squashfs now and before that they had lots of jffs2 bug fixes so yeah, using and writing to the jffs2 flash image WAS a bad idea :(

So ... now ... then ... I never quite got a nfs boot working for the device but now seems like a good time to try!

BUT can't get at RedBoot to reflash or just reconfigure RedBoot.
Can we write to flash with BusyBox?
mtd device ... seems to have limited writing capability?
not really?
Compile mtd_utils.
They give info but unlocking/writing not allowed by kernel.
fconfig ported to linux ... looks noice but again can't open mtd for write.
kexec? ... Hurmmm.
Okay.
Write a kernel module.
Get address of mtd data structures from kernel with nm.
hexdump them
Get the pointer to the mtd device in which RedBoot config is written,
Follow the structure and find the WRITABLE flag.
Set writable to 1!
Now mtd_unlock mtd_write does something. But? Flash not changed :(
fconfig seems to do more. Use it to set time delay to 2, not 0.
BUt it doesn't quite work.
The config is not modified ... BUT ... the CRC is!
A few more attempts to correct it back to valid don't seem to work.
fconfig won't write it again as the CRC is invalid!
Hah hah.
Okay.
Fine.
Reboot.
OH yessss! Redboot detects bad CRC in it's fconfig block and breaks into command-line! YES!! >;-)

Right. nfs boot.
Manual reading. Configure stuff. Unpack initrd.gz/initrd_media.gz, mount, make a copy of it. Config config. Read manuals. After a while have nfs boot, BUT *sigh* half the libs are not there. It's a different image really than the busybox_media.jffs2? Thus ensues lib/bin/module finding and installing ... which never quite completely works.

MAH! MAH! MAH! I've seriously run out of time.

So.

Hopefully we can recover that box sometime.

For now share another box and do some real work.
(real work = spend hours on weird timing/gfx/memory problems to find eventually the main problem is gstreamer tcpserversrc binding to default ("localhost") doesn't work. A bind to 0.0.0.0 does work.)
Now we still have mostly memory problems now.
Buffering video is probably using up too much especially when 1 video ends + another starts maybe? Multiple rebuilds and reconfigs and runs with different memory settings later ....



http://ecos.sourceware.org/docs-latest/redboot/flash-image-system.html
http://www.embedded.com/story/OEG20020729S0043 If the RedBoot fits
http://sourceware.org/redboot/
http://www.gelato.unsw.edu.au/lxr/source/drivers/mtd/redboot.c

Inside my kernel this seems to be in place:
201 #ifdef CONFIG_MTD_REDBOOT_PARTS_READONLY
202 if (!memcmp(names, "RedBoot", 8) ||
203 !memcmp(names, "RedBoot config", 15) ||
204 !memcmp(names, "FIS directory", 14)) {
205 parts[i].mask_flags = MTD_WRITEABLE;
206 }
207 #endif

But writing to flash may not be possible for other reasons. The mtd driver might be find for read only. Writing to flash might be fully supported in redboot code but not in mtd code in busybox? Not sure. The flash writing procedure requires unlock, erase, write, lock.

http://www.gelato.unsw.edu.au/lxr/source/drivers/mtd/mtdpart.c

28 /* Our partition node structure */
29 struct mtd_part {
30 struct mtd_info mtd;
31 struct mtd_info *master;
32 u_int32_t offset;
33 int index;
34 struct list_head list;
35 int registered;
36 };

http://www.gelato.unsw.edu.au/lxr/ident?i=mtd_info

http://www.gelato.unsw.edu.au/lxr/source/include/linux/mtd/mtd.h#L59

59 struct mtd_info {
60 u_char type;
61 u_int32_t flags;
62 u_int32_t size; // Total size of the MTD
63
.
.
.


http://www.linux-mtd.infradead.org/
Linux MTD (flash device drivers).

http://wiki.davincidsp.com/index.php/MTD_Utilities
MTD utils
Heh heh, mtd_utils has a little hexdump inside also.

fconfig ported to work in linux/busybox: HANDY!
http://andrzejekiert.ovh.org/software.html.en
http://andrzejekiert.ovh.org/software/fconfig/fconfig-20080329.tar.gz


Could build kexec for the platform and trigger boot of a particular image from busybox. Maybe.
http://www.ibm.com/developerworks/linux/library/l-kexec.html
http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/


# this will more or less get things going:
CC=arm-linux-gcc CXX=arm-linux-g++ make
 
 
gaoithe
11 July 2009 @ 01:01 am
2 posts about use/abuse of Microsoft formats/packages in linux in a row :( sorry :(

The wine I have has an internet exploder with it .. but .. it doesn't work? :(
Not sure what is up.

Found this:
http://www.tatanka.com.br/ies4linux/page/Installation
Download. Unpack. Run. (installer breaks out and warning. Run again. Gets further. Breaks out again.
Run again. Disable Flash install as that is giving a run32.dll exception.

:~/src/ies4linux-2.99.0.1$ wine --version
wine-1.1.25
:~/src/ies4linux-2.99.0.1$ ./ies4linux
IEs4Linux 2 is developed to be used with recent Wine versions (0.9.x). It seems that you are using an old version. It's recommended that you update your wine to the latest version (Go to: winehq.com).

Yeah. Okay.

ie6

Uoh. neat :)
motortax.ie site works fine.
Ow, where are my insurance details.
Clicketty click.
Done.

Screenshot here:
http://www.dspsrv.com/~jamesc/torture/ScreenshotOfRunInternetExploderOnLinux.png
 
 
gaoithe
Use Projity openproj. http://openproj.org/
"OpenProj is a free, open source desktop alternative to Microsoft Project."
Very good, it read the .mpp I was interested in no bother.
Other linux project planning tools don't work much with .mpps.
Colleagues have used it to edit .mpps and exchange them with Windows people.

Downloads here:
http://sourceforge.net/projects/openproj/files/
The rpm worked well for me on Fedora 10.
The .deb (openproj_1.4-2.deb) installed and runs but menus/gui were invisible for me on ubuntu jaunty.
I have some java dev packages installed so my java environment is not a bog-standard one.
google problem trap: help problem openproj cannot see interface b0rked doesn't work horrendous argh help!

Projity was acquired recently by Serena Software.
Common Public Attribution Licensed.
Implemented in Java.
Seems to be a relationship with Sun and distros so hopefully coming as the project planning part of StarOffice and OpenOffice sometime. No I'm not affiliated in any way and still don't even like java though somewhat grudgingly have to admit it's somewhat useful.


vi `which openproj`
# Set it to log to file and control what version of java it chooses.
# The command-line it chose was this:
/usr/lib/jvm/java-1.5.0-sun/bin/java -Xms128m -Xmx768m -jar /usr/share/openproj/openproj.jar --silentlyFail true
# This command-line worked for me (just use my default java which is 1.6):
java -Xms128m -Xmx768m -jar /usr/share/openproj/openproj.jar

I have these jvms:

java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu7)
OpenJDK Server VM (build 14.0-b08, mixed mode)

java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)
Java HotSpot(TM) Server VM (build 1.5.0_18-b02, mixed mode)
 
 
gaoithe
06 July 2009 @ 04:50 pm
Not AGAIN! DOH. ended up writing a quick c hexdump AGAIN :(.

void hexdump(char *msg, char *buf, int len)
{
    int i;
    char c;
    char str[0x11];
    if (msg != NULL) printf("%s: %s\n", __func__, msg);
    i=0;
    while(i<len){
        if (i%0x10 == 0) printf("%08x: ",i);
        c = *(buf+i);
        printf("%02x", (int)c);           
        str[i%0x10] = '.';     
        if (c >= 32 && c<=120) str[i%0x10] = c;
        if (i%2 == 0) printf(" ");
        if (i%0x10 == 0xf) {
            str[i%0x10+1] = 0;
            printf(" %s\n",str);
        }
        i++;
    }
    if (i%0x10 != 0xf) {
        str[i%0x10+1] = 0;
        printf(" %s\n",str);
    }                  
    
}

 
 
gaoithe
We went on a cycle today, I cycled over to Kilmashogue (start of Wicklow way near Marlay park).
Yeow! Steep hill. Fionn drove with kids and kids bikes.
Then we cycled up the hill, had a picnic and cycled back down.
http://www.facebook.com/album.php?aid=2015681&id=1118555017&l=59f1dcfc6b
We found 2 burnt out cars. One micra in car park.
One white/black BMW up the hills.
Then I cycled back home over the hills instead of on the road.
More steepness. Up and Down steepness. After Three Rock extreme rocky downhill steepness.
Trails deteriorated into very interesting cycling.
I had to walk a bit,
I think there might be an easier track to cycle (as I joined it 100m from bottom of hill!) only it has moved since the map I had was done.
http://www.openstreetmap.org/user/gaoithe/traces/432302
http://www.openstreetmap.org/?lat=53.25161&lon=-6.25589&zoom=15&layers=B000FTF

My mobile phone (Nokia E65) has been misbehaving.
Saying "Insert SIM card" and "General System Error" reset needed and crashing/resetting itself (more often than normal).
The web votes for jamming something in behind the SIM and it seems to be working for me :)
I quite like hardware hacks like this :-D
http://discussions.europe.nokia.com/discussions/board/message?board.id=hardware&message.id=7926&jump=true#M7926
http://ocpdesign.wordpress.com/2008/09/12/nokia-e65-sim-card-registration-failed-insert-sim-card-error-cant-update-firmware/
http://www.boards.ie/vbulletin/showthread.php?p=58081238

New hutch for the rabbits.
They're not impressed.
Ran around the edges of the garden alot at bedtime.
Twinkle Star is inside nice and cosy but Jack isn't - though he is inside the chicken run so safe.
I also saw a rabbit/hare up in the hills today.

At home GPS trace uploading of the cycle ensued and I wanted an elevation graph.
Here one is: http://www.dspsrv.com/~jamesc/map/Kilmashogue_to_ThreeRock_gpxreport.pdf
http://utrack.crempa.net/
http://code.google.com/p/wherewasi/wiki/WhereWasI
wherewasi.py --eprof -g wami-20090704-00.gpx
wherewasi_gui.py
http://www.fsckin.com/2008/04/06/review-four-linux-gps-packages/
http://www.mapability.com/blogs/gps/2008/07/gpx-route-map-technical-detail.html
http://utrack.crempa.net/
http://wiki.openstreetmap.org/wiki/Making_Tracks_with_Homebrew-ware
http://www.nabble.com/Displaying-the-properties-of-GPX-points-td22432909.html
sudo apt-get install viking
http://www.ncc.up.pt/gpsman/wGPSMan_1.html
Tags: , ,
 
 
gaoithe
Video here:
http://www.youtube.com/watch?v=5TVB7KPXAts

Image data Copyright:
http://gis3.dcmnronline.ie/imf5104/imf.jsp?site=Helicopter
It would be nice if GIS info were available to taxpayers! poke. poke.
And if GIS browsing site had more features.
Basic bookmarking/linking would be nice.
Anyone want to write a cloudy app?
It's not fantastically wonderful data really .. maybe,

BASEURL=http://gis3.dcmnronline.ie/sorted/
for (( i=87198 ; i<=88123 ; i++ )) ; do 
 echo i=$i;
 wget -c $BASEURL/$i.jpg ; 
done

for (( i=87198,j=0 ; i<=88123 ; i++,j++ )) ; do 
 ln -s $i.jpg $j.jpg; 
done

# -r is framerate in fps, -b bitrate
FFFLAGS=-title 'Helicopter Coast Cork Harbour http://gis3.dcmnronline.ie/imf5104/imf.jsp?site=Helicopter'
ffmpeg $FFFLAGS -r 3 -b 1800 -i helisound.mp3 -i %d.jpg HelicopterCoastCorkHarbour.mp4

# ugh, yes. sorry about the audio
# 995 images, 8M video.



http://gis3.dcmnronline.ie/output/ENG_HELICOPTER_dcmnrgis-web134762684331.png

http://gis3.dcmnronline.ie/sorted/87685.jpg
Cuskinney, Cobh

http://gis3.dcmnronline.ie/sorted/87654.jpg
The slip in Cobh

http://gis3.dcmnronline.ie/sorted/100741.jpg
Dublin joyce martello tower sandycove

http://gis3.dcmnronline.ie/sorted/104513.jpg
Dundalk

http://gis3.dcmnronline.ie/sorted/1.jpg
Throat of malin

87k * 100000 images = 8700000k = 8.7G
Hmmmmm >;)

http://gis3.dcmnronline.ie/sorted/88123.jpg
out to R of Roches Point (and of Cork harbour)

http://gis3.dcmnronline.ie/sorted/87198.jpg
well out of (Cork) harbour to left


http://en.wikipedia.org/wiki/HNLMS_Amsterdam_(A836)
http://www.defensie.nl/marine/operationeel/schepen/hr_ms_amsterdam/

http://gis3.dcmnronline.ie/sorted/87638.jpg
http://gis3.dcmnronline.ie/sorted/87639.jpg
http://gis3.dcmnronline.ie/sorted/87640.jpg
http://gis3.dcmnronline.ie/sorted/87641.jpg
http://gis3.dcmnronline.ie/sorted/87642.jpg

87638 bow -> 42 stern


http://gis3.dcmnronline.ie/imf5104/imf.jsp?site=Helicopter
 
 
gaoithe
Kids were in school play last 4 days.
Very good actually combination of variety Irish dancing, singing and music by kids and teachers mixed in with two stories.
Snow White and Prince Hugh
Kate on Mon (F&M saw her) + Tue (F&M&I saw her and Daire).
Daire was Prince Hugh who was a bit too popular with the girls for comfort!
Daire was Prince Hugh on Tue and today (Thur), on Wed Daire was in Larch hill with scouts.
(Maeve and I dropped Daire, Cian and Conor over to scouts.
We left Kate with Moya to get lift to play.
Maeve & I watched play and collected Kate.)
Kate was very funny and nice as a dwarf.
She marched around very confidently.
She was very expressive - especially when they saw snow white had collapsed!
She stared very concerndly at snow white at the end.

Had great fun with Daire collecting some more election posters.
He was really good at spotting them from car and great help carrying snippers and posters and ties.
He was still dressed in sandals and pants with rope lashing on them for costume and still with moustache of Prince Hugh.
He got hit on the arms with one poster on the way down. :(
I got some myself on way back from dropping him down to do school play.
Met Catherine and Kevin also collecting posters.
Kevin has a magic long snippy rope stick.
It almost flies like a broomstick!
We have 10 of Elizabeth's, 4 of Adrianne's and 1 each of Terence's and Deirdre's.

We met a friendly drunken person drinking through a plastic bag full of cans at the Goat.
He offered to help but we had our ladder.
He was asking how much might the fine be if they were left up and if you could make money putting the posters up or down.
He scooted off real fast, hopefully not to get a ladder!!

Fionn's really busy with Residents stuff.
Delivering flyers about AGM, collecting subs, getting photos ready, making presentation for AGM, arranging things with roads/greens/sports&social, stuff needs to go up on web and be printed. http://lhra.info

I'm suffering form VERRRY annoying cough.
It was a teeny possible allergic sniffle coming back from camping. :(
The heat seemed to initiate it.
 
 
gaoithe
€€€ jobs banks €€€ jobs banks €€€ jobs banks €€€ jobs banks €€€ jobs banks €€€
Irish people: "Waaah. It's not faaaair! :("
vote vote vote vote vote vote vote vote vote vote vote vote
Me: "Waaah. It's not faaaair! :("

Good to see FF down loads.
However Green Party have been decimated in the local councils.
(I'm a bit sorry FF people, actually I'm liking the current FF government (heavens forbid!) compared with the opposition! However you have a long history to overcome before I would trust you.)
IMHO you need a good scattering of crazy green people especially at local council level.
This is why I'm Waahing.

And who has gained? Labour (Which is okay by me, I think.)
And FG have gained who I view as being the same as FF (except for not being in power for last long while so perhaps more innocent).
But one definate thing is I don't hear anything about solutions or politics from FG or Labour.

Dammit.

Bah.

Meh.

One thing I think I can say for sure is that the voters are expressing displeasure.
I think that might be all that I'm sure about.
What exactly are they displeased with?
The current state of the economy right now I think.
Did people vote in council people based on their performance in this council term and the past ... ?
I think even some very solid local people suffered this time just through association with being in government.

Why have the Greens been punished so much?
Perhaps their vote is not that strong anyway so when you're in a negative place you are going to be decimated.

IMHO Greens in government is good. If you are out and always stay out you're irrelevant. If you are in you can influence policy and make a real difference and influence the people you're in government with and make them greenish left liberal honest too. I don't quite see why the banks have to get such huge support when they are still inclined to squander but apart from that I think this government is generally doing okay. I think on the Environment with the roads through Tara and with Shell in Mayo the Green agenda has had to hold it's tongue in government and that's hard but you can't just stay out of government and leave FG/Labour allow things to be even worse for planning generally as well as worse for Tara and Mayo.

It's too late to vote this government out of office!
2 years ago was the chance to do that!
There were plenty of people, Greens especially warning about the economy, about wasting money, about the overinflated property bubble 2 years ago.
And what happened 2 years ago? I would have loved for FF to be booted out.
FF got quite a nice proportion of the vote, not quite 50% seats but a very comfortable amount.
The people spoke (and sure it was a nice sunny day as well).
Did FG/Labour want another election then?
They seem to want another election now.
Isn't that like voting a few times on the Nice Treaty? (or abortion, or divorce, or contraception)
A necessary thing actually! :-) In time.

If it was a national election would people really bash FF?
I don't see any good proposals from FG and Labour.
If the running of the country was really on the line would people see the lack of anything solid from FG or Labour?

FF === FG as far as I can see so to increase the vote for FG is surely a stupid reaction.
They are the same with regards policies (which they generally don't write down/publish and keep vague!)
Their policy on honesty and corporate donations are the same (yes, we'll have that €€€€ thank you very much ka-ching!).
They've a long history in local government (and across the country planning decisions especially have suffered from bad decisions from many councils).

Labour are also playing the sure we are green anyway and we we do planning as well card now, which is a bit annoying seeing as they've a long history in government and on local councils without making a difference. Come on Labour! Put your money where it matters and show you can be honest by supporting strict regulation of donations.

I have been looking to FG or Labour for something and would have liked to support them but they have put nothing sensible forward. SO I found in this election I voted Green and for a couple of good local councillors and then there was nobody else worth a vote :(.

What should the Green party especially do now?

The morally correct / honourable thing would be to stay in and influence this government as much as possible in the right direction. If they stay in government green voters and people could get more disillusioned with the party "selling it's soul". We're not "selling our souls" guys! We're taking evil parts of FF souls and making them a little bit green, a little bit pink and generally more colourful. If the Greens go out of government ... well, I think there is no good reason to go out of government (no good moral reason!). I also think Greens could be just decimated by an election now and even if not the government dynamics would probably make it that we have 1 or 2 big parties in power (the parties with the vague not-written-down poolicies!). A National Government fills me with that warm squirmly horribly sick feeling - but that's okay - it looks like it gives the same feeling to FG and Labour.

What would be the thing to do for the green party if they just wanted to grow in size and power?
People (I hope I hope) will vote for good candidates people who work hard on local issues for councils.
People are a bit stupid when voting quite often maybe? And will vote for celebrity. Will vote AGAINST things much easier than voting for things. Do people really not care about party policies just about more single issues that crop up.
So appearance/media is everything. To get elected by Irish voters you must look and sound good, make good impressions and manipulate the system to stay looking good. I don't think Green people want even to be thinking about this!
Maybe the best policy for greenish-pinko-liberal people is to hide their good policies and agenda and work on that in quiet and on the surface manipulate the system as much as possible in whatever political vehicle is handy.

Maybe(Hopefully!) good people working away locally (2 greens left with council seats! :() and nationally, out of power and in can build up a good reputation which would be apparent to people generally. And maybe that would translate into votes and into a good influence in the right place.

Hopefully.
 
 
gaoithe
Beautiful warm summery weather all this week.
Not too hot on motorbike. Strangely.
Collect things a bit Wed and Thur evening.
Daire brings lots of gear down from attic himself.
I go help waider move Fri and we pack car Fri night.

Pictures here:
http://picasaweb.google.com/gaoithe/2009MayJuneCampingMorrisCastleWexford#

http://maps.google.com/maps?f=q&source=s_q&q=Morriscastle+camping,+wexford,+ireland
By the way, googling for "camping|campsite|caravan|park" as a business search is really handy.
Lots (not quite all) places can be found there.

Sat morning we set off, arrive in grand time, set up camp in caravan/camper van area.
Pitch tent right next to playground.
Could be fun!
Daire meets some kids and plays football with them straight away "I'm Barcelona!" "I'm Man-U!" (heh heh _ I think doh on behalf of 1st kid, Man-U have just beaten Barca yesterday).

Morriscastle to Wexford, heritage centre and then later Johnstown castle for picnic:
http://www.openstreetmap.org/user/gaoithe/traces/403865
http://www.openstreetmap.org/?lat=52.5187&lon=-6.2349&zoom=14
Important to get the sun-cream on!
Fionn has arranged all the food. Lunch and picnic for later. Brilliant!

Go to Enniscorthy to eat in the evening.
Nice Portuguese place (? Galo) after walking around lots of Enniscorthy (which was nice though with tired kids).
And visit vinegar hill for fun on way home.
I navigate with map on way home.

Next day lots is on the beach.
We do life-jacket wearing practice for Kate and Maeve and play in dingy - they get to feel what being half in water with lifejacket is like.
In evening beach walk.
Lovely marsh lagoon under windmills BUT someone warns us that locals think it has sewage in it :(
SO that dampens things down a bit :(
Or rather ...
Anyway.
Daire and Kate join in a massive game of chase on the dunes.
Bad from dune conservation point of view probably (as is having the campsite and paths on/through dunes to beach maybe).
:-7
 
 
gaoithe
29 May 2009 @ 11:32 pm
ubuntu reinstall okay now, lots of stuff reconfigured/moved over.

User accounts/passwords and groups set.
Home areas linked in.
Loats of software to install. And some to configure.
Happily the gnome logins seem nicer and user switching behaves better.
Sound when multiple users are on is better.

Ouch. Running childsplay kills the display. Can't recover session.

Thunderbird need to install enigmail add-on (gnupg) from ubuntu package as I have thunderbird from a package.
Firefox get stuff in ubuntu packages where possible ...
TODO:
digikam (new version => digikam database ownership)
kids edu games and menus to find them
photo and video areas need moving (and tidy)

Notes for digikam (in ubuntu 9.1):
User can run it using digikam db they don't have write access to.
But creating new album silently fails (could create new dir but not write to db).
Try upload to flikr. Message so something in browser. Click ok when blah.
1. no okay (it is yes or no). 2. No browser appears. 3. click yes and get seg fault.
Upload to picasa same okay/yes/no dialog.
Uploading doesn't start ... ?
In bigview mode when rating photos rated photos as 4 and photo selection would go back to start. annoying.

Unfortunately I don't have time to go and look for digikam bugs, see if these issues are already logged and write a good description of problem :( :( It could be faster to download source + fix it!!
Maybe.
But then making a beautifully nice and coherent fix and submitting it could take time too!
 
 
gaoithe
So.
Ubuntu version upgrade.
AND entries to boot new kernel written incorrectly to /boot/grub/menu.lst (because of long time previously described disk detection error) so restart after upgrade booted into old kernel.
After reboot the package manager assumed it was okay to continue the upgrade.
Suggestion to upgrade scripting people: sanity check kernel version before continuing with upgrade.

Adept seemed to be quite unstable and failed.
Ended up with a system which would boot but had no network, or graphics.
When I fixed graphics (X) we had no mouse or keyboard. AGH! B0rked.

Oh dear.

Right.

Download .iso for ubuntu 9.1 jaunty.
Make various backups.
Repartition.
...
 
 
gaoithe
Oh no! Palm worked seamlessly with linuxes for a while.
(and other usb sync just by setting device "usb:" as the thing to sync.)
Now ...
The bad old messy config days are back (hopefully momentarily - I'm briefly stuck on gutsy for a bit on home pc).

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"
$ uname -a
Linux xx 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686 GNU/Linux

To get palm sync working (with jpilot):
1. add visor to list in /etc/modules
sudo vi /etc/modules
sudo modprobe visor # to load module just for now without restarting
2. Make (or add to 10-custom.rules the below KERNEL=="ttyUSB*" entry (and rm entry from 60-symlinks.rules
BUS=="usb", SYSFS{product}=="*[vVisor]*", KERNEL=="ttyUSB[13579]", NAME="pilot",\
GROUP="dislout", MODE="0660"
2.1
sudo /etc/init.d/udev restart
3. some tests
pilot-xfer -p /dev/ttyUSB0 -l # doesn't work? works?
sudo pilot-xfer -p /dev/ttyUSB0 -l
udevinfo --query=all --name=/dev/ttyUSB0
4.And argh I ran sudo jpilot and did a sync (as root) The group setting was wrong so jpilot as normal user couldn't sync.
# fix ownerships (be careful with find ... -exec chown or chown -R in general, ...
# did I ever tell you about the time I killed a server with a recursive chown?
find /home/jamesc/.jpilot/ -user root -exec chown jamesc:jamesc {} \;
5. add group dialout for your user
sudo usermod -a -G dialout `whoami`
5.1 login again then check new group is enabled for your user
groups
6. FINALLY
jpilot
#hotsync button on palm first, then hotsync button in application



http://ubuntuforums.org/archive/index.php/t-418979.html j-pilot problems in Feisty
http://barnson.org/node/1556 Hotsync Palm Centro on Ubuntu Gutsy
http://www.linuxquestions.org/questions/linux-hardware-18/has-anyone-synced-a-palm-tx-with-linux-397038/?highlight=pda+sync
 
 
gaoithe
18 May 2009 @ 01:29 am
I got to use a soldering iron this weekend :)
One of Kate's karaoke microphones was broken.
Sure enough, unscrew connector - only one wire attached ... where is other?
Cut and dig into cable to find it.
Then solder it up and screw back together.

Paul brought mirrors and laminated glass.
(by the way, thanks loads for ordering and bringing them Paul!
http://www.palmac.ie/)
Fionnuala got mirror glue and we put up the 2 bay window mirrors (propped with big bits of wood for the day).
I fitted a frame of wood into old attic hatch.
Maeve helped paint it white.
And today we fitted in the laminated glass.
And I stood on it.
And it didn't break!
Big and little bathroom mirror are for another day/weekend.

Music rehersal for choral singing as usual Tue and Thur (competition coming close).
Playing with recording sound, editing and with .abc format linux software.

My jeans have 2 more rips in them (4 times repaired already).

Last Wed helped put up election posters for Green party.
Grand activity. I did feel it in back after a few hours climbing ladder and doing awkward things on it.
Collected Daire from scouts in middle of postering (and rescued a poster for Terence).
It was dampish by end of night but not bad at all.
On Thur backtracked and numbered posters on bike.
Maebh Cody and Adrianne Wyse running in different parts of Dubin South.
Next time: bring sweeping brush for pushing up posters/ties/reaching (umbrella is okay).
Bring gloves - poles are surprisingly dirty.
Brind indelible marker and number them BEFORE putting them up!
Someone must make a plan and a map.
 
 
gaoithe
Explores how science was understood and developed by the people working in it.
What their mindset/thinking was and what were the big changes and which were the accidential(and misinterpreted) discoveries and missed opportunities.
A good meditation upon good scientific method :)

He succeds admirably with the goal of finding proper, not superficial (and hence satisfying) explainations.
Good book. Enjoyable read.

This is my Mum's book.She has a note in it about Kuala Lumpur.

http://en.wikipedia.org/wiki/A_Short_History_of_Nearly_Everything




I'm trying to catch up on recording books I've read.

Tags: ,
 
 
gaoithe
17 May 2009 @ 11:35 pm
'A wonderful and wondrous novel' indeed!

Lovely fantasy. Myra oops! heh hehMosca has grown up in a small village in a world where religions and politics have evolved in weird (only marginally more weird than our own world) ways. Mosca loves books and words though they are denied to ordinary people and guarded jealously by the stationers guild. Her journey into the wider world to the city of Mandelion is great fun for a reader and nothing dismays Mosca (for too long).
Excellent! :) A fantastic new world to explore.

This is one of Daire's books.
I think someone got it for him for Christmas.
Good choice!!

http://www.franceshardinge.com/
http://www.amazon.com/Fly-Night-Frances-Hardinge/dp/0060876271




I'm trying to catch up on recording books I've read.

 
 
gaoithe
This smoke alarm in the kitchen has been in the wars.
I think the smoke mark (new) must be from fire officer Daire testing it!

It's "be quiet" feature never worked very well and the break in the face is because the "be quiet" part of the face was always too stiff to push though the switch did engage if it was hit VERY hard.
Nowadays smoke alarms (and CO alarms) seem to very alot in expense.
(Watch out for price hikes after fire/CO stories reported in media!)
And the design seems to have disimproved over last few years.

You can't get a "be quiet" (for a little while) feature any more?
Is this because of over regulation?
Or because it doesn't pay the alarm makers to put it in?
Without a "be quiet" our kitchen smoke alarm ends up disabled (battery out or covered) for a while when we do end up with smoke. And on occasion when we make a big mess in the kitchen with smoke the same has been done to the alarm in the landing.

We have a CO alarm in Daire and Kate's rooms.
We have a smoke alarm in stairs landing, in attic room and in kitchen.





 
 
gaoithe
17 May 2009 @ 11:34 pm
I quite like Anthony Horowitz's Alex Rider books though they're plainly told action.
The characters are well done.

Perfect for Daire and friends I think :)
In some of Daire's stories you can see the influence of books he reads sometimes.


http://en.wikipedia.org/wiki/Ark_Angel
http://www.anthonyhorowitz.com/alexrider/books/arkangel.html
http://www.amazon.com/Ark-Angel-Anthony-Horowitz/dp/0744583241





 
 
 
 

Advertisement

Customize