Robins blogg

2004-11-19

Det bästa är när man kan skada nån….

Filed under: — site admin @ 12:11

Jag hörde ett uttalande vid bandybanan i Gustavsberg i söndags. Hoppas det inte är så jätterepresentativt….

Det bästa är när man kan skada nån under en match så dom hamnar på bänken. Det är lycka!

(Jo,. jag sade till att jag hoppades att han var ensam om sin inställning).

2004-11-13

Hata PDF

Filed under: — site admin @ 20:11

Det stora felet med PDF är att formatet inte är anpasat till läsaren. I regel är det formatterat för pappersutskrift, dvs stående papper. De flesta skärmar är liggande, dvs man utnyttjar skärmen så här bra: .

Som tur är kan jag rotera skärmen:

2004-11-12

K700-tema

Filed under: — site admin @ 03:11

Efter jag såg detta pingvintema måste jag ju publicera mitt tema,

Tux3 baserat på en pingvin jag hittade plus Bluh-temat från SonyEricsson

2004-11-09

C++ interpreter

Filed under: — site admin @ 01:11

Well, not really but for some uses it is handy. This little utility allows you to compile and execute simple C++ program by typing the essense of them on the command line. Download: cev script.

The argument --Iincludefile can be used to #include extra files.
Other arguments starting with a dash will be passed as compiler and linker options.

The arguments not starting with hyphens will be inserted into a temporary C++ program. The last argument will be wrapped in a main function.

Execute some code
cev 'double x=sqrt(3); cout < < x;'

Define a function and use it
cev 'int fak(int n) { return n==1?1:n*fak(n-1); }' 'cout < < fak(4);'

Note the use of simple apostrophes. You can use double quotes or none, but then you need to quote the C++ code in more complicated ways.

2004-11-08

CVS history file viewer

Filed under: — site admin @ 11:11

Here’s a history file browser for integration with ViewCVS. It is a patch against viewcvs per 20040223, i.e. the version included in the latest MandrakeLinux versions. It is based on a perl hack I made a long time ago on top of the cvs command. This is a rewrite in python started some time ago (hence the old baseline). It applies cleanly onto the corresponding cvs version. It is not complete though, maybe later.

MandrakeLinux RPM and SRPM. Patch here.

(updated version against head + RDF)MandrakeLinux RPM and SRPM. Patch here.

The browser works off the CVSROOT/history file and has the drawbacks that the user may force CVS not to update the file. Another drawback is that it does not scale well with since it reads the whole history file, which may be very large. Don’t use it as a security tools and don’t use it on high volume servers.

  • Features

    • Lists add/remove/modify entries
    • Direct access to difference for history entry
    • Restriction on history length, browser per date (not time yet), last week|month|year
    • Directory sensitive. Lists only history entries for the tree where the history listing was initiated
    • RDF
  • Non-features, I’ve thought about
    • Sorting by column
    • by upper andlower dates
    • Limit search by user
    • Subversion support

Powered by WordPress