<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sessan</author_name>
  <author_url>https://blog.hatena.ne.jp/sessan/</author_url>
  <blog_title>setoya-blog</blog_title>
  <blog_url>https://www.setoya-blog.com/</blog_url>
  <categories>
    <anon>rails</anon>
    <anon>heroku</anon>
  </categories>
  <description>メモ。herokuだと、ファイルを一時的に作成するのも微妙な場合（特にdynoを2つ以上で運用していて、ファイル作成と読み込みのタイミングが違うとき）があるので、StringIOクラスを使ってメモリ上にファイルを作成して、それを/tmp/とかには置かずに、S3に置くのがよさそう。class StringIO</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.setoya-blog.com%2Fentry%2F2013%2F01%2F30%2F184430&quot; title=&quot;メモリ上でテキストファイルを作るときにStringIOが便利そう - setoya-blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-01-30 18:44:30</published>
  <title>メモリ上でテキストファイルを作るときにStringIOが便利そう</title>
  <type>rich</type>
  <url>https://www.setoya-blog.com/entry/2013/01/30/184430</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
