Thursday, November 15, 2012

How to Install Java on your Computer.

Today I'm gonna tell you about Java. The reason why I tell you about Java is that you're gonna need it to be installed on your PCs to use the tools I'm gonna introduce to you via this blog, as they all are developed in the Java technology.

Java is currently the leading, most powerful and the most secured programming language and the software platform in the world. The reason why it become so powerful is that it runs on a totally different platform separately to your Operating System, means even if a virus has been hit your programs, all the Java programs that a very bog probability to be safe.

The other thing is it is a cross platform technology. That means you can use a Java program in any Operating System without a problem. You can't use Windows Software in Apple or Linux. You can't use Apple Software in Windows or Linux and you can't use Linux Software in Windows or Apple. But you can use Java Software in any of those Operating Systems.

And the other feature it has is it is highly equipped. Basically it can cover all the things in computer technology. To Graphic Designing to Robotics.

So let's get to the business now. Installing Java on your Computer is easy. Just go to the link below and download the Java Runtime Environment (JRE) and install it on your Computer like a normal software. That's it. So here's the link to download Java. And don't worry it's not a big file to download. It only takes 15-20 MB.

Click here to Download and Install JAVA on your Computer.


If there are anyone who likes to develop Java Software you can download the Java Development Kit (JDK) it has all you need to develop your own Java Software. Just go to http://www.java.com and download and install the JDK.

So I hope you all will install Java on your PCs now. So I'll be here again with some awesome tool to share with you. Good Luck!

P:S: If you remember the Cricfeeder Application, the online Live Cricket Score Display, it also runs on Java so if you haven't tried it yet you can try it after installing java. :)

Here's the link to Download Cricfeeder.




Friday, November 9, 2012

Compress your Files into a Surprisingly Small Size using 7-Zip

Alrighty. Today I'm gonna introduce you a cool compression tool. Some of you might already know about this and using this. Anyway, I believe you have used WinZip, WinRar and other compression tools by now right? Well this one this even better than that. It's called 7-Zip. You can compress your files into a surprisingly small size using this tool.

7-Zip needs no activation keys, cracks or anything to use. It's completely Free to download. And it's Open Source too. And it's not a very large tool to download. It's really really small. In my personal experience I can say that 7-zip is 100 times better than other compression tools.

(Windows 32-bit version)



If there are any Software Developers, the Source Code is available for you to get and you can contribute to the project by helping to improve it.







Set your National Flag as your Skype Mood

Alright. Now I'm gonna tell you is another cool thing. It's not a programing thing or any advanced tech stuff. But it surely is cool for everyone who uses computer.

I believe everyone who reads this is using Skype right? Or at least has used? So what I'm gonna tell you now is something cool you can do on Skype.

In Skype you can update a status and it is called the Skype Mood. And you can use any phrase and even the Skype Emoticons. But did you ever know that you can use flags too in your Skype Mood? Well yes you can. Here's how to do it.

For an example let's say we're going to set the Sri Lankan flag as our Skype Mood. I use that because Sri Lanka is my mother country. You can use your own country's flag. To use Sri Lankan flag in the Skype Mood, all you've gotta do is type (flag:lk) where you need to put the flag. And then click OK. Yes. That's it. It's that simple.

So here in this example I have set my Skype Mood as ♥ (flag:lk) and here's how it looks.

 

And not only in the Skype Mood. You can use the flags in your chats too.

And here is the complete list of Flags with their codes which you can use in Skype

(flag:al) Albania
(flag:dz) Algeria
(flag:as) American Samoa
(flag:ad) Andorra
(flag:ao) Angola
(flag:ai) Anguilla
(flag:aq) Antarctica
(flag:ag) Antigua and Barbuda
(flag:ar) Argentina
(flag:am) Armenia
(flag:aw) Aruba
(flag:au) Australia
(flag:at) Austria
(flag:az) Azerbaijan
(flag:bs) Bahamas
(flag:bh) Bahrain
(flag:bd) Bangladesh
(flag:bb) Barbados
(flag:by) Belarus
(flag:be) Belgium
(flag:bz) Belize
(flag:bj) Benin
(flag:bm) Bermuda
(flag:bt) Bhutan
(flag:bo) Bolivia
(flag:ba) Bosnia and Herzegovina
(flag:bw) Botswana
(flag:br) Brazil
(flag:io) British Indian Ocean Territory
(flag:vg) British Virgin Islands
(flag:bn) Brunei Darussalam
(flag:bg) Bulgaria
(flag:bf) Burkina Faso
(flag:bi) Burundi
(flag:kh) Cambodia
(flag:cm) Cameroon
(flag:ca) Canada
(flag:cv) Cape Verde
(flag:ky) Cayman Islands
(flag:cf) Central African Republic
(flag:td) Chad
(flag:cl) Chile
(flag:cn) China
(flag:cx) Christmas Island
(flag:cc) Cocos Islands
(flag:co) Colombia
(flag:km) Comoros
(flag:cd) Congo
(flag:cg) Congo
(flag:ck) Cook Islands
(flag:cr) Costa Rica
(flag:ci) Cote D’Ivoire
(flag:cu) Cuba
(flag:cy) Cyprus
(flag:cz) Czech Republic
(flag:dk) Denmark
(flag:dj) Djibouti
(flag:dm) Dominica
(flag:do) Dominican Republic
(flag:ec) Ecuador
(flag:eg) Egypt
(flag:sv) El Salvador
(flag:gq) Equatorial Guinea
(flag:er) Eritrea
(flag:ee) Estonia
(flag:et) Ethiopia
(flag:fo) Faeroe Islands
(flag:fk) Falkland Islands
(flag:fj) Fiji
(flag:fi) Finland
(flag:fr) France
(flag:gf) French Guiana
(flag:pf) French Polynesia
(flag:tf) French Southern Territories
(flag:ga) Gabon
(flag:gm) Gambia
(flag:ge) Georgia
(flag:de) Germany
(flag:gh) Ghana
(flag:gi) Gibraltar
(flag:gr) Greece
(flag:gl) Greenland
(flag:gd) Grenada
(flag:gp) Guadaloupe
(flag:gu) Guam
(flag:gt) Guatemala
(flag:gn) Guinea
(flag:gw) Guinea-Bissau
(flag:gy) Guyana
(flag:ht) Haiti
(flag:hm) Heard and McDonald Islands
(flag:va) Holy See (Vatican City State)
(flag:hn) Honduras
(flag:hk) Hong Kong
(flag:hr) Hrvatska
(flag:hu) Hungary
(flag:is) Iceland
(flag:in) India
(flag:id) Indonesia
(flag:ir) Iran
(flag:iq) Iraq
(flag:ie) Ireland
(flag:il) Israel
(flag:it) Italy
(flag:jm) Jamaica
(flag:jp) Japan
(flag:jo) Jordan
(flag:kz) Kazakhstan
(flag:ke) Kenya
(flag:ki) Kiribati
(flag:kp) Korea
(flag:kr) Korea
(flag:kw) Kuwait
(flag:kg) Kyrgyz Republic
(flag:la) Lao
(flag:lv) Latvia
(flag:lb) Lebanon
(flag:ls) Lesotho
(flag:lr) Liberia
(flag:ly) Libyan Arab Jamahiriya
(flag:li) Liechtenstein
(flag:lt) Lithuania
(flag:lu) Luxembourg
(flag:mo) Macao
(flag:mk) Macedonia
(flag:mg) Madagascar
(flag:mw) Malawi
(flag:my) Malaysia
(flag:mv) Maldives
(flag:ml) Mali
(flag:mt) Malta
(flag:mh) Marshall Islands
(flag:mq) Martinique
(flag:mr) Mauritania
(flag:mu) Mauritius
(flag:yt) Mayotte
(flag:mx) Mexico
(flag:fm) Micronesia
(flag:md) Moldova
(flag:mc) Monaco
(flag:mn) Mongolia
(flag:ms) Montserrat
(flag:ma) Morocco
(flag:mz) Mozambique
(flag:mm) Myanmar
(flag:na) Namibia
(flag:nr) Nauru
(flag:np) Nepal
(flag:an) Netherlands Antilles
(flag:nl) Netherlands
(flag:nc) New Caledonia
(flag:nz) New Zealand
(flag:ni) Nicaragua
(flag:ne) Niger
(flag:ng) Nigeria
(flag:nu) Niue
(flag:nf) Norfolk Island
(flag:mp) Northern Mariana Islands
(flag:no) Norway
(flag:om) Oman
(flag:pk) Pakistan
(flag:pw) Palau
(flag:ps) Palestina
(flag:pa) Panama
(flag:pg) Papua New Guinea
(flag:py) Paraguay
(flag:pe) Peru
(flag:ph) Philippines
(flag:pn) Pitcairn Island
(flag:pl) Poland
(flag:pt) Portugal
(flag:pr) Puerto Rico
(flag:qa) Qatar
(flag:re) Reunion
(flag:ro) Romania
(flag:ru) Russian Federation
(flag:rw) Rwanda
(flag:sh) St. Helena
(flag:kn) St. Kitts and Nevis
(flag:lc) St. Lucia
(flag:pm) St. Pierre and Miquelon
(flag:vc) St. Vincent and the Grenadines
(flag:ws) Samoa
(flag:sm) San Marino
(flag:st) Sao Tome and Principe
(flag:sa) Saudi Arabia
(flag:sn) Senegal
(flag:cs) Serbia and Montenegro
(flag:sc) Seychelles
(flag:sl) Sierra Leone
(flag:sg) Singapore
(flag:sk) Slovakia
(flag:si) Slovenia
(flag:sb) Solomon Islands
(flag:so) Somalia
(flag:za) South Africa
(flag:es) Spain
(flag:lk) Sri Lanka
(flag:sd) Sudan
(flag:sr) Suriname
(flag:sz) Swaziland
(flag:se) Sweden
(flag:ch) Switzerland
(flag:sy) Syria
(flag:tw) Taiwan
(flag:tj) Tajikistan
(flag:tz) Tanzania
(flag:th) Thailand
(flag:tl) Timor-Leste
(flag:tg) Togo
(flag:tk) Tokelau
(flag:to) Tonga
(flag:tt) Trinidad and Tobago
(flag:tn) Tunisia
(flag:tr) Turkey
(flag:tm) Turkmenistan
(flag:tc) Turks and Caicos Islands
(flag:tv) Tuvalu
(flag:vi) US Virgin Islands
(flag:ug) Uganda
(flag:ua) Ukraine
(flag:ae) United Arab Emirates
(flag:gb) United Kingdom
(flag:us) United States of America
(flag:uy) Uruguay
(flag:uz) Uzbekistan
(flag:vu) Vanuatu
(flag:ve) Venezuela
(flag:vn) Viet Nam
(flag:wf) Wallis and Futuna Islands
(flag:eh) Western Sahara
(flag:ye) Yemen
(flag:zm) Zambia
(flag:zw) Zimbabwe
  
So I hope you've enjoyed this post. You can see this post in my Sinhala Blog as well which is "10 කවියා"  visit it at http://10kavi.blogspot.com

So see you soon again. Have a nice time. :) 




Thursday, November 8, 2012

How to open a link on your Web Browser via Java Application.

Alright. Now I'm gonna make a quick update on how do you open a URL on your Default Web Browser via your Java Application. Here's the code.

if (!java.awt.Desktop.isDesktopSupported()) {
            JOptionPane.showMessageDialog(null, "Desktop is not supported.", "Desktop Not Supported!", JOptionPane.ERROR_MESSAGE);
        }
java.awt.Desktop desktop = java.awt.Desktop.getDesktop();


 if (!desktop.isSupported(java.awt.Desktop.Action.BROWSE)) {
            JOptionPane.showMessageDialog(null, "Desktop is not supported for browsing.", "Desktop Not Supported For Browsing!", JOptionPane.ERROR_MESSAGE);
        }

        try {
            java.net.URI uri = new java.net.URI("http://10poet.blogspot.com");
            desktop.browse(uri);
        } catch (Exception e) {
            e.printStackTrace();
        }


Yes. It's that simple. So try it out. And tell me how it went. See you soon again! :)




Wednesday, November 7, 2012

How to apply a shape into a JFrame

Hello there People! I'm back after a long time. And what I'm gonna give you today, is a little programming trick. Today I'm gonna tell you a trick you can do to a JFrame with the com.sun.awt.AWTUtilities Class. It is how to apply a shape into your JFrame. This is also quite simple as the previous one. All we have to do is, creating a Shape object using Java 2D and then apply it into your JFrame. For this description I will use an Ellipse2D object and apply it into a JFrame you can also create any shape in Java 2D as you want, like Rectangle2D or RoundedRectangle2D. So for this example I create our Ellipse2D object like this,

Shape myShape = new Ellipse2D.Float(0, 0, this.getWidth(), this.getHeight());

For those 4 argument values, you have to give the following
1 - The X coordinate of your Shape object
2 - The Y coordinate of your Shape object
3 - The width which to set for your Shape object
4 - The height which to set for your Shape object

(For the 3rd and 4th arguments I have given the width and height of the JFrame. You can use any value you want for them.)

Like in RoundedRactangle2D objects you will have some 5th and 6th arguments too to give as the width of the arc and the height of the arc of the RoundedRectangle2D. That is to decide how round the corners of your JFrame should be. However now we will proceed with the rest our task.

Now the only thing we have to do is to apply the our Shape object to the JFrame. to do this we will use the setWindowShape() method in AWTUtilities Class. This method also have some two arguments to pass into. for the first one you have to give the JFrame which you want to apply your created Shape and for the second one give the Shape object which you want to apply into your JFrame. So here's how the code will look like

AWTUtilities.setWindowShape(this, myShape);

I have given the JFrame as this because I'm applying the shape into the same JFrame which I'm working. And you see that I have given the SHape object we created into the second argument.

So that's it. Applying a shape into your JFrame is done. :) This is how the complete code will look like,

Shape myShape = new Ellipse2D.Float(0, 0, this.getWidth(), this.getHeight());
AWTUtilities.setWindowShape(this, myShape);

Try it. You can also create some cool JFrame by applying a Shape like this. If you have any problem, just comment here and I'll answer it. I'm always here for you all. Have a nice day ahead guys n gals!! :)




Thursday, August 9, 2012

Enough Emoticons It's time to make Rage Faces while Chatting!

What? Where's the next Dope for Google Doodle? Yeah yeah I know a new Google Doodle is up. But I haven't got time today to make the Dope for it. But that's not a NO ok? I am gonna make a Dope for it but give me a little time. I will post it as soon as I build it. But today, I'm gonna give you another cool trick.

This about facebook chatting. You all use emoticons while chatting right? :) :( :O 3:) and all? Well do you know that you can make Rage faces too now as emoticons? Well now you can. I am posting the list of faces with their codes below so you can use it when you're chatting. All you gotta do is to type in the code like this

[[CODE]]

Don't type as "CODE" ok? :D That's where you put the real code for the troll face. So here are the list of faces.

Troll face: [[171108522930776]]
ARE YOU FUCKING KIDDING ME: [[143220739082110]]
Not bad Obama: [[169919399735055]]
Me Gusta: [[211782832186415]]
Mother of God: [[142670085793927]]
Cereal Guy: [[170815706323196]]
LOL Face: [[168456309878025]]
NO Guy: [[167359756658519]]
Yao Ming: [[218595638164996]]
Derp: [[224812970902314]]
Derpina: [[192644604154319]]
Forever Alone: [[177903015598419]]
Not Bad: [[NotBaad]]
Fuck yeah: [[105387672833401]]
Challenge accepted: [[100002727365206]]
Okay face: [[100002752520227]]
Dumb bitch: [[218595638164996]]
Poker face: [[129627277060203]]
Okay face: [[224812970902314]]
Socially awkward penguin: [[98438140742]]
Rage face: [[FUUUOFFICIAL]]
Lamp: [[100001256102462]]
No: [[167359756658519]]
MOG: [[142670085793927]]
Feel like a sir: [[168040846586189]]
Forever alone christmas: [[125038607580286]]

Speaking of faces, I've got another cool thing to share with you. But wait. not now. I'll post it tomorrow k? You're gonna like it a lot. Even more than this. :D

Anyway, so happy raging. Enjoy!

Tuesday, August 7, 2012

Play Google Doodle Basketball, Doped!

So I hope you enjoyed playing #GoogleDoodle Hurdles, Doped. What's the best time you've got? I bet you've taken some screenshots and amazed your friends like you've done it manually right? Cool! ANyway, guess what? Google have created another Doodle. This time it's for Basketball. Have you tried it yet? It's even cooler than the Hurdles one! :)




You can find and play Google Doodle Basketball (08.08.2012) from this link

https://www.google.com/doodles/basketball-2012

And guess what? I've made a Dope app for that too. :D All you have to do it press start and see. Let's see if you can get a score of 45 on the board! I just did :D Don't forget to get the mouse location of the Play button using the App and enter in the location fields. Download the App from the link below.

Download #GoogleDoodle Basketball Dope

Needs #Java installed on your PC. If you don't have Java, You can download and install it from the link below.


Download Java

Finish the game, take a screenshot and show your friends as you've done it manually. They're sure gonna be amazed this time too. :D

See you again. Enjoy and have fun! :)

Follow me on https://www.twitter.com/RuwanR88

Or Subscribe/Friend me on https://www.facebook.com/RuwanR88