Friday, November 23, 2012

How to Control Mouse Pointer with Keyboard

extremely simple, free notes program to reminding of important events on computer

sticky notes reminding you of important events, place on your desktop. Use hott notes software http://www.hottnotes.com/download.html

Note: You can made 3 Note Types :
  1. Message Note : This is standard sticky note
  2. Checklist Note : This has multiple text fields, each with a checkbox next to it.
  3. Scribble Note : A Scribble note contains a drawing or free-hand written instead of text
: Hott Notes icon show in System Tray. From there you can create above types of note.(right click on icon, choose New, click checklist note)

Get more details about the software on http://www.tricksmachine.com/2009/09/free-hott-sticky-notes.html

Convert j2me MIDP (jad) into Android package (apk)

Do on this site http://www.netmite.com/android/srv/2.0/getapk.php

Start Android apps Development

download the Emulator with built all setup from link http://developer.android.com/sdk/index.html and start  the first android programming with Hello World!!! http://developer.android.com/training/basics/firstapp/creating-project.html

Get Free SMS Alerts for New emails on GMail, Yahoo, Hotmail etc

Thursday, November 22, 2012

Share Screen between Laptops i.e, Mirroring or Extending


Do with Free Software ZoneScreen.....Awsome

ZoneScreen can do both works:
1)extending your desktop workspace using another computers in the network
2)mirror local desktop to another computer in the network (without control)

ZoneScreen consists of two parts:
a) ZoneScreen Virtual Display Driver which is visible to Windows just as normal video card with monitor attached to it, and
b) user-mode ZoneScreen Wizard which is responsible for capturing image (running at server side), transmitting it over the network, and drawing it at another computer (running at client side).

Note:
1) Server machine have Virtual Display Driver installed and ZoneScreen Wizard running in server mode. Another machine acts only as external display and called client. Client machine have only ZoneScreen Wizard running in client mode.
2) In case we are interested only in mirroring desktop image, we do not need to install Virtual Display Driver. And if we are extending desktop we could install ZoneScreen Virtual Display Driver

Step 1: Download ZoneScreen ( For XP: http://www.zoneos.com/downloads/zonescreen/fre_wxp_x86_en.zip, For Vista:http://www.zoneos.com/downloads/zonescreen/fre_wlh_x86_en.zip, For 2K: http://www.zoneos.com/downloads/zonescreen/fre_w2k_x86_en_1090.zip), unpack it.

Note: Step 2 to 3 required for only Extending Desktop. You can skip if you want only mirror the desktop

Step 2: Open up control panel - New Hardware installation - next - Yes, new hardware is connected - last row in the list (add new device) - Manual hardware installation, selected from the list - Show all hardware - Install from the disk - chose the folder with unpacked ZoneScreen - select file zonescreen.inf.

Step 3: Go to the Desktop Properties - Settings tab - you should see a small third display appeared in monitor box- select it or choose from drop down "zonescreen virtual display driver" -  set the flag "expand desktop to this display" - apply.

Step 4: Open up the folder with unpacked ZoneScreen in Server/Master Machine- run zserver.exe - select Act as a server - hit Next - in the second combo-box select your virtual display (for Mirror select \\. \Display1 and for Extend select other value) - in the third combobox select "800x480x16@42" - hit Next - [Select from the top menu "File - Save configuration to run at startup" (that's because XP resets secondary display settings after restart)] - click start

Step 5: Open up the folder with unpacked ZoneScreen in Client/Slave Machine- run zserver.exe - select Act as a client - hit Next - enter Server host name - Next

             second display is ready. Serve it with beer and nuts :)

Note:
1) In case of Mirroring from ZoneScreen, Client user only watch, can't control server machine but by RealVNC client user can control. 
2) If you are using ZoneScreen for Extending Desktop and now you want to mirror your desktop(to show both) then use any other image redirecting software. For example, RealVNC is capable of using ZoneScreen Driver update API.

Copy the content from these links http://www.zoneos.com/zonescreen.htm , http://talk.maemo.org/archive/index.php/t-25843.html

Many Many thanks to Vasily Tarasov (developer of ZoneScreen software)

other sharing software http://www.kimpl.com/1103/free-tools-to-manage-multiple-displays-and-computers/

Wednesday, November 21, 2012

Computer topics Link

Share Keyboard and Mouse Between Two Computers Connected with LAN Cable

Shutdown your Computer with a Cell Phone


Simply Awsome
Watch this video http://www.youtube.com/watch?v=KUw_9qbNj_E&feature=related

Requirements: 1) configure Microsoft Outlook with a email account 2) Register to SMS to Email Service Provider's site to get benefit of his service

How to change Welcome note in Windows XP (during login

Watch this video http://www.youtube.com/watch?v=iy59mTQVTUA&feature=related

Double Click Resource Hacker Software and open c:\windows\system32\logonui.exe from file menu. From left pane expand String Table->1->1033. In Right Pane, change the "welcome" text to other text like 'Hi Name' and compile script. Now save as with another name like logonuihack.exe.
Now go to registry database i.e, open regedit and expand HKey_Local_Machine->Software->Microsoft->Windows NT->Current Version->Winlogon->UIHost  change the value logonui.exe to logonuihack.exe and OK. Now Restart the computer. You will get changes.

Your Name on System Tray and Rename Start Button


For System Tray edit, watch the video http://www.youtube.com/watch?v=IKHK6cWdaSM&feature=related really cool trick......change the AM and PM text to any name

Control Panel->Regional and Language Option->Regional option tab->Customize->Time tab->change text on AM Symbol and PM Symbol to any Name->Apply->Apply thats it


Rename Start Button
Watch this Video http://www.youtube.com/watch?v=i9lK5uojDWI&feature=related

Download the Resource Hacker Software from http://www.angusj.com/resourcehacker/ or http://download.cnet.com/Resource-Hacker/3000-2352_4-10178587.html

Install the Resource Hacker and start. open c:\windows\explorer.exe from file menu. From left pane, Expand String Table, expand 37, select 1033, in right pane change the 'start' text to any other name and then Compile Script. Same thing do in 38 also. Now save as in another folder like NewExplorer/Explorer.exe.

Now go to registry database i.e, open regedit and expand HKey_Local_Machine->Software->Microsoft->Windows NT->Current Version->Winlogon->Shell  change the value explorer.exe to NewExplorer/Explorer.exe and OK. Now Restart the computer. You will get changes.


System Shutdown by one click


Make a new shortcut. Type location: shutdown -s -t 30 -c "Going to Shutdown" and give the name.... thats it. Watch video http://www.youtube.com/watch?v=2OBJMil4p1k&feature=fvwrel

Should Know about what can you do with computer


http://www.raymond.cc/blog/how-to-remotely-turn-on-computer-from-lan-and-wan/
http://www.raymond.cc/blog/access-your-computer-files-remotely-from-anywhere/

You may have noticed that sometimes when you change icon of a program shortcut, Windows still displays the old icon, even after restarting computer.

http://www.raymond.cc/blog/copy-move-files-different-locations-easily/

Hacking is technical skill set

start from this video http://www.youtube.com/watch?v=yGIHjTmTFfA&feature=watch-vrec

Hacking: Non conventional way to interacting/accessing the data

how to check a file has virus

Redirect a site to another site in browser


Watch this video http://www.youtube.com/watch?v=pqgyustASUk&feature=watch-vrec

Suppose any user want to open google.com, but due to some problem in system, yahoo.com is opening in place of google.com
.
This can be happen by this
go to this site http://zoneedit.com/lookup.html to get the all ip address of google.com
now open this file "c:\Windows\system32\drivers\etc\hosts" from computer on notepad and add these line at last

<ip address>  yahoo.com
<ip address>  www.yahoo.com

Tuesday, November 20, 2012

English Vocabulary


Toddler: Young Child
Playthig: toy
chilly: cool
billfold: wallet
paycheck: Salary
trot: jog i.e, slow pace of running (jogging)
astonishing: breathtaking
wicked: evil
wreck: ruin i.e, destruction
carnivore = meat-eater
scribble = scrawl i.e, write carelessly, poor hadwriting
conservationist  = environmentalist
hostility = aggression
buffoon = clown i.e, vulgar fool, A person who amuses others by ridiculous behavior
fumble = mishandle
thaw = melt
uninformed = ignorant
fasten = attach
raging = furious i.e, great/intense anger
canine: dogtooth i.e, relating to a pointed conical tooth(located between the incisors and the premolars,two in each jaw)

How to connect web server through C# Window application

Google For you

Google for you: like "asp.net webservice" or "c#.net consuming webservice"
http://lmgtfy.com/?q=asp.net+webservice
http://lmgtfy.com/?q=c#.net+consuming+webservice

Saturday, November 17, 2012

Password Protected Folder


1) Without any Software

Follow this vdeo http://www.youtube.com/watch?v=kkTdQVe9rSY

Batch File code is


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%== PASSWORD_GOES_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

Taking from http://www.howtogeek.com/105633/how-to-create-a-password-protected-folder-without-any-extra-software/




2) With a software (winrar)
watch this video http://www.youtube.com/watch?v=g1tpBcEFSGk&feature=related

Monday, October 22, 2012

Ways to get more Vote



Factors to get more Votes:
1) caste
2) mark out important people & aware
3) educate to uneducated people to where to mark
4) mark the people who take the money for vote and give him money
5) which candidate strong, stand another candidate of same caste
6) Not pemplet, necessary to give sticker, calender with symbol because uneducated people not remember
7) You must attend the function and cultural events of local people
8) ek chij politics me bahut ganda hota hai ki logo ko as a granted le lete hai ki falana to hamriko vote karega jiske chalte jitni tarjih deni chahiye aadmi ko aap utni tarchih nahi dete. Isliye jaruri hai ki aap unhe utni hi tarjih de jitni kisi aur ko jarurat hai. yani ki aap apne voters se, representative se baar baar mileye aur apne prati vishwas dilaye. example ke taur pe repeated advertisement ka kya funda hota hai use itna baar dikhaya jaata hai ki aapko lagta hai ki ek baar use karke dekh hi le ki kaisa hai.
9) Aapko har booth me ye bhi dekhna hoga ki kaha upper class voters hai aur kaha lower class voters. kis tarah ke voters ke liye kya chijo ki aawaksakta hai. kaha bainer lagne chahiye?

Awsone site for India Railway Time Table


Awsome site for searching train between station............http://erail.in/#   jitni tarif ki jaaye kam hai.


You can find out all trains between two station. You can see the route via map. You can  check Pantry is available or not. At one screen only, you will get the all the result. Also you can check out berth availability.



Sunday, October 7, 2012

How to catch multikey press in C#


KeyEventArgs e;
if(e.KeyData == (Keys.Control | Keys.C)
    MessageBox.Show("Ctrl+C pressed...");

Keys KeyData

if(KeyData == (Keys.Control | Keys.C)
    MessageBox.Show("Ctrl+C pressed...");


Friday, October 5, 2012

How to find which is the best projector

Taken from this site: http://mini-projector-review.toptenreviews.com/m2-micro-projector-review.html
 
 In projector, Should be check firstly 'Quality of Picture' :

There are a lot of different factors that contribute to a quality picture, including projection type, resolution, contrast ratio, refresh rate and brightness. This mini projector offers the LCoS projection type, and the lamp uses triple RGB LEDs. The native resolution for this product is XGA (1024 x 768). This is one of the highest resolutions we saw in all the products we reviewed. Additionally, the unit can support resolutions up to 1280 x 720 and can reach upwards of 30 frames per second. The contrast ratio is also fairly high at 2,000:1. This enables the difference between the light and dark areas to be quite distinct although the blacks will only be as dark as the initial non-lit screen. The refresh rate of this product is 60 hertz, which is less than what you might get on a larger projector, but for a mini projector, we were pleased with the results. The brightness is definitely the biggest difference between the mini projectors available. This mini projector has one of the brightest lamps available, boasting 110 ANSI lumens. Though it is quite high for the size, you will still need a moderately dim room in order to see the picture clearly and to provide the best contrast between light and dark.
A few of the other picture options with this mini projector include a variable image size of 10 to 100 inches. This is dependent on the distance the projector is from the screen. This mini projector also has an aspect ratio of 4:3. When viewing something in the high definition 16:9 format, the unit will just display the black bar on the top and the bottom of the image. If you discover there is a problem with the image being stretched or skewed, make sure the device the projector is hooked up to is also on a 4:3 aspect ratio setting.

Friday, September 14, 2012

Improve your XP's shutdown speed

Improve your XP's shutdown speed. 1) This tweak reduces the time that XP takes before automatically closing any running programs when you give it the command to shutdown. Press WinKey + R and type in "regedt32" and press Enter. Find "HKEY_CURRENT_USER\Control Panel\Desktop", double click "WaitToKillAppTimeout" and change the value to "1000", and press Enter. Double click "HungAppTimeout", change the value to "1000". Press Enter and find "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control", double click "WaitToKillServiceTimeout" and change the value to "1000", and press Enter.

Taken from this site http://www.wikihow.com/Dramatically-Speed-up-Windows-XP

2) people have mentioned that disabling the terminal services greatly expedites the shut down process. The Terminal Services are used for remote assistance, remote desktop, and fast user switching. If you do not use any of these features, then the Terminal Services can be safely disabled. You can access the services console by entering the SERVICES.MSC command at the Run prompt.

3) Another potential cause of slow system shut downs is that Windows contains an option to erase the system’s virtual memory and system hibernation cache at shut down. These security features are disabled by default because they take a long time to complete, and cause the system shutdown to look like it has frozen. Although these features are disabled by default, some privacy software will enable it. To determine whether or not these features are enabled on your PC, enter the GPEDIT.MSC command at the Run prompt to load the Group Policy Editor. Now, navigate through the console tree to Computer Configuration | Windows Settings | Security Settings | Local Policies | Security Options. At this point, locate the Shutdown: Clear Virtual Memory Pagefile option in the column to the right and verify that it is disabled, If this option is enabled, you can disable it by double clicking on the setting and choosing the Disabled option.


http://www.aumha.org/win5/a/shtdwnxp.htm 

Friday, August 24, 2012

Bank IFSC Code

 Get the code from here: http://banksifsccode.com

you have to choose 1) Bank Name 2) State 3) District and 4) Branch

Sunday, July 22, 2012

Excel to PDF in C# Win Form


These link have important information about this topic:

http://stackoverflow.com/questions/769246/xls-to-pdf-conversion-inside-net

http://stackoverflow.com/questions/5499562/excel-to-pdf-c-sharp-library

http://tinyway.wordpress.com/2011/03/30/how-to-convert-office-documents-to-pdf-using-open-office-in-c/


Using Open Office:-

1)Install the Open Office and Open Office SDK
2)Add references in the project i.e, Add following dll's from OpenOffice SDK file:
cli_basetypes.dll
cli_cppuhelper.dll
cli_oootypes.dll
cli_ure.dll
cli_uretypes.dll 


Copy and Paste the below code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using uno.util;
using unoidl.com.sun.star.lang;
using unoidl.com.sun.star.uno;
using unoidl.com.sun.star.bridge;
using unoidl.com.sun.star.frame;
using unoidl.com.sun.star.text;
using unoidl.com.sun.star.beans;
using unoidl.com.sun.star.util;
using System.Diagnostics;
namespace PDFGenerator
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string excelFile = "file:///C:/244.xls";
            string pdfFile = "file:///C:/244.pdf";

            int NewOpenOfficeID = 0;
            int PreviousTotalOpenOfficeID = 0;
            int NextTotalOpenOfficeID = 0;
            foreach (Process p in Process.GetProcessesByName("soffice.bin"))
                PreviousTotalOpenOfficeID = PreviousTotalOpenOfficeID + p.Id;
            if (PreviousTotalOpenOfficeID > 0)
            {
                MessageBox.Show("Please Close the Open Office before going to further","Mesaage");
                return;
            }
            else
            {
                // Start OpenOffce or get a reference to an existing session
                XComponentContext localContext = Bootstrap.bootstrap();
                XMultiServiceFactory multiServiceFactory = (XMultiServiceFactory)localContext.getServiceManager();
                XComponentLoader componentLoader = (XComponentLoader)multiServiceFactory.createInstance("com.sun.star.frame.Desktop");

                foreach (Process p in Process.GetProcessesByName("soffice.bin"))
                    NextTotalOpenOfficeID = NextTotalOpenOfficeID + p.Id;

                NewOpenOfficeID = NextTotalOpenOfficeID - PreviousTotalOpenOfficeID;

                // Open file hidden in read-only mode
                PropertyValue[] loadProps = new PropertyValue[2];
                loadProps[0] = new PropertyValue();
                loadProps[0].Name = "ReadOnly";
                loadProps[0].Value = new uno.Any(true);
                loadProps[1] = new PropertyValue();
                loadProps[1].Name = "Hidden";
                loadProps[1].Value = new uno.Any(true);

                // Open the file
                XComponent sourceDoc = componentLoader.loadComponentFromURL(excelFile, "_blank", 0, loadProps);

                // Conversion parameters - overwrite existing file, use PDF exporter
                PropertyValue[] conversionProperties = new PropertyValue[3];
                conversionProperties[0] = new PropertyValue();
                conversionProperties[0].Name = "Overwrite";
                conversionProperties[0].Value = new uno.Any(true);
                conversionProperties[1] = new PropertyValue();
                conversionProperties[1].Name = "FilterName";
                conversionProperties[1].Value = new uno.Any("calc_pdf_Export");

                // Set PDF export parameters
                PropertyValue[] filterData = new PropertyValue[3];

                // JPEG compression quality 70
                filterData[0] = new PropertyValue();
                filterData[0].Name = "Quality";
                filterData[0].Value = new uno.Any(70);
                filterData[0].State = PropertyState.DIRECT_VALUE;

                // Max image resolution 300dpi
                filterData[1] = new PropertyValue();
                filterData[1].Name = "ReduceImageResolution";
                filterData[1].Value = new uno.Any(true);
                filterData[1].State = PropertyState.DIRECT_VALUE;
                filterData[2] = new PropertyValue();
                filterData[2].Name = "MaxImageResolution";
                filterData[2].Value = new uno.Any(300);
                filterData[2].State = PropertyState.DIRECT_VALUE;

                conversionProperties[2] = new PropertyValue();
                conversionProperties[2].Name = "FilterData";
                conversionProperties[2].Value = new uno.Any(filterData.GetType(), filterData);

                // Save as PDF
                XStorable xstorable = (XStorable)sourceDoc;
                xstorable.storeToURL(pdfFile, conversionProperties);

                // Close document
                ((XCloseable)sourceDoc).close(false);
                ((XCloseable)xstorable).close(false);

                Process pro = Process.GetProcessById(NewOpenOfficeID);
                pro.Kill();
            }

        }
    }
}
 

Wednesday, May 16, 2012

Scheme where MLA can spend government money:
गॊदाम‌, गली, नाली, सामुदायिक भवन‌, बस पडाव, यात्री शेड, सार्वजनिक पुस्तकालय‌, नदी‍‍‍‍-तालाब‌ घाट निर्माण, हाट-मॆला विकास‌, कला मन्च-खॆल मैदान का विकास‌, सार्वजनिक चबूतरा का निर्माण, पन्चायत भवन‌ निर्माण, आगनबाडी कॆन्द्न निर्माण, चापाकल

Monday, May 7, 2012

Number to Words in Excel

Follow this link http://www.accountinghead.com/index.php/how-to-convert-number-to-text-in-excel-2003-2007/

1) Open excel then Press Alt+F11 to start visual basic editor

2) In visulal basic editor click insert menu then open module

3) copy the script and paste in opened module window, on the left side pane click on This work book
 

Number to Words in c#


//Below content is copied some other sites
//--------------------------------------------
//First Example
//-------------------------------------------
public static string NumberToWords(int number)
        {
            if (number == 0)
                return "zero";

            if (number < 0)
                return "minus " + NumberToWords(Math.Abs(number));

            string words = "";

            if ((number / 10000000) > 0)
            {
                words += NumberToWords(number / 10000000) + " crore ";
                number %= 10000000;
            }

            if ((number / 100000) > 0)
            {
                words += NumberToWords(number / 100000) + " lakh ";
                number %= 100000;
            }

            if ((number / 1000) > 0)
            {
                words += NumberToWords(number / 1000) + " thousand ";
                number %= 1000;
            }

            if ((number / 100) > 0)
            {
                words += NumberToWords(number / 100) + " hundred ";
                number %= 100;
            }

            if (number > 0)
            {
                if (words != "")
                    words += "and ";

                string[] unitsMap = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" };
                string[] tensMap = { "zero", "ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety" };

                if (number < 20)
                    words += unitsMap[number];
                else
                {
                    words += tensMap[number / 10];
                    if ((number % 10) > 0)
                        words += "-" + unitsMap[number % 10];
                }
            }

            return words;
        }

 //-------------------------------------------------------------------
 .// Second Example
 //------------------------------------------------------------
private void button1_Click(object sender, EventArgs e)
        {
            textBox2.Text = changeCurrencyToWords(textBox1.Text);
            if (textBox2.Text.Contains("and Crore"))
            {
                textBox2.Text = textBox2.Text.Replace("and Crore", "");
            }
            if(textBox2.Text.Contains("and Lakh"))
            {
                textBox2.Text=textBox2.Text.Replace(" and Lakh", "");
            }
            if (textBox2.Text.Contains("and Thousand"))
            {
                textBox2.Text=textBox2.Text.Replace(" and Thousand", "");
            }
            if (textBox2.Text.Contains("and Hundred"))
            {
                textBox2.Text = textBox2.Text.Replace(" and Hundred", "");
            }
        }
       

        public String changeNumericToWords(double numb)
        {
            String num = numb.ToString();
            return changeToWords(num, false);
        }
        public String changeCurrencyToWords(String numb)
        {
            return changeToWords(numb, true);
        }
        public String changeNumericToWords(String numb)
        {
            return changeToWords(numb, false);
        }
        public String changeCurrencyToWords(double numb)
        {
            return changeToWords(numb.ToString(), true);
        }
        private String changeToWords(String numb, bool isCurrency)
        {
            String val = "", wholeNo = numb, points = "", andStr = "", pointStr = "";
            String endStr = (isCurrency) ? ("Rupees Only") : ("");
            try
            {
                int decimalPlace = numb.IndexOf(".");
                if (decimalPlace > 0)
                {
                    wholeNo = numb.Substring(0, decimalPlace);
                    points = numb.Substring(decimalPlace + 1);
                    if (Convert.ToInt32(points) > 0)
                    {
                        andStr = (isCurrency) ? ("and") : ("point");// just to separate whole numbers from points/cents
                        endStr = (isCurrency) ? ("Paisa " + endStr) : ("");
                        pointStr = translateCents(points);
                    }
                }
                val = String.Format("{0} {1}{2} {3}", translateWholeNumber(wholeNo).Trim(), andStr, pointStr, endStr);
            }
            catch { ;}
            return val;
        }
        private String translateWholeNumber(String number)
        {
            string word = "";
            try
            {
                bool beginsZero = false;//tests for 0XX
                bool isDone = false;//test if already translated
                double dblAmt = (Convert.ToDouble(number));
                //if ((dblAmt > 0) && number.StartsWith("0"))
                if (dblAmt > 0)
                {//test for zero or digit zero in a nuemric
                beginsZero = number.StartsWith("0");
                int numDigits = number.Length;
                int pos = 0;//store digit grouping
                String place = "";//digit grouping name:hundres,thousand,etc...
                switch (numDigits)
                {
                    case 1://ones' range
                    word = ones(number);
                    isDone = true;
                    break;
                    case 2://tens' range
                    word = tens(number);
                    isDone = true;
                    break;
                    case 3://hundreds' range
                    pos = (numDigits % 3) + 1;
                    place = " Hundred ";
                    break;
                    case 4://thousands' range
                    case 5:
                    pos = (numDigits % 4) + 1;
                    place = " Thousand ";
                    break;
                    case 6://lakh' range
                    case 7:
                    pos = (numDigits % 6) + 1;
                    place = " Lakh ";
                    break;
                    case 8://Crore' range
                    case 9:
                    pos = (numDigits % 8) + 1;
                    place = " Crore ";
                    break;
                    case 10://Arab's range
                   
                    //add extra case options for anything above Billion...
                    default:
                    isDone = true;
                    break;
                }
                if (!isDone)
                {
                    //if transalation is not done, continue...(Recursion comes in now!!)
                    word = translateWholeNumber(number.Substring(0, pos)) + place + translateWholeNumber(number.Substring(pos));
                    //check for trailing zeros
                    if (beginsZero)
                        word = " and " + word.Trim();
                }
                //ignore digit grouping names
                if (word.Trim().Equals(place.Trim()))
                    word = "";
                }
            }
            catch { ;}
            return word.Trim();
        }
        private String tens(String digit)
        {
            int digt = Convert.ToInt32(digit);
            String name = null;
            switch (digt)
            {
                case 10:
                name = "Ten";
                break;
                case 11:
                name = "Eleven";
                break;
                case 12:
                name = "Twelve";
                break;
                case 13:
                name = "Thirteen";
                break;
                case 14:
                name = "Fourteen";
                break;
                case 15:
                name = "Fifteen";
                break;
                case 16:
                name = "Sixteen";
                break;
                case 17:
                name = "Seventeen";
                break;
                case 18:
                name = "Eighteen";
                break;
                case 19:
                name = "Nineteen";
                break;
                case 20:
                name = "Twenty";
                break;
                case 30:
                name = "Thirty";
                break;
                case 40:
                name = "Fourty";
                break;
                case 50:
                name = "Fifty";
                break;
                case 60:
                name = "Sixty";
                break;
                case 70:
                name = "Seventy";
                break;
                case 80:
                name = "Eighty";
                break;
                case 90:
                name = "Ninety";
                break;
                default:
                if (digt > 0)
                {
                    name = tens(digit.Substring(0, 1) + "0") + " " + ones(digit.Substring(1));
                }
                break;
            }
            return name;
        }
        private String ones(String digit)
        {
            int digt = Convert.ToInt32(digit);
            String name = "";
            switch (digt)
            {
                case 1:
                name = "One";
                break;
                case 2:
                name = "Two";
                break;
                case 3:
                name = "Three";
                break;
                case 4:
                name = "Four";
                break;
                case 5:
                name = "Five";
                break;
                case 6:
                name = "Six";
                break;
                case 7:
                name = "Seven";
                break;
                case 8:
                name = "Eight";
                break;
                case 9:
                name = "Nine";
                break;
            }
            return name;
        }
        private String translateCents(String cents)
        {
            String cts = "", digit = "", engOne = "";
            for (int i = 0; i < cents.Length; i++)
            {
                digit = cents[i].ToString();
                if (digit.Equals("0"))
                {
                    engOne = "Zero";
                }
                else
                {
                    engOne = ones(digit);
                }
                cts += " " + engOne;
            }
            return cts;
        }

Sunday, April 15, 2012

How to Remember the things long time


1) When you remember something that one start to laps after 24 hours. Therefore it needs to be again study same thing in 24 hours. That one continue to remember one week but after one week again start to laps therefore need  to again study in 7 days. After that it remain to 6 month.

2) Should be read fast. Put the finger on the line and look and read a sentence one at a time i.e, don't read slowly and look and read 2-3 words at a time

3) Make the habit to write.

4) Make the bullet points and read once before going to sleep.

Thursday, April 12, 2012

Should be ready before start my WSIMS software


1) Internet facility should be there.

2) One operator always ready to work on my software and also if i am taking the responsibility of entry then also one operator of client side always work with me.

3) All files related to data entry should be ready before data entry. Ready means how many files are there, NGO list with file number etc.

4) Database should be provide of APL-BPL and also PDF files of 2007 and 2009.

5) One genuine person should be there who have knowledge about the files and other work.

6) Talk before about in how many days my cheque will be in my hand. Note down- Don't do all the work and then approach for the money. Should be make the milestone and receive the amount accordingly.

7) If you are going to data entry then before taking this work confirm that there should be proper and sufficient space to work.

8) There should be proper response of phone. like if you are busy then cut the phone in middle and response the phone whenever free. But don't delay to answering.

Thursday, April 5, 2012

Modify Excel Properties through C#


            Excel._Application app=new Excel.Application();
            Excel.Workbooks Wbs=app.Workbooks;;
            Excel.Workbook Wb= Wbs.Add(1);;
            //Excel.Worksheets Osheets;
            Excel.Worksheet Osheet=(Excel.Worksheet)Wb.ActiveSheet;
           
                Osheet.PageSetup.Orientation = XlPageOrientation.xlLandscape;

                Osheet.PageSetup.LeftMargin = double.Parse("42.05");//left margin(0.58) * 72.5
                Osheet.PageSetup.RightMargin = double.Parse("31.09");//right margin(0.44) * 72.5
                Osheet.PageSetup.TopMargin = double.Parse("42.05");
                Osheet.PageSetup.BottomMargin = double.Parse("31.09");
                Osheet.PageSetup.HeaderMargin = double.Parse("0");
                Osheet.PageSetup.FooterMargin = double.Parse("0");

                Range oRng = Osheet.get_Range(Osheet.Cells[1, 1], Osheet.Cells[1, 10]);
                oRng.Merge(Type.Missing);              
                           
                Osheet.Cells[1, 1] = "Nishant";                                       
                Range oRng = (Range)Osheet.Cells[1, 1]
                oRng.EntireColumn.Font.Name = "Arial";
                oRng.EntireColumn.Font.Size = "11";
                oRng.Font.Bold = true;
                oRng.Font.Underline = true;
                oRng.EntireColumn.WrapText = true;
                oRng.EntireColumn.NumberFormat = "@";
                oRng.EntireColumn.VerticalAlignment = XlVAlign.xlVAlignCenter;
                oRng.HorizontalAlignment = XlHAlign.xlHAlignCenter;

Projects


Following Projects Done:

1) Retail/Distribution Management Software (BMS): Kanak Telecom, Jay Mata Di Telecom

2) Water & Sanitation Info Management Software (WSIMS): PHED Patna, Lakhisarai

3) Constituency Info Management Software (CIMS): Uday Narayan Choudhry (Bihar Vidhansabha Chairman)

4) Restaurant Billing Software (RBS): Tikka Express Sheikhpura, Patna

5) Sanitation Scheme Accounting Software (SSAS): PJS Surajagrha, Lakhisarai

Monday, April 2, 2012

Chanakya Kathan


आचार्य चाणक्य का कथन है कि ‘‘मनुष्य को शेर से एक, बगुले से एक तथा मुर्गे से चार, कौऐ से पांच, कुत्ते से छह और गधे से तीन गुण ग्रहण करना चाहिए।“ “बड़ा हो या छोटा कार्य उसे संपन्न करने के लिये पूरी शक्ति लगाना शेर से सीखना चाहिए।’’ ‘‘बगुले की भांति अपनी इंद्रियों को वश मे कर देश काल अपने बल को जानकर ही अपने सारे कार्य करना चाहिए।“ ‘‘ठीक समय पर जागना, सदैव युद्ध के लिये तैयार रहना, बंधुओं को अपना हिस्सा देना और आक्रामक होकर भोजन करना मुर्गे से सीखना चाहिए।“ ‘‘छिपकर प्रेमालाप करना, ढीठता, नियम समय पर संग्रह करना सदा प्रमादरहित होकर जागरुक रहना तथा किसी पर विश्वास न करना ये पांच गुण कौऐ से सीखना चाहिए ।’’ ‘‘बहुत खाने की शक्ति रखना, न मिलने पर भी संतुष्ट हो जाना, खूब सोना पर तनिक आहट होने पर भी जाग जाना, स्वामीभक्ति और शूरता यह छह गुण कुत्ते से सीखना चाहिए।“ ‘‘बहुत थक जाने पर भी भार उठाना, सर्दी गर्मी से बेपरवाह होन और सदा शांतिपूर्ण जीवन बिताना यह तीन गुण गधे से सीखना चाहिए।“

Tuesday, February 14, 2012

Motivational Songs


itanee shaktee humei denaa daataa, man kaa wishwaas kamajor ho naa
hum chale nek raste pe hum se, bhoolakar bhee koee bhool ho naa

Monday, February 13, 2012

Combined multiple pdf into one pdf in c#

A datatable with columns at run time


01 public class Customer
02    {
03        private string _firstName;
04        private string _lastName;
05        private string _email;
06 
07        public string FirstName
08        {
09            get { return _firstName; }
10            set { _firstName = value; }
11        }
12 
13        public string LastName
14        {
15            get { return _lastName; }
16            set { _lastName = value; }
17        }
18 
19        public string FullName
20        {
21            get { return _firstName + " " + _lastName; }
22        }
23 
24        public string Email
25        {
26            get { return _email; }
27            set { _email = value; }
28        }
29      }








------------------------------------------------
 //DataGrid1.DataSource=GetCustomers();
// DataGrid1.DataBind();
DataTable dt=new DataTable();
dt=GetCustomers();
-------------------------------------------------
09        private List<Customer> GetCustomers()
10        {
11            List<Customer> customers = new List<Customer>();
12 
13            for (int i = 1; i <= 20; i++)
14            {
15                Customer customer = new Customer();
16                customer.FirstName = "FirstName" + i;
17                customer.LastName = "LastName" + i;
18                customer.Email = "Email" + i;
19                customers.Add(customer);
20            }
21 
22            return customers;
23        }