Strawberry

Strawberry https://strawberry.rocks/ Djanog Integration https://strawberry.rocks/docs/integrations/django Getting started with Strawberry 1 2 3 uv add strawberry-graphql[debug-server] uv add strawberry-graphql-django uv add django-choices-field\n strawberry-sqlalchemy https://github.com/strawberry-graphql/strawberry-sqlalchemy 記事 FastAPI と Strawberry(GraphQL) が動作する諸々整ったデモアプリを作ってみた https://github.com/0machi/FastAPI_Strawberry_strawberry-sqlalchemy_DemoApp Graphene vs Strawberry: Which is better for providing a GraphQL API? Django Developing GraphQL APIs in Django with Strawberry

2024年8月1日 · 1 分

PGVector

PGVector ニューラルネットワークの知識の蒸留 distilling the knowledge in a neural networkPGVector (Postgres) Rails/PostgreSQL/pgvector を組み合わせてベクトル検索をする。 https://github.com/yassun/sample-pgvector https://hub.docker.com/r/pgvector/pgvector https://github.com/pgvector/pgvector-python LangChain と pgvector(Postgres)を用いて関連性の高いドキュメントを手軽に検索する 生成 AI でテキスト分類やってみた SentenceTransformer Python の SentenceTransformer を用いた文章類似度比較 sentence transformers で日本語を扱えるモデルのまとめ transformers 多言語モデル中の日本語語彙調査 知識蒸留 ニューラルネットワークの知識の蒸留 distilling the knowledge in a neural network 知識蒸留で効果的な教師の条件とは? 教師データとは?学習データとの違いや作り方をわかりやすく紹介 ディープラーニングを軽量化する「モデル圧縮」3手法 MUSE Muse: Text-To-Image Generation via Masked Generative Transformers を読んだメモ

2024年7月31日 · 1 分

PolarDB

PolarDB for PostgreSQL PolarDB for PostgreSQL(以下、PolarDB)は、Alibaba Cloud が独自に開発したクラウドネイティブなデータベースサービスです。 このサービスは、PostgreSQL と 100%互換性があり、共有ストレージベースのアーキテクチャを採用しています。 これにより、計算とストレージが分離され、柔軟なスケーラビリティ、ミリ秒レベルの遅延、HTAP(Hybrid Transactional/Analytical Processing)機能を提供します ¹²。 主な特徴は以下の通りです: 柔軟なスケーラビリティ:ビジネス要件に応じて、計算クラスターやストレージクラスターをスケールアウトできます。 ミリ秒レベルの遅延:WAL(Write-Ahead Logging)ログが共有ストレージに保存され、メタデータのみがレプリケートされます。 HTAP 機能:OLTP(オンライントランザクション処理)と OLAP(オンライン分析処理)の両方をサポートするためのアーキテクチャを持っています ¹²³。 他に知りたいことがあれば教えてくださいね。 ソース: Copilot との会話、 2024/7/31 (1) GitHub - ApsaraDB/PolarDB-for-PostgreSQL: A cloud-native …. https://github.com/ApsaraDB/PolarDB-for-PostgreSQL. (2) PolarDB for PostgreSQL - Gitee. https://gitee.com/polardb/PolarDB-for-PostgreSQL. (3) PolarDB云原生数据库自研数据库_数据库-阿里云. https://polardbpg.com/. (4) PolarDB: 阿里云开源云原生数据库 PolarDB - Gitee. https://gitee.com/polardb. 記事 PolarDB for PostgreSQL 14 で pgvector と LangChain を使ってベクトル検索してみる

2024年7月31日 · 1 分

Swiper

swiper https://github.com/nolimits4web/swiper 【最新】Swiper の使い方・カスタマイズを解説!サンプルやオプション 15 個付き ー基礎から応用までー (Swiper v8.1.4) JVNDB-2021-005554 swiper における脆弱性 (6.5.1)(情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。)

2024年7月15日 · 1 分

Terraform and others

Terraform , CloudFormation 関連 OpenTofu https://opentofu.org/ troposphere https://github.com/cloudtools/troposphere troposphere で CloudFormation のテンプレートを作成する。 former2 https://github.com/iann0036/former2 Former2 から CloudFormation を生成してみた インストール: 1 2 3 4 git clone https://github.com/iann0036/former2.git sudo /Applications/Docker.app/Contents/MacOS/install remove-vmnetd sudo /Applications/Docker.app/Contents/MacOS/install vmnetd docker-compose up -d

2024年6月25日 · 1 分

FastAPI

FastAPI FastAPI入門 FastAPI を用いた API 開発テンプレート 【FastAPI】Uvicorn と Gunicorn、WSGI と ASGI、ワーカープロセスについて実施コマンドと共に解説 Hypercorn+FastAPI のコンテナイメージを作成してみる Hypercorn Django を Hypercorn とともに使う How to deploy any Python Web Application? FastAPI を始める時のメモ(ボツ) How to serve HTTP 1, 2, and 3 in Python 1 poetry add fastapi hypercorn quart filters fastapi-filters: https://pypi.org/project/fastapi-filters/ https://fastapi-filter.netlify.app/ https://github.com/arthurio/fastapi-filter/tree/main その他: https://pypi.org/project/fastapi-query-tools/ モデルマッパー SQLModel(https://sqlmodel.tiangolo.com/) Database Migrations with sqlmodel and alembic FastAPI + SQLModel を使った簡単API開発をやってみた Pythonライブラリ(SQL):SQLModel(応用編-FastAPI) Pythonライブラリ(SQL):SQLModel Alembicでマイグレーション(FastAPI+SQLModel) FastAPI SQLModel 入門 https://github.com/Joichiro433/Blog-fastapi-todo/tree/main

2024年6月24日 · 1 分

flutter/ios

Flutter/iOS iOS でホーム画面に表示されるアプリ名はどこで決まるのか?変更するには? Flutter アプリを iOS 版ビルドに必要な手順のまとめ(debug/release)と TestFlight に上げるまで Flutter の環境分けの新時代 Allow .xcworkspace and .xcodeproj to be renamed from default name ‘Runner’ #124533 (Runner から名称の変更) $PRODUCT_NAME 1 PRODUCT_NAME = "$(TARGET_NAME)";

2024年6月18日 · 1 分

JWT in AWS Lambda

JWT in AWS Lambda API Gateway- https://gist.github.com/bendog/44f21a921f3e4282c631a96051718619 Controlling access to HTTP APIs with JWT authorizers JWT オーソライザーを使用した HTTP API へのアクセスの制御 API Gateway の JWT オーソライザーで Google ID トークンを検証してみた API Gateway JWT Authorizer メモ API Gateway + Lambda で REST API 開発を体験しよう [10 分で完成編] 【生成 AI】AWS Lambda(Python) と LangChain(LCEL) を使ってストリーミング出力したい https://github.com/aws-samples/bedrock-claude-chat slack と AWS で LLM Chatbot を Serverless で運用する Lambda コンテナ Lambda のコンテナイメージを使用する Lambda コンテナイメージをローカルでテストする コンテナイメージで Python Lambda 関数をデプロイする コンテナイメージを使用して AWS Lambda 関数を作成する

2024年6月18日 · 1 分

OAuth: PKCE

OAuth PKCE Authorization Code with PKCE on Django using django-oauth-toolkit PKCE_REQUIRED RFC 7636 - Proof Key for Code Exchange by OAuth Public Clients 日本語訳

2024年2月28日 · 1 分

Django: Push Notification

Django: Push Notification https://github.com/jazzband/django-push-notifications https://github.com/xtrinch/fcm-django APNS (Apple) APNs とは?設定と実装方法を解説! Generation of an APNS PEM file Establishing a token-based connection to APNs FCM/GCM(Google) Firebase でローコードなプッシュ通知を実装してみた Web Push https://github.com/safwanrahman/django-webpush https://github.com/web-push-libs/pywebpush https://github.com/jazzband/django-push-notifications https://github.com/elishowk/django-webpush-demo django-push-notifications を使って、Web Push 通知を実装する Web Push でブラウザにプッシュ通知を送ってみる ブラウザでプッシュ通知を実装してみた Web Push のサーバーサイドの処理〜VAPID と Message Encription を中心に〜 iOS16.4 から iOS の Safari でも Web プッシュが受け取れるようになったので AWS の機能でも試してみた! – 前編 (ローカルでの Web プッシュ通知と PWA 化) iOS16.4 から iOS の Safari でも Web プッシュが受け取れるようになったので AWS の機能でも試してみた! – 後編 (リモートでの Web プッシュ通知) Spec: ...

2024年2月27日 · 1 分