Skip to content

Instantly share code, notes, and snippets.

View chezou's full-sized avatar

Aki Ariga chezou

View GitHub Profile
@chezou
chezou / mecab-build.log
Last active November 22, 2018 14:13
mecab windows 64 bit build failure
C:\Users\chezo\source\mecab\mecab\src>nmake -f Makefile.msvc
Microsoft(R) Program Maintenance Utility Version 14.16.27023.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl.exe /EHsc /O2 /GL /GA /Ob2 /nologo /W3 /MT /Zi /wd4800 /wd4305 /wd4244 -I. -I.. -D_CRT_SECURE_NO_DEPRECATE -DMECAB_USE_THREAD -DDLL_EXPORT -DHAVE_GETENV -DHAVE_WINDOWS_H -DDIC_VERSION=@DIC_VERSION@ -DVERSION="\"@VERSION@\"" -DPACKAGE="\"mecab\"" -DUNICODE -D_UNICODE -DMECAB_DEFAULT_RC="\"c:\\Program Files\\mecab\\etc\\mecabrc\"" -c feature_index.cpp
feature_index.cpp
feature_index.cpp(80): error C3861: 'WPATH_FORCE': 識別子が見つかりませんでした
feature_index.cpp(356): error C2593: 'operator <<' があいまいです。
c:\users\chezo\source\mecab\mecab\src\string_buffer.h(55): note: 'MeCab::StringBuffer &MeCab::StringBuffer::operator <<(unsigned char)' の可能性があります
@chezou
chezou / hyperparameter-optimization-solution.ipynb
Last active October 16, 2018 07:31
Hyper parameter optimization example with PyWren
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chezou
chezou / README.md
Created September 28, 2018 05:50
digdag py> operator with conda image

File is put as follows:

➜  pyop-test tree .
.
├── py-test.dig
└── simple_task.py

0 directories, 2 files
@chezou
chezou / kinesis_freestyle2.json
Created September 3, 2018 02:57
Karabiner-Elements setting for Kinesis freestyle2 only for Windows version with disabling for Mac. `location_id` should be replaced for your Kinesis freestyle2.
{
"title": "Kinesis Freestyle2",
"rules": [
{
"description": "Swap only for Windows",
"manipulators": [
{
"conditions": [
{
"type": "device_if",
@chezou
chezou / parameter_tuning.dig
Created August 28, 2018 05:22
parameter tuning example of Boston house pricing
_export:
!include : config/params.yml
td:
apikey: ${apikey}
database: ${dbname}
engine: hive
target_table: house_prices_training
+prepare:
##### Aggregator configs #####
# general settings
agent.sources = avro-source
agent.channels = weblog-ch dstat-ch
agent.sinks = weblog-sink dstat-sink
## sources
agent.sources.avro-source.type = avro
# Do not use localhost which causes RPC connection error
# Should be changed different hostname for each node
CREATE DATABASE IF NOT EXISTS flights;
CREATE EXTERNAL TABLE IF NOT EXISTS airports_str (
iata STRING
, airport STRING
, city STRING
, state STRING
, country STRING
, latitude DOUBLE
, longitude DOUBLE
(venv) ~/w/pyhocon (master ☡=) (venv) python --version 09:22:30
Python 3.6.1
(venv) ~/w/pyhocon (master ☡=) (venv) py.test tests/test_tool.py --doctest-modules 09:17:00
============================================================================== test session starts ==============================================================================
platform darwin -- Python 3.6.1, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
rootdir: /Users/ariga/work/pyhocon, inifile:
collected 6 items
tests/test_tool.py FFFFF.
@chezou
chezou / install-director.sh
Last active December 23, 2019 17:47
How to install Cloudera Director on Linux Subsystem on Windows 10
#!/bin/bash
# Prepare source list
cd /etc/apt/sources.list.d/
sudo curl "http://archive.cloudera.com/director/ubuntu/trusty/amd64/director/cloudera-director.list" -O
sudo curl -s "http://archive.cloudera.com/director/ubuntu/trusty/amd64/director/archive.key" | sudo apt-key add -
# Install Java
sudo apt-get update
sudo apt install oracle-j2sdk1.8
aafigure==0.6
alabaster==0.7.10
Babel==2.4.0
certifi==2017.4.17
chardet==3.0.4
colorama==0.3.9
docutils==0.13.1
idna==2.5
imagesize==0.7.1
Jinja2==2.9.6