Several thoughts on CVE-2014-0160
This week the whole internet was blown away by CVE-2014-0160. It was a real pain for us since we needed to urgently update our servers. Around 2/3 of our servers were affected by this problem. However patches were available for Debian, CentOS, Ubuntu LTS pretty quickly and we were able to apply them. This however brings several really interesting points in my vision of the whole open-source ecosystem: Open-source nature of Linux/BSD allows vulnerabilities to be patched very quickly Argument…
Installing GlassFish on CentOS 6 (EC2)
We had a pretty old server Ubuntu server with GlassFish 2.1.1 running. At some point we decided to move it to a more recent OS version. Being a long time Fedora user and a sort Red Hat fan boy in general – CentOS on EC2 was a pretty straightforward choice for me. Moving there was not trivial but finally I got things running in the manner I really want and would like to highlight some problems you might come across….
Interesting Java-related links for July 1 – July 7
http://java.dzone.com/articles/decrypting-java-malware-using – interesting usage of ASM framework designed for bytecode manipulations http://java.about.com/od/javautil/a/Using-The-Arrays-Class.htm. Seems like a basic tutorial but it contains hidden gems I’ve never used: Arrays#binarySearch, Arrays#copyOf, Arrays#copyOfRange, Arrays#deepToString http://octodecillion.com/blog/groovy-with-nested-tests/ – questionable ability to embed tests right into the code. Still shows how cool Groovy is. http://www.javacodegeeks.com/2013/06/garbage-collection-in-java-3.html – going deeper into GC http://www.infoq.com/news/2013/06/java-jep182 – not long ago Oracle decided to support just three previous JDK versions. Hopefully it will help to develop Java in a more dynamic manner. http://habrahabr.ru/post/185012/ –…
Amazon and MySQL: fixing “Can’t create/write to file” problem
Today I had a problem which almost made me crazy. So I needed to install MySQL with InnoDB support on an EC2 box with Ubuntu. sudo apt-get install mysql-server Adding lines into /etc/mysql/my.cnf: default-storage-engine=innodb default-table-type=innodb And I got: [Note] Plugin ‘FEDERATED’ is disabled. /usr/sbin/mysqld: Can’t create/write to file ‘/tmp/ib9jG4HQ’ (Errcode: 13)InnoDB: Error: unable to create temporary file; errno: 13 [ERROR] Plugin ‘InnoDB’ init function returned error. [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed. [ERROR] Unknown/unsupported table type: innodb…
Moving to Google Docs/LibreOffice as a SoftTeco company standard
SoftTeco is not a very big company and it’s a definite benefit for me since I’m a Linux enthusiast. Each developer can use the set of tools he/she prefers. So I can use Linux without need to work with corporate stuff like Office, Exchange, SharePoint. And I just received a perfect news from our management today in the internal mailing list. Google Docs is becoming the primary office suite. LibreOffice becomes a standard offline office suite. Way to go! More open-source…
Migrating between several Linux distributions

Lets say you’re migrating between two totally different Linux distributions. You’ve copied all of the settings and other stuff. And then you realise that you forgot to migrate databases from PostgreSQL or MySQL. And of course you don’t want to reboot every time you want anything from the old system. QEMU can help you here. What you need – is to create a new VM which will use real partitions. In my case I’ve used /dev/sda as device with MBR,…
Making Java web application development easier
If you have some web server where you deploy the web application in the exploded form and your source code is placed in another place for example in the local SVN copy – you have several options: Configure your IDE to deploy web application directly into your web server. Change your files in IDE and manually copy them into your exploded web application. Change your files in the exploded web application and manually copy them into your local SVN copy….
Why do I like my Fedora?
The deeper I get into this OS – the more I appreciate it. Yesterday I was playing with Qt because one tool had very exotic dependencies. As a result – I started getting the following errors when starting Skype: skype: error while loading shared libraries: libQtGui.so.4: wrong ELF class: ELFCLASS64skype: error while loading shared libraries: libQtNetwork.so.4: wrong ELF class: ELFCLASS64 The fix was as easy as reinstalling two packages via running a single command:yum reinstall gt-x11 qt4Very easy.
Developing using GWT Hosted Mode remotely

Lets say you are running Linux. And of course you want to support IE browsers in your GWT application. So you have tested the application in Firefox which works perfectly with the GWT Development plugin. So you’ve decided to test application in the running IE browser of the Windows guest and you observe a very strange behavior in IE. Lets assume that initially you have the following command to run GWT application in the hosted mode:java -Xmx512M -XX:MaxPermSize=256m -Xdebug -Xrunjdwp:transport=dt_socket,address=8786,server=y,suspend=n…