並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 101件

新着順 人気順

validの検索結果1 - 40 件 / 101件

  • 古典ドメインモデリングパターンの解脱 - 大吉祥寺.pm - kawasima

    2024年7月13日の大吉祥寺.pmで発表した「古典ドメインモデリング(パターン)の解脱」のスライドログです。 この2冊で書かれているドメインモデルパターンを「古典」の対象にします。 ドメインモデルパターンは「複雑さに対処するため」と述べています。が、古典では次の2点が課題となっていると考えます。 これら2点について個別に見ていきます。 まずドメインモデルパターンから。 Patterns of Enterprise Application Architecture(以降PofEAA)ではこのように定義されています。 PofEAAのドメインロジックの章で使われている「収益認識」の例を取り上げます。 ContractやProduct, RecognitionStrategyなどといったクラスが作られて、これらのインタラクションでビジネスロジックが実現されると説明されています。 では、これらのド

      古典ドメインモデリングパターンの解脱 - 大吉祥寺.pm - kawasima
    • Rustで有名アルゴリズムに挑戦(20) RustとTcl/TkでGUIアプリを作ろう

      普段使うツールをRustで作る場合、コマンドラインベースのものが多いと思います。それでも、Rustを使ってデスクトップアプリを作ることもできます。今回は、実績のあるGUIツールキットの「Tcl/Tk」をラップしたクレートを使って簡単なGUIを作成してみましょう。 Rustで単位変換ツールを作ったところ GUIツールキット「Tcl/Tk」のインストール Rustのライブラリを集約したcrates.ioを見ると、多くのGUIライブラリが存在します。Rustはさまざまな環境で動作することを想定していることもあり、「これこそGUIの定番」というものはありません。多くの選択肢があり、用途に応じて使い分けるのが正しい作法です。 WebブラウザベースのTauri、ゲーム開発と相性の良いegui、GTK+を利用するGTK-rs、Tcl/Tkをラップしたライブラリのtcl/tkなど、いろいろなクレートがあり

        Rustで有名アルゴリズムに挑戦(20) RustとTcl/TkでGUIアプリを作ろう
      • BM42: New Baseline for Hybrid Search - Qdrant

        Please note that the benchmark section of this article was updated after the publication due to a mistake in the evaluation script. BM42 does not outperform BM25 implementation of other vendors. Please consider BM42 as an experimental approach, which requires further research and development before it can be used in production.For the last 40 years, BM25 has served as the standard for search engin

          BM42: New Baseline for Hybrid Search - Qdrant
        • 空世界 〜HTMLの永遠仕様探訪記、或いは、文字なきsrcにまつわる寥々たる考察について〜

          問題 <img src=""> をブラウザで表示した時、どうなるか知っていますか?わざわざimg要素のsrc属性を空文字列にする機会がないので意外と知らないかもしれません。 もちろん画像は表示されず、(指定していれば)altが表示されます。 img要素のsrc属性を空文字列にすると、リンク切れになることがわかりました!いかがでしたか?(?) そのときHTMLImageElementは JavaScriptでsrcが空文字列のimg要素のDOMインスタンスを確認してみましょう。例として https://zenn.dev/stin を開き、Chrome開発者ツールを使ってsrc属性に空文字列を指定したimg要素を埋め込んでおきます。 そして次のJavaScriptを実行します。 const element = document.querySelector('img[src=""]'); con

            空世界 〜HTMLの永遠仕様探訪記、或いは、文字なきsrcにまつわる寥々たる考察について〜
          • Cloudflare 1.1.1.1 incident on June 27, 2024

            IntroductionOn June 27, 2024, a small number of users globally may have noticed that 1.1.1.1 was unreachable or degraded. The root cause was a mix of BGP (Border Gateway Protocol) hijacking and a route leak. Cloudflare was an early adopter of Resource Public Key Infrastructure (RPKI) for route origin validation (ROV). With RPKI, IP prefix owners can store and share ownership information securely,

              Cloudflare 1.1.1.1 incident on June 27, 2024
            • Ruby で一番呼ばれたり定義されたりするメソッドはなんでしょう、調べてみました! - STORES Product Blog

              テクノロジー部門で Ruby インタプリタ開発をしている笹田です。 Ruby ではメソッドを駆使してプログラミングをします。そんな Ruby を使っていると、一番使われているメソッド や 一番定義されているメソッド を知りたいと思ったことはありませんか? 私はありませんでした。 が、ものは試しと調べてみました! 調査は、あるタイミングの Ruby の RubyGems で取得できるすべての Gem (の各 Gem の最新版)を集めてきて、その中の .rb ファイルをすべて読み込み、字面上で呼び出されているメソッドと、定義されているメソッドを集計したものです。実際に動かしたときに呼ばれたり定義されたりするメソッドの数の集計ではないことに注意してください(それは、実行しないとわからないので、網羅的な調査は難しいのです)。 ちなみに、この記事は、Ruby のメソッド定義時に仮引数があるとき、それ

                Ruby で一番呼ばれたり定義されたりするメソッドはなんでしょう、調べてみました! - STORES Product Blog
              • Transactions blocks with endless methods

                I previously wrote a quick intro to the endless method in Ruby and now I will try to use it to name transaction blocks in Rails. This is a technique Kasper Timm Hansen shared in a reply to my previous post. I will try to refactor some examples from two open-source Rails repositories just to explore how the code looks. This open-ended exercise is a playground for experimenting with the code shape a

                  Transactions blocks with endless methods
                • Ridiculous vulnerability disclosure process with CrowdStrike Falcon Sensor | mod%log

                  Ridiculous vulnerability disclosure process with CrowdStrike Falcon Sensor Today, we publish a new advisory for a vulnerability in the CrowdStrike Falcon Sensor, that was found by our team-mate Pascal Zenker as part of a recent red-teaming engagement. The vulnerability is a case of insufficient control flow management, that allows an attacker with administrative privileges to bypass the Falcon Age

                  • Hackers abused API to verify millions of Authy MFA phone numbers

                    HomeNewsSecurityHackers abused API to verify millions of Authy MFA phone numbers Twilio has confirmed that an unsecured API endpoint allowed threat actors to verify the phone numbers of millions of Authy multi-factor authentication users, potentially making them vulnerable to SMS phishing and SIM swapping attacks. Authy is a mobile app that generates multi-factor authentication codes at websites w

                      Hackers abused API to verify millions of Authy MFA phone numbers
                    • Taylor Swift Is Not a Good Role Model

                      Taylor Swift is not just a pop icon; she's an economic powerhouse of epic proportions. When Taylor Swift comes to town, excitement grows, and cash flows. In fact, Swift is so influential that she has even birthed a new branch of economics called "Swiftonomics." Her current tour, the Eras Tour, has proven to be a veritable goldmine for host cities around the world, generating hundreds of millions i

                        Taylor Swift Is Not a Good Role Model
                      • 【Python】HANTSを用いた時系列補正【時系列データ】 - LabCode

                        HANTS法とは? HANTS(Harmonic ANalysis of Time Series)は、リモートセンシングデータの時系列解析に使用される手法の一つで、時系列データを周期的な成分(調和成分)に分解し、ノイズや異常値を除去しながらデータを再構築する手法です。今回はNDVIでよく利用されるZhou et al., 2015の方法をもとに、この方法の基本的な考え方と動作原理を以下に解説します。 HANTSの基本概念 1. 理論的背景 HANTS法は、フーリエ級数展開の考え方を基礎としています。フーリエ級数展開では、任意の周期関数を正弦波と余弦波の和で表現できるという原理を用います。HANTS法は、この原理を時系列データに適用し、データに含まれる様々な周期成分を抽出します。 2. 基本モデル HANTS法では、時系列データ $y(t_j)$を以下のようにモデル化します: $$ \til

                          【Python】HANTSを用いた時系列補正【時系列データ】 - LabCode
                        • Nostr and ATProto - Shreyan Jain

                          This post could’ve been titled “Nostr vs ATProto”, but that really isn’t what I wanted to do here. While I will be comparing and contrasting them a lot, and that’s kind of even the point of writing this, I didn’t want to really pit the two against each other at all, and especially not with the title. I also want to try avoiding commenting on the differences between the communities that have formed

                          • Using S3 as a container registry

                            Using S3 as a container registry a.k.a. Waiter, there's a whale in my bucket! 03 Jul, 2024 For the last four months I’ve been developing a custom container image builder, collaborating with Outerbounds1. The technical details of the builder itself might be the topic of a future article, but there’s something surprising I wanted to share already: you can use S3 as a container registry! You heard it

                              Using S3 as a container registry
                            • GitHub Actionsを利用したE2E自動化テストの実現 ~ Achieving E2E Automated Testing with GitHub Actions ~ 利用GitHub Actions实现E2E自动化测试 - スタディサプリ Product Team Blog

                              こんにちは。スタディサプリのQAチームです。 今回のBlogではスタディサプリで実施している自動化テストの一部の取り組みについて紹介させていただきます。 なお、スタディサプリQAチームの特性を活かし、本記事については日英中3言語で記載します。より多くのオーディエンスに読んで頂ければ嬉しいです。 自動化する動機 まず、なぜ自動化テストを導入するのでしょうか。 1. 新規機能が追加される度に、既存機能への影響を確認するための回帰テストをしなければなりません。 2. 繰り返し同じテストを手動実行することにより、テストコストが増加します。 3. 人間が実施すると、人為的ミスによる不具合の検出漏れが発生してしまう可能性が否定できません。 そのため、品質を担保した上でより早くリリースすることを目的とし自動化を導入しました。 現在の開発およびテストフロー QAが回帰テストの自動化テストスクリプトをGit

                                GitHub Actionsを利用したE2E自動化テストの実現 ~ Achieving E2E Automated Testing with GitHub Actions ~ 利用GitHub Actions实现E2E自动化测试 - スタディサプリ Product Team Blog
                              • Rust 2024 Editionがやってくる! - paild tech blog

                                お手伝いの@helloyukiです。今日はRust 2024エディションの話についてまとめておきたいと思います。ちなみに注意点ですが、Rust 2024エディションはまだリリースされていません。したがって、この記事の情報(2024年4月ごろ執筆開始)はリリース時点で変更されている可能性があります。 エディションとは Rustには「エディション」(あえて日本語にするなら「版」?)という概念があります。エディションは、後方互換性を保ちながらも、新しいキーワードの追加をはじめとする言語全体に影響を与えるような変更を加えるものです。3年に一度エディションは改定されることになっており、前回は2021年に改定がありました。これまでのエディションとしては、2015、2018、2021の3つが現状あります。 エディションの仕組みは2018年に導入されたものでした。2018年当時、Rustは非同期関連の言語

                                  Rust 2024 Editionがやってくる! - paild tech blog
                                • Data Flywheels for LLM Applications

                                  Over the past few months, I have been thinking a lot about workflows to automatically and dynamically improve LLM applications using production data. This stems from our research on validating data quality in LLM pipelines and applications—which is starting to be productionized in both vertical AI applications and LLMOps companies. (I am always very thankful to the teams in industry who find my wo

                                    Data Flywheels for LLM Applications
                                  • pnpm 9.5 Introduces Catalogs: Shareable Dependency Version Specifiers - Socket

                                    Security News pnpm 9.5 Introduces Catalogs: Shareable Dependency Version Specifiers pnpm 9.5 introduces a Catalogs feature, enabling shareable dependency version specifiers, reducing merge conflicts and improving support for monorepos. pnpm is eight years into its unique approach to package management, and continues to gain traction, especially among those who need efficiency and support for monor

                                      pnpm 9.5 Introduces Catalogs: Shareable Dependency Version Specifiers - Socket
                                    • Unification in Elixir

                                      Pattern matching is a pervasive and powerful tool in Elixir. This isn't too surprising if you know a little about the history of Elixir's parent language, Erlang. Erlang was originally inspired by and written in Prolog, a logic programming language where pattern matching has first-class support. In Elixir, you might see an expression like this: [x, [2, y]] = [1, [2, 3]]When this expression is eval

                                        Unification in Elixir
                                      • (小ネタ) Red Hat Enterprise Linux 9でセカンダリプライベートIPアドレスやネットワークインターフェースを追加した際にOS側で設定が必要か試してみた | DevelopersIO

                                        検証 まずはネットワークインターフェイスとプライベートIPアドレスが1つずつの状態を確認していきます。 # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc m

                                          (小ネタ) Red Hat Enterprise Linux 9でセカンダリプライベートIPアドレスやネットワークインターフェースを追加した際にOS側で設定が必要か試してみた | DevelopersIO
                                        • CentOS 7 系で、yumコマンドを利用可能にする方法 | クラウド・AWSのIT技術者向けブログ SKYARCH BROADCASTING

                                          はじめに CentOS7が2024/07/01からEOLとなった事に伴い、 CentOSコミュニティ上のいくつかのサービスが停止しました。 例として、 mirrorlist.centos.org のリポジトリが利用不能となりました。 そのため、既存のCentOS7のサーバで、yum update や yum install が利用できない状況になっています。 本記事では、使用できなくなったyumコマンドを再度利用可能に更新する方法を記載します。 目次 手順の概要 実行環境 手順 まとめ 手順の概要 リポジトリ設定のバックアップ リポジトリ設定の書き換え yumのキャッシュクリア パッケージ再更新 実行環境 CentOS 7 例として httpd パッケージを更新すると yum update httpd とした場合に Loaded plugins: changelog, fastestmir

                                            CentOS 7 系で、yumコマンドを利用可能にする方法 | クラウド・AWSのIT技術者向けブログ SKYARCH BROADCASTING
                                          • Visual Studio Code June 2024

                                            Version 1.91 is now available! Read about the new features and fixes from June. June 2024 (version 1.91) Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welcome to the June 2024 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some of the key highlights include: Preview: Incoming/Outgoing changes graph -

                                              Visual Studio Code June 2024
                                            • TypeID-JS: Type Safe, K-Sortable Unique IDs for Javascript

                                              Since we first announced TypeID last year, we've seen significant adoption and interest from the community, with 23 different language clients contributed by the community and 90,000 weekly NPM downloads of our Typescript Implementation. Last week, we released version 1.0 of our Typescript implementation, TypeID-JS. To celebrate this release, we wanted to share more about why we wrote TypeID, and

                                                TypeID-JS: Type Safe, K-Sortable Unique IDs for Javascript
                                              • How To Improve Your Microcopy: UX Writing Tips For Non-UX Writers — Smashing Magazine

                                                Not all companies can afford to hire a full-time UX writer (or are mature enough to consider it yet). As a result, UX writing is often outsourced to team members who may not have sufficient expertise in working with text, such as UX designers and product managers, or to the content or marketing team, who may lack expertise in UX. Meanwhile, interface copy plays a crucial role in the overall user e

                                                  How To Improve Your Microcopy: UX Writing Tips For Non-UX Writers — Smashing Magazine
                                                • Release v2.0.0 · vitest-dev/vitest

                                                  Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation. 🚨 Breaking Changes Simplify mock function generic types and align with jest - by @hi-ogawa in #4784 (a0c1d37) Remove --segfault-retry - by @sheremet-va in #5514 (ed60e) This flag was introduced to combat threads segfaults. Our current recommendat

                                                    Release v2.0.0 · vitest-dev/vitest
                                                  • The sad state of property-based testing libraries

                                                    The sad state of property-based testing libraries Posted on Jul 2, 2024 Property-based testing is a rare example of academic research that has made it to the mainstream in less than 30 years. Under the slogan “don’t write tests, generate them” property-based testing has gained support from a diverse group of programming language communities. In fact, the Wikipedia page of the original property-bas

                                                    • research!rsc: Hash-Based Bisect Debugging in Compilers and Runtimes

                                                      Setting the Stage Does this sound familar? You make a change to a library to optimize its performance or clean up technical debt or fix a bug, only to get a bug report: some very large, incomprehensibly opaque test is now failing. Or you add a new compiler optimization with a similar result. Now you have a major debugging job in an unfamiliar code base. What if I told you that a magic wand exists

                                                      • Solving a math problem with planner programming

                                                        The deadline for the logic book is coming up! I'm hoping to have it ready for early access by either the end of this week or early next week. During a break on Monday I saw this interesting problem on Math Stack Exchange: Suppose that at the beginning there is a blank document, and a letter "a" is written in it. In the following steps, only the three functions of "select all", "copy" and "paste" c

                                                          Solving a math problem with planner programming
                                                        • Top Places to Visit and the Best Things to Do in Tokyo

                                                          Initially, we named this guide “Tourist Attractions in Tokyo,” but we realized that the title did not do justice. Tokyo offers so many places to visit and things to do that even most long-time residents might not be able to experience them all. So, whether you plan to visit Tokyo as a tourist, for business, or to live there, we hope this guide to Tokyo’s attractions will be useful to everyone equa

                                                            Top Places to Visit and the Best Things to Do in Tokyo
                                                          • Go 1.23リリース連載 range over funcとiterパッケージ | フューチャー技術ブログ

                                                            はじめにこんにちは。CSIG 所属の棚井です。 Go 1.23 Release Notes の内容を紹介する「フューチャー技術ブログ Go 1.23 リリース連載」の記事です。 今回は2つの反復(Iterator、イテレーション)処理を取り上げます。 range over funciter パッケージRelease Note, Discussion, Proposal, Issuerange over func と iter パッケージ のリリース内容を確認していきます。 range over func がデフォルトで有効にGo1.22 では GOEXPERIMENT とされた range over func が、Go1.23 からはオプション指定なしで利用可能となりました。 Go 1.23 makes the (Go 1.22) “range-over-func” experiment

                                                              Go 1.23リリース連載 range over funcとiterパッケージ | フューチャー技術ブログ
                                                            • @property - CSS: カスケーディングスタイルシート | MDN

                                                              CSS チュートリアル CSS の基本 CSS の第一歩 CSS の第一歩の概要 CSS とは何か CSS 入門 CSS の全体像 CSS の働き 評価課題: 経歴ページのスタイル設定 CSS の構成要素 CSS の構成要素の概要 CSS セレクター Type, class, and ID selectors Attribute selectors Pseudo-classes and pseudo-elements Combinators カスケードと継承 Cascade layers ボックスモデル 背景と境界 書字方向の操作 内容のはみ出し CSS の値と単位 CSS における大きさの指定 画像、メディア、フォームの要素 表のスタイル付け CSS のデバッグ CSS の整理 評価課題: CSS の基本的な理解度 評価課題: 素敵なレターヘッドの便箋の作成 評価課題: かっこいいボック

                                                                @property - CSS: カスケーディングスタイルシート | MDN
                                                              • The missing parts in Cargo

                                                                A cargo ship stagnated in March, 2021 (Julianne Cona / Instagram) When people discuss the merits of Rust, they often mention its strict ownership rules, excellent diagnostics, and impressive performance. Cargo and the crates.io ecosystem frequently receive praise as well. Initially, when I started learning Rust, I couldn’t understand why Cargo was so highly loved. Having extensive experience with

                                                                  The missing parts in Cargo
                                                                • Email Address Internationalization - Universal Acceptance Steering Group (UASG)

                                                                  This widget takes an email address and checks to see if the mail server advertises support for receiving EAI (Email Address Internationalization) email addresses. Check to see if your email address is EAI compliant. Enter a valid email address below:

                                                                  • Rails: あなたがService Objectでやりたいことは、たぶんActiveRecordで1行でできる - Qiita

                                                                    Rails: あなたがService Objectでやりたいことは、たぶんActiveRecordで1行でできるRubyRailsバックエンド はじめに 自称、Ruby on Rails フロントエンドエンジニアのnaofumiです。X @naofumiでは色々勝手なことを書いていますが、最近Qiitaをやろうかなと思っています。 それでは本題です! Rails歴が長くても、Railsの便利機能が使えていない人は多い 私はフリーランスとして、ここ数年でいろいろなRuby on Rails案件に入ってきました。その中で強く感じるのは、Railsの便利機能をしっかり使いこなしている人が少ないということです。これは一見シニアっぽい人でもそうです。 とても残念なので、使いこなしている人が少ない便利機能に主に焦点を当てて、Railsの素晴らしさをなるべく多くの人に知っていただこうと思っています。 前

                                                                      Rails: あなたがService Objectでやりたいことは、たぶんActiveRecordで1行でできる - Qiita
                                                                    • Why Roadmaps Reflect the Level of Agile Inadequacy

                                                                      I was in the fifth and final round for a Product Owner position. I remember becoming tired of responding to all kinds of questions, often the same as I had already answered before. Especially considering I had already jumped through quite a few hoops— I had completed a personality test and an intelligence assessment. Didn’t they have enough information to decide if they wanted to hire me (or not)

                                                                        Why Roadmaps Reflect the Level of Agile Inadequacy
                                                                      • Goldman Sachs Research Newsletter

                                                                        GENAI:TOOMUCHSPEND, TOOLITTLEBENEFIT? ISSUE 129 | June 25, 2024 | 5:10 PM EDT ”$$$$$P$$$$$ $$$$ $ $ $ $ GlobalMacro Research Investors should consider this report as only a single factor in making their investment decision. For Reg AC certification and other important disclosures, see the Disclosure Appendix, or go to www.gs.com/research/hedge.html. The Goldman Sachs Group, Inc. Tech giants and bey

                                                                        • Small Language Models: The Future of AI? Insights from Microsoft's Phi-3 Creators

                                                                          Hi there! If you like Turing Post, please consider to support us today Last year, with the paper "Textbooks Are All You Need," Microsoft introduced the smaller language model (SLM) Phi and broke existing scaling laws, demonstrating that high-quality data alone can be enough to build a model that can compete with much larger models. In less than a year, at Build 2024, they introduced additional Phi

                                                                            Small Language Models: The Future of AI? Insights from Microsoft's Phi-3 Creators
                                                                          • AWS CloudFormation Linter (cfn-lint) v1 | Amazon Web Services

                                                                            AWS DevOps Blog AWS CloudFormation Linter (cfn-lint) v1 Introduction The CloudFormation Linter, cfn-lint, is a powerful tool designed to enhance the development process of AWS CloudFormation templates. It serves as a static analysis tool that checks CloudFormation templates for potential errors and best practices, ensuring that your infrastructure as code adheres to AWS best practices and standard

                                                                              AWS CloudFormation Linter (cfn-lint) v1 | Amazon Web Services
                                                                            • GoのJSONのT | null | undefinedは[]Option[T]で表現できる

                                                                              GoのT | null | undefinedは[]Option[T]でよかった github.com/oapi-codegen/nullableがmap[bool]Tをベースにencoding/jsonにオミットされることが可能なT | null | undefinedな型を定義していた (以前の記事時点では全然思いついてなかった) type Option[T any] struct{valid bool; v T}を定義してtype undefinedable []Option[T]としたほうがパフォーマンスが出るんじゃないかと思って試した。 ほんのちょっぴりパフォーマンスがよかった。 はじめに JSONを相互に送りあうシステムではたびたびT(フィールドにある型の値がある, defined, specified, present)、null(nullがフィールドにセットされている)、u

                                                                                GoのJSONのT | null | undefinedは[]Option[T]で表現できる
                                                                              • BLAST RADIUS

                                                                                Blast-RADIUS is a vulnerability that affects the RADIUS protocol. RADIUS is a very common protocol used for authentication, authorization, and accounting (AAA) for networked devices on enterprise and telecommunication networks. What can the attacker do? The Blast-RADIUS attack allows a man-in-the-middle attacker between the RADIUS client and server to forge a valid protocol accept message in respo

                                                                                • Bufstream: Kafka at 10x lower cost

                                                                                  We're excited to announce the public beta of Bufstream, a drop-in replacement for Apache Kafka that's 10x less expensive to operate and brings Protobuf-first data governance to the rest of us. Key takeaways Bufstream is a Kafka-compatible queue that's 10x less expensive to operate than Apache Kafka. While Bufstream slashes costs for any Kafka workload, it excels when paired with Protobuf. By integ

                                                                                    Bufstream: Kafka at 10x lower cost