Showing posts with label featured. Show all posts
Showing posts with label featured. Show all posts
The power of C programming language, everyone knows!
You can make a program for any use C.

Here is a short example to make a program to create infinite number of folder in its current directory and also a program to overcome it -i.e- recursive deleter, which will delete everyting from its directory.

So, lets start making program that will create the infinite number of folder.
And now, a program which will remove these infinite folders in a second.
  • I've created and compiled the programs to do so. Download the zip from github.
  • Extract it to a directory.



  • Now copy the run and exec folder to the place where you want to do experiment. Say 'Desktop'.
  • NOTE: Copy run and exec both at Desktop.



  • Run the vfolder using terminal or double clicking on it.
  • As soon you run, it will keep creating infinite no of folder in run directory until you press ctrl+c or ctrl+z
Press CTRL+Z to stop the process or you will junk your pc.


  • Now find the vremove file, and double click on it.
  • It will clean everything in that run directory including itself.
Ya! You played well.
You have the code of this program in cpf directory.

Remember, don't use this script to junk any pc!



Method 1: Editing Registry


Step0 ‬Goto run.
Step1 ‪‬Type 'regedit' without quotes.
Step2‪‬ Click on HKEY_LOCAL_MACHINE. ‪
Step3‪‬ goto SYSTEM. ‪
Step4‪‬ Click on CurrentControlSet. ‪
Step5‪‬ Click on services ‪
Step6‪‬ Goto USBSTOR ‪
Step7‪‬ Double click on 'Start' where value is 3.  ‪


Step8 ‪‬Now change the value data with 4.
‪Step9‪‬ Now press ok and refresh your desktop your USB port is disabled.

 To enable it again, do this:‪‬ To enable the usb port replace the value 4 with 3.

Method 2: Using Device Manager

Go to start and search for "Device Manager".
 Click on 'Universal Serial Bus controllers and enable or disable by right-clicking on them.

Method 3: Using USB block/unblock app.

The easiest way is - just use the simple exe app.
  Download USB block/unblock

 

 



You must have thought to make cool stuffs at home. Well, here in Do It Yourself (DIY),
you will learn to make a cool electromagnetic train.

This train will not be a real one but you would enjoy doing home DIY.
Materials required:
  • Copper wires
  • Dry cell battery
  • Neodyum Magnets

Procedure:



Align the magnets carefully on both the ends of dry cell.
Mind the force of magnets so to get all in same direction.
Make a long coil by winding copper wires over a wide pen or anything wider than battery.
Take off that coil.

Now place your battery with magnet battery piece and place it inside coil.
Hurray! Your train is running.


See this demonstration video: