Welcome
 

Soviet-like antipiracy campaign targeted at kids in Mexico

Wednesday, October 1st, 2008 Write a comment

vendetta image by hawken.dadako on flickr
The mexican newspaper El Universal published a contest for kids sponsored by IMPI (the organization that in charge of “intelectual property” and patents in Mexico) which invites kids to report to the IMPI for any “piracy” acts their parents, teachers and friends do.

Gunnar Wolf sent an open letter (in spanish) to the newspaper and the chairman of the IMPI about the concerns and attrocities this campaign is doing on kids and society in general.

This technique of making society turn into itself by spying and reporting on each other is a well known tactic used by the Soviet Union (and now in USA). We must not tolerate this kind of education on kids.

Vendetta image is creative commons by hawken.dadako

Popularity: unranked [?]

Share:
  • Digg
  • del.icio.us
  • Technorati
  • Reddit
  • StumbleUpon
  • Slashdot
  • BarraPunto
  • Facebook
  • Meneame
  • TwitThis
  • LinkedIn
  • Pownce
 

PHP syntax check as you type with Emacs

Thursday, July 31st, 2008 Write a Comment

For those who have to code in PHP, there’s a nice feature in Emacs that makes your coding horror times less stressing and helps you avoid typos and similar dumb errors.

Emacs 22.1 comes with flymake mode, a nice tool that makes syntax checking while you type out the file by highlighting the lines with errors and displays the error messages.

You can enable flymake to check PHP syntax by adding the following code on your .emacs or whatever Emacs customizations file you use:


;; Flymake PHP Extension
(require 'flymake)
(unless (fboundp 'flymake-php-init)
(defun flymake-php-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "php" (list "-f" local-file "-l")))))
(let ((php-ext-re "\\.php[345]?\\’”)
(php-error-re
“\\(?:Parse\\|Fatal\\) error: \\(.*\\) in \\(.*\\) on line \\([0-9]+\\)”))
(unless (assoc php-ext-re flymake-allowed-file-name-masks)
(add-to-list ‘flymake-allowed-file-name-masks
(list php-ext-re
‘flymake-php-init
‘flymake-simple-cleanup
‘flymake-get-real-file-name))
(add-to-list ‘compilation-error-regexp-alist-alist
(list ‘compilation-php
php-error-re 2 3 nil nil))
(add-to-list ‘compilation-error-regexp-alist ‘compilation-php)
(add-to-list ‘flymake-err-line-patterns
(list php-error-re 2 3 nil 1))))
;; add php flymake support
(add-hook ‘php-mode-hook (lambda () (flymake-mode t)))

Its very nice to have on the fly syntax checking.

Popularity: 3% [?]

Share:
  • Digg
  • del.icio.us
  • Technorati
  • Reddit
  • StumbleUpon
  • Slashdot
  • BarraPunto
  • Facebook
  • Meneame
  • TwitThis
  • LinkedIn
  • Pownce

DRM chat at Unitec Monterrey

Wednesday, July 23rd, 2008 2 Comments

Last week I was invited to talk at the Unitec University in Monterrey about DRM and copyright, of course, applied to mexican law. Which is interesting since the mexican law allows for people to have a copy of a work for personal use only. This means P2P and basically all forms of file sharing are allowed.

This is the first time I talk about this topic. Even though I’m very passionate about it, I think I still need to learn a lot on how to deliver the right and complete message. Fortunately I recorded the whole chat on video (video coming soon) and will improve for next time. On the good side, everything got cleared up during the audience questions.

The public’s reaction was interesting. A lot of people there were surprised when I mentioned GNU/Linux and open source software. Others, for some strange and bizarre reason, insisted on me giving them advice on antivirus software and providing them with serial numbers for their software. No, I never mentioned or endorsed the use of unofficial (or cracked) serial numbers for their software. I don’t know where this guy got this idea from me.

But it keeps surprising me the fact that, every time I talk about software freedom, there’s a lot of people that didn’t have a clue that they have a choice.

Popularity: 3% [?]

Share:
  • Digg
  • del.icio.us
  • Technorati
  • Reddit
  • StumbleUpon
  • Slashdot
  • BarraPunto
  • Facebook
  • Meneame
  • TwitThis
  • LinkedIn
  • Pownce