Warning: include_once(/home/nullvoid/blog.mikezhang.com/wp-content/plugins/wordpress-support/wordpress-support.php): failed to open stream: Permission denied in /home/nullvoid/blog.mikezhang.com/wp-settings.php on line 217

Warning: include_once(): Failed opening '/home/nullvoid/blog.mikezhang.com/wp-content/plugins/wordpress-support/wordpress-support.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/nullvoid/blog.mikezhang.com/wp-settings.php on line 217
NullVoid » 2005 » October » 04 NullVoid » 2005 » October » 04

Archive for October 4th, 2005

Little By Little

Tuesday, October 4th, 2005 -- By ET

harveydangerHarvey Danger has just released a new album.  Here is a sample song from the album:


I learned about this through a friend who saw this got slashdotted.  I seldom listen to rock music, because I need to concentrate on readings most of the time.  In addition, rock music is not the type for my office.  I don’t want Professor Malone to knock on my door to complain.  But this album is very nice, without the free download, I would have never come across this band. 

In his blog, Jeff Lin, wrote:

Record labels will cling to and fight for old models because that’s all they know (and change is always frightening). But there’s no reason why artists should be limited to just that model. Part of this experiment is to see/demonstrate that doing things in this manner can work, that it is a viable option — both artistically and economically.

I hope they can be successful, not just because of the great music, but also because of the big leap in faith.

I have done some research on music distribution in late 2001/2002, I dropped the project because the technology was not ready for big changes.  I even had a proposal of distributing music through P2P framework.  I can see that some music labels are experimenting some similar ideas.  These are all very encouraging, maybe it is time to look again at this issue now…

There are quite a few models out there to experiment “selling” “free” content online.  In 2000, Stephen King released a few chapters of his novel and said if he can get enough payment online (on average $1 per download), he will be releasing the rest part.  He did not get enough money in the end.  Recently, there is an online game design website that released a very well designed game system (a 6-page manual about how to play the game).  They did it because they have received enough donation (about $600, as I can remember), they will be exploring that model in the future for their future releases.  (they call it ransom model http://www.danielsolis.com/meatbot/)

To me, these types of pricing model are destined to fail because people like to free ride.  They give no incentive at all for people to pay the money. 

Harvey Danger’s experiment is different, though.  I certainly believe that there will be people donating money (it is much easier to donate small amount of money now than about 5 years ago).  But I doubt the donation would ever cover the cost ($30,000).  The real value should lie in the word-of-mouth associated with the release of the album. 

deleting a list of files

Tuesday, October 4th, 2005 -- By ET

Suppose you have a dirctory of thousands of files, you need to delete some of them.  If the filenames are sufficiently friendly, you can do it easily with a command line.

For example:

rm *.old or rm old*.zip

But, consider this case: files are named with the date they were  generated and there are two types of names

  1. those look like file20051002.zip, and
  2. those look like filemini20051002.zip

Is there a way to only delete the files with "mini" within the filename?

It is not hard to get the list of these files, in linux, it is simply:

ls | grep mini >listfile

Searching in google, I found a linux command called "fastrm" that does delete all files in the list "listflie", but I don’t have it in my Redhat Enterprise Server 3.

So I wrote the following script to do that:

 open (FILE, "< listfile");

while (<FILE>){
close FILE;

 Now it is very easy to delete files in the list:

 the command is : ls |grep mini>listfile; perl rmlist.pl;

You are visitor number several since September 1, 2001

Copyright Xiaoquan (Michael) Zhang, 2004-2020. All rights reserved.
All trademarks property of their owners.