Rss Feed Like Us on facebook Google Plus
Showing posts with label How To's. Show all posts
Showing posts with label How To's. Show all posts

June 27, 2013

change internet explorer page setup programmatically with C#

Change printer setting of internet explorer with C#,basically you can change it bu updating
registry key.

Users can easily change Internet Explorer printer settings for the page margins, the header, and the footer through the Internet Explorer user interface. However, Internet Explorer and the Web Browser control do not include methods to change these settings programmatically.

The following steps outline how Microsoft Internet Explorer accesses the printer settings:

  1. Internet Explorer tries to obtain the values from the following registry key:
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup
  2. If the key in step 1 does not exist, Internet Explorer tries to create this key by copying the values from the following key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\PageSetup
  3. If the key in step 2 does not exist, default values are provided.
Checkout the below program..

using Microsoft.Win32;
 
namespace iesttings
{
    Class ie
    {
        public void ChangeIEPageSetupSetting()
        {
            string strKey = "Software\\Microsoft\\Internet Explorer\\PageSetup";
            bool bolWritable = true;
            string strName = "header";
            object oValue = "";
            string strName1 = "footer";
            object oValue1 = "";
            string strName2 = "margin_top";
            object oValue2 = "0.75";
            string strName3 = "margin_right";
            object oValue3 = "0.75";
            string strName4 = "margin_bottom";
            object oValue4 = "0.75";
            string strName5 = "margin_left";
            object oValue5 = "0.75";
 
            RegistryKey oKey = Registry.CurrentUser.OpenSubKey(strKey, bolWritable);
 
            oKey.SetValue(strName, oValue);
            Console.WriteLine("0 updated");
            oKey.SetValue(strName1, oValue1);
            Console.WriteLine("1 updated");
            oKey.SetValue(strName2, oValue2);
            Console.WriteLine("2 updated");
            oKey.SetValue(strName3, oValue3);
            Console.WriteLine("3 updated");
            oKey.SetValue(strName4, oValue4);
            Console.WriteLine("4 updated");
            oKey.SetValue(strName5, oValue5);
            Console.WriteLine("5 updated");
 
            oKey.Close();
            Console.ReadLine();
 
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
           ie obj = new ie();
            obj.ChangeIEPageSetupSetting();
        }
    }
}

Note : - Your Web Application should have rights to change the registry settings.

Read More

June 22, 2013

How To Clear SSB Interview

As we all know SSB is the toughest interview for any service in this country. Only few candidates are able to crack this interview in first attempt.
So it is very difficult to clear SSB interview.

Before I give you 11 Interview Techniques to clear SSB interview, first you need to know what you have to go through.
You have to go through 5 tough days. Here are they

Day 1: Screening Test

a) IQ Test – Verbal & Non Verbal
b) Picture Perception & Picture Description Test
For Air Force Only – Pilot Aptitude Battery Test (PABT)
a) Part 1: Instrument Reading Test – Written Test
b) Part 2: Machine Test on Computers

Day 2: Physiological Test

a) Thematic Appreciation Test – TAT
b) Self Description Test – SDT
c) Word Association Test – WAT
d) Situation Reaction Test – SRT

Day 3 & Day 4: Group Testing Officer’s tests and Interview

a) Group Discussion
b) Military Planning Exercises
c) Progressive Group Task
d) Group Obstacle Race
e) Individual Lecturette

Day4:

a) Command Task
b) Final Group Task

Day5: Conference and Results Declaration

a) Closing Address
b) Conference
c) Result Declaration
After you have gone through these stages only then you will be successful. But how do you successfully clear all these stages.
Well here are some tips that can help you to do so.

Day1: Screening Test

Technique No 1: For verbal and non verbal IQ test you need great presence of mind. I will advise you to practice a lot of course material available in the market which is really good. You can take those competitive books and practice.
Then for Picture perception and description again you need practice. It needs a lot of time. So start with the competitive exam books available in your local market.
Technique No 2: As far as PABT is concerned it is only for pilots. It is tougher than previous IQ test. So it needs some god gift skill plus little bit of luck.

Day2: Physiological Test

Technique No 3: For TAT you need great comprehension skill. You also have to develop great analyzing power. For this you need to give some time to reading passages and answering questions related to it. A lot of candidate find it very difficult because they lack concentration power. So get this right and practice a lot.
Technique No 4: SDT is all about explaining yourself. You must able to express yourself. For this you need better understanding of yourself. So you can try to talk yourself in front of a mirror and practice.
Technique No 5: WAT is all about vocabulary and able to put words together in right time and right order. You need a great sense of assimilation. So learn to play with words and using in right context. It will test your assimilation power.
Technique No 6: SRT again needs mental alertness or great presence. You have to make right decision at right point of time. You need to answer questions which are asked in particular scenario. To clear this test I advice you to meet people and talk with them. Attend seminar and answer questions of the audience. This is the best way to clear this exam.

Day3: Group Testing Officer’s tests and Interview

Technique No 7: To clear group discussion round. You must have great communicating skills. You must be able to communicate with your team and present your ideas or thought in a clear manner. It is better that you discuss a lot with your friends on different topics like politics, arts, culture etc. You can learn in your school or college.
Technique No 8: For military planning exercises you need to have a military mind. If you are going SSB interview then expect some military exercises. Here you have to find solution of war game like situation. You need to know this before hand and only then you can clear this test. Otherwise it will be difficult to clear.
Technique No 9: In progressive group task you have to work in a team. There your team working skills would be tested. So you should come prepare and work in a team to show you have a great leadership quality as well as team work quality. Then comes the group obstacle race here you have to clear obstacles or hurdles. Again this is also to test your team work capability.
Technique No 10: For Individual Lecturette your individuality would be tested. Leading from front is the first quality that you must possess. You have to have a leadership quality that can not only lead the team but also communicate with them in any situation. Here focus will be only on you as an individual.

Day4: Group Testing Officer’s tests and Interview

Technique No 11: In day 4 you have to clear all command and group task. This will again test your leadership and team work capabilities. But it will be tougher than previous day or round. Here you have to be prepared for grilling and show your real mental preparedness. You need to work on to bring out your inner fear and express yourself.
This round or day will be the last milestone that you have to cross. So start preparing from now on if you have clear this round.

Day5: Conference and Results Declaration

On the final day you do not have to do anything. Just you have to wait for the result. There will be a closing address by the officials there.
If you are selected then congratulations otherwise do not break your heart prepare for the next time.
I hope above mentioned 11 interview techniques would help you to crack one of the toughest government job interviews in our country.
I will advise you that you should start preparing from now on. Only then you will be able to clear each and every round.
If you do not start now then it is impossible to clear everything in on those particular days. Remember miracle does not happen there.
Yes there is a luck factor but fortune favors the brave.
Read More

How to make pendrive bootable

When You Have to Install Windows(Xp,Vista,7) and you don't have CD to install.then you think could i install my window with Pendrive.

The answer is Yes! but again new question arises How?if You don't Know the answer then it is By making your Pendrive Bootable.

Questions again arises like..


1. How To Boot From A USB Flash Drive?
2.How to Install Windows 7 From a USB Flash Drive or USB Hard Drive?
3.How To Create Bootable Windows 7, Vista, or XP USB Flash/Pen Drive Quickly? etc. etc.

So the Solution is Below..

Method 1.
Requirements to create bootable Windows USB:

# Windows 7 or Vista ISO

# Pen drive with 4GB+ (2 GB is sufficient for XP)

# 15 Minutes of free time


Procedure:

1. Insert your USB flash/pen drive to your system and backup all the data from the USB as your USB drive will be formatted during the process.

2. Now download WinToFlash tool (free)

Download Here.



3. Run the tool, and browse to your Windows 7, Vista, or XP DVD files (make sure that your USB drive letter is correct).

"WinToFlash starts a wizard that will help pull over the contents of a windows installation CD or DVD and prep the USB drive to become a bootable replacement for the optical drive. It can also do this with your LiveCD.


You don't have to worry about scratches on the disc or misplacing your original media discs once you transfer their contents to the flash drive. The optical drive is quickly becoming a thing of the past, especially in office environments, as media is shifted to the cloud."





4. Click Create button to begin the bootable USB process. Wait for few minutes to see the bootable USB.

5. That’s all!
Help Video



Method 2: Manually
Create Your Pendrive Bootable
bootable USB guide, here we assume that you are using either Vista or Windows 7 to create a bootable USB.
1. Insert your USB (4GB+ preferable) stick to the system and backup all the data from the USB as we are going to format the USB to make it as bootable. 

2. Open elevated Command Prompt. To do this, type in CMD in Start menu search field and hit Ctrl + Shift + Enter. Alternatively, navigate to Start > All programs >Accessories > right click on Command Prompt and select run as administrator. 

3. When the Command Prompt opens, enter the following command:
DISKPART and hit enter.
LIST DISK and hit enter. 

Once you enter the LIST DISK command, it will show the disk number of your USB drive. In the below image my USB drive disk no is Disk 1. 

4. In this step you need to enter all the below commands one by one and hit enter. As these commands are self explanatory, you can easily guess what these commands do. 

SELECT DISK 1 (Replace DISK 1 with your disk number)
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS
(Format process may take few seconds)
ASSIGN

EXIT 

Don’t close the command prompt as we need to execute one more command at the next step. Just minimize it. 

5. Insert your Windows DVD in the optical drive and note down the drive letter of the optical drive and USB media. Here I use “D” as my optical (DVD) drive letter and “G” as my USB drive letter. 

6. Go back to command prompt and execute the following commands:
6.1. Change directory to the DVD’s boot directory where bootsect lives:
d:
cd d:\boot

6.2. Use bootsect to set the USB as a bootable NTFS drive prepared for a Vista/7 image. I’m assuming that your USB flash drive has been labeled disk G:\ by the computer:
bootsect /nt60 g: 


(Where “G” is your USB drive letter) 

7. Copy Windows DVD contents to USB. 

You are done with your bootable USB. You can now use this bootable USB as bootable DVD on any computer that comes with USB boot feature (most of the current motherboards support this feature). 

Method:3.
Help Links.
http://www.unp.me/f140/make-bootable-pen-drive-windows-xp-live-46352/
http://www.bootdisk.com/pendrive.htm 


 
follow me on twitter
Subscribe me on Facebook
Read More

April 13, 2013

Automatically Logon to Windows XP without username and password

If security isn't a big issue for you, configuring 
Windows XP to logon to your user account automatically can save you a little time and effort when your PC is starting up.
Just follow the easy steps outlined below to make Windows XP automatically logon to your user account. After completing these steps, Windows XP will stop prompting for a user name and password when your computer starts up!


To Automatically Logon to Windows XP without username and password follow these steps.

STEPS:

  1. Click on Start and then Run. In the Open: text box, type the following command:
    control userpasswords2
    
    Press the OK button.
    This command will load the Advanced User Accounts Control  Panel applet.
  2. In the Users tab, uncheck the box next to Users must enter a user name and password to use this computer.
  3. Click on the Apply button at the bottom of the User Accounts window.
  4. When the Automatically Log On dialog box appears, enter the user name you wish to automatically login with. Then enter your account password in the two fields where it's asked.
    Click the OK button.
  5. Click OK on the User Accounts window to complete the process.
    From now on, when your PC starts up, Windows XP will logon automatically.
Read More

March 6, 2013

Task Manager Disabled in Windows XP, Enable It.

Question: - How to Enable Task Manager in Windows XP?
Problem: It is due to some kind of virus/ trojan activity which normally disables the task manager.Now due to this problem when ever the user press alt+ctrl+del to launch windows task manager it gives an error saying “Task Manager is being disabled by your administrator”.
Solution:
To Enable the Disabled Task Manager on your system
1. Press window key+r to show run prompt
2. Follow the following steps
  1. Enter gpedit.msc in the run prompt and click OK
  2. In the Group Policy settings window
  3. Select User Configuration
  4. Select Administrative Templates
  5. Select System
  6. Select Ctrl+Alt+Delete options
  7. Select Remove Task Manager
  8. Double-click the Remove Task Manager option’.
  9. Set the property of this item as disabled.
______________________________________________________________________
For Those who use Windows XP Home Edition can use the registry to enable Task Manager
1. open start >> run and type regedit 
2. Navigate to the following path:
Hive:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System 
3. You will find a registry key with name DisableTaskMgr of type: REG_DWORD
4. Double click the key with and set the Value to 0
5. Exit the registry and restart to see the effect.
If you still get problems in enabling the disabled task manager on your windows XP system , please let us know through your comments
Read More

April 23, 2012

Clean Your RAM using Notepad

Are you fed up of your computer working slow? Or you are tired of restarting your computer again and again due to its slowness?

This problem might occur due to RAM because at the time RAM might be full of remaining progress pieces which you are working with and you do not need them anymore. So, if you deleted or erase all those unnecessary piece of information, your RAM will be clean and your computer would work faster.

For doing so you can download or get software that can keep your RAM free, if anyone doesn’t have any software, then you can follow the tutorial that I am going to mention.

Steps to clean your RAM using Notepad
  • Open your Notepad.
  • Type FreeMem=Space(128000000)
  • And save the file in any location that you like, named “CleanRAM.vbs
  • Now run the file.
  • It will free memory in your RAM
If you want more memory to be free in your RAM, then you can use following codes instead of that mentioned in point2.
  • FreeMem=Space(24000000), for 24 MB
  • FreeMem=Space(32000000), for 32 MB
  • FreeMem=Space(64000000), for 64 MB
  • FreeMem=Space(72000000), for 72 MB
  • FreeMem=Space(128000000), for 128 MB
  • FreeMem=Space(256000000), for 256 MB
NOTE: Do not select the code that exceeds the memory than your RAM’s capacity
Read More

April 21, 2012

Create New Folder using Keyboard

How to create “New Folder” using keyboard shortcut


Generally we create a “New Folder” using mouse. By right clicking and then going to new and clicking Folder.

But can we create a “New Folder” using
keyboard shortcuts? The answer to it would be YES!
 

To create a “New Folder” by keyboard shortcut- Hold down Alt key + F. Then, let go of Alt key, press W and then press F.

The above keyboard shortcut would work for
Windows Xp and Windows Vista.

Windows 7
is much user friendly, so you can simply press Ctrl + Shift + N. This will instantly create a “New Folder” in Window 7.
Read More

Create an invisible folder in windows

Have you ever had a folder on your desktop that you wanted nobody to see or want it to be hidden from each and every person except you?


Now you can make your folder truly invisible but then you have to remember where you placed it. This is a very funny trick and works greatly in Window 7.

With the steps mentioned below you can create a folder which nobody would be able to see:
  • Using your mouse, click right button of it and create a new folder.
  • Click on rename option. Delete the name of the folder so that nothing is written there.
  • Now hold down “Alt” key and type 0160 using number pad and then release the Alt key.
  • Now just click anywhere outside the folder. The folder will be created with an invisible name.
  • Now you are required to change the icon to make the folder hidden. Right click on the folder and then to properties followed by Customize, then select a blank icon to make the folder invisible. Then click on apply and then OK.
And, you have a folder which is invisible.

See Video




Read More

April 10, 2012

Download Wikipedia Articles for Offline Reading

Would you like to download the entire Wikipedia on your computer or mobile phone for offline reading? Well, here are some good options to consider.

Wikipedia, the world’s largest encyclopedia, provides database dumps of all their wikis that one can download for free and thus access the entire Wikipedia content on computers that are not connected to the Internet.

The database dumps are frequently updated and include every single article that’s available on the main Wikipedia website. The dumps are available as .xml.bz2 files that you can easily open on your computer using the free and portable WikiTaxi software.

WikiTaxi ships with an importer that will first un-compress the Wikipedia database files (.bz2) and then converts them into a .taxi file format. Now you open these .taxi files inside WikiTaxi just like the way you open .doc files inside Microsoft Word. If you are running low on space, the original Wikipedia dumps can be safely discarded.

A good alternative to WikiTaxi is Kiwix – this is also free software and available for Mac, Windows and Linux systems. You need to install the Kiwix software on your computer and then download one of the Wikipedia editions – the articles are packaged as .zim files that will open directly inside Kiwix without requiring any conversion.

The latest .zim package for various editions of Wikipedia can be downloaded from kiwix.org using any download manager or you can use this .torrent file to download using any BitTorrent client. This is 9.7 GB file and includes all the text of Wikipedia pages but no images.

Kiwix is definitely easier to use than WikiTaxi and the packaged .zim files can read across all popular platforms but the downside is that, unlike the database dumps used by WikiTaxi, the .zim files aren’t very frequently updated. Also, the zim package for English Wikipedia doesn’t include every article though the packages for other languages are complete*.

If you have an iOS device – like the iPhone, iPad or iPad Touch – you may grab the excellent Wiki Offline app and carry all the Wikipedia articles in your pocket. The app renders Wikipedia articles in a beautiful interface and supports tabbed browsing so you can open multiple articles side by side. Wiki Offline is also available in the Mac App Store for your Mac OS X.

The other option for using Wikipedia offline is WikiReader – this is a 3.5” monochrome device with a capacitive touch screen and contains over 3 million Wikipedia articles. The  updates to Wikipedia articles are released every quarter – you can update the device by connecting it to your computer – or you opt to receive updates on SD cards.

The WikiReader device costs  $99 and though I haven’t tried it myself, it did get a huge thumbs-up from Ars Technica. You definitely don’t need this if you carry a smart phone that is always connected to the Internet but could be a good reference tool for the rest of us with an impressive battery life – much like the Kindle.
Read More

March 29, 2012

Reduce the File Size of Google Fonts for your Website

Google Fonts is a collection of open fonts that you can use in your websites, documents and other design projects without any restrictions around licensing.
It takes a single line of code to embed any of the Google Font families into your website design. Just substitute the font family in the following code (line #2) with the name of Google Font and copy-paste it inside the <head> tag of your HTML template.
<link href="http://fonts.googleapis.com/css?family=GOOGLE_FONT_FAMILY_NAME" rel="stylesheet" type="text/css" />

Google FontsPage Speed and Google Web Fonts

While Google Fonts can make your website look good, there’s one related problem – they increase the page load time of your website because the font files have to downloaded on the visitor’s computer and some of them, like the Cabin Sketch font, can exceed 100 KB in size.
There is however an easy workaround to help you reduce the file size of the Google Fonts so that they do not reduce the load time of a web page. Instead of using the entire Google font family, you can specify a limited set of letters or digits that are used in your text and Google will dynamically generate a new font file containing only the requested characters.

How to Reduce the Size of Google Font Files

All you have to do is add a new text parameter to the Google font request URL and value of this parameter will have all the letters that you need.
For instance, if I need to render the text Digital Inspiration in Cabin Sketch font, the modified CSS requesting the Google font file will look something like this:
<link href='http://fonts.googleapis.com/css?family=Cabin+Sketch&text=DigitalInspiration' rel='stylesheet' type='text/css' />
The original Google font file was around 101 kb but with this limited text, the font file is reduced to 7.6 KB.
google_fonts_characters
Google Fonts are commonly used to render the text of logos and and headings (h1, h2, h3, etc.) on a web page so you can modify the CSS accordingly. Alternatively, if you wish to request all alphabets and numerals in the Google Font but none of the extra glyphs, your font CSS will looking something like this:
<link href='http://fonts.googleapis.com/css?family=Cabin+Sketch&text=1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz%20' rel='stylesheet' type='text/css' />
The font file in this case is 37 KB in size and that’s still 64% lower than the original Google font file. Also, if you are wondering why I have included %20 in the text list, it represents the encoded space character. Similarly, you can add %27 and %22 to the list for single quote (‘) and double quote (") respectively.

Read More

© 2011-2016 Techimpulsion All Rights Reserved.


The content is copyrighted to Tech Impulsion and may not be reproduced on other websites.