ok its true i just returned from trip, but its time to plan another ... why so soon? well i dont know where i'm going (i have few destinations on my head) by i know how i want to travel.
since last year's trip my dear "dyane" is resting. now is time to prepare it for next memorable trip. this time i'll try to take it even further. last year "we" made 5900km, this year i'll try to reach 10000km or more.
i started engine yesterday and after some few tweeks it was running perfect. except the the noisy engine. i guess that the sound of that "little" hole in exhaust system, but i already bought the replacement part. next thing to fix is clutch, which was damaged on last trip. then also replacement of bottom metal, because some serious holes apeared.
and to be a little more fun, all this i need to do this week since my registration expires on monday. plus all the work i have ... well its all aboout having fun right :P
yeeeey let the week begin ...
Monday, May 18, 2009
Sunday, May 17, 2009
back
long time since i wrote on my blog. well when you are living life of a nomad this is how it is :P after long time i'm again sitting in one of those ljubljanas bars where you feel like in your living room. ini my hand its my favorite newspaper/magazine (or call it whatever) "kralji ulice" (kings of the street). i came accross this poem which ... well ... mmm ... is just nice and fits my day today.
- nedeljsko jutro - by bosco
ko v jutranji zarji uzrl bi njene oči,
ko dan bi prinesel tebe,
ko sen bi bil izpolnjen,
ko ihta ljubezni, telesa in polti
bi izpolnjena bila.
umrl bi zate, ljubezen,
ves neučakan pogresam tvoje oči,
ogledalo moje duše.
thx bosco ... google translation in english
well its time to move on with the day - coddie arrived - its freaking great sunny day again. another day to win ahead of me...
- nedeljsko jutro - by bosco
ko v jutranji zarji uzrl bi njene oči,
ko dan bi prinesel tebe,
ko sen bi bil izpolnjen,
ko ihta ljubezni, telesa in polti
bi izpolnjena bila.
umrl bi zate, ljubezen,
ves neučakan pogresam tvoje oči,
ogledalo moje duše.
thx bosco ... google translation in english
well its time to move on with the day - coddie arrived - its freaking great sunny day again. another day to win ahead of me...
Monday, March 9, 2009
in relationship of 2 persons that think similar, one is too much, so i left
yeeeey running again. knees are that better that i can walk and run :P i just found that golovec is so much better to run then roznik that i must promote it here.
and whats new. well last weekend i did some "horrible" things. i opened tweeter, facebook account. i started writing sms's again, i rent a book to read it, ... well you might find this things normal, but are not for me. this all goes in the basket of procrastrination (however it needs to be spelled). why i did this you would ask? i lost all my goals and wishes. nothing interests me. so i start doing things i hate. to appreciate how i lived before and old goals or to found some new ondes. so from now on procrastrination is on my daily agenda.
today i have 2 saying for you all, which i found them on old friend info page:
- Jej in pij in kavsaj, za večnost se ne ravsaj! (eat, drink and fuck, for eternity dont bother) Dr. F. Prešeren
- Če v timu dveh oseb oba mislita enako, je eden odveč. (in relationship of 2 persons that think similar, one is too much) Janez Škrabec
i can relate to both of them. so now i officialy screem "i wanna liveeeeee" :) hehe
p.s. soup the other day was not good because of tomatoes. well lets see how neighbour would say when i do it next time. well next day i realise i still have "a touch", since i (and me sis) coocked mussels, in 3 souses, cant tell how good it was since it was toooo fabulous.
and whats new. well last weekend i did some "horrible" things. i opened tweeter, facebook account. i started writing sms's again, i rent a book to read it, ... well you might find this things normal, but are not for me. this all goes in the basket of procrastrination (however it needs to be spelled). why i did this you would ask? i lost all my goals and wishes. nothing interests me. so i start doing things i hate. to appreciate how i lived before and old goals or to found some new ondes. so from now on procrastrination is on my daily agenda.
today i have 2 saying for you all, which i found them on old friend info page:
- Jej in pij in kavsaj, za večnost se ne ravsaj! (eat, drink and fuck, for eternity dont bother) Dr. F. Prešeren
- Če v timu dveh oseb oba mislita enako, je eden odveč. (in relationship of 2 persons that think similar, one is too much) Janez Škrabec
i can relate to both of them. so now i officialy screem "i wanna liveeeeee" :) hehe
p.s. soup the other day was not good because of tomatoes. well lets see how neighbour would say when i do it next time. well next day i realise i still have "a touch", since i (and me sis) coocked mussels, in 3 souses, cant tell how good it was since it was toooo fabulous.
Saturday, March 7, 2009
how to use git with collective (svn)
probably you are wondering why the hack would i use git when dealing with collective (svn). there are lot of reasons. i'll try to explain my working procces and feel free to comment it and even suggest better/different way.
for start you need git. its important that is version 1.6.1 (or above) since new cool options just found place in this release.
1. pulling project out of collective
git svn clone https://svn.plone.org/svn/collective/Products.TinyMCE --trunk=trunk --tags=tags --branches=branches --revision=75010:HEAD
options (see "git svn clone --help" for more):
--trunk: used to define where trunk folder lives
--tags: used to define where tags folder lives
--branches: used to define where branches folder lives
--revision: range of history with revisions that you want to pull
75010 is revision when Products.TinyMCE was first introduced in collective. and because collective is pretty large repository and we dont want to overload it, i really advice you to specifiy --revision. this will also make cloning go faster.
after you are done git created Products.TinyMCE folder with trunk content inside it.
2. commiting to collective and updating from it
now that we have our working git clone we start working and soon and as we work we can commit changes, but this changes wont show up in the collective repo just yet. you could say you have local repo. so commiting works the same way we would normaly do with
cd Products.TinyMCE
echo "# useless code" >> setup.py # we do some changes
git commit # commit localy
... # we work some more
git svn dcommit # finaly we push to collective
... # now new changes are avail. in collective for us to pick them
git svn rebase # works like svn update
3. taging for release
normaly before release you also tag certain revision to some tag.
git svn dcommit # make sure all is commited to collective
git svn tag # tag it
4. stashing ... (your boss will like it)
its a calm monday morning and you just started to work on new feature on project you are working. last weekend deployment was a success. next minute your boss brakes the door because there is some very important bug you need to fix (normaly is not that important, since nobody dies because of my code, but anyway some takes life more serious then me). you have some not commited code laying around and you would quickly need to return to commited version. with git its easy...
git stash # now your uncommited changes are stashed
... # work on that important bug and make your boss happy, commit it, deploy, etc...
git stash apply # and you are back to calm monday morning
5. working with branches
all your branches and tags are pulled into git. lets look them:
git branch -r # list all remote branches
1.1
1.2
stripped
tags/1.0
tags/1.0rc1
tags/1.0rc2
trunk
git branch # list all local branches
* master
convinced?
there is one drawback when using git with svn. this is external repositories, but more about this next time.
for start you need git. its important that is version 1.6.1 (or above) since new cool options just found place in this release.
1. pulling project out of collective
git svn clone https://svn.plone.org/svn/collective/Products.TinyMCE --trunk=trunk --tags=tags --branches=branches --revision=75010:HEAD
options (see "git svn clone --help" for more):
--trunk: used to define where trunk folder lives
--tags: used to define where tags folder lives
--branches: used to define where branches folder lives
--revision: range of history with revisions that you want to pull
75010 is revision when Products.TinyMCE was first introduced in collective. and because collective is pretty large repository and we dont want to overload it, i really advice you to specifiy --revision. this will also make cloning go faster.
after you are done git created Products.TinyMCE folder with trunk content inside it.
2. commiting to collective and updating from it
now that we have our working git clone we start working and soon and as we work we can commit changes, but this changes wont show up in the collective repo just yet. you could say you have local repo. so commiting works the same way we would normaly do with
cd Products.TinyMCE
echo "# useless code" >> setup.py # we do some changes
git commit # commit localy
... # we work some more
git svn dcommit # finaly we push to collective
... # now new changes are avail. in collective for us to pick them
git svn rebase # works like svn update
3. taging for release
normaly before release you also tag certain revision to some tag.
git svn dcommit # make sure all is commited to collective
git svn tag
4. stashing ... (your boss will like it)
its a calm monday morning and you just started to work on new feature on project you are working. last weekend deployment was a success. next minute your boss brakes the door because there is some very important bug you need to fix (normaly is not that important, since nobody dies because of my code, but anyway some takes life more serious then me). you have some not commited code laying around and you would quickly need to return to commited version. with git its easy...
git stash # now your uncommited changes are stashed
... # work on that important bug and make your boss happy, commit it, deploy, etc...
git stash apply # and you are back to calm monday morning
5. working with branches
all your branches and tags are pulled into git. lets look them:
git branch -r # list all remote branches
1.1
1.2
stripped
tags/1.0
tags/1.0rc1
tags/1.0rc2
trunk
git branch # list all local branches
* master
git checkout -b fix-strange-1.2-bug 1.2 # we create local branch for fixing strange bug that apeared in 1.2 branch
git branch # * is marking current active branch
*
fix-strange-1.2-bug
master
git checkout master # we switch back to master branch
git svn fetch
# fetches the updates with out modifying the local working files (which git svn rebase
would)convinced?
there is one drawback when using git with svn. this is external repositories, but more about this next time.
Friday, March 6, 2009
dreamsoup
tried to cook today. sky gave me some sun so i started with little smile. i cooked for few h then i realized i'm not even hungry. actually soup was supposed to be the best of soups i can make (tomato soup with "custom made" ravioly filled with cheese&ham), but for some reason something was missing. dont know what, just feeling was not right. it tasted ok, look was also as it supost to be, but sometimes you can smell the magic when "best" soup is served. neighbour liked the soup so i packed and gave it to her.
feels like i fail at anything i put my hands on this week or better last few weeks. somehow this lack of energy i have turns everything to worse. i miss days when i was jumping just because of some stupid little thing. normaly sun gets me in good mood, and even brings up the efficiency at work, but dont know whats with the sun today. actually is not sun, its me, and i know the reason, i just dont want to tell out loud. it would freak ppl. it freaks even me, when i'm laying on sofa and waiting time to pass by.
i want old dreams back. well dont care about old dreams, i just need something to dream about so i can then follow it. being dreamless sucks. anyway i have moments when i put smile on, but they end when the dance is over. so its there (in me) the joy for life i'm looking for. just need to bring it out more often, how? who knows...
todays quote: "I like traveling more then reaching final destination" (Ljubljana's King O'Tone 1st)
feels like i fail at anything i put my hands on this week or better last few weeks. somehow this lack of energy i have turns everything to worse. i miss days when i was jumping just because of some stupid little thing. normaly sun gets me in good mood, and even brings up the efficiency at work, but dont know whats with the sun today. actually is not sun, its me, and i know the reason, i just dont want to tell out loud. it would freak ppl. it freaks even me, when i'm laying on sofa and waiting time to pass by.
i want old dreams back. well dont care about old dreams, i just need something to dream about so i can then follow it. being dreamless sucks. anyway i have moments when i put smile on, but they end when the dance is over. so its there (in me) the joy for life i'm looking for. just need to bring it out more often, how? who knows...
todays quote: "I like traveling more then reaching final destination" (Ljubljana's King O'Tone 1st)
Wednesday, March 4, 2009
want it to rain
ljubljana today is ... well sad. it looks whole day that its going to drop huge storm on us but nothing, almost nothing happens. just few drops of rain. you could feel the sky trying to tell you something. well probably screem at you. its like walking with eyes coverd with tears but somehow you are not able to cry, only drop now and then drops down, but with your eyes you are screeming to everybody.
again i did my - now almost by habit - walk thru ljubljana center. i even left my self phone at home. nothing to distrub me. visit few cafes, read news papers, help with few cents some homeless friends and headed home.
strange is that when doing this, i'm not feeling anything. its a habit that i'm used to do. its like being paralized. probably with time i'll get "feeling for life" back, i must or else i'm robbed of things you leave for, "feelings". but story to write another time. some homeless old man responded me today: "thanks for money and kind words, i'll take the money, but you keep the kind words, i see you need them more then i do".
and in all this mess how to have be happy? how to have it all? this was keeping me busy all my walk today. and funny answer is very simple - as are all things in life. maybe to but it in some smart words "those who want to be happy, are already the happiest persons" and yes its that simple. i didnt say easy, just simple. lets call the sun over ljubljana for tomorrow.
again i did my - now almost by habit - walk thru ljubljana center. i even left my self phone at home. nothing to distrub me. visit few cafes, read news papers, help with few cents some homeless friends and headed home.
strange is that when doing this, i'm not feeling anything. its a habit that i'm used to do. its like being paralized. probably with time i'll get "feeling for life" back, i must or else i'm robbed of things you leave for, "feelings". but story to write another time. some homeless old man responded me today: "thanks for money and kind words, i'll take the money, but you keep the kind words, i see you need them more then i do".
and in all this mess how to have be happy? how to have it all? this was keeping me busy all my walk today. and funny answer is very simple - as are all things in life. maybe to but it in some smart words "those who want to be happy, are already the happiest persons" and yes its that simple. i didnt say easy, just simple. lets call the sun over ljubljana for tomorrow.
Monday, March 2, 2009
feel like homeless
in beggining i opened this blog to be "blog for *all* my non-sense", although i wrote only about tech stuff. i guess my life was that good (so good lie) that i didnt feel urge to write about other stuff.
after last week of more or less beeing home, beacuse of my bad knees, this week started good. i finnaly managed to get down the stairs almost without the pain (well at least i didnt have to use my hands). today it was sunny in ljubljana so perfect day to work around the center. i went from bar to bar meeting friends, working a bit (where there was internet in bars) and this was it. nothing special. after long time i bought my favorite magazine "Kralji ulice" ("Kings of the street"). you can only buy it on the streets of ljubljana. in addition of this blog i'll translate some of articles and add my thinking along the lines.
since i recently made some serious changes in my life, i'm at "ground 0" - starting point. i almost need to start my life again and rebuild it from scratch. but hey nobody said life will always go up, there are downs too. i never regret nothing in my life, but last year i regret how i lived my life. slowly moving away from myself and becoming someone just to be accaptable for someone. its funny how ppl are always on the side of victim. but for something to happen you need 2 sides, everybody in relationship are partialy responsible. so at the same time as i feel as a victim i'm also the bad guy i guess. just ratio is different.
if you like the day, then you must also accept the night. we dont have to like it, we just need to accept it, its part of the day. but normaly when we accept something we also like it (we are probably not even aware of this). thats where we normaly have problem. if we are ready to throw away all our judgements (for that we dont have to change our values) we would be able accept. accaptance is condition for more quality inner and outer live in place and time we are live in. life is just tos misterious, that we would always had to be the smart guy.
i'm not sure i'm ready to accept, but i try...
after last week of more or less beeing home, beacuse of my bad knees, this week started good. i finnaly managed to get down the stairs almost without the pain (well at least i didnt have to use my hands). today it was sunny in ljubljana so perfect day to work around the center. i went from bar to bar meeting friends, working a bit (where there was internet in bars) and this was it. nothing special. after long time i bought my favorite magazine "Kralji ulice" ("Kings of the street"). you can only buy it on the streets of ljubljana. in addition of this blog i'll translate some of articles and add my thinking along the lines.
since i recently made some serious changes in my life, i'm at "ground 0" - starting point. i almost need to start my life again and rebuild it from scratch. but hey nobody said life will always go up, there are downs too. i never regret nothing in my life, but last year i regret how i lived my life. slowly moving away from myself and becoming someone just to be accaptable for someone. its funny how ppl are always on the side of victim. but for something to happen you need 2 sides, everybody in relationship are partialy responsible. so at the same time as i feel as a victim i'm also the bad guy i guess. just ratio is different.
if you like the day, then you must also accept the night. we dont have to like it, we just need to accept it, its part of the day. but normaly when we accept something we also like it (we are probably not even aware of this). thats where we normaly have problem. if we are ready to throw away all our judgements (for that we dont have to change our values) we would be able accept. accaptance is condition for more quality inner and outer live in place and time we are live in. life is just tos misterious, that we would always had to be the smart guy.
i'm not sure i'm ready to accept, but i try...
Saturday, February 28, 2009
need help: importing wikipedia
few months ago i wrote blueprint for importing wikipedia articles into plone. (reason was this post)
since then i didnt have enough resources (my leptop is not that fast) to import bigger set of articles into plone. i reached 25 000 articles then job was pushing and i need cpu for work. i would really like to see how far plone could go. is it possible to import whole wikipedia into plone? would be nice for promotion of plone... "look you can have wikipedia is that big enough for you sir" :P
well if you have some testing server that has spare cpu power and you are also wondering how far plone could go drop me an email and lets try too push it to the limits.
since then i didnt have enough resources (my leptop is not that fast) to import bigger set of articles into plone. i reached 25 000 articles then job was pushing and i need cpu for work. i would really like to see how far plone could go. is it possible to import whole wikipedia into plone? would be nice for promotion of plone... "look you can have wikipedia is that big enough for you sir" :P
well if you have some testing server that has spare cpu power and you are also wondering how far plone could go drop me an email and lets try too push it to the limits.
Tuesday, February 24, 2009
website mockups, giving instructions with images
with websites getting richer and richer in style every day is hard for a developer (themer) to just know what his boss is thinking about. especialy if you are me i guess, i tend to think in a weird ways :P. it would be fantastic if i'll get concrete sketches or screenshots, since one image can replace 1000 (or more) words. but ofcourse making this king of images/sketches/screenoshots is painful since there is no tool that will copy your ideas to paper.
well maybe there is. Pencil (http://www.evolus.vn/Pencil/). small (400k), comes standalone (GTK+) or as firefox plugin. that means if you are running system that you have problems installing freaky software like flash, air, etc... , like i have (ppc/linux) then tool that *just works* with your browser is +100.
how it works?
* Tools -> Pencil sketcking
* you drag 'n drop screenshot of site you are working with
* right click on default page, and select properties, give our current page a name and select size
* and thats how i start sketching ...
Pencil have concept of multiple pages inside one document. which fit nicely since you normaly need to show how to change website (eg. default plone) in steps. and when you create new page you can select one of previouspages as background, which boosts sketching up. now i really feel that telling story with images is fun.
the only thing missing in this tool is to have a button that will screenshot one of my websites in firefox, but i use differenet tool for that (actually is batch script, one of first scripts i wrote in linux)
since Pencil is really too-easy-to-use tool, let it be enough and i'll leave you to try it. if you are using some cool tool that would make sketching even easier, please i'm all ears.
well maybe there is. Pencil (http://www.evolus.vn/Pencil/). small (400k), comes standalone (GTK+) or as firefox plugin. that means if you are running system that you have problems installing freaky software like flash, air, etc... , like i have (ppc/linux) then tool that *just works* with your browser is +100.
how it works?
* Tools -> Pencil sketcking
* you drag 'n drop screenshot of site you are working with
* right click on default page, and select properties, give our current page a name and select size
* and thats how i start sketching ...
Pencil have concept of multiple pages inside one document. which fit nicely since you normaly need to show how to change website (eg. default plone) in steps. and when you create new page you can select one of previouspages as background, which boosts sketching up. now i really feel that telling story with images is fun.
the only thing missing in this tool is to have a button that will screenshot one of my websites in firefox, but i use differenet tool for that (actually is batch script, one of first scripts i wrote in linux)
since Pencil is really too-easy-to-use tool, let it be enough and i'll leave you to try it. if you are using some cool tool that would make sketching even easier, please i'm all ears.
Monday, February 16, 2009
jqueryui datepicker as z3cform widget for plone
last time i released collective.z3cform.datepicker i also stripped js code out of jqueryui. this time i packed jqeuryui code and made it availiable to plone as separate package (collective.jqueryui).
you can find source code on github: http://github.com/garbas/collective.z3cform.datepicker
miohtama generously helped me with developing and actually pushed me to work on it. current state of code is rc, so expect some minor problems, but soon also stable release will be made.
not all options from datepicker are used and there is a lot of room for improvement. for now there are only 2 kinds of widgets: date and datetime widget. simple example would look like:
from collective.z3cform.datepicker.widget import DatePickerFieldWidget
from collective.z3cform.datepicker.widget import DateTimePickerFieldWidget
class ExampleForm(Form):
""" form """
fields = field.Fields(IExampleSchema)
fields['datetime_field'].widgetFactory[interfaces.INPUT_MODE] = \
DateTimePickerFieldWidget
fields['date_field'].widgetFactory[interfaces.INPUT_MODE] = \
DatePickerFieldWidget
code was also pushed to plone.org/products (using collective.dist.. tnx tarek for this usefull tool). but i found plone.org/products a little annoying since i need to wait for confirmation before my package is seen to public. is this the purpose how plone.org/product works or i screw something up.
you can find source code on github: http://github.com/garbas/collective.z3cform.datepicker
miohtama generously helped me with developing and actually pushed me to work on it. current state of code is rc, so expect some minor problems, but soon also stable release will be made.
not all options from datepicker are used and there is a lot of room for improvement. for now there are only 2 kinds of widgets: date and datetime widget. simple example would look like:
from collective.z3cform.datepicker.widget import DatePickerFieldWidget
from collective.z3cform.datepicker.widget import DateTimePickerFieldWidget
class ExampleForm(Form):
""" form """
fields = field.Fields(IExampleSchema)
fields['datetime_field'].widgetFactory[interfaces.INPUT_MODE] = \
DateTimePickerFieldWidget
fields['date_field'].widgetFactory[interfaces.INPUT_MODE] = \
DatePickerFieldWidget
code was also pushed to plone.org/products (using collective.dist.. tnx tarek for this usefull tool). but i found plone.org/products a little annoying since i need to wait for confirmation before my package is seen to public. is this the purpose how plone.org/product works or i screw something up.
Saturday, February 14, 2009
sarajevo story ends
i'm back, back to ljubljana ...
i neglected my blog fot the last 2 months, but meanwhile lots of things happen, some good some not that good. well staying in sarajevo was an experience i will remember, anyone that has never been to sarajevo i wormly suggest to visit it. despite recent war, everyday life stuff are back to normal, and reputation that sarajevo had in ex yugoslavia is restored (quote: "sarajevo is just like a little kid that will give you that child-like most honest look. if you hold him it will never let you go.").
in ljubljana finnaly things are shinny again, found a flat in the center (waiting for internet and then i move in), and also we have sun here at last. freelance waters are calm and stable, tnx for all my job providers for bearing with me last "crazy" month. so things are getting to normal again.
now its time to do new plans and throw old ones in the basket. for start i need to get back to my dear dyana (car) and restore it completely. then take it on unfogetable trip. destination is unknown and will probably depend on the job i get over the summer.
i did many releases on the pypi and didnt even bother to blog about it. in next week i'll "sync" it with plone.org and blog about them, looking fw to your comments.
and last for this after-long-time blogpost, if you are a company located at south of spain (or any other part will also be ok) and looking for some help with zope/plone related project give me a mail, since i plan to be there during summer and what could be more fun then to spend it with some great plonistas doing some cool stuff.
... today its salsa time, see you at gospodarsko rastavisce in ljubljana. i wonder if i still rember some moves :P
i neglected my blog fot the last 2 months, but meanwhile lots of things happen, some good some not that good. well staying in sarajevo was an experience i will remember, anyone that has never been to sarajevo i wormly suggest to visit it. despite recent war, everyday life stuff are back to normal, and reputation that sarajevo had in ex yugoslavia is restored (quote: "sarajevo is just like a little kid that will give you that child-like most honest look. if you hold him it will never let you go.").
in ljubljana finnaly things are shinny again, found a flat in the center (waiting for internet and then i move in), and also we have sun here at last. freelance waters are calm and stable, tnx for all my job providers for bearing with me last "crazy" month. so things are getting to normal again.
now its time to do new plans and throw old ones in the basket. for start i need to get back to my dear dyana (car) and restore it completely. then take it on unfogetable trip. destination is unknown and will probably depend on the job i get over the summer.
i did many releases on the pypi and didnt even bother to blog about it. in next week i'll "sync" it with plone.org and blog about them, looking fw to your comments.
and last for this after-long-time blogpost, if you are a company located at south of spain (or any other part will also be ok) and looking for some help with zope/plone related project give me a mail, since i plan to be there during summer and what could be more fun then to spend it with some great plonistas doing some cool stuff.
... today its salsa time, see you at gospodarsko rastavisce in ljubljana. i wonder if i still rember some moves :P
Subscribe to:
Posts (Atom)
About Me
- Rok Garbas
- Ljubljana, Slovenia
- - Zope/Plone freelancer - proud driver of Dyana (Citroen)