Michal Hrušecký

...about me, Linux and OpenSource

PDA

  • Car consumption script

    About a week ago I was at LinuxTag spreading a word about openSUSE. It was great event and I really liked it. And I was on of the four lucky guys that won Googles Nexus One. Hurray! And now what I want to write today about... I was migrating all my stuff from my Palm Centro to Nexus One. And one of the things I was using my Centro for was tracking how much petrol does my car consume. I was writing in plain text file and I was thinking about writing some script around that... But never had the time to actually do that. But now with Nexus One, my log is synchronized with Google Docs. So I don't have to take care of the synchronization part. So I sat down and wrote a simple script to compute my cars consumption and I want to share it with you. Originaly I wanted to use googlecl, which is available in openSUSE Contrib, but it had some problems with Google Apps, so I decided to use curl instead.

    First of all how do I structure my log. I've got currently two types of things I'm tracking - petrol and maintenance. As we are talking about consumption, we are interested only in petrol ones face-wink.png These lines looks like this:

    PET:97644:20100430:12.53l:394.4Kč

    As you see, it's in semicolon separated values format face-smile-big.png First field means that it's petrol entry. Second one is kilometer counter. Third one is the date %Y%m%d and the fourth one is the number of liters. Fourth one is the price, but it's not really important. My document is named "Auto" but if you want to use the same script, you can name it however you want and just change the $TITLE variable in the script. You'll need to change email and password anyway face-wink.png And you might be also interested in changing $RECENT variable, which states how many entries are used in computation.

    Script

  • YaST on mobile phone

    Linux can run almost everywhere. For some time I was participating in Hacking & Development project, but lately I didn't have enough time to keep up. But today I went to the SleepWalker's office to take a look at his new Zaurus (NetWalker) and he gave me kernel that can run on my Centro. I tried it and I was thinking what rootfs should I try... I have in my longterm todo to try openSUSE ARM port which is a result of Google Summer of Code project. So why not? I tried it and here are the results - YaST running on mobile phone.

    YaST main screen on Palm Centro

    Litle glitch

    I didn't have a time to solve all minor glitches as you can see on second picture, but when I'll have some time, I'll give it a try face-wink.png

openSUSE Conference 2010

Identica

  • Announcing start of !openSUSE pastebin: http://bit.ly/avru2V Do you want pastebin with !openSUSE Bento theme? Try http://susepaste.org
    8 hours ago :: link
  • ♻ @C3rvajz: !openSUSE Live! is back! Now accessible through native IPv6 protocol :) openSUSE 11.3 is ready here http://live.opensuse.org/
    13 hours ago :: link
  • @lentulius You can use zypper, which is even better (one easy tool instead of several complicated ones ;-) )
    3 days ago :: link
  • I hate computers. They pretend to be obedient, predictible and logical, but they know how to play a prank!
    4 days ago :: link
  • Michal is scared of all these e-mails he has to read and write now :-(
    11 days ago :: link

Ohloh Journal for Michal Hrušecký

  • Article about Affisix was acceptet for ITAT 2010! Time to fix everything that reviewers complained about!
    36 days ago :: link
  • Abstract for ITAT2020 about Affisix sent, working on the article now...
    66 days ago :: link
  • Just commited basit filter mode support to the Affisix repository. It is still missing a lot of features, but the basics are already there!
    92 days ago :: link
  • One more note about affisix - backward entropy works now as well. So after school exams, I can start implementing new features and fixing broken ones...
    159 days ago :: link
  • Yesterday I finally convinced affisix to do something after the change of internals. Forward entropy works, everything else is broken, but it's just a beginning ;-) Hopefully new features will emerge soon.
    161 days ago :: link

Emblems

Powered By Jaws Project
Supports RSS2
Supports Atom
Powered By openSUSE
Powered By Vim
Is Valid XHTML
Is Valid CSS
Is Valid RSS2