Skip to Content

Welcome

Hai Everyone i welcome all of you to my Personal Blog. Atlast I found time to setup my blog. It has been 3 months since i was planning. Hurry to drupal so that find all things here.

Dear Friends and Visitors,
Please make your kind comments on this blog.

Regards
Rajesh

Url Rewrite in Code Igniter

Here is the list of steps in enabling url rewrite in code igniter

Steps:

1. Create a .htaccess file to configure the rewrite engine
2. Set $config[‘index_page’] to an empty string
3. Make sure your apache uses the mod_rewrite module and make sure apache is configured to accept needed .htaccess directives
4. Restart apache

Create .htaccess


RewriteEngine On
RewriteBase /

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,

Set focus to First textbox in HTML Form

There are many ways in javascript to set focus to a text box in html, but here i need to focus all the first textboxes in my whole application. This can be done by getting name of the element and focusing it using document.form[0].name.foucs(), but without the name or id of the text box we can focus using jquery as below

<script type='text/javascript'>
$(function() {
$("input[type='text']:enabled:first").focus();
});
</script>

this will focus first enabled text field in your application

ilike Function in Codeigniter

Hi guys,
I had a task today where i met a difficulty, the task is to filter a set of records from a table using some column value,

I did this very immediately by using a like in posgres command
ie
since i am using codeigiter for me the query as follows

$this->db->like('columnname','value');

this results a command similar to

select * from tablename where column like '%value%'

[grub] Reinstalling Grub in Ubuntu (9.10) Karmic

The installation of windows will spoil grub of your Ubuntu Karmic
Proceed the following steps to restore it

1. Boot with your ubuntu 9.10 live cd
Note: (Since Grub-2 is way too different then legacy Grub so is the way of reinstalling it.
It is a general problem after installing new windows or any other OS over pre-installed Ubuntu that grub is taken over by windows master boot record and which results in unavailability of any method by which we can boot installed Ubuntu.)

2. Mount your karmic installed partition using the following commands

Cleaning up Your Ubuntu Installation

You have installed a lot of applications, uninstalled them. A lot of times when you apt-get remove all those dependencies stay behind. There are a lot that think aptitude is the answer but I have found that when you aptitude remove an application it removes stuff you don't want removed. Ubuntu has a few methods that will free up disc space and make your OS lean and fast.

[website performance] YSLOW

Yahoo! YSlow

YSlow analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages. YSlow is a Firefox add-on integrated with the Firebug web development tool. YSlow grades web page based on one of three predefined ruleset or a user-defined ruleset. It offers suggestions for improving the page's performance, summarizes the page's components, displays statistics about the page, and provides tools for performance analysis, including Smush.it™ and JSLint.

My Views

What's YSlow?

[joomla]Iframe in Joomla 1.5

If you are looking for adding iframe in Joomla 1.5 Article then here is the solution

Type 1:

Downloadmosiframe for Joomla 1.5

How to use:

  1. Install the plugins and activate Content - Iframe Plugin.
  2. Insert this code to your content
{iframe}url{/iframe}.

or

{iframe width=”320″ height=”240″ align=”top”}url{/iframe}.

Example:

[Drupal] Templates of Joomla, Drupal and wordpress made easy

Here is the video of the tool i recently worked its great!!!!!

[bluehost] Installing svn in Bluehost

These are the latest steps i did for configuring svn in bluehost (Thanks for the help of other blogs)

You need SSH access to your account

SSH account can be obtained from the hosting providers.

In order to enable SSH for your account,

1. you must either fax or email a copy of your photo ID (i.e., driver's license, passport, etc.)
2. Please create a ticket from out helpdesk or Fax it to (1-801-765-1992).
3. Please include the domain name for this account if Faxing this information.



Syndicate content