Friday, 25 October 2013

password protect folder

password protected folder in windows 7

 windows 7 does'nt support the password  protected folders.For password protection of folder there are many software available in the market.

But below is the program for password protection of folder and so you will not need any software

cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== ***type you paasword here*** goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End 

At the place of ***type your password here*** delete it and type whatever password you want to keep for your folder without asteriks.

 copy this code in notepad and go to save as change file type to all files and save the file with.bat extension

 then at last run the file.

if you have any problem or you require more programs like this then comment below your suggestion or queries.

capturing instant images from anywhere


How To Trick Someone With A False Desktop Background

 

Want to trick your friend with a false desktop background then follow the following steps:

Step 1: go to your laptop’s desktop background and press PrntScr tab from keyboard

Step2:go to paint and press Ctrl+V tab from keyboard and then save it

Step 3: then set the saved file as desktop background

 

For example see the false desktop background given below:

 

By setting the saved file as desktop background any one will feel that its original desktop background..When they will click the desktop icon’s it will have no effect..hence this is an effective way of fooling anyone..

 

You can set anything as desktop background by following the above steps.. You can capture scenes from games,capture moments from movies, capture pics, capture any page in fb,skype,twitter etc

 

Thursday, 10 October 2013

solve slow boot and system load problems


Tweaks to solve system boot , slow loading problems

 

Do your system boots slowly ????

Do your system loads desktop slowly ??

All your problems are solved here by technocrats

 

Follow the steps carefully…………

1)    Press window key + R and type msconfig

2)    Go to general tab

3)    Check all boxes for selective startup

4)    Go to startup tab

5)    Uncheck boxes for adobe list of all programs,IDM,etc. any program you don’t want to run on startup

6)    Click on services tab

7)    Uncheck all the applications and services you don’t use often, if you have oracle installed then uncheck it.   

Reboot your system

If problem yet persist……

 

Download  advanced system care Pro software from any site google it and you will get many download links

The setup is of 9.7mb

Install it don’t worry it will not harm your system click on care and wait for 10mins it will make everything ok

Then click on utilities and try more things if you want

Never click the booster on

Again type on window key +R and write %temp%

Hit enter

Delete all files in the folder if some files prompts as cant be deleted ignore it

Empty your recycle bin then.

Restart your system

 

Yet problems are there………….????

 

Unscrew your CPU or laptop

Unplug harddisk cable

Clean all dirts with  a painting brush slowly

Let it be cooled for 30minutes fit all the parts

Start and see the problem will be gone

 

IF the problem is still there then you need to format your system

If problem is solved by step 3 then change your cooling fan of CPU

 

For any assistance comment below your comments are valuable to us

As it will help us to learn more                                                                                                                                                      

Sunday, 25 August 2013

Complete stack program using switch case:


#include<stdio.h>
#include<conio.h>
#define max_size 40
typedef struct stack
{
        int element[max_size];
        int tos;
        }stack;
       
        void init_stack(stack *);
        void push(stack *,int item);
        int pop(stack *);
        void display(stack *);
       
        int main()
        {
            stack s;
            int i;
            int ch;
            init_stack(&s);
            push(&s,1);
            push(&s,2);
            push(&s,3);
            push(&s,4);
            push(&s,5);
           
            while(ch!=4)
            {
                   printf("\n press 1 to push \n");
                   printf("press 2 to pop \n");
                   printf("press 3 to display \n");
                   printf("press 4 to quit \n");
                   printf("enter your choice: \n");
                   scanf("%d",&ch);
                   switch(ch)
                   {
                       case 1:
                       printf("\n enter the element to be pushed \n");
                       scanf("%d",&i);
                       push(&s,i);
                       break;
                      
                       case 2:
                       i=pop(&s);
                       printf("\n you have popped value %d \n",i);
                       break;
                      
                       case 3:
                       display(&s);
                       break;
                      
                       case 4:
                       break;
                      
                       default:
                       printf("\n wrong choice try again \n");
                      }
                  }
                 getch();
                }
                                                         
                void init_stack(stack *s)
                {
                      s->tos=-1;
                }
                                                              
                void push(stack *s,int item)
                {
                     if(s->tos==max_size-1)
                     printf("overflow situation \n");
                     else
                     {
                           s->tos=s->tos+1;
                           s->element[s->tos]=item;
                      }
                 }
                                                                       
                int pop(stack *s)
                 {
                      int data;
                      if(s->tos==-1)
                      {
                          printf("underflow situation \n");
                          return NULL;
                       }
                       else
                       {
                           data=s->element[s->tos];
                           s->tos=s->tos-1;
                           return(data);
                        }
                  }
                                                                                             
                  void display(stack *s)
                  {
                      int i;
                      if(s->tos==-1)
                      printf("stack is empty, nothing to display \n");
                      else
                       {
                           for(i=s->tos;i>=0;i--)
                           printf("%d ",s->element[i]);
                      }
                   }
                                                                                             
                                                               
                                        
           

How we can see hidden files from pendrive


go to cmd(command promt)
and write the drive name of pen drive and then write the command as follows:
attrib -s -h /s /d *.*


for example:

J:
attrib -s -h /s /d *.*


Here, 'J' is the drive name.. while writing the command take proper care of the spaces...attrib then space then -s then space then-h then space then /s then space then /d then space then *.*

Saturday, 17 August 2013

static charge detector

 Current leakage detector

Introduction:

This is a static charge detector circuit.It detects the leakage of charge from any circuit,mains,within walls,etc.

Now a days wiring in houses are done within the walls and in the condition of charge leakage it becomes impossible to detect where is the fault.In such cases the whole wall has to be broken down for repairing.

This causes loss of time and money.It is a major problem in almost all building and appartment in this modern age.

To provide beautification to houses,flats and shops the interior wiring is done within walls but during the problem in electric faults it also causes heavy loss of money.

 
Circuit:

Components: 1) resistors(100k,100k,220k)

                        2) 3 transistor BC547

                        3) 6v dc supply

Description:

 

 Here 3 BC547 transistor are used.

the emitter of every transistor is connected to the base of other.

at the place of detector you have to use any metal or conductor.Here the 3 transistor are used with 3resistors

220k resistor is used at last transistor to provide perfect voltage drop across the Led to make it work.

other two transistor is used with 100k resistor.

Here the circuit works on the principle of charge gain the charge detected is multiplied by gain to give the result in form of led glow.

the gain is simple 100k*100k*220k

the detector is capable of detecting any static charges.

 For any further assistance or problem kindly comment below,

We appreciate your comment and feel pleasure in answering your queries because it makes us gather more knowledge and improve our post.

Wednesday, 7 August 2013

wireless remote control car


WIRELESS REMOTE CONTROL CAR


 REQUIREMENTS:   
                               1) ASK TRANSMITTER RECIEVER PAIR(100mhz
                                2) HT12E(ENCODER)  AND HT12D (DECODER)
                                3) 750K,33K (RESISTORS)
                               4) 0.01UF (CAPACITOR)
                               5) 2PIECES  9V  BATTERY
                              6) 4 PIECES OF WHEEL 7CM DIAMETER
                              7) 4 PIECES GEARED MOTOR 500RPM
                              8) A PIECE OF PLYWOOD(SQUARE)


 CIRCUIT DIAGRAM:

 


 CIRCUIT EXPLANATION:



 

THE RED LINE IN THE CIRCUIT DIAGRAM IS THE ANTENNA.



PIN NO. 1-9 OF BOTH ENCODER AND DECODER IS GROUNDED SO THAT THE ADDRESS



OF BOTH ENCODER AND DECODER REMAINS THE SAME.



2 DPDT SWITCHES ARE REQUIRED



THE CONNECTION OF DPDT SWITCHES IS DRAWN IN THE DIAGRAM.



THE +VE OF THE SWITCH 1 IS CONNECTED TO D0 AND THE -VE IN D1



SIMILARLY THE +VE OF SWITCH 2 IS CONNECTED TO D2 AND THE -VE IN D3



PIN 14 IS ALSO GROUNDED.







DONT GET CONFUSED WITH THE +VE AND -VE OF SWITCHES WHICH IS TO BE CONNECTED TO THE 9V BATTERY.



SEE THE DIAGRAM CAREFULLY AND UNDERSTAND IT.







SAME 9VOLT BATTERY CAN BE USED FOR SWITCH AND TRANSMITTER CONNECTION.







IN THE TRANSMITTER AS WELL AS RECIEVER PART THAT IS HT12E & HT12D, A OSCILLATOR IS CONNECTED WITH PIN 15 AND 16 THEREAFTER THE RESISTORS ARE CONNECTED.



IN THE RECIEVER A434 PIN 6&7 IS SHORTED AND CONNECTED TO PIN 1 AND THEREAFTER GROUNDED.



PIN 2 IS CONNECTED TO PIN 14 OF HT12D



PIN 3 IS CONNECTED TO PIN 17 OF HT12D



PIN 4&5 IS SHORTED AND CONNECTED TO PIN 18 OF HT12D



OUTPUT FROM PIN 13 IS CONNECTED TO  +VE POINT OF BOTH THE WHEEL OF ONE SIDE OF CHASIS



 AND OUTPUT FROM PIN 12 IS CONNECTED TO -VE POINT OF BOTH THE WHEEL OF ONE SIDE OF CHASIS



OUTPUT FROM PIN 11 IS CONNECTED TO  +VE POINT OF BOTH THE WHEEL OF OTHER SIDE OF CHASIS



 AND OUTPUT FROM PIN 10 IS CONNECTED TO -VE POINT OF BOTH THE WHEEL OF OTHER SIDE OF CHASIS



  CONTROLLING OF CAR:


 SWITCH 1               SWITCH2                        MOTION

 FORWARD              FORWARD                       FORWARD

 BACKWARD           BACKWARD                    BACKWARD

FORWARD                OFF                                    RIGHT TURN

OFF                            FORWARD                        LEFT TURN

FORWARD                OFF                                      360 DEGREE TURN


  EXTRA THEORY:


  EVERY SIGNAL CAN BE TRANFERRED OVER THE SPACE IN A FORM OF 0 AND 1 WHERE 0 REPRESENTS LOW VOLTAGE AND 1 REPRESENT HIGH VOLTAGE.

HERE ENCODER ENCODES THE INSTRUCTION IN 0 AND 1 FORMAT AND THE DECODER AGAIN DECODES IT TO INSTRUCTIONS TO BE PERFORMED.

 TRANSMITTER IS THE ONE WHICH TRANSMITS THE ENCODED SIGNAL AND RECIEVER IS THE ONE WHICH RECIEVES THE TRASNMITTED SIGNAL.

THE TRANSMITTER   HAS 8 BIT ADDRESS BUS WHICH IS PIN NO. 1 TO 9

AND SIMILARLY RECIEVER HAS 8 BIT ADDRESS BUS FROM PIN NO. 1 TO 9.

SO HERE BOTH ARE GROUNDED FROM PIN 1 TO 9 SO THAT THE ADDRESS REMAINS THE SAME.

IF THE ADDRESS IS NOT SAME THEN THE SIGNAL TRANSMITTED IS NOT RECIEVED BY THE RECIEVER.
 

  FOR MORE KNOWLEDGE ON ENCODER,DECODER FOLLOW DIGITAL ELECTRONICS BOOK BY ANAND KUMAR OR RP JAIN.

AND FOR TRANSMITTER-RECIEVER  FOLLOW ANALOG COMMUNICATION BY BPLATHI &AK LATHI OR SANJAY SHARMA





 
  THE CIRCUIT IS MADE AND TESTED BY ME, IF YOU HAVE ANY PROBLEM REGARDING THE CIRCUIT THEN PLEASE COMMENT BELOW.


ratan.singh@ieee.org

Thursday, 27 June 2013

c program to make password protected folder

This is a program to open any folder in c drive in which you have set a password...


 #include<stdio.h>
 #include<conio.h>
 #include<string.h>
 #include<stdlib.h>
 #include<process.h>

 int main()
 {
    char string1[20]="abcdefgh";
    char string2[20];
    int i;
    printf(" enter password for the notepad file that you want to open \n ");
    gets(string2);
    i=strcmp(string1,string2);
    if(i==0)
     {
      printf(" password is correct ");
      system(" explorer c:\\bluej ");
     }
    else
    printf(" invalid password enter the correct password ");
getch();
}
Here, the program is written in dev c++ instead of void , int main() is used...."abcdefgh" is the password name and "bluej" is the folder you want to open..you can write any other folder name and give any other password....
and note that the folder which you want to protect by password has to be hidden
to do that ..........
  1) right click on the folder icon
  2) go to properties
  3) under the general tab click on hidden tab.........

if you have any problem or suggestion your comments are invited.....

Saturday, 22 June 2013

c program coding

   C program to open files in pc

this is a program to open notepad.exe in your desktop you can change the file names to open any files by specifying the correct path and following the same codes..........

c program is the easiest of all programming but just learning to add numbers or matrices has no use because a calculator can even do that.

the main utility of this language is to build a software and even can be used to build up games and viruses.

science can be use for destruction as well as for helping the people and i dont go for destruction so i am not going to post anything about making virus with c language to harm pc or any other systems.

this program opens the notepad

   #include<stdio.h>
             #include<conio.h>
             #include<stdlib.h>
               #include<process.h>
             int main()
             {
                system("C:\\windows\\notepad.exe");
                getch();
             }

 <process.h> is a predefined library  header file used with <stdlib.h> to interface the program with the files stored in pc. 

we can use this code method to make more complex program to run different files and work on them.......

the program is written in dev c++ if you write it in turboc++ then instead of int main() use void main()

for any further assistance or query or suggestions  your comments are invited. 

Monday, 17 June 2013

8051 interfacing with the buzzer

8051 interfacing with the buzzer

 components:  1) AT89C51 microcontroller

                       2) crystal oscillator

                       3) k1 buzzer

                       4) 4.7k resistor

                      5) 2 pcs 0.01uf capacitor

                      6) 5v power supply

                      7) inverter

Description: this is the post about interfacing microcontroller with a k1 buzzer.

                    pin 40 and 31 is connected to vcc(5v). port 1.5 is connected with

                    a inverter and then to the buzzer.pin 18 and 19 are connected to a crystal oscillator with    ceramic 0.01uf capacitor.

  The buzzer gets turned on when port 2.3 is high.

For resetting the buzzer pin 31 and 3 are connected together with 1uf capacitor and and then connected to ground through 8.2k resistor.

 CODE: 

org 00H

HERE: JNB P2.3,HERE                        ;keep monitoring for high

            SET B P1.5                                 ;set bit P1.5

            CLR P1.5                                    ;make P1.5 low

           SJMP HERE                               ; keep repeating

          END

the code is compiled in keil uvision software.

For any assistance or problem or query comment below.

happy innovention...................................

 

password: circuitsandprogram

download link of complete project: http://d01.megashares.com/dl/zIlpiG7/1

 

 

Thursday, 13 June 2013

RC robot car using DPDT switch

Remote controlled wired robot car

one of my favourite and easiest design of making a robot car


components:

1) 2 nos. dpdt switch

2) 4 nos. 500 rpm or above geared dc motor 

3) 4mt or more strip of wire

4) 12v dc supply

 






first part is to make the chasis for the car
take a square plywood sheet or anything which you want as a chasis,then make holes on it to fit the four geared motors and then fix the motors in the holes

 next is the connection of dpdt switvhes
connect it as shown in diagram
connect all the positive ends of 1st two motor of one side to one dpdt switch and the other side to other dpdt switch
connect it to the motor now by a strip wire 

for power supply, 12v  laptop charger or direct 12v supplies can be used

controls

forward : press both the switch forward

backward: press both backward

right : press the only right one forward

left: press only the left one forward

this was a simple dpdt switch controlled robo car

for any queries,suggestion or advice kindly comment below or directly mail me at ratan.singh@ieee.org

About the author

Scholar Ratan pal singh is a Google scholar, a man with innovative ideas and a nothing is impossible attitude, is a tech-lover.
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.

"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."

Translate

Pageviews