Friday, September 30, 2011

How To Detect/Check a Two-Way Mirror

Conduct The Simple Test Below:

Place the tip of your finger in the reflective surface of the mirror. If there is a GAP between the reflected image of your finger from your finger then it is a Genuine Mirror.

However, if there is NO GAP at all, then beware, it is a Two-Way Mirror and somebody might be watching you behind.

Explanation:

The reason why there is a gap on the genuine mirror is because the silver is on the back of the mirror under the glass. While in the Two-Way Mirror, the silver is on the surface.

Thursday, September 29, 2011

Ubuntu Application Developer Site

Attention all Ubuntu App Developers! Feast your eyes on this. Introducing the newly opened Ubuntu App Developer Site.

Ubuntu App Developer Site


Making it possible to develop apps for Ubuntu much more easier.

Monday, September 26, 2011

How to Enable FACEBOOK TIMELINE

After FACEBOOK announced its new feature the TIMELINE, Open-Graph developers are now able to use it. And also non-Open-Graph developers can use it just by following the simple steps below:

1. Login to Facebook then type "Developer" in the search box. Then click the Developer app. (Allow application to use user info) Proceed to Developer app after adding it.


2. In the developer app, create a new app


and give your app any display name and an available namespace then agree to the Platform Privacy Policy.


3. Look for "Open Graph" in the left sidebar of the page then click it.


4. In the Open Graph page, input an action and the object of the action then Click "Get Started" button.


5. In the following pages, simply Save and Exit without doing any changes. Go to your Facebook page and an invite to try Timeline should be waiting on top of your page. Click "Get It Now" to start enjoying you Facebook Timeline.

Note: Only Open-Graph users can see your Facebook Timeline, otherwise they will only see your old profile.

How To Install Adobe Flash Player in Mozilla Firefox (Ubuntu)

Installing Adobe Flash Player plugin for Mozilla Firefox in Ubuntu is just simple as the steps below:

1. Go to the download page of the adobe flash player plugin for Ubuntu using the mozilla firefox browser. You will see the page below.



2. In the "Select Version to Download" dropbox, choose ".tar.gz for other linux" then a Download Now button will appear. Click it.

3. After successfully downloading the .tar.gz file, extract the contents and look for the libflashplayer.so file. Copy these file to this path "/home/YOURPCNAME/.mozilla/plugins".

4. Restart your Mozilla Firefox browser and you now have adobe flash player plugin on it.

Tuesday, September 20, 2011

How To Crop Images in Java Using JAI

Here is a sample code snippet of creating an application in Java that will crop images using JAI.

/**
Start
**/

RenderedOp image;
BufferedOutputStream output = null;

try{

//Change the value of the phrase in red to the path of the file
//that you want the crop
image = JAI.create("fileload", "/home/cgabisan/Desktop/Strat1.png");


//Origin point where you want to start cropping
Point p = new Point(150, 150);
//The size of the area that you want to crop
Dimension d = new Dimension(90, 70);
Rectangle r = new Rectangle(p,d);

ParameterBlock pb = new ParameterBlock();
pb.addSource(image);

pb.add((float)r.getX());
pb.add((float)r.getY());
pb.add((float)r.getWidth());
pb.add((float)r.getHeight());

//Creates the cropped area
image = JAI.create("crop", pb);

//Change the value in the File constructor with the filename and path
//that you want the cropped image to be save
File file = new File("/home/cgabisan/Desktop/test2.jpeg");

BufferedImage bufferedImage = image.getAsBufferedImage();
output = new BufferedOutputStream(new FileOutputStream(file));
ImageIO.write(bufferedImage, "JPEG", output);

}catch (Exception e){
e.printStackTrace();
} finally{
try {
output.close();
} catch (IOException e) { 
// TODO Auto-generated catch block
e.printStackTrace();
}
}

/**
End
**/

For the sample file, you may download it here

https://picasaweb.google.com/lh/photo/4DlSroqvQerM8ZZ7yKMyVQ?feat=directlink

Wednesday, September 14, 2011

Link Exchange

Link directory of Top Sites
SEO friendly web directory of top sites & blogs organized by topic into categories and presented according to relevance of website. Submit your website free.

Wednesday, September 7, 2011

Run For IT 2

From Run For IT 2

Attention all Running Enthusiast! The race is back for RUN FOR IT 2.

When: NOV. 06, 2011, Sunday

ENTRY FEE: 
               w/ Singlet, bib, snacks

     4K & 8K  = Php 300.00
     16K          = Php 400.00

REGISTRATION PERIOD: September 1 to November 5, 2011


Register at the following venues:


1. CEDF-IT Office, Asiatown IT Park
    (across new bldg. of Aegis People Support)
    Tel: (032) 412-7695 to 96


2. RUNNR - Ayala


Race Route Map


Click to Enlarge
From Run For IT 2