Android用のView Injectionライブラリである Butter Knife について解説します (といいますか、サイトに書いてあることをほとんどそのまま日本語にしただけです) 。
Butter Knifeは ActionBarSherlock などでお馴染みの Square のJake WhartonさんによるAndroid用のView Injectionライブラリです。
このライブラリの目的が、
- Activity, ViewのfindViewByIdを楽に書く
- (NSString *)text6Compatible | |
{ | |
return self.text; | |
} | |
- (void)setText6Compatible:(NSString *)text6Compatible | |
{ | |
self.text = text6Compatible; | |
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(7)) { |
import Foundation | |
var l = [ | |
"abesi", | |
"hidebu", | |
"tawaba", | |
] | |
var m = [ | |
"abesi": 1, |
{ | |
"builders": [{ | |
"type": "virtualbox", | |
"guest_os_type": "Linux", | |
"iso_url": "https://github.com/steeve/boot2docker/releases/download/v0.3.0/boot2docker.iso", | |
"iso_checksum": "e03670ed349c54848e20d9043a90f2df8df70d82e674b84a7083301193745b19", | |
"iso_checksum_type": "sha256", | |
"ssh_username": "docker", | |
"ssh_password": "tcuser", | |
"shutdown_command": "sudo poweroff" |
Android用のView Injectionライブラリである Butter Knife について解説します (といいますか、サイトに書いてあることをほとんどそのまま日本語にしただけです) 。
Butter Knifeは ActionBarSherlock などでお馴染みの Square のJake WhartonさんによるAndroid用のView Injectionライブラリです。
このライブラリの目的が、
veeweeやpackerは使わずVirtualBoxとVagrantだけで作ってみます
参考: http://docs-v1.vagrantup.com/v1/docs/base_boxes.html
環境: VirtualBox 4.2.16 Vagrant 1.2.7
画期的な方法を発見した。MySQL 5.5 の UUID()
関数は、100ナノ秒精度の現在時刻を含んだ UUID v1 を返す(12.15. Miscellaneous Functions)。これをパースすればマイクロ秒精度の現在時刻を取得することができる。
詳しい実装についてはmysqldのソースに書いてあるので読めばいい。mysql-5.5.27/sql/item_strfunc.cc
に実装してある。141427日間のオフセットがかかっていたりするので気をつける。
DELIMITER //
CREATE FUNCTION TIMESTAMP_USEC()
RETURNS BIGINT NOT DETERMINISTIC
MessagePackが文字列とバイナリをわけないのは問題?
Objective Cの実装使ってるとある問題にぶちあたった.なので,文字列をちゃんとバイナリ(Raw)と分けるべき,という提案
(*) 俺は熟読したわけではないので,中身が気になる人はちゃんと本スレを読みましょう
source :rubygems | |
# activerecordにはパッケージ名に罠がある | |
# http://stackoverflow.com/questions/4016929/bunder-require-does-not-work-for-activerecord-in-my-gem | |
gem 'activerecord', require: 'active_record' | |
gem 'sqlite3' |
Add this to Info.plist
in /System/Library/Spotlight/RichText.mdimporter/Contents/
and Spotlight will search for source code files.
<string>public.c-header</string>
<string>public.c-plus-plus-header</string>
<string>public.c-source</string>
<string>public.objective-c-source</string>
public.c-plus-plus-source
# coding: utf-8 | |
class Fluent::InTailMysql < Fluent::Input | |
Fluent::Plugin.register_input('tail_mysql', self) | |
require 'mysql' | |
config_param :host, :string | |
config_param :user, :string | |
config_param :password, :string |