May
06
2009
Written by admin
I work on Perl and CGI recently for my college project and so I decided to write a few steps on setting up Perl and CGI with Wamp Server. I hope this might be useful.
Step1:
First you need to download Wamp Server from www.wampserver.com and install Wamp Server on your machine. The default installation directory is ‘C:\wamp” and here I am using the default options for installation. To complete the installation you have to set the host name for your mail server and your email address, here you can leave the default option again. That will do no harm.
The current Wamp Server will install Apache 2.2.11, PHP 5.2.9-2 + PECL, MySQL 5.1.33, SQLitemanager and PhpMyadmin. Continue reading…
Tags: CGI, Perl, Wamp
Categories: MySQL, Tips and Tricks, Tutorials, Web Design |
Mar
27
2009
Written by admin
This technique is really simple. Having equal height division in your design is sometimes necessary to maintain consistent look and feel on your layout. You can use this technique to make your sidebars equal height, or to make your content area and the sidebars equal height.
Get The Source Code: Without Jquery With Jquery
Step 1:
Create an index.html file for your layout. I create an example html layout for this article.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Equal Height Division Using Javascript and CSS</title>
<link type="text/css" rel="stylesheet" href="style.css" />
<script type="text/javascript" language="javascript" src="javascript.js">
</script>
</head>
<body onload="grabtheclass()">
<div class="outer">
<div class="inner">
<div class="main">
<p>The Main Content</p>
<p>The Main Content</p>
<p>The Main Content</p>
<p>The Main Content</p>
<p>The Main Content</p>
</div>
<div class="sidebar">
<p>The Sidebar Content</p>
<p>The Sidebar Content</p>
<p>The Sidebar Content</p>
</div>
</div>
</div>
</body>
</html>
Continue reading…
Tags: CSS, Equal Height Sidebar, Javascript
Categories: Javascript, Tips and Tricks, Web Design, XHTML & CSS |
Mar
01
2009
Written by admin
This can be used to rename the prefix or suffix of a table, but not the whole table name.
I came up with this simple tips on renaming multiple tables in your MySQL database within a few seconds.Recently, I was googling on how to rename multiple tables at once in MySQL Database. I came across few tips but they didn’t meet my needs. So I came up with this simple way of doing it.
First, you need to have a text editor having ‘Find and Replace‘ feature. Almost every text editor available will be having this feature. I am using Notepad++ for the text editor. The next thing you need to do is to export your database having the tables you need to rename. Export your database to an SQL file and save it on your computer. Now, fire up the text editor of your choice and open the SQL file you downloaded just now. Click the Find and Replace option from your text editor. Find your table name and then type the table name in the ‘Find‘ field, and type the replacement string in the ‘Replace‘ field. Then click ‘Replace All‘ and save the SQL file. For example, If your table name is tbl_mytable, you can find the string tbl_ and replace it with tl1_. The find and replace procedure might be different with different editors but they are likely to be similar.
Now, go to phpMyAdmin and drop or backup all the tables inside your database. Import the SQL file you have just edited from your phpMyAdmin and now you are good to go with your tables having new name.
Tags: MySQL, phpMyAdmin
Categories: MySQL, Tutorials, Web Design |
Jul
18
2008
Written by admin
RSGallery is one the most popular and most reviewed Photo Gallery extension for Joomla CMS. This is a very simple tweak but a very useful one for people who don’t have knowledge about even simple MySQL query structures. And I hope it might be useful for RSGallery users who might not have extra time to look into the code and tweak around the MySQL query. So, here I provide a simple tweak in the RSGallery module to show the Latest or Recent Image from the RSGallery galleries. Using this module you will be able to show all recent images from all the galleries and you can also exclude a gallery from being displayed in that module.
There can be a case where you want to show latest images from one gallery only instead of having all the latest images from all galleries being listed there. For this purpose I made Candid Photos module. Here you can specify which gallery to be used. You will need to put the Gallery ID of the gallery that you want to use for candid photos. Then in the Candid Photos module, recent images from the gallery you specified only will be displayed.
Continue reading…
Tags: Joomla Module, Recent Image Module, RS Gallery
Categories: Joomla, Tutorials, Web Design |
Jun
19
2008
Written by admin
After a long pause I came back with this tweak for wordpress. Here it comes, since I work a lot with wordpress these days.
I came across this wordpress tweak when one of my client wants a Blogroll Icon to be displayed along with the blogroll link. So here’s the steps on ‘How to show a Blogroll Icon’ in wordpress blog. Originally, what you have with wordpress blogroll is a list of links to websites and blogs. So to show image beside the blogroll link (most probably on the right side of the link text), perform the following steps.
Step1:
First you need to get the plugin ZocPowerblogroll from his website. Download the plugin and this plugin will do most of the work for us.
Continue reading…
Tags: CSS, Web Designing, Wordpress
Categories: Tutorials, Web Design, Wordpress, XHTML & CSS |
Recent Comments