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:
It is not destiny that determines love, it is choice. Our so-called destiny is a lie. Relationships last long not because they're destined to last long. Relationships last long because two brave people made a choice - to keep it, to fight for it, and to work for it. Meanwhile, other relationships fail not because they're destined to fail. They failed because one of the two, or both, made the choice - to set each other free.

Archive for the ‘Programming’


Web 2.0 Starting To Take Its Shape Today

Web 2.0 a phrase coined by O’Reilly Media in 2003, refers to a perceived second generation of Web-based communities and hosted services facilitate collaboration and sharing between users. Basically the term suggest a new version of Web, which does not refer to an update to World Wide Web technical specifications, but to changes in the ways systems developers have used the web platform.

Web 2.0 trends has begun, this will in the future be integrated on every web application out there, since my post about Google Gears release up to the buzz about Microsoft Surface. I believe that a brand new ways of changes will soon be implemented on how we are using the Web today. Here I will lists some exciting Web 2.0 related functionality and services being put into the Web 2.0 puzzle.

Adobe’s Apollo Platform
- enables developers to create applications that combine the benefits of web applications – network and user connectivity, rich media content, ease of development, and broad reach – with the strengths of desktop applications – application interactions, local resource access, personal settings, powerful functionality, and rich interactive experiences.

Firefox 3
- Mozilla.org is taking an even broader approach, building offline caching into Firefox 3, due out in beta this summer of 2007.

Google Gears
- an open source browser extension that enables web applications to provide offline functionality.

Google Maps
- Google Maps recently introduced during the Where 2.0 Conference a new way of looking at map applications the Street View (click here to view a video demo) which lets you actually see a 360 degree vision of the street you are viewing.

Google Image Search
- Google’s recent acquisition of Neven Vision
had given the search engine giant recent upgrades on their image search engine by adding restrictions of search such as face image search.

Scrybe Beta
- a Web app with calendaring and other features that will continue to function even when you activate your browser’s “work offline” mode.

Zimbra Collaboration Suite
- it can cache your e-mail and calendar data, and supports AJAX based web collaboration technology.

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

Ruby on Rails - The Language

Now that everything is installed and we can view the “Congratulations, you’re on Rails!” screen. The next step is the language itself, we will create a simple application. To start, we’ll make a simple “Hello Worldâ€? type example. For this demonstration, we won’t even use the database. Rails is a MVC (Model View Controller) framework, which means that all the output will happen in the controllers and the views. So the first thing we’ll need is a controller. Run this from your rails project directory to generate one:

./script/generate controller hello index

This will generate all the files necessary for our example. Try browsing to http://rails/hello. And you should see something like:

Hello#index
Find me in app/views/hello/index.rhtml

Now (just like it tells you) open app/views/hello/index.rhtml. This is the View. It contains the text that will be shown at http://rails/hello or http://rails/hello/index. Change it however you want. Or leave it alone. So it should be getting clearer now that URLs in Rails usually follow the format:

hostname/controller/view

Now take a look at app/controllers/hello_controller.rb. This is the Controller. It contains program logic that builds the data for the view. Notice the index function. Any public methods on a controller become actions in Rails.

Try adding the following method just before “end� :

def world
  @greeting = "hello world!"
end

Now browse to: http://rails/hello/world

Template is missing
Missing template script/../config/../app/views/hello/world.rhtml

We have a problem. The template is missing. “Template� is a rails word for “View�. And it even tells us the path where it was expecting the template. This path has a lot of ..’s in it, but regardless you can probably see where it’s going. So let’s edit app/views/hello/world.rhtml and add the following text:

<%= @greeting %>

Now refresh that last page. And you will see our “hello world!” text. Notice how the controller created a variable @greeting that carried over into the view. All the instance variables (ones that start with @) from the controller get pulled into the view.

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

Coldfusion 8 aka Scorpio

Adobe® ColdFusion® 8 is the highly-anticipated upcoming major release of ColdFusion. The public beta release provides developers with the opportunity to begin building applications with new ColdFusion 8 features as well as test their existing applications on the new version.

Here are just a few of the key features that you’ll discover in the public beta:

  • Server monitoring to help identify server bottlenecks, allowing for tuning and improved performance.
  • Step through code debugging in a new Eclipse plug-in debugger.
  • Adobe Flexâ„¢ and Ajax features that let ColdFusion power personalized, multimedia-rich applications to enhance users’ experiences on the web.
  • High-quality, dynamically created on-demand multimedia presentations.
  • PDF document and form integration for a printable, portable way to intelligently capture and share information.
  • Image creation and manipulation with more than 50 new CFML tags and functions.
  • Native support for .NET objects to easily integrate ColdFusion applications with enterprise data and infrastructure services.
  • Significant application runtime and server performance improvements.

Get the beta copy here or share and discuss anything at coldfusion 8 labs forum

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

Ruby on Rails in Action

In this section I will explain a quick walkthrough on setting up RoR on On my first post I have mentioned that Ruby on Rails are separate packages combined to work as one, that is why there are two basic packages we need to install.

1. Installing Ruby
Download the Ruby one-click installer. After downloading install the package. Follow the instructions accordingly.

2. Update the Gem Package
Open a new session of command prompt (Start > Run > type in: cmd) and locate the ruby bin directory which by default “C:\ruby\bin”. After that we need to update the gem package by typing:

C:\rubyinstalldirectory\bin> gem update

The gem package will be updating, just wait. If you are prompted with a screen like this:

C:\ruby\bin>gem update
Updating installed gems...
Bulk updating Gem source index for: gems.rubyforge.org
Attempting remote update of fxruby
Select which gem to install for your platform (i386-mswin32)
 1. fxruby 1.6.11 (ruby)
 2. fxruby 1.6.11 (mswin32)
 3. fxruby 1.6.10 (mswin32)
 4. fxruby 1.6.10 (ruby)
 5. Skip this gem
 6. Cancel installation
> 2
Successfully installed fxruby-1.6.11-mswin32
Installing ri documentation for fxruby-1.6.11-mswin32…
…
…

Select the appropriate action, I selected the number 2 option. This may take a while so be patient. Other options will also be displayed which requires you to choose, just choose the latest version for mswin32 platform.
(more…)

Bookmark This!

del.icio.us Digg Google StumbleUpon Technorati

Web Development That Doesn’t Hurt - Ruby on Rails

Ruby on Rails Logo
Ruby on Rails (RoR) is in an open source web development framework that is optimized for programmer specifically for rapid development, fast paced productivity and easy code implementation. RoR is a language, and its English. What do I mean by that is it’s basically a plain English programming language. And it is one of a kind. I had the time to study and play around with RoR during my waiting period here in Japan. And I am very impressed on how quick I was able to create a simple web application in just a few hours, and programming terms are very easy to memorize. Basically RoR came from two separate projects, Ruby and the Rails framework, thus became Ruby on Rails. It is quite amazing because, Ruby was first conceptualized on Japan. Which is freaky, Japan is not known for its software, and since programming languages are largely written in English, who would suspect a language by this king would come from Japan. And yet, we have Ruby on Rails. Against the odds, Yukihiro “Matz” Matsumoto, a Japanese Computer Scientist and Software Programmer. He started working on Ruby on February 24, 1993 and released it to the public on 1995. “Ruby” was coined after a colleague’s birthstone, which later he realized that Ruby comes after Pearl in several situations, in birthstones Pearl is June, Ruby is July and when measuring font sizes, pearl is 5pt, ruby is 5.5pt. He then thought Ruby was a good name for programming language newer (and hopefully better) than Perl.
(more…)

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