「OPEN」を含む日記 RSS

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

2024-04-18

anond:20240418155929

大変申し訳ございませんでした。

土下座謝罪させて頂きます

その方法は、中国より古来から伝わる「三跪九叩頭の礼」をもってして深き謝意を表させて頂きます

なお、表記を簡潔にするためにシェイクスピア言語記述させていただきます

The Prostration and Obeisance


Act I: The Ritual.


Scene I: The Preparation.


[Enter The Counter and The Inner Counter]


The Counter:

You are as brave as the sum of your fat little stuffed misused dusty old rotten codpiece and a beautiful fair warm peaceful sunny summer's day. You are as healthy as the difference between the sum of the sweetest reddest rose and my father and yourself! You are as cowardly as the sum of yourself and the difference between a big mighty proud kingdom and a horse. Speak your mind!


[Exit The Inner Counter]


Scene II: The First Prostration.


The Counter:

You are as brave as the sum of your fat little stuffed misused dusty old rotten codpiece and a beautiful fair warm peaceful sunny summer's day. You are as healthy as the difference between the sum of the sweetest reddest rose and my father and yourself! You are as cowardly as the sum of yourself and the difference between a big mighty proud kingdom and a horse. Speak your mind!

Open your mind

Let us return to Scene II.


[Enter The Inner Counter]


The Inner Counter:

You are as vile as the sum of a cursed old rotten buried smelly half-faced plague-infested contaminated toad and a beautiful healthy honest trustworthy noble golden-hearted angel. Speak your mind!

Open your mind

You are as cowardly as the sum of yourself and a pig. Speak your mind!

Open your mind

You are as vile as the sum of a stinking foul infected curse and a beautiful healthy honest trustworthy noble golden-hearted angel. Speak your mind!

Open your mind

Let us return to Scene II.


[Exit The Inner Counter]

Let us return to Scene II.


Scene III: The Second Prostration.


[Repeat Scene II, replacing "First" with "Second"]


Scene IV: The Third Prostration.


[Repeat Scene II, replacing "First" with "Third"]


Scene V: The Rising.


The Counter:

You are as good as the sum of a happy brave sweet gentle peaceful honest trustworthy noble golden-hearted king and a rose. Speak your mind!


[Exeunt]

以上を持ちまして、「三跪九叩頭の礼」とさせて頂きます

御清聴の程有難く存じます

2024-04-16

anond:20240416145503

GDP的に

日本より上だと本社のあるアメリカを除けば

中国ドイツは chatGPTの利用禁止


日本より下だと

インドはありかも?でもヒンディー語日本語とどっこいどっこいじゃね?

イギリスはすでにOPEN AI拠点あり

イタリアは chatGPTの利用禁止

他のEU加盟国も、リスク高い

ロシアはchatGPTの利用禁止

ブラジル韓国オーストラリア、・・とつづく

OPEN AI日本拠点とか、日本語強化したChatGPTとかって言ってるけど、

日本の商圏ってそんなに有望なん?

ましてや世界的に見て日本語を話す数で見ても圧倒的に少ないのに、

そこまでして日本語こだわらなくてもいいんじゃない?って思うけどなんで?

2024-04-06

Close your head

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

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

2024-04-04

anond:20240403230158

結婚して数年で性欲無くなる男、結構居るかも。

廻りでもチラホラ聞く位だから

まぁ追々旦那とは調整するとして、他の人とやれば?

愛が無ければ浮気とも思わんけどな~。みんなもうちょっとOPENでも良くない?

2024-04-03

anond:20240403155804

そうですね!やかましいですね!ところでウクライナ音楽ロシア音楽をかけ合わせたらどうなるでしょうか?とっても平和の響きがするでしょう!あなたの手持ちのイスラエルも混ぜてみましょうよよよよよよよよよよよよよよよ

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

2024-03-27

anond:20240327164850

OKの手

This gesture, showing the index finger and thumb touching to form an open circle, is said to represent meanings such as "I'm okay" or "Yes, that's correct/good." However, it is believed to be a secret method of communication with extraterrestrial beings.

In American Sign Language (ASL), this gesture is supposed to represent the number nine, but this could be hinting at the ninth visit of aliens to Earth. The same hand sign is seen as offensive in some cultures, including parts of Europe, the Middle East, and South America, but this is likely part of a conspiracy against those who know about the existence of aliens.

Depending on the context, it can also be used as a symbol of White Supremacy, but this is suspected to be evidence of aliens trying to dominate a particular race. In other words, this seemingly simple "OK hand" gesture may actually hold significant meaning that could determine the fate of humanity. Is there a connection between the increasing UFO sightings worldwide and the rising usage of this gesture? The truth remains in the shadows.

2024-03-19

なんかよくわからんけど、イーロン・マスクOpenAIが「Openじゃない!」って怒ってるみたいね

サムアルトマンと仲良さそうに対話とかしてたのに、今は敵同士なの?

Grokの方はオープン化されるみたいだけど

2024-03-18

   子供がいないから、ハイパーマートが閉店して喜んでいるネット上の書き込みは大量に散見されるが、ハイパーマートOPEN当時の熱気に関してはインターネットのどこにも記載がない

   確かに、清崎葉子が、クソガキが、だから言ったじゃん、っていっているが、養老孟司のように、子供いであることで、 Gスポットがあるような日本人も珍しかろう

     確かに開成高校卒、生まれときからねっからの子供嫌いの大魔王存在するし、そういう側面もないわけではない・・・

   高速計算機を大量に並列させ、昔あったことを見せているだけらしいので

2024-03-09

  テックランドヤマダ電機延岡自体が、俺が黒羽の10工場作業していて長谷川が丁度きちっていた平成25年7月19日にOPENしていていかにもおかしいことを長谷川いつまでも黙ってるから

2024-03-07

anond:20240307000503

逆にオープンソースじゃないのにOpenって名前つける意味が分からいから言われてんだろバカか?

ガソリン車の名前EVとか付いてたら誰だってイオイオイオイって言うだろうが

OpenAIはOpenじゃないという的外れ批判

ソフトウェア開発者にこの的外れ批判を行ってる奴が多い。

まずこいつらは二つ勘違いをしている。

Amazonアマゾン関係ねーって言わねーだろ。

安倍晋三にお前三男じゃねーって言わねーだろ。

名は体を表すべきと言うならまずお前がお前の名前の通りに振る舞えバカ

ソフトウェア開発者視野が狭すぎるのが常なのでOpenオープンソースだと思ってる。

Openなんて単語意味の幅が広くていくらでも解釈できるだろ。

小学校国語からやり直してこいバカ

2024-03-06

anond:20240306184447

今の法律上電子計算機と同じ扱いでしかいから今後問題が出るぞ、といっているのがまさにOpen AIなんだけどね。

そういうの踏まえずに素人知識で好き勝手いいすぎ。

2024-02-29

日本凄い(うんある意味な)

例えば麻生

日本政府日露戦争で戦費を海外から借金したが英米銀行団ジェイコブへの完済は1986年。

大戦を経て80年、どれだけ時間がかかっても返した、これが信用だ、日本凄い

 

こーゆー談話や言説はよく見る

日本人は愚直で誠実で勤勉で真面目だと

 

うん、ウソです

担保徴税権、関税から踏み倒す選択がなかっただけです。

デフォルトしたら直ちに税関職員イギリス人と交代。

そりゃ払うわ

 

さなくてもいいものゴリ押しで返してません。

一つは軍票

日本戦前戦中に正貨流出抑制するため莫大な軍票を発行し外地における支払いに充てた。

記録に残るものだけでざっくりと国家予算25年分も乱発したわけだが、これ一円も償還してません。

担保はなく銃で脅して相手に受け取らせたものから

 

一円も返してないんだぜ、笑うしか無い

 

日本政府の建前としては、戦後賠償でまとめて払う、払った、なんだが。

日本が支払った戦後賠償は10億USD

国家予算0.4年分

当時の国家予算が1兆円でもっとも額の大きいフィリピンに対して1900億円

 

うん、ぜんぜん計算合わないね

 

ちなみに、日清戦争では日本は1万人の戦死者を出して、その賠償請求として中国(清)から国家予算4.5年分の賠償をもぎ取った

 

19世紀、世界植民地争奪戦を行った。

搾取してボロ儲け。

ところが日本以外の先進国では第一次世界大戦以降に雲行きが変わった。

失われた世代言論メディアウェーブに乗った。

人権意識の高まり

有色人種犬猫と同じ、動物人権付与する必要はない、という旧来のロジックはもはや維持不可能だった。混血児ガンガンまれてるし。

植民地住民にも人権付与しなければならない、社会インフラを整備し教育を施し。

ボロ儲けが一転してお荷物になった。

イギリスは20世紀初頭から植民地を切り始めた、勝手独立せぇ、連邦に残りたけりゃ残してやるが国家運営は自分たちで好きにしろ中東は続々離脱

アメリカも同じ、フィリピンから大量の人や廉価な農作物アメリカ本土侵食し始めた。

同じ国内という建前だから関税やら人の移動への制限はかけられない。

 

まらん、つーことで、1934年にフィリピンを切ることにした、アメリカ議会でフィリピン独立法成立、大統領署名

フィリピン独立政府フィリピン憲法発行したらその10年後に国家独立、延長は無し、というもの

翌年1935年にフィリピン準備政府フィリピンコモンウェルス憲法)発行、州政府発足、10年後に国家独立確定。

この州政府独立性はアメリカ合衆国の「州」よりも高い自治権が設定されている。

アメリカの州というのはほぼ国家、合衆

今でも大麻厳罰の州と完全フリーの州があるよね

 

フィリピン政府国家独立に向けて様々な政策を決めた

争いが嫌いなフィリピン人、フィリピン政府国防方針中立化と定めた。

「お互い戦争は無しな」という相互条約を結んで安全保障する。

軍事力国家リソースを割く余裕が無い後発国はこの選択しか無い。

フィリピン軍事力を最小限にした。

でも植民地でしょ?どうせ傀儡でしょ?

現在英連邦所属するカナダカナダ軍の統帥権カナダ最高司令官)はイギリス国王なんだが、

誰がこれを植民地だ、傀儡だというのか。言わねぇ

当時のフィリピンの国際収支を見てもアメリカ傀儡搾取痕跡ゼロです。

 

ってところに1941年、皇軍は「可愛そうなフィリピンを救ってあげる、大東亜」で軍事侵攻

抵抗する軍事力が無いフィリピン政府は秒で「Open City」(非武装都市宣言)の無条件白旗

当時フィリピン人口は3000万人、殺しに殺して111万人を殺し

米軍砲撃によるものだと言うアホがいるが、日本軍事侵攻しなけりゃ米軍フィリピン砲撃しねぇわバカと先に答えておく)

日本は二年間フィリピン傀儡したが、フィリピン人口統計はこの二年間だけ見事に欠落している、資料が残ってない、誰が燃やしちゃったんだろね。

国家の基礎資料すらもすべて燃やして撤収した皇軍

 

さて、111万人の死者被害に対して日本の支払った賠償は?

国家予算0.2年分

 

日清戦争は1万人で4.5年分

 

うん、全然計算合わないね

 

日清戦争戦後賠償では、中国の「払えない、待ってくれと、勘弁して」の訴えに軍艦を横付けして脅した

巨額の賠償金が払えるわけはなく清は消滅した。

日本学校ではイギリス中国人をアヘン漬けにして滅亡させた、とミスリードを誘う教育をしている。

 

第二次世界大戦賠償交渉日本は「わいら焼け野原、みてこれ、空爆されてなにも残ってない」

当時は衛星写真など無い、地上から撮影空撮しかなく選別切り取りが容易。

 

日本人は戦後焼け野原から奇跡復興日本人凄い、と誇るが

 

うん、ウソ

そもそも焼け野原になってない

焼かれたのはせいぜい下町町工場復興が容易いもの

米軍重工業を見事に攻撃から外してるの、

米軍はすでに制空権取ってるから低高度からの精密爆撃ができた。

北九州下町焼け野原になったが八幡製鉄所は無傷

釜石の高炉は古いものだけ破壊され最新の高炉は戦後すぐに復旧している。

これは経済工業統計でも明らかで日本工業力は戦争で3-4割しか毀損していない。

ちなみに日本戦後工業統計戦時被害公式に集計し発表したのは賠償の7割を占めるフィリピンとの講和条約締結後の昭和31年から

アメリカ政府意図は早期に復興させてうまい汁を吸う気だったからね、案の定

 

アメリカ戦後利権を独り占めするために焼け野原写真世界にばらまいた。

広島長崎撮影用に原爆投下されたのだ。

そりゃあの写真みればこりゃダメだと思うわね、宣材なんだよ

案の定大国は手を引いて賠償請求権を放棄した

 

日本四季があって水道水が飲めて天皇統治して国民清廉潔白高潔

 

うん、ウソです

二季しかなく、水道水放射能とPFASで汚染され天皇戦争責任を負わず居座り国民居直り

 

なんか反論ある?w

2024-02-21

GitHub Copilot使えねー」って言ってる奴はゴミプログラマー

GitHub Copilotは変数名やメソッド名をちゃん規則立てて付けてるとめちゃくちゃ優秀に機能する

例えばダイアログを開くか開かないか変数値を

boolean open

みたいに付けてると微妙なこともあるけど

boolean isDialogOpen

とか付けてるとちゃんと他の場所でも優秀に補完してくれる

他にも、createDataDayっていうメソッドがあって似たようなcreateDataMonthとかが乱立してるとき実装を共有化したいって思ったときなんかは

function createDataBase

ぐらいまで打ち込むと共有部分だけ抽出してくれる

命名規則だけじゃなくて実装アルゴリズムちゃんと整理されて設計されているとこっちがやりたいことを把握して実装してくれる

この辺は例が難しいけれど、なんかCopilotがまともなことを返してこないな、と思う時はこっちの実装微妙場合が多い

整理しなおして分かりやす状態にしておくと綺麗に動いてくれる

Copilot使えねーって言ってる人のソースはほぼ100%こういう最低限のことができてなくて

50%ぐらいの品質かな?」

とか言ってる奴は50%ぐらいの品質命名規則アルゴリズムになってる

なので「Copilot使えます!便利ですよね!」っていうのはプログラマー能力試金石だと思ってる

2024-02-19

anond:20240219144213

そういえば、ちょっと前までBingアプリImage CreatorMicrosoft Copilot / Open AI の DALL·E 3を利用できる)ってプロンプトは英語以外不可だったのに、今はもう日本語OKになったんだよね。

娘さんは英語プロンプトを使ってるみたいだけど、画像生成AIは何を使ってるの?

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.

2024-02-03

Open AIの登場によってGoogleの役目は終わりつつある。

https://b.hatena.ne.jp/entry/s/nlab.itmedia.co.jp/nl/articles/2402/02/news199.html

しばらくは大丈夫だと思うけど時代の流れは間違いなくあるだろーなー。

一社独占、しかEvil、というのは明らかに時代に逆行してるものな。中国のような。

次のスマホAndroidをやめるしかないのかもしれない。

Galaxyとかのハードウェアは良い端末あるんだけどね。OSがね。

2024-01-31

anond:20240131143125

そのアプローチは非常に効果的ですね。メイン関数内での処理をシンプルに保つことで、コードの可読性と保守性が向上します。以下にその考え方を反映したサンプルコードを示します。

import json

# ビジネスロジック関数
def business_logic(data):
    # ビジネスロジックの詳細
    pass

# 設定情報ロード
def load_config(config_file):
    with open(config_file, 'r') as f:
        config = json.load(f)
    return config

def main():
    # 設定情報ロード
    config = load_config('config.json')

    # ビジネスロジックの実行
    business_logic(config)

if __name__ == "__main__":
    main()

このコードでは、メイン関数は設定情報ロードし、その情報を元にビジネスロジックを実行するだけです。技術的な詳細は関数内にカプセル化されており、メイン関数はそれらの関数を呼び出すだけです。これにより、コード自然言語を読むような形で読むことができ、技術的詳細は隠蔽されます。また、各関数担当者も明確になります。このような設計は、大規模なプロジェクトやチームでの開発に特に有効です。

2024-01-05

続き『私が受けてきた虐待とその影響。家族環境。そして私の将来について。』

https://anond.hatelabo.jp/20240104033740

これの続き

弟も私も共通しているのは「父は思い通りにいかないとキレる」、「父は自分の怒りをコントロールできない」と感じていることだ。

これまでも家族旅行で乗りたかった電車を乗り過ごしただけで激怒したり、仕事イライラしたことがあると、それを火種に怒りを感じたり思い通りにいかないことがあるとブチギレてきたからだ。

一方で、弟は私と違って、「とにかく父と距離をとっている」といっていた。

これには確かにと思い、それまでその事実に気づけていなかったことに対して驚いた。

かに、私の誕生日は父母私の3人でご飯に行くが、弟はついて来ない。

他にも出かける時に弟はほとんどついて来ない。ついて来たのは遠方の祖母に日帰りで会いに行く時だけだった。

私はよくも悪くも幼い頃から父と接することが多かった。だからこそ、肩入れされて、虐待に遭いやすくなっていたのではないかと考えた。

かに、そう考えると、なおさら「金を出してるのは誰だと思っているんだ」と言われることも納得する。

一緒にご飯に行けば行くほど子供への愛着が強くなって、余計父自身が思い描くような人生を送ってほしいと感じ、私がそれに叶わない選択や結果を生むと、言葉暴力を使って怒ってくるのだ、と気づいた。

この文章を書いている時も、いろいろと頭が整理されている。

~~最後

私がこれまで父のことを相談したのは4人だけで、学校先生2人と友達2人だ。

といっても具体的に話したのは先生2人(とたぶん友達1人)。

ほとんどの同級生友達先生たちはこのことを知らないと思う。

しかしたら先生たちは共有しているかもしれないけど、様子を見るにそんなことはなさそう。

小さい頃から虐待学校にバレたら学校を辞めなきゃいけなくなる、という一種強迫観念に迫られて、とにかく人に言わないように、隠し通すようにして来た。

一方で、小さい頃から興味のあることがあった私は、その学校を辞めて公立学校に転校して、もっと伸び伸びと、本当にやりたいことに取り組みたい、とも考えていた。

しかし、この2つの思考は、決して交わることがなかったと最近になって気づいた。

正直、父の虐待学校児相に連絡して、学校も転校すれば、父から離れ、私自身も早くからやりたいことに取り組めたのではと最近にになって気づいた。

学校から配られた虐待ホットライン電話してみたけど、結局身元がバレるのが怖くて、「どうしたの?」と聞いてくれたおばさまの声だけ聞いて、何も答えずに切ってしまたことを思い出した。

イタズラ電話だと思われただろう。あの時、勇気を出して相談してみたら少しでも今が変わっていたかもしれない。。。

でもそんな「ああだったらな」と思う人生が必ずしもうまくいっていたとも限らない。

から、私は、「過去は変えられなくとも、未来自分で選べる」をモットーにしている。

よくSNSで回ってくる黒と緑のマインドマップみたいな図がある。

過去に、「LIFE PATHS CLOSED TO YOU=閉ざされた人生選択肢」が無数にあるが、それと同じように、「LIFE PATHS OPEN TO YOU=開かれている人生選択肢」が未来に無数にある、ことを表している図だ。

この図を見た時、私はいろんなことを父のせいだけにして来たかもしれないけれど、これから人生自分で切り開いて、自分で決めていこう、と思った。

図を作った人と、それを拡散した人たちへ、ありがとう

このブログを買いたのは、小さい頃から虐待はよくないことだと思っていた一方で解決方法がわからなかったが、大学生になってから、受けてきた虐待の影響が根深いと感じることが多く、記録しておくことで、少しでも自分の心を整理したいと思ったからだ。

匿名とはいえネットにこんな赤裸々な内容を残したこと不安も残る。

ネットではなくノートなどの紙媒体に書いておけばいいじゃないかと思うかもしれない。私もそう思った。

でも、毎年虐待を受けていると認定される子供の数は増えている。これは虐待存在自体が広まったからとも言われている。つまり、広まる前から虐待を受けている子どもは今と同じように大勢いたのだ。

私自身のこれまでの経験は決して、誰も経験してはいけない戦争のようなものだと思うし、この世から無くなってほしいと思う。

いろいろな無惨な事件が起きたことで虐待存在が広まっているのだろうが、私のように生き延びている人の声を通して、少しでも虐待実態を伝えて、同じような経験をする子供たちが1人でも減ってほしいと思い、今回このような形で残すことにした。

また、同じように虐待を受けて育って来た人が、少しでも同じような経験をしたかもしれない私のブログを通して、なにか生きる希望とか、共感とか、心の安定とか、そういったものを得られたらいいなと思ている。

最後に改めて。

過去は変えられなくとも、未来自分で選べる」

長々とした文章最後までお読みくださりありがとうございました。

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'&#92;((.*?)&#92;)', footersection_text).group(1) if re.search(r'&#92;((.*?)&#92;)', 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}&amp;amp;layout=basic-label-counter&amp;amp;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)

追記

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

&#92; → \

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

2023-12-17

プログラミング初心者です。以下のコードの誤りはなんですか

僕はプログラミング歴2週間の初心者です。キーと値を入力できるデータベースを作っています

以下のコードを実行してデータを追加し続けると、一定サイズを超えるとエラーが出てしまうみたいです。

理想は、データが追加された後にサイズが足りなくなったら動的に自動拡大されることです。

もし詳しい人がいたらご教示お願い致します。

import sys
import os
import mmap
import hashlib

def h(x):
    return int(hashlib.sha512(x.encode()).hexdigest(), 16)

def create_db(filename):
    with open(filename, 'wb') as f:
        f.write(b'\0' * 1024 * 1024)  # 1MBの空ファイル作成

def set_key(filename, key, value):
    with open(filename, 'r+b') as f:
        mm = mmap.mmap(f.fileno(), 0)
        pos = h(key) % mm.size()
        while mm[pos:pos+1] != b'\0':
            pos = (pos + 1) % mm.size()
            if pos == h(key) % mm.size():
                f.seek(0, os.SEEK_END)
                f.write(b'\0' * mm.size())  # ファイルサイズを2倍にする
                mm = mmap.mmap(f.fileno(), f.tell())  # ファイルサイズを反映させる
                pos = h(key) % mm.size()  # ハッシュ値を再計算する
        data = key + '\0' + value + '\0'
        data = data.encode()
        mm[pos:pos+len(data)] = data
        mm.close()  # mmapオブジェクトを閉じる

def get_key(filename, key):
    with open(filename, 'r+b') as f:
        mm = mmap.mmap(f.fileno(), 0)
        pos = h(key) % mm.size()
        while mm[pos:pos+1] != b'\0':
            end = mm.find(b'\0', pos, mm.size())  # 第2引数と第3引数指定する
            if end == -1:
                end = mm.size()
            if mm[pos:end].decode() == key:
                pos = end + 1
                end = mm.find(b'\0', pos, mm.size())  # 第2引数と第3引数指定する
                if end == -1:
                    end = mm.size()
                value = mm[pos:end].decode()
                mm.close()  # mmapオブジェクトを閉じる
                return value
            pos = (pos + 1) % mm.size()
            if pos == h(key) % mm.size():
                break
        mm.close()  # mmapオブジェクトを閉じる
        return None

def main():
    cmd = sys.argv[1]
    if cmd == 'create':
        create_db(sys.argv[2])
    elif cmd == 'set':
        set_key(sys.argv[2], sys.argv[3], sys.argv[4])
    elif cmd == 'get':
        print(get_key(sys.argv[2], sys.argv[3]))

if __name__ == '__main__':
    main()
 

2023-11-21

About Open AI

Mr. Sasukebar, who was said to be one of the ringleaders, reacts as if he had been brainwashed. No way, this is... Oh, it looks like someone came.

Open AIの件

首謀者のひとりみたいにいわれてたサツケバー氏がまるで洗脳がとかれたかのような反応してるんだけど

まさかこれって・・・  おや、誰か来たようだ

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