Make sure you read this before choosing which web hosts you’re going to host your websites with. The following web hosting providers are all offering unlimited domains, disk space plus bandwidth, cheap setup costs and even money back guarantee!
CakePHP Tutorial: htaccess Redirect 301 Rules Tips
So it happens I have a website which was started as a wordpress blog but was later developed into a cakephp site.
http://www.xyzabc.com/ – inititally a wordpress blog, now a cakephp app
http://www.xyzabc.com/blog/ – becomes the new wordpress blog’s address
The challenge
How do I redirect visitors who arrive on the site through bookmarks or not-yet-updated search engine indexes so that they can land on the new wordpress blog address?
Personal Reminder: What Is Business + What To Make
I’ve been doing a bit of business + development reading from other people’s blog who are in the software + business sides of things for quite a while. One of my favourite blogs has to be Paul Graham’s blog and especially this post titled: Why Smart People Have Bad Ideas.
Netbeans IDE 6.9.1 Released
NetBeans IDE 6.9.1 is a minor update to NetBeans IDE 6.9 and includes the following changes:
- Availability of the latest IDE bundled with JavaFX SDK 1.3.1
- Improvements to the JavaFX debugger
- Important usability issues fixed in the JavaFX Composer and Editor
- Critical bug fixes made to other modules since the 6.9 final release
WordPress Database Tables Schema Description
If you’re developing a wordpress plugin or wordpress theme, chances are you might want to refer to wordpress database schema in order to understand how wordpress hooks and functions interacts with the database.
Useful Linux Commands For Web Hosting Migration
Changing web hosts can be a daunting task since it involves moving your files and databases.
Even though most web host will do a cpanel backup for you (provided that you are hosting on linux and running cpanel) so you can deploy the whole cpanel backup in your new webhost and restore everything, there are occassions where you might like to take things into your own hands and do a manual file + database transfer. If so, here are some useful commands to help you.
CakePHP Tutorial: How To Insert Records Into Table With Unique Index Made Up of 2 Or More Fields
OK, I know the title of this post is a bit long, but it does put it clearly what I had been trying to achieve using CakePHP.
Let’s say you have a Product model with unique index Field1Field2 made up of 2 fields (field1 and field2) and each time you insert a new record into Product, you want to make sure that only the unique combination of field1 and field2 is saved. How would you do that?
[Read more…]
Web Hosting Reviews: Hostgator
I’ve recently migrated web host to Hostgator and have to say that’s it’s much more stable and reliable then my previous host.
Previously, I had my web hosting account with Anhosting/Midphase who had served this blog happily for the last 2 years. But strange things started happening mid June when my account was migrated to a new server and Tech Support kept suspending my account quoting that my wordpress blog was using too much CPU resources.
index.php and wp-cron.php were showing up in their logs but doesn’t make much sense even though I tried disabling a few wordpress plugins but still came up short. Their suggestions were to get into a VPS hosting or a dedicated web hosting to solve my problem. Having used shared web hosting for all through these years, I wasn’t even considering getting a VPS/dedicated hosting as that would be overkill IMHO.
[Read more…]
CakePHP 1.3: VALID_NOT_EMPTY Deprecated
Upgrading a CakePHP app and found that the VALID_NOT_EMPTY rule is now deprecated in 1.3. Use notEmpty instead.
MySQL Workbench: Database Modelling + Synchronize Model
Previously when MySQL Workbench was not around, here’s how most newbie would approach designing their db schema.
- Type all the necessary command in mysql command prompt
- Or if you’re a bit more advance, you would use phpmyadmin to design
- Draw EER/ERD diagrams on paper or in dumb software (software which just show graphics and know nothing about how to connect to your db server to CRUD any data).