There are times when I need to serve static HTML pages from my development machine so that I can test it on other devices on the network (e.g. mobile phones, tablets, etc). But what if I don’t feel like setting up any sophisticated web server locally?
On the good note, I have node.js installed locally, since I use some node packages for my development stack. So a quick command in terminal:
$ sudo npm install -g http-server
…and I have a quick-to-use http server to serve my static files!
To serve any static files, I just need to
cd into whichever directory I want to be the root, and issue
http-server command, like so:
And now I can quickly browse the page via the addresses shown in the terminal.
Note: I write this post so that I have a reference point in the future should the need arise. Mostly due to the fact that there are a lot of information about doing it, but scattered everywhere.
Disclaimer: I am nowhere near an expert when it comes to flashing or rooting Android devices. However, in the spirit of sharing, I am documenting my process in this post. Continue reading
After always seeing this scene in drama, documentary and anime, I finally saw it for myself!
I can cross ‘Shibuya crossing’ off my bucket list now.
p/s: Excuse the temperamental exposure during the recording. My phone is as excited as I am, I guess.
Bonus: Slow-motion capture of sushi making.
If you’re working on a web application built using bootstrap as it’s core framework, you might come across instances where there will be a need to have a modal window that is opened within another modal window. Even though this is not really a good UX practise, there are instances where it is unavoidable.
Opening a modal within a modal is technically supported with just the bare Bootstrap code, but take note of this caveat:
Overlapping modals not supported
Be sure not to open a modal while another is still visible. Showing more than one modal at a time requires custom code.
Following on my post about how to renew lapsed motorcycle road tax, I finally managed to get it done. However, my experience is not exactly smooth, due to one overlook and some unexpected turn of events.
What is this ‘lapsed motorcycle road tax’?
Basically, once your road tax expires, you have a grace period of one year from the road tax’s expiry date to renew your road tax. Once you go over this period, you will have to have your vehicle inspected before you can renew your road tax again.
Can’t say much about this.
I once walked into a shop that sells dinnerware. The sales person promptly walked to me, smile and said “Hello sir, are you looking for your wife?”.
I was actually checking out some of the Corell sets.
As someone who is passionate about pretty user interfaces, one of the big attraction when it comes to cars and bikes, is how well their meter panel is designed.
This is a simple website made for the Malaysia Motocross Exchange (MME). At the time of writing, there’s not much content yet.
A simple WordPress-powered website, with a custom MME Theme.
On one of the Python project we are handling at work, it always spit up this error when we try to directly run the .py file:
$ ./manage.py runserver
env: python\r: No such file or directory
At first I thought it was that my PATH is botched up. But the other Python apps are running perfectly fine.