I'm working on a system, which provides sensor data over a specific protocol to clients. There are
-
multiple sensors (S)
-
one bridge (B)
-
multiple clients (C)
S <-> B <-> C
| #define jn_defaults_get_object(key) [[NSUserDefaults standardUserDefaults] objectForKey:key] | |
| #define jn_defaults_set_object(key, object) \ | |
| [[NSUserDefaults standardUserDefaults] setObject:object forKey:key]; \ | |
| [[NSUserDefaults standardUserDefaults] synchronize]; \ | |
| jn_defaults_post_notification(key) | |
| #define jn_defaults_get_float(key) [jn_defaults_get_object(key) floatValue] | |
| #define jn_defaults_set_float(key, float) jn_defaults_set_object(key, [NSNumber numberWithFloat:float]) | |
| #define jn_defaults_observe(key, block) \ |
| Oct 25 13:17:57 Xtrail[301] <Warning>: -[_PFUbiquityRecordImportOperation main](456): CoreData: Ubiquity: Error saving managed object context changes for transaction log: <PFUbiquityTransactionLog: 0x1ea430f0> | |
| transactionLogLocation: <PFUbiquityLocation: 0x1d59dc20>: /private/var/mobile/Library/Mobile Documents/74BP53VAWB~com~sophiestication~Xtrail/transaction_logs_v1/mobile.0B710C8F-A005-52BD-A258-6709C30AE01E/com.sophiestication.Xtrail.1/TlKPtvzYaLWeun_PDF5dWDToE0X2Mt45xlFG6t2ThDQ=/BB38D415-9084-461E-AF7B-2E939560CB17.1.cdt | |
| transactionNumber: 3 | |
| Error: Error Domain=NSCocoaErrorDomain Code=1570 "The operation couldn’t be completed. (Cocoa error 1570.)" UserInfo=0x1d584e90 {NSValidationErrorObject=<NSManagedObject: 0x1e870ad0> (entity: Sharing; id: 0x1e8601f0 <x-coredata://6A363E96-A77C-4614-B99E-D2A3ACCA78D0/Sharing/p3081> ; data: { | |
| expirationDate = "2012-07-19 18:46:06 +0000"; | |
| publishDate = "2012-06-19 18:46:06 +0000"; | |
| trail = nil; | |
| url = "http://xtrail.me/aEsum6"; | |
| }), NSValidatio |
| 2013-02-06 09:22:57 +0000 Xtrail -[PFUbiquityTransactionLog loadPlistAtLocation:withError:](485): CoreData: Ubiquity: Error reading the log file at location: (null) | |
| userInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" UserInfo=0x2017ac80 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/74BP53VAWB~com~sophiestication~Xtrail/transaction_logs_v1/mobile.A3FE0F4D-ACD4-5F2D-9081-BC13C73AE11D/com.sophiestication.Xtrail.1/TlKPtvzYaLWeun_PDF5dWDToE0X2Mt45xlFG6t2ThDQ=/35782D40-6704-4D9C-BEB4-68495A634CB5.1.cdt, NSUnderlyingError=0x2017ac20 "The operation couldn’t be completed. (UBErrorDomain error 0.)", NSDescription=The item failed to download.} | |
| userInfo: { | |
| NSDescription = "The item failed to download."; | |
| NSURL = "file://localhost/private/var/mobile/Library/Mobile%20Documents/74BP53VAWB~com~sophiestication~Xtrail/transaction_logs_v1/mobile.A3FE0F4D-ACD4-5F2D-9081-BC13C73AE11D/com.soph |
| // Change the method _destinationPointForReleasePoint with this | |
| - (CGPoint)_destinationPointForReleasePoint:(CGPoint)releasePoint | |
| { | |
| return CGPointMake(CGRectGetMidX(_window.bounds), CGRectGetMidY(_window.bounds)); | |
| } |
| NSExpression *minExpression = [NSExpression expressionForFunction:@"stddev:" arguments:@[ [NSExpression expressionForKeyPath:@"amount"] ]]; | |
| NSString *stdKey = @"std"; | |
| NSExpressionDescription *stdExpressionDescription = [[NSExpressionDescription alloc] init]; | |
| stdExpressionDescription.name = stdKey; | |
| stdExpressionDescription.expression = minExpression; | |
| stdExpressionDescription.expressionResultType = NSFloatAttributeType; | |
| __block NSDictionary *dictionary = nil; | |
I'm working on a system, which provides sensor data over a specific protocol to clients. There are
multiple sensors (S)
one bridge (B)
multiple clients (C)
S <-> B <-> C
| #! /bin/sh | |
| # Usage | |
| # ./generate-icons.sh ./AppIcon.png | |
| FILE=$1 | |
| DIR=$(dirname $FILE) | |
| convert -resize '120x120' ${FILE} ${DIR}/iPhone@2x.png | |
| convert -resize '180x180' ${FILE} ${DIR}/iPhone@3x.png | |
| convert -resize '58x58' ${FILE} ${DIR}/iPad_Settings@2x.png |
| #!/bin/sh | |
| function print_example() { | |
| echo "Example" | |
| echo " git-diff develop master" | |
| } | |
| function print_usage() { | |
| echo "Usage" | |
| echo " git-diff <branch|tag|commit> <branch|tag|commit>" |
| #! /bin/sh | |
| function print_example() { | |
| echo "Example" | |
| echo " icons ios ~/AppIcon.pdf ~/Icons/" | |
| } | |
| function print_usage() { | |
| echo "Usage" | |
| echo " icons <ios|watch|complication|macos> in-file.pdf (out-dir)" |
| Mar 13 16:16:05 macbookpro.local HomeKit Accessory Simulator[80849] <Debug>: [HAKIPTransport.m:226 0011c710] POST Request | |
| Mar 13 16:16:05 macbookpro.local HomeKit Accessory Simulator[80849] <Info>: [HAKPairSetupCharacteristic.m:82 00128840] Connection attempted to pair setup a paired transport: <HAKIPConnection 0x6100000bd400 transport = <HAKIPTransport 0x60800011c710 Name: Light, Identifier: <HAKIdentifier 0x608000208c10> D0:B0:1E:A8:20:DB, Password: 740-51-881, Started: YES, Accessories: ( | |
| "<HAKAccessory: 0x61000027be00>" | |
| )>, encrypted = NO host = <NSHost 0x61000022d360> localhost (( | |
| localhost, | |
| "127.0.0.1" | |
| ) ( | |
| "127.0.0.1" | |
| ))> | |
| Mar 13 16:16:05 macbookpro.local HomeKit Accessory Simulator[80849] <Warning>: [HAKIPTransport.m:602 0011c710] Failed to handle pairing request with status code: -1 |