Monday, October 29, 2007

tftp - on marvell device

My marvell device(PXA300) seems only work on static ip. I use HyperTerminal as emulator on Windows, with ifconfig, I got "192.168.1.101", while my workstation ip is 192.168.10.130, and my vmware Fedora Core 5 is 192.168.100.129. I don't know how to connect the device to my linux host, but here is how it works on my workstation.

- I change my workstation ip to "192.168.1.102", gateway to "192.168.1.100"
- Then on HyperTerminal, I can "ping 192.168.1.102", and on workstation I can "ping 192.168.1.101"
- On workstation(XP), I download and install tftp server. (Let google help to find one)
- Setup tftp, that is, start or stop tftp server, I would say my tftp server is local.

- on HyperTerminal:

tftp -p -r blah 192.168.1.102 (send blah to workstation)
tftp -g -r clock.txt 192.168.1.102 (get clock.txt from workstation)

Friday, October 26, 2007

cscope - setup

Here is the setting in my .emacs

(require 'xcscope)
(setq cscope-do-not-update-database t)
(setq cscope-initial-directory "/path/of/src")

(define-key global-map [(ctrl f3)] 'cscope-set-initial-directory)
(define-key global-map [(ctrl f4)] 'cscope-unset-initial-directory)
(define-key global-map [(ctrl f5)] 'cscope-find-this-symbol)
(define-key global-map [(ctrl f6)] 'cscope-find-global-definition)
(define-key global-map [(ctrl f7)]
'cscope-find-global-definition-no-prompting)
(define-key global-map [(ctrl f8)] 'cscope-pop-mark)
(define-key global-map [(ctrl f9)] 'cscope-next-symbol)
(define-key global-map [(ctrl f10)] 'cscope-next-file)
(define-key global-map [(ctrl f11)] 'cscope-prev-symbol)
(define-key global-map [(ctrl f12)] 'cscope-prev-file)
(define-key global-map [(meta f9)] 'cscope-display-buffer)
(define-key global-map [(meta f10)] 'cscope-display-buffer-toggle)


Common Lisp - startup

1 Pick up a Lisp implementation.

- sbcl (my current choice)
- OpenMCL, but I am not sure OpenMCL is dieing or NOT (I would like to give it a try on my MacBook.)

2 Setup development

- slime (always using the cvs version, from Marco's slime movie.
- Emacs (I would choose carbon Emacs instead of aquamacs, build Emacs from cvs is also an option, but I got a failure, is that a bug in current development version)

3 Tutorial

- slime movie, rich on coding and debugging with slime, also with Emacs tricks I never know!
- Practial Common Lisp (suggest by David Steuber)
- ANSI Common Lisp by Paul Graham (I own this book)

4 Community

- usenet comp.lang.lisp
- #lisp on irc.freenode.net

5 Where to start next

- time (1 or 2 hours quite time on MacBook)
- starter project (programming on lisp - algorithm first Red black tree)

Wednesday, October 24, 2007

VMWare - allocate disk space

Today I need to add another free disk for my new project, and my previous blog still works. Here is the steps, I am writing to create a new scsi virtual disk.


1. use vmware workstation to create a new disk 8G, and allocate spaces as well.

2. Start Fedora Core 5, run a terminal.

3. "fdisk -l /dev/sdc" to list the hard disk information, here there is no sdc1 sdc2 etc.

4. "fdisk /dev/sdc" to create a new primary disk with "n", use the all space for sdc1.

5. "mkfs.ext3 /dev/sdc1" to format the disk to ext3 format.

6. edit /etc/fstab, add a line "/dev/sdc1 /opt/marvell ext3 defaults 0 2".

7. Then I can mount /dev/sdc1 by "mount /dev/sdc1", but make sure the empty directory /opt/marvell is created first.

8. use "df" to check.

Saturday, October 20, 2007

New MacBook


I don't want to wait 6 days for Leopard release, so last night I head to futureshop to buy a new MacBook which is 2.16GHz Due Core and 1G Memory. The new one is great, its LCD is the best compared to my previous used laptops, my first ibook's LCD is a tragedy I think.
I have installed and played a lot on my MacBook, Firefox, LaunchBar, MacPorts, Emacs. Now I am maily working on to make Common Lisp on Mac OSX.

Friday, October 19, 2007

date

I found my time is wrong on my FC5. I run "date" and get the following result while I am in October.

Sat Sep 29 07:19:00 EDT 2007


Also I find EDT is incorrect which stand for East Daylight Time. So the first thing for me is to change time zone. I use "timeconfig" to select "America|Edmenton" for Mount Daylight time.

Then is change date, the second command save the time to hardware.

date 10190953
hwclock --utc --systohc

Tuesday, October 16, 2007

Mac OS X Leopard on Oct 26

Yesterday I make up my mind to wait for Leopard, today I check the apple's online web store, and find that it is updated, the great news is Oct 26 it will be released, in about 2 weeks! Originally I thought it would be Oct 31, because of a mac guy's point -- it is said to released at October, but doesn't mean Oct 1 or Oct 2, most likely it could be on Oct 31. Now the question to me is how long I can see it with a new MacBook on a store of FutureShop or BestBuy. At Oct 27?