Pages

Sunday, July 31, 2011

Apple becomes World's largest Smartphone maker

Just after the recent news that apple has more money than US government to spend. It have got another thing to be proud of, Apple has become the no 1 in the smartphone business.
Worldwide smartphone shipments grew by 76% i.e. 110 million. On which Apple covers 20.3% smartphone market,Samsung have occupied 19.3%(just 1% behind the apple- Tough Competition).Nokia sells dropped to 16.7% from 23.8%.
Nokia has lost the market control by more than 15% in global market.In terms of success Samsung has high growth rate than Apple.
The tough competition to lead the smart phone market between Samsung and Apple is going on.
For now Apple won the game and lead the global market.
Lets see how it do after the launch of latest Iphone 5 and Ipad.

Friday, July 29, 2011

Create your own software with menu similar to Office 2010 without writing single code

Do u want to create a software that have the sleek and trendy looks of Office. Then u can do it easily.The only thing u need is the the TRibbon component.
U can change the looks and feel of the design by yourself.
Just download the component and use it on ur software.Drag and drop the component add just add few tabs and action and ur menu is ready.








The Windows Ribbon Framework (aka Scenic Ribbon) is the new User Interface library introduced with Windows 7, but is also available for Vista users through the Vista Platform Update (which is installed through regular Windows updates). This library allows you to create ribbon applications similar to Office 2010. In fact, the WordPad and Paint accessories that ships with Windows 7 use the Ribbon framework.

This Delphi library allows Delphi developers to use of the Windows Ribbon Framework in their Delphi applications. This library uses the native Windows library to implement the Ribbon functionality. It does not emulate the Ribbon user interface like other Delphi component sets do (or Delphi's built-in Ribbon emulation components).

This had the advantage that your ribbon will always look and behave exactly as Microsoft intended it. This also makes it easier to take advantage of improvements that Microsoft will make to the Ribbon Framework in the future. A further advantage is that you can use this library in open source projects since it does not depend on commercial third party libraries.

There are also some disadvantages though. The most notable one is that applications using the Windows Ribbon Framework will only work on Windows 7 or later, or on Windows Vista with the Platform Update. Also, the method for creating Ribbon User Interfaces may be unfamiliar to Delphi developers: a Ribbon User Interface is completely defined in XML (not unlike XAML). There is no way to create ribbon controls at run-time, which also means that there is no way to design a ribbon visually in Delphi.

Thursday, July 28, 2011

Oracle Announces Availability of Java SE 7



Oracle today announced the availability of Java Platform, Standard Edition 7 (Java SE 7), the first release of the Java platform under Oracle stewardship.

Java SE 7 delivers:
  • Language changes to help increase developer productivity and simplify common programming tasks by reducing the amount of code needed, clarifying syntax and making code easier to read. (JSR 334: Project Coin)
  • Improved support for dynamic languages (including: Ruby, Python and JavaScript), resulting in substantial performance increases on the JVM. (JSR 292: InvokeDynamic)
  • A new multicore-ready API that enables developers to more easily decompose problems into tasks that can then be executed in parallel across arbitrary numbers of processor cores. (JSR 166: Fork/Join Framework)
  • A comprehensive I/O interface for working with file systems that can access a wider array of file attributes and offer more information when errors occur. (JSR 203: NIO.2)
  • New networking and security features
  • Expanded support for internationalization, including Unicode 6.0 support
  • Updated versions of numerous libraries

World’s First Windows Mango Cell Phone


Toshiba-Fujitsu in Japan has announced the World’s First Windows Mango Cell Phone.

Here is the specification of the Toshiba-Fujitsu smartphone
  • 3.7-inch display has 800×480 resolution
  • 13.2MP camera has CMOS sensor, is powered by Milbeaut Mobile engine, and takes video with 1,280×720 resolution
  • water- and shock-proof body
  • microUSB port
  • 32GB internal memory (no extra card slot)
  • IEEE 802.11b/g/n Wi-Fi (no tethering)
  • Bluetooth 2.1+EDR
  • DLNA support
  • Zune-branded multi-media function
  • Internet Explorer 9 as browser
  • Xbox LIVE connectivity
  • Windows Live SkyDrive access
  • battery life in standby: 280 hours, continuous talk time: 400 minutes
  • size: 118×59×10.6~13.3mm, weight: 113g
  • confirmed: available in three colors (yellow, black, pink)

Android dominates the smartphone market


According to data from Nielsen Android retain its crown of being no one mobile operating system by penetrating 39% of the smartphone market.It is great achievement for Android operating system.Hope the Android will be able to compete Microsoft upcoming OS Windows 7 Mango.

Similarly it's competitor Apple OS IOS is on second position having market of 28% in smartphone business.Similarly RIM and Blacberry OS have 20% market share, HTC 14%, Motorola 11%, Samsung 8% and other 6%

Apple seems top people's choice. 35% of people looking to buy iphone 5


According to the survey done on more than 3000 U.S. it is found that 48% of respondents claim iOS(Apple) is their favorite smartphone platform while 19% said it was Android, 7% said it was “Microsoft Windows” and 6% said their favorite smartphone OS is RIM’s BlackBerry OS.

More than 35% of the people is wating to get their hands on Iphone which is scheduled to release soon.

Thirty-five percent of consumers will purchase iPhone® 5 following its release, according to PriceGrabber® survey

Fifty-one percent of new iPhone model purchasers will do so within its first year

Los Angeles, Calif., July 25, 2011 – Anticipation in the consumer electronics world is soaring for the launch of Apple’s iPhone 5, which is rumored to be hitting store shelves this fall. PriceGrabber®, a part of Experian, just released the results of its iPhone 5 survey, revealing that 35 percent of consumers plan to purchase the latest iPhone upon its release. Of these respondents, 51 percent indicated that they will buy the smartphone within the first year of release, 30 percent will purchase it before the end of 2011, 14 percent will buy it within the first month, and 7 percent will buy it within the first week. Conducted from July 1-11, 2011, the survey includes responses from 2,852 U.S. online consumers.

Consumers are hoping for an improved battery life and reduced cost
When it comes to the new features shoppers deem most important in their decision to purchase the iPhone 5, practicality seems to reign. When respondents were asked to select new iPhone 5 features most important when considering a purchase, 59 percent indicated a better battery life, and 55 percent are looking for cost reduction. Forty-six percent said that 4G network compatibility was important to them, 45 percent are hoping for a larger screen, and 42 percent would like an improved camera.

“Our survey data confirms the strong following Apple has built around its iPhone, with more than one-third of consumers planning to upgrade to the latest model only a little over a year following the release of the iPhone 4,” stated Graham Jones, general manager of PriceGrabber. “Anticipation and brand loyalty are certainly high, but in today’s 24-7 work culture and uncertain economic environment, consumers are cautious to look for a reasonably priced phone that will perform optimally over an extended time period.”

Apple iOS leads the pack for smartphone operating systems
Consumers’ love for Apple products is clear. When asked which smartphone operating system they prefer, an overwhelming 48 percent of PriceGrabber survey respondents said Apple iOS. Nineteen percent of respondents indicated that they prefer Android OS, 7 percent said Microsoft Windows, and 6 percent chose RIM BlackBerry.

Respondents also were asked which smartphone they would prefer to receive as a gift. An astonishing 69 percent of consumers indicated that they would most like to receive Apple’s iPhone 5. Seven percent said they would like to receive Motorola’s upcoming Droid Bionic, 4 percent would prefer to get the Samsung Galaxy S II, and 3 percent said the BlackBerry Curve.

Smartphone use goes back to the basics
These days, smartphones’ abilities are practically limitless, and app marketplaces are full of solutions to enhance everyday life. However, according to PriceGrabber’s survey data, smartphones’ simplest features remain the most popular. When asked what they generally use their smartphone for, 88 percent of respondents said phone calls, 77 said email, 73 percent indicated texting, 69 percent use it to browse the Internet, 51 percent said searching, and 50 percent use the phone’s Global Positioning System.

Consumers use smartphones as an aid while shopping in brick-and-mortar stores
Even in our largely virtual world, the thrill of shopping in a real brick-and-mortar store has not died. PriceGrabber’s survey data found that 36 percent of consumers said they use their smartphone for shopping. When these respondents were asked to select all the ways in which they use their smartphones for shopping, 48 percent said they compare prices online when shopping in a store; 35 percent use it to scan product bar codes to find the best price; 29 percent use localization features to find nearby products; and 28 percent like to receive coupons, deals and alerts while on the go.

When asked how often they make shopping-related purchases on their phone, 22 percent of respondents said a couple of times a month, 16 percent said a few times a year, and 12 percent said one or more times per week.

“Mobile shopping has truly emerged as a trend among savvy consumers, and what positions it for long-term success is the fact that consumers can use their smartphones as an enhancement to the shopping they already do in brick-and-mortar stores,” said Jones. “Analysis of our survey data shows that shoppers are not just sitting behind a computer doing their shopping from home; they are engaging with and leveraging the technology of their smartphones to take advantage of what their local retailers have to offer, which is certainly a promising prospect for the Main Street economy.”


Source Zach Epstein


Wednesday, July 27, 2011

Microsoft launches new Windows Phone 7 Mango


Microsoft has announced that the latest version of the Windows Phone 7 operating system, known as Mango, has reached Ready To Manufacturing (RTM) status. It has started releasing it to OEMs and operators across the world, to allow them to roll out the update across their hardware, UI customizations, and networks.

Over 500 new features Mango will supposedly bring.
It has features like hardware accelerated IE9 with HTML5, increased multitasking capabilities and the addition of Twitter,Linkedin,facebook support.


New hardware for Mango, i.e., new phones shipping and optimized to run with the update will be arriving soon, as early as September – with Fujitsu Toshiba (one of the new set of manufacturers to join the WP7 bandwagon) already announcing the IS12T (seen far below) with a Snapdragon MSM8655 single core processor and Adreno 205 GPU onboard, behind its 3.7-inch WVGA screen. It also has a 13.2MP camera onboard. The first Nokia Windows Phone handsets are expected soon after, such as the Sea Ray.

Source Think digit

Monday, July 25, 2011

How To Create a Notepad?

How To Create a Notepad with all the features like font setup,page setup,printer setup,find,find and replace,file open and save dialog box.

If u wanna create ur own personal notepad u can make it. It's a easy task.

Lets discuss about it
Only Using 200 lines of code you can create ur personal notepad.

Let's have a look at the code
(The code is in Delphi)

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, xmldom, XMLIntf, msxmldom, XMLDoc, XMLBrokr, DB, DBClient, MConnect,
Menus, StdCtrls,Printers, FileCtrl, ComCtrls, ExtCtrls, ToolWin;

type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
File1: TMenuItem;
Open1: TMenuItem;
Save1: TMenuItem;
Edit1: TMenuItem;
Font1: TMenuItem;
Find1: TMenuItem;
FontDialog1: TFontDialog;
Print1: TMenuItem;
Exit1: TMenuItem;
Find2: TMenuItem;
PageSetup1: TMenuItem;
PrintDialog1: TPrintDialog;
PrinterSetupDialog1: TPrinterSetupDialog;
FindDialog1: TFindDialog;
ReplaceDialog1: TReplaceDialog;
PageSetupDialog1: TPageSetupDialog;
OpenDialog1: TOpenDialog;
SaveDialog1: TSaveDialog;
PrinterSetup1: TMenuItem;
procedure Font1Click(Sender: TObject);
procedure Open1Click(Sender: TObject);
procedure Save1Click(Sender: TObject);
procedure Print1Click(Sender: TObject);
procedure PageSetup1Click(Sender: TObject);
procedure Exit1Click(Sender: TObject);
procedure PrinterSetup1Click(Sender: TObject);
procedure Find2Click(Sender: TObject);
procedure Find1Click(Sender: TObject);
procedure FindDialog1Find(Sender: TObject);
procedure ReplaceDialog1Replace(Sender: TObject);
private
{ Private declarations }
FSelPos: integer;
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Exit1Click(Sender: TObject);
begin
Application.Terminate;
end;

procedure TForm1.Find1Click(Sender: TObject);
begin
ReplaceDialog1.Execute;

end;

procedure TForm1.Find2Click(Sender: TObject);
begin
FSelPos := 0;
FindDialog1.Execute ;

end;



procedure TForm1.FindDialog1Find(Sender: TObject);
var
S : string;
startpos : integer;
begin
with TFindDialog(Sender) do
begin
{If the stored position is 0 this cannot be a find next. }
if FSelPos = 0 then
Options := Options - [frFindNext];

{ Figure out where to start the search and get the corresponding
text from the memo. }
if frfindNext in Options then
begin
{ This is a find next, start after the end of the last found word. }
StartPos := FSelPos + Length(Findtext);
S := Copy(Memo1.Lines.Text, StartPos, MaxInt);
end
else
begin
{ This is a find first, start at the, well, start. }
S := Memo1.Lines.Text;
StartPos := 1;
end;
{ Perform a global case-sensitive search for FindText in S }
FSelPos := Pos(FindText, S);
if FSelPos > 0 then
begin
{ Found something, correct position for the location of the start
of search. }
FSelPos := FSelPos + StartPos - 1;
Memo1.SelStart := FSelPos - 1;
Memo1.SelLength := Length(FindText);
Memo1.SetFocus;
end
else
begin
{ No joy, show a message. }
if frfindNext in Options then
S := Concat('There are no further occurences of "', FindText,
'" in Memo1.')
else
S := Concat('Could not find "', FindText, '" in Memo1.');
MessageDlg(S, mtError, [mbOK], 0);
end;
end;
end;

procedure TForm1.Font1Click(Sender: TObject);
var
dlgFont : TFontDialog;
begin
dlgFont := TFontDialog.Create(Form1);
if dlgFont.Execute then
begin
Memo1.Font.Name := dlgFont.Font.Name;
Memo1.Font.Size:= dlgFont.Font.Size;
Memo1.Font.Style:=dlgFont.Font.Style;
Memo1.Font.Color:=dlgFont.Font.Color;

end;

end;

procedure TForm1.Open1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
Memo1.Lines.LoadFromFile(OpenDialog1.FileName);
end;


procedure TForm1.PageSetup1Click(Sender: TObject);
begin
if PageSetupDialog1.Execute then
//if PageSetupDialog1.Execute then

end;


procedure TForm1.Print1Click(Sender: TObject);
begin
//PrintDialog1 := TPrintDialog.Create(Form1);
if PrintDialog1.Execute then
// Start printing
Printer.BeginDoc;
end;




procedure TForm1.PrinterSetup1Click(Sender: TObject);
begin
PrinterSetupDialog1.Execute;
end;



procedure TForm1.ReplaceDialog1Replace(Sender: TObject);
var
SelPos, SPos, SLen, TextLength: Integer;
SearchString : string;
begin
with TReplaceDialog(Sender) do begin
TextLength:=Length(Memo1.Lines.Text);

SPos:=Memo1.SelStart;
SLen:=Memo1.SelLength;

SearchString := Copy(Memo1.Lines.Text,
SPos + SLen + 1,
TextLength - SLen + 1);

SelPos := Pos(FindText, SearchString);
if SelPos > 0 then begin
Memo1.SelStart := (SelPos - 1) + (SPos + SLen);
Memo1.SelLength := Length(FindText);

Memo1.SelText := ReplaceText;
end
else MessageDlg('Could not find "' + FindText +
'" in Memo1.', mtError, [mbOk], 0);
end;
end;


procedure TForm1.Save1Click(Sender: TObject);
begin
if SaveDialog1.Execute then
Memo1.Lines.SaveToFile(SaveDialog1.FileName);
end;

end.

Friday, July 22, 2011

Are u confused which programming language to learn?

If u'r confused about which programming language to choose from hundreds of language then don't worry about that.

According to Research based on the
  • Google Code
  • Yahoo Search
  • Freshmeat
  • Ohloh
  • Craigslist
  • Delicious
  • Powells

Image (http://langpop.com/)

The most popular language in the world is C,C++,Java,Php. They lies in top choices of the programmer. U can follow the trend of the current programmer or choose what u think the best.

In my personal opinion whatever the language u choose it doesn't matter, whenever u study the programming language u need to understand the core concept of the language how to use it and how using it u can solve the problem. The greatest thing u need to learn is the problem solving technique i.e how to solve specific problem using the language.

If a person knows any one of the language properly they can easily shift to other language spending some time so in my belief language choosing should not bother u.

Lets discuss why above langauage are the programmers choice

let's talk about C/C++. Whenever a programmer learns programming they are advised to learn C/C++. As we know C /C++ is the ancestor of all the programming language currently availabe on market . Most of the modern programming language is created in influence of C/C++.It's easy use , fast processing , easy and free support makes it popular. Most of the software use this language for development for e.g Linux, Window

Java being a platform independent language is popular among the programmer. It is a powerful language that can be run on both linux and windows platform.

Php is a server side web programming language it is very popular language for web development. Its code is similar to C. It is influenced by C. It is a powerful tool as it has the capacity similar to a software programming language so PHP is popular in the field of web development.


Thursday, July 21, 2011

Make a Calculator in 1 hour using Delphi



Delphi is a successor of a Pascal language.It has all the features that is needed for a development of a good software.
So through this post I want to prove that point.
If u have a basic knowledge of a Delphi language u can make calculator similar to windows within a hour so starting.

Just add button and editbox to the form by drag and drop of the button to the frame then write the event handler that performs the action when that button is clicked.


The algorithm is simple
  • When user clicks the button of number i.e(1-9) store it on variable(first stack)
for e.g. when user press 1
here input[temp] is a string and temp is a variable
temp:=0;
input[temp]:='1'
if again press 2
input[temp]:=input[temp]+'2'; //here temp=0;

  • Now when user presses arithmetic operation button(i.e. +,-,*,/) we increase the stack by 1 and store it to value of button to stack
for e.g
temp:= temp +1; //temp becomes 1;
if user press multiply button
input[temp]:='*' //here temp=1;
Again stack is incremented by 1 so that other number for calculation can be store
i.e.
++temp; //temp becomes 2;

  • After that when user press other button of variable(1-9) it is stored in third stack
i.e
if user press 2
input[temp]:='2'; //here temp=2;

  • Finally when user enters the equal to button all the string is converted to number and the output is calculated and the stack value is reset and point to intial value


Lets see at the code


unit Calculator;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls;


type
TForm2 = class(TForm)
Display: TEdit;
One: TButton;
Four: TButton;
Two: TButton;
Five: TButton;
Eight: TButton;
Three: TButton;
Six: TButton;
Nine: TButton;
Plusminus: TButton;
Divide: TButton;
Multiply: TButton;
Backspace: TButton;
Zero: TButton;
Decimal: TButton;
CE: TButton;
C: TButton;
Minus: TButton;
Plus: TButton;
Sqrt: TButton;
Percentage: TButton;
Reciprocal: TButton;
Equal: TButton;
MC: TButton;
MR: TButton;
MS: TButton;
Mplus: TButton;
Mminus: TButton;
Seven: TButton;
Edit1: TEdit;

procedure FormCreate(Sender: TObject);
procedure DisplayKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
procedure ButtonClick(Sender: TObject);

private
{ Private declarations }
procedure Calculate;//(sign:String) ;
procedure Add;
procedure Subtract;
procedure Multiplynum;
procedure Dividenum;
procedure Modulus;
procedure Reset() ;
procedure main(value:Integer);

public
{ Public declarations }
end;

var
Form2: TForm2;

input: Array[0..3] of string; // Static array, size = 3
temp: Integer = 0; //defined temporary variable to keep track of the input given
output: Single; //for storing output as output can be in float value
total: Single;
sign: Integer;
// value: Integer;
Sender:TObject;

implementation

{$R *.dfm}


//this procedure is for handling mouse clicks
procedure TForm2.ButtonClick(Sender: TObject);
begin
if Sender = Zero then
begin
Display.Text:=Display.Text+Zero.Caption;
input[temp]:=input[temp]+'0';
end

else if Sender = One then
begin
Display.Text:=Display.Text+One.Caption;
input[temp]:=input[temp]+'1';
end

else if Sender = Two then
begin
Display.Text:=Display.Text+Two.Caption;
input[temp]:=input[temp]+'2';
end

else if Sender = Three then
begin
Display.Text:=Display.Text+Three.Caption;
input[temp]:=input[temp]+'3';
end

else if Sender = Four then
begin
Display.Text:=Display.Text+Four.Caption;
input[temp]:=input[temp]+'4';
end

else if Sender = Five then
begin
Display.Text:=Display.Text+Five.Caption;
input[temp]:=input[temp]+'5';
end

else if Sender = Six then
begin
Display.Text:=Display.Text+Six.Caption;
input[temp]:=input[temp]+'6';
end

else if Sender = Seven then
begin
Display.Text:=Display.Text+Seven.Caption;
input[temp]:=input[temp]+'7';
end

else if Sender = Eight then
begin
Display.Text:=Display.Text+Eight.Caption;
input[temp]:=input[temp]+'8';
end

else if Sender = Nine then
begin
Display.Text:=Display.Text+Nine.Caption;
input[temp]:=input[temp]+'9';
end

else if Sender = Decimal then
begin
Display.Text:=Display.Text+Decimal.Caption;
input[temp]:=input[temp]+'.';
end

else if Sender = Plus then
begin
main(1);
Display.Text := Display.text + Plus.Caption;
end

else if Sender = Minus then
begin
main(2);
Display.Text := Display.text + Minus.Caption;
end

else if Sender = Multiply then
begin
main(3);
Display.Text := Display.text + Multiply.Caption;
end

else if Sender = Divide then
begin
main(4);
Display.Text := Display.text + Divide.Caption;
end

else if Sender = Percentage then
begin
Display.Text := Display.text + Percentage.Caption;
sign:=5;
temp:=temp+1;
end

else if Sender = Reciprocal then
begin
Display.Text := One.Caption+Divide.Caption+Display.text ;
output:= 1/StrToFloat(input[temp]);
Edit1.Text :=FloatToStr(output);
end

else if Sender = Mplus then
begin
total:=total+output;
Display.Text:='M+ ';
Reset();
end

else if Sender = Mminus then
begin
total:=total-output;
Display.Text:='M- ';
Reset();
end

else if Sender = MR then
Edit1.Text := FloatToStr(total)

else if Sender = MC then
begin
Display.Text:='';
Edit1.Text := '';
total:=0;
end

else if Sender = C then
begin
Display.Text := '';
Edit1.Text := '';
Reset();
end

else if Sender = CE then
begin
Display.Text := '';
input[temp]:='';
end

else if Sender = Equal then
begin
Calculate();
Edit1.Text := FloatToStr(output)
end

else
ShowMessage('??? clicked!') ;
end;



procedure TForm2.FormCreate(Sender: TObject);
begin
Display.Text := '';
end;

procedure Tform2.Reset() ;
begin
//Display.Text := '';
input[0]:='';
input[1]:='';
output:=0;
sign:=0;
temp:=0;
end;



{this prcedure is for keyboard handling}
procedure TForm2.DisplayKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
case Key of
VK_NUMPAD0: ButtonClick(Zero);
VK_NUMPAD1: ButtonClick(One);
VK_NUMPAD2: ButtonClick(Two);
VK_NUMPAD3: ButtonClick(Three);
VK_NUMPAD4: ButtonClick(Four);
VK_NUMPAD5: ButtonClick(Five);
VK_NUMPAD6: ButtonClick(Six);
VK_NUMPAD7: ButtonClick(Seven);
VK_NUMPAD8: ButtonClick(Eight);
VK_NUMPAD9: ButtonClick(Nine);
VK_MULTIPLY: ButtonClick(Multiply);
VK_ADD: ButtonClick(Plus);
VK_SUBTRACT: ButtonClick(Minus);
VK_DECIMAL: ButtonClick(Decimal);
VK_DIVIDE: ButtonClick(Divide);
VK_RETURN: ButtonClick(Equal);
end; //end of case

end; //end of procedure


procedure TForm2.main(value:Integer);
begin

if(temp>=1) then
begin
Calculate();
//Display.Text:=FloatToStr(output);
Edit1.Text := FloatToStr(output);
sign:=value;
input[0]:=FloatToStr(output);
input[1]:='';
temp:=1
end
else
begin
temp:=temp+1;
sign:=value;
end ;
end;



procedure TForm2.Add();
begin
output:=StrToFloat(input[0])+StrToFloat(input[1]);
end;

procedure TForm2.Subtract();
begin
output:=StrToFloat(input[0])- StrToFloat(input[1]);
//ShowMessage(FloatToStr(output));
end;

procedure TForm2.Multiplynum();
begin
output:=StrToFloat(input[0]) * StrToFloat(input[1]);
end;

procedure TForm2.Dividenum();
begin
output:=StrToFloat(input[0]) / StrToFloat(input[1]);
end;

procedure TForm2.Modulus();
begin
output:=StrToFloat(input[0]) * StrToFloat(input[1])/100;
end;


procedure Tform2.Calculate() ;
begin
case sign of
0: ShowMessage('What to do');
1: Add();
2: Subtract();
3: Multiplynum();
4: Dividenum();
5: Modulus();
end;
end;
end. // end of unit

Wednesday, July 20, 2011

Beware of Fraud DV lottery Emails



Today I got an email saying that I won the DV lottery.
I was so happy that I dont know what to do. later on I realized that the email was fake. I read the news of various fraud case of DV lottery.So get beware of the fraud scheme.


Here's the way to identify the fraud emails

  • The first thing is that US government doesnt sends emails to Dv lottery winner.



Here's the header of the email

fromU.S. Department of State dv-usa-gov@visa-gov-us.org via m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com
reply-todv-usa-gov@usa.com
to...................................................
dateWed, Jul 20, 2011 at 5:51 PM
subjectU.S. State Department - Important Notification for ........
mailed-bym3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com

  • If ur email has above it is fake bcoz when u get email having from ... via .... it means that the message is send from another server posing that the person own that email. Normally other server doesnt have verification process to check who own that email they just send the email with that name
And the last Thing about knowing is that the email says u need to transfer money through
Western Union Money Transfer. No government ask to pay through WesternUnion.


Beware of the Frauds!!!!!!!!!!!!!!!!!