Mar 28

This site has a HUGGEEEEE number of video tutorials on Adobe Flex. All videos are in FLV. If you want to download them in a different format, then use this.

Good luck.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • description
  • Furl
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • TwitThis

Tags:

Mar 27

Old story but will be useful for sure.

Say you have an ArrayList of Beans (eg. ArrayList of Employee objects) that need to be sorted based on an attribute inside the Bean (eg. EmployeeName) before displaying to your GUI. You have two options before you..

1) If you are among the lucky lot who gets access to the Data Access Object (EJB or a class that has queries), just alter your query to return the ResultSet after sorting. i.e. use an “order by” clause in your query.

2) Or…. Use the Comparator interface. (you can use Comparable too. I am not talking about that in this post)

The implementation is pretty simple..

Here goes the code.

I have three classes with me

1) UserBean.java (which is just a bean Bean with regular getters and setters). It has three attributes inside it. userId, userName, address

2) UserNameComparator.java (which implements the Comparator interface and obviously overrides the compare method). The compare method just accepts two objects and returns an int. neednt worry about what to return as “int”. Just call the compareTo(Object) method inbuilt in String and Wrapper classes. It will return an int. Just use it.

3) SortUserBean.java (the caller method). Just builds a dummy ArrayList of UserBeans, displays the ArrayList before sorting and after sorting.

Download the complete source code

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • description
  • Furl
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • TwitThis

Tags: , , , ,

Mar 27

Crazy about touchscreens? And you can’t afford to buy one?

If you’ve got a laptop and just crazy about touchscreens, then you have this wonderful gizmo called the Laptop Tablet from NAVIsis.

Touchscreen laptop

source : scifi

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • description
  • Furl
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • TwitThis

Tags:

Mar 26

<script>
function saveImageAs (imgOrURL) {
if (typeof imgOrURL == ‘object’)
imgOrURL = imgOrURL.src;
window.win = open (imgOrURL);
setTimeout(’win.document.execCommand(”SaveAs”)’, 500);
}
</script>

<A href=”#”
ONCLICK=”saveImageAs(document.getElementById(’embedImage’)); return false” >save image</A>

<img id=”embedImage” src=”impossible.jpg” >
I am not the author of this code and i am really not sure where i picked up this script. But it works too good… only on IE

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • description
  • Furl
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • TwitThis

Tags:

Mar 25

Zimbra is another wonderful example of community supported software development. Started by three friends and widely supported and contributed by the community, Zimbra is growing up as a serious challenge for Microsoft’s Exchange server. The exciting thing is that it offers features that are unimaginable otherwise in an Outlook client.

Zimbra can work both inside the web-browser as well as in offline mode on mail-clients as Eudora, Thunderbird, Outlook etc.

With the outburst of Linux desktops in home and the enterprise, Zimbra profits on the Microsoft’s lack of an email service in Linux system.

So, whats so great on Zimbra

1) You view a mail of some earlier day and “tomorrow” and “next Tuesday” translates into relative dates.

Date appointments zimbra

2) A phone number gets recognized easily and a direct call to the mail sender could be made through Skype or a configured caller program

Direct Skype call zimbra

3) Create your own customized RSS folders and read your feeds offline, just like mails.

Rss Folders

4) This feature is awesome. A mashup on the mail client. Your address calls up the Yahoo map web service and the location of the mail sender is viewed on a map.

Yahoo map for addresses zimbra

These are just “few” of the features. If you interested in knowing all the features, watch this flash video.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • De.lirio.us
  • description
  • Furl
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • TwitThis

Tags:

Give your best to the world.