Skip to content

Instantly share code, notes, and snippets.

Apr 17 10:43:20 iDevPod01 installd[52] <Error>: 0x2fe93000 handle_install: Install of "/var/mobile/Media/PublicStaging/RowMotionBoatAppiOS.app" requested by mobile_installation_proxy
Apr 17 10:43:21 iDevPod01 installd[52] <Error>: 0x2fe93000 MobileInstallationInstall_Server: Installing app rowmotionboatappios
Apr 17 10:43:21 iDevPod01 installd[52] <Error>: Apr 17 10:43:21 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Apr 17 10:43:22 iDevPod01 installd[52] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Apr 17 10:43:22 iDevPod01 installd[52] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Apr 17 10:43:22 iDevPod01 SpringBoard[66] <Warning>: Killing rowmotionboatappios for termination assertion
Apr 17 10:43:22 iDevPod01 com.apple.launchd[1] (UIKitApplication:rowmotionboatappios[0xc6dc][1328]) <Notice>: (UIKitApplication:rowmotionboatappios[0xc6dc]) Exited: Killed: 9
Apr 17 10:43:22 iDevP
@JohannesRudolph
JohannesRudolph / nunit.lite.teamcity.cs
Last active December 16, 2015 12:18
Simple teamcity test status reporter for for nunit.lite
public class TeamcityTestReporter : ITestReporter
{
TextWriter writer;
public TeamcityTestReporter( System.IO.TextWriter writer )
{
this.writer = writer;
}
public void TestSuiteStarted( NUnit.Framework.Internal.TestSuite ts )
@JohannesRudolph
JohannesRudolph / MarkReadOnlyBug
Created July 11, 2013 12:31
RavenDb Session.Advanced.MarkReadOnly bug? repro
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace Raven.Tests.Bugs
{
public class MarkReadOnly : RavenTest
{
@JohannesRudolph
JohannesRudolph / SimpleSpec.cs
Last active August 29, 2015 14:03
SubSpec with nested Lambdas. Need to find a better name.
// MS-PL License.
// Author Johannes Rudolph <jojo.rudolph@gmail.com>
// This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
// 1. Definitions
// The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
// A "contribution" is the original software, or any additions or changes to the software.
// A "contributor" is any person that distributes its contribution under this license.
// "Licensed patents" are a contributor's patent claims that read directly on its contribution.
@JohannesRudolph
JohannesRudolph / AutoIndexFailsRepro.cs
Created February 9, 2015 11:39
AutoIndexFailsRepro
public class AutoIndexMerging : RavenTest
{
const string SampleLogfileStoreId = "123";
[Fact]
public async Task AutoIndexReuseFails()
{
var store = NewRemoteDocumentStore( fiddler: true );
var session = store.OpenAsyncSession();
import rescala._
import rescala.events.{ Event, ImperativeEvent }
import makro.SignalMacro.{SignalM => Signal}
object ReScalaDemo extends App {
/*
Observer criticism
- inverts natural dependency order (listeners call soure to register)
@JohannesRudolph
JohannesRudolph / gist:1006783640ac06840787
Last active August 29, 2015 14:25
Some Scala Basics
object PathDependentTypes extends App {
class Food {}
class Grass extends Food {}
class DogFood extends Food {}
abstract class Animal {
// SuitableFood is a subtype of Food, deriving classes must define it
type SuitableFood <: Food
def eat(food: SuitableFood)
}
@JohannesRudolph
JohannesRudolph / MigrateVSColorSchemeTo2015.cs
Created January 3, 2016 14:33
MigrateVSColorSchemeTo2015
string settings = File.ReadAllText(@"C:\Users\johannes.rudolph\Documents\Visual Studio 2015\Settings\jrMonokai.vssettings");
var map = new Dictionary<string, string>()
{
{"Brace Matching (Rectangle)", "brace matching" },
{"String(C# @ Verbatim)", "string - verbatim" },
{"User Types", "class name"},
{"User Types(Enums)", "enum name"},
{"User Types(Interfaces)", " interface name"},
{"User Types(Delegates)", "delegate name"},
@JohannesRudolph
JohannesRudolph / Readme
Created May 6, 2016 07:21
Install TU Darmstadt Latex Report Template on OSX El Capitan
Install MacTex 2015 or later: https://tug.org/mactex/
Go to http://exp1.fkp.physik.tu-darmstadt.de/tuddesign/ and download the zip packages.
Disregard the OS X installation instructions on the website, they don't work on El Capitan (and assume global installation, whereas we want user installation)
$unzip latex-tuddesign_current.zip -d ~/Library/
$unzip tudfonts-tex_current.zip -d ~/Library/
You should have a ~Library/texmf after this operation. Then we need to rebuild the texmf database in ~/Library
@JohannesRudolph
JohannesRudolph / time-ago.pipe.spec.ts
Created December 1, 2016 09:58
Angular2 TimeAgo Pipe
import { fakeAsync, tick } from '@angular/core/testing';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/interval';
import 'rxjs/add/operator/takeWhile';
import { TimeAgoPipe } from './time-ago.pipe';
import { WrappedValue } from '@angular/core';
// Learning