A simple tutorial for find and identify the wrong typed words of the user in your application using the UITextChecker framework and the NatualLanguage framework.
development
Create your own XCode template
Very often you create a new class or a new view controller and customize it before start coding.
Every time you select from XCode, New File, the file type and add it to your project, like this:
Read MoreHacking “Laica Body Touch” weight scale with iOS
I have bought a new weight scale that works with or without a smartphone.
There is a proprietary app, called Laica Body Touch.
Problem with this app are:
Read MoreXiaomi Roborock – control via socket API
Why this guide?
My need was to control the robot asking simple commands through Google Home and Alexa like: “Alexa, clean the bathroom“.
With my robot, this was not possible. With the app, you can configure the zones but you can’t simply ask for cleaning only one zone, two times, for instance, all in automatic.
Read MoreSocial counter API
For personal purpose, I need to know the number of followers, likes, subscribers, etc…
The examined social platforms are:
- Facebook (number of likes)
- Instagram (number of followers)
- Youtube (number of subscribers)
- Twitter (number of followers)
Let’s start.
Read MoreUse multiple GIT accounts on same machine / macOS
The problem_
In my personal case I use three different git services for store / share my personal / work code:
- Github // my blog code, free open sources code
- Gitlab // my work code, on-premise installation
- Bitbucket // my personal code, free private repo
Every service uses different SSH keys to use. Must be configured separately.
Read MoreXCode – Debug macOS PreferencesPane applications
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:
Message from debugger: cannot attach to process due to System Integrity Protection
C++, tokenize a string
I need a cpp function (without using boost, obv) that split a string in parts using an other string as token.
Example input:
[code lang=”cpp” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]Center: (8.37, 9.86); Radius: 18.13; Point: (17.83, 6.51)[/code]