This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Runtime.Serialization; | |
using System.ServiceModel; | |
using System.ServiceModel.Channels; | |
using System.ServiceModel.Description; | |
using System.Xml; | |
using System.ServiceModel.Dispatcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Runtime.Serialization; | |
using System.ServiceModel; | |
using System.ServiceModel.Channels; | |
using System.ServiceModel.Description; | |
using System.Xml; | |
using System.ServiceModel.Dispatcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void DateTimeOffsetNullableSerialization () | |
{ | |
var ds = new DataContractSerializer (typeof (DateTimeOffset?)); | |
var sw = new StringWriter (); | |
string xml = "<DateTimeOffset xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.datacontract.org/2004/07/System\"><DateTime>2012-05-04T00:34:00Z</DateTime><OffsetMinutes>120</OffsetMinutes></DateTimeOffset>"; | |
var v = new DateTimeOffset (new DateTime (2012, 05, 04, 02, 34, 0), TimeSpan.FromMinutes (120)); | |
using (var xw = XmlWriter.Create (sw, settings)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS\ Build\ System\ Support.xcplugin/Contents/MacOS | |
dd if=iPhoneOS\ Build\ System\ Support of=working bs=500 count=255 | |
printf "\xc3\x26\x00\x00" >> working | |
/bin/mv -n iPhoneOS\ Build\ System\ Support iPhoneOS\ Build\ System\ Support.original | |
/bin/mv working iPhoneOS\ Build\ System\ Support | |
chmod a+x iPhoneOS\ Build\ System\ Support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 400 Bad Request | |
Content-Type: text/html; charset=utf-8 | |
Server: Mono-HTTPAPI/1.0 | |
Date: Fri, 01 Jun 2012 04:01:01 GMT | |
Content-Length: 35 | |
Connection: close | |
<h1>Bad Request (Invalid host)</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias mono='/Users/viniciusjarina/xamarin/mono/runtime/mono-wrapper' | |
export MONO_PATH=/Users/viniciusjarina/xamarin/mono/mcs/class/lib/net_4_5:/Users/viniciusjarina/xamarin/mono/mcs/class/lib/net_4_0:/Users/viniciusjarina/xamarin/mono/mcs/class/lib/build:$MONO_PATH | |
export MONO_REGISTRY_PATH=/Users/viniciusjarina/.mono/registry | |
export MONO_SHARED_DIR=/Users/viniciusjarina/xamarin/mono/runtime | |
export PATH='/usr/local/bin/':$PATH | |
alias mcs='/Users/viniciusjarina/xamarin/mono/runtime/mono-wrapper /Users/viniciusjarina/xamarin/mono/mcs/mcs/mcs.exe' | |
alias csharp='/Users/viniciusjarina/xamarin/mono/runtime/mono-wrapper /Users/viniciusjarina/xamarin/mono/mcs/class/lib/net_4_5/csharp.exe' | |
export PS1="[mono master] "$PS1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Reflection; | |
using System.Collections; | |
namespace MonoTests.Test1 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias mono='/Users/viniciusjarina/xamarin/mono/runtime/mono-wrapper' | |
export MONO_PATH=/Users/viniciusjarina/xamarin/mono/mcs/class/lib/net_4_5:/Users/viniciusjarina/xamarin/mono/mcs/class/lib/net_4_0:/Users/viniciusjarina/xamarin/mono/mcs/class/lib/build:$MONO_PATH | |
export MONO_REGISTRY_PATH=/Users/viniciusjarina/.mono/registry | |
export MONO_SHARED_DIR=/Users/viniciusjarina/xamarin/mono/runtime | |
export PATH='/usr/local/bin/':$PATH | |
alias mcs='/Users/viniciusjarina/xamarin/mono/runtime/mono-wrapper /Users/viniciusjarina/xamarin/mono/mcs/mcs/mcs.exe' | |
alias csharp='/Users/viniciusjarina/xamarin/mono/runtime/mono-wrapper /Users/viniciusjarina/xamarin/mono/mcs/class/lib/net_4_5/csharp.exe' | |
export PS1="[mono master] "$PS1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mcs /out:test1.exe test1/Main.cs test1/HttpListener2Test.cs -r:System | |
mono test1.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.....Stacktrace: | |
at <unknown> <0xffffffff> | |
at (wrapper managed-to-native) KeraLua.Lua.luaL_unref (intptr,int,int) <IL 0x00025, 0xffffffff> | |
at NLua.LuaLib.lua_unref (KeraLua.Lua/lua_State,int) <IL 0x0000c, 0x0001f> | |
at NLua.Lua.dispose (int) <IL 0x0001b, 0x00053> | |
at NLua.LuaBase.Dispose (bool) <IL 0x00022, 0x0002b> | |
at NLua.LuaBase.Finalize () <IL 0x00002, 0x00013> | |
at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff> |
OlderNewer