Fix the fonts in phpstorm ( ubuntu )

if you want to fix the font on ubuntu machine please check this

 

https://github.com/achaphiv/ppa-fonts/blob/master/openjdk-fontfix/README.md

 

https://laracasts.com/discuss/channels/general-discussion/font-antialiasing-on-linux-and-phpstorm/?page=2#reply-7406

 

 

Advertisements

Create a permanent connection between two servers

You may face that you want to make a permenant connection between two servers, there is a command to make that in such a one line

 


cat ~/.ssh/id_rsa.pub | ssh username@ipaddress "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

 

for the chmod permission at the end some servers need the permission to be added to the .ssh server so we can access it from other server

we give the folder .ssh permission of 700 and the authorized_key permission 640

Create SSL certificate with the Digital ocean

How To Create a SSL Certificate on Apache for Ubuntu 14.04 | DigitalOcean

A nice post

Using laravel to create a facebook tab app

  • First create a new facebook tab app by adding the platform, then add the domain, url like the following https://198.1.1.1/facebook_app
  • Change the files form the public directory to the index of the application
  • If you for a 404 page you have to check you server configuration like mod rewrite and apache configs
  • Use to get the request Route::any instead to get any request type, facebook use post requests
  • For any Facebook app you need to get permission from the user, that’s called scopes, when the user accept redirect him to the facebook page like http://facebook.com/pages/page_name?app=1233123123 or something
  • You get the returned session from facebook so you can continue with your app
  • Don’t use redirects instead use view to pull a specific page
  • and offcource use facebook sdk
  • Add for the links target=”_parent”

checkout branch become the master branch

http://stackoverflow.com/questions/5772192/git-how-can-i-reconcile-detached-head-with-master-origin