Posts

Best Coding Editor

Image
By McDonald, T.   |  Date 11th of February 2021 Starting the 100 days of code challenge? New to coding? The first thing that you need to do is get a suitable coding editor or IDE. This will allow you to code and make it a much easier experience. For instance, a good editor will highlight any syntax errors and throw up exceptions that once you have learned what they mean will give you clues as to the mistakes in your code. In addition, you will need to compile some code, the IDE will do for you, in order to make it run. Exceptions are errors found in the code at either runtime, when you try to run the code, or by the complier when you compile the code. Notably, you will need to install some languages in order to start coding.  For example, if you want to code in Java, you will need to install Java on your computer. However, if you want to code something more server side like javaScript, you will not need to install a language called javaScript. Coding Languages that we th

Relational Databases

Image
By McDonald, T.   |  Date 5th of November 2020 Why use a database? Databases are a great way to store and retrieve data.   Since they are so widely used in computing, knowing how to use them is a must have skill in this industry.   For instance, many websites use databases to store product details.   One of the main benefits to databases is allows data to be organised, manipulated and retrieved rather than just storing it making it a very powerful tool.      Tables and keys First let’s look at the parts of the table  Customer_Table customer_id name address phone 1 Tony McDonald Some place 0788454567 2 A man 17 somewhere else 0793453459 3 A woman 45 who knows 0712311180   All relational databases have columns and rows.   Columns are vertical, so phone is the label of a column containing phone numb

Databases: SQL and NoSQL

Image
  By   McDonald, T.    | Date 20th of November 2020 What is a database? A database can be anything that stores collection of information and is often abbreviated to DB. A relational database stores information that is related in some way. For example, a shopping list is a relational database since it is a list of related information. Other examples include: Phone book. List of twitter users. Your families favourite foods. Now you have an idea of what a database is we can talk about where to store it. In the examples above, the phone book is a list of numbers and related information that can be stored in a book. The shopping list is stored on paper. We can also store these databases on a computer. Notably, the computer can be in your office or be a dedicated computer in a server room or even stored in a virtual machine in the cloud, which uses dedicated computers. Keeping it simple for now we can just think of a computer hosting the database. Now we have a place to store the d

Dynamic Tables in JavaScript

Image
  Problem I need a table that will expand and decrease in size as new items are added and or deleted. Restaurants Must be in JavaScript Solution HTML You will need to make a place holder in the html file using the table tags and give it an id <table id="myTable"></table> JavaScript Creating a button var btn = document.createElement("INPUT"); btn.setAttribute("type", "button"); btn.setAttribute("value", "x"); btn.setAttribute("onclick", "aFunction(this)"); Remember you will have to navigate using dot notation to where the aFunction(this) is if it is contained within an object or accessed by going through an object. Creating the table var table = document.getElementById("myTable"); var row = table.insertRow(-1); // -1 will add new rows to the bottom. var cell1 = row.insertCell(0); var cell2 = row.insertCell(1); var cell3 = row.insertCell(2); var

Objects, Dot and Bracket notation in JavaScript

Image
By McDonald, T.   | Date 14th of August 2020 If you want to be a coder, you will need to know about objects and how to interact with them. Have you been watching teach yourself videos and reading teach yourself blogs? Are you feeling a little bit lost with the jargon? I will show you that the jargon around objects in JavaScript is not as confusing as it first sounds. What is an object? An object can be thought of as a thing that can be represented in the real world such as a car or a shop. The car has attributes sometimes called properties, for example colour or model, and protocols sometimes called methods such as peddles or stirring wheel. The attributes describe the characteristic of the car while the protocols are how to interact with the car. You can have many objects and they can all have a different state. First let’s look at the structure of the object. Object creation: objectName = {}; The above creates an empty object. objectName = { objProperty_1 : “va

How to find the best WI-FI for MacOS X Catalina

Image
If you have any of the following problems when browsing or trying to watch something via the internet, it could be interference from other Wi-Fi connections from say your neighbour. Symptoms Wi-Fi dropping out Difficulty watching a live stream Slow internet surfing  slow buffering on video  Open Wireless Diagnostics Hold down the option key and click on the Wi-Fi icon in the bar across the top. Now select the ‘Open Wireless Diagnostics’ option.  Ignore the window that pops up and go straight for the menu bar at the top > window then select scan from the drop-down menu. In the window, you will see a panel with some stats and the best channel for you. Make a note of the channel and close the wireless diagnostics tool. Open your HomeHub device’s webpage Open your browser and enter the address of your HomeHub or router (If you don’t know the address you can use the IP address. You find it by opening System Preferences > network then copy the IP address ne