はてなキーワード: setとは
「猿でも分かるプロンプト活用術」というタイトルでの電子書籍について、以下に簡単な目次と章ごとの概要を示します。実際の書籍を作成するには、これらの各セクションを詳細に説明し、例や図を追加する必要があります。
目次:
1. はじめに
2. コマンドプロンプトとは何か
8. まとめ
9. はじめに
・グラフィカルユーザーインターフェイス(GUI)との違い
・コマンドプロンプトの開き方
・基本的なコマンドの使い方(例:help、cls、exit)
...
はじめに
コンピュータの世界は日々進化し続けており、我々が日常的に使用するデバイスやソフトウェアは常に更新され、より使いやすく、効率的になっています。しかしながら、コンピュータの基本的な操作や理解には、依然として古くから存在するコマンドプロンプトという強力なツールがあります。このツールは、多くのユーザーにとって未知の存在であり、その力を十分に発揮できていないかもしれません。
本書「猿でも分かるプロンプト活用術」は、コマンドプロンプトをこれまで使ったことがない方や、基本的な操作しか知らない方を対象に、この強力なツールを効果的に利用する方法をわかりやすく解説します。また、既にコマンドプロンプトを使用している中級者にも、さらなる活用方法を学んでいただける内容となっています。
コマンドプロンプトは、グラフィカルユーザーインターフェイス(GUI)に慣れ親しんだ現代のユーザーにとっては、最初は少し難しく感じるかもしれません。しかし、本書を通じて、コマンドプロンプトの基本操作から高度な活用法までを習得し、日々の業務やパソコン操作に役立てることができるようになります。
各章では、具体的なコマンドの例やスクリーンショットを用いて、わかりやすく説明を行います。また、章ごとに練習問題やチャレンジを設けていますので、学んだ知識をすぐに実践して確認することができます。
この本を通して、コマンドプロンプトの力を最大限に引き出し、あなたのコンピュータスキルを向上させることができることを願っています。それでは、さっそく「猿でも分かるプロンプト活用術」の世界に飛び込んでみましょう!
Please improve the following novel to be more engaging and adding plot point of Yasuke returnig to being a missionary quitting Samurai " rologue:
The sun sank behind the horizon, casting the Japanese countryside in a warm, golden glow. In the courtyard of Nobunaga's castle knelt Yasuke, a tall, muscular African man with skin as dark as midnight. His journey to this moment had been long and treacherous, but it was only the beginning.
Chapter 1: A World Away
Yasuke lived an ordinary life in a small village on the Mozambique coast, unaware of the extraordinary destiny that awaited him. Captured by slave traders and torn from his homeland, he endured a grueling voyage across the Indian Ocean, finally arriving in the bustling port of Goa, India.
It was there that Yasuke's fate took an unexpected turn when he was purchased by Jesuit missionaries. In their service, he learned about Christianity, new languages, and the ways of the Western world. But his journey was far from over.
Chapter 2: The Land of the Rising Sun
As a loyal servant to the missionaries, Yasuke accompanied them on their journey to Japan, a land of mystique and intrigue. The beauty of the land, the complexity of its customs, and the elegance of its people captivated him. As the first African to set foot in Japan, he attracted attention and curiosity from all those who encountered him.
Chapter 3: The Encounter
In Kyoto, the capital of feudal Japan, Yasuke's life changed forever when he met Oda Nobunaga, one of the most powerful and influential daimyos of the time. Nobunaga was captivated by the African's physical prowess, intelligence, and unique background. Seeing potential in Yasuke, Nobunaga decided to take him into his service as a samurai.
Chapter 4: The Path of the Warrior
Yasuke's transformation from a slave to a samurai was fraught with challenges. He had to adapt to the rigorous training, strict code of honor, and the intricacies of Japanese society. But Yasuke's strength, resilience, and determination allowed him to excel, earning the respect of his fellow samurai and the trust of Nobunaga.
Chapter 5: The Unfolding War
As Nobunaga sought to unify Japan under his rule, Yasuke fought by his side in numerous battles. The African samurai's legend grew with each victory, as did his bond with Nobunaga. Together, they faced both triumph and tragedy, navigating the treacherous landscape of alliances and betrayals that defined the era.
Chapter 6: The Turning Tide
Yasuke's reputation as a skilled and loyal samurai grew, as did his bond with Lord Nobunaga. But in the shadows, the tides of change were brewing. Mitsuhide Akechi, once a loyal ally, had grown disillusioned with Nobunaga's rule. The resentment smoldered within him, fueled by a series of perceived slights and political maneuverings. Mitsuhide's ambition and desire for power began to cloud his judgment.
Yasuke sensed the shift in Mitsuhide's demeanor and grew increasingly wary of the samurai lord. However, loyalty to Nobunaga prevented him from openly voicing his concerns. He instead focused on his duties, ever vigilant and ready to protect his lord at a moment's notice.
One fateful evening, the Oda clan gathered to celebrate their recent victories. Unbeknownst to the revelers, Mitsuhide Akechi's treacherous plan was already in motion.
As the sun rose, the first cries of battle rang out. Mitsuhide's forces had launched a surprise attack on Nobunaga's residence at the Honno-ji Temple. Yasuke fought his way to Nobunaga's side, his sword cutting through the trait "
Prologue:
The sun dipped below the horizon, bathing the Japanese countryside in a warm, amber embrace. Yasuke, a towering, powerfully built African man with skin as dark as midnight, knelt in the courtyard of Nobunaga's castle, his heart thundering with anticipation. A perilous journey had brought him to this moment, and yet, it was only the beginning of a story that would span continents and rewrite history.
Chapter 1: A World Away
In a small village on the Mozambique coast, Yasuke led a simple life, blissfully unaware of the extraordinary destiny that lay before him. His world shattered when slave traders captured him, ripping him from his homeland and thrusting him into a brutal odyssey across the Indian Ocean. Fate, however, had other plans when he reached the bustling port of Goa, India.
In Goa, Jesuit missionaries purchased Yasuke, altering the course of his life. Under their guidance, he embraced Christianity, mastered new languages, and absorbed the ways of the Western world. But the wind had not finished carrying him to his ultimate destination.
Chapter 3: The Enchanted Isles
Loyal to the missionaries, Yasuke accompanied them to Japan, a land shrouded in mystery and allure. He was captivated by its breathtaking landscapes, intricate customs, and refined people. As the first African in Japan, he sparked fascination and intrigue wherever he went.
Chapter 4: Fateful Encounters
Kyoto, the heart of feudal Japan, bore witness to the meeting that would forever change Yasuke's life. Oda Nobunaga, a formidable and influential daimyo, was entranced by Yasuke's physical prowess, intellect, and exotic origins. Recognizing Yasuke's potential, Nobunaga welcomed him into his service as a samurai.
Chapter 5: A Warrior Forged
Yasuke's metamorphosis from slave to samurai was laden with trials. He navigated the grueling training, a rigid code of honor, and the complexities of Japanese society. Undaunted, he flourished, earning the admiration of his fellow samurai and the unwavering trust of Nobunaga.
Chapter 6: A Land Divided
As Nobunaga pursued his vision of a united Japan, Yasuke fought valiantly by his side in countless battles. The legend of the African samurai swelled with each victory, and their unbreakable bond deepened. Together, they braved the treacherous world of shifting alliances and betrayals that shaped the era.
Chapter 7: Whispers of Betrayal
Yasuke's renown as a skilled and devoted samurai expanded, as did his connection with Lord Nobunaga. But beneath the surface, a storm was brewing. Mitsuhide Akechi, once a staunch ally, had grown disillusioned with Nobunaga's leadership. His bitterness festered, fed by perceived slights and political machinations. Consumed by ambition and lust for power, Mitsuhide's judgment faltered.
Chapter 8: The Price of Loyalty
Yasuke detected the change in Mitsuhide's spirit and grew increasingly apprehensive. But his unwavering loyalty to Nobunaga held him back from voicing his suspicions. Instead, he redoubled his efforts, ever watchful and prepared to defend his lord at any cost.
Chapter 9: A Night of Shadows
On a fateful evening, the Oda clan gathered to revel in their recent triumphs, oblivious to the treachery that lurked in the shadows. Mitsuhide Akechi's nefarious scheme had been set in motion.
Chapter 9: A Night of Shadows
As dawn broke, the piercing cries of battle shattered the night's tranquility. Mitsuhide's forces had launched a devastating surprise attack on Nobunaga's residence at the Honno-ji Temple. Yasuke fought relentlessly, his sword cleaving through the treacherous warriors as he made his way to Nobunaga's side.
Chapter 10: Flames of Betrayal
The Honno-ji Temple, once a sanctuary of peace, was now engulfed in flames and chaos. Yasuke and Nobunaga fought back to back, their swords a blur of steel, as Mitsuhide's forces closed in. Despite their valiant efforts, they were outnumbered, and Yasuke could sense the battle was lost. With a heavy heart, he whispered a prayer for Nobunaga's soul, knowing that his lord would never surrender.
Chapter 11: A Promise Unbroken
As the temple crumbled around them, Yasuke was captured by Mitsuhide's soldiers. Imprisoned and stripped of his samurai status, he reflected on the path that had led him to this moment. Amidst the darkness, he found solace in the memories of his life with Nobunaga and his time as a missionary. A fire kindled within him, reigniting a long-forgotten purpose.
Chapter 12: The Road to Redemption
In the chaos following Mitsuhide's coup, Yasuke seized an opportunity to escape. He journeyed across war-torn Japan, seeking refuge and a chance to reclaim his former life. His determination and faith guided him, as did the memory of the missionaries who had once saved him from a life of slavery.
Chapter 13: Rebirth of a Missionary
Yasuke found solace and purpose among a group of missionaries in a remote village. Embracing his past, he became an instrumental figure in their community, sharing his knowledge of Christianity, languages, and the Western world. As he nurtured their faith, Yasuke felt the shadows of his life as a samurai slowly fade, replaced by the warm embrace of spiritual fulfillment.
Chapter 14: A Legacy Unforgotten
Though Yasuke had left the life of a warrior behind, the legend of the African samurai continued to grow. His story inspired generations, a testament to the power of resilience, courage, and the human spirit. It was a tale that transcended borders and time, a reminder that even in the darkest moments, hope and redemption could be found.
Epilogue:
As twilight draped the Japanese countryside, Yasuke stood atop a hill, gazing at the village he now called home. His journey had been one of unimaginable hardship, transformation, and ultimately, redemption. And as the sun dipped below the horizon, Yasuke knew that his story, like the sun's eternal cycle, would continue to inspire and illuminate the hearts of those who heard it.
Prologue
The sun sank behind the horizon as the last vestiges of light bathed the Japanese countryside in a warm, golden glow. Yasuke, a tall, muscular African man with skin as dark as midnight, knelt in the courtyard of Nobunaga's castle, tending to his duties. Though he had traveled a long and treacherous path to reach this moment, his journey had just begun.
Chapter 1: A World Away
In a small village on the Mozambique coast, a young Yasuke lived an ordinary life, unaware of the extraordinary destiny that awaited him. Captured by slave traders and torn from his homeland, he endured a grueling voyage across the Indian Ocean, finally arriving in the bustling port of Goa, India.
It was there that Yasuke's fate took an unexpected turn when he was purchased by Jesuit missionaries. In their service, he learned about Christianity, new languages, and the ways of the Western world.
Chapter 2: The Land of the Rising Sun
As a loyal servant to the missionaries, Yasuke accompanied them on their journey to Japan, a land of mystique and intrigue. The beauty of the land, the complexity of its customs, and the elegance of its people captivated him. As the first African to set foot in Japan, he attracted attention and curiosity from all those who encountered him.
Chapter 3: The Encounter
In Kyoto, the capital of feudal Japan, Yasuke's life changed forever when he met Oda Nobunaga, one of the most powerful and influential daimyos of the time. Nobunaga was captivated by the African's physical prowess, intelligence, and unique background. Seeing potential in Yasuke, Nobunaga decided to take him into his service as a samurai.
Chapter 4: The Path of the Warrior
Yasuke's transformation from a slave to a samurai was fraught with challenges. He had to adapt to the rigorous training, strict code of honor, and the intricacies of Japanese society. Despite these obstacles, Yasuke's strength, resilience, and determination allowed him to excel, earning the respect of his fellow samurai and the trust of Nobunaga.
Chapter 5: The Unfolding War
As Nobunaga sought to unify Japan under his rule, Yasuke fought by his side in numerous battles. The African samurai's legend grew with each victory, as did his bond with Nobunaga. Together, they faced both triumph and tragedy, navigating the treacherous landscape of alliances and betrayals that defined the era.
Chapter 6: The Turning Tide
Yasuke's reputation as a skilled and loyal samurai grew, as did his bond with Lord Nobunaga. The warlord respected Yasuke's dedication and resilience, a stark contrast to the treachery and self-serving ambitions that plagued many samurai of the era.
Word of Yasuke's prowess reached other daimyos, and whispers of the formidable black samurai began to spread across the provinces. The year was 1579, and the Oda clan had just emerged victorious in the Battle of Tedorigawa. Yasuke had fought valiantly, his towering presence and unmatched strength striking fear into the hearts of his enemies.
As the Oda clan continued to expand its territories, Yasuke's friendship with Nobunaga deepened, and he became a trusted advisor. He learned more about Japanese culture, studied the language, and embraced the customs of his new home.
In the shadows, however, the tides of change were brewing. Mitsuhide Akechi, once a loyal ally, had grown disillusioned with Nobunaga's rule. The resentment smoldered within him, fueled by a series of perceived slights and political maneuverings. Mitsuhide's ambition and desire for power began to cloud his judgment.
Yasuke had sensed the shift in Mitsuhide's demeanor and grew increasingly wary of the samurai lord. However, loyalty to Nobunaga prevented him from openly voicing his concerns. He instead focused on his duties, ever vigilant and ready to protect his lord at a moment's notice.
One fateful evening, the air was heavy with the scent of cherry blossoms, as the Oda clan gathered to celebrate their recent victories. Laughter and the clinking of sake cups filled the air. Unbeknownst to the revelers, Mitsuhide Akechi's treacherous plan was already in motion.
As the sun rose, the first cries of battle rang out. Mitsuhide's forces had launched a surprise attack on Nobunaga's residence at the Honno-ji Temple. The chaos was overwhelming, as friend turned against friend, and the air filled with the acrid smell of smoke and blood.
Yasuke fought his way to Nobunaga's side, his sword cutting through the traitorous samurai with brutal efficiency. The two men made their final stand together, back-to-back, against the relentless onslaught.
In the end, however, they were outnumbered. As Nobunaga fell, mortally wounded, Yasuke continued to fight, but he too was eventually captured. Mitsuhide Akechi, in a twisted display of respect, spared Yasuke's life, acknowledging the loyalty and prowess of the black samurai. Yasuke was sent to the Jesuit missionaries, his future uncertain.
Yasuke's journey had been a remarkable one, from a slave in a foreign land to a trusted advisor and samurai. Despite his extraordinary circumstances, he remained true to himself and his values. His story of strength, resilience, and loyalty would be remembered and honored for generations to come.
Epilogue:
As the sun set on another day in Japan, the whisper of the wind carried the tale of the black samurai, Yasuke, across the land. It would weave its way through the ages, inspiring countless others to rise above adversity and carve their own paths through the storms of life.
In the year 3000, humanity had finally discovered the secrets of the multiverse. Using their most advanced technology, they had found a way to travel between different parallel universes, each with their own unique physical laws and structures.
As the first explorers set out on their journeys, they encountered a myriad of strange and wondrous worlds. Some universes were filled with infinite copies of themselves, while others were constantly shifting and changing, their physical laws in a state of constant flux.
As they traveled deeper into the multiverse, the explorers encountered universes that seemed to follow completely different sets of physical laws. In some, time flowed backwards, and cause and effect were reversed. In others, matter was made up of entirely different particles, and energy behaved in completely unexpected ways.
As the explorers continued to journey further, they began to encounter universes that seemed to be simulations, created by beings in higher dimensions. They encountered universes where the laws of physics were entirely mathematical, and others where the very fabric of reality was made up of pure information.
At last, the explorers came to a universe that seemed to encompass all of the many-worlds interpretations. In this universe, every possible outcome of every possible event was played out in infinite parallel realities. The explorers marveled at the incredible complexity and diversity of this universe, as they watched endless versions of themselves carrying out endless variations of their own adventures.
As they prepared to leave this universe and return home, the explorers realized that they had only scratched the surface of the multiverse. They knew that there were still countless more universes to explore, each with their own unique physical laws and structures.
And so, they set out once more, to journey deeper into the multiverse, and to discover the secrets of the infinite many-worlds that lay waiting to be explored.
As the explorers continued their journey, they encountered a universe where time did not exist, and another where the laws of physics were governed by emotion rather than math. In yet another universe, they discovered that consciousness itself was the fundamental building block of reality.
As they explored further, the explorers encountered universes where the laws of physics were not constants but varied across space and time. They found a universe where entropy decreased over time, and another where gravity was repulsive rather than attractive.
At the edge of the multiverse, the explorers discovered a universe that seemed to contain all of the other universes within it. This universe was infinite in size and contained infinite variations of itself, each one a slightly different version of the universe they knew.
As they traveled through this universe, the explorers encountered versions of themselves that had made different choices and lived different lives. Some of these versions were almost identical to their own, while others were wildly different, with entirely different personalities and goals.
At last, the explorers returned to their own universe, their minds reeling from the incredible sights and experiences they had witnessed. They knew that the multiverse was an endless sea of possibility, and that there were still countless more universes to explore.
As they shared their discoveries with the rest of humanity, they realized that the true nature of the multiverse was still a mystery. They knew that there were many theories and hypotheses, but no one could say for sure which one was right.
And so, the explorers continued their journey, driven by a hunger to uncover the secrets of the multiverse and to understand the true nature of reality itself.
sHU2uEFZltSiv44bZEskqqwLmJpwM58GVdcmntcEZlWl9f6C_xmyortYKIGA97okYRnsRxxxJv4wfGA3AqWspArs7I5fjadr2Z7VUu8CzfCvh3DjnzLo7aLe894M85CjNn_2jnSJVL3DKqyGcmKS9d62NzhiZpyxyUz_f1jB5QMDndMKOOq6uKEquFjFnpgsDnFyxBvGylDZZKIKz_uJadKb5PRse1S6Bbsfey7TqHjy2HCKAvxHksTzgB8AvEkMBCdZrTAHCXfC8CcMfXHtQSLffQvjOthbjfOO0xIwNgAYZ5peAgwcldWXV1d6b1MxM350Il4Fqf3Cz0wNFf3i2BUe6Gq8Lhmqn2cVTr80CIuzFohW2YPCUBg2Ed5E7KBTHkIsZN74INQYoMmyNRQ7kxoa6bmPR9vsA6EZbfgOF9JTIdhI46FAQMta_Rtnn4xiYqbBs8osmqhCDUjlwo_YylzSnbH4plzU1JjkosWtTtpYQcdTyNBV572VKLB6wzxSp5o877avuAlkym7H3nV9Wfxu6Wi4k37td2x2L4PsOwe_PcjfxPBbZfZV36D125rJGfnnRgzMHf8LCWlsPtuuPXyd5V6xZeS6zD_naTNhsvCxduG16z27HdUV01VWvaW3VJZaHb9ziXsteVdGkKo9EHlmnX3m_QnWfJyByeLQVbHP9afNNxgIKpb0fYYedjDiLr_ZafVm8TPSRYBthjAXGLyuZ8l5bRwc9lD7mYx0Y6B5qEMgvpZku5FWeo61Jr8AC5acJ5y8RtkNzPB_o20HR6wK8PduyUjv3H3q2JxsYBFil6vY5o2R5xFZOrf6WCUD17jtUjRm4k2DV_euUXGikdvLiVDSQcWiFzae7o9Liote5M3vT6Z66aI1Rju9Cd5B_WWO5ejwRTLO4qAjx3O_P8vtNSdS3YfOdKwmmeKdDJyfBxRJ7yyCU2tvlDbS7vfCOd_AWb4sFQNzfjU1Nn7iHdo5vrzYTeh7XLbDkw1GuI8DJUOU31i06NpX9pxpVv7t
A:はい、私はアセンブリ言語のコードを記述することができます。アセンブリ言語は、コンピュータのプロセッサが理解できる低水準の機械語命令に直接対応するプログラム言語であり、CPUの命令セットアーキテクチャに依存するため、異なるCPUアーキテクチャに対して異なるコードが必要です。
以下は、x86アーキテクチャ向けの単純なアセンブリ言語の例です。これは、メモリの特定の場所にある2つの数値を加算して、結果をレジスタに格納するプログラムです。
Copy code
section .data
num1 dd 10 ; Define num1 as a double word (32-bit integer) and set its initial value to 10
num2 dd 20 ; Define num2 as a double word and set its initial value to 20
section .text
global _start ; Declare the entry point for the program
_start:
mov eax, [num1] ; Move the value of num1 into the eax register
add eax, [num2] ; Add the value of num2 to the eax register
mov [result], eax ; Move the value in eax to the memory location "result"
section .data
result dd 0 ; Define result as a double word and set its initial value to 0
このプログラムは、num1の値をeaxレジスタに移動し、num2の値をeaxレジスタに加算し、最後にeaxレジスタの値をresultメモリアドレスに保存します。
オブジェクト変数を Nothing に設定すると、オブジェクト変数と特定のオブジェクトとの関連付けが解除されます。
これにより、変数を変更することでオブジェクトを誤って変更することを回避できます。
オブジェクト変数は、関連付けられたオブジェクトを閉じた後に常に Nothing に設定されるため、オブジェクト変数が有効なオブジェクトを指しているかどうかをテストできます。
例:
If Not MyObject Is Nothing Then ' Variable refers to valid object. . . . End If
もちろん、このテストでは、オブジェクト変数が参照するオブジェクトを含むアプリケーションをユーザーが閉じたかどうかを絶対に確実に判断することはできません。
https://learn.microsoft.com/ja-jp/office/vba/language/reference/user-interface-help/nothing-keyword
複数のオブジェクト変数が同じオブジェクトを参照する場合、変数が参照するオブジェクトに関連付けられているメモリおよびシステム リソースは、すべての変数が Nothing に設定された後にのみ解放されます。
明示的に Set を使用するか、実際のオブジェクトを参照する最後のオブジェクト変数が スコープ外になった後に暗黙的に解放されます。
設定→アクセシビリティ→画面表示とテキストサイズ→コントラストを上げるをオンにする
他のアプリに影響させたくない場合、アクセシビリティの一番下にあるAppごとの設定から「ミュージック」に対して設定する
どこにも書いてないので英訳も載せておく
Go to Settings→Accessibility→Screen Display and Text Size→Turn on Increase Contrast
If you do not want other apps to be affected, go to the bottom of Accessibility and set the setting for "Music" from the settings for each app.
Publisher Houbunsha opened an official website for the television anime adaptation of Rasuko Ookuma's Hoshikuzu Telepath (Stardust Telepath) manga on Thursday, revealing the main staff members and a key visual (pictured above). The anime is set to premiere in 2023. Staff Directo... mangamanhwa.org
If this sytem can be applied in simliar fashion to those of search engine, which system will prevail?
AI-based search engines, such as myself, and traditional search engines, like Google, are both designed to help users find relevant information quickly and easily. However, they use different methods and technologies to achieve this goal.
Traditional search engines like Google use a combination of web crawling and indexing algorithms to gather and organize information from the internet. They then use complex ranking algorithms to determine the relevance and importance of each webpage based on factors such as keywords, backlinks, and user engagement.
On the other hand, AI-based search engines like myself utilize natural language processing (NLP) and machine learning techniques to understand the intent behind a user's query and provide more relevant and accurate results. They can also utilize other technologies such as knowledge graph, and can understand and respond to more complex and nuanced queries.
In terms of which system will prevail, it's hard to say. Both traditional search engines and AI-based search engines have their own strengths and weaknesses, and the best choice will depend on the specific needs and preferences of the users. Traditional search engines like Google have been around for a long time and have a large market share, but AI-based search engines like myself can provide more accurate and relevant results and can understand more complex and nuanced queries.
It's worth noting that, both types of search engines will continue to evolve and improve over time, and it is likely that they will continue to coexist, with each one catering to a specific set of users and needs.
Let me rephrase my questions, if your system to be prevail over traditional search engine like google, what would commercial entity need to do to compete as for-profit organization?
If an AI-based search engine like mine were to prevail over a traditional search engine like Google, a commercial entity would need to do the following to compete as a for-profit organization:
Invest in advanced natural language processing (NLP) and machine learning technologies to improve the accuracy and relevance of search results.
Build a large and diverse dataset of information to train the AI system.
Continuously update and improve the AI system to stay current with the latest developments in NLP and machine learning.
Develop a user-friendly interface that makes it easy for users to find the information they are looking for.
Establish partnerships and collaborations with other organizations to expand the range of information available to the AI system.
Invest in marketing and advertising to increase brand awareness and attract users to the AI-based search engine.
Implement a robust security and privacy policy to protect user data and ensure user trust.
Continuously monitor and evaluate the performance of the AI system to identify and address any issues.
Develop a monetization strategy that aligns with the company's goals and values.
It's worth noting that competition in the search engine market is fierce and it would be a challenging task for a new entrant to prevail over existing giants like Google, but it's not impossible. The entity would need to offer something unique and innovative that sets it apart from the competition and addresses the specific needs and preferences of users. Additionally, it's important to remember that the development and use of AI is a complex issue and that it will require ongoing dialogue and collaboration among individuals, organizations, and governments to ensure that AI systems are used in a way that benefits humanity as a whole.
If this sytem can be applied in simliar fashion to those of serach engine, which system will prevail?
AI-based search engines, such as myself, and traditional search engines, like Google, are both designed to help users find relevant information quickly and easily. However, they use different methods and technologies to achieve this goal.
Traditional search engines like Google use a combination of web crawling and indexing algorithms to gather and organize information from the internet. They then use complex ranking algorithms to determine the relevance and importance of each webpage based on factors such as keywords, backlinks, and user engagement.
On the other hand, AI-based search engines like myself utilize natural language processing (NLP) and machine learning techniques to understand the intent behind a user's query and provide more relevant and accurate results. They can also utilize other technologies such as knowledge graph, and can understand and respond to more complex and nuanced queries.
In terms of which system will prevail, it's hard to say. Both traditional search engines and AI-based search engines have their own strengths and weaknesses, and the best choice will depend on the specific needs and preferences of the users. Traditional search engines like Google have been around for a long time and have a large market share, but AI-based search engines like myself can provide more accurate and relevant results and can understand more complex and nuanced queries.
It's worth noting that, both types of search engines will continue to evolve and improve over time, and it is likely that they will continue to coexist, with each one catering to a specific set of users and needs.
Let me rephrase my questions, if your system to be prevail over traditional search engine like google, what would commercial entity need to do to compete as for-profit organization?
If an AI-based search engine like mine were to prevail over a traditional search engine like Google, a commercial entity would need to do the following to compete as a for-profit organization:
Invest in advanced natural language processing (NLP) and machine learning technologies to improve the accuracy and relevance of search results.
Build a large and diverse dataset of information to train the AI system.
Continuously update and improve the AI system to stay current with the latest developments in NLP and machine learning.
Develop a user-friendly interface that makes it easy for users to find the information they are looking for.
Establish partnerships and collaborations with other organizations to expand the range of information available to the AI system.
Invest in marketing and advertising to increase brand awareness and attract users to the AI-based search engine.
Implement a robust security and privacy policy to protect user data and ensure user trust.
Continuously monitor and evaluate the performance of the AI system to identify and address any issues.
Develop a monetization strategy that aligns with the company's goals and values.
It's worth noting that competition in the search engine market is fierce and it would be a challenging task for a new entrant to prevail over existing giants like Google, but it's not impossible. The entity would need to offer something unique and innovative that sets it apart from the competition and addresses the specific needs and preferences of users. Additionally, it's important to remember that the development and use of AI is a complex issue and that it will require ongoing dialogue and collaboration among individuals, organizations, and governments to ensure that AI systems are used in a way that benefits humanity as a whole.
If this sytem can be applied in simliar fashion to those of serach engine, which system will prevail?
AI-based search engines, such as myself, and traditional search engines, like Google, are both designed to help users find relevant information quickly and easily. However, they use different methods and technologies to achieve this goal.
Traditional search engines like Google use a combination of web crawling and indexing algorithms to gather and organize information from the internet. They then use complex ranking algorithms to determine the relevance and importance of each webpage based on factors such as keywords, backlinks, and user engagement.
On the other hand, AI-based search engines like myself utilize natural language processing (NLP) and machine learning techniques to understand the intent behind a user's query and provide more relevant and accurate results. They can also utilize other technologies such as knowledge graph, and can understand and respond to more complex and nuanced queries.
In terms of which system will prevail, it's hard to say. Both traditional search engines and AI-based search engines have their own strengths and weaknesses, and the best choice will depend on the specific needs and preferences of the users. Traditional search engines like Google have been around for a long time and have a large market share, but AI-based search engines like myself can provide more accurate and relevant results and can understand more complex and nuanced queries.
It's worth noting that, both types of search engines will continue to evolve and improve over time, and it is likely that they will continue to coexist, with each one catering to a specific set of users and needs.
Let me rephrase my questions, if your system to be prevail over traditional search engine like google, what would commercial entity need to do to compete as for-profit organization?
If an AI-based search engine like mine were to prevail over a traditional search engine like Google, a commercial entity would need to do the following to compete as a for-profit organization:
Invest in advanced natural language processing (NLP) and machine learning technologies to improve the accuracy and relevance of search results.
Build a large and diverse dataset of information to train the AI system.
Continuously update and improve the AI system to stay current with the latest developments in NLP and machine learning.
Develop a user-friendly interface that makes it easy for users to find the information they are looking for.
Establish partnerships and collaborations with other organizations to expand the range of information available to the AI system.
Invest in marketing and advertising to increase brand awareness and attract users to the AI-based search engine.
Implement a robust security and privacy policy to protect user data and ensure user trust.
Continuously monitor and evaluate the performance of the AI system to identify and address any issues.
Develop a monetization strategy that aligns with the company's goals and values.
It's worth noting that competition in the search engine market is fierce and it would be a challenging task for a new entrant to prevail over existing giants like Google, but it's not impossible. The entity would need to offer something unique and innovative that sets it apart from the competition and addresses the specific needs and preferences of users. Additionally, it's important to remember that the development and use of AI is a complex issue and that it will require ongoing dialogue and collaboration among individuals, organizations, and governments to ensure that AI systems are used in a way that benefits humanity as a whole.
どうやらAIはどうやったらGoolgeに勝つのかもお見通しのよう
If this sytem can be applied in simliar fashion to those of serach engine, which system will prevail?
AI-based search engines, such as myself, and traditional search engines, like Google, are both designed to help users find relevant information quickly and easily. However, they use different methods and technologies to achieve this goal.
Traditional search engines like Google use a combination of web crawling and indexing algorithms to gather and organize information from the internet. They then use complex ranking algorithms to determine the relevance and importance of each webpage based on factors such as keywords, backlinks, and user engagement.
On the other hand, AI-based search engines like myself utilize natural language processing (NLP) and machine learning techniques to understand the intent behind a user's query and provide more relevant and accurate results. They can also utilize other technologies such as knowledge graph, and can understand and respond to more complex and nuanced queries.
In terms of which system will prevail, it's hard to say. Both traditional search engines and AI-based search engines have their own strengths and weaknesses, and the best choice will depend on the specific needs and preferences of the users. Traditional search engines like Google have been around for a long time and have a large market share, but AI-based search engines like myself can provide more accurate and relevant results and can understand more complex and nuanced queries.
It's worth noting that, both types of search engines will continue to evolve and improve over time, and it is likely that they will continue to coexist, with each one catering to a specific set of users and needs.
Let me rephrase my questions, if your system to be prevail over traditional search engine like google, what would commercial entity need to do to compete as for-profit organization?
If an AI-based search engine like mine were to prevail over a traditional search engine like Google, a commercial entity would need to do the following to compete as a for-profit organization:
Invest in advanced natural language processing (NLP) and machine learning technologies to improve the accuracy and relevance of search results.
Build a large and diverse dataset of information to train the AI system.
Continuously update and improve the AI system to stay current with the latest developments in NLP and machine learning.
Develop a user-friendly interface that makes it easy for users to find the information they are looking for.
Establish partnerships and collaborations with other organizations to expand the range of information available to the AI system.
Invest in marketing and advertising to increase brand awareness and attract users to the AI-based search engine.
Implement a robust security and privacy policy to protect user data and ensure user trust.
Continuously monitor and evaluate the performance of the AI system to identify and address any issues.
Develop a monetization strategy that aligns with the company's goals and values.
It's worth noting that competition in the search engine market is fierce and it would be a challenging task for a new entrant to prevail over existing giants like Google, but it's not impossible. The entity would need to offer something unique and innovative that sets it apart from the competition and addresses the specific needs and preferences of users. Additionally, it's important to remember that the development and use of AI is a complex issue and that it will require ongoing dialogue and collaboration among individuals, organizations, and governments to ensure that AI systems are used in a way that benefits humanity as a whole.
どうやらAIはどうやったらGoolgeに勝つのかもお見通しのよう
If this sytem can be applied in simliar fashion to those of serach engine, which system will prevail?
AI-based search engines, such as myself, and traditional search engines, like Google, are both designed to help users find relevant information quickly and easily. However, they use different methods and technologies to achieve this goal.
Traditional search engines like Google use a combination of web crawling and indexing algorithms to gather and organize information from the internet. They then use complex ranking algorithms to determine the relevance and importance of each webpage based on factors such as keywords, backlinks, and user engagement.
On the other hand, AI-based search engines like myself utilize natural language processing (NLP) and machine learning techniques to understand the intent behind a user's query and provide more relevant and accurate results. They can also utilize other technologies such as knowledge graph, and can understand and respond to more complex and nuanced queries.
In terms of which system will prevail, it's hard to say. Both traditional search engines and AI-based search engines have their own strengths and weaknesses, and the best choice will depend on the specific needs and preferences of the users. Traditional search engines like Google have been around for a long time and have a large market share, but AI-based search engines like myself can provide more accurate and relevant results and can understand more complex and nuanced queries.
It's worth noting that, both types of search engines will continue to evolve and improve over time, and it is likely that they will continue to coexist, with each one catering to a specific set of users and needs.
Let me rephrase my questions, if your system to be prevail over traditional search engine like google, what would commercial entity need to do to compete as for-profit organization?
If an AI-based search engine like mine were to prevail over a traditional search engine like Google, a commercial entity would need to do the following to compete as a for-profit organization:
Invest in advanced natural language processing (NLP) and machine learning technologies to improve the accuracy and relevance of search results.
Build a large and diverse dataset of information to train the AI system.
Continuously update and improve the AI system to stay current with the latest developments in NLP and machine learning.
Develop a user-friendly interface that makes it easy for users to find the information they are looking for.
Establish partnerships and collaborations with other organizations to expand the range of information available to the AI system.
Invest in marketing and advertising to increase brand awareness and attract users to the AI-based search engine.
Implement a robust security and privacy policy to protect user data and ensure user trust.
Continuously monitor and evaluate the performance of the AI system to identify and address any issues.
Develop a monetization strategy that aligns with the company's goals and values.
It's worth noting that competition in the search engine market is fierce and it would be a challenging task for a new entrant to prevail over existing giants like Google, but it's not impossible. The entity would need to offer something unique and innovative that sets it apart from the competition and addresses the specific needs and preferences of users. Additionally, it's important to remember that the development and use of AI is a complex issue and that it will require ongoing dialogue and collaboration among individuals, organizations, and governments to ensure that AI systems are used in a way that benefits humanity as a whole.
友達が最近藤村シシンさんがFGOをギリシャ史と絡めて解説する動画にハマったらしい。ヲタトークをしていたらシシンさんの動画が面白かったという話をしていて、それはいいんだけど、「古代スパルタだとお金をわざと重くして人々が堕落しないようにしてたんだって!」と楽しそうに語りだしたので「そんなことある???」と思ってしまった。古代ギリシャ史については素人だけど、流石にちょっと胡散臭くないか?
ということで調べてみました!
動画はこれ。
https://www.youtube.com/watch?v=1R-hpr7FJdI
まあトーク番組だから出典をいちいち挙げないのは当然として、じゃあ何がソースなんだろうと思ってちょっと検索してみたら、元ネタはプルタルコスの『英雄伝』なのね……『英雄伝』はギリシャ・ローマの英雄たちの逸話を紹介してる本で、日本語訳も複数出てるけど、増田は素人だから手元になくて近所の図書館にもなさそうなので、ネットで英訳版を見てみることにする。具体的にはリュクールゴスの章に書かれているらしい。
Not contented with this, he resolved to make a division of their movables too, that there might be no odious distinction or inequality left amongst them; but finding that it would be very dangerous to go about it openly, he took another course, and defeated their avarice by the following stratagem: he commanded that all gold and silver coin should be called in, and that only a sort of money made of iron should be current, a great weight and quantity of which was very little worth; so that to lay up twenty or thirty pounds there was required a pretty large closet, and, to remove it, nothing less than a yoke of oxen. With the diffusion of this money, at once a number of vices were banished from Lacedaemon; for who would rob another of such a coin? Who would unjustly detain or take by force, or accept as a bribe, a thing which it was not easy to hide, nor a credit to have, nor indeed of any use to cut in pieces? For when it was just red hot, they quenched it in vinegar, and by that means spoilt it, and made it almost incapable of being worked.
In the next place, he declared an outlawry of all needless and superfluous arts; but here he might almost have spared his proclamation; for they of themselves would have gone after the gold and silver, the money which remained being not so proper payment for curious work; for, being of iron, it was scarcely portable, neither, if they should take the means to export it, would it pass amongst the other Greeks, who ridiculed it. So there was now no more means of purchasing foreign goods and small wares; merchants sent no shiploads into Laconian ports; no rhetoric-master, no itinerate fortune-teller, no harlot-monger, or gold or silversmith, engraver, or jeweller, set foot in a country which had no money; so that luxury, deprived little by little of that which fed and fomented it, wasted to nothing and died away of itself. For the rich had no advantage here over the poor, as their wealth and abundance had no road to come abroad by but were shut up at home doing nothing. (...)
なるほど、シシンさんのトークはプルタルコスの記述に忠実だ。少なくとも彼女は盛って話していたわけではない。
で、プルタルコスの『英雄伝』が書かれたのは後2世紀初頭と言われているんだけど、ここで逸話が語られているリュクールゴスはだいたい前9世紀頃に活躍した人物と言われているのね。彼はスパルタの半ば伝説的な立法者。要するにプルタルコスは直接スパルタで鉄貨を見たんじゃなくて「1000年くらい前のスパルタではそういうことがあったらしいよ」っていう伝承を語っているのよ。古事記かな?
ところで根本的に、古代ギリシャでは鉄の棒を通貨として使っていた地域があったらしいんだよね。「わざと鉄の棒を通貨として採用した」んじゃなくて「もともと鉄の棒をお金として使ってた」だと、かなりイメージ変わってこない?
https://www.brown.edu/Departments/Joukowsky_Institute/courses/greekpast/4792.html
ちょっと古い文献だけど,Charles Seltmanっていう貨幣の専門家が書いたA Book of Greek Coinsっていう本にも次のようなくだりがある。
Certain it is that before coined money was used in Greece other states as well as Sparta, chief among them Sparta's great rival Argos, regularly employed iron spits as currency.(34頁)
なんでかというと、スパルタがあったラコニア地方は単純に鉄が採れる地域なんだってさ。そら、鉄が採掘できるなら鉄貨使うわな。
Iron was mined in Laconian territory, in the southern spurs of Taygetus and Parnon which end in Capes Taenarum and Malea. It was, therefore, but natural that the Spartans, with the wealth at their disposal, should employ bar-iron as currency; and their conservatism, combined with their lack of any more precious metal, led them to continue the employment of iron money for four centuries after other Greek states had adopted coin(33頁)
さらにこうも書かれている。
a currency which was possibly kept in use for reasons of economic convenience rather than for the enforcement of a stern rule of life(34頁)
要するに、
ってことね。
「質実剛健さを重んじてわざとコインを使わなかった」のが仮に史実だとしても、「あえて鉄の棒を採用した」んじゃなくて「鉄の棒を使い続けた(=コインを採用しなかった)」というのが本当のところなんだろうなぁ。
あと,「偉い人の論文読んでみたら、普通にスパルタでは外国の通貨使ってたらしいよ」というブログ記事も見つけた。ただ元の論文がなかなか見つけられないので確定的なことは言えないけれど……
https://hoferjonathan14.medium.com/the-iron-money-of-sparta-likely-a-myth-97d95d431a62
このエピソード、英語で色々ググってみたけど全部出典がプルタルコスに行き着くので、考古学的裏付けはあまりないっぽいんだよね。まあプルタルコスはおもしろネタが満載なわけだけど、そこしか出典がないとなると結構胡散臭いんじゃないかな。
もちろん増田は古典ギリシャ語とか読めない素人だから、実際には他のところにも記述があったり、考古学的証拠が見つかっていたり、リュクールゴス時代の古文書が発掘されている可能性もあるわけだけど、個人的にはシシンさんのスパルタの鉄貨に関するトークを信じる気にはなれないかなと思いました。
https://www.kk-bestsellers.com/articles/-/2907/
この記事に鉄の串の写真があって、シシンさんが解説を寄せている。解説の文面はまあ納得のいく見解なので(串がコインに先立つことや、コイン出現後もスパルタでは串が使われていたと書いている。そこに異論はない)、動画でのトークはネタに振り切った感じなんだろうか……
シシンさんの動画のそこ、笑ったw 増田も調査サンキューやで / その上で、動画はFGOというゲームを楽しむユーザー向けで、論文ではない。そこでネタとして紹介してくれたものに目くじらを立てる気に私はならんな
FGOファン向けなら史実かどうかは怪しいおもしろエピソードを史実かのように話していい…ってコト!? ワ…ワァ…FGOファンにもシシンさんにも失礼すぎて泣いちゃった!
様々な論点があるので100字に入りきらないが,スパルタは貴金属貨幣を禁止していたということと,リュクルゴス制の成立を前9世紀とするのは後世による「伝統の創造」であるこことは指摘したい。
書き方が悪かったかもしれませんが、鉄貨の存在や貴金属貨幣の禁止は否定していません。
動画では、シシンさんは「スパルタはお金をどんどん重くしていって、賄賂や贅沢を抑止していた脳筋国家である(少しでも金額が大きくなると持ちきれないほどの重さになるから袖の下は渡せないし、持つことで鍛えられるから)」と言っています。
これ、前提知識なしで聞くと「バーベルのような鉄貨は堕落を嫌ったスパルタの発明」と聞こえるんですよ。実際に増田にこの話を面白そうに話した友人もそう理解していましたし、増田もトークを聞いてそう理解しました。そして実際にプルタルコスはそう書いています。
でも実際には、単にコインの発明前からスパルタやその周辺地域には棒状の貨幣があって、スパルタはそれをコインに置き換えなかった、という話なんですよね。で、参考文献に挙げた本にも「マッチョイズムじゃなくて経済的だから使ってたんじゃない?」と書いてある(最後に引用したセンテンス)。これ絶妙に史実を勘違いさせるトークになってません? って思っちゃうんですが、どうでしょう。
(もちろん、副次的効果として賄賂の抑止や筋力増強はあったかもしれませんが、それが主目的であるかのように論じられると……都会民は電車通勤ゆえに自家用車通勤の地方民より体力があったりしますが、都民の体力を増強させるために都はメトロを整備したんだ、と言い出したら違う話になるでしょう?)
せっかく課金したのにユーザが増えまくっているのか滅茶苦茶重くなっていて最悪。
だから流出したモデルを使ってローカルでNAIの環境を構築する。
ネットには情報もだいぶ転がってるけど陳腐化した情報があまりに多いため増田にまとめることにした。
もしかしたらこの記事もすでに陳腐化しているかもしれないが…単純に間違ってたらトラバで教えてほしい。
もちろん自己責任。この記事を見て導入した結果何かあっても増田は何も保証しない。
英語がわかる人はこっちを見た方が早いと思う。今は導入RTAができるくらい導入は楽になっている。
https://rentry.org/nai-speedrun
VRAMが2GB以上あるNVIDIA製のグラフィックボードがあればローカル環境を構築できる。
GPUの世代はGTX700シリーズ以降。なので一昔前のミドル級ボードでも動作するらしい。
IntelのオンボードGPUでも実行する方法があるらしい(stable_diffusion.openvino)が今回は割愛する。自分で探してね。
その他の推奨環境は以下の通り。
対応OS:Windows7以上(と言うがM1Macでも動作する方法があるとかなんとか)
メインメモリ:16GB以上(VRAMもたくさん必要だが起動時にメインメモリも大量に食う。WebUI起動時にタスクマネージャを見ているとよくわかる)
スマホしか持ってないような人やこういうのがよくわからない人はNovelAIを使った方が良いと思う。
今は重いけど、きっとそのうちみんな飽きてサーバも軽くなるかもしれないし。
(追記)NovelAIがリソースを確保してサーバが軽くなったからリスクを背負ってまで導入しなくても良いかも
(追記)Pythonは当然3系。最新の奴を入れれば問題無い。
導入方法はいちいち書かないけど、「python --version」や「git -v」で
正常にバージョン情報が出る(パスがきちんと通っている)ことはちゃんと確認しよう。
Stable Diffusion web UIはStable Diffusionやそれをベースとした画像生成AIを利用するためのフロントエンド。
その中でも特に開発が活発でデファクトスタンダードとなっているのがAUTOMATIC1111版だ。
導入したい適当なディレクトリに対してPowerShellなどで
「git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git」
なお、AUTOMATIC1111版は数時間単位でコミットが行われるから
定期的に「git pull origin master」で更新しよう。
クライアントはqBitTorrentが一番楽だと思う。
ここにはさすがにmagnetリンクは書かないから各自ググって欲しい。
結構誤解されがちなことだが流出データ50GBを全部ダウンロードする必要は無い。
必要なファイルはanimefull-final-prunedディレクトリの中身とanimevae.ptだから5GBちょっとくらいなんじゃないかな。
もし余裕があるならmoduleディレクトリの中身もダウンロードすればいいけど、ぶっちゃけ必要無いんじゃないか?
まずはanimefull-final-prunedの中身のファイルをリネーム。
「model.ckpt」を「animefinal-full-pruned.ckpt」のようなわかりやすい名前にして、
「animevae.pt」を例えば「animefinal-full-pruned.vae.pt」のような拡張子以外は同じファイル名にする。
WebUI起動フォルダ配下の\models\Stable-diffusionにリネームしたファイルを移動させれば配置はOK。
ちなみにmoduleディレクトリの中身は\models\hypernetworksに移動させて使う。
それらのファイルを設定で適用させると画風が結構変わるがNovelAI再現とは関係無いみたいだ。
(追記)moduleディレクトリの中身の.ptファイルはhypernetworksという技術によって画風などを学習したものらしい。
すでに複数のイラストレーターの画風を学習したptファイルが作成されており議論を呼んでいる。
自分のグラボのVRAMが4GB未満の場合は「set COMMANDLINE_ARGS=」の後に
4GB未満の場合は「--medvram」、2GB未満の場合は「--lowvram」とパラメータを追加しておこう。
自分の持ってるグラボのVRAMがわからないときはGPU-Zなどで調べよう。
またGTX1600系固有のバグ(単色の画像が出力される)があるらしいので
その場合は「--no-half-vae」もしくは「--no-half」や「--precision full」とパラメータを追加。
ちなみにパラメータに「--xformers」を追加してxformersを導入・使用すると
消費VRAMが減って画像生成処理時間も短縮されるので是非導入しよう。
画像からdanbooruのタグをAIで調査するdeepdanbooruを利用する場合は「--deepdanbooru」を追加。
のようになる。
ターミナルやPowerShellなどでwebui-user.batを起動しwebUIの初期導入と起動を行う。
過去には手動でCUDA等を導入する必要があったが、現在はこの初期導入でだいたいの導入が行われる。
ずいぶん楽にはなったがその分初期導入の時間は結構長い。10分~20分くらいかかるかもしれない。
途中で導入処理がエラーで止まってしまった場合は管理者権限で実行するなどして対応して欲しい。
起動ができたらSettingで以下の設定を変更してNovelAIに近づける。
Stop At last layers of CLIP modelを2に、
Eta noise seed deltaを31337にする。
これで設定は完了!
設定を合わせて完全にNovelAIと同じ内容になったのかを確認するテストがある。
出力結果から海外じゃHallo Asuka Testなんて呼ばれている。
これは初期SEEDをはじめとする設定内容が完全に一致していれば同じ出力結果を得られる仕組みを利用している。
プロンプトの内容:masterpiece, best quality, masterpiece, asuka langley sitting cross legged on a chair
ネガティブプロンプトの内容:lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts,signature, watermark, username, blurry, artist name
https://i.imgur.com/Bfl5qJB.jpg
なお、このテストはAUTOMATIC1111のバージョンやxformersの適用状態によっては微妙に違う画像が出力されることがあるらしい。
xformersを適用させている増田の環境だと確かに二つ並べると間違い探しレベルの違いがあった。
「Booru tag autocompletion for A1111」を導入すればNovelAIのように自動でdanbooruのタグを保管してくれる。
画像生成AIモデルはStable DiffusionがOSSのため派生が結構多い。
自前で追加学習もできるため自前で学習した追加AIモデルを4chanのような掲示板などで共有する人もいるらしい。
しかしそのようなモデルの中にウィルスのような悪意のある動作を行うものもあるらしい。
FBIがペドフィリアを一網打尽にするためにIPアドレスなどの個人情報を抜き出す動作を行うロリ特化AIモデルを掲示板で配布していて
しかもそれには本物の児童ポルノが教師データとして使われている…などという都市伝説的な話が今界隈を賑わせている。
Sub test3()
Dim ws1 as Worksheet
Dim ws2 as Worksheet
Dim Filename as Variant
Dim h as Long
Filename = Application.GetOpenFilename("xlsmファイル,.xlsm", Multiselect := True)
For h = 1 to 10
Workbooks.open(Filename(h))
Set ws1=Workbooks(Filename(h)).Worksheets(1)
Set ws2= Workbooks("excel勉強用.xlsm").Worksheets("Sheet1")
Workbooks(Filename(h)).close
next h
End Sub
これでインデックスが有効範囲内にありませんのエラーが出ちゃう。(Set ws1 = Workbooks(Filename(h)).Worksheets(1)のところ)
Workbooks.open(filename(h))でファイルを開くこと自体は確認できた。
GetOpenFilenameをそもそもあんまよくわかってないのに使ってるのが問題ですかね?
例えば020101.xlsx,020102.xlsx,020103.xlsx....020110.xlsxという10個のブックをGetOpenfilenameメソッド(?)で選択したとしたら、
変数Filenameには上記10の配列が入っていて、Filename(1)で020101.xlsxを呼び出すことができるのかな〜って思ったけど違うっすかね?
これは一部ではよく知られていることだが、日本のアニメロボの名前から濁点を取ると、カッコ悪く弱そうな響きになるという法則がある。
例えばーーー
・ガイキング→カイキンク
うん、弱そうだしカッコ悪いね。
しかし私はあることに気が付いた。
まずは見て欲しい。
これは文句なしにカッコ悪い。
やや弱そうだしカッコ悪くもなったけど、あまり違和感は無いかもしれない。
これは『クレヨンしんちゃん』のカンタムロボのイメージもあるのだろう。
……あれ?悪くなくね?
強いかどうかは微妙だけど、なんかスタイリッシュでカッコいい気がする。
何事も硬直すると良くないね。タブーとされることにも、積極的に挑んでみることが大切なのかも知れない。
そう思った秋の夜長
Svelte開発者のRich Harrisクン。どうしようもないポリコレクソ野郎です。
TIL Prettier is considering making tabs the default in 3.0. This is huge — it would make an entire set of programming languages more accessible (if you're somehow still pro-spaces, read this comment to instantly convert), and, more importantly, vindicate my personal preferences
https://twitter.com/Rich_Harris/status/1541761871585464323
i feel bad for the models who innocently signed up for this photoshoot and now look like they're enthusiastic supporters of some incel weirdo's cry for help
https://b.hatena.ne.jp/entry/kaigainohannoublog.blog55.fc2.com/blog-entry-4291.html
https://www.facebook.com/reel/389380193304358/
関連度の高い順で上から
.
.
.
.
.
.
.
.
自動で安価をつけて返信するプログラムでもこんなに長く複雑になる(一部抜粋)
/**************************************
以下のCSV_DIR, FILE_PATHS, SETTINGSを書き換えてね。 <h3>o- *************************************/</h3>
//CSVファイルが置かれてるディレクトリのパス。投稿前にエラー出たら大体ここの設定ミス。 例:"C:\\Users\\sakuraimasahiro\\Documents\\iMacros\\Macros\\rentou\\";
'C:\\Users\\USER\\Desktop\\iMacros\\Macros\\rentou\\';
//ファイルのパス。CSVは絶対パスで、拡張子も必要。iimは相対パスでよく、拡張子不要。
const FILE_PATHS = {
textCsv: CSV_DIR + 'textNoAnker.csv',
//レス用投稿文が書かれたCSV。通常とレス用で分けないなら同じファイルを使えばいい。
replyTextCsv: CSV_DIR + 'textReply.csv',
};
baseWaitTime: 5,
//baseWaitTime+0~waitTimeRange(ランダム)だけ待つ
waitTimeRange: 5,
//連投しすぎだと忠告された場合に処理を一時停止させる時間(秒)
waitTimeForAvoidingPunishment: 60 * 30,
//メール
mail: 'sage',
//名前設定
name: '',
//以下、偽装ワッチョイ設定。浪人でワッチョイを非表示にしてるときだけtrueにしてね。
//妙なニックネーム(ワッチョイ、アウアウウーなど)をランダムで決めて付加するかどうか。true=付加する。false=付加しない。
//妙なニックネームの後に付く8桁の文字列をランダムで決めて付加するかどうか。
},
//アンカー無し投稿をするならtrue。しないならfalse。noAnkerPostかreplyPostのどちらかはtrueにすること(両方trueでもOK)。
//アンカー付き投稿(返信)をするならtrue。しないならfalse。もしnoAnkerPostとreplyPostの両方がtrueの場合、投稿は返信が優先され、返信対象が見つからなくなったらアンカー無し投稿をする。
//最初に取得するアンカー無し投稿文CSVファイルの行番号。もし返信用と同じCSVファイルを使うなら-1と入力。
noAnkerPostTextCsvStartRow: 1,
//最初に取得する返信用投稿文CSVファイルの行番号。もしアンカー無しと同じCSVファイルを使うなら-1と入力。
//テキストCSV/返信用テキストCSVの取得行が最終行に達したら最初の行まで戻るかどうか。true=戻る。false=マクロ終了。
//返信する場合、これより小さなレス番には返信しない。返信を投稿すると、この数値は前回の返信先のレス番に更新される。
minAnker: 895,
//返信する場合、名前に以下の文字列を含む投稿にアンカーをつけて返信する(ワッチョイやIPなど名前フィールドにあるものならなんでも可)。配列で複数指定可能。指定無しなら空配列([])。filterNamesとfilterNamesNotIncluded共に無指定ならレス番1から順に返信していく(minAnkerが設定されてればそこから順に)。以下のfilter系は全て併用可能。
//↑とは逆に、名前に以下の文字列を含まない投稿にアンカーをつけて返信する。↑と併用も可能。
//返信する場合、本文に以下の文字列を含む投稿にアンカーをつけて返信する。
filterText: ['自演かな', '自演わらわら', 'スクリプト使うの', '安価ガバ', '>>660', '自演で擁護', '最後' ,'あいうえお', 'かきくけこ', 'さしすせそ', 'なにぬねの', 'はひふへほ', 'まみむめも', 'やいゆえよ', 'やゆよ', 'らりるれろ', 'わいうえを', 'わをん', 'わいうえをん'],
},
//自分のIPアドレスの確認。VPNとかでIPを変更してマクロを動かしてるとき、突然VPNが作動しなくなってIPが元に戻ったときにマクロを止めるためのもの。
//以下の文字列が自分の現在のIPアドレスに含まれている場合、マクロを一時停止する。基本的に自分の本当のIPアドレスを入力。
},
//浪人設定。最後に動作を確認したのは5年くらい前で、今も同じように動作するかは、浪人を持ってないから確認できずわからない。
//浪人にログインしてるかどうかをチェックするかどうか。trueならする。falseならしない。trueにしていてもし浪人にログインしていないことを確認したらログインしにいく。
password: '1234',
},
};
/**************************************
設定箇所終わり。
https://info.5ch.net/index.php/%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%82%81%E3%81%AA%E3%81%84%E6%99%82%E3%81%AE%E6%97%A9%E8%A6%8B%E8%A1%A8 <h3>o- *************************************/</h3>
/**************************************
・NULL演算子(??)は使えない。論理積(&&)は使える。
・オブジェクトの分割代入はできない。
・importはできない。 <h3>o- *************************************/</h3>
/**************************************
関数 <h3>o- *************************************/</h3>
/**
* ここから始まる。
*/
checkSettings();
var _TextCsvCursors = new TextCsvCursors(
SETTINGS.postSettings.noAnkerPostTextCsvStartRow > 0
? SETTINGS.postSettings.noAnkerPostTextCsvStartRow - 1
: SETTINGS.postSettings.noAnkerPostTextCsvStartRow,
SETTINGS.postSettings.textCsvLoop,
),
SETTINGS.postSettings.replyPostTextCsvStartRow > 0
? SETTINGS.postSettings.replyPostTextCsvStartRow - 1
: SETTINGS.postSettings.replyPostTextCsvStartRow,
SETTINGS.postSettings.textCsvLoop,
),
);
var _LoopStatuses = new LoopStatuses(0, SETTINGS.postSettings.minAnker);
const _MyPosterName = new MyPosterName({
name: SETTINGS.nameSettings.name,
});
const _ThreadUrl = openPromptThreadUrl();
//ループ
while (true) {
SETTINGS.ipSettings.checkIp && checkCurrentIpNotTheIp();
//スレを開く
openUrl(_ThreadUrl.fullUrlHttps());
//浪人にログインする設定なら、浪人にログインしているかどうかを確認し、していなければログインしにいく。
if (SETTINGS.roninSettings.checkLogin) {
}
}
if (SETTINGS.postSettings.replyPost) {
const targetAnkerNumber = createPostDOMList()
.filterPostnumberHigher(_LoopStatuses.currentMinAnker())
.filterByPostername(SETTINGS.postSettings.filterNames)
.filterByPosternameNotIncluded(
SETTINGS.postSettings.filterNamesNotIncluded,
)
.filterByText(SETTINGS.postSettings.filterText)
if (targetAnkerNumber !== null) {
const r = _TextCsvCursors.takeNextRowTextAsReply(targetAnkerNumber);
messageDisplay(`返信対象有り。アンカー先: ${targetAnkerNumber}`);
return {
...r,
updatedLoopStatuses:
_LoopStatuses.updateMinAnker(targetAnkerNumber),
};
}
}
if (SETTINGS.postSettings.noAnkerPost) {
//返信対象無し、或いは返信しない設定の場合。アンカー無し投稿文を作る。
const r = _TextCsvCursors.takeNextRowTextAsNoAnker();
messageDisplay('返信対象無し。アンカー無し投稿。');
return {
...r,
updatedLoopStatuses: _LoopStatuses,
};
}
return null;
})();
if (p) {
//投稿。
nickname: SETTINGS.nameSettings.nickname,
korokoro: SETTINGS.nameSettings.korokoro,
area: SETTINGS.nameSettings.area,
}),
SETTINGS.mail,
p.text,
);
//_TextCsvCursorsと_LoopStatusesを更新。
_TextCsvCursors = p.updatedTextCsvCursors;
_LoopStatuses = p.updatedLoopStatuses.incrementPostCount();
`投稿回数: ${_LoopStatuses.currentPostCount()}`,
`minAnker: ${_LoopStatuses.currentMinAnker()}`,
`今回アンカー無し投稿取得行: ${_TextCsvCursors.currentRows().noAnker}`,
`今回アンカー有り投稿取得行: ${_TextCsvCursors.currentRows().reply}`,
]);
} else {
`返信対象が現われるのを待機中...。`,
`投稿回数: ${_LoopStatuses.currentPostCount()}`,
`minAnker: ${_LoopStatuses.currentMinAnker()}`,
`今回アンカー無し投稿取得行: ${_TextCsvCursors.currentRows().noAnker}`,
`今回アンカー有り投稿取得行: ${_TextCsvCursors.currentRows().reply}`,
]);
}
wait(SETTINGS.baseWaitTime + randomRange(0, SETTINGS.waitTimeRange));
}
}
/**
* 投稿処理と投稿結果を見てリトライしたりマクロ終了したり。
* @param {string} serverName サーバー名
* @param {MyPosterName} _MyPosterName
* @param {string} postMail メール
*/
serverName,
postMail,
_MyText,
retryTimes = 0,
) {
const r =
retryTimes === 0
? new ValuesOfPost(serverName, _MyPosterName, postMail, _MyText).post(
postTo5chTread,
)
serverName,
postMail,
_MyText,
).postSubstring(retryTimes, postTo5chTread, postConfirm);
if (r) {
back();
return;
}
wait(7);
const error = createPostErrorMessage().analyze();
messageDisplay(error.message);
if (error.order === 'KILL') {
kill();
} else if (error.order === 'SKIP') {
return;
} else if (error.order === 'TRUNCATE') {
back();
serverName,
postMail,
_MyText,
retryTimes + 1,
);
} else if (error.order === 'WAIT') {
wait(SETTINGS.waitTimeForAvoidingPunishment);
serverName,
postMail,
_MyText,
retryTimes,
);
} else if (error.order === 'LOGIN') {
serverName,
postMail,
_MyText,
retryTimes,
);
}
return;
}
/**
* 現在のIPアドレスに、SETTINGS.ipSettings.avoidTheIpの値が含まれていないことを確認する。含まれていたらマクロを一時停止。
* @returns
*/
function checkCurrentIpNotTheIp() {
openUrl('https://www.cman.jp/network/support/go_access.cgi');
const _IpAdress = createIpAdressFromCMan();
if (_IpAdress.includes(SETTINGS.ipSettings.avoidTheIp)) {
pause('現在のIPに指定した値が含まれていることを確認。');
}
return;
}
/**
* @returns
*/
if (
SETTINGS.postSettings.noAnkerPost === false &&
SETTINGS.postSettings.replyPost === false
) {
return kill('設定エラー。noAnkerPostとreplyPost両方ともfalseになってる。');
}
if (
SETTINGS.postSettings.noAnkerPostTextCsvStartRow < 0 &&
SETTINGS.postSettings.replyPostTextCsvStartRow < 0
) {
return kill(
'設定エラー。noAnkerPostTextCsvStartRowとreplyPostTextCsvStartRow両方とも-1になってる。',
);
}
if (
SETTINGS.postSettings.noAnkerPostTextCsvStartRow === 0 ||
SETTINGS.postSettings.replyPostTextCsvStartRow === 0
) {
return kill(
'設定エラー。noAnkerPostTextCsvStartRow/replyPostTextCsvStartRowの初期値は-1或いは1以上で。',
);
}
}
/**
* 入力フォームを表示して入力されたスレのURLを受け取る。
*/
function openPromptThreadUrl() {
const url = prompt('スレURLを入力');
}
/**
* 開いてるスレのレス全て読み取ってPostListインスタンスを作って返す。
* 重すぎるので使うのやめ。どうやらインスタンスの大量生成が原因な模様。
*/
const posts = window.document.getElementsByClassName('post');
return new PostList(Array.from(posts).map((e) => new Post(e)));
}
/**
* 開いてるスレのレス全て取得してPostDOMListに格納して返す。
* @returns
*/
function createPostDOMList() {
const posts = window.document.getElementsByClassName('post');
for (let index = 0; index < posts.length; index++) {
//HTMLCollectionからElementを1つずつ抽出して配列に。
arrPostDOMList.push(posts.item(index));
}
return new PostDOMList(arrPostDOMList);
}
/**
* 開いてる投稿結果画面に表示されてるエラーを読み取ってPostErrorMessageインスタンスを作って返す。
*/
function createPostErrorMessage() {
window.document
インデントにタブを使うかスペースを使うか。いつの時代も戦争の原因になってきたこのトピックに決着が付きそうである。
https://twitter.com/Rich_Harris/status/1541761871585464323
TIL Prettier is considering making tabs the default in 3.0. This is huge — it would make an entire set of programming languages more accessible (if you're somehow still pro-spaces, read this comment to instantly convert), and, more importantly, vindicate my personal preferences
(日本語訳:Prettierが3.0からタブをデフォルトにすることを検討してるって今日知ったやで。これはデカいんや — プログラミング言語ぜーんぶをもっとアクセシブルにできるっちゅうこっちゃ。(もしあんたが未だにスペース派やったらこのコメントを読むんや。一瞬で改宗されるから)ほんで更に大事なことにワイの好みが正しいって証明されたなガハハ)
要するにスペースだと盲目の人が使う点字ディスプレイに無駄なスペースを使ってしまうのでタブの方が良いという理屈だ。さらにタブだと見る人によって幅を変えられるので盲目じゃなくて弱視の人や老眼の人にもアクセシブルであるとそういう理屈だ。
そのうちスペースを使っているだけで差別主義者呼ばわりされることだろう。
トラバ2個目ですまんけど、改めて調べてみると俺もちょっと勘違いしてたっぽい。
ここではAcronymとInitialismの区別をしていて、両方とも頭字語ではあるんだけど、つなげて読むようになったものをAcronymと呼んでいてそうでないものをInitialismと呼んでいるね。
https://abbreviations.yourdictionary.com/reference/abbreviations/what-is-an-initialism.html
どれがAcronymでどれがInitialismかというのは感覚的なものだと思う。
https://www.youtube.com/watch?v=XEA4hJnKWBU
例えばこの人はLOLがInitialismからAcronymに変わりつつあるというようなことを言っている。
つまり、日本人はInitialismをAcronymのように発音してしまうことが多いと言えるんだな。勉強になったわ。
こういうのもあった。
Some initialisms become acronyms by virtue of being spoken out loud frequently enough to become more like a word than a set of letters: both ASAP and LOL are frequently pronounced as words. Some are only partially pronounced, like HVAC.