Archive

Archive for the ‘General’ Category

Debugging GUI events

September 22nd, 2009

Warning: count(): Parameter must be an array or an object that implements Countable in /www/webvol14/yj/kljuhyzt1cwiiug/expertaya.com/public_html/wp-content/plugins/wp-syntax/wp-syntax.php on line 76

Debugging gui events is usually not possible with regular line per line debugging and is done mostly by tracing.
For debugging code that relies on Java swing events like drag and drop, mouse moving, etc., having something similar to code below is very useful:

 
public boolean isMouseAboveHeaderPanel() {
System.out.println("HeaderPanel.isMouseAboveHeaderPanel() called from: "
+ Thread.currentThread().getStackTrace()[2].getClassName() + "."
+ Thread.currentThread().getStackTrace()[2].getMethodName());
 
// ...
 
}

In this way you trace not only current function but also you got information from where you entered that function. Of course to make things easier you should make some kind of a shortcut for entering this trace line. In Eclipse you can do that with code template:

System.out.println("${enclosing_type}.${enclosing_method}() called from: "
+ Thread.currentThread().getStackTrace()[2].getClassName() + "." 
+ Thread.currentThread().getStackTrace()[2].getMethodName());

This helped me in lot of situations, I hope that it will help you as well.

Share/Save/Bookmark

General, Java , ,

Why would you spend time on warez sites?

March 3rd, 2009

Even if not being a “regular” warez user it would be good if you stay informed about what is happening inside warez community.
One reason would be finding really popular and valuable programs by browsing warez sites. This is better than searching through regular download sites because programs found on these kind of sites are often more relevant to the field in which they belong. One reason could be this – If somebody put an effort to crack a piece of software then that software has some value for sure :).

I use: http://www.area51warez.info/ and http://softarchive.net/.

Share/Save/Bookmark

General, Links , , ,

Weblog for web-developers and designers

December 26th, 2008

Smashing magazine is a weblog dedicated to web-developers and designers. Its great because of its overview of interesting stuff for each month. Their published content is a must read if you want to become a good web developer or a designer that follows web design trends.

Share/Save/Bookmark

General, Links , , , , ,

Do you use launchy?

November 10th, 2008

Launchy is a handy tool that can help you when you have messy folders and want to quickly find and open application, document or play the mp3 song. With it you can forgot about desktop, quicklaunch or start menu for starting applications. Iit’s free and makes your desktop life a lot easier. Try it!

Share/Save/Bookmark

General , ,

Freelancing site(s) …

October 29th, 2008

If you are an active member of some programming community you won’t probably need any of existing freelancing sites since your friends usually have enough jobs to pass to you…

But in case you still want a recommendation for a freelance site then here it is: Elance.

You can however find more jobs on others but at rates that are usually significantly lower than on Elance.

Happy freelancing.

Share/Save/Bookmark

General, Links , ,

Do you follow any newsletter?

October 25th, 2008

If you are a programmer you probably do follow at least a single newsletter. What is your recommendation?

Considering job I have been doing for the past few years I found that I am totally satisfied by receiving emails from InfoQ.

Please comment if you have any other to recommend. The post will be updated with your recommendations but it won’t contain more than 3 different newsletters.

Share/Save/Bookmark

General, Links , ,

The Value of Community

October 18th, 2008

When you’re stuck with a programming, installation, or other similar problem your closest friend is usually Google. But, as many of you already know, having a friend that is expert in an area can in many cases lead to solving your problem lot quicker than “googling” for an answer. Friend can usually point you to the right track or give you the straight answer immediately. Now, imagine that you have thousands of friends Read more…

Share/Save/Bookmark

General , ,