~hruske Hruške, jabuke, jablane, čežane. » 2008 » Oktober
Home Contact Sitemap

Hruške, jabuke, jablane, čežane.

Ste se gdaj vprašali, zakaj Najboljšega soseda nikoli ni doma, ko pridete na obisk?

Disable autocorrect on iPhone

Posted on Oktober 19th, 2008 in dovhcajt |

iPhone autocorrectImage by el frijole via FlickrI recently upgraded my iPhone to firmware 2.1 and was a bit disappointed because there’s no iSolitaire to kill my time with it. As a good consequence, my battery lasts longer.

However, I was annoyed by the fact, that Apple incorporated a spellcheck into the fields, that supposedly works flawlessly… if you write in english. If you don’t, however, you need to tap on every word you write in order for autocorrect not to “correct” it. Quite annoying, yes. There are a bunch of solutions flowing around the net, but I only tested it with iPhoneOS 2.1, so this is what works:

  1. you need to have a jailbroken iPhone
  2. you need to have Cydia installer
  3. install BossPrefs
  4. install CToggle BossPrefs Addon
  5. set your Keyboard to English
  6. set Auto Correct to Off in your BossPrefs

That worked for me, however I don’t know if it will work for any other version. If you don’t want/can’t jailbreak your iPhone, Apple is supposed to add the switch in iPhoneOS 2.2.

Reblog this post [with Zemanta]
Komentarji so izklopljeni

Islamska skupnost v Mestnem muzeju Ljubljana

Posted on Oktober 14th, 2008 in dovhcajt |

This Arabic calligraphy is one of the very few...Image via WikipediaVčeraj sem bil na odprtju razstave v Mestnem muzeju. Po krajši uvodni prireditvi je sledil ogled predstave in preizkus njihovih doma narejenih slaščic. No, sam sem vrstni red obrnil, tako da sem najprej preveril slaščice, ki so bile za moj okus razmeroma mastne in nasitne.

Glede same razstave pa me je presenetila velikost razstave, ki se žal nahaja samo v eni mali sobici, temu primerna pa je potem tudi obširnost. Škoda, da se razstava ne spusti globlje v detajle, potem bi morda tudi uspeli razbit tudi kak tabu, tako pa je samo predstavitev Islamske verske skupnosti. Iz tira me je vrgla vitrina z železnim pegleznom in lončenimi posodami, sploh ker nisem zraven našel nobenega besedila, s katerim bi si pojasnil oz. upravičil obstoj tiste vitrine. Valjda ne uporabljajo več likalnikov na žerjavico?

No, četudi je razstava razmeroma skromna – pokazali bi namreč lahko veliko več – so morda spremljevalni dogodki bolj zanimivi. V soboto, 25.10., ob 16h bo namreč kuharska delavnica, burek na 5 načinov, v nedeljo, 26. 10., enako ob 16h pa delavnica za otroke na temo kaligrafija. Izpostavil sem sicer samo dva, meni najbolj zanimiva dogodka.

Aja, pa vseskozi sem se muzal ob vestni uporabi besedne zveze odprtje razstave. Sam sem bolj navajen na otvoritev razstave, pa se mi je to slišalo bolj kot kako prebavno olajšanje.

Reblog this post [with Zemanta]
Komentarji so izklopljeni

Fixing MySQL encoding problems

Posted on Oktober 13th, 2008 in dovhcajt |

Dialects of :w:en:Slovenian language, after Ra...Image via WikipediaKiberpipa‘s web page runs on MySQL, that famous and far too popular open source database, that forces developers to encounter all kinds of funny errors. Well, encoding problems are one of them.

Slovenian language works okay with character set latin2, but MySQL doesn’t really check what encoding is database using, so the database is stored in latin1, and application works using latin2. What MySQL does here, is store the data it gets using latin1 encoding, not knowing the data is already encoded using latin2. Fun.

So, moving to UTF-8 should solve this problems, but unfortunately you can’t just do a dump using UTF-8 encoding, because MySQL breaks your data. You need to dump using the encoding you have the database stored in, then convert using iconv to get an UTF-8 encoded dump. As a last step, you need to change table encodings accordingly.

Ok, enough talk. All the above translates to:


mysqldump --opt --default-character-set=latin1 -u root -p database_name | iconv -f latin2 -t utf-8 | sed -e 's/CHARSET=latin1/CHARSET=utf-8/g' > database_dump.sql

Reblog this post [with Zemanta]
Komentarji so izklopljeni

Ne pozabit izklopit bojlerja.

Posted on Oktober 7th, 2008 in dovhcajt |

Danes smo klicali na Eles, da sporočimo stanje števca in da naredijo poračun. Doplačat bo potrebno … 200 eur. Se kar pozna, da je bil bojler vklopljen celo poletje in da je grel celo hišo, ne pa samo vode v našem bojlerju.

Komentarji so izklopljeni