Goal setting detrimental to habit formation

Goal setting is detrimental to habit-forming.   Habits do not like goals. During effect habit formation, the brain needs the processing power to come from the deep sub-cortical part of the brain.  Goal setting is part of the neo-cortex.   Using neo-cortex disengages the sub-cortical part of the brain and is not habit forming.

Three steps to form good habits…

  1. Think about the reward you’ll get from the newly formed habit. Think about environmental cues & add it to the sequence of an existing action.
  2. Manage habits by choosing your environment wisely.  Pay attention to cues & sequences linked to the good habit as changes in them can negatively impact habits.
  3. To break bad habits, be vigilant of the contextual cues that lead up to occurence of the bad habit.  By monitoring, you are not weakening the ‘memory trace’.  Instead you are summoning your brains control mechanism cutting off the bad-habit cues in the middle.

Source – The Hidden Truth Behind Habit Formation.

Advertisements
Posted in Uncategorized | Leave a comment

On brokenness of the world

Do not be dismayed by the brokenness of the world.
All things break. And all things can be mended.
Not with time, as they say, but with intention.
So go. Love intentionally, extravagantly, unconditionally.
The broken world waits in darkness for the light that is you.

– L.R. Knost.

Posted in Uncategorized | Leave a comment

Adversity

Adversity introduces a man to himself.  -Albert Einstein

Posted in Uncategorized | Leave a comment

I don’t mind coming to work ..

I don’t mind coming to work,
But this eight hour wait to go home is just bullshit.

Posted in Uncategorized | Leave a comment

Get list of all npm packages

This downloads a 25MB JSON file

wget -O npmall1.json https://registry.npmjs.org/-/all
//prettify.js
var npmObject = require('./npmall.json')
var keys = Object.keys(npmObject)

var fs = require('fs')

var file = fs.createWriteStream('./npmall_pretty.json');

var count =0;
keys.forEach( (k) => {
	if ( count++ % 1000 === 0 ) console.log( count );
	var s = JSON.stringify( npmObject[ k ] )
	file.write( s + '\n' )
} )
file.end();
node --max_old_space_size=2000000 prettify.js
Posted in Uncategorized | Leave a comment

This too shall pass

This too shall pass.
It may pass like a kidney stone.
But, it shall pass.

Posted in Uncategorized | Leave a comment

Enumerate npm modules installed version

for f in $( ls node_modules/ ); do 
    echo $f, $(grep -i '"version":' node_modules/$f/package.json)
done
Posted in Uncategorized | Leave a comment