A useful trick using .map:Continue reading “SWIFT – Create filled array using map”
You need to build a System preference panel extension for your app but you’re unable to debug it from XCode due to Apple System Integrity lock?
Let’s see how!
But how to debug this extension?
Latest macOS block the execution or the debug of all system application. Now all apps are signed and if you try to attach a debugger you’ll receive this error:
Continue reading “XCode – Debug macOS PreferencesPane applications”
Message from debugger: cannot attach to process due to System Integrity Protection
Apple offer the batteryState in the UIDevice class:
In iOS12 Apple introduced a new way to check if your device is in “flat” mode, or better is on your desk.
Let’s take a look at the reference:
I’ve lost completely all my blog posts. About 15 years of work, tutorials and articles.
I’m recovering everything, post by post. I’ll be back soon!
START TRANSACTION; DROP DATABASE whiletrue; COMMIT;
This is an argument that I like a lot, the possibility to create or to override an operator changing its functionality.
SImilar to C++ Operator Overloading (https://en.cppreference.com/w/cpp/language/operators) but in Swift.
Use the Natural Language framework to perform tasks like language and script identification, tokenization, lemmatization, parts-of-speech tagging, and named entity recognition. You can also use this framework with Create ML to train and deploy custom natural language models.