Pages

Showing posts with label Important Topics. Show all posts
Showing posts with label Important Topics. Show all posts

Monday, September 10, 2012

Create Multiple Folders And Sub-Folders Easily In One Go

Using Batch (BAT) Command

The First method for creating multiple folders requires using the Batch (BAT) file. First you create a root folder in which you want your other folders to appear. Once done, create a text file in root folder and enter the md command in following way.
md <folder name>/<sub-folder name>

For example,
md Music
md Videos
md Pictures
md Documents
md C:\User\Test\Desktop\AddictiveTips\Documents\Home


Saturday, August 25, 2012

Master These Keyboard Shortcuts For Text Editing

Selecting Text

One of the most useful things you can do with text editing keyboard shortcuts is selecting bits of text. It speeds things along a great deal when writing.

Select one character at a time. – Shift+Left or Right Arrow
Select one line at a time. – Shift+Up or Down Arrow Keys
Select one word with each arrow press. – Shift+Ctrl+Left or Right Arrow
Select current paragraph. – Shift+Ctrl+Up or Down Arrow
Select text between the cursor and the end of the current line. – Shift+Home
Select text between the cursor and the end of the current line. – Shift+End
Select all text. – Ctrl+A

Monday, March 26, 2012

Save your data in a Secret notepad

1) Open command Prompt (type cmd in run).

2) You may change to any directory where you want to save that file.
3) Type notepad filename.txt:StoreHiddenData then press enter. here filename is name of file for example if i want to create a notepad file of name secret then i will write notepad secret.txt:StoreHiddenData. This will create a text file secret.txt.
4) A message will be pop up Cannot find the D:\secret.txt:StoreHiddenData.txt file. Do you want to create a new file?, click OK button to proceed create the new file.
5) A notepad will be pop up. Type data that you want to hide from others. Save the file and you are now successfully creating hidden data for this file.
6) close cmd.
A notepad file secret.txt is successfuly created which contains hidden data. When you open secret.txt, it seems empty. Actualy your data is hidden so you are not able to see it. 
If you want to see your hidden data then open cmd and type notepad secret.txt:StoreHiddenData. A notepad file will be pop up which contains hidden data.

Change the password of any computer using command prompt

1. Open Command Prompt, if you don’t know where is it, click Start- All Programs-Accessories-command prompt
2. After you see a black window pop-up type ‘ Net User ‘
3. You will see a little information about all accounts in your computer
4. You should choose account you want to hack
5. For example you want to hack account Sanzar, you should type ’ Net User Sanzar and press enter ‘.
6. Now you are seeing full information about Sanzar’s account
7. For changing Sanzar’s password, you should type ’ Net User Sanzar * ‘ and it then show you how to change Sanzar’s password
8. If you can’t understand the command line, you just type ‘ Net User Sanzar the new password ‘.
9. Say it you want to change Sanzar’s password to 123456, you should type ‘ Net User Sanzar 123456 ‘
10. Now, you successfully change Sanzar’s password to 123456.

N.B.: Do not harm others.

Sunday, March 25, 2012

Tips to Quick Access to Windows 7 Functionality

Keyboard shortcut Function
Windows logo key   Open or close the Start menu
Windows logo key+B Select the first icon in the notification area of the
taskbar
Windows logo key+D Minimize all open windows
Windows logo key+E Open the Computer window
Windows logo key+F Open the Search window
Windows logo key+G Select or move between desktop gadgets
Windows logo key+L Lock the computer
Windows logo key+M Minimize all open windows
Windows logo key+Shift+M Redisplay the windows
Windows logo key+P Display the Projection controls
Windows logo key+R Open the Run dialog box
Windows logo key+T Select or move between taskbar buttons
Windows logo key+U Open the Ease Of Access Center window
Windows logo key+X Open the Windows Mobility Center
(portable computers only)
Windows logo key+Spacebar Make all open windows temporarily transparent
(Aero-capable computers only)

Monday, February 13, 2012

Remove Navigation bar from your blog

1 . Backup your template for safety issues.
2 . Go to Dashboard > Template > Edit HTML
3 . Check the box of Expand Widget Template .
4 . Find the following code by pressing Ctrl + f
     </head>
Replace it with the code given below.
<style type="text/css">
    #navbar-iframe {   height:0px;   visibility:hidden;   display:none   }
    </style></head>
5 . Save your template.

Tuesday, February 7, 2012

Add a Sitemap to your Blog

Step 1: Log in to your blogger blog and go to the dashboard.
Step 2: Go to Pages --> New Pages
Step 3: Add a desirable title of it. I recommend "Sitemap"
Step 4: Now Open HTML portion of description by clicking on "Edit HTML".
Step 5:  Now copy the following code from below and paste it in your edit html area.

Friday, January 13, 2012

Hide a folder

Follow the following techniques to hide a folder:
 
         1. Suppose we want to hide the folder “ABC”, which is situated at Drive C:\  
         2.Go to Command Prompt (Start --> Run --> cmd).
         3. Type attrib +s +h C:\ABC and press Enter.
         4. It will hide your folder. 
         5. To make it visible again you must go to command prompt and type attrib –s –h C:\ABC and press Enter.

Sunday, January 8, 2012

Delete the Temporary file of Windows 7 Automatically

1. Open Notepad
2. Copy paste the code given below

cd C:\Users\%username%\AppData\Local
rmdir /S /Q Temp

3. Save that as sq.bat
4.Double click on it to delete all the temporary files.

To do it automatically,
1. Go to Start Menu ---> All Programs ---> Startup ---> Right Click on it ---> Click Explore
2. Paste the sq.bat file there.

By doing this, it will always delete the temporary files at the start of the windows.

Monday, November 21, 2011

8086 interview questions

8086 interview questions 
  1. What are the flags in 8086? - In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.
  2. What are the various interrupts in 8086? - Maskable interrupts, Non-Maskable interrupts.
  3. What is meant by Maskable interrupts? - An interrupt that can be turned off by the programmer is known as Maskable interrupt.
  4. What is Non-Maskable interrupts? - An interrupt which can be never be turned off (ie.disabled) is known as Non-Maskable interrupt.
  5. Which interrupts are generally used for critical events? - Non-Maskable interrupts are used in critical events. Such as Power failure, Emergency, Shut off etc.,
  6. Give examples for Maskable interrupts? - RST 7.5, RST6.5, RST5.5 are Maskable interrupts
  7. Give example for Non-Maskable interrupts? - Trap is known as Non-Maskable interrupts, which is used in emergency condition.
  8. What is the Maximum clock frequency in 8086? - 5 Mhz is the Maximum clock frequency in 8086.
  9. What are the various segment registers in 8086? - Code, Data, Stack, Extra Segment registers in 8086.

Wednesday, July 13, 2011

Difference between BFS and DFS


Breadth-first search (BFS) and depth-first search (DFS) are the two algorithms used for traversing and searching a node in a graph. They can also be used to find out whether a node is reachable from given node or not.
In depth-first search traversal  we try to go far from the root node.  Nodes are visited by going through the depth of the tree from starting node. When we reach at the node which does not have any children then we backtrack and visit the child nodes on another branch.
The depth-first search traversal of above graph will be:

A  B  E  F  C  D

Tuesday, June 14, 2011

An Introduction to Programming Contest (Various Input\Output Systems)

If you are a beginner, you will find it very unusual sometime regarding taking inputs. Some problems will say, "The Program will continue till the END OF FILE:, some will say "Stop taking input if N=0" etc etc. Some important ways to take input will be described here:

1. If you are said to take an integer number (n) as input till the End Of File/ (EOF):
 
 
int main(){
    int n;
    while(scanf("%d", &n)!=EOF){
         ...........
         ...........
    }
    return 0;
}

Sunday, June 5, 2011

File Input/Output

There are various ways to take input from file and show the result in another file. 

We can use fopen() for taking input from a file or to show output in a file. It is the easiest way to do so. First, we have to open the files and at the end we just need to close the file. An example is given below:

Suppose we want to take input from the "input.txt" file and want to store the results in the "output.txt" file. The code for this is given below:

#include<stdio.h>
int main(){
    int T, ans;
    int cm, y, ssu, ssa, f;
    int b, gs, gc, w;
    freopen("input.txt","r", stdin);
    freopen ("output.txt","w",stdout);
    scanf("%d", &T);
    while(T--){
               scanf("%d%d%d%d%d", &cm, &y, &ssu, &ssa, &f);
               scanf("%d%d%d%d", &b, &gs, &gc, &w);
               ans = b + (gs/30) + (gc/25) + (w/10);
               printf("%d\n", ans);
    }
    fclose(stdin);
    fclose(stdout);
    return 0;
}

Wednesday, June 1, 2011

memset (cstring (string.h))

memset:
memset is such a library function which is rarely used in practical. Suppose, in an array, for some certain values you have to make that true. And for any other values that will be false. In this case you have to change all the elements of the array to false first, and then you can make that true for those specific values. memset is the easiest way to do this. An example of it is given below:

bool row [10000 + 5];
bool col [10000 + 5];
memset (row, false, 10005);
memset (col, false, 10005);


memset:
void * memset ( void * ptr, int value, size_t num );


Fill block of memory Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char).

Parametersptr
Pointer to the block of memory to fill.
value
Value to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.
num
Number of bytes to be set to the value.

Return Valueptr is returned.

Example

/* memset example */
#include <stdio.h>
#include <string.h>

int main ()
{
  char str[] = "almost every programmer should know memset!";
  memset (str,'-',6);
  puts (str);
  return 0;
}

Output:
------ every programmer should know memset!

Tuesday, March 29, 2011

Complete C++ Guide


The Complete C++ Guide


What is C++?
C++ (pronounced "See plus plus") is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features.

What is C++ used for?
For big software projects that require high performances. Most major applications and games are made in C++.
Examples:
Photoshop, Firefox, Winamp, Counter Strike...

Short list of C++ compilers:
For Windows:
Microsoft Visual C++ Express
Borland C++ 5.5
CodeBlocks
DevCPP
For Linux:
G++(contained in GCC which comes preinstalled in most distros)
Intel C++ (free for noncommercial use only)

For Mac OS X:
Apple C++
Xcode
GCC

How to install animated label cloud in your blog


How to install Blogumus in your Blogger layout
Installing Blogumus in your Blogger layout is surprisingly simple! You should only need to copy and paste a section of code to your Blogger template, though any tweaks for the style of display will require some manual editing. Here are the steps required to install Blogumus in your Blogger layout: Go to Layout>Edit HTML in your Blogger dashboard, and search for the following line (or similar):

<b:section class='sidebar' id='sidebar' preferred='yes'>

Immediatly after this line, paste the following section of code:

Sunday, March 20, 2011

Manipulating MySQL with PHP


Manipulating MySQL with PHP
Beginners Tutorial
.
Introduction

If you do not know what MySQL is, then I suggest reading the spoiler below.

MySQL is a widely used program that allows anyone to easily create and host their own database. MySQL is free and can be set up in a matter of minutes. When you create your own database, you will need to remember your host, your username, and your password. Many website hosting sites have included MySQL database support, which means you can use the MySQL database they provide for you and edit it within the host site's Control Panel without having to download MySQL onto your hard-drive. For simple needs, and for safety reasons, using provided MySQL service from a website hosting sites may be the best choice for you.

Saturday, January 8, 2011

Sieve Algorithm Implimentation

Sieve is a popular algorithm. It is used to detect the prime numbers between two numbers.  

Code:
#include<stdio.h>
#include<math.h>
#define max 10000000
char p[max];
void sieve()
{
long i,j,c=0,x=0;
for(i=2;i<max;i++) p[i]=1;
for(i=2;i<=sqrt(max); )
{

for(j=i+i;j<=max;j+=i)
p[j]=0;
i++;
for( ;!p[i];i++);
}
for(i=0;i<=max;i++)if(p[i])x++; /*This 2 lines for checking the number of primes between 0 & 10000000.*/
printf("%d",x);

}
int main()
{
sieve();
return 0;
}

Wednesday, January 5, 2011

Matrix Multiplication

Download the following file if you have problem regarding Matrix Multiplication or Matrix Chain Multiplication or to find the optimal parenthesize of MCM.


or,

Sunday, December 26, 2010

Offline w3school

At w3schools.com you will learn how to make a website. They offer free tutorials in all web development technologies. In-spite of learning online I am giving you a download link to learn everything from w3school being offline (no internet connection needed). Just download the attachment.