Wednesday, August 14, 2013
Move Linux Mint to a new Disk
http://forums.linuxmint.com/viewtopic.php?f=90&t=43189&sid=1485a41f4689e7e8ea2fd2002e2f7248&start=40
http://forums.linuxmint.com/viewtopic.php?f=90&t=43189
http://www.youtube.com/watch?v=8BEZJmKqxYs
Tuesday, August 6, 2013
Powershell (Windows... ugg)
Powershell ISE
Powershell 2.0 was loaded on my Win7 SP1 machine so...
Windows Management Framework 3.0 (includes PS 3.0)
http://www.microsoft.com/en-us/download/details.aspx?id=34595
How to determine what version of PowerShell is installed:
PS C:\> $psversiontable
To Update help in PS, start an elevated PS session (not the ISE!) and enter:
PS> Update-Help
Powershell 2.0 was loaded on my Win7 SP1 machine so...
Windows Management Framework 3.0 (includes PS 3.0)
http://www.microsoft.com/en-us/download/details.aspx?id=34595
How to determine what version of PowerShell is installed:
PS C:\> $psversiontable
To Update help in PS, start an elevated PS session (not the ISE!) and enter:
PS> Update-Help
Sunday, July 7, 2013
ssh Fun, git prompting for a password when trying to push to github ???
Answer to problem is here. I did clone the repo down to local machine from another user on github and then tried to push it to my own new repo on github.
Some good background info on setting up to have multiple SSH keys for multiple services (like bitbucket AND github) is here.
Other related sites:
Some good background info on setting up to have multiple SSH keys for multiple services (like bitbucket AND github) is here.
Other related sites:
- http://linux.die.net/man/1/ssh-add
- http://askubuntu.com/questions/269140/how-to-user-multiple-ssh-keys-with-different-accounts-and-hosts
- http://stackoverflow.com/questions/1595848/configuring-git-over-ssh
- http://stackoverflow.com/questions/2419566/best-way-to-use-multiple-ssh-private-keys-on-one-client
- https://confluence.atlassian.com/pages/viewpage.action?pageId=271943168
Apple Google sync
Some weird things between IOS devices and Google data given Google setting Google Sync to end of life.
Google Calendar Sync technique now.
Google Contacts Sync technique now.
Google Calendar Sync technique now.
Google Contacts Sync technique now.
Thursday, July 4, 2013
A Basic Node.js site
A basic Node.js site using:
- Mongoose - object data modeling (ODM) library to access a mongoDB data store
- Express web app framework
- Jade template engine
- Connect middleware (cookies, favicon, static files, session management, etc) Note: This is installed by NPM as a dependency for Express.
- twitter bootstrap front end framework
- tbd - login using Google, Facebook, etc (passport?)
- best practices for packages.json (support dev & prod, proper dependency version wild-carding etc.)
Steps:
$ cd ~/dev (assumes ~/dev exists)
$ express appName (pick any valid app name)
$ cd appName
edit package.json to include following dependency line
"mongoose": "*"
$ npm install (install all dependencies)
$ npm start (just test the server starts and works the ^c out of it)
$ mkdir model (create a dir to hold model related files)
$ cd model
edit db.js to contain:
var mongoose = require( 'mongoose' );
var todoSchema = new mongoose.Schema({
item: String,
complete: Boolean,
date: { type: Date, default: Date.now }
});
mongoose.model( 'Todo', todoSchema );
mongoose.connect( 'mongodb://localhost/todoDB' );
add to app.js:
, db = require('./model/db')Tuesday, July 2, 2013
PyCharm - bought it.

Yes its great and all the free IDE options were lacking somehow so I bought a license. I like it for python and javascript. Lots of useful add-ins for MongoDB, Jade, etc etc.
PyCharm !
Monday, July 1, 2013
Subscribe to:
Posts (Atom)