Today, as I deployed my Laravel application, I received an email from my client mentioning that the basic authentication wasn’t working on the production server. I tested promptly and indeed it wasn’t. This was really strange for me as locally all was well. I got stuck at the problem for quite sometime. Searching on Google made me realize that a lot of people have been facing the same conundrum. But finally as usual, I found out the solution not too late.
Mac OS X Setting Up Initial Tools for a Web Developer
About an year ago I bought a Macbook Pro Retina and completely switched from Ubuntu (older PC) to Mac. In this guide (for starters) I’ll quickly show how to install and setup various important softwares and tools that are essential for web development like apache, php, mysql, ruby, python, node, redis, mongo, git, wget via Homebrew which is a package manager for OS X. It is similar to the Advanced Packaging Tool (APT) on Debian or Ubuntu.
Continue reading “Mac OS X Setting Up Initial Tools for a Web Developer”
Why clearRect Might Not be Clearing the Canvas Pixels
Sometimes the clearRect(x, y, width, height)
method on the canvas context might not erase the previous graphics drawn. This usually happens when we’re drawing paths using methods like lineTo()
, arc()
, rect()
, etc. and then stroking them with stroke()
or filling their content area using fill()
. Here’s an example of what I’m trying to convey.
Continue reading “Why clearRect Might Not be Clearing the Canvas Pixels”
Change Active State of Links in Sticky Navigation on Scroll
Based on the design decisions made by you on your website (or webapp), you might probably end up having a sticky navigation, one that keeps on showing up in the view port as you scroll up or down. In such a situation, it’s a common desire to have the links in the navigation bar be scrollbar-aware and change their active state as the user scrolls through the page. Let’s see how to do this.
Continue reading “Change Active State of Links in Sticky Navigation on Scroll”
Mini HTML/CSS/JS Code Playground (with Editors and Sandbox) in Less than 200 Bytes
Sometime back this thread on HackerNews gained quite some traction. Basically, it’s a small project called MiniCodeEditor which is a tiny and minimal version of an online code playground like CSSDeck.
Export your Issues and Wikis from Github Repo and Import to Bitbucket (Migration)
I just migrated a private repository from github to bitbucket. In this process, moving the entire codebase is not enough especially when you have hundreds of issues and lots of wikis – you need to keep track of them in the new repo. So with a few google searches, I did it in a few moments, although the information was pretty scattered – hence this tutorial!
Continue reading “Export your Issues and Wikis from Github Repo and Import to Bitbucket (Migration)”
Parse and Read Excel Files (xls/xlsx) With JavaScript
Recently there was a requirement in one of my projects to parse Excel files (with xls/xlsx extensions) in the browser (using javascript ofcourse). So I looked around a bit on the internet and found these two useful libraries:
Lets see how to work with each of them.
Continue reading “Parse and Read Excel Files (xls/xlsx) With JavaScript”