事の経緯 結婚したので、結婚式することにしました。 ついでに余興としてリアルタイムで写真を投稿できるスライドショーを作ってみました。 前回 結婚式のためにリアルタイムスライドショー作ってみる〜概要編〜 プログラム 全体の概要 規模が小さいので効率性はそこまで気にしてません。初心者なので、まずきちんと動くことを優先しました。 JSON生成と画像の回転 当初はシェルスクリプトで書くつもりでしたが、結局Pythonで書きました。 #!/usr/bin/env python # -*- coding: utf-8 -*- from PIL import Image from PIL.ExifTags import TAGS import os import json import collections as cl import time def get_exif_of_image(file):
I have a love-hate relationship with ad blockers. On the one hand, I despise the obnoxious ads that are forced down our throats at what seems like every turn. On the other hand, I appreciate the need for publishers to earn a living so that I can consume their hard-earned work for free. Somewhere in the middle is a responsible approach, for example the sponsorship banner you see at the top of this
Editor’s note: This post was last updated on 8 September 2022 to improve code and update any outdated information. Back in the good old days, the limits of CSS made even “simple” things like vertical centering a challenge, with some developers even relying on JavaScript solutions. It was fragile, it was very constrained, and there was always that one exception that made it fail. Whether we were tr
Debugging Vue apps just got better. Check out the features in the latest beta of Vue Devtools, including the new routing, performance and settings tabs. Vue Devtools helps with inspecting Vue.js applications, and with the latest pre-release, 5.0 beta.1, there are interesting additions and improvements to Devtools. I've been really excited since I tried it out, and I'm eager to share with you the n
はじめに アーキテクチャや設計の書籍や記事、これまでの経験も踏まえ、学んだ事をここにまとめたい。(まだ、勉強中なので微妙なところもあるかもしれません。お気付きの点があればご指摘いただけるとありがたいです。) 参考文献や参考記事は、本当に良書、良記事で非常に参考にさせていただきました。 生意気なタイトルにしてしまいましたが、自分への戒めということもあってこのタイトルにさせていただいたので、ご容赦ください。 ある共通した話題 設計やアーキテクチャについて書かれた書籍や記事を読んでいく中で、言葉は違えどかなりの高確率で共通するテーマが存在した。 そう、それが 「変更に強くなろう」 といった趣旨のテーマだ。 アーキテクチャや設計に関する書籍や記事は様々な方法論で、これを実現しようとしていた。 今回のテーマと記事の構成 今回は、「変更に強くなろう」というテーマの中で重要だと感じた概念や考え方をまとめ
Laravel Collectionの各メソッドの計算量を確認してみた。
The Super Mario Bros. record has been broken by Kosmic, the first human being to ever beat the game in 4 minutes and 55 seconds. In a near-perfect run of Super Mario Bros. Monday night, speedrunner Kosmic completed the 1985 NES games in stunning fashion, breaking the world record of the any% category with a time of 4:55 and 913 ms. Kosmic beat the record he had just set that same night at 4:56 and
複数作業者との事故が起こらないようにマイグレーションを使わないでDB管理をしている故の凡ミスかもしれないが、数時間ハマったので一応記録。 記録用モデル(テーブル)でActiveRecordのクラス名を"DataHistory"などと命名したと想定。 他のエンジニア作業者との事故が起こらないようにmigrateをせずに運用という前提で テーブルをSQLで直接クリエイトしてテーブル名を"data_histrys"などと命名してしまうと Mysql2::Error: Table 'data_histories' doesn't exist: SHOW FULL FIELDS FROM `data_histories` といった感じで怒られる。存在しないって、ちゃんとあるやんけ! (ここでちゃんとエラーが指す対象をちゃんと読み解けば良かったものの、意味を理解しようとせずエラー文をそのままググっただ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く