ubuntu 12.04 14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev| is_processing = false; | |
| last_page = false; | |
| function addMoreElements() { | |
| is_processing = true; | |
| $.ajax({ | |
| type: "GET", | |
| //FOS Routing | |
| url: Routing.generate('route_name', {page: page}), | |
| success: function(data) { | |
| if (data.html.length > 0) { | 
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote | 
ubuntu 12.04 14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev| <?php | |
| /** | |
| * Abstract class which has helper functions to get data from the database | |
| */ | |
| abstract class Base_Custom_Data | |
| { | |
| /** | |
| * The current table name | |
| * | |
| * @var boolean | 
| $('#mySearch').keyup(function() { | |
| clearTimeout($.data(this, 'timer')); | |
| var wait = setTimeout(search, 500); | |
| $(this).data('timer', wait); | |
| }); | |
| function search() { | |
| $.post("stuff.php", {nStr: "" + $('#mySearch').val() + ""}, function(data){ | |
| if(data.length > 0) { | |
| $('#suggestions').show(); | 
| <ul> | |
| {% for project in pagination %} | |
| <li>{{ project.name }} has {{ project.?? }} tasks</li> | |
| {% endfor %} | |
| </ul> |