Skip to content

Instantly share code, notes, and snippets.

View atsushieno's full-sized avatar

Atsushi Eno atsushieno

View GitHub Profile
CSC [build-linux] System.Linq.dll
warning CS2008: No source files specified.
warning CS2008: No source files specified.
error CS0009: Metadata file '/sources/xamarin-android/external/mono/mcs/class/lib/build-linux/System.Core.dll' could not be opened -- PE image doesn't contain managed metadata.
make[11]: *** [../../../class/lib/build-linux/Facades/System.Linq.Expressions.dll] Error 1
../../../build/library.make:350: recipe for target '../../../class/lib/build-linux/Facades/System.Linq.Expressions.dll' failed
../../../build/rules.make:211: recipe for target 'do-all' failed
make[10]: *** [do-all] Error 2
make[9]: *** [System.Linq.Expressions] Error 2
make[9]: *** Waiting for unfinished jobs....
@atsushieno
atsushieno / FixCleanBuild.md
Last active December 22, 2017 06:15
How to resolve stupid MSBuild solution structure with broken Clean targets

How to resolve stupid MSBuild solution structure with broken Clean targets

Current "stupid" MSBuild style

Target "Build"

(all.sln)

   Project("{project_type_guid}") = "depending" "depending.proj", "{project_guid}"

EndProject

Java documentation import

Information sources

  • Java sources - contains docs. Need javadoc tool to extract them
  • Java stub sources - can extract API, does not contain documentation
  • DroidDoc - docs as is. Impossible to predict format changes. Needs horrible hack (scraping). And changes occur quite often
  • JavaDoc - docs as is. Third party libs could provide them. Format changes are predictable and not often, but matters and bites us. Needs horrible hack (scraping). They are often the only information sources.
@atsushieno
atsushieno / VSQresearch.md
Created December 10, 2017 07:46
VSQの歌詞マクロ研究

By note on on August 23, 2009 2:12 AM | No Comments | No TrackBacks

VSQサポートMMLで歌詞とメロディが書けるようになったので、vocaloidのヘルプなどを見ながら埋めていた「あ」から「を」までのマクロを全て埋めてみた。 これの発音記号が、単純なヘボン式ローマ字表記ではないのだ。

一番分かりやすいところでは、まず「う」段が'u'にならず、'M'になる。'u'が使われているのは「ゆ」だけだ。 おそらく、日本語の「う」は一般に発音が不明瞭で、あえて声を出して聞かせる音にはなっていないのだろう。 唯一の例外として「ゆ」はハッキリとuを発音するようにしないと、音が聞き取れないのだろうと思う。

次にパターンが明白なのは「い」段のほとんどにシングルクォーテーション(')がつくことだ。

gcc -shared -Wl,--whole-archive lib/libbase.a -Wl,--no-whole-archive -Wl,-soname,libbase.so.1 -o lib/libbase.so
gcc -shared -Wl,--whole-archive lib/libsdk.a -Wl,--no-whole-archive -Wl,-soname,libsdk.so.1 -o lib/libsdk.so
gcc -shared -Wl,--whole-archive lib/libvstgui.a -Wl,--no-whole-archive -Wl,-soname,libvstgui.so.1 -o lib/libvstgui.so
gcc -shared -Wl,--whole-archive lib/libvstgui_support.a -Wl,--no-whole-archive -Wl,-soname,libvstgui_support.so.1 -o lib/libvstgui_support.so
gcc -shared -Wl,--whole-archive lib/libvstgui_uidescription.a -Wl,--no-whole-archive -Wl,-soname,libvstgui_uidescription.so.1 -o lib/libvstgui_uidescruption.so
@atsushieno
atsushieno / gist:8f2d0d7f47aa2561239d1c92d7de529f
Last active July 2, 2017 09:20
building monodevelop d15-2 branch from scratch with /usr/bin/mono and /usr/bin/msbuild
$ cat version.config
Version=7.0.2
Label=7.0.2 Preview
CompatVersion=7.0
IsPreview=True
$ nuget install Mono.Cecil -Prerelease # it will install 0.10.0-beta6 or anything later.
replace Mono.Cecil versions from 0.10.0-beta5 with the latest version found above in Mono.Addins.CecilReflector.csproj for d15-3. Or obj/*.json.
@atsushieno
atsushieno / aldareview.md
Last active May 27, 2017 05:05
ALDA評価メモ

What is alda?

  • 音楽記述言語 https://github.com/alda-lang/alda/
  • PPMCKと LilyPondとChucKにインスパイアされている(つもりらしい)
  • text to MIDI / scores
  • clojureで実装 一部clojurescriptにもある?

Syntax notes

  • note命令: cdefgab
@atsushieno
atsushieno / LibAvCodecSharp.cs
Created May 4, 2017 06:09
nclang PInvokeGenerator output, with a lot of manual edits.
// This source file is generated by nclang PInvokeGenerator.
using System;
using System.Runtime.InteropServices;
using int8_t = System.SByte;
using int16_t = System.Int16;
using int32_t = System.Int32;
using int64_t = System.Int32;
using uint8_t = System.Byte;
using uint16_t = System.UInt16;
using uint32_t = System.UInt32;
@atsushieno
atsushieno / AndroidFCR-data-binding.md
Created April 14, 2017 12:37
AndroidFCR #5 (data-binding)
~/Desktop$ cat x.cs
public class Test
{
public static void Main ()
{
throw new System.Exception ();
}
}
~/Desktop$ csc x.cs -debug:portable
Microsoft (R) Visual C# Compiler version 2.0.0.61205