Skip to content

Instantly share code, notes, and snippets.

View datalogics-robl's full-sized avatar

Rob Lyman datalogics-robl

View GitHub Profile
@datalogics-robl
datalogics-robl / CrashReporter For bookshelf delete button
Created January 21, 2013 21:09
Crash log For bookshelf delete button
Incident Identifier: 34DAE735-B0CB-40D0-9B2C-960AF8152EA7
CrashReporter Key: 20fce5bf09dae6e7f3344cf62d684be4b0a2d1cc
Hardware Model: iPad3,2
Process: DLReader-Debug [19542]
Path: /var/mobile/Applications/0DF9AD86-AD3C-4A7C-97FF-1994500A7E6C/DLReader-Debug.app/DLReader-Debug
Identifier: DLReader-Debug
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: debugserver [19541]
@datalogics-robl
datalogics-robl / DL Reader crash log 01-23-2013
Created January 23, 2013 19:10
Crash from trying to long press a book in DL Reader
Incident Identifier: 89967C8F-3967-4B97-ABE2-56392E945188
CrashReporter Key: 20fce5bf09dae6e7f3344cf62d684be4b0a2d1cc
Hardware Model: iPad3,2
Process: DLReader-Debug [20989]
Path: /var/mobile/Applications/DC600F6F-6BE0-4CDD-BD1F-3152BD216F3F/DLReader-Debug.app/DLReader-Debug
Identifier: DLReader-Debug
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: debugserver [20988]
@datalogics-robl
datalogics-robl / uuid5.py
Created August 12, 2013 20:48
Modified Python script that describes the current algorithm for Cloud UUID generation. Run this and compare output to test your own UUID 5 algorithm.
# Generate a book ID given 3 factors:
# 1. an arbitrary namespace
# 2. a distributor URN (from fulfillment result)
# 3. a resource URN (from fulfillment result)
# 4. a user URN (from fulfillment result)
import uuid
namespace = 'b54ed53c-f53f-4095-bf1b-c8351f1eba62'
distributor_URN = '9191daaa-98be-4425-b9a4-1b0ec51b0300'
@datalogics-robl
datalogics-robl / NSUUID+DLExtensions.mm
Created August 12, 2013 20:59
Example code for calculating a UUID 5 on iOS. It does not give correct results. EXPECTED: b31c0937-b03b-5a5e-b47a-b80881530929 ACTUAL: 59F5ADDE-9E13-578E-BB37-C3200E80A1B9
#import "NSUUID+DLExtensions.h"
#import <CommonCrypto/CommonDigest.h>
@implementation NSUUID (DLExtensions)
+ (NSUUID*)withNamespaceUUID:(NSUUID*)namespace name:(NSString*)name
{
NSString *concatenatedName = [[namespace UUIDString] stringByAppendingString:name];
NSData *data = [concatenatedName dataUsingEncoding:NSUTF8StringEncoding];
@datalogics-robl
datalogics-robl / ConvertFile.ps1
Created June 21, 2019 15:33
PowerShell hot folder script for converting files with FLIP2PDF
param (
[Parameter(Mandatory=$true)]$source,
[Parameter(Mandatory=$true)]$destination,
$logpath = $destination + "\convertfile.log"
)
$destination += "\"
# Function to write to our log file
function Write-Log {