Javascript for PHP Programmers: Variables

March 5, 2018

The easiest way for me to learn a new language is to compare it with PHP. And to write down what I learn. PHP $variable = "variable is global unless defined in a function"; $anotherVariable = "No need to specify type."; function func() { global $variable; // This is how you access global variable in a function. $localVariable = "This is local and not accessible in any other function."; } Javascript ... Read more

My new photography workflow with iPad Pro and Lightroom 6

January 8, 2018

Now that I have 10.5” iPad Pro, I am trying real hard to use it as a productive machine, possibly as a main machine. Unfortunately, it has been challenge. I almost want to return it but I really love the form factor of iPad. I am hoping that in next few updates, it will be almost usable as a main machine. For programming, I am in love with mosh shell. ... Read more

TypeError: Require.extensions.hasOwnProperty Is Not a Function

January 1, 2018

While playing with, I ran into following error: > interactive-adventure-game-tool@1.0.0 start /Users/amer/alexa/interactive-adventure-game-tool > node node_modules/gulp/bin/gulp.js /Users/amer/alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97 if (!require.extensions.hasOwnProperty(ext)) { ^ TypeError: require.extensions.hasOwnProperty is not a function at requireDir (/Users/amer/alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97:37) at Object.<anonymous> (/Users/amer/alexa/interactive-adventure-game-tool/gulpfile.js:1:85) at Module._compile (module.js:660:30) at Object.Module._extensions..js (module.js:671:10) at Module.load (module.js:573:32) at tryModuleLoad (module.js:513:12) at Function.Module._load (module.js:505:3) at Module.require (module.js:604:17) at require (internal/module.js:11:18) at Liftoff.handleArguments (/Users/amer/alexa/interactive-adventure-game-tool/node_modules/gulp/bin/gulp.js:116:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! interactive-adventure-game-tool@1.0.0 start: `node node_modules/gulp/bin/gulp. ... Read more

Simpler Photo Food Logger

December 22, 2017

Sometimes just a little extra awareness of what we are eating is all we need to eat healthier. For those who prefer simplicity over precision, this app is for them. Another great feature of this app is logging IBS symptoms. This app will let you log your IBS symptoms such bloating, constipation, diarrhea, etc. You might be able to see a visual pattern in timeline or report view. And that might help you identify problem foods. ... Read more

You don’t need a web developer

December 4, 2017

Occasionally, when people find out I am a programmer, they ask me if I will build them a website or an app on the side. As I spend all day programming at my work, I rarely have motivation to continue programming after work. However, talking to most people, I realize they don’t need a programmer; most of their needs can be met by a simple SaaS solution. Recently, I directed a few friends to WordPress. ... Read more

WordPress vs Hugo

December 2, 2017

Managing WordPress can get time consuming. I have tried to move to static website several times but keep coming back to WordPress. But there are several advantages of static sites generators such as Hugo. I am advising a lot of my clients to use Hugo especially when they know that they will rarely ever update their sites. Here are some of main advantages of Hugo (or other static site generators) vs WordPress and other CMS. ... Read more


December 1, 2017

Here are a few my personal projects. Simpler Photo Food Logger This summer I was diagnosed with IBS. Doctor asked me to keep track of everything I eat and my symptoms. There are tons of apps for tracking your food but they were a bit to cumbersome to use. I didn’t need to track everything precisely, as my symptoms were not that bad. The easiest thing for me was to take photo of everything I eat. ... Read more

iPad Pro for Programming & Fun

November 29, 2017

I finally bought 10.5” iPad Pro (Affiliate Link). It was mostly an impulse purchase. When first I started to use iPad, it felt blah. It is hard to find good apps or what apps you might want to try out. My main goals with iPad was to have a really small laptop replacement. So I was hoping for a decent code editor. There are some code editing apps but there is no way to try out them before purchasing. ... Read more

Help Me Decide, Today!

November 2, 2017

I have been learning Laravel for work. I was playing with Laravel back in 2011 but then got distracted with other stuff. In my view, the best way to learn new technologies to create a something with it. As an indecisive person who rather enjoys collecting data instead of actually making a decision, I decided to build a website that helps with decision making process. I have used different formulas and methods for helping with decision making. ... Read more

Angular vs. React vs. Vue: A 2017 comparison

October 23, 2017

Trying to figure out which Javascript framework I should learn. This blog by Jens Neuhaus says Vuejs is the easiest to learn. Also I still don’t understand why these frameworks are better than jQuery but that is for another time. If you are an unexperienced Javascript developer — or if you worked mainly with jQuery in the last decade — you should think about using Vue. The paradigm shift is more pronounced when moving to React. ... Read more

© 2017 Amer Khalid