Adobe Flex Tutorial
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.
Tags: adobe flex
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.
Tags: adobe flex
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
Tags: comparator, compare objects in arraylist, compare objects in vector, compare two objects, java
<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
Tags: javascript
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.
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
3) Create your own customized RSS folders and read your feeds offline, just like mails.
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.
These are just “few” of the features. If you interested in knowing all the features, watch this flash video.
Tags: open source email