When creating web applications these days security must come first. Building the application without security and then attempting to retrofit it with security after the fact is a fruitless exercise. There will always be an excuse from upper management that it isn’t a high enough priority to secure it properly, “just fix the worst vulnerabilities and quickly Read more about My Application Security Notes[…]
Go to https://www.npmjs.com/ to get npm. npm -l npm adduser npm bin npm bin -g npm config set <key> <value> npm config get [<key>] npm config delete <key> npm config list npm config ls -l npm config edit npm set <key> <value> npm get [<key>] npm dedupe [pkg pkg…] npm deprecate <pkg>[@<version>] <message> npm docs Read more about Command Examples with npm[…]
There are many publications out there describing how to use Xcode to build navigation applications for Apple iOS using Objective-C. Due to how young Swift is, there are far fewer answers to be found if you’re googling for answers. Here’s a real quick way to get up and going with MapKit, CoreLocation, and Swift… The Read more about Using MapKit with Swift to Show Current Location[…]
Here’s short block of swift code that counts the number of days between two dates then pops an alert out to the UI. The start date is a random date in the past which starts out as a String. I used a NSDateFormatter to convert it to what the NSCalendar wants. The end date was Read more about Counting the Days in Swift[…]
Often there will be times while working on a View in the storyboard, when you are trying to select an element but some other element is in the way. For instance, I’m trying to select the entire view, but this button is in the way. By using control+shift and then clicking, a menu pops up and Read more about Specific Selection on the Xcode Storyboard[…]
This is a quick way to get a number (Double in this case) from a String in Swift. Use NSNumberFormatter() from the Foundation Framework to do it. It also handles the reverse scenario of getting a string from number.
Here is a simple calculator application. To get the buttons to resize depending on the size and orientation of the IOS device, you should follow these steps… This is what the result is…
If you would like to add emojis and/or symbols into your UI. Highlight the text, click Edit, Click Emoji & Symbols, select the one you want. You can see that I added a return symbol to the right of the ‘0’ in this calculator app.