Official Mastodon github doc says that the following softwares are required to run Mastodon. Nginx Docker Docker-compose Nginx is userd as a reverse proxy. Docker can be installed by the below command written in official Raspbian doc. curl -sSL https://get.docker.com…
Ubuntu 16.04: Can’t login Desktop (infinite loop)
One day, suddenly it turned that I couldn’t login desktop even if I enter correct password. Stackoverflow said that the reason is ~/.Xauthority permisson. $ ls -lA ~/.Xauthority -rw——- 1 aminami aminami 51 4月 26 21:11 .Xauthority $ chown {user_name}:{user_name}…
Ubuntu16.04: PHP7 MySQL connect
When I tried to run Zabbix locally, the PHP frontend page didn’t show by the following error. PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() After adding “php-mysql” package, it turned to work fine. sudo apt-get install php-mysql…
Linux: How to change hostname permanently in CentOS
To change hostname permanently in CentOS, use the following hostnamectl command (not hostname). hostnamectl set-hostname myhostname –static
Linux: Ubuntu 16.04 fcitx-mozc couldn’t be install
After updating Ubuntu from 14.04 to 16.04, “Langauage Support” system settings didn’t work and the following error occured. $ sudo apt-get install fcitx-mozc Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed.…
PostgreSQL: could not connect to server
When I started PostgreSQL server with specific database cluster on Ubuntu 14.04, the client coundn’t connect to the server. # start server postgres@ubuntu:~$ pg_ctl -D /usr/local/pgsql/data -l logfile start # connect to the server postgres@ubuntu:~$ psql psql: could not connect…
JavaScript: UI test with Nightmare, mocha, and chai
with mocha-generators plugin require(‘mocha-generators’).install(); var Nightmare = require(‘nightmare’); var chai = require(‘chai’); var expect = chai.expect; var should = chai.should(); var settings = { url: ‘http://ats-min.com/dailymagiceye’, timeout: 50000 }; describe(‘Test Daily MagicEye’, function() { var nightmare; this.timeout(settings.timeout); beforeEach(function*() { nightmare…
LINE BOT: 終電君
終電の時刻を調べてくれるLINE BOTです。FlaskとHerokuで動かしてます。 github
Daily MagicEye App is now available on Play Store!
Daily MagicEye App is now available!
JavaScript: Window resize event in MarionetteJS
var ImageView = Marionette.ItemView.extend({ initialize: function() { $(window).on(‘resize.imageview’, this.onResize.bind(this)); }, onDestroy: function() { $(window).off(‘resize.imageview’); }, onResize: function() { // add resize event here },