Want to host a Laravel application in a shared hosting server, but can’t figure out how to point the domain to the public directory?Put the following in a .htaccess file in the project root which is probably the public_html directory. RewriteEngine on RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.domain-name.com$ RewriteCond %{REQUEST_URI} !public/ RewriteRule (.*) /public/$1 [L] The post Host Laravel ...
Just installed Ubuntu, ran apt-get update and apt-get upgrade to encounter a “perl: warning: Setting locale failed.” error? Run sudo locale-gen en_US en_US.UTF-8 xx_YY xx_YY.UTF-8 sudo dpkg-reconfigure locales “xx_YY” should be the locale that the system reports missing. For me, it’s usually “si_LK”. Missing “si_LK” happens even when I create a DigitalOcean droplet. May be the OS uses my IP’s ...
Just installed Ubuntu, ran apt-get update and apt-get upgrade to encounter a “perl: warning: Setting locale failed.” error? Run sudo locale-gen en_US en_US.UTF-8 si_LK si_LK.UTF-8 sudo dpkg-reconfigure locales “si_LK” should be the locale that the system reports missing. For me, it’s usually “si_LK”. Missing “si_LK” happens even when I create a DigitalOcean droplet. May be the OS uses my IP’s ...
If you just cloned a project that uses npm start to compile and run itself, and it doesn’t run, but throws an error about lite-server (Or something like that), being not available, try installing following NodeJS packages globally. npm install -g concurrently lite-server typescript And then open /etc/sysctl.conf as root and paste following line into it. fs.inotify.max_user_watches=524288 And then run sudo sysctl -p. ...
If you just cloned a project that uses npm start to compile and run itself, and it doesn’t run, but throws an error about lite-server (Or something like that), being not available, try installing following NodeJS packages globally. npm install -g concurrently lite-server typescript And then open /etc/sysctl.conf as root and paste following line into it. fs.inotify.max_user_watches=524288 And then run sudo sysctl -p. ...
It has been quite a time since Google allowed us to store our photos in Google Photos for free. They recently increased the size of the photos that can be stored for free to 16 Mega Pixels. When they announced that, I decided to back up all my photos to Google Photos. The best thing about uploading photos to Google ...
It has been quite a time since Google allowed us to store our photos in Google Photos for free. They recently increased the size of the photos that can be stored for free to 16 Mega Pixels. When they announced that, I decided to back up all my photos to Google Photos. The best thing about uploading photos to Google ...
As with many in Sri Lanka, my first OS was a pirated copy of Windows. It was a copy of Windows XP and like most, I still remember it’s product key by heart (QW4HD-DQCRG-HM64M-6GJRK-8k83T. I didn’t Google this, I swear.). I know many others who perfectly remember this exact product key. But soon after I bought my first PC, I ...
As with many in Sri Lanka, my first OS was a pirated copy of Windows. It was a copy of Windows XP and like most, I still remember it’s product key by heart (QW4HD-DQCRG-HM64M-6GJRK-8k83T. I didn’t Google this, I swear.). I know many others who perfectly remember this exact product key. But soon after I bought my first PC, I ...
I have been using AnyDO since more than a year to plan my tasks. I infact wrote an article in TechDome encouraging others to start using it. Recently, AnyDO introduced a paid plan for their service — with which I am totally cool. I don’t care about paid plans, as long as the free option is enough for me and they don’t force me ...
I have been using AnyDO since more than a year to plan my tasks. I infact wrote an article in TechDome encouraging others to start using it. Recently, AnyDO introduced a paid plan for their service — with which I am totally cool. I don’t care about paid plans, as long as the free option is enough for me and they don’t force me ...
Last night I had a SSC moment. You don’t know what a “SSC moment” is? Well, that means a “Sudden Clarity Clarence” moment. It suddenly came to me that the species name “House Elf” mentioned in Harry Potter sounds like the name of a noble house in the Seven Kingdoms in A Song of Ice and Fire series. “Dobby” the “House Elf” ...