A Working webpack/config.js

I’m happy to report that after prolonged pain, I’ve figured a webpack/config.js that works with webpack 3 (and should work with webpack 4), when doing isomorphic react:

const path = require('path');
module.exports = {
  entry: './src/client.jsx',
  output: {
    path: path.resolve('dist'),
    filename: 'client.js'
  resolve: {
    extensions: [ '.js', '.jsx' ]
  module: {
    rules: [
        test: /\.jsx?$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        query: {
          presets: [ 'react', 'es2015' ]

I invoke it as follows:

./node_modules/.bin/webpack --config webpack/config.js

Of course, you can put that in your package.json and run it with npm.

Book Review: Bankable Business Plans for Entrepreneurial Ventures


So, I’ve read a few books on business plans. This one… was a nice reminder, and I enjoyed reading the intro, but let’s not forget that the general idea now is 2017 is that business plans are not useful for presenting to investors.

Business plans aren’t useful for soliciting investors, but are they useful for anything else? As this book also says, it’s good to organize your thoughts to have a general idea of what you are doing, but business plans get all the numbers wrong all of the time. And most of the ideas on business plans are inapplicable or obsolete as soon as you start implementing it. From page one. So, basically you should write and discard the business plan.

Is this book worth reading? No. You should read one book on business plans in general, maybe this one, maybe some other one, and move on to next topics.

How to improve battery life on ubuntu and a mac

I just want to point out two tools that were helpful in improving the battery life on my Ubuntu.

First, a few words about batteries. On my 2012 Macbook pro, I just replaced the battery and am quite happy with the result. Even though the battery is glued to the chassis and the repair task is rated “hard,” it’s not that hard.

Use this method to replace the battery: https://www.youtube.com/watch?v=fupkPz55tUo

Note: tooth floss didn’t work for me… it would break. I used some translucent thread found at home depot.

Note: soaking the thread in 99% alcohol was critical! Without the alcohol, the thread would not cut through the glue. With alcohol, the thread cut through the glue easily.

And so.. replacing a glued-on battery on a macbook pro is not actually difficult. About 1 hour of work. Make sure that you have the specific proprietary Apple screwdrivers, the pentalobe.

As for Ubuntu power savings… ubuntu doesn’t have the reputation for great power management. However, these two tools helped me out:

sudo tlp stat

sudo powertop

The powertop ^ has “tunables” tab (press TAB repeatedly, press up/down to select the tunable that says “Bad” and press ENTER), enabling which allows you to get some better life out of your battery.

I might also note that the Dell Latitude e7440 has a removable battery, and I carry an extra one around, allowing me to work twice longer without hugging the wall. Just saying, no complaints about that hardware.

Tech Hubs in United States

Where do you look for a tech job, if you are physically in the United States? Here’s a graphic that helps answer that question. Now, this being sourced from LinkedIn, the information may not be 100% accurate, and the interpretation of the info may be tricky. But at least we see which areas have a heavy sector, and prospective job seekers can look into them. Yes, Washington DC has a massive tech sector.


Chef Kung Fu

From: https://github.com/chef/devops-kungfu

Chef Style DevOps Kung fu

This repository defines Chef Style DevOps Kung fu.

It includes a presentation you can give, or ask people to watch, which explains what DevOps is, and defines a style of practice that comes from the lived experience of many DevOps professionals. It is a collaborative space, where all practitioners of the style can come together to create a reference for how to build up their own DevOps Kung fu, and teach others how to improve theirs.

You should start by watching the presentation, then come back here. If you agree with the fundamental principles, wish to practice our forms, and apply the style to your professional life, you can join our school by sending a pull request to this README file, and adding your name to the list of practitioners.

The slides are available online.

If you like most of what you see, but not all, or wish to emphasize different things about your style – but you agree on the same fundamental principles – you should fork this repository, remove the names of practitioners from this file, and found your own school of DevOps Kung fu. All we ask is that you please give attribution of your style as a derivative of Chef Style DevOps Kung fu.

What is DevOps?

A cultural and professional movement, focused on how we build and operate high velocity organizations, born from the experiences of its practitioners.

Elements of Personal Corporate Culture

Let’s try to be occupied with every task, not just one task (all tasks that are pending are active… there is no backlog). Let’s also do as much right away as possible. It’s a personal corporate culture. If a task is available, let’s perform it right away. Not schedule it, actually perform it. This is a part of my personal corporate culture.

20170619 investment diaries

I take heavy advise from reddit.com/r/wallstreetbets, so it’s probably all shit and not to be trusted.

NVDA is seeing a bubble and continuous going up. I’m still expecting it to go up, however there is a danger of a major correction for this particular stock. Risk 6.5/10

AAPL had a correction, now is a good time to buy it again. It has lower P/E than SPY (the market), meaning that people don’t expect the company to grow much, it being a single-product company (the iPhone). However, it’s a blue-chip stock with a lot of backing from Buffet, and it’s profitable and the world’s most valuable brand, so I think it’s still good to hold money in it.

NTNX looks promising, it’s at it lowest point ever, a very very very young tech company, i’m expecting growth there.

Boeing (BA), not cheap, but a blue chip expected to grow.

Tech outperforms the overall market, but diversification should still be on, for every portfolio. We saw a dip (correction) last week, however we’re back to ridiculous growth again this week. So we’re expecting corrections but not recessions in short- to medium-term future. We’re looking at some of the best growth in a while (thanks Trump?)

Amazon looks good, not cheap, but well-position to continue its wonderful growth. MSFT is expected to grow at the pace of the market itself.

TSLA did great, will continue being where it is for a while.

MU looks good and gets a lot of attention on /r/wallstreetbets.

As a reminder, statistically market dips end of the week (Fridays), performs well Mon-Wed, even though this pattern isn’t particularly useful for medium- and long-term investing.

Business Canvas Model

So I presented The Personal MBA book to Jose at the Universidad Externado, and he liked it and mentioned this other model: https://en.wikipedia.org/wiki/Business_Model_Canvas

Business Model Canvas is a strategic management and lean startup template for developing new or documenting existing business models. It is a visual chart with elements describing a firm’s or product’s value proposition, infrastructure, customers, and finances. It assists firms in aligning their activities by illustrating potential trade-offs.


He mentioned that it majorly boils down to having an unfair advantage: what makes this business, or this business model, better than the competition? (Because if nothing, it’s not worth pursuing.)