Skip to content

Instantly share code, notes, and snippets.

View enukane's full-sized avatar
🏠
Working from home

naoya Kaneko enukane

🏠
Working from home
View GitHub Profile
java.lang.NullPointerException
at org.embulk.exec.PooledBufferAllocator$NettyByteBufBuffer.release(PooledBufferAllocator.java:54)
at org.embulk.spi.Page.release(Page.java:38)
at org.embulk.standards.StdoutOutputPlugin$1.add(StdoutOutputPlugin.java:67)
at org.embulk.spi.PageBuilder.doFlush(PageBuilder.java:197)
at org.embulk.spi.PageBuilder.flush(PageBuilder.java:203)
at org.embulk.spi.PageBuilder.addRecord(PageBuilder.java:182)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
@enukane
enukane / frequensea-on-os-x.diff
Created June 10, 2015 04:04
build frequensea on os x
diff --git a/externals/ovr/Src/Kernel/OVR_Compiler.h b/externals/ovr/Src/Kernel/OVR_Compiler.h
index 93a4181..058d3c7 100644
--- a/externals/ovr/Src/Kernel/OVR_Compiler.h
+++ b/externals/ovr/Src/Kernel/OVR_Compiler.h
@@ -485,15 +485,15 @@ limitations under the License.
// OVR_Nullptr.h provides a portable nullptr and std::nullptr_t for when the
// compiler or standard library do not.
-#if !defined(OVR_CPP_NO_NULLPTR)
- #if !defined(OVR_CPP11_ENABLED) || \
@enukane
enukane / my_MMA8452Q_sample.ino
Created June 13, 2015 14:37
MMA8452Q Basic Example Code with I2C-Master-Library
#include <I2C.h>
/*
MMA8452Q Basic Example Code
Nathan Seidle
SparkFun Electronics
November 5, 2012
License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
/******************************************************************************
SFE_MMA8452Q.cpp
SFE_MMA8452Q Library Source File
Jim Lindblom @ SparkFun Electronics
Original Creation Date: June 3, 2014
https://github.com/sparkfun/MMA8452_Accelerometer
This file implements all functions of the MMA8452Q class. Functions here range
from higher level stuff, like reading/writing MMA8452Q registers to low-level,
hardware I2C reads and writes.
/******************************************************************************
SFE_MMA8452Q.cpp
SFE_MMA8452Q Library Source File
Jim Lindblom @ SparkFun Electronics
Original Creation Date: June 3, 2014
https://github.com/sparkfun/MMA8452_Accelerometer
This file implements all functions of the MMA8452Q class. Functions here range
from higher level stuff, like reading/writing MMA8452Q registers to low-level,
hardware I2C reads and writes.
#include <SFE_MMA8452Q.h>
#define DEBUG false
#define CACHE_SIZE 16
#define IDX_ACT 0
#define IDX_X 1
#define IDX_Y 2
#define IDX_Z 3
#define IDX_LIMXYZ 4
fs/btrfs/scrub.c: In function ‘scrub_enumerate_chunks’:
/root/Sources/linux-imx6-3.14/arch/arm/include/asm/atomic.h:283:2: error: ‘asm’ operand requires impossible reload
make[2]: *** [fs/btrfs/scrub.o] Error 1
make[1]: *** [fs/btrfs] Error 2
make: *** [fs] Error 2
@enukane
enukane / 20150712_freq.md
Last active August 29, 2015 14:24
2015/07/12 お台場付近できこえた周波数帯

特記しない限り羽田

周波数(MHz) 割り当て 備考
112.2 羽田VOR/DME パルスのみ
118.1 TWR A滑走路
118.575 TWR B滑走路
119.1 APP
120.8 DEP
121.7 GND A滑走路
@enukane
enukane / athsurvey.rb
Created July 15, 2015 06:14
athsurvey in linux?
#!/usr/bin/env ruby
ifname = ARGV.shift
io = IO.popen("ethtool -S #{ifname} 2>/dev/null")
ATTR_TIME="time"
ATTR_BUSY="time_busy"
ATTR_RX="time_rx"
ATTR_TX="time_tx"
@enukane
enukane / pitft-hb.md
Created July 16, 2015 12:40
PiTFT (2.8inch) on HummingBoard i2ex: not working
#sudo modprobe -v fbtft_device name=pitft rotate=90 debug=5 busnum=1
[  136.933196] fbtft_device:  SPI devices registered:
[  136.933223] fbtft_device:      spidev spi1.0 5000kHz 8 bits mode=0x00
[  136.933242] fbtft_device:      spidev spi1.1 5000kHz 8 bits mode=0x00
[  136.933254] fbtft_device:  'fb' Platform devices registered:
[  136.933365] fbtft_device:      fb.27 id=0 pdata? yes
[  136.933404] fbtft_device: Deleting spi1.0
[  136.935449] fbtft_device:  GPIOS used by 'pitft':
[  136.935464] fbtft_device:    'dc' = GPIO25