Archive for October, 2011

Posted by jadul at 30 October 2011

Category: IT

Berawal dari forum WHT, Jadul amat beruntung mendapatkan Dedicated Server Intel Xeon E3-1230 Sandy Bridge HT/8GB/1000GB 1Gbps Unmetered – $69.95.

Spesifikasi Dedicated Server yang didapatkan adalah:

Intel Xeon E3-1230 Sandy Bridge 3.2 Ghz (8 logical cores)
8 GB DDR3 ECC 1333 Memory (upgradable to 16GB)
1000 GB SATA Hard Drive
100 Mbps Unmetered Bandwidth (1 Gbps burstable port available)
2 IP Addresses
Dedicated IPMI (reboot, KVM and OS reloads)
Private network included
Per Month: $69.95
Setup Fee: $0
Order Link: http://volumedrive.com/vdrive/?a=dedicated

Dan hasil test menggunakan UnixBench:

[~/unixbench-5.1.2]# ./Run
gcc -o ./pgms/ubgears -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/ubgears.c -lGL -lXext -lX11
make all
make[1]: Entering directory `/root/unixbench-5.1.2'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/root/unixbench-5.1.2'
sh: 3dinfo: command not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   December 22, 2007                  johantheghost at yahoo period com

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

8 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

8 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

8 x Execl Throughput  1 2 3

8 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

8 x File Copy 256 bufsize 500 maxblocks  1 2 3

8 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

8 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

8 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

8 x Process Creation  1 2 3

8 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

8 x Shell Scripts (1 concurrent)  1 2 3

8 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: vdrive.xenbox.net: GNU/Linux
   OS: GNU/Linux -- 2.6.32-71.29.1.el6.x86_64 -- #1 SMP Mon Jun 27 19:49:27 BST 2011
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   CPU 1: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.7 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   CPU 2: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.7 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   CPU 3: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.7 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   CPU 4: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.7 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   CPU 5: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.6 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   CPU 6: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.7 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   CPU 7: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6384.7 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
   23:53:39 up  2:01,  2 users,  load average: 0.73, 0.44, 0.36; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Sat Oct 29 2011 23:53:39 - 00:25:35
8 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       35323384.1 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3774.9 MWIPS (9.9 s, 7 samples)
Execl Throughput                               5001.6 lps   (29.4 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1108012.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          312292.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2555865.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1949811.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 233108.4 lps   (10.0 s, 7 samples)
Process Creation                              14198.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   8167.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   3286.3 lpm   (60.0 s, 2 samples)
System Call Overhead                        2435098.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   35323384.1   3026.9
Double-Precision Whetstone                       55.0       3774.9    686.3
Execl Throughput                                 43.0       5001.6   1163.2
File Copy 1024 bufsize 2000 maxblocks          3960.0    1108012.1   2798.0
File Copy 256 bufsize 500 maxblocks            1655.0     312292.9   1887.0
File Copy 4096 bufsize 8000 maxblocks          5800.0    2555865.4   4406.7
Pipe Throughput                               12440.0    1949811.4   1567.4
Pipe-based Context Switching                   4000.0     233108.4    582.8
Process Creation                                126.0      14198.2   1126.8
Shell Scripts (1 concurrent)                     42.4       8167.8   1926.4
Shell Scripts (8 concurrent)                      6.0       3286.3   5477.1
System Call Overhead                          15000.0    2435098.8   1623.4
                                                                   ========
System Benchmarks Index Score                                        1777.0

------------------------------------------------------------------------
Benchmark Run: Sun Oct 30 2011 00:25:35 - 01:06:33
8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables      140987507.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    26281.1 MWIPS (9.8 s, 7 samples)
Execl Throughput                              27805.9 lps   (29.4 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       2534922.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          672135.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       4965846.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                             8508120.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                2073299.4 lps   (10.0 s, 7 samples)
Process Creation                              76756.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  29636.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   4122.7 lpm   (60.0 s, 2 samples)
System Call Overhead                        9408110.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  140987507.7  12081.2
Double-Precision Whetstone                       55.0      26281.1   4778.4
Execl Throughput                                 43.0      27805.9   6466.5
File Copy 1024 bufsize 2000 maxblocks          3960.0    2534922.3   6401.3
File Copy 256 bufsize 500 maxblocks            1655.0     672135.8   4061.2
File Copy 4096 bufsize 8000 maxblocks          5800.0    4965846.7   8561.8
Pipe Throughput                               12440.0    8508120.7   6839.3
Pipe-based Context Switching                   4000.0    2073299.4   5183.2
Process Creation                                126.0      76756.4   6091.8
Shell Scripts (1 concurrent)                     42.4      29636.7   6989.8
Shell Scripts (8 concurrent)                      6.0       4122.7   6871.2
System Call Overhead                          15000.0    9408110.9   6272.1
                                                                   ========
System Benchmarks Index Score                                        6472.4

Posted by jadul at 26 October 2011

Category: linux

Introduction

MapServer is an open source and free software for rendering maps, images, and vector data on the web. MapServer was originally developed by the University of Minnesota (UMN) ForNet project in cooperation with NASA and the Minnesota Department of Natural Resources. Presently, the MapServer project is hosted by the TerraSIP, a NASA sponsored project between the UMN and consortium of land management interests (http://mapserver.gis.umn.edu).

MapServer can be compiled on many platforms and operating systems, but in this tutorial, I will focus on unix like system, especially Linux.

Prerequisites

Operating system used in this tutorial is Linux Fedora Core 7 with Apache (httpd-2.0.55), PHP (php-5.2.3), and PostgreSQL(postgresql-8.2.4) already installed using manual source installation (not using default rpm package). Required libraries that already installed are libpng, libjpeg, libtiff, and zlib. Installation manual for those softwares and libraries are beyond the scope of this tutorial.

Required softwares and libraries:

Mapserver: is the main software.

Source: http://download.osgeo.org/mapserver/mapserver-5.0.2.tar.gz
GD: used by MapServer for rendering images, version 2.0.28 or greater is required.

Source: http://www.libgd.org/releases/gd-2.0.35.tar.gz
PROJ.4: provides projection support for MapServer (also needed by PostGIS), version 4.4.6 or greater is required.

Source: ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz
GEOS: enables MapServer to do spatial operation (within, touches, union, difference, intersection), also needed by PostGIS.

Source: http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2
GDAL: provides access to at least 42 different raster formats.

Source: http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz
OGR: provides access to at least 18 different vector formats.

Source: http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz
CURL: is the foundation of OGC (WFS, WMS, WCS) client and server support, requires version 7.10 or greater.

Source: http://curl.haxx.se/download/curl-7.18.1.tar.gz
PostGIS: adds support for geographic objects to the PostgreSQL.

Source: http://www.postgis.org/download/postgis-1.3.3.tar.gz

Note:

Apache was installed under /usr/local/apache

PostgreSQL was installed under /usr/local/pgsql

All previously installed libraries (libpng, libjpeg, libtiff, and zlib) were installed under /usr/lib

Apache root directory is /data/www/html, cgi-bin directory is /data/www/cgi-bin

Installation

GD

Installation steps:

[jadul@devel>>installer]$ tar –xzvf gd-2.0.35.tar.gz
[jadul@devel>>installer]$ cd gd-2.0.35
[jadul@devel>>gd-2.0.35]$ ./configure
[jadul@devel>>gd-2.0.35]$ make
[jadul@devel>>gd-2.0.35]$ make install

Note: default installation directory is /usr/local

PROJ.4

Installation steps:

[jadul@devel>>installer]$ tar –xzvf proj-4.6.0.tar.gz
[jadul@devel>>installer]$ cd proj-4.6.0
[jadul@devel>>proj-4.6.0]$ ./configure
[jadul@devel>>installer]$ make
[jadul@devel>>installer]$ make install

Note: default installation directory is /usr/local

GEOS

Installation steps:

[jadul@devel>>installer]$ tar –xjvf geos-3.0.0.tar.bz2
[jadul@devel>>installer]$ cd geos-3.0.0
[jadul@devel>>geos-3.0.0]$ ./configure
[jadul@devel>>geos-3.0.0]$ make
[jadul@devel>>geos-3.0.0]$ make install

Note: default installation directory is /usr/local

GDAL

Installation steps:

[jadul@devel>>installer]$ tar –xzvf gdal-1.5.1.tar.gz
[jadul@devel>>installer]$ cd gdal-1.5.1
[jadul@devel>>gdal-1.5.1]$ ./configure
[jadul@devel>>gdal-1.5.1]$ make
[jadul@devel>>gdal-1.5.1]$ make install

Note: default installation directory is /usr/local

CURL

Installation steps:

[jadul@devel>>installer]$ tar –xzvf curl-7.18.1.tar.gz
[jadul@devel>>installer]$ cd curl-7.18.1
[jadul@devel>>curl-7.18.1]$ ./configure
[jadul@devel>>curl-7.18.1]$ make
[jadul@devel>>curl-7.18.1]$ make install

Note: default installation directory is /usr/local

Update ld-config

[jadul@devel>>installer]$ cd /etc/ld.so.conf.d/
[jadul@devel>>ld.so.conf.d]$ echo /usr/local/lib > usrlocalib.conf
[jadul@devel>>ld.so.conf]$ /sbin/ldconfig

PostGIS

Installation steps:

[jadul@devel>>installer]$ tar –xzvf postgis-1.3.3.tar.gz
[jadul@devel>>installer]$ cd postgis-1.3.3
[jadul@devel>>postgis-1.3.3]$ ./configure –with-pgsql=/usr/local/pgsql/bin/pg_config –with-proj –with-geos
[jadul@devel>>postgis-1.3.3]$ make
[jadul@devel>>postgis-1.3.3]$ make install

Recompile PHP as CGI

Installation steps:

[jadul@devel>>installer]$ cd php-5.2.3
[jadul@devel>>php-5.2.3]$ ./configure –enable-force-cgi-redirect \

> –with-gd=/usr/local/ \
> –with-jpeg-dir=/usr/lib \
> –with-png-dir=/usr/lib \
> –with-tiff-dir=/usr/lib \
> –with-zlib-dir=/usr/lib \
> –with-freetype-dir=/usr/lib \
> –without-ttf \
> –with-mysql=/usr/local/mysql/ \
> –with-pgsql=/usr/local/pgsql/ \
> –with-curl=/usr/local/ \
> –with-gettext \
> –enable-ftp \
> –enable-xml \
> –with-zlib \
> –with-regex=system \
> –enable-dbase \
> –enable-dbx \
> –with-config-file-path=/usr/local/lib
[jadul@devel>>php-5.2.3]$ make
[jadul@devel>>php-5.2.3]$ cp sapi/cgi/php-cgi /data/www/cgi-bin

Note: DO NOT do a “make install”

MapServer

Installation steps:

[jadul@devel>>installer]$ tar –xzvf mapserver-5.0.2.tar.gz
[jadul@devel>>installer]$ cd mapserver-5.0.2
[jadul@devel>>mapserver-5.0.2]$ ./configure –with-ogr=/usr/local/bin/gdal-config \

> –with-gdal=/usr/local/bin/gdal-config \
> –with-httpd=/usr/local/apache/bin/httpd \
> –with-wfsclient \
> –with-wmsclient \
> –enable-debug \
> –with-curl-config=/usr/local/bin/curl-config
> –with-proj=/usr/local \
> –with-tiff \
> –with-gd=/usr/local \
> –with-jpeg \
> –with-freetype=/usr/ \
> –with-threads \
> –with-wcs \
> –with-postgis=/usr/local/pgsql/bin/pg_config \
> –with-libiconv=/usr \
> –with-geos=/usr/local/bin/geos-config \
> –with-xml2-config=/usr/bin/xml2-config \
> –with-sos \
> –with-php=../php-5.2.3/
[jadul@devel>>mapserver-5.0.2]$ make
[jadul@devel>>mapserver-5.0.2]$ cp mapserv legend scalebar shp2img shp2pdf shptree shptreest shptreevis sortshp tile4ms /data/www/cgi-bin

Note: DO NOT do a “make install”

PHP MapScript installation steps:

[jadul@devel>>mapserver-5.0.2]$ mkdir /usr/local/lib/php/extensions
[jadul@devel>>mapserver-5.0.2]$ cp mapscript/php3/php_mapscript.so /usr/local/lib/php/extensions
[jadul@devel>>mapserver-5.0.2]$ cd /usr/local/lib
Edit file php.ini and add two lines below:

extension_dir = “/usr/local/lib/php/extensions” extension = “php_mapscript.so”
Edit file /usr/local/apache/conf/httpd.conf and add two lines below:

AddType application/x-httpd-php-cgi .phtml Action application/x-httpd-php-cgi /cgi-bin/php-cgi
Restart apache (#/usr/local/apache/bin/apachectl restart)

Test PHP Mapscript

To test PHP MapScript that already installed:

Go into web root directory (/data/www/html)
Create php file and add phpinfo() line into the file
Save the file as info.phtml
Open browser and point to http://localhost/info.phtml
If installation is successful, the phpinfo page should contain part like this:

MapScript

To test drawing map, you can download simple demo application from http://www.londatiga.net/downloads/tutorial/phpmapscript-demo.tar.gz

To test PHP MapScript that already installed:

[jadul@devel>>installer]$ cp phpmapscript-demo.tar.gz /data/www/html
[jadul@devel>>installer]$ cd /data/www/html
[jadul@devel>>installer]$ tar –xzvf phpmapscript-demo.tar.gz
[jadul@devel>>installer]$ chmod 777 tmp
Open browser and point to http://localhost/phpmapscript-demo
If all things running well it should display a map

You can download PDF version of this tutorial here

UPDATES 06 June 2008

For latest version of Linux such as Fedora Core 9, it comes with newest gcc compiler (gcc 4.3) , compiling those packages above may cause some errors (error when run make command on geos-3.0.0, gdal-1.5.1 and mapserver-5.0.2). To overcome this problem, download the latest version of those packages. At the time i write this update, latest version of gdal is gdal-1.5.2RC3 and mapserver is mapserver-5.0.3, for geos, download the following patch: geos-3.0.0-gcc43.patch .

Posted by jadul at 4 October 2011

Category: sex

Secara teknis diperlukan kerja sama dan pengertian kedua belah pihak baik pria / laki-laki maupun perempuan / wanita dalam berhubungan intim agar kedua belah pihak sama-sama mendapatkan kepuasan seks yang maksimal. Keegoisan salah satu pihak dapat merugikan pihak lainnya, sehingga tidak menutup kemungkinana dapat menyebabka masalah / problem suami istri kedepannya.

Berhubungan seks tidak harus lama. Jika sang wanita sudah mendapatkan orgasme, maka itu pertanda bagi sang lelaki untuk menyelesaikan permainan baik cepat meupun lambat. Hubungan seks tidak harus diakhiri pula dengan semburan sperma / orgasme pria. Jika si pria sudah puas maka permainan dapat diakhiri.

Di bawah ini adalah point-point penting yang harus diperhatikan dalam melakukan hubungan badan / intim pria wanita :

1. Lakukan persiapan yang tepat dengan berbagai peralatan dan perlengkapan yang diperlukan secukupnya. Jangan lupa dengan minuman dan alat pembersih yang cukup agar tidak jauh dan lama mengambilnya jika sewaktu-waktu diperlukan. Pilih tempat yang nyaman, bersih, tidak bau, tidak kotor dan enak suasananya. Jangan melakukan ngeseks di kuburan, rumah kosong, parkiran, kebon, semak-semak dan lain sebagainya karena bisa saja terjadi hal-hal yang sangat tidak anda inginkan untuk terjadi.

2. Lakukan pemanasan sebelum berhubungan seks. Baik pria dan wanita sama-sama harus berada dalam keadaan terangsang untuk dapat memulai penetrasi batang kemaluan pria ke lubang perempuan. Pastikan si isteri telah basah sehingga tidak akan terasa sakit saat dilakukan serangan. Gunakan jari-jemari, lidah, rambut, kaki, dan sebagainya untuk mendukung upaya anda untuk merangsang si dia.

3. Jangan langsung tancap gas untuk mengejar orgasme. Lakukan dengan perlahan dan santai. Nikmati saat-saat penetrasi dilaksanakan, karena bisa jadi anda tidak dapat merasakan nikmat yang sama di lain waktu. Lakukan berbagai posisi dan cara untuk memuaskan pasangan. Pada awal permainan adalah pilihan yang baik untuk memberikan wanita posisi di atas agar cepat medapatkan orgasme.

4. Hindari pembicaraan serius saat hubungan seks yang dapat menurunkan nafsu birahi lawan main anda. Katakan kata-kata kotor, manja dan nakal yang dapat meningkatkan rangsangan ke lawan sepermainan anda. Matikan hp / ponsel jika perlu agar kegiatan pribadi anda tidak diganggu gugat oleh pihak lain.

5. Setelah sang pria ejakulasi menyemburkan sperma hangat, jangan langsung beranjak pergi meninggalkan pasangan anda. Biarkan libido hawa nafsu yang masih tersisa hilang dulu. Berikan usapan-usapan mesra, kata-kata nakal berterima-kasih, pelukan dan ciuman hangat, dan lain sebagainya sebagai rasa sayang anda pada pasangan anda. Jika sempat mandilah bersama-sama untuk meningkatkan kualitas hubungan anda dengan suami atau istri anda. Lakukan hubugan seks kembali jika sama-sama terangsang kembali.

Tips Tambahan :
Lakukan hubungan suami isteri dengan aman di rumah jangan sampai dilihat anak-anak atau anggota keluarga lainnya. Pastikan pintu terkunci, tidak ada lubang mengintip, tidak ada kamera tersembunyi, dan lain sebagainya.