Search

Favourite Projects

Barsy

Broko.bg

September 4th, 2009 by lukav

Привет приятели! :)

Скоро не съм пускал нищо тук, така че реших да ви представя нещо ново и интересно.
Колко от вас обичат да вършат досадните но необходими неща бързо, лесно и удобно сядайки за малко пред компютъра?
Ние като хора обичащи тези глезотии, решихме какво ни липсва и какво можем да направим и съвсем скоро, ще ви предоставим възможност да опростите ежегодното застраховане на вашия автомобил, а и на други неща, стартирайки услугата http://broko.bg/. Това ще е услуга, чрез която вие не само ще можете да направите вашата застраховка, но и тя ще се грижи да не се получава така, че малко преди да тръгнете на път да откриете, че застраховката ви е изтекла.

Разбира се няма да спрем само до там. Постоянно измисляме нови глезотии и полезни услуги за да улесним досадните задължения и да ви оставим да се забавлявате с по приятни дейности.

Очакваме вашите коментари и предложения!
http://broko.bg/

Поздрави.
И ни очаквайте скоро :)

Posted in BG, Other, Tech | 2 Comments »

Как да си подкараме проверка на правописа в pidgin и последните версии на Ubuntu

March 17th, 2009 by lukav

Здравейте приятели,

отдавна не съм писал тук и сега е момента да споделя нещо, което много ме дразнеше в последните версии на Ubunutu, EEEUbuntu, Kubuntu и други Bunto-та ;) .
Аз ползвам pidgin за кратки текстови съобщения. Сложил съм си и skype4pidgin за да си го ползвам и за skype. Много ми харесваше, че има проверка на правописа, но след последния упгрейд той изчезна :( . Много досадно. След няколко борби разбрах как да си го подкарам пак :) така че следвайте тази процедура.

в един терминал изпълнете следните команди:

sudo apt-get -y install aspell-bg python-enchant
cd ~
mkdir .enchant
echo "*:aspell" > .enchant/enchant.ordering

накратко това ще инсталира aspell с поддръжка на български и enchant, който pidgin намира и ползва. Всъщност enchant използва самия aspell за да проверява думичките и да им намира алтернативи.
Последните три реда правят една папка “.enchant” във вашата домашна папка в която се слага конфигурационен файл на enchant за да ползва aspell.

И това е… вече няма да ни е толкова срам, че ядем букви като пишем бързо, защото един бърз поглед преди да пратим е достатъчен за да видим подчертаните.

:)

Posted in BG, Tech | No Comments »

History Import Kopete To Pidgin

March 30th, 2008 by lukav

Since I’ve switch to Kubuntu I’ve been using Kopete as an Instant Messaging client. I’ve wanted to test Pidgin, but I didn’t want to lose my history again. Unfortunatelly I couldn’t find a tool to transfer my history from Kopete to Pidgin, so I’ve write a little script to do the job.

So here is it:

history_import_kopete2pidgin.tar.gz

In order to use it you need to install xalan and then just run the script with your user.

The script was written for my Timezone, so it might be necessary to edit  history_import_kopete2pidgin_filename.xslt file and enter yours

Hope this is useful for someone

Posted in EN, Tech | 3 Comments »

HowTo install hpt374 raid driver in debian

February 22nd, 2008 by lukav

Over the year I had to compile and install several times hpt374 driver for the HighPoint IDE controller.

Although the hardware is very old and probably nobody use it anymore I decide to put down this howto, for anyone interested.

The last time we’ve upgraded debian to etch with kernel 2.6.18-6-686 so the instruction will assume this kernel version.

First install the kernel-headers package

apt-get install linux-headers-2.6.18-6-686

then download the driver in this case hpt374-opensource-v2.17-1114
extract to some folder, for example: /usr/src/hpt374-2.6.18-6-686/

compile the driver

make KERNELDIR=/usr/src/linux-headers-2.6.18-6-686

you should now have hpt374.ko. Copy this file in the kernel modules directory

cp hpt374.ko /lib/modules/2.6.18-6-686/kernel/drivers/ide/pci/

We need to populate the modules dependencies

depmod -r 2.6.18-6-686

add hpt374 to /etc/initramfs-tools/modules if it is not already there

echo hpt374 >> /etc/initramfs-tools/modules

update the initrd image so the module gets loaded on system start up

update-initramfs -u -k 2.6.18-6-686

And thats it. You should now be able to reboot and use the new kernel with the raid

P.S. I’ve wrote this in a hurry, so I’ve may missed something.

Posted in EN, Tech | 1 Comment »

Как да сложим кирилица на eeePC

January 2nd, 2008 by lukav

За тези от вас, който са си купили прекрасното eeePC, тези инструкции ще ви помогнат да си сложите кирилица.

Ако следвате инструкциите в края ще имате иконка в трея за индикация на кой език сте и ще сменяте между български и английски с комбинация на клавишите alt+shift.

ВНИМАНИЕ ! ! ! Ако не спазвате инструкциите точно, може eeePC-то да престане да стартира, при което ще трябва да си го преинсталирате от диск-а!

Ще използваме конзола за да променим някой файлове. За да си пуснем конзолата натискаме CTRL+ALT+T.

Като за начало трябва да спрем програмката scim, която върви по подразбиране с eeePC. В конзолата изпълнете следното:

sudo killall scim-panel-gtk
sudo killall scim-launcher

Update за 901: изпълнете sudo killall gcin

Сега трябва да деисталираме scim. Това става с командата:

sudo apt-get remove --purge scim*

Update за 901: изпълнете sudo apt-get remove –purge gcin*

Следваща стъпка е да настроим вградената функционалност на Xorg за превключване на кирилица:

sudo kwrite /etc/X11/xorg.conf

В редактора намерете секцията описваща клавиатурата (Section “InputDevices”- Identifier “keyboard”) и я направете да изглежда така:

Section "InputDevice"
	Identifier  "keyboard"
	Driver      "kbd"
	Option	    "CoreKeyboard"
	Option	    "XkbRules" "xorg"
	Option	    "XkbLayout" "us,bg"
	Option	    "XkbVariant" ",phonetic"
	Option	    "XkbOptions" "grp:alt_shift_toggle"
EndSection

За любителите на BDS сменете “,phonetic” с “,bds”.
Запишете файла (ctrl+S) и затворете редактора.

Следваща стъпка е да си инсталираме индикатор за текущия режим:

wget http://lukav.com/eeepc/kkbswitch_1.4.3-3_i386.deb
sudo dpkg -i kkbswitch_1.4.3-3_i386.deb

Сега е необходимо да направим така, че kkbswitch се стартира всеки път. За целта създаваме нов файл, който ще се изпълнява след стартиране на Xorg:

sudo kwrite /etc/X11/Xsession.d/98x11-kkbswitch

Файла трябва да съдържа:

/usr/bin/kkbswitch &

не пропускайте “&” в края на реда!

Сега трябва да рестартирате eeePC-то и ако сте спазвали инструкциите докрай би трябвало да можете да пишете на кирилица, като превключвате с alt+shift.

В трея ще имате иконка, която ще се сменя между 1 и 2 при натискане на alt+shift.

Ако натиснете десен клавиш върху нея и изберете конфигуриране може да изберете иконки за English и Български.

Ако искате менютата в програмите да ви излизат на български. Изпълнете:

sudo dpkg-reconfigure locales

Намерете bg_BG.UTF-8 и го активирайте. На следващия екран го изберете като “Default locale”.

Това е набързо написано описание и сигурно има и правописни грешки :( . Но ще се опитам да го допълня и поправя с времето.

Posted in BG, Tech | 17 Comments »

IE css float print problem

August 28th, 2007 by lukav

The latest discovery on IE problems was that when you use float divs and you decide to print IE, either ignore the floats or to be more precise, if you don’t explicitly specify width it just expands them to 100%.

There are some posts on the network, but all of then suggest to not use float when printing. However this was no good for me, cause I arranged me forms with css and no tables. The solution of fixing the with of floats was also no good, since I have different internationalization and some text differ in length.

So since I couldn’t find any css solution I had to make a simple JS hack.

In turns out IE has to useful events - onbeforeprint and onafterprint. So I just used those to go over all my floating elements and set the width before printing:

// We try to fix printing styles because IE is has problems
if (OAT.Browser.isIE) {
 OAT.Event.attach(window,"beforeprint",function() {
 	var elm = IB.PageContent.getElementsByTagName('div');
 	for (var i=0;i<elm.length;i++)
 		if (OAT.Dom.isClass(elm[i],'right') || OAT.Dom.isClass(elm[i],'left')) {
 			var size = OAT.Dom.getWH(elm[i]);
 			elm[i].style.width = size[0] + 'px';
 		}
 	}
 });
}

The example uses the OAT library, but you can guess what it does.

This fix works fine with the little exception that the divs move a little before print, but I can live with this for now.

Posted in EN, OAT, Tech | 2 Comments »

Joost Invitation, please - or - how is my blog doing.

May 5th, 2007 by lukav

Hi all,

Today my colleague and partner turned my attention to the next service from the founders of Skype called Joost. It sounds very interesting and shows how “the network” is slowly overtaking the “the networks”. By this I mean that each day I find that people are using the Internet for staff that they thought are only available by other means. For example before 7-8 years the source for reliable information was the newspaper or TV. Today the Internet Network is not considered less reliable source and is perfectly normal to say “I found on the net” or “I read in the Internet”.

I see the future where TV, video and radio are only both for convenience not for necessity. If my parents bought а TV so they can stay informed and up to date - they spare the money on computer because ‘their boy (me)” was interest in that new thing. IMO lets say in 5 years time parents will buy a computer so they can stay up to date - Watch TV, read articles and books listen to the radio etc and would buy a TV just to make it more easy and to get the kid off the PC.

So the revolution that started 10 years ago have not yet finished and there are things yet to see and come.

I’m very excited to try out joost, but I need someone to send me invitation. So if you read this and you have one please PLEASE send it to me.

If I actually get one by this blog, then my blog is not doing so bad ;)

Posted in EN, Other, Tech | 2 Comments »

Test a page in various browsers.

April 24th, 2007 by lukav

There is a very interesting service out there:

http://browsershots.org/

It makes a screenshot of a page with various browsers like: Dillo 0.8, Epiphany 2.14, Epiphany 2.16, Firebird 0.6, Firebird 0.7, Firefox 1.0, Firefox 1.5, Firefox 2.0, Firefox 3.0, Flock 0.7, Galeon 2.0, Iceweasel 2.0, Konqueror 3.5, Mozilla 1.0, Mozilla 1.1, Mozilla 1.2, Mozilla 1.3, Mozilla 1.4, Mozilla 1.5, Mozilla 1.6, Mozilla 1.7, Navigator 4.8, Opera 9.2, Opera 9.10, Phoenix 0.1, Phoenix 0.2, Phoenix 0.3, Phoenix 0.4, Phoenix 0.5, SeaMonkey 1.0, SeaMonkey 1.1, Windows MSIE 5.0, MSIE 5.5, MSIE 6.0, MSIE 7.0.

Great idea and a vary usefull one.

I’ve test it with my blog you can have a look here:http://browsershots.org/website/http://lukav.com/wordpress/

Posted in EN, Tech | No Comments »

Multiple IE on a single machine

April 24th, 2007 by lukav

Hi, I’ve been using a Virtual machine for some time now to test with IE6 (Microsoft Internet Explorer) and IE7. However this machine was taking valuable resources just to have IE6 running, which was very inefficient. So I’ve look for another solution and found it.

http://tredosoft.com/Multiple_IE

Thank you. THANK you vary VARY much. TredoSoft.

They made an installer that installs IE versions: 3.0, 4.01, 5.01, 5.5 and 6.0 (by the time of this writing) on a single PC as a standalone app.

So far it works like a charm.

Posted in EN, Tech | No Comments »

Firefox firebug and synchronos calls problem

April 12th, 2007 by lukav

For those of you that have discovered that when you have Firebug installed and are developing some synchronous XMLHttpRequest everything works, and when you disable it it stops: here is the problem.

Believe it or not it is a bug in Firefox NOT in Firebug. It turns out that Firefox doesn’t call onreadystatechange when the you set the 3 parameter (async) to false in open. Probably FF expects that when a call is synchronous the developer will process the result in the lines following the send call. May be this make sense, but if you want to quickly test async/sync calls or use a library that doesn’t take care of this, you be in trouble.

I can say for certain (I’ve committed the code myself) that the next release of OpenLink AJAX Toolkit won’t have this problem and will make no difference if you have Firebug or not.

I use the following to catch the situation where Firebug is not installed or is installed but disabled:

if (OAT.Browser.isGecko)
{
  try {
    if (!xhr.options.async && xhr.obj.onreadystatechange == null) {
      OAT.AJAX.response(xhr);
    }
  } catch (e) {
    if ((e.message && e.message == 'Permission denied to create wrapper for object of class UnnamedClass') ||
         e == 'Permission denied to create wrapper for object of class UnnamedClass')
      OAT.AJAX.response(xhr);
 }
}

OAT.Dom.isGecko() - return true if it mozilla and derivatives
OAT.AJAX.response - is the function that is normally called when the request finish.
xhr.options.async - is holding if the call is async or not
xhr.obj.onreadystatechange - is the original Firefox XMLHttpRequest object instance, since the code above works in the context of OAT

Posted in EN, OAT, OpenLink, Tech | 31 Comments »

« Previous Entries