Chinmay

IE6 color patches on scroll Fixes

I came across the color patches problem on scroll of IE6.
Cause: If we have no or different background color in the parent div and the Current div has different background color.

Example:

HTML CODE

… … …

<div class=”outter-content”>

<div class=”content-home”>

<div class=”banner”>… … …</div>

</div>

</div>

… … …

CSS CODE

.outter-content {
	background: #000;
	clear: both;
	border:#a5b3bb 1px solid;
	border-top:0px;
}

.content-home {
	clear: both;
	padding:0 1px;
	background: #d8eaf0;
	border-bottom:1px solid #a6b4bc;
}

.banner{
	background: url("../images/banner.png") no-repeat left top;
	width:1000px;
	height:436px;
}

Screen Shots:

IE6 Color Patches

IE6 Color Patches

Solution:
Change the background of .outter-content to same as .content-home.

CSS CODE

.outter-content {
	background: #d8eaf0 ;
	clear: both;
	border:#a5b3bb 1px solid;
	border-top:0px;
}
... ...

Screen Shots:

IE6 Color Patches Fixed

IE6 Color Patches Fixed

This entry was posted in CSS Hacks, Tutorials and tagged , . Bookmark the permalink.

IE6 Auto-width Margins Problem fixed

Many of developers faced the Auto width Margin (margin:0 auto;) problem in IE6 browsers to make the content div center aligned irrespective of browser window.

Here is the solution.

Modify the CSS accordingly:

body {
      margin:50px 0px; padding:0px;
      /* Need to set body margin and padding to get
      consistency between browsers. */
      text-align:center; /* Hack for IE5/Win */
}

#Content {
      width:500px;
      margin:0px auto; /* Right and left margin widths set to "auto" */
      text-align:left; /* Counteract to IE5/Win Hack */
      padding:15px;
      border:1px dashed #333;
      background-color:#eee;
}

Screen Shots:

IE6

IE6 Screen Shots

IE6 Screen Shots

FF3

FF3 Screen Shots

FF3 Screen Shots

This entry was posted in CSS Hacks, Tutorials and tagged , . Bookmark the permalink.

Learn C++ in Singing the Songs

C++ sings the following songs

* Null pointers
Mera jeevan kora kagaz kora hi reh gaya.

*Local variable
Mein pal do pal ka shayar hu, pal do pal meri kahani hai, pal do pal meri hasti hai

* Undeleted pointers
Maut bhi aati nahi jaan bhi jati nahi.

* Unused variables
Badi sooni sooni hai zindagi yeh zindagi

#include
Saathi haath bataana ek akela thak jayega milkar bojh uthana

* DO loop
Sau saal pehle, mujhe tumse pyaar tha Aaj bhi hai, aur kal bhi rahega

* IF THEN ELSE
Tum agar mujhko na chaaho to koi baat nahin Magar kisi aur ko chaahogi to mushkil hogi.

* RETURN statement
Aa laut ke aaja mere meet tujhe mere geet bulaate hain

* Procedure call
Aa aab lout chale

* malloc()
Yaad kiya dilne kahan ho tum?

* exit(), suspend
Ruk jaa o jaane waali ruk jaa

* for(;;), the infinite loop
Hum tum, yug yug se ye geet milan ke gaate rahe hain, gaate rahenge hum tum…

* #remote login:
Tumse kuchh kehna hai, agar tum kuch kehne do

* # network busy
suno – kaho, kaha – suna, kuch huwa kya? abhee to nahin…

* Two Recursive functions calling each other
Mujhe kuch kehna hein, muze bhi kuch kehna hein pehle tum, pehle tum…

* extern variable
hum hein rahee pyaar ke, phir milen chalte chalte

* static/local variable
Jeena yahaan, marna yahaan iske siwa jaana kahan

This entry was posted in Technology, Tutorials. Bookmark the permalink.

Folder Lock without any Software!!!

Many people have wished to lock folders without the use of any alternative software. So, here you go.

Lets Create a Batch file to do the Folder Lock and Unlock.

Open Notepad and copy the below code and save as locker.bat .
Don’t forget to change your password in the code it’s shown the place where to
Type your Password.

Now double click on locker .bat to run(execute) the file.
 
First time start it will create folder with Locker automatically for you.

Place the contents that you want to lock inside the Locker Folder.

Lock the folder:

Run locker.bat .

Are You Sure You Want To Lock The Folder(Y/N)
> Y

Press the enter

Your Folder is Locked Successfully.

After this the folder will be in hidden mode. and you can’t see this folder even if you set Show hidden files and folders at the  Tools -> Folder options.

Unlock the folder:
 
Run the
locker.bat again and give the password

It will show the Locker Folder.
 


Source Code
:

cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are You Sure You Want To Lock The Folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid Password. Please Try Again
goto CONFIRM
:LOCK
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder Locked
goto End
:UNLOCK
echo Enter Password to Unlock Folder
set/p “pass=>”
if NOT %pass%==Type your Password goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked Successfully
goto End
:FAIL
echo Invalid Password
goto end
:MDLOCKER
md Locker
echo Locker Created Successfully
goto End
:End

Security Tips:

  • Don’t open the locker.bat file or Type the Password to open the folder in front of any one.
  • Put it in the C:/ drive  and rename it.


This entry was posted in Technology, Tutorials and tagged , . Bookmark the permalink.

10 steps to recover Projects Localhost crashes.

10 steps to recover all your Projects, database and tables when server/localhost crashes.
——————————————————————————————————————

1. Before uninstalling the crashed server copy the full folder as backup of all previous data. (Example: Take backup of “C:wamp” folder)

2. Uninstall the Crashed server and install the new one.

3. Make sure your new server running and has no error.

4. If server is running make it Stop and Offline then close it.

5. Go to C:wampbinmysqlmysql5.0.45data

6. Its better to take a backup copy of this data folder.

7. Replace the files and folders with your previous server data.

8. Add your Previous Projects to the Root folder. (Example: “C:wampwww”)

9. Restart the server and check whether your previous tables and data are reflecting in the new server. (Example: Check it Out here http://localhost/phpmyadmin/)

10. Enjoy with your Old Projects at new server

This entry was posted in Technology, Tutorials. Bookmark the permalink.