Laravel 404

From your web development using Laravel you may experience this issue as you setup a fresh web application run by apache and using virtual host for your http configurations. Defined routes doesn’t work but you think you set it right. On your virtual host configuration (.conf file) you put

AllowOverride All

but still you are getting a 404 error

the solution is, be sure to enable mod_rewrite

 

sudo a2enmod rewrite

then restart your apache

sudo service apache2 restart

This should fix the issue

Note: This is on linux implemetation

I experienced this issue when i tried to setup AsgardCMS (a laravel CMS) on a fresh/new server, took me a long time to discover the issue that’s why i am posting this note just encase.

 

Install Dota 2 without downloading it

Install dota2 but you dont want to download huge gig of file because of slow internet(meh) and you want to save time? Below are the steps on how to do it. BUT please note you need a machine that has already dota2 installed on it , if you don’t have it or you’re friend don’t have it go to sleep and continue your life without DOTA 😛

And please note i only tried this on windows IDK if it’s the same on the other platform.

  1. Copy the dota2 beta folder from the other machine where it is already installed. Example directory is on C:\Program Files\Steam\steamapps\common\dota 2 beta
  2. Now got to the computer you want dota2 to be installed  and install Steam (don’t worry steam is not that big)
  3. Login to your steam account/Create if you don’t have one zzzzzzz.
  4. Install Dota2 (ops! don’t panic i din’t want you to install the whole thing )
  5. Then Pause the installation (no need to continue , we install dota2 on purpose and pause it so it will create it’s directory/folder).
  6. Then transfer the file you copied from step #1 to steamapps\common folder. Example folder location C:\Program Files\Steam\steamapps\common
  7. On my end i close the steam application but i think it is fine without closing it. But i know you are a bit hesitant so close it 😛
  8. Run steam again (if you skip step #7 go to step #9).
  9. Go to steam LIBRARY -> GAMES
  10. Right click on Dota2, hit Unistall this will remove something IDK what but it’s not the whole dota2 files so chill
  11. Then install Dota2 again – This time steam will verify if you have dota2 installed on your machine/computer . (wait until it’s done verifying)
  12. Then BOOM! you can now play DOTA2 as soon as it’s finish verifying IF THERE IS NO UPDATE/NEW PATCH.
  13. ENJOY!

Leave a comment if this articles helps you or there is something i miss.

Install Apache Tika on Debian

  1. 1. Update java (your current java should be java7 or higher, if its already updated proceed to step 2.

    echo “deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” | tee /etc/apt/sources.list.d/webupd8team-java.list

    echo “deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main” | tee -a /etc/apt/sources.list.d/webupd8team-java.list

    apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886

    apt-get update

    apt-get install oracle-java8-installer

    now check the java version: eg. java -version

    I should show like 

    java version “1.8.0_25”

    Java(TM) SE Runtime Environment (build 1.8.0_25-b17)

    Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

    If its still an old version you can follow the link below

    2. Donwload Tika

       b. Unzip:    eg. unzip tika-1.6-src.zip

    3. Intall Maven 2 for our Tika build system

       b. Unzip: eg. unzip apache-maven-3.2.3-bin.zip

       c. Follow the installation guide here-> http://maven.apache.org/download.cgi#Installation

    4. Install Tika

       a. Enter to tika base directory eg. cd tika-1.6

       b. build tika using maven2: eg mvn install

    5. Finish. Now you can test tika 

       a. From the base directory of tika you can do

          java -jar tika-app/target/tika-app-1.6.jar -j [file]  

          The output should be a json encoded metadata of a file

          For some options you can see http://tika.apache.org/1.6/gettingstarted.html or java -jar tika-app/target/tika-app-1.6.jar –help