Linux-Java-Memo.com
LinuxでのEvernote利用
Evernoteは便利なんだけど、会社での私のメインPCはLinuxなので便利なクライアントソフトが動かない。ブラウザ版は、動きが遅すぎて使う気がしません。Wine+Evernote 3.1も入れてみたけど、検索とかの動きが変。日本語入力も不安定でいまいち。
と、先日ふと気づいたのですが、EvernoteのiGoogleガジェットが結構きびきび動きます。モバイル版と連携しているみたいで、それが高速ということか。知らんかった。これで結構便利に使えそうです。
Posted at 11:21午前 5 20, 2010 by pochi in Linux |
Ubuntuのサポート終了版の置き場所
ubuntu 7.10(gutsy)でapt-get update出来なくなっていたので、sources.listを修正。ubuntuの場合は、
jp.archive.ubuntu.com/ubuntu gutsy ...とやるらしい。
==> old-releases.ubuntu.com/ubuntu gutsy ...
Posted at 12:15午後 5 29, 2009 by pochi in Linux |
Facebook Connect
Facebook Connect対応のComment Widgetを入れてみました。各エントリページでFacebookアカウントでコメント記入出来ます。
こちらを参照 Commenting with Facebook Connect
Posted at 05:14午後 5 14, 2009 by pochi in JavaScript |
OpenIDアカウントで作成したPlaxoカレンダーとiCalの同期
OpenIDログインで作成したアカウントで、Plaxo for Macを使ってiCalと同期しようとしたが、認証画面でエラーとなり同期出来なかった。
Plaxo側でパスワードの設定が必要なようだが、OpenID経由だと元々設定していない為か、古いパスワードが異なるとのエラーでパスワード設定出来ない。
対策
Plaxoのログイン画面で「パスワードを忘れた」をク
Plaxo for Macで注意事項
アドレスブックの同期で、「マイカードをマイPlaxoプロフィールと同期」?とかいうのを無効にしておかないとMacに登録してある個人情報がプロフィール情報としてアップロードされてしまう。
Posted at 10:08午前 2 04, 2009 by pochi in Mac |
scpやrsyncの帯域制御
大きなファイル転送などで、あまり負荷をかけずに行いたい時
scp -l limit (limits the used bandwidth: Kbit/s)
rsync --bwlimit (limits I/O bandwidth: KBytes/s)
Posted at 03:51午後 9 19, 2008 by pochi in Linux |
dumpコマンドによるバックアップ
こんな感じでファイルにバックアップ出来るらしい
dump -0f - /dev/hda1 2>> /tmp/backup.log | gzip > /tmp/backup_hda1.gz参照
Posted at 10:47午前 9 19, 2008 by pochi in Linux |
svn mergeコマンド
subversionでのブランチ改訂分のtrunkへのマージ方法。
ローカルにチェックアウトしてある作業ディレクトリに対して、指定したブランチ・リポジトリの変更分(501から502)をマージするには
svn merge -r 500:502 file:///var/svn/test_branch
参照: 第3回:Subversionによるバージョン管理(後編)
Posted at 12:00午前 9 19, 2008 by pochi in memo |
Emacs Manual: Rectangles
- C-x r k
- Kill the text of the region-rectangle, saving its contents as the "last killed rectangle" (
kill-rectangle).- C-x r d
- Delete the text of the region-rectangle (
delete-rectangle).- C-x r y
- Yank the last killed rectangle with its upper left corner at point (
yank-rectangle).- C-x r o
- Insert blank space to fill the space of the region-rectangle (
open-rectangle). This pushes the previous contents of the region-rectangle rightward.- M-x clear-rectangle
- Clear the region-rectangle by replacing its contents with spaces.
- M-x delete-whitespace-rectangle
- Delete whitespace in each of the lines on the specified rectangle, starting from the left edge column of the rectangle.
- C-x r t string RET
- Replace rectangle contents with string on each line. (
string-rectangle).- M-x string-insert-rectangle RET string RET
- Insert string on each line of the rectangle.
引用元: GNU Emacs Manual
Posted at 09:11午前 8 20, 2008 by pochi in Linux |
keytoolから鍵を読み込んで使う方法
こんな感じで出来るらしい。
> import java.security.KeyStore;
> import java.security.PrivateKey;
> import java.security.Key;
> import java.io.FileInputStream;
> import java.security.interfaces.RSAPrivateKey;
> public class GetPrivateKey {
> public static void main(String[] args) throws Exception {
> String storepass = "password";
> String keypass = "password";
> KeyStore ks = KeyStore.getInstance("JKS");
> FileInputStream fs = new FileInputStream(args[0]);
> ks.load(fs, null);
> RSAPrivateKey key =
> (RSAPrivateKey) ks.getKey(args[1], keypass.toCharArray());
> System.out.write(key.getEncoded());
> }
> }
参照:
Posted at 03:47午後 8 19, 2008 by pochi in Java |