http://video.google.com/videoplay?docid=-6739710473912337648&q=bsb
http://help.ubuntu.com/starterguide/C/faqguide-all.html
http://www.onlamp.com/pub/a/onlamp/2005/10/27/memory-management.html
# Install dependencies available from the Ubuntu repositories (main and universe)
sudo apt-get install libwxgtk2.6-dev libdvbpsi3-dev libmpeg2-4-dev libmad0-dev libasound2-dev libesd0-dev x11proto-video-dev libdvdnav-dev liba52-0.7.4-dev libflac-dev libfreetype6-dev libid3tag0-dev libogg-dev libpng12-dev libspeex-dev libtheora-dev libvorbis-dev libxml2-dev zlib1g-dev gcc g++ automake1.9 autoconf libtool subversion cvs libx11-dev
# Install libdvdcss (DVD support)
mkdir ~/videolan ; cd ~/videolan
wget http://downloads.videolan.org/pub/videolan/vlc/0.8.2/contrib/libdvdcss-1.2.8.tar.bz2
tar -jxvf libdvdcss-1.2.8.tar.bz2 ; cd libdvdcss-1.2.8
./configure --prefix=/usr ; make ; sudo make install
# Compile faad2 (AAC support)
cd ~/videolan ; wget http://downloads.videolan.org/pub/videolan/vlc/0.8.2/contrib/faad2-20040923.tar.bz2
tar -jxvf faad2-20040923.tar.bz2 ; cd faad2-20040923
./configure --prefix=/usr ; cd libfaad ; make
# Compile ffmpeg (support for H264 and many other codecs)
cd ~/videolan ; cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
cd ffmpeg ; ./configure --enable-pp --enable-gpl ; make
# Compile live555
cd ~/videolan ; wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz ; tar -zxvf live555-latest.tar.gz
cd live ; ./genMakefiles linux ; make
# Compile libvc1 (WMV9 support)
# only if you have access to the files
# cd ~/videolan ; wget http://nanocrew.net/sw/libvc1-1.0.tar.gz ; tar -zxvf libvc1-1.0.tar.gz
# wget http://USERNAME:PWD@www.smpte-vc1.org/TrialPublication/Decoder/VC1_reference_decoder_release6.zip
# unzip VC1_reference_decoder_release6.zip
# cp VC1_reference_decoder_release6/decoder/*.[ch] libvc1-1.0/src/.
# cp VC1_reference_decoder_release6/shared/*.[ch] libvc1-1.0/src/.
# cd libvc1-1.0 ; ./bootstrap ; ./configure --prefix=/usr ; make
# Install VLC
cd ~/videolan ; svn co svn://svn.videolan.org/vlc/trunk vlc-trunk
cd vlc-trunk ; wget -O - http://nanocrew.net/sw/vlc-libvc1.diff | patch -p0
# only if you have access to VC1 files
# ./bootstrap ; ./configure --with-ffmpeg-tree=../ffmpeg --enable-faad --with-faad-tree=../faad2-20040923 --enable-esd --enable-flac --enable-theora --enable-libvc1 --with-libvc1-tree=../libvc1-1.0 --disable-hal --enable-livedotcom --with-livedotcom-tree=../live
./bootstrap ; ./configure --with-ffmpeg-tree=../ffmpeg --enable-faad --with-faad-tree=../faad2-20040923 --enable-esd --enable-flac --enable-theora --disable-hal --enable-livedotcom --with-livedotcom-tree=../live
#make ; sudo make install
make
http://nanocrew.net/2005/09/01/compiling-vlc/
sudo touch /forcefsck
http://www.ubuntuforums.org/showthread.php?t=77771
sleep 1000 &
ps x | grep sleep | cut -c1-5 | xargs kill -9 $1
Definitions of stumble on the Web:
* walk unsteadily; "The drunk man stumbled about"
* miss a step and fall or nearly fall; "She stumbled over the tree root"
* lurch: an unsteady uneven gait
* encounter by chance; "I stumbled across a long-lost cousin last night in a restaurant"
* make an error; "She slipped up and revealed the name"
* trip: an unintentional but embarrassing blunder; "he recited the whole poem without a single trip"; "he arranged his robes to avoid a trip-up later"; "confusion caused his unfortunate misstep"
wordnet.princeton.edu/perl/webwn
http://www-306.ibm.com/e-business/ondemand/us/customerloyalty/blogs/blogging_flash.shtml
If you visit www.apple.com today, you will find a nice image referring to Rosa Parks.
...ok, I found it:
if (!defined $term) {
my $notfound = 1;
print "# error $entry\n";
my @list = $term->add_alt_id($entry);
foreach $term (@list) {
print "# alternative $term\n";
$term = $graph->get_term($entry);
if (defined $term) {$notfound = 0;}
}
next if ($notfound);
}
;-)
I have been using Chris Mungall's go-perl recently, which is part of go-dev, and I have to say I am really impressed.
There is a lot of stuff one can do with it, and me using GO for a priori categorization of a gene list, I am enjoying it a lot.
A couple of hickups in it:
(1) the time it takes to load an obo file: ~1min in my laptop (~5 min if Perl-debugging)
(2) I haven't found a way yet to get "alt_id"s for entries that won't give a valid id:
$term = $graph->get_term($entry);
http://code.google.com/soc-results.html
Praveenkumar Ponnusamy
Global Command History for Bash
https://sourceforge.net/project/showfiles.php?group_id=144266&package_id=158586&release_id=353086
This project is an extension to the GNU Bourne Again Shell(BASH). It is an implementation of global command history for BASH. The goal of this project is to provide the users of the BASH shell the capability to access command history across multiple
open instances of the shell.
I have to try this soon...
James Anderson
Tsync
http://sourceforge.net/projects/tsyncd/
Tsync is a user-level daemon that provides transparent synchronization amongst a set of computers. Tsync uses a peer-to-peer architecture for scalability, efficiency, and robustness.
This one looks very promising...
Stuff I have to read when I find time
http://www.redhat.com/magazine/012oct05/features/gcc/
Definitions of Caveat emptor on the Web:
* A Latin term meaning "let the buyer beware." A legal maxim stating that the buyer takes the risk regarding quality or condition of the property purchased, unless protected by warranty.
www.aaauctionservice.com/glossery_files/glossery.htm
Things I will do when I find time
Learn some Javascript (You know, for the kids)
Expressions I heard today
secure a contribution based on a policy
seek to befriend a person
to be under oath
to pick one's battles
Someone's feet seem a little frozen
Linux drivers -- Airport Extreme, TrueMobile 1300 WLAN Mini-PCI Card...
Linux drivers -- Airport Extreme, TrueMobile 1300 WLAN Mini-PCI Card, Wireless 1350 WLAN Mini-PCI Card, WL-100G, Linksys WMP54G PCI, Belkin F5D7010 54g Wireless Network card, etc.
http://bcm43xx.berlios.de/
Wavelets stuff I got buried somewhere else
Meeting with B.A:
It went really well.
About which filter to use, he said that Daubechies is nice because of
the compact support: you know where are the border artifacts in the
signal.
About the different levels of Daubechies:
a0 + a1x + a2x^2 + a3x^3 + ...
D1 - Haar, is ok to remove the constant from the data (a0). So you
remove the constant and have the data normalised in the detail.
And there is no border effect in Haar if signal is 2^n.
D2 - To remove linear trends.
D3 - To remove low frequency trends.
D4 and so on is to de-correlate different point in the signal.
One of the approaches for the project (p1) would be:
1) Characterize the globals of the signal, i.e., have a global view of
how is the signal.
2) Detect the edges in the signal:
-- Simple continuous 'g1' can be used for that: derivative of the signal
at a certain scale. Or also 'g2'.
About the denoising, we have to take into account that if we use a
simple threshold, the coefficient of the threshold at each level has
to be in accordance with Donoho's formulae.
We tested the use of continuous wavelet decomposition with cwtd 1 8 6
'g2'.
They are also working on that but with data of gene density.
We are going to be in touch to collaborate on the issue in a near
future (a couple of months).
It might be worth to talk with P.L., although he is now in the
computer department in UCam.
Testing strategies
The tests that you must write in XP are isolated and automatic.
First, each test doesn't interact with the others you write. That way
you avoid the problem that one test fails and causes a hundred other
failures. Nothing discourages testing more than false negatives. You
get this adrenaline rush when you arrive in the morning and find a
pile of defects. When it turns out to be no big deal, it's a big
letdown. Are you going to pay careful attention to the tests after
this has happened five or ten times? No way.
The tests are also automatic. Tests are most valuable when the stress
level rises, when people are working too much, when human judgment
starts to fail. So the tests must be automatic - returning an
unqualified thumbs up/thumbs down indication of whether the system is
behaving.
It is impossible to test absolutely everything, without the tests
being as complicated and error-prone as the code. It is suicide to
test nothing (in this sense of isolated, automatic tests). So, of all
the things you can imagine testing, what should you test?
You should test things that might break. If code is so simple that it
can't possibly break, then you shouldn't write a test for it.
One way a test can pay off is when a test works that you didn't expect
to work. Then you better go find out why it works, because the code is
smarter than you are. Another way a test can pay off is when a test
breaks when you expected it to work. In either case, you learn
something.
Something that I had buried somewhere else
Reading Andreas' manual to install a lightweight DAS server in my
computer:
No root access needed. Just define ALTROOT.
Using GNU Stow:
The approach used by Stow is to install each package into its own
tree, then use symbolic links to make it appear as though the files
are installed in the common tree. Administration can be performed in
the package's private tree in isolation from clutter from other
packages.
Downloading LDAS:
http://www.biodas.org/download/ldas/LDasServer.tar.gz
Problems with permissions:
$# ln -s /usr/local/apache/cgi-bin/das /var/www/cgi-bin/das
DAS servers are of two kinds, reference servers and annotation
servers. We're not setting up a reference DAS server so we won't need
any assembly information. We still need to fetch reference and
annotation data though.
awk 'BEGIN { OFS="\t"; print "[annotations]"; } \
{ \
print "Gene", $10, $3, $2, $1, $4, $5, $7, $6, $8; \
}' human_chr7.gff | tr -d ';' >human_chr7.das
To set the passwords for mysql (for fresh installation):
[avb]$ mysqladmin -u root password "mypassword"
and to define the password for accessing to a specific database:
mysql> USE mydatabase;
mysql> UPDATE user SET Password=PASSWORD("userpassword") WHERE \
User="user_of_mydatabase";
[avb@localhost data]$ mysql --user root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE human;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON human.* TO avb@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT FILE ON *.* TO avb@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT SELECT ON human.* to avb@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> QUIT;
Bye
Loading the data:
[avb@localhost scripts]$ ./ldas_load.pl --create --database human ~/ldas/data/human_chr7_ref.das ~/ldas/data/human_chr7.das
Unknown table 'fattribute' at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF/Adaptor/dbi.pm line 1088.
Unknown table 'fgroup' at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF/Adaptor/dbi.pm line 1088.
Unknown table 'fmeta' at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF/Adaptor/dbi.pm line 1088.
Unknown table 'fattribute_to_feature' at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF/Adaptor/dbi.pm line 1088.
Unknown table 'ftype' at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF/Adaptor/dbi.pm line 1088.
Unknown table 'fdna' at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF/Adaptor/dbi.pm line 1088.
Unknown table 'fdata' at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF/Adaptor/dbi.pm line 1088.
/home/avb/ldas/data/human_chr7_ref.das: loading...
Use of uninitialized value in join or string at /home/avb/ldas/LDasServer-1.11/scripts/Das2GFF.pl line 49,
Use of uninitialized value in join or string at /home/avb/ldas/LDasServer-1.11/scripts/Das2GFF.pl line 49,
Argument "" isn't numeric in numeric gt (>) at /home/avb/bioperl/devel/bioperl-live/Bio/DB/GFF.pm line 2221, <> line 1.
/home/avb/ldas/data/human_chr7_ref.das: 1 records loaded
/home/avb/ldas/data/human_chr7.das: loading...
Warning: unable to close filehandle DAS2GFF properly.
/home/avb/ldas/data/human_chr7.das: 784 records loaded
Editing /usr/local/apache/conf/das.conf/human.conf
mapmaster = http://172.22.68.178:8080/cgi-bin/das/human
Changed cgi-bin to allow links to other cgi-bin directories:
AllowOverride None
# Options None
Order allow,deny
Allow from all
Options FollowSymLinks
Adding hardcoded path to Bio/DB/GFF.pm in the
/usr/local/apache/cgi-bin/das script with:
use lib qw(/my/path/to/bioperl-live);
awk 'BEGIN { OFS="\t"; print "[annotations]"; } \
{ \
print "Gene", $10, $3, $2, $1, $4, $5, $7, $6, $8; \
}' human_tm_7.gff | tr -d ';' >human_tm_7.das
To upload the data to the DAS sources, you have to be outside the
EBI/Sanger Firewall, so that your server is visible to the receiving
server, which is in the Sanger Centre.
Advanced Perl Programming:
Implementing Object Persistence:
Adaptor is intended to be a group of modules that translate a uniform persistence interface to specific types of persistent stores
Object Oriented Perl Session Finale:
Multiple Dispatch
Persistent Objects
The ability of a system or module to make an application's data live longer than its application is called persistence.
Using Data::Dumper:
$encoding = Data::Dumper->Dump([$str, $num, $ref, \@arr, \%hsh],
[qw($str, $num, $ref, \@arr, \%hsh )]);
open STORAGE, ">persistent.dat"
and print STORAGE $encoding
and close STORAGE
or die "can't save persistent data\n";
Then the complete code can be reinstated with simply:
do "persistent.dat";
Perliness
Notice that method calls do not evaluate within a double-quoted string in Perl. For example, the statement:
print "Name is: ", $dna_seq->get_seq, "\n";
cannot be written as:
print "Name is: $dna_seq->get_seq\n";
Sometimes array-based objects are used in Perl because it is somewhat faster to access an array using defined indices than it is to access a hash with its keys. Despite the faster access, most object-oriented Perl modules create hash-based objectes because hashes are more flexible. It is easier to add additional attributes simply by defining a new string for use as a key than it is to maintain a list of defined array indices.
What is a blog -- What isn't a blog
A blog is a solution to the typical work colleague that resends 10 cool (or pretending to be) cool links or ppt attachments that another work colleague has already sent 20 minutes before to 30 more people: you can use your blog for all that stuff and people will choose to visit your blog or not.
A blog isn't, in my case, a place where you can make up your minds about what kind of person am I. What I write in my blog mostly relates to what happens when I'm in front of the computer, which is about 10-15% of my life, in terms of hours spend (yes, I almost exclusively work in front of the computer).
If you want to make up your minds about what kind of person I am, you should really try to contact me in person (female applicants strongly preferred :-)).
Optical illusion
This is amazing! You should try it:
http://www.patmedia.net/marklevinson/cool/cool_illusion.html
Don't gawk
I was watching the "Stuck on you" DVD the other day and found out that "gawk" is, apart from the GNU version of the program "awk", an english verb:
Definitions of gawk on the Web:
* lout: an awkward stupid person
* goggle: look with amazement; look stupidly
wordnet.princeton.edu/perl/webwn
It is funny how biased one can be when learning new words of a language not in an academic way, but from using the words in everyday's life.
I remember playing "Civilization" when I was a kid, and learning the word "settlers" by context, simply by learning that this character in the game meant something I related to the Far West "colonizers".
Definitions of settlers on the Web:
* Settlers are people who have travelled of their own choice, from the land of their birth to live in "new" lands or colonies. In modern history, the word "settlers" is synonymous with terms like pioneers, colonists, or (as British people once called them) "colonials". It has been argued that all peoples are "settlers", since migration has featured throughout human history and prehistory. However, the word settler is generally used only in relation to modern or early modern history.
en.wikipedia.org/wiki/Settlers
UNIX help for users: http://www.mcsr.olemiss.edu/unixhelp/index.html
Intermidiate UNIX training: http://archive.ncsa.uiuc.edu/General/Training/InterUnix/
Is Ubuntu a Debian fork? Or spoon? What sort of silverware are you, man?
https://wiki.ubuntu.com/MarkShuttleworth
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
Subscribe to Posts [Atom]