I have fixed it by editing the start script /usr/bin/dia
to have the LIBOVERLAY_SCROLLBAR=0
before the dia launch.
$ sudo /usr/bin/dia
Then edit dia file to look as below
.config(function($httpProvider) { | |
$httpProvider.interceptors.push(['$q', '$rootScope', function($q, $rootScope) { | |
return { | |
responseError: function(rejection) { | |
if (rejection.status === 403) { | |
$rootScope.$broadcast('403', rejection); | |
} | |
return $q.reject(rejection); | |
} | |
}; |
I have fixed it by editing the start script /usr/bin/dia
to have the LIBOVERLAY_SCROLLBAR=0
before the dia launch.
$ sudo /usr/bin/dia
Then edit dia file to look as below
#How you get Sail.js running on Openshift#
This instruction is tested with:
###1) package.json
If you use the package.json build by sails new Projectname than you have to add a few fields for openshift – so the server can start you app automatically. Sails uses Grunt to build minify css/js and so on. Openshift dont have grunt installed so you have to add this also.
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
.run(function(DB) { | |
DB.init(); | |
}); |
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git |
var page = new WebPage(); | |
//spoof it as opera mini, to get the mobile page working properly | |
page.settings.userAgent = "Opera/9.80 (J2ME/MIDP; Opera Mini/6.5.26955/27.1407; U; en) Presto/2.8.119 Version/11.10"; | |
function doLogin(){ | |
page.evaluate(function(){ | |
var frm = document.getElementById("login_form"); | |
frm.elements["email"].value = "--enter-your-email--"; |
/** | |
* Module dependencies | |
*/ | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
// img path |
Feature: get cash from an ATM
Background:
Given the ATM has 1000
And the user John is authenticated
And the user's account has 5000
Scenario: success
When the user asks the ATM for 500
Then the ATM will have 500
And the user's account will have 4500
Isomorphic Javascript Software Engineer