Jūs esateStudijos KTU

Studijos KTU


KTU informacija

Howto install OpenCV 2.3.1 on Ubuntu Linux 11.10?

I have Ubuntu Linux 11.10 OS. And I want like to use the (currently) latest version of OpenCV - 2.3.1. But Ubuntu provides only 2.1. So, I had to recompile OpenCV library by myself.
I found a good tutorial about how to do that: http://ozbots.org/opencv-installation/ - it worked.
Just one interesting note. If you have problems when compiling OpenCV and you're using 64 bit OS - add two flags when ./configure'ing x264 and ffmpeg: --enable-pic --enable-shared
Good luck ;)

How to calculate lines of code in Linux?

I have a C++ project on NetBeans IDE. I would like to count the lines of code. So, how to count the lines of code in Ubuntu Linux?
Well, you can install additional software like sloccount (sudo apt-get install sloccount): http://manpages.ubuntu.com/manpages/natty/man1/sloccount.1.html, or you can use wc command like this:
wc -l + `find . -name \* -print`

MySQL table names are case sensitive in Linux

At the moment I'm writing a small program for my master's theses. And I found one very interesting thing.
I have a table in my MySQL server called "Books" (with uppercase). And I have query: "SELECT title FROM books" (lowercase).
And my server says: can not found table "books" :) So, I renamed by table to "books" :)

Integration testing

I have to make a small speach about Integration testing on Wednesday. So, I wrote down some main points I would like to discuss. I think they might be interesting for the readers of my blog. Here are they.

 

MySQL InnoDB vs. MyISAM saugojimo varikliai

Vienam universiteto moduliui ruošiau pristatymą apie InnoDB vs. MyISAM MySQL saugojimo variklius (storage engine). Pagalvojau, kad tai gali būti naudinga ir mano blogo skaitytojams. Tad štai ir mano pristatymas - praktiškai paėmus, santrauka iš kelių rastų internetinių šaltinių :)

 

ActivityNotFoundException on Android?

I am creating a small Android client for my Master's theses. Unfortunately, I've encountered a problem: I get ActivityNotFoundException during runtime process. I just need to change the activity of my program (to show the help box). Maybe someone could give me a hint what I'm doing wrong?

My main file/activity looks like that:

64 bit MySQL C++ Connector, 64 bit MySQL Server and 64 bit Windows 7 are not compatable?

This evening I tried to connect to MySQL server from my C++ application. So, some notes about this task:

Specialiai studentams: anekdotas artėjant sesijai

Studento mąstymas apie mokslus: pirmi trys semestro mėnesiai - "ai peklon", ketvirto mėnesio pirma savaitė- "blin", antra savaitė - "uoj bl$@t", trečia savaitė - "nu bl#$@et py@&%dec", sesija - "ai dzin"...
Na, man sesija jau tuoj bus ;]

Internet Explorer does not load stylesheet files

I was creating a website with Drupal CMF and experiencedy a problem: the website is displayed perfectly in Opera, Google Chrome, Mozilla Firefox BUT NOT IN Internet Explorer (both versions 7 and 8) . It looked like that Internet Explorer did not load my custom style.css file. After some googling I found out that Internet Explorer CAN NOT LOAD MORE THEN 31 CSS FILES FOR SINGLE WEBPAGE. Funny thing, huh? And I had 37 for a webpage.

MySQL C++ Connector & my MySQL server

Today I've tried to install MySQL C++ Connector for Windows (http://www.mysql.com/downloads/connector/cpp/ also check this website: http://forge.mysql.com/wiki/Connector_C%2B%2B and this one: http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html). Ok, but lets get back to my experience with MySQL C++ Connector. The problem is that I couldn't make it work on Windows.

Aš jau Informatikos bakalauras

Na va - baigėsi 4-i metai studijų KTU Informatikos fakultete :) Studijas baigiau 15-as kurse (vidurkis: 8,91) iš 216 studentų :) Smagu. Ačiū už sveikinimus ir gėles savo šeimai, Justei, Donatai ir Karolinai :) Ačiū labai :* Studijos nebuvo lengvos, Informatikos fakultete "durniaus nepavoliosi". Kita vertus - grupė buvo gera ir draugiška, tad buvo smagu studijuoti. Dabar lauksiu liepos 2-os dienos: tą dieną sužinosiu, ar įstojau į Programų sistemų inžinerijos magistrantūrą ;] P.S.

Reikia idėjos

Sveiki ;) Gal turite idėją, ką galima suprogramuoti mobiliesiems telefonams? Ieškau temos magistro darbui :)

How to get node information in block?

I am coding a system for my bachelor theses. And I had & solved a small problem. The problem. I have to types of content types - Record and Group of Records. If I navigate to Group of Records there should be a block with a link saying "Create a record". The problem is that I need to pass some additional argument to the form Record (the node ID of Group of Records). So, my link looks like that: node/add/record?groupid=1001.

Nedidelis "InvReport" projektėlis Informacinių sistemų paskaitai

Mano Informacinių sistemų projektas. Nebaigtas, negalutinis, turintis klaidų. Kai kurios dalys programuotos greitai :) www.ernestas.info/ktu/is/InvReport.zip Gal kam pravers ;)

Drupal. check_url() & MMS protocol

I was coding a small dialog for my bachelor theses. There is a text box where you can enter an URL address. So, before submitting the form I validate that text box with check_url() function. The problem is, that my address starts with MMS. It's something like that: mms://www.server.lt/directory/file. So, after check_url() function the result is: //www.server.lt/directory/file. I was googling for the solution and I've finally found it. The problem is in file modules/filter/filter.module file, line 1182. "MMS" is not in the list of allowed protocols.