When we use Python on Mac OSX, we are confusing on Python environment with different version.
How can we develop each version Python on Mac without complex environment set up?
Using IDLE is a simple way and graphic user interface IDE.
First, we need to install tcl/tk GUI tookit to combine back-end python to front-end IDLE.
We can download ActiveTcl 8.5.11 (10.5+ x86_64/x86) and install via DMG file.
http://www.activestate.com/activetcl/downloads
Second, after we installed AvtiveTcl 8.5.11, we can choose Python version DMG file to install.
Python 2.7.2 (10.6 10.7 x86_64/x86)
Python 3.2.2 (10.6 10.7 x86_64/x86)
Then we can see Python X.X directory in our Applications directory.
Open the Python X.X directory and click IDLE, we can open a IDLE window with Python version.
Now we can write code on IDLE with different Python version by easy way.
2012年1月2日 星期一
2011年10月17日 星期一
Firefox supports multi gesture on mac OSX
1.
Key-in about:config on your Firefox URL field.
And key-in gesture on search field.
2.
edit
Tree fingers switches web pages.
Key-in about:config on your Firefox URL field.
And key-in gesture on search field.
2.
edit
Tree fingers switches web pages.
browser.gesture.twist.right Browser:NextTab browser.gesture.twist.left Browser:PrevTab Two fingers zooms web pages.
browser.gesture.pinch.in cmd_fullZoomReduce browser.gesture.pinch.in.shift cmd_fullZoomReset browser.gesture.pinch.out cmd_fullZoomEnlarge browser.gesture.pinch.out.shift cmd_fullZoomReset
2011年10月13日 星期四
How to update your iPhone or iPad to iOS5 and sign up a iCloud account including me.com mail service
Step 1.
Plug your iDevices on computer with connecting line.
Step 2.
The iTune will sync your iDevice data and display it can upgrade to iOS 5.
Note: if you use laptop, please hand up your adapter.
Step 3.
Updating until the iTune finished all recover.
Note: The iDevice will power restart many times, please be patient and waiting all process done.
Step 4.
Use your iDevice to sign a iCloud account with your Apple ID, the one is that can purchase App on App Store, and step by step what you need to setup the iCloud service.
Note: iCloud account must be authorized on you iDevice including your iphone or ipad.
Step 5.
When you finish the register, the iCloud services provide you brand new experience, but the mail does
not work. It will need to registered a me.com email address. To log in your iCloud and chose the "Mail".
After that, you can sign up a <YourMail>@me.com address that can use iCloud Mail.
So, you have two account. One is AppleID, the other is me.com mail address.
Plug your iDevices on computer with connecting line.
Step 2.
The iTune will sync your iDevice data and display it can upgrade to iOS 5.
Note: if you use laptop, please hand up your adapter.
Step 3.
Updating until the iTune finished all recover.
Note: The iDevice will power restart many times, please be patient and waiting all process done.
Step 4.
Use your iDevice to sign a iCloud account with your Apple ID, the one is that can purchase App on App Store, and step by step what you need to setup the iCloud service.
Note: iCloud account must be authorized on you iDevice including your iphone or ipad.
Step 5.
When you finish the register, the iCloud services provide you brand new experience, but the mail does
not work. It will need to registered a me.com email address. To log in your iCloud and chose the "Mail".
After that, you can sign up a <YourMail>@me.com address that can use iCloud Mail.
So, you have two account. One is AppleID, the other is me.com mail address.
2011年6月9日 星期四
homebrew uninstallation commands on mac OSX
cd `brew --prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew
2011年5月2日 星期一
Mac homebrew git & Aptana Studio 3.0 ruble installation
# ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"
install Xcode
# brew install git
# cd /Users/losehole/Documents/Aptana Rubles
# git clone git://github.com/aptana/YOURPACK.ruble.git
YUI javascript library support: Drop the SDOCML file into your Web Project.
install Xcode
# brew install git
# cd /Users/losehole/Documents/Aptana Rubles
# git clone git://github.com/aptana/YOURPACK.ruble.git
YUI javascript library support: Drop the SDOCML file into your Web Project.
2011年4月28日 星期四
Mac mini server be a wireless AP
1.
Open serveradmin
select overview => Gateway Setup Assistant
press ethernet => continue => and check the airport to combine the to network interface via NAT.
if you do not need the proxy server then press continue to skip the step.
2.
Open network preferences
Create Network
And the icon will appear like this

Open serveradmin
select overview => Gateway Setup Assistant
press ethernet => continue => and check the airport to combine the to network interface via NAT.
if you do not need the proxy server then press continue to skip the step.
2.
Open network preferences
Create Network
And the icon will appear like this

OSX snowleopard server mailserver Clamav issue
when I used the serveradmin to watch the System log.
I saw the error message log :
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Warning: **************************************************
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Warning: *** The virus database is older than 7 days! ***
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Warning: *** Please update it as soon as possible. ***
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Warning: **************************************************
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Error: cli_loadinfo: Digital signature not found
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Error: Can't load daily.info: Malformed database
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Error: cli_tgzload: Can't load daily.info
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: LibClamAV Error: Can't load /var/clamav/daily.cvd: Malformed database
Apr 28 00:30:07 macminiserver org.clamav.clamd[11273]: ERROR: Malformed database
Apr 28 00:30:07 macminiserver com.apple.launchd[1] (org.clamav.clamd[11273]): Exited with exit code: 1
Apr 28 00:30:07 macminiserver com.apple.launchd[1] (org.clamav.clamd): Throttling respawn: Will start in 10 seconds
then I restart my clamav freshclam and update clamav
#sudo launchctl unload -w /System/Library/LaunchDaemons/org.clamav.freshclam.plist
#sudo launchctl load -w /System/Library/LaunchDaemons/org.clamav.freshclam.plist
after this command, we can check the log in the serveradmin and it will start to update the virus database. And the error log does not appear again.
2011年4月7日 星期四
MAC OSX cpuinfo flags command
SHOW you CPU info like Linux command #cat /proc/cpuinfo | grep flags
#sysctl -a machdep.cpu | grep VMX
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM SSE3 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1
#sysctl -a machdep.cpu | grep VMX
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM SSE3 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1
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.
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
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
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年2月18日 星期五
MAC R/W NTFS by using terminal
step 1 Check you do not install any NTFS R/W application tool.
#sudo find / -name 'ntfs'
step 2 copy your /sbin file
#sudo cp /sbin/mount_ntfs /sbin/mount_ntfs.orig
#sudo find / -name 'ntfs'
step 2 copy your /sbin file
#sudo cp /sbin/mount_ntfs /sbin/mount_ntfs.orig