castanyes blaves

Random ramblings about some random stuff, and things; but more stuff than things -- all in a mesmerizing and kaleidoscopic soapbox-like flow of words.

2/27/2005

 
Shell scripts

#!/bin/sh

for FILE in `ls *gif`

do

BASENAME=`echo ${FILE%.gif}`

echo convert $BASENAME.gif $BASENAME.jpg

done


2/26/2005

 
another very interesting site with information

http://www.cpqlinux.com/acpi-howto.html


 
custom dsdt kernel option

Use "make menuconfig" or "make xconfig" to set the following options as marked below:

Device Drivers -->

Generic Driver Options -->

[ ] Select only drivers that don't need compile-time external firmware

[ ] Prevent firmware from being built

Power management options (ACPI, APM) --->

ACPI (Advanced Configuration and Power Interface) Support --->

[*] Include Custom DSDT

(/path/to/your/DSDT) Custom DSDT Table file to include

Note that the Custom DSDT option only shows up if you deselect the Generic Driver options shown.

https://www.redhat.com/archives/fedora-list/2004-December/msg01592.html


 
More battling with sleep-on-ram

I have done some more investigation on the sleep-on-ram issue with my laptop:

http://linuxfr.org/tips/263.html

I downloaded acpica-unix-20050211.tar.gz from:

http://www.intel.com/technology/iapc/acpi/downloads.htm

compiled with:

cd compiler

make

Then:

# cat /proc/acpi/dsdt > dsdt

# ./iasl -d dsdt

obtained a dsdl.dsl

That I could recompile without any errors:

[suspend_to_ram]# ./acpica-unix-20050211/compiler/iasl -tc dsdt.dsl

Intel ACPI Component Architecture

ASL Optimizing Compiler / AML Disassembler version 20050211 [Feb 26 2005]

Copyright (C) 2000 - 2005 Intel Corporation

Supports ACPI Specification Revision 3.0

ASL Input: dsdt.dsl - 2834 lines, 93103 bytes, 1282 keywords

AML Output: DSDT.aml - 11877 bytes 381 named objects 901 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 370 Optimizations

An interesting web site:

http://gaugusch.at/kernel.shtml


2/22/2005

 
voice12 level 4

...


 
New toy

That said :-p, I bought an iRiver iFP-790, which is giving a good use of its FM-radio, voice recording and last and least, OGG/MP3 player.

There is an option in the voice recording to "auto detection", that freezes the recording if no sounds are hearded (quite cool) and also an option to auto-gain depending of the volume of the sounds.

voice009 recorded with auto detection level 1

voice010 recorded with auto detection level 2

voice011 recorded with auto detection level 3


2/19/2005

 
Linux Server Security 2nd ed

After browsing Linux Server Security 2nd ed, I fell in love with the 13th chapter: Simple intrusion detection techniques, that talks about Tripwire, Fcheck and Snort.

An interesting note about Tripwire is that it is good precaution to leave a fake intrusion somewhere in your system so that if any bad soul entering the system wants to cheat on the tripwire's report, this fake intrusion will make it very difficult to fake. It is an enticing concept...


 
Upgrading to beagle cvs 20040219 on a FC3

Install the inotify-enabled kernel version 19

# rpm -ivh kernel-2.6.10-1.766.inotify.0.19_FC3.i686.rpm

Install (if already doesn't) gtk-sharp-gapi

# yum -y install gtk-sharp-gapi

Download and install gmime 2.1.11:

./configure --enable-mono

make

su -c "make install"

Update beagle sources:

cd beagle && cvs -z3 update

...


2/18/2005

 
muscle 3.52 refine

BEGIN {$ENV{MUSCLEDIR} = '/home/avb/9_opl/muscle/muscle3.52_src/'; }

# Build a muscle alignment factory

$out = Bio::Root::IO->catfile

(

"$dir","$subdir","$outdir","refined_$aa_aln_file"

);

$factory = new Bio::Tools::Run::Alignment::Muscle

(

'refine' => '',

# 'in' => $aa_input,

);

$factory->outfile_name("$out");

my $muscle_present = $factory->executable();

unless ($muscle_present) {

warn "muscle program not found.\n";

exit(0);

}

$out = $factory->align($aa_input);


 
probcons with training

# Build a probcons alignment factory

$factory = new Bio::Tools::Run::Alignment::Probcons

(

'iterative-refinement' => '1000',

'consistency' => '5',

# 'pre-training' => '20',

'emissions' => '',

'verbose' => '',

'train' => "$dir/$subdir/$outdir/train.params",

);

$factory->outfile_name("$dir/$subdir/$outdir/train.params");

my $probcons_present = $factory->executable();

unless ($probcons_present) {

warn "probcons program not found.\n";

exit(0);

}

$seq_array_ref = \@seq_array;

$aln = $factory->align($seq_array_ref);

$aln = '';

$factory = '';

$factory = new Bio::Tools::Run::Alignment::Probcons

(

'iterative-refinement' => '1000',

'consistency' => '5',

# 'pre-training' => '20',

'verbose' => '',

'annot' => "$dir/$subdir/$outdir/annotation.scores",

'paramfile' => "$dir/$subdir/$outdir/train.params",

# 'matrixfile' => "$matrix",

);

$factory->outfile_name("$dir/$subdir/$outdir/temp");

$aln = $factory->align($seq_array_ref);


 
Marten Mickos (MySQL) presentation minutes

The first community that arrives in an open source project are those that are willing to spend time to save money. The second community are those that are willing to spend money to save time.

You can protect your open source business with:

* copyrights

* trademarks

* trade secret

* superior service

* product stewardship

A vendor associated with an open source project provides stewardship, and a road map.

Open source is not eating it's way up the stack to commoditize all value out of software, but rather only a small fraction of the world's software needs have been met so far.


2/16/2005

 
slash-linux 3

Market Cap NYSE - NASDAQ:

www.ibm.com/linux

Market Cap (intraday): 154.42B

www.dell.com/linux

Market Cap (intraday): 103.27B

www.oracle.com/linux

Market Cap (intraday): 68.65B

www.hp.com/linux

Market Cap (intraday): 64.87B

www.sap.com/linux

Market Cap (intraday): 49.03B

www.motorola.com/linux

Market Cap (intraday): 37.56B

www.sony.com/linux

Market Cap (intraday): 34.64B

www.ca.com/linux

Market Cap (intraday): 15.93B

www.sun.com/linux

Market Cap (intraday): 14.26B

www.veritas.com/linux

Market Cap (intraday): 9.73B

www.bmc.com/linux

Market Cap (intraday): 3.49B

www.novell.com/linux

Market Cap (intraday): 2.18B

www.sybase.com/linux

Market Cap (intraday): 1.82B

www.adaptec.com/linux

Market Cap (intraday): 615.88M

www.sgi.com/linux

Market Cap (intraday): 341.16M

Algú en sap més? (que no sigui www.griferiasmartinez.es/linux)


 
slash-linux companies 2

Market Cap NYSE - NASDAQ:

www.ibm.com/linux

Market Cap (intraday): 154.42B

www.dell.com/linux

Market Cap (intraday): 103.27B

www.oracle.com/linux

Market Cap (intraday): 68.65B

www.hp.com/linux

Market Cap (intraday): 64.87B

www.sap.com/linux

Market Cap (intraday): 49.03B

www.motorola.com/linux

Market Cap (intraday): 37.56B

www.sony.com/linux

Market Cap (intraday): 34.64B

www.ca.com/linux

Market Cap (intraday): 15.93B

www.sun.com/linux

Market Cap (intraday): 14.26B

www.veritas.com/linux

Market Cap (intraday): 9.73B

www.novell.com/linux

Market Cap (intraday): 2.18B

www.sybase.com/linux

Market Cap (intraday): 1.82B

www.adaptec.com/linux

Market Cap (intraday): 615.88M

www.sgi.com/linux

Market Cap (intraday): 341.16M


2/15/2005

 
Garagegames and Epic-Interactive

Keep up the good job!

Garagegames:

http://www.garagegames.com/pg/browse.php?qtm=Linux

http://garagegames.blogspot.com

Epic-Interactive:

http://www.epic-interactive.com/


2/12/2005

 
Catchy phrases

"Interesting idea... I'll get to that some thought"


2/11/2005

 
Big corps with a slash-linux web page

20050211 Market Cap in NYSE or NASDAQ:

www.ibm.com/linux Market Cap (intraday): 154.42B

www.dell.com/linux Market Cap (intraday): 103.27B

www.oracle.com/linux Market Cap (intraday): 68.65B

www.hp.com/linux Market Cap (intraday): 64.87B

www.sap.com/linux Market Cap (intraday): 49.03B

www.motorola.com/linux Market Cap (intraday): 37.56B

www.sony.com/linux Market Cap (intraday): 34.64B

www.sun.com/linux Market Cap (intraday): 14.26B

www.veritas.com/linux Market Cap (intraday): 9.73B

www.novell.com/linux Market Cap (intraday): 2.18B

www.sybase.com/linux Market Cap (intraday): 1.82B

www.adaptec.com/linux Market Cap (intraday): 615.88M

www.sgi.com/linux Market Cap (intraday): 341.16M


 
Interesting reads on GNOME optimization

http://developer.gnome.org/doc/guides/optimisation/intro.html

http://developer.gnome.org/doc/guides/optimisation/


 
LaTeX is a world in itself

latex report && latex report && bibtex report && makeindex report && latex report && xdvi report.dvi &


2/10/2005

 
Out of Africa 100,000 years ago...

Anthropological and genetic evidence strongly suggests that a small subset of the humans in Africa some 30,000-50,000 years ago migrated in one or more waves out of northern Africa to subsequently populate the rest of the world.

As genetic material has passed through 5000 generations from our common African ancestral pool, recombination between the SNP and the actual genetic factor has occurred only rarely.

We are basically the ~5000th descendents of a subset of humans who lived in Africa 30,000-50,000 years ago.

5000 generations in 30,000-50,000 is rather difficult. The error lies in that 5000 generations suppose a migration 100,000 years ago, not 30,000-50,000


2/09/2005

 
Words I should be using more often

pron.

Whatever.

adj.

Whatever: no power whatsoever.

whatsoever

adj : one or some or every or all without specification; "give me any peaches you don't want"; "not any milk is left"; "any child would know that"; "pick any card"; "any day now"; "cars can be rented at almost any airport"; "at twilight or any other time"; "beyond any doubt"; "need any help we can get"; "give me whatever peaches you don't want"; "no milk whatsoever is left" [syn: any(a), whatever]


 
Out of Africa and 5000 generations after that

Anthropological and genetic evidence strongly suggests that a small subset of the humans in Africa some 30,000-50,000 years ago migrated in one or more waves out of northern Africa to subsequently populate the rest of the world.

As genetic material has passed through 5000 generations from our common African ancestral pool, recombination between the SNP and the actual genetic factor has occurred only rarely.

We are basically the ~5000th descendents of a subset of humans who lived in Africa 30,000-50,000 years ago.


 
Words I should be using more often

http://en.wiktionary.org/wiki/Surrogate

Etymology

From Latin surrogatus, perfect passive participle of surrogare, ask; a variant of subrogare, from sub, under + rogare, ask.

Noun

surrogate, plural surrogates

1. A substitute (usually of a person, position or role).

2. A person or animal that acts as a substitute for the social or pastoral role of another, such as a surrogate mother.

3. (Chiefly British) A deputy for a bishop in granting licences for marriage.

4. In some US states, including New York, a judge who has power over the settlement of wills, estates and other legal affairs.

Translations

* French: remplaçant (person), succédané m

* German: Ersatz m

Adjective

1. (normally a modifier of the noun) Of, concerning, relating to or acting as a substitute.

Transitive Verb

surrogate

1. replace or substitute something with something else; appoint a successor.

Variant Forms

* subrogate

Synonyms

* deputize

* foster

* replace

* substitute

Related Terms

* subrogation


 
... in 12 payments a year

1034 x 12 = 12408 885.11 x 12 = 10621.32


 
Generalitat's Formació d'Investigadors 3-4 year numbers

SOU 1034.00

BASE DE CONTINGENCIES GENERALS 48.60

FORMACIO PROFESSIONAL 1.03

AJUT A LA DESOCUPACIO 16.54

I.R.P.F 82.72

TOTAL DEDUCCIONS 148.89 (14.3%)

TOTAL A REBRE 885.11


 
The two greatest flaws of research in Spain

(1) Nepotism and inbreeding

(2) Low overheads


2/08/2005

 
Natural selection is a female

Charles Darwin:

"natural selection can act only by taking advantage of slight successive variations; she can never take a leap, but must advance by the shortest and slowest steps"


2/07/2005

 
http://www.biocop.es/

http://www.biocop.es/

Is the Ecover representative in Spain: you can buy online or at the shop in Lliçà de Vall (near Barcelona)


 
Ecover

One of the things that we can do is to use environment friendly cleaning products. As a lot of you doubt about them (do they clean well, are they expensive..), just have a look at this really interesting website: http://www.ecover.com/. You will discover that you can buy them in many European countries and that there are a lot of different good products. If you are living in a country where they are not yet produce, please try to contact them and ask them to do so. In Belgium you can even fill the same bottles again if you go to a biologic shop, website shops in Flanders and Brussels :http://old.velt.be/Notendop/winkel_inl.htm.


 
If you want no excuses from your IT guys

#!/usr/local/bin/perl

open $logfile, ">>/tmp/ping.log";

while () {

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);

printf $logfile "%04d%02d%02d_%02d%02d%02d\n\n", $year+1900,$mon,$mday,$hour,$min,$sec;

$return = system("ping -c1 www.google.com >> /tmp/ping.log");

system("sleep 5");

}

Tell them: "Look, this log says you are doing a lousy job with the net here..."


2/05/2005

 
Little rough around the edges

Went to play futbol-sala (indoor-soccer) and got really tired.

Yet, endorphine levels quite good to spend the evening watching "The O.C." episodes. There is something catchy with this TV series that I like very much: most of the characters are really nice people, having some bad shots sometimes. But nice people, all in all. No malignous characters, no wolves in sheeps' clothes...


2/04/2005

 
Creative Commons and Open Source communities

It amazes me of what is possible to achieve when a group of people flocks on a common cause or purpose.

Me being breathing all day close to the scientific field, I am very glad to see the success of the content distributed by magazines like those from PLoS or BMC.

In the Open Source world, GNOME and Mono are two communities that I enjoy very much peeking at. Being a testimonial of the achivements of these communities, in the projects that they are working on.


 
Red Hat Meetups

Some Meetups are based around activities—like knitting, foreign language practice, or getting dogs out to play. Others focus on organizing for a cause, whether getting a political candidate elected or planning the March for Women's Lives. At other Meetups, people swap information and stories—about a shared health condition, say, or life as a stay-at-home Mom.


 
ispell-complete-word

God! this _is_ a useful Emacs tip


2/03/2005

 
Somebody living in BCN

That has access to BTV broadcasting signal:

I you happen to have a spare blank VHS tape, please record "Einstein a la platja" on 24-Feb 23:30h or 25-Feb 03:00 or 25-Feb 17:00h.

My relatives have threatened to kill me if I don't get a copy... :-p


2/02/2005

 
SQL in a nutshell 2nd ed

I got a copy of "SQL in a nutshell 2nd ed", very handy when you have to do multitable selects


 
Rottisserie at Harvard Law

Note that the Rotisserie comprises 40% of the total course grade. (Please note that we will not take into consideration the ratings that your peers give your rotisserie responses in our grading process, so don't worry about the ratings that you may get.) Here are some guidelines for composing a good rotisserie response:

*

Do all the related readings for the question. Good answers will show a deep exploration of the issue, not just an emotional reaction to the question posed. We are not looking for "proof" that you did the reading, citations from the readings, or anything that is not necessary to a thoughtful answer. We do not expect legal analyses beyond the concepts that we discuss in class. We do not expect research outside of the assigned readings.

* Write your answer in a word-processing program (outside of the Rotisserie). Doing this will allow you to easily edit and refine your answer before submitting it. We are not looking for stream-of-consciousness answers, we want well-thought out work. In addition, this will ensure that you have a copy of your answer if for some reason it does not get entered into the Rotisserie properly. This will help us to give you credit if something goes wrong with your submission.

* Don't wait until the last minute. You are responsible for knowing when you have Rotisserie answers due and for getting them in on time. Although the Rotisserie can handle quite a bit of load, it can get clogged up if everyone tries to submit at the same moment. To make sure you get your answer in on time, plan to submit it somewhat before the deadline.

* Pay attention to the word limits. We want your rotisserie answers to be short and well-crafted. Long, rambling answers can be turned into concise, thoughtful answers with a little editing.

* Have a thesis/take a position/make a point. Don't just show us that you have done the readings, make an argument.

* Don't worry about formality. We won't be grading you on your spelling, or whether you use fancy language. We are looking for your arguments and the reasons you use to back them up. If your argument is persuasive, a grammatical error will not count against you.


 
Writing criteria in the University of Barcelona

http://www.ub.edu/criteris-cub/


 
gnome tip

If you have it when gnome "Run Application..." menu (Alt+F2) takes too much to show up and let you call for a program, use:

gconf-editor

/apps/panel/profiles/default/general/enable_program_list

to disable the "known applications" list.

Thanks to Eric for this tip:

http://bugzilla.gnome.org/show_bug.cgi?id=152025


2/01/2005

 
torcs in yum repositories

torcs-data.noarch 1.2.2-1.0.dag dag

torcs-data

torcs-data-cars-kcendra-gt.noarch 1.2.2-1.0.dag dag

torcs-data-cars-kcendra-gt

torcs-data-cars-nascar.noarch 1.2.2-1.0.dag dag

torcs-data-cars-nascar

torcs-data-cars-extra.noarch 1.2.2-1.0.dag dag

torcs-data-cars-extra

torcs-data-cars-kcendra-sport.noarch 1.2.2-1.0.dag dag

torcs-data-cars-kcendra-sport

torcs-data-cars-VM.noarch 1.2.2-1.0.dag dag

torcs-data-cars-VM

torcs-data-cars-Patwo-Design.noarch 1.2.2-1.0.dag dag

torcs-data-cars-Patwo-Design

torcs-data-tracks-road.noarch 1.2.2-1.0.dag dag

torcs-data-tracks-road

torcs-data-cars-kcendra-roadsters.noarch 1.2.2-1.0.dag dag

torcs-data-cars-kcendra-roadsters

torcs-data-tracks-oval.noarch 1.2.2-1.0.dag dag

torcs-data-tracks-oval

torcs-data-tracks-dirt.noarch 1.2.2-1.0.dag dag

torcs-data-tracks-dirt

torcs-data-cars-nascar.noarch 1.2.2-1.fr freshrpms

torcs-data-cars-nascar

torcs.i386 1.2.2-4.1.fc3.fr freshrpms

torcs

torcs-data-cars-VM.noarch 1.2.2-1.fr freshrpms

torcs-data-cars-VM

torcs-data.noarch 1.2.2-1.fr freshrpms

torcs-data

torcs-data-tracks-oval.noarch 1.2.2-1.fr freshrpms

torcs-data-tracks-oval

torcs-data-cars-kcendra-gt.noarch 1.2.2-1.fr freshrpms

torcs-data-cars-kcendra-gt

torcs-data-cars-kcendra-sport.noarch 1.2.2-1.fr freshrpms

torcs-data-cars-kcendra-sport

torcs-data-cars-Patwo-Design.noarch 1.2.2-1.fr freshrpms

torcs-data-cars-Patwo-Design

torcs-data-tracks-road.noarch 1.2.2-1.fr freshrpms

torcs-data-tracks-road

torcs-robots.i386 1.2.2-4.1.fc3.fr freshrpms

torcs-robots

torcs-data-cars-extra.noarch 1.2.2-1.fr freshrpms

torcs-data-cars-extra

torcs-data-tracks-dirt.noarch 1.2.2-1.fr freshrpms

torcs-data-tracks-dirt

torcs-data-cars-kcendra-roadsters.noarch 1.2.2-1.fr freshrpms

torcs-data-cars-kcendra-roadsters

torcs-data-cars-kcendra-roadsters.noarch 1.2.2-1.fr installed

torcs-data-cars-kcendra-roadsters

torcs-data.noarch 1.2.2-1.0.dag installed

torcs-data

torcs-data-cars-Patwo-Design.noarch 1.2.2-1.fr installed

torcs-data-cars-Patwo-Design

torcs-data-tracks-oval.noarch 1.2.2-1.0.dag installed

torcs-data-tracks-oval

torcs-data-cars-extra.noarch 1.2.2-1.fr installed

torcs-data-cars-extra

torcs-data-cars-nascar.noarch 1.2.2-1.fr installed

torcs-data-cars-nascar

torcs-data-tracks-road.noarch 1.2.2-1.fr installed

torcs-data-tracks-road

torcs-data-cars-VM.noarch 1.2.2-1.fr installed

torcs-data-cars-VM

torcs-data-cars-kcendra-sport.noarch 1.2.2-1.fr installed

torcs-data-cars-kcendra-sport

torcs-data-tracks-dirt.noarch 1.2.2-1.fr installed

torcs-data-tracks-dirt

torcs.i386 1.2.2-4.1.fc3.fr installed

torcs

torcs-robots.i386 1.2.2-2.1.fc2.fr installed

torcs-robots

torcs-data-cars-kcendra-gt.noarch 1.2.2-1.fr installed

torcs-data-cars-kcendra-gt


 
Words I should be using more often

Something undergoes/underwent an action or process


Archives

200409   200412   200501   200502   200503   200504   200505   200506   200507   200508   200509   200510   200511   200512   200601   200602   200603   200604   200605   200606   200607   200608   200609   200610   200611   200612   200701   200702   200703   200704   200705   200707   200708   200709   200710   200711   200712   200801   200802   200803   200804   200805   200806   200807   200808   200809   200810   200811   200812   200901   200902   200903   200904   200905   200906   200907   200908   200909   200912   201001   201002   201003   201004   201007   201009   201011   201102  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]