Disable Ping in Linux
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
Setting up Ingress is an easy process but when it doesn’t work it gets really painful. First, make sure you have Ingress Controller setup correctly. This is in addition to Ingress resource and should be automatically setup by your cloud provider. When I was trying to setup a Kubernetes cluster on IBM Cloud, I ran into a lot of issues. It seems due to my permissions level something went wrong during provisioning of Kubernetes and Ingress Controller was not setup correctly. I went through a lot of steps including recreating alb , ingress resources, etc. The final fix was to login to IBM Cloud as superuser to change Access Policies for the cluster. Once I did that, everything just worked magically. ...
I moved all my blogs back to Hugo. I have gone back and forth between Wordpress and Hugo several times. WordPress makes it really easy to write and publish content. On this domain, I was using WordPress as a bookmarking service. With PressThis plugin, I was able to use a bookmarklet and publish a new post from any page on the web. But that plugin has not been updated in a while and it seems with every new WordPress release something would break. A few times, I was able to hack it to keep going. But lately, I cannot keep up with it. I will have to figure out a better way to bookmark but for now, I didn’t want to deal with WordPress. And easy bookmarking was the only reason why I was using WordPress. ...
I got my iPad Pro at the end of 2017. Before buying it, I had read many blog posts by various developers who were using iPad for programming and web development. But soon after I bought it, I realized that serious web development on iPad is hard. The biggest issue was debugging JavaScript and CSS without web tools. At first, I was having buyer’s remorse but I loved the form factor of iPad and loved drawing on it. I am used to reading on Kindle and iPad was just too heavy for long reading sessions but it was a very decent reading device for quick reading sessions. So I kept it. ...
One of the most common technologies that new professional developers struggle with is git. Many junior developers are eager to start using all of the powerful commands of git and usually end up getting more confused. Here are a few commands that I recommend to anyone learning git for the first time: clone This downloads the entire git repo from a remote server, usually. You will get all revision history and branches. ...
I use 13-inch MacBook Pro for personal projects and 15-inch for work. My personal MBP would be the last traditional laptop, hopefully. Since most of my work can easily be done on Linux VPS. I have been using a 10.5-inch iPad Pro with Blink shell for most of my side projects. I like the form factor of iPad Pro and I am getting better at Linux administration. Now I am also setting up Docker images so I can bring up new images as needed. ...
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 the 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.com, SmugMug, Shopify, etc. They all were happy with the results and ease of use. Also I am glad they talked to me because one guy was ready to spend a few thousands on a developer for a WordPress-based site. ...
Managing WordPress can get time consuming. I have tried to move to static website several times but kept going back to WordPress. But there are several advantages of static site generators, so I finally moved for good. I am also 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 the main advantages of Hugo (or other static site generators) vs WordPress and other CMS. ...
I finally bought a 10.5" iPad Pro (Affiliate Link). It was mostly an impulse purchase. When I first 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 goal 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 them out before purchasing. So I am spending a lot of time reading reviews before I purchase any app. ...
Running unit tests in Laravel, I was getting this error: ReflectionException: Class Tests\Unit\Symfony\Component\HttpKernel\Exception\NotFoundHttpException does not exist The issue was a missing root backslash, make sure you have expected exception like: $this->expectException(\Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class);