Customize Desktop Gadgets in Windows 8

In windows 7 you can directly access to Gadgets. Right click on the desktop and select and go to Gadgets option and personalize accordingly.

For more information visit: http://goo.gl/XQq7S

Signature

Deepesh Singh
logo
You may also like.

FDI in Retail sector India National Food Security Bill Should Politicians Have a Minimum Qualification Bureaucrats being victimized
Advertisement

Making a calculator with javascript

Here we are going to make a calculator, which will be programmed with simple javascript and html code only.
Please first learn some basic of javascript function and HTML and how to write them. Refer w3school.com.

Open notepad, and copy this code, exactly as it is. Now save the page and name it calci.html. Please note that while saving the page, select ‘Save as file: All file’ not .txt in the notepad.


<html>
<head>
  <meta http-equiv="Content-Language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" type="text/javascript">
    var i, j, op1, op2, op, f;
    function digit(i) {
        switch (i) {
            case 1:
                document.calc.display.value = (document.calc.display.value) + "1";
                break;
            case 2:
                document.calc.display.value = (document.calc.display.value) + "2";
                break;
            case 3:
                document.calc.display.value = (document.calc.display.value) + "3";
                break;
            case 4:
                document.calc.display.value = (document.calc.display.value) + "4";
                break;
            case 5:
                document.calc.display.value = (document.calc.display.value) + "5";
                break;
            case 6:
                document.calc.display.value = (document.calc.display.value) + "6";
                break;
            case 7:
                document.calc.display.value = (document.calc.display.value) + "7";
                break;
            case 8:
                document.calc.display.value = (document.calc.display.value) + "8";
                break;
            case 9:
                document.calc.display.value = (document.calc.display.value) + "9";
                break;
            case 0:
                document.calc.display.value = (document.calc.display.value) + "0";
                break;
            case 10:
                document.calc.display.value = (document.calc.display.value) + ".";
                break;
            case 25:
                document.calc.display.value = "";
                break;

        }
    }
    function operation(j) {
        if (j == 1) {
            op1 = parseFloat(document.calc.display.value);
            document.calc.display.value = "";
            op = 1;
        }
        if (j == 2) {
            op1 = parseFloat(document.calc.display.value);
            document.calc.display.value = "";
            op = 2;
        }
        if (j == 3) {
            op1 = parseFloat(document.calc.display.value);
            document.calc.display.value = "";
            op = 3;
        }
        if (j == 4) {
            op1 = parseFloat(document.calc.display.value);
            document.calc.display.value = "";
            op = 4;
        }
        if (j == 5) {
            op2 = parseFloat(document.calc.display.value);
            if (op == 1) {
                f = op1 + op2;
                document.calc.display.value = f;
            }
            else if (op == 2) {
                f = op1 - op2;
                document.calc.display.value = f;
            }
            else if (op == 3) {
                f = op1 * op2;
                document.calc.display.value = f;
            }
            else if (op == 4) {
                f = op1 / op2;
                document.calc.display.value = f;
            }
        }
    }
</script>

</head><body>
 <div style=" margin-left:25px;" id="calc">
                    <form name="calc">
<table align="center" bgcolor="black" cellspadding=5 cellspacing=5 height=200px width=200px>
<tr>
<td colspan="3" align="center">
<input type="text" name="display" style=" width:200px"/>
</td>
<td><input type="button" name="B" value=" C " onClick="digit(25)" style=" width:50px"/></td>
</tr>
<tr>
<td>
<input type="button" name="B" value=" 7 " onClick="digit(7)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" 8 " onClick="digit(8)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" 9 " onClick="digit(9)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" + " onClick="operation(1)" style=" width:50px"/>
</td>
</tr>
<tr>
<td>
<input type="button" name="B" value=" 4 " onClick="digit(4)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" 5 " onClick="digit(5)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" 6 " onClick="digit(6)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" - " onClick="operation(2)" style=" width:50px"/>
</td>
</tr>
<tr>
<td>
<input type="button" name="B" value=" 1 " onClick="digit(1)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" 2 " onClick="digit(2)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" 3 " onClick="digit(3)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" * " onClick="operation(3)" style=" width:50px"/>
</td>
</tr>
<tr>
<td> 
<input type="button" name="B" value=" 0 " onClick="digit(0)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" . " onClick="digit(10)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" = " onClick="operation(5)" style=" width:50px"/>
</td>
<td>
<input type="button" name="B" value=" / " onClick="operation(4)" style=" width:50px"/>
</td>
</tr>
</table></form>

                    </div>

</body>
</html> 

Signature

Deepesh Singh
logo

The Role of Private Equity in Starting a Business.

This market is for the trading of company stocks and derivatives by public thus generating money. An investor of equity capital is like shareholder in the company. He is like a partner to the SME. No compulsion of amount refund invested in share by the investor. Not any compulsion to pay interest on equity like it is done in debt market. If a company earns profit then the investor earns profit too. It is the most effective way to raise capital. Since the owner has no worry to earn profit to give interest like debt market. It encourages the entrepreneurship and innovation in a positive and big way.
There are two important body of private equity. Those are:
Venture capital
Venture capital consists of funds, equity or conditional loan in order to promote unlisted, high-risk or high-tech firms or small business, driven by technically or professionally qualified persons. Such funds are so blind that one can‟t expect the return. The investors invest money via a channel.
Angel Investors
Angel finances are those types of finance where investors are generally family members or friends. They may provide money at the time of start-up or in between for the growth of the firm. They are direct investment.
Angel and venture capitalists invest their money very intelligently and selectively but without stepping into a controlling or operating role. They don‟t invest blindly to any small businesses or firms. They use to choose only those firms which have higher potential growth and having scope in future.

Signature

Deepesh Singh
logo
You may also like.

Cultural Shock and Its Stages Business Strategies and Organizational Characteristics Traditional Organization & Modern Organization Discount coupons

Back Button Problem in ASP.NET After Logout

I was facing a problem during one of my project. Actually, I was developing an E-Commerce site, in which I need to give login and logout button. I did login part easily and logout also. But problem arisen, when I pushed back button. Oh! God! Even after logout, it creates a session without login. How? I put all code behind ‘Logout’ button. But still I was facing the problem. We saw many codes, tried a lot of way to logout but still back button is not disabled.
One easy way to solve this problem is applying javascript. It would not allow a person to go back to that page. But, is it a feasible solution? NO! One would like to go back, even after logout to see something. This javascript would disable to come back. So, that is not a proper solution.
So, here I am writing the proper code, which we finally found out and happy news is that, “It really works!”. So just follow this code.
If you applying a MasterPage, then copy these codes to its page load, or copy to that page’s load, which comes after login page or comes before logout page.
pic11
And on logout button click, write these codes.
piv23>
So, if you still getting some kind of problem, please leave comment.
If you liked this article, please rate and comment. Thank You!

Signature

Deepesh Singh
logo

Sending mail through ASP.NET

In this topic, I want to give a tutorial: How to send mail with the help of ASP.NET. Through these codes, you can make your own mail transfer system. Actually you are building a mediator, which helps another account and password to forward your mail to given id. Before writing this code, please get your port id. Like for Google/ Gmail its 587. Here I am gonna use my gmail account. Lets see.

First make a page. Say contact.aspx.

contact.png

Make a button, ay Submit. And on click, write these codes. And add these library to your cs file. So lets create contact.aspx.cs page.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.Net.Mail;
contact.aspx.cs

In place of “mypassword” give your password for the mail id you are using to send (I used deepeshsingh09@yahoo.com). Any query, drop a comment.

Signature

Deepesh Singh
logo