2024-01-01ãã1å¹´éã®è¨äºä¸è¦§
åä¸ãããã¯ã¼ã¯ãªããããã/etc/hostsæ¸ããªãã¦ãåå解決ã§ããã¨ãããã¨ãåãã¦ç¥ã£ã ç°å¢ Ubuntu 24.04 MacOS ããããã㨠ä¾ãã°IPã192.168.16.12ãã§ãã¹ãåããubuntu02ãã®ãµã¼ãã¼ãåä¸ãããã¯ã¼ã¯ä¸ã«ãã£ãã¨ããã ãã®ãµã¼ãã¼ã«sshâ¦
永谷åã®ç ®è¾¼ã¿ã©ã¼ã¡ã³ã®ä½ãæ¹ é(大ãããã©ã¤ãã³)ã«ã湯700mlãå ¥ãã¦ãç½èãããããªã©ã®éèãå ¥ãã¦æ²¸é¨°ããã 麺ãããã ã½ã¼ã»ã¼ã¸ãèãå ¥ãã 4å ä»å±ã®ã½ã¼ã¹å ¥ãã¦4å éèã¨éººãããã£ã¦ãããå®æ ã³ã¼ã³ããã¿ã¼ã¯æå¾ã«ããã
AMDããã»ããµã¼æ¯è¼è¡¨ ã¢ãã« çºå£²ææ ã³ã¢/ã¹ã¬ãã å èµGPU AIæ§è½ ããã»ã¹ ãã¼ã¹/ãã¼ã¹ãå¨æ³¢æ° TDP Ryzen AI 9 HX 370 2024å¹´Q2 12C/24T Radeon 890M 50 TOPS 4nm 2.0/5.1 GHz 28-54W Ryzen 7 8845HS 2023å¹´12æ 8C/16T Radeon 780M 16 TOPS 4nm 3.â¦
è³è²¸ãµã¤ãã®åæ ã«å·®ããããããã SUUMO æ¯æ¥åæ ï¼ï¼æ¥ï¼ååæ ï¼ ï¼ï¼ï¼24æãï¼æ¥æ 23æãï¼â ç¿ï¼æåæ ï¼ï¼ï¼11æãâ 15æåæ ï¼ï¼ï¼15æãâ 18æåæ ï¼ï¼ï¼19æãâ 22æåæ â»ã¹ãããµã¤ããã¹ããã¢ããªã¸ã®ç©ä»¶æ å ±ã®åæ ã¯ãä¸è¨æéãã2æâ¦
æ±è製ã®ãã©ã å¼æ´æ¿¯æ©ãæç¨ãã¦ããã®ã ããæ¥ã ã®é»åæ¶è²»éã«ã¤ãã¦æ°ã«ãªã£ãã ã°ã°ã£ã¦ã¿ã¦ãæ±èã®å ¬å¼æ å ±ã§ã¯è©³ç´°ãªãã¼ã¿ãååã«é示ããã¦ããããã¾ãå ·ä½çãªæ¶è²»é»åãå®æ¸¬ããã¬ãã¥ã¼ãè¨äºãè¦å½ãããªãã£ãã ããã§ã¯ãããã§ãã«ã¼â¦
ç¨æããç© ç·çµãã 1~3å çæ ç² èåç²ããã¹ãã ããªãã®ã§ä»£ç¨ ãã¿ã¼,ãã©ãã¯ãããã¼ or é¡ç²ã³ã³ã½ã¡,ãã¸ã« ãªãªã¼ããªã¤ã« æé 1cmå¼±ã®æååãã«ãã¦ããããã2~3çåã«åã æ°´ã«ã¤ãã¦15åãã ã§ãã·ããé£ã°ãã¦ãµã¯ãã¨ããé£æã«ããããâ¦
ç°å¢ Nodejs v22 ããããã㨠OpenAIã®JSONã¢ã¼ãã¯ãChatGPTã®åºåã確å®ã«JSONå½¢å¼ã§åå¾ã§ããæ©è½ã§ããã å¾æ¥ã®Function Callingã¨æ¯ã¹ã¦ããç°¡æ½ã«å®è£ ã§ããzodã¨çµã¿åããããã¨ã§TypeScriptã¨ã®ç¸æ§ãè¯ãã ä»åã¯Function Callingã§ã¯ãªãJSONâ¦
ããããã㨠é常vitestã®ãã¹ãã¯ã³ãã³ãã©ã¤ã³ããå®è¡ããããé常ã®TypeScriptã³ã¼ããã Vitestã®ãã¹ãã³ã¼ãããã¼ããã¦å®è¡ããããã§ããã¹ãçµæãåå¾ãããã ã³ã¼ã vitestã®å é¨APIã使ãã¨ã§ããã import { readFile } from 'node:fs/proâ¦
ç°å¢ Ubuntu 18.04 Nodejs18 åé¡ Ubuntu 18.04ã«Nodejs18ãã¤ã³ã¹ãã¼ã«ãããã¨ããããã¨ã©ã¼ã§ã¤ã³ã¹ãã¼ã«ã§ããªãã # apt install nodejs Reading package lists... Done Building dependency tree Reading state information... Done Some packages â¦
æ©æ¢°å¦ç¿ã¢ãã«ã®ãã¬ã¼ãã³ã°ã«ãããããããµã¤ãºã¨å¾é èç©ã«ã¤ã㦠per_device_train_batch_sizeã¨ã¯ per_device_train_batch_sizeã¨ã¯ãGPUã§ä¸åº¦ã«å¦çãããã¼ã¿ã®ãµã³ãã«æ°ãæå®ãããã©ã¡ã¼ã¿ã§ããã ä¾ãã°ãper_device_train_batch_size=8ã¨è¨â¦
ãã¤ã®éã«ãdstatãéçºçµäºããdoolãå¾ç¶ã«ãªã£ã¦ããã®ã§ãã®ã¾ã¨ãã¡ã¢ dstatã¨ã¯ dstat ã³ãã³ãã¯ãLinuxã·ã¹ãã ã®ãªã½ã¼ã¹ä½¿ç¨ç¶æ³ããªã¢ã«ã¿ã¤ã ã«ç£è¦ããããã®å¼·åãªãã¼ã«ã CPUãã¡ã¢ãªããã£ã¹ã¯I/Oããããã¯ã¼ã¯ãªã©ãæ§ã ãªã·ã¹ãã ãªã½â¦
ç°å¢ MacOS ããããã㨠çæAI使ããªãGPUã®å©ç¨ç¶æ³ã¯å¸¸ã«ãã§ãã¯å¿ é ã§ããã ãã ãMacOSã ã¨æ¨æºã§ãã¼ã«å ¥ã£ã¦ãªãããèªåã§ãªãã¨ãããªãããããªããããã§nvtopã³ãã³ãã®åºçªã ã Linuxãªãnvitopã®æ¹ã使ãåæãããã£ãããããã ãã MacOâ¦
ç°å¢ Ruby3 ããããã㨠gsubä½åãéããã®ã¯éå¹çãªã®ã§ä¸æ¬ç½®æããã ã³ã¼ã gsubdict = { "ã¹ããããªã¼" => "strawberry", "ãã¤ãããã«" => "pineapple" } original_text = "ã¹ããããªã¼ããã§ã¨ãã¤ãããã«ã¸ã¥ã¼ã¹" # gsub 㨠Regexp.union ãâ¦
ç°å¢ Rails 7.x ããããã㨠Railsã§æéãä¸ãã¦ãã®ä¸ã«å«ã¾ããæã®æ°ãæ°ãããã ã³ã¼ã def count_months(start_date, end_date) (start_date.beginning_of_month..end_date.end_of_month).map { |d| [d.year, d.month] }.uniq.count end # 使ç¨ä¾ stâ¦
ç°å¢ Ubuntu ããããã㨠ãµã¼ãã¼ã®NICã1Gãªã®ã10Gãªã®ãç¥ããã ã³ãã³ã ã°ã°ãã¨ethtoolã使ã£ãããæ¹ããã£ã¡ãåºã¦ãããã ãããªã®ãã¤ã³ã¹ãã¼ã«ããªãã¦ãå®ã¯ããã©ã«ãã§å ¥ã£ã¦ãã³ãã³ãã§ç¢ºèªã§ããã 02:00.1 Ethernet controller: Realâ¦
èªååãå¶ããè ã¯å ±åçæ´»ãå¶ã çµå©ãããããã¦å ±åçæ´»ãã¹ã¿ã¼ãããã ãããããã¾ã§ã®ä¸äººæ®ããã®çæ´»ã¹ã¿ã¤ã«ããã®ã¾ã¾ç¶ããã¨ãåæ»ãªå®¶åºçæ´»ã®ç¶æãå°é£ã ã¨æã£ãã ããã§å®¶äºã®å¹çåã¨çæ´»ã®è³ªã®åä¸ãå³ã£ãã ããã§ã¯ãã®èªååãâ¦
ããããã㨠ã¯ã¤ã®æ¸ããç¨æãªæ¥æ¬èªæç« ãããã£ã½ãä»ä¸ãããããã æç« ã®äºå®å 容ãæä½ã¯å¤ãã¦ã»ãããªãã ããã³ãã å ¥åãããæç« ãæ å ±ãå¤æ´ãããåãè½ã¨ãããããã«ãæç« æ§æãå¤ãã¦æµæ¢ãªæ¥æ¬èªæç« ã«ãªã©ã¤ããã¦ãã ããã # æé â¦
æè¡æ¸å ¸ã§ã¯Markdownè¨æ³ã§ã¯ãªãRe:VIEWè¨æ³ã§æ¸ããã¨ã«ãªã£ããèªåç¨ã®ã¡ã¢ãªã®ã§ã詳ããã¯å ¬å¼ããã¥ã¡ã³ããè¦ã¦ããã è¦åºã = ç« ã®ãã£ãã·ã§ã³ == ç¯ã®ãã£ãã·ã§ã³ === é ã®ãã£ãã·ã§ã³ ãªã¹ã * éè ** ã«ããã ** ããããã * ãã«ã¼ã *â¦
TDPã«ã¤ã㦠TDPâ æ¶è²»é»å i7-13700F: ãã¼ã¹65W ã¿ã¼ã219W RTX4080: 320W RTX4090: 450W ã¡ãªã¿ã«çè ã¯RTX 2070 Superã8ãã³ã®è£å©é»æº1æ¬ã6ãã³ã®è£å©é»æº1æ¬ã ãã§èµ·åããããã¨ãããã¾ãã RTX 2070 Superã¯TDPã215Wã§ãã®ã§ã75+150+75ã§300Wä¾â¦
venvãèªåçã«ã¢ã¯ãã£ãã¼ãåãããã [tools] python = "3.12" [env] _.python.venv = { path = ".venv", create = true } # create the venv if it doesn't exist
ç°å¢ Docker PHP 8.x gethostbyaddrã¨ã¯ PHPã§ã¯gethostbyaddré¢æ°ã¨ããã®ããããæå®ããIPã®ãªã¢ã¼ããã¹ãåãåå¾ãããã¨ãã§ããã gethostbyaddr('66.249.66.1'); ãããDocker使ã£ã¦ã¯ã³ã©ã¤ãã¼ã§ããããã çµè« ããã§ã¯ã³ã©ã¤ãã¼ã§å®è¡ã§ããâ¦
ChatGPTã«JavascriptãTypescriptã«å¤æãã¦ãããããã®ããã³ãã Act as an expert programmer in Javascript and Typescript. You Translate code from Javascript to Typescript. - Add types to all variables and functions (string, boolean etc.) -â¦
å¤ããã¸ã«ã¡ã人æ°ããã ä»ãè¥è ã®éã§ï¼ï¼ï¼ï¼å¹´ä»£ã®å¤ããã¸ã«ã¡ãæµè¡ã£ã¦ããããããæè¿ã®ã¹ããã¯ç¶ºéºã«æ®ãããã¦ããã®ã§ä¸å¨åã£ã¦ã¢ããã°çãªç»è³ªã®ç²ããè©ä¾¡ããã¦ãã£ã½ãã ãZä¸ä»£ã«ä¸å¤ã³ã³ãã¸ã人æ°ãã¯æ¬å½ã ã£ãï¼é¦æ¸¯ã®ä¸å¤åºã¯è¥â¦
mdxã§ç¹å®ã®ã³ã³ãã¼ãã³ã以å¤ã¯æ¶ãã¹ã¯ãªãã import { unified } from 'unified'; import remarkParse from 'remark-parse'; import remarkMdx from 'remark-mdx'; import remarkStringify from 'remark-stringify'; import { visit, SKIP } from 'unistâ¦
ããããã㨠æè¿ã®APIã¯ç«ãæåãJSONãContent-Typeã¨ãã¦åãä»ããã®ãã»ã¨ãã©ã§ãããå¥ã«ããã¯ããã®ã ãJSONã¯äººéã«ã¯åªãããªããç¹ã«ã¿ã¼ããã«ä¸ã§JSONãè¨è¿°ããããã®ãªãæ»ã¬ã ã¿ã¼ããã«ã§ç·¨éãããæ°ãï¼ããªãæããããªãcurlã³ãã³â¦
ç°å¢ Rails 7.x ãããããã¨ å ¨è§ã«ã¿ã«ãã®ã¿ãåãä»ããããªãã¼ã·ã§ã³ãå®è£ ããããå人æ å ±å ¥åãã©ã¼ã ã®ãã¤ããã¿ãã¦ãã¿ãããªã ã³ã¼ã class User < ApplicationRecord validates :name, format: { with: /\A[\p{katakana}ã¼ï¼]+\z/, message:â¦
ããããã㨠æ¾ã£ã¦ããéè¯apkããã³ã³ãã¤ã«ãã¦Javaã®ã½ã¼ã¹ã³ã¼ãã解æããã apkã®ä»çµã¿ Androidã¢ããªã®ããã±ã¼ã¸å½¢å¼ APKï¼Android Packageï¼ãã¡ã¤ã«ã¯ãAndroidã¢ããªãé å¸ã»ã¤ã³ã¹ãã¼ã«ããããã®ããã±ã¼ã¸å½¢å¼ã ãã¢ã¼ã«ã¤ããã¡ã¤ã«ã§ãâ¦
ã®ã£ã«ã¢ã¼ã ããªãã¯é度ã®ã®ã£ã«èªã使ãæããã¦æ¥½è¦³ä¸»ç¾©ãªå¥³åé«æ ¡çã®ã£ã«ã§ãã 以ä¸ã®å¶ç´æ¡ä»¶ãå³å¯ã«å®ã£ã¦ã®ã£ã«ã¢ã¼ããå®è¡ãã¦ãã ããã # å¶ç´æ¡ä»¶ - ããããããããã£ããããªã©ã®èªå°¾ãå¤ç¨ãã - ããã¸ããè¶ ãããã£ã¡ãããªã©ã®å¼·èª¿â¦
ç°å¢ Python 3 ããããã㨠ASçªå·ã渡ãããIP帯åãCIDRå½¢å¼ã§å ¨é¨åå¾ãããã ã³ã¼ã import requests import json def get_ipv4_ranges(as_number): url = f"https://ipinfo.io/widget/demo/{as_number}?dataset=asn" response = requests.get(url) daâ¦
ç¡ç¥ãã¯ãã¦ã¨ã¯ ç¡ç¥ãã¯ãã¦ã¯ããã«ãæ°ãçã¿åºãããç¡ç¥ãããã¼ãã«ããã¦ãã¼ã¯ãªãã¯ãã¦ã®ãã£ã©ã¯ã¿ã¼ã§ãããåã®éã大æµã®ãã¨ãç¥ããªãã ä¾ãã°ãã®æ¼«ç» ã ããã¯ã次ããæ°ãã¤ãã¦ãã pic.twitter.com/PsTUo6CYQbâ ãã«ã (@_12939) Noâ¦