06 Feb

Installare AngularJS 2.0 e confirgurare il primo progetto

Parte prima: Installiamo NodeJS #### SETUP APT ———————– deb https://deb.nodesource.com/node_6.x xenial main deb-src https://deb.nodesource.com/node_6.x xenial main curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add – apt update apt-cache policy nodejs apt install nodejs nodejs –version Parte seconda: Installiamo NPM e Typescript ###### GLOBAL LIBS (sudo) ——————————- npm install -g npm@latest npm install -g typescript Parte Terza: […]

07 Gen

Xcode App Transport Security fix in Xcode 7, and resolve ‘Could not connect to the server’ errors

Apple made a radical decision with iOS 9, disabling all unsecured HTTP traffic from iOS apps, as a part of App Transport Security. This helps in enforcing security best practices, but if you  want to load external content, like arbitrary links, you have to add this value to your app info.plist: key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>

03 Ott

RGB Led Strip Controlled by an Arduino

We need of 3 MOSFETs in order to drive the 3 RGB channels // HSV fade/bounce #define RED 9// pin for red LED #define GREEN 10 // pin for green – never explicitly referenced #define BLUE 11 // pin for blue – never explicitly referenced #define SIZE 255 #define DELAY 20 #define HUE_MAX 6.0 #define HUE_DELTA […]

02 Ott

Xcode 7 – after update old project need a rootviewcontroller

If after update of Xcode you trying to compile an old project that always build without problem, and now you are getting this error “Application windows are expected to have a root view controller at the end of application launch”, probably your project have this inside the app delegate class: [window addSubview:viewController.view]; If yes, you […]