Node & NPM on Windows

  1. Uninstall Node using Control Panel.
  2. Make sure there is nothing on your path to any node or NPM directory
  3. Download Node from https://nodejs.org/
  4. Run the installer
    1. Select to install NPM
    2. Select to add Node the path
  5. You will now have a c:\Program Files (x86)\nodejs\ directory, and in it are both NPM and Node.
  6. Run: npm install npm –g
    1. You will now have the most up to date NPM in c:\Users\[user]\AppData\Roaming\npm\
  7. Run the node installer again, and deselect NPM.
    1. This will remove NPM from the c:\Program Files (x86)\nodejs\ directory
  8. Now, add NPM to your path (c:\Users\[user]\AppData\Roaming\npm\)

You are now in a position to keep NPM up to date, independently of Node, and both are where they belong.

So I Never Forget

QubeSoftRGB

 

RIP: 2004 – 2008

Qube is probably my greatest influence and inspiration. A testament to what can be achieved through raw talent, total dedication and sheer force of will.

Until we meet again.

 

Give it Five Minutes

Give it five minutes – Jason Fried

A few years ago I used to be a hothead. Whenever anyone said anything, I’d think of a way to disagree. I’d push back hard if something didn’t fit my world-view.

It’s like I had to be first with an opinion – as if being first meant something. But what it really meant was that I wasn’t thinking hard enough about the problem. The faster you react, the less you think. Not always, but often.

It’s easy to talk about knee jerk reactions as if they are things that only other people have. You have them too. If your neighbor isn’t immune, neither are you.

This came to a head back in 2007. I was speaking at the Business Innovation Factory conference in Providence, RI. So was Richard Saul Wurman. After my talk Richard came up to introduce himself and compliment my talk. That was very generous of him. He certainly didn’t have to do that.

And what did I do? I pushed back at him about the talk he gave. While he was making his points on stage, I was taking an inventory of the things I didn’t agree with. And when presented with an opportunity to speak with him, I quickly pushed back at some of his ideas. I must have seemed like such an asshole.

His response changed my life. It was a simple thing. He said “Man, give it five minutes.” I asked him what he meant by that? He said, it’s fine to disagree, it’s fine to push back, it’s great to have strong opinions and beliefs, but give my ideas some time to set in before you’re sure you want to argue against them. “Five minutes” represented “think”, not react. He was totally right. I came into the discussion looking to prove something, not learn something.

This was a big moment for me.

Richard has spent his career thinking about these problems. He’s given it 30 years. And I gave it just a few minutes. Now, certainly he can be wrong and I could be right, but it’s better to think deeply about something first before being so certain you’re right.

There’s also a difference between asking questions and pushing back. Pushing back means you already think you know. Asking questions means you want to know. Ask more questions.

Learning to think first rather than react quick is a life long pursuit. It’s tough. I still get hot sometimes when I shouldn’t. But I’m really enjoying all the benefits of getting better.

If you aren’t sure why this is important, think about this quote from Jonathan Ive regarding Steve Jobs’ reverence for ideas:

And just as Steve loved ideas, and loved making stuff, he treated the process of creativity with a rare and a wonderful reverence. You see, I think he better than anyone understood that while ideas ultimately can be so powerful, they begin as fragile, barely formed thoughts, so easily missed, so easily compromised, so easily just squished.

That’s deep. Ideas are fragile. They often start powerless. They’re barely there, so easy to ignore or skip or miss.

There are two things in this world that take no skill: 1. Spending other people’s money and 2. Dismissing an idea.

Dismissing an idea is so easy because it doesn’t involve any work. You can scoff at it. You can ignore it. You can puff some smoke at it. That’s easy. The hard thing to do is protect it, think about it, let it marinate, explore it, riff on it, and try it. The right idea could start out life as the wrong idea.

So next time you hear something, or someone, talk about an idea, pitch an idea, or suggest an idea, give it five minutes. Think about it a little bit before pushing back, before saying it’s too hard or it’s too much work. Those things may be true, but there may be another truth in there too: It may be worth it.

From: https://signalvnoise.com/posts/3124-give-it-five-minutes

History of land in RSA

Knowing oneself and admitting to your own shortcomings is in all probability the most challenging aspect of being human. To those of us with the inherent incapability of doing so, it is so much easier to distance ourselves from our shortcomings and blame it upon something or someone which operates out of our own sphere of influence.
In the most pathetic case of projection, we even take off the identity of the entity which we blame. It becomes a scenario of: “They” told me … “People” says…and of course the very popular: “White people are…”
This is nothing new amongst nations. The absolutely dreadful situation of the German population after 1918 created a perfect environment for this. The nation lost it government, the promises of peace and prosperity at Versailles came to nothing, people lost their property, their jobs, their lives…they were unemployed, very very poor and with no hope. And somebody was to blame.
Now we should dispute the fact that the Jews of Europe had a thing or two to answer for, but Adolf Hitler managed to identify a minority of people who refused, for generations, to conform to German society and demonise them as the scapegoat. He used his “Mein Kampf” and his Nürmberg Laws and he made the Jews of Europe into a monster and he convinced the German people, and many others, that this monster had to be destroyed. Thabo Mbeki did exactly the same by branding the white person in this country as “settler”.
This is no different from what Black South Africa is doing to white South Africa. Through the hate filled propaganda of : “You stole our land! You made us into slaves! You keep us poor!” they demonise the white South African into some sort of monster.
Through legislation such as Black Economic Empowerment and Affirmative Action they effectively create a barrier blocking the white minority from active participation in the economic and social development of a country which the white man have inhabited, cultivated, developed and defended for 526 years, ever since Bartolomeus Dias planted his first padrao on the coastline of the southern tip of this continent.
Through portraying the white South African as a racist, inbred idiot walking around in khaki shorts and mistreating all and everybody around him, the white man in South Africa is made into a typical scapegoat for everything that is wrong.
The White South African, by developing and expanding his cultural heritage, his religious beliefs and his entire orientation did not conform to the standards of Africa.
He refused to accept the absolutism of chieftainship as a form of government, he refused polygamy on basis of religion, he refused to pray to the ancestors because he was a Christian, he refused to leave his social orientation of the individual being a building block of society behind in favour of the African belief that society defines the individual. In short, he refused to betray himself.
And in being what he was, the White South African developed a country of industry and agriculture and infrastructure. He turned South Africa into a country where the first heart transplant could happen, where enough food was produced to export it to other countries, where gold and diamonds were mined and wealth created. And this all happened in less than 200 years (between 1780 and 1980).
In the 3000 years since the end of the Stone Age, the indigenous people of Africa could not manage to create an infrastructure, could not mine or produce export, could, in fact not succeed in building anything higher than one storey and could not write down anything as reference for future generations, because they could not manage to master the art of writing. In fact, when the first Europeans arrived on 6 April 1652 it was 1974 years after Ptolemy I built the magnificent library of Alexandria – and in Southern Africa the indigenous people still could do no more than a few rock paintings and a clay pot with patterns on it.
Today, this development, this contribution of the descendants of Europe has become a threat to the Black South African. He cannot compare. He has no contribution that can remotely compare to what the white man created and therefore he has to fall back on what primal instinct tells him to do: Destroy that which is a threat to you!
It is against this background that the white South African is demonised as a slaver and murderer who stole land. Let us put this in perspective:
In the first place: The Europeans who came with Van Riebeeck had no intention to stay at the Cape. We can clearly determine this from the repeated application for transfer to Batavia or Amsterdam made by almost every Company servant. The few men who decided to make this their homeland, did so because they came to love the land.
They wanted to develop and grow here. And in the written evidence, left us by the men who did not intend to stay and therefore had no reason to lie, it is written down over and over again that the Europeans settled on uninhabited land. They exchanged land for cattle and money and traded with the nomadic indigenous people.
The Company decided to import slaves. I emphasize import, because no indigenous person in this country was ever put into slavery! In actual fact, the slaves who were brought in from Madagascar and Batavia and Ceylon and East Africa were the ancestors of an entirely new group of people: the Coloured nation of South Africa who adopted the customs and culture of the European.
Ever wondered why they did not adopt the custom of Africa?
Because they were not exposed to it, that is why! Nobody at the Cape ever set eyes on a black person for 130 years before the first Trekboere met the Xhosa in the Valleys of the Amatola around 1770! These slaves also added to the bloodline of the European settlers, as did the French Hugenots of 1688 and the British Settlers of 1820. The White South African was a new nation, born in Africa. This nation called its language, Afrikaans, after Africa. This nation called itself after Africa – Afrikaners.
On the first of December 1834 slavery was abolished in the Cape Colony. This is two years before the start of the Great Trek. The white man in South Africa knew nothing of the existence of the Zulu, the Tswana, the Sotho, the Venda…and he was at war with the Xhosa. It is chronologically impossible that indigenous people could be held in slavery, if the so-called slave masters did not even know of their existence before the abolition of slavery.
Let us look at the “great” Shaka Zulu and the Zulu nation. Remember that the Europeans landed in South Africa in 1652. Shaka kaSenzaghakohona was born around 1787. He managed to unite, through force and murder and rampage a number of small tribes into the Zulu nation around 1819. Before that year, there WAS no Zulu people. A question of mathematics: The Zulu nation came into existence only 167 years after the arrival of Van Riebeeck. What logic can possibly argue that the Europeans took anything away from the Zulu-people?
So when did the black man establish himself in South Africa and how? The answer lies in the Mfecane: Mfecane (Zulu: [m̩fɛˈkǀaːne],[note 1] crushing), also known by the Sesotho name Difaqane (scattering, forced dispersal or forced migration[1]) or Lifaqane, was a period of widespread chaos and warfare among indigenous ethnic communities in southern Africa during the period between 1815 and about 1840.
As King Shaka created the militaristic Zulu Kingdom in the territory between the Tugela River and Pongola River, his forces caused a wave of warfare and disruption to sweep to other peoples. This was the prelude of the Mfecane, which spread from there. The movement of peoples caused many tribes to try to dominate those in new territories, leading to widespread warfare; consolidation of other groups, such as the Matabele, the Mfengu and the Makololo; and the creation of states such as the modern Lesotho.
Mfecane is used primarily to refer to the period when Mzilikazi, a king of the Matabele, dominated the Transvaal. During his reign, roughly from 1826 to 1836, he ordered widespread killings and devastation to remove all opposition. He reorganised the territory to establish the new Ndebele order. The death toll has never been satisfactorily determined, but the whole region became nearly depopulated. Normal estimates for the death toll range from 1 million to 2 million.
The black man established himself in this barren land now known as South Africa a full 174 years AFTER the white man. How dare you then call me a settler when you are nothing more? If I don’t belong here, certainly neither do you.
Land stolen from the black man? No. The land occupied by the Boer-people was land that nobody lived on, for the pure and simple reason that the original people of South Africa were massacred and wiped out in a racist genocide by the ancestors of the current black population of South Africa. The very same thing that is now repeated with the white man. The white man has a full and legal and historical claim to his part of this country, including land. And the black man who disputes that is welcome to bring evidence of the contrary. Remember, popular liberal myth, propagandistic expressions and loud shouting and burning and looting to hide your own incapability is not evidence. It is barbarism.
The popular myth of “the end of colonialism” is a lie also. Colonialism in South Africa ended on 31 May 1961 when the country became a Republic. White minority rule was not colonialism, because the white South African belongs here – you cannot colonise your own country.
The entire uproar about white oppression and white guilt and white debt is based, exactly like the concept of the rainbow nation and its Africa-democracy, on one big lie. In Afrikaans, a language of Africa, we say: However swiftly the lie might travel, truth will catch up one day.
Black South Africa might as well realise that the time of the lie is running out. Your stereotyping of the white man and apartheid as the cause of everything, cannot hold much longer.
You cannot hide rotting meat under gift wrap for eternity.
Some time in the very near future you will have to own up and explain how you could hold a small minority of oppressed people responsible for the disaster that you have made of a country which has the potential of being a place of safety, a welcome and hospitable home, to all its children whether they be black, white, coloured or Indian.
The black man holds the key to the final destruction of what is left, or the final realisation that we have no other choice but to peacefully co-exist. The black South African can no longer avoid admitting that the destruction of the white South African necessarily means the destruction of everything and everyone left on the southern tip of Africa.
By Daniël Lötter
Source
South Africa Today – South Africa News

Speed up git in Windows 7

Git in the bash terminal in Windows 7 seems to slow down to a crawl once you start fiddling with your bash prompt and whatnot. I finally got sick of it and found out that adding this sorts it out:

$ git config --global core.preloadindex true
$ git config --global core.fscache true
$ git config --global gc.auto 256

 

Blatantly plagiarized from StackOverFlow.

Steady as she goes

 

Steady movement is more important than speed, much of the time. So long 
as there is a regular progression of stimuli to get your mental hooks 
into, there is room for lateral movement. Once this begins, its rate is 
a matter of discretion. 

Corwin, Prince of Amber

 

Copy blobs around like a boss

Import-Module Azure

$sourceAccount = 'myvids'
$sourceKey = '@@@@@@@'

$destAccount = 'destvids'
$destKey = '@@@@@@@'

$containerName = 'videos'

$sourceContext = New-AzureStorageContext $sourceAccount $sourceKey
$destContext = New-AzureStorageContext $destAccount $destKey

$blobs = Get-AzureStorageBlob `
    -Context $sourceContext `
    -Container $containerName

$copiedBlobs = $blobs |
    Start-AzureStorageBlobCopy `
        -DestContext $destContext `
        -DestContainer $containerName `
        -Verbose 

$copiedBlobs | Get-AzureStorageBlobCopyState