Sunday, January 31, 2010

iPad use possibilities

Non 3G Version
  1. eBooks
  2. ePrint outs (Map direction)
  3. Digital Photo Frame
  4. Replace Portable DVD Player
  5. Replace netbook
  6. skype phone
  7. Portable Internet Browser
  8. Product presentation in exec room / coffee shop
  9. Keynote speaker/teleprompter
  10. larger screen for video camera/ on location editing
  11. Music player
  12. Instant ON can replace laptop - check email
  13. Multi touch - for artist/painters/ white boarding
  14. Travel kit - replacement for laptop

Sunday, January 10, 2010

perl JSON API http

  1. sudo perl -MCPAN -e 'install JSON'
  2. sudo perl -MCPAN -e 'install JSON::XS'
  3. sudo perl -MCPAN -e 'install WWW::Mechanize'
http://beerpla.net/2008/03/27/parsing-json-in-perl-by-example-southparkstudioscom-south-park-episodes/



#!/usr/bin/perl -w

use strict;
use JSON;
use LWP::Simple;

fetch_json_page("http://www.crunchbase.com/v/1/company/yousendit.js");

sub fetch_json_page
{
my ($json_url) = @_;
eval{
my $content = get($json_url);
my $json = new JSON;

# these are some nice json options to relax restrictions a bit:
my $json_text = $json->decode($content);
print $json_text->{phone_number} . "\n";
};
# catch crashes:
if($@){
print "[[JSON ERROR]] JSON parser crashed! $@\n";
}
}

Tuesday, January 05, 2010

mysql backup

http://dev.mysql.com/doc/refman/5.1/en/backup-methods.html

MySql data file copy is a valid process for MyISAM engine!!

  1. Making Backups by Copying Table Files
  2. Making Delimited-Text File Backups
  3. Making Backups with mysqldump or mysqlhotcopy
  4. Making Incremental Backups by Enabling the Binary Log
  5. Making Backups Using Replication Slaves
  6. Recovering Corrupt Tables
  7. Making Backups Using a File System Snapshot


Blog Archive