Monday, February 28, 2011

Develop website from any computers

I'm using 2 computers for daily use. Sometime I develop website so I need a way to work on the web that I develop from those 2 computers.
To achieve that I use
- Dropbox => this will be used to synchronize all files to any computer
- Apache => You will need this because IIS not support user_dir mod
- PHP ( this will depend on what kind server-side language do you use)

For the first step install Dropbox on your computer. After that install Apache web server.
Now create directory public_html under your dropbox folder.
Dropbox folder at my computer located at "C:\Users\Ronaldo\Documents\My Dropbox" for newer version the dropbox folder located at "C:\Users\\Dropbox"

Now uncomment this lines at httpd.conf
LoadModule userdir_module modules/
Include conf/extra/httpd-userdir.conf

now the edit the httpd-userdir.conf , here my httpd-userdir.conf looks like

# Settings for user home directories
# Required module: mod_userdir

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
UserDir "C:/Users/*/Documents/My Dropbox/public_html"

# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order deny,allow
Allow from
Allow from localhost
Deny from all

Order deny,allow
Allow from 127.0.01
Allow from localhost
Deny from all

restart the apache web server service. After that, access your home directory web, http://localhost/~username,
so for me it will be http://locahost/~ronaldo , after that put the website that you will develop under your public_html folder, which locate inside your Dropbox folder. Dropbox will synchronize every changes under it own directory.

NOTE: This is for development only..

Monday, June 29, 2009

Some improvement that needed by Win 2008 Core

For few days I’m using Windows 2008 Core. It’s a good idea but for me still need some improvement. Here are the improvement that I think necessary to windows 2008 Core

1. Fixed the command prompt. make a smart command prompt, take example from linux command promot (nuff said).

2. Fixed the command prompt (again). In Linux I can resize the command prompt. Windows command prompt horrible, because sometime I need to get long output from a command.

3. Make a decent text based editor.. try to take example from VI.

4. Why on earth we still need RDP for text based environment. Just make a decent SSH server.


Other than that I like to work with Win 2008 Core, I think it very useful when you want to make RODC and File server at  branch office.

Thursday, April 02, 2009

My Windows 7 Experience

After using vista for more than a year I just sick with it so damn slow. It took several minutes until my computer become usable. Sometime when I open application usually, I go to pantry to make tea or coffee. Also on vista my HardDrive is constantly busy this cause by windows search, that keep indexing my files even when my computer not in idle mode. Also when I try to archiving my mail, my vista system become completely useless. The bottom line is my vista experience is a frustrating experience.
Then come Windows 7 After see the performance on my friend laptop I decided to remove Vista, then install Windows 7.
Even though still in beta version, the performance is very much better than Vista, even with SP1 installed. I think this vista should be. Microsoft must provide free upgrade for all the Vista user because the software is a crappie one, and most of those who buy new laptop/computer not have much option(Except you build your own computer). I think that only a dream because no way Microsoft provides free upgrade for all the Vista users (except those who buy vista after June).

Beside the performance stuff what I like from Windows 7 is the Aero Peek , and also the location of the Show Desktop button. Also the New task bar (or super bar). Basically the Interface is just awesome.
Ok enough with all whining stuff. I install Windows 7 on Thinkpad T61, Here my Laptop Spec
Model: Thinkpad T61
Processor: Core 2 Duo 1,8 Ghz
Memory: 4 GB
VGA: Quadro 140 NV M
Disk: 250 GB (20 GB used for Linux)
I use my laptop for working also to play game and web development with PHP
Here some of application that I use on my laptop:- iTunes
- Some Thinkpad Goodies( Active Protection System, Ultranav Utility, On Screen Display)
- Ultra ISO
- Winrar
- MySQL Server 5.1
- MySQL Tools for 5.0
- Google Chrome
- Firefox (My Primary Browser)
- Free Download Manager
- Launchy
- Cisco VPN Client (ver. 5.0.04) to Connect to my workplace
- Songbird
- VMWare Workstation (There is problem with NAT mode)
- Putty ( to do some thingy at Linux Server)
- Tom Clancy's HAWX
I also use Eclipse for PHP development. For the PHP it seems there are problem with version 5.29-1 because php cannot parse the location of extension_dir, I already set the extension directory on php.ini file but still not working, after I revert to PHP version 5.28 it just work. Oh yeah for web server I use IIS7.5 (which came with windows 7).

There are few applications that still I’m not try yet on Windows 7 such as nmap, Process explorer and Process Monitor.
For drivers I use driver for vista. After all Windows 7 only an upgrade from Windows Vista (that’s why the version number is 6.1).
And for the gaming part, it very….very…very… good.
The bottom line is, if you willing to take some risk throw your vista then replace it with Windows 7.. Can’t wait until the final version release.

Here some picture of from Windows 7 on my laptop

Wednesday, September 03, 2008

And the winner is Chrome, the browser from google

Today I just download Chrome which a new browser from Google, so I perform Java Script benchmark for each browser that installed on my laptop, from the result looks like the browser from Google is the winner , I not try safari yet, because it’s not installed on my laptop

Thursday, July 17, 2008

Mount USB Disk at Ubuntu Server

Ubuntu server not automatically mount USB disk like the behavior at Ubuntu desktop. So here the step to mount USB Disk at Ubuntu server
1. Plug you USB disk
2. type "tail /var/log/messages"
- This will show how Ubuntu server recognize the USB Disk
3. Mount the disk..

Friday, March 14, 2008

Python script from my prevois entry

Like I say I will post my python script from my previous entry, Because I'm very2 new to pyhton (1 week to be precise) so if there's something wrong with this I'm sorry, but this code work fine for me. you can see the code here it's a google doc document. Because when I try to put on this blog, it a mess...

Publish NTBackup log to Internal Web server

Creating a web based backup log for your NTBackup

NTBackup is a backup tools from microsoft, it's usually already installed on your windows
machine. After the backup finish NTBackup create a backupog, but the sucks thing is, that
we can not change the directory where NTBackup log reside. The backup log locate at
"C:\Documents and Settings\%USER%\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data"

At my office we use NTBackup to perform the system state backup, and the backup result need to be checked every morning.
Because the NTBackup run with administrator priveledges, So i need to create a way so other people can review the backup
file without login to that server. And the answer is to publish the backuplog to our internal web server.

To do that I use rsync to syncronize the backup log our Linux based web server. But there's a problem with the logfile,
after it was syncronized using rsync, the problem related with character encoding. If we open that backup log on firefox It will show funny characters (see image bellow)

To handle this problem I use python script to change the encoding.
This script also will run the rsync command and generate HTML file.
I will post this python script on my next blog.

To Configure rsync on windows see Brent Noris Homepage about installing rsync on windows
Here the part of my rsync configuration to point to the NTBackup Log directory
path = C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/Windows NT/NTBackup/data
read only = yes

After you finish configure the rsync on your windows machine, edit your crontab, then add the python script to your crontab entry.

Friday, January 25, 2008

Compatibility Problem between Citrix Memory Optimization and SAP GUI.

If you published your SAP GUI to the Citrix PS, than there is a chance you get an error message like this "CSapEditorCtrl::GetObject: Object x does not exist". This error caused by Incompatibility between the SAP GUI and Citrix Memory Optimization. To solve this error you must exclude the SAP GUI from Citrix Memory Optimization. To do that here the step
1. Deactivate Citrix Memory Optimization, to desctivate this feature, go to Citrix Management Console
Click Properties at your Farm Name, then Memory/CPU Utilization Management Disable the memory Optimization
2. Exclude the SAP GUI from Citrix Memory Optimization Process.
Open the register editor(regedit), see the "HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\SFO\ProcessExclusionList", for example if yours
SAP GUI Located at "C:\Program Files\SAP\Front End\SAPGui", than add entry for DWORD which contain "C:\Program Files\SAP\Front End\SAPGui\*.*". Set the Value data to 0.
After that run the ADSCleaner.exe, this tools will list and delete the data streams that created by Citrix Memory Optimization.
After that restart this server this step only to make sure the changes that we made on the ProcessExclusionList registry. Than Activate Again the Citrix Memory Optimization.