May 17, 2012


Windows 7 Tips,Tricks and Cracks


Key board shortcuts:

ALT + G :D isplay Gadgets On Top Of Other Windows

ALT + P :D isplay Or Hide The Explorer Preview Panel

:P review Photos In Windows Explorer

Windows key + Left key :D ock The Current Windows To The Left Side Of The Screen

Windows key + Right key :D ock The Current Windows to the right side of the screen.

Windows Key + Plus Key :D esktop Magnifier

Windows Key + Minus Key: Zoom out (in desktop)

Windows Key + Up Key :Maximize Or Restore The Foreground Window

Windows Key + Down Key :Minimize The Active Window

Windows Key + T :Move through theTaskbar icons(Alt + Tab in XP for moving across opened programs)

Windows Key + Home Key :Minimize Everything Except The Current Window

Windows Key + Shift Key+

Left or Right Key :Toggles between monitors if you have multiple screens installed.

Ctrl + Shift+application :Run any application as a administrator

Features which are present in WINDOWS 7 ONLY but not in XP

1.Normally file copy happens in a single thread,which takes more time,which happens much disadvantageous in case of dual core processors or higher ones.But ,in order it to make a multi threaded program with n number of threads ,you can specify “/MT[:n]” in command line.The optimal value of n will be equal to number of processors.

2.Press the Windows key and type Gpedit.msc. Go to Computer Navigation -> Windows Settings -> Security Settings -> Application Control Policies -> AppLocker. Right click on one of the options and create a new rule.Through this,you can block the users of executing vulnerable scripts and other harmful executables.

3.Effective power management can be done by pressing the Windows Key and typing “POWERCFG –ENERGY –OUTPUT <path\filename>”,which will create a file called energy-report.html in the folder.You can then view the power options for all devices and can compare with the specified ratings.

4.Hold down Shift, right-click the drive and “Open in New Process” which can open even a folder as a new process if it can cause you a crash and terminate all your works.

Open Pdf,Doc,Docx files inside Same Browser Window using PHP

We usually try to include various types of files like pictures,documents,pdf files etc.For the picture files,you can directly upload the file to site and embed in your blog using <img> tag.

For word document files(.doc files),

you would need a Browser Plugin to do this .This will be really helpful for those who have no MICROSOFT OFFICE  installed in their system or without a valid license.

Browser Plugin

For word document files(.docx files),

There is a new Firefox plugin that allows you to open any
docx
file without any other software like
MICROSOFT OFFICE 2007. Using this plugin, you can view
docx
file
in original format and it is available for both Windows and Linux.

Browser Plugin

For Adobe pdf files(.pdf files),

Suppose,you have a online .PDF document and when a user clicks the link, you want it to open in the same window.Then include the following php code

<iframe id="myFrame" style="display:none" width="500" height="300"></iframe>
<input type="button" value="Open PDF" onclick = "openPdf()"/>
<script type="text/javascript">
function openPdf()
{
var omyFrame = document.getElementById("myFrame");
omyFrame.style.display="block";
omyFrame.src = "myFile.pdf";
}
</script>

You can do the same with asp.net with following piece of code
protected void Button1_Click(object sender, EventArgs e)
{
Response.Clear();
Response.AddHeader("Content-Disposition","inline;filename=myfile.pdf");
Response.ContentType = "application/pdf";
Response.WriteFile("~/Hello.pdf");
Response.End();
}

Remember to add head to the Response stream and set inline to display the pdf file in the browser.