転職しました。長らくのご愛顧誠にありがとうございました。
転職先をちょくちょく探しています。
興味ある方は twitter @mizchi へのリプライorDM、または mizchi2w@gmail.com まで。
#!/usr/bin/python | |
# | |
# simple XDP eBPF program to flag connections using an eBPF map | |
# this example adds connections to ::1 ::1 to a an eBPF map | |
# depends on `bpftool` for now, as bcc is missing map pinning | |
# | |
# the map is spinned by the XDP program, and this python handler | |
# will call `bpftool` to pin the map to a path to allow system-wide | |
# access. the path will be removed when the program quits. | |
# |
転職しました。長らくのご愛顧誠にありがとうございました。
転職先をちょくちょく探しています。
興味ある方は twitter @mizchi へのリプライorDM、または mizchi2w@gmail.com まで。
Oracle v. GoogleのAPI著作権裁判の話(連邦最高裁)
2016年5月26日付で、合衆国連邦地裁(Federal District Court)において、いわゆる「Java API著作権裁判」について、「GoogleのJava API使用はフェアユースである」という陪審員評決が出たと報道されている。
なお、注意すべき点として、2016年5月26日段階で報道されている評決はまだ未確定である。今回の裁判はいわゆる知財裁判のため、州裁判所ではなく、連邦裁判所の管轄になっており、連邦地裁はその1審である。Oracleはおそらく控訴審の巡回裁判所、状況によっては連邦最高裁まで進むつもりであると思われるので、今後の動向には引き続き注意を要する。
これを読んでる。
この本の中で「トランザクティブ・メモリー」という話がでてきた。概要は以下のコラムに書いてる。
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |
# power_assert.rb | |
# | |
# Copyright (C) 2014 Kazuki Tsujimoto, All rights reserved. | |
# License: BSDL | |
# | |
# $ ruby power_assert.rb | |
# "0".class == "3".to_i.times.map {|i| i + 1 }.class | |
# | | | | | | |
# | | | | Array | |
# | | | [1, 2, 3] |
#! /your/favourite/path/to/ruby | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2013 Urabe, Shyouhei | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
function dex-method-count() { | |
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
} | |
function dex-method-count-by-package() { | |
dir=$(mktemp -d -t dex) | |
baksmali $1 -o $dir | |
for pkg in `find $dir/* -type d`; do | |
smali $pkg -o $pkg/classes.dex | |
count=$(dex-method-count $pkg/classes.dex) | |
name=$(echo ${pkg:(${#dir} + 1)} | tr '/' '.') |
(function (window) { | |
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6. | |
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling. | |
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction). | |
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise | |
// that it works, or that I will provide support (don't sue me). | |
// Author: rkorving@wizcorp.jp | |
var timeouts = {}; |
Below is a formal list of possible optimizations, which most would agree on. We had these discussion in 2001 with damian were perl6 and perl5i took off. I'd like to work on these for perl5 core and need decisions. Most p5p hackers seem to be informed about the general possibilities and directions, but not all. We'd need this to improve general perl5 performance, and also help static compilation.[1]