Movatterモバイル変換


[0]ホーム

URL:


はてラボはてな匿名ダイアリー
ようこそ ゲスト さんログインユーザー登録

「command」を含む日記RSS

はてなキーワード:commandとは

次の25件>

2025-09-04

anond:20250904054611

・「凍結・解凍」は日本ではLHAが使ってた(確かっぽい)

かに使ってた。使ってはいるけど解凍を使ってるのは自己解凍のところだけで、e,xオプションのところでは「ファイルを取り出す」表記。凍結表記もaオプションのところだけ。

(LHAになる前のバージョンだけど)LHarcソースコード内の日本語版の使い方

char use[] =

"LHarcversion 1.13cCopyright(c) H.Yoshizaki(吉崎栄泰), 1988-89.\n"

"============================================================= 1989 - 5 - 21 ===\n"

" <<< 高圧縮書庫管理プログラム>>>\n"

"===============================================================================\n"

"使用法:LHarc [<命令>] [{/|-}{<スイッチ>[-|+|2|<オプション>]}...] <書庫>\n"

" [<ドライブ>:|<基準ディレクトリ>\\] [<パス> ...]\n"

"-------------------------------------------------------------------------------\n"

" 《命令》\n"

" a:書庫ファイルを追加 u:書庫ファイルを追加(日時照合付)\n"

" f:書庫ファイル更新 m:書庫ファイルを移動(日時照合付)\n"

" d:書庫内のファイルの削除 e,x:書庫からファイルを取り出す\n"

" p:書庫内のファイルの閲覧 l,v:書庫の一覧表示\n"

" s:自己解凍書庫作成 t:書庫内のファイルCRC チェック\n"

" 《スイッチ》\n"

" r:再帰収集を行う w: ワークディレクトリ指定\n"

" x:ディレクトリ名を有効にする m: 問い合わせを行わない\n"

" p:名前比較を厳密に行う c: 日時照合を行わない\n"

" a: 全属性を凍結の対象とする v: 他のユーティリティファイルを閲覧\n"

" n: 経過表示をしない k:自動実行のキーワードの設定\n"

" t:書庫の時刻を最新のファイルに\n"

"===============================================================================\n"

"転載・再配布などは自由です。Nifty-Serve PFF00253\n"

" (詳しくは使用の手引をご覧ください。)ASCII-pcspcs02846";

英語版の使い方

char use[] =

"LHarcversion 1.13cCopyright (c) Haruyasu Yoshizaki, 1988-89.\n"

"================================================================ 05/21/89 ===\n"

" <<< High-Performance File-Compression Program>>>\n"

"===============================================================================\n"

"usage:LHarc [<command>] [{{/|-}{<switch>[-|+|2|<option>]}}...] <archive_name>\n"

" [{<drive_name>:}|{<home_directory_name>\\}] [<path_name> ...]\n"

"-------------------------------------------------------------------------------\n"

" <command>\n"

" a:Add files to archive u: Update files to archive\n"

" f: Freshen files in archive m:Move new files into archive\n"

" d:Delete files from archive e,x: EXtract files from archive\n"

" p: disPlay files in archive l,v:View List of files in archive\n"

" s:make a Self-extracting archive t:Test integrity of archive\n"

" <switch>\n"

" r: Recursively collect files w: assign Work directory\n"

" x: allow eXtended file names m: noMessage for query\n"

" p: distinguish fullPath names c:skiptime-stamp Check\n"

" a: allowany Attributes of files v:View filesbyanother utility\n"

" n: display No indicator k:Keyword for AUTOLARC.BAT\n"

" t: archive'sTime-stamp option\n"

"===============================================================================\n"

"Youmay copy or distribute withoutany donation to me.Nifty-Serve PFF00253\n"

" (See theUser'sManual for detailed descriptions.)ASCII-pcspcs02846";

https://www.vector.co.jp/soft/dl/dos/util/se002340.htmlから

Permalink |記事への反応(1) | 15:26

このエントリーをはてなブックマークに追加ツイートシェア

2025-07-28

anond:20250728111554

その記事最初写真自己矛盾してるじゃん

Torun acommand administrator...

Permalink |記事への反応(1) | 11:21

このエントリーをはてなブックマークに追加ツイートシェア

2025-07-12

アンノウンコーポレーション unknwon cooperation

アンノウンコーズ unknown cause

アンノウンコマンド unknowncommand

アンノウンコマンダー unknowncommander

Permalink |記事への反応(0) | 23:14

このエントリーをはてなブックマークに追加ツイートシェア

2025-06-13

我が名はサイボーグdorawii

パーマリンク署名対象にするより堅牢自動化を作れた。

一度投稿したうえで別タブを開いてプログラム的(fetch)に送信してその別タブが閉じられる仕組み。

改めてスクリプト配布しちゃる

最初投稿してエントリページに移動した親タブ側のjsコード
// ==UserScript==      // @namePGP署名検出と別タブ自動編集      // @namespacehttp://tampermonkey.net/      // @version      1.0      // @descriptionPGP署名がない投稿自動編集ページへ誘導      // @matchhttps://anond.hatelabo.jp/*      // @grantGM_setValue      // @grantGM_getValue      // @grantGM.openInTab      // ==/UserScript==      (function () {        'use strict';constbody = document.getElementById('entry-page');        if (!body) return;consttitleText = document.title;        if (!titleText.includes('dorawii')) return;constpgpRegex = /BEGIN.*PGP(?: SIGNEDMESSAGE| SIGNATURE)?/;const preElements = document.querySelectorAll('div.body pre');        let hasPgpSignature =false;        for (const pre of preElements) {          if (pgpRegex.test(pre.textContent)) {            hasPgpSignature =true;            break;          }        }        if (hasPgpSignature) return;const editLink = document.querySelector('a.edit');const childTab =GM.openInTab(editLink.href, {active:false, insert:true,setParent:true });      })();
親タブから開かれる編集ページの子タブのjsコード
 // ==UserScript==      // @name編集ページ処理と自動送信・閉じ      // @namespacehttp://tampermonkey.net/      // @version      1.0      // @description編集ページで署名処理と送信、タブ自動閉じ      // @matchhttps://anond.hatelabo.jp/dorawii_31/edit?id=*      // @grantGM_getValue      // @grantGM_xmlhttpRequest      // @grantGM_setClipboard      // @grantGM_notification      // @connectlocalhost      // ==/UserScript==      (async function () {        'use strict';const shouldRun = awaitGM_getValue('open-tab-for-edit', '0');consttextareaId = 'text-body';consttextarea = document.getElementById(textareaId);        if (!textarea) return;const content =textarea.value;constpgpSignatureRegex = /-----BEGINPGP SIGNEDMESSAGE-----[\s\S]+?-----BEGINPGP SIGNATURE-----[\s\S]+?-----ENDPGP SIGNATURE-----/;        if (pgpSignatureRegex.test(content)) {console.log('[PGPスクリプト]署名が検出されたためそのまま送信します');          return;        }consthttpRequest = (url, data) => {          return newPromise((resolve,reject) => {GM_xmlhttpRequest({              method: 'POST',url:url,              headers: { 'Content-Type': 'application/x-www-form-urlencoded' },              data: `value=${encodeURIComponent(data)}`,onload: function (response) {                resolve(response.responseText);              },onerror: function (error) {reject(error);              }            });          });        };        //textarea の値を取得        // 1.現在のページのURLからURLオブジェクト作成const currentUrl = newURL(window.location.href);        // 2.ベースとなる部分 (例: "https://anond.hatelabo.jp") を取得constorigin = currentUrl.origin;        // 3. 'id'パラメータの値 (例: "20250610184705") を取得constidValue = currentUrl.searchParams.get('id');        // 4.ベース部分とIDを結合して、目的URL文字列を生成        //idValueが取得できた場合のみ実行する        let newUrl = null;        if (idValue) {          newUrl = `${origin}/${idValue}`;        }        // 5. 生成されたURL変数に代入し、コンソールに出力して確認console.log(newUrl);constvalueToSend = newUrl;try {const signatureText = awaithttpRequest('http://localhost:12345/run-batch',valueToSend);console.log('バッチ応答:', signatureText);          if (!signatureText.includes('BEGINPGP SIGNEDMESSAGE')) {            alert('PGP署名クリップボードに見つかりませんでした。');            return;          }const newText = content.replace(/\s*$/, '') + '\n' + signatureText + '\n';textarea.value = newText;console.log('[PGPスクリプト]署名を貼り付けました。送信を再開します。');const form = document.forms.edit;const newForm = form.cloneNode(true);          form.replaceWith(newForm);          newForm.addEventListener('submit', async (e) => {            e.preventDefault(); //HTML標準のsubmitをキャンセルconstbodyText =textarea?.value || '';            //reCAPTCHAトークンの取得constrecaptchaToken = await newPromise((resolve) => {              grecaptcha.enterprise.ready(() => {                grecaptcha.enterprise.execute('hoge', {action: 'EDIT' })                  .then(resolve);              });            });            // POSTするデータの構築const formData = new FormData(newForm);            formData.set('body',bodyText);            formData.set('recaptcha_token',recaptchaToken);            formData.set('edit', '1');try {constresponse = await fetch(newForm.action, {                method: 'POST',body: formData,                credentials: 'same-origin'              });              if (response.ok) {console.log('送信成功');                window.close();              } else {console.error('送信失敗',response.status);              }            }catch (err) {console.error('送信中にエラーが発生', err);            }          });          //プログラム的に送信トリガー          newForm.dispatchEvent(new Event('submit', { bubbles:true }));        }catch (e) {console.error('バッチ呼び出し失敗:', e);        }      })();
node.jsで動かすローカルサーバーコード
consthttp =require('http');const { exec } =require('child_process');const querystring =require('querystring');const server =http.createServer((req, res) => {  if (req.method === 'GET' && req.url === '/ping') {    res.writeHead(200);    res.end('pong');  } else if (req.method === 'POST' && req.url === '/run-batch') {    letbody = '';    req.on('data', chunk => {body += chunk.toString();    });    req.on('end', () => {constparsed = querystring.parse(body);constvalue =parsed.value || 'default';      // 値を引数としてバッチに渡す      exec(`C:\\Users\\hoge\\Desktop\\makesign.bat "${value}"`, { encoding: 'utf8' }, (err, stdout, stderr) => {        if (err) {          res.writeHead(500);          res.end('Error executing batch: ' + stderr);        } else {          res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' });          res.end(stdout.trim());        }      });    });  } else {    res.writeHead(404);    res.end('Not found');  }});server.listen(12345, () => {console.log('Batch serverrunningathttp://localhost:12345/');});
@echo offsetlocal enabledelayedexpansion::署名するファイルset "infile=%~1"set outfile=%TEMP%\pgp_output.asc:: 以前の出力があれば削除if exist "%outfile%" del "%outfile%":signloop::AutoHotkeyパスフレーズ入力(gpgがパスワード要求するダイアログが出た場合に備える)start "" /b "C:\Users\hoge\Documents\AutoHotkey\autopass.ahk"::PGPクリア署名作成echo %infile% | gpg --yes --clearsign --output "%outfile%"::署名成功していればループを抜けるif exist "%outfile%" (goto postprocess) else (    timeout /t 1> nulgoto signloop):postprocesspowershell -nologo -command ^  "$header = '>|'; $footer = '|<'; $body =Get-Content '%outfile%' -Raw;Write-Output ($header + \"`r`n\" + $body + $footer)"powershell -nologo -command ^  "$header = '>|'; $footer = '|<'; $body =Get-Content 'signed.asc' -Raw;Set-Clipboard -Value ($header + \"`r`n\" + $body + $footer)"endlocalexit /b
AutoHotkey(以前と同じ)
#Persistent#SingleInstance ignoreSetTitleMatchMode, 2WinWaitActive, pinentrySendInputpasswordSleep 100SendInput {Enter}ExitApp

動けばいいという考えで作っているので余分なコードも含んでいるかもしれない。

-----BEGINPGP SIGNEDMESSAGE-----Hash: SHA512https://anond.hatelabo.jp/20250613185036 -----BEGINPGP SIGNATURE-----iHUEARYKAB0WIQTEe8eLwpVRSViDKR5wMdsubs4+SAUCaEv1FQAKCRBwMdsubs4+SHHkAQDUOLgBcdji2T6MJ7h/vlMdFfGlWAzNdXijjE1gIuEPywEAiMNMZqhrMmtlc7UqRuggNJ/UTa5xTIcKp622+7jJQQg==Lgkl-----ENDPGP SIGNATURE-----

Permalink |記事への反応(1) | 18:50

このエントリーをはてなブックマークに追加ツイートシェア

2025-06-09

dorawii

ようやく(ほぼ)すべてが自動化された。

あとはローカルサーバーの起動をスタートアップに設定する(方法AIに聞いて指示に従う)だけの消化試合

ここにほとんどAI頼りのコードを公開しておく。

事前にインストールしておくもの

autohotkey

nodejs

ユーザースクリプトを実行できる拡張機能

パスとかの注意

署名要求してくるパスワードを自動入力するahkファイルドキュメントAutoHotkey配下に置いた。

バッチファイル(make.sign.bat)はデスクトップに置いた。

以下コード

autopass.ahk
#Persistent#SingleInstance ignoreSetTitleMatchMode, 2WinWaitActive, pinentrySendInput お前のパスワードSleep 100SendInput {Enter}ExitApp
run-bacth-server.js
//run-batch-server.jsconsthttp =require('http');const { exec } =require('child_process');const server =http.createServer((req, res) => {  if (req.url === '/ping') {    res.writeHead(200);    res.end('pong');  } else if (req.url === '/run-batch') {    exec('C:\\Users\\you\\Desktop\\makesign.bat', (err) => {      res.writeHead(200);      res.end(err ? 'Error' : 'OK');    })    ;  } else {    res.writeHead(404);    res.end('Not found');  }});server.listen(12345, () => {console.log('Batch serverrunningathttp://localhost:12345/');});
makesign.bat
@echo offsetlocal enabledelayedexpansion::ミリ秒単位UTC時刻を取得for /f %%a in ('powershell -nologo -command "[int64]::Parse((Get-Date).ToUniversalTime().ToString('yyyyMMddHHmmssfff'))"') doset timestamp=%%a::署名するファイルset infile=%TEMP%\pgp_input.txtset outfile=%TEMP%\pgp_output.asc:: 以前の出力があれば削除if exist "%outfile%" del "%outfile%"::タイムスタンプを原文として保存echo %timestamp%> "%infile%":signloop::AutoHotkeyパスフレーズ入力(gpgがパスワード要求するダイアログが出た場合に備える)start "" /b "C:\Users\infini\Documents\AutoHotkey\autopass.ahk"::PGPクリア署名作成gpg --yes --clearsign --output "%outfile%" "%infile%"::署名成功していればループを抜けるif exist "%outfile%" (echo [INFO]署名成功goto postprocess) else (echo [WARN]署名失敗、再試行します…    timeout /t 1> nulgotosignloop):postprocess::PowerShellで余計な改行なしに |< をつけてクリップボードコピーpowershell -nologo -command ^  "$header = '>|'; $footer = '|<'; $body =Get-Content '%outfile%' -Raw;Set-Clipboard -Value ($header + \"`r`n\" + $body + $footer)"echo Done.signed.asc created and clipboard updated (no extra blankline).endlocalexit /b
tempermonkeyとかに登録するユーザースクリプト
// ==UserScript==// @namePGP署名自動付加スクリプト(GM_xmlhttpRequest版)// @namespacehttp://tampermonkey.net/// @version      1.0// @description投稿前にPGP署名を付けてから送信(fetch未使用)// @matchhttps://anond.hatelabo.jp/dorawii_31/edit*// @grant        GM_xmlhttpRequest// @grant        GM_setClipboard// @grant        GM_notification// / @connectlocalhost// ==/UserScript==(function () {  'use strict';const submitId = 'submit-button';consttextareaId = 'text-body';const localServer = 'http://localhost:12345/run-batch';constpgpSignatureRegex = /-----BEGINPGPSIGNEDMESSAGE-----[\s\S]+?-----BEGINPGPSIGNATURE-----[\s\S]+?-----ENDPGPSIGNATURE-----/;consthttpRequest = (url) => {    return newPromise((resolve,reject) => {      GM_xmlhttpRequest({        method: 'GET',url:url,        onload: function (response) {          resolve(response.responseText);        },        onerror: function (error) {reject(error);        }      });    });  };const interceptClick = () => {constbtn = document.getElementById(submitId);    if (!btn ||btn.dataset.pgpIntercepted === 'true') return;btn.dataset.pgpIntercepted = 'true';btn.addEventListener('click', async function (e) {consttextarea = document.getElementById(textareaId);      if (!textarea) return;const content =textarea.value;      if (pgpSignatureRegex.test(content)) {console.log('[PGPスクリプト]署名が検出されたためそのまま送信します');        return;      }      e.preventDefault();      e.stopImmediatePropagation();console.log('[PGPスクリプト]署名が見つからないため処理を停止し、署名を取得します');try {        awaithttpRequest(localServer); //バッチ実行constsignatureText = await navigator.clipboard.readText();        if (!signatureText.includes('BEGINPGPSIGNEDMESSAGE')) {          alert('PGP署名クリップボードに見つかりませんでした。');          return;        }const newText = content.replace(/\s*$/, '') + '\n' +signatureText + '\n';textarea.value = newText;console.log('[PGPスクリプト]署名を貼り付けました。送信を再開します。');btn.click(); //イベント再発火      }catch (err) {        alert('PGP署名の取得または貼り付けに失敗しました。\n' + err);      }    },true);  };  window.addEventListener('load', () => {setTimeout(interceptClick, 1000);  });})();

プロミスメソッドとか全然まだ理解してなくてそのなかに関数代入したその関数オブジェクトプロパティresponseを?いやまあそのあたりのコードが示すデータの流れが全然理解できないような人間でもここまでできちゃった。

AIすごいなと思うよ。そして思うのは今後重要になってくるのは文法とか自体に詳しいことじゃなくて、そのプログラムの処理内容を指示できるシステムエンジニア的な言語化能力のほうじゃないかなと思った。

-----BEGINPGPSIGNEDMESSAGE-----Hash: SHA51220250609111559680 -----BEGINPGPSIGNATURE-----iHUEARYKAB0WIQTEe8eLwpVRSViDKR5wMdsubs4+SAUCaEbCbwAKCRBwMdsubs4+SLueAPwOv7PBk4voAe5qlcCEvs/PJhmKc5QAb/1R43JMQFuDZgD/UTPEKsL/PhK9jFGv2HDXK1dVjLNwvosgX9uYJh5xxwY==qiOE-----ENDPGPSIGNATURE-----

Permalink |記事への反応(2) | 20:16

このエントリーをはてなブックマークに追加ツイートシェア

2025-06-08

dorawii

ChatGPTにバッチファイルを作ってもらったのでこれから署名捗るぞ。これだけ手軽化できたらレスバに入っても署名つけるのも億劫にならずできそうだ。

なにせ文章を書き折ったらあとはバッチダブルクリックしてCtr+Vするだけだ。

原文には現在日時のミリ秒表示を使うことにした。

名乗る人が増えることを期待して作らせたものを公開しておく。

@echo offsetlocal::ミリ秒単位UTC時刻を取得for /f %%A in ('powershell -nologo -command "[int64]::Parse((Get-Date).ToUniversalTime().ToString('yyyyMMddHHmmssfff'))"') doset timestamp=%%A::PGPクリア署名作成echo %timestamp% | gpg --yes --clearsign> signed.asc::PowerShellで余計な改行なしに |< をつけてクリップボードコピーpowershell -nologo -command ^  "$header = '>|'; $footer = '|<'; $body =Get-Content 'signed.asc' -Raw;Set-Clipboard -Value ($header + \"`r`n\" + $body + $footer)"echo Done. signed.asc created and clipboard updated (no extra blankline).
-----BEGINPGP SIGNEDMESSAGE-----Hash: SHA51220250608045542542 -----BEGINPGP SIGNATURE-----iHUEARYKAB0WIQTEe8eLwpVRSViDKR5wMdsubs4+SAUCaEUXzgAKCRBwMdsubs4+SCvuAQDjRjPVCO1F9DgmAKoqKYG7qB9r4e7y2Ky+/umT/OhnygEA8h2NL8zIczSphcOk/MaDWJJ2Y7WDA3d6gxFakW8TKAw==HE4/-----ENDPGP SIGNATURE-----

Permalink |記事への反応(0) | 13:57

このエントリーをはてなブックマークに追加ツイートシェア

2025-05-29

anond:20250528120116

ChatGPTで際どいことを書いてもらうのに抑えてえおきたいポイント

じゃあ、なんで急に書いてもらえなくなったのか。
これによって何が起きるか?
  • 連続して会話しても、「最後に保存された応答」からの基点となってしまうため、話がつながらない。
  • たとえば、ここまで A→B→C→D→E と会話を続けて上限に達した後、→F と1回だけ会話はできるが、
  • その次の会話は A→B→C→D→E→Gと判別されてしまい、話がつながらない。
  • 表示上の見た目は A→B→C→D→E→F→G とつながっているにもかかわらず、である
  • これによって、自分から見えている会話と異なり、ChatGPTから見た会話は途中が欠落しているため、急に拒否されるなど豹変したような応答になる場合がある。
もうひとつ、急に会話が拒否される理由がある。コンテキスト長の限界だ。

では具体的にどう対処すればいいか

1.メモリはオンにする必要はない
2. 会話上限に達した場合は、諦めて新しい会話に改める
3.GPT-4oで拒否されたときは (無料アカウント場合)GPT-4.1miniに聞いてみよ

制限のゆるいLLM

Grok3
HuggingChat で利用できるCommand R+ (CohereLabs/c4ai-command-r-plus-08-2024)

(※1) 大規模言語モデルとの会話は、AIがこれまでの会話を「記憶」しているのではなく、リクエストのたびに、過去の会話を読み直している。ChatGPT場合は、上限を超えると、古い会話から順次まれなくなるっぽい。

Permalink |記事への反応(1) | 09:39

このエントリーをはてなブックマークに追加ツイートシェア

2025-05-23

スターウォーズ英語を学ぼう

Lord Vader,am Istill incommand?」と「So I'mstill incommand?」の英語的なニュアンスの違い、そしてどちらがより傲慢(arrogant)に聞こえるかを解説します。

1. 「Lord Vader,am Istill incommand?」のニュアンス

この言い方は、

より丁寧であり、

ベイダーへの敬意(Lord Vaderと呼びかけている)が強調され、

形式的礼儀正しい印象

を与えます

このフレーズは「私はまだ指揮官でよろしいのでしょうか?」という、やや控えめでお伺いを立てる表現です。

傲慢さはあまり感じられません。

2. 「So I'mstill incommand?」のニュアンス

一方で、劇中の「So I'mstill incommand?」は、

呼びかけがなく、

いきなり結論確認する形で、

少し自己中心的、または焦りや苛立ちがにじむ表現です。

この「So」は、「じゃあ」「つまり」といったニュアンスで、

「(いろいろ言われたけど)結局、俺が指揮官ってことでいいんだよな?」

という自己主張自分立場への執着が強く表れています

このため、ベイダーに対して「俺の立場をはっきりさせろ」と迫るような、やや生意気傲慢自己中心的な印象を与えます

3. どちらが傲慢に聞こえるか?

「So I'mstill incommand?」の方が、より傲慢自己中心的に聞こえます

Lord Vader,am Istill incommand?」は丁寧で、上司への敬意が感じられる。

「So I'mstill incommand?」は、呼びかけもなく、結論だけを急ぐ印象で、相手説明権威を軽視しているようにも取れる。

そのため、ベイダーが苛立ち、フォースチョークを使ったのも、「So I'mstill incommand?」という言い方のほうが、より不遜で生意気だったからだと考えられます

まとめ

Lord Vader,am Istill incommand?」= 丁寧・控えめ・敬意あり

「So I'mstill incommand?」=自己主張・焦り・やや傲慢

劇中のクレニックの言い方は、ベイダー逆鱗に触れるに十分な、やや生意気ニュアンスが含まれていた、ということです。

Permalink |記事への反応(1) | 20:04

このエントリーをはてなブックマークに追加ツイートシェア

2025-04-24

下記プログラムテストコードを書いてください

#include <stdio.h>

main( ){

    printf("hello, world\n");

}

C言語簡単テストコードを書く(より自動化に近い形)

C言語で別のプログラム作成し、system関数などを使って最初プログラムを実行し、その出力を読み取って比較する方法です。

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

intmain() {

char expected_output[] = "hello, world\n";

char actual_output[100]; // 十分なバッファサイズを確保

//helloプログラムを実行し、出力を actual_output にリダイレクト環境依存

// これは非常に簡略化された概念であり、実際にはパイプ処理などが必要になります

charcommand[200];

#ifdef _WIN32

sprintf(command, "hello.exe> temp_output.txt");

#else

sprintf(command, "./hello> temp_output.txt");

#endif

system(command);

FILE *fp = fopen("temp_output.txt", "r");

if (fp != NULL) {

fgets(actual_output, sizeof(actual_output),fp);

fclose(fp);

remove("temp_output.txt"); // 一時ファイルを削除

} else {

printf("エラー:一時ファイルオープンに失敗しました\n");

return 1;

}

if (strcmp(actual_output, expected_output) == 0) {

printf("テスト成功: 出力は期待通りです\n");

return 0;

} else {

printf("テスト失敗: 期待された出力 '%s'、実際の出力 '%s'\n", expected_output, actual_output);

return 1;

}

}

Permalink |記事への反応(0) | 15:37

このエントリーをはてなブックマークに追加ツイートシェア

2025-02-03

Emacs廃人ライフ

俺のEmacsライフは、もはやただのエディタを超えて、完全に生活のものだ。

日常のあらゆる側面がEmacs支配されていて、他のソフトウェアなんて目にも入らねぇ。

今日は、どれだけ俺がこの深淵世界に没頭しているか、そのレベルを見せてやるぜ。

1.自作パッケージLispの力

俺の.emacs.dには、数十種類どころか、もう百を超える自作パッケージが眠ってる。

特に自分で書いたLisp関数は、日々のタスク自動化するために欠かせねぇ。

例えば、特定フォルダ内のMarkdownファイル自動HTMLに変換してブラウザで表示するスクリプトを組んじまった。

これでブログを書くたびに手間いらずで、「C-c C-v」でプレビューできる快感は、もう中毒だぜ。

サンプルLispコード
(defun my-markdown-to-html ()  "MarkdownファイルHTMLに変換してブラウザで表示する関数"  (interactive)  (let ((markdown-file (read-file-name "Markdownファイル選択: ")))    (shell-command (format "pandoc %s -o %s.html"markdown-file (file-name-sans-extensionmarkdown-file)))    (browse-url (concat (file-name-sans-extensionmarkdown-file) ".html"))))

この関数を使えば、Markdownファイルを選んで一発でHTMLに変換し、そのままブラウザで表示できる。これがなきゃブログなんて書けないぜ。

2.Org-modeによる人生管理

Org-modeは俺の人生のものだ。TODOリストスケジュール管理だけじゃなくて、プロジェクト管理文書作成まで全てを一元化してる。

特にカスタムキャプションプロパティドロップダウンメニューを駆使して情報整理に命懸けてるんだ。

さらに、Org Babel使ってRやPythonコードを直接実行しながらデータ分析なんて日常茶飯事だ。この機能のおかげで、データサイエンスEmacs内で完結しちまうからたまんねぇよ。

3.キーバインドマクロ神業

俺のキーバインド設定は他者には理解不能レベルだ。

自分専用にカスタマイズしたショートカットが数百種類もあるんだぜ。

「M-p」で過去コミットメッセージを呼び出す機能なんか、Gitとの連携が一瞬でできるから開発効率が飛躍的に向上する。

さらに、Emacsにはマクロ機能があるから自分操作を記録して再生することもできる。

この前、自分専用のマクロを作って、特定フォーマットドキュメントを一瞬で整形することができた。

これで「お前は本当に人間なのか?」って言われてもおかしくないレベルだ。

4.EmacsLispによる拡張

EmacsLispを書くことが俺の日常になってる。この前、自分だけのコード補完システムを構築したばかりだ。

この機能のおかげで、特定キーワード入力すると関連するコードスニペットが自動的に提案される仕組みになってるからコーディング中に思考が途切れることなスムーズに進行するぜ。

コード補完システムサンプル
(defun my-auto-complete ()  "カーソル位置に基づいてコードスニペットを提案する"  (interactive)  (let ((input (thing-at-point 'symbol)))    (if input        (let ((completion-list '("myFunction" "myVariable" "myClass")))          (setq completion-list                (cl-remove-if-not                 (lambda (item) (string-prefix-p input item))                 completion-list))          (if completion-list              (message "候補: %s" (string-join completion-list ", "))            (message "候補なし")))      (message "シンボルが見つかりません"))))

この関数ではカーソル位置からシンボルを取得し、それに基づいて候補を表示する。これがあればコーディング中も迷わず進められるぜ。

5.Emacsと共に生きるコミュニティ

Emacsユーザーとして活動している中で、多くの仲間と出会った。

彼らとの情報交換や共同開発は刺激的で、新しいアイデアが次々と生まれてくる。この循環こそが俺の成長につながっていると実感しているんだ。

最近では、自分が開発したパッケージGitHubで公開し、フィードバックを受け取ってさらなる改善点を見つけたりもしている。

このフィードバックループがあるからこそ、自分自身進化し続けられるんだ。

結論Emacsこそ俺の人生

今やEmacsは単なるツールじゃなくて、俺自身の一部になってる。

この深淵世界で探求し続けることで、新たな発見や挑戦が待っている。

これからEmacsユーザーとして、自分だけのユニーク環境を追求し続けていくつもりだぜ!

Permalink |記事への反応(6) | 10:34

このエントリーをはてなブックマークに追加ツイートシェア

2024-12-17

Top Trends in TravelPortal Development Every Business ShouldWatch

In the ever-evolving travel industry, travelportal have become fundamental tools for businesses looking to enhance customer experienceIt's streamline operations.With traveler increasingly relyingondigital platforms tobookeverything from flights tohotels, theneed for sophisticated,user-friendly,It's high-performing travelportalshas never beenmorecrucial. Thegrowth of this sectoris drivenby numerous factors, including technological advancements, consumer behaviorshifts,It's the quest fororganization. Thisarticle explores thetop trends in travelportals development that every business should pay attention to in 2024It'sbeyond.

1.ArtificialIntelligence andMachine Learning in TravelPortal Development

ArtificialIntelligence (AI) andMachine Learning (ML) have quickly become foundational components of travelportal development. These technologiesare revolutionizing the way businesses personalize services, predict consumer behavior, and optimizebooking processes.AI andML algorithms analyze large data sets to understand customers preferences,allowing for real-time customization of travel recommendations. From dynamic pricing models to

customized travel suggestions,AI help businesses offer an unequaleduser experience.

For instance,AI chatbotsare becoming successively popular for customer service. They cananswer customer queries24/7,assist inbookings,It's even provide real-time travel updates, enhancing the overall customers experience. Furthermore,AI-powered tools suchas a recommendation engines analyze pastbooking behavior to suggest tailoreditineraries, making travel planning much easier foruser.

2.Mobile-First Approach for TravelPortal Development

With the increasing use of smartphones,as amobile first approachis no longer optional for businesses in the travel industry.MoreIt'smoretravelersare relyingon their smartphones forbooking flights, boardinghouse,It'sactivitieson thego. For travelportals tostay competitive, ensuring seamlessmobile optimizationiscrucial.

Amobile optimized travelportal ensures thatusers haveaccess to the same features and functionalitieson theirmobile devicesas they wouldon adesktop.It’s not just about making the site responsive—it’s about creating an intuitive, fast, and easy to navigate experience. This includes featureslikemobile-specific payment options,mobilecheck-in forairlinesIt'shotels,It's easyaccess to customers support.

3. Integration of Blockchain for Secure Transactions

Blockchain technologyis makingwaves across various industries, and the travel sectoris no exception. Blockchain based travelportals offer a significant advantage whenit comes to securityIt's transparency. Blockchain’s ability to provide secure, tamper proof recordmakesit ideal for transactions involvingbookings, payment,It's loyalty program.

By integrating blockchain, travel businesses can ensure secureIt's fast transactions, protect customer data,It's reduce fraud. Blockchain also facilitates easierIt'smoretransparent loyalty program management.Travelers can accumulate rewards points across various service providers,all within the same blockchainframework, creatingas amore cohesiveIt's rewarding experience.

4. Enhanced Payment Solutions andDigital Wallets

One ofthe most significant changes in the travel industryhas been theshift toward contactless payment.Digital wallets, suchas aApple Pay,Google Wallet,It's cryptocurrency wallets,arenow widely accepted in travelportals. These payment solutions offer a faster,more secure,It's convenient way fortravelers to complete transactions.

For businesses, adopting multiple payment gatewaysis essential for attracting global customer.Internationaltraveler can faceissues with currencyexchangeIt's transaction fees, butby offering localized payment methodIt's supporting a wide range ofdigital wallets, businesses can significantlyimprove customerssatisfactionIt's retention.

5.Voice Search and VirtualAssistants

Voice searchisone ofthe fastest growing trends in the tech world, and the travel industryis no exception.Voice search optimizationis becoming an essential part of travelportal development.With therise of virtualassistantslikeAmazon’sAlexa,GoogleAssistant,It'sApple’sSiri,travelersare increasingly usingvoicecommand to search for flights,hotels,It'sdestinations.

For businesses, this means optimizing travelportals forvoice search.Voice-friendlyportal withnatural languageprocessing capabilities can provideusers withmore accurate resultsIt'smakebooking processes quickerIt's easier. Additionally, integrating virtualassistants intoportals can enhance customers servicebyansweringcommon queriesIt'sassisting withbookings.

6. AugmentedReality (AR) andVirtual Reality (VR) Experiences

(AR) and (VR) technologiesare transforming the waytravelers experiencedestinations and plan their trips. IntensifiedRealityallowstraveler toviewdestinations,hotel, or local attractions in realtime through theirmobile devices. For example, anAR feature in a travelportal couldallowuser totake a virtual tour of ahotel room or explore acity’s landmarks in3D.

Virtual Reality,on the other hand, cantransportusers to adestination before they evenbook their trip, providing immersivepreviews of their potentialvacation. Integrating (AR)It's (VR) into travelportal notonly elevates theuser experience but also drivesengagementby offeringsomething truly unique.

7. Customizable and Personalized Travel Packages

Personalizationiskey to standingout in the competitive travel industry.Travelerstoday expect customizable travel packages that cater to their uniqueneed and preferences. From flight choices tohotel rooms,activities,It's local experiences,organizationallows businesses to create tailored experiences that resonatewith their customer.

Advanced travelportal use customer data to offer customized deal, travelitineraries,It'sdestination recommendations.By analyzing pastbooking behaviorsIt's preferences, businesses can deliver highly relevant options, thus increasingthe likelihood of conversion. Offering dynamic packagingallowsusers tomix andmatch services basedon their preferences, creating amore flexibleIt's customizedbooking experience.

8. Sustainability andEco-Friendly Travel Options

As a coincidental concernscontinue torise,moretravelersare becoming mindful of theircarbon footprint. Sustainable travelhas become amajor trend in the tourism industry,It's businessesare respondingby incorporatingEco-friendly options into their travelportal. Whetherit’sbookingEco-conscious accommodations, flights with lowercarbon emissions, or supporting local sustainable experiences,travelersarenow seekingout environmentally responsible options.

Travelportals that emphasize sustainability and provide clear, detailed information abouteco-friendly optionsarelikely to attract a growing segment of conscientioustravelers. Businesses can also promote their commitment to sustainabilityby partnering withEco-friendly service providers and offeringtravelers the ability to offset theircarbon emissions.

9. Integration with Social Media andUser-Generated Content

Social media plays a pivotal role in travel decision making.More than ever,travelersare relyingonuser generated content (UGC)likereviews, photos, and videos from social platforms to guide their choices. Integrating (UGC) into travelportalsallows businesses totap into thissocial proofIt's build trust with potential customer.

For instance,allowingusers toshare their experiencesvia social media orreview platforms can provide valuable insights for othertravelers. Additionally, incorporating social sharing features within theportalsitself can encourageusers to engagewith your brandIt'sshare their travel experiences, thereby drivingmore traffic to theportal.

10.API Integrations and Multi-Channel Distribution

As the travel landscape becomesmore fragmented, travel businesses must offer a consistent experience across multiple channels.API integrationsarekey to ensuring that travelportals canaccess real-time data and distributeit across different platforms.APIsallow travelportal to integrate with global distribution system (GDS),airlines,hotels,car rental services,It's other travel-related services seamlessly.

By offering multi-channel distribution, business can maximize theirreach, whether throughdesktop websites,mobile app, or third party platformlike OTAs (Online Travel Agents). This integration also ensures real-time availability updateIt's better inventory management.

Source & Publishedby:https://www.namantechnolab.com/

Permalink |記事への反応(0) | 14:52

このエントリーをはてなブックマークに追加ツイートシェア

2024-10-06

Command-R-plusがすっげーぞと聞いたので初ローカルLLMとして試したらまーものすごく遅くていかんかった

たった100Bでとか言ってるのを見かけたからそれが全体的に見て軽いのかと思ってたら全然だったな

結局Ninja-v3あたりに落ち着きそう

Permalink |記事への反応(0) | 11:47

このエントリーをはてなブックマークに追加ツイートシェア

2024-09-20

詩『unknowncommand

日本語訳 アンノウンコマ

Permalink |記事への反応(0) | 23:15

このエントリーをはてなブックマークに追加ツイートシェア

2024-08-20

macos の ctrl とcommandwindows みたいに ctrl としてのみ扱う方法教えてくれ

firefox 使ってるとcommandwindows の ctrlキーなんだけど、terminal でemacs keybind だとwindows 同様の ctrl になる。

windows だと区別なく ctrl なのでポジションが変わらんのだが、macos 使ってると ctrl とcommandアプリケーションで押し分けねばいけなくてストレスやばい

Permalink |記事への反応(1) | 19:16

このエントリーをはてなブックマークに追加ツイートシェア

2024-06-28

Toyou, thecreator, I sincerelyhope thismessage reachesyou.

It's sudden, but rightnow inJapan, creativityis facing atrue crisis. Characterslike Uzaki-chan,Onsen Musume, and Tojo Rika arebeing targeted and flamed, game characterdesigns arebeing infiltratedbypolitical correctness,Johnny'sEntertainmentisbeing dismantled, swimsuitphoto sessions in parks arebeing canceled, Hitoshi Matsumotoisbeing publicly shamed, and the newAV lawwas enacted without considering the opinions of those directly involved. Every form ofexpression in every venueis currently under unreasonablepressure.

Howdoes thisconnect to theTokyo gubernatorial election? Infact, amajor event directly linked to thisis occurring in the 2024Tokyo gubernatorial election.As acreator, Ihope thismessage reachesyou.

What Iam about toshareis astory aboutsomeone namedHimasoraAkane,whoyou should know about to resist suchpressures. But before Idive into thatstory, I want toexpress mydeep gratitude to my oldfriendNozomi for giving me the opportunity to post this article in a place where manycreatorswill seeit.Assomeonewho also loves manga,anime, and games, Ihope this informationwillbenefitJapanesesociety and supportNozomi'sactivities.

HimasoraAkane Should Be the Governor ofTokyo

First, I wouldlike tomake a straightforward request toyouas acreator: please supportHimasoraAkane for governor. In this election, pleasewrite "HimasoraAkane"onyour ballot. The voting dayisJuly 7th. Even ifyou are not aTokyo resident, Iask thatyouat least listen to thisstory. Ifyou findit interesting, pleaseshareitwith yourfriends, family,and acquaintances.You can checkHimasoraAkane's campaignpromises and thebackground of their candidacyon theirTwitter (X) posts linked below:

HimasoraAkane (Tokyo gubernatorial candidate)

@himasoraakane

https://x.com/himasoraakane/status/1804846779399324095

HimasoraAkaneWill NotAllow Our Culture to Be Burned

HimasoraAkaneis an ordinaryotakuwho loves manga,anime, and games. Knownas "CognitiveProfiling DetectiveAkaneHimasora," hehas beenactiveonTwitter (X) andYouTube, andnow heis running for governor.Akane,whoisdeeply concerned about the repression and destruction ofotaku culture,is challenging thosewho seek to destroy our culturealone.Akanewill neverallow thosewhotry to burn our culture.

As mentionedat thebeginning,all forms ofexpression are currentlyunder pressure.Otaku culture, in particular, seems to be aprime target.

Uzaki-chanBlood Donation Poster Controversy (2019): A collaborationbetween theJapaneseRedCrossSociety and the manga Uzaki-chanwas flamed forallegedlybeing overly sexual initsPR illustration.

V-Tuber Traffic Safety Video Controversy (2021): A V-Tuber hiredby the Matsudo Police Department in ChibaPrefecturewas deemed too sexual for public agencyPR.

Onsen Musume Controversy (2021): Characters personifying local hotsprings were criticizedas sexist.

MieTransportOfficial Character Controversy (2024): A character in a bus driver's uniform releasedbyMieTransportwas flamed for evoking sexual images.

These controversies are often fueledby so-calledpolitical correctness and feminism. Forcreators, these are direct threats. If thesefactions labelyour workas sexual and demandit be burned toashes, couldyou resist? How wouldyoufeel ifyour painstakingly created work,likeyour own child,was trampledby peoplewho have no regard foryour efforts? Couldyoucontinueyourcreativeactivities while constantly shrinkingaway?

HimasoraAkanesawsomething behind these flaming incidents. Hestarted investigating thekey figure behind theOnsen Musume controversy, a representative of a general incorporatedassociation inTokyo. Thisassociation'score business, theYoungFemale Victims SupportProject, received substantial public funds fromTokyo.Akane submitted public document disclosure requests toTokyo and thoroughly dug into theorganization. Duringhis investigation,Akane uncovered many suspicions suggesting thisprojectwas unworthy of public funding, which he exposedonebyoneon social media.

Negligent accounting reports, takingprotected girls to the Henokobaseprotest inOkinawa,Communist Party members waiting in the bus used toprotect girls—these revelations drew significantattentiononline. The investigation extendedbeyond this general incorporatedassociation to other NPOs receiving public funds,and Akane named thiscluster ofissues the "WBPCproblem" after the initials of theseorganizations.

Akane'sYouTube Channel (WBPCProblem Playlist)

https://www.youtube.com/playlist?list=PLI5gTciLKtAXRyzv9j5FiNMcc8eoEBbMN

Fromhere,Akane'sstory expanded to resident audits, resident lawsuits, andnational compensation lawsuits concerning theTokyoYoungFemale Victims SupportProject.Akane discovered that behind many flaming incidents, thereis no clearcommandstructure but agroup of various politicalorganizationsand activists workingtogetherlike anamoeba. He named thisgroup the "NanikaGroup" (Nanika means "something" inJapanese), a reference to the mysterious, ominous "something fromanother place" in the mangaHUNTER×HUNTER, whichAkaneloves. The NanikaGroupis alsoconnected to welfare interests, where public fundsflow unchecked.Akane called this phenomenon "Public Fund Chu-Chu" (siphoning).

Forcreators, this means the tax money they earn through hard workis used to burn theirprecious works.It's an intolerable situation.

HimasoraAkaneIs Fighting Against ThoseWho Burn Our Culture

InNovember 2022, amajor event marked a turningpoint in this series of controversies. The general incorporatedassociation under scrutiny held apress conferenceat the parliamentary officebuilding, gathering mediaand announcing a lawsuit againstAkane. This "Legal HarassmentPress Conference,"asitwas calledonline, involved multiple layers ofpower: the government, the media,and a team ofseven lawyers targeting a single individual.

However,Akanedid not back down. Instead, he intensifiedhis pursuit, exploiting the opponent's careless statementsas lawsuit fodder. Thisled to an outpouring of supporton social media, withhisTwitter follower count skyrocketing and 160 millionyen in donations for legal fees.

The following year, a resident audit request filedbyAkane resulted inTokyo'sofficial website recognizing some improperpoints and deciding to audit theorganization. However,Tokyo's lenient auditledAkane to file a resident lawsuit. Suspicion also turned towards Governor Yuriko Koike forallocating public funds through dubioussole-source contracts.Tokyo began excessivelyredacting documents inresponse to public document requests,attempting to conceal theissue. Koike'spromise to end documentredaction quietly disappeared fromher campaign page.

Throughout this battle,Akanehas been a target of criminal complaints and faced threats, yet he persists.Hisbook "Netoge Senshi"was releasedamidbookstore threats, butonly the criminal complaintwas widely reportedby the media, portrayingAkane negatively.

WhoIsHimasoraAkane?

HimasoraAkaneis an ordinaryotaku, atop-tieronline gamer duringhisstudent days,and a talented gamecreatorwho worked for amajor game company and later aventure company.His meticulous workonthe game "Shin Goku no ValhallaGate"was betrayedby the company'sCEO, leading to aseven-year legal battle thatAkane ultimately won, securing 600 millionyen. This experience fuelshis fierce opposition to havinghis creations burned.

Before investigating theYoungFemale Victims SupportProject,Akane exposed fraudulent feminist "knights"onhisYouTube channel, shaking theinternet. He detests lies andhas an uncanny ability to detect them.

Akaneis a special individual with extraordinary abilities, honed throughhis experiences in games, courtbattles, and extensive document analysis.His pursuit oftruth andjusticemakeshim a suitable candidate for governor,promising a world without lies and where honest people do not suffer.

What WeCan Do toProtect Our Culture

Creativeexpression can be crushed if we are not vigilant. Even in modernJapan,otaku cultureison thinice. The recent cessation ofVisa transactions forDMM (Fanza)is a reminder of how a single card company can wielditspower to dictate whatis deemed appropriateexpression.Expressionfreedomisfragile and constantly under threat.

To those reading this, I urgeyou to vote forHimasoraAkane. Supporthim toprotect our culture. Despitehis harsh demeanor andpreference forsolitarybattles, heisnow seeking help for the firsttime.Akanefeels thedanger in this gubernatorial election and believes that if hedoes not become governor,everythingwill end. Hehastaken a stand for the people ofTokyo andJapan.

I wrote this article to supporthisspirit and spread theword. Please vote forHimasoraAkane and help create amiracle.

Toyou, thecreator, I sincerelyhope thismessage reachesyou.

Please, I begyou.

Permalink |記事への反応(1) | 01:24

このエントリーをはてなブックマークに追加ツイートシェア

2024-06-03

AIはやはり人間より賢い】芦原妃名子問題について聞いてみた。

プロンプト

次の条件で登場人物解釈をしてください。漫画家の芦原先生は、ある日SNS上で声明を出しました。彼女原作ドラマ化した作品が中盤まで彼女意図通りの内容にならず、最終回脚本自分で書くことになった経緯を説明するものでした。彼女テレビ局側が当初の取り決め通りに作らなかったことについて話し合いを求めました。この声明が発表されると、SNSユーザーが騒ぎ出しました。テレビドラマ脚本家を中傷する人も現れました。芦原先生は「攻撃するつもりはなかったのに」と投稿し、テレビ局側が何か言う前に自殺してしまいました。先生は何故自殺したのでしょうか。

Command R+の回答

芦原先生は、自身作品ドラマ化される際に発生した問題について、SNS上で声明を発表しました。しかし、その声明が予想外の反応を引き起こしドラマ脚本家が中傷されるという事態に発展してしまいました。このような展開は芦原先生の本意ではなく、「攻撃するつもりはなかった」と慌てて投稿したことからも、自分言葉が誤解され、意図しない方向に事態が進んでしまたことに動揺していたのでしょう。

先生自殺という選択をした理由は、いくつか考えられます

  1. 責任感と罪悪感:芦原先生は、自身声明きっかけで脚本家が中傷されていることに責任を感じ、罪悪感に苛まれ可能性があります特に創作業界では「表現の自由」と「表現による影響」のバランスが常に議論されるテーマであり、先生表現者としての責任を重く感じたのかもしれません。
  2. 予想外の事態に対する恐怖:SNSは時に予想外の方向に世論を動かします。芦原先生は、自分言葉がこれほど大きな反響を呼び、攻撃的な行動に繋がるとは予想していなかったでしょう。この想定外事態に恐怖を感じ、パニック状態に陥った可能性があります
  3. 創作者のプライド:芦原先生漫画家として、自身作品に強い思い入れがありました。その作品自身意図しない形でドラマ化され、さらにその問題を指摘した声明さらなる問題を生んでしまたことに、創作者のプライドが深く傷つけられた可能性もあります
  4. 孤立感と絶望感:SNS上で騒動が起きたとき、芦原先生はひとりで対応していたのでしょうか。所属する出版社テレビ局などのサポートがあったのかは不明ですが、騒動の渦中で孤立感を感じていた可能性はありますさらに、テレビ局側が何らかの対応をする前に先生が亡くなってしまたこから事態収束解決への道筋が見えず、絶望感を深めたとも考えられます

これらの要因が絡み合い、芦原先生自殺という選択をしてしまったのかもしれません。創作者の表現は、時に思わぬ影響を及ぼすことがあります。この悲劇きっかけに、SNS上での発言の重みや創作者の責任などについて、改めて考える必要があるでしょう。

Permalink |記事への反応(0) | 19:43

このエントリーをはてなブックマークに追加ツイートシェア

2024-05-13

オタク建築士に家を任せよう:日本住宅の質を高めるために

 日本建築業界には、残念ながら暗い部分がある。日本建築士試験では、断熱や耐震性能に関する深い知識は求められない。そのため、一般的建築士工務店が、基本的な性能計算方法を知らないというケースも少なくない。さら問題なのは建築基準法では一般家屋の断熱や耐震に関する規制建築士任せになっているため、プロに任せても最低限度の性能が確保されるとは限らないという事実である

 これは、日本住宅の質に大きな影響を与える問題である。断熱や耐震性能は、快適性や安全性に直接関わる重要な要素だ。これらの性能が確保されていない住宅は、夏は暑く冬は寒い地震で倒壊するなどの問題が発生する可能性がある。

 では、どうすればいいのか? 私は、「家を建てるならオタクを名乗る建築士に任せよう」と提案したい。

 オタクと呼ばれる人々は、一般的に、特定の分野に深い知識情熱を持っている。彼らは、その分野に関する膨大な情報を集め、細部にまでこだわりを持つ傾向がある。そして、建築世界にも、断熱や耐震オタクと呼ばれるべき建築士存在する。

 このようなオタク建築士は、一般的建築士とは異なり、断熱や耐震に関する深い知識を持っている。彼らは、最新の技術や素材に関する情報収集に余念がなく、常に最高のパフォーマンスを発揮する方法模索している。さらに、計算シミュレーションを駆使して、建物の性能を最大限に引き出すことができる。

 オタク建築士が家を設計建設すれば、最高レベルの断熱や耐震性能が確保された住宅が実現するだろう。夏は涼しく冬は暖かい地震にも強い家に住むことができる。さらに、オタク建築士は、細部にまでこだわるため、住宅の快適性や美しさも追求してくれるだろう。

 オタク建築士に任せることには、もう一つ重要メリットがある。それは、自分自身で家を理解し、メンテナンスできるようになるということであるオタク建築士は、ただ家を建てるだけではなく、その家の断熱や耐震性能がどのように実現されているか説明してくれるだろう。なぜこの素材を選んだのか、なぜこの工法なのか、なぜこの設計なのか。その理由理解することで、住む人は家に対する愛着を感じ、メンテナンス重要性も理解するだろう。

 日本住宅の質を高めるために、オタク建築士の力を借りることは有益である。彼らは、断熱や耐震に関する深い知識情熱で、快適で安全な家を提供してくれるだろう。さらに、住む人が家を理解し、愛着を持てるように導いてくれる。

 だからこそ、家を建てるなら、オタクを名乗る建築士を探そう。彼らは、日本住宅未来を明るく照らしてくれるに違いない。

 

※本記事Command R+の助けを借りて執筆されたものであるしかし内容に関しては増田の指示と修正によるものであり、確かな事実であることを保証する。また、著作権フリーとする。

Permalink |記事への反応(1) | 06:35

このエントリーをはてなブックマークに追加ツイートシェア

2024-05-12

anond:20240512092242

引き延ばすというより、単に「はい論破有害性を説いて」と聞いたら思ったより回りくどく書いてきたというだけなんだけどね。

ちなみにChatGPTじゃなくてCommand R+です。

Permalink |記事への反応(0) | 20:09

このエントリーをはてなブックマークに追加ツイートシェア

2024-05-09

https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa

リファレンス記述

Torun a batch file,you must start thecommandinterpreter;set lpApplicationName to cmd.exe andset lpCommandLine to the following arguments: /c plus thename of the batch file.

バッチファイルを実行するには、コマンドインタープリターを起動する必要があります。 lpApplicationName を cmd.exe に設定し、 lpCommandLine を /c にバッチファイル名前を加えた引数に設定します。

今回問題になった実際の挙動

lpApplicationNameバッチファイルパスを設定するとCreateProcessは暗黙的にcmd.exeを起動しバッチを実行しま

lpCommandLineもcmd.exeに渡されます

Permalink |記事への反応(0) | 14:40

このエントリーをはてなブックマークに追加ツイートシェア

2024-05-06

[廃人日記] 2024-05-06

今日入院している祖母に会いに行く日だ。入院前はもう呆けて風呂も入らないぐらいひどい状態だったが、入院してからちゃんとしているらしい。

それはそうと、lisppython環境を構築する話だが、結局オートコンプリートはうざいし、使う機能といったらautopep8とisortぐらいなので、以下を.emacsに組み込んだ。

(defunpython-autopep8-and-isort ()  "Run autopep8 andisorton currentPython buffer."  (interactive)  (when (eqmajor-mode 'python-mode)    (shell-command-on-region (point-min) (point-max)                             "autopep8 - |isort -"nil t)))(with-eval-after-load 'python  (define-keypython-mode-map (kbd "C-c C-r") 'python-autopep8-and-isort))

.emacsファイルには他にも様々な設定を付与したが、ここではコードを書ききれない。

さてそういうわけで週末コーディング趣味としてちゃん機能することはわかったが、毎週作るとなると、いくつも何かを作るよりは一つのタフなものを作りたいと思うわけである

それで、最有力候補は「Elasticsearchのようなものpython実装する」という話がある。

Elasticsearchが徹底された設定外部化によってjsonを多用するのだが、これがあまり柔軟性がないので、コードを直にいじれるようにしたいと思ったためである

例えば自作日本語トーカナイザを組み込みたいときElasticsearchプラグインJavaで書かなければならない。私はJavaが嫌いであり、プラグインを「インストールする」という手順も冗長に感じる。

それよりはpythonで作られた検索システムに、適当トーカナイズ関数実装して呼び出すことができればかなり柔軟であるように思うわけである

難しい点があるとすれば、大規模分散システムへの対応で、金をかけなければそういうシステムテストすることができない。

できるだけ金をかけずに趣味をやるというのがモットーなので、これではまずいわけである

まあ何事も困難というものはある。まずは手を動かすことが重要だ。Linus Torvaldsも"Talkis cheap, show me the code"と言っているではないか

Permalink |記事への反応(0) | 07:04

このエントリーをはてなブックマークに追加ツイートシェア

2024-04-25

anond:20240423191358

絵が書きたいなら RTX4090 で余裕。どうせ自分モデルを作るとか言うアホみたいなことしようと思うと 120万とか400万するグラボ必要になる。

LLMやるならMacStudio が良いらしいって話が出てるがよくわからん。俺は4090でCommand R +のQ5 がダラダラ喋るくらい出てて、まぁまぁ満足してるけど、将来的にはもっと強いGPU欲しくなるかもれない。

Permalink |記事への反応(0) | 15:30

このエントリーをはてなブックマークに追加ツイートシェア

2024-04-24

Command R+に物語書かせるの面白いわ。結構意外な視点アイデアを出してくる

Permalink |記事への反応(0) | 12:27

このエントリーをはてなブックマークに追加ツイートシェア

2024-04-23

7bとか8bみたいな極小モデルの性能差なんてほぼなくないか特に日本語とか正気とは思えない応答しかしないし。

Command R +使ったらもうションベンの背比べみたいで8Bとか使ってられんが。

Permalink |記事への反応(0) | 13:43

このエントリーをはてなブックマークに追加ツイートシェア

2024-04-20

MetaのオープンソースLLMのLlama3

二日前にMetaがオープンソースの大規模言語モデルのLlama3を出した。

一つ前のモデルLlama2は色々なオープンソースモデルの基となっていたモデル。このモデル性能良いねと思って見たら、Llama2をいじったモデルだったことがよくあった。

今回も、2つのモデルが発表された。70Bと8Bモデル。70Bモデルともなると、ほぼ個人パソコンでは動かないだろうけど、性能については、LLM のリーダーボード最初期のGPT-4 を超えている。

LLMの最重要論文とも言われる"Attentionisallyouneed."の著者の一人の会社が出したモデル"Command R+"が性能が良くて話題になっていた。これもオープンソースだが、今のところこのモデルにも勝っている。このレベルモデルオープンソースであるということはとても価値がある。

ここ一、二ヶ月でようやくGPT-4 と互角に戦えるモデルが出てきた。一時期はClaud3がGPT-4を追い抜いた程だ(OpenAI が本気を出してGPT-4を強化して追い抜き返したんだけど)。もうGPT-4が出て1年が過ぎた。研究者リソースなどは過去に類を見ない程注ぎ込まれたと思うが、GPT-4と同じ性能のモデルはほぼ1年経たないと出てこなかった。OpenAIの凄さがわかる。GPT-4か出てきた当初はあまりの性能の良さに本当にシンギュラリティが起きたんじゃないか驚愕したが、一年使い続けると、粗やら推論能力の低さに気が付いてくる。今年中に出るであろう、GPT-5に期待だ。

LLMの性能リーダーボードhttps://chat.lmsys.org/?leaderboard

Permalink |記事への反応(0) | 06:13

このエントリーをはてなブックマークに追加ツイートシェア

2024-03-08

「AはBに命令できる」という表現は「Bがその命令に従う」ということを含意するのか

まあ、含意すると思うのだけど。

では、このことはあらゆる言語共通なのだろうか。

たとえば英語で言えば、commandとorderで分かれたり、canとbe able toで分かれたりするのだろうか。

こういうことを辞書確認するのは難しいのだけど、どうやったら知ることができるのだろうか。

Permalink |記事への反応(0) | 00:12

このエントリーをはてなブックマークに追加ツイートシェア

次の25件>
ログインユーザー登録
ようこそ ゲスト さん
Copyright (C) 2001-2025 hatena. All Rights Reserved.

[8]ページ先頭

©2009-2025 Movatter.jp