Skip to content

Instantly share code, notes, and snippets.

View azyobuzin's full-sized avatar

Takuya Sakurai azyobuzin

View GitHub Profile
System.ArgumentException: 式は書き込み可能でなければなりません
パラメーター名: left
場所 System.Linq.Expressions.Expression.RequiresCanWrite(Expression expression, String paramName)
場所 System.Linq.Expressions.Expression.Assign(Expression left, Expression right)
場所 XSpect.Yacq.SymbolTable.RootSymbols.Assign(DispatchExpression e, SymbolTable s, Type t) 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugin\Yacq\Yacq\SymbolTable.RootSymbols.cs:行 89
場所 XSpect.Yacq.Expressions.DispatchExpression.ReduceImpl(SymbolTable symbols, Type expectedType) 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugin\Yacq\Yacq\Expressions\DispatchExpression.cs:行 154
場所 XSpect.Yacq.Expressions.YacqExpression.ForceReduce(SymbolTable symbols, Type expectedType) 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugin\Yacq\Yacq\Expressions\YacqExpression.cs:行 173
場所 XSpect.Yacq.Expressions.YacqExpression.Reduce(SymbolTable symbols, Type expectedType) 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugi
System.ArgumentException がキャッチされました
Message=型 'Dulcet.Twitter.TwitterStatus' の式は戻り値の型 'T' には使用できません
Source=System.Core
StackTrace:
場所 System.Linq.Expressions.Expression.ValidateLambdaArgs(Type delegateType, Expression& body, ReadOnlyCollection`1 parameters)
場所 System.Linq.Expressions.Expression.Lambda(Type delegateType, Expression body, String name, Boolean tailCall, IEnumerable`1 parameters)
場所 System.Linq.Expressions.Expression.Lambda(Type delegateType, Expression body, ParameterExpression[] parameters)
場所 XSpect.Yacq.Expressions.AmbiguousLambdaExpression.<>c__DisplayClass12.<>c__DisplayClass14.<ReduceImpl>b__a(Expression e) 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugin\Yacq\Yacq\Expressions\AmbiguousLambdaExpression.cs:行 124
場所 XSpect.Yacq.Extensions.Let[TReceiver,TResult](TReceiver self, Func`2 func) 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugin\Yacq\Yacq\Extensions.cs:行 134
場所 XSpect.Yacq.Expressions.AmbiguousLambdaEx
package net.azyobuzi.fallfavo;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import android.content.Context;
public class QueueManager {
System.InvalidOperationException: シーケンスに要素が含まれていません
Server stack trace:
場所 System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
場所 XSpect.Yacq.Expressions.DispatchExpression.Candidate.get_IsParamArrayContext() 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugin\Yacq\Yacq\Expressions\DispatchExpression.Candidate.cs:行 191
場所 XSpect.Yacq.Expressions.DispatchExpression.Candidate.<.ctor>b__9a() 場所 C:\Users\pepe\Documents\Visual Studio 2010\Projects\YacqPlugin\Yacq\Yacq\Expressions\DispatchExpression.Candidate.cs:行 218
場所 System.Lazy`1.CreateValue()
Exception rethrown at [0]:
場所 System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
public abstract class Enumerable<T> {
public static <T> Enumerable<T> from(final Enumerator<T> enumerator) {
return new Enumerable<T>() {
@Override
public Enumerator<T> getEnumerator() {
return enumerator;
}
};
}
Scala Classpath Problem: More than one scala library found in the build path, including at least one with an incompatible version. Please update the project build path so it contains only compatible scala libraries
05-12 17:29:56.752: ERROR/AndroidRuntime(25491): FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{net.azyobuzi.azyotter.saostar/net.azyobuzi.azyotter.saostar.MainActivity}: java.lang.ClassNotFoundException: net.azyobuzi.azyotter.saostar.MainActivity
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1879)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
at android.app.ActivityThread.access$600(ActivityThread.java:122)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
@azyobuzin
azyobuzin / gist:2929574
Created June 14, 2012 10:48
Buzzになる数字をFizzBuzz判断を使わずにn個挙げる
//n個
var n = 5;
var result = Enumerable.Range(0, (int)Math.Ceiling(n / 2D))
.SelectMany(count => (count == Math.Floor(n / 2D) && n % 2 != 0
? new[] { 5 } : new[] { 5, 10 })
.Select(i => 15 * count + i));
//LINQPadに出力
result.Dump();
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>if test</title>
<?php
if (true) {
?>
<p>true</p>
@azyobuzin
azyobuzin / Module1.vb
Created August 11, 2012 14:38
FizzBuzzVB
Module Module1
Sub Main()
Dim count = 100
Dim result = From i In Enumerable.Range(1, count)
Select New With {
.Number = i, _
.FizzBuzz = IIf(i Mod 15 = 0, "FizzBuzz",
IIf(i Mod 3 = 0, "Fizz",