Look, someone's on that tree
(Recent Entries)
(Archive)
(Friends)
(User Info)
Navigate: (Previous 10 Entries)
(Exterface)
(Блогът на Кристофър-Робин)
(Спете голи(информативен сайт))
(Хауърд Рофман)
(Моите споделени новини)
(Науката в глупави стъпки (еволюцията))
Nov. 25th, 2009

Реших това ревю да го напиша на български, защото достатъчно има изписани на английски. Който ми трябва на английски ще си го намери.
Метод на инсталация: Както обикновено, свалям DVD-то и го монтираме при уеб сървъра:
mount -o loop /path/to/Fedora-i386-DVD.iso /var/www/lighttpd/fedora
От там копираме vmlinuz и initrd.img на системата, която ще инсталираме/обновяваме. Понежее ужасно досадно да седиш пред монитор, на който просто се инсталира нещо си пускаме vnc:
kernel /boot/vmlinuz-install ip=192.168.1.3 netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.1 keymap=us lang=en_US repo=
http://192.168.1.2/fedora/ vnc vncpassword=qwerty
На този етап, ако не сме забравили нещо би трябвало да можем да се закачим от някой друг компютър в мрежата към инсталирания (на 192.168.1.3:1) и си цъкаме по бутоните докато ни подканят да рестартираме.
Недостатъци на този метод: системата тръгва в конзолен режим след такава инсталация (недоумявам защо, логично ли е, че ще си инсталирам Гном, но ще искам да ползвам системата в конзолен режим?). След инсталацията се налага да се редактира /etc/inittab и на последния ред 3 да се замени с 5. Иначе всичко друго е бомба. Добавяте си потребител както обикновено и така нататък, ако не ви е за първи път определено няма кой знае какви промени.
Проблеми: все пак има един проблем (
bug 540075), който обаче се появи самона един от лаптопите, така че вероятно няма да бъдете засегнати, ако все пак сте - в доклада за проблема пише и как съм го заобиколил.
Общи впечатления: Много добре са се справили. Аз от доста време се белосвам с една определена част - аудио подсистемата. Е, този път работи май. Най-малкото twinkle работи нормално, дори и когато има пуснат филм. Cool huh? Това, което не ми харесва как работи обаче е totem. Ето както: добавили са възможност да направите пано с кадри от кой да е филм - супер. Обаче както е всеизвестно intel драйвера няма поддръжка за video overlay на старичките карти (примерно 855ГМ). А те милите карти нямат textured video. Остават два варианта: GL и Х11. Е хубаво, с mplayer Х11 работи супер, но с totem се влачи ужасно, дори малки клипове, какво остава за нещо по-голямо. Невъзможно е. И разбира се gsteramer не идва с GL sync. Във Федора 11 го инсталирах "на ръка", но така или иначе не сработи, теста работеше, но филм реално така и не тръгна, чудя се дали изобщо да опитвам пак.
Gnome-shell пък е толкова бъгливо, че даже не си струва да се споменава.
В заключение да отбележа, че това беше една от най-безболезнените миграции към нова версия която си спомням. Да не кажа най-безболезнената. Абсолютно всичко си продължи да работи. Супер а!
Снимката в пълен формат от тук. Ако някой се чуди - менюто горе е като на мак, да, просто ми е по-удобно.
Nov. 22nd, 2009
Small panorama in a foggy Sunday morning:

Full size can be downloaded from here. Unfortunately the stain in the upper centre spot I couldn't avoid because automated pano stitcher (autopano-sift-c). Still it is sweet, isn't it?
Nov. 20th, 2009
They say there is nothing wrong with the climate.
I can confirm - there is not!
Today they were putting the Christmas light on the buildings downtown. And they were mowing the grass in front of those buildings. That’s perfectly normal! Especially if you happen to live in Miami....
Nov. 7th, 2009
Recently I have encountered few articles on-line concerning GWT and the future web application, more precisely how they are going to be written. First I read this one (Lost in translation or why GWT is not the future..) and then I saw this one, lastly was this one. As an end of this yesterday Google have decided to open up their Closure library.
I don't "speak" java, so I cannot leverage the benefits of the GWT project. Until recently that is. Then I found out about pyjamas which is "a port of Google Web Toolkit to Python". It is really easy to use (just download it, unpack it and run bootstrap).
With pyjamas I have had the chance to touch the surface of this technology. Went to examples and compiled hello world. And guess what, it generates 96 lines of browser sniffing code and 16626 lines of mozilla optimized javascript code that loads an empty iframe and puts one button and one label on it. I wonder how many code will it generate for tab driven application (I intend to port the wireless management project to GWT just to see how _faster_ it will run). I am not saying anything bad (not yet), it is just that 16 thousand lines of JS code is a bit too much for me to handle right now. I can only assume it is the code that makes sure everything else runs smoothly. Yeah.
If you read the comment bellow the first GWT related link I gave above one can notice that there is no middle way in comprehending the situation - you either love gwt or you are against it for your life. Why is that?
First of all as I see it (by looking on the amount of code generated for a single button and label to be shown to the user) I can tell you will not be tweaking any JS code soon - one will count entirely on the automated generation of it. This will mean that the translator should be extremely good to expose the JS via java considering that it is entirely different language. So we should assume that it is a good starting point for anyone who would want to write complicated web application but does not have the time or willingness to learn javascript and the implementation of it in the different browsers. I consider this a good thing, if you are for example an advanced java developer in theory you should be able to have running web application effortlessly.
On the other hand we have the seasoned web developers (or otherwise - front end developers as they are called these days) that know by heart almost all differences between Mozilla and IE. One such front end engineer will be able to generate the same hello world thing in probably 30 rows of code. To be honest the hello world example is oversimplified and probably writing more robust and complicated application will be s bit faster with GWT, that is if you know java very well and you have had the time to learn the toolkit provided. And if you do not need to use customized widgets.
I consider some of the things done to be useful. But more on that later.
Now, Closure. In javascript closures are something very interesting - those are functions that live longer than the function they are created on. As a result the closure have access to all local variables of the parent function. Which leads to stupefying errors of course if you do not know what you are doing (I recall recent chat with a friend who tried to set onclick property of elements in a for loop using local to the for loop variable as parameter in the function set on the property, which results in the function called not with the current value of the counter when the property is set but with the value of the counter for the closure - i.e. the value when it is already out of range. Very irritating - he said:) ). But this has not much to do with the Google library and application. Closure application is used to shorten (and supposedly optimize) you javascript. In advanced mode it is considered to aggressively remove unused code, check for errors and optimize. It can be used (in advanced mode that is ) only with entry point for the javascript application being in the javascript file itself (so you cannot have the entry point of the application in your html for example a button with onclick property set to the first function called in JS). This first thing will prevent most currently available code to be run on Closure. On the other hand, remember back then, when the separation of presentation and structuring was new and everyone tried to use this new paradigm, while it was not required (browsers still even today can understand mix of html css and js in one and same file mixed in terrible ways) but we were told and made believe that if we all comply with this new hype one day writing html rendering engines would be much easier if the coding rules are more severe. Well, most of all web pages these days follow most of those rules, they validate (even to strict xhtml) and so on, css files became external, no one is using in-line styling.... well, we are now supposed to do the same for javascript. We only need to link to it. And we are not supposed to have in-line properties set to functions. That is if we want to use Closure. I would not be surprised if we are asked to do so by other entities also, not only Google.
So onclick='myFunction' now is becoming document.getElementBy__whateverIcanGetItWith.addEventListener('click',myFunction,false);
Yeah, seems shorter to me. The most interesting part is Closure will rename myFunction to one letter and STILL the whole thing will be longer than the original onclick='whatever' embedded in the html. But that is another story. Closure will also point you to issues in your code you might have not noticed before like reinitialization of local variables and (strangely enough) to mistakes in your code that seem to work; for example Array.push() method called with 4 parameters Closure considers as mistake in my code? And I am pretty sure the code works (before and after shortening it with Closure). From w3school:
The push() method adds one or more elements to the end of an array and returns the new length.
Syntax
arrayObject.push(newelement1,newelement2,....,newelementX)
So it checks. Okay, fine. checks are good.
Now how about the library. Well it is vast. Really! It brings to JS features that are not part of the language like true inheritance and other stuff that really matters to someone that does not know javascript and wants to use it with his/her java background. Right, we go back again to java.
I don't have anything against java. Most probably it is a great tool. But a tool it takes too much time to learn, too much time to get you up and running. For example with absolutely no knowledge in python you can get a basic application in 45 minutes running. Simple start page with simple form, simple javascript and simple database with only one table - only 45 minutes. On the other hand the tutorials with J2EE and Eclipse are so complicated and you have to install so many things (most of which I can't even understand how to install ) you would probably loose 45 minutes just to get to the point where you type the code that is to be compiled.
As a conclusion I have to confess - my code worked after shortened with Closure in advanced mode. The code stripped off all comments and white spaces (
see how here) is 6045 bytes, shortened with Closure is 4547 and original size is 14760 (okay I know, I leave lot of comments). The conclusion for me is - if you know what you are doing you don't need Closure. But it is a good idea to read some of the code there and in gwt, at least to find out some nice ideas!
Nov. 3rd, 2009

И така докато съм се заровил в една ДЕБЕЛА ПРАШНА книга по история на музиката и чета за господството на Жан Батист Люли по време на Луи 14 и годините следващи смъртта му рекох да послушам малко съвременна музика, че има още поне 30 страници до създаването на концерта като музикална форма. И какво да видя - попадам на Родриго и Габриела - ей много са добри с тия китари, страшни направо, Ал Ди Меола също е уникат, ама тия просто ме грабнаха защото са много чаровен дует. Може да си ги дръпнете от ей те тук в любимия си формат. На мен любимото ми е Hanuman. Обръщам внимание, че това е изскачащ прозорец в граден в него wmv файл. Ако не се кефите - следвайте си нормалната логика - десен клик и от менюто - запази. Чисто и просто - като къпан милиционер.
Oct. 31st, 2009
Anyone into Vivaldi's Seasons? How about an overweight Russian boy? Well, I am giving you Alexandr Hrustevich (Александр Хрустевич), my God he is really good! I was impressed, besides I really like Vivaldi:)
Enjoy!
Link to video in YouTube
In addition I would recommend this scerco - one of my favourite. If you are not much into classical you might recall a hot scene from QAF with it then:)
Oct. 24th, 2009
Attention!! Major rant follows!
Note: this will be analysis of the path Gnome has taken towards the 3.0 release.
All the hype is there - all over Fedora planet everyone is talking about switching to rawhide just to be able to try out the new Gnome shell.
Here is my point of view on this (some would be surprised I guess).
- drivers on 45% of the user will not be ready for the release (goodbye Nvidia cards - unless you manage to install the proprietary driver first - which excludes the new users completely)
- if it is not turned on by default (see previous point of why it should not be) all “not enthusiast” users will never see it coming at them, if the older behaviour is supported they will most probably stay with it until it is completely removed and either way the change will be forced upon them
- power user are also not happy with it - most confess that they find it slowing down on their day to day use of the computer
- the conceptual switch from document to task oriented work model could have been done without the bling
- low end tech users will be left completely out of the picture - this is the point I am going to emphasize most in this text, because people I know and love will be no more able to use the laptop for as simple task as playing a card game!
So what does exactly the last point means? Here I am, computer literacy above the average, I like (okay, LOVE) bling stuff on the desktop, I have tweaked myself at least 3 gtk themes, created at least 2 from scratch, several metacity themes (check out
my page at gnome-look to see some of the work in previous years) and have configured compiz from the gconf tool so many times I have no idea what a default configuration/theme means. But this is me. When I use my laptop and have the user switch panel applet turned off and my mom wants to use the laptop for a few minutes and is she is presented with something like this:

she does not know what to do with it. This is why and where Gnome comes in - a specially designed desktop environment with easy use in mind - right? It has all the simple things one need - the X at the upper right corner (yes mom, it does the same on all windows - closes them) and the start menu (it is localized so it is pretty ease for one who can read to find the games section!). You click on the menu but you find it because of the icon - it is easily recognizable. This is how my mom and my grand mother are using the computer - navigate to a memorized icon, click on it, read the menu - find Games or Internet, click on it (they still cannot learn to hold the mouse still for the menu to open, they always click on the menu item to force the sub-menu to open up) and then find the next memorized icon. Sometimes they start to drag the icon instead of just click on it because their fingers are just not ready for this fast movement (click - omg! I hope they will never have to ‘right click’, it will be almost impossible) - when they are done I have like 10 new starters on my desktop - this is why I disabled the desktop management by nautilus, those icons just do not belong there!
But what happens if I want to use compiz and not metacity (which by far is the best for the gnome desktop IMO). Well all hell breaks loose - Peter, something happened with my window (meaning scale was activated by one of the freaking corners), Peter - something disappeared (drag started and switched to another desktop), Peter - I cannot close the window (scale started with only one window at the desktop making it look as it is not in scale mode). And so on and so on. Task as simple as switching between multiple windows is putting those people in stress. The only way trough this they know is close everything, then open what they need.
So the ease of use is essential for those kind of users. One thing Windows is getting better than the rest (Linux desktop and OSX) is the simplicity and consistency - they have managed to
not change the way the interaction with the desktop elements works trough 5 or 6 major versions! Those are more than 10 years! Yet they have introduced the bling also. On the other side we have Apple - first it was the freaking dock - very good if you only use one browser window and one window of each application - pretty unrealistic for real world computer use - the dock sucks and always will. To counter measure the fail of the dock they have introduced expose - very well played. Except for multi monitor set up where if you are working on the right monitor but your scale hot corner is on the upper left guess what - prepare to travel 300+ pixels just to switch - great! They play the video on pixel accuracy scale even with 1980p - big deal, I have bought a computer, not a freaking video player!
Then it is Linux. It was hell at the beginning - no sane desktop environment at all, you have to be born with those skills to use the computer. Then Gnome was born, much fewer buttons on the icon bar of the application (unlike KDE where you get agoraphobic looking in the crowd of buttons to find the right one). Things became sane - the interface was consistent and intuitive - mostly copied from Window, which is normal as all the world new was Windows. My mom did not even realised when the old PC switched from window 95 to Mandrake Linux in 1997. She new the start button and she know the X in the upper right corner.
And then everything got screwed up when David Reveman said - hey look what I can do! Oh Gosh, the kid just got bored playing with whatever he was doing and found a new toy! And a toy it was - the hype was becoming rage, everyone was in the hurry to have this new exciting stuff on their machine, new boxes were purchased just to be able to run compiz! And I got it too! And then the problem with the older users or as I like to call them computer challenged became obvious. Having those effects is just a showoff. It is not what we should be aiming for. Cristal clear, flicker free video playback is! OpenGL 3.whatever support is. Jumping spinning and singing windows is
NOT!!
Today in 2009, years after compiz, scale, expose, flying windows and whatever we still lack simple things like: OpenGL vector font rendering in the application (allowing seamless and faster zooming on all levels, people were talking about this for a decade), usable GL acceleration on older hardware (even simpler games cannot be played with indirect direct rendering on X3100), pure video technology on all hardware, sane power saving on GPU, intuitive consistent user experience - we are still trying to invent the user interface.
Some companies are doing it - take google mail for example - it incorporates everything one would expect as an end user product - it build up on something every one knows how to use, it can accommodate the old use pattern but allows for a newer much more powerful one whenever you are ready for it. Why can’t we do this on the gnome desktop? To what should I switch my laptop once this shell thing becomes the default? Openbox? fwm? I don’t know. I will find out once we are there. But hey, why do we need this? I don’t understand the need of this modernization. Just because some percentage of the user base likes compiz does it mean we should just go and put useless animations on all user’s desktops? Apparently - yes.
Update:Here is the
analysis made by Martin (and he knows thing or two about usability!) in his blog.
Oct. 23rd, 2009
And guess what I have found out today!
Vim has automatic file saving (turned on by default as I didn’t even had idea this is supported) and my ass was saved from a major disaster (when openbox decided it is time to start behave as idiot and loose focus and then when restarted it took the whole X server with it)
So... vim is officially my new favorite editor. Congratulations Vim!
Oct. 22nd, 2009
And just when I thought I have seen it all this came into my life: channel4’s Bodyshock - Age 8 and wanting a sex change.
It has to be seen to be believed, children at age 5 to 6 want to be of the opposite sex. And their parents allowing it. I am too old for this, kids choosing their sex at that age and making such dramatic change in their life. For example testosterone treatment ends the growth (so the sooner it starts the shorter the to-be-guy will remain) as well as fertility becomes impossible. I am not sure how will I (will I be able) to handle such thing if it happens with my child. This scared the hell out of me. And there are even more scary things on the web site of the program.
Strange days on planet Earth I would say...
Цитат на деня:
Георги Дончев: Преспах първо със Стивън от "Boyzone" а след това и с мъжа му.

Такаа, понеже господин Дончев очевидно го тресе звездоманията, ето какъв кратък анализ на бъдещите му кратки среща можем да направим.
- понеже явно е тръгнал по веригата начело със Гетли (демек въпросния Стивън, който наскоро почина) и вече е спал с мъжа му, логично е да предположим, че ще започне да преспива с бившите му мъже, следователно следващият му партньор за секс би трябвало да бъде Илой де Йонг (бившия гаджок на Стивън)

- Понеже Стъвън не раздуха никоя друга своя афера с изпълнител от boy група от деветдесетте години можем спокойно да преминем плавно към останалите така наречени момчешки групи, най-известна в БГ от които беше Take that. За голямо прискърбие на г-н Дончев обаче никой от членовете на тази група не се оказа хомо. Ето защо преминаваме към слдващата по популярност група, която на всичкото отгоре все още има действащи членове - NSync. За целта Георги ще трябва да прелети до САЩ, но какво би спряло този напорист млад сексапилен българин когато се е отправил право с прегръдките на Ланс Бас?
Side note - Ланс колкото повече узрява, по-секси става, следователно може да усетим кратко (няколко години) забавяне, преди да го видим в новините с г-н Дончев. Общо взето в годините му с Нсинк беше бая бозав, но я сега... ааа?! - Така и така г-н Дончев се е озаовал вече с САЩ (заради Ланс Бас както се разбира), защо да пропуска шанса и да не разшири "мирогледа" си, Ланс и Ричард (a.k.a. Reichen) са приятели, нали така? (е, не ми се отчитат след раздялата си, колкото и странно да е това..), той е модел, актьор и от време на време пее някакви работи, значи става! Бам и готово - в легло с Рич (ок де може да не е легло, може и другаде).

От там насетна какво остава... няма вече граници на дончевата сексуалност, а и можем вече да го водим звезден самия него, току някой го харесал и задържал за по-дълго, да го пощракат папраците, да се разходи по някой и друг червен килим с костюм, сруващ колкото годишния доход на родителите му взети заедно и да ни радва с усмивката си, а ние да цъкаме с език и да завиждаме по типично български, че видиш ли, той от всички българчета успя да преспи с всичките въжделени и копняни мъже на 90-те и ранните 00, макар това да е било тайна мечта на всяко тийн гейче през същия период.

Само не знам този негов навик да спи с мъжете на мъжете с които спи дали няма да е пагубен, гаджето на Ричард например (Ryan Barry - горе) си е модел от всякъде... как да устоиш? Лоша работа... Звезден гаджок или звездна курва.... само бъдещето ще покаже. Ние обаче, нали сме горди че сме българи, ще стискаме палци да излезе нещо хубаво от всичко това! Нищо че завиждаме.
Navigate: (Previous 10 Entries)