Posts

An advanced example for QSlider stylesheets

The article is located hare: http://thesmithfam.org/blog/2010/03/10/fancy-qslider-stylesheet/ It includes the css and the image of the slider. Meanwhile, it is very nice blog

How to stop the irritating “Updating your computer is almost complete – Restart Now?” message

If you’re running Windows XP SP2, you’ve seen this message. That silly, bothersome dialog box that asks”Updating your computer is almost complete. You must restart your computer for the updates to take effect. Do you want to restart your computer now?”

Откраднаха ми телефона... и регистрация в МВР

Откраднаха ми телефона... Тези дни отивам да си регистрирам GSM-а в МВР като откраднат, въоръжен с пълния комплект документи на телефона. Ако е в ръцете на аматьори и не са променяли IMEI кода (телефона не струва много, така че едва ли са инвестирали в него) . В този случай, полицията лесно може да засече на кой номер се използва в момента и от там нататък е по-лесна. С други думи, ако ви откраднат телефона, но му имате IMEI-a, има голяма вероятност в полицията да го открият .

javascript exception catching and error printing

I hate seeing JavaScript errors on pages, especially on my pages, so in this case I have to run JavaScript debugger to catch the exact line there the problem is. If I change a function with many exceptions, a better solution exists: printing JavaScript errors with alert function (we firstly handle the error and then we print it): try{ ... do some javascript here ... } catch (e) { try{ var ex_joro = e; // this is to remember to set the exception name :) var errorString = ex_joro.name + ' ' + ex_joro.message + ', fileName = ' + ex_joro.fileName + ', lineNumber = ' + ex_joro.lineNumber + ", stack: " + ex_joro.stack + ",\n\n all: " + ex_joro ; // this is used when you do javascript debugging alert( errorString ); } catch ( exception_666 ){ alert( "exception while trying to alert exception " + exception_666 ); } }

java.io.StreamCorruptedException message = invalid stream header: The problem is solved

A short history of the problem: our VoIP solution is installed on some servers and some Java object are serialized and the serialized object is stored to database (in mysql TEXT field). When it is needed, the text filed is read from database, and when we are trying to deserialize it, this exception is thrown: java.io.StreamCorruptedException: message = invalid stream header java.io.ObjectInputStream::readStreamHeader [ObjectInputStream.java:764] java.io.ObjectInputStream:: [ObjectInputStream.java:277] com.ttechgroup.loggers.app.Logger::_loadSerializedObjects [Logger.java:389] com.ttechgroup.loggers.app.Logger::getSerializable [Logger.java:199] com.ttechgroup.loggers.SystemRestarterLogger::getCause [SystemRestarterLogger.java:59] My statistics are that on 50% of servers with our application, this exeption is never thrown, but on the rest, it is always thrown by my function _loadSerializedObjects. Problem is that the bute block where is stored serialized objects, starts