Showing posts with label Mac OSX. Show all posts
Showing posts with label Mac OSX. Show all posts

Tuesday, December 8, 2009

Collection of 59 ebooks about Mac OSX

Collection of 59 ebooks about Mac OSX (1.35 GB)

List of these ebooks is below.
Addison Wesley – Cocoa Programming for Mac OS X 3rd Edition (2008).chm
Addison Wesley – Mac OS X Leopard Phrasebook (2007).chm
Addison Wesley – Step into Xcode Mac OS X Development (2006).pdf
Apress – Creating Mac Widgets with Dashcode.pdf
Apress – Foundations of Mac OS X Leopard Security (2008).pdf
Apress – Learn Objective-C on the Mac (2009).pdf
Apress – Mac for Linux Geeks (2008).pdf
Apress – Mac OS X Leopard, Beyond the Manual (2008).pdf
Dennis – The Independent Guide to the Mac 2nd edition (2009).pdf
Focal – Mac OS X for Photographers (2008).pdf
FriendsofED – Getting StartED with Mac OS X Leopard (2007).pdf
Macworld – Mac OS X Hints Leopard Edition (2008).pdf
MacWorld – Total Leopard, The Macworld OS X 10.5 Superguide (2008).pdf
Manning – Programming Mac OS X, A Guide For Unix Developers (2003).pdf
McGraw-Hill – How to Do Everything, Mac (2008).pdf
McGraw-Hill – Mac OS X Leopard QuickSteps (2008).pdf
New Riders – Mac OS X Leopard Killer Tips (2008).pdf
O’Reilly – Mac OS X Snow Leopard, The Missing Manual (2009).pdf
O’Reilly – Cocoa In A Nutshell (2003).pdf
O’Reilly – Essential Mac OS X Panther Server Administration (2005).chm
O’Reilly – Inside .Mac (2004).chm
O’Reilly – Mac OS X for UNIX Geeks (2003).pdf
O’Reilly – Mac OS X Hacks (2003).chm
O’Reilly – Mac OS X Leopard Pocket Guide (2007).chm
O’Reilly – Mac OS X Leopard, The Missing Manual (2007).chm
O’Reilly – Mac OS X Panther Hacks (2004).pdf
O’Reilly – Mac OS X Panther In A Nutshell 2nd Edition (2004).chm
O’Reilly – Mac OS X Snow Leopard Pocket Guide (2009).pdf
O’Reilly – Mac OS X Tiger for Unix Geeks (2005).chm
O’Reilly – Switching to the Mac, The Missing Manual Leopard Edition (2008).chm
Peachpit – Apple Training Series, Mac OS X Advanced System Administration v10.5 (2008).pdf
Peachpit – Apple Training Series, Mac OS X Deployment v10.5 (2008).pdf
Peachpit – Apple Training Series, Mac OS X Support Essentials 2nd Edition (2008).pdf
Peachpit – Mac OS X 10.5 Leopard, Peachpit Learning Series (2008).pdf
Peachpit – Mac OS X 10.5 Leopard, Visual QuickStart Guide (2008).pdf
Peachpit – Robin Williams Cool Mac Apps 2nd Edition (2005).chm
Peachpit – The Little Mac Book, Leopard Edition (2008).pdf
Premier – Mac OS X Power User’s Guide (2002).pdf
Que – Mac OS X Snow Leopard In Depth (2009).pdf
Que – Mac OS X Snow Leopard On Demand (2009).pdf
Que – Sleeping with the Enemy, Running Windows on a Mac (2006).chm
Que – Special Edition Using Mac OS X Leopard (2008).pdf
Sams – Mac OS X Tiger Unleashed (2005).chm
Sams – Teach Yourself Mac OS X Leopard All in One (2007).chm
Sams – Teach Yourself Mac OS X Tiger All in One (2005).chm
Sams – Xcode 3 Unleashed (2008).pdf
Sybex – Mac OS X Power Tools (2003).chm
Sybex – The Mac OS X Command Line, Unix Under the Hood (2005).pdf
Wiley – Cocoa Programming for Mac OS X For Dummies (2009).pdf
Wiley – MAC OS X Leopard Bible (2008).pdf
Wiley – Mac OS X Leopard, Just the Steps For Dummies (2007).pdf
Wiley – MAC OS X UNIX Toolbox (2009).pdf
Wiley – Mac OS X v 10.3 Panther, Top 100 Simplified Tips and Tricks (2004).chm
Wiley – MacBook Portable Genius (2009).pdf
Wiley – Macs All-in-One Desk Reference For Dummies (2008).pdf
Wiley – Macs For Dummies 8th Edition (2004).pdf
Wrox – Beginning Mac OS X Programming (2005).pdf
Wrox – Beginning Mac OS X Tiger Dashboard Widget Development (2006).pdf
Wrox – Beginning Xcode (2006).chm

Download
http://hotfile.com/dl/15057730/68b617b/Mac_OS_ebook_collection.part01.rar.html
http://hotfile.com/dl/15057787/1d29fcd/Mac_OS_ebook_collection.part02.rar.html
http://hotfile.com/dl/15057832/d83aca5/Mac_OS_ebook_collection.part03.rar.html
http://hotfile.com/dl/15057879/fc3b801/Mac_OS_ebook_collection.part04.rar.html
http://hotfile.com/dl/15057939/664a5b1/Mac_OS_ebook_collection.part05.rar.html
http://hotfile.com/dl/15057979/d7834d9/Mac_OS_ebook_collection.part06.rar.html
http://hotfile.com/dl/15058029/7f5a694/Mac_OS_ebook_collection.part07.rar.html
http://hotfile.com/dl/15058075/63a7a3d/Mac_OS_ebook_collection.part08.rar.html
http://hotfile.com/dl/15058126/66d2a22/Mac_OS_ebook_collection.part09.rar.html
http://hotfile.com/dl/15058183/595533c/Mac_OS_ebook_collection.part10.rar.html
http://hotfile.com/dl/15058415/fbdd174/Mac_OS_ebook_collection.part11.rar.html
http://hotfile.com/dl/15058478/a43d14e/Mac_OS_ebook_collection.part12.rar.html
http://hotfile.com/dl/15058539/195d3bb/Mac_OS_ebook_collection.part13.rar.html
http://hotfile.com/dl/15059551/1b71449/Mac_OS_ebook_collection.part14.rar.html

.
.
.

Monday, December 7, 2009

Remove print jobs in Mac OS X

Type this in Terminal to remove all print jobs

cancel -a -

Thursday, November 19, 2009

Install git for Mac OS X Snow Leopard


mkdir ~/src
cd ~/src/
curl -O http://kernel.org/pub/software/scm/git/git-1.6.5.3.tar.bz2
tar -xjvf git-1.6.5.3.tar.bz2
cd git-1.6.5.3
./configure --prefix=/usr/local
make
sudo make install
git --version


This is how to create git-repo over ssh
suppose you have a project in ~/yourprojectdir
and the remote ssh server login is user@xxx.xxx.xxx.xxx
both client and server have git installed

Method 1

cd ~/yourprojectdir

git init

git add . # include everything below ./ in the first commit;
          # if you want to remove use git rm -r --cache xxx

git commit

cd ..

git clone --bare ~/yourprojectdir yourproject.git

touch yourproject.git/git-daemon-export-ok


then copy the git directory to your ssh sever

scp -r yourproject.git user@xxx.xxx.xxx.xx:/Volumes/HD/git/


setup git repo in ssh server

ssh user@xxx.xxx.xxx.xx "cd /Volumes/HD/git/yourproject.git; git --bare update-server-info; mv hooks/post-update.sample hooks/post-update"


check the location of remote git binary and the remote ssh login shell

ssh user@xxx.xxx.xxx.xxx "which git-upload-pack"
ssh user@xxx.xxx.xxx.xxx "echo \$PATH"

mine is /usr/local/bin/git-upload-pack


if the remote login shell does not include path of git, create ~/.bashrc in your remote ssh login shell

ssh user@xxx.xxx.xxx.xxx "echo 'export PATH=\${PATH}:/usr/local/bin' > ~/.bashrc"


push to remote git repo

cd ~/yourprojectdir

git remote add origin ssh://user@xxx.xxx.xxx.xxx/Volumes/HD/git/yourproject.git

git push origin master



Method 2

Create git repo in remote server

ssh user@xxx.xxx.xxx.xxx "mkdir -p /Volumes/HD/git/yourproject.git; cd /Volumes/HD/git/yourproject.git; git --bare init; touch git-daemon-export-ok"


Check the location of remote git binary and the remote ssh login shell as per Method 1

Commit project in your local and push to git repo

cd ~/yourprojectdir

git init

git add . # include everything below ./ in the first commit;
          # if you want to remove use git rm -r --cache xxx

git commit

git remote add origin ssh://user@xxx.xxx.xxx.xxx/Volumes/HD/git/yourproject.git

git push origin master



Test git clone

cd ~
git clone ssh://user@xxx.xxx.xxx.xxx/Volumes/HD/git/yourproject.git working
cd working
git log
git checkout


How to Branch

git branch -r # show branch in repo
git checkout -b todo origin/to-do-branch # checkout a new branch
git checkout master # checkout the master branch

git branch next # create new branch
git add .
git commit -m 'commit nextbranch'
git push origin next



How to fetch Branch from github repo

git clone git://github.com/username/repo-name.git
cd repo-name
git branch -r # show branch in repo
git checkout origin/to-do-branch # quick peek at an upstream branch
git checkout -b todo origin/to-do-branch # checkout a new tracking branch



To fetch a remote from github pull request # into your local repo

git fetch origin pull/<ID #>/head:NEWBRANCHNAME
git checkout NEWBRANCHNAME



Others
git config user.name "yourname"
git config user.email "your email"
git init .
git rebase -i
git commit --amend --author="Author Name "
git diff --stat
git diff --word-diff
git log --pretty='%h %d %s (%cr) [%an]' --graph --all
git config --global alias.lg "log --pretty='%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(cyan)[%an]%Creset' --graph --all"




For subversion, it is here
http://subversion.apache.org/download/#recommended-release





Wednesday, May 20, 2009

How to send Alt-X in Mac Terminal

You need to configure the mac 'terminal' application so the 'alt / option' key sends 'meta'. In order to do this, go to:

Terminal > Preferences > Settings > Keyboard

and select the 'Use option as meta key' checkbox at the bottom of the window.

Saturday, March 28, 2009

Mac OS X : suddenly disappear Chinese Input Methods

This is the method to solve the problem

(1) Create a newuser and see if the Input Method can be selected in International Preference

(2) If the newuser can access the Input Method, then it is preference setting problem

(3) login the newuser and copy the following files from folder ~/Library/Preferences to in a common folder
com.apple.systempreferences.plist
TCIMHaninUserDictionary
com.apple.inputmethod.TCIM.plist

(4) login the olduser and copy the above files back to ~/Library/Preferences

(5) Reboot Mac
.
.
.

Saturday, December 27, 2008

How-to compile and install wget binary in Mac OS X


mkdir -p wget; cd wget
curl -O http://ftp.gnu.org/pub/gnu/wget/wget-latest.tar.gz
tar -zxvf wget-latest.tar.gz
cd *
./configure
make
sudo cp -p src/wget /usr/bin/





Tuesday, December 23, 2008

MSI Wind Notebook Install Mac OS X 10.5.4/5



Here is the guide
http://forums.msiwind.net/mac/how-install-osx-with-and-without-usb-stick-usb-dvd-t4701.html

You need these

for display driver
http://rapidshare.com/files/150202151/GMA950.pkg.zip.html

for wifi
http://www.ralinktech.com.tw/data/drivers/STA_RT2860%20D-1.1.1.0%20UI-1.6.8.0_2008_12_04.dmg

for creating Lepoard install partition in harddisk
http://thepiratebay.org/torrent/4307757/

http://www.iphone.org.hk/attach/48221-Leopard_hd_install_helper_v0.3.zip

Headphone jack switch
http://forums.msiwind.net/mac/news-headphone-jack-works-t4854.html

Front Row update 2.1.2 (so that Front Row can see your iTunes Library if you have upgraded to iTunes 8)
http://supportdownload.apple.com/download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/Mac_OS_X/downloads/061-4397.20080227.gOg5S/FrontRowUpdate2.1.2.dmg

Results for Mac OS X 10.5.4/5 Installation
WinXP / Mac OS X dual boot : OK
Ethernet : OK
Wifi : OK
Speaker : OK
GMA950 Graphics 1024 x 600 : OK
USB Hard Disk : OK
USB HSDPA modem : OK
Bluetooth : OK
Quick Time Player : OK
iPhone SDK Development : OK
WebCam, Photo Booth : OK
Headphone Jack Output : with switch.sh script (see above)

Sound Line Input / mic : failed
Trackpad Scrolling : not working (but you can press the upper / lower right corner of the track pad to slowly scroll)

If you need to upgrade Safari to 3.2.1, you need to first upgrade Mac OS X to 10.5.5 and then update Security Update 2008-007 Client (Leopard)

To upgrade 10.5.5, you can download this update from Apple
http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx1055update.html

After update to 10.5.5, you just need to reinstall the GMA950 driver and everything works except mic / line input

Then download the Security Update 2008-007 here http://www.apple.com/downloads/macosx/apple/security_updates/securityupdate2008007clientleopard.html

Then in the Software Update, you can have the option to upgrade Safari to 3.2.1








FAQ
---
This is how to disable the Realtek utility in startup

sudo mv WiUtilityCardbusPCIStartUp ~/

And also remove it in System Settings -> Accounts -> Login Items

Sunday, November 16, 2008

Install mysql in PowerPC Mac Mini and make php-mysql works

The problem for mysql server in Mac OS X powerpc platform is that there is no binary build for package format (.dmg) for Leopard and the tar.gz binary does not work with the default php5 which uses the unix socket at /var/mysql/mysql.sock plus there is no LaunchDaemon plist. Either you have to change the etc/php.ini or build the mysql server from source.

This guide shows how to build from source

(1) Choose the mirror site and download the source tar.gz file
http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.29-rc.tar.gz/from/pick#mirrors

(2) untar and unzip it

tar -xzvf mysql-5.1.29-rc.tar.gz


(3) config, make and install (make sure you have Xcode installed already)


cd mysql-5.1.29-rc


scipt: Select all

CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer" CXX=gcc CXXFLAGS="-O3 -fno-omit-frame-pointer \
-felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql \
--with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile \
--enable-shared --with-unix-socket-path=/var/mysql/mysql.sock \
--with-mysqld-user=mysql



make
sudo make install


(4) create database

sudo chgrp -R mysql /usr/local/mysql
cd /usr/local/mysql
sudo ./bin/mysql_install_db --user=mysql
sudo chown -R mysql ./var


(5) create unix-socket directory

sudo mkdir -p /var/mysql
sudo chown -R mysql /var/mysql


(6) create LaunchDaemons in /Library/LaunchDaemons/com.mysql.mysqld.plist so that it can autostart

sudo vi /Library/LaunchDaemons/com.mysql.mysqld.plist

and put this in the file

com.mysql.mysqld.plist: Select all


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.mysql.mysqld</string>
<key>Program</key>
<string>/usr/local/mysql/bin/mysqld_safe</string>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>mysql</string>
<key>WorkingDirectory</key>
<string>/usr/local/mysql</string>
</dict>
</plist>



(7) start mysql server and restart apache server

sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist
sudo apachectl restart


and if you want to manually stop the mysql server

sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist


(8) create path in ~/.bash_login

vi ~/.bash_login

and put this

export PATH="/usr/local/mysql/bin:$PATH"


run this

. ~/.bash_login


(9) create root password with mypassword
mysqladmin -u root password mypassword

(10) create databse in mysql

mysql -u root -p
> CREATE DATABASE database_name DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
> GRANT ALL PRIVILEGES ON database_name.* TO username@localhost IDENTIFIED BY 'password';
> FLUSH PRIVILEGES;
> QUIT