2011年3月30日 星期三

test

#!/usr/local/bin/python
for i in range(1,10):
  for j in range(1,10):
    print "%d*%d=%s" % (i,j,i*j),
  print ""


for i in range(1,10):
for j in range(1,10):
print "%d*%d=%s" % (i,j,i*j),
print ""

2011年3月28日 星期一

Synergy KVM software control on MAC OSX & UNIX by MacBook Air to Mac Mini Server

download & convert file => Synergy Download

you will find synergy-x.x.x-MacOSX-Universal folder

Server (MacBook Air keyboard & touchpad)

open and cp doc/synergy.conf.sample synergy.conf

vi the conf file like this


section: screens
        foo.local:
        bar.local:
end


section: links
        foo.local:
                right = bar.local


        bar.local:
                left  = foo.local
end

execute the synergy server by configure and listen client connection

#sudo ./synergys -f --config synergy.conf




Client (Mac Mini Server + screen)


#./synergyc -f "HostName or IP"




The result is that can use Air's keyboard and touchpad to remote control the 


Mini Server screen and key-in.


And I have more efficiencies to do my job by the one keyboard and touchpad with two Macs.   







2011年3月25日 星期五

putty ppk convert to OpenSSH key on MAC

First, open the puttygen.exe in windows.

you can download here => PuTTYgen

find the conversion toolbar item and select submenu export the ppk to the OpenSSH

ex.   foo_rsa

2011年3月13日 星期日

Mac OSX 32 64 bit kernel boot command

last week, I launch a article about 64 bit kernel booting.

But I found a command today to set up kernel easily form the Apple official site.

#sudo systemsetup -setkernelbootarchitecture x86_64 


#sudo systemsetup -setkernelbootarchitecture i386

2011年3月9日 星期三

MAC OSX boot 64 bit kernel mode default

1. power on your MAC and push keys 4 & 6 on your keyboard until inter your desktop.

2. open the terminal 

     # uname -a

    if it displays ........X86_64 , and you are in the 64 bit kernel.

2011年3月8日 星期二

Linux OSX Windows Web Programming Editors

My project need to develop web UI nearly.

In this project that can use HTML, CSS, JavaScript & library like prototype YUI Ext-JS and  

Dynamic webpage Script(JSP,PHP etc)

First, I need a tool that can code convenient and speed up.

So, I try to find some Editors and IDEs on web site.

 
創用 CC 授權條款