babydaemonsの日記 このページをアンテナに追加 RSSフィード

2012-07-18

[][]ボーナスでマカーデビューしてみる

価格.comで相場観をつかんでAmazonで物色してみたら、中古で出物があったのでぽちることにしました。

Apple MacBook Air 1.7GHz Core i5/13.3/4G/128G/802.11n/BT/Thunderbolt MC965J/A

Apple MacBook Air 1.7GHz Core i5/13.3/4G/128G/802.11n/BT/Thunderbolt MC965J/A

SSDが128MBだったり、クロックが低めだったりするけど、それほど本格的に仮想化ごっこはしないから大丈夫でしょう。きっと。

なんせ、乗り換え前はAtomネットブックなんだから。

2012-07-10

[][]UIがWebでUnicodeな文字が入力できるのにデータ出力がCSVなんでCP932以外を弾くスクリプトを書いてみた

ありがたいことに

てなサイトがあったので、そこの表を忠実にチェックデータに落としました。力技です。

function isValidInCP932(value) {
  var length = value.length;
  for (var i = 0; i < length; i++) {
    var c = value.charAt(i);
    if (isValidInCP932.Table.indexOf(c, 0) == -1) {
      return c;
    }
  }
  return "";
}
isValidInCP932.Table =
  " !\"#$%&'()*+,-./" +
  "0123456789:;<=>?" +
  "@ABCDEFGHIJKLMNO" +
  "PQRSTUVWXYZ[\\]^_" +
  "`abcdefghijklmno" +
  "pqrstuvwxyz{|}~ " +
  "。「」、・ヲァィゥェォャュョッ" +
  "ーアイウエオカキクケコサシスセソ" +
  "タチツテトナニヌネノハヒフヘホマ" +
  "ミムメモヤユヨラリルレロワン゙゚" +
  " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\〜‖|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+−±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇" +
  "◆□■△▲▽▼※〒→←↑↓〓∈∋⊆⊇⊂⊃∪∩∧∨¬⇒⇔∀∃∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬ʼn♯♭♪†‡¶◯" +
  "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" +
  "ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん" +
  "ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ" +
  "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψω" +
  "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя" +
  "─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂" + /* 以下、延々とCP932な文字列が続く */ + "";

はてダに貼ると文字化けしちゃうから、あとでgithubにあげておきます。

あげました(2012.07.18追記)

結論

sjisな*.csvしか読めないExcel氏ね!

2012-06-02

[]今更ながら、htc EVO 3Dに機種変したのだが

今回はケースにはあまりお金掛けないでおこうっと。

ゼロ円端末だったし。

[asin:B005PJYB88:detail]

2012-03-08

[][]2月29日のPerfume新曲「Spring of Life」コメント動画のおしゃべりの英訳が完了しました!

会社の同僚にレビューしてもらいました!

#週末、字幕職人にならねば。なれるのか?>おれ

A:You of looking at Perfume Official Channel 
K:I'm Kasiyuka!
A:I'm A-chan!
N:I'm Nocchi!
A:And, together...
ALL:We are Perfume!
A:Well, we Perfume,
N:Yes!
A:Our first new song of this year, "Spring of Life" will be released this spring!
N:Great! We dit it!
A:It's great song, and it's an absurdly popping song!
N:Yes!
K:It's very peppy song!
A:It's glittering and peppy song!
N:Ah, it is really true!
A:This song is very catchy,
A:and, this song was used in commercial video clip for HYO-KETSU.
A:And it was shot in L.A!
K:We are so cool!
A:Hollywood!
N:Hollywood!
A:Yeah, I saw it!
K:I saw Hollywood Sign
A:Yes, I looked it.
K:"Tomorrow, we will take video clips to a studio in Hollywood..."
ALL:Wow!
N:It's seems unreal?
A:What shall we do!?
A:Really it seems like a movie, eh? Anyway, they let us shoot video there.
A:with very big set.
A:Then, our beautiful music should played.
N:It was cool!
A:Yes! It will be on air from 29th of February,
A:So, we want you  to check out the KIRIN HYO-KETSU commercial!
A:The song is called "Spring of Life"!
A:Well, the release of this song was determined by UNIVERSAL MUSIC!
N,K:Yes!
A:Yeah, well, We said many years we would go to the world,
A:so we also go up to the next step. Still we will do our best!
A:We definitely want you to enjoy our new song
A:and, we want you to dance while listening to the CM.
A:I still want to talk a little more about Los Angeles,
N:Yes!
K:There are more things to say, aren't there.
A:Well, we had a lot of happy news,
A:We'll do our best Perfume in 2012!
N,K:We do our best!
A:Well,
ALL:Bye-bye form Perfume!

2012-03-05

[][]2月29日のPerfume新曲「Spring of Life」コメント動画のおしゃべりを絶賛英訳中なのだが

会社の同僚にレビューしてもらってます。。。

A:You of looking at Perfume Official Channel 
K:I'm Kasiyuka!
A:I'm A-chan!
N:I'm Nocchi!
A:And, We three person are Perfume!
ALL:Thanking you in advance!
A:Well, we Perfume,
N:Yes!
A:The first new song of this year, "Spring of Life" will be released this spring!
N:Great! We got it!
A:It's great good song, and it's unreasonably popping song!
N:Yes!
K:It's very popping song!
A:It's glittering and popping song!
N:Ah, it is really true!
A:This song is very catchy,
A:and, this song was used in commercial video clip of HYO-KETSU,
A:this video clip was took in L.A! How cool we are!
K:We are so cool!
A:Hollywood!
N:Hollywood!
A:At that time, I looked it.
K:I looked Hollywood Sign
A:Yes, I looked it.
K:"Tomorrow, we will take video clips at studio in Hollywood..."
ALL:Wow
N:It's really?
A:Highly what shall we do!?
A:Really we got to shoot a movie in place
A:with very big set.
A:Then, our great music should resound.
N:It's cool!
A:Yes! It will be on air from February 28,
A:we want you  to check commercial video clip of KIRIN HYO-KETSU!
A:The song name is "Spring of Life"!
A:Well, release was determined by UNIVASAL MUSIC from this song!
N,K:Yes!
A:We said many years we would go to the world,
A:so we also go up to the next step. Still we will do our best!
A:Come, you, we want you to look forward to this new our song,
A:and, we want dancing together listening to the CM.
A:I still want to talk a little later in the Los,
N:Yes!
K:We had various!
A:Well, we had a lot of happy news,
A:we also will do our best Perfume in 2012!
N,K:We do our best!
A:Then,
ALL:Perfume sent to you.