Ayam Goreng Nyonya Suharti (Kalimalang)

Thursday, March 10, 2011

Masih di daerah kali malang, kali ini menunya ayam goreng
nih foto2 nya,



alamatnya di kalimalang bekasi deket MM.

.:cool_sinchan@yahoo.com:.

Best 10 Video player for HTML5


One of the hot topic in web development nowadays is about HTML5 Video Player . HTML5 player is one of the most notable new features in HTML5, it allows you to embed video without the use of flash. Here are 10 best HTML5 video players which allow you to easily embed video into web pages and ensure backwards compatibility.

LeanBack Player

LeanBack Player is a HTML5 Video Player with subtitle-support. It supports widely used desktop browsers and mobile devices. Support also IE6,IE7,IE8 and Safari (without Quicktime on windows). It has support for subtitles using HTML5 track element and language selection by label attribute of track (Multilanguage support:English,German,France).
html5 video player

MooPlay- HTML5 Video Player

Mooplay is a set of controls, built on top of MooTools, that enables us to create and customize a HTML5 video player. It has a play and pause control, buttons to move inside the video, progress slider, a load progress bar, a volume slider and a mute button, also available to full page display, and current and remaining time.
html5 video player

FryPlayer – HTML5 Video Player

One of open source and easy to use HTML5 video player. It has a play and pause button, also possible to set volume sound. Ability to skin, buffering, and full screen mode.
html5 video player

MediaElement.js- HTML5 Video Player

MediaElement.js is an HTML5 video and audio player with Flash fallback. It supports , iPad, iPod, iPhone , IE6, IE7, IE8, Firefox, Opera, Safari, Google Chrome and Android. It’s got many audio video shortcodes for easy use within post and pages.
html5 video player

VideoJS – HTML5 video player

VideoJS built on the VideoJS HTML5 video player library. It is the most widely used HTML5 video player available. It allows you to embed video in your post or page using HTML5 with Flash Fallback support for non-HTML5 browsers. It supports , iPad, iPod, iPhone, Firefox, Opera, Safari, Google Chrome and Android.
html5 video player

FlasHTML5 Video- HTML5 video player

It is a plugin for WordPress implementation of the FlasHTML5 Video Javascript Library featuring HTML5/ Flash Video with Mobile Fallback. It support all HTML5 modern browser, all other browsers (Flash), and Android, iPhone, iPad, and iPod with HTML5.

Sublime Vide0 – HTML5 video player

Sublime Video is an HTML5 video player that will allow you to easily embed videos in any page, blog or site using the latest modem web standards. . It allows you to embed video in your post or page using HTML5 with Flash Fallback support for non-HTML5 browsers. It supports , iPad, iPod, iPhone, IE6, IE7, IE8, Firefox, Opera, Safari, Google Chrome and Android, Blackberry.
html5 video player

Flare Vide0 – HTML5 video player

FlareVideo is an open source, jQuery powered HTML5 video player. The player supports fullscreen mode and has a fallback mechanism into a Flash driven player. Also easy CSS/HTML/JS customization and theming.

Projekktor – HTML5 video player

Projekktor is a free JS wrapper for the new HTML5 video and audio elements. It solves cross browser and compatibility issues, adds some eye candy to the native players and provides powerful non standard features. It supports , iPad, iPod, iPhone, IE6, IE7, IE8, Firefox, Opera, Safari, Chrome, googleTV.
html5 video player

OlPlayer – HTML5 video player

OlPlayer is a HTML5 audio and video player with fallback to Flowplayer or Cortado. OlPlayer attaches itself to all video and audio tags it encounters. It so easy to use and implement. Besides the general configuration of the plugin itself, it uses for each individual tag the attributes the respective tag has like poster, width, control autoplay. Also compatible for iPhone, iPad, iPod. Support for Safari (v4.0+), Google Chrome (v5.0+), Firefox (v3.5+), Internet Explorer (v6.0+) with Flash or Java installed, and maybe some untested others with HTML5 support, Flash or Java Installed.
html5 video player
HTML5 video player

Create Offline (LAN) Ipaper Like Scribd

Tuesday, March 08, 2011

Oke beberapa hari yang lalu saya mencoba membuat script yang dapat menampilkan file pdf seperti scribd tapi offline, hmm sudah basi mungkin, yah buat coba2 sekalian belajar bolehkan :p.

Pertama2 perkakas yang dibutuhkan:

1. Flexpaper
2. pdf2swf tool
3. XAMPP

Oke lets the war begin,
- Untuk pertama extract file flexpaper yang telah anda download.
- Install swftools yng telah didownload, copy file pdf2swf.exe (berhubung saya menggunakan Win XP) ke dalam folder aplikasi. .:cool_sinchan@yahoo.com:.
- Buat direktori untuk menyimpan file hasil extract swf tadi
- Setelah itu buatlah file php dengan script sbb:




#code for pdf to swf using pdf2swf software
#this codeworks in windows environment.
## Important Parameters
$file=$_GET['file'];
$swf="file/".$file.".swf";
if(file_exists($swf)){
$pdf_path ="file/".$file;
$swf_output =$swf;
}else{
$software_path ="pdf2swf" ;
$pdf_path ="file/".$file;
$argument = "-o";
$swf_output =$swf ;
$cmd ="$software_path $pdf_path $argument $swf_output -qq";
//exit;
$result = system($cmd);
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run("cmd /C $cmd ", 0, true);
}
//echo var_dump($result)." ".mktime();
//echo $result;
# 0 for command prompt invisible mode
# 3 for visible

?>
 - copy paste isi script di file FlexPaperViewer.html dari flexpaper dan taruh. dibawah script php tersebut diatas.
 - Ubah variabel file (preview.swf) menjadi :
    .
    ..
    ...
    var flashvars = {
    SwfFile : escape("<?php echo $swf;?>"),
    Scale : 0.6,
    ZoomTransition : "easeOut",

    ...
    ..
    .
 - Setelah itu simpan file tersebut dengan nama pdf2swf.php file.
 - Untuk mengeksekusi buat perintah sbb:
    http://localhost/myapppath/pdf2swf.php?file=my-pdf-file.pdf

Tadaaa
    

Tempat download ebook

Friday, February 11, 2011

Setelah melakukan pencarian kemana akhirnya nemu juga ebook yang saya inginkan.
Biar nggak lupa saya share link tempat donwload ebook:
- http://avaxhome.ws
- ...

Sisanya nyusul deh :p

.:cool_sinchan@yahoo.com:.

Bekasi Kuliner : Ayam Bakar Ciawi at kalimalang bekasi

Thursday, February 10, 2011

Hahay Akhirnya wisata kuliner lagi kali ini menunya Ayam Bakar Ciawi Kalimalang hmm.
Tempatnya enak buat keluarga, lesehan, cocok juga buat yang reunian :p. berikut penampakannya:






And here is the rest of it .:cool_sinchan@yahoo.com:.

WEB Package Installer include XAMPP menggunakan NSIS

Buat teman2 yang bingung gimana bikin situs web yang mudah diinstall dimana (khususnya yang suka project an) mungkin ini bisa membantu meringankan beban anda. Awalnya saya bingung bagaimana membuat web installer dengan mengiclude xampp didalamnya, sehingga user yang tidak paham teknis nya dapat dengan mudah menginstall aplikasi web di pc nya. Sebelum bertarung siapkan dulu alat tempurnya:
1.NSIS (Nullsoft Scriptable Install System), ini program yang bertugas mambuat installer dari script yang akan kita buat, (download).
2.Untuk saat ini saya menggunakan XAMPP 1.7.1
3.Ini contoh file nsi nya xampp 1.7.1 (download)
4.Script yang mau dipackage.

Oke Lanjut..

1. Pertama Install dahulu xampp nya.
2. Masukkan aplikasi web anda ke htdocs dan database mysql nya ke folder mysql data nya xampp.
3. Jika semua sudah berjalan lancar di lokal, sekarang install nsis anda. dan jalankan program nsis.
4. Load script xampp.nsi dengan menggunakan nsis anda.
5. edit tulisan :
OutFile "C:\xamppdev\NSI\output\xampp-win32-1.7.1-installer.exe"
dengan
Outfile "namafilesetup.exe"
6. Edit tulisan "C:\xamppdev\NSI\icons\" ke posisi dimana anda menyimpan icons, jika anda ingin menggunakan icon xampp download disini
7. Edit tulisan
File /r "H:\xamppdev\installer\xampp\*.*"
dengan
File /r "[drive path]:\lokasixamppanda\*.*" contoh : File /r "C:\xampdev\xampp\*.*"
8. Compile dan tunggu sampai benar2 selesai.
9. Test compiler dan jalankan, dan anda sudah bisa membawa aplikasi anda kedalam cd atau flashdisk untuk disebarkan :p
Berikut saya lampirkan contoh file xampp.nsi saya:

; Author: Kay Vogelgesang for ApacheFriends XAMPP win32

;---------------------
;Include Modern UI
!include "MUI.nsh"
;--------------------------------

SetCompressor /solid lzma
XPStyle on
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "XAMPP"
!define PRODUCT_VERSION "1.7.1"
!define PRODUCT_PUBLISHER "Kay Vogelgesang, Kai Oswald Seidler, ApacheFriends"
!define PRODUCT_WEB_SITE "http://www.apachefriends.org"
Caption "XAMPP ${PRODUCT_VERSION} win32 (Basic Package)"
InstallDirRegKey HKLM "Software\xampp" "Install_Dir"
; InstallDirRegKey HKCU "Software\xampp" ""
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "sppb.exe"
;Vista redirects $SMPROGRAMS to all users without this
RequestExecutionLevel admin
BGGradient f87820 FFFFFF FFFFFF
InstallColors FF8080 000030
CheckBitmap "${NSISDIR}\Contrib\Graphics\Checks\classic-cross.bmp"

;--------------------------------
;Language Selection Dialog Settings

;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKLM"
!define MUI_LANGDLL_REGISTRY_KEY "Software\xampp"
!define MUI_LANGDLL_REGISTRY_VALUENAME "lang"

;--------------------------------

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "C:\xampdev\xampp\install\xampp-icon.ico"
!define MUI_UNICON "C:\xampdev\xampp\install\xampp-icon-uninstall.ico"
!define MUI_WELCOMEPAGE
!define MUI_CUSTOMPAGECOMMANDS
!define MUI_COMPONENTSPAGE
!define MUI_COMPONENTSPAGE_NODESC

; Welcome page
!insertmacro MUI_PAGE_WELCOME
; Components
; !insertmacro MUI_PAGE_COMPONENTS
; License page
;!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\license.txt"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
Page custom CustomPageC
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

;--------------------------------

;Languages

!insertmacro MUI_LANGUAGE "English" # first language is the default language
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "Japanese"

;--------------------------------
;Reserve Files

;These files should be inserted before other files in the data block
;Keep these lines before any File command
;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA)

ReserveFile "xampp.ini"
ReserveFile "xampp-japanese.ini"
ReserveFile "xampp_home.ini"
ReserveFile "xampp_home-japanese.ini"
ReserveFile "xampp-german.ini"
ReserveFile "xampp_home-german.ini"

!insertmacro MUI_RESERVEFILE_LANGDLL
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS

;--------------------------------
;Variables

Var INI_VALUE
Var INI_VALUE2
Var INI_VALUE3
Var INI_VALUE4
Var INI_VALUE5
Var INST_MESS
Var INST_MESS1
Var INST_MESS2
Var INST_MESS3
Var INST_MESS4
Var MESS_INSTDIR1
Var MESS_INSTDIR2
Var FTP_INSTALL
Var MAIL_INSTALL
Var DB_DEL
Var NO_DEL

InstallDir "c:\xampp"
Icon "C:\xampdev\xampp\install\xampp-icon.ico"
UninstallIcon "C:\xampdev\xampp\install\xampp-icon-uninstall.ico"
ShowInstDetails show
ShowUninstDetails show

Section "XAMPP Files" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File /r "C:\xampdev\xampp\*.*"
ExecWait '"$INSTDIR\php\php.exe" -n -d output_buffering=0 "$INSTDIR\install\install.php"' $4

WriteRegStr HKLM "Software\xampp" "Install_Dir" "$INSTDIR"
WriteRegStr HKLM "Software\xampp" "apache" "2211"
WriteRegStr HKLM "Software\xampp" "version" "1710"
WriteRegStr HKLM "Software\xampp" "apacheservice" "0"
WriteRegStr HKLM "Software\xampp" "mysqlservice" "0"
WriteRegStr HKLM "Software\xampp" "tomcatservice" "0"
WriteRegStr HKLM "Software\xampp" "filezillainstall" "1"
WriteRegStr HKLM "Software\xampp" "filezillaservice" "0"
WriteRegStr HKLM "Software\xampp" "mercuryinstall" "1"
WriteRegStr HKLM "Software\xampp" "addonperl" "0"
WriteRegStr HKLM "Software\xampp" "addonpython" "0"
WriteRegStr HKLM "Software\xampp" "addontomcat" "0"
WriteRegStr HKLM "Software\xampp" "addoncocoon" "0"
WriteRegStr HKLM "Software\xampp" "programfiles" "0"
WriteRegStr HKLM "Software\xampp" "desktopicon" "0"
WriteRegStr HKLM "Software\xampp" "services" "0"
WriteRegStr HKLM "Software\xampp" "lang" "$LANGUAGE"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xampp" "DisplayName" "${PRODUCT_NAME} ${PRODUCT_VERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xampp" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xampp" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xampp" "NoRepair" 1
WriteUninstaller "$INSTDIR\Uninstall.exe"

ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
StrCmp $R0 "" 0 NTsec
MessageBox MB_OK "No Service Installation avaible on Windows 98/ME/Home"
StrCmp $LANGUAGE "1041" japanese1
StrCmp $LANGUAGE "1031" german1
;Read a value from an InstallOptions INI file
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE "xampp_home.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE2 "xampp_home.ini" "Field 4" "State"
Goto no_srv
german1:
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE "xampp_home-german.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE2 "xampp_home-german.ini" "Field 4" "State"
Goto no_srv
japanese1:
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE "xampp_home-japanese.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE2 "xampp_home-japanese.ini" "Field 4" "State"
Goto no_srv
NTsec:
; FULL SERVICES --------------
StrCmp $LANGUAGE "1041" japanese2
StrCmp $LANGUAGE "1031" german2
;Read a value from an InstallOptions INI file
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE "xampp.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE2 "xampp.ini" "Field 4" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE3 "xampp.ini" "Field 6" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE4 "xampp.ini" "Field 7" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE5 "xampp.ini" "Field 8" "State"
Goto defaultlang2
german2:
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE "xampp-german.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE2 "xampp-german.ini" "Field 4" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE3 "xampp-german.ini" "Field 6" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE4 "xampp-german.ini" "Field 7" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE5 "xampp-german.ini" "Field 8" "State"
Goto defaultlang2
japanese2:
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE "xampp-japanese.ini" "Field 2" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE2 "xampp-japanese.ini" "Field 4" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE3 "xampp-japanese.ini" "Field 6" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE4 "xampp-japanese.ini" "Field 7" "State"
!insertmacro MUI_INSTALLOPTIONS_READ $INI_VALUE5 "xampp-japanese.ini" "Field 8" "State"
defaultlang2:


StrCmp $INI_VALUE3 "1" "" noapache2
WriteRegStr HKLM "Software\xampp" "apacheservice" "1"
WriteRegStr HKLM "Software\xampp" "services" "1"
noapache2:
StrCmp $INI_VALUE4 "1" "" nomysql5
WriteRegStr HKLM "Software\xampp" "mysqlservice" "1"
WriteRegStr HKLM "Software\xampp" "services" "1"
nomysql5:
StrCmp $INI_VALUE5 "1" "" noftp2
WriteRegStr HKLM "Software\xampp" "filezillaservice" "1"
WriteRegStr HKLM "Software\xampp" "services" "1"
noftp2:
no_srv:

StrCmp $INI_VALUE "1" "" nodesktop
WriteRegStr HKLM "Software\xampp" "desktopicon" "1"
nodesktop:
StrCmp $INI_VALUE2 "1" "" noprofiles
WriteRegStr HKLM "Software\xampp" "programfiles" "1"
noprofiles:

SectionEnd

; ---------------------------------------

Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "xampp.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "xampp-japanese.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "xampp_home.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "xampp_home-japanese.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "xampp-german.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "xampp_home-german.ini"

ReadRegStr $R1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
StrCmp $R1 "6.0" detection_VISTA
StrCmp $R1 "6.1" detection_VISTA
Goto no_vista
detection_VISTA:
ReadRegStr $R2 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" EnableLUA
ReadRegStr $R0 HKCU "Control Panel\International" Locale
StrCmp $R0 "00000407" detection_de
GOTO no_de
detection_de:
StrCmp $R2 "1" IS_UACDE
MessageBox MB_OK "Die Windows Vista Benutzerkontensteuerung (UAC) ist auf Ihrem System deaktiviert (empfohlen!). Bitte beachten Sie, das eine nachträgliche Aktivierung des Benutzerkontenschutz die Funktionalität der XAMPP-Komponenten beeinträchtigen kann."
GOTO ISNO_UACDE
IS_UACDE:
MessageBox MB_OK "Wichtige MS Vista Warnung! Aufgrund der aktivierten Benutzerkontensteuerung (UAC) auf Ihrem System sind XAMPP-Komponenten und Funktionen ggf. nur eingeschränkt einsetzbar. Vermeiden Sie in diesem Fall die Installation von XAMPP unter $PROGRAMFILES oder deaktivieren Sie den Benutzerkontensteuerung über msconfig nach diesem Setup."
ISNO_UACDE:
GOTO no_vista
no_de:
StrCmp $R2 "1" IS_UACE
MessageBox MB_OK "Windows Vista User Account Control (UAC) is deactivated on your system (recommended!). Please consider: A later activation of UAC can restrict the functionality of XAMPP!"
GOTO no_vista
IS_UACE:
MessageBox MB_OK "Important MS Vista Note! Because an activated Windows Vista User Account Control (UAC) on your sytem some functions of xampp are possibly restricted. With UAC please avoid to install XAMPP to $PROGRAMFILES (because of not enough write permisssions). Or deactivate UAC (with msconfig) after this Setup."
no_vista:
FunctionEnd


Function CustomPageC
ReadRegStr $R1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
StrCmp $R1 "" 0 NTsrv
StrCmp $LANGUAGE "1041" japanesehome
StrCmp $LANGUAGE "1031" germanhome
!insertmacro MUI_HEADER_TEXT "XAMPP Options" "Install options on Windows Home systems."
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "xampp_home.ini"
Goto no_srv
germanhome:
!insertmacro MUI_HEADER_TEXT "XAMPP Optionen" "Konfiguration für Windows Home Systeme."
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "xampp_home-german.ini"
Goto no_srv
japanesehome:
!insertmacro MUI_HEADER_TEXT "XAMPP Options" "Windows‚̃VƒXƒeƒ€‚̃IƒvƒVƒ‡ƒ“‚ðƒCƒ“ƒXƒg[ƒ‹‚µ‚Ü‚·B"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "xampp_home-japanese.ini"
Goto no_srv
NTsrv:
StrCmp $LANGUAGE "1041" japanese
StrCmp $LANGUAGE "1031" german
!insertmacro MUI_HEADER_TEXT "XAMPP Options" "Install options on NT/2000/XP Professional systems."
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "xampp.ini"
Goto no_srv
german:
!insertmacro MUI_HEADER_TEXT "XAMPP Optionen" "Konfiguration für NT/2000/XP Professional Systeme."
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "xampp-german.ini"
Goto no_srv
japanese:
!insertmacro MUI_HEADER_TEXT "XAMPP Options" "Windows NT/2000/XP/2003‚ɃVƒXƒeƒ€ƒIƒvƒVƒ‡ƒ“‚ðƒCƒ“ƒXƒg[ƒ‹‚µ‚Ü‚·"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "xampp-japanese.ini"
no_srv:

FunctionEnd

!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "SERVICES:"
!insertmacro MUI_FUNCTION_DESCRIPTION_END

Function .onInstSuccess

; SERVICE INSTALLATION
ReadRegStr $4 HKLM "Software\xampp" "lang"
ReadRegStr $0 HKLM "Software\xampp" "services"
StrCmp $0 "0" no_srv
ExecWait 'cmd /C cd "$INSTDIR\install" & portcheck.bat' $7
ReadRegStr $1 HKLM "Software\xampp" "apacheservice"
StrCmp $1 "0" no_httpd
ReadINIStr $R0 "$INSTDIR\install\portcheck.ini" "Ports" "Port80"
StrCmp $R0 "BLOCKED" Port80Abort
ReadINIStr $R1 "$INSTDIR\install\portcheck.ini" "Ports" "Port443"
StrCmp $R1 "BLOCKED" Port80Abort
ExecWait 'cmd /C cd "$INSTDIR\apache\bin" & httpd.exe -k install & net start Apache2.2' $9
Goto no_httpd
Port80Abort:
StrCmp $4 "1031" german
StrCmp $4 "1041" japan
StrCpy $INST_MESS1 "Ports 80 or 443 (SSL) already in use! Installing Apache2.2 service failed!"
Goto mess1
japan:
StrCpy $INST_MESS1 "ƒ|[ƒg 80 ‚Ü‚½‚Í 443 (SSL) ‚Í‚·‚Å‚É—˜—p‚³‚ê‚Ä‚¢‚Ü‚·BApache2.2‚ðƒT[ƒrƒX‚Æ‚µ‚ăCƒ“ƒXƒg[ƒ‹‚·‚é‚Ì‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"
Goto mess1
german:
StrCpy $INST_MESS1 "Ports 80 oder 443 (SSL) bereits in Nutzung! Apache2.2-Dienst konnte nicht eingerichtet werden."
mess1:
WriteRegStr HKLM "Software\xampp" "apacheservice" "0"
MessageBox MB_OK "$INST_MESS1"

no_httpd:
ReadRegStr $2 HKLM "Software\xampp" "mysqlservice"
StrCmp $2 "0" no_mysql
ReadINIStr $R0 "$INSTDIR\install\portcheck.ini" "Ports" "Port3306"
StrCmp $R0 "BLOCKED" Port3306Abort
ExecWait 'cmd /C cd "$INSTDIR\mysql\bin" & mysqld.exe --install mysql --defaults-file="$INSTDIR\mysql\bin\my.cnf" & net start mysql' $9
Goto no_mysql
Port3306Abort:
StrCmp $4 "1031" german1
StrCmp $4 "1041" japan1
StrCpy $INST_MESS2 "Port 3306 already in use! Installing MySQL service failed!"
Goto mess2
japan1:
StrCpy $INST_MESS2 "ƒ|[ƒg3306 ‚Í‚·‚Å‚ÉŽg—p‚³‚ê‚Ä‚¢‚Ü‚·BMySQL‚ðƒT[ƒrƒX‚Æ‚µ‚ăCƒ“ƒXƒg[ƒ‹‚·‚é‚Ì‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"
Goto mess2
german1:
StrCpy $INST_MESS2 "Port 3306 bereits in Nutzung! MySQL-Dienst kann nicht eingerichtet werden."
mess2:
WriteRegStr HKLM "Software\xampp" "mysqlservice" "0"
MessageBox MB_OK "$INST_MESS2"

no_mysql:
ReadRegStr $3 HKLM "Software\xampp" "filezillaservice"
StrCmp $3 "0" no_ftp
ReadINIStr $R0 "$INSTDIR\install\portcheck.ini" "Ports" "Port21"
StrCmp $R0 "BLOCKED" Port21Abort
ExecWait '"$INSTDIR\FileZillaFTP\FileZillaServer.exe" /install' $9
ExecWait '"$INSTDIR\FileZillaFTP\FileZillaServer.exe" /start' $9
Goto no_ftp
Port21Abort:
StrCmp $4 "1031" german2
StrCmp $4 "1041" japan2
StrCpy $INST_MESS3 "Port 21 already in use! Installing FileZilla FTPD service failed!"
Goto mess3
japan2:
StrCpy $INST_MESS3 "ƒ|[ƒg 21 ‚Í‚·‚Å‚ÉŽg—p‚³‚ê‚Ä‚¢‚Ü‚·BFileZilla FTPD ‚ðƒT[ƒrƒX‚Æ‚µ‚ăCƒ“ƒXƒg[ƒ‹‚·‚邱‚Æ‚ÉŽ¸”s‚µ‚Ü‚µ‚½B"
Goto mess3
german2:
StrCpy $INST_MESS3 "Port 21 bereits in Nutzung! FileZilla-Dienst kann nicht eingerichtet werden!"
mess3:
WriteRegStr HKLM "Software\xampp" "filezillaservice" "0"
MessageBox MB_OK "$INST_MESS3"

no_ftp:
StrCmp $4 "1031" german3
StrCmp $4 "1041" japan3
StrCpy $INST_MESS4 "Service installation finished! Hint: Use also the XAMPP Control Panel to manage services."
Goto mess4
japan3:
StrCpy $INST_MESS4 "ƒT[ƒrƒX‚Æ‚µ‚ăCƒ“ƒXƒg[ƒ‹‚ɐ¬Œ÷‚µ‚Ü‚µ‚½BXamppƒRƒ“ƒgƒ[ƒ‹ƒpƒlƒ‹‚ðŠm”F‚µAƒT[ƒrƒX‚ðŠÇ—‚µ‚Ä‚­‚¾‚³‚¢B"
Goto mess4
german3:
StrCpy $INST_MESS4 "Dienste-Installation abgeschlossen! Tipp: Dienste können Sie auch mit XAMPP Control Panel verwalten."
mess4:
MessageBox MB_OK "$INST_MESS4"

no_srv:
; DESKTOP & START MENU SECTION
ReadRegStr $0 HKLM "Software\xampp" "desktopicon"
StrCmp $0 "0" no_icon
CreateShortCut "$DESKTOP\XAMPP Control Panel.lnk" "$INSTDIR\xampp-control.exe" ""

no_icon:
ReadRegStr $1 HKLM "Software\xampp" "programfiles"
StrCmp $1 "0" no_pfiles
CreateDirectory "$SMPROGRAMS\Apache Friends\XAMPP"
CreateShortCut "$SMPROGRAMS\Apache Friends\XAMPP" "" ""
CreateShortCut "$SMPROGRAMS\Apache Friends\XAMPP\XAMPP Control Panel.lnk" "$INSTDIR\xampp-control.exe" "" "$INSTDIR\install\xampp.ico"
CreateShortCut "$SMPROGRAMS\Apache Friends\XAMPP\XAMPP httpdoc folder.lnk" "$INSTDIR\htdocs" "" "$INSTDIR\install\folder.ico"
;CreateShortCut "$SMPROGRAMS\Apache Friends\XAMPP\Port check.lnk" "$INSTDIR\xampp-portcheck.exe" "" "$INSTDIR\install\xamppcontrol.ico"
;CreateShortCut "$SMPROGRAMS\Apache Friends\XAMPP\PHP switch.lnk" "$INSTDIR\php-switch.bat" "" "$INSTDIR\install\php.ico"
CreateShortCut "$SMPROGRAMS\Apache Friends\XAMPP\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\install\xampp-icon-uninstall.ico"

no_pfiles:
StrCmp $4 "1041" japanese
Delete "$INSTDIR\xampp-control-jp.exe"
Rename "$INSTDIR\xampp-control-default.exe" "$INSTDIR\xampp-control.exe"
Goto xamppcontrol_out
japanese:
Delete "$INSTDIR\xampp-control-default.exe"
Rename "$INSTDIR\xampp-control-jp.exe" "$INSTDIR\xampp-control.exe"
xamppcontrol_out:

StrCmp $4 "1031" german4
StrCmp $4 "1041" japan4
StrCpy $INST_MESS "Congratulations! The installation was successful! Start the XAMPP Control Panel now?"
GOTO Xcontrol
german4:
StrCpy $INST_MESS "Herzlichen Glückwunsch! Die Installation war erfolgreich! Das XAMPP Control Panel jetzt starten?"
GOTO Xcontrol
japan4:
StrCpy $INST_MESS "‚¨‚ß‚Å‚Æ‚¤‚²‚´‚¢‚Ü‚·BƒCƒ“ƒXƒg[ƒ‹‚ɐ¬Œ÷‚µ‚Ü‚µ‚½BXamppƒRƒ“ƒgƒ[ƒ‹ƒpƒlƒ‹‚ð¡‚·‚®‹N“®‚µ‚Ü‚·‚©H"
Xcontrol:
MessageBox MB_YESNO "$INST_MESS" IDNO NoXcontrol
Exec '"$INSTDIR\xampp-control.exe"'
NoXcontrol:
FunctionEnd


Section "Uninstall"
Exec '"$INSTDIR\apache\bin\pv.exe" -f -k xampp-control.exe'

ReadRegStr $9 HKLM "Software\xampp" "lang"
StrCmp $9 "1041" japanese0
StrCmp $9 "1031" german0
StrCpy $INST_MESS "Really uninstall XAMPP with all services?"
GOTO mess_box
german0:
StrCpy $INST_MESS "XAMPP mit allen Server-Diensten wirklich deinstallieren?"
GOTO mess_box
japanese0:
StrCpy $INST_MESS "–{“–‚ÉXampp‚ðƒT[ƒrƒX‚ðŠÜ‚ß‚¢‚ăAƒ“ƒCƒ“ƒXƒg[ƒ‹‚µ‚Ü‚·‚©H"
mess_box:
MessageBox MB_YESNO|MB_ICONQUESTION "$INST_MESS" IDNO ExitDel

ReadRegStr $5 HKLM "Software\xampp" "services"
StrCmp $5 "0" srv_Abort
ReadRegStr $2 HKLM "Software\xampp" "apacheservice"
StrCmp $2 "0" no_httpd
ExecWait 'cmd /C net stop Apache2.2 & cd "$INSTDIR\apache\bin" & httpd.exe -k uninstall' $9
no_httpd:
ReadRegStr $3 HKLM "Software\xampp" "mysqlservice"
StrCmp $3 "0" no_mysql
ExecWait 'cmd /C net stop mysql & cd "$INSTDIR\mysql\bin" & mysqld.exe --remove mysql' $9
no_mysql:
ReadRegStr $4 HKLM "Software\xampp" "filezillaservice"
StrCmp $4 "0" no_ftpd
ExecWait '"$INSTDIR\FileZillaFTP\FileZillaServer.exe" /stop' $9
ExecWait '"$INSTDIR\FileZillaFTP\FileZillaServer.exe" /uninstall' $9
no_ftpd:

ReadRegStr $6 HKLM "Software\xampp" "tomcatservice"
StrCmp $6 "0" NoJavaAddon
ReadRegStr $7 HKLM "SYSTEM\CurrentControlSet\Services\Tomcat6" "ImagePath"
StrCmp $7 "$INSTDIR\tomcat\bin\tomcat6.exe //RS//Tomcat6" Tomcat5Uninstall
Goto Tomcat5Abort
Tomcat5Uninstall:
MessageBox MB_OK "Service detected! Uninstall Tomcat 6 as service!"
ExecWait 'cmd /C net stop Tomcat6 & cd "$INSTDIR\tomcat\bin" & service.bat remove Tomcat6' $9
Tomcat5Abort:
NoJavaAddon:

srv_Abort:

ReadRegStr $0 HKLM "Software\xampp" "desktopicon"
StrCmp $0 "0" no_icon
Delete "$DESKTOP\XAMPP Control Panel.lnk"
no_icon:
ReadRegStr $8 HKLM "Software\xampp" "programfiles"
StrCmp $8 "0" no_pfiles
Delete "$SMPROGRAMS\Apache Friends\xampp\*.*"
RMDir "$SMPROGRAMS\Apache Friends\xampp"
RMDir "$SMPROGRAMS\Apache Friends"
no_pfiles:



RMDir /r "$INSTDIR\anonymous"
RMDir /r "$INSTDIR\apache"
RMDir /r "$INSTDIR\cgi-bin"
RMDir /r "$INSTDIR\FileZillaFTP"
RMDir /r "$INSTDIR\install"
RMDir /r "$INSTDIR\licenses"
RMDir /r "$INSTDIR\MercuryMail"
RMDir /r "$INSTDIR\perl"
RMDir /r "$INSTDIR\php"
RMDir /r "$INSTDIR\phpMyAdmin"
RMDir /r "$INSTDIR\python"
RMDir /r "$INSTDIR\security"
RMDir /r "$INSTDIR\sendmail"
RMDir /r "$INSTDIR\tmp"
RMDir /r "$INSTDIR\tomcat"
RMDir /r "$INSTDIR\webalizer"
RMDir /r "$INSTDIR\webdav"
RMDir /r "$INSTDIR\nsis"
RMDir /r "$INSTDIR\contrib"

Delete "$INSTDIR\apache_start.bat"
Delete "$INSTDIR\apache_stop.bat"
Delete "$INSTDIR\filezilla_setup.bat"
Delete "$INSTDIR\filezilla_start.bat"
Delete "$INSTDIR\filezilla_stop.bat"
Delete "$INSTDIR\mercury_start.bat"
Delete "$INSTDIR\mercury_stop.bat"
Delete "$INSTDIR\mysql_start.bat"
Delete "$INSTDIR\mysql_stop.bat"
Delete "$INSTDIR\php-switch.bat"
Delete "$INSTDIR\readme_de.txt"
Delete "$INSTDIR\readme_en.txt"
Delete "$INSTDIR\service.exe"
Delete "$INSTDIR\setup_xampp.bat"
Delete "$INSTDIR\xampp_restart.exe"
Delete "$INSTDIR\xampp_start.exe"
Delete "$INSTDIR\xampp_stop.exe"
Delete "$INSTDIR\xampp-changes.txt"
Delete "$INSTDIR\xampp-portcheck.exe"
Delete "$INSTDIR\xampp-control.exe"
Delete "$INSTDIR\Uninstall.exe"
Delete "$INSTDIR\javapath.ini"
Delete "$INSTDIR\readme-addon-perl.txt"
Delete "$INSTDIR\readme-addon-tomcat.txt"
Delete "$INSTDIR\tomcat_start.bat"
Delete "$INSTDIR\tomcat_stop.bat"
Delete "$INSTDIR\passwords.txt"
Delete "$INSTDIR\xampp_cli.exe"
Delete "$INSTDIR\xampp_chkdll.exe"
Delete "$INSTDIR\xampp_service_mercury.exe"
;Delete "$INSTDIR\msvcr71.dll"

DeleteRegKey HKLM "Software\xampp"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xampp"

StrCmp $LANGUAGE "1041" japanese1
StrCmp $LANGUAGE "1031" german1
StrCpy $INST_MESS1 "Remove all MySQL data bases from $INSTDIR\mysql\data?"
GOTO messa1
german1:
StrCpy $INST_MESS1 "Alle MySQL Datenbanken in $INSTDIR\mysql\data löschen?"
GOTO messa1
japanese1:
StrCpy $INST_MESS1 "MySQLƒf[ƒ^ƒx[ƒX‚ð $INSTDIR\mysql\data ‚©‚çíœ‚µ‚Ü‚·‚©H"
messa1:
MessageBox MB_YESNO|MB_ICONQUESTION "$INST_MESS1" IDYES NoMysql
Delete "$INSTDIR\mysql\*.*"
RMDir /r "$INSTDIR\mysql\bin"
RMDir /r "$INSTDIR\mysql\scripts"
RMDir /r "$INSTDIR\mysql\share"
StrCpy $DB_DEL "0"
Goto DeleteHtdocs
NoMysql:
RMDir /r "$INSTDIR\mysql"
DeleteHtdocs:

StrCmp $LANGUAGE "1041" japanese2
StrCmp $LANGUAGE "1031" german2
StrCpy $INST_MESS2 "Remove the $INSTDIR\htdocs folder too?"
StrCpy $MESS_INSTDIR1 "Shall the installer try to remove $INSTDIR?"
StrCpy $MESS_INSTDIR2 "Note: $INSTDIR could not be removed!"
GOTO messa2
german2:
StrCpy $INST_MESS2 "Auch das Verzeichnis $INSTDIR\htdocs löschen?"
StrCpy $MESS_INSTDIR1 "Soll der Installer (versuchen) das Verzeichnis $INSTDIR (zu) löschen?"
StrCpy $MESS_INSTDIR2 "Achtung: Könnte $INSTDIR nicht löschen!"
GOTO messa2
japanese2:
StrCpy $INST_MESS2 "$INSTDIR\htdocs ‚̃tƒHƒ‹ƒ_[‚ðíœ‚µ‚Ü‚·‚©H"
StrCpy $MESS_INSTDIR1 "Shall the installer try to remove $INSTDIR?"
StrCpy $MESS_INSTDIR2 "Note: $INSTDIR could not be removed!"
messa2:
MessageBox MB_YESNO|MB_ICONQUESTION "$INST_MESS2" IDYES noHtdocs
Goto NoDelete
noHtdocs:
RMDir /r "$INSTDIR\htdocs"
GOTO NoDocs
NoDelete:
GOTO ExitDel
NoDocs:
StrCmp $DB_DEL "0" NoXaDir

MessageBox MB_YESNO|MB_ICONQUESTION "$MESS_INSTDIR1" IDYES noIDIR
Goto yesIDIR
noIDIR:
RMDir "$INSTDIR"
IfFileExists "$INSTDIR\*.*" ErrorMsg
Goto yesIDIR
ErrorMsg:
MessageBox MB_OK "$MESS_INSTDIR2" ; skipped if file doesn't exist
yesIDIR:

NoXaDir:
ExitDel:
SectionEnd

;--------------------------------
;Uninstaller Functions
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
FunctionEnd








.:cool_sinchan@yahoo.com:.

PT. Tralala Jaya

Sunday, January 09, 2011

Eng Ing Eng
"Cerita di bawah ini hanya untuk lucu2 an saja, apabila ada kesamaan nama dan peristiwa, hanyalah kebetulan belaka" hahay.
Alkisah pada suatu jaman yang sudah maju, dimana semua peradaban sudah berkembang pesat. Ada seorang manusia bernama cing he. Dia dipanggil oleh teman - temannya manusia setengah kampret, kenapa eh kenapa? mungkin karena dia selalu bekerja sampai larut malam dan tidak pernah bangun pagi. okeh lanjut, begini ceritanya "Auuuuuuuuu" (suara latar belakang),"Woiii udah maleeemm jangan au au berisik setaaann, nggak tahu jam berapa inih" (suara latar belakang lagi), etdah ni tetangga nyampur aja oke begini ceritanya "aa..","sssttt",OK jadi begini cing he adalah seorang ahli teknisi pipa sepitenk (septic tank kalo menurut ejaan yang disempurnain eh disempurnalah mmmm atau ah apalah lupa saya), dia sudah berpengalaman menangani masalah per sepitenk an selama empat tahun. Setelah lama berkecimpung dalam usaha sedot menyedot WC (bukan World Cup), di tertarik untuk bekerja di perusahaan yang baru berdiri di bidang yang sama, nama perusahaan tersebut adalah PT.Me... eh PT. Tralala Jaya. PT Tralala Jaya ini masih berumur jagung pada saat cing he masuk. Sang empunya PT mencoba membuat nama komersil PT tersebut. namanya apa yah saya lupa..mmm oh iya SedotGan ide ini dia dapatkan saat dia sedang browsing2 di sebuah website forum per wc an.

Okeh singkat kata cing he pun (anjrit terbengong sesaat, gwe lagi nulis sambil nongton pelem JOMBLO bro #jadulakut) eemmm oke cing he pun bekerja disana. Saat saat awal semua masih berjalan dengan baik, namun semakain jauh waktu berjalan, seringkali sering terjadi keanehan - keanehan di perusahaan tersebut. Salah satu keanehan yang terjadi, si cing he disuruh menyiapkan kopi dan makanan ringan untuk salah satu atasan disana, pernah sesekali si cing he disuruh memperbaiki mesin ketik yang rusak. Dengan langkah berat si cing he pun melakukannya, setelah selesai memperbaiki satu kali, dua kali, orang2 dikantor mulai menganggap cing he bisa untuk disuruh2. dalam hati dia bertanya ada apa ini? apa yang salah dengan dirinya? hmmm pikir seribu pikir. Oke ya sudah lah apapun ini selama itu masih wajar, kenapa enggak. Dan waktu pun terus bergulir, banyak sekali pekerjaan2 ajaib yang dikerjakan oleh cing he tapi cing he melakukannya dengan semangat, dengan harapan suatu saat mereka bisa berubah.

Waktu terus bergulir akhirnya tiba saatnya.. (edan ini yang bikin filem JOMBLO siapa sih? jadi nggak konsen #jadulberkelanjutan) restrukturisasi, dengan hati cemas cing he menunggu kira kira dia dapat posisi apa, satu demi satu slide terlewati, nah ini dia bagian departemen teknisi, "aseeek temen ada yang naek pangkat mantab dah" ujarnya dalam hati, "oke where is my name, where is my name..", dag cing he terkejut ternyata posisinya berada di ujung bawah struktur dan tulisannya disitu Office Boy, hahahahaha its funny, ini tulisannya pasti salah kata cinghe dalam hati, cinghe pun menunggu saat saat dimana diumumkan bahwa itu adalah sebuah kekeliruan, sehari, seminggu, hampir sebulan.. oow, Ini pasti ada yang salah ada apa ini? ada apa dengan cinta? (haesh kenapa ke situ sih #otaksomplak), Ok slown down, lets step back, inget2 lagi, hmmmmmm, cing he menguras cairan otaknya, mencoba bertanya2 pada dirinya "Kok Bisa Ya?".
bersambung cooy
.:cool_sinchan@yahoo.com:.