This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python3のバージョン確認 | |
sudo apt-cache show python3 | |
Package: python3 | |
Source: python3-defaults | |
Version: 3.5.3-1 | |
python3 -V | |
Python 3.5.3 | |
# OpenCVのバージョン確認 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blockquote, .post-password-form label, | |
a:hover, a:focus, a:active, .post-navigation | |
.meta-nav, .image-navigation, .comment-navigation, | |
.widget_recent_entries .post-date, .widget_rss .rss-date, | |
.widget_rss cite, .site-description, | |
.author-bio, .entry-footer, .entry-footer a, | |
.sticky-post, .taxonomy-description, | |
.entry-caption, .comment-metadata, | |
.pingback .edit-link, .comment-metadata a, .pingback .comment-edit-link, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Swap無効 | |
sudo swapoff --all | |
sudo apt-get purge -y --auto-remove dphys-swapfile # 失敗した場合はもう一度 | |
sudo rm -rf /var/swap | |
free -mh | |
# total used free shared buff/cache available | |
#Mem: 976M 29M 779M 12M 167M 884M | |
#Swap: 0B 0B 0B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config.txtを編集 | |
sudo vi /boot/config.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sSL https://get.docker.com/ | sh | |
# インストール確認 | |
docker -v | |
# Docker version 18.06.0-ce, build 0ffa825 | |
# プロセス確認 | |
sudo docker ps | |
# 起動 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.LinkedHashSet; | |
import java.util.List; | |
import java.util.ListIterator; | |
import java.util.Map; | |
import java.util.Set; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestAction extends Action { | |
public ActionForward execute( | |
final ActionMapping mapping, | |
final ActionForm form, | |
final HttpServletRequest request, | |
final HttpServletResponse response | |
) throws Exception { | |
final TestForm testForm = (TestForm)form; | |
// buttonタグのvalueで判定 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class KeyInfo implements Comparable<KeyInfo> { | |
private final String id; | |
private final int type; | |
// --- コンストラクタ、Getter/Setterは省略 --- | |
@Override | |
public int compareTo(final KeyInfo info) { | |
// TreeMap向け メソッド | |
if(StringUtils.equals(info.id, this.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo vi /etc/hostname # raspberrypi から 任意のホスト名に変更 | |
$ sudo vi /etc/hosts # raspberrypi から 任意のホスト名に変更 | |
$ sudo reboot # 再起動 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TEMPerがUSBで認識されていることを確認します。 | |
$ dmesg | grep TEMP | |
[395909.906434] usb 1-1.2: Product: TEMPerV1.4 | |
[395909.961175] input: RDing TEMPerV1.4 as /devices/platform/ff540000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0C45:7401.0007/input/input5 | |
[395910.023411] hid-generic 0003:0C45:7401.0007: input,hidraw4: USB HID v1.10 Keyboard [RDing TEMPerV1.4] on usb-ff540000.usb-1.2/input0 | |
[395910.051423] hid-generic 0003:0C45:7401.0008: hiddev0,hidraw5: USB HID v1.10 Device [RDing TEMPerV1.4] on usb-ff540000.usb-1.2/input1 |