Post

Replies

Boosts

Views

Activity

neural engine for model training?
Can anyone clarify which devices or chips the so-called "neural engine" can be used for machine learning model Training? As opposed to inference (or prediction)? And can external libraries such as Tensorflow (perhaps via the browser-based javascript library) access the neural engine in any manner for training or inference?
1
0
2.4k
Mar ’22
mac app store rankings
does anyone know if the mac app store ranking system has changed recently for mac apps? my mac apps have dropped like a proverbial rock in the ranking system near the end of last week. has any one done any experiments to see if mac app store rankings are higher if you recompile your apps for M1 apple silicon systems?
1
0
947
Feb ’21
migration path for setStatusBarOrientation:
we used to use code such as this to make sure the keyboard comes up in a desired orientation [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO]; however, apple has no-op'd setStatusBarOrientation: it still can be called, but it gives a warning that it no longer does anything as of iOS13 does anyone know the recommended replacement path for this feature?
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
478
Dec ’20
AVAssetExportSession fails part way thru for long videos
as in the above note, shorter videos, say, less than 1 hour playing time seem to export ok. this is just a time clip operation we are doing not a composition. but when we put videos longer than an hour and try to clip them to an hour, the export fails part way thru we can see the .progress property proceeding then we get the mysterious unknown error code: An unknown error occurred (-12551) as noted below in our console output apple any hints besides unknown? surely your code knows why it failed. why not tell us?! the "code = " listed below is the .status which shows as 4 waiting for trimmed movie file save 1 progress = 0.692948 2021-03-08 14:55:52.702278-0500 KargoCamera[1598:154227] Export failed: The operation could not be completed code = 4 2021-03-08 14:55:52.702412-0500 KargoCamera[1598:154227] Export recovidea: (null) 2021-03-08 14:55:52.702507-0500 KargoCamera[1598:154227] Export reason: An unknown error occurred (-12551)
2
0
851
Apr ’21
maccatalyst distribution profile generation broken?
previously (last year) I was able to generate provision profiles that matched to the *.maccatalyst.*com.* bundle id pattern. now when i try to generate a new mac provision profile because my prior profile expired, this site generates the profile for the iPad version of the bundle id pattern. e.g. without the .maccatalyst. portion of the bundle id. this is not usable for code signing of the mac app since the bundle id does not match. what is going on with this?
0
0
604
Apr ’21
other apps holding on to mic in background?
is it possible for other iOS apps to hold onto microphone access when those apps are in the background? we see some cases where our app cannot get mic access (e.g. we can record video but we get no sound) and we think it might be another app such as Telegram "holding onto" the mic, because when we quit all other apps, our app works ok. this seems like an odd failure mode. any hints how to fix it?
0
0
979
May ’21
install shortcut in app?
is there any recommend way to install a shortcut link in an app to make it easy for the user to get at it? or is maybe just a regular link that opens in a webview the only/best way? these type of automation shortcuts:: https://support.apple.com/guide/shortcuts/welcome/ios
0
0
684
Sep ’21
CreateML raw predictions output
i am using the tabular regression method of CreateML. i see where it prints a couple of metrics such as root mean square error on the validation data, but i dont see any way to export the raw fitted numbers (e.g. training prediction), or validation numbers (e.g. validation prediction), or out of sample "testing" numbers (from the testing data set). is this possible in CreateML directly? the reason this is necessary is that you sometimes want to plot actual versus predicted and compute other metrics for regressions.
0
0
596
Feb ’22
hdr dolby vision video color correction to 8 bit still images
Hey guys, tried to follow the super confusing doc on this, but no luck yet. https://developer.apple.com/av-foundation/Incorporating-HDR-video-with-Dolby-Vision-into-your-apps.pdf I have code that uses AVAssetReader and AVAssetReaderTrackOutput to directly pull frames from a video, but the colors are wrong for HDR dolby videos. Basically what I want is to extract frames from an HDR Dolby video as images and have those images not be the wrong color. Don't care if they are only 8 bit per color instead of 10 and all the all new stuff, just the closest that old fashioned 8 bit per color supports. I added the statement marked // added for dolby hdr per the above doc, (spread across several lines), no luck, still bad colors. Any hints of what I am missing? NSMutableDictionary* dictionary = [[NSMutableDictionary alloc] init];                                [dictionary setObject:[NSNumber numberWithInt:kCVPixelFormatType_32BGRA] forKey:(NSString*)kCVPixelBufferPixelFormatTypeKey];                // added for dolby hdr                dictionary[AVVideoColorPropertiesKey] = @{                 AVVideoColorPrimariesKey: AVVideoColorPrimaries_ITU_R_709_2,                 AVVideoTransferFunctionKey: AVVideoTransferFunction_ITU_R_709_2,                 AVVideoYCbCrMatrixKey: AVVideoYCbCrMatrix_ITU_R_709_2                 };                                AVAssetReaderTrackOutput* asset_reader_output = [[AVAssetReaderTrackOutput alloc] initWithTrack:video_track outputSettings:dictionary];                                  [asset_reader addOutput:asset_reader_output]; // from here we get sample buffers like this CMSampleBufferRef buffer2 = [asset_reader_output copyNextSampleBuffer]; // then pixel buffer  CVPixelBufferRef inputPixelBuffer = CMSampleBufferGetImageBuffer(buffer2); // then a CIImage   CIImage* ciImage = [CIImage imageWithCVPixelBuffer:inputPixelBuffer]; // one vid frame then we use standard stuff to convert that to a CGImage/UIImage
2
0
2.1k
Mar ’23
bundle identifier null
i am getting this error when i added a new app extension (notification content) error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier. Embedded Binary Bundle Identifier: (null) i have set it up the same way as another app extension in the app. i have also tried to set the bundle id manually in the info.plist file as noted by some posts, but xcode keeps changing it back to the default of ${PRODUCT_BUNDLE_IDENTIFIER}. e.g. my manual edits to info.plist aren't being accepted for this key. it seems like maybe PRODUCT_BUNDLE_IDENTIFIER variable is getting cleared to null for that extension during the build process? any workarounds?
1
0
1.9k
Jul ’22