Tips
Masquerade - Switch your identify!!
Submitted by ravisagar on Sat, 12/25/2010 - 08:30Here is another super cool module for making your Drupal Development life much easier. Every Drupal site with has the functionality of mulitple users/role and when we develop any feature or configure any permission for them we often switch our firefox profile or launch another browser (other than your primary browser) to see how that feature will behave for another users with different permissions.
- ravisagar's blog
- Add new comment
- Read more
- 1051 reads
How to theme your views slideshow - Add transparent text above images!!
Submitted by ravisagar on Sat, 12/25/2010 - 05:58Here is amazing CSS trick to display links and text over the image slideshow with transparent background. This is really simple to do. Just see this video from mustardseed and implement it for your websites. Really cool!
- ravisagar's blog
- Add new comment
- 1886 reads
IRC from Office
Submitted by ravisagar on Thu, 06/05/2008 - 05:01
Today I came across this site http://www.mibbit.com/ for login into IRC channels from your browser. It is great for people who don't have administrative rights on their Workstation or offices where IRC ports are blocked.
Just open the link http://www.mibbit.com/ in your browser, select the channel and you are in.
Try it.
- ravisagar's blog
- Add new comment
- 1460 reads
HOWTO password protect your GRUB
Submitted by ravisagar on Thu, 05/29/2008 - 06:02Procedure to password protect your grub menu is simple. Steps are mentioned below.
1. Use the command grub-md5-crypt to generate an encrypted password in MD5 (Message Digest Algorithm 5) format.
Password:
Retype password:
$1$POwoW$3.ean3fFinACXjN9Ch/qG/
2. Open your /boot/grub/grub.conf file and copy the encrypted password.
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$POwoW$3.ean3fFinACXjN9Ch/qG/
title Fedora (2.6.23.1-42.fc8)
root (hd0,0)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/
initrd /boot/initrd-2.6.23.1-42.fc8.img
Enter the password --md5 ENCRYPTED-PASSWORD line just before the title line.
3. Restart your computer and to modify the GRUB menu first enter p and then enter the password that you encrypted.
4. Now your GRUB is MD5 password protected.
- ravisagar's blog
- Add new comment
- 1946 reads
Start up Kit for Entrepreneurs
Submitted by ravisagar on Wed, 05/28/2008 - 08:10If you are an Entrepreneur and wish to start a business then you might be benefited from these links below.
- ravisagar's blog
- Add new comment
- 1232 reads
How to change the background color of entire row in Excel using VBA code - Conditional
Submitted by ravisagar on Sun, 02/10/2008 - 16:42My friend Vinod gave me a problem to change the background color of entire row to Red and also to change the font to bold. It seems to be an easy task but there are two constraints.
1. He want to do this only for those lines which has font color of red.
2. There are 2500 entries in the excel.
Now if you have plenty of time then you can do this task in some hundred years :) but I am a Lazy guy so I wrote this little Macro code.
Private Sub Workbook_Open()
For Each cell In Worksheets("sheet1").Range(Worksheets("sheet1").Range("A1"), _
Worksheets("sheet1").Range("A1").End(xlDown))
If cell.Font.Color = RGB(255, 0, 0) Then
cell.Font.Color = RGB(0, 0, 0)
cell.EntireRow.Font.Bold = True
cell.EntireRow.Interior.Color = RGB(255, 0, 0)
End If
Next cell
End Sub
You can write this code either in the Open Event of the Workbook or write a Module for it.
For Each cell In Worksheets("sheet1").Range(Worksheets("sheet1").Range("A1"), Worksheets("sheet1").Range("A1").End(xlDown))
This code simply defines the range starting from cell A1 till the bottom most cell which has any data.
End(xlDown))
This is similar to pressing Ctrl + Down Arrow
cell.Font.Color = RGB(0, 0, 0)
This code changes the font color of the cell content
cell.EntireRow.Font.Bold = True
This code changes the font to Bold
cell.EntireRow.Interior.Color = RGB(255, 0, 0)
This code fills the cell with Red color
- ravisagar's blog
- 4 comments
- 23458 reads





