www.mtkn.jp

Manuscripts for my personal webpage.
git clone https://git.mtkn.jp/www.mtkn.jp
Log | Files | Refs | README

commit 941452552630efa2b1328314ab1c5f67620cc8a3
parent b7abc08a02b62fdc6bc452af8a87c02e78540652
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed, 21 Dec 2022 18:39:05 +0900

fix bug for kagero

Diffstat:
Mdata/weblog | 81+------------------------------------------------------------------------------
Mpub/rss.xml | 34++++++++--------------------------
2 files changed, 9 insertions(+), 106 deletions(-)

diff --git a/data/weblog b/data/weblog @@ -14,7 +14,6 @@ 1656255600 /computer/setting_up_web_server.html 1658242800 /journal/posts/20200808.html 1660316400 /about.html -1660316400 /computer/index.html 1660316400 /journal/posts/20200719.html 1660316400 /journal/posts/20200723.html 1660316400 /journal/posts/20200725.html @@ -36,91 +35,13 @@ 1660316400 /journal/posts/20220729.html 1660316400 /journal/posts/20220730.html 1660316400 /journal/posts/20220813.html -1660402800 /index.html -1660402800 /journal/index.html -1660402800 /journal/posts/20220814.html 1660575600 /journal/posts/20220814.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html -1665068400 /books/index.html 1665241200 /poetry/index.html -1665241200 /index.html -1665241200 /poetry/index.html -1665241200 /poetry/index.html -1665241200 /poetry/index.html -1665241200 /poetry/index.html -1666450800 /journal/index.html 1666450800 /journal/posts/20221023.html -1666450800 /journal/index.html -1666450800 /index.html -1666450800 /index.html -1666450800 /journal/posts/20221023.html -1666450800 /journal/posts/20221023.html -1667142000 /index.html 1667142000 /journal/index.html 1667142000 /journal/posts/20221031.html -1667833200 /index.html -1667833200 /index.html -1667833200 /index.html -1667833200 /index.html -1668697200 /index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/index.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html 1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /books/978-4-06-288451-8.html -1669129200 /index.html -1669129200 /books/978-4-06-288451-8.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html -1671548400 /computer/xlib_playground1.html +1669129200 /books/index.html 1671548400 /computer/index.html 1671548400 /computer/xlib_playground1.html 1671548400 /index.html diff --git a/pub/rss.xml b/pub/rss.xml @@ -5,8 +5,8 @@ <description>ウェブページの更新履歴</description> <language>ja-jp</language> <link>https://www.mtkn.jp</link> -<lastBuildDate>Wed, 21 Dec 2022 18:31:11 +0900</lastBuildDate> -<pubDate>Wed, 21 Dec 2022 18:31:11 +0900</pubDate> +<lastBuildDate>Wed, 21 Dec 2022 18:38:32 +0900</lastBuildDate> +<pubDate>Wed, 21 Dec 2022 18:38:32 +0900</pubDate> <docs>https://www.rssboard.org/rss-specification</docs> <item> <title>Xlibで遊んでみる1</title> @@ -17,27 +17,12 @@ <time>2022-12-21</time> <h2>はじめに</h2> -<p>X11でGUIのプログラミングをしてみようと思い、してみた。\ -X11用の低レベルのライブラリはXlibとxcbの二つがあるようだ。\ -x.orgのウェブページを見てみると、Xlibは古く、xcbに置きかわりつつあるという。\ -そのため、新しくなにかを作る場合はxcbを使うようにとのことである。\ -ところがこのxcbはドキュメンテーションに乏しく、\ -X11を触るのが初めての人間にはなにをどうすればいいのかほとんど分からなかった。\ -知らない関数や構造体やらがでてきても(殆ど全部知らないものだが)、\ -その関数なり構造体なりの説明がどこにも見当たらない。\ -manページもない。あるのはdoxygenなるものでソースコードのコメントから\ -自動生成したいい加減なものだけで、使いものにならない。</p> -<p>とりあえずX11のことを少しは理解してからでないと初められそうもないと思い、\ -もう少しましな情報があるXlibから始めることにした。\ -</p> -<p>言語はC言語である。ソースコードは\ -<a href="https://git.mtkn.jp/xlib_playground/log.html">ここ</a>にある。 +<p>X11でGUIのプログラミングをしてみようと思い、してみた。X11用の低レベルのライブラリはXlibとxcbの二つがあるようだ。x.orgのウェブページを見てみると、Xlibは古く、xcbに置きかわりつつあるという。そのため、新しくなにかを作る場合はxcbを使うようにとのことである。ところがこのxcbはドキュメンテーションに乏しく、X11を触るのが初めての人間にはなにをどうすればいいのかほとんど分からなかった。知らない関数や構造体やらがでてきても(殆ど全部知らないものだが)、その関数なり構造体なりの説明がどこにも見当たらない。manページもない。あるのはdoxygenなるものでソースコードのコメントから自動生成したいい加減なものだけで、使いものにならない。</p> +<p>とりあえずX11のことを少しは理解してからでないと初められそうもないと思い、もう少しましな情報があるXlibから始めることにした。</p> +<p>言語はC言語である。ソースコードは<a href="https://git.mtkn.jp/xlib_playground/log.html">ここ</a>にある。 <h2>初期設定</h2> -<p>ディスプレイを開き、ウィンドウを作成する。\ -変数はとりあえずグローバルに宣言することにした。\ -<code>main</code>関数はできるだけ小さくして実際の処理は\ -それぞれの関数にさせてみる:</p> +<p>ディスプレイを開き、ウィンドウを作成する。変数はとりあえずグローバルに宣言することにした。<code>main</code>関数はできるだけ小さくして実際の処理はそれぞれの関数にさせてみる:</p> <pre><code> #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; @@ -96,8 +81,7 @@ clean_up(void) } </code></pre> -<p>適当な四角形のものを表示し、その位置を時間の関数として動かしてみる。\ -</p> +<p>適当な四角形のものを表示し、その位置を時間の関数として動かしてみる。</p> <pre><code>#include &lt;time.h&gt; #include &lt;math.h&gt; @@ -155,9 +139,7 @@ main(void) } </code></pre> -<p>ここまでのコードはgitリポジトリの\ -<a href="https://git.mtkn.jp/xlib_playground/file/example/example1.c.html">example/example1.c</a>\ -にある。</p> +<p>ここまでのコードはgitリポジトリの<a href="https://git.mtkn.jp/xlib_playground/file/example/example1.c.html">example/example1.c</a>にある。</p> <p>完成品:</p> <video controls> <source src="videos/example1.webm" type="video/webm">