Archive June 2010
Clean URLs by removing /index.php/ from urls in codeigniter
In codeigniter you can easily use very search engine friendly urls.
By default it is shown as
http://www.yoursite.com/index.php/controller_name/function/id
You can easily remove this disgusting index.php from your urls.
3 CommentsExecute shell command on server using php
Accessing shell command in server may not be available for you at all due to security reasons. But still you can access it using php since this will give you some extra features and time saving efforts. One of the example is to creating backup of your files. You might want to create backup of your files in gz format. But you may not have this feature in your cpanel or being banned by your hosting company. If you can make access to the shell of your server and execute tar command who can stop you from??!!
No CommentsBinary to decimal and decimal to binary conversion in C
This program will show you to convert a binary to decimal and vice versa.
This will take a character array input which is the binary value. Then it will convert the binary value to decimal and then convert it again from decimal to binary. Here is the code.
No CommentsBest web based file manager and zip upload extract and server to server transfer
Are you looking for a cool web based file manager? Are you tired of installing ftp client when ever you access server from a new pc. Looking for something that will allow you to upload a file to your server directly from another server without need to via of downloading to your local pc and uploading to server ?? This is all for you! I have got a very cool web based file manager with all these cool features.
I have just stumbled when I googled it out. It took a lots of hastles away from me. I think lots of people are looking for such a tool for long time. Hope peoples will find it useful too.
No CommentsCreate or extract tar files in ubuntu using terminal command
Ubuntu applications comes as tar packages, so if you want to create or extract tar files you should know the command of doing this
working with tar files in ubuntu
Create tar file
$ tar -cvf filename.tar filename1 Comment
3 important settings to make with custom php.ini
PHP.INI is the php configuration file that server uses. It makes lots of settings in an web server. It may include your site base directory, include path, temporary directory, timezone and lots of different php varaibles. Most of them are set by web hosts and you cannot make any change of them unless your are the host owner. But some setting you must make to let your site run smoothly and securely. So we must override some settings by putting an php.ini file. This will allow you to override some configurations of your host.
1 CommentShutdown computer using terminal in Ubuntu
If you want to shutdown your computer what do you do ? Simply go to shutdown button and click shutdown isn’t?
Have you ever wondered how would you shutdown your pc if your gdm (Graphical User Interface) is not working. Or you are only working in command line mood or running a computer user account with ssh(secured shell) ??
No CommentsCreate a lan messenger using socket programming in java
For my networking course lab project I developed an messenger for lan using java. It uses socket protocol for communication.
4 CommentsHow to import large csv file to mysql database in seconds
I had faced a troublesome situation while working with SUST automated mobile based admission registration system. The scene was that, Bangladesh education board give us their database of 1 million students personal info and academic results in old MS Foxpro format. It is single file with more than 1 gb in size. It was really causing so much trouble to convert it into mysql database until i reach the solution below. Before finding it we were trying to parse all that 1gb file into sql query using java. In a P4 computer it took nearly 4/5hrs to parse arrount 20K entries as java heap memory was continiously exceeding limit.
1 CommentCreate tree view in webpages using Google Visulaization Api
Today I am going to tell you about how to create a tree view or binary tree view in webpage using some apis like Google Ajax Api (Visualization Api)
Few days ago I was working with a multi level marketting (MLM) management software where users are being registered under another refereing user. Thus forming a binary tree. I badly needed to create a tree view in web page. I searched the net for a easy solution. But the searched results were getting meshed up with result like creating folder trees. I didnt too much resources on net about it. Finally I found that its Google providing an ajax api called Google Visualization API that are providing some good tools for visualizing an charts. One of them is organizational chart found in Google Visualization API Gallery.
No Comments