package sample;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path("hello")
public class Hello {
@GET
@Produces("text/plain")
public String getHello(){
return "Hello.";
}
}
package sample;
import javax.ws.rs.core.Application;
import javax.ws.rs.ApplicationPath;
@ApplicationPath("/rest")
public class MyApp extends Application {
}
品目 | 数量 | 単価 | 小計 | 備考 |
---|---|---|---|---|
塩ビ板 1mm厚 | 1枚 | ¥0 | ¥0 | 家にあったので。 購入すると500円ぐらい。 |
M3 40mm 鍋小ネジ | 4 | ¥10 | ¥40 | |
M3 ワッシャー | 8 | ¥3 | ¥24 | |
M3 ナット | 4 | ¥5 | ¥20 | |
4×35 スペーサー | 1 | ¥100 | ¥100 | 6個入り |
M2 15mm 鍋小ネジセット | 1 | ¥100 | ¥100 | ネジ、座金、ワッシャーが各8個入り |
3.2×15mm ジュラコンスペーサー | 1 | ¥210 | ¥210 | 10個入り |
Raspberry Pi マルチ パイ スタッカブル ケース Multi-Pi Stackable Raspberry Pi Case | |
光 塩ビ板 透明 1×200×300mm EB231-1 |
>brew info subversion17
subversion17: stable 1.7.13
http://subversion.apache.org/
Not installed
From: https://github.com/homebrew/homebrew-versions/commits/master/subversion17.rb
==> Dependencies
Build: pkg-config , scons
Required: neon , sqlite
==> Options
--java
Build Java bindings
--perl
Build Perl bindings
--ruby
Build Ruby bindings
--unicode-path
Include support for OS X UTF-8-MAC filename
--universal
Build a universal binary
--with-homebrew-openssl
Include OpenSSL support via Homebrew
--with-python
Build with python support
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
> brew install subversion17 --unicode-path
FreeBSD | 8.3-RELEASE |
---|---|
perl | v5.10.1 |
#
# select device
#
# TODO: multicard (/dev/ptx1, /dev/ptx2, ...)
#
open($t, "<", "/dev/ptx0.${tuner}0");
if ($t) {
$dev = "/dev/ptx0.${tuner}0";
$mib = "dev.ptx.0.${tuner}0";
} else {
open($t, "<", "/dev/ptx0.${tuner}1");
if ($t) {
$dev = "/dev/ptx0.${tuner}1";
$mib = "dev.ptx.0.${tuner}1";
} else {
die("device busy");
}
}
#
# select device
#
# TODO: multicard (/dev/ptx1, /dev/ptx2, ...)
#
if(!open($t,"<","/dev/ptx0.${tuner}0")){
if(!open($t,"<","/dev/ptx0.${tuner}1")){
die("device busy");
} else {
$dev = "/dev/ptx0.${tuner}1";
$mib = "dev.ptx.0.${tuner}1";
}
} else {
$dev = "/dev/ptx0.${tuner}0";
$mib = "dev.ptx.0.${tuner}0";
}
SCM ICカードリーダー/ライター B-CAS・住基カード対応 SCR3310/v2.0 【簡易パッケージ品】
M/B | Intel D525MW |
---|---|
HDD | Seagate ST3000DM001 |
OS | FreeBSD 8.3-RELEASE |
# dmesg
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: ATA-8 SATA 3.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C)
# gpart create -s GPT ada1
ada1 created
# gpart show ada1
=> 34 5860533101 ada1 GPT (2.7T)
34 5860533101 - free - (2.7T)
# gpart add -a 4k -t freebsd-ufs ada1
ada1p1 added
# gpart show ada1
=> 34 5860533101 ada1 GPT (2.7T)
34 6 - free - (3.0k)
40 5860533088 1 freebsd-ufs (2.7T)
5860533128 7 - free - (3.5k)
# ls /dev/ada1*
/dev/ada1 /dev/ada1p1
# newfs -U /dev/ada1p1
# mount /dev/ada1p1 /mnt
# umount /mnt
# vi /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ada0s1b none swap sw 0 0
/dev/ada0s1a / ufs rw 1 1
/dev/ada0s1e /tmp ufs rw 2 2
/dev/ada0s1f /usr ufs rw 2 2
/dev/ada0s1d /var ufs rw 2 2
/dev/ada1p1 /usr/local/data ufs rw 2 2
Intel M/B Essential mini-ITX DDR3-800 GMA3150 VGA GbE LAN PCI x1 BOXD525MW
Seagate 3.5inch 内蔵ハードディスク 3.0TB 7200rpm 64MBキャッシュ 1TBプラッタ採用 SATA III 6Gbps ST3000DM001
> fetch http://jaist.dl.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz
> tar zxvf opencore-amr-0.1.2.tar.gz
> cd opencore-amr-0.1.2
> ./configure
・
・
・
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating amrnb/Makefile
config.status: creating amrwb/Makefile
config.status: creating test/Makefile
config.status: creating amrnb/opencore-amrnb.pc
config.status: creating amrwb/opencore-amrwb.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
> make
・
・
・
libtool: link: gcc -g -O2 -o .libs/amrnb-enc amrnb-enc.o ../amrnb/.libs/libopencore-amrnb.so -lm -Wl,-rpath -Wl,/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I.. -I../amrnb -I../amrwb -g -O2 -MT amrwb-dec.o -MD -MP -MF .deps/amrwb-dec.Tpo -c -o amrwb-dec.o amrwb-dec.cpp
mv -f .deps/amrwb-dec.Tpo .deps/amrwb-dec.Po
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o amrwb-dec amrwb-dec.o wav.o ../amrwb/libopencore-amrwb.la -lm
libtool: link: g++ -g -O2 -o .libs/amrwb-dec amrwb-dec.o wav.o ../amrwb/.libs/libopencore-amrwb.so -lm -Wl,-rpath -Wl,/usr/local/lib
gcc -DHAVE_CONFIG_H -I. -I.. -I../amrnb -I../amrwb -g -O2 -MT linkboth.o -MD -MP -MF .deps/linkboth.Tpo -c -o linkboth.o linkboth.c
mv -f .deps/linkboth.Tpo .deps/linkboth.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -static -o linkboth linkboth.o ../amrnb/libopencore-amrnb.la ../amrwb/libopencore-amrwb.la -lm
libtool: link: gcc -g -O2 -o linkboth linkboth.o ../amrnb/.libs/libopencore-amrnb.a ../amrwb/.libs/libopencore-amrwb.a -lm
> make check
Making check in amrnb
Making check in amrwb
Making check in test
> su
# make install
・
・
・
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include/opencore-amrwb" || .././install-sh -c -d "/usr/local/include/opencore-amrwb"
/usr/bin/install -c -m 644 dec_if.h if_rom.h '/usr/local/include/opencore-amrwb'
test -z "/usr/local/lib/pkgconfig" || .././install-sh -c -d "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 opencore-amrwb.pc '/usr/local/lib/pkgconfig'
Making install in test
> fetch http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
> bzip2 -d libtheora-1.1.1.tar.bz2
> tar zxvf libtheora-1.1.1.tar
> cd libtheora-1.1.1
> ./configure
アプリ | portsの場所 |
---|---|
sdl-config | /usr/ports/devel/sdl12 |
> cd /usr/ports/devel/sdl12
> su
# make
# make install
# make clean
> cd libtheora-1.1.1
> ./configure
・
・
・
------------------------------------------------------------------------
libtheora 1.1.1: Automatic configuration OK.
General configuration:
Encoding support: ........... yes
Floating point support: ..... yes
Assembly optimization: ...... no optimization for your platform, please send a patch
Debugging telemetry: ........ no
Build example code: ......... yes
API Documentation: .......... no
Format Documentation: ....... no
Installation paths:
libtheora: ................... /usr/local/lib
C header files: .............. /usr/local/include/theora
Documentation: ............... /usr/local/share/doc/libtheora
Building:
Type 'make' to compile libtheora.
Type 'make install' to install libtheora.
Type 'make check' to run test suite (Valgrind testing not enabled)
Example programs will be built but not installed.
------------------------------------------------------------------------
> make
・
・
・
source='dump_video.c' object='dump_video.o' libtool=no depfile='.deps/dump_video.Po' tmpdepfile='.deps/dump_video.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/local/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -c `test -f 'dump_video.c' || echo './'`dump_video.c
In file included from dump_video.c:43:
/usr/include/sys/timeb.h:43: error: expected specifier-qualifier-list before 'time_t'
dump_video.c: In function 'main':
dump_video.c:448: error: 'struct timeb' has no member named 'time'
dump_video.c:448: error: 'struct timeb' has no member named 'millitm'
dump_video.c:449: error: 'struct timeb' has no member named 'time'
dump_video.c:449: error: 'struct timeb' has no member named 'millitm'
dump_video.c:456: error: 'struct timeb' has no member named 'time'
dump_video.c:456: error: 'struct timeb' has no member named 'millitm'
dump_video.c:457: error: 'struct timeb' has no member named 'time'
dump_video.c:457: error: 'struct timeb' has no member named 'millitm'
*** Error code 1
Stop in /usr/local/home/hideki/build.d/libtheora-1.1.1/examples.
*** Error code 1
Stop in /usr/local/home/hideki/build.d/libtheora-1.1.1.
*** Error code 1
Stop in /usr/local/home/hideki/build.d/libtheora-1.1.1.
> vi exsamples/dump_video.c
・
・
・
#include
#include
#include <--- これを追加
#include
#include
・
・
・
> make
・
・
・
source='player_example.c' object='player_example-player_example.o' libtool=no depfile='.deps/player_example-player_example.Po' tmpdepfile='.deps/player_example-player_example.TPo' depmode=gcc3 /bin/sh ../depcomp gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include -I/usr/local/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -c -o player_example-player_example.o `test -f 'player_example.c' || echo './'`player_example.c
player_example.c:68:31: error: machine/soundcard.h: No such file or directory
player_example.c: In function 'open_audio':
player_example.c:166: error: 'audio_buf_info' undeclared (first use in this function)
player_example.c:166: error: (Each undeclared identifier is reported only once
player_example.c:166: error: for each function it appears in.)
player_example.c:166: error: expected ';' before 'info'
player_example.c:167: error: 'AFMT_S16_NE' undeclared (first use in this function)
player_example.c:178: error: 'SNDCTL_DSP_SETFMT' undeclared (first use in this function)
player_example.c:184: error: 'SNDCTL_DSP_CHANNELS' undeclared (first use in this function)
player_example.c:190: error: 'SNDCTL_DSP_SPEED' undeclared (first use in this function)
player_example.c:196: error: 'SNDCTL_DSP_GETOSPACE' undeclared (first use in this function)
player_example.c:196: error: 'info' undeclared (first use in this function)
player_example.c: In function 'audio_close':
player_example.c:205: error: 'SNDCTL_DSP_RESET' undeclared (first use in this function)
player_example.c: In function 'audio_write_nonblocking':
player_example.c:275: error: 'audio_buf_info' undeclared (first use in this function)
player_example.c:275: error: expected ';' before 'info'
player_example.c:278: error: 'SNDCTL_DSP_GETOSPACE' undeclared (first use in this function)
player_example.c:278: error: 'info' undeclared (first use in this function)
*** Error code 1
Stop in /usr/local/home/hideki/build.d/libtheora-1.1.1/examples.
*** Error code 1
Stop in /usr/local/home/hideki/build.d/libtheora-1.1.1.
*** Error code 1
Stop in /usr/local/home/hideki/build.d/libtheora-1.1.1.
> cat examples/player_example.c
・
・
・
#if defined(__FreeBSD__)
#include
#define AUDIO_DEVICE "/dev/audio"
#elif defined(__NetBSD__) || defined(__OpenBSD__)
・
・
・
> vi examples/player_example.c
・
・
・
#if defined(__FreeBSD__)
#include <-- ここを書き換え
#define AUDIO_DEVICE "/dev/audio"
#elif defined(__NetBSD__) || defined(__OpenBSD__)
・
・
・
> make
> make install
> make check
・
・
・
PASS: granulepos_theoraenc
---- + Checking granulepos generation ...
---- + Checking granulepos generation ...
---- + Checking granulepos generation ...
---- + Checking granulepos generation ...
---- + Checking granulepos generation ...
---- + Checking granulepos generation ...
PASS: granulepos_theora
==================
All 9 tests passed
==================
Making check in m4
Making check in examples
アプリ | portsの場所 |
---|---|
git | /usr/ports/devel/git |
svn | /usr/ports/devel/svn |
> git clone git://git.videolan.org/x264.git
>./configure --help
Usage: ./configure [options]
available options:
--help print this message
--disable-avis-input disables avisynth input (win32 only)
--disable-mp4-output disables mp4 output (using gpac)
--disable-pthread disables multithreaded encoding
--disable-asm disables assembly optimizations on x86 and arm
--enable-debug adds -g, doesn't strip
--enable-gprof adds -pg, doesn't strip
--enable-visualize enables visualization (X11 only)
--enable-pic build position-independent code
--enable-shared build libx264.so
--extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS
--extra-cflags=ECFLAGS add ECFLAGS to CFLAGS
--extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS
--host=HOST build programs to run on HOST
--cross-prefix=PREFIX use PREFIX for compilation tools
>./configure --enable-shared
./configure: Command not found.
> cat ./configure | more
#!/bin/bash
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
echo "Usage: ./configure [options]"
echo ""
echo "available options:"
echo ""
echo " --help print this message"
・
・
・
アプリ | portsの場所 |
---|---|
bash | /usr/ports/shells/bash |
ln -s /usr/local/bin/bash /bin/bash
>./configure --enable-shared
Found GNU assembler 2.15 [FreeBSD] 2004-05-23
Minimum version is binutils-2.17
Your compiler can't handle inline SSSE3 asm.
If you really want to compile without asm, configure with --disable-asm.
アプリ | portsの場所 |
---|---|
bash | /usr/ports/devel/binutils |
# mv /usr/bin/as /usr/bin/as.2.15
# ln -s /usr/local/bin/as /usr/bin/as
>./configure --enable-shared
Platform: X86_64
System: FREEBSD
asm: yes
avis input: no
mp4 output: no
pthread: yes
debug: no
gprof: no
PIC: yes
shared: yes
visualize: no
You can run 'make' or 'make fprofiled' now.
アプリ | portsの場所 |
---|---|
gpac | /usr/ports/multimedia/gpac-libgpac |
> ./configure --enable-shared --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
Platform: X86_64
System: FREEBSD
asm: yes
avis input: no
mp4 output: yes
pthread: yes
debug: no
gprof: no
PIC: yes
shared: yes
visualize: no
You can run 'make' or 'make fprofiled' now.
> gmake
> gmake
> su
# gmake install
> gmake clean
コーディック | バージョン | 公式ページ | portsの場所 |
---|---|---|---|
mp3lame | 3.98.2 | http://lame.sourceforge.net/ | /usr/ports/audio/lame |
faac | 1.28 | http://www.audiocoding.com/faac.html | /usr/ports/audio/faac |
faad2 | 2.7 | http://www.audiocoding.com/faad2.html | /usr/ports/audio/faad |
xvid | 1.2.2 | http://www.xvid.org/ | /usr/ports/multimedia/xvid |
Ogg | 1.1.4 | http://www.xiph.org/ | /usr/ports/audio/libogg |
Vorbis | 1.2.3 | http://www.vorbis.com/ | /usr/ports/audio/libvorbis |
コーディック | バージョン | 公式ページ |
---|---|---|
x264 | http://www.videolan.org/developers/x264.html | |
Theora | 1.1.1 | http://www.theora.org/ |
opencode-amr | 0.1.2 | http://sourceforge.net/projects/opencore-amr/ |
> fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz
# tar -zxvf ./ports.tar.gz -C /usr/
# cd [portsディレクトリ]
# make
# make install
# make clean
# freebsd-update upgrade -r 8.0-RELEASE
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update5.FreeBSD.org... done.
Fetching metadata signature for 8.0-RC3 from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
The following components of FreeBSD seem to be installed:
kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc
src/games src/gnu src/include src/krb5 src/lib src/libexec src/release
src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin
src/usbin world/base world/dict world/doc world/info world/manpages
world/proflibs
The following components of FreeBSD do not seem to be installed:
world/catpages world/games world/lib32
Does this look reasonable (y/n)?
# freebsd-update install
# reboot
# freebsd-update install
# reboot
Nov 25 21:48:12 Athron64x2BSD kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Nov 25 21:48:12 Athron64x2BSD kernel: da0: Removable Direct Access SCSI-2 device
Nov 25 21:48:12 Athron64x2BSD kernel: da0: 40.000MB/s transfers
Nov 25 21:48:12 Athron64x2BSD kernel: da0: 3829MB (7843838 512 byte sectors:255H 63S/T 488C)
# mkdir /mnt/usbmem
# mount_msdosfs /dev/da0s1 /mnt/usbmem/
# cp /boot/boot1 /mnt/usbmem
# umount /mnt/usbmem
c:¥>bcdedit /create /d "FreeBSD" /application bootsector
c:¥>bcdedit /set {$ID} device boot
c:¥>bcdedit /set {$ID} path \freebsd.boot1
c:¥>bcdedit /displayorder {$ID} /addfirst
c:¥>bcdedit /default {$ID}