Get a Quote

Your source for insights and trends in software development

Rounding in Java

Rounding in Java

Today I’ve got a defect from QA which deals with the rounding. During the fix of it, I’ve decided to measure which way of rounding is the fastest one. I’ve got several in my mind, so I’ve wrote a small test which measures time. Three approaches(iterations: 10.000.000, accuracy: 3 digits, value: 3.1574454353) have been tested out. My laptop configuration: 1. Fedora 11 i686 2. Sun JDK 1.6.0.16 3. CPU: Intel Core 2 Duo P7350 @ 2.00GHz 4. RAM: 3 GB…

GWT on Ubuntu x64

I have installed new Ubuntu 9.10 (karmic) x64 and found that GWT browser is not working – it shows: libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) This problem can be solved by switching on Java SE x32, but after that another problem was occurred: libstdc++.so.5 cannot open shared object file no such file or directory In previous build of Ubuntu it can be solved by simple install of libstdc++, but Ubuntu karmic does not contains it….

Invisible text in JasperReports

Invisible text in JasperReports

I really like JasperReports, it’s cool.But sometimes it can ruin your mind when you’re trying to understand why this report looks like so weird. So today I was trying to generating Excel report and saw the following picture: What the hell? Where’s my data? I had to debug JasperReports to understand why it happens. Finally I’ve got down to JRGridLayout#isOverlap which calculates whether the item intersects with some other report items. If isOverlap returns true the text is not rendered….

Date in GWT

Once more about date and its usage… In client-server application client send date to server using own TimeZone. So server receives client date and it will manipulate this client date. Sometimes it is not suitable. For example in applications, which is based on server date. So client should be also based on server date. GWT application is very similar on client desktop applications, because JavaScript code is executed on client side. So by default GWT application uses client date. Solution…

Date & Time

OK, you are thinking about date & time handling in your application. You’ve already known some obvious things such as: there are 86400 seconds in a day there are 365 days in an ordinary year there are 366 days in a leap year there are 719528 days between Jan 1, 0 and Jan 1, 1970. But do you remember about the following?: your application must somehow handle the century changes 🙂 by the Gregorian rule, a year YYYY is a…

SVN Blame/mercurial annotate

Very important feature when you are trying to figure out who is responsible for certain discrepancy within the code and bring their mistake to light, is svn blame (hg annotate, git blame). Usage is quite simple – just type “svn blame source_file” and you’ll have per line changes of the current source file with the version of the line and who changed it last. But to make it work properly, you need to agree within a project to have the same…

Contributions to erlang-web.

We’ve started to contribute to the erlang-web project from this fork The main source branch of erlang-web can be found here. Content of contribution Extended functionality for some parts of wparts (erlang-web representation of html tags): added correct work for common html attribute “value”, added possibility get “value”=<> from the new tag “valueVar” which is supposed to be a name of some available variable.These changes are available in 1.4 release of erlang-web (1.4 was released in Oct 28 2009) How…

Wikitopdf and Graphviz in Trac

First of all I’d admin that I like Graphviz in Trac quite much. It allows you to create good diagrams and collaboration pictures inside wiki page of the Trac. Wikitopdf plugin, with all it limitations, allows you to export your wiki pages in PDF form (internally it is using the htmldoc library and here appears limitations). The problem I faced with: wikitopdf is not working correctly by default with the generated images. And graphviz_dir parameter doesn’t really helps. Additionally, wikitopdf…

Erlang web-frameworks

It is always difficult to find out what web framework will suite your needs in a project. As for the Erlang, there is several rapid-deveoping frameworks at the moment: Erlangweb – the one we really liked, as it beign developed by very professioinal team of Erlang consulting. You can learn a lot of things supported by erlang from their sources. ErlyWeb Nitrogen BeepBeep Some others that were out of my attention Today I’ll start with features of ErlangWeb This Framework…

Leap seconds

Well, everybody knows about leap years :-). What about leap seconds?Those who are interested, can find more information on http://en.wikipedia.org/wiki/Leap_second , but how it can influence your program? First of all, you should not suppose that seconds are from 0 to 59. It could be 60 second, as well as 59 skipping and going from 58 to 00. So your system should at least be able to convert 60 second into something predictable. Another thing that could be important for…

Ready To Take The Next Step?

quote Get a Quote

Sumbit your project request by special form.
We'll get to you promtly with our costing of your project.