Filipino Programmer | Philippines

Just another Filipino Programmer’s blog by Nick Fernandez III, on web development using PHP in LAMP framework and random information about everything I would tought interesting on and off the IT world.

Random Bytes:
The world will end in five minutes. Please log out.

Archive for April, 2007


Static IP(Dedicated IP) Vs. Shared IP

I have accidentally encountered this two type of IP Address today while I am setting up a Hosting Server (Shared Hosting).  In the Web there are two basic IP types existing. This is a Static and Shared. Before I compare the two, let me first explain what an IP Address is. Well to explain it in lay man’s term an IP Address is like a phone number for computer. This a how other computers on the Web is identified. For further definition of IP Address please click here.

Now with that in mind people on Web ussually access a website using domain names, for example www.knicks49.com that domain name will be resolved in an ip address similar to this 66.249.89.104. So if you type in 66.249.89.104 directly into yhe address bar of your browser you will arrive at the home page. This is the basic idea of how ip address are used on Web. Now let me explain a different scenario. Some hosting server host multiple websites on a single server which we call Shared Server, this server uses a single ip to hosts multiple sites, basically when a request is received on a shared server the domain name is resolved into ip address, the server then realize that someone is looking for a domain hosted on the server and returns back the page to the person requesting it. You can always reach a site which has a static IP address by using its IP address alone, but you can’t reach a site using a shared IP address by typing in the IP address alone because when you type in a shared IP address you arrive at the server but the server doesn’t know which site you want because you haven’t told it which domain name you want.

Here are important reasons why do you need Static IP Address.

  • Websites using SSL Encryption
  • Websites offering anonymous FTP transfers.
  • Websites without Domain Names

SSL Encryption, requires a site to have a unique ip address to process encryption process. Anoymous FTP transfers (basically where anyone can download files off the site)  also requires a unique IP Address. And lastly when websites does not want to buy a domain name and is hosting their website on a shared server, must have a static ip address to view their websites. Other that these 3 reasons there is no need for a site to have its own IP address.

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

CFMX7 and Apache Server Problem

Below are errors and solutions on the problems I have encountered today. I am deploying a Coldfusion MX application which uses Apache as the web server and MySQL as the database server. First I will list down an important setup steps to follow when installing Coldfusion MX to use Apache as the Web Server.

I will explain the Web Server Selection of the setup process.

Web Server Selection

You’ll notice that there are no Web Servers/Sites listed here, but don’t worry — this is OK. We have to tell ColdFusion we want to use the Apache Web server. To do this, click the Add button.

Web Server Configuration

 Make sure you select Apache as your Web Server and, if you left the defaults for your Apache installation, you can use “C:\Program Files\Apache Group\Apache2\conf” for the Configuration Directory and “C:\Program Files\Apache Group\Apache2\bin\Apache.exe” as the Directory and file name of server binary.

When you’re done, click the OK button. You screen should now look like this:

Web Server Selected

Once you’ve made your selection, click the Next button to continue the process. A few more selections will be presented but the next screens are self explanatory.

Below are errors and solutions I have encountered

When running htt�://localhost/CFIDE/administrator/index.cfm and encounters this error:
Failure Description: Your browser prompts you to save the .cfm file to your computer.
Resolution: First restart Apache service. If failure still exists, check Apache’s httpd.conf file to make sure Coldfusion module is being loaded, to locate the Coldfusion module entry find this string:

LoadModule jrun_module "C:/CFusionMX7/runtime/lib/wsconfig/1/mod_jrun20.so"

also check is the DirectoryIndex has “index.cfm� added on the lists, if not add it. After that just restart the Apache Server.

To connect to a MySQL 4.1 or 5 database from ColdFusion MX:

Download a current, stable version of the MySQL Connector J JDBC driver, available at: http://dev.mysql.com/downloads/
Note: Connector/J version 3.1.11 and higher cannot be used with ColdFusion MX 7 because of MySQL bug 13469. Connector/J 3.1.10 should be used instead for ColdFusion MX 7 until this MySQL bug is fixed. All Connector/J version 3.0 releases and all version 3.2 releases work with ColdFusion MX 7.

  1. Extract the mysql-connector-java-3.{n}-bin.jar file from the downloaded archive file.
  2. Save the mysql-connector-java-3.{n}-bin.jar file in the cf_root/WEB-INF/lib directory.
  3. Restart the ColdFusion MX server.
  4. Add a new data source to the ColdFusion MX Administrator, using the driver option Other.
  5. Enter the JDBC URL:
    jdbc:mysql://[host]:[port]/[database]
  6. Enter the Driver Class:
    com.mysql.jdbc.Driver
  7. Complete username/password, and adjust other data source settings, if needed.
  8. Submit the data source for verification.

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

ARC Application

Today I applied my Alien Record Cetificate (ARC) . It was 9AM when I left my apartment, I rode a bus going to the city hall. It took me around 30 minutes to apply for the certificate. I need to come back again next month for the release of the card and I was just given a piece of paper notifying me when to get the card. After that I took a train bound for Kichijouji (�祥寺) and from there I transfer to another train bound to Kugayama (久我山).

Here are some information on how to apply for and ARC:

(more…)

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

Kugayama

I wake up at 7AM, weather is cold. This is my first morning at Japan, take a bath and dressed up, I will be going for the first time at the office in Kugayama. It only takes around 30 minutes to go to the office, ride a bus (200円)  and train (130円).  This day was my orientation, It took almost all of the day for the orientation. I went back home 7PM, Jeda which is a Filipino co-worker she gave me a little tour of the places I can buy food and other comodities I need, first stop supermarket the next one is the nearest conviniece store which is by the way close to a local Japanese Temple, and we ate dinner at a local ramen store, I went crazy when I saw my order a very big bowl of ramen, OMG! After the ramen adventure we went back home, and so my 2nd day was over.

What are useful information I have learned?

Japan trains are very convinient, compared to the Philippines, train tickets are small and disposable magnetic tickets. Buying tickets is managed by a automated system, insert the coins or I guess a paper money. Next is you need to press the amount of the ticket you want to buy, so far the amount I inserted is exactly 130円, two amounts appeared on the buttons 120円 and 130円. So it means the machine will determine all available ticket prices depending on the amount you inserted.

When eating using a chopstick do not put the chopstick in a vertical position, that is a bad sign for Japanese people it means death.

When entering restaurants, most of the stores you need to wait on the waiting area and wait for the server to come and assist you for a table. A electronic device found on every table is pressed if you are ready to order, some small stores has electronic device where in you pay first for your order and a small piece of paper will be your reciept, after that you will be served.

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

Welcome JAPAN!

It’s 3AM, I’m ready to go to Manila for my flight. I came in Ninoy Aquino International Airport at around 6:30AM, ate my breakfast and went inside the airport at 7AM. I had no trouble checking in my lagguages, going to Immigration booth. I left Philippines at around 9:20AM boarding JAL, bound for Narita Airport at 2:25PM. The flight was wonderful, it was very comfortable, most of the time I was sleeping. I arrived at Narita Airport around 2:10PM 15 minutes early. Weather in Japan is cloudy and still cold, I meet Jay one of the employees of my company here, and went at the apartment by riding a bus going to Shinjuku station and taxi to the apartment. After that he gave me a short tour of the neighborhood and we ate dinner at Jonathan’s. Went I went back home, I rained, glad I was able get home before the rain falls. I met my roommate Max and another engineer Nedy which is leaving just two rooms away from our apartment.

What are useful information I have learned?

Taxi’s in Japan are very different from Philippines. In Japan you do not have to open the door since will open the door for you automatically. Taxi’s are equipped with a GPS system, which enables the driver to go anywhere in the vicinity just by entering the destination’s address.

When riding a bus with lagguages, lagguages are tagged and you will receive a small identification tag for you to claim when exiting the bus. One Man Bus are another type of local bus in Japan this bus has two doors, the front door which is close to the driver is the entrance and exit is at the middle door of the bus. Methods of payment is from entrance you can put exact amount of coins or a magnetic card loaded with e-money.

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati


Filipino Programmer | Philippines
The views expressed here reflect the views of the author alone.
HOME SUBSCRIBE WORK EXPERIENCE ABOUT ME



Filipino Programmer | Philippines © 2007 All Rights Reserved. Using WordPress Engine
Entries (RSS) and Comments (RSS).

Creative Commons License