{"id":21601,"date":"2019-10-03T18:02:56","date_gmt":"2019-10-03T18:02:56","guid":{"rendered":"https:\/\/thatweb.dev\/?p=21601"},"modified":"2020-06-09T11:42:20","modified_gmt":"2020-06-09T11:42:20","slug":"copy-and-paste-fail","status":"publish","type":"post","link":"https:\/\/thatweb.dev\/blog\/copy-and-paste-fail\/","title":{"rendered":"Copy and paste fail"},"content":{"rendered":"<p>Yesterday I spent a good 7 hours finding code from a mothballed work project onto one of my personal Namecheap servers with the aim of having a working demo on this site.<\/p>\n<p>The last time I had accessed the code was about a year and a half ago and since the project was shelved internally the test database had been deleted.&nbsp; This presented an opportunity for me to move code from one area to another, rebuild a database and familiarise myself with Symfony.<\/p>\n<p>My plan was to use my home PC to edit the code but connect to the database on the Namecheap server via SSH. I was successful in setting up the MySQL database on the server, getting MySQL workbench to connect and read\/write to the database, everything was looking good.<\/p>\n<p>Then came my down fall, I installed PuTTY to connect via SSH, I followed the very helpful <a href=\"https:\/\/www.namecheap.com\/support\/knowledgebase\/article.aspx\/9428\/89\/how-to-connect-via-ssh-using-keys\" target=\"_blank\" rel=\"noopener noreferrer\">Namecheap guide on how connect via SSH using keys<\/a> every step of the way, copy and pasting keys, server credentials, port numbers etc.&nbsp; until I got to the console Window:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-21603\" src=\"https:\/\/thatweb.dev\/wp-content\/uploads\/2019\/10\/Putty-login-screen.jpg\" alt=\"\" width=\"733\" height=\"209\"><\/p>\n<p>As I had been successfully copy and pasting my way through the guide it was second nature to keep doing it as I was in the flow, I am familiar with terminals not indicating that you are putting in your password, such as GitHub in Visual Studio Code, so when I copy and pasted in my login and passphrase and nothing was appearing I assumed all was well.<\/p>\n<p>3 hours later and repeated creation of keys, copy and pasting in details and numerous forums and guides I was at a loss as to why it wasn&#8217;t working, until I accidentally it the keyboard when on console window.<\/p>\n<p>A wave of relief and realisation of my own stupidity hit me as to why it wasn&#8217;t working, all this time I hadn&#8217;t been putting in my login credentials and I assume that I wasn&#8217;t doing anything wrong.&nbsp; I wasn&#8217;t receiving any feedback from the system and coupled with my past experience with Visual Studio Code terminal, I assumed that I had made a mistake further up in the process.<\/p>\n<p>On reflection this is a good example of a user using a system in a way that probably wasn&#8217;t anticipated with no feedback that they weren&#8217;t putting in information that may prevent them from progressing.&nbsp; If there has been a text warning after I had hit enter informing me that I had left the field blank I would seen my error straight away.<\/p>\n<p>Tldr: Turns out using a short cut I that use everyday (CTRL+C &amp; CTRL+V) actually added 3 hours to my day.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I spent a good 7 hours finding code from a mothballed work project onto one of my personal Namecheap servers with the aim of having a working demo on this site. The last time I had accessed the code was about a year and a half ago and since the project was shelved internally [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21786,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[9,11],"tags":[10,12,13,14],"class_list":["post-21601","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-musings","category-pebkac","tag-mysql","tag-putty","tag-ssh","tag-symfony"],"_links":{"self":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts\/21601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/comments?post=21601"}],"version-history":[{"count":1,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts\/21601\/revisions"}],"predecessor-version":[{"id":21879,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts\/21601\/revisions\/21879"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/media\/21786"}],"wp:attachment":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/media?parent=21601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/categories?post=21601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/tags?post=21601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}