On the same day where the leader of “La Linea”, organization responsible for the car bomb that killed two Federal Policemen and a paramedic. The Mexican government finds out that 17 killings committed in nothern Mexico last week, were perpetrated by hitman already in prisoned. Apparently the jailed hitman were allowed to leave their cells with weapons borrowed from guards of the actual prison.
References:
http://www.informador.com.mx/mexico/2010/221004/6/el-20-operador-de-la-linea-tras-las-rejas.htm
http://articles.latimes.com/2010/jul/25/world/la-fg-mexico-killings-20100726
Archive for July, 2010
Lawlessness in Mexico
Jul 26
Charles Bowden interview
Jul 19
Charles Bowden is a very smart person, but comparing the Mexican Drug War to the Vietnam War is absolutely ridiculous. In Bowden eyes, “It’s turned into a War by the Mexican government against the Mexican people”.
According to United Nations organized crime adviser Edgardo Buscaglia, Mexican cartels need to be stop being categorized as drug organizations as the DEA wants them to be, for their very own self-interest as their simple existence to fight drugs. Throughout Mexico, these criminal organizations also commit 25 other types as crimes, such as kidnapping, extortion, etc… In it’s true sense, the “War on Drugs” is a failed US policy thats been going on for over 40 years while the Mexico is dealt with its very own war against organized crime which morph from the failed US policy.
What’s in my bookshelf?
Jul 17

I finally finished reading my second book on Perl. Unlike Apress’ Beginning Perl, Learning Perl 5th Edition by Randal Schwartz, Tom Phoenix, and brian d foy is not a book for someone new to programming.
With a solid understanding of dynamic languages like PHP and Ruby, I found most of the material covered on this book very comprehensive, thus said, at times I found myself re-reading portions of the chapters just to understand concept the authors were trying to cover.
For the most part, I read this book jointly with Apress’ Beginning Perl and I found this book to have more practical real word code examples (at least if you’re a sysadmin). The most notably difference on how this book was written for someone who is new to programming with Perl, but to not new to programming are the three chapters the authors dedicate to regular expressions.
Chapter 1: Introduction
Chapter 2: Scalar Data
Chapter 3: Lists and Arrays
Chapter 4: Subroutines
Chapter 5: Input and Output
Chapter 6: Hashes
Chapter 7: In the World of Regular Expressions
Chapter 8: Matching with Regular Expressions
Chapter 9: Processing Text with Regular Expressions
Chapter 10: More Control Structures
Chapter 11: Perl Modules
Chapter 12: File Tests
Chapter 13: Directory Operations
Chapter 14: Strings and Sorting
Chapter 15: Smart Matching and given-when
Chapter 16: Process Management
Chapter 17: Some Advanced Perl Techniques
Chapter 14 Introduction to CGI
Chapter 15: Perl and DBI
I would only suggest this book to someone with a solid knowledge of another scripting language.
Learning Perl, 5th Edition
3/5
Speed up shell scripting
Jul 8
Once again the book Practical Ruby for System Administration by Ben Hamou taught me some pretty clever Ruby sysadmin scripting tricks.
One of the scripts that the author used was to automatically populate the path to the Ruby interpreter, update the permissions to 755, and open the script in vi, all during the same process.
I took that same concept and enhanced the script to also auto populate the settings if the scripts is written in Bash, Perl, PHP, or Python.
Download rnew.rb
-Copy rnew.rb to somewhere within your system PATH.
cp rnew.rb /usr/local/bin
-This should give the ability to use rnew.rb from anywhere you’re working on.
rnew.rb koolscript.php
-Happy Hacking
I recently purchased the book Practical Ruby for System Administration by Ben Hamou and one of the cool Ruby one-liner command line expressions is one that mimics the watch command.
ruby -e 'system "clear; df -h" while sleep 1'
Just like the author, for quite a while I’ve been kind of annoyed by the fact that Apple doesn’t include this really useful command line utility. So inspired by the one-liner script, I hacked a small watch command line alternative for OS X.
Download watch.rb
sudo cp watch.rb /usr/local/bin
wacht.rb ‘UNIX command‘
