pátek 31. srpna 2012

Maturity

Se státem zadávanými maturitami je problém, že studenti neví, zda si mají vybrat těžší variantu, a potom třeba propadnout, a nebo raději nic neriskovat a dělat jednodušší variantu. Další problém je, že složitost maturit občas ulétne a propadne víc jak 10% žáků.

Jako řešení se přímo nabízí lehčí a těžší variantu sjednotit. Slabší žák v zadaném čase zvládne správně vyřešit jen jednodušší příklady, zatímco schopnější žák zvládne vyřešit i ty těžší. Celkově by obtížnost maturity byla nastavena tak, aby průměrné skóre bylo kolem 50% a nikdo nedal ani 0% ni 100%. Protože kdyby žáci skórovali 100%, tak se neví, kdo je dobrý na 100%, nebo třeba na 160%. Oba dosáhnou stejného skóre. A obdobně to platí u 0% hranice. A možná že u dolní hranice si přejeme zachovat rozlišovací schopnost více, než u horní. Protože horní hranice jen určuje, kdo bude dělat zkoušky na vysokou školu a kdo bude přijat bez přijímaček. Ale dolní hranice rozlišuje, kdo dá maturitu a kdo nikoliv.

Celkově by se jednalo o zjednodušení. Žák by si variantu dopředu nevolil, učitelé by rozdávali jen jedno řešení a Cermat by vypracovával jen jedno zadání.Většina lidí by to tedy přivítala. Jediný problém by bylo, že někteří žáci by mohli mít problém se srovnat s tím, že u maturity nedosáhli 100%, jako obvykle dosahovali ve škole. Tohle je problém pro marketing, aby vysvětlil, že nikdo nemá dosáhnout 100% a jen promile se k tomu má přiblížit.

Druhá část řešení maturit je hodnotit výsledky relativně, a nikoliv absolutně. Z Cermatu několikrát přímo zaznělo, že maturitní testy byly koncipovány tak, aby 8% žáků je nedalo. Ale z novin víme, že jim to každoročně ulítne a někde propadne mnohem víc žáků. Proto by mělo být na rovinu řečeno, že 8% žáků s nejslabším skórem maturitu nedá. Cermatu by odpadli skandály, že jim to někde ulítne, a žáci by si nestěžovali, že jich 50% vyletělo. Problém by opět mohl být jak žákům, kteří jsou uvyklí na absolutní hodnocení, vysvětlit, že relativní hodnocení je pro ně lepší. Ale to je opět záležitost pro marketing, aby ukázalo, že v novém systému se nesoupeří mezi spolužáky, ale mezi školami. A třeba se může říci, že hranice pro průchod se snížila z 8% na 6%. Což může být pravda a přitom se nemusí nic fakticky změnit, protože většinou se stejně u maturit ukázalo, že průměrně projde víc žáků, než se plánuje, protože Cermat se jistí, aby se často nestávaly takové extrémy, jako že 50% žáků vyletí.

sobota 25. srpna 2012

Error 20 on Canon 450d

Recently some water got inside my camera and I had to disassemble it and clean it. The final casualty was that the clock battery (MS614SE) had been damaged and I had to buy a new one. Including the shipping fee the repair cost was $4.

However, after the assembly when I tried to make a photo I got:

Err 20
Shooting is not possible due
to an error.
Turn the camera off and on
again or re-install the
battery

The solution turned out to be simple: unscrew the long screw next to the zero mark and replace it with a short screw. The fix works because the long screw is mechanically blocking the gears inside. 


pátek 24. srpna 2012

Why I Love And Hate Macbook Air

What do I like:
  1. The antidust black rubber on the lid. It works.
  2. The LED on lid signalizing that the camera is working. When it's not turn on, the LED is almost invisible. Nice touch.
  3. The laptop is silent when not used on 100%.
  4. I love the SSD. It's small (now I would choose 256GB) but fast. 
What do I dislike:
  1. The build in camera is noisy. But it is excusable as it has to be really thin (just 1mm or so) to fit into the lid.
  2. The speakers are surprisingly loud and clear. Of course they miss depth of HiFi system as we are still talking about a laptop. But still I am impressed as you can fill whole room with music from this laptop. The only annoying problem I have with the audio on Macbook Air is that it takes 3 seconds after headphone plugging until the sound is actually redirected to the headphones. This lag is irritating on otherwise lag-less laptop.
  3. The power socket has the same size as USB. And that's bad as I sometimes plug USB cable into the power socket and then I wonder why the printer doesn't work :). But Apple solved this issue in 2012 version by making the power socket wider and thinner. Alleluia.
  4. Aluminum is cold and unpleasant to touch.But I expected that and covered the laptop with leather.
  5. No Ethernet. Hence I have to use an ugly USB pigtail.
  6. Only 4GB of RAM. But there have been some special versions with 8GB. 
  7. The SD card reader is not deep enough to hide the card completely. Hence the card is sticking out from the laptop by 1 cm. And once I have cracked a card in the reader because of that. And you can't use the slot to conveniently expand the disk size.  

Articles at my blog follows Pareto

I analyzed the logs on my blog and I confirmed my expectations. The number of readers of each individual article follows Pareto Law:

Why did I start to write this blog?

At my high school I was drilled to write a poem or an essay each week. And when I left my high school I often found myself perfecting a text in my mind. And while I was doing that I couldn't think about anything else nor sleep. The only thing helping me was to sit behind a table, take a keyboard, and pour it down to the screen emptying my brain for other things. From the beginning I was writing the texts just for myself as it was my sleeping pill. But after a disk failure when I recovered everything but my notepad I felt pity for all the hours I have spend writing and I started publishing my "nightmares" on web to keep them safe. And while I used to be happy that no one reads my articles I am starting to feel bad that I am wasting my time on unhelpful articles, which even aren't precised to the best high school standard anymore. Hence I decided to prune and edit the articles to make them useful for broad audience.

Plastová okna

Nevýhody plastových oken jsou:
  1. Nevíte, z jak kvalitního plastu jsou udělány. Plast se dá hodně vylepšit přidáním plnidel, například přidáním barviva se změní barva, přidáním UV stabilizátoru se plast ochrání před degradujícími účinky ultrafialového záření, přidáním tvrdidla se plast stane odolnějším na poškrábání, nebo přidáním změkčovače se plast stane na dotek mnohem příjemnější. A potom se taky do plastů dají přidat plnidla "vycpávky", jejichž úkolem je snížit cenu výsledné hmoty, protože jsou mnohem levnější než plast. A to jak je plast namíchán napohled nepoznáte. A tak na jedné základní škole namontovali plastová okna. Vypadaly nádherně bíle a i dobře fungovaly. Ale po pěti letech začaly šednout a škola to reklamovala, neb měla osmiletou záruku. Ovšem společnost, která okna dodala a namontovala, se raději rozhodla zbankrotovat, než je všechny vyměnit, protože ji to tak vyšlo levněji.
    Naproti tomu u dřeva máte výhodu, že víte, že je to dřevo. A tak víte, co od dřevěného okna očekávat.
  2. Nevidíte do rámu. V mé základní škole vyměnily všechna okna za plastová. Fungovaly výborně. Ale jednou se v létě v tělocvičně otevřelo okno a nikdo ho potom nezavřel. Kdo by ho taky zavíral, když se k němu muselo šplhat po žebříku šest metrů a ještě týden měly být pekelný vedra. Ale po týdnu, když vedra opadla, se zjistilo, že sklo vypadlo z rámu. Ze zdi trčelo pár plastů a na zemi rozbité sklo. Po prošetření se nakonec ukázalo, že okno drželo obdélníkový tvar jen díky sklu, na které byly naraženy plasty. Plasty ale nejsou nijak pevné, a tak se z obdélníkového křídla nejdřív vytvořil kosoběžník a nakonec sklo úplně vypadlo. Tentokrát ztráta nebyla nijak velká - učitelé dostali nakázáno vždy při opuštění učebny zkontrolovat, zda jsou okna zavřená, a dalším ztrátám se zabránilo. Ale v případě jednoho našeho klienta byla ztráta mnohem vyšší. Klient si nechal postavit celo prosklenou stěnu. A ačkoliv ji měl vyprojektovanou v hliníku, rozhodl se, že ušetří a nechá si ji udělat z plastu. A když mu to firma vyrobila a namontovala, tak se celá stěna uprostřed prohýbala o pět centimetrů téměř i při bezvětří. Nevím, co s tím nakonec udělal, ale pokud se ta stěna vyráběla znova, tak to byla ztráta přes 100.000 Kč.
  3. Zloději je snadno otevřou. Rám plastových oken je totiž dutý a měkký. Stačí tedy aku vrtačka a kus drátku a jste hned vevnitř, jak je popsáno na iDnes: Policii trápí navrtávači oken, po celé zemi vykradli přes 300 domů.
Samozřejmě lze udělat dobrá plastová okna. Plasty si mohou zachovat své vlastnosti třeba i tisíciletí. A většina výrobců již do plastových oken dává kovové výztuže. Výrobci začátečníci stočí kus armovacího drátu a je hotovo. Výrobci, co to už dělají profesionálněji, vkládají do rohů rámů prefabrikované úhelníky z kovu. A nakonec profesionální výrobci používají svařovaný rám, který je sice pracný na výrobu, ale je nejpevnější. A to, že se plastová okna dají snadno navrtat, vás v osmém patře panelákového domu nemusí moc zajímat.

Nicméně, ať už se rozhodnete pro jakékoliv okno, platí, že okna se musí každoročně seštelovat, jinak jdou špatně zavírat a ničí se. A toho se právě dá využít k rozeznání kvalitního výrobce od nekvalitního - kvalitní bude nabízet, že vám každoročně seřídí okna, a tím vám prodlouží záruku.

pondělí 20. srpna 2012

The best castle in Heroes 2

It's magical that Heroes 2 doesn't age. The graphics is still nice as it doesn't attempt to be realistic, but indeed stylized. And it works. It works so well that time to time I return to play it. And as I switch castles all the time to increase the variety I try to imagine an ideal castle with ideal creatures.

My ideal castle would have following creatures:
  1. Skeletons. They are expensive, but that's not a concern as your dead enemies are a free source of them. And they have extremely high damage (2-3) for a first class creature.
  2. Gargoyles as they are fast and you get them with each recruited hero. Hence if you need a hero just for exploring, you recruit a hero and leave the relatively slow skeletons in the castle. As the hero's troop now contains only fast units the hero can now move further each round. Additionally flying troops are handy for blitzkrieg in the first week.
  3. Elves. Each castle should have some shooters. And you really want to have some shooters for the blitzkrieg in the first week. Furthermore they have average or above average speed hence they don't slow down your heroes and that's quite a unique feature for a low-level shooter. The only problem is that in the first week you are going to have just a few of them.
  4. Vampire (Lords) as they can resurrect them self. You just have to wait until you collect 15 of them and then they are invincible as with each attack they refill their rows to the full rank. The only problem is if the enemy concentrates all his power to vampires and kill them all in one round. Or if the opponent has only strong units as they die slowly and you can't fully benefit from vampire lord's special feature.
  5. Hydras. They are ridiculously slow but as they have a lot of hit points and they are cheap they are perfect for defense. And they are usable for attack as well. Once I didn't have enough money to buy dragons but I had teleport spell and I could afford to buy 40 hydras. So I have been decimating the enemy with just these 40 hydras. It was satisfying to see all enemies troops to get bitten by 40 hydras at once.   
  6. Paladins. They have ridiculously low number of hit points but they cause extremely high damage. Their secret of successful use lies in getting resurrect spell because for each spell point you can resurrect one paladin. And six resurrected paladins each turn is not bad at all. Additionally it's commonly easier to build the cathedral than a dragon tower. Of courmage by giving up of the dragons you also give up of dragon and Armageddon combo. But as you commonly have many skeletons in your group you don't want to cast Armageddon anyway.
Overall I think the castle is reasonably balanced. It has two fliers. A shooter. And a defender. The first level unit is useful during the whole game as skeletons are available from the beginning of the game and the number of skeletons grows so quickly that they are one of the most important units inlate game if not the most important. And the last level unit is affordable enough to enter the field in the middle epoch when others are still collecting resources to recruit the last level unit or even to build the dwelling structure (yes, black dragons, we are talking about you). The strategy in the first week is to build dwellings for the first four lowest units, the well and the statue. You are left with one free day which gives you some extra money to recruit units, build a ship dock or a market. In the first two weeks you recruit only skeletons, gargoyles and elves. On a small map you have good chances to successfully attempt for a blitzkrieg. In the case your castle is attacked you build swamp for hydras to have a defensive unit with many hit points. In the second week you commonly build swamp and the cathedral. At the beginning of the third week you should have plenty paladins and even enough money to recruit them. At the beginning of the fourth week you should have enough resources to update vampire's dwelling and recruit all 18 vampire lords. From now your forces will compose only from skeletons, elves, paladins and vampire lords as gargoyles are now rendered obsolete. In each epoch you are using three to four different units thus you can always accept some new units that wish to join you.

The castle is dark oriented - skeletons, gargoyles, vampires and hydras are already dark and in the dark fantasies there are always some dark elves and dark knights. Hence from a design point of view the castle makes sense and there shouldn't be any penalty for mixed troop just because you have elves and skeletons together. However, the castle is mixing undead and living creatures and that is causing some troubles. Even if we omit morale penalty for undead in the troop there are some spells for entirely live or undead troops like mass bless or dead ripple and their usefulness is now crippled. But it's possible to live with that till you don't get them in your own mage guilds (just like you don't get death ripple if you play as a knight).

What's your opinion about my castle?

sobota 18. srpna 2012

Why am I reluctant to updates?

When it comes to updates I am careful. Once I have left Windows Update to update my computer and my network printer stopped working. I discussed the problem it with uncle Google and he found out that it's because of the withdrawn support for Raw Sockets in Windows XP SP2. But the funny thing is that this update is not present in only one particular patch. Indeed it's present in about 60 patches including the patch for Spider Solitaire. Does Spider Solitaire has anything to do with networking? No. It's an offline game. And even if you go to update detailed description there still isn't any note about any change in networking.

In another case I couldn't connect to WebDAV on Vista. Windows Vista was a new operating system and I expected some problems. Hence I updated the system to a newly released service pack. It took a whole day to download 6GB service pack and all the updates. But WebDAV still didn't work. Fine. I asked uncle Google and he found a patch from Microsoft, which is not automatically deployed with Microsoft updates. And it somehow helped (I have got from the second step of a wizard into the third step. But after two days of debugging I gave up in the fifth step from seven steps and installed Total Commander with WebDAV plugin and I got connected in less then five minutes).

If the updates I want aren't automatically deployed with Windows update and updates that I don't want are sneaked as Spider Solitaire update, how can I trust Windows update?       

What I Hate on Fairy Tale Dimensions Website

I love the idea that fairy tale can be described by their mood. And www.mot.us/fairytale does that. However, the chosen style is inappropriate:
  1. Fairy tales are written on paper, which ages. Hence the dominant color of the style should be beige and not red. An example of a webpage that respects that was Studentský Underground. And even youtube and mixer.cz are using paper background:

    Youtube

    Mixer.cz
  2. The front logo shouldn't be just a generic text but a picture characterizing the content. My idea is five colorful vertical stripes, each decorated by a white pictogram, depicting five fairy tale factors. The reference picture depicting the idea:

    Here we can see four cups. But hey, they associate strong emotions.
  3. Fairy tales are written with a serif font. But the web is using sans serif. That's plain wrong.

neděle 12. srpna 2012

My Firefox Addons

My favorite Firefox addons are:
  1. Adblock Plus with Element Hiding Helper. It's really easy with them to get rid of any flashing item on web including text and jumping frames.


  2. Customize Your Web can automate clicking on dialogs that just slows you down.  
  3. Locationbar2 can enhance your url bar so it's more tablet friendly.



  4. OutWit Hub is a perfect tool for web mining since it can mine everything you can access with your Firefox. Hence no problems anymore with obscure security, which is there just to prevent automated tools from data mining.
  5. Rewind/Fastforward Buttons add a button to quickly return to the previous domain. For example you are searching for something and click on the first link from Google. At the beginning it looks good but after 5 clicks you want to return to Google and try another link. Traditionally you would have to click back 5 times. With this extension you just click a button once.


  6. BugMeNot helps to quickly bypass registration forms.


  7. And finally Nightly Tester Tools that allows to run old addons even in new versions of Firefox.

Distribution of Friends on Facebook

I looked at the distribution of friends' friend count. I thought that I will just see an another example of Pareto distribution. Little did I know...


The distribution has a long tail but once the number of friends hit 150 it goes down quickly.


I thought ok, it's because they are mine friends and not a general population. I am more likely to be friend with someone who has many friends then with someone who has just a few friends. Hence my tail must be clipped at the tail.


I sampled people of the same frequent name and I have got the same strange result. I thought ok, it's because Facebook truncates the output to the first 300 people who are likely to be my friends. Hence the plot contains people with many friends.


But if I sample a rare name I still get a deformed curve. I have concluded that it can because of some power users with many friends. By Dunbar number our brain is designed to accommodate up to 150 friends with whom we maintain friendly relationship. And if we cross this limit we begin to neglect some of our friends. Hence I filtered all people with more than 150 friends.

And guess what, Pareto curve fitted the data perfectly!


To take away from this exercise:
  1. Be careful about the population you sample. If you ask people in a bus how far do they travel you will get a higher average than if you ask people at a bus station of the bus. A nice article called Why Your Friends Have More Friends Than You Do describes it nicely.
  2. Be careful about the extremes. They are likely to be somehow biased.  
Edit: once I wrote this article I found a similar article directly from Facebook and they observed the same things as I did! 

pondělí 6. srpna 2012

Co dělat, když jste neplodní

Máte tři možnosti:
  1. Být se s někým, kdo je taky neplodný, a adoptovat děti. Protože ani jeden z vás nemůže mít vlastní děti, partner vám nemůže vyčítat, že kvůli vám nemá vlastní děti. Navíc k dětem se oba dva budete chovat jako k vlastnímu, protože ani jeden z vás nemůže mít vlastní děti.
    Tenhle přístup není nerealistický, protože asi 10% populace je neplodné.
  2. Být s někým, kdo už děti má a další nechce a jen hledá partnera k výchově svých dětí. Nevýhodou je, že partner bude asi o dost starší než vy a pokud děti jsou už vyrostlé, tak vás špatně přijmou jako rodiče.
    Pravděpodobným partnerem je vdovec/vdova.
  3. Být s někým, kdo nechce mít děti ani v pozdějším věku.

čtvrtek 2. srpna 2012

Adwords pro Dropbox

Tak jsem si zvětšil dva Dropbox účty a to zadarmo. Návod v Angličtině je na lifehacker.com. Principiálně použijete $100 nebo $75 od Googlu, co dostane zdarma k novému Adwords účtu, k propagaci vašeho referral linku. A za každého uživatele, který si nainstaluje Dropbox pomocí vašeho linku dostanete 250MB (stejně jako ten, kdo instaluje Dropbox), a to až do 16GB.