Category Archive for: Tips

PHP Code snippets

  • November 22, 2015
  • cboursinos
  • php, Tips
  • Comments Off on PHP Code snippets

Hello everyone, i have some small PHP code snippets that you may want to have. Palindrome $string = str_replace( ‘ ‘, ”, $str ); $a = strtolower(preg_replace(“/[^A-Za-z0-9]/”,””,$string)); return $a==strrev($a); Anagrams return(count_chars($a, 1)==count_chars($b, 1)); Fibbonaci return round(pow((sqrt(5)+1)/2, $n) / sqrt(5));

Install Java-jdk in ubuntu

  • December 28, 2014
  • cboursinos
  • java, Tips
  • Comments Off on Install Java-jdk in ubuntu

Here is a post to demonstrate to you how to install java jdk in ubuntu. <code> sudo apt-get update sudo apt-get install default-jre sudo apt-get install default-jdk sudo apt-get install openjdk-7-jre sudo apt-get install openjdk-7-jdk sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update </code> After you install it you can check the version…

Install PyCharm 3.4 in Ubuntu 14.04

Install pycharm community in Ubuntu First you must install java-jdk sudo apt-get update sudo apt-get install default-jre sudo apt-get install default-jdk sudo apt-get install openjdk-7-jre sudo apt-get install openjdk-7-jdk sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update   After you install pycharm wget -q -O – http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add – sudo…

Google Tips and Tricks Every Student Should Know and not only

Everyone knows how to “Google,” but not everyone Googles efficiently and Google Tips. Be Specific. Find pages within sites using site:[website URL] and your search phrase, find authors using author:[name], and type intitle:[word] to find a page with that word in the title. Format. Use filetype:[jpg or other extension] to find images and all sorts of files (such as docs and…