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
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
/** | |
* Module dependencies | |
*/ | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
// img path |
Isomorphic Javascript Software Engineer
'use strict'; | |
//dependencies | |
var mongoose = require('mongoose'); | |
var util = require('util'); | |
var Schema = mongoose.Schema; | |
var async = require('async'); | |
//Base Journal Entry Schema | |
function JournalEntry() { |
var fb = new DSFirebaseAdapter({ | |
basePath: 'https://my-app.firebase.io' | |
}); | |
var ls = new DSLocalStorageAdapter(); | |
var store = new JSData.DS({ | |
// try firebase first, otherwise try offline data | |
fallbackAdapters: ['fb', 'ls'], | |
// After creating an item, sync it to localStorage |
angular.module('myApp').provider('DSCustomAdapter', function () { | |
'use strict'; | |
var defaults = this.defaults = { | |
queryTransform: function (resourceName, params) { | |
return params; | |
} | |
}; |
A while back I made a quick AngularJS directive for Bootstrap 3 Tooltips. I wanted to be able to specify tooltips on any element like this:
<button title="Settings" data-placement="bottom" data-delay="500"
data-toggle="tooltip"><i class="icon ion-gear"></i></button>
But I wanted to be able to do it without having to call $([data-toggle="tooltip"]').tooltip()
every time I loaded a new page with tooltips, which is what you'd have to do if you were using vanilla jQuery and Bootstrap without something like Angular.
I built a really simple directive that worked perfectly, and I realized this was a perfect example of creating a simple custom directive that makes your life so much easier.
#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.