S3のパフォーマンス
Best Practices Design Patterns: Optimizing Amazon S3 Performance - Amazon Simple Storage Service S3のバケットのprefixを分けることはパフォーマン向上に繋がる。 S3はバケットののprefix毎に3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD r...
Best Practices Design Patterns: Optimizing Amazon S3 Performance - Amazon Simple Storage Service S3のバケットのprefixを分けることはパフォーマン向上に繋がる。 S3はバケットののprefix毎に3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD r...
angularjs - Onsen UI Carousel Swipe list item - Stack Overflow
=concatenate(text(A2,"mm/dd/yyyy")&" "&text(B2,"hh:mm:ss")) 時間(01)だけだと変換に失敗するので、01:00:00などに置換しておく。 How to combine date and time columns into one column in Google sheets?
解決 select from_iso8601_timestamp('2020-03-19T18:01:08+09:00'), -- 2020-03-19 18:01:08.000 +09:00 timestamp '2020-03-19 09:01:09 UTC' AT TIME ZONE 'Asia/Tokyo', -- 2020-03-19 18:01:09.000 Asia/T...
解決 chrome://settings/content/cookies?search=site+se を開く。 OFFにする Block third-party cookies When on, sites can’t use your browsing activity across different sites to personalize ads. Some sites may ...
Go build LDFlags Alpine Linux packages Create the smallest and secured golang docker image based on scratch golang/Dockerfile at d57a23e1c68ef0a393ef9c9267bddf0086959e3e · docker-library/golang
MySQL Explain Example - Explaining MySQL EXPLAIN using StackOverflow data explainの結果の項目を分かりやすく記載してくれている。
解決 config/initializers/active_model_query_debug.rb module ActiveModelQueryDebug def log(query, *args) # 'Model Load' are targeted if args.first&.end_with?("Load") Rails.logger.d...
MR description 文頭に Close #xx ないし Closes #xx, #yy と記載した場合、マージすると自動で対象 issue が close されるという機能です! 😄
解決 image_uri = Addressable::URI.convert_path("https://path/to/image.jpg") URI.parse(image_uri).open do |file| metadata = { "mime_type" => MIME::Types.type_for(@image_uri.to_s).first.conten...
解決 require 'open-uri' open('tmp/image.png', 'wb') do |file| file << open('https://pbs.twimg.com/profile_images/xxx.jpg').read end image_io = open('tmp/image.png') 事象 rails内で下記の処理を行えており、コン...
解決 date -v-1d +%F を使用する Get yesterday’s date in bash on Linux, DST-safe - Stack Overflow
解決 Model: gorm.Model{ID: id} で可能。 c.Ctx.DB.Delete(&models.Address{Model: gorm.Model{ID: id}}) go - How to access gorm.Model.ID? - Stack Overflow
解決 func getType(myvar interface{}) { valueOf := reflect.ValueOf(myvar) if valueOf.Type().Kind() == reflect.Ptr { fmt.Println(reflect.Indirect(valueOf).Type().Name()) } else { ...
解決 insert Book.insert_all([ { id: 1, title: "Rework", author: "David" }, { id: 1, title: "Eloquent Ruby", author: "Russ" } ]) created_at, updated_atは自動付与されないことに気をつける(DBの設定が自動挿入になっていればOK) Upco...