Install essential softwares in Ubuntu
Ubuntu 11.04 comes with a lot of default softwares but there are certain other really essential softwares that you may like to install. You can choose them from the Ubuntu Software Center or install it through the terminal.
The names of the essential softwares, a brief review and the installation codes are provided below:
VLC Media Player: The best media player available and much better
Mac theme for Ubuntu using Cairo Dock
I tried a couple of popular docks like Docky and Cairo dock; simply put I am very much impressed with the Cairo dock. Docky doesn't give the 3D view in my Asus netbook with Intel Atom processor. However, Cairo dock simply gives a mind blowing 3D view as you can see below.
Adding Cairo is very simple from the terminal. Just type the following commands sequentially:
1. sudo
Exploring Ubuntu: How to run Sify internet client on Ubuntu?
Very recently, in one of my old PCs, Windows crashed. I was left with only Windows XP SP1 bootable CD, which I got from HP when I bought my computer way back in 2003. And I had no office. Buying a new Windows and Office CD would be expensive to my pockets (if you are in India, you can appreciate that!). Moreover, my old PC hardware won't support Windows 7, even Office 2003 used to crawl in
How to obtain the flash videos in Firefox 4
Flash videos were stored in /tmp/FlashXXXX and i was able to copy them to another place like cp /tmp/FlashXXX ~/Desktop/new.video.mpeg.
Since Firefox 4 i thought for a moment that everything changed and my happy days were over but i was wrong, i remembered that with Linux there are no sad days.
How to obtain the flash videos with Firefox 4:
When the video already finished loading in the browser (being Youtube or any other), do this:
walter 20040 19812 9 11:52 ? 00:53:34 /usr/lib/firefox-3.6.17/plugin-container /home/walter/.mozilla/plugins/libflashplayer.so 19812 plugin true
Now, with the PID, inspect what it is opening:
root@talento:~# lsof -p 20040 | grep Flash
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/walter/.gvfs
Output information may be incomplete.
plugin-co 20040 walter 16u REG 8,2 1249930 21708868 /tmp/FlashXXQANNm2 (deleted)
root@talento:~#
You are interested in the file descriptor id, these are the file descriptors from that process:
root@talento:~# ls -la /proc/20040/fd/
total 0
dr-x------ 2 walter walter 0 2011-04-30 21:12 .
dr-xr-xr-x 7 walter walter 0 2011-04-30 21:06 ..
lr-x------ 1 walter walter 64 2011-04-30 21:12 0 -> /dev/null
lrwx------ 1 walter walter 64 2011-04-30 21:12 1 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:12 10 -> pipe:[18679239]
lr-x------ 1 walter walter 64 2011-04-30 21:12 11 -> pipe:[18679240]
l-wx------ 1 walter walter 64 2011-04-30 21:12 12 -> pipe:[18679240]
lrwx------ 1 walter walter 64 2011-04-30 21:12 13 -> socket:[18679243]
lr-x------ 1 walter walter 64 2011-04-30 21:12 14 -> /home/walter/.mozilla/firefox/2te1hj2x.default/cert8.db
lr-x------ 1 walter walter 64 2011-04-30 21:12 15 -> /home/walter/.mozilla/firefox/2te1hj2x.default/key3.db
lrwx------ 1 walter walter 64 2011-04-30 21:15 16 -> /tmp/FlashXXQANNm2 (deleted)
lr-x------ 1 walter walter 64 2011-04-30 21:16 17 -> pipe:[19890054]
l-wx------ 1 walter walter 64 2011-04-30 21:16 18 -> pipe:[19890054]
lr-x------ 1 walter walter 64 2011-04-30 21:16 19 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:12 2 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:16 20 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:16 21 -> socket:[19890059]
lrwx------ 1 walter walter 64 2011-04-30 21:12 22 -> socket:[19338003]
lr-x------ 1 walter walter 64 2011-04-30 21:12 23 -> anon_inode:inotify
lrwx------ 1 walter walter 64 2011-04-30 21:12 3 -> socket:[18679123]
lrwx------ 1 walter walter 64 2011-04-30 21:12 4 -> anon_inode:[eventpoll]
lrwx------ 1 walter walter 64 2011-04-30 21:12 42 -> socket:[18679124]
lrwx------ 1 walter walter 64 2011-04-30 21:12 5 -> socket:[18679236]
lrwx------ 1 walter walter 64 2011-04-30 21:12 6 -> socket:[18679237]
lr-x------ 1 walter walter 64 2011-04-30 21:12 7 -> pipe:[18679238]
l-wx------ 1 walter walter 64 2011-04-30 21:12 8 -> pipe:[18679238]
lr-x------ 1 walter walter 64 2011-04-30 21:12 9 -> pipe:[18679239]
What is of our interest if the Flash process, displayed in the previous lines.
Now, you can copy the file to a safe place, because, if you close Firefox, those files are released and lost.
cp /proc/20040/fd/16 ~/Desktop/A.Movie.mpeg
Now if you want to put everything in a script:
root@talento:~# cat saveflash.sh
#!/bin/bash
PID=`ps -ef | grep libflashplayer.so | grep -v grep | awk '{print $2}'`
FD=`lsof -p $PID | grep Flash | awk '{print $4}' | sed 's/u$//'`
cp /proc/$PID/fd/$FD "$1"
And remember, you can "invite me a coffee" :)
Since Firefox 4 i thought for a moment that everything changed and my happy days were over but i was wrong, i remembered that with Linux there are no sad days.
How to obtain the flash videos with Firefox 4:
When the video already finished loading in the browser (being Youtube or any other), do this:
ps -ef | grep libflashplayer.so | grep -v grep
walter 20040 19812 9 11:52 ? 00:53:34 /usr/lib/firefox-3.6.17/plugin-container /home/walter/.mozilla/plugins/libflashplayer.so 19812 plugin true
Now, with the PID, inspect what it is opening:
root@talento:~# lsof -p 20040 | grep Flash
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/walter/.gvfs
Output information may be incomplete.
plugin-co 20040 walter 16u REG 8,2 1249930 21708868 /tmp/FlashXXQANNm2 (deleted)
root@talento:~#
You are interested in the file descriptor id, these are the file descriptors from that process:
root@talento:~# ls -la /proc/20040/fd/
total 0
dr-x------ 2 walter walter 0 2011-04-30 21:12 .
dr-xr-xr-x 7 walter walter 0 2011-04-30 21:06 ..
lr-x------ 1 walter walter 64 2011-04-30 21:12 0 -> /dev/null
lrwx------ 1 walter walter 64 2011-04-30 21:12 1 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:12 10 -> pipe:[18679239]
lr-x------ 1 walter walter 64 2011-04-30 21:12 11 -> pipe:[18679240]
l-wx------ 1 walter walter 64 2011-04-30 21:12 12 -> pipe:[18679240]
lrwx------ 1 walter walter 64 2011-04-30 21:12 13 -> socket:[18679243]
lr-x------ 1 walter walter 64 2011-04-30 21:12 14 -> /home/walter/.mozilla/firefox/2te1hj2x.default/cert8.db
lr-x------ 1 walter walter 64 2011-04-30 21:12 15 -> /home/walter/.mozilla/firefox/2te1hj2x.default/key3.db
lrwx------ 1 walter walter 64 2011-04-30 21:15 16 -> /tmp/FlashXXQANNm2 (deleted)
lr-x------ 1 walter walter 64 2011-04-30 21:16 17 -> pipe:[19890054]
l-wx------ 1 walter walter 64 2011-04-30 21:16 18 -> pipe:[19890054]
lr-x------ 1 walter walter 64 2011-04-30 21:16 19 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:12 2 -> /home/walter/.xsession-errors
l-wx------ 1 walter walter 64 2011-04-30 21:16 20 -> pipe:[19890055]
lrwx------ 1 walter walter 64 2011-04-30 21:16 21 -> socket:[19890059]
lrwx------ 1 walter walter 64 2011-04-30 21:12 22 -> socket:[19338003]
lr-x------ 1 walter walter 64 2011-04-30 21:12 23 -> anon_inode:inotify
lrwx------ 1 walter walter 64 2011-04-30 21:12 3 -> socket:[18679123]
lrwx------ 1 walter walter 64 2011-04-30 21:12 4 -> anon_inode:[eventpoll]
lrwx------ 1 walter walter 64 2011-04-30 21:12 42 -> socket:[18679124]
lrwx------ 1 walter walter 64 2011-04-30 21:12 5 -> socket:[18679236]
lrwx------ 1 walter walter 64 2011-04-30 21:12 6 -> socket:[18679237]
lr-x------ 1 walter walter 64 2011-04-30 21:12 7 -> pipe:[18679238]
l-wx------ 1 walter walter 64 2011-04-30 21:12 8 -> pipe:[18679238]
lr-x------ 1 walter walter 64 2011-04-30 21:12 9 -> pipe:[18679239]
What is of our interest if the Flash process, displayed in the previous lines.
Now, you can copy the file to a safe place, because, if you close Firefox, those files are released and lost.
cp /proc/20040/fd/16 ~/Desktop/A.Movie.mpeg
Now if you want to put everything in a script:
root@talento:~# cat saveflash.sh
#!/bin/bash
PID=`ps -ef | grep libflashplayer.so | grep -v grep | awk '{print $2}'`
FD=`lsof -p $PID | grep Flash | awk '{print $4}' | sed 's/u$//'`
cp /proc/$PID/fd/$FD "$1"
And remember, you can "invite me a coffee" :)
Yahoo KDD Cup
In a few days starts the Yahoo KDD Cup, i'll participate in this one. It is an interesting task where the rate of users has to be predicted. The prediction task is based on previous users behaviour, finding patterns and common music/artists/genre and profiling new customers based on the music they do like. I hope i have fun during this competition and keep learning from these experiences.
If possible, i would keep doing all my mining/machine learning scripts in perl, so i will share the solutions for the problems i had to face during this experience.
I wanted to search an id inside an array, to do this i did:
open TODO, "todo" or die $!;
my @todo =;
close TODO;
@array = ();
foreach (@todo) {
my ($id, $type) = split(/\t/);
chop ($type);
$array[$id] = $type;
}
my @todo =
close TODO;
@array = ();
foreach (@todo) {
my ($id, $type) = split(/\t/);
chop ($type);
$array[$id] = $type;
}
my ($id, $rank, $day, $time) = split(/\t/, $linea);
Installing R project for statistics in Fedora Linux.
Is is as easy as this:
[root@dyn8382 ~]# yum install R R-devel
[root@dyn8382 ~]# R
>install.packages("arules", repos="http://R-Forge.R-project.org")
[root@dyn8382 ~]# yum install R R-devel
[root@dyn8382 ~]# R
>install.packages("arules", repos="http://R-Forge.R-project.org")
http://www.r-project.org/
Datamining with Linux
I'm currently doing the Datamining Specialist course and i try to use open source solutions, and if not open source, linux solutions... because i am a unix user.
This is a list of software i recommend to try, i am studying some features and they are
all great:
WEKA (http://www.cs.waikato.ac.nz/ml/weka/)
Weka is a collection of machine learning algorithms for data mining tasks. The algorithms can either be applied directly to a dataset or called from your own Java code. Weka contains tools for data pre-processing, classification, regression, clustering, association rules, and visualization. It is also well-suited for developing new machine learning schemes.
The R Project for Statistical Computing (http://www.r-project.org/)
R is a free software environment for statistical computing and graphics.
Matlab (http://www.mathworks.com/)
This is a commercial software that can be used to create models of artificial neural networks and any kind of math problems.
dTree ( http://www.aispace.org/dTree/)
This tool demonstrates how to build a decision tree using a training data set and then use the tree to classify unseen examples in a test data set.
If you know some other soft, please post it and i'll try it.
Subscribe to:
Posts (Atom)
