「case」を含む日記 RSS

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

2024-02-29

閏年バグ理由

色々開発に携わってきたが大体2パターンある

Caseパターン

Case month when 1 then ~って感じのコード。thenの後にif文や更にCase文がある。この辺りに28日までとか書いてある。

ソースレビューがあったら指摘する内容だが機能していない場合はこのレベルが来る。オフショア海外に出すとマジでこんなの書いてくる。指摘するとはいはい言うけどどうすれば良いのか悩む。

アーキテクチャ次第だが単に29までに変更すれば良い場合もあるが、たまに他にも影響したりして結構絶望する。月末日取得で書いてたら説教レベル

スタパターン

大体Caseパターンロジックが考えられない場合国内外提案してくるのがマスタ化だ。発注元も何故か柔軟な対応が出来るからと賛成してくる

結果年1や月1のマスタ設定が必要になり運悪いタイミング担当者閏年を忘れてると大体起きる。賛成した人らは運用しないので気楽だ。

こっちはマスタ設定すれば良いのだが、閏年ですよ忘れていませんかチェックは無いくせに登録出来るのは翌日以降チェックはしっかり入ってたりする。

設計段階で考慮すれば良いのだがマスタは何故か新人仕事となり結果糞仕様スキル不足が重なって復旧に時間がかかったりする。もちろん新人に罪は無い。日付をキーにするマスタなんて要件で考えた奴が悪い

閏年バグ回避方法

閏年に影響されない業務フローにする。そもそも年月日を指定するか2/28の次は3/1だと明示しない限りはシステム閏年バグを起こさない。

日付チェックで存在しない日付と閏年チェックは基本だ。

もし日付チェックを自作の変なロジックで作って発生させてたら20代なら許すが30代以上は即引退して他の仕事探したほうが良い。変に生き残って上流に行くと出来上がるのは意味の分からない事を言うステークホルダーという老害で将来はコンサルとか名乗って中小零細で惨めなシステム論を語る粗大ゴミ

2024-02-28

外国人診療拒否差別問題に発展してるクリニックがある

/r/japanlife/s/P1LIa3VcAm

Was told "no foreigners" by a clinic

I just recently moved to a new area in Tokyo, I called a nearby clinic to make a reservation (in Japanese) and pretty quickly into the conversation, the receptionist asked if I could go somewhere else instead. When I asked why, she clearly and blatantly said "they don't take foreigners." I was shocked so I asked again just to make sure I heard right and again she said they don't take foreigners.

When I accused the clinic of discrimination they tried to deny it and claim that "it's difficult to communicate with foreigners," though I've never had that issue at any other Japanese speaking only clinic or hospital.

If this were just a bar or something I'd drop it, but the fact that a CLINIC can blatantly discriminate against patients seems insane to me. I'm not expecting much sadly, but is there anywhere I can report them?

I'm paranoid about just leaving bad reviews because I've seen a first hand case of someone getting sued over one.

UPDATE:

I called a "patient voice" hotline for reporting these sort of things. I explained the situation and they said they would contact the clinic. They later updated me and said they were actually able to talk to the doctor, and he just doubled down and insisted they did nothing wrong because "communication with foreigners is difficult." After that they basically could not do anything else other than offer sympathy lol...

[患者の声相談窓口 東京都保健医療局 (tokyo.lg.jp)](https://www.hokeniryo.metro.tokyo.lg.jp/iryo/sodan/madoguchi.html)

I also called this government hotline. First they tried to refer me back to the patient voice hotline. After I explained the results from patient voice, they said they are going to determine if it warrants an investigation, which would take 2-3 weeks. They also warned that the clinic is allowed to decline the investigation... so honestly I'm expecting nothing. But they said they would contact me again in 2-3 weeks.

[Human Rights Bureau (moj.go.jp)](https://www.moj.go.jp/ENGLISH/HB/hb.html)

Local police just said different hospitals have different rules and nothing can be done, just go to a different clinic.

患者の声相談窓口 東京都保健医療局 に相談してもクリニックが拒否をしたらそれ以上に何もせず同情しただけ。

いまは 人権擁護局 に相談中とのこと。でもクリニックは人権擁護から調査拒否できるらしい。

これ国際問題になり得る外国人差別じゃね?

今の時点で1000以上のupvoteが付いてるが、これは japanlife subreddit ではかなり多い方。

2024-02-06

ワクチンツイート分析における「ワクチン賛成派」とは誰か

解答

まとめ(および私見)

人はなぜワクチン反対派になるのか ―コロナ禍におけるワクチンツイート分析

https://www.t.u-tokyo.ac.jp/press/pr2024-02-05-001

研究の内容〉

研究はまず、2021年1月から12月までに収集された「ワクチン」を含む約1億件のツイート収集し、機械学習を用いて「ワクチン賛成ツイート」「ワクチン政策批判ツイート」「ワクチン反対ツイート」の3クラスタ抽出した。次に、「ワクチン反対ツイート」を多くつぶやいたりリツイートしているアカウント特定し、「ワクチン反対ツイート拡散アカウント」として定義した。そして、「ワクチン反対ツイート拡散アカウント」を多くフォローしているユーザを「ワクチン反対派」として定義した。

分析は主に3つの視点から行われた。第1に、ワクチン賛成派と反対派を比較し、反対派の特徴を明らかにした。

ちょっと待て「ワクチン賛成派」って何?

上記プレスリリースの中で「賛成」というワードは4回しか使われておらず、そのいずれにも「賛成派」の定義を示す文というもの存在しない。

幸いにも元論文がPublicで公開されているため、主にMethod項を見てまとめていきたい。

分類方法

1. 「ワクチン」「vaccine」を含む日本語ツイート98,805,971個を取得する。

2. うち2RT以上のツイートのみを検証する。

3. ツイートクラスタリングを行い、20種のクラスターが作成される。

4. 上位3つ(検証ツイートの99%・リツイートの98%を占める)のクラスター(「ワクチン賛成ツイート;pro-vaccine tweets」「ワクチン政策批判ツイート;opposition to the government’s vaccine policy」「ワクチン反対ツイート;anti-vaccine tweets」)を検討する。

5. 上記3クラスターのツイートを行ったアカウントRTしたアカウントを集計する(「ワクチン賛成ツイート拡散アカウント:1,382,065」「政府批判拡散アカウント:248,699」「ワクチン反対ツイート拡散アカウント:196,936」)。

6. 上記3種のアカウントからそれぞれ50,000アカウントずつ無作為抽出し、フォロー中のワクチン反対ツイート拡散アカウント割合を算出する。

7. "ワクチン反対ツイート拡散アカウント/総フォローアカウント"の割合ソートし、上位25%(全体の12.3%以上)を"High anti-vaccine group"、下位25%(全体の0.24%未満)を"Low anti-vaccine group"とする。

ということで増田冒頭の「フォローアカウントのうち、ワクチン反対ツイートをした/RTしたアカウント割合が少ないアカウント」ということになる。

これを「賛成派」という言葉表現するのは実態を表しているようにはみえない。

しかし、元論文においてはこのような表現がほぼされていないといっていい。

基本的日本語プレスリリースにおける「反対派」「賛成派」は上記メソッドで出たHigh group/Low groupとして表現されている。「反ワクチン性が高いグループ」「反ワクチン性が低いグループ」といったところ。

ただ、「ワクチン反対派」に類するフレーズは度々使われている(元からしてHigh/Low anti-vaccine groupだし)。

一方のLow groupでは、anti-vaccineに対してpro-vaccineという表現が使われている。が、ほぼ全ての用法発言ツイートに対してのみ使われており人に対して使われるケースは殆どない(イントロダクションに一回だけある)。

論文では誤解がないような表現にしているにも関わらずプレスリリースで「賛成派」という適切にはみえない表現を使うのはミスリーディングと言われても仕方ないのではないかと感じる。

その他雑な所見

参考文献

Toriumi, F., Sakaki, T., Kobayashi, T. et al. Anti-vaccine rabbit hole leads to political representation: the case of Twitter in Japan. J Comput Soc Sc (2024). https://doi.org/10.1007/s42001-023-00241-8

anond:20240206180507

ワクチン感情が低いグループを特徴づけるプロファイルの特徴(太字はWeight)

Profile features characterizing High and Low anti-vaccine sentiment groups

From: Anti-vaccine rabbit hole leads to political representation: the case of Twitter in Japan

https://link.springer.com/article/10.1007/s42001-023-00241-8/tables/4



関連増田

https://anond.hatelabo.jp/20240206193933

2024-02-05

世界三大あれ

camelCaseName

PascalCaseName

snake_case_name

kebab-case-name

Perl_Constant_Name ← これPerl以外で使われるの見たことないわwww (24/2/18追記 これ Ada で使われてんのな)

block__element--modifier ← 何だテメー・・・

他なんかある?

2024-01-28

うんこ不思議

 

みんなの不思議も教えてほしい。

2024-01-10

anond:20240110142354

ごめん

アディクテッド トゥ ホスト宇多田ヒカル曲名をもじったジョークのつもりで書いた

いわゆる「ホス狂」について、朝日新聞 英語版では「Host crazy」と直訳してるようだ。

ホストはそのまま「Host」と訳されている。

She had become a “hos-kyo” (host crazy).

‘Host crazy’ women fall into debt hell through pay-later system

By NOBUAKI TANAKA/ Staff WriterApril 9, 2023 at 07:00 JST

https://www.asahi.com/sp/ajw/articles/15020981



なお「ホストクラブ依存」は「Host Club Addiction」と訳す模様。

ホストクラブ依存症例報告|CiNii Research

A case report of Host Club Addiction

https://cir.nii.ac.jp/crid/1521417754718021632

2024-01-03

紅白歌合戦プレイバック動画再生ランキング

https://www.youtube.com/@nhk_music/videos

順位アーティスト曲名再生
1YOASOBIアイドル614万
2Ado325万
3新しい学校のリーダーズオトナブルー225万
4ブラックビスケッツTiming168万
5MISAMODo not touch129万
610-FEETゼロ112万
7LE SSERAFIMUNFORGIVEN100万
8Mrs. GREEN APPLEダンスホール99万
9NewJeansOMGETA&Ditto91万
10ポケットビスケッツYELLOW YELLOW HAPPY90万
11anoちゅ、多様性81万
12YOSHIKIRusty Nail76万
13ハマいくビートDEトー75万
14Stray KidsCASE 14369万
14クイーンアダム・ランバートドント・ストップ・ミー・ナウ69万
16伊藤蘭春一番64万
17有吉弘行×藤井フミヤ白い雲のように57万
18キタタツ青のすみか48万
19SEVENTEEN舞い落ちる花びら47万
20すとぷりキスキ星人45万
21寺尾聰ルビーの指環44万
22YOSHIKIENDLESS RAIN43万
23椎名林檎丸の内サディスティック40万
24NiziUMake you happy38万
25BE:FIRSTBoom Boom Back37万
26MAN WITH A MISSION x milet絆ノ奇跡31
26三山ひろしどんこ坂31
28JO1NEWSmile30万
29あいみょん愛の花27万
30鈴木雅之め組のひと26万
31椎名林檎㋚~さすがに諸行無常篇~25万
32Superflyタマシイレボリューション23
32坂本冬美夜桜お七23
32福山雅治HELLO23
35MISIA傷だらけの王者22万
35エレファントカシマシ俺たちの明日22万
35櫻坂46Start over!22万
38Official髭男dismChessboard21万
38乃木坂46おひとりさま天国21万
40PerfumeFAKE IT20
40郷ひろみ2億4千万の瞳20
42福山雅治想望19万
42緑黄色社会キャラクター19万
44milet x MAN WITH A MISSIONコイガレ18万
44大泉洋あの空に立つ塔のように18万
46藤井フミヤTRUE LOVE15万
47星野源生命12
48さだまさし秋桜9.4万
49JUJU時の流れに身をまかせ9万
50石川さゆり津軽海峡・冬景色8.9万
51山内惠介恋する街角8.1万
52ゆずビューティフル7.7万
53純烈だってめぐり逢えたんだ7万
53天童よしみ道頓堀人情7万
55水森かおり日向6.5万

2024-01-02

anond:20240111083927

I'm going in for surgery soon (= I'm having/getting surgery soon)

もうすぐ手術を受ける

go in for

〔富や名誉などを〕手に入れようとする、〔競技などに〕参加する、〔試験などを〕受ける

・I sent a demo CD to go in for the contest. : そのコンテストに参加するためデモCDを送った。

~を好む、~が好きである、~に凝っている、~に熱中する、~を楽しむ

・Throughout my school years I went in for music and was a member of the chorus. : 私は学校時代を通して音楽が好きで、コーラス部に入っていました。

~に賛成する、~を支持する

・The idea does make sense but I can't go in for it. : その考えは確かに道理にかなっているが賛成はできない。

~を仕事とする、~に従事する

・If you are active, don't go in for a sedate job. : 行動的な性格だったら堅苦しい仕事には就かない方が良い。

~を専攻する、〔講義などを〕取る

・If you are fluent in German, you can go in for an international course of study. : ドイツ語に堪能なら国際コースの課程を取ることができる。

競技などで〕(人)の代わりに参加する、代役を務める

・I went in for an injured player. : けがをした選手の代わりに出場しました。

go in for は like doing の古臭い言い方だから使わない方がいいという声も

https://ell.stackexchange.com/questions/118883/to-go-in-for-sport-or-just-to-do-sport/

-----

go (along) with / go for はともに「選ぶ choose」を意味することがあるがニュアンスが違う

go (along) with は妥協感がある一方で go for は積極的にそれを得ようとする感じ

学校部活などでレギュラーを狙っているときには go out for が使える

https://forum.wordreference.com/threads/go-with-vs-go-for.2864919/

-----

Go in to work 物理的に仕事場にたどり着くという意味

Go to work も同じ意味で使えるが、それとは別に仕事に取り組む(=Get to work)という意味でも使える

https://ell.stackexchange.com/questions/79790/what-is-the-difference-between-go-in-to-work-and-go-to-work

-----

How much that figure set u back?

そのフィギュアいくらしたの?

It was only like 2000 yen.

たった二千円だったよ

Nice, affordable

いいね、お手頃だ

but I did see a couple nicer ones going for like 15k +

ももっといいやつが1500円くらいで売られてた

~の値段で売られて[販売されて]いる

Manga here goes for $10-13 per volume, and no covers! : こっちでは漫画が一冊10~13ドルもするの。カバーも付いてないし。

scale figures go for crazy amounts sometimes

スケールフィギュアはたまにすごい値段で売られてるよな

-----

I'm going on a trip across Japan this April, and I'm going to have about 3 weeks to myself to just explore and find experiences.

今年の4月日本縦断の旅に出る予定なんだけど、3週間くらいまるまる使ってひたすら探検したり体験したりするつもりなんだ。

ct. do a trip to poland ポーランド旅行する

Is there anything that y'all would recommend I see/experience that's a more out of the way compared to touristy things?

観光名所的なやつよりも穴場的なところでなにかおすすめはある?

I'll put that on my list lol

それ予定に入れとく笑

have ~ to oneself

~を独占[独り占め]する、自分専用の~を持つ、~を自分で好きなように仕切る[使う]

・We had the whole room to ourselves. : 私たちは部屋を独占しました。

-----

that guy was a blubbering mess in the video, and to be honest, i don't blame him

彼は動画の中で泣きじゃくっていたが、正直それは無理もない話だ

he still cannot stop his endless-useless-lame babbling

彼は未だに訳のわからないくだらない話を延々と続けている

babbling 〔訳の分からないことやとりとめのないことを〕ぐちゃぐちゃ[ペチャクチャ]しゃべる◆【同】blithering ; blathering ; jabbering ; gabbling

-----

Stop speaking alien words at me

わけわからんことを言うな

why would that ever be the case

そんなわけないだろ

bro really milking this

こいつめっちゃ同じ話擦り続けるやん

man really interpreting everything

こいつ好き放題に解釈しよるやん

i feel like most people can't think past the fact that I'm the president

And are scared to talk to me or

ほとんどの人は私が社長だということを気にしてしまって、話すことを怖がってしま

mf shaming me because I was eating too quick even though he had like 2 spoonfuls more than me left on his plate

スプーン2杯分くらいしか違わなかったのに食べるの速すぎって煽られた

I'm in all reason to believe you did not come here for ___, but rather to troll.

If you feel like I'm mistaken in my decision, feel free to send us a mail

あなたは~という目的ではなく荒らすためにここに来たとしか思えない

もし間違っていると感じるなら連絡してください

Good thing shows her true colors before u got with her

付き合う前に本性がわかってよかったじゃん

cf. the mask slips/comes off = 化けの皮がはがれる

https://nativecamp.net/heync/question/8679

the guy you had added on facebook

thats what i rememeber him as

ほら、お前がフェースブックに追加したやつだよ

そいつに関してはそのことしか覚えてないわ

-----

ego stroke

《an ~》〈俗〉〔人をいい気分にさせる・人の自尊心を満足させる〕褒め言葉、お世辞◆【参考】stroke someone's ego

The owner is obnoxious just stroke his ego and you're fine

あのオーナーは嫌な奴だよ。とりあえずおだてておけば大丈夫

she is just using you to stroke her ego

彼女はただ自分がいい気になりたいがためにあなたを利用してるだけだ

-----

I think going to Japan and fucking with local citizens should have you tried at the Hague for espionage

日本に行って現地の市民にふざけた行為をしたら、スパイ行為としてハーグで裁かれるべきだと思う。(ジョニーソマリに対して)

And later sunset definitely beats getting home at 6 and it’s dark

日没は、6時に真っ暗闇の中で帰宅するのに比べれば断然マシだ

it got sunset a long time ago so it's not relevant anymore

それはずっとまえに衰退したから今ではもう存在感がない(影響力がない)

people shit on me all the time

いつもみんなからバカにされる、叩かれる

------

A: but why does uni even cost that much money

でもなんで大学はそんなに金がかかるんだ

B: I mean it's a racket through and through

ボッタクリの極みだから

racket - 〈俗〉不正商売金もうけ]、詐欺、ゆすり、密売

evil through and through - 《be ~》とことん邪悪[根っから悪人正真正銘悪人である、〔主語には〕良心のかけらもない

-----

Tycoon! this comes from the japanese word 大君! Head honcho, this comes from the japanese word 班長! Rickshaw, this comes from the japanese word 人力車

-----

friendから"r"を取ると↓

fiend (フィーンド)

悪霊、鬼、悪魔◆可算

= archfiend

悪魔のように〕残忍な人、意地の悪い人

〈話〉〔麻薬などの〕常習者

〈話〉〔仕事趣味などの〕凝り屋、マニア

〈話〉〔ある技能や分野の〕熟練者、達人

-----

flustered

〔頭の混乱・過度の緊張などで〕動揺して、うろたえて

flounder

〔体勢を戻そうと〕もがく、じたばたする

〔混乱して〕もがき苦しむ、四苦八苦する、何とか進む◆【注意】スペリングが似ているfounderは「沈没する、破綻する、完全に駄目になる」の意味だが、flounderは「苦労しながらも活動している」を意味する。

・The ship floundered in the storm. : 船は嵐の中をもがき進んだ。

-----

scrawl 走り書き

scribble 子供が描くようなぐちゃぐちゃの落書き

ただし大人の書いた文字について言う場合は両者ともに「走り書き」の意味で使える

He scrawled his signature. (= His signature looked like a squiggle.)

彼はサインを走り書きした(=彼のサインはグニャグニャだった)


I scribbled my name at the bottom of the page.(= I wrote my name very quickly, so it looked unreadable.)

私はページの下部に自分名前を走り書きした(=名前を素早く書いたので、判読不能ものになった)

https://ell.stackexchange.com/questions/122138/how-do-scrawl-and-scribble-differ

-----

shtick 十八番芸、特技

her whole shtick is being ignored by everyone

彼女の得意技はみんなから無視されること

Anonymous's whole shtick is freedom of information

匿名の最大の売りは、情報自由である

I tried writing more serious literary novels, but I realized that cheesy thrillers are just my shtick.

もっとシリアス文学小説を書こうとしたが、安っぽいスリラー小説こそが私の得意技だと気づいた。

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-12-08

anond:20231208215354

変わったデバイス使って変わったことをする芸風でAIについてはあまり書いてないな。

せいぜいこれに応用してるくらいか

"Text to Haptics: Method and Case Studies of Designing Tactile Graphics for Inclusive Tactile Picture Books by Digital Fabrication and Generative AI", ACM SIGGRAPH 2023 Labs

日本人から選ぶなら海外の一流どころで活躍してる若い人か大御所で良いのでは?

2023-11-21

anond:20231121103645

in this case

「そうですね、あまり緊張はなかったですね」

=「(今日は緊張したかどうかですか。うーん)そうですねえ、あまり緊張はなかったですね」

anond:20231121103329

In this case

「そうですよね」

=「帰りが遅いと少し寝不足になりますよね」

2023-11-17

anond:20231117003630

caseがすでに20個くらいあるんだわ

claa Unko:
  function hoge(value):
    switch(value.a, value.b)
    case 1, ‘a’
      return methodA(value)
    case 1, ‘b’
      return methodB(value)
    case 2, ‘a’
      return methodC(value)
    case 2, ‘b’
      return methodD(value)
....................

  private

  function methodA(value):
....................

  function methodB(value):
....................

  function methodC(value):
....................

  function methodD(value):
....................

そうじゃなくて

value.hoge()

にしてほしかったのさ

anond:20231117003630

case選択肢が増えてきたらヤバくなる。

こういうとき選択肢ごとの処理をそれぞれ別のクラスでやってあげれば、プログラムの見通しが良くなる。

StateパターンとかStrategyパターンでやれ、ってやつ。

あーそうかオブジェクト指向継承差分プログラミングするものだと理解してるから、異常なswitch文ができるのか

多態性って概念がないのね

function hoge(value):
  switch(value.a, value.b)
  case 1, ‘a’
    return methodA(value)
  case 1, ‘b’
    return methodB(value)
  case 2, ‘c’
    return methodC(value)
………

これでキャリア15年超えってマジかよ

死のうかな

2023-11-13

anond:20231113001635

検討していないんじゃなくて、そんな事実はないという主張

it is simply not the case that the SAT is merely a proxy for family income and parental education.

親の財力が高いことによる高度な教育へのアクセス遺伝的要因 などなどについては検討していない

ペーパーテストだけで選抜した子の人生~のヤツ

追記 2023/11/14

ツッコミくれた増田やいろいろ教えてくれた増田本当にありがとう

こういう知らないこと知れるってのはマジで脳汁でるな!!!特に「逆だと思う」って教えてくれた増田!指摘読んでてうっひょーーーなるほど!指摘嬉しい!!ってなったぞ!本当にありがとう!!!

オラはXとかインスタ?とかやってないから、ネット流行りははてなとトゥゲッタースラドしか知れない程度の情弱ボッチだけど、書いたことに対してみんなにいろいろツッコミ受けて、新しいこと知れるのやっぱ楽しいな!って久々に実感した!改めてありがとう


-----


オッス。オラ英語成績が2だった上に底辺工業高校卒なので、多分誤読してるかも。みんなの知識をオラに分けてくれ!


ペーパーテストだけで選抜した子」の人生を35年間追跡調査すると、ペーパーテストで劣った子と比較してクリエティティ芸術の分野でも上回っていたという身も蓋も無い話が書いてあった😁 さすがピンカー

多分元論文はこれです:https://my.vanderbilt.edu/smpy/files/2013/02/DoingPsychScience2006.pdf

引用元: https://twitter.com/supremeeigo/status/1723484644635783387


リンクされている論文は「Study of Mathematically Precocious Youth After 35 Years」ってやつで、所謂「SMPY (参考:https://en.wikipedia.org/wiki/Study_of_Mathematically_Precocious_Youth)」 の進路選択における調査の話。SAT-Iの推論テスト高得点をたたき出した13歳の才能ある子供にたいしてどのような教育提供するべきかとかそんなはなしっぽい。 アブストラクトを読む限り、これらの子供にTWA(Theory of work adjustment )を使うことで適切な評価教育提供ができるのでは?また、女子に関しては理系に行かなくてもほかのジャンルでも理系進学したのと同等ぐらいのキャリアを築いてましたよ、みたいな話らしい。


SES(socioeconomic status、つまり実家の太さ)とSATスコア相関係数は0.22でかなり弱い

実家の太さはテストの点数には多少関係あるものの、それ以外の要因(適正など)の方が大きい

https://files.eric.ed.gov/fulltext/ED562860.pdf

引用元: https://twitter.com/supremeeigo/status/1723497832861306930

読んだ人はわかると思うのだけど、ここのリンク先は先の論文とは異なる。

こっちは「SAT」を作っている「CollegeBoard」の調査レポート

アブストラクトから若干キレ気味なことからわかる通り、これはSATスコアSES(socioeconomic status - 社会経済状況:https://ja.wikipedia.org/wiki/%E7%A4%BE%E4%BC%9A%E7%B5%8C%E6%B8%88%E7%8A%B6%E6%B3%81) にめっちゃ依存しててアテにならん、という批判に対するレポートで、まあポジショントークっつーか、結論ありきでデータをかき集めた感じのやつかなって感じ。ただ、俺は学がないのでレポート内の個々のデータ検討はできない。


ただ、元ツイ主の言う「SES(socioeconomic status、つまり実家の太さ)とSATスコア相関係数は0.22でかなり弱い」が書かれている箇所は、恣意的引用というか、ネットユーザーなんて英語読まねーだろバーカって感じで雑にやっていってる感じがする。

元ツイ主の引用個所は以下の2か所

1)「サンプルとする集団によって、SESSATスコアの相関が0.21~0.42とかなりブレがあるんで、データを読むとき考慮しようね」

2)「親の財力と教育SAT得点と強い相関があるなんてことはないよ!」


(1) に関しては特定大学に在籍しているグループSAT受験者全体とかでサンプルする集団属性で相関にブレがあるっつー話。ツイ主の「相関係数は0.22で」ってのは特定大学に在籍しているグループでは相関係数は0.22だったという記述から読み取ったと思われる。でもレポート上ではSAT受験者全体では 0.42 ってなってるんで、そこは検討必要よねって記述なのでここから0.22です!って読み取るのはなんだかなあというって感じ。レポートでこれらをどう検討たか時間が無くて読めなかったのだけど、結論としては「グループ性質や偏りを考慮した相関係数は0.47であるが、SES統計的制御を行うと推定される相関係数は0.44」って結論付けてる。なので制御って何なん・・・?ここらへんが高等教育を受けてないオラの限界って気がするな。


(2)については、そのように書いてあるのだけど、ツイ主の引用してる「In conclusion,~」の前の部分に結構大事なことが書いてある。

Although our work does not address the mechanisms underlying the SESSAT relationship, which may include issues such as access to higher-quality education, access to out-of-school educational experiences, parental role models and support for academic achievement, and genetic factors, it is simply not the case that the SAT is merely a proxy for family income and parental education.

親の財力が高いことによる高度な教育へのアクセス遺伝的要因 などなどについては検討していない。

これ、全部読んでないから何とも言えないけど、要はSATコーチングとかで何とかなるんじゃね?っていう指摘に対する反論として書かれたものじゃないんかな。

USのWikipediaだと、実際にそのような指摘に対して CollegeBoard が反論したみたいな記述もあるし、CollegeBoard自身SAT勉強資料無料配布して低所得者層でも不公平にならないように見たいな取り組みをしている。(え、てことは実際にコーチングってある程度有効って暗に認めてるんじゃ。。。)

https://en.wikipedia.org/wiki/SAT


って感じのところまでを2時間程度で調べた感じです。マジで時間ないのでここまでで。

底辺高卒脳みそで考える限り、元ツイ主は誤読してるか、結論ありきで恣意的引用してるんじゃね?って思うんですがどうでしょうか?

2023-10-13

ナゾジー金玉が腹部に入ったって記事がでてきてあっこの前見た増田!?

と思ったら日記は消えていた

https://b.hatena.ne.jp/entry/s/anond.hatelabo.jp/20231012204147

https://nazology.net/archives/136323

今回の症例2023年9月26日医学誌『BMJ Case Reports』に掲載されています

とのことなのでインテリ増田だったのかもしれない

2023-10-08

anond:20231008192929

EV乗ったこと無いんだろうなぁ。

TeslaとかBYDのとか、エンジン車より制御簡単なはずなのに加速も減速も粗いし、回生ブレーキ協調しないんだぞ。だからワンペダルとか馬鹿なことやってる。

もちろん、自動運転()の加減速制御も下手。

ちなみに、欧州車や日本車ならエンジン車でもっと高いレベルを当たり前にやってる。

制御無駄に増えるはずのエンジン車でより高いレベルを実現してるんだからEV制御で負けるはず無いじゃん。

ほんと、CASEとか言う前にまともな最新モデルの車買って乗れよ。

2023-10-06

anond:20231006153138

This case is a suit for rescission of a trial decision on a request for invalidation of trademark registration. The issues are (1)

(1) Whether the registered trademark (hereinafter referred to as "the trademark") (1) Whether or not the registered trademark (hereinafter referred to as the "Trademark") in the following paragraph (1) falls under the trademark

(2) Whether or not the trademark falls under Article 3(1)(iii) of the Trademark Law, (3) Whether or not the trademark falls under

(iii) Whether or not the trademark falls under Article 4(1)(xvi) of the Trademark Law.

1 Registered trademark

The defendant is the owner of the following registered trademark (the "Trademark") (A-1-1 and A-2,

(A1-1 and A2; hereinafter referred to as the "Registered Trademarks"). (1) Registration number

(1) Registration number Trademark registration No. 6399042

(2) Date of registration May 24, 2021 (hereinafter referred to as the "Date of Decision")

(3) Date of registration: June 7, 2021

(4) Trademark consists of the words "curly bangs curler" (standard characters)

(5) Classification of goods and services and designated goods

Class 26 "Headgear, hair curlers (excluding electric ones) (hereinafter referred to as "hair curlers")

15, Class 26 "Hair curlers (excluding electric ones)" (hereinafter the "goods in question") (Hereinafter, the "hair curlers (excluding electric ones)" in Class 26 of this Article are referred to as "the goods in question").

(2) Background of the proceedings before the Japan Patent Office

On June 2, 2022, the plaintiff filed a request for a trial for invalidation of the trademark registration for the goods in question.

The Japan Patent Office examined the case as invalidation case No. 2022-890041 (not disputed).

The Patent Office examined the case as Case No. 2022-890041, which is invalid (no dispute). The Patent Office examined the case as invalidation case No. 2022-890041 (no dispute).

On February 14, 2023, the JPO issued a decision that "the request for a trial in this case does not stand. (hereafter, "the trial decision").

(hereinafter referred to as "the trial decision"), and a transcript of the trial decision was filed. A certified copy of the decision was served upon the plaintiff on February 27, 2023 (summary of arguments).

The transcript of the trial decision was served upon the plaintiff on March 27, 2023 (summary of argument).

On March 27, 2023, the plaintiff filed this lawsuit seeking revocation of the trial decision.

3 Summary of reasons for the trial decision

25 (1) Applicability to Article 3(1)(iii) of the Trademark Law

(a) The trademark in this case represents the words "curly bangs curler" in standard characters.

  • 3 - 3

The letters of the trademark are of the same size and typeface and are arranged in a horizontal line without any space between the letters.

The letters of the trademark should be "hair curler" and the letters of the trademark should be "hair curler".

The component characters of the trademark are "Spinning on a spur of the moment. The component characters of the trademark are "Spinning with a spritz.

The component characters of the trademark are "the state of spinning with a spur of the moment. (A8), which is an onomatopoeic word indicating "a bundle of hair on the forehead of a man or woman" (A9), and "a bundle of hair on the forehead of a man or woman" (A10).

(A8); the character for "bangs" (A11), which means "a bundle of hair on the forehead of a man or woman"; the character for "bangs" (A11), which means "a cylindrical piece of hair that is

The character for "curler" (A12), which means "a cylindrical tool for curling hair around the head", is used in the same way as the character for "curler" (A13).

The character for "curler" (A12), which means "a cylindrical tool for curling hair," is combined with the characters for "bangs" (A11) and "curler" (A12), which means "a cylindrical tool for curling hair.

The constituent characters as a whole are insufficient to specify the meaning of the word or sentence, and therefore, the meaning of each character is not clear.

Therefore, even though the letters may evoke vague meanings corresponding to the meanings of the letters, the specific meanings are not immediately recognizable or understandable.

Therefore, even if the words are associated with vague meanings corresponding to the meanings of the letters, they are not immediately recognizable or understandable as a quality indication of the goods.

The words lack specificity as an indication of the quality of the product.

2023-10-03

Tesla乗りホントだせぇ

Tesla乗り、一時期は温暖化対策だとかSDGsとかCASEだとかそれっぽいこと唱えて得意げだったのに、

そもそもTesla工場黒人差別あったり、イーロンマスクはZアノン親ロシアウクライナの当て擦り投稿したり、XはどんどんクソみたいなSPAMアカウントだらけのスラムにしたりと、悪いことしかしてないの放置かよ。おまえら意識の高さはどこ行ったんだよ。口だけか?

結局は、ただの自称投資家()ワナビーがコバンザメ狙ってるだけなのかよ。

おい、はてなーリベラル自称EV派は何やってるんだよ。

おまえら、未だにXで増税メガネとかくだ巻いてるだけじゃねーか。

2023-09-03

自作PCBTOより高いのかファクトチェック

自作PCオワコンwwwwメーカーPCBTOコスパ良いのが常識wwwwみたいなブクマがあったので、そろそろPC環境更新しようかと思ってた頃合いだし調べてみた。

予算は前回組んだときと同じ30万程度で現行8070K+1080を131700K+4070程度が目標

なお自分認識は、

といったもの

自作PC時の構成と概算

価格comの最安値ベースなので実費は+1~2万はある想定。丁度予算通り。

CPU:131700K \62,980

Cooler:H100x RGB ELITE CW-9060065-WW2 ¥14,066

MBPRIME Z790-P-CSM ¥28,880

メモリ:CMK64GX4M2E3200C16 [DDR4 PC4-25600 32GB 2枚組] ¥18,969

SSD:980 PRO MZ-V8P1T0B/IT ¥10,980

GPU:DUAL-RTX4070-O12G [PCIExp 12GB] ¥92,900

Case:Define 7 Solid FD-C-DEF7A-01 [ブラック] ¥24,800

Sound:Sound BlasterX AE-5 Plus SBX-AE5P-BK ¥16,800

PSUFOCUS-GM-650 ¥13,302

合計¥283,677

光学ドライブ、その他ストレージOSは流用。ケースも流用しても良いが一応買い替え想定。

サウンドカードはなくてもいいが気分の問題で。

BTO時の構成と概算

BTOなんて気にしたことすらなかったので標準的ブランドわからん…なので取り敢えず「BTO パソコン おすすめ」でぐぐって出てきたサイトお勧め1位にあったマウスコンピュータで試算。

ベースモデル:G-Tune FZ-I7G70 #FZI7G70B7ACCW101DEC

カスタマイズ後¥ 374,000

13700K「F」、ブランド不明32GBx2メモリブランド不明4070ブランド不明1TB SSDブランド不明750W電源(80PLUS GOLD)、その他オプション無し。

電源は標準がBROZEで、+4,400でGOLDに変更可能なので選んでみたがメーカー不明ってのが一番嫌な感じ。

当然OS(Win11 Home)含む構成なので公平のためDSP版価格15,000円を差し引いても6万ぐらいお高い。この差額分が組み上げとOSインストール梱包と発送費用と考えるとまあそんなもんやろなではある。

今時、自作PC組もうとする奴なんて組み上げとかセットアップ自体趣味範疇なのでこの差額分をどう思うか?がBTOにするか自作にするかの分水嶺なのだと思う。

自分的には、やはり使っているパーツのブランド不明なのがやはり面白く無いなと。メーカーとして一定品質を満たすものメーカー責任で選定しているのは理解するが同じぐらいの費用がかかるなら良さげなのを使っていて欲しいみたいなのがある(ただしマウスだと3年保証を\3,300~追加できるので、メモリストレージと電源以外は基本1年保証しかない自作時よりはお得(?)という考え方はあると思う)。

あと自作PC好きは得てして余ったパーツでサブPCを組みたがる習性がある(要出典)。パーツ単位だとメモリ永久保証、電源は5~10保証なのでサブPCでも安心して流用できるのはメリットかなと。もちろんこういうのをメリットと思わないなら無意味なのでBTOが良いのだと思う。

もうコード書きたくないからCodellamaを頑張って動かそうとしてたんだけど

色々デペンデンシやらメモリ不足やらを何とかしてやっとエラーは解消したぞと思ってレスポンスprintしてもWarningメッセージしか出ない。

と思ったら動作確認のためにプロンプトに「”This is test case.”」を与えていてその続きの補完がきちんと返ってきてたわ。

久々にワロタ

ともあれこれでノーコード生活や。

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