Sunday, October 31, 2010

Opening A Set Of Multiple Programs From A Single Click

If you are a web designer, graphics designer, desktop publisher or even just a basic user of Windows you may have habit top open some specific programs. For example, a web designer will have Adobe Fireworks, Adobe Dreamweaver, Notepad and browsers always opened. He may want this entire file in front of his eyes without need to double click each of the file. Or you may be a graphic designer who wants Photoshop, Illustrator always opened. Or you may be just a basic windows user who surfs net and listen to music and you may want Windows media player and browser opened together without any hassle.

In this tutorial I will teach you how to accomplish multiple file execution from just a single click. This might be just a useless tip for them who might have other method or already knows how to do this. If you don’t know how to do this then read on. If you know, even then read this post and comment for better upgrade.

As we used batch scripting before to accomplish several easy task and tweaks to windows, we’ll again be using batch scripting here. If you don’t know what batch scripting is then search in our blog at the right sidebar for batch scripting and learn basics of it.

OK now let me guide you how to do this.

In this tutorial I will assume that you are a basic web user who listens to music while surfing. You’ll basically open all programs you need on hand. For example, you may want Google Chrome, Microsoft word and Windows Media Player always opened.

After you list the necessary programs, we must know where the programs are installed.

You can do this by right-clicking on the shortcut icon and click on properties. In target field you’ll find the location of the program file.

In the above case, the installed location of Google chrome is, C:\Programs\Chrome\Application\chrome.exe

Copy the location of each program in similar ways.

Now open Notepad (Start>Run>type notepad).

In Notepad screen type following information:

Start "" "C:\Programs\Chrome\Application\chrome.exe"

Note: Don’t copy and paste it since it is for demo only.

Do same for all programs.

Note: refer to above syntax again.

When your path is enclosed in quotes, START interprets it as the title for the window. Adding the “” makes it see your path as the program to run.

Now save it as “browsing.bat”(with quotes).

Change the icon if you want.

Double click on the browsing.bat, it will open all the programs that you’ve specified inside it.

You can create similar set of programs to open from single click and have it at desktop.

Hope this tutorial was helpful.

Friday, October 29, 2010

Disable USB Storage Devices In Your Desktop And Get Secured

Have your personal information ever been copied or pirated? It might be your years of project or your secret video; you’ll obviously feel not well when you know that it has been copied by someone by accessing your computer. Most of the files are copied to removable storage media like USB drives.

Today in this tutorial, I am going to show you how you can make USB storage devices totally useless without your permission.

You won’t need any special utility or software, just a tweak in Registry editor is enough to enable or disable the USB drive.

To block all the storage device in your Windows, run registry editor by typing regedit in RUN command.

In the registry editor, at left side navigation pane, navigate to following location:

HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > USBSTOR

Now at the right side double click on Start.

To block USB storage Medias, change the value data to 4.

If you want to unblock USB storage Medias just navigate to the same location and change th value data to 3.

If you don’t want to bother tweaking registry then I’ve made a simple program to Block and Unblock USB device.

You can download it from here.

USB BLOCKER- HacksPC

USB UNBLOCKER- HacksPC

Download both of them and open it to toggle between Block and Unblock USB storage media.

You can hide it in desktop or anywhere favorable to you.

Next time I’ll be posting a tutorial about disabling copy and paste. So, don’t forget to bookmark us.

Hope this tutorial was helpful.

Easily Find The Font In Specific Website

While surfing through various web pages, you might have notices some beautiful fonts. You may even desire to know which font is it and want to have it on your website too. Comparing each of the fonts visually from your eyes with other fonts is not a good way to determine the correct type of font.

If you have basic knowledge in web development and CSS, you’ll obviously look for the source code and fetch out the CSS code to know the fonts. Again it becomes time consuming, since searching fonts in CSS is really time eating job. Also new users will find this job tedious.

We have a small firefox utility to find out the font name, code named, Font Finder.

Download it from here

This firefox addons not only determines the font name but also other various settings applied to the current font. If you are a web developer then you’ll fall in love with this tool.

Download and install it in your firefox browser by clicking on the download link.

After the installation of add-on is complete, restart firefox.

Now load any web page with beautiful text.

Highlight the the part of text you want to analyze, Right click on it, go to FontFinder menu and click on analyze section.

It will load a JavaScript alert with all the information about selected font and its settings.

Hope this tutorial was helpful.

This was guest post from the author of YouCanHack and Hacktutors.

Wednesday, October 27, 2010

Create A Dynamic Digital Clock Using JavaScript And Images

We’ve already published similar article before about creating JavaScript Date header for blog and websites. This tutorial is especially for web developers who are just learning web developing technology. In this tutorial, I am teaching you how to set up a dynamic clock in your website or blog by using a JavaScript with image digits.

Though it is not necessary to include current local time in your website, it might be pretty attracting and mesmerizing.

Now lets begin with the tutorial.

First of all we’ll be creating images of numbers “0-9” colon “:” and “AM/PM. You can create the separate images in any image editing software or you can download the bundle of images directly from here.

Now all the images needed for a digital clock is ready. Next, we’ll be assigning each image for each digits and colons. For instance, refer to the following example:

dgt1 = new Image;

dgt1.src = “dgt1.gif”;

In above sample, we defined that dgt1 will have the new image in the first line. Now, since dgt1 carries an image with it, in second line we again defined the location of source of image that dgt1 will be holding. We’ll be doing this to all of them.

dgt1 = new Image;

dgt1.src = “dgt1.gif”;

dgt2 = new Image;

dgt2.src = “dgt2.gif”;

dgt3 = new Image;

dgt3.src = “dgt3.gif”;

dgt4 = new Image;

dgt4.src = “dgt4.gif”;

dgt5 = new Image;

dgt5.src = “dgt5.gif”;

dgt6 = new Image;

dgt6.src = “dgt6.gif”;

dgt7 = new Image;

dgt7.src = “dgt7.gif”;

dgt8 = new Image;

dgt8.src = “dgt8.gif”;

dgt9 = new Image;

dgt9.src = “dgt9.gif”;

dgt0 = new Image;

dgt0.src = “dgt0.gif”;

dgtam = new Image;

dgtam.src = “dgtam.gif”;

dgtpm = new Image;

dgtpm.src = “dgtpm.gif”;

dgtcolon = new Image;

dgtcolon.src = “dgtcolon.gif”;

dgtblank = new Image;

dgtblank.src = “dgtblank.gif”;

Note: “dgt1” is just a naming and variable, you can replace it anything you want. However numbering is recommended, for example, num1, digit1, symbol1, etc.

Now we’ve assigned images to each of the values in digital clock.

Next, we’ll be creating a function that does the main work of a digital clock.

Let’s name the new function as UpdateClock. And set the needed variables to get the digital values from clock.

function UpdateClock(){

var time= new Date();

hours = time.getHours();

mins = time.getMinutes();

if (!document.images) return;

dgt = mins % 10;

document.images.minsones.src=eval(“dgt”+dgt+”.src”);

dgt = (mins – (mins % 10))/10;

document.images.minstens.src=eval(“dgt”+dgt+”.src”);

if (hours > 12)

document.images.ampm.src=dgtpm.src;

else

document.images.ampm.src=dgtam.src;

if (hours > 12) hours = hours – 12;

dgt = hours % 10;

document.images.hoursones.src=eval(“dgt”+dgt+”.src”);

dgt = (hours – (hours % 10))/10;

document.images.hourstens.src=eval(“dgt”+dgt+”.src”);

document.images.colon.src=dgtcolon.src;

setTimeout(“UpdateClock()”,30000);

}

The script part highlighted in red will determine to replace AM with PM or PM with AM. If the time hour value is greater than 12 then it will load image with PM written in it, else it will return AM image.

This JavaScript function actually shows you the digital clock with 24 hours time format. But we’ve AM/PM image which means that we’ll be showing clock in 12 hours format. Since we’ll need only 12 hours we’ll be substracting each of the value greater than 12 from 12.

Now, if it is 13 hour it will return 13-12 = 1. This is defined in code in orange color. And rest of the codes are used for setting up clock.

And at the end of the code, we’ll be calling the function:

UpdateClock();

Now we’ve created the backend of a digital clock. You’ll have to arrange all the codes above in similar format below:

The above codes goes inside the tag of your html template.

Again we’ll need to arrange the placement of the images. Following code will do it.

Orange colored HTML code will place two image sources for hour format in ones and tens numbers.

The brown colored code will place one colon image in it.

The green colored will have ones and tens minute.

The red colored will define AM/PM.

Copy the above code wherever you want inside the of your webpage or blog.

Upload all the images that you’ve created or downloaded to the root directory of your webpage.

If you are having a digital clock in index.html then put the images where index.html is located.

If everything went well, you’ll have a working digital clock.

If you still have a problem, refer to following illustrations on placement of JavaScript and HTML code.

Hope this was helpful.

Tuesday, October 26, 2010

Disable Cut, Copy and Paste in Windows

How often do you leave your PC unattended? How many people can access our workstation or home PC? And what do you keep in your hard disk? If you leave your PC unattended and anyone or few can access your home/work PC then your data and information is in risk. One can easily copy your documents and files.

You may have secured your PC by setting password. But you won’t be putting password in screensaver mode, will you?

In this tutorial I am going to show you how you can prevent your files from being copied illegally to any storage media or even inside one folder location to another location of same hard drive.

Before we begin with the tutorial, download this free utility which will be playing main role in this tutorial.

The downloaded file is a zip file; you’ll need to extract it.

After extraction install the program. Remember the location of the installation folder. It is usually in %systemroot%/Program Files/Prevent . The installer only extracts the file and while running toggles the registry values.

Go to the location where Prevent utility is installed. And open Prevent.exe.

Click on Define HotKey Field and press the shortcut keys you want to disable the copy and paste.

I clicked on the text input area of Define HotKey and pressed CTRL+ Shift + Q simultaneously.

Now Click on Activate button. After pressing Activate button, it will save the HotKey you defined with following screen:

As soon as you press activate button it will disable the copy paste feature of windows.

Now to disable it you’ll need to press the defined HotKey.

When you press the Hotkey in any part of the Windows it will enable copy/paste again with following screen:

Now go to the folder location where you’ve installed Prevent utility.

Right click on Prevent.exe, go to send to menu and create desktop shortcut.

This will create shortcut to desktop.

You may rename it whatever you want.

Now you can open Prevent utility from shortcut and always activate it if you’ve disabled it once.

This utility not only allows you to disable cut, copy and paste but also Delete, Copy To, Move To, Sent To, Renaming, Task manager’s End Process button.

Task manager before activating Prevent utility.

Task manager after activating Prevent utility.

Hope this was helpful tutorial.

Monday, October 25, 2010

Opening Two Or Multiple Pages From One Hyperlink

Posted: 19 Jul 2010 06:59 AM PDT

Once in ever you may think that is it possible to open one or more pages from just a single click? And if you have only basic knowledge on HTML and web programming you may get confused right here. Opening more than multiple pages from just a single click might be very useful especially when you want to show two different information pages about a link.

We can get a hyperlink to open more than two pages via several methods. One of them might be creating a link to a page that will open a pop-up window from it. But this may not sound practical as most of the browser have pop-up blocker enabled in it. Using pop-up cannot be good idea to open multiple pages.

Another best method can be using iframes. Iframes enables us to add two or more different pages to a single page. We can create a single page with two iframes in it and hence can add two different pages in it. Again, this idea becomes flop because; the iframes are not commonly used. Plus, it adds confusion to the visitor because of multiple information in a single page.

If you have been trying to open two pages using hyperlink and searching around the web but unable to find then you are here at right place.

I am going to teach you how you can accomplish this by just a single careful and tricky step.

We all know JavaScript, it can do lots of magic that html cannot do. If you are déjà vu at JavaScripting then you I hope you started getting hint.

Yes, we’ll be using OnClick method and window.open() function.

The default code to open a link from html is:

Onclick=”window.open(‘http://www.google.com’)”

The above code is a JavaScript code that will open Google HomePage. This is a basic code for hyperlinking using javascript.

Now let’s see at the HTML version of hyperlinking:

http://www.google.com”>Page link

We all know what that does.

Now when we add onclick parameter to the above HTML hyperlink then we can do any JavaScript magic we want.

See the example below to know what I mean exactly.

http://www.example.com” onclick=”window.open(‘http://www.google.com’);”>Page link

In above code, we added onclick parameter to tag. This will enable Page link to carry multiple function. One is default HTML hyperlinking function and another is any javascript function. OnClick is event loader, i.e. when any part of the object between this tag, , is clicked new event will be loaded which will be predefined.

In simple terms, it will load two different links.

Try the above code and play with it.

Not only can two you open unlimited number of different pages just by single click by applying this javascript tweak.

; window.open(‘#link3′)”>Page link

You can open multipage using the above pattern.

Hope this tutorial was helpful.

Saturday, October 23, 2010

Save The Current Windows Session And Restore Them Later

Posted: 18 Jul 2010 01:53 PM PDT

Have you ever needed to restart your Windows, but you may not want to lose the open windows and current situation of your desktop. Hibernation also loads the windows session but it does not actually restart your PC actually. If you really need a cold boot then you’ll obviously lose the current situation. You might have wished that you could save the current session of Windows as you can do in browsers like Opera and Firefox. You’ll never notice it’s need until you have lots of windows open and working in all of the windows at once.

Well if you are worrying about this then no more worries. I am here with a step by step tutorial to guide you through every step you need to save the current session of your desktop for later restoration.

You’ll need Cache My work which can be downloaded from here.

After the page is loaded click on green download button as illustrated in image below:

After you downloaded the program, install and open it.

Using this tool is very simple and easy. Just check on the boxes favorable to you and click on save.

Next, go to Tools > Option. In new option window check on Restore Previous explorer windows at next logon.

Now you may close the window.

Now onwards, it will start to cache your windows when system is being booted and reload the cache in next system start.

Just like hibernate, it stores the current cache of windows to seprate location of your hard drive. Since catching needs writing hard drive, you’ll feel that your system is being slow while shutting down and loading up. This is not a big deal as it takes time to read and write data to and from hard drive.

Using this technique will possibly save a lot of time. This also enables you to get familiar with the environment you were in the screen before windows restart.

Hope this tutorial was helpful.

Friday, October 22, 2010

>> How To Unlock A Cell Phone >> How To Make Bootable Flash Drive Windows 7 Installer

How To Unlock A Cell Phone

Posted: 16 Jul 2010 01:07 PM PDT

If you’re looking free and simple way to unlock your cell phone then you came to the right place. Here I present you free utility for unlocking Nokia, Siemens, Vitel, Maxel, Panasonic, LG, AEG,Samsung, and Motorola called World Unlock Code Calculator v4.4.

Just launch World Unlock Code Calculator v4.4 , type your IMEI , press calculate and you’ll get the desired unlocking code.

Download Link

What is an IMEI?

The IMEI (International Mobile Equipment Identity) is a unique 17 or 15 digit code used to identify an individual mobile station to a GSM or UMTS network

How can I find my IMEI?

The IMEI (International Mobile Equipment Identity) number can be displayed on most phones by dialing the code *# 06 #.
The IMEI is also usually printed on the compliance plate under the battery.

How To Make Bootable Flash Drive Windows 7 Installer

Posted: 16 Jul 2010 07:16 AM PDT

Ever wanted to format your PC and suddenly you remember that you’ve lost your Windows 7 disk or you find out that it’s all scratched and having problem to make it work. What next? You’ll buy another disk or get it from your friend. To help you from future problems, I am here with a step by step tutorial to guide you through the steps to make a bootable Windows 7 in Flash drive.

You may be wondering why flash drive instead of CD/DVD. The answer is clear as I’ve mentioned it above, i.e. just the minor scratches fail your DVD to work properly. Moreover if you don’t have DVD drive or you have a netbook then this trick might come pretty handy. Plus, reading data from flash drives consumes less energy resources as it doesn’t need any mechanical device to read as in DVD.

But another question may arise, DVD are cheaper than flash cards. Sorry folks but I have no answer for this. However you’ll realize its need when you really don’t have any resources to install Windows. Anyways let’s begin with the tutorial. Make sure that you have a flash drive not less than 1 GB space and also you’ll need Windows 7 installer disk or iso image. Oh yes, and you must have administrator’s privilege.

First thing to do is obvious; insert your flash card in to your computer. Since Windows 7 setup can only be booted in NTFS format, you’ll need to format your flash drive in NTFS format with any volume label.

Run command prompt and in command prompt, type diskpart.

The disk partition manager will run in DOS mode.

To check the existence of your flash drive type “list disk(without quotes). It will list all the volumes even the hidden one with the volume name.

Remember the disk number and disk space for the identification purpose. In my case it’s disk 2. Select disk by using following syntax.

Select disk #

Where, # is the disk number.

If the disk is selected it will say that disk 2 is selected.

Type, clean to clean the disk. It will notify you when its done.

Now type create primary partition and press enter. If you got confused, then refer to the following screen:

Now list the partition by using following syntax:

list partition

The partition available will be listed. Now with the help of disk space you noted previously in select disk. Remember the partition number.

Type select partition # . While # is the partition number.

If selected, the partition number is selected message will be showed.

Now type activate, to activate the partition.

You’ll get similar result as the image below:

Now you’ll need to format the drive in NTFS format by using following syntax:

format fs=NTFS

Wait until the format is complete.

After the format is complete, type assign.

Now you are done with diskpart. Type exit and press enter to exit.

Now insert Windows 7 disk or extract the iso image to your hard disk with the help of 7-zip or similar extraction software.

Now in command prompt change the directory to root location of your Windows installer. If its DVD then it might be the drive letter (in my case it’s F drive). If you have extracted it to a directory then load command prompt from there.

After you are inside the boot folder, type the following syntax:

bootsect /nt60 Z: (Where, Z is the drive letter of your flash drive)

If everything went well you’ll see the following screen:

Now, copy all the files from the Windows 7 DVD or ISO to the flash drive.

Reboot the computer. Remember to change the first boot device to your Flash drive in the BIOS.

You should be able to install Windows 7 from your USB flash drive now.

Hope that was helpful.

Update: If you don’t want to go through these mess then Microsoft has released a utility for this, you can download it from their site.

Windows 7 USB-DVD tool

Instruction