![]() |
IT
- architect |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| please select your language | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
28/11/06Too much good leads to bad (part 2)I wrote why too much tricks could leads to unexpected behaviors here. Facing some corrupted tar archive, some requirements are needed in order to repair them successfully:
Given my affinity for perl the choice was obvious. In fact perl fits pretty well in strings processing (scoop). #define TBLOCK 512 /* length of tar header and data blocks */ For the record I 'll put my code in a simplify version. Through trial&error it is necessary to expand the regular expression section to match all intruders.
my $file=$ARGV[0]; open (FH,"<$file") or die "Couldn't open file $file\n"; until ( eof(FH)){ On a last note, I would recommend using star as an improved version over many tar implementation including GNU tar and stock Solaris version.
Categories: , Solaris, 08:46:47 am274 words
Too much good leads to badEach cook knows it for sure, don't follow the "too much" path if you want to succeed. This rule can although be applied to computer. Take UNIX, it is a real cool OS. You can do art on the command line, piping tools together, using complex regular expression,... As a technogeek working on leading edge projects it might be ok but as sysadmin for a bank it is probably plain wrong. Just keep things simple. What's wrong with tar, gzip and nohup tar is used to create archive. It is a very usefull utility, well known and in UNIX for years. If you want to create an archive you provide a filename or a device where it will be create. After that you can compress it with gzip to save some space. Supposed you want to archive a lot of files, depending on I/O performance it can take hours. It is then a good practice to use nohup to stay imune to HUP signal. Put this 2 lines (tar and gzip) in a script, start it with nohup and you are fine...
Categories: , Solaris, 08:05:31 am359 words
Oops I did it againAs an aficionados of numbers, statistics and movement I worked with gnucash a lot. 2 months later Today I laugh about it but at that time it costed me a lot of gray hairs. Gnucash is one (if not the one) of the hardest software to compile. Internet attests it in a lot of places. I remember how funny some emails are, full of frustration and anger. It was a painfull process but I managed to compile gnucash in the version 1.8.6 and since I used it almost everyday. today Things aren't better from a software point of view. You still need slib, guile, a ton of old gnome 1.x libraries and packages. The gnucash developers didn't managed to create a gnome 2.x version due to short ressources (if you can hack C please consider getting involved). But there is some improvment from other fronts:
DTrace The best DTrace recipe I've saw so far and for me the most usefull is the one that reads every bytes landing in /dev/null. I urge the creator of this little gem to release it. Blastwave Really cool site for Solaris software. If you use it please make a donation. I've contacted them to maintain gnucash in the CSW tree and hope that you will soon (less than 2 months) find gnucash in the list of packages. Eventually I'll report on progress.
Categories: , Diverse, 08:00:00 am350 words
certifiedThe result arrived over the weekend and guess what I
Categories: , Solaris, 07:58:04 am113 words
L'angoisse de la page blancheGeorges Brassens says in one of his song one will always remember the first time you've hugged someone. Not sure if this apply to blogs. However, now that I have more control over my time (being no longer at Sun) I'll try to write down some of my thoughts. I choose a handful subject to ordonate my chaos but bloglines, for now, doesn't support classification. The last decade was spent in the Frankfurt area dealing with security issues at customer sites. It comes without surprise that my first blog reflect that. Something really clever when it comes to IT security is to use parallel to make your point. IT security is for most obscure. A good argumentation using common sense on well known subject will help on much case. Cars, castles, banks, towns architecture, evolution,...no limit to your fantasy.
Categories: , Security, 05:59:20 am376 words
27/11/06outetSince I work in the IT I 've always enjoy coding. I won't call me a developer nor an hacker and my opinion is what it is. But since my love is strong I've to shout it loud "Perl is my favourite" ! Yesterday I've to check my ~2000 lines of code because the interpreter failed with the error "too many right curly". I don't know how to do it with vi so I went with perl on the command line. The first invocation was: $ perl -n -e '$p++;print "$p";while (/(.)/g) { $a++ if $1 =~ /{/;$a-- if $1 =~ /}/; }print " $a\n"' jass_report.pl The last was: $ perl -n -e '$p++;while (/(.)/g) { $1 =~ /{/ ? $a++ : ($1=~/}/ ? $a-- : "")}print "line $p curly $a\n"' jass_report.pl After 5 minutes, the mistake was found. great. Somes reasons I like perl:
bbr
Categories: , Diverse, 09:23:36 am157 words
25/11/06backI'm back on this site because of a silly bug in blogger and I'm back from holiday in les gets. One reason I enjoy holiday in France is for the ability to find some food outside the big industrial chain. Local artisanat continue to fight mono culture and lost of flavour. We found a cheese trade la fruitiere. You will find hand made abondance, reblochon, tome de savoie and a lot more. All this are delicious. My tip is to eat young abondance at breakfast with bread and a good coffee!
Categories: , Diverse, 09:46:32 am92 words
|
cultural exception
SearchArchives
Syndicate this blog
What is RSS?
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||