Ubuntu 12.04 resolution fix

June 4, 2013 Leave a comment

Example for a screen with maximum resolution of 1440×900:

# cvt 1440 900 # Run this before anything else
xrandr –newmode “1440×900″ 106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
xrandr –addmode VGA1 “1440×900″
xrandr –output VGA1 –mode “1440×900″

Categories: Uncategorized

installing qt on ubuntu 12.04 LTS

January 13, 2013 Leave a comment

Qt 4.7.4 + Ubuntu 12.04 LTS

Error: Basic XLib functionality test failed!
Solution: sudo apt-get install libxext-dev


Error: /usr/bin/ld: cannot find -lXrender
Solution: sudo apt-get install libxrender-dev


Categories: Uncategorized Tags: , ,

setting Qt stylesheets

November 28, 2012 Leave a comment

For a single widget:

QFile file(":/qss/default.qss");
QString styleSheet = QLatin1String(file.readAll());

For whole app:

QApplication app( argc, argv );

// Load an application style
QFile styleFile( ":/style.qss" );
styleFile.open( QFile::ReadOnly );

// Apply the loaded stylesheet
QString style( styleFile.readAll() );
app.setStyleSheet( style );


Categories: Uncategorized Tags:

xilinx ise 12.4 + ubuntu 11.04 64bit + isim

October 28, 2011 Leave a comment

Xilinx ISE 12.4 on Ubuntu 11.04 64bit. When trying to run a testbench with ISIM, I got the following error:

FATAL_ERROR:Simulator:Fuse.cpp:209: – Failed to compile one of the generated C files.

Got the solution here.
Just delete the “libstdc++.so*” files in /opt/Xilinx/VERSION_NUMBER/ISE_DS/ISE/lib/lin64/.

Categories: post Tags: ,

ubuntu persistent environment variables

October 15, 2011 Leave a comment

As stated here, the recommended way to set (persistent) environment variables on Ubuntu is by editing the file “/etc/environment”.
To set temporary environment variables use the “export” command.
Example: “export PATH=$PATH:/new/path”

Detailed info at: https://help.ubuntu.com/community/EnvironmentVariables

Categories: post

shared libraries on linux

October 15, 2011 Leave a comment
  1. Go to “/etc/ld.so.conf.d/”
  2. Create a file with “.conf” extension (eg. “qwt.conf”)
  3. Open it with a text editor and add a line with the path of your library (eg. “/usr/local/qwt-6.0.0/lib”)
Categories: post Tags: ,

post number one

October 15, 2011 1 comment

Ok this is the first post of this blog. I’ll be using “3xbla” mainly for personal reference.
“3xbla” should be pronounced as “three times bla”, or “bla bla bla”. Bla is “blah”.

Categories: Uncategorized