May 28, 2006

Motorola exec reveals next-gen slimphone: the SCPL - Engadget

Motorola exec reveals next-gen slimphone: the SCPL - Engadget:
TLK BT TS: MTRL'S HD HNCH FR CLLPHNS, RN GRRQS, RVLD TH XSTNC F N PCMNG HNDST CLLD TH SCPL (THT'S SCLPL, N CS TH LCK F VWLS MD T NCLR) DRNG RCNT CMPN NVSTMNT CNFRNC -- BT KPT LL TH MPRTNT DTLS T HMSLF. LL THT'S KNWN BT TH SCPL (WHCH W HP N N WLL MSTK FR TH SRGCL TL PCTRD HR), THR THN TH BVS FCT THT T WLL B QT SLM, S THT T WLL SPRT FV FTRS THT PRMS T ST T PRT FRM TH PCK -- WHCH W'LL TK T MN WMX, GPS, 3CCD HD CMCRDR, 30GB HRD DRV, ND PRBBL DRCTV DSH S WLL. T THS PNT, W CN'T VN S FR SR THT TH SCPL S NT TH SM S TH SPPSD RZR 2, R "CNR," THT'S BN FLTTRNG RND RCNTL, BT WHTVR TH'R WRKNG N, W'LL HV T WT NTL NXT R T GT R HNDS N N.

And for those who like their text Motorolised -- here's a small Ruby thingie to do the trick:

#! /usr/bin/ruby -w
#
# Motorolise input (i.e. remove vowels and upper-case).
#

outp = file = data = ""

def mtrl (inpData)
  inpData.upcase!
  inpData.gsub!(/[AEIOUY]/,"")
  inpData
end

case ARGV.size
when 1
  if ARGV[0] == "-h"
    puts "MTRL or MTRL <flnm> or MTRL <flnmrd> <flnmwrt>"
  else
    file = ARGV[0]
    File.open(file) {|f| data = f.read }
    puts mtrl(data)
  end
when 0
  data = STDIN.read
  puts mtrl(data)
when 2
  file = ARGV[0]
  outp = ARGV[1]
  File.open(file) {|f| data = f.read }
  o = File.new(outp, File::CREAT|File::WRONLY)
  o.write(mtrl(data))
  o.close
end

Save this script as mtrl, do a decent chmod (chmod u+x mtrl should do). Assumption is made that your ruby is in /usr/bin if it is not — alter shebang line.

Technorati Tags: , ,

No comments:

Post a Comment