æ¦è¦ MITã©ã¤ã»ã³ã¹ã«åºã¥ãã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Rails API ActionController::Parameters åææ´æ°æ¥: 2024/11/29ï¼0012bd9ï¼ ã©ã¤ã»ã³ã¹: MIT 以ä¸ã¨åããã¦èªããã¨ããããããã¾ãã Rails 8: strong parametersã®æ°ããparams.expectã®ä½¿ãæ¹ï¼ç¿»è¨³ï¼ Rails 8 API: ActionController::Parametersï¼ç¿»è¨³ï¼ ActionController::Parametersã¯ããã¹ã¢ãããã¼ãã§ã©ã®å±æ§ã®æ´æ°ã許å¯ããããæå®ã§ããããã«ããããã«ãã£ã¦æ¬æ¥å ¬éããã¦ã¯ãªããªãå±æ§ã誤ã£ã¦å ¬éããããã¨ãé²ãã¾ãã ActionController::Parametersã¯ããã©ã¡ã¼ã¿ããã£ã«ã¿ã§é¤å¤ãããããã©ã¡ã¼ã¿ãçç¥ä¸å¯ï¼å¿ é åï¼ã«ãããããã
SQLite is cool now. DHH uses it, Laravel defaults to it. Here is a list of sensible defaults when using sqlite. The whys? PRAGMA journal_mode = WAL; Why?: Allows concurrent reads and writes, making it more suitable for web applications with multiple users accessing the database simultaneously. PRAGMA synchronous = NORMAL; Why?: Balances performance and data safety by ensuring that data is written
Kazuho Oku @kazuho lead developer of H2O HTTP server / works at @fastly / ãã±é²æ¢ã®ããæ¥ã ãã¸ã£ã¬ãã¤ã¶ããã¤ã¤ãHTTP, TLS, QUICã¨ãã£ãéä¿¡ãããã³ã«ãå®è£ ããããå½éæ¨æºåã«ããããã£ãããã¤ã³ã¿ã¼ããããéãããã®ãä»äºã§ã kazuhooku.com Kazuho Oku @kazuho gmail ã®å®¹éã15GBãã£ã±ãã«ãªã£ã件ãä¸å¹´ä»¥ä¸åã®æªèªã®åºåæ±ããããã¡ã¼ã«ã¨ãä¸è¦ããã£ã¦ãã¨ã§ is:unread category:promotions older_than:1y ã§æ¤ç´¢ãã¦å ¨æ¶ããã使ç¨é9.38GBã¾ã§ä¸ãã£ãï¼ 2023-10-18 12:03:41
æ¦è¦ åèè ã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Active Storage in production: lessons learned and in-depth look at how it works - rubyonrails-talk - Ruby on Rails Discussions åæå ¬éæ¥: 2023/07/26 åèè : Breno Gazzola åè: Active Storage ã®æ¦è¦ - Railsã¬ã¤ã å è¨äºã¯Ruby on Rails Discussionsã¸ã®æ¸ãè¾¼ã¿ã§ããããå ¬å¼ããã¥ã¡ã³ãã«ããããã¨ã®å£°ããã£ãã»ã©å¤§ããªåé¿ãå¼ã³ã¾ããã 2023å¹´ã®æ å ±ã«ã¤ããæ¬è¨äºã®ã¯ã©ã¦ããªã©ã®æ å ±ã¯ãã®å¾ç¶æ³ãå¤ãã£ã¦ããå¯è½æ§ãããã¾ãã®ã§ãäºæ¿ãã ããã ð 1: æ¦è¦ ç§ã®ä¼ç¤¾ã§ã¯ãã¦ã¼ã¶ã¼ã¢ãããã¼ãã®å®è£ ãå¿ è¦ã«ãªãç´åã«ã幸
ããã«ã¡ã¯ããµã¤ãªã¹ãã¯ããã¸ã¼ã®ä½è¤ é½ã§ãã ä»æ¥ãä»æ¥ã¨ã¦ Stripe ã«é¢ãã話é¡ãªãã§ãããä»åã®è¨äºã¯å®å ¨ãªãèªåã®ããã®åå¿é²ã§ãã ããã¯ã¨ã³ãã ãã§ãã«ã¼ãæ å ±ãç´ã¥ãã顧客ãä½æãããæ¹æ³ãã¡ã¢ãã¦ããã¾ãã ãã¹ãã®æãªã©ã«ãµã¯ã£ã¨ä½ããã¨ä¾¿å©ãªãã§ãããã èå³ããæ¹ã¯æ¯éãæå¾ã¾ã§ã覧ãã ããã ã¯ããã« Stripe ã使ã£ãã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ããããå ´åããã¹ãç¨ã® Customer ãå¿ è¦ã«ãªããã¨ãå¤ãã§ãã ãã® ãã¹ãç¨ã®Customer ã Stripe ã® Dashboard ä¸ããä½æãããã¨ãã§ãã¾ããã APIãã¹ããèªååãããã¨ãæ³å®ããå ´åãDashboard ããã®æä½ã¯é¿ãããã¨ããã§ãã èªååã«çµã¿è¾¼ããããããã¹ãã«é©ããCustomer ãä½æããã¹ã¯ãªãããçµãã§ããããã¨æãã¾ãã ãªãããã®æ¹æ³ã¯ããã¾ã§Stri
ã¾ããã è¿å¹´ãã»ãã¥ãªãã£ã¨å¹çã®ãã©ã³ã¹ãåãããã«ãå¤ãã®ã·ã¹ãã 管çè ãSSHã®è¨å®æ¹æ³ãè¦ç´ããã«ã¹ã¿ãã¤ãºãé²ãã¦ãã¾ãããã®è¨äºã§ã¯ãUbuntuã®ææ°ãã¼ã¸ã§ã³ã«ãããSSHã®è¨å®ã¨ç®¡çæ¹æ³ã«ã¤ãã¦ããããããã説æãã¾ããç¹ã«ãUbuntu 22.10ã§å°å ¥ãããUbuntu 24.04ã§ããã©ã«ãã¨ãªã£ãssh.socketã®ä½¿ãæ¹ã«ç¦ç¹ãå½ã¦ãã»ãã¥ãªãã£ãå¼·åããããã®ä¸ä¾ã¨ãã¦ãSSHãã¼ãã®å¤æ´æ¹æ³ã«ã触ãã¾ããããã«ãããããã«ãã¦ã»ãã¥ãªãã£ãå¼·åãã¤ã¤å¹ççã«ã·ã¹ãã ãéç¨ã§ãããããä¼ããã¾ãã ãã®è¨äºã¯ãã·ã¹ãã 管çè ããã¼ããªãã¬ã¼ã¿ã¼ãSSHã®ã«ã¹ã¿ãã¤ãºã«é¢å¿ãããæè¡è ã®çããã«åãã¦æ¸ããã¦ãã¾ããæ§æ¥ã®ææ³ã¨æ°ããã¢ããã¼ããæ¯è¼ããªãããææ°ã®æè¡ãã©ã®ããã«åé¡è§£æ±ºã«å½¹ç«ã¡ãæ°ããªå¯è½æ§ãããããããæ¢ãã¾ããå®éã®ã³ãã³ãä¾ã交ãã¦
ãããã¡ã¤ã«ã§ã§ãããã¨ã¯ç°å¢ã®è¨å®ã ãã§ããã·ã§ã«ã®è¨å®ã¯å®éã«ã¯ã§ããªããã¨ã¯ãªãã®ã§ããããã£ã¦ãç¡æå³ãªãã¨ã«ãªãã®ã§ã§ããªãã¨ãã¾ããç¡æå³ãªãã¨ã«ãªãã¨ããã®ã¯æ°ããèµ·åããã·ã§ã«ã«ã¯ãããã¡ã¤ã«ã§è¡ãã·ã§ã«ã®è¨å®ã¯åæ ãããªãã¨ãããã¨ã§ããç°å¢ã®è¨å®ã¨ã¯ãç¹å®ã®ã·ã§ã«ã«ä¾åããªãåæåå¦çã®ãã¨ã§ããã®ä¸ã¤ãç°å¢å¤æ°ã®è¨å®ã§ããç°å¢å¤æ°ã¯ OS ã®æ©è½ã§ãã£ã¦ã·ã§ã«ã®æ©è½ã§ã¯ããã¾ãããç°å¢ã®è¨å®ã«ã¯ãä»ã« stty ã³ãã³ãã«ãã端æ«ã®è¨å®ã umask ã³ãã³ãã«ãã umask ã®è¨å®ãªã©ãããã¾ããããããã¡ã¤ã«ã§è¨å®ãããã¨ã¯ãã¾ãããã¾ããã rc ãã¡ã¤ã«ã§ã¯ç°å¢ã®è¨å®ã¨ã·ã§ã«ã®è¨å®ã®ä¸¡æ¹ãã§ãã¾ããã·ã§ã«ã®è¨å®ãä¾ãã°ããã³ããæååã®è¨å®ãã·ã§ã«ã®æ©è½ãæå¹ã«ãããè£å®ã¹ã¯ãªããã®èªã¿è¾¼ã¿ãªã©ã¯ rc ãã¡ã¤ã«ã«æ¸ãã¾ããã¤ã¾ããã»ã¨ãã©ã®ãã¨ã¯ rc ã
é·ããã¨Homebrewã«è²ã ã¨ã¤ã³ã¹ãã¼ã«ãã¦ãã¨ããã¾ã«ãã使ã£ã¦ããªããã©ã¼ãã¥ã©ï¼ããã±ã¼ã¸ï¼ãåé¤ããããªã¨æãã¾ãããï¼ $ brew list -l ã§ä¸è¦§åºãã¦çºãã¦ããããããã¯ä½¿ã£ã¦ããªããªãã¨åããããã±ã¼ã¸ã¯æ¶ãã¦ããã¾ããã ãããä½ã§å ¥ãããã ã£ãï¼ãã¨æãããã±ã¼ã¸ãçµæ§ãã¾ãã brew lsã§ã¤ã³ã¹ãã¼ã«ãã¦ãããã±ã¼ã¸ãç¢ºèª ã¾ãã¯èªåã®ç°å¢ã«ã¤ã³ã¹ãã¼ã«ããã¦ããããã±ã¼ã¸ä¸è¦§ã確èªãã¦ã¿ã¾ãã ã¤ã³ã¹ãã¼ã«æ¸ã¿ããã±ã¼ã¸ã¯ãbrew listã³ãã³ãã§ç¢ºèªãããã¨ãã§ãã¦ãã©ã¼ãããã¯æ¬¡ã®éãã§ãã Usage: brew list, ls [options] [formula] brew listãbrew lsã§ã¤ã³ã¹ãã¼ã«æ¸ã¿ããã±ã¼ã¸ã表示ãã¾ãã ä»ã«ãbrew lsã«æ©è½ãåãã£ã¦ãã¾ããããã®è¨äºã®ãã¼ãããå¤ããã®ã§è©³ç´°ã¯çãã¾ãã
ããã«ã¡ã¯ã æ ªå¼ä¼ç¤¾ã©ã¯ã¹ã§å è¡æè¡æ¤è¨¼ããããããã¸ãã¹é¨éåãã«æè¡æ å ±ãæä¾ããåãçµã¿ãè¡ã£ã¦ãããæè¡æ¨é²èª²ãã¨ããé¨ç½²ã«æå±ãã¦ããé´æ¨ï¼@moomooyaï¼ã§ãã ã©ã¯ã¹ã®éçºé¨ã§ã¯ããã¾ã§ç¤¾å ã§å©ç¨ãã¦ããªãã£ãæè¡è¦ç´ ãèªç¤¾ã®éçºã«é©åãããæ¤è¨¼ãããã¸ãã¹è¦æ±ã«å¯¾ãã¦è¿ éã«å¿ããããããã«ããªãã ãæè¡æ¨é²ããã¸ã§ã¯ããã¨ããããã¸ã§ã¯ããããã¾ãã ãã®ããã¸ã§ã¯ãã§ãPostgreSQLç°å¢ã«ããããDBå®ç¾©å¤æ´ãä¼´ãç¡åæ¢ãªãªã¼ã¹ãã«ã¾ã¤ããæ¤è¨¼ãé²ãã¦ããã®ã§ããã®ä¸éå ±åãå ±æããããã¨æãã¾ãã â»æ¬è¨äºã¯ã¿ã¤ãã«ã«ãæ¦è¦ã¨è¨ç»ãç·¨ã¨ããããã«ãéå¹´ã§è¡ã調æ»ã®ååæç¹ã®ä¸éå ±åã¨ãªãã¾ãã å®éã®æ¤è¨¼çµæã«ã¤ãã¦ã¯3ææ«ã«äºå®ãã¦ããå¾ç·¨ããå¾ ã¡ä¸ããã 課é¡ã®çµç·¯ãåææ¡ä»¶ 課é¡ã®çµç·¯ ç¡åæ¢ãªãªã¼ã¹å®ç¾ã®ã¢ããã¼ã·ã§ã³ åææ¡ä»¶ å®ç¾ææ³ åè£ã«ä¸
çããããã©ã¼ã ä½ã£ã¦ã¾ããï¼ Webãµã¤ããã¢ããªãä½ãã«ããã£ã¦é¿ããããªãã®ãFormä½æãå¤ãã®æ¹ã autocomplete ãè¨å®ãããªã©ããã使ãããããã©ã¼ã ãä½æããããã«å°½åããã¦ãããã¨ã¨æãã¾ãã ä¸æ¹ã§ãæªæ°ãªãæ¸ããã³ã¼ãã§ãã使ãã«ãããã©ã¼ã ã«ãªã£ã¦ãã¾ã£ã¦ããä¾ãä¸ã®ä¸ã«ã¯å¤ãè¦ããã¾ã(ç¹ã«éè¡ç³») ä»åã¯ããããããã©ã¼ã ã®å®è£ ãä¾ã«ã(ç¹ã«æ¥æ¬èªè©±è ã«ã¨ã£ã¦)ãã使ãããããã©ã¼ã ã«ããããã®ã¡ãã£ã¨ããä»æ§ãç§ãèãã対çãæ¸ãã¦ãããã¨æãã¾ãã å¿ããæ¹ã®ããã«æåã«æ¸ãã¦ããã¨ããã®è¨äºã«æ¸ãã¦ãããã¨ã®å¤ã㯠autocomplete ã®ä»æ§ãæèããå®è£ ããã¾ããã ã®ä¸è¨ã«éç´ããã¾ãã å¤ãã®æ¹ã«ã¨ã£ã¦ã¯ãä½ãå½ããåã®ãã¨ããã¨æãããé ç®ãå¤ããã¨ã¯æãã¾ãããå½ããåã®ãã¨ãããã¦ããªããã©ã¼ã ãä¸ã®ä¸ã«ã¯å¤ãããã®ã§ãå°ãã§ã
migration ã®ä¸ã§ model ã触ã£ããå¿ ã reset_column_information ãã æ²»å®ã®æªã Rails ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãmigrate ä¸ã« model ã®ä¸æ´åã§æããããã¨ãããã¾ãã class AddAgeToUsers < ActiveRecord::Migration[5.1] def up p User.first # 1 add_column :users, :age, :integer # 2 User.create(name: "Taro", age: 16) # 3 end end 1 㧠User model ã触ã£ã¦ãã¾ã£ã¦ããã®ã§ add_column åã® DB ã®ç¶æ ããã£ãã·ã¥ãã㦠2 ã§è¿½å ãã add_column ã¯å¥ã«ãã£ãã·ã¥ããªã»ããããªãã®ã§ 3 㧠ActiveModel::UnknownAttrib
æ°´éï¼æ°´éè¯æ¨¹ãããã²ã¼ããã¦ãã¾ããSamsung SSD CREATORâS NOTEãæ¬æ¥ã®ã²ã¹ãã¯ãè½èªå®¶ã®ç«å·åç¬ããã§ãããããããé¡ããã¾ãã ç«å·åç¬(ãã¦ãããã£ããã) è½èªå®¶ã1984å¹´çã¾ãã京é½å¸åºèº«ãç«å·è«ç¬éä¸ä¸çªå¼åã2010å¹´11æãç«å·è«ç¬ã«å ¥éãããã1å¹´5ãµæã®ã¹ãã¼ãã§äºãç®ã«æé²ã2022å¹´11æãè½èªç«å·æµã¨ãã¦ã¯17å¹´ã¶ãã¨ãªãNHKæ°äººè½èªå¤§è³ã50æºç¹ã§åè³ãå¤å ¸è½èªçä¸ç観ã®ä¸ã§ãç¾ä»£çãªã³ã³ããã®ã£ã°æ¼«ç»ã«è¿ãç¬ãã®æè¦ã表ç¾ãããæ¬å¤å ¸<ã®ã³ãã³>ãã¨ããææ³ãå¾æã¨ããã主ãªèä½ã«ãç¾å¨è½èªè«ã(æ¯æ¥æ°èåºç)ãããã æ°´éï¼è¥å¹²ãçªçµã®ã¹ã¿ããã¨åãç·å¼µãã¦ãããã§ããã©ã åç¬ï¼ãããçªç¶ããå¼ãã§ããã ãã¦ããªãã§ããï¼ æ°´éï¼è½èªå®¶ã®æ¹ã«ãè½èªã好ãã§ããã£ã¦ä¼ããã®ã¯åæ°ããããã§ããã©â¦ãä¿¡é ¼ããã¹ã¿ãããããä¸é¢¨å¤ã
èªã¿ãã® ãã¹ã¦ ãèåã¨ãè¶ éå · ã³ã©ã ãè¶ã®æ å ± ã¬ã·ã ãè²·ããã® ãã¹ã¦ ç¹é ãè¶ - ç è¶ - çé² - ç´ è¶ - çé¾è¶ - æ¹è¶ - ã»ããè¶ - ãã¬ã¼ãã¼ãã£ã¼ - ãã³ã«ãã§ã¤ã³ - ãã®ä» éå · - è¶éå · - è¶æ¯ã»ã«ãã - æ¥é ã»ããã - çå£ã»ãµã¼ãã¼ - è¶æã»ã³ã¼ã¹ã¿ã¼ - ç¿ã»ãã¬ã¼ã - æ¤ã»ãã¦ã« - 箸ã»ã«ãã©ãªã¼ - çã»ãã¬ã¼ - è±å¨ - ç± ã»ç®± - ãã®ä» ãè¶èå ã»ããã»ã®ããç¨å TTJ ææ°å·ã®ç´¹ä» TTJãç³ãè¾¼ã ããã¯ãã³ãã¼ æ±äº¬è¶å¯® æ±äº¬è¶å¯®ã«ã¤ã㦠ãç¥ãã äºç´ ã¢ã¯ã»ã¹ ç§éã«ã¤ã㦠紹ä»é ãã¾ãã ã³ã©ãå®ç¸¾ éå¶ä¼ç¤¾ ä½å®¶åä¸è¦§ ç è¶å æ±äº¬ 樫åãã ç¸é¦¬ä½³ç¹ ããã¤ã¾ãã 稲æçè¶ å ç修治 å°éé½ä» é«æ¨å 森岡å¸ä¸å ç³ç°èª ã¡ãããªæä»äº å è¤ä½ é åå¥å¤« æ·¡æµ·é¶è¸ç 究æ åç°ç¨å ä¸æè²å¸ å¤ç°
å ¥é Docker¶ About¶ Dockerã®å ¥éãããããã¯ã·ã§ã³ã§æ´»ç¨ãããã©ã¯ãã£ã¹ã«ã¤ãã¦ã®ããã¥ã¡ã³ãã§ãã ãããã¯ã·ã§ã³ã¸å°å ¥ããããã«å¿ è¦ãªDockerã®æ¦è¦ããè¨è¨ã¾ã§ããªãã¹ãæççµè·¯ã§å¦ã¶ãã¨ãç®çã§ãã æ³å®ããèªè 層¶ WebAPIã®ãããªãµã¼ãã¼ãµã¤ãã®ããã°ã©ãã³ã°ããããã¨ããã Dockerããããããããã¯ã·ã§ã³ç°å¢ã¸å°å ¥ãã¦ã¿ããã¨èãã¦ããåå¦è Version¶ Docker 18.09.3 docker-compose 1.23.2 å¿ è¦ãªç°å¢Â¶ Docker Hub ã®ã¢ã«ã¦ã³ã Dockerå ¬å¼ã¬ã¸ã¹ã㪠Play with Docker DockerãWebä¸ã§åãããç°å¢ Play with Dockerãèµ·åããã®ã«åè¿°ã®DockerHubã¢ã«ã¦ã³ããå¿ è¦ Docker for Mac(Windows)ã®å ´åVMãéã«æã¾ãæåãç°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}