並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 33 件 / 33件

新着順 人気順

nestedの検索結果1 - 33 件 / 33件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

nestedに関するエントリは33件あります。 railsHotEntry技術 などが関連タグです。 人気エントリには 『MySQLでNested Loopなクエリはインデックスをどう辿っているか - $shibayu36->blog;』などがあります。
  • MySQLでNested Loopなクエリはインデックスをどう辿っているか - $shibayu36->blog;

    タイムライン的なものをSELECTだけで実装しようと思った時に、Nested LoopなクエリでUsing temporary; Using filesortが出るようなそこそこ遅いクエリになる。その時にMySQLがインデックスをどう辿っているかを知りたかったので調べてみた。MySQLバージョンは8.0.33。 あまり自信はないので、もし間違った話をしていたら教えて欲しい。 どのようなクエリを検証するか タイムラインの取得ができるような、ユーザー・フォロー関係・投稿の3つのテーブルを作る。スキーマは次の通り。 CREATE TABLE users ( id INTEGER PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) NOT NULL ); CREATE TABLE follows ( id INTEGER PRIMARY KEY AUTO_I

      MySQLでNested Loopなクエリはインデックスをどう辿っているか - $shibayu36->blog;
    • Windows 11の地味に便利な新機能! 「Nested Hyper-V」がAMD製CPUでもようやく可能に【イニシャルB】

        Windows 11の地味に便利な新機能! 「Nested Hyper-V」がAMD製CPUでもようやく可能に【イニシャルB】
      • 週刊Railsウォッチ(20191105前編)Rails 6のデフォルト設定解説、DHHも消したいaccepts_nested_attributes_for、スライド『実践Railsアプリケーション設計』ほか|TechRacho by BPS株式会社

        2019.11.05 週刊Railsウォッチ(20191105前編)Rails 6のデフォルト設定解説、DHHも消したいaccepts_nested_attributes_for、スライド『実践Railsアプリケーション設計』ほか こんにちは、hachi8833です。今年の3連休は昨日のでおしまいだそうです。 実を言うと今年の祝日はもうだめです。 突然こんなこと言ってごめんね。 でも本当です。 この週末から月曜にかけて 3連休が来ます。 それが終わりの合図です。 3週間後に土曜日に潰される祝日が来るので 気をつけて。 それが過ぎたら、もう今年が終わるまで 祝日はありません。 — usa (@unak) November 1, 2019 各記事冒頭には⚓でパーマリンクを置いてあります: 社内やTwitterでの議論などにどうぞ 「つっつきボイス」はRailsウォッチ公開前ドラフトを(鍋のよう

          週刊Railsウォッチ(20191105前編)Rails 6のデフォルト設定解説、DHHも消したいaccepts_nested_attributes_for、スライド『実践Railsアプリケーション設計』ほか|TechRacho by BPS株式会社
        • AMD CPUに待望の“Nested Virtualization”対応 ~プレビュー版「Windows 10」で/「同期電話」アプリからAndroidスマホの楽曲再生をコントロールする機能も一般展開

            AMD CPUに待望の“Nested Virtualization”対応 ~プレビュー版「Windows 10」で/「同期電話」アプリからAndroidスマホの楽曲再生をコントロールする機能も一般展開
          • GitHub - Genivia/ugrep: ugrep 5.1: A more powerful, ultra fast, user-friendly, compatible grep. Includes a TUI, Google-like Boolean search with AND/OR/NOT, fuzzy search, hexdumps, searches (nested) archives (zip, 7z, tar, pax, cpio), compressed files (gz,

            Ugrep is a true drop-in replacement for GNU grep (assuming you copy or symlink ug to grep, egrep and fgrep), unlike many other popular grep claiming to be "grep alternatives" or "replacements" when those actually implement incompatible command-line options and use a different, incompatible regex matcher i.e. Perl regex versus POSIX regex grep (ugrep supports both) Ugrep is fast, user-friendly, and

              GitHub - Genivia/ugrep: ugrep 5.1: A more powerful, ultra fast, user-friendly, compatible grep. Includes a TUI, Google-like Boolean search with AND/OR/NOT, fuzzy search, hexdumps, searches (nested) archives (zip, 7z, tar, pax, cpio), compressed files (gz,
            • GitHub - google-deepmind/tree: tree is a library for working with nested data structures

              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                GitHub - google-deepmind/tree: tree is a library for working with nested data structures
              • GitHub - xuebinqin/U-2-Net: The code for our newly accepted paper in Pattern Recognition 2020: "U^2-Net: Going Deeper with Nested U-Structure for Salient Object Detection."

                ** (2022-Aug.-24) ** We are glad to announce that our U2-Net published in Pattern Recognition has been awarded the 2020 Pattern Recognition BEST PAPER AWARD !!! ** (2022-Aug.-17) ** Our U2-Net models are now available on PlayTorch, where you can build your own demo and run it on your Android/iOS phone. Try out this demo on and bring your ideas about U2-Net to truth in minutes! ** (2022-Jul.-5)** O

                  GitHub - xuebinqin/U-2-Net: The code for our newly accepted paper in Pattern Recognition 2020: "U^2-Net: Going Deeper with Nested U-Structure for Salient Object Detection."
                • Next.jsの新しいルーティングシステムとNested Layoutsの実装について調べてみた | DevelopersIO

                  こんにちは。データアナリティクス事業本部 サービスソリューション部の北川です。 Next.jsで、新しいルーティングシステムについての記事が公式から出ました。 今回は中でも、ようやく提案されたNested Layoutsについて調べたので、まだ正式に実装されたわけではないですが、せっかくなので記事にしました。 Appフォルダの提供 Next.jsでは、pagesフォルダの配下に作成したファイルが、そのままURLのパスとして機能します。 新しいルーティングシステムでは、pagesフォルダではなく、機能追加に対して段階的に変更できるよう、新しくappフォルダを提供する考えのようです。そのため、appフォルダとpagesフォルダは併用できそうです。アップデートによる修正や更新の負担が減るので、これはありがたいです。もちろんpagesフォルダ同様、階層を下げてパスを指定できます。 pagesフォル

                    Next.jsの新しいルーティングシステムとNested Layoutsの実装について調べてみた | DevelopersIO
                  • Elasticsearch 入門。nested フィールドについて | DevelopersIO

                    Elasticsearch初学者の中村です。 間が空いてしまったのですが、今回は Elasticsearch のフィールドタイプ nested フィールドについて書いていきます。 nested フィールドとは nested フィールドは Elasticsearch でマッピングに指定できる型の1つで、オブジェクト配列をお互いに独立して検索できる様インデックス化するためのフィールドです。 説明文だけを見ても分かりにくいですが、入れ子になったJSONオブジェクトに対し検索を可能にするフィールドになります。 そんなの必要なの?と思うかもしれませんが、Elasticsearch の仕様や使い方をまとめてみます。 nested フィールドが何故必要なのか Elasticsearch では入れ子になったオブジェクトは通常取り扱えません。これは Lucene でも同様です。 その為、入れ子になったオブジ

                      Elasticsearch 入門。nested フィールドについて | DevelopersIO
                    • 【Rails】accepts_nested_attributes_forを使用しない方が良い理由とその代替方法

                      「Rails 子モデル 保存」 とかでググるとたくさんのaccepts_nested_attributes_forを使用した記事をお見かけすると思います。 そんなaccepts_nested_attributes_forですが、いま自分が働いている会社では使用することを禁じられており、なるべくクリーンな実装を心がけるということを日々意識しております。 そんなこともあり、改めて使用してはいけないものの正体を調べてみました。 accepts_nested_attributes_forとは何か 一言でいえば、「親モデルに紐づくレコードの保存を簡単にできるようにするためのもの」 です。 具体例で見てみましょう。 下記に2つモデルがあり、親モデルであるAuthorの作成と同時にそれに紐づくBookモデルのレコードも作成するというイメージです。 Author(著者) Book(本) # 著者モデル c

                        【Rails】accepts_nested_attributes_forを使用しない方が良い理由とその代替方法
                      • THE LANCET Infectious Diseases | Risk factors and disease profile of post-vaccination SARS-CoV-2 infection in UK users of the COVID Symptom Study app: a prospective, community-based, nested, case-control study | Published: September 01, 2021

                        If you don't remember your password, you can reset it by entering your email address and clicking the Reset Password button. You will then receive an email that contains a secure link for resetting your password

                          THE LANCET Infectious Diseases | Risk factors and disease profile of post-vaccination SARS-CoV-2 infection in UK users of the COVID Symptom Study app: a prospective, community-based, nested, case-control study | Published: September 01, 2021
                        • accepts_nested_attributes_forを使わずに複数リソースを同時登録する(クイズアプリを例に) - Qiita

                          class CreateChoices < ActiveRecord::Migration[5.2] def change create_table :choices do |t| t.references :question, foreign_key: true t.string :content, null: false t.boolean :is_answer t.timestamps end end end 「問題 has many 選択肢s」です。 選択肢テーブルはis_answerという「正答か誤答か」というカラムを持っています。 よって単純なform_withとモデルでは実装できません。フォームに合わせてDB設計を変える、みたいなのは本末転倒です。(私の記事で恐縮ですが、クイズアプリのDB設計に関して、以下記事を書きました) https://qiita.com/kumacke

                            accepts_nested_attributes_forを使わずに複数リソースを同時登録する(クイズアプリを例に) - Qiita
                          • Mock Turtle - GUI-Based Random Nested JSON Generator

                            Live PreviewFor fast live update, only 5 elements from arrays are shown

                            • map脳になろう、もしくはnested dataのハンドリング - Qiita

                              まとめ group, nest, map, mutateという4つの道具を使ってデータをハンドルする方法を紹介します。r-wakalangに寄せられる質問の中に、あー、これを知っていれば簡単に出来るのに!というモノが多いので、その際に「この記事読むといいかも!」という内容をまとめました(なのであまりふざけていない)。 レベルとしてはTokyo.Rの初心者セッションのデモンストレーションに使うぐらいのもので、それほど難しくないと思います。細かいテクを省いて、丁寧に追っていけば概念を理解できるように努めました。 【テンプレ冒頭句】 コードはご自分の手元で、コピペではなく、手打ちで実行しながら確かめてみることをお勧めします。 また、発展編についてはいくつか記事を書いているので、そちらもご参照ください。 ・mapについてもう少し詳しく:{purrr} mapを導入しよう。 ・nestについてもう少

                                map脳になろう、もしくはnested dataのハンドリング - Qiita
                              • Windows11 WSL2 qemu (Nested VM) の使い方と他の仮想マシンとの速度比較 - hiroの長い冒険日記

                                Windows11 の WSL2 では Nested VM が有効になっています。これまで Windows版 qemu を使用してきましたが、ググって調べたときに出てくる qemu の記事は殆どが Linux 上の kvm を使用した物で、Windows版 qemu には適用できない事が多い状況でした。折角 WSL2 で使えるようになったようですので、Nested kvm で qemu 仮想マシンを起動できるか試してみました。また、whpx option 有効の Windows版 qemu 、Windows11 の Hyper-V や Virtualbox、実機で起動した Ubuntu やその上で起動した qemu についても速度を比較しました。 はじめに WSL2 で Nested VM が有効かどうか確認 WSL2 Ubuntu に qemu を install WSL2 qemu-k

                                  Windows11 WSL2 qemu (Nested VM) の使い方と他の仮想マシンとの速度比較 - hiroの長い冒険日記
                                • Flutter Bottom Navigation Bar with Stateful Nested Routes using GoRouter

                                  One of the most popular UX patterns on mobile is to show a bottom navigation bar with tabs. With this pattern, all the tabs are within the "thumb zone" where they can be easily reached: Thumb zone on mobile devices. Credit: Rosenfield MediaBut how can we implement bottom navigation in a Flutter app? As it turns out, the NavigationBar widget gives us a convenient way of switching between the primar

                                    Flutter Bottom Navigation Bar with Stateful Nested Routes using GoRouter
                                  • Generic validation of nested data

                                    generic-validation.md Generic validation of nested data TLDR This technique helps validate arbitrary conditions in deeply nested structures without writing additional code — with the help of Haskell Generics. It boils down to this pattern: validate :: a 'Raw -> Validation (ErrorMap es) (a 'Valid) getError :: HasError e es => ErrorMap es -> e If you are interested in how to achieve this, read on. I

                                      Generic validation of nested data
                                    • Nested dynamic layouts in Next.js apps | React Tricks

                                      How to implement nested and dynamic layouts is a question that comes up often in the Next.js community. In this post, we'll explore how to create a Next.js app with one global layout and multiple (dynamic) sub-layouts for different sections of the website. I prepared a simple example: If you click around the website, you will notice that Blog and Docs sections have different sidebars and if you sc

                                        Nested dynamic layouts in Next.js apps | React Tricks
                                      • VirtualBox で仮想マシンが入れ子 (Nested Virtualization) できるようになった - CUBE SUGAR CONTAINER

                                        先日リリースされた VirtualBox 6.0 からは AMD の CPU で、6.1 からは Intel の CPU で Nested Virtualization がサポートされた。 Nested Virtualization というのは、仮想マシンの中に仮想マシンを入れ子に作ることを指す。 ようするに、仮想マシンをマトリョーシカのようにする。 この機能は、すでに VMware や KVM といったハイパーバイザではサポートされていたものの、今回それが VirtualBox でも使えるようになったというわけ。 この機能があると、サーバ周りのインフラ系をやっている人たちは、検証環境が作りやすくなってうれしい。 ただし、この機能を実現するには、仮想マシンの中で CPU の仮想化支援機能 (Intel-VT / AMD-V) が有効になっている必要がある 1 。 VirtualBox 6.

                                          VirtualBox で仮想マシンが入れ子 (Nested Virtualization) できるようになった - CUBE SUGAR CONTAINER
                                        • RHELでのNested KVMの使い方 - 赤帽エンジニアブログ

                                          Red Hat ソリューションアーキテクトの小島です。 今回はタイトル通り、仮想化の入れ子機能であるNested KVMの使い方を紹介します。以下は忙しい人向けのまとめです。 Nested KVMはRHEL7.3+, RHEL8.0+で利用可能 (ただし、全てのケースでTech Preview扱い) Linux Kernel 3.12でリリースされたIntel CPU対応のNested KVM機能が、RHEL7にもバックポート Red Hat OpenStackでもHeat Templateを利用して、コンピュートノードのRHELにNested KVMを設定可能 2020年6月追記 RHEL8.2からNested KVMの利用を一部サポートするようになりました。サポート条件は下記のとおりです。 Intel x86_64 CPUの利用 (Xeon v3+) L0のOS(ホストOS)とL1のO

                                            RHELでのNested KVMの使い方 - 赤帽エンジニアブログ
                                          • Rust で Nested Comment に対応したパーサーを書く - 進捗置き場というわけでもない場所

                                            この記事は TSG Advent Calendar 2021 の 18 日目の記事です。 この記事を執筆しているのは年末ですが (本当)、年内は Advent なので (大嘘) セーフです (大嘘)。 寝ていたら新年になっていました。議論の余地なくアウトです。 目次 目次 三行で要約 はじめに 前提知識 パーサーとレキサー レキサー/パーサージェネレーターについて Nested Comment とは Nested Comment の問題点 Rust のパーサージェネレーター事情 plex と LALRPOP 実装 作っていく言語 前準備 Nested Comment に対応したレキサーを作る LALRPOP でパーサーを作る パーサーを呼び出す まとめ 三行で要約 Rust で Nested Comment に対応した言語処理系を書くときには plex と lalrpop を組み合わせると

                                              Rust で Nested Comment に対応したパーサーを書く - 進捗置き場というわけでもない場所
                                            • ElasticsearchのNested fieldにMySQLのデータをLogstashで同期する - Qiita

                                              はじめに この記事では、Logstashを用いてMySQLのデータをElasticsearchに流すときにNested fieldにデータ入れる方法の紹介になります。 LogstashのJdbc input pluginを使うだけでは、NestedデータをElasticsearchに送ることはできません。そこで、Ruby filterを利用して同期する方法のサンプルになります。サンプルとなるMappingは、ユーザに対してn個の学校データを持つような構造となってます。詳しいMapping定義は、Logstashの設定を参照 準備 Dockerの環境構築 mysql jdbc-connectorの用意 環境構築 はじめにマウントしていく設定などを作成していきます。このサンプルでは、以下のような構造で設定していきます。 ./ ├── coordination │   ├── config │ 

                                                ElasticsearchのNested fieldにMySQLのデータをLogstashで同期する - Qiita
                                              • CloudFormationの nested stack が使いづらい件 - Qiita

                                                一言で言うと 子スタックのチェンジセットが操作しづらい ので使いづらい。 いろいろ検索してみたけど日本語の結果が出てこなかったので検索用メモとして。 (こういうときにつけるタグってなんだろう。。。) nested stack1 とは ネストされたスタックは、他のスタックの一部として作成されたスタックです。 複数のスタックを連携させる方法としては出力値を用いたクロススタック参照2などもあるが、それよりももっと直接にスタックの親子関係を構築する仕組み。 使用例 以下のような複数のテンプレートがあるときに、 parent.yaml に対して aws cloudformation package を実行する package処理結果のyamlに対して aws cloudformation deploy を実行する という手順を踏むことで、子テンプレートの内容を含めてまとめて parent.yaml

                                                  CloudFormationの nested stack が使いづらい件 - Qiita
                                                • GitHub - Myself086/Project-Nested

                                                  Project Nested is a NES emulator running on the raw power of the SNES. Inspired by the SNES originally designed to be backward compatible and wanting to code a JIT compiler. This project was started in the summer of 2018 after 3 casual years (2015-2018) doing math on its potential performance until the day the design was in theory capable of running games at full speed. Emulators are software capa

                                                    GitHub - Myself086/Project-Nested
                                                  • A use case for CSS overflow-clip-margin, nested border radii · March 7, 2023

                                                    A use case for CSS overflow-clip-margin, nested border radiiMarch 7, 20232 min read With a mega viral tweet on nesting border radii and Andy mentioning it as well, I felt I should blog about my thoughts real quick! Here's one of the things I learned after requesting CSS get a nice way to draw nested radii: .the-trick-tldr { overflow: clip; overflow-clip-margin: content-box; } If you're like me, yo

                                                      A use case for CSS overflow-clip-margin, nested border radii · March 7, 2023
                                                    • Tmux in practice: local and nested remote tmux sessions

                                                      by Alexey Samoshkin Tmux in practice: local and nested remote tmux sessionsWe discuss tmux features, their relevance for local and remote scenarios, and how to setup and configure tmux to support nested sessionsThis is the first part of my tmux in practice article series. It is about using and configuring tmux v2, local and remote tmux sessions usage, and how to support a scenario when a remote tm

                                                        Tmux in practice: local and nested remote tmux sessions
                                                      • CSS Selector Level4 ・ Nested Selector サンプル61個付きチートシート

                                                        :is セレクターのリストを引数に取り、リスト中のセレクターの何れか一つに当てはまる要素をすべて選択します。 擬似要素にはマッチしません。 /* 以下の3つのセレクタは */ article:hover h1, article:focus h1, article:active h1 { color: red; } /* :is() を使うと以下のように簡潔になる */ article:is(:hover, :focus, :active) h1 { color: red; }

                                                          CSS Selector Level4 ・ Nested Selector サンプル61個付きチートシート
                                                        • CDKスタックのリソース上限にNested Stackで対応した話 | DevelopersIO

                                                          CDKスタックのリソース上限に対して対処法を検討し、Nested Stackを使った方法を実践してみました。 こんにちは。CX事業本部のKyoです。 本エントリはAWS CDK Advent Calendar 2023の11日目です。 はじめに みなさま、AWS CloudFormation の1スタックあたり管理できるリソースの最大数をご存知でしょうか? 500個です。また、この値は上限緩和も不可能です(2023年12月現在)。 AWS CloudFormation のクォータ この上限は、AWS CDKにおいても同様です。CDKコードはCloudFormationテンプレートに変換されるため、リソースが上限に近づくとcdk deploy時に警告メッセージが表示されます。 私が参画しているプロジェクトでも、この問題に直面しました。本エントリではその対処法についてご紹介します。 状況把握

                                                            CDKスタックのリソース上限にNested Stackで対応した話 | DevelopersIO
                                                          • VirtualBox 6.1 で Intel CPU の Nested Virtualization が解除された - kondoumh のブログ

                                                            Nested Virtualization は仮想マシンからホストマシンの CPU の仮想化機能を利用できる機能です。 VirtualBox では AMD CPU の Nested Virtualization が 6.0.6 でリリースされました。そして 6.1.0 で Intel CPU でも Nested Virtualization が利用できるようになりました。 Changelog – Oracle VM VirtualBox リリースノートには、 starting with 5th generation Core i, codename Broadwell とあり、僕の MacBook Pro Early 2015 は ギリギリ第5世代ですので使えるはずです。 現バージョンでは仮想マシン名を指定して個別に有効化する必要があります。 2.34. Nested Virtualiza

                                                              VirtualBox 6.1 で Intel CPU の Nested Virtualization が解除された - kondoumh のブログ
                                                            • Nested Media Queries

                                                              Bram.us A rather geeky/technical weblog, est. 2001, by Bramus

                                                                Nested Media Queries
                                                              • GitHub - beda-software/drf-writable-nested: Writable nested model serializer for Django REST Framework

                                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                  GitHub - beda-software/drf-writable-nested: Writable nested model serializer for Django REST Framework
                                                                • 管理画面の投稿・固定ページの一覧をドラッグ&ドロップで並べ替えできるWordPressプラグイン「Nested Pages」

                                                                  Nested Pagesは、管理画面上で投稿や固定ページの一覧をドラッグ&ドロップで並べ替えできるようになるWordPressプラグインです。 並べ替えだけでなく、一覧ページ上で空の子ページを作成したり、ページを複製することも可能です。 Nested Pagesのインストール インストール手順は以下の通りです。 Nested Pagesをダウンロードします。ダウンロードしたファイルを展開し wp-content/plugins にアップロードします。管理画面の[プラグイン]ページで、Nested Pagesを有効化します。 Nested Pagesの設定 WordPress管理画面の[設定] – [Nested Pages]で、Nested Pagesの設定を変更できます。まずは、[General]タブで全般設定を行いましょう。

                                                                    管理画面の投稿・固定ページの一覧をドラッグ&ドロップで並べ替えできるWordPressプラグイン「Nested Pages」
                                                                  • FlutterのListViewの中にPageViewで画像のカルーセルを作る(縦横入れ子のNested Listの作り方) | ZUMA Lab

                                                                    FlutterのListViewの中にPageViewで画像のカルーセルを作る(縦横入れ子のNested Listの作り方) Flutter の ListView のリストの中に PageView で画像のカルーセルを作ります。 縦の ListView の中に横の PageView を表示する縦横入れ子の Nested List です。 完成後はこのような動きになります。 iOS や Android のネイティブで入れ子のリストを実装しようとすると結構大変なのですが、Flutter だと割と簡単に実装できました。 それでは見ていきましょう。 環境macOS Big Sur 11.1Android Studio 4.1.2Flutter 1.22.6Dart 2.10.5package を追加するpubspec.yaml に english_words package を追加します。 dep

                                                                      FlutterのListViewの中にPageViewで画像のカルーセルを作る(縦横入れ子のNested Listの作り方) | ZUMA Lab
                                                                    1

                                                                    新着記事