Git - Access denied fatal: Authentication failed for ..

If you receive this error message when tryinf to push / pull / clone, chances are the remote repository is private.In order to overcome this, use the following command;​$ git clone -b dev https://This email address is being protected from spambots. You need JavaScript enabled to view it./remoteGitAddress/project.git .​In the code above:-b means clone from the branch named 'dev'. at the end means extract the folder co...
Continue reading
  2260 Hits

Git Rename Branch Local and Remote Securely

​1. Rename your local branch. If you are on the branch you want to rename: git branch -m new-name 2. Delete the old-name remote branch and push the new-name local branch. git push origin :old-name new-name 3. Reset the upstream branch for the new-name local branch. git push origin -u new-nameThanks to https:/...
Continue reading
  955 Hits

JQuery Validate Single Input on Toggle

In order to validate a single input, use the following function;$("#inputName").valid(); Be sure to add this inside your change.() event, otherwise it won't work.$(function() { $('#toggleButton').change(function() { if ($(this).prop('checked') == true) { $("#inputName").valid(); } });})
  470 Hits

Bootstrap Toggle Adding Dynamic Elements

If you are adding elements to your page dynamically you will may run into issues with Bootstrap Toggle.I was adding toggles, each with uniquie ids.Hopefully this will help; // destroy all toggles beginning with 'my-toggle' $("input[id^='my-toggle']").bootstrapToggle('destroy'); // re-initialise the toggles $("input[id^='my-toggle']").bootstrapToggl...
Continue reading
  520 Hits

MySQL Check All Tables in Database

If you need to check (not repair) all your tables at once , run the following command in your shell;mysqlcheck -h hostname -u username -p -A -c You will be prompted to enter the password.-A means check all databases -c means Click here to view how to repair all tables.
  496 Hits

Why So Small Input Boxes?

Building a website recently I noticed that if I have 'php_flag display_errors on' then all the input boxes on the website appear much smaller. It's almost as if the CSS was broken.. still haven't found a reason why this happens...

Just comment out the .htaccess like below;

#php_flag display_errors on

  599 Hits