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
  2954 Hits

Git Push Error - 401 Unauthorized While Accessing...

If you have an existing folder that you want to push, the instructions on GitLab are as followscd existing_folder git init git remote add origin git add . git commit -m "Initial commit" git push -u origin masterHowever I was receiving the following error;error: The requested URL returned...
Continue reading
  6175 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
  1163 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(); } });})
  875 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
  653 Hits

JQuery Validate Multiple Dynamic Inputs

I'm using this great jQuery Validation Plugin to validate my form, and some dynamic inputs that users can add when clicking a button.I add new dynamic inputs and they all share the same name, this is because I want to send these values as an array to PHP. For example;//HTML<input type="text" name="test[]"><input type="text" name=...
Continue reading
  1010 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.
  580 Hits

Git Ignore All Except Some Files

If you already have a .gitignore file with rules, you can change them.My .gitignore looked like this;#ignore these foldersscripts/lib/**logs/# ignore these files.sql Let's say you now want to include a file located at /lib/config.php. You would add this line;#ignore these foldersscripts/lib/**logs/# ignore these files.sql# allow!lib/config.php Next...
Continue reading
  594 Hits

MySQL Repair All Tables in Database

Open a shell and run the following command;mysqlcheck -h hostname -u username -p -A --auto-repair ​You will be prompted to enter your password.
  591 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

  990 Hits

Airbnb £25 Discount Code

​Click this link to get your £25 off!
  949 Hits

PhpMyAdmin Invalid Column Count in CSV input on line 1

If you are receiving this error while tryng to import a CSV file, make sure that the number of columns in your CSV matches that of your existing database table.I had an existing table with 10 columns, the first column was `id` an auto-increment field. I omitted this from my CSV file presuming it would be auto geberated but it's not.number of c...
Continue reading
  12391 Hits

Google In-Page Analytics Not Working

I find this Chrome plugin very useful. However recently it stopped working, the solution (always works for me) appears to be;​open Chromemanage extensionsdisable In-Page Analyticsre-enable In-Page Analyticsreload page (Ctrl+F5)Hope this helps!
  692 Hits

Tsohost UK Web Host Review & Promo Discount Code

I recently moved hosts from SiteGround to Tsohost, mainly because my SiteGround renewal was coming in at far too much money for what I was receiving in my opinion. My first year was approximately £90, whereas my second year was approximately double this at £180 - for no extra services. I began my hunt for an alternative provider... enter ...
Continue reading
  842 Hits

REGEX PostgreSQL Replace

​Working with MARC format, remove pipes and letters.Before;|aShakespeare, William,|d1564-1616.Regex;REGEXP_REPLACE(|aShakespeare, William,|d1564-1616.,'\|.',' ','g')After;Shakespeare, William, 1564-1616.
  1018 Hits

Ubuntu Remotely Connect to MySQL Database

In order to remotely access a MySQL database in Ubuntu it's necessary to edit the following file; /etc/mysql/my.cnf Find the following line; bind-address = Comment it out, and change it to the following; #bind-address = bind-address = You then need to restart the MySQL service using the...
Continue reading
  1277 Hits

PHP 7.1 with Win 10, XAMPP & SQLSRV Driver

​If you're trying to use XAMPP on Windows and connect to a SQL server using PHP, hopefully the following will help.Firstly download XAMPP for Windows (32 bit). Follower the installer, default options.Then download the Microsoft Drivers 4.3 for PHP for SQL Server.  Extract the contents of this download to your PHP extensions directory...
Continue reading
  16889 Hits

Ubuntu 14 Install and Configure SSH

Ensure the OS is up to date.sudo apt-get update sudo apt-get Install OpenSSH server on the OS.sudo apt-get install openssh-server It's also a good idea to make a copy of the default SSH configuration, so that if you ever mess up your SSH settings you can revert to the original.sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults ...
Continue reading
  1211 Hits

Server Side Events with MySQL and PHP

​I wanted to build an application that would display a 'real time' feed of data on my web page.I had access to a MySQL database that contained a 'transactions' table, this table received numerous events every second. I needed to display the transactions in real time (or close enough). Not only did I need to display the live data, but I also wa...
Continue reading
  3973 Hits

Phoca Download Empty Categories

Phoca Download is am amazing free document repository for Joomla. However I found one feature lacking, when a category was empty (contained no files), there was no obvious message to the visitor - there was simply the category name and a blank page.I always thought there should be a message 'Oops - nothing here!', or similar.To save you some time, ...
Continue reading
  1683 Hits

Latest Comments

Guest - Susan Hermiston Virtual Hosts
October 7, 2015
Wow 747 just blew me away. Sorry not a tech person at all!! But I still love you!! Rock on!!?
Guest - Johmny Invisible Mouse Cursor Ubuntu & Synergy
September 2, 2015
Glad I was ble to help!
Guest - Kristian Falk Invisible Mouse Cursor Ubuntu & Synergy
September 1, 2015
Thank you for this! Had the exact same problem. I almost went crazy.

Popular Blogs

This is how to get rid of that popup appearing every time you create your own local extension in Chrome.Create a .bat file and name it `DevWarningPatch.bat`. Save this to the desktop.Add the contents ...
​If you're trying to use XAMPP on Windows and connect to a SQL server using PHP, hopefully the following will help.Firstly download XAMPP for Windows (32 bit). Follower the installer, default options....
If you are receiving this error while tryng to import a CSV file, make sure that the number of columns in your CSV matches that of your existing database table.I had an existing table with 10 col...