Teabags and Leaders

 What counts is what’s inside the teabag. You will notice that some teabags have fancy labels, while others have ordinary ones. Some have delicate silk tassels while others have humble strings. But here’s the thing to remember: the quality of the beverage is determined by the tea inside the bag—not by the label or the string. What’s true for teabags is true for all of us too. The fancy titles or the qualification or the alma mater, the clothes we wear and the cars we drive—none of these really matters. They are like the label and the string. They only make you look nice.   What really matters is the kind of person you are deep down. Your beliefs and your attitude—that’s what defines the person you are. The tea masters know that to make a great drink, they need to focus on the tea. Not on the label or the string. Focus on being a good human being. Fix your attitude. Get your values right. And don’t fret about the small stuff. It’s really who you are—at the core—that makes a difference. 

20 VS Code Shortcuts for faster coding

  VS Code shortcuts This article hopes to help people using VS Code to code even faster. Not everyone has time to go through every tip and trick to find the ones that help them code faster — there’s just too many. So I’ll list my favorite shortcuts that make me a fast coder. Let’s start. Join Line Join line On Mac: Ctrl+J On Ubuntu, Windows : Open keyboard shortcuts from File > Preferences > Keyboard shortcuts , and bind editor.action.joinLines to a shortcut of your choice. Code Formatting This shortcut helps to indent the code as already set up in the editor settings. Code formatting Tip: Use this in the end or the start. I prefer using it when I’m done with the code in a file. On Windows: Shift + Alt + F On Mac: Shift + Option + F On Ubuntu: Ctrl + Shift + I Trim Trailing White Space This command help to get rid of extra white space at the beginning and end and will save you from any type of strict Lints. Trim white space Tip: Use this in the end, once you’re done with the

Setting up macbook for updates from seedutil

  As part of a discussion of how to build test VMs, a colleague mentioned how they were using the seedutil tool to help configure Macs to access Apple’s beta updates. I hadn’t run across this tool before, so I decided to do some research and see if I could make it work for my own testing needs. For more details, see below the jump. seedutil is available at the following location in macOS 10.13.2: 1 /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil There is no manpage for it, but if you call the  seedutil  tool by itself it will display the following options: computername:~ username$ sudo /System/Library/PrivateFrameworks/Seeding.framework/Resources/seedutil -help Password: usage: seedutil enroll SEED_PROGRAM seedutil unenroll seedutil current seedutil migrate OLD_VERSION NEW_VERSION seedutil fixup computername:~ username$ view raw gistfile1.txt hosted with

Freezing models in Tensorflow

Not my original post. However made some updates minor in the posts with latest version Freeze Tensorflow models and serve on web In this tutorial, we shall learn how to freeze a trained Tensorflow Model and serve it on a webserver. You can do this for any network you have trained but we shall use the trained model for dog/cat classification in this earlier tutorial  and serve it on a python Flask webserver.  So you trained a new model using Tensorflow and now you want to show it off to your friends and colleagues on a website for a hackathon or a new startup idea. Let’s see how to achieve that. 1. What is Freezing Tensorflow models? Neural networks are computationally very expensive. Let’s look at the architecture of alexnet which is relatively simple neural network:  Let’s calculate the number of variables required for prediction:           conv1 layer: ( 11*11)*3*96 (weights) + 96 (biases)            = 34944           conv2 layer: ( 5*5)*96*256