Archive

Archive for the ‘mac’ Category

Mac Tip Of the Day: Viewing CHM + iTerm Bookmarks

November 9th, 2008 rupert Comments off

1. http://chmox.sourceforge.net/ – Let me view CHM files in OSX.

2. iTerm Bookmarks

Picture 1.png

Example:
1. Pressing [CTRL] + [COMMAND] + [R] goes to “/opt/ruby” directory

2. Pressing [CTRL] + [COMMAND] + [s], opens up an SSH terminal by specifying the PORT and IP.

port.png

ip.png

Categories: mac, osx Tags: ,

Mac Tip Of the Day: Know your keyboard

November 6th, 2008 rupert Comments off

1. Thanks to Chester for this one…

mac_keyboard_shortcuts.png

2. You can drag an image from a browser right to your desktop. This is faster than doing [Command] + [SHIFT] + F4 then cropping the picture out of the webpage..

Categories: mac, osx Tags: ,

Mac Shortcuts

August 31st, 2008 rupert Comments off
Categories: mac, mysql Tags:

MacOSX Utilities: iTerm + MarsEdit

July 29th, 2008 rupert Comments off

Just a quick note before I go home tonight…

1. Replace your current terminal with iTerm.

2. MarsEdit rocks! Ive been posting lazy and all but with this blog client at hand.. blog posting is easier. Way way better compared to ecto!! (IMHO).

Categories: mac, osx Tags: ,

Installing Mapserver on MacOSX (by source)

July 26th, 2008 rupert Comments off

Just noticed that William of kyngchaos has updated the mapserver binary for MacOSX.

But right now, I need to tile these images bought from GeoEye, so I need TIFF support. Below is a summary of getting Mapserver installed by source. Note that I have the necessary GEOS, GDAL from kyngchaos as well from this ealier post.

1. Download the ff files:
-rw-r--r--@ 1 rupert  admin   564313 Jul 26 10:32 agg-2.5.tar.gz
-rw-r--r--@ 1 rupert  admin  1345700 Jul 26 10:22 gd-2.0.35.tar.gz
-rw-r--r--@ 1 rupert  admin   613261 Jul 26 10:22 jpegsrc.v6b.tar.gz
-rw-r--r--@ 1 rupert  admin   796551 Jul 26 10:22 libpng-1.2.29.tar.gz
-rw-r--r--@ 1 rupert  admin  1948751 Jul 26 09:55 mapserver-5.2.0.tar.gz
-rw-r--r--@ 1 rupert  admin  1336295 Jul 26 11:11 tiff-3.8.2.tar.gz

2. Install in the ff order:

- jpegsrc
- libpng
- gd (if you have trouble installing gd, then follow this pdf:installing_gd2_on_os_x_server)
- agg (make only)
- tiff
- mapserver

3. For mapserver, please install using the ff configure switches:

./configure \
--with-agg=/myhome/rupert/mapserver/agg-2.5 \
--with-jpeg \
--with-gd \
--with-freetype \
--with-png \
--with-ogr \
--with-proj \
--with-gd \
--with-httpd=/usr/local/apache2/bin/httpd \
--with-tiff \
--with-wfs \
--with-wcs \
--with-sos \
--with-wmsclient \
--with-wfsclient \
--with-tiff \
--with-gdal=/usr/local/bin/gdal/gdal-config \
--with-geos=/usr/local/bin/geos-config \
--with-postgis=/usr/local/pgsql/bin/pg_config

4. Mapserver output

rupert:mapserver-5.2.0 rupert$ ./mapserv -v
MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Categories: mac, mapserver, osx Tags: , ,