View site on GitHub Statuses Archives

How to enable Developer tools on Safari

To enable developer tools on safari, follow these steps:

  1. Open Safari's Prefences window (⌘,). Figure 1
  2. Select the Advanced tab
  3. Mark the option "Show Develop menu in menu bar"
  4. The Menu "Develop" will appear on Safari's menu bar. Figure 2

Screen_Shot_2014-08-05_at_19_46_18 Figure 1
Screen Shot 2014-08-05 at 19.46.47 Figure 2

Published on 07/01/2015 at 02h16 by pfonseca, tags

Swift Update 2014-08-04

Swift update with iOS 8 beta 5.

  • Optionals no longer implicitly evaluate to true when they have a value and false when they do not, to avoid confusion when working with optional Bool values. Instead, make an explicit check against nil with the == or != operators to find out if an optional contains a value.

  • Swift now has a Nil Coalescing Operator (a ?? b), which unwraps an optional’s value if it exists, or returns a default value if the optional is nil.

  • Updated and expanded the Comparing Strings section to reflect and demonstrate that string and character comparison and prefix / suffix comparison are now based on Unicode canonical equivalence of extended grapheme clusters.

  • You can now try to set a property’s value, assign to a subscript, or call a mutating method or operator through Optional Chaining. The information about Accessing Properties Through Optional Chaining has been updated accordingly, and the examples of checking for method call success in Calling Methods Through Optional Chaining have been expanded to show how to check for property setting success.

  • Added a new section about Accessing Subscripts of Optional Type through optional chaining.

  • Updated the Accessing and Modifying an Array section to note that you can no longer append a single item to an array with the += operator. Instead, use the append method, or append a single-item array with the += operator.

  • Added a note that the start value a for the Range Operators a...b and a..<b must not be greater than the end value b.

  • Rewrote the Inheritance chapter to remove its introductory coverage of initializer overrides. This chapter now focuses more on the addition of new functionality in a subclass, and the modification of existing functionality with overrides. The chapter’s example of Overriding Property Getters and Setters has been rewritten to show how to override a description property. (The examples of modifying an inherited property’s default value in a subclass initializer have been moved to the Initialization chapter.)

  • Updated the Initializer Inheritance and Overriding section to note that overrides of a designated initializer must now be marked with the override modifier.

  • Updated the Required Initializers section to note that the required modifier is now written before every subclass implementation of a required initializer, and that the requirements for required initializers can now be satisfied by automatically inherited initializers.

  • Infix Operator Functions no longer require the @infix attribute.

  • The @prefix and @postfix attributes for Prefix and Postfix Operators have been replaced by prefix and postfix declaration modifiers.

  • Added a note about the order in which Prefix and Postfix Operators are applied when both a prefix and a postfix operator are applied to the same operand.

  • Operator functions for Compound Assignment Operators no longer use the @assignment attribute when defining the function.

  • The order in which modifiers are specified when defining Custom Operators has changed. You now write prefix operator rather than operator prefix, for example.

  • Added information about the dynamic declaration modifier in Declaration Modifiers.

  • Added information about how type inference works with Literals.

  • Added more information about Curried Functions.


Published on 07/01/2015 at 02h04 by pfonseca, tags ,

Swift Update 2014-07-21


Published on 07/01/2015 at 02h02 by pfonseca, tags ,

Swift Update 2014-07-07


Published on 07/01/2015 at 02h01 by pfonseca, tags ,

Swift Programming Language

“Swift is a new programming language for iOS and OS X apps that builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make programming easier, more flexible, and more fun. Swift’s clean slate, backed by the mature and much-loved Cocoa and Cocoa Touch frameworks, is an opportunity to reimagine how software development works. Swift has been years in the making. Apple laid the foundation for Swift by advancing our existing compiler, debugger, and framework infrastructure. We simplified memory management with Automatic Reference Counting (ARC). Our framework stack, built on the solid base of Foundation and Cocoa, has been modernized and standardized throughout. Objective-C itself has evolved to support blocks, collection literals, and modules, enabling framework adoption of modern language technologies without disruption. Thanks to this groundwork, we can now introduce a new language for the future of Apple software development.”
Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks.

swift screenshot 20140708-234210-85330826.jpg Source:

Published on 07/01/2015 at 01h56 by pfonseca, tags

Unity 5

New Features:

  • High-end shaders
  • Cross-platform real-time Global Illumination
  • New sound mixers, snapshots and predefined effects
  • WebGL
  • 64-bit Unity editor
  • Unity homescreen
  • 2D Physics effectors
  • PhysX 3.3
  • New job queue
  • Level streaming
  • SpeedTree support
  • New Mecanim features
  • Plugin inspector
  • Navmesh updates
  • Incremental Asset Bundles

unity-5-4 unity-5 unity-5-2 unity-5-3 unity-5-1 Source:
  • Published on 07/01/2015 at 00h51 by pfonseca, tags

    Accelerometer Input Unity

    using UnityEngine;
    using System.Collections;
    public class AccelerometerInput : MonoBehaviour
        void Update ()
            transform.Translate(Input.acceleration.x, 0, -Input.acceleration.z);

    Published on 07/01/2015 at 00h24 by pfonseca, tags

    Powered by Publify