2016-04-01から1ヶ月間の記事一覧

【Swift】Closureの$0とか$1とか

developer.apple.com Swift automatically provides shorthand argument names to inline closures, which can be used to refer to the values of the closure’s arguments by the names $0, $1, $2, and so on. 引数に特にこだわりがなければ第一引数を$0,…

【Android】【Java】interfaceの修飾子

参考 きみのインターフェイスの修飾子、冗長なんだけど? - _development, インターフェイスのメンバは暗黙的にpublicになります。 インターフェイスのフィールドは暗黙的にstatic finalになります。 コンパイル時に冗長になっているみたい。 気をつけよう。

【Wordpress】WP-Membersで会員登録機能をつける

Wordpressで会員機能をつけた時のメモ 参考 WordPress 会員制サイトの作り方 WP-Members | hijiriworld Webプラグインはこちら 「WP-Members」 (WP-Members: Membership Framework — WordPress Plugins)退会機能をつけるなら 「Never Let Me Go」 (Never Let…

【WordPress】adminの管理者アカウントの追加

をしたかったんだけどなぜか上手く追加されない。参考 Debug Mode WordPressのユーザーをデータベースに直接登録する(wp_capabilitiesとwp_user_levelについて) SQL: Add New Admin User. In the example below, I am using an ID of 2. Change this numbe…

【MySQL】インストールから設定まで

まずはインストール。 yum install mysql-server何か聞かれたらy(yes)で。次に設定を変更する。 バックアップをまずは取る。 cp /etc/my.cnf /etc/my.cnf.org編集開始は vi /etc/my.cnfから開始して、以下のように修正。 [mysqld] datadir=/var/lib/mysql so…

【PHP】インストールから設定まで

まずはサーバにログインして 【VPS】さくらのVPSの設定まとめ (CentOS 6.3) - 知行同一 sudo -sでroot権限になっておきます。まずはインストール yum install php php-pear php-common php-mysql php-xml php-pdo php-gd php-intl php-cli php-devel php-mbs…