Author Archives: clay

iconvを使いMacのTerminalで文字化けしているUTF-8のhtmlをSHIFT_JISに一括変換

iconvを使いMacのTerminalで文字化けしているUTF-8のhtmlをSHIFT_JISに一括変換

ーーーーーーーーーーーーーーーーーーー
【一括変換したいhtmlファイル】
link1.html
link2.html
link3.html
ーーーーーーーーーーーーーーーーーーー
1)link1.html、link2.html、link3.htmlを同じフォルダに入れる
(ここではホームフォルダのDocumentsのOthersのconvertというフォルダ)
2)terminalで以下を打ち込んでリターンキー
cd /Users/ホーム名/Documents/Others/convert
3)さらに以下を打ち込んでリターンキー

iconv -f UTF-8 -t SHIFT_JIS link1.html > alink1.html
iconv -f UTF-8 -t SHIFT_JIS link2.html > alink2.html
iconv -f UTF-8 -t SHIFT_JIS link3.html > alink3.html

すると、ホームフォルダのDocumentsのOthersのconvertというフォルダには
alink1.html
alink2.html
alink3.html
という名前のSHIFT_JISに変換済のhtmlファイルが出来る

link1.html
link2.html
link3.html
はフォルダから削除してしまう

Finderで
alink1.html
alink2.html
alink3.html
を選択した状態で

メニューバーにあるFinder Scripts から Trim File Namesを選択

aを入力してTrimStart

これで
すべてのaが取れて
alink1.html→link1.html
となる

Finder Scriptsは下記URLでダウンロードできる
http://www.geekymac.com/?p=943

このブログは2004年から

このブログは2004年から書き続けているし(途中でドメイン等変わったけど)、もちろんこれからも書き続けるつもりなんだけど、何十年か経って振り返った時に楽しめるように頑張っていきたいと思っています。単なる日記のようにみえる記事も多かったりして不満な人もいると思うけど、すべての記事に対して「このときはこういうことがあったからこう書いた」ということを説明出来る。ただ、本当に言いたいことはメールマガジンで言いたいと思う。インターネット上ではメールマガジンはブログよりも直接的なもののような気がすると思っているので。

I’ve been posting articles on this blog since 2004 and of course I’m gonna keep on doing it.
So I want to do the best so that I can enjoy reading this blog when I get old and look back my days.
These days, the articles of this blog look like a simple diary but they’re different.
I hope the day will soon come when I mention it.
Actually I want to write what I really want to say on my Email magazine instead of my blog.
I think Email magazine is right one.



Sponsored Links
横手貞一朗|くびれトレーニング|きれいの魔法ベストハウス123

マジでKrasis code birdの2050

最近マジでKrasis code birdの2050しか聞いてない
特に走っているときはまったく疲れを感じないから
いかにポジティブなバイブレーションが流れているか
ということが分かる

まだダウンロードしていない人は絶対ダウンロードしてみてね

今は無料でダウンロード出来るけど
4/1に3000円になってしまうみたいよ

ダウンロードはこちらから↓↓↓
http://news.krasis-code.net/article/253885241.html

Music Station

ミュージックステーション

BONNIE PINKが出たので久々にミュージックステーションを見た
ミュージックステーションなんて何年ぶりなんだろう?
と思ったら、何十年ぶりだったw(← w 初登場!)

10代の頃は結構見てたよ

でも見ながら文句言ってる自分が嫌で
見るのをやめたw

ところで久しぶりに見て

ミュージシャンのパフォーマンスよりも
お客さんの磨かれた演出に感動しました

とかなんとか言いつつも
やっぱり歌いたいね

カラオケじゃ当然物足りないし

I watched the TV program titled “Music Station” for the first time in about 20 years.
What’s the matter?
No, I’m OK but the reason why I watched it because Bonnie Pink appeared.
I’ve watched that program when I was teenage.
But I don’t like me hating other musicians while watching it so I quit.
By the way
What I thought about that was audiences’ performances were really good (more than musicians did)
Well…
I wanna sing my song.
This is what I really want.
Enough Karaoke!

2050

Krasis code birdの新しいアルバムがリリースされました!
http://news.krasis-code.net/article/253885241.html

その名も
「2050」

メチャメチャかっこいいタイトルだと思いませんか奥さん?

Krasis code birds's new album "2050"

今、4回リピート中。
早速走る時にも聞いてきた。

伝えたいことはたくさんあるんだけど
とにかく聞いてみて欲しい。

Krasis code bird’s new album titled “2050” has been released!
Do you think that “2050” is super cool title, don’t you?

You can download this album here.
http://news.krasis-code.net/article/253885241.html

Although there are a lot of Japanese lyrics, but you can feel his vibes and soul.