home Get a blog for free contact login

Home

Our first holiday in Greece

The following text was written as a a review for http://booking.com .


First, Makrigyalos is a small village about 45 km south from Thessaloniki. "Dias Apartments" is really close to the beach, just as advertised. The beach in the village itself is verry narrow and a high wall separates it from the road. There is a good beach about 2-3 km south of the village, just under Bora-Bora bar. Several other nice beaches are available within 15 km south of the village. The water in the area is not very clear though. We have visited east cost of Kassandra (Halkidiki) and it was much better. The village is also not far from Litohorou, which is an entry point to Olympus mountain.

The building is separated in two parts. One part is for "Dias Apartments", the other is for "Dias hotel". There is an isolated parking space next to the building but it is available for the hotel guests only, not the apartments. You don't need to pay for the parking as there is plenty of FREE parking space nearby. E.g. I parked on the street just infront of the room window. The breakfast was good and plenty for me. The host was kind to offer private parking space with it (as advertised) which I did not use.

I can confirm the problem with the TV's remote control. Looks like the owners don't pay for the cable/sat TV. My mosquito net also got big holes. The shower in the bathroom was very old and dirty. The water which fall out of the cabin's curtain was flowing in the corridor due to bad inclination. The WiFi was unusable most of the time. The bar was too expensive.

After the first 4 nights the owner politely asked us to move to a nearby hotel because he "has messed with the reservations and was expecting a large group for 10 nights". He explained that we will stay under the same contract. After viewing the conditions we have moved to the nearby "Electra" family hotel which had the sign of the same "Andromeda" travel agency. The conditions there were analogous and we have agreed to move. I just can't understand how can these greeks take 40-70 eur per night for such rooms and can't change a shower handle which can be bought for less than 5 eur. The owners, a very old couple, did not provide the remote for the air conditioner. They required 6€ per night for it. No towels were available. When I asked for some they only gave us one set. The room conditions which were printed on the door said that the room must be abandoned before 12:00. The old lady came at about 10:30, entered the room and start moving our luggage which we were just preparing. She nearly threw us out of the room and was complaining that we had little children(which should have stayed for free when using existing bedding as per dias apartments conditions).


Hopefully we'll have a better experience during our next stay in Greece. This was a last minute booking and this hotel was among the few ones offering a good **user rating/price** ratio according to booking.com

Posted in dir: /blog/
Tags: Greece

Linux 3.11 - Linux for workgroups

I think I will call 3.11 Linux for Workgroups.

... application developers are very important. They're not "real men" like kernel developers, he says, but still are "necessary" for Linux to succeed.

Linus Torvalds

http://www.linux.com/news/enterprise/biz-enterprise/485159-a-conversation-with-linus-torvalds


Posted in dir: /blog/
Tags: linux quotes

Люлин-Младост - 37 мин

С колелото днес от Люлин до Младост за 37 минути (11:57 - 12:34):


View Larger Map

Sys admin day

Честит празник на системните администратори! :-)

Поради спиране на тока нощес имах привилегията да си ъпдейтна десктопа:

root@work:/# cat /etc/issue.net
Debian GNU/Linux wheezy/sid
root@work:/# last reboot | head -3
reboot   system boot  3.0.0-1-686-pae  Fri Jul 29 15:11 - 20:29  (05:17)    
reboot   system boot  2.6.38-2-686-big Fri Jul 29 13:25 - 15:09  (01:43)    
reboot   system boot  2.6.38-2-686-big Thu Apr  7 20:41 - 15:09 (112+18:28) 
root@work:/# uname -a
Linux work 3.0.0-1-686-pae #1 SMP Sun Jul 24 14:27:32 UTC 2011 i686 GNU/Linux

И макар и леко на патерици - Честита 20 годишнина на Линукс и честита ни 3-та версия! :-)


Posted in dir: /blog/
Tags: debian linux

Уеб камера с читаво видео, линукс поддръжка и ..

Dear lazy web,

Търся уеб камера, която:

  • Да е със смислена резолюция - поне 640x480 (преди интерполацията)
  • Да е със смислен frame-rate (20+ кадъра)
  • Да е с широкоъглно обективче
  • Да е PnP с линукс ядрото
  • Да може да се купи без сложни врътки - да я има в някой магазин в София или да може лесно да се поръча и достави.
  • Да е на смислена цена ( 50лв, или до 100 да кажем ако е мега-хипер яка :-) )

Ако имате впечатления от такава ще съм ви благодарен да споделите и да ми спестите търсенето.

Update: Камерата, която си купих малко след като публикувах това е:

Bus 001 Device 005: ID 046d:0808 Logitech, Inc. Webcam C600

Струваше ми малко над 50 лева.


Posted in dir: /blog/

Prepared Statements

Диана: Тия за prepared statement-и не са чували явно.
Пламен: Кво е тва ?

Posted in dir: /blog/
Tags: quotes

Акси кара колело

Тази седмица Акси тръгна с колелото. Голяма мъка беше с триколката до сега. Колко пъти опитвам да я науча и тамън превърти по два пъти и се отказва и потегля като Фред Флинстон с нея.

Миналата година Ина ѝ подариха едно колелце и явно него е чакала. Гресирах го, смених му спуканата предна вътрешна гума(след като първата ми лепенка от миналата година изпусна и вулканизатора довърши старата гума с компресора :-D ). Преди работа само напомпихме гумите и мама ме зарадва с новината че Акси е потеглила почти от раз.

Привечер и се радвахме сама да си върти кръгчета и да я спъваме да не дава много газ :-D


Posted in dir: /blog/
Tags: bicycle Акси колело

Connecting to IBM Informix database from Linux

I've needed to connect to an IBM Informix database recently. Informix is not so popular database software and getting a working connection to it did not work right away by simply following the documentation(especially via ODBC). So lets write this down for future reference.

I've got working connections to the database via 3 different ways:

  • Using JDBC
  • Using "Informix Connect" (an Informix client library similar to Oracle OCI)
  • Using ODBC

JDBC

JDBC connection worked flawlessly. It was just a matter of placing the Informix JDBC driver in the classpath and specifying the right connection string and login credentials. The connection string looks like:

jdbc:informix-sqli://10.10.10.10:1526/testdb:INFORMIXSERVER=ol_hostname

Informix Connect

I've got this working from a perl script. This needed perl DBI and libdbd-informix-perl installed. I guess the libdbd-informix-perl is not compiled in a flexible way since the dynamic library contained hard referenced paths:

root@work:/# ldd /usr/lib/perl5/auto/DBD/Informix/Informix.so
    linux-gate.so.1 =>  (0xb776f000)
    /opt/informix/lib/libifsql.so => not found
    /opt/informix/lib/libifasf.so (0xb7713000)
    /opt/informix/lib/libifgen.so => not found
    /opt/informix/lib/libifos.so => not found
    /opt/informix/lib/libifgls.so => not found
    libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb76e4000)
    libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb759e000)
    libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7577000)
    libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7573000)
    libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb7541000)
    /lib/ld-linux.so.2 (0xb7770000)
    /opt/informix/lib/libifglx.so => not found

So if you install the Informix connect client in some other location(as I did) you might need to create the necessary symlinks. It might also be an option to get "DBD Informix" from CPAN and build it yourself.

The test perl script looked like:

#!/usr/bin/perl
use warnings;
use strict;

use DBI;

$ENV{'INFORMIXDIR'} = '/opt/IBM/informix';
$ENV{'INFORMIXSERVER'} = 'ol_hostname';


my $dbh = DBI->connect('dbi:Informix:DS_NAME', 'user', 'password');
my @list = $dbh->func('_tables');
print join("\n", @list);
print "\n";

You also need to describe the "DS_NAME" in /opt/IBM/informix/etc/sqlhosts file. It should look like:

ol_hostname        olsoctcp 10.10.10.10     1526

ODBC

ODBC was hardest to get right since it produced weird error messages and there were no useful recourses on the net which described the errors. In order to get it working you will need the unixodbc package. I've first tried using the graphical configuration tool ODBCConfig provided in unixodbc-bin but this failed miserably. I guess this was due to a missing library in "Informix Connect" with ODBC parameters description.

In order to get ODBC working you have to configure /opt/IBM/informix/etc/sqlhosts as shown above and then edit the files /opt/IBM/informix/etc/odbcinst.ini and /opt/IBM/informix/etc/odbc.ini . I've copied the ini file over the config files of the unixodbc package - /etc/odbcinst.ini and /etc/odbc.init and made the necessary adjustments.

odbcinst.ini:

[ODBC Drivers]
Informix=Installed

[Informix]
Driver=/opt/IBM/informix/lib/cli/iclit09b.so
Setup=/opt/IBM/informix/lib/cli/iclit09b.so
APILevel=1
ConnectFunctions=YYY
DriverODBCVer=03.51
FileUsage=0
SQLLevel=1
smProcessPerConnect=Y

odbc.ini:

[ODBC Data Sources]
DSN_NAME=Informix

[DSN_NAME]
Description=Informix
Driver=/opt/informix/lib/cli/iclit09b.so
Database=DBNAME
LogonID=USERNAME
pwd=PASSWORD
Servername=ol_HOSTNAME
CursorBehavior=0
CLIENT_LOCALE=en_US.8859-1
DB_LOCALE=en_US.819
TRANSLATIONDLL=/opt/IBM/informix/lib/esql/igo4a304.so
;
; UNICODE connection Section
;

[ODBC]
;uncomment the below line for UNICODE connection
UNICODE=UCS-4
;
; Trace file Section
;
Trace=0
TraceFile=/tmp/odbctrace.out
InstallDir=/opt/IBM/informix
TRACEDLL=idmrs09a.so

At first the config files were not actually picked up. This was not obvious at all from the error messages, so I had to do a good amount of strace-ing until I was able to figure it out. So the solution was to have:

export ODBCINI=/etc/odbc.ini

May be you will not have this problem if you place the settings in ~/.odbc.ini as this was searched too.

The next problem I had was that I was trying to get the CLIENT_LOCALE to be as my terminal to en_US.UTF-8. The error message was still ridiculous:

kernel@work:~$ isql DS_NAME
[ISQL]ERROR: Could not SQLConnect

I had to use strace once again, and saw that the referred resource files were not found. The solution was to change the client locale to something supported:

CLIENT_LOCALE=en_US.8859-1

Then I was able to use isql to connect to the Informix DB host and issue queries.


Posted in dir: /articles/
Tags: Informix

Акси с варицела

img Акси с варицела

Баба Шарка бързала бързала ..

Ако искате шарка, заповядайте на гости ! :-D


Posted in dir: /blog/
Tags: Акси

WebGL

Впечатлен съм!

http://www.chromeexperiments.com/webgl/

Ето някой от по-добрите:


Posted in dir: /blog/
Tags: WebGL

Page 24 of 29 (290 articles found)
start ... < ... 19 20 21 22 23 24 25 26 27 28 29

All tags SiteMap Owner Cookies policy [Atom Feed]