- 競技プログラミングでは、std::cin で値を入力するのが一般的である
- 問題の制約上、小さな値 (例: 0 < N < 100 とか)は、uint8_t で扱えそう、と思ったりする人がいるかもしれないが、ここに罠がある
- uint8_t な変数に std::cin すると、ビットパターンは char になる。少なくとも gcc (libstdc++) の環境では。
- 他の処理系だと異なる動きをするかもしれない
- なので、数値と比較すると思ったように動作しない
- uint8_t な変数に std::cin すると、ビットパターンは char になる。少なくとも gcc (libstdc++) の環境では。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Insert your preferred key mappings here. | |
unmapAll | |
map j scrollDown | |
map k scrollUp | |
map l scrollRight | |
map h scrollLeft | |
map gg scrollToTop | |
map G scrollToBottom |
ここでは、下記チケットの対応方針について述べる
svarshavchik/courier#10
couriertls(1) には client モードと server モードがある。
client モードは、 couriertls が TLSクライアントとして動作するときのモードを実装するものである。server モードはその対になるもので、courirertls がサーバとして動作するときのモードを実装するものである。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tcpd/libcouriertls.c b/tcpd/libcouriertls.c | |
index 199015e..b24ccc3 100644 | |
--- a/tcpd/libcouriertls.c | |
+++ b/tcpd/libcouriertls.c | |
@@ -333,6 +333,7 @@ static void load_dh_params(SSL_CTX *ctx, const char *filename, | |
} | |
static int read_certfile(SSL_CTX *ctx, const char *filename, | |
+ const char *private_key_filename, | |
int *cert_file_flags) |
Git 版 Courier IMAP をビルドし、起動する方法のメモ
courier-unicode は、以下の方法でビルドし、インストールしておく
$ git clone https://github.com/svarshavchik/courier-libs
$ cd courier-libs/unicode
$ autoheader
$ aclocal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mumumu@mailserver 23:27:14 ~/certbot [master] $ ./certbot-auto | |
Requesting to rerun ./certbot-auto with root privileges... | |
Bootstrapping dependencies for RedHat-based OSes... (you can skip this with --no-bootstrap) | |
yum は /bin/yum です | |
yum はハッシュされています (/bin/yum) | |
読み込んだプラグイン:fastestmirror, langpacks | |
Loading mirror speeds from cached hostfile | |
* base: ftp.iij.ad.jp | |
* epel: mirror.dmmlabs.jp | |
* extras: ftp.iij.ad.jp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/mainwindow.c | |
=================================================================== | |
--- src/mainwindow.c (revision 3616) | |
+++ src/mainwindow.c (working copy) | |
@@ -481,7 +481,9 @@ | |
static void next_labeled_cb (MainWindow *mainwin, | |
guint action, | |
GtkWidget *widget); | |
- | |
+static void latest_cb (MainWindow *mainwin, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/summaryview.c | |
=================================================================== | |
--- src/summaryview.c (revision 3616) | |
+++ src/summaryview.c (working copy) | |
@@ -6122,22 +6122,26 @@ | |
((event->state & (GDK_SHIFT_MASK|GDK_MOD1_MASK)) != 0); | |
switch (event->keyval) { | |
- case GDK_space: /* Page down or go to the next */ | |
- case GDK_KP_Space: |