Skip to content

Instantly share code, notes, and snippets.

Rob Lyman datalogics-robl

Block or report user

Report or block datalogics-robl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@datalogics-robl
datalogics-robl / ConvertFile.ps1
Created Jun 21, 2019
PowerShell hot folder script for converting files with FLIP2PDF
View ConvertFile.ps1
param (
[Parameter(Mandatory=$true)]$source,
[Parameter(Mandatory=$true)]$destination,
$logpath = $destination + "\convertfile.log"
)
$destination += "\"
# Function to write to our log file
function Write-Log {
@datalogics-robl
datalogics-robl / NSUUID+DLExtensions.mm
Created Aug 12, 2013
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
View NSUUID+DLExtensions.mm
#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 / uuid5.py
Created Aug 12, 2013
Modified Python script that describes the current algorithm for Cloud UUID generation. Run this and compare output to test your own UUID 5 algorithm.
View uuid5.py
# 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 / DL Reader crash log 01-23-2013
Created Jan 23, 2013
Crash from trying to long press a book in DL Reader
View DL Reader crash log 01-23-2013
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]
View CrashReporter 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]
You can’t perform that action at this time.