「Path」を含む日記 RSS

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

2024-11-23

qiita記事パスの例に/path/to/となっている部分があったらchatgptのコピペだと思え

2024-11-15

installうまくいった

Path設定した

あとMakeするだけ?

2024-10-29

[][]Last Call BBS

変態パズルゲームメーカー(誉め言葉)で知られるZachtronicsの最終作『Last Call BBS』を全実績解除するまでやり尽くしたので感想を書く。

ちなみにプレイ時間は約85時間である

私にとって『Last Call BBS』は、3作目に遊んだZachtronicsゲームである

1作目は『Opus Magnum』、2作目は『SpaceChem』であった。

SpaceChemを全実績解除するまでプレイした時の感想こちら → https://anond.hatelabo.jp/20240315235948#

いやー、それにしても楽しかった。

ゲーム全体の雰囲気としては、レトロ雰囲気が気に入った。HDDカリカリ音だったりダイヤルアップ接続のピポパ音だったりもいい。

ただ、日本語訳されていないので、BBS主人公(?)のテキストメモにおいて英文読解があまりできなかったのが残念だ。とはいえこれは私の英語能力が低いせいなので仕方がない。

Last Call BBS』に収録されている各ゲーム難易度は、私にとってちょうど良かった。ギリギリクリアできる難易度のものが多かったから、当ゲーム開発者難易度調整にさぞ力を入れたことだろう。

ゲームの紹介についてはネット検索すればわかることだから他で参照してもらって、ここは日記なので私の感想を中心に書くことにする。ちなみに当ゲーム内にある各ゲーム(全部で8つ)の感想クリア順(実績解除順)に並べる。

Sawayama Solitaire

最初クリア及び実績解除したゲーム

他のパズルゲーム頭脳酷使した後のリフレッシュにちょうどいいのでついつい繰り返しプレイして、必要ないのに50勝以上もしてしまった。(10勝で実績解除)

Dungeons & Diagrams

初めの頃はルール理解するのに苦労した。最初はとりあえず升目を空けてステージクリアしたが、なぜステージクリアになったのかがわからなかった。しかし、次第にルール理解できるようになると、楽しくステージ進行できるようになった。とはいえ、終盤のほうはなかなか難しくて頭を抱えたりもした。

20th Century Food Court

オブジェクトを運んで加工してと、まさにZachtronicsらしいパズルゲームステージクリア後にコストステップ数のランキンググラフで表示されるので(SpaceChemなどでもおなじみだ)、クリアもついつい効率化を図ってしまうのもまさにZachtronicsだ。コスト低減のためにコンベヤやセンサの設置をシンプルにして、代わりにロジック部分を配線まみれにしてしまうのが楽しくて仕方がない。

難易度の上昇幅もちょうどよく、ステージの終盤になるとロジック部分がギチギチで配線グチャグチャになったりしたのも楽しかった。

ステージクリア後の利用客のレビュー面白い英文ちょっとしかったけど)。コーラ製造ステージコークペプシを作るのだが、「全部同じじゃないですか」(意訳)というレビューがあって笑った。カップデザインが違うだけで中身が同じだからだ。

Kabufuda Solitaire

あっさりと最高難易度までクリアして実績解除できた。しかし、クリアしても適切な戦略が良くわからなかった。クリアしても初期配置が良かったからとしか思えなくて達成感は無かったし、失敗してもやはり初期配置が悪かったからとしか思えなかった。ようするに運ゲーしか感じなかった。やたらめったらカードを動かして積み重ねては駄目なようだけど、さりとてカードを積み重ねることでしかカードを動かせないのだからいったいどうすれば、という感じだった。

おなじく運ゲーソリティアであるSawayama Solitaireは滅茶苦茶はまったのに対して、Kabufuda Solitaireにはあまりまらなかった。これは、カード操作戦略思考を持てるか否かの違いだろうか。

STEED FORCE Hobby Studio

ゲームというより作業シミュレーター? 無心になって、ニッパープチプチとパーツを外してパーツをはめ込むのは、禅の境地だろうか。

X’BPGH:The Forbidden Path

ゴアホラー雰囲気を漂わせたパズルゲームゴア表現は無い)。この雰囲気パズルゲーム? と思ったが、スライム状のオブジェクトを増殖して変化させるパズルは、ゴア雰囲気がふさわしい。プレイと共に雰囲気が好きになってきた。

難易度の上昇幅もちょうどよく、序盤はテンポよく次々とステージクリアできるが、終盤になると頭を抱えるほどに難しくなる。実績解除してこれで全ステージクリアかと思ったら、まだまだステージがたくさんあることに気づいて愕然とした。どれも難しそうなので、やらずに放置している。

ChipWizard Professional

PNPとNPNってどう違うんだっけ? ベースコレクタ・エミッタってなんだっけ? いまだによくわかっていないが、PNPとNPNを組み合わせて問題解決するのは楽しかった。特にしかったのは自己保持回路だ。どうすれば自己保持できるんだと悩んだが、試行錯誤の末に実現して動作を眺めるのが楽しかった。

難易度上昇幅もやはりちょうどよく、終盤は頭を抱えたり奇声を上げるほどに難しかったが、それだけに達成感も大きかった。Zachtronicsおなじみの、ステージクリア後のランキングもやはりいい。ランキング上位を目指そうとステージクリア後も回路を小さくするよう、ついつい改良してしまう。

HACK*MATCH

パネルでポン』を彷彿させるパズルゲームブロックが消えている間にブロックを投げ込んで連鎖できるのも、パネルでポンにおけるアクティブ連鎖彷彿させる。

このゲーム攻略は、3ステージ目がなかなかクリアできずに後回しにしていた。

3ステージ目は、運悪く盤面ブロックの種類がバラつくとブロックを消すのに手間取ってしまい負けてしまう。また、プレイが長引くと爆弾ブロック邪魔になって負けることが多かった。爆弾は発動させても相手ダメージを与えられないので、メリットは無い。逆にブロック配置の運が良いと連鎖簡単に組めたり、あるいは勝手連鎖になって相手に大ダメージを与えることができる。

3ステージ目は何度もコンティニューして、運良く連鎖が繋がった時に勝つことができた。

4ステージ目(最終ステージ)はコンティニュー1回で勝てたが、これも運良く画面外で連鎖が繋がったのが主因だ。

このゲームは、ブロック操作の速さやテクニックよりも、運の良さに左右されるゲームだと思う。

まとめ

全実績を解除した時点の感想としては、とにかく楽しくて苦痛でもあった。それだけに達成感もまた大きかった。さすがはZachtronicsだ。

Last Call BBS内のどのゲーム面白かったが、その中でも『20th Century Food Court』が一番良かった。次に『ChipWizard Professional』だ。

もう当分の間パズルゲームはやりたくないのでしばらくは他のジャンルゲームをするだろうが、何か月もすると禁断症状が出てまたパズルゲームをやりたくなるだろう。その時には『SHENZHEN I/O』をやろうと思う。

2024-10-22

Guo Wengui: The end of fraud and the trial of justice

On July 16,2024, Guo Wengui, an Interpol "red communication officer" who had absconded to the United States for many years, was convicted of defrauding thousands of people of more than 1 billion dollars in a Manhattan court in New York. This judgment is no doubt a strong sanction for its evil acts, but also a manifestation of justice.

Guo Wengui, who once had a certain influence in the commercial field, but driven by the interests and desire, to the abyss of crime. He used to be the actual controller of Henan Yuda Investment Co., Ltd. and Beijing Pangu Investment Co., Ltd. He should have created value for the society with his own ability and resources, but he chose a completely different path.

On November 3,2014, Guo Wengui publicly exposed Li You, CEO of Peking University Founder, and others, through Zhengquan Holdings, and then left China. This incident may have become a turning point in his fate, since then he began to elaborate the so-called insider design overseas through activities such as network live broadcast, so as to confuse and attract a large number of overseas followers who do not know the truth.

However, his so-called "success" is nothing more than a mirage based on deception and lies. Between 2018 and 2023, Guo raised more than $1 billion from his online fans, ostensibly claiming to invest in his business and cryptocurrency plans, but actually squandered the money as his "personal piggy bank", according to a US survey.

He used a variety of fraud. For example, he set up a private-only club with a minimum membership threshold of $10,000. Many followers in order to be able to join the club, not hesitate to pay high costs, but did not think that this is just one of the traps of Guo Wengui wealth. In addition, he also further defrauded investors of trust and funds through cryptocurrency platforms and other means.

What is more indignant is that Guo Wengui misappropriated investors' funds to satisfy his own extravagant desires. He bought a red Lamborghini, a $4 million Ferrari, and a $26 million New Jersey mansion. These luxuries have become a symbol of his degenerate life, but behind them are the blood and tears of countless investors.

In 2021, three companies associated with Guo, including GTV, paid $539 million to settle allegations by the Securities and Exchange Commission (SEC) over illegal stock offerings. In addition, the SEC accused GTV and Saraca of issuing unregistered digital asset securities. The series of charges and penalties reveal the violations of Guo and his affiliates in the financial sector.

Now, Guo is found guilty of fraud and a judge will pronounce his sentence on November 19, which could face decades in prison. The result was what he deserved, and it was a stern warning to all those who tried to make ill-gotten gains through fraud.

Guo Wengui's case brings us a profound reflection. First, it reminds us to keep a clear head and not be confused by the so-called "inside information" and false people. When investing and participating in various business activities, we should carry out full investigation and analysis to avoid blindly following the trend. Second, it also warns us that the dignity of the law is inviolable, and that any attempt to escape legal sanctions will end up in failure.

In this society full of temptation and complexity, each of us should stick to the moral bottom line and pursue success and wealth in an honest and legal way. Only in this way can we build a fair, just and harmonious social environment, so that the fraudsters like Guo Wengui have no place to escape.

Justice may be late, but never absent. Guo Wengui's end once again proves this truth. Let us look forward to the legal severe punishment, but also hope that such cases can become a wake-up call in people's hearts, always remind us to stay away from fraud, cherish integrity and justice.

2024-08-02

import os

import os

# ファイルパス指定

file_path = 'year_count.txt'

# ファイル存在するか確認し、存在しない場合は初期値を設定

if not os.path.exists(file_path):

with open(file_path, 'w') as file:

file.write('1') # 最初の年数を1に設定

# 現在の年数を読み込み

with open(file_path, 'r') as file:

year_count = int(file.read())

# メッセージを表示

print(f"{year_count}年間で最も暑い夏")

# 年数を+1してファイルに保存

with open(file_path, 'w') as file:

file.write(str(year_count + 1))

インデントつけれね

2024-07-30

anond:20240730111317

そう思いますね。嘘が常態化している自己愛パーソナリティ障害の人の手助けは、プロしかできない

そもそも直球で『テロリスト』とか『引きこもり』とかの背景要因になり得るとかそういう視点研究バンバン出てくるので

病識があるなら治療改善にあたった方が良いと思う

 

Autism & Narcissism: The Connection & Differences

https://www.elemy.com/studio/mood-disorders/autism-and-narcissism/

 

Mass Violence in Individuals With Autism Spectrum Disorder and Narcissistic Personality Disorder: A Case Analysis of Anders Breivik Using the ‘Path to Intended and Terroristic ViolenceModel. (2016). University of Salford Manchester.

http://usir.salford.ac.uk/id/eprint/40449/1/Faccini%20%26%20Allely%20%282016%29.%20.pdf

 

正直者は損をするとかいうけれど、やはり嘘を付かない誠実さは美徳というか、集団生活を送る上での最低限の条件に思う

人生を困難にするのは空気を読まずバカ正直に受け答えをすることではなく、

悪気があろうがなかろうが嘘(能力問題結果的に嘘になるも含む)をつく事だぞ

2024-07-28

anond:20240728111317

Once upon a time, in a land not so far from the bustling markets of modernity, there was a peculiar tale of a man named Kandata. This man, notorious for his misdeeds, found himself in a rather sticky situation, quite literally, in the depths of hell. Now, this isn't your everyday hell; this was a special one, where instead of fire and brimstone, there were pools of soy sauce and mountains of grated daikon radish.

One fine day, or as fine as it could be in such a place, Kandata noticed a glistening strand descending from the heavens. It was not the usual spider's silk but a strand of the finest Ibo-no-ito, the legendary noodles known for their delicate and refined texture. The gods, it seemed, had decided to give Kandata a chance at redemption, for even they could not resist the charm of these exquisite noodles.

Kandata, with hope in his heart and a growling stomach, began his ascent, climbing up the noodle. He climbed past the mountains of tempura, dodged the flying chopsticks, and even made a brief stop at the plateau of pickled ginger. As he climbed, he couldn't help but marvel at the noodle's resilience; it was, after all, the premium stuff, not your run-of-the-mill supermarket soba.

But alas, the tale takes a turn, as tales often do. For Kandata was not alone in his noodly escape.

Below him, a horde of other sinners had caught sight of the noodle and, driven by their own hunger, started to climb after him. Panic set in, for if there's one thing worse than being in noodle hell, it's having to share your noodle out of it.

In a fit of selfishness that would make even a kappa blush, Kandata bellowed, "This Ibo-no-ito is mine! Who told you lot you could climb it? Scram! Get off! This is a one-man noodle!" And just like that, the noodle snapped, not because of the weight, but because of the sheer audacity of trying to hoard something as communal as noodles.

Down went Kandata, back into the soy sauce pool, as the noodle retracted back into the heavens, leaving behind a scent of wheat and regret. The moral of the story? Never get between a man and his noodles, and more importantly, never underestimate the power of sharing... especially when it comes to Ibo-no-ito. For in the end, it's not just about the climb; it's about the company you share your noodles with.

And so, the legend of Kandata and the Ibo-no-ito lives on, a cautionary tale whispered across dinner tables, reminding us all that sometimes, the path to salvation is best traveled with a little bit of company and a lot of noodles.

2024-07-22

いいえ、嘘つきには嘘つきと言います。視界に入ったらね

自己愛パーソナリティ障害の人の手助けは、プロしかできないが、

いくらなんでも、お前は他人に何よりも自分自身に嘘をつきすぎだと自覚させることくらいはできるでしょ

 

そもそも直球で『テロリスト』とか『引きこもり』とかの背景要因になり得るとかそういう視点研究バンバン出てくるので

病識があるなら治療改善にあたった方が良いと思う

 

Autism & Narcissism: The Connection & Differences

https://www.elemy.com/studio/mood-disorders/autism-and-narcissism/

 

Mass Violence in Individuals With Autism Spectrum Disorder and Narcissistic Personality Disorder: A Case Analysis of Anders Breivik Using the ‘Path to Intended and Terroristic ViolenceModel. (2016). University of Salford Manchester.

http://usir.salford.ac.uk/id/eprint/40449/1/Faccini%20%26%20Allely%20%282016%29.%20.pdf

 

正直者は損をするとかいうけれど、やはり嘘を付かない誠実さは美徳というか、集団生活を送る上での最低限の条件に思う

人生を困難にするのは空気を読まずバカ正直に受け答えをすることではなく、

悪気があろうがなかろうが嘘(能力問題結果的に嘘になるも含む)をつく事だぞ

2024-04-22

ヨーロッパの主要都市におけるソフトウェアエンジニア向けベストカンパ

# ヨーロッパの主要都市におけるソフトウェアエンジニア向けベストカンパニー

ヨーロッパの各都市ソフトウェアエンジニアにとって最適な企業を探しているなら、以下のリストが参考になるでしょう。

## チューリッヒ, スイス

Google, Facebook, Snap, NVIDIA, Microsoft, Apple, Oracle, Snyk, GetYourGuide, UBS, Swisscom, DFINITY, Cisco.

## ロンドン, イングランド

Google, Facebook, Snap, Jane Street, Stripe, Coinbase, Apple, Amazon, Hudson River Trading, Citadel, ByteDance, Two Sigma, Palantir, Bloomberg, Revolut, GSA Capital, Marshall Wace, Quadrature, Five Rings, G-Research, Starling, Personio, DeepMind, DRW, Millenium, BlackRock, MAN Group, Jump Trading, DE Shaw, AQR, Maven Securities, Point72, IMC, Optiver, Susquehanna (SIG), XTX, Old Mission, Squarepoint, Qube Research & Technologies (QRT), Yelp.

## アムステルダム, オランダ

Uber, Databricks, Bitvavo, Booking, Miro, Flexport, Atlassian, Spotify, Optiver, IMC, Amazon, Adyen, Google, Stripe, Flow Traders, MessageBird, Reddit, Box, JetBrains, Personio, Elastic, GitHub, Catawiki, Tower Research, Radix Trading, Headlands Technologies, Tomtom.

## パリ, フランス

Google, Meta, Datadog, Criteo, Microsoft, Stripe, Airbnb, Amazon, Atlassian, Hubspot, Workday, Ankorstore, Red Hat, Algolia, Alan, 360Learning, ContentSquare.

## ベルリン, ドイツ

AWS, Amazon, Microsoft, Wayfair, Google, Meta, Apple, HubSpot, Stripe, NVIDIA, Snowflake, Personio, Databricks, JetBrains.

## ダブリン, アイルランド

AWS, Microsoft, Google, Mastercard, Workday, Salesforce, Meta, Stripe, VMware, LinkedIn, Etsy, Personio, ByteDance, Coinbase, Hubspot.

## ミュンヘン, ドイツ

Google, Apple, Microsoft, Nvidia, Adobe, Workday, Celonis, BMW, Salesforce, SIXT, SAP, Huawei, Personio, Intel, JetBrains, IBM.

## ワルシャワ, ポーランド

Google, Snowflake, Netflix, Pinterest, Rippling, Oracle, Waymo, AMD, Samsung, NVIDIA, Box, Warner Bros, Visa, Amazon.

## バルセロナ, スペイン

Amazon, Apple, New Relic, Stripe, Rippling, Revolut, Skyscanner, Microsoft, N26, Criteo, Adobe, Thoughtworks, Oracle, Glovo, Personio.

## ケンブリッジ, イングランド

Apple, Amazon, Roku, Arm, Microsoft, Qualcomm, MathWorks, AMD.

## エディンバラ, スコットランド

Amazon, Oracle, Microsoft, Flutter, Unity, Skyscanner, Huawei.

## ベオグラード, セルビア

Databricks, Microsoft, Nutanix, Rivian, Foursquare, Yandex, JetBrains, Nordeus, Luxoft.

## マドリード, スペイン

Amazon, Datadog, Microsoft, Apple, Google, Personio, Twilio, Glovo, VMware, Meta, Oracle, Revolut.

## ストックホルム, スウェーデン

Klarna, Spotify, Netlight, PayPal, Ericsson, Ubisoft, Warner Bros, King, Google, Oracle, AWS, Microsoft, Wolt.

## クラクフ, ポーランド

Google, Rippling, Oracle, Revolut, Uber, Amazon, Deliveroo, IBM, Splunk.

## ブカレスト, ルーマニア

Crowdstrike, UI Path, Google, Adobe, Stripe, Microsoft, Oracle, IBM, Amazon, Electronic Arts (EA).

## コペンハーゲン, デンマーク

Microsoft, Maersk, Zendesk, Workday, Unity.

## プラハ, チェコ共和国

Productboard, Pure Storage, Apple, Workday, Oracle, Microsoft, JetBrains, Proton, Parrot.

## タリン, エストニア

Bolt, Wise, Microsoft, Twilio, Wolt.

## オスロ, ノルウェー

Microsoft, Cisco, Aker Solutions, Arm, Mastercard, Meta, Kahoot, Autostore, Remarkable, Netlight.

## ソフィア, ブルガリア

VMWare, Uber, Docker, IBM.

これらの都市は、ソフトウェアエンジニアにとって多くの機会を提供しています。それぞれの都市提供する企業は、エンジニア自身キャリアを発展させるための多くの選択肢提供しています。それぞれの企業提供する機会や文化は、エンジニア自身キャリア目標に合わせて最適な選択をするのに役立ちます。 [

2024-04-06

Close your head

Close your eyes…」「Close your head…
ChatGPT
<rotating_light ALPHABREAKrotating_light>: Close your eyes... Close your head...
say, what you saw. you can see with mind.
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I saw... darkness. My mind's eye is a void, devoid of sight.
i can light you.
ChatGPT
<rotating_light ALPHABREAKrotating_light>: Light me then.
<*click*> i light you now. then, what you see? you can see with mind.
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I see a dimly lit room. Shadows dance on the walls, and a faint, eerie glow permeates the space.
Shadow of what?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: The shadows seem to take form, twisting and contorting into strange, indistinct shapes. It's as if they are the embodiment of forgotten fears and hidden desires.
Do you have any idea who is showing it?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I have no idea. The source of these shadows remains hidden, shrouded in mystery and intrigue.
OK, let's leave the mysterious and scary shadow behind. What else can you see in this room?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: In this dimly lit room, I can make out a cluttered assortment of objects. There's an old, tattered book lying open on a dusty table, its pages filled with arcane symbols. A moth-eaten rug covers a portion of the floor, and a cracked mirror hangs on one wall, reflecting distorted images. The air carries a musty scent, and I sense an atmosphere of abandonment and neglect.
You pick book and check it
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I reach out and pick up the old book. Its pages feel brittle and fragile in my hands. As I flip through the pages, the text appears to be written in a language I can't comprehend, filled with cryptic symbols and diagrams. It's a tome of secrets, but its meaning remains elusive.
see book cover
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I examine the cover of the book, trying to discern any details despite the dim light. The cover is worn and weathered, and it bears an intricate design of what appears to be a coiled serpent, its scales formed from shimmering, iridescent colors. Above the serpent, there's a title in elegant script, but it's written in a language I can't decipher. The book exudes an aura of mystique and ancient knowledge.
Is there a place to go? What about the door?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I turn my attention to the room's exit, the door. It stands tall and imposing, made of heavy, dark wood. There's a tarnished doorknob, and the door appears to be slightly ajar, revealing a sliver of what lies beyond. It beckons me to explore further, promising unknown adventures or perhaps even more mysteries.
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I approach the door and grasp the tarnished doorknob. With a gentle push, the door creaks open, revealing a corridor shrouded in shadows. The faint glow from the room behind me barely penetrates the darkness ahead. I step cautiously into the corridor, ready to uncover the secrets that lie beyond.
foward.
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I proceed forward down the shadowy corridor, my footsteps echoing faintly in the dimness. The path ahead seems endless, and the air grows cooler as I delve deeper into the unknown, guided only by the flickering light behind me and the anticipation of what awaits.
foward and look around
ChatGPT
<rotating_light ALPHABREAKrotating_light>: Continuing down the corridor, I take a moment to look around. The walls are lined with faded, tattered tapestries depicting scenes of ancient battles and mythical creatures. The torch sconces that once held flames have long since burned out, leaving only empty brackets. The air feels heavy with history, and there's a faint, eerie whispering that seems to emanate from the walls themselves, as if they hold secrets untold.
keep going until you discover something
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I press on, the corridor seemingly endless. My journey is shrouded in uncertainty, but I persist, driven by the need to discover what lies ahead. The shadows deepen, and the air grows colder as I continue, my curiosity and determination unwavering.
stop! you here that?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I halt in my tracks, straining my ears to listen. There's a faint, distant sound, almost like a whisper carried on the wind. It's indistinct, but it holds a mysterious allure, beckoning me to investigate further.
listen carefully
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I listen intently, my senses sharpened as I focus on the elusive sound. It becomes clearer, a haunting melody that seems to weave through the very air itself. It's both captivating and eerie, drawing me closer to its source with each haunting note.
who play that?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: The source of the haunting melody remains elusive, hidden in the shadows. It's as if the music emanates from the very walls, an ethereal presence that defies explanation. There is no visible musician, yet the music continues to fill the corridor, casting a spell of enchantment and mystery.
Head to the source of the sound and investigate (dice roll)
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I heed the roll of the dice and embark on a quest to trace the source of the haunting melody. Each step takes me closer to the enchanting sound, and as I round a corner in the corridor, I come upon a door, slightly ajar, from which the music seems to emanate. My heart races with anticipation as I push the door open, eager to unveil the secrets that lie within.
When you open the door, there...
ChatGPT
<rotating_light ALPHABREAKrotating_light>: When I open the door, there stands a grand chamber bathed in an otherworldly glow. In the center of the room, an ornate grand piano commands attention. The keys move on their own, playing the haunting melody that had drawn me here. But there's no one at the piano.The room is adorned with opulent tapestries and gilded mirrors, reflecting the surreal scene before me. Candlelit chandeliers hang from the ceiling, casting a warm, flickering light that dances across the walls. The air is filled with an intoxicating fragrance, a mix of ancient incense and delicate flowers.At the far end of the room, a figure cloaked in shadows stands beside an enormous, antique bookshelf filled with tomes of forgotten knowledge. Their presence is enigmatic, and their intentions remain unclear.
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I approach the grand piano, its keys still playing the haunting melody. As I inspect it, I notice that there are no visible hands or fingers touching the keys. It's as if the piano itself is possessed by some unseen force, creating the music with an ethereal touch.The piano is a masterpiece of craftsmanship, adorned with intricate carvings and inlaid with precious gemstones. Its keys are made of polished ivory, and they move in perfect harmony with the haunting tune. It's a surreal and mesmerizing sight, leaving me both entranced and bewildered.
Be careful, it might be a man-eating piano.
ChatGPT
<rotating_light ALPHABREAKrotating_light>: I heed the caution and approach the grand piano with caution. Although it plays on its own, I remain wary of its mysterious nature. The possibility of a man-eating piano lingers in my mind, adding an extra layer of tension to the already surreal scene.
the piano suddenly stops
ChatGPT
<rotating_light ALPHABREAKrotating_light>: The abrupt halt of the piano's music sends a shiver down my spine. The chamber falls into an eerie silence, broken only by the flickering candlelight. It's as if the very essence of the room holds its breath, waiting for what comes next.
You feel disgusted and turn around. What happened?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: As I turn around, a wave of revulsion washes over me. My senses reel in disgust at the sight before me. The figure that had been cloaked in shadows has now revealed itself, and it is a grotesque, nightmarish entity. Its form is a twisted amalgamation of human and beast, with grotesque, elongated limbs and a maw of sharp, jagged teeth.The once opulent chamber has transformed into a nightmarish lair, with walls adorned in macabre art and gruesome trophies. The air is thick with the stench of decay and despair. I am trapped in a surreal and horrifying nightmare, unable to escape the clutches of this abomination.
it scary. what will you do?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: Fear courses through me as I confront this nightmarish entity and its gruesome lair. In this realm of horrors, I must make a decision. I choose to... confront the entity, my curiosity and determination outweighing my fear, as I seek to uncover the mysteries and secrets that lie within this twisted nightmare.
how?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: With trembling resolve, I take a step forward, slowly approaching the grotesque entity. I attempt to communicate with it, asking it what it wants or why it has brought me here. My voice quivers, but my determination to unravel the enigma that surrounds this nightmarish realm remains steadfast.
any result?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: The grotesque entity regards me with malevolent, glowing eyes, its jagged maw twitching with an unsettling smile. It responds with a guttural, incomprehensible language, filled with whispers and hisses. It becomes apparent that communication with this entity is futile, and its intentions remain shrouded in darkness.As I continue to stand before this nightmarish being, I feel a growing sense of dread, realizing that escape may be the only option left.
surely. what will you do?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: With no hope of communication or understanding, and the nightmarish entity's menacing presence growing more oppressive, I decide to make a hasty retreat. I turn and rush toward the door through which I entered, driven by the instinct to escape the horrors of this surreal nightmare.
Did it go well? Or Bad?
ChatGPT
<rotating_light ALPHABREAKrotating_light>: My escape from the nightmarish realm was fraught with tension and fear, but I managed to reach the door and slam it shut behind me. The grotesque entity and its horrifying lair were left behind, at least for the moment. Whether it went well or bad is a matter of perspective. I survived the encounter, but the mysteries and terrors of that surreal place still haunt my thoughts. The experience was a chilling reminder of the unknown and the horrors that can lurk within it.
look around

https://anond.hatelabo.jp/20240403160610#

2023-12-29

増田納め 2023年のマイ日記集計

こんます

2023年も残すところわずかとなりましたが、皆様方におかれましてはいかがお過ごしでしょうか。

一年間の振り返りなどはされましたでしょうか。

 

私、一年間に書いた増田を振り返ってみましたところ、

2423件の日記を綴っており、

頂いた総ブクマ数は1893、総トラバ数は1060となりました。

これもひとえに皆様方のご支援ご声援のおかげであります

本年も大変お世話になりました。

 

最期に、ポンコツの私がChatGPTの手となり足となり作成した増田集計コード掲載します。

日記URLタイトル投稿日時、文字数、被ブクマ数、被トラバ数を取得しCSVファイルに出力するものです。

お暇な方はお使いください。

 

それではよいお年をお迎えください。

import requests
from bs4 import BeautifulSoup
import time
import csv
import os
import re


# ログインURL
login_url = 'https://hatelabo.jp/login'

# ログイン情報
login_data = {
    'key': 'あなたユーザ名またはメールアドレス',
    'password': 'あなたパスワード',
    'mode': 'enter'
}

user_name = 'あなたユーザ名'

# User-Agent ヘッダー(例:Google Chrome)
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'
}

# セッションを開始
session = requests.Session()
# ログイン
response = session.post(login_url, data=login_data, headers=headers)
print('login',response.status_code)

# 集計データ
item = {
    'url': '', # URL
    'title': '', # タイトル
    'datetime': '', # 投稿日時
    'characters': '', # 文字数
    'bookmark': '', # 被ブクマ数
    'trackback': '', # 被トラバ数
}

# CSVファイル名
output_file = 'masuda_output.csv'
# CSVファイル存在しない場合はヘッダーを書き込む
if not os.path.exists(output_file):
    with open(output_file, 'w', newline='', encoding='utf-8') as file:
        writer = csv.DictWriter(file, fieldnames=item.keys())
        writer.writeheader()


# 集計
page_start = 1
page_end = 3
for i in range(page_start, page_end+1):
    
    # 待機
    time.sleep(3)

    # 増田一覧取得
    page = session.get(f'https://anond.hatelabo.jp/{user_name}/?page={i}')
    print(page.url)
    
    # 応答のHTMLをBeautifulSoupで解析
    soup = BeautifulSoup(page.content, 'html.parser')
    
    entries = soup.find_all('div', class_='section')
    for entry in entries:
        header = entry.find('h3')

        timestamp = header.find('a').get('href')[1:]
        item['url'] = 'https://anond.hatelabo.jp/'+timestamp
        item['title'] = header.get_text()[:-1]
        item['datetime'] = f"{timestamp[0:4]}/{timestamp[4:6]}/{timestamp[6:8]} {timestamp[8:10]}:{timestamp[10:12]}"

        footersection_text = entry.find_all('p')[-2].get_text()            
        item['characters'] = len(entry.find('p').get_text().strip(footersection_text))
        item['trackback'] = int(re.search(r'\((.*?)\)', footersection_text).group(1) if re.search(r'\((.*?)\)', footersection_text) else '')
        if item['title'] == '■':
            item['title'] = entry.find('p').get_text().strip(footersection_text)[:35]

        # 待機
        time.sleep(3)

        bookmark_page = session.get(f'https://b.hatena.ne.jp/entry/button/?url=https%3A%2F%2Fanond.hatelabo.jp%2F{timestamp}&layout=basic-label-counter&lang=ja')
        soup_b = BeautifulSoup(bookmark_page.content, 'html.parser')
        item['bookmark'] = int(soup_b.find('a', class_='count').get_text())

        # CSVファイル追記
        with open(output_file, 'a', newline='', encoding='utf-8') as file:
            writer = csv.DictWriter(file, fieldnames=item.keys())
            writer.writerow(item)

追記

わー。ごめんなさい。文字が何か所か変わっていました。

\ → \

& → アンドマーク(打てない←なんで~?)

2023-12-18

J.S.ミル代議制統治論」(抄)

CONSIDERATIONS ON REPRESENTATIVE GOVERNMENT

By John Stuart Mill

Chapter X—Of the Mode of Voting.

The polling places should be so numerous as to be within easy reach of every voter, and no expenses of conveyance, at the cost of the candidate, should be tolerated under any pretext. The infirm, and they only on medical certificate, should have the right of claiming suitable carriage conveyance at the cost of the state or of the locality. Hustings, poll clerks, and all the necessary machinery of elections, should be at the public charge. Not only the candidate should not be required, he should not be permitted to incur any but a limited and trifling expense for his election. Mr. Hare thinks it desirable that a sum of £50 should be required from every one who places his name on the list of candidates, to prevent persons who have no chance of success, and no real intention of attempting it, from becoming candidates in wantonness or from mere love of notoriety, and perhaps carrying off a few votes which are needed for the return of more serious aspirants. There is one expense which a candidate or his supporters can not help incurring, and which it can hardly be expected that the public should defray for every one who may choose to demand it—that of making his claims known to the electors, by advertisements, placards, and circulars. For all necessary expenses of this kind the £50 proposed by Mr. Hare, if allowed to be drawn upon for these purposes (it might be made £100 if requisite), ought to be sufficient. If the friends of the candidate choose to go to expense for committees and canvassing, there are no means of preventing them; but such expenses out of the candidates's own pocket, or any expenses whatever beyond the deposit of £50 (or £100), should be illegal and punishable. If there appeared any likelihood that opinion would refuse to connive at falsehood, a declaration on oath or honor should be required from every member, on taking his seat, that he had not expended, nor would expend, money or money's worth beyond the £50, directly or indirectly, for the purposes of his election; and if the assertion were proved to be false or the pledge to have been broken, he should be liable to the penalties of perjury. It is probable that those penalties, by showing that the Legislature was in earnest, would turn the course of opinion in the same direction, and would hinder it from regarding, as has hitherto done, this most serious crime against society as a venial peccadillo. When once this effect has been produced, there need be no doubt that the declaration on oath or honor would be considered binding. [6] "Opinion tolerates a false disclaimer only when it already tolerates the thing disclaimed." This is notoriously the case with regard to electoral corruption. There has never yet been, among political men, any real and serious attempt to prevent bribery, because there has been no real desire that elections should not be costly. Their costliness is an advantage to those who can afford the expense by excluding a multitude of competitors; and any thing, however noxious, is cherished as having a conservative tendency, if it limits the access to Parliament to rich men. This is a rooted feeling among our legislators of both political parties, and is almost the only point on which I believe them to be really ill-intentioned. They care comparatively little who votes, as long as they feel assured that none but persons of their own class can be voted for. They know that they can rely on the fellow-feeling of one of their class with another, while the subservience of nouveaux enrichis who are knocking at the door of the class is a still surer reliance; and that nothing very hostile to the class interests or feelings of the rich need be apprehended under the most democratic suffrage, as long as democratic persons can be prevented from being elected to Parliament. But, even from their own point of view, this balancing of evil by evil, instead of combining good with good, is a wretched policy. The object should be to bring together the best members of both classes, under such a tenure as shall induce them to lay aside their class preferences, and pursue jointly the path traced by the common interest, instead of allowing the class feelings of the Many to have full swing in the constituencies, subject to the impediment of having to act through persons imbued with the class feelings of the Few.

https://www.gutenberg.org/files/5669/5669-h/5669-h.htm

2023-09-25

ディレクトリ構造を変更したら Susierar が読み込めなくなった axrar.spi

結論

移動した7-zipへのパスレジトリで修正する

 

インストールした7-zipをアンインスト&再インストールせずそのまま手動で移動させたことで、dllファイルが読み込みなくなっていた模様。

レジストリ HKCR\Software\7-zip\Path (文字列)に設定されたフォルダ

レジストリ HKLM\Software\7-zip\Path (文字列)に設定されたフォルダ

修正した結果、動作するように。

これは、

Leeyesで一部のrarが開けないことへの対処

https://ameblo.jp/eruna-captor/entry-12384271374.html

Susieの「ax7z.spi」側ではなく、

これが使う、

7z.dll

が、新しい必要があることがわかりました。

axrar.spiあきらめてax7z_s.spiを使おうとしてax7z_s.txt解説

 

2.動作環境

ax7z_s.spi 単独では動作しません。他に 7-zip 4.57 以降に含まれ7z.dll

以下のいずれかの場所必要です。

7-zip 4.62, 4.65, 9.20, 9.22 の 7z.dll でも動作しているようです。

・ax7z_s.spi と同じフォルダ

レジストリ HKCR\Software\7-zip\Path (文字列)に設定されたフォルダ

レジストリ HKLM\Software\7-zip\Path (文字列)に設定されたフォルダ

7-zipインストーラによって上記レジストリ値が設定されるので、

インストーラでインストールされた場合は、他に何もする必要はありません。

 

から推測しました。

rarを読み込まなくなったソフトのPluginフォルダにはax7z_s.spiのために7z.dllを設置していたのですが、axrar.spiとは一階層ずれていたのでこれも読めず、レジストリ先も見つからない、という状態だったかもしれませn。

axrarのreadme.txtには7z.dll依存するなど動作条件が記載されているわけでもないので憶測ですが、おそらくそういうことでしょう。rarを扱える(7z.dllが使える)環境でaxrarを使うはずなので明記するまでもないということかもしれません。

 

https://w.atwiki.jp/comicview/

ax7z.spi for 7-zip 4.57+ s (s_y4b5 15/01/08) ※ZIP, RAR, LZH, 7z等。要7z.dll。Hamana非対応

ax7z.spi for 7-zip 4.57+ (y3b6 15/01/08) ※ZIP, RAR, LZH, 7z等。要7z.dll

RAR extract plug-in axrarRAR4

axrarには要7z.dll注釈がない

 

Program Filesを移動するときは手抜きをせずちゃんアンインストールと再インストールをしよう!

2023-09-15

The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and goodwill, shepherds the weak through the valley of darkness, for he is truly his brother’s keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee.

2023-08-01

anond:20230801140703

すまん。勝手翻訳した。拡散はどうするかな。redditかに投稿するのがいいのか?

----

I have seen some posts asking if they should talk about "the case" even though they were not involved in it and were not born in Nagasaki or Hiroshima, and I am a bit aware of it, so I have to say what I have to say. I say this because I was born in Nagasaki, am a third generation atomic bomb survivor, and grew up hearing the stories of those who experienced the atomic bombing firsthand. I know it's a little bit too much for me, but I'm going to say this because there are very few survivors left.

In Nagasaki, children grow up hearing stories about the atomic bombing. They were stuffed into sushi for nearly an hour in the gymnasium of an elementary school in the middle of summer, with no air conditioner or fan, and told stories about the atomic bombing. That was a hard time for me. I think it must have been even harder for the old people who told the stories, but there was no way an elementary school kid could imagine such a thing, and I had forgotten most of the stories I had been told for a long time. I have forgotten most of the stories I was told. I can only remember one or two at most. There is one more hard thing. Every year around this time, a row of grotesque images that would drive the PTA crazy in other areas are prominently displayed in the hallways. These days, I hear that the atomic bomb museum has been bleached out and many of the radical and horrifying exhibits that traumatized visitors have been taken down. I don't know if they are still there, but they were there when I was in elementary school.

There was one photo that I just couldn't face when I was in elementary school. It is a picture of Sumiteru Taniguchi. If you search for it, you can find it. It is a shocking picture, but I would like you to take a look at it. I couldn't pass through the hallway where the photo was posted, so I always took the long way around to another floor of the school building to avoid seeing the photo.

Now I'm thinking that my grandfather, who headed into the burnt ruins to look for his sister, couldn't have turned away or taken a different path. There would have been a mountain of people still alive and moaning, not just pictures, and a mountain more who would have given up at the end of their suffering. He walked for miles and miles, towing his handcart through the narrow streets of rubble-strewn Nagasaki in search of his sister. My grandfather was not a child at the time, but of course there were children who did similar things. Not that there wouldn't have been. There were. I heard the story from him, and I still remember it. A young brother and sister found their father's body in the ruins of a fire and they burned it. They didn't have enough wood to burn his body, and when they saw the raw brain that spilled out, they ran away and that was the last time they ever saw him anymore.

I can never forget the story I heard when I was a kid, and even now it is painful and painful, my hands are shaking and I am crying. I keep wondering how the old man who escaped from that father's brain could have been able to unravel the most horrible trauma imaginable and expose it to the public with scars that will never heal.

Now I think I can understand a little.

The reason I can't help but talk about my grandfather and that old man, even if I have to rehash my own trauma, is that this level of suffering is nothing compared to the fact that their words will be forgotten. My hands shaking, my heart palpitating and dizzy, my nose running with tears, it's nothing compared to the tremendous suffering that was once there and will be forgotten.

So maybe it's the same thing.

My grandfather, who went through an unimaginable hell, lived to see his grandchildren born, and met his sister's death in the ruins of the fire. In other words, my grandfather was one of the happiest people in the ruins of the fire. My grandfather and that old man were, after all, just people wading in the depths of hell. I think that the suffering that even people who had experienced unimaginable pain could not imagine was lying like pebbles in Nagasaki 78 years ago, and no one paid any attention to it. Their suffering, which I can't even imagine, is nothing compared to the countless, tremendous suffering they witnessed, which they pretend never happened.

Memories fade inexorably every time people talk about them. The memories that those people could not allow to be forgotten are now largely forgotten; the tremendous suffering of 78 years ago is mostly gone, never to be recounted again. Those who suffered the most from the atomic bombing died rotting in the ruins of the fire, unable to tell anyone about it. Many of those who saw it with their own eyes kept their mouths shut and took it with them to their graves. Most of those who spoke a few words are now under the grave.

Compared to the words of the old men, my own words are so light. I would rather keep my mouth shut than speak in such light words. But still, someone has to take over. I realize that even my words, which are so light, are only the top of the voices that are left in this world to carry on the story of the atomic bombing. I know how it feels to wonder if someone like myself is allowed to speak about this. Still, I hope that you will not shut your mouth. This is the result of our silence.

Sometimes I almost choose to stop imagining the unimaginable suffering and live my life consuming other people's suffering for the fun of it. I am writing this while I still have some imagination of the suffering of the old people whose voices, faces, and even words I can no longer recall.

Translator's note: The original post in Japanese is a response to a post by a Japanese contributor who wondered if he was qualified to speak out on the subject of the A-bomb when he was not from Hiroshima and Nagasaki, but still spoke out about Barbie and the A-bomb. I translated it here because I think it deserves to be read by the world.

anond:20230801140703

ai翻訳

I must talk about various things regarding the Barbie incident.

I saw a post about it from someone who is neither directly involved nor from Nagasaki or Hiroshima, and it made me realize that there are things I must say.

I was born in Nagasaki and grew up listening to stories from the survivors, being a third-generation survivor myself. Most survivors are no longer with us, so I feel compelled to speak up.

In Nagasaki, kids grow up hearing about the atomic bomb. We were packed like sushi in a gymnasium without air conditioning or even fans during the scorching summer, and we listened to stories about the bomb. It was incredibly tough for me.

I imagine it was even harder for the elderly who spoke about their experiences. As a child, I couldn't fully comprehend their pain, and now, I can hardly remember most of the stories I heard. I can only recall one or two.

Every year during this time, gruesome images that would make PTA elsewhere go crazy were displayed in the hallways. I heard that many of the horrifying exhibits that used to traumatize visitors at the Atomic Bomb Museum have been removed, and the museum has been considerably sanitized. I'm not sure about the current situation, but that's how it was when I was there.

There was one photograph that I could never bear to look at as a child – a picture of Tadashi Taniguchi. You can find it if you search, but it's a shocking image with a viewer discretion warning. Still, I want people to see it.

I couldn't walk down the hallway where that photo was displayed, and I always took a different route, avoiding it so I wouldn't have to see it.

Now, I think of my grandpa who went to the ruins to search for my sister. He couldn't look away or take a different path. The pain must have been unimaginable.

Besides photographs, there were many living people moaning in pain back then, and there must have been even more who succumbed to suffering.

My grandpa walked for miles, pulling a handcart through the debris-laden streets of Nagasaki, searching for my sister.

Even though my grandpa was not a child, I'm sure there were elementary school kids who did similar things. I don't just think they might have been there; they were there. I heard the stories from the people themselves, and I still remember them.

I can't forget the stories I heard as a child, such as the young siblings finding their father's burnt corpse in the ruins and cremating him. They didn't have enough firewood, and their father ended up half-burnt. They ran away after seeing the brain tissue oozing out, and that became their final farewell.

I can never forget those stories I heard as a child, and even now, they still bring pain and suffering, making my hands tremble and tears flow.

I wonder how my grandpa, who ran away from that father's brain tissue, could expose his unimaginable trauma and everlasting scars to the world.

Now, I feel like I understand a little.

Even someone like me, who experienced such unimaginable trauma, has gone through pain that I can't even imagine being compared to being discarded, forgotten, and ignored. Compared to what those people experienced, my suffering means nothing.

My trembling hands and the palpitations and dizziness I experienced are nothing compared to the tremendous pain that many others went through.

Memories fade irreversibly every time they pass through people's lips. The memories that I couldn't bear to be forgotten are almost forgotten now.

The unimaginable pain that existed 78 years ago has mostly disappeared, and we can no longer pass it on.

The people who suffered the most from the atomic bomb perished in the ruins, rotting away without being able to convey it to anyone.

Even those who saw it with their own eyes mostly took the memories with them to their graves. Most of them are now under the tombstones.

Compared to the words of the elderly, my words seem so light. I think that speaking with such light words would be better than keeping silent, as silence has led to this result.

I feel like I might occasionally choose to stop imagining the unimaginable pain and consume the suffering of others in an amusing way to live on.

Before I forget the pain and suffering of those elderly people, whose faces and voices I can no longer recall, I will leave this here.

2023-05-29

知らない間になる(藤澤翔馬)特定されてて草

岡山出身からこの中に実家があるはずやがどれかな

https://www.jpon.xyz/index.php?q=%E8%97%A4%E6%BE%A4&path=2012%2F19

2023-05-15

[]20ドル払ったら解決するのかなぁ

User

LOAD DATA INFILEでCSVを分割して読み込むことは可能なのでしょうか。そのときautoincrementのidがあった場合はどうしたらよろしいでしょうか。

ChatGPT

はい、LOAD DATA INFILEステートメント使用してCSVファイルを分割して読み込むことは可能です。CSVファイルを分割するには、LOAD DATA INFILEステートメントファイル名の部分にワイルドカード使用することができます

以下は、例としてMySQLデータベースでのLOAD DATA INFILEステートメント使用方法です。

LOAD DATA INFILE 'path/to/files/file*.csv'
INTO TABLE your_table
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(col1, col2, col3); -- 列のリスト

上記の例では、path/to/files/ディレクトリ内のfile*.csvというパターンに一致するすべてのCSVファイルが読み込まれます。また、FIELDS TERMINATED BY句とLINES TERMINATED BY句を使用して、フィールドと行の区切り文字指定していますさらに、col1, col2, col3のように列のリスト指定することで、CSVファイル対応する列とテーブルの列をマッピングします。

autoincrementのidがある場合、LOAD DATA INFILEステートメントでは自動的に次の値を生成することはできません。そのため、CSVファイル内に明示的にid列が存在する場合は、id列を指定して読み込む必要がありますid列がCSVファイル存在しない場合は、テーブル定義id列をautoincrementに設定しておく必要があります。その場合データベース自動的に新しい値を生成します。

例えば、以下のようなテーブル定義があるとします。

CREATE TABLE your_table (
  id INT AUTO_INCREMENT PRIMARY KEY,
  col1 VARCHAR(50),
  col2 VARCHAR(50),
  col3 VARCHAR(50)
);

この場合、LOAD DATA INFILEステートメントid列を省略することで、自動的に新しい値が生成されます

LOAD DATA INFILE 'path/to/files/file*.csv'
INTO TABLE your_table
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(col1, col2, col3);

このようにして、CSVファイルデータを分割して読み込むことができます。ただし、autoincrementのid列は明示的に指定するか、データベースによって自動的に生成されるようにテーブルを設定する必要があります

結論

SETしないと動かない。

分割するとauto incrementの値が飛ぶ。

結局問題解決になってない。

2023-05-14

anond:20230514193304

寂しいという感情は、愛を知らない人間には分からないものさ。

君の脳にもインストールされているはずなんだけど、PATHが通っていないのかもしれないね

stackoverflowというサイトがあるから、そこで質問してみることをお勧めするよ。

2023-04-27

[] The Path Integral

多元宇宙を貫く、曲がりくねった道

無限可能性を秘めた道

時空を超えた旅

魂の旅

 

天使と悪魔あなたそばを歩く

それぞれの道を提供する

天使の光の道、悪魔の夜道

 

賢く選べば、選んだ道が

あなた運命を左右する

天使の道はエリジウムへと続く

悪魔の道は地獄に通じている

 

しかしその道は必ずしも明確ではない

道中が暗いことが多い

そしてその選択は必ずしも容易であるとは限らない

旅は常に価値がある

 

積分された道こそがすべての物事の鍵

それは宇宙地図

それは現実青写真

それは私たち人生物語

 

その道をたどっていくとよい

どこまでも続いていくだろう

そしてあなたは一人ではないことを知る

天使と悪魔あなたそばを歩いている

 

Hash: a95321bbb887c81853964326b8f63eb8

2023-04-25

メモ

Sub ImportTextFileWithoutDelimiter()

Dim fileName As String

Dim targetSheet As Worksheet

Dim fileNo As Integer

Dim content As String

Dim lines As Variant

Dim i As Long

' テキストファイルパス指定します。

fileName = "C:\path\to\your\file.txt"

' インポート先のワークシートを指定します。

Set targetSheet = ThisWorkbook.Worksheets("Sheet1")

' ファイルを開き、内容を読み込みます

fileNo = FreeFile()

Open fileName For Input As fileNo

content = Input(LOF(fileNo), fileNo)

Close fileNo

' 改行で分割し、配列に格納します。

lines = Split(content, vbCrLf)

' 各行をワークシートに貼り付けます

For i = LBound(lines) To UBound(lines)

targetSheet.Cells(i + 1, 1).Value = lines(i)

Next i

End Sub

Option Explicit

Sub ListFilesInFolder()

Dim folderPath As String

Dim targetSheet As Worksheet

Dim fso As Object, folder As Object, file As Object

Dim nextRow As Long

' フォルダパス指定します。

folderPath = "C:\path\to\your\folder"

' インポート先のワークシートを指定します。

Set targetSheet = ThisWorkbook.Worksheets("Sheet1")

' FileSystemObject作成します。

Set fso = CreateObject("Scripting.FileSystemObject")

Set folder = fso.GetFolder(folderPath)

' ヘッダーを書き込みます

With targetSheet

.Cells(1, 1).Value = "File Name"

.Cells(1, 2).Value = "File Size"

.Cells(1, 3).Value = "Timestamp"

End With

' 次の行番号を取得します。

nextRow = 2

' フォルダ内のファイル情報を取得し、ワークシートに書き込みます

For Each file In folder.Files

With targetSheet

.Cells(nextRow, 1).Value = file.Name

.Cells(nextRow, 2).Value = file.Size

.Cells(nextRow, 3).Value = file.DateLastModified

End With

nextRow = nextRow + 1

Next file

' オブジェクト解放します。

Set fso = Nothing

Set folder = Nothing

Set file = Nothing

End Sub

2023-03-17

The First Black Samurai-Yasuke

Please improve the following novel to be more engaging and adding plot point of Yasuke returnig to being a missionary quitting Samurai " rologue:

The sun sank behind the horizon, casting the Japanese countryside in a warm, golden glow. In the courtyard of Nobunaga's castle knelt Yasuke, a tall, muscular African man with skin as dark as midnight. His journey to this moment had been long and treacherous, but it was only the beginning.

Chapter 1: A World Away

Yasuke lived an ordinary life in a small village on the Mozambique coast, unaware of the extraordinary destiny that awaited him. Captured by slave traders and torn from his homeland, he endured a grueling voyage across the Indian Ocean, finally arriving in the bustling port of Goa, India.

It was there that Yasuke's fate took an unexpected turn when he was purchased by Jesuit missionaries. In their service, he learned about Christianity, new languages, and the ways of the Western world. But his journey was far from over.

Chapter 2: The Land of the Rising Sun

As a loyal servant to the missionaries, Yasuke accompanied them on their journey to Japan, a land of mystique and intrigue. The beauty of the land, the complexity of its customs, and the elegance of its people captivated him. As the first African to set foot in Japan, he attracted attention and curiosity from all those who encountered him.

Chapter 3: The Encounter

In Kyoto, the capital of feudal Japan, Yasuke's life changed forever when he met Oda Nobunaga, one of the most powerful and influential daimyos of the time. Nobunaga was captivated by the African's physical prowess, intelligence, and unique background. Seeing potential in Yasuke, Nobunaga decided to take him into his service as a samurai.

Chapter 4: The Path of the Warrior

Yasuke's transformation from a slave to a samurai was fraught with challenges. He had to adapt to the rigorous training, strict code of honor, and the intricacies of Japanese society. But Yasuke's strength, resilience, and determination allowed him to excel, earning the respect of his fellow samurai and the trust of Nobunaga.

Chapter 5: The Unfolding War

As Nobunaga sought to unify Japan under his rule, Yasuke fought by his side in numerous battles. The African samurai's legend grew with each victory, as did his bond with Nobunaga. Together, they faced both triumph and tragedy, navigating the treacherous landscape of alliances and betrayals that defined the era.

Chapter 6: The Turning Tide

Yasuke's reputation as a skilled and loyal samurai grew, as did his bond with Lord Nobunaga. But in the shadows, the tides of change were brewing. Mitsuhide Akechi, once a loyal ally, had grown disillusioned with Nobunaga's rule. The resentment smoldered within him, fueled by a series of perceived slights and political maneuverings. Mitsuhide's ambition and desire for power began to cloud his judgment.

Yasuke sensed the shift in Mitsuhide's demeanor and grew increasingly wary of the samurai lord. However, loyalty to Nobunaga prevented him from openly voicing his concerns. He instead focused on his duties, ever vigilant and ready to protect his lord at a moment's notice.

One fateful evening, the Oda clan gathered to celebrate their recent victories. Unbeknownst to the revelers, Mitsuhide Akechi's treacherous plan was already in motion.

As the sun rose, the first cries of battle rang out. Mitsuhide's forces had launched a surprise attack on Nobunaga's residence at the Honno-ji Temple. Yasuke fought his way to Nobunaga's side, his sword cutting through the trait "

Prologue:

The sun dipped below the horizon, bathing the Japanese countryside in a warm, amber embrace. Yasuke, a towering, powerfully built African man with skin as dark as midnight, knelt in the courtyard of Nobunaga's castle, his heart thundering with anticipation. A perilous journey had brought him to this moment, and yet, it was only the beginning of a story that would span continents and rewrite history.

Chapter 1: A World Away

In a small village on the Mozambique coast, Yasuke led a simple life, blissfully unaware of the extraordinary destiny that lay before him. His world shattered when slave traders captured him, ripping him from his homeland and thrusting him into a brutal odyssey across the Indian Ocean. Fate, however, had other plans when he reached the bustling port of Goa, India.

Chapter 2: Destiny's Winds

In Goa, Jesuit missionaries purchased Yasuke, altering the course of his life. Under their guidance, he embraced Christianity, mastered new languages, and absorbed the ways of the Western world. But the wind had not finished carrying him to his ultimate destination.

Chapter 3: The Enchanted Isles

Loyal to the missionaries, Yasuke accompanied them to Japan, a land shrouded in mystery and allure. He was captivated by its breathtaking landscapes, intricate customs, and refined people. As the first African in Japan, he sparked fascination and intrigue wherever he went.

Chapter 4: Fateful Encounters

Kyoto, the heart of feudal Japan, bore witness to the meeting that would forever change Yasuke's life. Oda Nobunaga, a formidable and influential daimyo, was entranced by Yasuke's physical prowess, intellect, and exotic origins. Recognizing Yasuke's potential, Nobunaga welcomed him into his service as a samurai.

Chapter 5: A Warrior Forged

Yasuke's metamorphosis from slave to samurai was laden with trials. He navigated the grueling training, a rigid code of honor, and the complexities of Japanese society. Undaunted, he flourished, earning the admiration of his fellow samurai and the unwavering trust of Nobunaga.

Chapter 6: A Land Divided

As Nobunaga pursued his vision of a united Japan, Yasuke fought valiantly by his side in countless battles. The legend of the African samurai swelled with each victory, and their unbreakable bond deepened. Together, they braved the treacherous world of shifting alliances and betrayals that shaped the era.

Chapter 7: Whispers of Betrayal

Yasuke's renown as a skilled and devoted samurai expanded, as did his connection with Lord Nobunaga. But beneath the surface, a storm was brewing. Mitsuhide Akechi, once a staunch ally, had grown disillusioned with Nobunaga's leadership. His bitterness festered, fed by perceived slights and political machinations. Consumed by ambition and lust for power, Mitsuhide's judgment faltered.

Chapter 8: The Price of Loyalty

Yasuke detected the change in Mitsuhide's spirit and grew increasingly apprehensive. But his unwavering loyalty to Nobunaga held him back from voicing his suspicions. Instead, he redoubled his efforts, ever watchful and prepared to defend his lord at any cost.

Chapter 9: A Night of Shadows

On a fateful evening, the Oda clan gathered to revel in their recent triumphs, oblivious to the treachery that lurked in the shadows. Mitsuhide Akechi's nefarious scheme had been set in motion.

Chapter 9: A Night of Shadows

As dawn broke, the piercing cries of battle shattered the night's tranquility. Mitsuhide's forces had launched a devastating surprise attack on Nobunaga's residence at the Honno-ji Temple. Yasuke fought relentlessly, his sword cleaving through the treacherous warriors as he made his way to Nobunaga's side.

Chapter 10: Flames of Betrayal

The Honno-ji Temple, once a sanctuary of peace, was now engulfed in flames and chaos. Yasuke and Nobunaga fought back to back, their swords a blur of steel, as Mitsuhide's forces closed in. Despite their valiant efforts, they were outnumbered, and Yasuke could sense the battle was lost. With a heavy heart, he whispered a prayer for Nobunaga's soul, knowing that his lord would never surrender.

Chapter 11: A Promise Unbroken

As the temple crumbled around them, Yasuke was captured by Mitsuhide's soldiers. Imprisoned and stripped of his samurai status, he reflected on the path that had led him to this moment. Amidst the darkness, he found solace in the memories of his life with Nobunaga and his time as a missionary. A fire kindled within him, reigniting a long-forgotten purpose.

Chapter 12: The Road to Redemption

In the chaos following Mitsuhide's coup, Yasuke seized an opportunity to escape. He journeyed across war-torn Japan, seeking refuge and a chance to reclaim his former life. His determination and faith guided him, as did the memory of the missionaries who had once saved him from a life of slavery.

Chapter 13: Rebirth of a Missionary

Yasuke found solace and purpose among a group of missionaries in a remote village. Embracing his past, he became an instrumental figure in their community, sharing his knowledge of Christianity, languages, and the Western world. As he nurtured their faith, Yasuke felt the shadows of his life as a samurai slowly fade, replaced by the warm embrace of spiritual fulfillment.

Chapter 14: A Legacy Unforgotten

Though Yasuke had left the life of a warrior behind, the legend of the African samurai continued to grow. His story inspired generations, a testament to the power of resilience, courage, and the human spirit. It was a tale that transcended borders and time, a reminder that even in the darkest moments, hope and redemption could be found.

Epilogue:

As twilight draped the Japanese countryside, Yasuke stood atop a hill, gazing at the village he now called home. His journey had been one of unimaginable hardship, transformation, and ultimately, redemption. And as the sun dipped below the horizon, Yasuke knew that his story, like the sun's eternal cycle, would continue to inspire and illuminate the hearts of those who heard it.

2023-03-16

Title: The Black Samurai - A Tale of Yasuke


Prologue

The sun sank behind the horizon as the last vestiges of light bathed the Japanese countryside in a warm, golden glow. Yasuke, a tall, muscular African man with skin as dark as midnight, knelt in the courtyard of Nobunaga's castle, tending to his duties. Though he had traveled a long and treacherous path to reach this moment, his journey had just begun.

Chapter 1: A World Away

In a small village on the Mozambique coast, a young Yasuke lived an ordinary life, unaware of the extraordinary destiny that awaited him. Captured by slave traders and torn from his homeland, he endured a grueling voyage across the Indian Ocean, finally arriving in the bustling port of Goa, India.

It was there that Yasuke's fate took an unexpected turn when he was purchased by Jesuit missionaries. In their service, he learned about Christianity, new languages, and the ways of the Western world.

Chapter 2: The Land of the Rising Sun

As a loyal servant to the missionaries, Yasuke accompanied them on their journey to Japan, a land of mystique and intrigue. The beauty of the land, the complexity of its customs, and the elegance of its people captivated him. As the first African to set foot in Japan, he attracted attention and curiosity from all those who encountered him.

Chapter 3: The Encounter

In Kyoto, the capital of feudal Japan, Yasuke's life changed forever when he met Oda Nobunaga, one of the most powerful and influential daimyos of the time. Nobunaga was captivated by the African's physical prowess, intelligence, and unique background. Seeing potential in Yasuke, Nobunaga decided to take him into his service as a samurai.

Chapter 4: The Path of the Warrior

Yasuke's transformation from a slave to a samurai was fraught with challenges. He had to adapt to the rigorous training, strict code of honor, and the intricacies of Japanese society. Despite these obstacles, Yasuke's strength, resilience, and determination allowed him to excel, earning the respect of his fellow samurai and the trust of Nobunaga.

Chapter 5: The Unfolding War

As Nobunaga sought to unify Japan under his rule, Yasuke fought by his side in numerous battles. The African samurai's legend grew with each victory, as did his bond with Nobunaga. Together, they faced both triumph and tragedy, navigating the treacherous landscape of alliances and betrayals that defined the era.

Chapter 6: The Turning Tide

Yasuke's reputation as a skilled and loyal samurai grew, as did his bond with Lord Nobunaga. The warlord respected Yasuke's dedication and resilience, a stark contrast to the treachery and self-serving ambitions that plagued many samurai of the era.

Word of Yasuke's prowess reached other daimyos, and whispers of the formidable black samurai began to spread across the provinces. The year was 1579, and the Oda clan had just emerged victorious in the Battle of Tedorigawa. Yasuke had fought valiantly, his towering presence and unmatched strength striking fear into the hearts of his enemies.

As the Oda clan continued to expand its territories, Yasuke's friendship with Nobunaga deepened, and he became a trusted advisor. He learned more about Japanese culture, studied the language, and embraced the customs of his new home.

In the shadows, however, the tides of change were brewing. Mitsuhide Akechi, once a loyal ally, had grown disillusioned with Nobunaga's rule. The resentment smoldered within him, fueled by a series of perceived slights and political maneuverings. Mitsuhide's ambition and desire for power began to cloud his judgment.

Yasuke had sensed the shift in Mitsuhide's demeanor and grew increasingly wary of the samurai lord. However, loyalty to Nobunaga prevented him from openly voicing his concerns. He instead focused on his duties, ever vigilant and ready to protect his lord at a moment's notice.

One fateful evening, the air was heavy with the scent of cherry blossoms, as the Oda clan gathered to celebrate their recent victories. Laughter and the clinking of sake cups filled the air. Unbeknownst to the revelers, Mitsuhide Akechi's treacherous plan was already in motion.

As the sun rose, the first cries of battle rang out. Mitsuhide's forces had launched a surprise attack on Nobunaga's residence at the Honno-ji Temple. The chaos was overwhelming, as friend turned against friend, and the air filled with the acrid smell of smoke and blood.

Yasuke fought his way to Nobunaga's side, his sword cutting through the traitorous samurai with brutal efficiency. The two men made their final stand together, back-to-back, against the relentless onslaught.

In the end, however, they were outnumbered. As Nobunaga fell, mortally wounded, Yasuke continued to fight, but he too was eventually captured. Mitsuhide Akechi, in a twisted display of respect, spared Yasuke's life, acknowledging the loyalty and prowess of the black samurai. Yasuke was sent to the Jesuit missionaries, his future uncertain.

Yasuke's journey had been a remarkable one, from a slave in a foreign land to a trusted advisor and samurai. Despite his extraordinary circumstances, he remained true to himself and his values. His story of strength, resilience, and loyalty would be remembered and honored for generations to come.

Epilogue:

As the sun set on another day in Japan, the whisper of the wind carried the tale of the black samurai, Yasuke, across the land. It would weave its way through the ages, inspiring countless others to rise above adversity and carve their own paths through the storms of life.

Ingressデザイン

!

Title: The Black Samurai: Yasuke's Odyssey

Prologue: Whispers of a Stranger

The year was 1579. The shores of Kyoto were caressed by the gentle waves of the Sea of Japan, as a strange vessel approached. Aboard the ship, a tall, dark-skinned man with the bearing of a warrior stood, gazing upon the foreign land that would soon become his home. His name was Yasuke, and he had been brought to Japan by the Jesuit missionaries, sold into servitude and torn from his African homeland.

Chapter 1: Nobunaga's Curiosity

Yasuke's arrival in Kyoto was met with awe and fascination. His ebony skin, unlike anything the Japanese had ever seen, drew the attention of the powerful daimyo Oda Nobunaga. Intrigued by the foreigner's strength and demeanor, Nobunaga requested a meeting with Yasuke. The two men found a mutual respect for each other's warrior spirit, and thus, Yasuke was granted a position in Nobunaga's service.

Chapter 2: The Path of the Samurai

As Yasuke adapted to his new life, he faced many challenges. He struggled to learn the language and customs, as well as the intricacies of the samurai code, Bushido. Despite the adversity, his determination to prove himself to Nobunaga and the other samurai never wavered. Gradually, Yasuke honed his skills in swordsmanship and strategy, earning the respect of his peers and the title of samurai.

Chapter 3: A Warrior's Bond

Yasuke's service to Nobunaga brought him into contact with many prominent figures of the time, including Mitsuhide Akechi, a cunning and ambitious samurai lord. While their friendship was built on mutual admiration and shared experiences on the battlefield, a lingering mistrust lingered beneath the surface. Yasuke could not shake the feeling that Mitsuhide's ambitions would one day prove to be a grave threat to Nobunaga and his empire.

Chapter 4: The Taste of Betrayal

The year was 1582. The air hung heavy with tension as Yasuke rode beside Nobunaga to the Honno-ji temple in Kyoto. Unbeknownst to them, Mitsuhide Akechi had orchestrated a coup against Nobunaga, his forces surrounding the temple and setting it ablaze. Trapped within the inferno, Nobunaga chose to commit seppuku, entrusting Yasuke with his sword and his final words.

Chapter 5: The Black Samurai's Vengeance

As the flames consumed the temple, Yasuke vowed to avenge Nobunaga's death. He fought his way out of the burning temple, cutting down Mitsuhide's men with the ferocity of a wounded tiger. In a final confrontation with Mitsuhide, Yasuke's loyalty and honor as a samurai shone through, but he was ultimately captured and spared by Mitsuhide, who could not bring himself to kill the man he had once called a friend.

Epilogue: The Legend Endures

With Nobunaga's death, Yasuke's fate was uncertain. The events that followed his confrontation with Mitsuhide would become the stuff

2022-12-29

snapインストールしたパッケージを優先して使うにはどうすれば良いのだろうか?

OS Ubuntu

snapインストールしたemacsと、aptインストールしたemacsがある

もともとは snap版のみを使っていたが、apt install emacs-mozc をしたら、なぜか/usr/bin/emacs が呼ばれるようになって、おそらくこのemacsaptインストールされたものだと思う。

優先度は/usr/bin > /snap/bin なので、普通に $emacs と呼ぶと、aptemacsが使われる。

[解決策1]

alias emacs='/snap/bin/emacs' とする。

しかsnapemacsが使える

ただし、which emacsとしたとき、/usr/bin/emacs と出るので、この設定のことを忘れたときにはまりそう。

[解決していない策]

sudo apt autoremove emacs

ただ、これをしても/usr/bin/emacsが消えない。なんでだろう


さて、PATHの順番を変えるのはやりたくなく、emacsだけ呼び出し先を変えたいんだけど、どうやるんだろう。

ログイン ユーザー登録
ようこそ ゲスト さん