How to drop selected emails from postfix queue (useful when many automated e-mails are blocking it):
# mailq | awk '/^[A-Z0-9].*some.email@domain.com/ {print "postsuper -d " $1} ' | sh
or simpler: purge all queue (warning: you can loose important, undelivered e-mails forever!):
# postsuper -d ALL
Sometimes you see that Eclipse stops responding and causes 100% of CPU usage (UI controls not redrawn). The only action can be taken then is to kill eclipse process.
I discovered that it’s caused by big console output option. Test suite with low level (DEBUG) messages are able to kill Eclipse IDE, after setting log level to WARN no such problems are present.
You can also disable Limiting console output. It helped when no verbosity could be changed by logging configuration.


Ponad rok temu miałem okazję przeprowadzić rutynową operacją jaką jest odnowienie polisy OC na samochód. Pomyślałem sobie, że sprawę załatwię w ciągu kilkunastu minut i pełen optymizmu wybrałem się do przedstawiciela PTU (Polskiego Towarzystwa Ubezpieczeń).
Jakież było moje zdziwienie kiedy na miejscu otrzymałem do przepisania stertę papierowych formularzy. Jako pomoc otrzymałem formularze wypełnione przeze mnie przed rokiem! Poczułem się jakbym żył w średniowieczu. Nawet nie próbowałem pytać dlaczego tak “maltretują” swoich klientów.
Nauczony przykrym doświadczeniem w tym roku zmieniłem ubezpieczyciela. Rejestracja przez internet, żadnego ręcznego przepisywania papierków. PTU w XXI wieku dziękujemy.

Graphs
Today I’d like to share some observations on web applications speed. My monitoring network checks almost one thousand of URL addresses and few interesting pictures are created here.
Lets see sample monitoring results from random URL (one week measurment): http://forum.magicsquad.eu (located currently in webh.pl hosting provider):
As you can see typical site response time is almost four seconds! (DNS resolution time excluded) Measurment is performed from Cracow, Poland. Let’s see results from Chicago, USA:
(more…)
The error
org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of XYZ.setStatus().
Cause
Using primitive types (long) where NULL is possible or using wrong type (i.e. String if “char” is declared in HBM file).
Resolution
Change from primitive type (long) to wrappers (Long) or ensure correct type is defined in mapping files.
