April 24, 2008

Off The Hook - 23 April 2008

Drew Stephens @ 11:36 pm — Tags:

This is the synopsis of Off The Hook that aired on 23 April 2008. The show runs live on WBAI at 7pm on Wednesdays. Call in at 212.209.2900 or send letters to oth@2600.com. The show is also available as a high-quality podcast.

In the studio: Emmanuel, Mike, Redbird, Redhackt, Not Kevin, Lexicon, Mojo from California, Al & Zach from North Carolina
On the phone: Bernie S in Philadelphia

There wasn’t a show last week because the show was pre-empted and there isn’t one next week; WBAI is having a Report to the Listener show during OTH’s time slot so listen in to hear about running a radio station.

Bernie S relates a Supreme Court decision concerning a man who was stopped for a traffic violation, arrested and, as part of the arrest, searched. The crux of the issue is that the reason for which the man was stopped was not an arrest able offense, thereby making such detainment illegal. As such, the state appeals court ruled that the pursuant search was also illegal a stance which was overturned by the United States Supreme Court, making the evidence collected during such a search admissible in court. In the case of Virginia v. Moore, the inventory search performed after the illegal arrest found illegal drugs and the evidence was used to charge Moore with crimes pursuant to those findings.

Another case concerning searches performed by border patrol for people entering the United States. The ruling made by the Ninth Circuit court states that border patrol agents need no suspicion to search persons entering the country at a border control station. Though the authority to search sans-probable cause has always been in place for border agents, the question of whether search laptops was also legal had been in question. Though it is still legal to encrypt data and refuse to divulge the encryption key, the concern of law enforcement officers simply seizing the device as evidence and delaying its return for months or years is brought up.

Bernie S brought up a very interesting combination of the above mentioned decisions wherein a law enforcement officer can illegally arrest you, such as in Virginia v. Moore, they may then search you and subsequently charge crimes based upon what the search finds.

The Australian government is exploring the introduction of laws allowing employers to read all of their employee’s company email in order to prevent cyber terrorism. In the United States, this is already the case since the owner of the network and computers, the employer, is the de-facto owner of all data upon them.

A council in England has employed laws meant to fight terrorism to put families under surveillance in order to ferret out fraudulent school placement applications.

As reported by Jane’s Police Review, London’s metropolitan police department is planning to equip all of their officers with microchips that will track their presence.

Israel says that Facebook is a threat to national security because soldiers and government employees post pictures of potentially classified material and equipment. Redhackt commiserates the desire to post pictures of oneself with interesting military hardware.

This weeks data loss comes from a New York Presbyterrian hospital that lost 40,000 records of patient names and social security numbers. Unsurprisingly, a spokeswoman fr the hospital says that there is nothing to show that the information has been misused.

Lexicon talks of the Not Our Concern Network Operations Center that will be in place at The Last Hope which he summarizes as a coat check for servers. Just reserve a spot and you can hook your box up to a big tube for the duration of the con. The con will also host a radio station for its entire duration. Named Radio Statler after the previous name of the hotel, the radio station is seeking people to help run it during the con weekend. If you want to help out with the con, or know about it, check out HOPE.net.

April 21, 2008

Auto-remove Old Items from The Trash in Mac OS X

Drew Stephens @ 1:37 pm — Tags:

Having a purgatory for files that are on their way to deletion, such as the trash can in Mac OS or the recycle bin in Windows, is a great idea, for even the most careful users occasionally delete something only to find that they later need it. Unfortunately, the two aforementioned implementations, as well as those in Gnome and KDE, only allow you to empty the trash all at once. Much more useful is to have a timeout where files that are sent to the trash are automatically removed after a period of time. I finally got around to implementing this myself in Mac OS by putting the following in my crontab:

0 5 * * * /usr/bin/find /Users//.Trash -mindepth 1 -maxdepth 1 -mtime +14 -exec rm -rf {} \;

Every day at 5 minutes after midnight any item more than 14 days old is delete from the trash can. To install it, read the linked article above or, if you know the command line, open a terminal, type crontab -e, paste the above (substituting your username) and save the file.

April 18, 2008

Multiple Variable Assignments with Perl’s Binding Operator

Drew Stephens @ 10:29 am — Tags:

I learned something new in the world of Perl regular expressions today when I came across this line:

 my ($foo, $bar, $baz) = $string =~ /(.oo)(.*?r)(.*?z)/;

The operative side of the line, $string =~ /(.oo)(.*?r)(.*?z)/ is a normal Perl regex binding statement - apply the regular expression /(.oo)(.*?r)(.*?z)/ to $string. What’s interesting is that the binding operator returns the things matched within the capturing parenthesis as an array, allowing you to assign them all at once, as demonstrated by the left hand side of that = expression. The above statement does the same as the more verbose:

$string =~ /(.oo)(.*?r)(.*?z)/;
my ($foo, $bar, $baz) = ($1, $2, $3);

Used in a scalar context along with the /g modifier, this is an easy way to count count occurences:

my $count = $string =~ m/\./g;

April 17, 2008

Taqueria Pancho Villa

Drew Stephens @ 5:16 pm —

Taqueria Pancho Villa

There’s a small chain of taquerías in the Bay Area called Taquería Pancho Villa. At the San Mateo location this evening I noticed a plaque commemorating the revolutionary general. I took picture of it and translated it when I got home:

In tribute to Pancho Villa (Doroteo Arango [Arámbula, his full name]) To 119 years of his birth (San Juan River, Durango) And 74 years of his death (Parral, Chihuaua) San Mate, California 1997

April 14, 2008

Changing CPAN Mirrors

Drew Stephens @ 7:24 pm — Tags: ,

I wanted to change the mirrors that CPAN was set to use because it seemed that the first one on the list wasn’t responding. I figured there must be a way to do this from the CPAN command line and indeed, a quick Google search turned up a result. To do what I wanted, I first printed the current URL list, shifted off the offending host and then wrote the altered configuration to disk for next time

cpan> o conf urllist
    urllist
        ftp://archive.progeny.com/CPAN/
        ftp://carroll.cac.psu.edu/pub/CPAN/
        ftp://cpan.calvin.edu/pub/CPAN
        ftp://cpan.cse.msu.edu/
        ftp://cpan.mirrors.redwire.net/pub/CPAN/
Type 'o conf' to view configuration edit options
cpan> o conf urllist shift
cpan> o conf urllist
    urllist
        ftp://carroll.cac.psu.edu/pub/CPAN/
        ftp://cpan.calvin.edu/pub/CPAN
        ftp://cpan.cse.msu.edu/
        ftp://cpan.mirrors.redwire.net/pub/CPAN/
Type 'o conf' to view configuration edit options
cpan> o conf urllist commit

To completely reconfigure CPAN, you can use the command o conf init.

Powered by WordPress