Sunday, September 24, 2006

Blogger:: Pings and cowboys

if you read blogs, it is that doubtless that you have also a blog, or that you think of opening one or you are just curious… In the three cases, you know or you want to learn that to aware services such as Technorati or pingomatic, a ping should be sent to them… Because I am lazy, that I want to send a maximum of ping, I wrote a small script to send a ping to several these engines of blog research.

Today I wrote two post consecutively: here are what the waiter pingomatic answered me

C http://rpc.pingomatic.com/
--> Pinging too fast. Slow fox trot down cowboy. Please ping No more than ounce every 5 minutes.

personally I like their humour; -)

Linux:: Use of ssh-agent

You often connect remotely by using ssh… and you are fed up of always having to enter your password: ssh-agent is made for you. ssh-agent is a daemon whose only goal is to keep in memory (in a protected way) the “passphrase” so that it is not necessary to type it with each use of ssh.
The following order creates the variable SSH_AUTH_SOCK which contains the way of a socket that ssh, SCP (and other orders) will use to dialogue with ssh-agent:
$ ssh-agent

To communicate the private key and the sentence of master key to ssh-agent by means of ssh-add:
$ ssh-add ~/.ssh/id_rsa
Enter the passphrase for /home/user/.ssh/id_rsa:

The private key is thus deciphered and stored in the mask of ssh-agent, lends to being used

One can now use ssh and SCP without having to enter the password.


Saturday, September 23, 2006

Linux:: How to install IMVU on Linux

Sorry, I do not have a magic receipt, I tested Wine and Crossover well, but I had some problems with glu32.dll and opengl32.dll… I have thus to try the vitualisation and my Windows machine in Qemu. It is great, it works! I launch only that, and I have to remove the updates automatic of Windows, But yes, I can regenerate my virtual machine, therefore in the worst case the virus or the Trojan will remain there only one hour or two: -) not of chance for hackers. Moreover I am seeking how to accelerate my virtual machine: there that could become really a magic receipt, moreover if you have some already: as usual leave me a message

Friday, September 22, 2006

Linux:: How to make a substitution in VIM?

Just type:
and then
:%s/old_chain/new_chain/g
To highlight a string, just move the cursor to the strinf, then press and then # to move from one occurrence to another, just press n.

Linux:: How to compare two list and find common element with Perl?

This trick can only be used if you are sure that there is no double value in a same list. You will understand why. First create an hash table (%seen), the basic idea is for each element ($_) of the merge of the two list, we will store it in the hash table. The first time the value is store; seen value is equal to 0, so the grep filter prevents this value to be record in @common. The second and other time an element will be seen, because it will be store with the same key value, the $seen{$_ } will be not null and so the element pass the test of the filter and is recorded.

my %seen;
my @common = grep {$seen{$_}++} @list_1 , @list_2;


but for doing that you need that list are unique (not two times the same element in the same list.) For doing that you can use this function:


sub Array_Uniq
{
my @List = @_;
my %FutureList;
foreach(@List)
{
$FutureList{$_} = 1; # delete double values
}
return (keys(%FutureList));
}

Friday, September 15, 2006

Flex Ajax PHP MySQL

I am reading a lot about these subjects to develop an application there reading some data in a SQL base, allowing to write inside and especially which makes it possible to make summarize give contained in the database. Thus I use:
  • flex: for a pretty presentation worthy of WEB 2.0
  • Ajax: to decrease the use of the band-width and thus to create a very fast application
  • PHP: especially to interact with my database
  • MySQL: because in the world of the databases is an excellent choice which I recommend.
Hardest with all that: it is to find infos, there is almost nothing on the WEB (moreover if somebody has something I am taking : -) There are well the sites of Adobe and Blogs of the developers but it seems to me that Adobe wants to resell its Coldfusion has everyone and thus he really does not explain how to bind MySQL its Flex has by using other technologies.

to follow…

Linux:: XEN

It makes a long time that I didn't speak about virtualisation However it is a subject which will be discussed more and more . Moreover the RedHat company has just announced the nearest installation of technology XEN within its version for professional. Contrary to other technologies of virtualisation such VMWare or Qemu which simulates the material and the bios, the virtual machines under XEN has access to the material thanks to XEN modified kernel. The result of this other paradigm is a virtual machine almost as fast as the machine host. So enjoy the virtualization!!! The only constraint is that the architecture of the virtual machines must enable them to use the technology XEN… contrary to VMWare and Qemu which does not require modification of guest” OS. It is not a problem with opensource OS such Linux, whose code was already modified to be able to turn with XEN, on the other hand what is at stake is Windows… And it is there that the real difficulty arises: much user of Linux uses a virtual machine to make turn Windows, even if the team of XEN said to have modified Windows to allow to make it turn under XEN, some licences prevent the team from publishing Let us hope that the agreement between Microsoft and XEN could change the situation. In addition the arrival of dual the core and technologies of virtualisation directly within the processors should end licence's problems mentioned herebefore and another side to still improve quality of virtualisationThe bootloader could thus belong very soon to last and the stories of I am under such OS, I must rebootwill be finished soon.

Monday, September 04, 2006

Wikipedia has a problem?

The very well known encyclopedy is currently experiencing a problem:

Friday, September 01, 2006

Linux:: DVB-T Freecom TV on your PC

I have just bought a DVB-T usb key Freecom. I thus took one having best price quality: Freecom DVB-T

I bought it on the Amazon web site for some 45$ It works well under Windows: even if the installation program is quite bad… that still finish to work. The good point is that the antenna comes with a MediaCenter software: very interesting when as me you have only one Windows XP pro without the media center. But you suspect well that I have to install it under Linux; -) Guess? YES! It works better: no problem the image never freeze : a pleasure and all that with only the small provided antenna! To install the DVB-T key, do not try modify your kernel and to add modules to it; best is to use tools from linuxtv:
  1. Download the firmware: dvb-usb-wt220u-fc03.fw
  2. cp dvb-usb-wt220u-fc03.fw /usr/lib/hotplug/firmware/
  3. apt-get mercurial build-essential (et les header de votre kernel si vous avez un kernel standard)
  4. mkdir /usr/src/modules
  5. cd /usr/src/modules
  6. hg clone http://linuxtv.org/hg/v4l-dvb
  7. cd v4l-dvb
  8. make-config
Answer to the questions as there:


#
# using defaults found in .config
#
*
* Linux Kernel Configuration
*
*
* Multimedia devices
*
Video For Linux (VIDEO_DEV) [N/m/y/?] n
*
* Digital Video Broadcasting Devices
*
DVB For Linux (DVB) [Y/n/?] y
DVB Core Support (DVB_CORE) [N/m/y/?] m
*
* Supported SAA7146 based PCI Adapters
*
*
* Supported USB Adapters
*
Support for various USB DVB devices (DVB_USB) [N/m/?] (NEW) m
Enable extended debug support for all DVB-USB devices (DVB_USB_DEBUG) [N/y/?] (NEW) n
AVerMedia AverTV DVB-T USB 2.0 (A800) (DVB_USB_A800) [N/m/?] (NEW) n
DiBcom USB DVB-T devices (based on the DiB3000M-B) (see help for device list) (DVB_USB_DIBUSB_MB) [N/m/?] (NEW) n
DiBcom USB DVB-T devices (based on the DiB3000M-C/P) (see help for device list) (DVB_USB_DIBUSB_MC) [N/m/?] (NEW) n
HanfTek UMT-010 DVB-T USB2.0 support (DVB_USB_UMT_010) [N/m/?] (NEW) n
Conexant USB2.0 hybrid reference design support (DVB_USB_CXUSB) [N/m/?] (NEW) n
Nebula Electronics uDigiTV DVB-T USB2.0 support (DVB_USB_DIGITV) [N/m/?] (NEW) n
TwinhanDTV Alpha/MagicBoxII, DNTV tinyUSB2, Beetle USB2.0 support (DVB_USB_VP7045) [N/m/?] (NEW) n
TwinhanDTV StarBox and clones DVB-S USB2.0 support (DVB_USB_VP702X) [N/m/?] (NEW) n
GENPIX 8PSK->USB module support (DVB_USB_GP8PSK) [N/m/?] (NEW) n
Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 support (DVB_USB_NOVA_T_USB2) [N/m/?] (NEW) n
WideView WT-200U and WT-220U (pen) DVB-T USB2.0 support (Yakumo/Hama/Typhoon/Yuan) (DVB_USB_DTT200U) [N/m/?] (NEW) m
Technotrend/Hauppauge Nova-USB devices (DVB_TTUSB_BUDGET) [N/m/?] (NEW) n
Technotrend/Hauppauge USB DEC devices (DVB_TTUSB_DEC) [N/m/?] (NEW) n
Terratec CinergyT2/qanu USB2 DVB-T receiver (DVB_CINERGYT2) [N/m/?] (NEW) n
*
* Supported FlexCopII (B2C2) Adapters
*
Technisat/B2C2 FlexCopII(b) and FlexCopIII adapters (DVB_B2C2_FLEXCOP) [N/m/?] (NEW) n
*
* Supported BT878 Adapters
*
*
* Supported Pluto2 Adapters
*
Pluto2 cards (DVB_PLUTO2) [N/m/?] (NEW) n
*
* Supported DVB Frontends
*
*
* Customise DVB Frontends
*
*
* DVB-S (satellite) frontends
*
ST STV0299 based (DVB_STV0299) [N/m/?] (NEW) n
Conexant CX24110 based (DVB_CX24110) [N/m/?] (NEW) n
Conexant CX24123 based (DVB_CX24123) [N/m/?] (NEW) n
Philips TDA8083 based (DVB_TDA8083) [N/m/?] (NEW) n
Zarlink VP310/MT312 based (DVB_MT312) [N/m/?] (NEW) n
VLSI VES1893 or VES1993 based (DVB_VES1X93) [N/m/?] (NEW) n
Samsung S5H1420 based (DVB_S5H1420) [N/m/?] (NEW) n
*
* DVB-T (terrestrial) frontends
*
Spase sp8870 based (DVB_SP8870) [N/m/?] (NEW) n
Spase sp887x based (DVB_SP887X) [N/m/?] (NEW) n
Conexant CX22700 based (DVB_CX22700) [N/m/?] (NEW) n
Conexant cx22702 demodulator (OFDM) (DVB_CX22702) [N/m/?] (NEW) n
LSI L64781 (DVB_L64781) [N/m/?] (NEW) n
Philips TDA10045H/TDA10046H based (DVB_TDA1004X) [N/m/?] (NEW) n
NxtWave Communications NXT6000 based (DVB_NXT6000) [M/?] (NEW) n
Zarlink MT352 based (DVB_MT352) [M/?] (NEW) m
Zarlink ZL10353 based (DVB_ZL10353) [N/m/?] (NEW) m
DiBcom 3000M-B (DVB_DIB3000MB) [N/m/?] (NEW) n
DiBcom 3000P/M-C (DVB_DIB3000MC) [N/m/?] (NEW) n
*
* DVB-C (cable) frontends
*
VLSI VES1820 based (DVB_VES1820) [N/m/?] (NEW) n
Philips TDA10021 based (DVB_TDA10021) [N/m/?] (NEW) n
ST STV0297 based (DVB_STV0297) [N/m/?] (NEW) n
*
* ATSC (North American/Korean Terrestrial/Cable DTV) frontends
*
NxtWave Communications NXT2002/NXT2004 based (DVB_NXT200X) [N/m/?] (NEW) n
Oren OR51211 based (DVB_OR51211) [N/m/?] (NEW) n
Oren OR51132 based (DVB_OR51132) [N/m/?] (NEW) n
Broadcom BCM3510 (DVB_BCM3510) [N/m/?] (NEW) n
LG Electronics LGDT3302/LGDT3303 based (DVB_LGDT330X) [N/m/?] (NEW) n
*
* Miscellaneous devices
*
LNBP21 SEC controller (DVB_LNBP21) [N/m/?] (NEW) n
ISL6421 SEC controller (DVB_ISL6421) [N/m/?] (NEW) n
DABUSB driver (USB_DABUSB) [N/m/?] n


  1. make
  2. make install
Now you only need to reboot your pc and there is a small orange light… You do it: congratulation! Now go in Kaffeine: play a little with the configuration menu and now you should be able to watch TV programs on your computer: cool isn't it. Of course before that I had some problem but if you have problem write a post and I will try to help you

Wednesday, August 30, 2006

Fairuse4wm

The Microsoft technology which restricts the use of the music on your computer was cracked: thanks to the free software FairUse4WM. I remind you that when you buy music on Napster, you cannot copy it freely, this restriction is due to a DRM (DIGITAL Rights Management). But the FairUse4WM software makes it possible to make away this protection only if your DRM reside in separated files… Some among us have an unlimited subscription of music (for a fixed bill per month, you can download music as much as you want), the music thus downloaded were protected by the DRM but with FairUse4WM, this will be several Go of music who will be soon on the Internet. Here to Download

SpiralFrog

This is a name about which we will probably speak a long time: SpiralFrog. This site is going to propose free music… Finally almost, the economic model of SpiralFrog is that you will be able to download or to listen to music but you will have to watch a lot of ads. A music on ITunes cost a little less than one dollar, that means that for each listened music, it will be necessary that advertisers paid at least 1 dollar… that will make of it advertizing of the popups and other unbearable tricks! But here is the problem, many browsers, in particular Firefox (moreover if it is only about visual ads, I remind to you that tabs will enable you to mask the advertizing while listening to the music), allow to filter this kind of ads… Will SpiralFrog then be directed towards a model requiring a interaction with the user of the kind: 3clicks on the button, returns the visual code that I show you and I pass from there"… There you will quickly be sick of all that. ; Me personally I want to see, I do not say that the economic model based on ads is not possible (it works very very well for Google) but it is risky… To follow with much attention…

Monday, August 28, 2006

Linux:: Blender and "Elephants Dream"

You probably know Google Video: this is an excellent animation film you can find on Google Video: Elephants Dreams




What is at stake with this small cartoon is that it was entirely created with free software: like Blender… Thus if you feel the heart of Tim Burton, enjoy Blender.
Regarding Elephants Dream, my opinion is that all the machine is in the head of the young person and that the old man is there to only try to maintain this beautiful machine. In fact he know that it can be realized only by maintaining the young person in the belief of the machine… If you have divergent opinions: leave a post; -)

Linux:: Perl and XML

I am learning Perl and its ability with XML,. Because the structure of my domcument is not too hard, I use:

use XML::Simple;
What I want is to generate an xml output. But it means I need to undestand how to create a Perl structure which can be translate in the XML I want... To do that, I make "reverse engineering" by using this simple script:


#!/usr/bin/perl
use XML::Simple;
use Data::Dumper;

my $xs = new XML::Simple(keeproot => 1,searchpath => ".",
forcearray => 1, keyattr => [key, tag]);
my $ref = $xs->XMLin("point.xml");
my $xml = $xs->XMLout($ref);
print "\nHash dump with 'keyattr => [key, tag]':\n";
print Dumper($ref);

print "\nXML output with 'keyattr => [key, tag]':\n";
print $xml;
exit;

Sunday, August 27, 2006

Linux:: Firelight an essential tool

You have probably already been in the situation where your hard disk is almost full and you can do nothing… Certainly… Or that will arrive to you soon… Or you are doubtless a maniac; -)
For the normal people: the problem which installation is to find which are the files which take too much place on the disc and if they are not important, to remove them if possible. It is quite tiresome to try to use the df, du and others ls -l. A solution more user-friendly consists of the Firelight software. Here some screenshots:
my general tree structure with all my partitions:
my /home repertory:
my repertory .kde, where it is noted that I have really many friends who write to me much… Not I laugh: a geek does not have friends, only ordis; -) While giving you a visual representation and extrèmement coloured your Firelight files will facilitate the life to you

Saturday, August 26, 2006

Linux:: Firefox and its extensions

If as me you use Linux and surf all the time, you will have surely notice that it is sometimes difficult to read some multi-media contents on Internet, as regards Flash No problem: it is enough to install the good plugin (you are automatically redirected towards him ; -)) on the other hand if you want like me to look at the news and that the plugin mplayer does not want to work here an extension which will return you one crowned service: MediaPlayerConnectivity. It enables you to open any contents (primarily multi-media flows) in an external application: Mplayer, Kaffeine, VLC… Another quite useful extension is fasterfox which enables you to accelerate the loading of the pages by maintaining a mask and by multiplying the requests. If as me you have beagle which turns constantly and which you do not like to leave too many prints on Internet and to keep your anonymity: instead of using the personalized search for Google, you can use Beagle To index which keeps in memory the sites on which you surf and those only for you… more problem of escapes of information such as it arrived or could arrive with Google, Yahoo, AOL and the others… Finally Blogger Web Comments which enables you to see what others wrote on the Web page that you are seeing, a must for all the bloggers, an essential tool to discover the blogosphere

Wednesday, August 23, 2006

Linux:: Xorg and Ati

I am using debian, the sid version and I have just upgrade... But it seems that there is a big issue with the new version of Xorg. When I try to launch the X server, it complains that the module ABI (0) doesn't match the server's version (1) . and after that it explained that it is unable to load the module ati. So now, I have no more Xserver: I have to do everything with the command line... Enjoy Linux Power

Monday, August 21, 2006

Linux:: Virtualization VmWare

I will speak to you about virtualisation but in an other field this time: virtual machines. It is not any more question this time of avatars and other tales of the Web. It is about true life and productivity… I have just learned that VmWare has just put its VmWare Server in free download. Qemu has to be very careful now. It could be well indeed that the availability of this tool makes it possible a number of Linux to be equipped out of virtual machines without all the annoyances and parameters with the command line, which Qemu requires. Either Qemu evolves/moves quickly and is provided quickly with a GUI of quality while on a certain ease of use while guaranteeing a perfect stability or Qemu will disappear with the profit from VmWare. I also think that VmWare saw the threat of the new technologies as Xen, bootcamp and Intel Duo Core…

IMVU

One more step in the virtualization of the human interaction: IMVU. We already know second world with its crazy stuff, but here if the site doen't lie it can be very exciting
From the site:
  1. Create yourself in 3D Imvu avatars are good looking, alive and fully 3D. Create your own unique look from 100,000s of clothes, hairstyles & accessories.
  2. Meet new friends online7512 people are using IMVU right now, 3D avatar chat is a safe and fun way to meet new friends from around the world.
  3. Have fun on IMVU IMVU is a community of people who love creativity, conversation and making friends. IMVU is packed with fun ways to express yourself.
I will try and post some pictures of my avatar ;-)

Is Amazon having a serious problem?

It seems that some hours ago, Amazon.com was down. Yes yes yes, you have well read: The site Amazon.com was down. It is amazing that such a big site like Amazon with probably a lot of servers can be down. The proof with a picture as always:

if you have any clue of what happend please let me a message

Farecast (beta)

If you want to travel by plane from one of the 50 biggest cities of USA to another: try this new site . It is called Farecast and permit you to see the evolution of the price for a ticket... You can see for example that for a fly from NY to LA, you can pay twice the price between july and august... But it not the best point of this site, in fact this site give you orevision of the future of the evolution of price: That is clever!