Back to the front page

Generic Array of Int - what, why, how?

One of the great feature introduced by Swift 2.0 is possibility to define generic functions for type of Array. Array is container for values of some type. The type is known upfront. It's called Element now. what? Array is a struct with element and is defined like…

Fast pattern search in Swift... since 1974

> the fastest known ways to find one string of characters in another [1] Stay with me. At the beginning brief introduction, later on Swift implementation, tests and conclusion. Halt and Catch Fire thing I really enjoy Halt and Catch Fire [http://www.amc.com/shows/halt-and-catch-fire] tv show. Season…

How to change iCloud password in 57 steps

First you have to find screen of horror, like the one I saw during activation my new iPad. Now sit back, brew a cup of tea and relax. You need it all to survive process of changing password designed by Apple. If happened you on you Mac at the moment,…

Collection Index and magic factor

> An index is an indirect shortcut derived from and pointing into, a greater volume of values, data, information or knowledge. (wikipedia) In general (however it is not the rule) in modern programming languages Index values start at 0 position and ends at "length - 1" position. A…

ObjectivePGP goes Open Source

I have changed my mind I'm a just developer who like to make stuff. A few months ago [https://blog.krzyzanowskim.com/2014/07/31/short-story-about-openpgp-for-ios-and-os-x-objectivepgp/] I stated: > Nowadays, programmers are looking for (I have seen it particularly in the case of iOS programmers) ready-made controls and…