This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
public static class AsyncHelper | |
{ | |
private static readonly TaskFactory _myTaskFactory = new | |
TaskFactory(CancellationToken.None, | |
TaskCreationOptions.None, | |
TaskContinuationOptions.None, | |
TaskScheduler.Default); | |
public static TResult RunSync<TResult>(Func<Task<TResult>> func) | |
{ |
<metadata> | |
<!-- Error CS0234: The type or namespace name `QuadCorners' does not exist in the namespace `DE.Neom.Neoreadersdk'. Are you missing an assembly reference? | |
This problem is caused by the default unspecified visibility of | |
the QuadCorners Java class. | |
Note in particular the very end of the following line from | |
`obj/Debug/api.xml`: | |
<class abstract="false" deprecated="not deprecated" extends="java.lang.Object" extends-generic-aware="java.lang.Object" final="false" name="QuadCorners" static="false" visibility=""> |
<metadata> | |
<!-- Some Metadata.xml fixes for binding the Socialize Android SDK (http://getsocialize.com/sdk/) in Xamarin.Android | |
Note that this is not a complete set of fixes. These changes only address the first round of compile errors. --> | |
<!-- Fixes for duplicate EventArgs, as discussed on: | |
http://docs.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/#Problem_Duplicate_custom_EventArgs_types | |
Error message: Error CS0102: The type `SomeClass` already contains a definition for `p0' (CS0102) --> | |
<attr path="/api/package[@name='com.socialize.auth.twitter']/interface[@name='TwitterAuthListener']/method[@name='onError' and count(parameter)=1 and parameter[1][@type='com.socialize.error.SocializeException']]" name="argsType">AuthTwitterErrorEventArgs</attr> | |
<attr path="/api/package[@name='com.socialize.facebook']/interface[@name='Facebook.DialogListener']/method[@name='onComplete' and count(parameter)=1 and parameter[1][@type='android.os.Bundle |
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; |
ContentView.ConstrainLayout (() => | |
border.Frame.Top == ContentView.Frame.Top && | |
border.Frame.Height == 0.5f && | |
border.Frame.Left == ContentView.Frame.Left && | |
border.Frame.Right == ContentView.Frame.Right && | |
nameLabel.Frame.Left == ContentView.Frame.Left + hpad && | |
nameLabel.Frame.Right == ContentView.Frame.GetMidX () - 5.5f && | |
nameLabel.Frame.Top >= ContentView.Frame.Top + vpad && |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using MonoTouch.UIKit; | |
namespace Async.iOS | |
{ | |
public static class Layout | |
{ |