Something is stealing and stockpiling my shoes, socks, sandals ... and also chewing on my couch cushions ... what could it be ? A giant RAT ?? A Kangaroo ?? A Koala ?? A Drop Bear ?? Join me as we try and discover what on earth is going on.
Explore Java's built-in **PriorityQueue** class.
Create a **Task** list for tasks with various priorities and add them to a PriorityQueue and iterate through them and display them to the screen in order from highest priority to lowest priority.
Also switch how the priority works:
* Initially low numbers = high priority.
* However, I show a simple way to reverse this and make high numbers = high priority.
TODO / activities for students - see my Github link below.
Source code here on my Githib:
https://github.com/MooseValley/Queue-Priority-Queue
Moose's Software Valley - Established July, 1996.
https://rebrand.ly/MoosesSoftware
...
https://www.youtube.com/watch?v=HpGxwL_AtJc
Java, JavaFX, NetBeans, and Scene Builder.
In this video I show you how to fix this error:
"error: incompatible types: ObservableList(String) cannot be converted to ObservableList(CAP#1) (gui component details) where CAP#1 is a fresh type-variable ..."
Note: angle brackets are not allowed in video title, description, or tags, so I had to replace angled brackets with round brackets ().
My Github where you can find the source code for this video:
* Error - Incompatible Types - cannot be converted to ObservableList CAP 1: https://github.com/MooseValley/JavaFX-NetBeans-SceneBuilder---Error---Incompatible-Types---cannot-be-converted-to-ObservableList-.git
List of all Tutorial Videos and Github Repos for the Java, JavaFX, NetBeans, SceneBuilder:
* https://github.com/MooseValley/JavaFX-NetBeans-SceneBuilder---00---List-of-all-Videos-and-Github-Repos
FREE Software used in this video:
* Java Development Kit JDK 8u111 (v1.8.111) and NetBeans IDE 8.2 (Build 201705191307): https://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-3413139-esa.html
* JavaFX Scene Builder 8.5.0 for Java 8: https://gluonhq.com/products/scene-builder/
My LBRY Java, JavaFX, NetBeans, SceneBuilder playlist:
* https://odysee.com/@MoosesValley:0/JavaFX:4
* lbry://@MoosesValley#0/JavaFX#4
My LBRY channels, web page, github, etc:
* https://odysee.com/@MooseSoftware:7/MooseSoftware:6
* lbry://@MooseSoftware#7/MooseSoftware#6
My Java Software Development Tutorial Videos YouTube channel:
* http://tinyurl.com/MikesJavaVideos
Moose OMalley
* Moose's Software Valley - Established July, 1996,
* https://moosevalley.github.io/
At the end of Feb-2021, approx 4.1 billion shares (totalling $36.7 billion at closing price) were "Fails to Deliver" (FTD). i.e. shares have been traded but the buyer or the seller did NOT or could NOT complete the transaction and meet their obligations. Should we be worried by this ? Is another "Financial Crisis" looming ? Why aren't mainstream media talking about this ???
Note:
* $36.7 billion is a huge amount of money for an average person (like me). But it is NOT a huge amount of money for the US or global markets. It is definitely not time to panic ... yet. The 2007-2008 Global Financial Crisis led to a loss of more than $2 trillion from the global economy. But if this "Fails to Deliver" situation gets a lot worse - exponentially worse - then people and politicians and the SEC should become really concerned !
And, as I discuss in the video, please note this information from the SEC web site:
* "Please note that fails-to-deliver can occur for a number of reasons on both long and short sales. Therefore, fails-to-deliver are not necessarily the result of short selling, and are not evidence of abusive short selling or "naked" short selling." https://www.sec.gov/data/foiadocsfailsdatahtm
What do you think ? Comment below. :)
Useful links / suggested reading:
* SEC.gov | Fails-to-Deliver Data, https://www.sec.gov/data/foiadocsfailsdatahtm
* Failure To Deliver, by Gordon Scott, CMT, updated Aug 2, 2019, https://www.investopedia.com/terms/f/failuretodeliver.asp
My LBRY channels, web page, github, etc:
* https://odysee.com/@MooseSoftware:7/MooseSoftware:6
Hank is a beautiful, gentle, friendly doggie with sometimes sad, and often mischevious, eyes. One of his traits is that he watches the other doggies eat and just lays there looking at his food until the other doggies have eaten, and then he eats his food. In this video, all of the doggies (Saminal, Frankie, and Hank) have already eaten their own plates of Hot Chips, but Hank, as usual, just lay there looking at his until long after the other doggies had finished, and then *finally* he decided to eat his hot chips. As usual, he makes the plate nice and clean - no need to wash it up, Murray can use it "as is" for his dinner. :)
...
https://www.youtube.com/watch?v=pWyIDXattTk
A recording of me developing a simple Stack manipulation program to reverse the order of words in a line of text - see question below.
Question:
Print a Sentence in Reverse Using a Stack:
write a program that inputs a line of text and uses a
stack to display the words of the line in reverse order.
Moose's Software Valley - Established July, 1996.
https://rebrand.ly/MoosesSoftware
...
https://www.youtube.com/watch?v=EON8a1wduQE
A recording of me building a Student GUI that stores Student objects in a LinkedList and allows the user to Add students, Delete students, Display All students, and Exit. See question below. Uses Java's built in LinkedList class.
Source code is here:
https://github.com/MooseValley/LinkedLists-Students-GUI-Add-Delete-Display
User input is handled via GUI components (textfields) - which is *much* better than using input dialogs.
Q1. Linked Lists – using Java's built in LinkedList
1. Write a Java class named StudentEmail that has data members for the name and number of a student. The class should have a constructor and appropriate accessor and mutator methods. In addition, the toString method should include the output information with student name, student number and the corresponding e-mail address. The e-mail address is a string with the student number and @my.email (such as s123@my.email). Then you write a program that creates a GUI with two labelled text fields, each one for name and student number, a text area to display the information, and four buttons:
• Add: when the user enters data into the text fields and clicks the ‘add’ button, a StudentEmail object is created and stored in a LinkedList, and in then the student name, number and e-mail is displayed on the text area.
• Delete: If you want to delete a student e-mail entry, you can enter the student name in the text field and press the ‘delete’ button. If the entered student name doesn’t match any name in the LinkedList, a dialog message box will pop up to indicate this.
• Display All: Clicking ‘display all’ button will display all data (StudentEmail object) that are stored in the linkedlist.
• Exit: Pressing ‘exit’ button will allow users to exit the program.
Source code is here:
https://github.com/MooseValley/LinkedLists-Students-GUI-Add-Delete-Display
If you'd like to learn more about Linked Lists, see my 2 part special:
* LinkedList - From Scratch - Part 1 of 2:
https://youtu.be/BuntNoC8Cq0
* LinkedList - From Scratch - Part 2 of 2 here:
https://youtu.be/WdXKpOIEzoo
Moose's Software Valley - Established July, 1996.
https://rebrand.ly/MoosesSoftware
...
https://www.youtube.com/watch?v=0KdG9DZgi6I
Sound Effects SoundBoard is a collection of buttons that play specific sounds, and buttons that play random sounds or stop all sounds playing. The sounds included are all FREE, public domain sounds. My friends and I havee had a lot of fun with these sounds, so maybe others will find them funny, useful, or interesting at work, at home, and with friends.
This software will run on ANY operating system that is capable of running the JVM, including desktops, laptops, and tablets running Windows, Linux, Unix, etc, such as PCs, Macs, Raspberry PI, etc.
This program is free software. Anyone - any person, any company, or any business - can use this program for free. No fees or payment is required.
See my web page for further information:
* Moose's Software Valley - Established July, 1996.
https://rebrand.ly/MoosesSoftware
...
https://www.youtube.com/watch?v=zgMNV3npj04
Build Your Own Software with Moose
Season 02: Password Generator
Episode 03: Improvements
Complexity: 1/10 (Very easy)
Everyone who uses the internet should have a safe, reliable Password Generator.
In this video, I continue work on the Password Generator:
* Made all password setting checkboxes checked by default.
* Copy to Clipboard works
* Fixed the password generation.
Topics covered:
* Building Java Windowed GUI Desktop Application
* Basic GUI Development: labels, buttons, panels, layout managers
* Random numbers
* No Maven, No Gradle, No 3rd party libraries
* All code developed will work with Netbeans, Eclipse, Visual Studio Code, or any other Java IDE.
* Keep it as simple as possible
Who is this tutorial for:
* Anyone learning Java programming
* Anyone who want to have their own Password Generator and not rely on potentially dubious web sites or potentially dodgy software.
* Anyone who has done some other programming that wants to learn Java
* Anyone who is having trouble sleeping ... :) :) :)
Software Requirements:
* Simple text editor (I am using TextPad, but my code is 100% compatible with Eclipse, etc)
* Java Development Kit - JDK
* See my video "Installing Java SDK and TextPad" for what to install and how to get going: https://youtu.be/-pdHMIaIHFM
Notes:
* I'll take things slowly and explain what I am doing and why at every step.
* Lots of Compile / Test / Run's ...
* All of my code - including the code as it stands at the end of every episode will be on my Github (link in description)
Sound interesting ? Want to join in ? What you should do:
* Type in the code yourself as I write it, compile and test it when I do.
* If I change or move any of my code, make the same changes to yours.
* Keep everything the same as me - same comments, same names, etc - so if ever you come across an error you cannot fix, it is very easy to compare your code to mine.
* Subscribe to my channel
* Upvote / Comment
Target Platforms:
* Basic GUI application
* Windows,
Here's a mosaic that I created today (23-Jun-2020) from a photo of Jeremy Kaufman, CEO of LBRY, using my Mosaic Maker Extractor (Freeware, see my web site).
This mosaic is made from 1,262 unique LBRY user channel images (each used many times in the mosaic) that I spent many hours hunting for, filtering, and collecting. I wanted a good mixture of male, female, black, white, cartoon, logo, etc. When I had enough tiles, I shrunk each down to 40x40 pixels in size for the mosaic. It took my Mosaic Maker software 8 min and 13 sec on a fast Core i7 laptop to create this mosaic.
This mosaic symbolises that Jeremy's creation, his blood, sweat, and tears have built the LBRY platform, and our work, our content, and our blood, sweat, and tears, are now part of LBRY and therefore in a sense part of Jeremy.
If you download and zoom in on the mosaic, you might find your chanel icon here ... Expect it to be colour changed to make it fit the average colour of the part of the image it replaced. If your channel image appears, then I have visited your channel, viewed some of your content, and could be following you. :) Can you find your channel's image in the mosaic ?
Will post a list of the channel names for the images I collected later if people want ?
I have generated other mosaics of Jeremy - a cool half man half-mosaic and others - that I have not been uploaded yet (but will do if people want).
Mosaics - How to Create Your Own Mosaics of Photos, Images, icons, etc - Live Demo:
* https://lbry.tv/@MoosesValley:0/mosaics-how-to-create-your-own-mosaics:9
My LBRY channels, web page, github, etc:
* https://lbry.tv/@MooseSoftware:7/MooseSoftware:6