May 27, 2006

Foule de fer, man!

Catégorie: Carnets francophiles — Michel @ 12:47 pm

J'aime ça les chmus. En fait, je ne déteste pas les trucs chmuteux (pour utiliser l'expression en règle dans ma maison), donc crème de blé, gruau, semoule, etc. Bref, tout ce qui finit par ressembler à un blob insipide. Pas que je me pâme sur ces derniers, mais simplement, pour moi, c'est un choix tout aussi équitable dans un repas qu'un bol de céréales ou une toast, ou que du riz pour le soir.

Je suis ici pour vous parler d'un de mes chmus, la crème de blé. J'achète la version 29402e+9999 minutes de cuisson et je l'aime bien en général. Je ne porte pas nécessairement attention à la boîte, eh bien ce matin, je l'ai fait.

"Une excellente source de fer", qu'il est écrit sur la boîte, en gros. Et bien entendu, dans les ingrédients: Farine de blé, germe de blé, phosphate ferrique (source de fer).

Ouaouw. Oké moi aussi je pourrais faire des cannages qui sont aussi des excellentes sources de fer… ou on pourrait faire des olives farcies et garrocher du phosphate ferrique dedans et dire que c'est une excellente source de fer. Ou encore, pourquoi pas, prendre de la melasse, qui est supposé être une excellente source de fer et en faire une encore plusse bonne source de fer.

Je te jure. On peut pas avoir un truc simple qui n'est pas modifié pour faire plaisir aux gens du marketing? Sioux plaît?

May 25, 2006

Sony's on-line slaughtering

Catégorie: English blog — Michel @ 10:37 am

Again, this has to stop someday. I mean, this massive media slaughter is fueled by something that's for sure. Since E3, people started to see red and waving angrily at Sony… come on.

First there is the very boring presentation. They showed games, they showed stuff we all knew, figures we all saw. Then the big announcements of the day were all diffused, sounding all like dud bullet shoots. Then there are faux pas everywhere.

Let's face all the criticisms as I saw them coming in.

The price tag is too high. Wrong. Very wrong. Everyone everywhere knew they would have to drop pants and bend over to get next gen console from Sony, like they had to in order to get the premium 360, and it even includes the Blu-ray, something the 360 doesn't have.

Just look at the Blu-ray drive. If you want a Blu-ray player, you will have to shell out some impressive amount of dough, from 1K$ to 1.8K$ according to the official Blu-ray site. So for a few hundreds (up to more than a grand) less than a standalone drive, you get a next-gen console too. And that's even counting Sony's own Blu-ray player.

So everyone's expectations were the price tag would be high, the player itself is high, the technologies involved in creating such beast are high, nothing here worth even noting, worst case, we should be happy the price tag is not higher.

Sony are copying the Live model from Microsoft. Wrong wrongity wrong. What are you expecting again? To have something so novel that it'll be a total new Internet, hey there won't even be wireless and no blue cable and from a satellite dish included in the system, you'll be able to connect to everyone anyone freely? There are not 2000 ways to create online gaming possibilities. There's the free one (Nintendo), the subscription ones (PlayOnline, 360), the online purchase models (Yahoo! Games, …) and there are the ones where you can buy everything and anything directly (MSN). Anything you want to do will fall in one of these models.

There are features you can add, like messenging, friends list, ability to manage these from a computer, identification, discussion, e-mail, blogging, but again, these are all available on a modern PC, on modern Internet (please don't talk about Web 2.0), and I don't think they even can reinvent the wheel on these. So it's bound to look like the Live model.

Sony are copying the features of the Wii remote. Well… maybe a little bit. But let's face it. Their superb 3d-rendered artistic controller would probably fit better in some art gallery than in the hands of people. We are used to PS controller, its weight, the way it feels. Changing it would require a lot of involvement from people. Why change something that's not broken? But then, you have to give something to people… And hey, Nintendo did have a good idea there, so why not fit one in our controller? I think the thought was to fit one more feature there, add up some wireless, and here you go. However, off you go with the vibration, but that I could've predicted after the Immersion lawsuit, saying that with or without merit for these frivolous lawsuits, but it's still there. So while pondering about that (back then Revolution) remote, I am sure they got the idea that it would be controlled by some accelerometer and said they could fit one in their own solution.

I am not so sure, though, that I want to use that controller to move around. I'm one heck of a mobile player, as people who saw me play know. If I have to remain stable, I will probably break my own leg in frustration.

There won't be HDMI on base console. That's a big mishap. PS3 is all about being next generation and High Definition. All the videos we are shown are in high-def. The console smells, oozes, feels, needs HD contents. Of course, there will be HD contents, using the trusty component cables. I'm sure you will be able to play the games using your Y Pr Pb cables and it will work wonders. But Blu-ray will be strongly limited to potentially low-definition. Remove everything you want from the console, but please puh-lease, leave the HD there. Again, it's all about costs, and the cost involved in the HDMI licensing is probably very steep… hence even if the chips are all there and cost pennies to produce, the protocol and license must be a very high price to pay, per console. But then, that's not my problem.

Licensing will disallow selling back the games. That's even oh so more wrong I can't seem to put an end to it. I buy all my games. I lend them to my friends, and they give them back to me, hopefully in one piece (never had a problem so far). Some people go rent the games, try them and if they like, they buy. On my side, I wait for them to do rent and comment, and I ask my favourites clerks what's the best games of the month, then I pick from the winners. If I am not allowed to sell the games, or if I am not allowed to lend my rightfully bought games to my friends, or get a game from their stash to try it out, I will not buy them, plain and simple. Even if it's the latest Square. I can do with my 100$ in my wallet, thank you, I have other uses for it and if it's a pain to buy a game, I will not. And if no game, no console. But then, licensing is only licensing. And people will lend and sell and do whatever they want with it, there will probably a big lawsuit and Sony will probably retract from this very bad idea altogether.

All in all, there are reasons to buy in Sony's bashing… But these are not the same ones than people usually are giving in their conversations, and it should not resort into plain vanilla Net bash, simply a slight inconvenience and should be sent back to Sony for "comments". The price is OK, base console will be HD but probably not movie playback, it is a good idea to have the "usual" controller and might be useful to have the gyro there. And licensing might be only that: licensing… if it's software with key and stuff, then it's really bad and people will not buy into this, especially when people have alternative with XBox 360 or Wii that are key-less and restriction-less.

Now, can we please have a decent conversation on the topic please?

J'ai rien à dire

Catégorie: Carnets francophiles — Michel @ 6:34 am

Amis: Michel, avoir rien à dire, bwahahahahahah!
Michel: Ben oui mais là laissez-moi une chance d'expliquer.
Amis, toujours morts de rire: C'est ça c'est ça … *tape sur les épaules*

Non c'est vrai, j'ai rien à dire. En fait, un article de journal m'a fait réfléchir récemment sur les comment et pourquoi je blogue. La journaliste stipule que c'est pour s'exprimer, donner son opinion, et être pris au sérieux. Je crois qu'elle n'a pas compris l'ampleur de phénomène, et surtout la diversité de la faune blogosphérique (ish, y'es 6h du mat', un effort, Michel).

Dans mes groupes de blogues, et dans le Yulblog, par exemple, vous allez retrouver plusieurs styles. Il y en a qui entretiennent un blogue pour effectivement pousser leurs idées politiques. D'autres, ils veulent donner leur opinion sur un sujet et le faire entendre. D'autres sont en quête de visibilité parce qu'ils en ont besoin, soit par égo, soit par travail. Quelques uns ont aussi besoin d'un contact semi-humain. Il y a ceux qui s'en servent comme agora de discussion avec leur groupe d'amis. Quelques uns s'en servent comme journal personnel. Finalement, certains ne démordent pas d'un sujet… mais j'en passe.

Pour moi, mon blogue, c'est moi, et c'est pour mes amis. Bien franchement, fuck it si ça ne fait pas plaisir à toute la planète. J'ai perdu tous mes anciens articles récemment, mais je ne m'en porte pas plus mal, pour moi ce n'est pas comme si j'avais perdu ma vie, en fait, j'ai juste perdu quelques centaines de milliers de mots, rien de plus rien de moins.

J'ai donc trois façons d'écrire. Soit pour gueuler sur un sujet quelconque, tenir au courant mes amis de divers sujets; soit un sujet d'intérêt local ou un texte d'opinion un peu mieux chié que d'habitude, dans ce cas je vais publier sous Yulblog; soit un sujet d'intérêt spécifique, dans ce cas je m'assure d'avoir des mots clés que les aggrégateurs peuvent bien cerner.

Mais je ne cherche pas les liens, les groupes (Yulblog est l'exception à la règle), les échanges de liens, d'envoyer mon site à travers le monde, j'en ai pas besoin. Je ne cherche pas non-plus à avoir un auditoire assidu et fidèle, certains lisent mes propos et j'en suis bien content, et j'écris pour eux un peu… mais je ne cherche pas à faire dans les sujets d'actualité ou à envoyer les nananes qui feraient plaisir à tous.

Je sais c'est quoi qui ferait plaisir, je saurais quoi écrire pour aller chercher des auditoires plus fidèles, je pourrais sérieusement aller chercher dans le millier de lecteurs sans même faire un pli. Mais je ne le cherche pas. Je suis un programmeur, je me tiens dans l'ombre de mon produit. Si mon produit se porte bien, je me porte bien. Même envers la critique, je vais rester content de mon produit. Je suis un ingénieur de son, je me tiens dans l'ombre de l'Artiste. Si l'Artiste fait un bon spectacle, je suis content. Et je ne suis surtout pas ninja! Moi passer inaperçu? Are you kidding me?

Et vous, pourquoi vous bloguez? Posez-vous la question quelques jours… ça vaut la peine de se faire un petit examen de conscience de temps à autres.

May 24, 2006

Vive les câblés

Catégorie: Carnets francophiles — Michel @ 6:04 pm

Ah misère … un autre "rant" en devenir.

De 8h57 à 17h, je n'ai pas eu Internet. Raison: un petit copain a décidé qu'il voulait s'amuser sur notre poteau et s'y connecter. avec infiltration d'eau dans le splitter, ce qui veut dire dégradation progressive du signal depuis quelques mois… et ce matin, -20dbm, c'était trop peu alors, le néant.

May 23, 2006

Félicitations au Monténégro

Catégorie: Carnets francophiles — Michel @ 3:57 pm

Depuis quelques heures, le Monténégro est désormais un nouveau pays, séparé de la Serbie. Félicitations à ce pays qui lui a des couilles. D'ailleurs, ils voulaient passer de .yu (Yugoslavie) à .cs (serbie-croatie) mais ils n'ont pas eu le temps de réaliser le changement, qui est rendu dorénavant un brin inutile. Je me demande ce qu'ils vont prendre comme 2-letters. .mn est la Mongolie, .mo est Macau, .mt est Malta, .ng est Nigeria. Ça va mal à couche-ville dans l'iso 3166 ;)

(Voir l'article de Radio-Canada)

Windows XP: Anti-virus and anti-spyware

Catégorie: OS Tricks — Michel @ 3:41 pm
“My computer is slow”“It takes five minutes to start my computer”

“I need to upgrade my computer”

All things I heard about computers from people I know… mostly Windows. I want to give a few tricks to make sure you are running ok. Note that I assume your system is legit, if your Windows is copied, you might run into problems and I don’t really care about your mishaps. Buy your software!

First, left-click Start, right-click on “My Computer” and to the bottom of the menu, left-click on “Properties”. In the window that appears, look at how much RAM you have. If it’s in gigabytes (Gb), you are fine. If it’s in megabytes, you better have 512 or more. If not, that’s your first pit stop: bring your computer to your local repair shop and ask to have up to 1 gigabyte of RAM (more is sometimes useful but not for Mr. Everyone). If you have 256, it should run kind of fine, if you have less than that, here’s your problem. Don’t even think about changing your computer unless you give it a fair chance. You can cancel that window.

Second, make sure your system is properly updated. That means going to Start menu again, “All programs”, and look at the upper-left part of the window. If you see “Microsoft Update”, you are in luck. Click it. Go through all the loops and hoops that they say is required. It might take some time, and might ask for reboots. Do the quick update. If you are asked to update some things, do so, reboot, then do it again, until they say you are good to go. If you only have “Windows Update”, that’s not bad, simply less complete. Click it. Go through all the loops and hoops, same thing.

Third, you need some anti-virus. If you have the choice, Norton Anti-Virus is the most complete, however it’s expensive and does take a lot of computer juice. If you do not have a solution right now, you can see that part by going to Start Menu (again), Configuration Panel, Security Center and see if you have the anti-virus protection activated (Green light), consider using a free one, like Grisoft AVG Anti-Virus Free Edition (link opens a new window). It has no pop-ups, it has no major annoyances and it is easy to install. Simply press “Get AVG Free”, go down the window and download the file there, with the cryptic name ending with .exe. Say you want to execute it, follow up installation, and do a first preliminary virus check. If a virus is found, that might mean game over, that you have to reinstall Windows. Normally no, but sometimes it happens. Another possibility is Avira AntiVir PersonalEdition Classic (new window)… again a very good solution, reputable. The key here is reputability, will you use some anti-virus or anti-spyware that spams everyone simply because they say so? It might even be a spyware itself!

Then, speaking of spywares, you need to remove these pesky spywares that must clog your system. Many good reputable solutions exist, like Ad-Aware Personal (new window). I personally enjoy using Spybot Search&Destroy (new window). Do download the latter, choose your language, press Download, in the Download section below press Download here to the right of the software, then choose a mirror… I personally never had a problem with BN FileForum, so press Download here to the right, finally press Download Now to the right of the window. Execute immediately, follow instructions do a first scan. There will be problems, for sure. They might be simply cookies, but they might be bigger problems. You might again have to reboot, even multiple times. The system might even not be able to clean all of the pests. Then, another game over, and please reinstall Windows. Once it’s done, start the software again and inoculate against all threats.

Last part … Install Firefox (new window) as a default browser. You might like Internet Explorer but everyone tries to attack IE by all possible means. Most web sites support Firefox so why not. You can also go with Opera (new window) as it’s very good, quick, efficient and has nice features. All in all, it’s a matter of taste. However, what’s not a matter of taste is the security issues on Internet Explorer. Sad but true.

Now your system is theoretically clean, it is protected, it has everything you need. Now the cleanup part. Start menu, Configuration panel again, Add/Remove Software. Wait for the list to appear. Then, you are free to remove almost anything and everything that is in this first pane. The exceptions are everything that has the following words in it: “ATI, NVIDIA, Intel, VIA, Drivers, Update, Service Pack”. Use your common sense, if you remove Realtek AC’97 Audio (for example if you have that installed), you will not have sound on your computer anymore. Worst case, if you are unsure, Google the term.

If nothing works, maybe you computer is really too old. Maybe it really needs a good “Spring cleaning”, where you reinstall everything from scratch. Yes, you lose everything, but at least you are totally sure you really need a new computer before doing useless expenses.

Howto: Linux quick shell backup

Catégorie: OS Tricks — Michel @ 3:41 pm
Backups, you need them. Oh yes you need them. Better safe than sorry. You got two computers? One to backup and the other one accessible via FTP? Then you can do a backup.

What you need? A shell script, ncftp for FTP transfer, perl (in shell arguments) and tar.

For sake of completeness, FTP is not safe and can be intercepted, it isn’t as fast as other protocols, but it has the main advantage to be there and available. Same for tar, even with -z, you could do better with bzip2 for example, but it has the immense quality of being always there. Why ncftp? Because it tries a few times. Yes, you can do better and faster but this is simple to understand. Oh and the passwords are in plaintext, yes you can do better.

Again, pleasie-no-copy-paste, as wordpress changes characters. You need to type back everything or know what you’re doing.

Here is the shell file to use. First, you need to create a folder in /root named “backup”. This assumes you are root of course. You can always put ~/ instead of root. The best place to put this is also in one of the /etc/cron.* folders, daily if you can, monthly is better than nothing, yearly, well, what’s the point. Or you can call it in standalone.

myfile=/root/backup/backup.$(date -I).tar.gz
startbackupat=2005-01-01
touch $myfile
chmod 600 $myfile
cd /
nice tar -czf $myfile --newer $startbackupat home var/spool/mail > /dev/null
ncftpput -u MyFtpUserName -p MyPassword -DD host.example.com FolderToPutThisIn $myfile

That’s it! Now, this is made for Fedora Core, and tar has the very bad habit of being different depending of its brand, so you will need to tweak it if you’re not using FC. Even there, you want to change “home” and “var/spool/mail” for something else I’m sure of it. Or maybe add to these two lines, don’t forget, you can put many many lines there.

This will backup all files starting at 2005-01-01, and create files named backup.THEDATE.tar.gz, using a low-priority process (hence the “nice” before), transfer it using ncftpput, and delete the file automatically once it has been copied (the -DD option).

If you want to start the backup at the time of a file, you can use the following line: startbackupat=$(date -r /root/backup/anotherbackupfile +'%Y-%m-%d') (hint hint, that does incremental if you tweak it enough).

If you want to backup your mysql database, add the following lines before the tar line:

touch /root/backup/mysql.dump
chmod 600 /root/backup/mysql.dump
mysqldump -A -f --password=MySqlRootPassword > /root/backup/mysql.dump

Don’t forget to add the file in the tar line (simply add root/backup/mysql.dump before the > )

And I suggest you delete the dump file after its copy (next line after tar: rm /root/backup/mysql.dump)

Why the touching of file and chmod? To be a little bit more secure, don’t forget anyone getting this file would have access to your full backup contents, probably the most sensitive info you got. That’s also why I haven’t used /tmp to put the files.

What else. You can put --exclude lines in your tar line. For example, if you want to copy all your files except one folder, you would use --exclude='home/pr0n' and it will not copy that folder.

Like I said, this is very crude backuping system. It is not meant to replace a full-fledged system but it works well and doesn’t take a genius to understand, hence it doesn’t take a genius to tweak.

How to save iptables ;)

Catégorie: OS Tricks — Michel @ 3:40 pm
Iptables tables are located in /etc/sysconfig/iptables in Fedora Core.

As root, you can use the iptables-save command like this:

  • iptables-save > /etc/sysconfig/iptables

And your precious iptable will be secured.

How to limit attack attempts in Linux

Catégorie: OS Tricks — Michel @ 3:40 pm
These days, there are gazillion of zombie drone computers whose only goal is to try out passwords on your poor little server. Usually, they will start tons of connections with random passwords attempts until they find a good one. Although you could ban these forever, you can always simply hinder their progress by limiting the number of trials they can do in one minute. Using this iptables chain, you can limit to 3 tries per minutes, then their connection will be dropped for a good minute. Usually, this piss them off and they will look elsewhere.The iptables is the following:

ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN limit: avg 3/min burst 3
LOG tcp -- anywhere anywhere LOG level notice prefix `[RATELIMIT] '
DROP
(or reject) tcp -- anywhere anywhere

And you create it using these lines:

iptables -N ratelimit
iptables -A ratelimit -p TCP -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A ratelimit -p TCP -j ACCEPT --syn -m limit --limit 1/minute --limit-burst 3
iptables -A ratelimit -p TCP -j LOG --log-level "NOTICE" --log-prefix "[RATELIMIT] "
iptables -A ratelimit -p TCP -j REJECT (or DROP, the difference being REJECT gives instant information to the user the system does not accept your connection, while DROP simply drops the request, leaving the original system in the dark. I prefer DROP but for debugging and to get a valid feedback from your users, it’s better REJECT as they will nag you “the system rejected my logging!”)

(Update: Thanks to Mike, modified –limit 3 to 1, it reflects what I am saying best)
And finally, you need to connect this iptable chain to the ssh protocol (the most used for passwords attacks these days) or telnet, or any other TCP protocol you know is being attacked (no, web doesn’t work and e-mail is not a good idea ;) )

So if you have a iptables line to accept ssh protocol as destination port, modify it to call the chain instead. For example:

iptables -L INPUT (this will show the list of current input filters - count the number of lines up to the ssh line, starting at one for the first line. If you don’t have a line specific to SSH, consider adding one, you simply don’t have to -D the previous one, but then it’s a totally different topic so you’re on your own ;) )

iptables -D INPUT linenumber (this will delete the line “linenumber” from the table)

iptables -I INPUT linenumber -p TCP –dport 22 -j ratelimit (this will add the new line “linenumber” to the table)

Then, verify with another iptables -L INPUT and if everything is fine, you should have a rate limiting system in place! Save it and you’re done.

I still suggest you do all this with Webmin, the only detail being the --syn is replaced by “TCP Flags equals SYN out of SYN, RST and ACK”.

Remember: do not copy-paste the lines from my site, Wordpress changes the accent characters like the quotes!

How to get stuff in Linux

Catégorie: OS Tricks — Michel @ 3:40 pm
To get files from FTP or HTTP in Linux, there are many small useful tools you should have on your computer.

First, you need either apt-get (debian), up2date (red hat), fink (darwin) or yum (independant). For ease of use, I suggest you install yum but that’s up to you. I will give the examples using that one.

You need the following files:

  • ncftp, to retrieve stuff in FTP using the ncftp command. yum install ncftp
  • lynx, to retrieve stuff in HTTP using the lynx command. yum install lynx
  • wget, to retrieve stuff either in FTP or HTTP using the wget command. yum install wget

Once you have these tools, you are free to go. If you require a file that’s on a web page, and you know the file is a direct link, use the following command:

wget “http://www.example.com/myfile.tar.gz” . Don’t forget the quotes, or else if you have a weird character in your string, you’ll execute commands. You can use wget to get files from a FTP server using the same principles.

The two other tools are harder to use, ie: not one-liners. You can get a ftp file from ncftpget the same way you use wget, or you can get a http file from lynx the same way you use wget again. Then, if you want to get a file from a ftp server using the good old FTP protocol, you type ncftp, the server name and you move around in ftp. Same for lynx, you type an address and you’ll have a text-only web browser.

» Dans le passé »

Engin: WordPress - Modèle créé par Michel Donais.

Contrat Creative Commons
Cette création est mise à disposition sous un contrat Creative Commons.