Windows XP in VMware on Windows 7, localhost and base url of CodeIgniter

Well I had a aha moment today, so I thought I should share this. I know that the title is a bit confusing.

There are times still I have to use Windows. And there are times when you have to develop for IE7. My set up for this is using IE 7 on Windows XP which is installed in VMware running on Windows 7. Well I could do it on Ubuntu as well. And I use XAMPP on Windows 7 for development.

Use IPv4 Address value

I had a hard time to display localhost on IE 7. When I use http://localhost/mywebsite, it works fine in my browsers on Windows 7, but it did not display in browsers in Windows XP. In a short answer, use http://192.168.1.2/. If this does not work for you, read on.

On Windows 7, go to Control panes > Network and Internet > Networking and Sharing center, then click your wireless connection or if you are using cable, then cable connection. Please note that it is not a VMware Adapters. When you open the Wireless Network Connection status, click Details. Find the vaule for IPv4 Address. For me it is 192.168.1.2. Use this in a browser in VMware to display a localhost from Windows 7.

Using CodeIgniter?

If you are using CodeIgniter, then you need to do one more step. Open your system>application>config>config.php and add the following to your base_url.

$config['base_url']	= "http://192.168.1.2/mywebsite/";

Without this line, all the internal links, images, CSS and scripts are broken. Adding this will fix the problems.

First look at 1140CSSGrid

I just got an email newsletter from sitepoint and read about 1140CSS Grid.

Sitepoint created a demo and I also played around and uploaded a demo here.

CSS is very simple and Sitepoint claims 960Grid has got to go.

What do you think?

Book Review “CMS Design Using PHP and jQuery”

The Packt Publishing contacted me and asked if I am interested in writing a review about this book. I said yes and got a e-book straight away. I have read 50% of this book and checked codes. Today I’d like to write some reviews about what I read so far.

This is not a paid work and I will be honest.

The book starts from the most important part of CMS about user management.
Then it goes to core of CMS, pages and templates. Using jQuery and plug-ins for this CMS.

I think the appropriate audience of this book should have some experiences with PHP and jQuery. If you have your own CMS, then the book will give you different approaches and skills.
If you don’t know php or jQuery, then you should read those books first.

Continue reading Book Review “CMS Design Using PHP and jQuery”

Xdebug resources for your web development

You can google how to set up Xdebug on your development environment.

Since I am using Ubuntu, this post was short and easy.

Xdebug docementation is filled with sample codes.

Zend Developer Zone has a series of articles about xdebug.

In order to see beatified code, you must turn on the html_errors in php.ini. If you have it on or not, just outputs your phpinfo with the following.

<?php phpinfo(); ?>

And check html_errors. If it is off, then open your php.ini. For Ubuntu user,

sudo gedit /etc/php5/apache2/php.ini

Then change the following.

html_errors = On

I have the followings for xdebug in php.ini as well.

zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.profiler_enable = 1
xdebug.trace_output_dir = /tmp
xdebug.idekey="netbeans-xdebug"
xdebug.show_local_vars=On

xdebug.collect_params=4
xdebug.dump.GET=*
xdebug.dump.POST=*
xdebug.dump.REQUEST=*
xdebug.dump.SERVER=HTTP_HOST, SERVER_NAME
xdebug.dump_globals=On

Don’t forget to restart your server.

sudo /etc/init.d/apache2 restart

Free Add-ons for PyroCMS

I have created two free add-ons for PyroCMS and they are avaiable from PyroCMS website Download page. The first one is Todo-Manager and the second one is Calendar.
You just need to unzip and place them under pyrocms/addons/modules/ directory, then login, go to Add-ons, click install buttons. Todo manager will be installed under Utilities and Calendar will be under Content.

 

Download Files: Calendar

Download Files: To Do Manager

 

Continue reading Free Add-ons for PyroCMS

How to use ExpressionEngine ImageSizer on EE 2.1.1

I was reading this article called “Using a Plethora of Plugins to Make Content Management Easier” This tutorials are excellent for a EE beginner like me. I found a problem with using ImageSizer in this tutorial and this is how I solved it.

Continue reading How to use ExpressionEngine ImageSizer on EE 2.1.1

How to add Course and Booking module to Kaimonokago CMS

Kaimonokago is a simple shopping cart which has all the basic CMS functions. In this I am going to write how to add this module to Kaimonokago CMS.

Continue reading How to add Course and Booking module to Kaimonokago CMS

How to install Portfolio CMS, Ninjin

This is a quick note for those who are new to CodeIgniter.
1. Download a zip file.
2. Unzip and move/upload to your server.
3. Create your database and import ci_aurelius.sql which is in the unzipped folder.
4. Open system/application/config/config.php and modify the following to suit with yours.

$config['base_url']	= "http://localhost/ci_aurelius/";

5. Open system/application/config/database.php and modify the following to suit with yours.

$db['default']['hostname'] = "your host name";

$db['default']['username'] = "your user name for database";

$db['default']['password'] = "your password here";

$db['default']['database'] = "your database name";

Course Schedule and Booking System on CodeIgniter

I have created a course schedule and booking system on CodeIgniter. Features are the followings.

  • Admin featuers
    1. CRUD weeks
    2. CRUD date
    3. CRUD trainers/teachers
    4. Sorting by type whose names are given by colors
    5. CRUD bookings
    6. Booking details by course
    7. Youtube url input to show video
  • Front-end features
    1. Student/customer login
    2. Modal for course details and video
    3. Individual Booking display
    4. Total booking number display
    5. Booking control

You can play around with the demo. The demo will be reset every thirty minutes.

 

Back-end Demo

Front-end Demo

Download page

 

Login details

admin: admin(at)gmail.com and pw: admin007

email 1: cus7(at)gmail.com and pw: anneanne

email 2: cus2(at)gmail.com and pw: tonjetonje

Daikon2, Simple Project Manager with Customer Support

Daikon was created a while ago as a simple customer support time tracking application. Daikon2 evolved to a project manager which you can add your logs, specs and file links. And it has some Ajax function as well.

You can play around with the demo. The demo will be reset every thirty minutes.

 

Demo

Login details

email 1: cus7(a)gmail.com and pw: anneanne

email 2: cus2(a)gmail.com and pw: tonjetonje

Download page

Page 2 of 1512345...10...Last »