text:
ctypes\test\test_prototypes.py is failing

.F
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Microsoft.Win32.Win32Native.WideCharToMultiByte(UInt32 cp, UInt32 flags, Char* pwzSource, Int32 cchSource, Byte* pbDestBuffer, Int32 cbDestBuffer, IntPtr null1, IntPtr null2)
   at System.String.ConvertToAnsi(Byte* pbNativeBuffer, Int32 cbNativeBuffer, Boolean fBestFit, Boolean fThrowOnUnmappableChar)
   at System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(String s)
   at InteropInvoker(IntPtr , Object , Object[] )
   at CallSite.Target(Closure , CallSite , Object , Object )
   at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 163
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 784
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\Ast\CallExpression.cs:line 267
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 97
   at IronPython.Runtime.Method.MethodBinding.SelfTarget(CallSite site, CodeContext context, Object target) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Method.Generated.cs:line 130
   at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 163
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 130
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 760
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 241
   at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 238
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 202
   at Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 213
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 784
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 202
   at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Method.Generated.cs:line 161
   at CallSite.Target(Closure , CallSite , CodeContext , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\Ast\CallExpression.cs:line 267
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 784
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 241
   at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`8.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 832
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 241
   at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 238
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 202
   at Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 213
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 784
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 202
   at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Method.Generated.cs:line 161
   at CallSite.Target(Closure , CallSite , CodeContext , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 784
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\Ast\CallExpression.cs:line 267
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at IronPython.Compiler.PythonCallTargets.OriginalCallTarget3(PythonFunction function, Object arg0, Object arg1, Object arg2) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\PythonCallTargets.cs:line 52
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 784
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run6[T0,T1,T2,T3,T4,T5,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 241
   at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
   at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 238
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 202
   at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\DynamicInstructions.Generated.cs:line 213
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at IronPython.Compiler.PythonCallTargets.OriginalCallTarget3(PythonFunction function, Object arg0, Object arg1, Object arg2) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\PythonCallTargets.cs:line 52
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs:line 784
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 202
   at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Method.Generated.cs:line 161
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at CallSite.Target(Closure , CallSite , CodeContext , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\Ast\CallExpression.cs:line 267
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 130
   at IronPython.Runtime.Method.MethodBinding`1.SelfTarget(CallSite site, CodeContext context, Object target, T0 arg0) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Method.Generated.cs:line 161
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\Ast\CallExpression.cs:line 267
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 97
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Runtime.Method.MethodBinding.SelfTarget(CallSite site, CodeContext context, Object target) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Method.Generated.cs:line 130
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at IronPython.Compiler.Ast.CallExpression.Invoke0Instruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\Ast\CallExpression.cs:line 246
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run12[T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 517
   at IronPython.Compiler.PythonCallTargets.OriginalCallTarget11(PythonFunction function, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7, Object arg8, Object arg9, Object arg10) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\PythonCallTargets.cs:line 92
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker(Object[] args) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.cs:line 262
   at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.cs:line 279
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 165
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at IronPython.Runtime.Types.LateBoundInitBinder.FastInitSite.CallTarget(CallSite site, CodeContext context, Object inst) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Types\PythonType.Generated.cs:line 836
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at IronPython.Runtime.Types.PythonType.FastTypeSite.CallTarget(CallSite site, CodeContext context, Object type) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Runtime\Types\PythonType.Generated.cs:line 267
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at IronPython.Compiler.Ast.CallExpression.Invoke0Instruction.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\Ast\CallExpression.cs:line 246
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\Interpreter.cs:line 105
   at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Interpreter\LightLambda.Generated.cs:line 66
   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Compiler\RuntimeScriptCode.cs:line 75
   at IronPython.Hosting.PythonCommandLine.RunFileWorker(String fileName) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Hosting\PythonCommandLine.cs:line 552
   at IronPython.Hosting.PythonCommandLine.RunFile(String fileName) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Hosting\PythonCommandLine.cs:line 537
   at Microsoft.Scripting.Hosting.Shell.CommandLine.Run() in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Hosting\Shell\CommandLine.cs:line 142
   at IronPython.Hosting.PythonCommandLine.Run() in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPython\Hosting\PythonCommandLine.cs:line 134
   at Microsoft.Scripting.Hosting.Shell.CommandLine.Run(ScriptEngine engine, IConsole console, ConsoleOptions options) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Hosting\Shell\CommandLine.cs:line 110
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.RunCommandLine() in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Hosting\Shell\ConsoleHost.cs:line 397
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.ExecuteInternal() in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Hosting\Shell\ConsoleHost.cs:line 332
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Run(String[] args) in C:\Users\USER\Code\_ipy\ironpython2\Src\DLR\Src\Microsoft.Dynamic\Hosting\Shell\ConsoleHost.cs:line 208
   at PythonConsoleHost.Main(String[] args) in C:\Users\USER\Code\_ipy\ironpython2\Src\IronPythonConsole\Console.cs:line 103

Collected in #457


text:
ui-bootstrap update

thanks for this great repository, you may want to see if ui-bootstrap update to 14.0.2? and not cause problems

I'll check into it. Everything will be blown up shortly and updated to Bootstrap 4 though so I am not making major updates to themes and templates at the moment, I'm just working locally on getting everything Bootstrap 4 ready!

source: gharchive/issue

authors: davidtmiller newmesiss

license_type: permissive

license_source: bigquery


text:
Added support for MidiCo LRC and improved robustness of Enhanced LRC

Added support for MidiCo LRC and improved robustness of Enhanced LRC

In my next release (this weekend) I'll at least get a BOM fix (that will still allow use of non-UTF8 .lrc files).
Hopefully will also get the MidiCo lrc support added, but want to make sure it does something sane for duets, ideally setting them to different styles, but at least keeping the lines consistent instead of interleaving them.
I'll leave this open until those updates are complete, whether or not they use some of this code.

source: gharchive/pull-request

authors: ItMightBeKaraoke beveradb

repo: ItMightBeKaraoke/kbputils

license_source: github-api


text:
Bed

Includes changes that allows user to download a BED file, currently limited to a single gene bed. Connects to Variant validator and outputs the relevant information.

Currently only accepts HGNC ID

Now has the ability to download a bed file based on Panel ID or Rcode

license: MIT


text:
WebP Rich Media Support

I've noticed when using a iOS rich media URL that refers to a webp image, the attachment is not shown as part of the notification, however the URL is correctly pulled down in attachment-url when printing the push payload to the XCode console, and changing the format of the image from webp to png (for example) works and is displayed as expected.
Is webp rich media a supported use case, if not, are there any plans or ETAs on when this would be supported? We'd like to use WebP as the file sizes for our use case are a lot smaller 😄
Thanks!

+1

repo: Iterable/swift-sdk


text:
rules expressions documentation

First of all, thank you very much for this amazing project.
A big request - could you please provide a little more detailed information on the compilation rules expressions?
I mean:
rules:
  example_rule:
    name: Example Rule
    expression: or (eq .Message.Subject "cam-1") (eq .Message.Subject "cam-2") <---- This is

What variables are available? A few complex examples would be very helpful

And is it possible to have a rule for *@script.test where the asterisk is any string?

repo: ItsNotGoodName/smtpbridge


text:
[ENHANCEMENT]Is It Even Possible To Make Alpaca Connect To Internet.

Hey, as Alpaca makes up some answers which may be frustrating at times when you depend on it for project work, make it connectable to the internet please, it can be revolutionary it will undoubtedly help me, and millions of others (soon-to-use) a ton hence please add this feature, thankyou.

Been wondering about the same thing... But I'm just going to ask you a question.
It's been made don't in that manner but Can it be modified in that manner?
Don't you think that people half clue in their minds would like to get their hands on a ready-to-kill thing?
Just consider it a free demo or some sort.
If anyone made what you ask they probably get sued by some company for some moron reason or just cause.
That's just my own input but I saw lots of those things going on and on in the news over the internet about AI going heywired and some morons wanting to abuse IT to destroy the world like trying to make SkyNet from Terminator`s film,

I added it a whole back. But I guess duck-duck-scrape broke or smth. Because it doesn't work anymore. I'll have a look when I have time.


text:
Building iOS framework with build_framework.py fails

Attempting to build iOS framework with build_framework.py gives the following error:
The following build commands failed:
	CompileC /Users/steve/Development/GitHub/ios/build/arm64-iPhoneOS/3rdparty/zlib/OpenCV.build/Release-iphoneos/zlib.build/Objects-normal/arm64/gzread.o 3rdparty/zlib/gzread.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
============================================================
ERROR: Command '['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=6.0', 'ARCHS=arm64', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '4', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65
============================================================
Traceback (most recent call last):
  File "opencv/platforms/ios/build_framework.py", line 87, in build
    self._build(outdir)
  File "opencv/platforms/ios/build_framework.py", line 81, in _build
    self.buildOne(t[0], t[1], mainBD, cmake_flags)
  File "opencv/platforms/ios/build_framework.py", line 139, in buildOne
    execute(buildcmd + ["-target", "ALL_BUILD", "build"], cwd = builddir)
  File "opencv/platforms/ios/build_framework.py", line 34, in execute
    retcode = check_call(cmd, cwd = cwd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=6.0', 'ARCHS=arm64', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '4', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65

Command:
python opencv/platforms/ios/build_framework.py ios
OS X 10.11.3
MacBook Pro/2.8 GHz Core 2 Duo
XCode 7.2.1

There is no real error reason in this log cut. Please add more info.
BTW, We can't reproduce this problem with XCode 7.2: http://pullrequest.opencv.org/buildbot/builders/master_iOS-mac/builds/194

Perhaps it's hardware-related? Compiles fine on my iMac/4 GHz i7, OS X 10.11.2, XCode 7.1.1. I'll update this machine to OS X 10.11.3/XCode 7.2 and see what happens.
Have you ever tried compiling with a Core 2 Duo? Is the Core 2 Duo supported for this purpose?

I have the same problem.
OS X 10.11.3
MacBook Pro/2.5 GHz Intel Core i5
XCode 7.2.1

Please, provide full build logs (via attachment, pastebin or gist). Try to make clean build, try to install all updates and restart computer.

Hi mshabunin,
The error log is attached.  implicit_declaration_of_function_is_invalid_in_C99.txt
The error shows

gzwrite.c:90:21: error:
implicit declaration of function 'write' is invalid in C99
gzwrite.c:579:9: error:
implicit declaration of function 'close' is invalid in C99

If I add "#include <unistd.h>" in gzguts.h, this error can be fixed.

Actually there is already include <unistd.h> statement. But it is under condition from configuration stage.
Could someone put CMake output with these lines?
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed

authors: SSteve alalek alb423 mshabunin

repo: Itseez/opencv


text:
Implementation of Ni-Black thresholding algorithm.

This is in response to the feature request: 4024

Could someone please review this?
Thanks!

@samyak-268, thanks! This is new algorithm and it should be contributed to http://github.com/itseez/opencv_contrib instead (to the module ximgproc).


text:
Bug fix for feature extraction

According to CartToPolar() function documentation, result angles could be in range (0..360). To prevent index overflow this check is important.

+1

authors: Aljaksandr bmagyar


text:
While Running For first time, got this error

11.04 Retrying 1/3...
16.51  ✓ Compiled successfully
16.51    Linting and checking validity of types ...
20.26 Failed to compile.
20.26
20.26 ./components/EmptyChat.tsx:15:22
20.26 Type error: Type '{ size: number; className: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string | undefined; }'.
20.26   Property 'size' does not exist on type 'IntrinsicAttributes & { className?: string | undefined; }'.
20.26
20.26   13 |   return (
20.26   14 |
20.26 > 15 |
20.26      |                      ^
20.26   16 |
20.26   17 |
20.26   18 |
20.29 error Command failed with exit code 1.
20.29 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1
(base) orion

Follow these steps to fix:

cd ui/components/theme/
nano Switcher.tsx

Change the component declaration as follows:
const ThemeSwitcher = ({ className }: { className?: string, size?: number })

This should fix the problem.

+1 @mystogan99's solution works for me!

Fixed in the latest release

repo: ItzCrazyKns/Perplexica


text:
Слегка подправил размер персика

За основу взяты стили персика из официального ВКшного темплейта и слегка подредактированы для большей видимости. Теперь картинка с ним не вылазит за края на мобильных устройствах
До

После

На самом деле это всего лишь пример, так как это шаблон. Но так лучше видна идея структуры и использования стилей, поэтому спасибо!

authors: ItzNeviKat SecondThundeR

repo: ItzNeviKat/vkma-template


text:
Can't fully turn off shaders

Hey Ivorforce,
Because some friends have a potato GPU, they were experiencing heavy FPS drops when looking towards the sky / seeing shader effects.
So I told them to disable the shaders in the config, however after I've done some testing on my own, we found out that even with this configuration, the shaders are still enabled:
visual {
    B:biomeHeatDistortion=false
    B:bypassPingPongBuffer=false
    D:digitalEffectPixelRescaleX=0.05000000074505806
    D:digitalEffectPixelRescaleY=0.05000000074505806
    B:disableDepthBuffer=true

    # The strength of DoF blur away from the player.
    D:dofFocalBlurFar=0.0

    # The strength of DoF blur towards the player.
    D:dofFocalBlurNear=0.0

    # The point at which DoF starts blurring the screen, away from the player, in blocks.
    D:dofFocalPointFar=512.0

    # The point at which DoF starts blurring the screen, towards the player, in blocks.
    D:dofFocalPointNear=0.0
    B:hurtOverlayEnabled=true
    B:motionBlur=false

    # If a fake skybox should be rendered to make shaders affect the fog line.
    B:renderFakeSkybox=true
    B:shader2DEnabled=false
    B:shaderEnabled=false
    D:sunFlareIntensity=0.28
    B:waterDistortion=false
    B:waterOverlayEnabled=false
}

Screenshot with this config: https://i.imgur.com/dV7QcAh.jpg
(the clouds are from another mod, ignore these)
Me as a owner of a fairly powerful GPU did not even recognize this bug, thanks to the potatoes! :)

No worries - that's not even a shader, it's just a bit of plain OGL magic. It won't have noticeable impact on the performance, but you can still disable it by setting sunFlareIntensity=0.0 :)

Thank you for the immediate reply, I will pass this information to them and report back.

Interestingly the FPS seem to be better than before, guess I won't tell them that this should not have had any impact on that ^^

repo: Ivorforce/Psychedelicraft


text:
enum value config_group and it's string name do not match

enum variable config_group and string array config_group_names are in one-to-one correspondence，
so we need to add gettext_noop("Compat Oracle Options") after adding COMPAT_ORACLE_OPTIONS,
further more, config_group_names must end with NULL

Summary by CodeRabbit

New Features

Introduced "Compat Oracle Options" in the configuration settings.
Added a new configuration group type CONFIG_GROUP_NULL_TERMINATED.

这里应该不需要修复

这里应该不需要修复

不修改两个数组的大小对应不上，编译报错

authors: Monkey-LaoHan tanyang-star

repo: IvorySQL/IvorySQL


text:
Having images next to each other in LaTeX

Dear @IzakMarais,
Could I ask how do you get images to be next to each other when we are executing a iteration through the panels in grafana?
Thank you.

The repoter is provided as is and does not allow for fine control over layout.

authors: IzakMarais rllyryan

repo: IzakMarais/reporter


text:
It is too easy to destroy lists.

Please make it harder to delete all of the items on the list! As of right now an accidental press of the top-right button can wreck the list that I've been building. It's too easy to press: It should have either have an undo toaster popup or a confirmation dialogue.

I will :) Same as something mentioned in #11


text:
Addition of Text with Heading in Homepage

Is your feature request related to a problem? Please describe.
No. It's enhancement in the existing design. The homepage is too clear which makes user doubt on whether he/she is on actual web or not.
Describe the solution you'd like

Adding web name heading to the center of page as : Welcome to Jarvis
Then 2-3 line informational guideline explaining what this website about.
This text will be above the "Connect Wallet" button.
This will make homepage look even better.

Describe alternatives you've considered
Addition of text and images on the homepage
Additional context
N/A

please look  at #49


text:
小数据集训练问题

你好，
我在训练自己的小数据集上遇到了问题，
我先是用CenterX在coco数据集上，复现了你的res18和res50实验结果。
换成自己的小数据集后，在原始的Centernet上代码上的AP大约在0.59左右；但是在CenterX上经过多次尝试（例如调整学习率方式，数据增强等），AP最好的时候大约只有0.49左右。我这分析觉得可能是数据增强的方式不太对。
我看了一下你对比实验中一项是数据增强的结果比原始的结果要略低一点，对于这个问题你有什么想法或者建议吗？

非常感谢你的反馈，
对于私库我也没有什么比较好的办法，不过一般影响detection的测试性能的坑就是：测试图片大小，数据预处理如减均值除方差等是否和训练一样，以及测试指标的code是否一致。
可以先人眼看看两者的输出在原图上是否有很大的差距，来排除测试指标code不一致的问题，
然后检查一下各自的测试图片大小和数据预处理有没有bug，来排除测试时候的问题。
如果都没有问题，那可能就是训练时候出了问题，对于比较小的数据集的话，任何一个超参对结果的影响可能都比较大，得仔细排查一下。比如小数据集是否锁住BN的统计量，学习率，batch size，数据增强方式等。
再加一个我在centernet里面看到的建议, 貌似可以解决centerX训练的时候mAP骤降的问题
"For other pytorch version, you can manually open torch/nn/functional.py and find the line with torch.batch_norm and replace the torch.backends.cudnn.enabled with False. We observed slight worse training results without doing so.
"

非常感谢你的反馈，
对于私库我也没有什么比较好的办法，不过一般影响detection的测试性能的坑就是：测试图片大小，数据预处理如减均值除方差等是否和训练一样，以及测试指标的code是否一致。
可以先人眼看看两者的输出在原图上是否有很大的差距，来排除测试指标code不一致的问题，
然后检查一下各自的测试图片大小和数据预处理有没有bug，来排除测试时候的问题。
如果都没有问题，那可能就是训练时候出了问题，对于比较小的数据集的话，任何一个超参对结果的影响可能都比较大，得仔细排查一下。比如小数据集是否锁住BN的统计量，学习率，batch size，数据增强方式等。
再加一个我在centernet里面看到的建议, 貌似可以解决centerX训练的时候mAP骤降的问题
"For other pytorch version, you can manually open torch/nn/functional.py and find the line with torch.batch_norm and replace the torch.backends.cudnn.enabled with False. We observed slight worse training results without doing so.
"

@CPFLAME 谢谢哈，参照你的建议，问题已解决，多个模型教小模型的流程也跑通了。
再请教两个问题哈，

在centernet中图像都是缩放然后padding成512x512的，但centerX中每个batch的图像长边是固定为512，短边是不同的，这样做操作可以理解为数据增强嘛？
在centerX中没有固定随机种子嘛？每次训练的结果都不太一样呀。

@CPFLAME 谢谢哈，参照你的建议，问题已解决，多个模型教小模型的流程也跑通了。
再请教两个问题哈，

在centernet中图像都是缩放然后padding成512x512的，但centerX中每个batch的图像长边是固定为512，短边是不同的，这样做操作可以理解为数据增强嘛？
在centerX中没有固定随机种子嘛？每次训练的结果都不太一样呀。

@XiaoCode-er 非常感谢你的回复，可以分享一下问题出在哪里么？
下面对两个问题进行解答
1.centerX中的是直接复用的detectron2的数据处理，不能算作数据增强，只是一种数据预处理的方式罢了，另外长边并不一定是固定512，而是最长的边不会超过512，具体可以看detectron2中的ResizeShortestEdge函数。
2.我在centerX里面并没有固定随机数种子，如果需要的时候可以自行在主函数里面设置一下

@XiaoCode-er 非常感谢你的回复，可以分享一下问题出在哪里么？
下面对两个问题进行解答
1.centerX中的是直接复用的detectron2的数据处理，不能算作数据增强，只是一种数据预处理的方式罢了，另外长边并不一定是固定512，而是最长的边不会超过512，具体可以看detectron2中的ResizeShortestEdge函数。
2.我在centerX里面并没有固定随机数种子，如果需要的时候可以自行在主函数里面设置一下

@CPFLAME 一开始我是按照你的centernet_res18_coco.yaml去配置的，因为在coco运行的时候指标测试都是正常的，所以就直接改了DATASETS部分的配置，在自己的小数据集上测试时指标比较差，一直以为是训练过程有问题。后来在你回复后感觉可能是测试输入的问题，就看了一下INPUT.MIN_SIZE_TEST: 0，觉得有些奇怪所以就把MIN_SIZE_TEST和MAX_SIZE_TEST改成512后，测试指标就上去了。
最近忙着赶紧把流程跑完，所以很多参数都没细看，对detectron2的数据处理挺迷惑的，不太明白这样处理的好处在哪里？而且MIN_SIZE_TEST、MAX_SIZE_TEST、MIN_SIZE_TRAIN、MAX_SIZE_TRAIN，一直没搞明白，我看你有些配置文件中是多个值，有些只有一个值，可能需要仔细看一下ResizeShortestEdge函数。
这两天会在centerX再做一些改动，有些问题可能还需请教一下你，还请多多指教。

@CPFLAME 一开始我是按照你的centernet_res18_coco.yaml去配置的，因为在coco运行的时候指标测试都是正常的，所以就直接改了DATASETS部分的配置，在自己的小数据集上测试时指标比较差，一直以为是训练过程有问题。后来在你回复后感觉可能是测试输入的问题，就看了一下INPUT.MIN_SIZE_TEST: 0，觉得有些奇怪所以就把MIN_SIZE_TEST和MAX_SIZE_TEST改成512后，测试指标就上去了。
最近忙着赶紧把流程跑完，所以很多参数都没细看，对detectron2的数据处理挺迷惑的，不太明白这样处理的好处在哪里？而且MIN_SIZE_TEST、MAX_SIZE_TEST、MIN_SIZE_TRAIN、MAX_SIZE_TRAIN，一直没搞明白，我看你有些配置文件中是多个值，有些只有一个值，可能需要仔细看一下ResizeShortestEdge函数。
这两天会在centerX再做一些改动，有些问题可能还需请教一下你，还请多多指教。

@CPFLAME 你好，我这边遇到一个问题，在训练多个模型教一个模型的时候，我对教师模型输出的结果进行了调整，一开始训练的损失是正常下降的，测试的AP也是正常上升的，迭代十几个epoch后，损失突然上升，AP骤降接近于0，然后继续训练损失没有任何变化。这个可能是什么原因导致的呀？

@CPFLAME 你好，我这边遇到一个问题，在训练多个模型教一个模型的时候，我对教师模型输出的结果进行了调整，一开始训练的损失是正常下降的，测试的AP也是正常上升的，迭代十几个epoch后，损失突然上升，AP骤降接近于0，然后继续训练损失没有任何变化。这个可能是什么原因导致的呀？

@XiaoCode-er 请问你是如何进行调整的教师模型输出？
以及用这个可以尝试一下
“"For other pytorch version, you can manually open torch/nn/functional.py and find the line with torch.batch_norm and replace the torch.backends.cudnn.enabled with False. We observed slight worse training results without doing so.
"”

@XiaoCode-er 请问你是如何进行调整的教师模型输出？
以及用这个可以尝试一下
“"For other pytorch version, you can manually open torch/nn/functional.py and find the line with torch.batch_norm and replace the torch.backends.cudnn.enabled with False. We observed slight worse training results without doing so.
"”

@CPFLAME 将学习率降低后，这个问题也解决了。再请教一个问题哈，在cls分支经过sigmiod数值应该都为正数了，为什么在kd的时候还要再经过一次relu？还有在根据teacher的cls成wh_mask的时候使用的是leakyrelu？

这个relu和leakyrelu是做实验的时候历史遗留问题，属于重复操作，其实并没有什么用。忽略它就好了

authors: CPFLAME XiaoCode-er

repo: JDAI-CV/centerX


text:
Error should be throw when a 403 is returned from the server

What i'm seeing (via strace) with jfrog rt dl --url http://privateserver:8081/artifactory --threads 5 /a.spec is that a 403 is being returned the server and jfrog-cli-go just hangs with [Info] Searching items to download...

I was experiencing the same kind of hanging and jfrog rt search command actually in my case gave more information why (some authentication problem). Anyways my workaround was to use jfrog client version 1.13.1.

@shawnbutts & @elhigu
Thanks for reporting this issue.
We fix this issue in the latest release v1.16.0. Feel free to upgrade.
We'll appreciate you feedback for that.

authors: elhigu shawnbutts yahavi

repo: JFrogDev/jfrog-cli-go


text:
Class 'controllers\IndexController' not found，官方部署站点404了

hi，作者朋友你好～
我是php:7.4-fpm的环境～
按照文档配置nginx、composer install等一系列操作之后，碰到下面的问题～
{"file":"/data/www/photo-map/public/index.php","message":"Class 'controllers\IndexController' not found","line":25,"trace":[]}
猜测是路径加载的问题，手动require几个类之后，会引发其他的问题
朋友有时间可以看看哈～挺稀罕这个小应用的

HI，你可以先使用之前的release版本https://github.com/JIAOBANTANG/photo-map/releases/tag/1.4
近期更新的代码存在问题，我有时间会更新并修复的。

HI，你可以先使用之前的release版本https://github.com/JIAOBANTANG/photo-map/releases/tag/1.4
近期更新的代码存在问题，我有时间会更新并修复的。

authors: JIAOBANTANG jjshare

repo: JIAOBANTANG/photo-map


text:
VI Tester includes project dependencies into search for test-classes

The VI "source/Utilities/Get All Project Class Paths.vi" makes an attempt to only look at libraries and classes that are "before dependencies", but fails to do so because of what looks like a typo in a regular expression.
The VI searches for
<Item Name="Dependencies" Type="Dependencies"/>
but the actual string in the LabVIEW project file is
"<Item Name="Dependencies" Type="Dependencies">"

In my case the "Get All Project Class Paths.vi" finds some packed project libraries in dependencies which it cannot open and returns error 7

Error 7 occurred at Read from Text File in VITesterUtilities.lvlib:Get All Project Class Paths__jki_vi_tester.vi->VITesterUtilities.lvlib:Find Project Test Objects__jki_vi_tester.vi->Graphical Test Runner - Main UI - .vi

I may add that this is only a problem if the library that cannot open is the last to be processed by the "Get All Project Class Paths.vi" while loop. This is because only the last error propagates out of the loop and the VI.
My current workaround is to add a dummy library to the project that will appear higher up in the LabVIEW project file and thus become the last one to be opened. Effectively stopping the earlier error from flowing out of the loop.
I've named it something like "AAAAAA Dummy library.lvlib", just to make sure it ends up as high up as possible even if it would end up in the dependency section and not explicitly referenced in the project.
But really, just by having any "lvlib" in the project above the problematic one should work as a workaround

repo: JKISoftware/JKI-VI-Tester


text:
Update all dependencies to point to the latest JNoSQL 1.0.1 version

Enhancement

Update all maven snippet dependency declarations to point to the latest JNoSQL 1.0.1 version;

I've updated the dependencies to point to the JNoSQL 1.1.0 version with the commit: https://github.com/JNOSQL/jnosql.github.io/commit/ebd769eb03c376bc9f77523227b0286ab5bb14ed


text:
🛑 Grafana is down

In 9fb09b3, Grafana ($SERVER_BASE/grafana/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grafana is back up in 9cb283a.

repo: JSAnyone/upptime


text:
눈, 비에 의한

날씨감지 우산꽂이 및 바닥 더러워짐 방지
제안 배경
눈이 오고 난 이후에 집에 들어갔을때 현관이 눈이 녹아 생긴 물로 인해 더러워지는 것을 본적있다. 휴지나 신문을 바닥에 깔고 신발을 놓으려고해도 가지고 오면 이미 눈이 다 녹아 현관이 더러워졌다.
그렇기 때문에 날씨를 모니터링해 신문이나 휴지가 집에왔을때 미리 바닥에 있었으면 하는 생각이 들었음
주요 내용
눈이 오거나 비가 왔을때 집에 가면 자동으로 기계에서 바닥이 젖는것을 막을 수 있는 무언가가 나온다. 여기에는 어플을 통해 지금 휴지가 몇장이 나와 바닥에 있는지 확인 할 수 있고 외부에서 원격으로 휴지를 더 뽑아 바닥에 배치시킬 수 있다.
위의 기능만 들어가면 너무 볼품없어보여서 비가 올것 같은 혹은 오는 날에는 비가 올것을 예고하며 우산을 챙길것을 추천해주고 우산을 우산꽂이에 넣었을때 이를 말릴 수 있게한다.
주요 기능
날씨 모니터링
휴지 같은 것을 뽑아서 바닥에 배치하는 기능
우산을 말리는 기능

핵심 기술
아두이노
어플 제작
기대 효과
생활의 편리함…?
활용 분야
기대효과와 동일

졸업작품 우산건조기 참고자료입니닷


text:
🛑 Glitch is down

In 0dc70f3, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 301 ms

Resolved: Glitch is back up in 0664383 after 44 minutes.

repo: JYFUX/upptime


text:
🛑 Glitch is down

In bf72eac, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 356 ms

Resolved: Glitch is back up in 8b8abf5 after 2 hours, 16 minutes.


text:
Cannot use spoilers in tags

Describe the bug
You are not able to use spoilers as a content in tags.
To Reproduce

Create a tag with a content that contains a ||spoiler||.
Use the tag.

Expected behavior
Tag output should contain the spoiler.
Screenshots

as a workaround you can escape the | with

(i think it interprets it as an argument separator {name:arg|arg|arg|arg})


text:
Feature Suggestion: Marker Cluster Layer Support

Hey Jack, thanks for this awesome plugin!
I was wondering if it is possible to add this function to Leaflet Maps with Google Sheets: https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport
As I don't really have developing skills, I didn't yet manage to do it on my own.
Greets!
Malte

Thanks @ilyankou for resolving this issue in our current dev version, to be released here as v.1 very soon

authors: JackDougherty wukkwukk

license: mit


text:
OSError: [WinError 126] Module not found.

I've been using this module for over a year now, and today it started failing.
I can see that in previous successful builds, it pulled PyInstaller 5.9.0 whereas now it pulled PyInstaller 5.10.1 I'm not sure if it is due to that.
Traceback (most recent call last):
  File "c:\Python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\Python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python37\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
  File "c:\Python37\lib\site-packages\PyInstaller\__main__.py", line 194, in _console_script_run
    run()
  File "c:\Python37\lib\site-packages\PyInstaller\__main__.py", line 180, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\Python37\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\Python37\lib\site-packages\PyInstaller\building\build_main.py", line 978, in main
    build(specfile, distpath, workpath, clean_build)
  File "c:\Python37\lib\site-packages\PyInstaller\building\build_main.py", line 900, in build
    exec(code, spec_namespace)
  File "build-on-win.spec", line 14, in <module>
    cipher=block_cipher)
  File "c:\Python37\lib\site-packages\PyInstaller\building\build_main.py", line 424, in __init__
    self.__postinit__()
  File "c:\Python37\lib\site-packages\PyInstaller\building\datastruct.py", line 173, in __postinit__
    self.assemble()
  File "c:\Python37\lib\site-packages\PyInstaller\building\build_main.py", line 696, in assemble
    isolated.call(find_binary_dependencies, list(self.binaries), self.binding_redirects, collected_packages)
  File "c:\Python37\lib\site-packages\PyInstaller\isolated\_parent.py", line 372, in call
    return isolated.call(function, *args, **kwargs)
  File "c:\Python37\lib\site-packages\PyInstaller\isolated\_parent.py", line 302, in call
    raise RuntimeError(f"Child process call to {function.__name__}() failed with:\n" + output)
RuntimeError: Child process call to find_binary_dependencies() failed with:
  File "c:\Python37\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error
    yield
  File "c:\Python37\lib\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx
    return _dll._LoadLibraryEx(fileName, 0, flags)
  File "c:\Python37\lib\site-packages\win32ctypes\core\ctypes\_util.py", line 42, in check_null
    raise make_error(function, function_name)
OSError: [WinError 126] Module not found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Python37\lib\site-packages\PyInstaller\isolated\_child.py", line 63, in run_next_command
    output = function(*args, **kwargs)
  File "c:\Python37\lib\site-packages\PyInstaller\building\build_main.py", line 195, in find_binary_dependencies
    return bindepend.Dependencies(binaries, redirects=binding_redirects, xtrapath=extra_libdirs)
  File "c:\Python37\lib\site-packages\PyInstaller\depend\bindepend.py", line 287, in Dependencies
    for ftocnm, fn in getAssemblyFiles(pth, manifest, redirects):
  File "c:\Python37\lib\site-packages\PyInstaller\depend\bindepend.py", line 461, in getAssemblyFiles
    for assembly in getAssemblies(pth):
  File "c:\Python37\lib\site-packages\PyInstaller\depend\bindepend.py", line 415, in getAssemblies
    res = winmanifest.GetManifestResources(pth)
  File "c:\Python37\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 979, in GetManifestResources
    return winresource.GetResources(filename, [RT_MANIFEST], names, languages)
  File "c:\Python37\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 155, in GetResources
    hsrc = win32api.LoadLibraryEx(filename, 0, LOAD_LIBRARY_AS_DATAFILE)
  File "c:\Python37\lib\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx
    return _dll._LoadLibraryEx(fileName, 0, flags)
  File "c:\Python37\lib\contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\Python37\lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error
    raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (126, 'LoadLibraryExW', 'Module not found.')

I appreciate if you have any insights.
Thanks

I'd say it's very likely an error to do with the Docker image, and is out of my bandwidth at the moment, so PR's are most definitely welcome for this :)

I've started a new branch here where I'll try to push an image up that this action can reference python3-10-pyinstaller-5-3

Sure, I'd be happy to.
Thanks

Can you try your workflow please
Example:
- name: PyInstaller Windows
      uses: JackMcKew/pyinstaller-action-windows@python3-10-pyinstaller-5-3
      with:
        path: src

Cool, it worked.
https://github.com/badabing2005/PixelFlasher/actions/runs/4847280857/jobs/8637394909
Many thanks for the prompt fix.

I'd say it's very likely an error to do with the Docker image, and is out of my bandwidth at the moment, so PR's are most definitely welcome for this :)

I'll try helping with this still. Didn't mean to leave the last issue that related to this hang so long with no progress / inputs / PRs.😴
Keep in mind - I've been trying to take a mental break last few weeks & trying to take in the moment of advancements we are experiencing in humanity.
That said - I'll take the feet down shortly and put this on my to-do list.
Other than that, I hope you're doing well @JackMcKew ✌

https://github.com/JackMcKew/pyinstaller-action-windows/issues/34#issuecomment-1529196967 fixed this issue for me as well.
Much thanks!

repo: JackMcKew/pyinstaller-action-windows


text:
求问！mindViewer界面数值代表含义！

求问啊大大 毕设危机

没想到竟然有人看，好长时间没更新了，现在开始把他完成

喵喵喵???
加油

Best Regards！
------------------ 原始邮件 ------------------
发件人: "JackeyLea"notifications@github.com;
发送时间: 2019年7月3日(星期三) 晚上9:49
收件人: "JackeyLea/MindViewer"MindViewer@noreply.github.com;
抄送: "fmx"648399880@qq.com;"Author"author@noreply.github.com;
主题: Re: [JackeyLea/MindViewer] 求问！mindViewer界面数值代表含义！ (#1)
没想到竟然有人看，好长时间没更新了，现在开始把他完成
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

敢问大佬界面用的什么比较方便，我在考虑qchart，qpaint，HTML，暂时先用qpainter的吧

软件功能已经全部完成

authors: JackeyLea MoonFullx

repo: JackeyLea/MindViewer


text:
v1.72 Beta 11

You can't get the 37th endorsement anymore :)

I have made this change on my end so there are no merge conflicts, thanks for suggesting, this change will come out with the next commit to the beta.


text:
Allow returning a Job

For POST of PATCH requests, there is no real value to return.
Therefore I want to suggest to allow returning a kotlinx.coroutines.experimental.Job.
As Deferred implements job, the adapter could just use a Deferred<Unit> internally.
This is a follow-up of https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter/issues/2

Do you accept a PR. My current implementation looks like this (:
  override fun get(
    returnType: Type,
    annotations: Array<out Annotation>,
    retrofit: Retrofit
  ): CallAdapter<*, *>? {
    val rawType = getRawType(returnType)
    if (rawType == Job::class.java) {
      return JobCallAdapter()
    }
    if (Deferred::class.java != rawType) {
      return null
    }
    ...

  private class JobCallAdapter : CallAdapter<Unit, Job> {

    override fun responseType() = Void::class.java

    override fun adapt(call: Call<Unit>): Job {
      val deferred = CompletableDeferred<Unit>()

      deferred.invokeOnCompletion {
        if (deferred.isCancelled) {
          call.cancel()
        }
      }

      call.enqueue(object : Callback<Unit> {
        override fun onFailure(call: Call<Unit>, t: Throwable) {
          deferred.completeExceptionally(t)
        }

        override fun onResponse(call: Call<Unit>, response: Response<Unit>) {
          if (response.isSuccessful) {
            deferred.complete(Unit)
          } else {
            deferred.completeExceptionally(HttpException(response))
          }
        }
      })

      return deferred
    }
  }

I'm about to send a PR 😢
You don't need a separate CallAdapter for this because a Deferred is a Job.

Job is a weird choice here. It doesn't throw when you call join(). How are you expecting to be notified of failure when you are returned a Job?

True :(

authors: JakeWharton PaulWoitaschek


text:
install error

when i  npm install devtool -g  but got error:
/usr/local/bin/devtool -> /usr/local/lib/node_modules/devtool/bin/index.js

> fsevents@1.1.1 install /usr/local/lib/node_modules/devtool/node_modules/fsevents
> node install

[fsevents] Success: "/usr/local/lib/node_modules/devtool/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> electron@1.4.15 postinstall /usr/local/lib/node_modules/devtool/node_modules/electron
> node install.js

/usr/local/lib/node_modules/devtool/node_modules/electron/install.js:46
  throw err
  ^

Error: connect ETIMEDOUT 54.231.115.43:443
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
/usr/local/lib
└── (empty)

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "devtool" "-g"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! electron@1.4.15 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.4.15 postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/wangying/npm-debug.log
npm ERR! code 1

i think its the electron problem, so i install electron again , but cant install.

solved


text:
source maps in entry file

example.js
var fs = require('fs')
debugger

no source maps:

however, it works when you require('./foo.js') from an entry.

This happens when index.html points to the same file (e.g. test.js) as we are serving and bundling.
A fix would be to just always use bundle.js -- of course, if somebody does hihat bundle.js the fix will appear again. Maybe using a unique hash or something? Or maybe there is a better solution.


text:
Code replication issue

Hello, I tried to reproduce your code, but I couldn't get the results in your paper.
My only change was batch size, and I ran the following code directly，
#predictor training all LLMs
python preprocess_dataset.py --task_type 0 --data_size 10 --all_models
python latency_prediction.py --task_type 0 --data_size 10 --all_models
But the result is very exaggerated：
Validation metrics after training:
L1 error: 121.2489
MSE: 27016.6429
Start inference...
Saved results to ./results/predictions_all_models_warmup_reg_mse_10K.csv
Then I tried several other tasks and found that the results were not very satisfactory.
Please tell me where I went wrong?
Looking forward to your answer！
Thanks！

Please try with a larger data_size. In your case, --data_size 10 means that BERT training dataset is only 10K, which is not enough for the predictor to reach a sufficient prediction accuracy. In the paper, the actual training dataset size is the entire LMSYS-Chat dataset.

thanks for your reply!

authors: James-QiuHaoran Nighttell


text:
arguments / methods / classes are not parsed properly

Hey @JamesALeedham,  thanks for this repo which certainly saved me a lot of headaches. Previously I am not able to generate auto-summary for some of my deeper classes and link them to a new page for detailed documentation. However, I still got a few new problems. Hope you may offer me some thoughts:
as you can see from my API page, my current issues are the parts related to classes in Conventional scRNA-seq (est) or Time-resolved metabolic labeling based scRNA-seq (est.tsc).

firstly the docstring doesn't seem to parse correctly and is different from all other function/class while they used the same format: for example: https://dynamo-release.readthedocs.io/en/latest/_autosummary/dynamo.est.csc.ss_estimation.html#module-dynamo.est.csc.ss_estimation
None of the methods, inherited classes, etc. are listed on the linked page.

While other shallower classes are documented correctly, for example:
https://dynamo-release.readthedocs.io/en/latest/_autosummary/dynamo.mv.StreamFuncAnim.html#dynamo.mv.StreamFuncAnim
or
https://dynamo-release.readthedocs.io/en/latest/_autosummary/dynamo.vf.vfGraph.html#dynamo.vf.vfGraph
My doc folder is here: https://github.com/aristoteleo/dynamo-release/tree/master/docs/source
The API page is here: https://dynamo-release.readthedocs.io/en/latest/API.html

Similar/same problem here. I don't get links to the classes either.

authors: Xiaojieqiu dmyersturnbull


text:
How to use Newtonsoft.Json in place of BinaryFormatter in C# .Net?

We have legacy code, We learned that there are some vulnerabilities using BinaryFormatter. So I am trying to use NewtonSoft.Json. My project is already using NewtonSoft.Json package.
I have tried the below code but it gives an exception on the line var deserializedStream = serializer.Deserialize(jsonTextReader);when running.
Unexpected character encountered while parsing value: . Path '', line 1, position 1.
My new Code:
public void LoadFromDisk()
{
    if (!File.Exists(BINARY_FILENAME)) return;

    var serializer = new JsonSerializer();
    using (var stream = File.Open(BINARY_FILENAME, FileMode.Open, FileAccess.Read))
    {
        using (var sr = new StreamReader(stream))
        {
            using (var jsonTextReader = new JsonTextReader(sr))
            {
                var deserializedStream = serializer.Deserialize(jsonTextReader);
                _jobsAck = deserializedStream as ConcurrentDictionary<string, DateTime>;
                if (_jobsAck == null)
                {
                    _jobsAck = new ConcurrentDictionary<string, DateTime>();
                    if (!(deserializedStream is Dictionary<string, DateTime> ackDict)) return;
                    foreach (var pair in ackDict)
                    {
                        _jobsAck.TryAdd(pair.Key, pair.Value);
                    }
                }
            }
        }
    }
}

Old Code:
public void LoadFromDisk()
{
    if (!File.Exists(BINARY_FILENAME)) return;

    var binaryFormatter = new BinaryFormatter();
    using (var stream = File.Open(BINARY_FILENAME, FileMode.Open, FileAccess.Read))
    {
        var deserializedStream = binaryFormatter.Deserialize(stream);
        _jobsAck = deserializedStream as ConcurrentDictionary<string, DateTime>;
        if (_jobsAck == null)
        {
            _jobsAck = new ConcurrentDictionary<string, DateTime>();
            if (!(deserializedStream is Dictionary<string, DateTime> ackDict)) return;
            foreach (var pair in ackDict)
            {
                _jobsAck.TryAdd(pair.Key, pair.Value);
            }
        }
    }

```}
**Target framework**: 4.7.2 (I cannot upgrade .net framework due to some constraints)
**NewtonSoft version:** 12.0.2

What makes you think that the binary serialized data produced and consumable by BinaryFormatter is being consumable by a Json serializer, considering that json is a text-based format and not a binary one?

At a guess from the error message, it looks like the BINARY_FILENAME file is still written with BinaryFormatter. Make sure you delete the file, and replace your SaveToDisk method first so that the written data is serialized in Json format.
Unless you use a custom convention of some sort, I don't think it can deserialize directly to a ConcurrentDictionary.
See Serializing Collections
I think your code could be something like:
using Newtonsoft.Json;
using System.Collections.Concurrent;

internal class Program
{
    private ConcurrentDictionary<string, DateTime> _jobsAck = new();

    private const string JSON_FILENAME = "JobsAck.json";

    public ConcurrentDictionary<string, DateTime> JobsAck { get => _jobsAck; set => _jobsAck = value; }

    public void LoadFromDisk()
    {
        if (!File.Exists(JSON_FILENAME)) return;

        var serializer = new JsonSerializer();
        using (var stream = File.Open(JSON_FILENAME, FileMode.Open, FileAccess.Read))
        {
            using (var sr = new StreamReader(stream))
            {
                using (var jsonTextReader = new JsonTextReader(sr))
                {
                    var ackDict = serializer.Deserialize<Dictionary<string, DateTime>>(jsonTextReader);
                    if (ackDict != null)
                    {
                        _jobsAck = new ConcurrentDictionary<string, DateTime>();
                        foreach (var pair in ackDict)
                        {
                            _jobsAck.TryAdd(pair.Key, pair.Value);
                        }
                    }
                }
            }
        }
    }

    public void SaveToDisk()
    {
        var serializer = new JsonSerializer();
        using (var stream = File.Open(JSON_FILENAME, FileMode.Create, FileAccess.Write))
        {
            using (var sw = new StreamWriter(stream))
            {
                using (var jsonTextWriter = new JsonTextWriter(sw)
                {
                    Formatting = Formatting.Indented    // Not needed, and makes the file a little larger, but is much more readable.
                })
                {
                    serializer.Serialize(jsonTextWriter, _jobsAck);
                }
            }
        }
    }

    static void Main(string[] args)
    {
        var prog = new Program();
        prog.LoadFromDisk();
        prog.JobsAck.TryAdd(Guid.NewGuid().ToString(), DateTime.UtcNow);
        prog.SaveToDisk();
    }
}

Hope this helps.

authors: CZEMacLeod elgonzo viveknuna


text:
Can't publish to master branch

I want to use this task with my personal GitHub pages repository. I can only use master though while the task is always using gh-pages. So I want to be able to configure the branch to use.
See remark below from https://help.github.com/en/articles/configuring-a-publishing-source-for-github-pages

If your site is a User or Organization Page that has a repository named username.github.io or  orgname.github.io, you cannot publish your site's source files from different locations. User and Organization Pages that have this type of repository name are only published from the master branch.

Now pushed to the marketplace - thanks to @MarcBruins

authors: JamesRandall ronaldbosma

repo: JamesRandall/Vsts-GitHub-Pages-Publish


text:
[Bug Report] Misnamed field name

ftransimissionChangeRateScaleUpShift and ftransimissionChangeRateScaleDownShift should be fClutchChangeRateScaleUpShift and fClutchChangeRateScaleDownShift.

Realized I broke this myself doing a replace all. Closing out


text:
chore: add schema to goreleaser config

Prerequisites

[x] I have read and understood the [contributing guide][CONTRIBUTING.md].
[x] The commit message follows the [conventional commits][cc] guidelines.
[ ] Tests for the changes have been added (for bug fixes / features).
[ ] Docs have been added/updated (for bug fixes / features).

Description
Adds schema to GoReleaser configuration. Will help in autocomplete suggestions, given by VSCode's IntelliSense.

@all-contributors please add @vedantmgoyal2009 for code

repo: JanDeDobbeleer/aliae


text:
Layout nested diagrams before they become visible

When a nested diagram is opened for the first time, its contents are automatically layouted. It would be much smoother when this happened before it becomes visible.
This requires to precompute the bounds of nodes. Node#autosize() should work as long as we don't allow CSS styled nodes. Consider creating a new API method getBounds(BoundsType), that obsoletes getSnapBounds() as well.

Fixed with 2b1fb4e4616fd52f54cb17b224cffe40e037cc1f

Performance issue covered in 45f9841e05e7ce788b392e0706e9a37bb7eff181

repo: JanKoehnlein/FXDiagram


text:
Add Serialization/Deserialization for all keys

Add serialization/deserialization for Poly, Ciphertext, KeySwitchingKey, RelinerizationKey, GaloisKey.
Since all keys depend on Poly and poly only consists of coefficients (ie Array2) and representation, the only important functions are converting vector of u64s (ie each row in Array2) to bytes and back.
I have already implemented functions to convert vector of u64s assumed to be in range [0, modulus) to bytes and back. Check convert_to_bytes and convert_from_bytes.
I have also added a rough way to convert Poly to proto::Poly here.
Conversion of proto::Poly to bytes is behaving as expected. For example, a Poly with modulus Q of size 500 bits (ie moduli chain = [50;10]) and degree 2^15 should take 500*(2^15)/8 = 2048000 bytes (ignoring representation value). I can confirm that converting such a Poly to proto::Poly and encoding converted value in bytes equals to 2048052 bytes, which is only a difference of 52 bytes.

Commit 5bf8e16da939a4aef0a8e469242f3359cbbd4cc8 implements serialization/deserialization for HybridKeySwitchingKey, EvaluationKey, RelinearizationKey, GaloisKey.
I checked that serialized objects are of expected size in bytes by first estimating the sizes by hand and then converting the types to respective serialized types and then to bytes. Eveything looks correct.

I seem to have made a mistake by allowing Poly to be serialized in Evaluation representation. Since we plan to support mutiple NTT backends, Evaluation representation of same polynomial can be different on each. This can lead to incorrectness if one serializes a polynomial in Evaluation form using native NTT backend and deserializes it using hexl NTT backend, since the polynomial would not remain the same.
To avoid this, I think it is ok to forbid serliization of polynomial in Evaluation form.

I have been contemplating to switch serialization to a feature. The obvious benefit of this is to allow users not in need of serialization to not download and install protobuf compiler. Plus, I don't see any downisdes of this.

repo: Janmajayamall/bfv


text:
Support for arbitrary/more extensions (.mts, .cts, .mjs,…)

Hey,
I love this project, thanks for your hard work!
I wonder if it's possible to add any kind extensions to the CLI, like you could with Prettier or ESLint.
Actually, it's only for .js or .ts`, meaning you can't use some files in a lot of projects.
At least, standard extensions : ctsx, cjsx, js, ts, mts, cts, mjs, cjs (I hope I haven't forgot one 😅) would be awesome.
Bye

Thanks for the idea, this is interesting
I can potentially extend https://github.com/JasonShin/sqlx-ts/blob/953ee1c47da9c9e113e0c4dbeba45d411b5c6f93/src/common/cli.rs#L28C9-L28C12 to support the additional JS types.
jsx/tsx is a tricky one because that requires a whole lot of work in the parser to grab sql string literals - (maybe or maybe not)

No worries for the JSX/TSX part. I think that, conceptually, this is not the typical place where you should put sql queries ;)
I think most dev will agree, even more if it add difficulty for dev/maintenance.
I tried sqlx-ts with ESM and CommonJS, and excluding the file extension issue, it went smoothly.

authors: JasonShin JulianCataldo

repo: JasonShin/sqlx-ts


text:
BulkInsert and overwrite existing

In RavenDB there's a BulkInsertOptions where you can specify OverwriteExisting:
documentStore.BulkInsert(options: new BulkInsertOptions
{
    OverwriteExisting = true
});

In Marten the bulk insert is done by: COPY mt_doc_test(\"data\", \"id\") FROM STDIN BINARY
We talked a bit in the gitter chat about how and if this can be done against Postgres. There was a mention of a trigger ON CONFLICT DO UPDATE but there might be other ways of doing it? (Note: My extremely limited Postgres 'skills' prevented me to create such a trigger and test locally...)
We use the BulkInsert - OverwriteExisting quite a lot in a couple of projects where we replace most of the db every hour or so, but we don't want to truncate before as we want to keep older record that wasn't in the last load (we have timestamps for each document so we can see what entries is old/outdated).
Without the overwrite support we have to use the session.Store(...) for each document and let the UPSERT sort it out, but since we're processing millions of records this will cause a bit of an overhead.
Any ideas?

@jenspettersson I think we've got two options, we could either:

Automatically add the ON CONFLICT trigger to handle the conflicts
Make the bulk insert quietly switch to using the normal Unit of Work/batched update command instead of Postgresql's "COPY" functionality.

Both would incur a performance hit, but I don't know which one would be worse. The second option would be faster to code out.

@jeremydmiller If I can get the ON CONFLICT trigger to work I can do some testing locally using both approaches (adding the trigger manually that is). Any tips on how the trigger could look like?

I struck out googling for that, and I think I'm mistaken because I don't see any option for ON CONFLICT for trigger definitions in the postgresql docs.

That explains... a lot! I started to doubt my googling skills there... =) Then there might not be another way than 2?

I had a quick look / google and there doesn't seem to be a clean way to do this with the built in COPY tool or a conflict trigger.
I don't know what you would think of this solution, but my idea would be that if overwrite existing is true :-

Create a new (temporary) table and execute the COPY into it
Insert any id's that don't exist into the primary table
Update any id's that exist in the primary table
Drop the new (temporary) table

This would at least allow for some bulk INSERT / UPDATE operations which should be pretty fast
Hopefully this would only be temporary until someone improves the COPY util in pgSQL to support overwrite

As I said in the gitter chat, I'm not a PG expert by far, but if the solution @jamesfarrer suggest is doable in a clean and secure way, then why not. It does feel a bit "Rube Goldberg" however ;)
I'm not in a position to call any shots here, so we might need @jeremydmiller to comment as well.

Throwing this link in here: http://stackoverflow.com/questions/30500560/import-and-overwrite-duplicate-rows.
@jenspettersson @jamesfarrer Do we want to throw away the duplicates, or overwrite? I suppose that it could be done with a mode like "Fast" / "IgnoreDuplicates" / "Overwrite"

It might be my severe "man cold" that's making me numb, but what's the difference between "throwing away" and "Overwrite" a duplicate?
Do you mean: First delete the duplicate and then insert a new instead of just overwriting it? I don't see a need for that, but then again, I think I'm missing something...

Ignore duplicate values altogether vs. last one in wins

Ah you mean if there's a duplicate within the new batch that are to be bulk inserted. Yeah that also need to be handled. In all my cases I have logic that handles duplicates within current batch before doing a bulk insert so I've never thought about this.

Yup I think the 3 config options make sense. For overwrite I think an update would be preferable. Deleting could cause potential FK exceptions specified on that document / table.
So for the 3 options..
Fast (Default) = standard copy as used today
IgnoreDuplicates would be
create temporary table import_issues as select * from issues limit 0; (I've cribbed this from that SO post but assume as we'd have the schema definition we'd use that)
copy import_issues from stdin;
begin transaction
insert into issues
select * from import_issues where id not in (select id from issues)
end transaction
Overwrite would be
create temporary table import_issues as select * from issues limit 0; (I've cribbed this from that SO post but assume as we'd have the schema definition we'd use that)
copy import_issues from stdin;
begin transaction
insert into issues
select * from import_issues where id not in (select id from issues)
update i set i.data = i2.data
from issues i
inner join import_issues i2 on i.id = i2.id
end transaction

I'm doing this one right now, might be ready tomorrow. Basically doing what @jamesfarrer suggested.

repo: JasperFx/marten


text:
Fix problem where sometimes the asyncprojectiondaemon might "miss" an event

Fix for GH-715.

Pfft, good catch. I'm pulling this in now and it'll be in Marten 1.5 hopefully this week

authors: jeremydmiller wastaz


text:
Incompatible JasperFX.Core version in WolverineFx.Postgresql

Describe the bug
This error is thrown while calling host.SetupResources();
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.TypeInitializationException: The type initializer for 'Weasel.Postgresql.PostgresqlProvider' threw an exception.
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'JasperFx.Core, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'JasperFx.Core, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null'
   at Weasel.Core.DatabaseProvider`6..ctor(String defaultDatabaseSchemaName)
   at Weasel.Postgresql.PostgresqlProvider..ctor()
   at Weasel.Postgresql.PostgresqlProvider..cctor()
   --- End of inner exception stack trace ---
   at Weasel.Postgresql.PostgresqlMigrator..ctor()
   at Wolverine.Postgresql.PostgresqlMessageStore..ctor(DatabaseSettings databaseSettings, DurabilitySettings settings, ILogger`1 logger)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Lamar.IoC.Instances.ConstructorInstance.quickResolve(Scope scope)
   at Lamar.IoC.Instances.ConstructorInstance.QuickResolve(Scope scope)
   at Lamar.IoC.Instances.ConstructorInstance.<>c__DisplayClass27_0.<quickResolve>b__0(CtorArg x)
   at System.Linq.Enumerable.SelectArrayIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
   at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()
   at Lamar.IoC.Instances.ConstructorInstance.quickResolve(Scope scope)
   at Lamar.IoC.Instances.ConstructorInstance.QuickResolve(Scope scope)
   at Lamar.IoC.Frames.InjectedServiceField.ToVariableExpression(LambdaDefinition definition)
   at JasperFx.CodeGeneration.Expressions.LambdaDefinition.ExpressionFor(Variable variable)
   at System.Linq.Enumerable.SelectArrayIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)
   at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()
   at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)
   at System.Linq.Expressions.Expression.NewArrayInit(Type type, IEnumerable`1 initializers)
   at Lamar.IoC.Frames.ListAssignmentFrame`1.WriteExpressions(LambdaDefinition definition)
   at Lamar.IoC.Instances.FuncResolverDefinition.BuildResolver()
   at Lamar.IoC.Instances.GeneratedInstance.BuildFuncResolver(Scope scope)
   at Lamar.IoC.Instances.GeneratedInstance.buildResolver(Scope scope)
   at Lamar.IoC.Instances.GeneratedInstance.ToResolver(Scope topScope)
   at Lamar.ServiceGraph.FindResolver(Type serviceType)
   at Lamar.IoC.Scope.GetInstance(Type serviceType)
   at Lamar.Container.Microsoft.Extensions.DependencyInjection.ISupportRequiredService.GetRequiredService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Oakton.Resources.ResourcesCommand.FindResources(IServiceProvider services, String typeName, String resourceName)
   at Oakton.Resources.ResourceHostExtensions.SetupResources(IHost host, CancellationToken cancellation, String resourceType, String resourceName)

I believe this is due to an incompatible version of Weasel.Postgresql which depends on Weasel.Core that expects an older version of JasperFX
To Reproduce
Steps to reproduce the behavior:

Create a new project with postgresql persistance
Call host.SetupResources()

Desktop (please complete the following information):

OS: Windows 11 23H2 22631.2715
Version WolverineFx.Postgresql 1.12.0

Upgrade to Wolverine 1.12.1 when that's available in the next 30 minutes

@redbaty I'll still pull your PR in later as a longer term fix. Thank you!

Hey there, sorry for the timing confusion on the pull request hehe.
By the way even on the latest 1.12.2 there's still an error thrown while using postgres:
System.InvalidCastException: Unable to cast object of type 'Weasel.Core.DbObjectName' to type 'Weasel.Postgresql.PostgresqlObjectName'.
   at Weasel.Postgresql.Tables.Table.ColumnExpression.ForeignKeyTo(DbObjectName referencedIdentifier, String referencedColumnName, String fkName, CascadeAction onDelete, CascadeAction onUpdate)
   at Wolverine.Postgresql.PostgresqlMessageStore.AllObjects()+MoveNext()
   at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
   at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
   at Wolverine.RDBMS.MessageDatabase`1.get_Objects()
   at Weasel.Core.Migrations.DatabaseBase`1.<>c.<AllObjects>b__19_0(IFeatureSchema group)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToArray()
   at Weasel.Core.Migrations.DatabaseBase`1.ApplyAllConfiguredChangesToDatabaseAsync(IGlobalLock`1 globalLock, Nullable`1 override, ReconnectionOptions reconnectionOptions, CancellationToken ct)
   at Oakton.Resources.ResourceHostExtensions.SetupResources(IHost host, CancellationToken cancellation, String resourceType, String resourceName)

I had it fixed in by doing this in the PR: https://github.com/JasperFx/wolverine/pull/638/commits/a454a5ac1f5e87748797da2bf4ad417d630115bc#diff-96018c9e1e0dcb7add35644a779053e4ee707e7fc1775f7e5d60a1fd09af3a16

Works after 1.12.3, thanks! 🎉

authors: jeremydmiller redbaty

repo: JasperFx/wolverine


text:
Add support for resuming game

Resuming game
It would be nice if the user could resume the game from where they left off the last time.
The flow could be something like this :

User chooses a difficulty level, starts the game.
Leaves the game / closes the app.
User reopens the game.
User is directly navigated to the game screen with the same grid where he left off the last time.
He can continue from there or navigate back to the difficulty selection screen.
On continuing, the user should be presented with the same grid that they had played and left the last time.
In the difficulty selection screen, on selecting a difficulty level and starting a game, if a previous unfinished game with the same difficulty level exists, the user should be prompted with a dialog about whether he wants to continue or to start over.
Based on what the user chooses, an appropriate game board should be rendered in the game screen.

How?

[x] Choose a KMM library for DB (SQLDelight chosen).
[x] Extend the data module to have a DB to be able to store objects.
[x] #72
[x] #74
[x] #78
[ ] Setup the difficulty selection screen UI for the new flow.
[ ] Wire in the logic of reading and presenting the saved game info in the difficulty selection screen.
[x] #75
[ ] Wire in the saved game info propagation from difficulty selection screen to game screen.

With the current state, reading and saving aspects of the Grid and its state are done for the most part.

Oh well!, Finally.
With the current status, all items in the list have been taken care of.
The application is working well and looks coherent with the resuming feature so far.

repo: JayaSuryaT/minesweeper-j-compose


text:
Why run on Pull Request?

Makes no sense to me. Please explain.
https://github.com/JaydenDev/AuraPad/blob/1bf8a00e253c191bcde9d6947d604ae92ba30c7f/.github/workflows/autocomp.yml#L6

It doesn't work in the first place...

repo: JaydenDev/AuraPad


text:
Extra, Nonexistent Space Displayed

An extra, nonexistent space is displayed to the left of the actual, available spaces. See attached photo. "Screen 1" does not exist.

Is this persistent even after a refresh or switching to a different space? Is there a way to reproduce this or has it been like this since you installed the app?

Thanks for the reply. It's been like this since I've installed the app. I don't know if it's because of Sidecar or something. Yes, it persists even when switching between spaces. What's weird is if a boot off a clean Big Sur installation, the issue isn't seen.

If you installed using Homebrew, could you try running the following in terminal:

defaults delete dev.jaysce.Spaceman
brew uninstall --zap spaceman
and then installing again, brew install spaceman.

Or If you installed through GitHub, run the following:

defaults delete dev.jaysce.Spaceman

If you have AppCleaner installed, use that to uninstall Spaceman then reinstall, otherwise run the following in terminal:

rm -rf ~/Library/Application\ Scripts/dev.jaysce.Spaceman-LaunchAtLoginHelper
rm -rf ~/Library/Caches/dev.jaysce.Spaceman
rm -rf ~/Library/Containers/dev.jaysce.Spaceman-LaunchAtLoginHelper
rm -rf ~/Library/Preferences/dev.jaysce.Spaceman.plist
Then delete Spaceman.app by moving to bin and emptying the bin
Reinstall Spaceman through GitHub or Homebrew

Let me know if that helps.

Thanks. Unfortunately, none of that helped. I previously tried to uninstall it using CleanMyMac but also did it via your instructions just now.

Maybe try this:

Quit Spaceman.app
Run rm -rf ~/Library/Preferences/com.apple.spaces.plist in terminal.
Create a new Space
Open Spaceman.app

Thanks. So deleting "com.apple.spaces.plist" in terminal and rebooting my Mac fixed the issue.
One really bizarre thing is that when my computer came back up, obviously it only had 1 space, but it was using a really old wallpaper from years ago. It's almost as if macOS was retaining some data about an old space that was hidden this entire time from view. I am still wondering if this is a leftover from back when macOS supported Dashboard, which used to count as a "space" as well.

Yea I'm pretty sure Dashboard was the problem. When Dashboard was supported it also counted as a space, and I guess it's left over in that plist even after updating the OS.
Glad the bug is fixed!

repo: Jaysce/Spaceman


text:
Merge Unrelated histories

Merged unrelated histories

Solved the initial issues


text:
Migrate serialization extensions to new project

Migrate the Id3.Serialization package code to the new netstandard2.0 project.

[x] Fix any errors
[x] Update language features to C# 7.2
[x] Code clean-up and optimization

Closed with 34426c2b15addb57a55b39a5944d17e63b84aeb6


text:
Help about parameter setting

Hello, would you like to know that when training cvusa, a gpu is used, gou is set to 1,lr is set to 0.0001, batch-size is set to 32, did-URL is set to 'tcp://localhost:10001' and world-size is set to 1. rank set to 0, epochs set to 100, op set to sam, wd set to 0.03, dataset set to cvusa, cos set to True,dim set to 1000, asam set to True, rho set to 2.5. But the result of the first stage is very bad, I would like to ask if I made a mistake, I took a screenshot of the specific parameter Settings, thank you

The image is not uploaded correctly, so I can not see the parameters. Why not directly run the scripts following the instructions?

Since I only have one gpu, running sh run_CVUSA.sh directly seems to require multiple Gpus, and when I run sh run_cvusa.sh directly, I get an error. The error is work = _default_pg.barrier().
RuntimeError: NCCL error in:  /opt/conda/conda-bld/pytorch_1607370172916/work/torch/lib/c10d/ProcessGroupNCCL.cpp:784, unhandled system error,  NCCL version 2.7.8

You may need to specify the GPUs for training in "train.py". Remove the second line if you want to train the simple stage-1 model. Change the "--dataset" to train on other datasets. The code follows the multiprocessing distributed training style from PyTorch and Moco, but it only uses one GPU by default for training，The readme paragraph should mean using a single GPU parameter, but the content of the command line should run in a distributed manner with multiple Gpus

It does not require multiple GPUs. If the train.py, we use os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" and os.environ["CUDA_VISIBLE_DEVICES"] = "0" to assign one GPU.

authors: Jeff-Zilence wlfxy


text:
找不到方法:“System.DateTime Senparc.NeuChar.Entities.IMessageBase.get_CreateTime()”

(*** 此版块专为反馈bug及提交需求服务，不负责解答开发问题，请勿发表开发问题，
如果您需要这方面的帮助，请移步问答社区：https://weixin.senparc.com/QA ***)
问题描述
升级到最新版本之后 ，事件无法触发 系统日志里面显示
找不到方法:“System.DateTime Senparc.NeuChar.Entities.IMessageBase.get_CreateTime()”
重现问题步骤（如果可以）

...
...

微信官方文档 URL
微信官方文档快照（直接复制关键内容到下方）
发现问题的模块

[ ] Senparc.Weixin 版本：6.3.9.0
[ ] Senparc.Weixin.MP 版本：16.6.1.0
[ ] Senparc.Weixin.MP.MVC 版本：7.2.1.0
[ ] Senparc.Weixin.Open 版本：
~- [ ] Senparc.Weixin.QY 版本：~
[ ] Senparc.Weixin.Work 版本：
[ ] Senparc.Weixin.WxOpen 版本：
[ ] Senparc.Weixin.Cache.Redis 版本：
[ ] Senparc.Weixin.Cache.Memcached 版本：
[ ] 其他模块：

模块对应的 .net 版本
-[x] ] .net 4.5
开发环境

[x] Visual Studio 2017

缓存环境

[x] 服务器内存缓存（默认）
[ ] Redis 版本：
[ ] Memcached 版本：
[ ] 其他

联系方式
Email： 29938389@qq.com
（也可将问题地址及联系方式发送到 www.jeffrey.su@gmail.com）

发布问题后，请保持对 issue 的关注，有时会有需要进一步沟通的信息，很长时间内没有得到答复的 issue 将被关闭。

你确定全部都升级到最新的版本了吗？之前有开发者反映过类似的问题，最后发现是生产环境有一个dll是旧版本的。

你确定全部都升级到最新的版本了吗？之前有开发者反映过类似的问题，最后发现是生产环境有一个dll是旧版本的。

我重新对比了 是最新版本~

现在我们线上Demo运行的就是自动部署的全部最新dll版本的：https://sdk.weixin.senparc.com/
是否能告知一下你的生产环境软件配置（虽然我感觉关系应该不大）？
我们线上的是  IIS 7.5+ .NET Core 2.2 + Redis

我看到差别了，你发的错误：System.DateTime Senparc.NeuChar.Entities.IMessageBase.get_CreateTime，确实是不存在的，最新版本已经是DateTimeOffset类型了，不再是DateTime，所以可能要看一下你调用的dll是不是旧的（或者说引用新版本之后没有重新编译）？

现在我们线上Demo运行的就是自动部署的全部最新dll版本的：https://sdk.weixin.senparc.com/
是否能告知一下你的生产环境软件配置（虽然我感觉关系应该不大）？
我们线上的是 IIS 7.5+ .NET Core 2.2 + Redis

我们的是 IIS 16 + .Net 4.5

我看到差别了，你发的错误：System.DateTime Senparc.NeuChar.Entities.IMessageBase.get_CreateTime，确实是不存在的，最新版本已经是DateTimeOffset类型了，不再是DateTime，所以可能要看一下你调用的dll是不是旧的（或者说引用新版本之后没有重新编译）？

嗯 非常感谢 我清除掉重新拉下新版本 麻烦你了~

嗯，补充一下，我上面说的“你调用的dll”是你自己项目的（或其他第三方）的dll。

authors: JeffreySu foxaaa

repo: JeffreySu/WeiXinMPSDK


text:
Engine crash when loading a scene with buildings and navmesh

Description: The engine crashes when I try to load a scene with buildings and navmesh. If you don't close the engine, there's no problem, the navmesh works fine, etc. But when you close it and open it again, the engine crashes the second you try to load the scene.

Build: 0.2.8

Type: NavMesh / Save&Load

Steps to reproduce: Bake a navmesh on the scene with some buildings setted as static and no walkable. Save the scene, close the engine, open it again, and try to load the scene.

Frequency: Always

Fixed in master @aleixgab

authors: JoanValiente OscarHernandezG

repo: JellyBitStudios/JellyBitEngine


text:
Event of closing

Add event to onclose, beforeModalClose, onBeforeModalClose guards

closeById Нужно расширить и добавить вторым параметром опции. Далее набор параметро будет передаваться из методов close, и конечный event (после обработки dtoEvent) будет передавать первым параметром(единственным) в каждый guard

Point for closing:

modal.close
closeModal
popModal
backgroundClick

background: Boolean. Mean that an attempt to close the modal window by clicking on the background. Default(false)

Firstly need find relative prop that will be passed inside EventClose

Inside WidgetModalContainerItem closing will use modal.close(), not lastModal.close()

repo: Jenesius/vue-modal


text:
[Question] Combining FluentValidation and IValidatableObject Errors

Is it possible to run both FluentValidation and IValidatableObject in the same ViewModel? For example if I had the following ViewModel:
public class TestViewModel
{
    public Foo Foo { get; set; }
    public Bar Bar { get; set; }
}

public class Foo : IValidatableObject
{
    public string FooName { get; set; }

    public IEnumerable<ValidationResult> Validate(System.ComponentModel.DataAnnotations.ValidationContext validationContext)
    {
        if (string.IsNullOrEmpty(FooName))
        {
            yield return new ValidationResult("Required from IValidatableObject", new[] { "FooName" });
        }
    }
}

[Validator(typeof(BarValidator))]
public class Bar
{
    public string BarName { get; set; }
}

public class BarValidator : AbstractValidator<Bar>
{
    public BarValidator() {
        RuleFor(x => x.BarName).NotNull().WithMessage("Required from FluentValidation");
    }
}

Is there a way both Foo and Bar validations can run and return the results when my Controller calls ModelState.IsValid?

With the asp.net core integration, no, you can't mix FV and other validation strategies for the same object. For MVC5 and older I'm not sure - I've not tested that.

@JeremySkinner  thanks for the quick reply.

It's something I'd like to enable support for in the future in aspnetcore, but there are a lot of implications for doing this and requires a lot of work, so it's not something that'll be added soon I'm afraid.

I've just pushed out 7.2-beta1 with initial support for IValidatableObject.  Please feel free to give it a try.

@JeremySkinner Thanks for the update! I tried it out in my repo (https://github.com/ryanbuening/DynamicCollections) and it seems to be working great.
I think this gives me the flexibility to use IValidatableObject for BeginCollectionItem and FluentValidation for everything else in my ViewModel which I tried to mock in my repo.
I'm not quite sure what you mean you say "...this only supports top-level objects, but not child properties". Could you give me an example?

If you had a child property that also implements IValidatableObject, then I don't believe that will be invoked.

@JeremySkinner so I have this ViewModel: https://github.com/ryanbuening/DynamicCollections/blob/master/DynamicCollections/Models/PersonsViewModel.cs and all validations are showing when I would expect them to. Would you expect this to work?
Could you give me a specific scenario in the ViewModel above where you wouldn't expect IValidatableObject to be invoked? Sorry, I'm not completely following what you mean by a child property implementing IValidatableObject. I'm just trying to figure out the limitations before I start converting my validation logic to FluentValidation in combination with IValidatableObject.
Thanks.

authors: JeremySkinner ryanbuening

repo: JeremySkinner/FluentValidation


text:
Question - Use numeric types on WithErrorCode

Hi fellas,
Today FluentValidation supports String only at WithErrorCode method. Is there any plans to include an overload to support numeric types, such as Int32?
Why:
The error codes in my project are inside enums, so, technically, I can use only numeric types as Int32 and long (Int64).
Thanks a lot.
Regards,
@rmszc81

Hi, no - the error codes by default store the name of the validator used to generate the error, so they need to be strings. I'd suggest just using a string representation of the number and then parse/convert the results after validation has completed.


text:
Error when I pass my object to validate equal null

Hello everyone
I'm sorry I do not speak English and also if this channel is not considered appropriate for clarification of doubt. I am building a WebApi in .Net core 2.0 using version 7.5.2.
A validation that I must do is when my client that will consume my WebApi, should check if the object that arrived is null and for this I did the following validation
My validations
public class FaturaDtoValidator: AbstractValidator<FaturaDto>
   {
       public FaturaDtoValidator()
       {

           RuleFor(fatura => fatura).NotNull().WithMessage(Mensagem.FATURA_OBRIGATORIO);

           RuleFor(fatura => fatura.Itens).SetCollectionValidator(new ContratoItemDtoValidator());
           RuleFor(fatura => fatura.Itens).NotNull().WithMessage(Mensagem.ITENS_OBRIGATORIO);
           RuleFor(fatura => fatura.Itens).Must(list => list.Count == 0).WithMessage(Mensagem.ITENS_OBRIGATORIO);

       }
   }

public class ContratoItemDtoValidator : AbstractValidator<ContratoItemDto>
    {
        public ContratoItemDtoValidator()
        {
            RuleFor(item => item.CodigoItem).NotEmpty().NotNull().WithMessage(Mensagem.CODIGO_ITEM_OBRIGATORIO);
        }
    }

My startup class
    services
                .AddTransient<IValidator<FaturaDto>, FaturaDtoValidator>()
                .AddTransient<IValidator<ContratoItemDto>, ContratoItemDtoValidator>();

Meu controller (My controller)
 [Produces("application/json")]
    [Route("api/v1/")]
    public class HubController : Controller
    {

        [HttpPost("{fatura}")]
        [Route("faturamento")]
        public async Task<IActionResult> Faturamento([FromBody]FaturaDto fatura)
        {

            OrchestratorApp orc = new OrchestratorApp();
            return await orc.RedirectFaturamento(fatura);
        }
    }

And to trigger validation
 public async Task<JsonResult> RedirectFaturamento(FaturaDto fatura)
        {
          ...
            FaturaDtoValidator validator = new FaturaDtoValidator();
            ValidationResult results = validator.Validate(fatura);

My FaturaDto object came null and it is this test I would like to include but when the validation is triggered an error occurs "ArgumentNullException: Value can not be null. Parameter name: Can not pass null model to Validate."

Hi there, please could you post your question in English?
Looking at the screenshot, you must provide a non-null root instance. This is by design.

Hi Jeremy thanks for answering, I'm using google translator

Existe a possibilidade, de incluir na biblioteca para olhar essa validação, quando vier objetoi nulo?

No, that's not possible I'm afraid - FluentValidation is designed to validate properties on a non-null object instance. You can't pass a null instance to Validate. You need to make sure that WebApi instantiates a valid instance before passing it to the validator.

Is this also true for an instantiated object that contains a null list?
This list should also be instantiated?
I can do something about it:
RuleFor(fatura => fatura.Itens).NotNull().WithMessage(Mensagem.ITENS_OBRIGATORIO);
RuleFor(fatura => fatura.Itens).Must(list => list.Count ==0).WithMessage(Mensagem.ITENS_OBRIGATORIO);

That's fine, the list can be null, but you should put a When condition on the second rule, like this:
RuleFor(fatura => fatura.Itens).NotNull().WithMessage(Mensagem.ITENS_OBRIGATORIO);
RuleFor(fatura => fatura.Itens).Must(list => list.Count ==0).WithMessage(Mensagem.ITENS_OBRIGATORIO).When(list => list != null);

I understood the explanation and thank you for your time.

You're welcome - let me know if you have any other questions.

authors: JeremySkinner rafaelaugustomiranda


text:
Typo in about us

hellow 能麻烦你们改一下这个andorganization么 可能我们有一个typo。多谢
然后这个字体现在是bold吗 我觉得是不是unbold好看一些

fixed, see commit a5bac007f7da544f1d885186ba8cedecbbd85a34

repo: JeremyZXi/NEST


text:
fix: IllegalArgumentException in AnkoLogger

Log.isLoggable will throw an IllegalArgumentException when the tag.length() > 23.
See http://developer.android.com/reference/android/util/Log.html for more informations.

Thank you for the pull request!
Could you fix the formatting in it?

pull request updated :)

Merged!

authors: timfreiheit yanex

repo: JetBrains/anko