Monday, December 29, 2008

simple svnserve script

I wanted to shutdown or stop svnserve properly: Easy if you start it correctly... The following lines are a very basic scripts to have in /etc/init.d/svnserve
#!/bin/sh
case "$1" in
    start)
      svnserve -d -r /srv/svn/repos --pid-file /srv/svn/svnserve.pid
      ;;
    stop)
      kill -9 `cat /srv/svn/svnserve.pid`
      ;;
    restart)
      $0 start
      $0 stop
      ;;
    *)
      echo "Usage: /etc/init.d/svnserve {start|stop|restart}"
      exit 1
      ;;
esac
exit 0
As i said, this is vey basic, checking for the "/srv/svn/svnserve.pid" file could be added and deleting it would be also fine. Anyhow, this seems enought for now.

Wednesday, December 17, 2008

roundup issue tracker

Roundup is a said to be a simple issue tracker. Some documentation exist about integrating subversion and roundup that being my target. However i had some self imposed limitations:
  • Use debian packages
  • No smtp server, and i dont want to have any running
After some hours of work, i came out with this step by step solution.

Install roundup:

prompt# apt-get install roundup

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
...
Selecting previously deselected package roundup.
(Reading database ... 19361 files and directories currently installed.)
Unpacking roundup (from .../roundup_1.4.4-2_all.deb) ...
Processing triggers for man-db ...
Setting up roundup (1.4.4-2) ...
Starting Roundup HTTP-Server: roundup-server.

OK, so that!. Now i have a roundup-server running. But no Tracker. You see, the Tracker is where the info will be stored, the issue repository, the database. So i need to create a tracker. My setup only requires one tracker, and i want to have it under /var/rounup/trackername. This is what i did.

root@server:/var/roundup# roundup-admin install
Enter tracker home: /var/roundup/trackername
Templates: minimal, classic
Select template [classic]: classic
Back ends: anydbm, sqlite
Select backend [anydbm]: sqlite

---------------------------------------------------------------------------
 You should now edit the tracker configuration file:
   /var/roundup/trackername/config.ini
 ... at a minimum, you must set following options:
   [mail]: domain, host
   [tracker]: web

 If you wish to modify the database schema,
 you should also edit the schema file:
   /var/roundup/trackername/schema.py
 You may also change the database initialisation file:
   /var/roundup/trackername/initial_data.py
 ... see the documentation on customizing for more information.

 You MUST run the "roundup-admin initialise" command once you've performed
 the above steps.
---------------------------------------------------------------------------
There it is. My first Tracker. Still some edit has to be done. The most important value to set, since i do not have/want SMTP around is in the [mail]::debug...
[mail]
# Setting this option makes Roundup to write all outgoing email
# messages to this file *instead* of sending them.
# This option has the same effect as environment variable SENDMAILDEBUG.
# Environment variable takes precedence.
# The path may be either absolute or relative
# to the directory containig this config file.
# Default:
debug = reponame.mail.log
With this configuration, all the mails sent to the admin (with setup errors / warnings, etc) will end it that file.
root@server:/var/roundup# roundup-admin initialise
Enter tracker home: /var/roundup/trackername
Admin Password:*****
       Confirm:*****
Next step is to make the Tracker available throught the roundup server. We have to add these lines on /etc/roundup/roundup-server.ini
[trackers]
trackername = /var/roundup/trackername
and restart the roundup server
/etc/init.d/roundup restart
watch /var/log/roundup/roundup.log and /var/log/roundup/reponame.mails.log for errors. finally one of the problems i left was permision related...
    chmod roundup.roundup -R /var/roundup/trackname

Monday, November 17, 2008

AptPinning - Debian Wiki

Some times you need some packages from a more diferent Debian flavor. Ok. maybe you don't, but right now i do, and pinning seems to be the answer.

I'll give it a try (want to test subversion 1.5 for a while), and then i will update this entry.

UPDATE: I did not have to guts to do it. Replacing libc right now does not seem like a good option just now.

Tuesday, September 09, 2008

Girl Talk - Feed the animals.

Girl Talk released his 2008 album feed the animals available for download. You get to choose the price that best suits you. 0.00$ grants you access to the full release on MP3. Not bad at all. And the music is also released under a Creative Commons Licence.

I don't know GT music at all, still, but i did read that this release is enterely made from samples. Not easy for sure.

Downloading now.

Friday, September 05, 2008

chrome is not one process per tab

As you can read on several places all over the internet, chrome is the new internet browser from google. I would be silly not to take a look into this new beauty, so i did. I did liked it, and sure i will use it now and then for different sites, however it is not going to be my default browser, even with his cool look and feel.(basically I agree with this post by anima9 )

Anyhow I wanted to correct some misunderstanding related to chrome tab isolation: Word is out that one of its key features is that it uses a separate process per tab, but chrome it self can show you this is not true. Chrome ships with a nice Task Manager, and it can show you this, however, more interesting is the about:memory page (you will have to type this since it takes you to "about:blank"). There you can see how some related tabs may "live" under the same PID.

This is what surprised me: It joins four tabs under PID 7696.

How are these tabs related?, well, my guess is those have been open via "open in new tab", but that is just my guess, and i'm not going to dive into the source code to find out.

Saturday, August 16, 2008

software i need ( windows)

i've changed my computer these days, and since then i've had some time installing software. This is a short list of the software i use most.
  • firefox
  • AVG Antivirus (until clamwin has on-access scanner)
  • 7-zip
  • foobar2000
  • vlc
also...
  • tortoiseSvn
  • vmplayer
  • cygwin
and i must admit i also install these...
  • emule
  • uTorrent

Thursday, April 03, 2008

I got to walk the EXPO even while under construction, and spoted some nice buildings and this concrete shape.

Sunday, March 23, 2008

refactoring

Two years ago i got involved in a big( read not huge ) project written by a small team over more than 6 years of development. The idea was to do some refactoring on the code and get it back into production in a few months. Still, it was a project living on "trunk", always on the edge, no oficial release, no full-tested new features

It was a challenging experience and got us into some trouble and many rewards. Old ghosts grew back from old code, and new ghost were breed on the new code; but it was a great experience with a nice team working on it

I did learn a lot, and i mean a lot. How ever there is always room for improvement like this aproach of refactoring and some other documents i've been reading since then. like this checklist [pdf]

Thursday, March 20, 2008

svn offline

basically i used svn-git as detailed here but then i run into this error:
Can't locate SVN/Core.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8 
  /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin 
  /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 .) 
at /usr/bin/git-svn line 29.
Oh well. Of course i was missing subversion-perl bindings.

Saturday, March 15, 2008

NIN ghost

It has been NIN this time. Thank you.

I must confess, i'm not NIN fan, neither i know it's work, however, i appreciate the move, even more, after listening, i can tell you: i'm buying

2008-03-17 Update: listening to 4 Ghost I i was suddenly transported to some King Crimson'ish sounds circa 1995-1996: B'Boom and (even better) THRaKaTTaK. How come?. Oh yeah that sounds like Adrian Belew playing.

Friday, March 14, 2008

allow anyone to use ttyS0

reminder: chmod a+rw /dev/ttyS0

Monday, March 03, 2008

Buffalo '66

Just so delicious! how could i ever missed bufallo 66. I've been quite lucky to catch this on tv tonight



why was i captivated by the film in the first place, i can't tell, however when i did hear the first two notes from King Crimson's moonchild... well; that was it.

i love the music, and the scene

Friday, January 25, 2008

001Collective

Oh, yes... I'm loving some of the stuff you can find at the 001collective.com site One of my fabs is the secret owl society, but it does not have to be your's. Listen an choose.

Thursday, January 24, 2008

Taryn Simon: Hidden USA

I just saw this on wired. Felt weird to see some of the pictures, and read about them. The story on the picture and the story behind can be both of them quite interesting, sometimes.