Archive

Archive for March, 2017

Java profiling

March 18, 2017 Leave a comment

YourKit is a great Java profiling tool. It is a commercial software but you can get a free 15-day evaluation license key for a fully functional version of the profiler.

The past week I was working on a Java project and the software was very slow. Using YourKit I could easily find the bottleneck. It turned out that 94% of the time was spent in a function that I implemented in a naive way. Choosing a better algorithm the software got much faster. A profiler is really useful…

For Java I use Eclipse. YourKit integrates in Eclipse perfectly through an Eclipse plugin.

Python profiling

Here is an excellent post about Python profiling.

Categories: java, python Tags: , ,

[Eclipse] use spaces instead of TABs

March 18, 2017 Leave a comment

Here is how to use spaces instead of TABs in the Eclipse IDE:

  1. Click Window -> Preferences.
  2. Expand Java -> Code Style.
  3. Click Formatter.
  4. Click the Edit button.
  5. Click the Indentation tab.
  6. Under General Settings, set Tab policy to: Spaces only.
  7. Click OK to apply the changes.

Tip from here.

Categories: Uncategorized Tags: , ,

Some IMDb alternatives

March 10, 2017 Leave a comment

IMDb shut down its message boards in February, 2017. Read more here. This is a shame. When I watched a movie, I loved to read the opinions of other people on this forum. It was a very stupid decision from IMDb and I’m sure I’ll visit their site much less.

Here are some alternatives:

Unfortunately, these sites won’t replace the good old message boards…

Project idea: write a script that takes the title of a movie and opens these sites in tabs. The sites in the tabs show the selected movie.