Archives:
- November 2011
- Avgust 2011
- Junij 2011
- Maj 2011
- April 2011
- Januar 2011
- December 2010
- November 2010
- Avgust 2010
- Julij 2010
- Junij 2010
- Maj 2010
- Februar 2010
- Januar 2010
- December 2009
- November 2009
- September 2009
- Julij 2009
- Junij 2009
- April 2009
- Marec 2009
- Februar 2009
- November 2008
- Oktober 2008
- September 2008
- Avgust 2008
- Julij 2008
- Junij 2008
- Maj 2008
- April 2008
- Marec 2008
- Januar 2008
- December 2007
- November 2007
- Oktober 2007
- September 2007
- Avgust 2007
- Julij 2007
- Junij 2007
- Maj 2007
- April 2007
- Marec 2007
- Februar 2007
- Januar 2007
- December 2006
- November 2006
- Oktober 2006
- September 2006
- Avgust 2006
- Julij 2006
- Junij 2006
- Maj 2006
- April 2006
- Marec 2006
- Februar 2006
- Januar 2006
- December 2005
- November 2005
- Oktober 2005
- September 2005
- Avgust 2005
- Julij 2005
Meta:
Categories:
- blunt-hate
- comp
- debian
- django
- dogbert
- dovhcajt
- faks
- kiberpipa
- kitchen sink
- kultura
- linux
- ljubljana
- mediji
- opendata
- pootle
- python
- slovenija
- zanimivosti
Recent Posts:
- Prosti podatki za zabavo: 22. Liffe
- Kako pravilno uporabljati Supervizor
- Trgovanje z Burmo
- Avtoprevozniški hlapci
- Ne tolerirajte, da vam pijanci narekujejo dejanja
- Kolesarska zmaga: Bicike(LJ) in Android aplikacija
- Zakaj mora vsak operater kakršnega koli omrežja javno objaviti pregled nad stanjem omrežja
- 598
- Naj poslancem krava crkne
- Malo delo: da ali ne?
Blogroll:
Še vedno aktualno: zakaj je PHP zloben
Posted on November 28th, 2006 in dovhcajt |
Na Diggu sem zasledil eno “novico” (če se objavam na diggu lahko reče novica) o zanimivih “besednih zvezah” v programski kodi. Celo stvar je seveda omogočil Google s svojim “code search”. No, potem pa se je seveda pojavila še zanimiva analiza kletvic glede na programski jezik. Torej, kako kaže programskim jezikom?
PHP očitno povzroča največ frustracij, saj je število kletvic v PHP kodi bistveno večje kot pri ostalih jezikih. Po drugi strani pa Python ni bistveno bolj miroljuben kot npr. Java ali C#. Presenetljivo – niti C++ in sam C nista tako požrešna z živci in sploh nista dosti bolj agresivna od Pythona.
Podobno je zanimiva tudi (zraven priložena) analiza o frustraciji glede na lincence.
Sicer ene uboge statistike, izvedene po vsej odprti kodi, ki jo Google lahko najde, ne gre ravno jemati za mero… sapienti sat.
Pootle migration to Django
Posted on November 6th, 2006 in django, pootle, python |
I’m currently migrating Pootle to Django. All releases till now are based on jToolkit (no, it has nothing to do with Java, it’s just following a naming pattern), which is poorly documented and has few available developers. Therefore I started a movement … migration to try to speed up Pootle development.
I can’t really say current Pootle is not organized or anything, it’s just it’s not organized how a developer would expect. It does have code separated depending on what it does, but based rather on content than on technical details, so it’s a bit clumsy to trace some functions back and forth through files.
Anyhow, I have now running mostly functional Django Pootle, but the GET or POST actions and the i18n are currently broken. First I’ll have to migrate GET and POST, the i18n will have to wait.
Why Django?
Posted on November 4th, 2006 in django, pootle, python |
There have been numerous questions on Pootle mailing list as to why choose Django and not something else. I’ll try to post some answers here too.
Django has great error (debug) page. It is very helpful when developing applications, in fact I think web.py has copied the thing. If I was Guido, I’d probably suggest putting this right into traceback module.
Django is explicit. Most of the stuff in Django is declared explicitly. There is as little “magic” as possible and all imports are explicit. While this may be a little hard to get used to, if you come from CherryPy, it’s in fact very good. This way you know exactly where to look for a specific function, since you already had to import it. Also, with less magic Django is more open for developers.
Django is built for speed. Even if written in Python, all the functions are written with performance in mind. The values are evaluated only if they’re accessed, the queries to the database are only made if you access the contents of the query. So if your page takes time to load, it’s most likely there’s something wrong with your code.
A framework should stay out of your way. Because Django was built with speed in mind, it also means you don’t need to optimize the framework, so it stays out of your way. On the other hand, it is sometimes annoying to figure out what to import.
Sensible templates. Who cares about technical supremacy, if it’s incomprehensible? I’ve seen a bunch of people trying to figure out details of Kid templating. And the Kid errors are just as incomprehensible as the template language. Christian Lenz then reimplemented a templating engine very similar to Kid, called Genshi, but it does not appeal to me. While it may be technically supreme from both Django’s templates and Kid templating, that still isn’t the reason for me to embrace it. To me, it just seems complicating things that needn’t be complicated. The one thing I am still on the lookout for is template inheritance in Kid; does it even support top down templates?
Neat and powerful URL resolving. Django has really good, regular expression based URL resolving thingie. It’s nothing like the class tree in CherryPy 2, but is a bit similar to RoR routes (or a Python implementation used in CherryPy 3), except it again isn’t that complicated, since it does not feature conditionals on cookie, HTTP method and similar routes features.
That probably wraps some reasons, but surely I could find some more. Better get back to coding.
Sourceforge …
Posted on November 3rd, 2006 in linux, pootle |
… je grozen. Preseneča me, da odprtokodni projekti sploh pridejo kam, ko pa ima Sourceforge toliko tehničnih neprijetnosti. Zadnji dve uri se mi Subverision reži v glavo kot pečena šunka, jaz pa gledam kako mi serje napake tipa 500 (isti tip kot najbolj poceni moka, ki jo najdeš v štacuni).
Ne dela ‘commit’, dela ‘checkout’, ampak ne pravilno, kar pomeni, da praktično ne dela nič.
Klinc pa taka infrastruktura.
Mplayer
Posted on November 3rd, 2006 in debian, linux |
Mplayer je končno prišel v uradno Debianovo skladišče. V unstable je baje že od 26. oktobra, tja pa je prispel nekaj več kot 5 let za naznanitvijo ITP (intention to package), kar je svojevrsten rekord.


