Wednesday, December 23, 2009

Ubuntu 9.10 + Mono(WinForms) = Problem

We have one very big application written in C# that is using WinForms. So I decided to test this app on my laptop - Dell Ispiron 6400 using my current installation of Ubuntu 9.10. There ware no problems on Ubuntu 8.04 or Windows machines but ... here comes the big BUT :D on my machine (9.10) I see buttons menus, text boxes etc. but no text! All text was missing.
Started to google this problem to locate a solution. After searching and reading for few hours here is the solution ;)

Original Mono thread is here. After reading this I started to understand that this is not a Mono bug but problem with my Intel Xorg driver. I downloaded and installed it as described here (almost)
download needed driver (in my case 2.9.1)
$ ./configure --prefix=/usr
if everything is fine execute the next 2 lines but you will need some extra libraries to install before configure finishes whit no errors.
$ make
$ sudo make install
reboot PC or restart GDM service
Cool, everything went well till now ... but ... oh no one more BUT :D. Well no that big any way.
Next what happened to me is this: I can see only part of the texts. Solutions can be found in the link I posted ;). Change your Appearance -> Fonts settings and you are done. Problem solved!

Monday, December 14, 2009

ExtJS (3.0.3) and paging in GridPanel

I'm writing this in case someone is trying to make GridPanel to work together with PagingToolbar using XML data.

The problem is very simple. Using examples and API documentation I was trying to achieve this goal. No success! Google it ... no sucess! Everything I found was like the thing I did but:

IT WAS NOT WORKIIIIING!

Finaly I went into the ExtJS code to search for the problem and after few minutes I've located the problem. In the documentation is pointed that the name of the total records in XmlReader is: "totalRecords" but in JSON is "totalProperty".

So what I found is that in the code everywhere was used "totalProperty" ... and once I changed this it started to work!

Friday, December 11, 2009

Zend Server and Xdebug on Ubuntu

You can chose how to install your Zend server from here http://www.zend.com/products/server/
The server works fine :) but the problem appears when I tried to install Xdebug extension included in Zend server distribution. Once I do install the extension the server stops working :( and I ... do not like this at all.
I've found a solution to the problem by building it from source.
First install some development tools:
$ sudo apt-get install build-essential
$ sudo apt-get install autoconf
After this step is completed we can continue with downloading and installing xdebug.
$ wget http://www.xdebug.org/files/xdebug-2.0.4.tgz
$ tar -xzf xdebug-2.0.5.tgz
$ cd xdebug-2.0.5/
$ /usr/local/zend/bin/phpize
$ ./configure --enable-xdebug --with-php-config=/usr/local/zend/bin/php-config
$ make
Copy the compiled library:
$ cp modules/xdebug.so /usr/local/zend/lib/debugger/xdebug.so
Then edit file /usr/local/zend/etc/ext.d/debugger.ini and comment everything you see uncommented :D (this probebly is not required but just in case do it)
and add the following line at the end of the file:
zend_extension=/usr/local/zend/lib/debugger/xdebug.so

Restart zend server:
$/etc/init.d/zend-server restart

You are done. And ... you can "live happily ever after" :D