「true」を含む日記 RSS

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

2024-04-26

これ何の意味があるのか教えてほしい

いろんなアプリケーションメンテ(バグ取りとか細かい機能追加とか)を何度か経験してきた。

主にテキストファイルとかCSVファイルとかExcelファイルとかを入出力するものばかりだったんだが、その大半がファイル拡張子グローバル変数化していた。

こんな感じ

const TxtFileExt = ".txt";
const CsvFileExt = ".csv";
const ExelFileExt = ".xlsx";

なので、読み書きするファイル名の指定時は、

outFileName = 〇〇 + ×× + "ABCDEFG" + TxtFileExt;

みたいな指定をしなきゃならない。

これ何の意味があるのかよく分からんのだけど、誰かわかる?

あと、プログラム言語標準的メソッドのあらゆる引数も全部変数定義されてて、そのまま渡すのは禁止、みたいな規約になってる。

たとえば引数が三種類(truefalse(未指定時のデフォルト値)、任意の数値(ただし当該プログラムでは0、10、25以外指定不可))しかないやつはこんな感じ。

const 〇〇ParamTrue = true;
const 〇〇ParamFalse = false;
const 〇〇ParamIntMin = 0;
const 〇〇ParamIntMid = 10;
const 〇〇ParamIntMax = 25;

文字コードなんかもこんな感じで定義されてる。

const charCodeSJIS = "Shift_JIS";
const charCodeUtf8 = "UTF-8";

以前関わった改修内容に「××の処理は開始時と終了時にそれぞれUTF-8(BOMなし)形式ログを出力する」みたいなのがあって、普通に文字コード指定する部分に「UTF-8」で直に書いたら、規約に従ってないからとコードレビューで指摘されて差し戻されたんだけど、そもそもこういう規約って何の意味があるの?

2024-04-24

anond:20240424115902

初カキコ…ども… 俺みたいな中3でグロ見てる腐れ野郎、 他に、いますかっていねーか、はは

今日クラスの会話 あの流行りの曲かっこいい とか あの 服ほしい とか ま、それが普通ですわな

かたや俺は電子砂漠死体を見て、呟くんすわ

it'a true wolrd.狂ってる?それ、誉め 言葉ね。

好きな音楽 eminem

尊敬する人間 アドルフ・ヒトラー虐殺行為NO

なんつってる間に12時っすよ(笑) あ~あ、義務教育の辛いとこね、これ

2024-04-19

anond:20240419101752

あー、そっちか…

1か0か、truefalseか、という話かと思った

truefalseかは、日本語では真偽だしなあ…

難しいな、にほんご…

2024-04-06

TOP SECRET

                                  EYES ONLY   COPY ONE OF ONE

                                  SPECIAL CLASSIFIED EXECUTIVE

                                      ORDER #029774

                                        23RD JULY, 1988




PROJECT METAL BLACK:

 ■HIGHEST LEVEL OF CONFIDENTIALITY REQUIRED

 ■PROJECT DETAILS MUST NOT BE DISCLOSED TO THE PUBLIC UNDER ANY CIRCUMSTANCES

COVER STORY:

 ■CREATE A FAKE NARRATIVE TO CONCEAL THE TRUE NATURE OF PROJECT METAL BLACK

 ■THE FAKE PROJECT WILL BE PUBLICLY REFERRED TO AS "PROJECT GUN FRONTIER 2"

 ■ALL PERSONNEL INVOLVED MUST ADHERE TO THE COVER STORY WITHOUT EXCEPTION

COMMUNICATION PROTOCOLS:

 ■ALL CORRESPONDENCE RELATED TO PROJECT METAL BLACK MUST BE ENCRYPTED USING QUANTUM CRYPTOGRAPHY

 ■ANY BREACH OF CONFIDENTIALITY WILL RESULT IN IMMEDIATE TERMINATION AND CRIMINAL PROSECUTION

RESOURCE ALLOCATION:

 ■PROJECT METAL BLACK IS GRANTED UNLIMITED ACCESS TO ALL NECESSARY RESOURCES

 ■FUNDING WILL BE PROVIDED THROUGH CLASSIFIED CHANNELS TO AVOID PUBLIC SCRUTINY




                                   THIS DOCUMENT IS CLASSIFIED AS TOP SECRET

                               UNAUTHORIZED DISCLOSURE IS PUNISHABLE BY DEATH UNDER

                                    FEDERAL LAW 18 U.S.C. § 793, 794

2024-04-05

発達障害Pythonに向いてない

Pythonに型がないせいで気付きにくいバグがある。

発達障害みたいなバグを量産してしまってチームからの目が痛い。

正直これはPythonのせいだ。

例えば

if is_checked:

この構文、”False"という文字列ではTrueになってしまう。想定外オブジェクトが入ってしまっても普通にTrueになってしまう。想定外のNoneが来てしまうとFalseになって開発中はなかなか気付かないなんてこともある。基本的にifの後は if hoge == True: と書くべきだと思ってる。linterで怒られることもあるが、それよりもバグに気付けない方が怖い。

if "1" == 1:

これはfalseだけど、これが変数で来てたりすると全然気付かない。

あと、文字列が都合よくリスト扱いになることがある。

for i in user_list:

こんな構文でuser_listにはリストが来ることを期待していたのに文字列を入れてしまうことがある。

そうなるともうぐちゃぐちゃ。

user_list += user_id

これはuser_idが ["hogehoge"]ならうまくいって"hogehoge"なら["h", "o", "g", "e", ...]が追加されることになる。

これも気付きにくい。

いずれも開発段階では気付かないことが多い。テスト段階になったり、テストないような突貫工事体制だとリリース直前の動作確認で気付いたりする。

リストを入れるつもりだったのに文字列を入れてしまったりbooleanを入れるつもりだったのに文字列が入れられるからこんなことになる。性的型付けしか受け付けたくない。

Pythonは中規模以上の開発で使うべきじゃない。発達障害Pythonは向いてない。

2024-03-26

anond:20240326211245

この曲はEVO2022で参戦PVが発表されたとき外人雄叫びあげる動画で聞いて耳に残ってるな。

まあ俺は格ゲー厨房の頃にちょろっとやってたスト2ターボ鉄拳2、闘神伝2、大学の頃にやってた萃夢想非想天則くらいで止まってるからGGは触ってないが、いいキャラだよな。

俺がここ最近で一番評価してるゲーム曲は崩壊3rd英傑編の締め曲にあたる「TruE」だな。

唸るベースラインとエモさが調和した無敵な女性ボーカル曲だけど絶対知らんだろうな。

公式ショートアニメ挿入歌で、シナリオクライマックスではあるが仮に遊ぶ予定がある人でも大したネタバレにならんから見ていい。

隠れた名曲はないっていうけども、このゲームにも中国の超売れっ子シンガー周深が歌うRubiaっていう向こうでは受賞とかしてる曲もあるけど、知らんだろ?

この人は男性でありながら女声まで含む広大な音域を切り替えて自然で澄んだ歌声を出せる異才として活躍して、20代のうちに中国富豪リスト42位まで行った傑物なんだけど、知らんだろ?

いやポケモン25周年の記念曲を歌ってたか日本アニメゲーム文化人でも名前知ってる人はそこそこいるかもしれんが。

隠れてるかどうかってのは結局、どこの文化圏自分が"隠れて"いるか、という問題しかないと思うんだよ。

あらゆる文化圏に属せる人はいないし。

2024-03-04

anond:20240302043100

増田自分言及している通り、

そもそも本格的なデータ加工や解析、統計だったらAccessなりOracle DBなりを使うべきであって、エクセルVBAはしょせんエクセルVBAなのよ。

エクセルVBA上記DBソフトウェアの下位だって言ってるんじゃなくて、適材適所だってことね。

気軽さ・カジュアルさがエクセルVBAの魅力と長所なのよ。

からエクセルVBA大切なことは、見読性だと思うのよね。

処理速度にこだわって配列上ですべての処理を終えても良いし、確かにそのほうが早いしかっこいいんだけど、

処理がコケときにどこで何が起きてるかわかりづらくなるくらいだったら、

ScreenUpdatingやシートの.Visibleをtrueにして目で追える、計算用シートの有用性はあると思うな。

2024-02-04

Guo Wengui Wolf son ambition exposed to open a farm wantonly amassing wealth

Since fleeing to the United States in 2014, Guo Wengui has founded a number of projects in the United States, such as GTV Media Group, GTV private equity, farm loan project, G Club Operations Co., LTD., and Himalaya Exchange. Around 2017, he started the so-called "Revelations revolution" and in 2020 launched a movement called "New China Federation." However, Guo Wengui's "disclosure revolution" soon exposed its false nature. He frequently carried out so-called "live Revelations" on the Internet, fabricating various political and economic lies and fabricating facts to discredit the Chinese government. At the beginning, due to his special image of "exiled rich" and "Red fugitive", he quickly gathered some popularity and followers, but as time went by, Guo Wengui's commitment and image were gradually exposed, and his supporters began to leave him. See the essence of the Revelations will turn to the farm, Guo Wengui's fraud is not only for funds and other institutions, its followers have also become a sheep that is only continuously harvested wool. The little ants who trusted him so much became victims of fraudulent investment scams. It is hoped that more people will recognize the true face of Guo Wengui, join the team of "smashing Guo", expose his fraud, recover losses for themselves and others, and maintain an honest and trustworthy social environment.

The Kwok scam only pits the ants

Guo Wengui touted things to the sky all day long, from farms to Xi Yuan, he declared, "Xi Yuan's encryption capabilities and future payments, as well as the future exchange with the US dollar, will create history, is the only stablecoin, floating, modern crypto financial platform." The ant help to fool the head, but after dozens of broken promises, Guo Wengui played a jump god, Tiandry ground branch, Yin and Yang five elements, Qimen Dun Jiqi battle, over and over again to play with the ant help, and Guo Wengui no sense of violation. The old deception hypohypotically called to make comrade-in-arms rich, claimed to be for the benefit of comrade-in-arms, in fact, it is a wave of investment and anal, tried and true, and now again. After the explosion of the Xicin may not be listed, according to normal people's thinking and reaction, must be very annoyed, sad, but Guo Wengui is unusual, talking and laughing, understatement, no stick, but to the camera hand holding pepper sesame chicken to eat with relish, full mouth flow oil! . Why? Because the fraud is successful, as for when the Joy coin will be listed, when will it be listed? Guo Wengui is a face of ruffian and rogue, hands a spread, claiming that they do not know. Guo Wengui hypocrisy a poke is broken, Guo's scam is just a variation of the method of trapping ants help it.

2024-02-01

複雑な話もtruefalseしか考えられないboolean型発言が多くて笑える

メモリなす

2024-01-25

anond:20240125155939

いま聞きたいことじゃないからはぶいてるけど、この記述の前に.Visible = Trueをつけてるよ

2024-01-24

anond:20240124110937

ライフ イズ ストレンジ」のイメージが強くても、知的財産権を所有しているのはDONTNODではなくスクウェア・エニックスだ。加えて最近スクウェア・エニックスは、新作『Life is Strange: True Colors』の開発は『ライフ イズ ストレンジ ビフォア ザ ストーム』を手掛けたDeck Nine担当すると発表した。

https://jp.ign.com/life-is-strange-true-colors/51791/news/dontnodceoip

2024-01-22

ブコメダブスタをチェックするためのスクリプト適当Pythonで書いた

エラーハンドリングは省略。標準ライブラリのみで動く。

import json
import urllib.request


# True にするとユーザー名を隠す
hide_user = False
# 以下を書き換える。sys.argv 使ってもいいんだけど
url1 = "https://www.cygames.co.jp/news/id-23172/"
url2 = "https://mtg60.com/archives/palworlddoujinsi.html"


def get_bookmarks(url: str):
    req = urllib.request.Request(f"https://b.hatena.ne.jp/entry/json/{url}")
    with urllib.request.urlopen(req) as res:
        dict = json.loads(res.read())

    user_comments = {}

    for bookmark in dict["bookmarks"]:
        if bookmark["comment"]:
            user_comments[bookmark["user"]] = bookmark["comment"]

    return user_comments


b1 = get_bookmarks(url1)
b2 = get_bookmarks(url2)

common = set(b1.keys()).intersection(b2.keys())

print(f"[1] {url1}")
print(f"[2] {url2}")
print()

for user in sorted(common):
    if hide_user:
        print(user[0] + "*" * (len(user) - 1))
    else:
        print(user)
    print(f"[1] {b1[user]}")
    print(f"[2] {b2[user]}")
    print()

anond:20240113084143

putting others down is what people who cant bring themselves up do 

他人こき下ろすのは自分を高めることができない人がやることだ (bring someone up = uplift oneself = improve one's situation)

-----

improveimprove onの違い

他動詞場合は、目的語になるものを改良する。

ですから

He improved the design of the car.

訳:彼は車のデザインを一層良くした。(出展ジーニアス

この場合、「その車のデザイン」を以前のものからのものへ「改良」した、という意味です。

自動詞場合は、on 以下のものを元にして(元にして、が on意味です)

「よりよいものを作る(これが自動詞improve意味)」という意味です。

ですから

He improved on the design.

訳:彼は設計に改良を加えた。(出展ジーニアス

この場合、the design(その設計)を元にして、よりよい「設計」を作った、ということなのです。

https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1322371783

↑この解説は以下のネイティブ解説とも符合する

https://ell.stackexchange.com/questions/52305/improve-vs-improve-on-upon

----

Let us not wallow in the valley of despair, 「絶望の谷で苦しみにふけるのはやめましょう」

let us not ~ は let’s not ~ と同じ

wallow は「転げまわる、もがく」という意味ですが、ここでは「(快楽などに)ふける、浸る」という意味で使われています

動物などが「泥浴びする」という意味から来ています

例:wallow in luxury「ぜいたくにふける」、wallow in one’s sadness「悲しみにふける」

https://www.eigonou.net/backnumber/05278/

e.g.

Matt has stepped away from public life マットはもう人前に出ることを止めたんだから

Let us hold not too fast to his name 彼の名前にあまりしがみつかないようにしよう

----

immersion only losers couldn't tell you the difference between と思う and と思っている to save their lives

マージョンだけやってる負け犬たちは「と思う」と「と思っている」の区別をどうやっても教えられない

to save one's life

どうしても◆【用法否定文の強調

・I can't wake up to save my life. : どうしても起きられない。

----

i am at the bottom of the mountain 先はまだまだ長い (= i've got a long way to go)

-----

im very active w keeping my pronouns available 私は積極的自分性別代名詞を公開してる (consistently and proactively making known or sharing their preferred pronouns)

bc ik it can feel awkward to ask sometimes だってわざわざ尋ねるのは気まずいじゃん

-----

You don't wanna get on my bad side.... 俺の機嫌を損ねないほうがいいぜ・・・

buddy....

-----

Go finger your prostate to chill out or smth 前立腺でも弄って落ち着け

Look I'm on a stim crash and on edge dw bout it 精神刺激薬の離脱症状が出ててしか寸止め中だから大丈夫

be on a stimulant crash = ADHDやアデロールなどの薬の離脱症状 (= I'm having withdrawals from drugs.)

be on edge 寸止め

-----

back on one's feet

《be ~》〔病気などが回復して〕再び元気になる

Your father will be back on his feet in no time. : あなたのお父様はすぐに回復されますよ。

《be ~》〔状況などが〕良くなる、立ち直る

-----

curry favor with

(人)の機嫌を取る、(人)に取り入る、(人)にゴマをする、(人)を褒めそやす、(人)にお世辞を言う、(人)にこびへつらう

-----

・That's a lot [bunch] of hooey, and you know it! : 実にばかげた話です。自分でも分かってるだろ。(=ホラ話= bullshit

-----

it's awkward but it gets the point across

自分の書く文章は)ぎこちないけど意味は通じる (awkward = clunky = clumsy = scuffed)

why do you think it's awkward?

なんでぎこちないと思うの?

because I haven't output enough to think of a natural way to output my ideas. Instead I force out something that gets the idea across even if it turns out awkward

自然アウトプットすることができるほどちゃんアウトプットしてないからね

からこちなくても伝わる文章をひねり出してる感じ

because 99% of my Japanese practice is from writing assignments for class (haven't hung out with many Japanese people), so even if I try to speak casually, formal stuff appears

日本語練習のうち99パーセントは授業で出される作文の宿題から

カジュアルに話そうとしてもフォーマル言葉遣いが出てしまうんだ

----

this server is a lot more hateful than I remember it being

このサーバー、私が知っている頃と比べてすごく邪険な雰囲気になってる

----

I can understand being insecure over one's language skills but I think you should own that you're insecure instead of trying to act like you're above others

Address what's causing you to feel insecure and work on that

日本語力に不安を持つのはわかるけど、他人マウントを取るんじゃなくてその不安さを認めるべきだよ

不安さを生み出している原因をなくせるよう努力すべき

own 〔罪などを〕自分がやったと認める

----

Speaking as someone who has never interacted with you before and didn't even recognise you, you came off as a massive dickhead in the way you talked, and that's gonna rub people the wrong way. Especially if there's annoyance built before that. But at the end of the day man, it doesn't matter much

あなたと喋ったこともないしだれだか知らないけど、あなたの喋り方はすごい嫌なやつに聞こえるし、それだと周りを苛つかせるだけだよ

特にすでにイライラが高まってる状況ならなおさら

I mean you just rubbed some people the wrong way but they didn't express that and decided to unload it all on you at the same time x10 when they saw the opportunity

みんなあんたに苛ついてたけど、黙ってたんだよ

で、ちょうどいいタイミングが来たから一斉にその不満を10倍にして吐き出したってわけ

it was really irresponsible and wrong of me

yeah I know that was fucked up of me

that was dumb of me

それはすごい無責任だし間違った行いだった

ほんと自分メチャクチャなことをしたと思う

自分馬鹿だった

-----

ooh buddy not a good look

悪口を言いまくってる人を見て)おいおいお前それはよくねえぜ

it's basically just a way of saying "you did something bad."

https://hinative.com/questions/21934776

-----

I think most of it was just pent up aggression towards him over the weeks that everyone found an opportunity to unload at that moment

今回の件は、彼に対するイラつきがここ数週間の間に溜まっていて、あの瞬間にみんながそれを吐き出すチャンスを見つけたっていうのが大きいんじゃないか

pent-up discontent 鬱積した不満

-----

Idk why you're making it seem like i had a fit over him

なんで「私が彼に対して腹を立てていた」みたいな風な言い方をしてるのかわからないんだけど

have a fit

腹を立てる、カッとなる、カンカンに怒る、ひどく興奮する、非常に興奮する、だだをこねる、ショックを受ける、発作を起こす、卒倒する、おたおたする◆【同】throw a fit

・I was having [throwing] a huge fit. : 私は無性に腹を立てていた。

----

You just jumped on the Jack hate train for no reason

あんたなぜかジャックを嫌ってる奴らと同調してたじゃん

I don't understand the audacity to come here every single day while you disrespect me to your friends

友達と一緒に私のことを侮辱してるくせに毎日ここに来れる厚かましさは理解できないわ

and you also hop on the gender thing

しかあいつらの性別からかうノリにも同調してたよな

i use she

but yeah

that was wrong of me too

they had that effect on me and I took that as a way out of responsibility

俺はちゃんsheを使ったよ

でもまああれも俺が間違いだった

あいつらに影響されていたし、その影響を言い訳にして(性別ネタに乗っかっていたのは事実だった)

-----

she didn't even think to give me the benefit of the doubt or anything and just straight up pilied on to me when i had no way to defend myself of the misinfo against me

彼女は(話が真実かどうか確かめる)猶予を与えることもせずに、いきなり私を非難してきた

pile on to someone: (of a group of people) to attack or criticize someone

大勢非難すること

-----

what are you prattling about

何をぺちゃくちゃいってんの

prattle

幼児が〕片言でしゃべる、〔大人が〕ベラベラとつまらないおしゃべりをする

・He was prattling on for hours about boring subjects. : 彼は退屈な話題について、何時間もしゃべり続けた。

-----

And oh yea you can go on a tirade in that server talking about how i need mental health help, suck at jp, and feel threatened by the very presence of John

その鯖で私は精神科にかかるべきとかジョンに劣等感を抱いてるとか、延々と話してればいいじゃん

tirade

〔長く手厳しい〕攻撃非難演説◆可算

長広舌、長い演説

-----

i played it when it came out and had the worst experience of my life

そのゲーム発売時にプレイしたけど人生最悪の体験だったわ

if you pick a μ's character you're in for the worst character interactions you have ever seen

μ'sのキャラを選んだら今まで経験した中で最悪の会話が待ってるよ

in for 《be ~》〔困難などに〕直面しそうだ、〔事態などを〕きっと経験するだろう

-----

this pc has served me well for 8+ years

このPCは8年以上使ってるけどちゃんと動いてるよ

im pushing 5 years on my lenovo legion

私のレノボはそろそろ5年に近づいてる

i built that pc with my dad and god damnit do I love it

will upgrade eventually

あのPCは父と一緒に組んだんだけどめちゃくちゃ大好きだ

そのうちアップグレードもする予定

-----

Pray the gay away = 神に祈りを捧げてゲイからノンケにしてもらうこと

https://hinative.com/questions/18100264

----

I wouldn't recommend going off blood thinners cold turkey and my heart rates really fucking high right now, 1:30 3145, and I'm nervous about this.

抗凝血剤を急にやめるのはおすすめしない

go cold turkey 〔悪習・薬物などを〕急に[きっぱり]やめる[断ち切る]

go off a drug 薬を(飲むのを)やめる

-----

there's no way these like agencies are gonna be looking at all this money you're raking in on Onlyfans being like "what do you mean we don't get any of it?"

AV事務所Onlyfansで荒稼ぎした金を見たら「当然それをくれるんだよな?」って言うに決まってる

https://www.youtube.com/shorts/w8emCFPLGlw

rake in 荒稼ぎする

-----

whether or not the bit that it's famous for will soon wear off a novelty however is difficult to determine

パルワールドを有名たらしめている要素がすぐに陳腐化してしまうのかどうかは(今のところ)断定しがたい

bit = 要素 = element

----

my boss has been grilling me for slacking

上司からサボり癖を指摘されている

grilling 厳しい尋問◆可算

----

she flaked on our plans for Christmas together and invited him to hang out with her during the end of the year

私とのクリスマスの約束をすっぽかし、(B男さんと)年末に遊ぶ誘いをしていたり、

flake

自動

〔薄片が〕はがれ落ちる

〈米俗〉約束をすっぽかす

他動

から薄片を剥がす[削る]

〔~を〕薄片で覆う

there were a lot of things that i couldn't fit in here but i've only ever wrote things that i've had clear evidence of

この文章ではとても収まらないほどのことがありましたが、手元に明確な証拠があるものだけを書きました。

i don't think i've clarified quite enough but this being something that i've kept in my heart for so long i'm so glad i'm able to talk to you all about it now

十分にお話できたとは思っていませんが、ずっと心のうちに秘めていたことを、こうしてお話することができたのはよかったと思っています

https://www.youtube.com/watch?v=FWJDwmrTL5o

-----

steer clear of

~を避ける、~を遠ざける、~に関わらない

You should steer clear of that restaurant or you may get food poisoning. : そのレストランはやめた方がいい、さもないと食中毒になるかもよ。

-----

Shiina having a laughing fit really brightens up my day. Thank you Okayun~

面白い」ということを表すのに使われる「ツボる」という表現英語で表すと、一番意味が近いのはおそらく”have a laughing fit”でしょう。

https://nativecamp.net/blog/20200723_laugh

-----

Does 買いものにでも行っているのかもしれません mean “Maybe she even went shopping” ? What does でも contribute here

Does demo add the “or something” to the sentencr

-----

seemやappear, feel, look, soundなどにthatを付ける場合主語itでなければならない

It seems that ...

✗He seems that ...

Feel, look, and sound are very occasionally found with a content clause too: It looks to me that a vendetta has struck up. Content clauses differ from as if phrases in that they are restricted to the impersonal construction: compare Ed seemed as if /∗that he was trying to hide his true identity. (Camgel p.962)

-----

仮定法と直説法の見分け方は文脈判断

ポイント1:仮定法は直説法の時制を一つ過去にずらしたもの

ポイント2:直接法は時制の一致を受けるが、仮定法は時制の一致を受けない

直説法(knows):He looks as if he knows the answer. (he knows the answer)

仮定法(knew):He looks as if he knew the answer. (he gives the impression that he knows the answer, but he (probably) doesn't know or we don't know whether he knows or not)

主節が現在形の場合区別がつくが、主節を過去時制にすると、直接法では時制の一致によってknows→knewと一つ過去に移るのに対して、仮定法は時制の一致を受けないのでknewのまま変わらない。その結果、どちらも同じ時制になってしまう。そのため、仮定法か直接法かは文脈判断。(仮定法の時制を過去にずらす(knew→had known)と、大過去として見なされ、主節より一つ前の出来事を表すことになる)

He looked as if he knew the answer.

完了形場合も同じ

直説法:He seems as if he hasn't slept for days. (he hasn't slept for days)

仮定法:He seems as if he hadn't slept for days. (it seems that he hasn't slept for days, but he (probably) has or we don't know whether he has or not)

He seemed as if he hadn't slept for days.

https://www.grammaring.com/as-if-as-though

-----

He doesn't do listening immersion he only knows English from reading and it shows. 

He's not that bad 彼は別に下手じゃないよ

But there's a few quirks that tip me off でもノンネイティブだとわかってしまうような癖がたまに出てくる

2024-01-17

完全完全犯罪 true perfect crime 方法

犯行直後に地球を爆破するしかない

しかない

2024-01-05

anond:20240105165226

これどう対処するのが適切なんだろうね。

自分は nullチェックのときだけ厳密等価を使わないで比較している

console.assert(null == null, true)
console.assert(undefined == null, true)

console.assert(0 == null, true)
VM792:1 Assertion failed: true

typescriptではnullとundefinedを合成した型を用意することが多い

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-27

anond:20231227124951

Basic principles of logics like "the reverse is not always true" is necessary for discussion in any languages.

We cannot talk with idiots who say "You idiot, B is not always A" when we say "A is B".

2023-11-21

Hanyu Yuzuru is not only fans but also anti-sticky and disgusting

The one I've been listening to often, that's true. Looking at the comments of related articles, I'm scared of many people who say they don't like the w ay of divorce. In addition to writing comments, it's amazing to put stars on all the close opinions. I think divorce all of a sudden is short-sighted, but that's about it, it's just marriage. There were other ways, and some people even said that they should have protected their spouse even i f they stopped skating. If you don't want to meet a stalker, if you don't want to meet a molester, what's the difference? If this is a female idol, if you don't like it, you can only say it if you stop it, right? I guess there are a lot of strange people like that around him.

2023-11-08

いかれてんのか!てめえ!この糞やろう!

FUNCTION UNKO:
  records = SELECT * FROM hoge WHERE column_a IN (1, 2);
  FOR record IN records:
    IF record.column_a == 1 || record.column_a == 2:
      RETURN TRUE

  RETURN FALSE

2023-11-06

anond:20231106210033

いや、空想の声に性別付与された経験はあるな

錯乱状態に陥った時、外国人女性から"Your true nature is Buddhism, okay taro?"とか"Your role is hijacker"とか意味不明なボイスを聞いたぞ

2023-11-04

「優勝確率」に意味はない

全国のスポーツ紙野球誌面担当記者よ、刮目せよ(そんな大した話ではない笑)

この時期のプロ野球日本シリーズ関連記事を見ると、優勝確率、と言う数字毎日踊るのである

11/3現在「【阪神日本シリーズで2勝2敗から王手のチームはV確率75%」

https://news.yahoo.co.jp/articles/4f54c052feb332637de4cbbda7fe1c7ac3dc8a80

ふむふむなるほど。(2勝2敗(引き分け含む)から王手をかけたケースは、過去28度。そのうち優勝21度のV確率75%。)

11/1「阪神追いつき29度目の2勝2敗、優勝確率は46%」

https://www.nikkansports.com/baseball/news/202311010001529.html

おお、前日には全く低かったんですね。

10/31オリックス確率は79% 1勝1敗から先に2勝目を挙げたチームが27度優勝」

https://www.nikkansports.com/baseball/news/202310310001318.html

ホウホウ、この時点ではオリックス日本一になりそうだ、という話だったね、そういえば。

10/28日本シリーズ第1戦勝利阪神日本一確率」は62%」

https://www.sponichi.co.jp/baseball/news/2023/10/28/kiji/20231028s00001173607000c.html

ほほー、阪神の優勝確率は62%→(情報なし)→21%→46%→75%、と変化したわけですね。。。っていうか、それぞれの時点で勝ち星見ればいい話で、「優勝確率」なんていう大層なものでは全然ないような???

とはいえ検討余地はあると思った。

例えば3勝2敗の時点から勝敗場合

●◯

●●

の3通りしかなく、そのうち阪神が優勝するのが2通りなので、お互いの勝利確率50%だとすると、66%の確率阪神が優勝する。しかし、データから見ると75%優勝なので、それよりも高い。どれくらい高いかというと、オッズ1.1倍くらい高い。と言うようなものである。確かに3勝2敗に先に到達したチームの方が優勝する確率が高くなるが、その程度はわずかであろう。1勝すれば優勝するが相手は2勝しなければならない、と言う事実から普通に想像できる確率と大差はない。さてこの高いと言うのは有意なのだろうか。統計によると

今年のように2勝2敗(引き分け含む)から王手をかけたケースは、過去28度。そのうち優勝21度のV確率75%。

とのことである。二項検定すると

> binom.test(21,28,p=2/3)

Exact binomial test

data: 21 and 28

number of successes = 21, number of trials = 28, p-value = 0.4258

alternative hypothesis: true probability of success is not equal to 0.6666667

95 percent confidence interval:

0.5512845 0.8930920

sample estimates:

probability of success

0.75

であるので、危険度5%において有意ではない。つまり、2勝2敗から先に王手をかけた方が日本一になる確率統計的に高いと言うことはない。単に3勝したので日本一まで1勝で済むから日本一になりそうだ、と言うだけのことで、過去統計を引き合いに出す必要もない。

初戦を勝ったチームの日本一確率62%、についても考えてみよう。この場合は、初戦を勝ったチームをもとに、2戦目以降が

3勝0敗 → 1通り

3勝1敗 → 3通り (最後勝利が固定していて、3_C_1)

3勝2敗 → 6通り (4_C_2)

3勝3敗 → 10通り (5_C_2)

2勝4敗 → 10通り (最後に敗北が固定していて、5_C_2)

1勝4敗 → 4通り (4_C_1)

0勝4敗 → 1通り

なので、阪神が優勝する確率は(1+3+6+10)/(1+3+6+10+10+4+1)=0.5714286

データによると、

過去73度の日本シリーズで、第1戦で先勝したチームは45度日本一に。

とのことなので、有意性を二項検定で見てみると

> binom.test(45,73,p=20/35)

Exact binomial test

data: 45 and 73

number of successes = 45, number of trials = 73, p-value = 0.4791

alternative hypothesis: true probability of success is not equal to 0.5714286

95 percent confidence interval:

0.4952062 0.7279136

sample estimates:

probability of success

0.6164384

となって、やはり特に有意差はありません。

この簡単統計解析によれば、日本シリーズは「4勝した方が日本一になる」と言う以上の意味特になく、勝ち方(第一戦で先勝する、とか、2勝2敗から勝ち越す、とか)によって日本一になる確率が左右されることはなさそう。もっといえば、「勝ち星が多い方が日本一になる確率が高い」って、当然のことなだけ。

と、統計初心者が考えてみましたが、統計猛者のコメントがあればお願いします。例えばマルコフ過程としてモデル化することができるのかな。何かパラメータを入れて(例えばホーム球場での勝率確率は高いとかなんとか)、優勝確率が、何も考えず出す確率よりも高くなることに寄与するような因子を探す、とかだとセイバーメトリクス的になるのかも。

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