Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

「Object」を含む日記 RSS

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

2025-02-15

いちばんやさしいローカル LLM」って記事見ながら、

意味わからんけどコピペして進めてみたけど、

rye run quantkit gguf Swallow-MS-7b-v0.1/ --output Swallow-MS-7b-v0.1_Q4_K_M.gguf Q4_K_M

のところで、「AttributeError: 'Tensor' object has no attribute '_lazy'」とか言われて困っちゃった…😟

別の記事試すかな…

2025-01-17

[] The Comprehensive Compendium of Programming Wisdom: Navigating the Multidimensional Landscape of Software Craftsmanship

Programming proficiency necessitates a comprehensive understanding of multifaceted concepts, paradigms, and philosophies that underpin the art and science of software development. The Unix philosophy, with its emphasis on modularity, simplicity, and composability, serves as a foundational ethos for elegant code design. This philosophy advocates for creating small, focused programs that excel at singular tasks, facilitating the construction of complex systems through the judicious composition of these atomic units.

Algorithmic Mastery and Data Structure Optimization

Proficient programmers must possess an encyclopedic knowledge of algorithms and data structures, enabling them to architect solutions with optimal time and space complexity. This encompasses a deep understanding of sorting algorithms (e.g., quicksort, mergesort), searching techniques (binary search, depth-first search), and advanced data structures (red-black trees, B-trees, Fibonacci heaps) The ability to analyze algorithmic efficiency using Big O notation is paramount for creating scalable solutions.

Paradigmatic Versatility

Object-Oriented Programming (OOP)

OOP principles—encapsulation, inheritance, and polymorphism—form the bedrock of modern software architecture. Mastery of design patterns (e.g., Singleton, Factory, Observer) and SOLID principles is crucial for creating maintainable and extensible codebases.

Functional Programming (FP)

The FP paradigm, with its emphasis on immutability and pure functions, offers a powerful approach to managing complexity and facilitating parallel execution. Proficiency in higher-order functions, currying, and monads is essential for leveraging FP's full potential.

Advanced Language Features and Metaprogramming

Expertise in language-specific advanced features, such as C++'s template metaprogramming or Python's metaclasses, allows for the creation of highly generic and reusable code. Understanding compiler theory and the ability to write domain-specific languages (DSLs) further expands a programmer's capabilities.

Concurrent and Parallel Programming

In an era of multi-core processors and distributed systems, mastery of concurrent programming models (e.g., actor model, communicating sequential processes) and parallel algorithms is indispensable. This includes proficiency in lock-free data structures, memory models, and synchronization primitives.

Systems Programming and Low-Level Optimization

A deep understanding of computer architecture, operating systems, and memory management enables the creation of highly optimized, low-level code. This encompasses knowledge of cache coherence protocols, CPU pipeline optimization, and assembly language programming.

Security and Cryptography

In an increasingly interconnected world, a thorough grasp of cryptographic principles, secure coding practices, and common attack vectors (e.g., buffer overflows, SQL injection) is crucial for developing robust and secure systems.

Version Control and Collaborative Development

Proficiency in distributed version control systems (e.g., Git) and collaborative development practices (code reviews, continuous integration) is essential for effective team-based software development.

Testing and Quality Assurance

Advanced testing methodologies, including property-based testing, fuzzing, and formal verification techniques, are indispensable for ensuring software reliability and correctness.

 

In conclusion, the pantheon of programming knowledge extends far beyond mere syntax mastery. It encompasses a rich tapestry of theoretical concepts, practical skills, and philosophical approaches that, when harmoniously integrated, enable the creation of elegant, efficient, and robust software systems. The relentless pursuit of this multifaceted expertise is the hallmark of a truly accomplished programmer.

2025-01-10

Need Help with Java? Get Expert Programming Assignment Assistance

Java is one of the most widely used programming languages today, powering everything from mobile apps to enterprise-level software solutions. With its simplicity, versatility, and scalability, it is no wonder that many students pursuing computer science, software engineering, or related fields are required to learn Java as part of their curriculum. However, mastering Java programming can be a challenging task, and many students struggle to complete their assignments on time. If you find yourself overwhelmed with Java programming assignments, expert help is available to guide you through the complexities and ensure your academic success.

Java programming assignments often require students to write code that is both efficient and effective, while also ensuring that it is properly structured and debugged. This can be daunting for beginners or those with limited experience. Furthermore, Java involves understanding complex concepts such as object-oriented programming (OOP), algorithms, data structures, and more. With so much to learn and implement, it is easy to feel stuck, especially when deadlines are approaching.

The Importance of Java Programming Skills

Before we dive into the solutions, it's essential to understand why Java programming skills are so important. Java is not only used in academic settings but is also highly valued in the professional world. Its usage spans across industries, from finance to healthcare, and it's one of the most sought-after skills by employers. Java's robust frameworks and tools, such as Spring, Hibernate, and JavaFX, allow developers to create highly functional and secure applications.

For students, mastering Java gives them a competitive edge in the job market. Strong programming skills in Java open up opportunities for internships, freelance work, and permanent roles in software development, app development, and system engineering. Hence, excelling in Java programming assignments will not only help students complete their coursework but also prepare them for future career success.

Why You Need Expert Help with Java Assignments

If you are struggling with Java programming assignments, expert help can make a significant difference. Experts in the field can provide guidance on a variety of aspects, such as understanding key concepts, writing efficient code, and debugging errors. Whether you need help grasping object-oriented principles or implementing complex algorithms, professional programmers can offer tailored solutions to your specific needs.

Java programming assignments require precision and attention to detail, which can sometimes be overwhelming for students. By seeking Java programming assignment help, you can gain insights from professionals who have years of experience and knowledge of the language. They will help you improve your coding skills, and provide tips and best practices for writing cleaner, more maintainable code.

Additionally, experts can assist in optimizing your assignments, ensuring your code runs smoothly and meets all the required specifications. This is particularly important if you're working on a complex assignment with multiple parts, where small errors can lead to bigger issues. With expert assistance, you can avoid common mistakes and submit assignments that meet the highest academic standards.

How to Get Java Programming Assignment Help

Finding the right help for your Java assignments is easy. Many online platforms offer Java programming assignment help services, providing students with access to qualified experts who specialize in Java. These services typically include customized solutions, real-time support, and the option to communicate directly with tutors or assignment helpers.

To get the most out of these services, ensure that you provide clear details about your assignment requirements. This helps the experts understand your needs and deliver accurate solutions. Additionally, using Java programming assignment help allows you to learn the concepts behind your assignments, which will be beneficial in your future courses or professional projects.

In conclusion, mastering Java programming is essential for students pursuing a career in tech. However, the complexity of Java assignments can make it difficult to achieve success on your own. With expert help, you can strengthen your programming skills, overcome challenges, and confidently complete your assignments. Don’t hesitate to seek assistance and ensure that your Java programming journey is a smooth and rewarding one.

Visit here: https://myassignmenthelp.com/programming-help/java-programming-assignment-help.html

Need Help with Java? Get Expert Programming Assignment Assistance

Java is one of the most widely used programming languages today, powering everything from mobile apps to enterprise-level software solutions. With its simplicity, versatility, and scalability, it is no wonder that many students pursuing computer science, software engineering, or related fields are required to learn Java as part of their curriculum. However, mastering Java programming can be a challenging task, and many students struggle to complete their assignments on time. If you find yourself overwhelmed with Java programming assignments, expert help is available to guide you through the complexities and ensure your academic success.

Java programming assignments often require students to write code that is both efficient and effective, while also ensuring that it is properly structured and debugged. This can be daunting for beginners or those with limited experience. Furthermore, Java involves understanding complex concepts such as object-oriented programming (OOP), algorithms, data structures, and more. With so much to learn and implement, it is easy to feel stuck, especially when deadlines are approaching.

The Importance of Java Programming Skills

Before we dive into the solutions, it's essential to understand why Java programming skills are so important. Java is not only used in academic settings but is also highly valued in the professional world. Its usage spans across industries, from finance to healthcare, and it's one of the most sought-after skills by employers. Java's robust frameworks and tools, such as Spring, Hibernate, and JavaFX, allow developers to create highly functional and secure applications.

For students, mastering Java gives them a competitive edge in the job market. Strong programming skills in Java open up opportunities for internships, freelance work, and permanent roles in software development, app development, and system engineering. Hence, excelling in Java programming assignments will not only help students complete their coursework but also prepare them for future career success.

Why You Need Expert Help with Java Assignments

If you are struggling with Java programming assignments, expert help can make a significant difference. Experts in the field can provide guidance on a variety of aspects, such as understanding key concepts, writing efficient code, and debugging errors. Whether you need help grasping object-oriented principles or implementing complex algorithms, professional programmers can offer tailored solutions to your specific needs.

Java programming assignments require precision and attention to detail, which can sometimes be overwhelming for students. By seeking Java programming assignment help, you can gain insights from professionals who have years of experience and knowledge of the language. They will help you improve your coding skills, and provide tips and best practices for writing cleaner, more maintainable code.

Additionally, experts can assist in optimizing your assignments, ensuring your code runs smoothly and meets all the required specifications. This is particularly important if you're working on a complex assignment with multiple parts, where small errors can lead to bigger issues. With expert assistance, you can avoid common mistakes and submit assignments that meet the highest academic standards.

How to Get Java Programming Assignment Help

Finding the right help for your Java assignments is easy. Many online platforms offer Java programming assignment help services, providing students with access to qualified experts who specialize in Java. These services typically include customized solutions, real-time support, and the option to communicate directly with tutors or assignment helpers.

To get the most out of these services, ensure that you provide clear details about your assignment requirements. This helps the experts understand your needs and deliver accurate solutions. Additionally, using Java programming assignment help allows you to learn the concepts behind your assignments, which will be beneficial in your future courses or professional projects.

In conclusion, mastering Java programming is essential for students pursuing a career in tech. However, the complexity of Java assignments can make it difficult to achieve success on your own. With expert help, you can strengthen your programming skills, overcome challenges, and confidently complete your assignments. Don’t hesitate to seek assistance and ensure that your Java programming journey is a smooth and rewarding one.

Visit here: https://myassignmenthelp.com/programming-help/java-programming-assignment-help.html

2024-12-23

Need Help with Java? Get Expert Programming Assignment Assistance

Java is one of the most widely used programming languages today, powering everything from mobile apps to enterprise-level software solutions. With its simplicity, versatility, and scalability, it is no wonder that many students pursuing computer science, software engineering, or related fields are required to learn Java as part of their curriculum. However, mastering Java programming can be a challenging task, and many students struggle to complete their assignments on time. If you find yourself overwhelmed with Java programming assignments, expert help is available to guide you through the complexities and ensure your academic success.

Java programming assignments often require students to write code that is both efficient and effective, while also ensuring that it is properly structured and debugged. This can be daunting for beginners or those with limited experience. Furthermore, Java involves understanding complex concepts such as object-oriented programming (OOP), algorithms, data structures, and more. With so much to learn and implement, it is easy to feel stuck, especially when deadlines are approaching.

The Importance of Java Programming Skills

Before we dive into the solutions, it's essential to understand why Java programming skills are so important. Java is not only used in academic settings but is also highly valued in the professional world. Its usage spans across industries, from finance to healthcare, and it's one of the most sought-after skills by employers. Java's robust frameworks and tools, such as Spring, Hibernate, and JavaFX, allow developers to create highly functional and secure applications.

For students, mastering Java gives them a competitive edge in the job market. Strong programming skills in Java open up opportunities for internships, freelance work, and permanent roles in software development, app development, and system engineering. Hence, excelling in Java programming assignments will not only help students complete their coursework but also prepare them for future career success.

Why You Need Expert Help with Java Assignments

If you are struggling with Java programming assignments, expert help can make a significant difference. Experts in the field can provide guidance on a variety of aspects, such as understanding key concepts, writing efficient code, and debugging errors. Whether you need help grasping object-oriented principles or implementing complex algorithms, professional programmers can offer tailored solutions to your specific needs.

Java programming assignments require precision and attention to detail, which can sometimes be overwhelming for students. By seeking Java programming assignment help, you can gain insights from professionals who have years of experience and knowledge of the language. They will help you improve your coding skills, and provide tips and best practices for writing cleaner, more maintainable code.

Additionally, experts can assist in optimizing your assignments, ensuring your code runs smoothly and meets all the required specifications. This is particularly important if you're working on a complex assignment with multiple parts, where small errors can lead to bigger issues. With expert assistance, you can avoid common mistakes and submit assignments that meet the highest academic standards.

How to Get Java Programming Assignment Help

Finding the right help for your Java assignments is easy. Many online platforms offer Java programming assignment help services, providing students with access to qualified experts who specialize in Java. These services typically include customized solutions, real-time support, and the option to communicate directly with tutors or assignment helpers.

To get the most out of these services, ensure that you provide clear details about your assignment requirements. This helps the experts understand your needs and deliver accurate solutions. Additionally, using Java programming assignment help allows you to learn the concepts behind your assignments, which will be beneficial in your future courses or professional projects.

In conclusion, mastering Java programming is essential for students pursuing a career in tech. However, the complexity of Java assignments can make it difficult to achieve success on your own. With expert help, you can strengthen your programming skills, overcome challenges, and confidently complete your assignments. Don’t hesitate to seek assistance and ensure that your Java programming journey is a smooth and rewarding one.

Visit here: https://myassignmenthelp.com/programming-help/java-programming-assignment-help.html

2024-10-30

anond:20241030102035

まり詳しくないけど説明しますよー。

まずCEDAWの報告書"Concluding observations of the Committee on the Elimination of Discrimination against Women"の読み方です。

この報告書本体ともいえる、"勧告"に関わる内容は"Principal areas of concern and recommendations"(主な懸念事項と勧告)というセクションにあります

セクションの題名通り、懸念点を述べる→勧告するという流れで各項目について述べています。太字の方が勧告です。

懸念勧告はセットなのですが、元増田さんは日本勧告部分と他国懸念部分を比較しているため、日本の方がきつく言われていると感じたのではないでしょうか。

例えば懸念パート勧告パートを並べてみると以下のようになります。(日本vs韓国なので夫婦別姓関連)

日本(CEDAW/C/JPN/CO/9):

11. ... The Committee also notes with concern that several of its previous recommendations regarding existing discriminatory provisions have not been addressed, in particular:

(a) That no steps have been taken to revise article 750 of the Civil Code requiring married couples to use the same surname, which in practice often compels women to adopt their husbands’ surnames; ...

11. ... 委員会はまた、既存差別的規定に関するこれまでの勧告のいくつか、特に以下に対処していないことにも懸念を持って留意している。

(a) 夫婦同姓を義務付ける民法第 750 条を改正するための措置が講じられていないこと。この条項実質的女性に夫の姓を強制することが多い。...

12. ..., the Committee also recommends that the State party:

(a) Amend legislation regarding the choice of surnames for married couples in order to enable women to retain their maiden surnames after marriage; ...

12. ... 委員会はまた、締約国に対し次のことを勧告する:

(a) 女性結婚後も旧姓を保持できるように、夫婦の姓の選択に関する法律改正する;...

韓国(CEDAW/C/KOR/CO/9):

52.The Committee remains concerned that article 781 (1) of the Civil Code maintains the patrilineal principle, as it stipulates that a child may assume the mother’s surname only when the father agrees to it at the time of marriage, despite the decision of the Constitutional Court overturning the Hoju system. ...

52. 委員会は、憲法裁判所が保寿制度を覆したにもかかわらず、民法第781条(1)が父系原則を維持していることを依然として懸念している。同条は、子が結婚時に父親同意を得た場合にのみ、母親の姓を名乗ることができると規定している。...

53. The Committee calls upon the State party to amend article 781 (1) of the Civil Code to abolish the patrilineal principle in order to bring its laws into line with article 16 (1) (g) of the Convention. ...

53. 委員会は、締約国に対し、民法第781条第1項を改正し、父系原則廃止して、同国の法律女子差別撤廃条約条約第16条第1項(g)に沿わせるよう求める。...

「そうは言ってもcall(要求)とrecommend(勧告・推奨)は違うじゃん」と思われる方もいらっしゃるでしょう。

日本が前に勧告された時はurge(要請)だったのだし、言葉遣いが違っても別に変らんのでは?」と言ってしまってもいいのかも知れませんが、それとは別に少しややこしい現実存在しています

ここまでで言及の無かったリヒテンシュタイン公国のことも含めて少し説明いたしましょう。

Reservation留保)のお話

留保(りゅうほ)とは、国際法における制度で、国が多数国間条約について署名批准、受諾、承認または加入をする際に、当該条約特定規定に関して自国についての適用排除・変更する目的をもって行われる一方的宣言である

Wikipedia日本語版「留保」より引用(下線は引用者による)

女子差別撤廃条約条約では第28条で留保規定されており、結構な数の国が留保をもって条約批准しています。※

日本留保なく全ての条項を受け入れていますが(素晴らしい!)、

韓国は第16条第1項(g)(「夫及び妻の同一の個人的権利(姓及び職業選択する権利を含む。)」を確保する)を留保しており、

リヒテンシュタイン公国条約全般(正確には第1条)についてリヒテンシュタイン憲法第3条(王位継承に関する規定)を優先することを条件に条約批准しています

 ※女子差別撤廃条約条約は他の国際条約比較して留保が多すぎる(あとそれが無法すぎる)のが長年問題視されています

というわけで、日本に対しては「条約違反(の恐れ)の是正勧告」なのですが、韓国リヒテンシュタインに対しては「留保撤回勧告」なので、もしかしたら語気やニュアンスが違って感じられるかもしれませんね。

ついでにリヒテンシュタイン留保に関して報告書中で1回しか勧告されてないのですが、

Reservations

9.While respecting the legal sovereignty of the State party to freely decide who should be its Head of State, the Committee is concerned that the persistent exclusion of women from succession to the throne affects the implementation of the Convention as a whole in the State party.

9.委員会は、締約国国家元首を誰にするかを自由に決定する法的主権尊重する一方で、女性王位継承から排除され続けていることが、締約国における条約全体の実施に影響を及ぼすことを懸念する。

10. Reiterating its previous concern (CEDAW/C/LIE/CO/4 , para. 13), the Committee reminds the State party that it considers the reservation to article 1 of the Convention to be in contravention of the Convention and calls upon the State party to review its reservation, with a view to its withdrawal.

10. 委員会は、前回の懸念(CEDAW/C/LIE/CO/4、第13項)を繰り返し、締約国に対し、条約第1条に対する留保条約違反していると考えていることを想起し、留保撤回視野に入れて留保を見直すよう求める。

韓国の方はReservationsの項で1回勧告された後、Marriage and family relationsの項でもう1回勧告(さっき例示したやつです)されています

Reservations

8.The Committee remains concerned that the State party maintains its reservation to article 16 (1) (g) of the Convention.

8.委員会は、締約国条約第16条(1)(g)に対する留保を維持していることを引き続き懸念する。

9. The Committee recalls its previous recommendation ( CEDAW/C/KOR/CO/8 , para. 9) and its statement on reservations, adopted at its nineteenth session, in 1998, and considers that the reservation to article 16 (1) (g) of the Convention is incompatible with the object and purpose of the Convention and that it should be withdrawn.

9. 委員会は、前回の勧告(CEDAW/C/KOR/CO/8、第9項)及び1998年の第19回会期で採択された留保に関する声明を鑑み、条約第16条(1)(g)に対する留保条約趣旨及び目的に反しており、撤回されるべきであると考える。

韓国勧告されやすいのかもしれません。韓国だけに。韓国だけに。

2024-09-26

Fast and Affordable Assignment Help for Java Programming Students

Struggling with Java assignments? Look no further! Our fast and affordable assignment help for Java programming students ensures that you meet deadlines without breaking the bank. Java can be challenging, especially when dealing with complex coding, debugging, or object-oriented programming concepts. That’s why we offer assignment help Java services designed to simplify your workload.

With our Java programming assignment help, you get expert guidance from experienced programmers who understand the ins and outs of Java. We provide tailored solutions for assignments, whether you’re working on basic syntax, algorithms, or advanced topics like multithreading and APIs. Our team delivers high-quality work quickly, so you never have to worry about missing deadlines again.

Affordable, efficient, and reliable, our service is perfect for students who want to improve their coding skills while achieving top grades. Trust our professionals for timely help that fits your schedule and budget!

Visit here: https://myassignmenthelp.com/programming-help/java-programming-assignment-help.html

2024-07-19

anond:20240719211140

君は「SCP-093、通称 'Red Sea Object'」 を知っているかな?

赤い円盤の形をしたこオブジェクトは、触れた者を鏡の中のもう一つの世界へと誘う不思議な力を持っている。

その世界は、我々が知る現実とは異なる、奇妙で時には危険場所だ。

このSCP-093を手にした者は、自らの内面と向き合う旅へと出かけることになる。その旅はしばしば、自己の弱点や恐怖、さらには隠された願望や後悔を露呈させる。しかし、どんなに恐ろしいものが現れたとしても、それを直視することでしか前に進むことはできないのだ。

世の中には、ネイルを楽しむ女性馬鹿にするような人々もいるかもしれないが、それは自己の未熟さを他者投影しているだけに過ぎない。人は、自分と異なる他者理解しようとせずに批判することで、その実、自分の恐れや不安を覆い隠そうとしているのだ。

教訓:他者馬鹿にする暇があったら、自分内面を見つめ直し、自己成長に努めるべきである

2024-06-30

20240630[アタック25]Next 2024年6月30日 #118 乗り物好き日大会 2024-06-30結果

今週は通常尺

BSジャパネクストで日曜昼などに放送

日曜日の本放送だけ1時「25」分から

BS1からボタン2回(今だけ?)とか

ケーブルテレビSTBでは見られない場合があるようなのでBSパススルーとか

地域によってはSTBで見られるようになったかもしれないので最新情報確認

つながるジャパネットアプリ放送同期・見逃し配信あり

 

今日の答え(放送とは表現が異なる場合があります

・01 [ある乗り物名前]人力車

・02 ウリ(科

・03 フィラデルフィア

・04 [英語]ガルウイング

・05 スイス

・06 『トロッコ

・07 しんかい)6500

・08 インドネシア

・09 [一般問題]真珠(じゃないのよ涙は

10 [近似値]187.1(メートル

11 [2択]7(月

12 [すべて]福島 栃木 群馬 新潟

・13 オニヤンマ

・14 モンスターハンター

・15 池井戸潤 いけいどじゅん

・16 [英語]フロート

17 バイク川崎バイク

・18 キュロット(スカート

・19 [3択]ボリビア

20 [ふるさとクイズ][鹿児島県沖永良部島]じゃがいも

・21 [曲名頭文字]そくど

・22 Object オブジェクト

23 奈良(県

24 『もしも徳川家康が)総理大臣(になったら』

・25 [AC]高橋是清 たかはしこれきよ

・26 カルティエ

・27 [3択]4分の1

28 草枕

・29 インテル(・ミラノ

・30 生田絵梨花 いくたえりか

31 カンガルー

・32e [チェス]ポー

飯田和也 横倉ちか子 山本篤 大橋華子(仮)

CM キューティクル

・xx [ある都市名前]四日市市

2024-06-26

プロ出身者・機械学習出身者の問題コード

https://anond.hatelabo.jp/20240625191650

プロ出身者だけじゃなく、機械学習出身者も問題コードが多い

印象の問題ではなく実際に下記のようなコードが多い

念のため言っておくと底辺大や文系出身プログラマーも同様の傾向にある

正常系しか意識していない

一番多いのはコレで異常系の動作を全く意識していない

入力値に想定外のものが入ることを考えていなかったりI/Oに関わるエラーについても配慮がない

エラーが出たらとにかくtry-catchしてログ吐いて終わり」

ならまだマシな方で、「握りつぶして処理続行」みたいなことも平気でやる

「ここの処理でエラーログが出てるから対処よろしく

対処しました!(握りつぶし)」

とか滅茶苦茶多い

セキュリティに関する意識が低い

異常系の話と被るけど基本的性善説コード書くのでセキュリティの不備がめちゃくちゃ多い

API作らせてもリクエストの内容を信用して実装するしサニタイズチェックもしない

サーバー作らせてもroot共通ユーザーだけで運用するしファイル管理も滅茶苦茶

とにかく「目の前に与えられた課題を解く」だけのコードなので他のことに関する配慮が全く無い

定義しないし配慮しない

TypeScript使わせてもanyだらけだし、JavaとかだとObjectだらけ

うちはPythonでは型は使わないけど命名規則担保してるのにそれもガン無視実装する

結果としてできあがるのは

「一応、正常系では動いているけれど他の入力が来たときにどうなるか分からないし誰も修正できない」

っていうコード

最近はそういうコードはChatGPTにぶち込んで型付けて貰ったりするけど

8割ぐらいの確率でChatGPTも型付けできない状態になっててお手上げになる

コピペコードが異常に多い

ネット検索したコードコピペ、ではなくて

自分で書いたコードコピペめっちゃ多い

全く同じ処理なのにメソッド化しないでコピペしてたり

一部の変数を切り出すだけでメソッド化できるのにコピペしてる

そりゃ動くし性能も変わらないけど後でバグがあったり変更するときにすげー困る

これもChatGPTにぶち込んで「共通的な処理をメソッド化して」って言うとやってくれるのでめっちゃ便利

結果が出るだけでクソ遅い(機械学習出身者)

同じファイルをオンメモリに3回ぐらいロードしたり

ほぼ同じDBへの問い合わせが10回ぐらい走ってたり

クソ重いwhileループになってるメソッドフレンドリーに何回も呼び出したり

とにかく「最終的に出来上がるものが良好であれば時間がかかっても構わない」的なコードが非常に多い

プロ系はこういう人はあんまりいないんだが機械学習出身者はマジでこれ

彼らはデータを解析したり優秀なモデルを作るために頑張ってきたので継続的に処理負荷を減らす、みたいなことに意識が回ってくれない

「これはPoCですから

とか言うんだけど誰でも分かるようなクソ遅いコード書いておいて

「ここの処理は時間かかります

とかしれっと言ってくる

2023-12-18

J.S.ミル代議制統治論」(抄)

CONSIDERATIONS ON REPRESENTATIVE GOVERNMENT

By John Stuart Mill

Chapter X—Of the Mode of Voting.

The polling places should be so numerous as to be within easy reach of every voter, and no expenses of conveyance, at the cost of the candidate, should be tolerated under any pretext. The infirm, and they only on medical certificate, should have the right of claiming suitable carriage conveyance at the cost of the state or of the locality. Hustings, poll clerks, and all the necessary machinery of elections, should be at the public charge. Not only the candidate should not be required, he should not be permitted to incur any but a limited and trifling expense for his election. Mr. Hare thinks it desirable that a sum of £50 should be required from every one who places his name on the list of candidates, to prevent persons who have no chance of success, and no real intention of attempting it, from becoming candidates in wantonness or from mere love of notoriety, and perhaps carrying off a few votes which are needed for the return of more serious aspirants. There is one expense which a candidate or his supporters can not help incurring, and which it can hardly be expected that the public should defray for every one who may choose to demand it—that of making his claims known to the electors, by advertisements, placards, and circulars. For all necessary expenses of this kind the £50 proposed by Mr. Hare, if allowed to be drawn upon for these purposes (it might be made £100 if requisite), ought to be sufficient. If the friends of the candidate choose to go to expense for committees and canvassing, there are no means of preventing them; but such expenses out of the candidates's own pocket, or any expenses whatever beyond the deposit of £50 (or £100), should be illegal and punishable. If there appeared any likelihood that opinion would refuse to connive at falsehood, a declaration on oath or honor should be required from every member, on taking his seat, that he had not expended, nor would expend, money or money's worth beyond the £50, directly or indirectly, for the purposes of his election; and if the assertion were proved to be false or the pledge to have been broken, he should be liable to the penalties of perjury. It is probable that those penalties, by showing that the Legislature was in earnest, would turn the course of opinion in the same direction, and would hinder it from regarding, as has hitherto done, this most serious crime against society as a venial peccadillo. When once this effect has been produced, there need be no doubt that the declaration on oath or honor would be considered binding. [6] "Opinion tolerates a false disclaimer only when it already tolerates the thing disclaimed." This is notoriously the case with regard to electoral corruption. There has never yet been, among political men, any real and serious attempt to prevent bribery, because there has been no real desire that elections should not be costly. Their costliness is an advantage to those who can afford the expense by excluding a multitude of competitors; and any thing, however noxious, is cherished as having a conservative tendency, if it limits the access to Parliament to rich men. This is a rooted feeling among our legislators of both political parties, and is almost the only point on which I believe them to be really ill-intentioned. They care comparatively little who votes, as long as they feel assured that none but persons of their own class can be voted for. They know that they can rely on the fellow-feeling of one of their class with another, while the subservience of nouveaux enrichis who are knocking at the door of the class is a still surer reliance; and that nothing very hostile to the class interests or feelings of the rich need be apprehended under the most democratic suffrage, as long as democratic persons can be prevented from being elected to Parliament. But, even from their own point of view, this balancing of evil by evil, instead of combining good with good, is a wretched policy. The object should be to bring together the best members of both classes, under such a tenure as shall induce them to lay aside their class preferences, and pursue jointly the path traced by the common interest, instead of allowing the class feelings of the Many to have full swing in the constituencies, subject to the impediment of having to act through persons imbued with the class feelings of the Few.

https://www.gutenberg.org/files/5669/5669-h/5669-h.htm

2023-10-29

あとで読む」を消化するには、SAPIを使って音声ファイル化するのもありかと思う

SAPIの使い方(コマンド)は、以下のサイトに書いてある。

https://ascii.jp/elem/000/004/055/4055975/2/

これは、指定した文字列を音声ファイル化するコマンドであり、Windows PowerShell入力して使用する。

また、4万字の長文を変換してみたが、処理は1分以内に問題なく終わったので、

あとで読む」に入った長文サイトの消化にも使えるのではないか提案する次第である

サイトを音声ファイル化するまでの流れは、以下のようになるだろう。

①「あとで読むから、消化したいサイトを開く。

サイトの本文部分をコピーし、メモ帳などにペーストする。

引用符(")は、SAPIコマンド干渉するので消去する。メモ帳なら、ctrl+Hで置換画面を出して処理すればいいだろう。

(なお、改行・空白行は放置して問題ない。コマンドに影響はない。)

④ ③の文章前後に、SAPIコマンドを貼り付ける。

具体的には、上記記事にあるコマンドのうち、 $x=New-Object -ComObject から $x.Speak(" までを③の文章の前に、

") と$vs.Close() をその後ろに貼る。なお、コマンドの改行はそのまま残しておくこと。

上記記事コマンドは、Cドライブにtempフォルダ存在する前提で作られている。

エクスプローラを開いて、そのようなフォルダがあるか確認し、無ければ作成する。

Windows PowerShellを起動する。スタートメニューからみつからなくても、検索窓にそう入力すれば出てくるだろう。

⑦起動画面に④の文章を、コマンド含めて全部貼る。(1行ずつ分けて入力する必要はない。)

⑧Enterを押せばコマンドが実行され、そのうち、⑤のtempフォルダに音声ファイルWAVファイル)が作成される。

ファイル適当リネームし、持ち歩きやすい端末に移動させる。

これで、通勤時やランニング時にも、「あとで読む」を消化できるようになることでしょう。

なお、作成した音声ファイルは、サイズがかなり大きく(4万文字で200MBを超えた)、

視聴にも時間がかなりかかる(4万文字で2時間近く)可能性があるので、注意されたい。

2023-09-13

object captureとvisionPROが繋がってくるのか

マイノリティリポート」冒頭シーンの妻と子の亡霊を愛でるトムクルズを思い出した

2023-07-17

子供のころ近所に電気屋オープン開店セールとしてUFOの掴み取りをやっていた。UFOはUnidentified Flying Objectの略で日本語では未確認飛行物体と言うのだけど、平成の初期だった当時ではかなり珍しい存在で、UFO目当てでと見られる県外ナンバーの車もチラホラと見かけたほどだった。しかし当時の自分UFO価値が分からなかったので、UFOよりNintendo64の方が圧倒的に憧れの存在だった。そこで自分行列に何度も並んでUFO複数入手し、県外ナンバーの人に渡す代わりにスタンプを押してもらい、それを繰り返してスタンプ50個貯めてNintendo64と交換した。当時の任天堂製品物流初心会という問屋を通すのが普通で、その電気屋も2次なのか3次なのかは知らないが間接的には初心会経由でNintendo64仕入れていた。UFONintendo64本来まったく関係ないものだが、自分UFOスタンプNintendo64と交換したことで結びついてしまい、Nintendo64技術協力した米シリコングラフィックス社がめちゃくちゃブチギレたらしい。

2023-06-18

何の前触れもなくSVOCMとかほざいてんじゃねえよ

なんでそれがAやBやCやZじゃなくてSなんだ?って所からし意味不明になるだろ

さも当然のように話を進めるんじゃねえよ

ただ単に「SはSubject、VはVerb、OはObject、CはComplement、MはModifier」って言えばいいだけだろ

英語の授業なんだから

なんでその程度の考えも及ばないで講師とかやってるわけ

詩音ゴミ

2023-05-30

anond:20230530152511

https://www.dictionary.com/browse/report

report

[ ri-pawrt, -pohrt ]SHOW IPA

See synonyms for: report / reported / reporting / reports on Thesaurus.com

noun

an account or statement describing in detail an event, situation, or the like, usually as the result of observation, inquiry, etc.:

a report on the peace conference; a medical report on the patient.

a statement or announcement.

SEE MORE

verb (used with object)

to carry and repeat, as an answer or message; repeat, as what one has heard.

to relate, as what has been learned by observation or investigation.

SEE MORE

verb (used without object)

to prepare, make, or submit a report of something observed, investigated, or the like.

to serve or work as a reporter, as for a newspaper.

どの辞書で引いてもいいけど。

2023-04-25

メモ

Sub ImportTextFileWithoutDelimiter()

Dim fileName As String

Dim targetSheet As Worksheet

Dim fileNo As Integer

Dim content As String

Dim lines As Variant

Dim i As Long

' テキストファイルパス指定します。

fileName = "C:\path\to\your\file.txt"

' インポート先のワークシートを指定します。

Set targetSheet = ThisWorkbook.Worksheets("Sheet1")

' ファイルを開き、内容を読み込みます

fileNo = FreeFile()

Open fileName For Input As fileNo

content = Input(LOF(fileNo), fileNo)

Close fileNo

' 改行で分割し、配列に格納します。

lines = Split(content, vbCrLf)

' 各行をワークシートに貼り付けます

For i = LBound(lines) To UBound(lines)

targetSheet.Cells(i + 1, 1).Value = lines(i)

Next i

End Sub

Option Explicit

Sub ListFilesInFolder()

Dim folderPath As String

Dim targetSheet As Worksheet

Dim fso As Object, folder As Object, file As Object

Dim nextRow As Long

' フォルダパス指定します。

folderPath = "C:\path\to\your\folder"

' インポート先のワークシートを指定します。

Set targetSheet = ThisWorkbook.Worksheets("Sheet1")

' FileSystemObject作成します。

Set fso = CreateObject("Scripting.FileSystemObject")

Set folder = fso.GetFolder(folderPath)

' ヘッダーを書き込みます

With targetSheet

.Cells(1, 1).Value = "File Name"

.Cells(1, 2).Value = "File Size"

.Cells(1, 3).Value = "Timestamp"

End With

' 次の行番号を取得します。

nextRow = 2

' フォルダ内のファイル情報を取得し、ワークシートに書き込みます

For Each file In folder.Files

With targetSheet

.Cells(nextRow, 1).Value = file.Name

.Cells(nextRow, 2).Value = file.Size

.Cells(nextRow, 3).Value = file.DateLastModified

End With

nextRow = nextRow + 1

Next file

' オブジェクト解放します。

Set fso = Nothing

Set folder = Nothing

Set file = Nothing

End Sub

2023-03-24

ドローンUFO だよね

正体が実は中国調査ドローンだったとしてさ

でも未確認不明な飛行物体の時点で定義

未確認
Unidentified
飛行
Flying
物体
Object

すなわち UFO だよね

だったら多目的トイレから出てきた男性が本当は無辜だったとしても

わざわざ多目的トイレ使う動機ナゾ女性が「怖いよ」と感じた時点で、不審者ではあるよね

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