「Path」を含む日記 RSS

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

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-10-16

ジョージ・ソロス、2007

↪︎The Bush administration is again committing a blunder in the Middle East by supporting the Israeli government in its refusal to recognise a Palestinian unity government that includes Hamas. This precludes any progress towards a peace settlement at a time when such progress could help avert conflagration in the greater Middle East.

The US and Israel seek to deal only with Mahmoud Abbas, Palestinian Authority president. They hope new elections would deny Hamas the majority it has in the Palestinian legislative council. This is a hopeless strategy, because Hamas would boycott early elections and, even if their outcome resulted in Hamas’s exclusion from the government, no peace agreement would hold without Hamas support.

Meanwhile, Saudi Arabia is pursing a different path. In a February summit in Mecca between Mr Abbas and the Hamas leader Khaled Mashaal, the Saudi government worked out an agreement between Hamas and Fatah, which have been clashing violently, to form a national unity government. Hamas agreed “to respect international resolutions and the agreements [with Israel] signed by the Palestinian Liberation Organisation”, including the Oslo accords. The Saudis view this accord as the prelude to the offer of a peace settlement with Israel, to be guaranteed by Saudi Arabia and other Arab countries. But no progress is possible as long as the Bush administration and Ehud Olmert’s Israeli government refuse to recognise a unity government that includes Hamas.

Many causes of the current impasse go back to the decision by Ariel Sharon, former Israeli prime minister, to withdraw from the Gaza Strip unilaterally, without negotiating with the then Fatah-controlled Palestinian Authority. This contributed to Hamas’s electoral victory. Then Israel, with strong US backing, refused to recognise the democratically elected Hamas government and withheld payment of the millions in taxes collected by the Israelis on its behalf. This caused economic hardship and undermined the government’s ability to function. But it did not reduce support for Hamas among Palestinians and it reinforced the position of Islamic and other extremists who oppose negotiations with Israel. The situation deteriorated to the point where Palestine no longer had an authority with which Israel could negotiate.

This is a blunder, because Hamas is not monolithic. Its inner structure is little known to outsiders but, according to some reports, it has a military wing, largely directed from Damascus and beholden to its Syrian and Iranian sponsors, and a political wing that is more responsive to the needs of the Palestinian population that elected it. If Israel had accepted the results of the election, that might have strengthened the more moderate political wing. Unfortunately, the ideology of the “war on terror” does not permit such subtle distinctions. Nevertheless, subsequent events provided some grounds for believing that Hamas has been divided between its different tendencies.

No sooner had Hamas agreed to enter into a government of national unity than the military wing engineered the kidnapping of an Israeli soldier, which prevented such a government from being formed by provoking a heavy-handed Israeli military response. Hizbollah used the opportunity to stage an incursion from Lebanon, kidnapping more Israeli soldiers. Despite a disproportionate response by Israel, Hizbollah stood its ground, gaining the admiration of the Arab masses, whether Sunni or Shia. It was this dangerous state of affairs – including the breakdown of government in Palestine and fighting between Fatah and Hamas – that prompted the Saudi initiative.

Defenders of the current policy argue that Israel cannot afford to negotiate from a position of weakness. But Israel’s position is unlikely to improve as long as it pursues its current course. Military escalation – not just an eye for an eye but roughly 10 Palestinian lives for every Israeli one – has reached its limit. After the Israeli Defence Force’s retaliation against Lebanon’s road system, airport and other infrastructure one must wonder what could be the next step. Iran poses a more potent danger to Israel than either Hamas or Hizbollah, which are Iran’s clients. There is growing danger of a regional conflagration in which Israel and the US could be on the losing side. With Hizbollah’s ability to withstand the Israeli onslaught and the rise of Iran as a prospective nuclear power, Israel’s existence is more seriously endangered than at any time since its birth.

Both Israel and the US seem frozen in their unwillingness to negotiate with a Palestinian Authority that includes Hamas. The sticking-point is Hamas’s unwillingness to recognise the existence of Israel, but that could be made a condition for an eventual settlement rather than a precondition for negotiations. Demonstrating military superiority is not sufficient as a policy for dealing with the Palestinian problem. There is now the chance of a political solution with Hamas brought on board by Saudi Arabia. It would be tragic to miss out on that prospect because the Bush administration is mired in the ideology of the war on terror.

Financial Times, March 19, 2007

George Soros

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だけ呼び出し先を変えたいんだけど、どうやるんだろう。

2022-12-06

[][]白赤マルチ7-1

シルバー

レア土地3枚というクズから赤の除去が吸い付き白赤マルチ(Fallaji Vanguard)が3枚流れるという変な卓に。

キャントリップ二段攻撃が毎回ドローできてマルチと合わせてパワー3ダブストは強かった。

どれぐらいつよかったかというとダブマリを捲くれたくらい強かった。

鍋張られても誘発は残るので勝ったりもした。フラッシュ生物で討ち取ったりもした。雑強。

赤のアーティファクト破壊強いと思って入れていたが、よく考えたら白のディッチャの方が強いと気付いて三戦目あたりで一枚入れ替えた。1マナ以下に打ってドローなんてつかわんつかわん。

一敗は盤面は有利に見えたが終盤出てきた緑のアーティファクトブロック不可クリーチャーパンプしつつすり抜けて負けた。肉をひければ場のアーティファクトクリーチャーで勝てたが連続土地引きし残念。

終戦相手が白の破壊不能+呪禁を使い渋るなぁと思ったら構えつつ白金天使を出してきた。

返しのターンでバンザイアタックしたら相手天使で一体ブロックしてちょうど相手ライフが0に。

ダメージが入ったので赤の3点ソーサリーで除去、スタック破壊耐性、スタックディッチャと空中戦を制して勝利相手がナメずにブロックしなかったら負けてたラッキー勝ちで7勝。

Deck

1 Obliterating Bolt (BRO) 145

1 Raze to the Ground (BRO) 149

3 Tocasia's Onulet (BRO) 39

1 Mishra's Juggernaut (BRO) 161

3 Fallaji Vanguard (BRO) 210

1 Mishra's Bauble (BRR) 34

1 Excavation Explosion (BRO) 132

1 Combat Thresher (BRO) 35

1 Aeronaut Cavalry (BRO) 1

1 Yotian Frontliner (BRO) 42

1 Whirling Strike (BRO) 157

1 Blast Zone (BRO) 258

1 Roc Hunter (BRO) 150

1 Airlift Chaplain (BRO) 2

1 Scrapwork Mutt (BRO) 164

1 Yotian Medic (BRO) 33

1 Mass Production (BRO) 15

1 Phalanx Vanguard (BRO) 19

1 Ambush Paratrooper (BRO) 3

8 Plains (BRO) 269

8 Mountain (BRO) 275

1 Disenchant (BRO) 6

Sideboard

1 Argoth, Sanctum of Nature (BRO) 256

1 Scrapwork Rager (BRO) 123

1 Levitating Statue (BRO) 236

1 Junkyard Genius (BRO) 214

1 Obstinate Baloth (BRO) 187

1 Raze to the Ground (BRO) 149

1 Swiftgear Drake (BRO) 251

1 Su-Chi Cave Guard (BRO) 249

1 Union of the Third Path (BRO) 31

1 Fortified Beachhead (BRO) 262

1 Penregon Strongbull (BRO) 147

1 Bitter Reunion (BRO) 127

1 Fog of War (BRO) 180

1 Cloud Key (BRR) 12

1 Arms Race (BRO) 126

1 Phyrexian Revoker (BRR) 40

1 Aeronaut's Wings (BRO) 231

1 Ambush Paratrooper (BRO) 3

1 Evangel of Synthesis (BRO) 209

1 Power Plant Worker (BRO) 241

1 Take Flight (BRO) 65

2022-10-11

anond:20221011030454

いやご家庭の教育放棄すんなよ

海外作品評価するヤツもご家族教育が前提だぞ。ネタでもやめて欲しい

日本コンテンツ倫理観は終わってるんで。せめて下記のような評価の指針を持ってからにしよう

Positive message や Positive Role Model という概念

 

 

例えばポケモン ↓

WHAT PARENTS NEED TO KNOW

Parents need to know that the long-running Pokémon series is based on characters from a popular video game, and is part of a giant licensing juggernaut. The Pokémon are kid-appealing, but the series features lots of fantasy violence, and pits the cute, monster-like characters against each other on behalf of their trainers. There are some positive messages (teamwork, sportsmanship, respecting elders), but it may be too intense for younger children.

 

IS IT ANY GOOD?

Over the years, the energetic, imagination-filled, Japanese-inspired fantasy series has cut across cultural, gender, and age barriers to captivate a global audience of girls, boys, and even adults. But like any product that inspires obsessions, it has received its share of criticism. Folks may also find the franchise's massive commercial appeal disturbing, especially since the show is mainly geared towards kids.

The whole concept of human characters summoning subordinates to battle on their behalf may be troubling to some. This can potentially send iffy messages to children with pets, too. But despite the endless fantasy violence, Pokémon attempts to promote messages about choosing the right path in life and resolving differences peacefully--before the fighting starts.

 

TALK TO YOUR KIDS ABOUT ...

Families can talk about the popularity of Pokémon in the United States. Why do people of all ages find it appealing? What are the most popular Pokémon? Why?

What are the differences between Pokémon and real-life pets. How do Ash and his friends care for their Pokémon? How do we care for pets differently? Why are the Pokémon loyal to them and fight on their behalf? How about Team Rocket? Can we ever expect animals to fight on our behalf?

2022-08-31

プログラミングとは無縁の職業だが久々に勉強としてゲーミングPC(wsl2)上でstable diffusion回せるような環境を作ろうとしたらこんな時間になってしまった

wsl2上でcuda使えるようにするのにまず躓いて、GPGとかいうのが問題だとわかるのに1時間くらいかかって、

そのあとビデオメモリ不足でプログラムが回らない問題が起きて、まぁこれはメモリ少なくて済むフォークを使えばいいとすぐわかったので問題なかったが、

最後anacondaで一度includeできたモジュールが何故かincludeできなくなる問題が発生してpathかいじったりしたがうまくいかず、最終的にはvscode問題だとわかって一度wsl2を切断して再接続したら治ったけどこの対応に2時間くらいかけてしまった

まぁ結果一日かけずにstable diffusionを動かすことができるようになったから良かったけど

本当はいい感じの絵を出せる文章とかコード変えてエッチな絵を生成できるようにしたり中身を見て勉強しようと思ってたけどそれは明日以降だな

2022-08-06

[] 自己愛パーソナリティ障害と誠実さ

誇大妄想しか楽しみを見出せない人がいる 

単なる病気(自己愛パーソナリティ障害)だからニートでも社会人でもそこそこ成功者(金持ち)でもいる

現実ソーシャルランクはあまり関係ない

からさまな嘘松を見ると『ああ・・・😔』って気分になる

 

あと誇大妄想好きな人は微小妄想(自分を過剰に過少評価する。鬱病の特徴とされる)するのも趣味で生きがいな人が多い

好き好んで自分ダメなヤツ、こんな人生意味ない、だからゴミって年がら年中やってる

これもやっぱり現実ソーシャルランクはあまり関係ない。ニート世界的なアーティストでも微小妄想して自死したりもする

からさまな微小妄想を見ると『ああ・・・😔』って気分になる

  

なお、発達障害(特にアスペ)と自己愛パーソナリティ障害は、重なるとこが多く、併せ持ってることも多いそうな

ちなどっちも遺伝的傾向が強いとのこと

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

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

 

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

 

ただ遺伝の傾向が強いとはいえ、結局のところは環境問題なんだよな

なろうとか薄っぺら創作では、"間違った、偉そうなことを言う" 雑魚キャラは甘やかされてるみたいな描写がなされるが

現実では逆だ。現実尊重されず踏み躙られることが多かったから、自己防衛でそういう言動が出るようになる

そして『自己愛性』のパーソナリティ傾向です。「私は特別、私はすごい」という思いが前面に出るパーソナリティ傾向のことですが、

こうした万能的な自己像が損なわれることを恐れて、対人関係回避する、試される場を回避するといった受身的な形で表れる

自己愛性の高さもありますひきこもりの背景要因となる自己愛性とはこの傷つきやす受身的・回避的な自己資性パーソナリティ傾向だと思われます

これは、甘やかして育てら れた人、傷つくことなく育てられた人のパーソナリティ傾向と誤解されがちですが、

実際 には健全自己愛の展開を阻まれたり踏みにじられたりした経験を通じて、

特に思春期青 年期のある局面で均衡を欠くほど高い自己愛性を顕わにするという形成過程を持つの普通です。

から自己愛パーソナリティ障害の人は、自分特別であるということにこだわりながら、傷つくことを非常に恐れているのです。

なお、ひきこもる中でこうした自己愛性が二次的に高まっていく心理過程もありうると思われます

 

思春期ひきこもりをもたらす精神科疾患の実態把握と精神医学治療・ 援助システムの構築に関する研究 | 内閣府

https://www8.cao.go.jp/youth/suisin/pdf/shien/k_1/k1.pdf

 

自分は、誠実さが無いヤツ・嘘つきが嫌いだが、自己愛パーソナリティ障害の人に誠実さと正確さを求めるのは無茶振りに思える

じゃあ辛いことが多かったであろう自己愛パーソナリティ障害の人をありのままで受け入れられるのか?と言われたら正直言って難しい

仕事とか趣味とかのシーンであらかじめ枠組みを作って、枠組み内ならお互い様精神で受け入れる事は出来るけど

枠組み無しで全面的に受け入れるとなったら、親兄弟か幼馴染でも無い限り無理だなぁ

 

あと自己愛パーソナリティ障害だと自己申告があれば配慮するが、自己申告が無ければ、

ただ単に誠実さが無いない嘘つきなのか、病気なのかは見分けつかないよね

 

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

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

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

2022-06-05

HTTP Cookie命名で失敗したのか

趣旨

次のツイートブクマが集まっていたが、論点が整理されていないようなので、主にCookie出自について記述する。

※元ツイートブクマ

cookie命名で失敗し「魔術的な」技術勘違いされてる。実際はすごくシンプル。①サーバSet-CookieヘッダでIDを通知する、②クライアントは以降CookieヘッダにそのIDを設定する、③それによりサーバクライアント区別できるようになる。ただそれだけ。もったいぶって説明はほぼ間違ってる。

TL; DR

Cookieという単語に「魔術的な」意味など元々なかったし、本来単なるデータストアである(ゆえにセッションIDも格納できる)。元ツイートの主張はおかしいし、元ツイートが腐しているspeakerdeckの内容はそんなに間違っていない。

結論として、元ツイが「現在Cookie」の話しかしていないか論点がずれている。歴史的Cookieの在り方はデータストアだった。また、現在でも一部でデータストア的に使用されている

ツイートの主張

なるほどね。それでは1つずつ見ていこう。

CookieクライアントIDを保存するだけのもの

現在フォーカスを当てれば、Cookieは「基本的セッションIDを格納する場所」と説明すれば良いが(Slideもそう書いてるよ?)、元々はデータストアである。元ツイは歴史的ファクト現代実装スタンダード混同しているように感じる。2022年に「Cookieっていうのはー、ユーザ名とか個人情報を保存しておける便利なデータストアだよ」っていうと単なるやべー奴だが、1997年から2000年ごろまでは普通にそういった実装がなされていた。性善説時代だったのである

「嘘だろ」と言われそうなので、1997年のRFC2109を引用する

https://datatracker.ietf.org/doc/html/rfc2109

         POST /acme/shipping HTTP/1.1
         Cookie: $Version="1";
                 Customer="WILE_E_COYOTE"; $Path="/acme";
                 Part_Number="Rocket_Launcher_0001"; $Path="/acme"
         [form data]

普通にユーザー名とか買い物かごの中身をCookieに保存している。今この実装をする奴はヤベーが、1997年はそういう時代だったのである

         Cookie: $Version="1";
                         session_id="1234";
                         session_id="1111"; $Domain=".cracker.edu"

セッションIDの例もあるが、なんと数字4桁である。今こんなことをしたら確実に徳丸本の角で頭を殴られる。当時のインターネットいか性善説の上に成り立っていたか分かるだろう。

とにかく今はデータストアじゃないんだよ

この主張も誤りである。例えばja.wikipedia.orgでは、アカウント名や利用者のおおよその住所などをCookieに仕込んでいる。セキュリティ的にザルだと思うなら、ぜひ直接殴り合って欲しい。

Cookieという命名ダメ

元ツイではMagic Cookieを「魔術的なクッキー」と解釈している(なんでも魔法のようにできる多機能な……って感じ?)ようだが、ここでいうMagicとは魔術のことではないだろう。Magic NumberとかMagic WordMagic(利用者理解していなくても有効もの)と考えた方が意味が通る。これはMagic Cookie語源となったfotune cookieの語義に通じるところもある。

fortune cookieとは。文字が書かれた紙片を封入した焼き菓子であるHTTP Cookieクライアントサーバとも内容について問わない(紙片に何を書いてもいい)し、捨てても無視しても構わない(食べなくても割らなくても良い)ためにこの名前がついたのだろう。任意情報ラップしたものというメタファーとして適切に思えるし、Magicという形容詞も適切であると考える。

1つあたり容量が4kBしかないのも可愛らしい。クッキーいいんじゃないか。逆に何だったら良かったのか。

speakerdeckの内容は有害デタラメ

そんなに間違ったことは書いていない気がするが……。現在ほとんど使われない技術が書いてあったとして、それが何……?とはなる。Slideはaxiosの使い方を示してるだけだし、2年前の記事に対して「情報が古い」ってツッコミ微妙ではある。

総括

結局何に怒って何を否定しているのかよく分からなかった。SunのX端末を使っていたということなので、最近事情しか知らないというわけでもなさそうなのだが。

リーを眺めているとあまり期待はできなさそうだが、元ツイの人はもう少し丁寧な議論をして欲しいところだ。

余談

2022-05-26

anond:20220526025040

発達障害(特に自閉症アスペ)と自己愛パーソナリティ障害って違うものだが、重なるとこが多く、併せ持ってることも多いそうな

ちなどっちも遺伝的傾向が強いとのこと

 

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

 

 

ストレスのない生活を送るためにと言った切り口ではなく、直球で『テロ』とか『引きこもり』ってワード研究がばんばか出てきちゃうので

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

そして『自己愛性』のパーソナリティ傾向です。「私は特別、私はすごい」という思いが前面に出るパーソナリティ傾向のことですが、

こうした万能的な自己像が損なわれることを恐れて、対人関係回避する、試される場を回避するといった受身的な形で表れる

自己愛性の高さもありますひきこもりの背景要因となる自己愛性とはこの傷つきやす受身的・回避的な自己資性パーソナリティ傾向だと思われます

これは、甘やかして育てら れた人、傷つくことなく育てられた人のパーソナリティ傾向と誤解されがちですが、

実際 には健全自己愛の展開を阻まれたり踏みにじられたりした経験を通じて、

特に思春期青 年期のある局面で均衡を欠くほど高い自己愛性を顕わにするという形成過程を持つの普通です。

から自己愛パーソナリティ障害の人は、自分特別であるということにこだわりながら、傷つくことを非常に恐れているのです。

なお、ひきこもる中でこうした自己愛性が二次的に高まっていく心理過程もありうると思われます

 

思春期ひきこもりをもたらす精神科疾患の実態把握と精神医学治療・ 援助システムの構築に関する研究 | 内閣府

https://www8.cao.go.jp/youth/suisin/pdf/shien/k_1/k1.pdf

2022-05-08

anond:20220508112857

Uniform Resource Identifier (URI): 一般的構文

https://triple-underscore.github.io/rfc-others/RFC3986-ja.html#section-3

 URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

 hier-part   = "//" authority path-abempty
             / path-absolute
             / path-rootless
             / path-empty

: は scheme と hier-part を区切るために必要

// は 後に続くトークンが "authority path-abempty" とそれ以外であることを区別するのに必要

2022-04-27

Path of Exileをやってみてるが、こんなにグラ荒かっただろうか

どうせ終盤はアホみたいな数の敵がアホみたいな量の攻撃してきてアホみたいなスキル連打で迎撃するんで精彩でなくていいのはいいんだけど、もうちょっとキレイにならないのかな

2022-04-16

anond:20220416170523

日本コンテンツ倫理観は終わってるんで。せめて下記のような評価の指針を持ってからにしよう

Positive message や Positive Role Model という概念

 

 

例えばポケモン ↓

WHAT PARENTS NEED TO KNOW

Parents need to know that the long-running Pokémon series is based on characters from a popular video game, and is part of a giant licensing juggernaut. The Pokémon are kid-appealing, but the series features lots of fantasy violence, and pits the cute, monster-like characters against each other on behalf of their trainers. There are some positive messages (teamwork, sportsmanship, respecting elders), but it may be too intense for younger children.

 

IS IT ANY GOOD?

Over the years, the energetic, imagination-filled, Japanese-inspired fantasy series has cut across cultural, gender, and age barriers to captivate a global audience of girls, boys, and even adults. But like any product that inspires obsessions, it has received its share of criticism. Folks may also find the franchise's massive commercial appeal disturbing, especially since the show is mainly geared towards kids.

The whole concept of human characters summoning subordinates to battle on their behalf may be troubling to some. This can potentially send iffy messages to children with pets, too. But despite the endless fantasy violence, Pokémon attempts to promote messages about choosing the right path in life and resolving differences peacefully--before the fighting starts.

 

TALK TO YOUR KIDS ABOUT ...

Families can talk about the popularity of Pokémon in the United States. Why do people of all ages find it appealing? What are the most popular Pokémon? Why?

What are the differences between Pokémon and real-life pets. How do Ash and his friends care for their Pokémon? How do we care for pets differently? Why are the Pokémon loyal to them and fight on their behalf? How about Team Rocket? Can we ever expect animals to fight on our behalf?

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