codingecho

日々の体験などを書いてます

Entries from 2017-01-01 to 1 year

Create a Generative Adversarial Network iOS App with CoreML

I created the app that generates a handwritten image with CoreML on iOS. I'm going to explain the process to release this app from beginning to end. The software versions Xcode 9.2 (9C40b) Docker 17.09.1-ce TensorFlow docker imagesha256:1b…

Use native code on iOS with Unity Native Code in the Unity

First, write native code you used for iOS. Read this document I needed to write native code for the In-App Purchase on iOS. Then, just put your native code in the Assets/Plugins/iOS directory. The hierarchy like this; For example, using Ob…

How to find out bottlenecks in HTTP server and MySQL

I participated in ISUCON for the first time. I acquired some knowledge to find out bottleneck in HTTP server and MySQL. Our team used alp for HTTP response analysis and pt-query-digest for MySQL slow query analysis. I try to introduce thes…

I implemented GANs

I implemented GANs(Generative Adversarial Networks) because I want to learn about GANs with TensorFlow. I referred to here. And this is my code implemented GANs. This code almost same what I referred. My GANs repeatedly learn with MNIST ha…

I went to iOSDC 2017

I went to iOSDC 2017 on September 17th. This conference held for iOS developers on September from 16th to 17th at Waseda University. I heard these sessions: 飛び道具ではないMetal This session told us how to use Metal to render an image on …

I participated in CEDEC 2017

I participated CEDEC 2017 from August 30th to September 1st in Yokohama. The conference is the first time I went to DECEC that is held every year as far as I know. All participants engage in game developing. I look at below sessions. Day 1…

Learning how to learn

I've been reading SOFT SKILLS ソフトウェア開発者の人生マニュアル(Japanese version) of "Soft Skills". I've made sense implicitly this method before I read the book. I found the chapter "Learning how to learn" that is helpful. So I try to in…

What is the difference between tf.placeholder and tf.Variable

I read this tutorial. There were the confusing terms they are tf.placeholder and tf.Variable. So I checked the difference point. tf.placeholder is called when a session runs a calculation. If once you set a value with tf.placeholder, it ca…

Index Key Prefix Length Limitation on InnoDB

Index Key Prefix Length Limitation on InnoDB I encountered the problem index key prefix length limitation on InnoDB when I migrate a database. The problem was like this: Specified key was too long; max key length is 767 bytes The index key…

I went to builderscon tokyo 2017

I went to builderscon tokyo 2017 from August 3rd to 5th. The eve of the conference I heard some fascinating talks, but I was told not to tell anyone about them, so unfortunately I can't write about them. I think the organizers should keep …

How to make development environment of Go with Mono and Protocol Buffers

I joined a project, and I begin to develop an application in it. This project has used golang. So I studied it and prepared its developing environment. This article is the what I did to make development environment of GO. Prerequisite Inst…

How to change Timezone on Docker with Ubuntu 16.04

Ubuntu 16.04 and every other use UTC by default. I want to change to JST. So I search about this on the web, and some site said to use like this. Show list of time zone $ timedatectl list-timezones But I executed this command, and then abo…

Immutable.jsのList.merge()とList.concat()の挙動の違い

Immutable.jsのListのmerge()でListを結合できると思っていたら違った。 const a = Immutable.List([ {item_name: 'apple'}, {item_name: 'chicken'} ]) const b = Immutable.List([ {item_name: 'car'} ]) こんな感じでリストがあって結合したいと思ったと…

Play Framework 2.5の設定ファイルの書き方

すでにPlay Framework 2.6が公開されていますが、Play Framework 2.5の設定方法について少しまとめておきます。 Play Frameworkの設定はデフォルトではapplication.confに書くようになっています。 application.confには何を書くか DBやAkkaアクター、ログや…

Docker Swarm modeでservice間のアクセスを可能にする

Docker Swarmのservice間で名前解決して互いにネットワークアクセスできるように設定する方法です。 使用したDocker engineのバージョンは 1.13.0 です。 service discoveryを使用する service discovery を使用するとservice名で名前解決できるようになりま…

HTTPを使ったDocker Registryを作る

基本的にドキュメントに書いてありまが、Docker RegistryでHTTPを使おうとすると少し面倒だったので、まとめておきます。 プライベートなネットワークで使っているぶんにはHTTPで十分ですが、いくつか設定を追加する必要があります。 Docker Registryを起動…

Docker Swarm内の分散したログをFluentdでまとめてElasticsearchとKibanaでログを確認する

概要 Docker Swarmで複数のコンテナがあると、コンテナが起動している複数のnodeに入ってdocker logsは大変です。2台や3台程度であればdocker logsで十分かもしれませんが、5台やそれ以上になると大変です。 また、一番大きい問題としてコンテナのログはappl…

Dockerとnet.ipv4.conf.all.forwarding

Docker containerから外部へのアクセスができなくなった時の原因と直し方です。 何が起こったか centosをリスタートかsystemctl restart network.serviceすると net.ipv4.conf.all.forwarding が 0 になってしまいます。 $ sysctl net.ipv4.conf.all.forward…