Tuesday, August 22, 2017

NGROK - A nifty little program to share your localhost with everyone

We have live sites for running client sites, we have staging sites for testing. But what about localhost sites. We sometimes have some test code running in local that we want the world to see!
NGROK is a tiny program that let's you temporarily create an url for your localhost! And anybody with the URL can visit this and enjoy the goodness within!
Moreover it does not need install, runs on Windows, Linux, Mac, BSD or ARM, plus its open source. How cool can it get?!

Basics (for geeks)

To run NGROK is easy. Just download from https://ngrok.com/download, cd to that directory and run: ngrok http
And this will give you an url to access the localhost on your machine. Please keep in mind that the url will work only if the command line window is running, so you cannot close it while you want others to see it.
Also, make sure that you have entered the correct port number in the command that the apache running in. In a typical Windows installation with XAMPP installed, it runs in port 80. If not sure you can check in the XAMPP Control panel to see its port or check on httpd.conf.

Detailed Instructions (for beginners)

  1. Run apache + mysql + whatever you have!
  2. Determine the port in which apache is running. Usually it is 80. But to make sure you can:
  • In Windows: Check the XAMPP Control Panel GUI. It should have the port number under Port(s).
  • In Linux/LAMPP: Check /opt/lampp/etc/httpd.conf This should have the port number listed there somewhere. You can search for port and a line like Listen 80 will be there. 80 is the port number here in this example.
  • In other cases, run httpd -V and this will show the path of the httpd.conf. Check that file for the port in a Listen line.
Take a note of this port number.
  1. Download NGROK: https://ngrok.com/download
  2. Extract it. You will then have the ngrok executable file ready for your testing.
  3. cd to that directory.
  • In Windows: Go to the directory where the executable (exe) file is. Keep pressing shift and right click on empty space, then choose Open command window here.
  • In Linux: Visit the file in your File Manager, right click on empty space, then choose Open in terminal. This option maybe also available in the Tools menu. You can also type cd and then a space, then drag and drop the folder in a terminal window and press enter.
  1. Run ngrok in Command prompt/Terminal: ngrok http 80 (replace 80 with your port number, if your port number is different)
This will eventually connect and show you an url, something like this: https://65f6sc3b.ngrok.io
Take note of this url.
Keep this window open up to the time that you want the url to work.
  1. Open the URL in your browser to test if this can be accessed correctly.
  2. For Wordpress sites, you may see that the URL changing to "localhost" sometimes. If this is the case, then you would need to install this plugin: https://wordpress.org/plugins/root-relative-urls/ (This plugin is intended for use in development environment only, not for live or production use.)

Ref:

Sunday, July 10, 2016

How to Create Signed APK Using Only Cordova CLI

By default, APK generated by Cordova is a debug APK. But we need a release apk and moreover we need to sign it in order to make it be able to submit it somewhere or share with somebody.

Monday, May 23, 2016

How to Build your First Mobile App using Cordova

Cordova Logo
Cordova is a blessing in mobile development arena. You can write code once, then build apps for iOS, Android, Blackberry, Windows Phone etc. with the same code. You need nearly no coding skills. If you know HTML(5), CSS, Javascript, you already know how to do most of the coding.

Tuesday, May 10, 2016

Typing in Bangla using Unijoy on Arch Gnome

Unijoy is my favorite keyboard layout to type Bangla in Linux and Windows. In this short article I give you the instructions to type in Bangla in any Arch based Gnome Distro. I have tested this on Manjaro Gnome 15.12 (updated to Gnome 3.20.1).

Wednesday, April 27, 2016

How to install Ubuntu 16.04 LTS inside Windows without partitioning

Linux without the hassle of partitioning. How to do it? Here is the answer. You can uninstall whenever you want!

Thursday, December 17, 2015

How to install Linux on Pendrive using F2FS Filesystem

Well, F2FS filesystem is specially designed by Samsung which is good for SSDs and pendrives. It makes the read and write operations on the devices much faster, because it is specially designed for those mediums. Even take a look at these benchmarks to prove that F2FS performance is better.

Monday, June 8, 2015

At last I can access Recovery Mode in Symphony GoFox F15! (with video)

As I blogged earlier, I got myself a Symphony GoFox F15 phone which runs the darling of open source, Firefox OS. This phone is now very cheap, new at BDT 2000. Insane, right? If you are a young passionate developer, now is the right time to buy it, and mingle with this amazing creation.