Thursday, 10 December 2015

USE NOTEPAD AS A DIARY


USE NOTEPAD AS A DIARY

Subscribe my YouTube channel :- https://www.youtube.com/channel/UCcp2SXZjrTaOgSmmTZoc-kw   






Ever wanted to maintain a diary on your PC ?
Now, you can do it without the use of a software !

USE NOTEPAD !

Do The Following :

1. Open Notepad
2. Type : .LOG            3. Save it with any name say 'Diary'
4. Open Diary.txt again.

Wow you see today's date and time, so start writing your Diary !





Sunday, 29 November 2015

Generate unique OTP in asp.net using C#

In this article I am going to explain how to generate unique OTP (one time password) in asp.net

Description:

OTP stand for one time password. It is a password that is valid for only one login session or transaction. It is widely used by the banks for transactions. It can be numeric as well as alphanumerical.


HTML markup:
   <fieldset style="width:420px">
    <legend><strong>OTP Example</strong></legend>
     <table>
    <tr><td>Click to Generate OTP :</td><td>
        <asp:Button ID="btnOTP" runat="server" Text="Generate OTP"/></td></tr>
     <tr><td></td><td></td></tr>
      <tr id="idotp" runat="server" visible="false"><td><strong>OTP</strong> :</td><td>
          <asp:Label ID="lblotp" runat="server"></asp:Label></td></tr>
    </table>

    </fieldset>


Generate numeric OTP
On button click write the below given to generate OTP:
C# code:


protected void btnOTP_Click(object sender, EventArgs e)
    {
        GenerateOTP();
    }

    private void GenerateOTP()
    {
        try
        {
            int length = 6;
            string numbers = "0123456789";
            Random objrandom = new Random();
            string strrandom = string.Empty;
            int noofnumbers = length;
            for (int i = 0; i < noofnumbers; i++)
            {
                int temp = objrandom.Next(0, numbers.Length);
                strrandom += temp;
            }
            lblotp.Text = strrandom;
            idotp.Visible = true;
        }
        catch (Exception ex)
        {
        }
    }

Wednesday, 13 August 2014

Who Changed the Internet Forever


                                 25 People Who Changed the Internet Forever !!!!!

1. Sir Tim Berners-Lee – World Wide Web
2. Vint Cerf And Bob Kahn – TCP/IP
3. Larry Page and Sergey Brin – Google Inc.
4. David Filo and Jerry Yang – Yahoo! Inc.
5. Bill Gates – Microsoft
6. Steven Paul Jobs – Apple Inc.
7. Mark Zuckerberg – Facebook
8. Chad Hurley and Steve Chen – YouTube
9. Linus Torvalds – Linux
10. Jack Dorsey – Twitter
11. Kevin Rose – Digg
12. Bram Cohen – BitTorrent
13. Mike Morhaime – Blizzard Entertainment
14. Jimmy Wales – Wikipedia
15. Jeff Preston Bezos – Amazon
16. Shawn Fanning – Napster, Rupture
17. Pierre Omidyar – eBay
18. Jack Ma – Alibaba
19. Craig Newmark – Craigslist
20. Matt Mullenweg – WordPress
21. Thomas Anderson – MySpace
22. Garrett Camp – StumbleUpon
23. Jon Postel – Internet Pioneer
24. Caterina Fake – Flickr
25. Marc Andreessen – Netscape

Friday, 18 October 2013

WINDOWS KEYBOARD SHORTCUTS

                                           WINDOWS KEYBOARD SHORTCUTS
1.WINDOW + D Brings the desktop to the top of all other windows.
2.WINDOW + M Minimize all windows.
3.WINDOW + SHIFT + M Undo the minimize done by WINDOW + M and WINDOW +D.
3.WINDOW + E Open Microsoft Explorer.
4.WINDOW + Tab Cycle through open programs through the taskbar.
5.WINDOW + F Display the Windows Search / Find feature.
6.WINDOW + Ctrl + F Display the search for computers window.
7.WINDOW + F1 Display the Microsoft Windows help.
8.WINDOW + R Open the run window.
9.WINDOW + Pause / Break key Open the system properties window.
10.WINDOW + U Open Utility Manager.
11.WINDOW + L Lock the computer.

Saturday, 12 October 2013

shortcut keys or try to memorize

shortcut keys or try to memorize the below keys. Doing so will dramatically increase your productivity.
Shortcut Keys Description
Alt + F= File menu options in current program.
Alt + E =Edit options in current program
F1 =Universal Help in almost every Windows program.
Ctrl + A =Select all text.
Ctrl + F =Open find window for current document or window.
Ctrl + X =Cut selected item.
Ctrl + C =Copy selected item.
Ctrl + Ins =Copy selected item
Ctrl + V =Paste
Shift + Ins= Paste
Ctrl + P =Print the current page or document..
Ctrl + Left arrow =Moves one word to the left at a time.
Ctrl + Right arrow =