Nov 19, 2011

PHP Login Script



I would like to share my login script for a web based application that i code in PHP.  For this script, I'm using session which is then stored in MySQL.  This is just a simple script that I made to help one of my friends for his PHP learning process.

For this script, I doubt on the security on login process. I'm no expert in this field.  Any suggestion are much appreciated as I'm still learning my way to be a better and DRY programmer.  Thou this script does have repetition on certain things especially IP variables which already declare on Login class constructor, still I declare it on every page to check session authentication.

Nov 11, 2011

Ubuntu : Apache, PHP & Oracle with oci8 enable Installation



It's been a while since I need to program PHP with connection to an Oracle database.  Usually, I would prefer to design my system to use MySQL or postgreSQL to link up with PHP as a database.  But I cannot exclude myself to have to code a PHP system which need to connect to an Oracle DB by a client specific request.

So, as I'm lurking around the Google street to have a good and working guide on how to setup PHP to be able to connect to Oracle - I did found out that there are not many tutorial available on blogs and forums on a working step-by-step Apache, PHP and Oracle installation guide with an oci8 extension enable.

Nov 8, 2011

Ubuntu : Extend Battery Life



As lots of users nowadays are using linux on portable machine such as netbooks and notebooks, there are concerns on Ubuntu users on how they could maximize their battery life as they try to work with their machines as long as possible.

Today, Linux has evolved to suit more user needs such as user-friendly interface, more complicated application for scientific used and also lots of day-to-day applications for home use.  Linux not a geek operating system anymore as beginner user can easily change from typical windows operating to linux (any distribution) without any hitch.

Sep 25, 2011

Ubuntu : Unity VS Gnome 3



After a few weeks on an early released of Ubuntu Oneiric 11.10. I know there are a lot of Ubuntu lovers and fans are currently have a pair of itchy hands to try and have a personal experiences on the new version of Ubuntu which brings a lot of improvements on a lot of complains filed from previous version which is Natty Narthwal.

I have been a few of thousands or maybe millions of Ubuntu users who can't wait for the official release of Oneiric gave a development version of Oneiric a run on my laptop. So far, I can rate Oneiric is good-to-go for a testing machine but not for a daily used machine (but who knows if you will gamble your lifetime works with the early testing development version of Oneiric). 

Sep 14, 2011

Ubuntu : Set Gnome 3 as Default in Oneiric Alpha 3



This post should be a short post on how to change the default windows manager on the new but not yet official Ubuntu 11.10 Oneiric Ocelot. So far, Oneiric Alpha 3 has just been released a few weeks ago. Thus this released is not yet stable, but some hardcore users might be interested to be the early birds to try and have a peek on the new Ubuntu.

As far as we all already knew, Oneiric will be shipped with capabilities to run Gnome 3 along side with Unity which we might be missing on 11.04 Natty. So most of the anti-unity windows manager will be jumping and singing with joy once the developer team announced that the new version of Ubuntu will be able to run Gnome 3 which so far has been highly rated by most who have tried the gnome-shell.

Sep 11, 2011

Ubuntu : Disable 'Universal Access Settings' Panel Icon



It seem like by default Gnome 3 will display the Universal Access Settings icon on the top panel just in case user is having any disabilities. This is a good decision since now all can install and use linux once they have it installed on their machine without the need to call somebody else just to enable the accessibility functions.

But for me, the icon on top panel of Gnome 3 is just a waste since I do not need it on the first place. So I need to remove it badly and luckily I manage to find a way to disable the icon from appearing on panel.

Ubuntu : Solving Alt+F2 Problem on Gnome 3



After a distribution upgrade from Natty 11.04 to Oneiric 11.10(currently on development branch), the first things I do is to install the gnome-shell which is being the best fix from 11.04 version. Yes! It is a Gnome 3 shell which able to work side by side with Unity(the default desktop for Ubuntu).

The most important, bad and pain in the ass things i found out that Gnome 3 on Ubuntu 11.10 not working is the Run Shorcut Keyboard Key. By default, the Alt+F2 will bring this run window up, but somehow in 11.10, it did not do anything.

Aug 15, 2011

Ubuntu 11.04 T-Shirt For Sale



Have a look at new Ubuntu Natty T-shirt. The tee is using 100% cotton material. The t-shirt is a roundneck tee with printed design of Ubuntu 11.04 Natty. The picture attached is the promo banner of the t-shirt. To those who interested to buy the t-shirt can do so by emailing to this email address. The printed materials is rubber. Any inquiry, please email to the email address given. Thanks

Flyers

To order, please include in your email to this address with subject 'Natty Narwhal Tee Order' with the color of your choice (Dark Gray / White) and I'll send the account number for payment through email. Thank you.

Aug 4, 2011

A sketch of Blog Post Design



I've been doing some designing for a small project for my friends for his personal used. Basically it's the design for his blog. Specifically - the design will be focus on the post body itself. He was specifically asking for a clean and easy to read type of design. So here is a peek of the design that I've been working on. Not yet being translate in css, but so far so good. I'm going to finalize this design in a few more hours.

Aug 1, 2011

MVC 3 : Create A Simple Blog Application Pt. 4



It has been a while since my last post on MVC 3. It was quite a hectic few weeks of my life, since there are a lot of task need to be submitted. Finally I manage to steal some time to finish up my tutorial on how to "Create A Simple Blog Application" by using MVC 3. Since my last tutorial, I did manage to write and guide Negative Zero readers until Post Section where the Part 3 tutorial did cover on making new post, list all post and setting ONLY admin can post new articles. For those who misses out three series of "Create A Simple Blog Application", below is the list of past tutorial:
  1. Part 1 : Cover on creating a new project on MVC 3
  2. Part 2 : Cover on creating models for our blog application using LightSpeed.
  3. Part 3 : Cover on creating new post, delete post, edit post and list post(for admin)
  4. Part 4 : Will be covering on displaying single post and comments. Also, will be covering on new comment controller.