-
Continue reading →: Returning Values From Methods (Java)As my Java adventure continues I look today at returning values from methods. So far the methods I have discussed have completed a task but have not returned any values to the main method. The previous methods have been defined as: public static void methodName(){ method } I’ve put the…
-
Continue reading →: Installing IntelliJ IDE On Raspberry Pi (Java / Raspberry Pi)With my adventures looking at Java I have also been using a different IDE (Integrated Development Environment) called IntelliJ on my Macbook. However I also want to look at using Java on my Raspberry Pi. The Raspbian OS (Stretch) comes with a Java IDE called BlueJ, which is designed around Java…
-
Continue reading →: Variables / Travel Planner (Java)I am continuing on my Java adventure and taking a brief look at variables within Java before tackling my first Java assignment (creating a planning assistant). Declaring Variables Variables in Java must be defined by their type: int for integer (whole numbers) e.g. -5, 5, 100000, 0 double for decimal…
-
Continue reading →: Methods (Java)Continuing on with my learnings about Java , today I am discussing methods. Within the public class there is a main method, which can then be used to call on other methods. The other methods can be named and defined in any order and then called by the main method in…
-
Continue reading →: Java Basics / Hello World In Java (Java)Way back in October 2016 I completed an introduction to Java course via MadLab, and other than dipping into Java whilst looking at Android development I have not really looked at the Java language. However in recent times I’ve been dabbling with C, and that got me thinking about Java again.…
-
Continue reading →: Creating A Port Scanner (Python / Raspberry Pi)Today I am having a quick play with the socket library in Python, and using it on my Rasperry Pi as a port scanner to check for vulnerabilities on devices connected to my home network. Yes, I know there are other tools available (such as nmap) that can do this…
-
Continue reading →: Securing Apache Tomcat (Raspberry Pi)With the Raspberry Pi running Apache Tomcat it is time to secure it. HTTP (non-secure) traffic may be okay for a closed home/test environment but for a work/production environment HTTPS (secure) should be used. To show how to turn HTTPS on for Tomcat I will be using a self-signed certificate. If…
-
Continue reading →: Installing Apache Tomcat / Jenkins (Raspberry Pi)Previously I have looked at Flask (Python) and Django (Python) web servers running on the Raspberry Pi. Today I am going to look at Apache Tomcat, a web server which is more geared towards running Java based applications. I’m currently looking at Java and so will be using the JDK…
-
Continue reading →: Check For A File And Then Move It (Python)Imagine that you have a folder that you periodically check for a file (i.e. a network share where colleagues drop a file throughout the day) and when the file exists you have to move it and log when it was moved. I’m looking to tackle this today using Python. I’ve…
-
Continue reading →: Web Scraping: More Selenium & Ways To Interact With Websites (Python)Yesterday I introduced Selenium to my web scraping fun, see here: https://geektechstuff.com/2019/05/07/web-scraping-introducing-selenium-python/ if you missed it. Today I am going to use Selenium to interact with a website by: Opening a webpage Logging in Retrieving information from the page As much as I’ve enjoyed using Wikipedia in my previous examples…


