
The Clover is an eco-friendly mobile phone concept that has been designed to grow old with the user. This phone features four module interfaces; sound, sensor, vision and location, allowing the user to customize the phone according to their need and taste. Moreover, users can add quite a few numbers of additional modules to make the phone even more functional and attractive. The sleek black touchscreen offers different way of checking out the functions and a user-friendly operating environment. The phone is branded under the name of Samsung and is a great physical device that can develop and share environmental awareness through a built-in collaborative social network name “eco-map”.
Clover Eco-Sensitive Mobile Phone Grows Old With You
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 1:17 PM 0 comments
Labels: New Technology
Introduction to Design Patterns
What are Design Patterns?
Creational -
Creational patterns are ones that create objects for you, rather than having you instantiate objects directly. This gives your program more flexibility in deciding which objects need to be created for a given case.
Structural -
Structural patterns help you compose groups of objects into larger structures, such as complex user interfaces or accounting data.
Behavioral -
Behavioral patterns help you define the communication between objects in your system and how the flow is controlled in a complex program
Creational Design Patterns:Read More...
Singleton - Ensure that only one instance of a class is created and Provide a global access point to the object.
Factory(Simplified version of Factory Method) - Creates objects without exposing the instantiation logic to the client and Refers to the newly created object through a common interface.
Factory Method - Defines an interface for creating objects, but let subclasses to decide which class to instantiate and Refers to the newly created object through a common interface.
Abstract Factory - Offers the interface for creating a family of related objects, without explicitly specifying their classes.
Builder - Defines an instance for creating an object but letting subclasses decide which class to instantiate and Allows a finer control over the construction process.
Prototype - Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
Object Pool - reuses and shares objects that are expensive to create..
Behavioral Design Patterns:Read More...
Chain of Responsibility - It avoids attaching the sender of a request to its receiver, giving this way other objects the possibility of handling the request too.
Command - Encapsulate a request in an object, Allows the parametrization of clients with different requests and Allows saving the requests in a queue.
Interpreter - Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language / Map a domain to a language, the language to a grammar, and the grammar to a hierarchical object-oriented design
Iterator - Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
Mediator - Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.
Observer - Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Strategy - Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
Template Method - Define the skeleton of an algorithm in an operation, deferring some steps to subclasses / Template Method lets subclasses redefine certain steps of an algorithm without letting them to change the algorithm's structure.
Visitor - Represents an operation to be performed on the elements of an object structure / Visitor lets you define a new operation without changing the classes of the elements on which it operates.
Null Object - Provide an object as a surrogate for the lack of an object of a given type. / The Null Object Pattern provides intelligent do nothing behavior, hiding the details from its collaborators.
Structural Design Patterns:Read More...
Adapter - Convert the interface of a class into another interface clients expect. / Adapter lets classes work together, that could not otherwise because of incompatible interfaces.
Bridge - Compose objects into tree structures to represent part-whole hierarchies. / Composite lets clients treat individual objects and compositions of objects uniformly.
Composite - Compose objects into tree structures to represent part-whole hierarchies. / Composite lets clients treat individual objects and compositions of objects uniformly.
Decorator - add additional responsibilities dynamically to an object.
Flyweight - use sharing to support a large number of objects that have part of their internal state in common where the other part of state can vary.
Memento - capture the internal state of an object without violating encapsulation and thus providing a mean for restoring the object into initial state when needed.
Proxy - provide a “Placeholder” for an object to control references to it.
Advantages And Disadvantages
Advantages:
1. A standard solution to a common programming problem
2. Enable large scale reuse of S/W
3. Helps in improve developer communication
4. Capture expert knowledge and design trade-offs and make expertise widely available
5. A technique for making code more flexible by making it meet certain criteria
6. A design or implementation structure that achieves a particular purpose
7. Speed up the development process by providing tested, proven development paradigms.
8. Reusing design patterns helps to prevent subtle issues that can cause major problems, and it also improves code readability for coders and architects who are familiar with the patterns.
9. Design patterns provide general solutions, documented in a format that doesn't require specifics tied to a particular problem.
10. In addition, patterns allow developers to communicate using well-known, well understood names for software interactions. Common design patterns can be improved over time, making them more robust than ad-hoc designs
Disadvantages:
1. Do not lead to direct code reuse
2. Complex in nature
3. They are deceptively simple
4. Design patterns may increase or decrease the understandability of a design or implementation. They can decrease understandability by adding indirection or increasing the amount of code.
5. They are validated by experience and discussion
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 12:16 PM 0 comments
Labels: Dessign Patterns
First X-Men Origins Game

See the screenshot , that’s the first in-game pic of X-Men Origins: Wolverine, the videogame, NOT the movie. As you can tell, it looks like not only does the game use the likeness of Hugh Jackman as Wolverine, but the graphics will be extremely detailed and very close to the real deal.
According to 1-Up and EGM, who got the exclusive cover-story blow-out on the game, say that it is not only very violent (in keeping with the Wolverine of the comics, I hope) but also more along the lines of Ninja Gaiden II than a “standard” action game. Players will get to take the role of Logan and experience the tormented origins of Wolverine, from his escape of the Weapon X facility to the jungles of Africa and beyond. Here is the official description of the game:
X-Men Origins: Wolverine is an epic action-adventure featuring a true-to-character Wolverine gameplay experience that takes gamers through and beyond the movie’s storyline. Set in a variety of vivid real-world locales, the title challenges players to hone their animal instinct as they uncover hidden dangers, hunt and destroy enemies, and take on seemingly insurmountable situations while discovering the truth about Wolverine’s tragic past. With razor-sharp adamantium claws unsheathed, the future X-Man enacts lightning-quick combat, evasive maneuvers, in-depth combo attacks, and an array of brutal finishing moves. Wolverine doesn’t just deliver massive damage, either — he also takes it, thanks to his mutant regenerative power that heals him in real time right before the player’s eyes.
Developed by Raven Software (makers of X-Men Legends and Marvel Ultimate Alliance), the game will feature a “simple but elegant” and accessible combat system, cool boss fights including an initial one against a Sentinal robot (YES!), seamless cinematic cut-scenes that will bridge the gameplay bits and lots more.
The game will launch alongside the global release of the film in May of 2009 for Xbox 360, PS3, PS2, PC, Wii, DS, and PSP game systems.

Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 10:09 AM 0 comments
Labels: New Games
Michael Jackson's This Is It

Theatrical Release:Wednesday, October 28, 2009 (Wide; 3,400 theaters)
Directed by: Kenny Ortega
Genres: Documentary Music
Distributor:Sony Pictures
SYNOPSIS
Michael Jackson's "This Is It" will offer Jackson fans and music lovers worldwide a rare, behind-the-scenes look at the performer as he developed, created and rehearsed for his sold-out concerts that would have taken place beginning this summer in London's O2 Arena. Chronicling the months from March through June, 2009, the film is produced with the full support of the Estate of Michael Jackson and drawn from more than one hundred hours of behind-the-scenes footage, featuring Jackson rehearsing a number of his songs for the show. Audiences will be given a privileged and private look at Jackson as he has never been seen before. In raw and candid detail, Michael Jackson's "This Is It" captures the singer, dancer, filmmaker, architect, creative genius, and great artist at work as he creates and perfects his final show.

Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 9:54 AM 0 comments
Labels: New Movie
GoOd MoRnInG My DeAr FrIeNdS

“New” day
“New” aims
“New” hopes
“New” plans
“New” efforts
“New” success,
“New” feelings
I wish u a Happy &
very SuccesfuL “NEW DAY”
GOOD MORNING MY DEAR FRIENDS
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 6:04 AM 0 comments
Labels: Welcome
Software Test Tools
What Are Software Test Tools?
Software test tools help development teams investigate software bugs, verify functionality, and ensure both the reliability and security of the software they develop. Tools are available for all stages of a software development project. Some software testing tool vendors offer an integrated suite that will support testing and development throughout the life of a project, from gathering requirements to supporting the live system. Other vendors concentrate on a single part of the application development life cycle.
Software Test Tools Business Drivers and Benefits
1) Increase the quality of software applications.
2) Software performance measurement.
3) Improving process management lifecycle of the product.
4) Perform a risk analysis and benchmarking.
5) Gain consistency in testing procedures with automated testing tools (as opposed to manual testing, which may be incompatible).
6) Improving the time to put on the market following the effective detection of functional performance, and security issues.
7) Save money on software development and maintenance costs
Software Test Tools Risks
1. Automated testing can produce quantities of raw data cumbersome. Test for choosing one form tool you can easily manipulate the data that is capable of change and should work together.
2. It undermines the efficiency of fault injection is not important. Fault injection tool specific code paths above weaknesses, particularly, the path that are victims of security attacks can not show through the check.
3. There are two drawbacks you enough for choosing the wrong software tools have not only wasted time and resources, but also an obstacle that you can get your teams made solutions difficult.
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 1:13 PM 0 comments
Labels: Software Test Tools
Astro Boy

Theatrical Release:
Friday, October 23, 2009 (Wide; 3,014 theaters)
CAST AND CREW LIST
Directed by:
* David Bowers
Starring:
* Nicolas Cage
* Donald Sutherland
* Freddie Highmore
* Kristen Bell
* Matt Lucas
* Eugene Levy
* Nathan Lane
* Bill Nighy
Screenwriter:
* Timothy Harris
Producer:
* Maryann Garger
Genres:
Adventure Fantasy Sci-Fi Animation
SYNOPSIS
A computer graphics adaptation of Osamu Tezuka's famous manga about a boy robot, first published in 1952.
Set in futuristic Metro City, "Astro Boy" is about a young robot with incredible powers created by a brilliant scientist named Tenma (Nicolas Cage). Powered by positive "blue" energy, Astro Boy (Freddie Highmore) is endowed with super strength, x-ray vision, unbelievable speed and the ability to fly.
Embarking on a journey in search of acceptance, Astro Boy encounters many other colorful characters along the way. Through his adventures, he learns the joys and emotions of being human, and gains the strength to embrace his destiny. Ultimately learning his friends and family are in danger, Astro Boy marshals his awesome super powers and returns to Metro City in a valiant effort to save everything he cares about and to understand what it takes to be a hero.

Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 8:41 AM 0 comments
Labels: New Movie
Nokia's 'Booklet 3G' Netbook

Nokia's 'Booklet 3G' Netbook With 12 Hour Battery-Life. Form and Functionality.
If you're a fan of Netbooks, and also a fan of Nokia, you'll soon be able to indulge your preference. On 2 September 2009, Nokia plans to release availability and pricing details for their new netbook called the "Booklet 3G"
Yes, Nokia is bringing out its own kind of Netbook, and even though it may look like a regular netbook, it will carry the classy, smooth design we're used to see from Nokia.
The Booklet 3G will be Windows based and powered by the popular and efficient Intel Atom processor with a whopping 12 hour battery life. This means people will be able to leave their power cables behind a little more often, without losing connectivity.
Weighing only 1.25 kilograms, this new lightweight plans to pack a significant punch with its highly portable aluminium casing. It's little more than 2 centimetres thick.
Connectivity options include 3G/HSDPA as well as Wi-fi, offering users high speed access to the internet.
The device features a HDMI port enabling HD video out, a built-in camera for video calling, blue tooth and SD card reader. Featuring a 10-inch glass HD ready display and a built-in A-GPS (which works with the Ovi Maps gadget), pinpointing your exact position takes only seconds.
We cannot really be surprised by this move, considering that Nokia is one of the world's leading providers of connectivity. Considering that Nokia is probably one of the most well known names in the world today, consumers should be able to look forward to be able to add to their list of gadgets the new Booklet 3G.
Nokia seems to be upping their game every time a new product is released, and we expect pretty much the same this time. Of course consumer expectations will likely be high with this new addition to their product line, but if Nokia continues to deliver the high quality we've grown accustomed to over the years, I'm sure it will be a hit with users.
Product availability and pricing details will be released on 2 September, 2009 through Nokia World 



Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 8:29 AM 0 comments
Labels: New Technology
What Microhoo means to you

The deal Microsoft and Yahoo made today to combine their ad and search efforts has its roots in the mid-1990s, near the dawn of the Web.
It was then Yahoo CEO Tim Koogle who made the decision that Yahoo would become a “portal,” a gateway to an internal Web world. All the smart guys in New York and in the mainstream media were urging this. Search, they said, was limited, it was techie, it was obscure. The real growth was in media.
Around the same time Microsoft decided it must “embrace and extend” its monopoly from Windows to Office to the Web, through Internet Explorer. Rather than selling what it made, it would bundle its monopoly products with its browser and dominate that way. This led to its antitrust case, and it has embraced, even extended itself into, the legal profession ever since.
So it was mistakes made long ago that created the new Microhoo. Yahoo will become the salesman and public face for Microsoft’s technology. The hope is this will slowly eliminate the technology, legal, and marketing mistakes both are known for, relying on the two firms’ complementary strengths.
For more info...
http://www.smartplanet.com/technology/blog/thinking-tech/what-microhoo-means-to-you/918/?tag=content;col1&gclid=CL73tZ6T0p0CFUtp4wodBnx8sQ
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 8:18 AM 0 comments
Labels: My Readings
Nokia Unveils Its First Linux Phone N900

Nokia unveiled N900, its first smart phone running on Linux software, aiming at improving its offering at the top end of the market.
The Nokia N900 runs on the Linux-based Maeme 5 software, featuring true multitasking with applications as well as Web browsing with Adobe Flash support.
Nokia’s workhorse Symbian operating system controls half of the smartphone market volume — more than its rivals Apple, Research in Motion and Google put together. Nokia said Linux would work well in parallel with Symbian in its high-end product range.
“As Nokia announces the software platform that will drive its future services aspirations it created a dedicated solutions unit — the challenge will be to ensure that all these elements work in harmony in the face of fierce competition from Apple and Google,” said Ben Wood, head of research at CCS Insight.
The new N900 model, with cellular connection, touch screen and slide-out keyboard, will retail for around $712, excluding subsidies and taxes.
Nokia also unveiled a new Solutions business unit, which aims to better tie together its phone operations and new mobile Internet services offering.
Technical details of N900:
Display:
3.5 inch touch-sensitive widescreen display
800 × 480 pixel resolution
Web browsing:
Maemo browser powered by Mozilla technology
Adobe Flash™ 9.4 support
Full screen browsing
Camera:
5 megapixel camera (2584 × 1938 pixels)
Image formats: JPEG
CMOS sensor, Carl Zeiss optics, Tessar lens
3 × digital zoom
Autofocus with assist light and two-stage capture key
Dual LED flash
Full-screen viewfinder
Photo editor on device
TV out (PAL/NTSC) with Nokia Video Connectivity Cable (CA-75U, included in box) or WLAN/UPnP
Landscape (horizontal) orientation
Capture modes: Automatic, portrait, video, macro, landscape, action
Video:
Wide aspect ratio 16:9 (WVGA)
Video recording file format: .mp4; codec: MPEG-4
Video recording at up to 848 × 480 pixels (WVGA) and up to 25fps
Video playback file formats: .mp4, .avi, .wmv, .3gp; codecs: H.264, MPEG-4, Xvid, WMV, H.263
Music and audio playback:
Maemo media player
Music playback file formats: .wav, .mp3, .AAC, .eAAC, .wma, .m4a
Built-in FM transmitter
Ring tones: .wav, .mp3, .AAC, .eAAC, .wma, .m4a
FR, EFR, WCDMA, and GSM AMR
Digital stereo microphone
DLNA
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 9:37 AM 0 comments
Labels: New Technology
A Faster Workstation Means a Faster You

HP Z600 Workstation. Built for professionals like you.
The new HP Z600 Workstation lets you accomplish more with every minute of your time. Spend less time rendering, saving and waiting...spend more time creating. With up to 250%* more speed than your current system, the HP Z600 gives your performance a substantial boost.
• Available with two new-generation powerful intelligent Intel® Xeon® processors, for eight total cores of pure processing power
• Configurable with more RAM and the latest graphics cards to meet the demands of your job
• High-end performance—from one of the smallest, quietest dual-socket workstations available
The HP Z600 is engineered to optimize the way the processor, memory, graphics, OS and software components work together to deliver massive, whole-system computational power. Now you'll have the ability to process more tasks—in less time. The ideal workstation when every inch, watt, and decibel make a difference. 
Designed and pre-configured for professional users
• Powered by the intelligent Intel® Xeon® Processor¹
• Genuine Windows XP Professional 64-bit available through downgrade rights from Windows Vista
Business 64 2
• NVIDIA Quadro NVS 295 (256 MB) graphics card
• 3 GB DDR3 memory
• Dual hard drives (160 GB / 250 GB)
Includes HP LP2275w 22" Widescreen LCD Monitor
$2,063
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 9:12 AM 0 comments
Labels: New Technology
Good Morning
There's
always going to be people that hurt you so what you have to do is keep
on trusting and just be more careful about who you trust next time
around.
GOOD MORNING DEAR FRIENDS...... :) WELCOME ALL OF YOU
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 8:16 AM 0 comments
FIFA Soccer 10 (Xbox 360) Release Date: 10/20/2009

On the pitch, critical gameplay fundamentals have been enhanced to ensure that FIFA 10 mirrors real-world football, providing more sophisticated ball control, and physical interaction between players. In addition, players now move, behave and position themselves more realistically. On attack, players analyze space more effectively, curve their runs in an attempt to stay onside, create passing lanes naturally, and drive for more variety in attacking options. On defense, new concepts like position priority enable defenders to multitask so dangerous spaces left open by teammates out of position are covered. Plus, slide tackle targeting, press marking, and better-urgency clearance logic provide new options that make defending a tactical skill in FIFA 10. In goal, a myriad of improvements and refinements to goalkeeper intelligence result in a more responsive and powerful rushing system and ultra-realistic saves.
Listening to feedback and addressing gamer frustrations has become a key part of the EA SPORTS strategy to improve the FIFA franchise on an annual basis. Better balance on lofted through balls, improved goalkeeper intelligence, more realistic shooting mechanics with less shots hitting the goal posts, a practice arena to perfect skills, and a more immersive football experience through continuous play and quick free kicks are just a few of the issues raised by fans and addressed in FIFA 10.
Three new innovations revealed today have been developed to change the player control experience in FIFA 10. The first-ever true 360° dribbling system gives players finer control of the ball, enabling them to find spaces between defenders that previously were not possible. Using an all-new animation technology, skilled dribblers now have the ability to face the defender and use highly responsive lateral dribbling to skip past him. An innovative concept called Freedom in Physical Play enables players to perform wider dribble touches and new collision sharing creates a varied, less predictable, and extended fight for possession between the dribbler and a defender.
FIFA 10 also features a deeper iteration of the ever-popular Manager Mode with more than 50 major improvements, including new match realism, realistic player transfers based on multiple decision points, and true-to-life player growth curves.
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 4:11 PM 0 comments
Install Windows XP after installing Ubuntu
STEP 1
Install UBUNTU in your machine.
STEP 2
Create a partition to install XP.
Now we must create a space on the hard drive for XP, so this means resizing the Ubuntu partition. Restart the system using the Ubuntu Live CD as it gives you access to GNOME Partition Editor. When loading the CD, select "Try Ubuntu without any change to your computer.
Right-click on the main data partition which has been formatted with ext3 - it should be /dev/sda1 - and select "Resize/Move"
Move the cursor to the right to reduce the ext3 partition and create free space on the hard drive, which will take the XP NTFS partition. Make sure the space is large enough to hold XP (at least 2 GB - preferably 5 Go). Then click "Resize / Move" to confirm the selection, and "Apply" to return to the main screen to make the change under-way.
STEP 3
Install Windows XP to Your Machine.
STEP 4
Restore the GRUB boot loader
Once XP has been installed, it will boot happily into XP but there's no sign of Ubuntu. To reinstate GRUB as the system bootloader it needs to be reinstalled into the MBR.
Boot the system from the Ubuntu Live CD and select "Try Ubuntu without any change to your computer".
To enter the GRUB configuration mode, type in "sudo grub" and press Enter. Then type in the following commands in sequence:
- root (hd0,0)
- setup (hd0)
- quit
- exit
STEP 5
Change the menu.lst file in /boot/grub directory.
Go to the grub directly using terminal then type sudo nano menu.lst.
then Edit it as follows and save the file.
Scroll down to the bottom of the file and type in the following text strings:
title Windows XP
root (hd0,1)
makeactive
chainloader +1
Save the file and reboot. When the GRUB loader launches hit ESC for the boot menu. Windows XP is the last option - select it and XP will load.
If you want to make the GRUB menu always available, boot back into Ubuntu and edit the MENU.LST file. Find the hiddenmenu text string and change it to #hiddenmenu.
To increase the menu timeout, change the default timeout 3 to something more appropriate.
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 3:41 PM 0 comments
Ong Bak 2: The Beginning

Release Date: October 23, 2009 (limited)
Studio: Magnet Releasing (Magnolia Pictures)
Director: Tony Jaa
Screenwriter: Panna Rittikrai
Starring: Tony Jaa, Sorapong Chatree, Sarunyu Wongkrachang, Nirut Sirichanya, Santisuk Promsiri, Primorata Dejudom
Genre: Action
MPAA Rating: R (for sequences of violence)
Official Website: OngBakTwo.com
Review: Not Available
DVD Review: Not Available
DVD: Not Available
Plot Summary: Set in the regal times of King Naresuan, Tien (Tony Jaa) is a man who was born into nobility but had it stripped from him after his parents were brutally murdered. During his childhood Tien learned Khon, a form of dance which is usually reserved for royalty. Although he didn't know it yet, Khon would later prove to be an invaluable aide to him. After seeing his parents murdered at the tender age of 10, Tien is forced to live on the streets where he is eventually captured by a group of thieves who take him in and teach him how to steal and fight.
Tien's expertise as a thief and fighter grows and it isn't long before he is made head thief. Then Tien sees something that makes his stomach churn. A competition is being held to find the best knights to serve under the very man who had killed Tien's parents all those years ago. Tien passes the tests easily and is made Lord Rachasana's 2nd Knight. Now, he has his opportunity to strike but he will have to use all his skill and ingenuity if he is going to get his revenge on the man who killed his parents.
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 9:13 AM 0 comments
Welcome to My Blog
Past is Experience!
Present is Experiment!
Future is Expectation!
Use ur Experience!
In ur Experiment!
To achieve ur Expectation!
WELCOME ALL OF YOU MY FRIENDS......
मेरे दोस्तों का स्वागत...
bienvenue à mes amis
私の友人を歓迎
내 친구 오신 것을 환영합니다
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 8:39 AM 0 comments
The Vampire's Assistant

Synopsis
Based on the popular series of books by Darren Shan, Cirque du Freak: The Vampire's Assistant tells the story of a small-town teen who inadvertently shatters a 200-year-old truce between warring factions of vampires. Sixteen-year-old Darren (Chris Massoglia) is your typical adolescent; he spends most of his time with his best friend, Steve (Josh Hutcherson), earns decent grades, and generally manages to stay out of trouble. But trouble finds Darren when he and Steve make the acquaintance of a vampire named Larten Crepsley (John C. Reilly) while attending a traveling freak show at a local theater. Transformed into a bloodsucker by Crepsley, Darren joins the Cirque du Freak and quickly ingratiates himself with the unusual cast of characters who populate it, including Madame Truska the Bearded Lady (Salma Hayek) and the traveling sideshow's towering barker (Ken Watanabe). As Darren works to master his newfound powers as a budding member of the supernatural underworld, he becomes a valued pawn between the vampires and their deadlier rivals, the Vampanese. With tensions between the two sects intensifying, Darren must figure out a means of keeping the coming war from destroying his last vestige of humanity. Patrick Fugit, Orlando Jones, Willem Dafoe, and Jane Krakowski co-star. - Jason Buchanan, All Movie Guide
Movie Info
Starring:John C. Reilly, Ken Watanabe, Josh Hutcherson, Chris Massoglia, Ray Stevenson
Theatrical Release Date:10/23/2009
Rating:PG-13
Run Time:108 min.
Distributor(s):Universal
Director(s):Paul Weitz
Genre(s):Action, Family, Fantasy
Themes:Vampires, Metamorphosis
Tone:Humorous, Stylized
Country of Origin:USA (10-23-2009)
Language:English

Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 5:07 PM 0 comments
Test Automation
Test automation is the use of software for monitoring the performance tests, comparing actual results with expected results, the functions of setting up test conditions and control tests and other testing Reference [1]. Generally, test automation involves automating a manual process already in place that uses a formalized testing process.
Following two pictures are describing the test automation steps. 

Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 3:34 PM 0 comments
Cucumber and Ruby on Rails (Part 6) My learning materials
OK now I think you all have good knowledge about my pasts posts. I f you have any question you can ask me any time by mailing me. Now lets move to our todays lesson.
What can we do further with our project. Hmmmmm... We can validate user inputs . Lets see how can the validations can be done using cucumber.
What can we validate. We can validate “user inputs are OK such as is price is a numerical value or not and all the fields are not empty etc..”
Before doing the cucumber part lets see the what is happening in GUI part.
Go to the product/app/models/ folder and open product.rb file. Afetr that copy and paste following codes to it as follows.
class Product < ActiveRecord::Base
validates_presence_of :title, :description, :image_url
validates_numericality_of :price
end
Now lets see the GUI.
1)First go to the product folder in the terminal and then run the server “ruby script/server”
2) Then gotothe browser and type “http://localhost:3000/products” . Then you can see following GUI
3)click on New product link and you can see this page.
4)Now check what is happening when click on create button without filling any field. You can see following error massages.
5)Now you can see what is happening when there is one field is filling and click create button. Check them with your self.
6)Now lets see how the cucumber can use for this.
7)Go to the feature folder and create a new file called validate_product_details.feature and copy and paste following scenario.
8)
Scenario: Validate Product Details
Given I have no products
And I am on the list of Products
When I follow "New Product"
And I fill in "Title" with ""
And I fill in "Description" with ""
And I fill in "Image Url" with ""
And I fill in "Price" with ""
And I press "Create"
Then I should see "Title can't be blank"
And I should see "Description can't be blank"
And I should see "Image url can't be blank"
And I should see "Price is not a number"
9)Now run the cucumber features/validate_product_details.feature then you can see following.
10)It says all steps are passed. In this scenario we can check alll the validation by writing steps like follows
Scenario: Validate Product Details
Given I have no products
And I am on the list of Products
When I follow "New Product"
And I fill in "Title" with ""
And I fill in "Description" with ""
And I fill in "Image Url" with ""
And I fill in "Price" with ""
And I press "Create"
Then I should see "Title can't be blank"
And I should see "Description can't be blank"
And I should see "Image url can't be blank"
And I should see "Price is not a number"
When I fill in "Title" with "C#"
And I fill in "Description" with ""
And I fill in "Image Url" with ""
And I fill in "Price" with ""
And I press "Create"
Then I should see "Description can't be blank"
And I should see "Image url can't be blank"
And I should see "Price is not a number"
When I fill in "Title" with "C#"
And I fill in "Description" with ""
And I fill in "Image Url" with ""
And I fill in "Price" with "23"
And I press "Create"
Then I should see "Description can't be blank"
And I should see "Image url can't be blank"
When I fill in "Title" with "C#" .......
like wise we can write so many steps.
11)But you can see that is not much effective because write all the validation like this is not good. What can we do for it. Think a little bit....
12)If you can remember the last post why we can't use that. Then the above scenario can be written as follows.
Scenario: Validate Product Details
Given I have no products
And I am on the list of Products
When I follow "New Product"
When I fill in the following:
| Title | |
| Description | |
| Image Url | |
| Price | |
And I press "Create"
Then I should see "Title can't be blank"
And I should see "Description can't be blank"
And I should see "Image url can't be blank"
And I should see "Price is not a number"
13)Now run the cucumber features/validate_product_details.feature
href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaQD7rNpHoYBhgzg21XQiHOEH_8Jh02dNuAdP0oKgQBuNYlolS3o01DToXvYZ3QdZIj_HiUdi5RtfodqhQLnUXivHK4TiiWY3fuRYCIqvfi0SIGn6X5UacXBI-qvxxAgK5XghdRY7HIXQ/s1600-h/5.png">
14)What a simple way to write validation file. Now lets expand this as follows and try to understand to what is happening there.
Scenario: Validate Product Details
Given I have no products
And I am on the list of Products
When I follow "New Product"
When I fill in the following:
| Title | |
| Description | |
| Image Url | |
| Price | |
And I press "Create"
Then I should see "Title can't be blank"
And I should see "Description can't be blank"
And I should see "Image url can't be blank"
And I should see "Price is not a number"
When I fill in the following:
| Title | |
| Description | |
| Image Url | |
| Price | 20 |
And I press "Create"
Then I should see "Title can't be blank"
And I should see "Description can't be blank"
And I should see "Image url can't be blank"
When I fill in the following:
| Title | |
| Description | |
| Image Url | a.jpg |
| Price | |
And I press "Create"
Then I should see "Title can't be blank"
And I should see "Description can't be blank"
And I should see "Price is not a number"
When I fill in the following:
| Title | |
| Description | My name is JTK |
| Image Url | |
| Price | |
And I press "Create"
Then I should see "Title can't be blank"
And I should see "Image url can't be blank"
And I should see "Price is not a number"
When I fill in the following:
| Title | JTK |
| Description | |
| Image Url | |
| Price | |
And I press "Create"
Then I should see "Description can't be blank"
And I should see "Image url can't be blank"
And I should see "Price is not a number"
15)Now run the cucumber features/validate_product_details.feature now try to write your own validation files for your projects.
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 12:54 PM 0 comments
Under construction
Hi all,
These days I am going too change my blog view to different view. So sorry for problems which you found.
Posted by ජීවන්ත තාරක (Jeewantha Tharaka Kodikara) at 5:18 PM 0 comments
