2024-01-01から1ヶ月間の記事一覧
一番最新ファイル # 最新画像を1枚取り出す def find_latest_file_with_number(filenames, search_number): """ This function finds the file with the largest numerical part in its name, given a specific number in the pattern. """ # Compile a regu…
起動時のCommand+Rを押した時 Sierraになるし、ずっと「復旧サーバーに接続できませんでした」エラー こんな記事がある Macで「復旧サーバーに接続できませんでした」エラーの解決法 Macで「復旧サーバーに接続できませんでした」エラーの解決法 https://jp.…
And producers may have some of South Korea's biggest stars from the world of music and film to thank for their good year. 最初andがあったので、 And producers may have some of South Korea's biggest stars from the world of music film to than…
なぜか最初はstatic使えなかったので、 app.rs use std::path::Path; use async_trait::async_trait; use loco_rs::{ app::{AppContext, Hooks}, // 追加 boot::{create_app, BootResult, StartMode}, controller::AppRoutes, db::{self, truncate_table}, /…
https://medium.com/@NALSengineering/flutter-riverpod-or-bloc-7-reasons-why-i-did-not-choose-riverpod-e954bed59e2f Riverpodはクリーンアーキテクチャに向かない記事
LocoででーたいれてからJSON表示する Cargo.tomlにはすでにあるのでいける serde = { version = "1", features = ["derive"] } serde_json = "1" importするというかuseするというべきか use serde_json::to_string_pretty; pub async fn json_dasu(State(ct…
https://dev.classmethod.jp/articles/rust-loco/ この記事でのLocoで articles での全削除がなかった。 SeaORMっていうO/Rマッパー使ってるっぽいので https://www.sea-ql.org/SeaORM/docs/0.6.x/basic-crud/delete/ を調べた。 削除のルートを追加。 pub f…
Lightningケーブルの「AirPods Pro(第2世代)エアポッズプロ MQD83J/A [ホワイト] ワイヤレスイヤホン Bluetooth対応 2022年モデル 【期間限定セール】」 と、 USB Type-Cの「AirPods Pro 第2世代 MagSafe充電ケース(USB-C)付き MTJV3J/A」 ※名前は購入時の…
Swiftはこんな基本的なのを用意していない・・・・。 仕方ないので拡張する。 extension UILabel { func applyLineHeight(_ lineHeight: CGFloat) { if let text = self.text, let font = self.font { // NSMutableAttributedStringを使用して、テキストのス…
docker run -d -p 5432:5432 -e POSTGRES_USER=loco -e POSTGRES_DB=loco_app -e POSTGRES_PASSWORD="loco" postgres:15.3-alpine -d コンテナをデタッチモード(バックグラウンドモード)で実行します。これにより、コンテナがフォアグラウンドで実行される…