Home » Archive

Articles in the Software Category

Latest News, Linux, PHP, Software, featured »

[21 Aug 2009 | Comments | 330 views]
Moving Magento site from development server to live server

Recently I faced problem to move magento site from local (LAMP) environment to web server. I am posting steps to upload site on server.

1. Make tar / zip of code.

$ tar -cvvf site.tar /opt/lampp/magento/

2. Take backup of database through phpmyadmin. Check “Disable foreign key checks” to avoid error in restore process.

PHP, Software »

[20 Aug 2009 | Comments | 24 views]

Regular expressions are a very useful tool for developers. They allow to find, identify or replace text, words or any kind of characters. In this article, I have compiled 15+ extremely useful regular expressions that any web developer should have in his toolkit.

PHP, Software, featured »

[20 Aug 2009 | Comments | 114 views]
Path variables in PHP

Many of you develop php applications for multiple server environment. Webserver environment may be different, have different directory structure, so you have to use paths very carefully. For example in file upload script, you manually write absolute path of image directory, the application may not work on other server. To avoid this you should use inbuilt php path variables. I am posting summary of all php related path variables.

Headline, Linux, Software »

[3 Aug 2009 | Comments | 773 views]
Installing a minimal Debian system

I am making this post for users with limited computer resources/old machines. Users with newer and faster machines may also try this if they want their completely customized operating system.
I must also clarify that I personally don’t like bloatwares like Windows Vista etc.
Take my example, when I first installed Ubuntu on my desktop, I had a complete GNOME desktop with many applications pre-installed which I had no use for! So, I started uninstalling that bloat from my system to make my OS slim so that it can run properly on …

Latest News, Linux, Symbian, featured »

[27 Jul 2009 | Comments | 131 views]
Make free internet calls (Google, skype, MSN, SIP, WeFi) from your mobile

Symbian Smart Phones are very popular these days. A lot of hot applications are in market for symbian platform. Thanks to Nokia for creating this platform. Now I am going to tell you about a very useful application of smart phone, If you are a freelancer (like me), CEO and other marketing executive, have to remain online all the time for customer inquiries, then I am sure you will like this application.
Go to http://www.fring.com/ download in install application in your phone. Run this application. It will ask you for …

Linux, Symbian, featured »

[27 Jul 2009 | Comments | 26 views]
Manage linux server from your SmartPhone

Today I am going to write something very interesting, Suppose you are enjoying holiday and suddenly one of your visitor call you and inform you that your Database Server is not responding.. You are in hill area and do not have have any cyber cafe around.. hmm?
I tell you the gr88 solution. Download Putty for your smart phone (I have Nokia 5800) and install. Through this application you can execute linux command from your phone console to your server. To use this with your server you must have Static IP …

Python, Symbian »

[22 Jul 2009 | Comments | 105 views]

Hi, yesterday I was browsing around application for My Nokia 5600 ExpresMusic phone. I found some cool applications written in python. I have to install python runtime to run these application.
Thee is no stable version released for s60 v5 Symbian edition, but there is a test release available. you can download it from here .
After installation Python I installed XpressAlarm but nither Xpress Alarm or Python console was starting. I searched enough but did not found anything. Finally I give up.
Today morning I updated my mobile firmware to 21.0.025. and …

Windows, featured »

[20 Jul 2009 | Comments | 12 views]

A proof-of-concept security exploit in Microsoft?s Windows 7 operating system has been released by Indian security researchers. The exploit has been named as VBootKit . The researchers had earlier promised that they would not make the exploit code public for fear of misuse. VBootKit 2.0 was coded by researchers Nitin Kumar and Vipin Kumar; and the code is now available as open source for anyone who is interested to see how it works. The researchers released the proof-of-concep
Read Full Story

Linux, PHP »

[7 Jul 2009 | Comments | 48 views]

Recently I faced a big problem with large file uploads. One of my client has a Centos5  dedicated server. I created a script for Video upload and conversion. I also added a progress bar to show file upload progress. This progress bar has limit of 100MB because of flash limitation. Everything was working fine for files less than 50MB, but as size grows the upload hangs on 20 – 30%.. I did every thing in php.ini and apache.conf but nothing helped. I wrote to server admin at least 50 times …

Latest News, Windows »

[25 May 2009 | Comments | 2 views]
Windows7 Release Candidate

Windows has launched Windows 7 Release Candidate.  According to windows team, the have fixed 100s of issue in windows. They claim that this version has  many exctiting features. Let’s see this version breaks record as WinXP or not after Microsoft biggest flop Vista. You can download and check Release Candidate from Here.

Javascript, Linux, PHP »

[25 May 2009 | Comments | 15 views]
jQuery and Me…

I use mootools for all JS related tasks. Mootools is good library but has very limited support and few plugin available on net (most of you are not agree of this but it’s my openion based on 2 year exp with mootools) .
So I decided to move on to another framework. There is many JS toolkits available.
Dojo
jQuery
Prototype
YUI
etc.. much much more
But these are key players. I selected jQuery among these frameworks.. Why? because It has gr8 support good community and top of all, has rich plug-in directory.
To go through jQuery I …

Cakephp, Linux, PHP »

[25 May 2009 | Comments | 52 views]

Hi friends,
2 days ago I got a project in which I have to upload avi, mpeg or 3gp movie clip and convert this clip to flv as well generate thumbnail for this video. I know that this can be done through ffmpeg. But I didn,t know how haha..
Well I searched enough and start making environment for development. I did following mistakes.. I am listing those  mistakes. I am 100% sure it will save your day.
I was using Windows environment: FFmpeg is primarily made for Linux environment not for windows. Some …

Javascript »

[26 Feb 2009 | Comments | 2 views]

Yesterday I got stuck into a serious issue! I generally use Firefox (with my favorite firebug & webdeveloper toolbar) for development. I developed a small game in which I was using JSON to get data from server and mootools js library for Ajax. The system was working well on Firefox but got stuck on IE7. Even after wasting 2 hours I got nothing. The bad thing about IE is, that it doesn’t have support for developers. I also searched IE official add on site but nothing found.
Finally I found a …

Linux, PHP »

[16 Jan 2009 | Comments | 5 views]

Recently I came across following when deploying webapplication on Linux serevr…
SoftException in Application.cpp:303: UID of script “/home/xyz/public_html/en/pupgrade.php” is smaller than min_uid
The problem was file owner and group as root (I was uploading file through root account)
Solution: change file owner and group to webhoting user..  generally it is your user name..
/home/[user]/public_html/en/pupgrade.php
The linux command for this task is
$ chown -R username:usergroup directory
enjoy

Cakephp, Controller, PHP »

[19 Jul 2007 | Comments | 3 views]

Now let’s move further. the next part is controller. Controller has logics (some times reffered Business logic in Java). In controller you can write any logical code, such as DB queries, calculations and every thing which you can do in PHP. But remember to use cake functions to ‘Make Life Simpler’. The controller should be in app/controllers directory.
You should name controller carefully. The name of controller should be ****_controller.php (replace ****) with your controller name. You should take care about controller name because when you run any page (code) of …