18 March, 2014

Passing parameters for XSL, using Builder Design Pattern

It is being a while since I posted something here. This is an older post that I found as a draft. :) Maybe someone will find it useful. 

Recently, new requirement came for the project that I was working on. In short: I had to pass another parameter to updated XSL transformation files. There were already certain parameter passing and I needed to add one more. Adding one more line can't hurt a bit, BUT passing value to method that calls XSL transformation could turn to a nightmare. Luckily, Builder Design pattern solved the problem like a magic :)

22 December, 2011

My experiences with ATI graphic card drivers on Ubuntu

From the very beginning of Linux, users had problems with its device drivers. Why is this problem so common? Because Linux is Open Source and hardware manufacturers usually have to invest their own funds in developing drivers that are compatible with it. On the other hand: Microsoft (Windows) and Apple (MacOS) usually pay big bucks to produce drivers and to keep them updated. That practically means that OS vendors finance hardware vendors themselves to develop drivers. Logical assumption is: Why to finance driver development for OS (Linux) that is not widely used (yet), when other OSs with more market share gives you money for driver development.
In graphic card driver world for Linux, this problem is so evident that most computer experts advice beginners to stay away from 3D and other cool stuff until they master basics of Linux. In this post I will try to summarize some of my experiences and thoughts about it. 

21 November, 2011

Reparing corrupted root system partition in Ubuntu 10.10

Usually, they say that Linux is unbreakable. This statement might be correct to certain degree, but only if you understand how Linux works.
Recently, I had a problem of booting Ubuntu installation. Took me a whole week to find a solution, which came in the nick of time, since I was preparing to wipe out Ubuntu installation. Apparently, it was a root filesystem problem.

08 September, 2011

Adding syntax highlighter to blogger platform using google sites

Most, if not all, programming blogs contains syntax highlighter (sometimes called syntax colorizer) to distinguish normal text from computer code and thus making blog more readable. Using just HTML you can use pre tag or differently styled paragraph to insert same-width font, like lucida console. There is also a nice online free tool that does syntax highlighting using only styled HTML tags.
How about using pre-made CSS/JavaScript combination that automatically highlight code in your blog? All what you have to do is to surround programming code with certain tag and choose language for highlighting. This tutorial will show you how to use Google's syntax highlighter on Blogger platform, while hosting syntax highlighter project on Google Sites service.

16 July, 2011

Tutorial: Setting up ZK project using Maven

ZK RIA framework is becoming more and more popular framework these days. Most of the folks are beginning to use it, without prior knowledge of JSP, servlets and JavaScripts. Honestly, with ZK you might not even need to know anything about these.
What about Maven with ZK? ZK authors did a good job, making it available through their's Maven repository. Usually, beginners use ZK Studio plugin for Eclpise to automatically setup fresh ZK project. Unfortunately, when using Maven, you must manually set your project to use ZK. This procedure might be confusing for users who are not very experienced with Maven and servlets.

23 June, 2011

Missing menu icons in Eclipse (GNOME)

Recently, I noticed that Eclipse (and other programs as well) is missing icons from menu items. Following screenshot best describes the problem:
Firstly, I though that this was Eclipse related problem, but since other windows are missing icons too, GNOME was to blame. With a little help of Google, I found an easy working solution.

20 June, 2011

Background and Foreground process manipulation in Linux

Most crucial aspect of modern multitasking operating systems is to understand difference between  background and foreground processes. Process is just a technical way to call a running program. When you are interacting in some way with a process (using interface) or watching its output in a terminal, you call that process the foreground process. All other processes on your computer are either suspended processes (paused at the moment) or background processes (still running, but you can't interact with them).