Saturday, September 4, 2010

VishTecho

Just another WordPress weblog

Archive for the ‘Hacks-Tricks’ Category

CheatSheet Collection : Cheat Sheet for web developers

Posted by vishtecho On April - 11 - 2009

Here is a collection of cheat-sheets which I use. Believe me they are very handy and can save a lot of time while development.

Mootools 1.2 cheat sheet

Mootools Cheat Sheet

Django 1.0 cheat sheet

Django 1.0 Cheat Sheet

CSS Shorthand cheat sheet

CSS Shorthand cheat sheet

XHTML Character entities

XHTML Character entities

HTML XHTML Quick Ref

HTML XHTML Quick Ref

HTML XHTML Characters

HTML XHTML Characters

Browser W3C DOM Compatibility Modes

W3C DOM Compatibility Modes

Youtube charging $0.99 for download?

Posted by vishtecho On February - 21 - 2009


YouTube is the leader of online video, sharing original videos worldwide through a Web experience. Year 2006, YouTube was purchased by Google Inc.These days Google announced paid downloads of YouTube videos. So, YouTube’s partners can now offer their videos for paid downloads.But we’ll let you know of a method to download youtube videos for free…

There are four types of licenses for pay to download YouTube videos: License 1,Personal, non-commercial use only; License 2, Creative Commons (Attribution-Noncommercial-No Derivative Works); License 3, Creative Commons (Attribution-Noncommercial-Share Alike); License 4, Creative Commons (Attribution).

More detail on license type definition, please refer to YouTube help center.

How to download these videos which has to pay for $0.99 or more?

Step 1. Login in and search the video you’d like to download.

Step 2. Below the video’s play bar in the lower left hand corner, you’ll see a “Download” button.Click the “Download” button to indicate that you’d like to download the video.

Attention: Till now only few of partner videos have “Download” button below their play bar. Such as household hacker on YouTube

Step 3. Pay this video through Google checkout.

Step 4. After payment, start to download mp4 files for YouTube.

How to free download YouTube videos?

Step 1:Go to the site KeepVid

Step 2:Enter the URL of the Youtube Video (NOTE:It can be any other video site like metacafe,dailymotion etc) and click DOWNLOAD

Step 3:BINGO!! You get two download links.One is a low quality .flv video and the other a high quality .mp4 video.What’s more you can download this video using any download manager with full resume support as with other direct downloads!!!

Background Picture on USB Drive

Posted by vishtecho On January - 23 - 2009

This guide tells you how to put a background wallpaper on your USB Pen Drive(you can even try this trick on your existing Hard Drive i.e C,D etc..)
All my friends love this, and they keep asking how i do it, so here it goes…

Copy this code to notepad,then save it as “desktop.ini”

[.ShellClassInfo]

IconFile=%SystemRoot%\system32\SHELL32.dll

IconIndex=127

ConfirmFileOp=0

[{BE098140-A513-11D0-A3A4-00C04FD706EC}]

Attributes=1

IconArea_Image=”your_picture.jpg”

IconArea_Text=”0xFFFFFF”

VeBRA sources - don’t delete the tag above, it’s there for XXXXX purposes -

[ExtShellFolderViews]

{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}

{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262}

[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]

PersistMoniker=Folder.htt

PersistMonikerPreview=%WebDir%\folder.bmp

1. Where “your_picture.jpg” is, delete that and replace with your picture name for example “superman.gif”

2. Put “desktop.ini and your chosen picture in ur USB Drive then Hidden it

3. Refresh and ENJOY with your new background.

4.u can also try on C,D,E F drives

Cange Windows Boot Screen

Posted by vishtecho On January - 23 - 2009


Want to have a funky looking Boot screen for your Windows XP?
Want to amaze your friends with your very own picture instead of the boring old Windows XP?
Then look no further as we present before you this simple little hack to change the Boot Screen of your Windows XP.This is a very old trick, but hardly many know about this trick.

These instructions assume that you have a place to download the boot screen from the net.

If you would like to download a boot screen, visit http://www.themexp.org

1.Backup (copy) the file %windir%\system32\ntoskrnl.exe

(most likely C:\windows\system32\ntoskrnl.exe - the boot screen)

2. Download the .zip to your computer

3. Extract ntoskrnl.exe to a directory other than %windir%\system32 (most likely C:\windows\system32)

4. Reboot your computer into Safe Mode (hit F8 before the boot screen) or into true DOS (from a boot disk)

5. Overwrite the file %windir%\system32\ntoskrnl.exe (which should have been backed up) with the extracted exe

6.Reboot your computer as you normally would

Remove Virus from Your Computer

Posted by vishtecho On January - 20 - 2009


Got a virus on your system that doesn’t show any sign of leaving? Well viruses are made not to leave the system.They just keep on bothering you and might even steal your private information.So what to do if your system has been attacked by a virus?
This guide tells you some simple yet essential steps to make your PC virus free

1. Disable system restore, most viruses go into system restore and to get them out it has to be disabled.
Windows XP:

Steps to turn off System Restore
1. Click Start, right-click My Computer, and then click Properties.
2. In the System Properties dialog box, click the System Restore tab.
3. Click to select the Turn off System Restore check box. Or, click to select the Turn off System Restore on all drives check box.
4. Click OK.
5. When you receive the following message, click Yes to confirm that you want to turn off System Restore:
You have chosen to turn off System Restore. If you continue, all existing restore points will be deleted, and you will not be able to track or undo changes to your computer.

Steps to turn on System Restore
1. Click Start, right-click My Computer, and then click Properties.
2. In the System Properties dialog box, click the System Restore tab.
3. Click to clear the Turn off System Restore check box. Or, click the Turn off System Restore on all drives check box.
4. Click OK.

Windows Vista:
1) Type system into the start menu search box, and pick the 4th item down, just labeled “System”. (You could also right-click the computer icon and choose properties)
2)Now click the System protection link
3)Once you uncheck the drive, click the “Turn System Restore Off” button
4)To enable repeat the steps and then check the drive box that you had unchecked before.

2.Backup only important stuff, if you start backing up everything infected files may transfer. However, this might not be needed unless you got really important stuff.
Quote:
If the virus infected your entire OS and you cant boot into Windows by normal mode or Safemode use Hirens Boot Disk 9.5. It comes with small version of Windows 98 that runs from RAM it can be used to back up important files.

3. You should get Hirens Bootdisk 9.5, scan with the 2 antivirus programs and antispyware programs before Windows starts!! Use this disk to test other hardware problems such as test bad RAM, bad hard drives, ect
Code:

Download Hirens bootcd 9.4 + keyboard patch
http://rapidshare.com/files/149030802/hbcCW.rar

4.If you can start Windows and can get to desktop install and run this freeware , SuperAntiSpyware, Spybot Search and Destroy, Ad Aware 2008, McAfee Stinger, Spyware Terminator, and Malwarebytes Antispyware. Also some good other freeware programs you should get; CCleaner, Glary Utilities and Advance WindowsCare Personal. Run one program at a time, or if your computer is fast run two at same time.
Code:

All freeware spyware removers plus CCleaner, Glary Utilities, Advance WindowsCare Personal only 67MB’s
http://rapidshare.com/files/147818372/origfreeware.rar

5.Start Windows in safemode and install Hijackthis save the log and then go to

http://hijackthis.de/

That site will tell you what to delete using Hijackthis. When your going to delete something that gets picked up as nasty or virus. Make sure you go into google and look up that .exe files, it could be graphics driver or printer driver. Hijackthis picks up my Lexmark driver as a possible bad file but its not. So be sure you know what your deleting cuz Hijackthis deletes them and it wont bring them back if you make errors. If your unsure about your log save it and go to Help section and post it.

6. Get the latest Geek Squad CD; run all of its antivirus programs. It should remove something. BTW you should disconnect from the internet before using this CD and it will be flagged by some antiviruses cuz it trys to phone home.

Download links
part 1, you have to extract it out of this rar, and put it next to the other rars
http://rapidshare.com/files/168352823/blablaCW.rar

http://rapidshare.com/files/149262301/esdvfCW.part2.rar
http://rapidshare.com/files/149275048/esdvfCW.part3.rar
http://rapidshare.com/files/149283245/esdvfCW.part4.rar
http://rapidshare.com/files/149286717/esdvfCW.part5.rar
http://rapidshare.com/files/149290463/esdvfCW.part6.rar

7. Once you think you have cleaned your PC, restart normally if things seem fine then check your computer using this free online virus scanners!! Run one by one till you know your clean. If one of them comes with virus result, write down its directory and name of it. Then post question in the Comments of this post.We at VishTecho will try to find a solution for your problem.Or download the antivirus that detects it and uninstall your current one and use the one that picks up the virus.

FOR FULL COMPUTER SCAN:

Trend Micro Online Scanner
http://housecall.trendmicro.com/

Panda Security Online Scanner
http://www.pandasecurity.com/homeusers/solutions/activescan/

Kaspersky Online Scanner
http://www.kaspersky.com/virusscanner

McAFee Online Scanner
http://us.mcafee.com/root/mfs/default.asp

BitDefender Online Scanner
http://www.bitdefender.com/scan8/ie.html

Windows Live OneCare Scanner and Spyware remover
http://onecare.live.com/site/en-us/default.htm

F-Secure Scanner and Spyware remover
http://support.f-secure.com/enu/home/ols.shtml

ESET Online Scanner
http://www.eset.com/onlinescan/

EWIDO Online Scanner
http://www.ewido.net/en/onlinescan/

FOR SINGLE FILE SCAN:

www.virustotal.com

http://virusscan.jotti.org/

http://www.viruschief.com/

8. Last step is to Install CCleaner and use it to delete temporary files.
Its very good program, i use it to remove around 1 GB every week. Imagine if you never run it? You probably can gain more space!!!
Another thing you could do is create a shadow copy of your hard drive in case anything ever goes bad you can just reformat hard drive and install this shadow copy. Use Hirens BootDisk it has Acronis True Image for backing up your whole PC.
I suggest you give Kaspersky or McAfee antivirus a try. They are the best To remo
ve your current antivirus and try other ones use Your Uninstaller 2008. I recommend you always use LEGAL antiviruses so you can update their definitions everyday.

If you cant afford an antivirus get a free one! This are free antiviruses (you can only use one at a time)

Free AntiViruses

Avast Home Edition
http://www.avast.com/eng/download-avast-home.html

AVG Free
http://www.download.com/AVG-Anti-Virus-Free-Edition/3000-2239_4-10320142.html

Avira Antivirus Free edition
http://www.download.com/Avira-AntiVir-Personal-Free-Antivirus/3000-2239_4-10322935.html?part=dl-10322935&subj=dl&tag=button&cdlPid=10867326

ClamWin
http://www.clamwin.com/content/view/18/46/

Bitdefender 10 Free edition
http://www.bitdefender.com/site/Downloads/browseEvaluationVersion/1/42/

PC Tools Free Antivirus
http://www.pctools.com/free-antivirus/

ThreatFire free edition
http://www.threatfire.com/download/

If you have any problems, please post it in the Comments.We will try to find a solution for your problem as fast as we can.

Convert Gmail Messages into Documents

Posted by vishtecho On January - 18 - 2009


Did you know that you can actually save your Gmail messages as documents.This is possible because of the new Google Labs feature presented in every user’s Gmail account.To convert all you have to do is

1)Log into your Gmail account.

2)Select the “Settings” option from the top.

3)Then select the “Labs” tab.

4)Then scroll down a little where you will find the title “Create a document

5)Click on the radio button next to “Enable

6)Scroll to the bottom of the page and click on “Save Changes”.

7)Now go to your Inbox and click on the message which you want to convert to a document.

8)To the right you will find the option “Create a document“.Click on it.

9)Google will then convert the message into a word document and this will then be saved in your Google Docs account.

This is a basic use of this option.We have to wait and see what new improvements we can see further.

Make Partitions in Vista WITHOUT Disk Management

Posted by vishtecho On August - 25 - 2008

Windows Vista’s Disk Management tool can be quite deceiving. It allows you to work with partitions at ease in a presentable GUI format - but with problems. There have been a lot of complaints and confusion as to why Windows Vista grays out the extend volume and shrink volume properties. In response to this, I have found an alternative way to work with partitions, allowing you to easily resize, delete, and create partitions.
Diskpart.exe does a very good job at working with partitions. Unlike Disk Management, Diskpart actually works!

Before continuing, make sure that you:

  • Backed up all important files
  • Do not run diskpart.exe with Dynamic Disks

So here it goes….

1) First, you’ll want to pull out your Start Menu and type diskpart.exe
This will open a command-prompt like window. At this window, type list disk. This will list all your available hard disks.

2) Proceed by typing select disk < disk number > to select the disk you want to work with.

Creating a Partition or Volume:

At this point in time, you can create a partition. Type create and a set of new options will be presented to you. To proceed, just type create < new option>. (e.g. create volume)

What kind of partition should I create?
Primary: Primary partitions are limited to four per hard disk. If you are planning to install an operating system into a partition, you’ll want to choose primary since it is the only one that can be made bootable.

Extended: If you are planning to have more than four partitions, you’ll want to work with extended. An extended partition counts towards the limit of four, but you are then allowed to create logical volumes within these extended partitions. You’ll want to use extended partitions for backup or storage purposes only since they are not bootable.

3) Now we want to see which number is associated with the volume we want to work with. To obtain this list, type list volume

4) Select the desired volume by typing: select volume < number> or select partition < number>

You then have a list of options to choose from. Below is a list of commands you can type in depending on what you want to do with your selected volume. If you don’t input a number for size, the program will automatically use all the space available for your operation. For the purpose of this tutorial, I have decided to work with 10GB. (1000MB = 1GB)

  • Shrink desired=10000 minimum=2000 (Shrinks the volume by 10GB. If that’s not possible, this command makes sure that you at least shrink the volume by 2GB.)
  • Extend size=10000
  • Delete Partition
  • Format

Disk Management can be quite a nuisance since it decides to gray out certain properties on any given day. Please spread the word about diskpart.exe if you know someone who has had trouble working with partitions; as I am sure there are lots who are having similar problems.

Vista and Mac Leopard-Dual Boot

Posted by vishtecho On August - 16 - 2008


OK.So you do admit that Vista is not what you need with all the negative comments and the security issues around it and within inside you feel that you want a MAC.But you have just spent a couple of grand on your new (or a year or so old) PC.So, what are you going to do now? Well, in this tutorial I show you how to DUAL BOOT Mac OS Leopard on your Vista installed Intel (and also AMD) computer.Follow the instructions very carefully and feel free to post any doubts or suggestions you need.

DISCLAIMER:This Guide is for educational purposes only and it is highly recommended you buy yourself an original Mac. Also please do not post links to the Torrents as they will be removed.

Well before we proceed with the guide, here is the stuff that you will need for a successful dual boot setup.

  • Vista Already installed on your Primary Hard Disk.
  • iATKOS v1.0 DVD. (Do not ask me where you can download this)
  • Windows Vista Boot DVD (Just incase something goes wrong)

Well now that you have everything ready, lets get started then. Please note this is going to take sometime so I suggest you have some Music playing near by and grab yourself a cup of coffee while you do this. Sit tight, here we go……….

  • Install Vista on the First Partition of your Hard Disk. I am not going to elaborate into How to install Windows, I hope everyone knows it. If you already have it installed then read on..
  • Right click on My Computer and Click on Manage. Select Disk Management. Now Create a new Volume for OSX by shrinking an existing volume. You need atleast 5GB of space and the new volume should show up as Unallocated.
  • Make sure that the partition shows up as Unallocated, else repeat the previous step.
  • Now restart the machine and boot into the Leopard DVD that you burned using the iATKOS v1.0 DVD Image.
  • Press F8 as the countdown begins and type -v at the prompt and hit enter.
  • You should see scrolling text on the screen now. If it stops anywhere then drop a comment and I’ll try to help you out.
  • After a while you should be looking at the Leopard Installer. Follow the instructions on Screen.
  • Once the Loading Bar vanishes Select Utilities -> Disk Utility .
  • Select the Volume you created previously and format it as MAC OSX Journaled Extended. Once the formatting is done the volume is ready for installation.
  • Now Close Disk Utility and Select Utilities -> Darwin Boot. Type Y at the prompt.
  • At the prompt when it asks for the Disk Number enter 0. For the Partition Number if your Leopard Partition is 2nd on the disk, then enter 2 and so on.
  • Accept the following prompts and you should see a success prompt saying that so many block of data were written successfully.
  • Now get back to the Leopard Install Screen. Choose the partition that you made in the beginning and follow the instructions on screen.

    Please don’t select any patches etc during the installation, this is normally the reason for most failed installations. Just the plain install would do.

  • Once the Install is done, reboot with the DVD in the drive. Press F8 at Darwin Boot Loader and type -s and press enter.
  • Execute the following commands :

    fdisk -e /dev/rdisk0

    flag 1

    quit

    reboot

  • Now before the PC restarts remove the DVD. At this point you should be able to boot into Vista normally.

    Note: If you are unable to log into windows, because there is an error which says “winload.exe” correupted.! Relax. Just insert the Windows VISTA boot DVD into the drive and restart. Click on “Repair computer” once you are inside the DVD and it will automatically detect if a problem exists and suggest “Repair and Restart”. Press the same, and remove the DVD once the PC is about to restart. You should now be able to log in to vista without any problem.

  • Now that we have almost everything running fine, lets proceed with the dual boot setup.
  • Boot into Vista. Copy the chain0 file from the Leopard DVD to C:
  • Open the “Command prompt” with “Elevated Admin” privileges from the Start Menu.
  • Type the following into the prompt

    bcdedit /copy {current} /d “Mac OS X”

    bcdedit /enum active

    bcdedit /set {GUID} PATH \chain0

    In the first command type {current} as it is, literally..nothing else..just {current} with the brackets. In the 3rd command however, replace the {GUID} with the alphanumeric GUID you see in the enumerated list under MAC OS X. You can see this list on your terminal as soon as you type the 2nd command above.

  • Close the Command Prompt and Restart Vista.
  • You Should now be looking at a screen with two options to boot into Mac OSX or Vista.
  • Select Mac OSX to see if you can boot into it. You should see the familiar Darwin boot Loading screen with the timer going down. If you dont do anything, then it counts to zero and again shows the menu screen with Vista and MAC OSX options. Dont panic!

    Again select MAC OS X, and now as the timer counts down, Press F8. You would see a list of partitions on your disk with their names. Select the partition with MAC OSX installed by using up/down arrows and press ENTER.

  • Voila!! your Mac should be booting up as you read this..

See it was that simple. No more HFS+ and Blinking Cursor errors. Just follow this guide step by step and you should be able to dual boot Windows Vista and Leopard in no time. If you have any questions just drop in a comment, I’ll reply at the earliest.

For Drivers and Patches I suggest you look at the InsanelyMac Forums. This guide would have been nearly impossible without :

  • Uphuck Forums
  • InsanelyMac Forums
  • OSX86 Wiki.

If you are looking to Install Leopard on an AMD based machine follow the instructions here to patch your iATKOS v1.0 Image. Special Thanks to I Am Nihilist

Install Windows XP on Your Pre-Installed Windows Vista Computer

Posted by vishtecho On August - 14 - 2008

The question I am asked most often is “How do I install a dual-boot with Windows XP on my new Windows Vista computer?” The answer is that it’s not that difficult, it’s just very time consuming, and you need to own a copy of Windows XP.

Note that you should not attempt this if you aren’t ready to troubleshoot any problems that might occur.

The first issue we encounter is that computers with pre-installed operating systems take up the entire drive. Luckily Microsoft included the Shrink volume feature in Vista, so we can easily shrink the Vista partition down to make room for XP.

Open the Computer Management panel, which you can find under Administrative tools or by right-clicking the Computer item in the start menu and choosing Manage. Find the Disk Management item in the list and select that.

image

Now we’ll shrink our volume down by right-clicking on the main hard drive and choosing Shrink Volume.

image

Now you can choose the size that you want to shrink, which really means you are choosing the size that you want your XP partition to be. Whatever you do, don’t just use the default. I chose roughly 10gb by entering 10000 into the amount.

image

The next step might be confusing, because we need to change the cd-rom drive that’s invariably taking up D: at the moment, because we want to use D: for the Windows XP partition, but it’s already taken by the cd-rom drive. If you skip this step than XP will install onto the E: drive, which isn’t the end of the world, but it’s not quite as tidy.

Right-click on the cd-rom drive in the list and choose Change Drive Letter and Paths from the menu.

image

Now we’ll change the CD drive to use E: by selecting that in the drop-down.

image

Now we can create a new partition for XP to live on and make sure that the drive letter is set the way we want. If you do not create a partition now the XP install will do so automatically, but it’s easier and cleaner to do it this way.

Right-click on the Unallocated free space area and then select New Simple Volume from the menu.

image

Follow through the wizard and select whatever options you’d like, making sure to use D: as the drive letter.

Now you will need to close out of disk management and reboot your computer. This is because we can’t do the next step until we reboot. (you can try, but it won’t work)

So we’ve come back from rebooting… open up Computer from the start menu and then right-click on the D: drive and select properties. Give your partition a meaningful name like “XP”. It would be wise to name the C: drive to “Vista” at this point as well.

image

Now you’ll want to pop your XP cd into the drive and boot off it. You may have to configure your BIOS to enable booting off the CD drive, or if your computer says something like “Hit Esc for boot menu” you might want to use that.

Once you come to the screen where you can choose the partition to install on, then choose either the unpartitioned space or the new partition you created. Whatever you do, don’t try and install onto your Vista partition! See how much cleaner it is now that we’ve labeled each partition distinctly?

image

We’ll assume XP is completely installed at this point, and you will have lost your ability to boot into Windows Vista, so we’ll need to use the VistaBootPro utility to restore the Vista boot loader.

Download and install VistaBootPro from vistabootpro.org

During the install you’ll be forced to install the .NET 2.0 framework. Open up VistaBootPRO and then click on the System Bootloader tab. Check the “Windows Vista Bootloader” and then “All Drives” radio buttons, and then click on the Install Bootloader button.

image

At this point, the Windows Vista bootloader is installed and you’ll only be able to boot into Vista, but we’ll fix that. Instead of manually doing the work, we’ll just click the Diagnostics menu item and then choose Run Diagnostics from the menu.

image

This will scan your computer and then automatically fill in the XP version.. click on the “Manage OS Entries” tab and then click in the textbox for Rename OS Entry, and name it something useful like “Windows XP” or “The Windows That Works”

image

Click the Apply Updates button and then reboot your computer… you should see your shiny new boot manager with both operating systems in the list!

image

If you get an error saying “unable to find ntldr” when trying to boot XP, you’ll need to do the following:

  • Find the hidden files ntldr and ntdetect.com in the root of your Vista drive and copy them to the root of your XP drive.
  • If you can’t find the files there, you can find them in the \i386\ folder on your XP install cd

There’s more information on this forum thread, thanks to nrv1013

This is a critical piece of information: Windows XP will be installed on the D: drive, even in Windows XP… so you’ll need to keep that in mind when tweaking your system.

image

You can share information between the drives, but I wouldn’t recommend messing with the other operating system’s partition too much… it might get angry and bite you. Or screw up your files. What I do recommend is that you store most of your files on a third drive shared between the operating systems… you could call that partition “Data”.

I’m going to write a number of followup articles dealing with all of the issues with dual-boot systems, so subscribe to the feed for updates.

SOURCE: HowToGeek