How to View Past Commands in Linux

Option 1 Just repeatedly click up-arrow and scroll through all the commands Option 2 The following will show you the past 500 commands in Bash.    Bash Terminal $ cat $HISTFILE   The path to the actual history file can be seen with the following...

Java 8 – Convert java.util.Date to java.time.LocalDate

Straightforward conversion of java.util.Date to java.time.LocalDate    Java java.util.Date d = new java.util.Date(); java.time.LocalDate localDate = d.toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); DateToLocalDate.java hosted on...

How to Set Up a Facebook Messenger Bot/App

Simplified Architecture Create a Facebook Page Create a Facebook Messenger App SCROLL DOWN…… SELECT EVERYTHING RELATING TO THE PAGE YOU CREATED Webhook must be listening and ready when you click Verify and Save. It must echo back the challenge as text that FB sends to...

Setup Git with Existing Python Project in PyCharm

Create a local python project. Add files to the project. You decide that you want to use a VCS. Menu – > VCS -> Import into VCS – > GIT -> Create GIT Repository. Right click on Project -> Git -> Commit directory. Go to GitLab / GitHub /...

Java Example of a Facebook Messenger Webhook Implementation

Java implementation of a Facebook Messenger Webhook. Note that it is a requirement to have an SSL certificate for the webhook. For development, I did not have a certificate, nor a public IP. I got around that by registering an account at NGROK and letting NGROK handle...

Java Inheritance Demo

A simple demonstration of which methods get called at which point when there are many levels of inheritance, some with overridden methods and others without overriding methods.  View the code on...

Java Collections.binarySearch(..)

How Collections.binarySearch(…) works. Useful method for finding an element or inserting an entry in the correct ordered position within a collection.  View the code on...

Pin It on Pinterest