2016年12月27日火曜日

DeepLearning: What is the class of this images


http://rodrigob.github.io/are_we_there_yet/build/classification_datasets_results.html

Deep Learning: Technology Keywords

Deep Learning Technology Keywords.


Perceptron
Sigmoid function
Step function

gradient descent method
gradient ascent method

ReLU(Rectified Linear Unit)

SGD(stchastic gradient descent)

Momentum
AdaGrad
Adam

Bath Normalization

Weight decay
Dropout

CNN(convolutional neural network)
LeNet
AlexNet

VGG

GooLeNet
ResNet

2016年8月25日木曜日

Rails: Passenger ver.5.0.30 Released


Error Message.
------
Your compiler failed with the exit status 4. This probably means that it ran out of memory. To solve this problem, try increasing your swap space:
------

$ sudo dd if=/dev/zero of=/swap bs=2M count=1024
$ sudo mkswap /swap
$ sudo swapon /swap

sudo passenger-install-apache2-module 





2016年7月11日月曜日

RubyOnRails : To Solve error and install activeadmin for rails ver.5.0.0

I wrote ↓
http://blog.hhoshina.info/2016/07/rubyonrails-rails-500-release.html

To solve this error and install activeadmin i uses the fallowing gem configuration in gem-file and it works well::
_
gem 'devise'
gem 'activeadmin', github: 'activeadmin/activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'

Gemfile sample  ↓
https://github.com/hhoshina/rails5/blob/master/Gemfile

2016年7月10日日曜日

WordPress: php setting



$ sudo yum install mod_php
$ sudo yum install php-mbstring

$ sudo vim /etc/php.ini
extension=mbstring.so

2016年7月9日土曜日

CentOS: from CentOS 6.5 to CentOS 7


$ cat /etc/redhat-release

CentOS release 6.8 (Final)

$ sudo yum -y install openscap pcre-devel libxml2-devel libxslt-devel
$ sudo yum -y install m2crypto python-simplejson

$ cd /etc/yum.repos.d
$ sudo vim upgradetool.repo 

[upg]
name=CentOS-$releasever - Upgrade Tool
baseurl=http://dev.centos.org/centos/6/upg/x86_64/
gpgcheck=1
enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

$ sudo yum install redhat-upgrade-tool preupgrade-assistant-contents

$ sudo su -
preupg -s CentOS6_7

$ sudo reboot

$ sudo centos-upgrade-tool-cli --network 7 --instrepo=http://mirror.centos.org/centos/7/os/x86_64/




RubyOnRails: Rails 5.0.0 release

rails 5.0.0 release.

Rails5.0.0 I tried to install from rails5.0.0.rc2 , but resulted in an error.
"activeadmin" seemed because does not correspond to the rails5.0.0.

Click here for details
https://github.com/activeadmin/activeadmin/issues/4177
( not ActiveAdmin is broken, the Problem is inherited_resources and has_scope.)

https://github.com/hhoshina/rails5




2016年5月30日月曜日

2016年5月22日日曜日

GoLang: WebFramework Revel


$ go get github.com/revel/revel
go get github.com/revel/cmd/revel

$ revel new github.com/myaccount/myapp

$ vim myapp/conf/app.conf
  http.port = 3000

$ revel run github.com/myaccount/myapp


2016年5月21日土曜日

Go Lang: Web Framework

◆Gin
https://gin-gonic.github.io/gin/
https://github.com/gin-gonic/gin

◆Revel
http://revel.github.io/
https://github.com/revel/revel

◆Iris
http://iris-go.com/
https://github.com/kataras/iris

Technical Development Guide

Technical Development Guide


Ruby On Ralis : Active Admin for Rails5



https://github.com/activeadmin/activeadmin

$ vim Gemfile
gem 'activeadmin', github: 'activeadmin/activeadmin'
gem 'devise', github: 'plataformatec/devise'
gem 'kaminari',   github: 'amatsuda/kaminari', branch: '0-17-stable'


$ rails destroy devise:install
$ rails g active_admin:install

$ rails c
pry(main)> AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')

$ rails db:migrate

$ rails generate active_admin:resource Twine

$ rails s

$ rails console -e production
pry(main)> AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')

$ rails g active_admin:assets

$ vim config/initializers/kaminari.rb
Kaminari.configure do |config|
  config.page_method_name = :per_page_kaminari
end

2016年5月17日火曜日

RubyOnRail : Rails 5.0.0 rc release.

Rails 5.0.0 rc test.

【test site】

https://hhoshina.info/


【Point Memo】

1. Graph(kickchart)
 app/views/layouts/application.html.erb
 <%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %>

 config/environments/production.rb
 config.assets.compile = true 

2. twitter-bootstrap 
 Gemfile
 gem 'twitter-bootstrap3-rails'

 $ rails g bootstrap:install static
 $ rails g bootstrap:layout application fluid

 3. google map 




2016年4月23日土曜日

Ubuntu: Disk organize

$ sudo apt --installed list
$ sudo apt-get autoclean
$ sudo apt-get autoremove
$ sudo gem cleanup
$ sudo apt-get clean
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge





2016年4月21日木曜日

Ubuntu: 14.04 LTS -> 16.04 LTS

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

---- challenge
$ sudo apt-get install update-manager-core
$ sudo do-release-upgrade

2016年2月6日土曜日

DropBox for Linux Server

https://www.dropbox.com/install?os=lnx

$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
$ crontab -e
---
@reboot ~/.dropbox-dist/dropboxd

$ ./dropbox.py help
Dropbox command-line interface

commands:

Note: use dropbox help <command> to view usage for a specific command.

 status       get current status of the dropboxd
 throttle     set bandwidth limits for Dropbox
 help         provide help
 puburl       get public url of a file in your dropbox's public folder
 stop         stop dropboxd
 running      return whether dropbox is running
 start        start dropboxd
 filestatus   get current sync status of one or more files
 ls           list directory contents with current sync status
 autostart    automatically start dropbox at login
 exclude      ignores/excludes a directory from syncing
 lansync      enables or disables LAN sync
 sharelink    get a shared link for a file in your dropbox
 proxy        set proxy settings for Dropbox


2016年2月3日水曜日

HTTP/2: Install

$ sudo add-apt-repository ppa:ondrej/apache2
$ sudo apt-get update
$ sudo apt-get install apache2
$ sudo a2ensite default-ssl
$ sudo a2emod http2
$ vim /etc/apache2/site-enaled/default-ssl.conf
------add----
<VirtualHost _default_:443>

 70  Protocols h2 http/1.1
---------------
$ sudo service apache2 restart

2016年2月1日月曜日

blockchain: bitcoin install

$ sudo apt-add-repository ppa:bitcoin/bitcoin
$ sudo apt-get update

$ sudo apt-get install bitcoind bitcoin-qt
$ bitcoind

$ cd ~/.bitcoin
$ vim bitcoin.conf
-----
rpcuser=*********
rpcpassword=*********
server=1
daemon=1
-----
$ bitcoind -reindex
$ bitcoin-cli getblockcount

2016年1月30日土曜日

Blockchain: z.cash( Instead of bitcoin )

https://z.cash/

$ git clone https://github.com/Electric-Coin-Company/zcash.git
$ cd zcash/
$ ./zcutil/fetch-params.sh
$ sudo apt-get install \
    build-essential pkg-config libgtest-dev libc6-dev m4 \
    g++-multilib autoconf libtool ncurses-dev unzip git python \
    zlib1g-dev wget bsdmainutils
$ ./zcutil/build.sh



fd-find

 $ sudo apt install fd-find $ fdfind 石