Category: linux

[SOLVED] Adding epel repo to Centos 6.6 0

[SOLVED] Adding epel repo to Centos 6.6

$> su - $> yum update # optional but recommanded $> rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org $> rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-6.noarch.rpm

Error: variable @btn-border-radius-base is undefined 0

Error: variable @btn-border-radius-base is undefined

C:\dev\cw2\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\decorators\unhandledRejection.js:80 throw e; ^ Error: variable @btn-border-radius-base is undefined in file C:\dev\cw2\bower_components\bootstrap\less\buttons.less line no. 20 Solution: I don't know what is the proper fix, and in the meantime I'm doing this patch : In...

throw er; // Unhandled 'error' event less/parser.js:333:27 0

throw er; // Unhandled 'error' event less/parser.js:333:27

events.js:85 throw er; // Unhandled 'error' event ^ Error at new Parser (C:\dev\cw2\node_modules\gulp-less\node_modules\less\lib\less\parser.js:333:27) at Object.less.render (C:\dev\cw2\node_modules\gulp-less\node_modules\less\lib\less\index.js:18:22) at Transform._transform (C:\dev\cw2\node_modules\gulp-less\index.js:38:10) at Transform._read (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10) at Transform._write (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12) at doWrite (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:237:10) at writeOrBuffer (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:227:5) at Transform.Writable.write (C:\dev\cw2\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:194:11)...

Error: failed to connect to [localhost:27017] 0

Error: failed to connect to [localhost:27017]

Application started: { port: '9100', env: undefined } events.js:85 throw er; // Unhandled 'error' event ^ Error: failed to connect to [localhost:27017] at null. (C:\dev\boar-stack-boilerplate3\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\server.js:555:74) at emit (events.js:118:17) at null. (C:\dev\boar-stack-boilerplate3\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:156:15) at emit (events.js:110:17)...

How to correctly pass options to Backbone Collection 0

How to correctly pass options to Backbone Collection

Good var myCollection = new Asset.Collection(null, options); Wrong var myCollection = new Asset.Collection(options); Wrong (this will initialize a collection of 1 model with default values) var myCollection = new Asset.Collection({}, options);   Also when...

Displaying timezones in the browser for your users 0

Displaying timezones in the browser for your users

I've had on a few occasion the responsibility to handle timezone in softwares and web interfaces, including fixing complicated bugs related to timezones. The general direction is to detect the user's timezone via javascript...

When strftime lets you down 0

When strftime lets you down

int iret = strftime(szLargeBuffer, sizeof(szLargeBuffer), "%d %b %Y %H:%M:%S GMT", gmtime(&node->mtime)); iret == 0, it should have worked, but szLargeBuffer is not changed at all. What is going on?!? Passing a too large length...