This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
| backend default { | |
| .host = "127.0.0.1"; | |
| .port = "8080"; | |
| } | |
| # Enable flushing access only to internals | |
| acl flushers { | |
| "127.0.0.1"; | |
| } |
| json = ActiveSupport::JSON.decode(File.read('db/seeds/countries.json')) | |
| json.each do |a| | |
| Country.create!(a['country'], without_protection: true) | |
| end |
This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
I am in the process of introducing single page applications to where I work. For development, using node based build tools is much easier for the single page applications. However, the build process for our organization is based upon maven. Our solution started with the maven plugin frontend-maven-plugin. It worked great at first, but then we ran into a situation that I couldn't make work with it.
As stated before, at our organization, we have the older ecosystem which is maven and the newer ecosystem which is node. Our goal was to keep the hacking to a minimum. We did this by putting all of the hacks into a single super node based build file. This is what maven calls and the reason frontend-maven-plugin wasn't sufficient. The super node based build script calls all of the other build scripts by spawning npm run. Try as I might, I could not figure out how to make the spawn work. front-end-maven-plugin downloads npm
Include Weather Icons in your app: https://github.com/erikflowers/weather-icons
Include the below JSON in your application, for example purposes, lets assume it's a global named weatherIcons.
Make a request to OpenWeatherMap:
req = $.getJSON('http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=?');| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| Working Huawei E3372h-153 SETPORT mappings | |
| replacing A1,A2 with FF turns off need for usb_modeswitch | |
| AT^SETPORT="A1,A2;12,1,16,A1,A2" | |
| ^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4, | |
| AT^SETPORT="A1,A2;1,12,16,A1,A2" |
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| import XCPlayground | |
| XCPSetExecutionShouldContinueIndefinitely(true) | |
| extension NSMutableURLRequest { | |
| /// Percent escape |
| <?php | |
| require_once 'vendor/autoload.php'; | |
| use Jose\Factory\JWKFactory; | |
| use Jose\Factory\JWSFactory; | |
| $key_file = 'key.p8'; | |
| $secret = null; // If the key is encrypted, the secret must be set in this variable | |
| $private_key = JWKFactory::createFromKeyFile($key_file, $secret, [ |
| /** | |
| * Based on Vertx EventBus Client (https://github.com/vert-x3/vertx-bus-bower) | |
| * Requires SockJS Client | |
| */ | |
| import {EventEmitter, Injectable} from "@angular/core"; | |
| import * as SockJS from 'sockjs-client'; | |
| @Injectable() | |
| export class EventBusService { |