Strictly Programming

Polymer: Register an element

Posted in Polymer by sqllyw on 08/23/2016

Register an element in Polymer
(more…)

Tagged with:

Polymer: a basic page

Posted in Polymer by sqllyw on 08/22/2016

Here is a simple Polymer based page, just create an index.html, and copy and paste the following code into it:

(more…)

Tagged with:

npm install modules from bitbucket private repositories

Posted in Uncategorized by sqllyw on 10/17/2015

You might have private repositories in bitbucket and you declare dependencies in your nodejs app’s package.json:
"dependencies": {
"mymodule":"git+https://sampleuser@bitbucket.org/sampleuser/mymodule.git",
"ejs": "1.0.0"
}

when you do a npm install, you will be prompted to enter password twice, after entering the password, installation will proceed, this might work or might not work at all.

A simple approach as follow:

1) turn on git cache, keep password in the cache for a certain period of time:
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
2) access the private repo once, answer password when prompted:
git ls-remote https://sampleuser@bitbucket.org/sampleuser/mymodule.git

now you can install packages:

npm install --production

or all
npm install
Tagged with: , ,

Setting up a scannning server using Linuxmint 15 and Canon LIDE 25

Posted in Computer Hardware, Linuxmint by sqllyw on 10/06/2013

Setting up a scanning server using Linuxmint and Canon LIDE 25 scanner
(more…)

Printing in an Mac App

Posted in Objective-C, OS X by sqllyw on 10/01/2013

a simple way to add printing to your app. (more…)

Adding a login window to mac os x app

Posted in Objective-C, OS X by sqllyw on 09/29/2013

Adding a login window into a non document based os x app is quite simple, (more…)

JSON in Objective C 2.0 – simple sample 1

Posted in Uncategorized by sqllyw on 08/27/2013

Here is a very simple example accessing json file in Obj – c. (more…)

A Simple Cocoa Binding in XCode 4.6

Posted in KVC, Objective-C, OS X by sqllyw on 08/27/2013

This is just a very simple sample about Cocoa Binding in XCode 4.6. (more…)

Deploy Nodejs app in Centos 6.2

Posted in nodejs, upstart by sqllyw on 02/19/2012

Many options to deploy nodejs apps, but after some research I found the solution that works and yet simple (more…)

Using git to deploy a web app

Posted in git by sqllyw on 02/19/2012

If you are the only developer of a web app, you should use git to deploy it, save time. (more…)