Labels

Android (1) Apache (1) bash (2) boost (2) C (37) C++ (5) cheatsheet (2) CLion (6) css (3) Debian (35) DL (17) dns (1) Docker (3) Dreamweaver (2) Eclipse (3) fail2ban (5) git (6) GitHub (5) Hacking (4) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (34) javascript (3) Linux (186) Mac (22) Machine Learning (1) mySQL (54) Netbeans (7) Networking (1) Nexus (1) OpenVMS (6) Oracle (5) Pandas (3) php (17) Postgresql (8) Python (9) raid (1) RedHat (15) Samba (3) Slackware (54) SQL (14) ssh (1) svn (1) tar (1) ThinkPad (1) Virtualbox (4) Visual Basic (2) Visual Studio (1) Windows (8) wire (1)

Saturday, 6 June 2020

How to add Eclipse software repository to RedHat Core Ready Studio

RedHat Code Ready Studio is just a customised Eclipse but there may be reasons for wishing to use this as opposed to Eclipse itself, which as it happens can also have the RedHat stuff added to, termed "Bring your won Eclipse":

https://access.redhat.com/documentation/en-us/red_hat_codeready_studio/12.12/html/installation_guide/assembly_installing-devstudio-in-eclipse

Thursday, 4 June 2020

How to boot into macOS Recovery and optionally erase the disk

The following can be used to reboot into recovery;


Command (⌘) + R
Reinstall the latest macOS that was installed on your Mac (recommended).

Option + ⌘ + R
Upgrade to the latest macOS that is compatible with your Mac.

Shift + Option + Command (⌘) +  R
Reinstall the macOS that came with your Mac, or the closest version still available.

To optionally erase the disk;


Choose View > Show All Devices and then choose the top drive, the system drive and choose erase.
Note: Its worth copying the drive name as we can use it to name the newly formatted drive, if that's your thing.

Reference here and here for recover options.

Wednesday, 3 June 2020

SCS upgrade to support usb mouse and keyboard.

This document is/was written retrospectively and exists to document the changes made to the SCS Linux computer during the upgrade to support USB keyboard and mouse. This was successfully tested in Glasgow and at the time of writing, will can be rolled out to all other depots.


1- BACKGROUND.

1b- NOTES AND FILES.


2- PROCEDURE TO UPGRADE SCS USING CONFIGURED KERNEL (HEISENBERG).


3- STEPS TO SWITCH FROM PS2 TO USB.


4- STEPS TO SWITCH FROM USB TO PS2.


5- PROCEDURE TO REVERSE UPGRADE.


6- PROCEDURE TO CREATE HEISENBERG KERNEL.


7- LINKS.


LAST UPDATED: 29 July 2020

Tuesday, 2 June 2020

Some quick comparisons between black and while box testing.

Black Box Testing:


  1. Requires No knowledge of the internal structure of program or application.
  2. Requires No programming knowledge required.
  3. The main goal is to test the behaviour of the software or application.
  4. Focused on the external or end-user perspective.
  5. Generally provide less detailed reports.
  6. Not time consuming.

White Box Testing:


  1. Requires knowledge of the internal structure of program.
  2. Requires programming knowledge.
  3. The main goal to test the internal operations of the system.
  4. Focused on code itself, its structure, conditions, paths and branches.
  5. Generally provide the most detailed reports.
  6. Extremely time consuming.

Sunday, 31 May 2020

Find files in Linux

Basic use of the find command in Linux

To find a file named my file.txt anywhere;
find / -name "myfile.txt"

To find a file named my file.txt in the current directory;
find . -name myfile.txt

To find all files in the current directory;
find . -name *.txt

To find all jpg files in /home/plisken;
find /home/plisken -name *.jpg

To search the contents of files in current directory;
find . -type f -exec grep "keyword" '{}' \; -print

To search the contents of files recursively from the current directory;
grep -r "keyword" .

Tuesday, 26 May 2020

Add to the shell PATH in MacOS

The following will add to the shell path in MacOS;

Open .bath_profile
(Don't forget [SHIFT + CMD + .] toggles displaying of hidden filed in finder.)

To ad a folder such as /Users/plisken/connectiq/bin we would add the following line to the end of .bash_profile;

export PATH="/Users/plisken/connectiq/bin:$PATH"

OR

export PATH=$PATH:/Users/plisken/connectiq/bin

and of course we can check the current $PATH by doing echo $PATH

Relaunching the terminal may be required...


Saturday, 16 May 2020

PHP variables and scope

In php variables have scope (don't all languages)...

A variable declared outside of a function will not be available inside of a function, unless be declare it inside the function with the global command.

Wednesday, 13 May 2020

Sync data from Fitbit to the Apple Health app.

What follows is a documented account on how to achieve reliable synching of data between the Fitbit and the Apple Health app.

A step by step of this project, how it came about, progress, problems and solutions along the way can be found here

Tuesday, 12 May 2020

IRC revisited

See here and here for nick registration instructions for Freenode and Dalnet respectively.