Posts

Green Cleaning: Its impacts on Health & Environment

Image
Green cleaning refers to the use of cleaning methods and products that are environmental friendly in nature as it contains ingredients and products that are designed to preserve and create no harm to the human health and environment quality. These green cleaning products and techniques avoid the use of materials which contain toxic or harsh chemicals some of which emit volatile organic compounds which cause respiratory, dermatological and other dreaded conditions. Products are environmental friendly and biodegradable. Little that we verify, what it is in that container of Your favorite Cleaning Product? Experts say that most of the cleaning products are made up of enormous amount of chemicals which can impact the health of users. As people are being more aware of the impacts and zooming in the market, people begin rethinking what they will be bringing into their homes. Famous water pollutant is phosphates, water-softening mineral additives that were once widely used in laun

So, What is E-commerce?

The Internet has created a new economic ecosystem, the e-commerce marketplace, and it has become the virtual main street of the world. Providing a quick and convenient way of exchanging goods and services both regionally and globally, e-commerce has boomed. Today, e-commerce has grown into a huge industry with US online retail generating $179 billion in revenues in 2010, with consumer-driven (B2C) online transactions impacting industries from travel services to consumer electronics, from books and media distribution to sports & fitness. So Lets see what is E-commerce: E-commerce: E-commerce (electronic commerce or EC) is the buying and selling of goods and services on the Internet. In practice, this term and e-business are often used interchangeably. For online retail selling, the term e-tailing is sometimes used. It has lot of benefits too: 1. Global Presence : The penetration of your business is Global. Means your business can go from India to US, Australia to South Africa. 2. L

Capturing a Screenshot in Java (Using AWT)

Image
Taking a screen shot in Java, sounds interesting right. Suddenly, While Searching to internet I came across this. Here is the piece of code with which you can do this task: import java.awt.AWTException; import java.awt.Rectangle; import java.awt.Robot; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class ScreenCapture { public static void main(String[] args) { try { Robot robot = new Robot(); //The Size of Rectangle is Similar to Screen Resolution. BufferedImage bi=robot.createScreenCapture(new Rectangle(1280,1024)); //This will write the image to this particular location ImageIO.write(bi, "jpg", new File("C:/Ashish Docs/ScreenShot.jpg")); } catch (AWTExcepti

Bridging Java and Adobe Air - Merapi

Image
How Exiciting it will be if you can call Java directly from an AIR Application? I got excited when i read first time. And I feel you will also be. So why to wait, here is the solution for it........ Merapi Merapi: A Bridge between Adobe AIR and Java Merapi is a bridge between applications written in Java and those running in and created for Adobe AIR™ (Adobe Integrated Runtime™). Merapi has been designed to run on a user's machine, along with an Adobe AIR™application and providea direct bridge between the Adobe AIR™ framework and Java, exposing the power and overall calabilities of the user's operating system, including 3rd party hardware devices. With a light weight and straightforward API, developers can leverage the OS by writing Java companion applications for their AIR™ applications. Java programs treat Merapi as a bridge to the running Adobe AIR™ application and vice-versa. How to achieve this is given below: Sending a message from ActionScript: var message : Message = ne

Finding Postions of HTML Element in a Scrollable Div

Hi Friends, Have you ever find it difficult to find the x, y coordinates value for a HTML element in side a scrollable div. Just few days back, i got this problem. where i wanted to show tool tip on a link, but since the HTML element was in a scrollable div, the positioning to tooltip was not correct. Here is the code earlier i used to find the X and Y positions: function findPosX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) curtop += obj.y; return curtop; } This function works well when your HTML element is not within a scrollable div. B

Removing null or specific values from list in Java

Have you tried to remove null values from a List (may a ArrayList). Yesterday I was trying it out, when I had to remove null values from a List before processing it. Initially, I was trying with the simple for loop and out I was getting Still NullPointerException while processing. I tried with couple of ways, before I came to a efficient one. Lets see this with an example: Lets see what are the flaws, when u try to remove null values from a List with a for loop: List li = new ArrayList(); FileListItem fLI = new FileListItem(); fLI.setFormFileName("123"); FileListItem fLI2 = new FileListItem(); FileListItem fLI3 = new FileListItem(); FileListItem fLI4 = new FileListItem(); fLI4.setFormFileName("456"); li.add(fLI); li.add(fLI2); li.add(fLI3); li.add(fLI4); System.out.println("====this.fileList() =====" + li); for(int i = 0;i <> System.out.println("li Size ====" + li.size() + "

Holi 2008 - Better than Expected

Image
Hi Friends, This time I celebrated holi in Pune. This year it was special. Check out the photos, which will tell you about it. Thanks My frens, who were there with Me. I hope Everybody had a great fun on that day.