Mac OSX MacPorts command line

November 14, 2009 § Leave a comment

Default MacPorts location is /opt/local/

Display all installed ports
port installed

Display all contents on specific installed port
port contents <package>

Runs a selfupdate operation to update the ports tree and MacPorts base with the latest release.
sudo port selfupdate

Display outdated installed ports against the MacPorts repository to see if updated Portfiles have been released since your ports were installed.
port outdated

Upgrades installed ports and their dependencies
sudo port upgrade <package>

Upgrade all outdated ports
sudo port upgrade outdated

Uninstall ports
port uninstall <package>

Uninstall ports with dependency of another port. To override this behavior, use the -f (force) switch
port -f uninstall <package>

Deletes all intermediate files that MacPorts creates while building a port. A port clean is also often necessary to remove corrupted tarballs after a failed fetch phase.
port clean -all <package>

Shows you the dependencies of a port; dependencies are explicitly declared in Portfiles
Port deps <package>

To uninstall MacPorts from the default location /opt/local/. Be sure you check your path before deleting or uninstalling MacPorts
cd
/opt/local/
sudo rm -rf \

Reference:
http://guide.macports.org/

Advertisements

Troubles with macport install in mysql

November 7, 2009 § 1 Comment

I painfully discover there are many outdated blog tutorials on installing mysql. It is difficult to find the most accurate documentation even within the official mysql.com website.

Outdated command
$sudo port install mysql5 +server

If you did make a mistakes, uninstall mysql5 +server.

$ port uninstall mysql +server

The mysql5 +server package variant in MacPorts is obsolete, and is superseded by the mysql5-server package, which you install in addition to mysql5. This allows you to build it after the fact, instead of re-compiling the entire mysql5 package with +server.

Install both mysql5 and mysql5-server packages. You should find mysql5 plist file in /Library/LaunchDaemons. You should not need to symlink your mysqld.sock to /tmp/mysql.sock.

# Install MySQL
sudo port install mysql5 mysql5-server
sudo -u mysql mysql_install_db5
sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
sudo port install rb-mysql
/opt/local/lib/mysql5/bin/mysqladmin -u root password 'PASSWORD'
sudo gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
# Install Apache
sudo port install apache2
sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
sudo /opt/local/apache2/bin/apachectl -k start
sudo /opt/local/apache2/bin/apachectl -k stop
# Install Passenger
sudo gem install passenger
sudo passenger-install-apache2-module
# Extras
sudo port install wget
sudo port install ImageMagick
sudo port install sphinx
sudo gem install capistrano

Using macport to manage packages

November 7, 2009 § Leave a comment

These are the common macport commands on mac OSX to install, uninstall and upgrade packages such as php, python, ruby, mysql, sqlite, rails, django, etc.

sudo port install packagename
sudo port uninstall packagename
sudo port upgrade packagename

To see the latest installed version using macport

port installed

 

To install Version Control Git with SVC, you update macport first.

sudo port selfupdate

Then you install Git

# Install Subversion
sudo port install subversion

# Install Git
sudo port install git-core +svn
sudo gem install git

Customize Mac OSX Terminal prompt

November 7, 2009 § Leave a comment

Mac OSX may contain multiple profiles for Terminal

  • ~/.profile
  • ~/.bash_profile
  • ~/.bashrc

If you are using bash on your terminal, I would suggest not to use .profile and re-direct .bashprofile to .bashrc. Keep .bashrc as your only bash profile to streamline your terminal setup.

To resolve the profile on terminal consider doing this using nano as editor on your OSX Terminal.

To open ~/.bash_profile in nano

$ nano ~/.bash_profile

Enter the following. Save the file by Ctl+o and exit nano by Ctl+x

. ~/.bashrc
ENV=$HOME/.bashrc
export ENV

Save all the settings in .bashrc to avoid duplication

Customize the terminal promot. Enter the following in .bashrc using nano

export PS1=”\u$ ”

This will show username with $ as terminal prompt

Nokia with Adobe Flash Lite pre-installed

October 26, 2009 § Leave a comment

Nokia supported 94 Nokia phone models

Flash Lite 3.0 = 22 models
Flash Lite 2.1 = 21 models
Flash Lite 2.0 = 21 models
Flash Lite 1.1 = 30 models

S60 Platform (49 models)

Symbian S60 5th Edition
5800 XpressMusic
Flash Lite version: 3.0
Standalone: Player 360×640
Screensaver: 360×640
Wallpaper: No

Symbian S60 3rd Edition Feature Pack 2
9 models

  • 5320 XpressMusic
  • 6210 Navigator
  • 6220 classic
  • 6650
  • N78
  • N79
  • N85
  • N96
  • N96-3 NAM

Flash Lite version: 3.0 or 2.1
Standalone Player: 240×320
Screensaver: 240×320
Wallpaper: no

Symbian S60 3rd Edition Feature Pack 1
18 models

  • 5700
  • 6110 Navigator
  • 6120 classic
  • 6121 classic
  • 6124 classic
  • 6290
  • E51
  • E66
  • E71
  • E90
  • N76
  • N81
  • N81 8GB
  • N82
  • N95
  • N95-3 NAM
  • N95 8GB
  • N95-3 8GB NAM

Flash Lite version: 2.0
Standalone Player: 240×320
Screensaver: 240×320
Wallpaper: no

Symbian S60 3rd Edition
21 models

  • 3250
  • 5500 Sport
  • E50
  • E60
  • E61
  • E61i
  • E62
  • E65
  • E70
  • N71
  • N73
  • N73 Music Edition
  • N75
  • N77
  • N80
  • N80 IE
  • N91
  • N91 8GB
  • N92
  • N93
  • N93i

Flash Lite version: 1.1
Standalone Player: 240×320, 176×208, 208×208, 352×416, 352×416
Screensaver: No
Wallpaper: no

VC Funding Basic Formula 4 Cs & 3 Ms

May 18, 2009 § Leave a comment

VCs evaluate potential investment in a very simple formula: 4 Cs & 3 Ms

Capital efficiency – How much does it cost to get your product to market?
Costs – Are you leveraging low cost outsourced development?
Channel – Does your revenue model include channel partners?
Code – Is there defensible IP?

Management
Market
Mix

Acceptable Image Format for UIImage

April 25, 2009 § Leave a comment

It is suggested not to create UIImage object larger than 1024 x 1024 in size. There is no size restriction if you perform size transformation on code.

  • .tiff
  • .jpg
  • .gif
  • .png
  • .bmp
  • .ico
  • .cur
  • .xbm

Where Am I?

You are currently browsing the Uncategorized category at Web Builders.