新社会人に必須である:
- 勤務先との書面による「労働契約」。業務委託契約等NG。
- 多寡を問わず毎月払われる給料。遅配等論外である。
- 健康保険。
- 労災保険。
- 雇用保険。
- 三六協定。
- 年次有休。
- 育児休業の制度があり取得者がいる会社に勤務する。
| pi@raspberrypi ~/qpuinfo $ git log -1 -p | |
| commit d3d4745808231202a19365458e283d730e3d1a2e | |
| Author: Terminus <i.can.speak.c.and.basic@gmail.com> | |
| Date: Sun Feb 8 05:06:01 2015 +0900 | |
| change to point physical address, not bus address | |
| Special thanks to @KOBA789 ! | |
| diff --git a/mapmem.c b/mapmem.c |
| #!/bin/env python | |
| import numpy as np | |
| import scipy.misc | |
| from scipy.fftpack import dct, idct | |
| import sys | |
| H = 128 | |
| W = 128 | |
| lenna = scipy.misc.imresize(scipy.misc.lena(), (H, W)).astype(float) |
新社会人に必須である:
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
| // clang -o smc smc.c -framework IOKit -framework CoreFoundation | |
| /* | |
| * Apple System Management Control (SMC) Tool | |
| * Copyright (C) 2006 devnull | |
| * | |
| * This program is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU General Public License | |
| * as published by the Free Software Foundation; either version 2 | |
| * of the License, or (at your option) any later version. |
I was trying to get the Arduino IDE to work inside a Docker container on OS X. I was able to get the IDE working (see Getting X11 GUI applications to work on OS X with Docker), but I could not figure out how to make the USB port for the Arduino visible.
I first tried to directly map hardware serial port into the Docker container, doing something like this:
| #include <random> | |
| #include <algorithm> | |
| #include <iostream> | |
| #include <cmath> | |
| // header file for the hc API | |
| #include <hc.hpp> | |
| #define N (1024 * 500) |
| $(info ** Remaking: MAKE_RESTARTS=$(MAKE_RESTARTS) **) | |
| # | |
| # If WAIT >= t, this Makefile will loop infinitely. | |
| # If WAIT < t, it won't loop infinitely due to filesystem's time resolution. | |
| # +------------+------+ | |
| # | Filesystem | t | | |
| # +------------+------+ | |
| # | ext4 | 0.01 | | |
| # | hfsplus | 1 | |
| // CUDA Othello Solver | |
| // License: GPL 3 | |
| #include <cstdio> | |
| #include <cassert> | |
| constexpr int threadsPerBlock = 128; | |
| constexpr int simdWidth = 4; | |
| constexpr int nodesPerBlock = threadsPerBlock/simdWidth; | |
| constexpr int MAX_DEPTH = 10; |