Wednesday, December 24, 2014

Program to Find Factorial of a Number Non-recursively

Posted By: BackBenchers World - Wednesday, December 24, 2014
#include<iostream.h>
#include<conio.h>

static double fact=1.0;       // Global Value

double factorial(int n)
{
  int i=1;

                     while(i<=n)
                     {
                                       fact=fact*i;
                                       i++;
                     }


                     return fact;
}

int main()
{
clrscr();

 int n;

 cout<<"Enter a number: ";

 cin>>n;

 cout<<"The factorial is: "<<factorial(n);

 getch();

 return 0;
 }

Program to Find Factorial of a Number Recursively

Posted By: BackBenchers World - Wednesday, December 24, 2014
#include<iostream.h>
#include<conio.h>

static double fact=1.0;       // Global Value

double factorial(int n)
{

  fact=fact*n;
  if (n!=1) factorial(n-1);  // Recursive Call

  return fact;
}

int main()
{
clrscr();

 int n;

 cout<<"Enter a number: ";

 cin>>n;

 cout<<"The factorial is: "<<factorial(n);

 getch();

 return 0;
 }

Monday, December 22, 2014

C Program to Reverse a Number Non-recursively

Posted By: BackBenchers World - Monday, December 22, 2014
#include<stdio.h>
#include<conio.h>

int reverse(int n)                                //Function to reverse a number
             {
                       int rev=0;
                       int temp;
                       temp=n;
                     
                                   while(temp!=0)
                                   {
                                               rev=(rev*10)+(temp%10);
                                               temp=temp/10;
                                               reverse(temp/10);
                                   }
                        return rev;
             }

void main()
{
                       clrscr();                       //Clears previous output screen

            int n;
            printf("Enter a number: ");
            scanf("%d",&n);
            printf("\nThe reverse of the number is: %d",reverse(n));

                       getch();                        //Wait until you press any key

}

Sunday, December 21, 2014

Wishing Happy Diwali in Programmer Style

Posted By: BackBenchers World - Sunday, December 21, 2014
Hi! Guys. Here I am presenting you playing with codes. What you want you can do with programming. This is given a simple C++ code to wish your beloved "Happy Diwali".


#include<iostream.h>
#include<conio.h>

int main()
{
                                   clrscr();

             int i,j,k;

             cout<<"\n\n\n";

                                             for(i=1;i<=3;i++)
                                             {
                                                           cout<<"\n\t\t";
                                             
                                                           for(j=1;j<=3-i;j++)
                                                           {
                                                                         cout<<" ";
                                                           }
                                               k=0;

                     while(k!=2*i-1)
                     {
                                    cout<<"*";
                                    k++;
                      }
                                             }

                                             for(i=3;i>=1;i--)
                                             {
                                                           cout<<"\n\t\t";

                                                           for(j=3-i;j>=1;j--)
                                                           {
                                                                         cout<<" ";
                                                           }
                                               k=0;

                        while(k!=2*i-1)
                        {
                                      cout<<"*";
                                      k++;
                        }
                                             }

                                             for(i=9;i>=6;i--)
                                             {
                                                           cout<<"\n\t  ";

                                                           for(j=9-i;j>=1;j--)
                                                          {
                                                                         cout<<" ";
                                                          }
                                             k=0;
                     
                         while(k!=2*i-1)
                         {
                                        cout<<"*";
                                        k++;
                         }
                                                }

                         cout<<"\n\n";

                                             for(i=0;i<2;i++)
                                             {
                                                           cout<<"\n\t";

                                                           for(j=0;j<2;j++)
                                                           {
                                                                         cout<<"*";
                                                           }
                                                           cout<<"   ";

                                                                                      for(j=0;j<2;j++)
                                                                                      {
                                                                                                   cout<<"*";
                                                                                      }
                                              }

                                              for(i=0;i<2;i++)
                                              {
                                                           cout<<"\n\t";

                                                           for(j=0;j<7;j++)
                                                           {
                                                                         cout<<"*";
                                                            }
                                              }

                                              for(i=0;i<2;i++)
                                              {
                                                           cout<<"\n\t";

                                                           for(j=0;j<2;j++)
                                                           {
                                                                         cout<<"*";
                                                           }
                                                           cout<<"   ";

                                                                                       for(j=0;j<2;j++)
                                                                                       {
                                                                                                   cout<<"*";
                                                                                        }
                                              }

                                              cout<<" APPY\n";

                                              for(i=0;i<1;i++)
                                              {
                                                           cout<<"\n\t\t\t";

                                                           for(j=0;j<7;j++)
                                                           {
                                                                         cout<<"*";
                                                           }
                                              }

                                              for(i=0;i<4;i++)
                                              {
                                                           cout<<"\n \t\t\t";
                                                           cout<<" ";

                                                           for(j=0;j<2;j++)
                                                           {
                                                                         cout<<"*";
                                                           }
                                                           cout<<"   ";

                                                                                       for(j=0;j<2;j++)
                                                                                       {
                                                                                                    cout<<"*";
                                                                                        }
                                              }

                                              cout<<" IWALI.....";

                                              for(i=0;i<1;i++)
                                              {
                                                            cout<<"\n\t\t\t";

                                                                                       for(j=0;j<7;j++)
                                                                                       {
                                                                                                    cout<<"*";
                                                                                       }
                                              }
                   
                                              cout<<"\n\t\t\t\t\t.........From\n\t\t\t\t\t\t    -ASD";

                                   getch();
                                   return 0;
}

Sunday, November 23, 2014

The 9/11 Attack

Posted By: BackBenchers World - Sunday, November 23, 2014
The World Trade Center on  (9/11) was hit by flight  "Q33NY". Now we you will be definitely amazed by this trick.


1. Open Notepad (Press Windows key + r and type notepad and hit Enter).

2. Write the text given below into the notepad window.


3. Increase the font size to maximum.

4. Change the Font to Wingdings.

Dancing Keyboard Led

Posted By: BackBenchers World - Sunday, November 23, 2014
For this, what all is needed is a Word Processor. Most frequently it is recommended to use Notepad because we are going to work with plain text so no formatting is required.



Here is the step by step procedure:

1. Open Notepad (Press Windows key + r and type notepad and hit Enter).

2. Write the text given below into the notepad window.

Set wshshell =wscript.CreateObject("WScript.Shell")

3. Now Save the file as AP.vbs (Press Ctrl + s and write the file name as AP.vbs and Choose Save as type to All Files)

4. Open your save file and see your keyboard led blinking like disco lights.

Note: The file name could be anything but the extension must be < .vbs >.

Matrix Generating Code

Posted By: BackBenchers World - Sunday, November 23, 2014
This is a cool notepad trick that will generate matrix effect as is seen in the movie Matrix. What you all have to do is given below.

1. Open Notepad ( Press Windows key + r and type notepad and hit Enter).
2. Write the following code into the notepad window.


3. Now Save the file as Matrix.bat (Press Ctrl + s and write the file name as Matrix.bat and Choose Save as type to All Files)
4. Open your saved file and you will have matrix effect on your screen.


Note: The file name could be anything but the extension must be < .bat >.

Monday, November 10, 2014

Using Notpad As Diary

Posted By: BackBenchers World - Monday, November 10, 2014
A simple way to record what you are doing at certain times is with a .LOG file in Notepad. Using this method, each time you open and close Notepad, a timestamp is created to time your activities more efficiently. Simply open the document, record what you did, save the file, and then close it.


1. Open Notepad ( Press Windows key + r and type notepad and hit Enter).

2. On the very first line write .LOG and save the file with anyname but with .txt extension and close it.

3. Now whenever you open the file in Notepad, a timestamp will be inserted.


Note: If you are in any text document in Notepad and decide you need to add the current timestamp, just hit F5. The timestamp will automatically be created.

Friday, November 07, 2014

Applying Loop to CD Drive to Eject Several Times

Posted By: BackBenchers World - Friday, November 07, 2014
For this, what all is needed is a Word Processor. Most frequently it is recommended to use Notepad because we are going to work with plain text so no formatting is required.

Here is the step by step procedure:

1. Open Notepad (Press Windows key + r and type notepad and hit Enter).

2. Copy and Paste the following text into the notepad window.

Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop

3. Now Save the file as ABC.vbs (Press Ctrl + s and write the file name as ABC.vbs and Choose Save as type to All Files)

4. Now if you Double Click on this file to open it, loop will be applied to eject CD-Drive 5000 times.

Note: The file name could be anything but the extension must be < .vbs >.

Create Infinite Number of Folders By Double Clicking

Posted By: BackBenchers World - Friday, November 07, 2014
For this, what all is needed is a Word Processor. Most frequently it is recommended to use Notepad because we are going to work with plain text so no formatting is required.

Here is the step by step procedure:

1. Open Notepad (Press Windows key + r and type notepad and hit Enter).

2. Copy and Paste the following text into the notepad window.

cls
@echo
:ap
md %random%
goto ap

3. Now Save the file as AP.bat (Press Ctrl + s and write the file name as AP.bat and Choose Save as type to All Files)

4. Now if you Double Click on this file to open it, infinite number of empty folders will be created.

Note: 
1. The file name could be anything but the extension must be < .bat >.
2. Before double clicking on this file, place it in a separate directory (folder) else the folders will be created in current directory.

Make Your PC Welcome You

Posted By: BackBenchers World - Friday, November 07, 2014
You would be wondering that how is your PC going to welcome you. For this, what all is needed is a Word Processor. Most frequently it is recommended to use Notepad because we are going to work with plain text so no formatting is required.

Here is the step by step procedure:

1. Open Notepad (Press Windows key + r and type notepad and hit Enter).

2. Copy and Paste the following text into the notepad window.

Dim speaks, speech
speaks="Welcome Back, Your_Name"
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks

3. Replace Your_Name with the name what you want your PC should welcome you with. Now Save the file as Welcome.vbs (Press Ctrl + s and write the file name as Welcome.vbs and Choose Save as type to All Files)

4.  Save this file in the Startup folder.

5. For the above operation you can Browse the Startup folder while saving the file else you can save it to Document folder and than Cut and Paste to the Startup folder.

Note: It is necessary that this file should be placed in Startup Folder else it will not work.

Wednesday, October 08, 2014

Windows 10 Technical Preview

Posted By: BackBenchers World - Wednesday, October 08, 2014

WINDOWS 10

Microsoft Advance Operating System
Microsoft, instead of launching Windows 9, has launched Preview of Windows 10 Operating System. In this OS various new features are added. This new operating system will be available in market by middle of 2015. Lets know whats new you will be getting in Windows 10.

You can download the ISO file for x32-bit and x64-bit version here.
Download link 1(32-bit (x86))
Download link 2(64-bit (x64))












It was hoped from last few days, Microsoft would launch Windows 9 as its new Operating System. But recently company has launched Windows 10 Preview instead of Windows 9. Microsoft launched Windows 8 operating system about 2 years back, but it could not get much success. Now Windows 10 is designed in such a way that it can run on mobile phones, tablets and personal computers easily. Yet company has launched Preview of new OS, it is expected that it will be available in market by July 2015. The new OS is built with various features which users were missing in Windows 8. From phones to gaming console, it can run on different devices.

START MENU RETURNS

In the new OS you will be getting Start Menu again. Actually, Microsoft removed Start Menu in Windows 8, but users didn't like this change. This time Microsoft took a U-turn and added Start Menu in its new OS again. Similar to Windows 7, Start Menu is given on bottom-left corner on desktop in Windows 10. Users will get Touch experience  like Windows 8.1 operating system. Instead, users will also be having option to give similar look as that of windows 7 to the new OS. Actually, Windows 10 is a combination of classic look of Windows 7 and modern user interface. In this new OS you can also change the layout.

UNIVERSAL APPS

Microsoft's new OS will also supports apps. Means users of Windows 10 Operating System can use all the apps of Windows store. These apps will also run on your desktop. You can also re-size these apps as per your choice. Besides this, new OS will also support older apps available on app store. Important functions can be accessed with Context Menu. Generally, the meaning of Windows Universal App is that all your apps can run on Windows 10 devices(desktop, phones and gaming console).

VIRTUAL DESKTOP

Microsoft has given an option of Virtual Desktop for Enterprises and Power users. You can switch different desktop as per your need with the help of Virtual Desktop. This will appear very similar to Virtual Desktop. Uses can have different desktops for different projects and file according to their convenience. This feature is in-built in Windows 10. Further, you can have overview of all running apps with the help of task-view and can move to virtual desktop and manage them easily. This is like adding more screens to your phone or tablet which can be viewed by swiping.

TASK VIEW

To improve multitasking in this new OS, Task-View Button ( alt-tab) is given. Task-View button is integrated on taskbar and can be used for switching to different apps on Virtual Desktop. Diminished preview of all the open aaps can be seen together.

CONTINUUM

This is he most interesting feature of Windows 10. This feature is for 2 in 1 devices. Actually, Continuum feature means that the user interface of new OS will change automatically according to the device. For example, suppose you are using a Hybrid Laptop-Tablet then you will be having standard desktop, but as soon as you unplug the keyboard, it will switch to Tablet mode. This time it has come up with Touch Button.

NO METRO AAPS

Windows 10 also doesn't have large tiles on Home Screen like other version of Windows. You can manage your items or can apply a background picture of your choice. You can switch from Tablet mode to Touch Screen mode without  keyboard and mouse. The Charms Bars of Windows 8 haven't been removed completely. Instead, these are improved. Windows 8 users, who are already familiar with this feature can further use it.

IMPROVED SNAP

Snap function has been improved in Windows 10. With this feature windows can be tiled horizontally and vertically. Snap Assist feature works according to you choice. If you want, you can snap windows into new screen or tile.

HIDE METRO INTERFACE

It is not clear yet, has the Metro Interface been completely removed or not. Actually this is a better option for Hybrid, but while talking about Desktop, Microsoft has given a Check Box at its place  in which 'Never Show Me The Metro Interface' option will be there.

EASY SHUTDOWN

Windows 8 users were waiting for an easy Shutdown feature. To Shutdown PC in Windows 8 users had to go to Charms firstly then Log off and then finally Shutdown. Now Windows 10 has given a much better Shutdown function. You will be able to see Shutdown option just by pressing alt+f4.

UNIVERSAL SEARCH

Universal Search function is given in Windows 10. This option works for both searching PC and Web. Now you don't have to go to browser for searching net. If you have searched something in Search option of Start Menu, it will not only show the search results of the aaps and files existing on your commuter but also give search results from internet. Microsoft's Universal Search is somewhat similar to Apple OS X.

Tuesday, October 07, 2014

Samsung Galaxy Alpha

Posted By: BackBenchers World - Tuesday, October 07, 2014

Samsung has just launched a new Smartphone Galaxy Alpha with Metallic frame which is similar to Samsung Galaxy Note 4.  The Galaxy Alpha represents a new standard for smartphone design. This is Samsung's slimmest (6.7 mm) smartphone ever and this  is the first Galaxy to have a metallic frame around its edges. This device is powered by Exynos 5 Octa 5430 chipset, Quad-Core 1.8 GHz Cortex-A15 & Quad-Core 1.3 GHz Cortex-A7 CPU, Mali-T628 MP6 GPU. Other featrues include a  4.7 inch Super AMOLED display with 720x1280 pixel resolution (~312 ppi pixel density) and TBC protection, Android 4.4 Kitkat with TouchWiz user interface, LTE-A, 12MP rear camera that can support UHD 4K video, 2.1 MP front camera, 2GB RAM, 32GB internal memory but without a MicroSD slot and a 1860mAh battery. Bluetooth v4.0, A2DP, EDR, LE. It has NFC support and microUSB v2.0. Further it is equipped with Accelerometer, Gyro, Proximity, CompassHeart Rate and Fingerprint Sensor support.

Saturday, September 06, 2014

Bypassing OS Password

Posted By: BackBenchers World - Saturday, September 06, 2014
As discussed on page Cracking OS Passwordthere are a lot of tools available to accomplish this purpose. But cracking into someone's PC is unethical.








This technique can serve as a remedy for forgotten OS administrator password.


Below  is demonstrated Konboot. This tool is available in both free and commercial version. You can download it here.

Here we go

Step 1. Extract the downloaded file any where you like on your system.

Step 2. Now only insert a target USB drive for Konboot to any USB slot and detach all other USB drives if pluged-in.

Step 3. In extracted files, find a file with name KonBootInstall.

Step 3. Open this file in Run as administrator mode.

Step 5. Select the drive and chose Install to USB stick (with EFI support). You can chose other options too to install Konboot on respective devices.

Step 6. Wait for 5 seconds while the process finishes and your USB stick is ready.

Step 7, Boot from this USB stick.

Step 8. After booting with this device, normal login screen will be displayed as usual with a password box. Just hit enter. And it's done.

Monday, September 01, 2014

FREE Recharge with WeChat

Posted By: BackBenchers World - Monday, September 01, 2014

Friends n Rewqrds offer-2[Ended]

This time WeChat has come up with FREE Recharge wroth Rs 150. Android users can download WeChat here.

Do the following things to maintain & claim your balance:

1-10 Sep: Make a voice or video call of atleast 1 min. to any of your friends daily.

11-20 Sep: Share stickers in s group of friends daily.


Note: Don't miss out on any day or you will loose some of your FREE balance.
You can redeem your recharge balance from 22nd Sep to 28th Sep.Source: Wechat.

SAM lock

Posted By: BackBenchers World - Monday, September 01, 2014
Syskey is SAM lock tool. If we enable syskey in our system then we are protected up-to some extent from windows password bypassing tools (but not 100%) like hirenboot or chntpw. So let's see how to enable Syskey.

Step 1. Goto run and type syskey and press enter.

Step 2. Choose Encryption Enabled and click Update.


Step 3. Select Password Startup and Enter a password and click OK.


Note: Afterwards you will be asked for a password at Startup. So never forget this password.

Sunday, August 31, 2014

Google tests using drones to deliver goods

Posted By: BackBenchers World - Sunday, August 31, 2014


Google on Thursday said it is testing using drones to deliver items brought online, putting its own spin on similar efforts by internet retail titan Amazon.com.

     Two years of research into what Google referred to as "Project Wing" was capped this month with test flights delivering candy, water, medicine, dog treats and other items to two farmers in Queenland, Australia.

"Self-flying vehicles could open new approaches to moving goods," California-based Google said in a blog post disclosing the project.

"Throughout history, major changes in how to move goods from place to place have led to new opportunities for economic growth and generally made consumers' live easier".

'Project Wing' seems much closer to Google's automated car. This is also a fact that 'Project Wing' and automated car both are developed in same lab 'Google X lab'.

Online business  titan 'Amazon' sought permission for drone test flights in the U.S.A last month saying it is moving forward on plans for deliveries using unmanned aircraft.

Source: Hindustan Times

Saturday, August 30, 2014

Phishing

Posted By: BackBenchers World - Saturday, August 30, 2014
Phishing is old and evergreen attacking method to steal confidential information like passwords, credit card numbers etc. With this attack, an attacker creates a page that look likes original page and make us to believe it is genuine. If we cannot identify the difference, we may enter confidential information.

How to protect ourselves from these types of attacks.

Which website is this?
A fake page which looks like Gmail page

Everybody is very much familiar with this design. Whenever one sees a page like this, his brain says it’s a Gmail page because of more belief in visual stuff.

Now let’s have a look to Original Gmail page
Original Gmail page

Observe these two images very carefully. So what are the differences?
  • Protocol: https in the original page while the protocol is missing in the fake page.
  • SSL (lock symbol):  SSL is present in the original page which is not there in the fake page.
  • Correct Domain Name: In address bar i.e. account.google.com in the original page where in fake page have some other domain.


Hope you will not enter your confidential information in a fake page from now. 

Friday, August 29, 2014

How to make a bootable USB Stick/pendrive

Posted By: BackBenchers World - Friday, August 29, 2014

Guys Here is discussed to make a Bootable USB Pendrive. To boot from a pendrive is much more convenient than that of CD/DVD as it is a faster process. It is difficult to take care of CD/DVD because with regular use scratches are introduced and this reduce reading speed and also take to long time to boot. You can use a bootable pendrive to change/recover the operating system.

There are a lot of tools available in the Market but these can be hazardous as they left your USB pendrive with permanent memory loss i.e. you might not be able to use your pendrive for data storage further.

Here is demonstrated Power ISO. Don't worry this is a trusted application and wont cause any memory loss to your pendrive. You can download it here. So here we go.

     Step 1. Plug-in your Pendrive.

     Step 2. Open PowerISO in Run as adminstarator mode.

     Step 3. Goto Tools menu and select Create Bootable USB Drive.


     Step 4. A dialog box will be as in image below.


     Step 5. Here select Image Source File and click Start (Relative tabs are highlighted).

     Step 6. Your USB Pendrive will be ready for use when processing is completed.

Note: It is recommended to select a .iso file.

Copyright © 2013 TechDotHunter™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.