The Site: Blog Index The Wiki Site Index Changes About
Mëa Cúlpa's Blog
用ImageMagick缩小图片
平时拍的数码照片,常常需要传到网上。直接把数码相机拍摄的文件传上去的话太大了,没有必要。 用ImageMagick 的convert命令, 可以轻松按比例或者尺寸缩小图片:
convert -resize 50% input output
cli的好处就是可以批量操作:
用ImageMagick获取颜色值
看了一部分ImageMagick的官方范例,用convert命令的txt:转换可以把点阵图片转换成文本文件,其中包含了每一个像素的颜色信息。包括:
- 坐标
- 颜色RGB值
- 颜色code
HTML Special Charactors
南方公园风格的头像
推荐一个很不错的南方公园(South Park)风格的头像生成网站:http://www.sp-studio.de/ 我的头像就是那里生成的…很有趣!
Optimize your Firefox sqlite data
Firefox uses sqlite to store many data. Like bookmarks, cookies, etc. But it doesn't provide a direct option to re-index these data, which is a feature of sqlite3 and eady job. One will need sqlite executable to perform the task yourself.
So in sqlite:
sqlite3 datafile VACUUM; sqlite3 datafile REINDEX;
Will re-index the datafile and slightly boot firefox performance after a certain period.
Moved To New Host
Moved this site to new host, ucarenya.com, in which ucarenya is my translation to Mea Culpa in Quenya, the Ancient Elvish of MiddleEarth created by J.R.R.Tolkein.
本站已经搬迁至ucarenya.com, ucarenya 这个词是我对Mea Culpa的Quenya语翻译, Quanya是托尔金在魔戒及相关作品中发明的一种古代精灵语.
The new site is hosted in HostMonster, which public ip is in black list of Chinese gov's GFW. I have to purchase a dedicated ip for my site, sigh…
新站位于host monster空间,可惜HM的共享IP不少被GFW了,而我又恰巧碰上,纠结了一番后买了dedicated ip…
This domain, maximameaculpa.com, might be redirected to new domain after I managed to move my Gallery2…
等我搞定了Gallery2, 就可以把这个domain 跳过去了…




