>Smart is the New Rich

>”Smart is the New Rich” a trending phrase with a book and even a CNN show name after it but it’s a load bullshit. This implies that at one point the “Dumb was the Rich” or the “Smart was the Poor”!

Last time I check smart people like Edison Ford, Bill Gates, Thomas Edison and Steve Jobs are not poor and they are old as dirt if not already dead. So this statement saying smart is the “new way” to be rich is only for the fools that believed otherwise. Success comes with hard work and the ability to consistently learn, improve your skills and become “smarter”.

Show me someone who was dumb and became rich. Wait… Those who win the lottery, it doesn’t take much brain power to pick 8 random numbers. But give them a couple of years before they end up in a worst position.

>Installing Kdiff3 version control mergetool for Git

>kdiff3 is a great GUI mergetool for git. However the installation is more tedious in Windows compared to Linux. Below is instruction on how to install it in Windows.

Download and install program:
http://sourceforge.net/projects/kdiff3/

Add kdiff3 as your Git mergetool
From Git Bash, run
$ git config –global merge.tool kdiff3

Open the file repository/.git/config
and paste the code below

[merge]    
    tool = kdiff3
[mergetool "kdiff3"]    
    path = C:/Program Files/KDiff3/kdiff3.exe    
    keepBackup = false    
    trustExitCode = false

tags:
git mergetool kdiff3 windows
kdiff3 mergetool is not available
better than vimdiff

>Don’t look at the results

>Don’t look at the results, look at the direction.

It’s easy to get discouraged when the results are not what you expect it to be. In reality much of the result will come much time after. You may forget what you went through to be where you are today. A farmer cannot plant today and harvest tomorrow. Depending on what he is planting it may take to 7 years to see the fruits of his labor. Not to mention the contingency such as drought, freezing, storm and so on that can keep him from seeing his fruits even longer. But as long he keeps planting one thing is certain “there’s a chance”

>Desktop Shortcuts Ubuntu 11.10

>If you didn’t already know, in Ubuntu if you type ctrl+alt+T the default terminal opens up. Now if you wish for other programs to open using keyboard shortcuts, here is how you do it.

Go to “System settings”. You can get there by clicking on the circle on the top right hand corner or searching it at the Dash Home (top left corner).

Under “Hardware” click on “Keyboard”.

Go to the Shortcut tab and click on the Custom Shortcuts. Click the plus sign (+).

A little window will open asking for Name and Command. Name is for naming of the shortcut and command is the program. Example:
Name: myShortcut
Command: terminator

Now it will appear in the box. Now select it and click where it says disabled and enter the shortcut. Close the window.

That’s it! Easy.

>Linux: Launching a program from Terminal

>In linux there’re couple different methods to install a program. The most often used and easy is apt-get because it does all the work. All it is a line in the terminal like:
$ sudo apt-get install terminator
and the program will install.

Programs like XAMPP where the package needs to be downloaded and extracted to a specific location. Other programs like netbeans and Komodo Edit where the package is first downloaded then extracted and then run an install script.

Sometimes I like to launch a program using the terminal such as:
$ terminator

When you install netbeans it doesn’t give you this feature but I going to show you how to create it.

When netbeans is installed it creates a netbeans folder in your home directory. There you will find a netbeans executable file (~/netbeans-7.1/bin/netbeans). If you run this file it will launch the program. What we need is to put this file symbolic link (symlink) inside the directory that holds these other executable programs which is /usr/local/bin. You do this by
$ sudo ln -s ~/netbeans-7.1/bin/netbeans /usr/local/bin/netbeans

that’s it!

Now netbeans may give you an error stating that you do not have permission to write in ~/.netbeans/ What is needed here is to change the permission with chmod. I gave it full access by running
$ sudo chmod -R 777 ~/.netbeans/

now you should be able to open the terminal, type netbeans and the program will launch

tags:
command line

>3rd Party Suck!

>Don’t store files in 3rd party servers! I knew it, look at megaupload was taken down with people files that were legal. That’s why you need a personal server for storing important files to avoid these pitfalls. Now many are left with their thumb in their mouth because their work sank with the ship, it’s at the bottom of the ocean and good luck trying to get it back.

I’ve seen web developers put their development source code in dropbox. Yes, it syncs with your other computers but seriously how safe is it to have it out there.

Think about it…

What happens if dropbox gets hacked, I never trust these 3rd party companies saying they delete your stuff. 3rd Parties are infamous in not telling what they do with your information. Someone once told me “its not how safe you are with your information but how safe others are.”

Setting up your own server is not difficult, especially with technology getting cheaper. With a little knowledge of Linux, an old computer(or buy one for $70) and with the information on this site you can get it started.

The Benefits:
Not only does it pay for itself in the long run (hosting cost) it also gives you the freedom to customize it with software and hardware. It also give you control with the security. You’ll will be able to access your files from anywhere thru ssh, ftp, http and so on. And best of all you’ll learn alot.

To get started click this and this.

>Whitelist. A Javascript Object

>Blacklisted are those who access were removed and whitelisted are those who are specifically granted access or privilege. Below is a Javascript whitelist object.

//START OBJECT
var white = {
list: new Array(),
request: function(permitted){
for(var value in this.list){
if(permitted == this.list[value]){
return true;
}
}
}
}
white.list = ['jon','max']; //set who has can have access
//END

//Lets test the object
if(white.request('jon')){
//if access granted
alert('welcome VIP')
}else{
//not granted access
alert('Access was never granted to you');
}

>Quote: Perseverance

>To quote President Calvin Coolidge:
“Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan ‘press on’ has solved and always will solve the problems of the human race.”

Back in 1995, Steve Jobs added: “I’m convinced that about half of what separates the successful entrepreneurs from the non-successful ones is pure perseverance”.

Michael Jordan quote: “I’ve failed over and over and over again in my life. And that is why I succeed.”