Pages

Thursday, December 29, 2011

Play Bagchal Game

Want to play Bagchal Game !!!!!!!!!!!!!!!!!


You can download free and play from here 

This game is developed using JAVA by me. IT contains some Artificial Intelligence, you can play with the computer. I had made this game while learning JAVA.

This game has been originated in Nepal.In this two player can play at once. One need to be tiger and other need to be goat.There are 4 tigers in the game. There are altogether 20 goats and 4 tigers with 25 positions to move.If tiger could jump across the goat in the line the goat over which tiger jumps is killed. Similarly higher the no of goat killed harder to win for goat. If goat could trap all the tigers without giving chance to move them i.e. if tiger cant move further goat wins and if 4 goat is killed tiger wins.



You can download the code if you want to study the game or you can simply download the game and play it!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ENJOY THE GAME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!





Tax Calculator

Calculate your tax on the basis of your salary or your total income for this year.
Just Download software from this link and enjoy it for free!!!!!!!!!!!!
Tax Calculator( https://sourceforge.net/projects/calulateyourtax/)




















In this program you can calculate how much tax you need pay by filling all the information like whether you are married or not, or how much you have saved in CIT or provident fund. Have you got insurance policy or not. Analyzing that information you can calculate how much is your tax for that year!!!!!!!!!

You too can download the code of the tax calulator from the site as I have outsourced the code!!!!!!!


ENJOY THE PROGRAM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Monday, November 28, 2011

How to increase your page rank

 
How to increase your page rank?
One can increase the page rank of their site if we gain proper knowledge of how Search engine works and how the  page are indexed  and page rank is calculated. As I have mentioned in my other post related to SEO, we can achieve high page rank through some of the measures as described below.In order to read about the search engine mechanism and about SEO read the the previous article of SEO..............................

Guide to Search Engine Optimization (SEO)

Guide to Search Engine Optimization (SEO)

What is SEO?
SEO or Search Engine Optimization is the process improving website visibility i.e. in terms of lay man we can say that when we search page using Google, Bing,Yahoo the site should be in top order where user can see the site address.

There are million of sites that has same content as your site so acquiring the knowledge of SEO could give you the power to beat your competitor. Normally User visits only those sites which comes in top place in search engine.

Inorder to know about SEO process lets first discuss about the searching tactics of web search engine.

Tuesday, November 8, 2011

Nvidia Unveils Tegra 3, World’s First Quad-Core Mobile Processor


Nvidia officially unveiled the the quad-core Tegra 3 cpu. According to Nvidia it offer up to three times the graphics performance of Tegra 2, and up to 61 percent lower power consumption. It has ground breaking performance and battery life,with 2000 mAh battery and 400 mW display we can achieve 2000 Hrs of standbytime, 140 Hrs of continuous playback time for 128 Kbps MP3, 8+ Hrs of HD video playback and 16+ playback time of HD video in external device using HDMI port.

Using Tegra 3 cpu Asus has announced new tablet. View Specs over here

ASUS Eee Pad Transformer Prime announced with Tegra 3 quad-core processor

Feature of Asus Eee pad
  • Nvidia Tegra 3 quad core processor, 1.4 Ghz
  • 10.1″ Super IPS+ display at 1280 x 800 resolution (with Gorilla Glass), 178° viewing angle
  • 1GB of RAM
  • 32 or 64 GB of internal storage
  • micro-SD and micro-HDMI support
  • 8 megapixel camera on the rear and a 1.2 front for video chat
  • illuminated CMOS sensor, low-light noise reduction
  • 8.3mm thin (0.33″) and weighs in at a mere 586g (1.29lbs)
  • 12 Hrs + long battery life



Prices on these bits of hardware are thus:
  • Transformer Prime 32GB $499
  • Transformer Prime 64GB $599

Thursday, November 3, 2011

How to write a program that can search files

In order to search a file we will use FindFirst functions i.e. defined in sysutils class(unit).FindFirst will search the first file then the function FindNext is used to search other file if it contains with same name. 
 
function FindFirst(const Path: string; Attr: Integer; var Rec: TSearchRec): Integer;


Here three parameter is passed in the FindFirst function and it returns the integer. The first parameter passed is the path of file along with the name of the file to be searched. We can extract the current path using the function extractfilepath function and on that reference we can search file as normally necessary file is located in same path of application file. 
 
function ExtractFilePath(const S: FullFileName): string;

On passing the file name to the function extractfilepath it will return the drive and directory parts of a string containing full path and file name.
The second parameter passed is integer. We need to pass the integer value or constant name as defined below for the required task we need to perform i.e. if we need to search readonly files we can sent either 1 or constant faReadOnly. On similar ways we can search other things
Constant
   Value
    Description
faReadOnly
  1
    Read-only files
faHidden
  2
    Hidden files
faSysFile
  4
    System files
faVolumeID
  8
    Volume ID files
faDirectory
  16
    Directory files
faArchive
  32
    Archive files
faSymLink
  64
    Symbolic link
faAnyFile
  71
    Any file

Wednesday, October 19, 2011

Samsung Mobile Galaxy Nexus with OS Android Icecream Sandwich launched


Google's newest and best version of Android just became official at the Google-Samsung event in Hong Kong along with the Galaxy Nexus. Android Ice Cream Sandwich is a optimized version of Honeycomb and Gingerbread. Now Developer can develop the apps without taking considerations whether they are developing it for tablets or smartphone with android. They don't have to take in account the hardware and devices for developing apps. Developer can develop apps independent of hardware using same API for both tablet and smartphone. It was different in previous flavors of Androids.

Galaxy Nexus is similar to Samsung Galaxy S II with little bit big screen of  4.65 inch.

Tuesday, October 18, 2011

Facebook Wall of Shame

By Elisa Gabbert

Facebook failures info-graphic .
Things that facebook fails (Negative impacts of facebook till today)
  • Facebook persuaded millions of people to share stuff about themselves under guise of privacy
  • Facebook remembers everything you do.
  • Facebook irritating real-time sidebar
  • Facbook deals
  • Facebook lite
  • Facebook Gifts
  • and many More.......................
Facebook lost 6 million users from US!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
View Details here

Thursday, September 15, 2011

FUNNY TRANSLATIONS INTO ENGLISH


  1. In a Tokyo Hotel:
    Is forbidden to steal hotel towels please. If you are not a person to do such thing is please not to read notis.

  2. In a Bucharest hotel lobby:
    The lift is being fixed for the next day. During that time we regret that you will be unbearable.

  3. In a Leipzig elevator:
    Do not enter the lift backwards, and only when lit up.

  4. In a Belgrade hotel elevator:
    To move the cabin, push button for wishing floor. If the cabin should enter more persons, each one should press a number of wishing floor. Driving is then going alphabetically by national order.

  5. In a Paris hotel elevator:
    Please leave your values at the front desk.

  6. In a hotel in Athens:
    Visitors are expected to complain at the office between the hours of 9 and 11 a.m. daily.

Wednesday, September 7, 2011

Coolest feature of Delphi XE 2(Repost)






Embarcadero® Delphi® XE2, now with FireMonkey™, is the fastest way to deliver ultra-rich and visually stunning native applications for Windows, Mac and iOS – including 64-bit Windows applications. Dramatically reduce coding time and build applications 5x faster. Delphi XE2 provides component-based visual development and a fully visual two-way RAD IDE with high performance access to popular databases.

Friday, September 2, 2011

Samsug Galaxy Note (Best mobile ever produced)




Specifications


Network

HSPA+ up to 21Mbps 850/900/1900/2100
4G LTE
EDGE/GPRS 850/900/1800/1900
※ Network differs by country

Processor

1.4GHz Dual Core Processor

Display

5.3” WXGA (1280 x 800, 285 PPI) screen*
HD Super AMOLED

Tuesday, August 23, 2011

The Marine’s Father[Re-Post]


A nurse took the tired, anxious serviceman to the bedside.
“Your son is here,” she said to the old man. She had to repeat the words several times before the patient’s eyes opened.
Heavily sedated because of the pain of his heart attack, he dimly saw the young uniformed Marine standing outside the oxygen tent. He reached out his hand. The Marine wrapped his toughened fingers around the old man’s limp ones, squeezing a message of love and encouragement.

Monday, August 15, 2011

Google takes over Motorola

Google has announced that it will be acquiring Motorola for sbout $12.5 billion i.e $40 per share.After the takeover of a Mobile company the bigger threat has been raised for othe mobile companies especially for Apple,Samsung  and Microsoft(for it New Mango 7 mobile OS).

Friday, August 12, 2011

Apple acquired the position of being biggest company in USA beating Exxon Mobil,Microsoft,Google

After the rise and fall in share market in USA, Apple becomes the biggest empire in the USA beating Exxon Mobil (which has been acquiring the crown of being biggest empire in USA since 2005).
Previouly Apple rival like Microsoft(in 2000) has acquired the position of being most valuable company but now Apple acquired that position.Each share of the Apple worth $363 making its total value in the market $337 billion. Exxon slipped to second position which worth $331 billion.

Play Games In Google+

Internet search leader Google Inc. has announced the support of Games In Google+. Now user can play games just like in facebook.Google is in the path of being NO 1 social Netwroking site.It has already been the second top social networking site after facebook. After adding support for the game it came one step closer to compete with facebook.

Thursday, August 11, 2011

Google Chrome Operating System


Google has announced the update in its chrome OS.Google Chrome OS is an open source, lightweight operating system that will initially be targeted at net books.Google Chrome OS has been based on Cloud Computing technology.

Friday, August 5, 2011

Big News for Software Developer. Twitter is opensourcing its Data Processing Tool


Twitter has pretty strong real time data processing system. It is possibly the biggest real time data processing company as millions of people tweet every minute in its twitter.
Just like the google word which is not in dictionary but its extensive use make's us familiar with it like we know it and its meaning from childhood ,"twit" word has also same impact of it on us.

Such a big company is opensourcing its real-time data processing platform, Storm. So it is the matter of pride to open source community

Source
Business insider

Microsoft Windows Mango cool feature to compete Android


  • It has implemented the feature of Visual voicemail
  • In mango user can disable people from forwarding certain messages and other privacy related settings to save .
  • If ur out of reach or cant lay ur hand on phone(busy), the phone will announce the a text message or caller and enable you to respond (even to texts) hands-free.
  • Fully integrated facebook feature like fb chat and many more.
  • It consist of cloud storage tools i.e it support Office 365 and SkyDrive.
  • Have Internet Explorer 9(HTML 5 support) for fast browsing experience.
  • Cool App feature. If you are looking a movie in your web browser? by just tapping it will be set in your app list for future view. pretty cool isnt it
  • Quick Cards use Bing to aggregate information about entertainment venues. There are even maps for malls around the country.
  • New hardware partners Acer, Fujitsu, and ZTE working Microsoft to launch innocative mobile with cool features along with 4G support. You will see soon
  • Windows Phone 7 Mango's Internet Explorer 9 clobbers Android and iOS (current iterations) in HTML 5 speed tests.
  • Multitasking feature, Just use back button


Wednesday, August 3, 2011

World's tallest building coming to Saudi Arabia


Till now the world tallest building is Burj Khalifa which is going to change in near future. Saudi billionaire Prince Alwaleed bin Talal signed a $1.23 billion for making another tallest building in the Red Sea port city of Jeddah(Saudi Arabia).

After completion of the building , the building will be 1,000-meter-plus (3,280-foot-plus) tower and it would replace Gulf neighbor Dubai's 828-meter (2,716-foot) Burj Khalifa as the tallest tower in the world.
The whole project of making the city would cost around 20 billion dollar and for making the building alone cost $1.23 billion.For making Burj Khalifa it costs $1.5 billion dollar.Saudi Arabai wants to send the message to the world about its economic strength with making this tower.

The building will have Four Seasons hotel, serviced apartments, Class A office space, luxury condominiums and the world's highest observatory.

Source www.msnbc.msn.com

Tuesday, August 2, 2011

Evil Apple


What are the things that make the second biggest empire of the world an evil company.What makes an Apple more evil compared to Microsoft.

The industrial “ecosystem” of companies that prosper by supplying goods and services to customers who buy Apple products is much smaller than the ecosystem that grew up around Microsoft.

Of course Bill Gate's empire had for many years a license to print money because of its dominance of the market for PC operating systems and Office software. But that dominance opened up opportunities for countless companies, large and small, to provide hardware, software and services that meshed with the Microsoft products. Anyone could make and sell a PC, for example, whereas only Apple can make a Mac. Anyone could develop software to run under Windows, but only software approved by Apple can run on its i-Devices – which is why the software giant Adobe is so threatened by having its Flash animation program banned by Steve Jobs. In addition, Apple takes a 30% cut on every “approved” program that is sold. Microsoft, in contrast, was never able to levy a tax on developers selling Windows-compatible software. So while Bill Gates and co prospered mightily from their dominance of the market, other people prospered too – to the point where Microsoft claims that for every dollar it makes from Windows 7, other companies earn $18.52, and predicts that this ecosystem will sell “more than $320bn in products and services revolving around Windows 7″.

All goes to show that, in the Apple economy, only Apple gets really rich. Watch out!!!!!!!!!!!!!

Source techconews

Read Complete article in Techconews

Monday, August 1, 2011

Adobe Launches HTML5 Web Animations Tool


Adobe launches HTML5 Web Animations Tool. It enables users to create animated content using HTML5, CSS3 and JavaScript without using the flash.


What is Adobe Edge, and what does it do?
Edge is a new web motion and interaction design tool that allows designers to bring animated content to websites using standards like HTML and HTML5, JavaScript and CSS. It is currently in public preview and is designed to be powerful yet approachable and easy to use. Edge Preview is a complimentary download on Adobe Labs.

This is an early look at Edge, for evaluation and feedback that will help shape the features and future roadmap of Edge. Users are also encouraged to submit feature requests and report bugs.
Who should use the Edge Preview?
Edge is ideal for visual, web and interaction designers who want to energize their content for the web with movement and transitions. Edge Preview 1 focuses primarily on animation and motion, with upcoming previews featuring additional creative capabilities and functionality.

Currently the software (Adobe Edge) can be downloaded free and used. Adobe is waiting for the review from the developer.

Features

Feature Description
Intuitive user Interface The user interface is based on a stage, timeline, and panels for elements and properties. It’s influenced by our customers’ favorite features and functionality in class-leading tools like After Effects and Flash Professional, but innovates in its ease of use. Animations and timing can be controlled on a WebKit-based stage, or via precise property adjustments directly on the timeline. You can also make quick edits on individual or multiple objects.
Visually author animated content Create new compositions from scratch using basic HTML building blocks, text, and imported web graphics. Manipulate objects with an array of transformation and styling options which Edge natively applies to our jQuery-based animation framework.
Add motion to existing HTML content Add motion elements to existing HTML web documents. Edge stores all of its animation in a separate JavaScript file that cleanly distinguishes the original HTML from Edge’s animation code. Edge makes minimal, non-intrusive changes to the HTML code to reference the JavaScript and CSS files it creates.
Import web graphics files Import existing web graphics such as SVG, JPG, PNG, and GIF files.
Standards-based output Edge reads and writes HTML, CSS and JavaScript files natively. Animated content produced in Edge is expressed in a JavaScript Object Notation (JSON) data structure that preserves the CSS-based layout. JSON is a formatting style for JavaScript that is easily readable, and allows more flexibility to work with the document and animated content independently.
Reliable content on desktops and devices Animated content created with Edge is designed and tested to work reliably on the iOS and Android platforms, WebKit-enabled devices, and popular desktop browsers such as Firefox, Chrome, Safari, and Internet Explorer 9.

Where to Get Adobe Edge


You can download from
http://labs.adobe.com/technologies/edge/

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