Michael Billiot

Greenhorn
+ Follow
since Sep 22, 2017
Michael likes ...
IBM DB2 Netbeans IDE Chrome Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
8
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Billiot



Might be beating a dead horse, as this seems to be similar to some of the code above.
Eliminated a couple of lines, at the expense of readability using ternary statements.
Try uncommenting line 7 as it will print out duplicate "click again" statements for each (really I just wanted to see what happens when you turn off increment flag).

Ahh,  a day late and a dollar short. LOL
1 year ago
You could spin up Linux VM in your cloud environment and use those. I used Google Compute Engine API, seemed to work ok. Think I have 3 or so VM's running at the time.
1 year ago
For a Linux environment I use Oracle VirtualBox, https://www.virtualbox.org/, download an ISO of Ubuntu and create a virtual machine.
For the cloud part you should be able to use any of the big 3 for free (Azure, AWS, Google Cloud). I used Google Cloud for my project.
Docker is easy to use for containerization.
I used Jenkins for CI-CD.

Hope this helps.
1 year ago
Don, I think you are correct, you need the TApplication which will contain the TWindow which contains the TTreeViewWidget.
Similar to below...

1 year ago
example...

5 years ago

nextInt() only reads in until it's found the int and then stops.
You have to do nextLine() because the input stream still has a newline character and possibly other non-int data on the line.
Calling nextLine() reads in whatever data is left, including the enter the user pressed between entering an int and entering a String.

https://stackoverflow.com/questions/2444343/problem-with-java-scanner-sc-nextline
5 years ago
During install of Netbeans you will have an option to install tomcat if you download the Java EE version, below is from the Netbeans website...

Installer Download Options
On the NetBeans IDE Download page, you can obtain one of several installers, each of which contains the base IDE and additional tools.

The following installers are available:

Java SE. Supports all standard Java SE development features as well as support for NetBeans Platform development and JavaFX 2.2 SDK (or newer) or JavaFX 8 SDK.
Java EE. Provides tools for developing Java SE and Java EE applications as well as support for NetBeans Platform development and JavaFX 2.2 SDK (or newer) or JavaFX 8 SDK. This download option also includes GlassFish Server Open Source Edition 4.1.1, and Apache Tomcat 8.0.27 software.
HTML5/JavaScript. Provides tools for HTML5/Javascript development. Includes Java Runtime Environment and does not require a separate Java installation.
PHP. Provides tools for PHP 7 development, Zend and Symfony Framework support. Includes Java Runtime Environment and does not require a separate Java installation.
C/C++. Supports development in the C, C++, Qt, Fortran and Assembly languages. Includes Java Runtime Environment and does not require a separate Java installation.
All. This is a full download option, which contains all the runtimes and technologies available for the NetBeans IDE.

5 years ago
Congratulations!!!

Wish you nothing but the best!!

Work hard and keep learning!!
5 years ago
Sandor,

I have used Apache PDFBox successfully creating and editing PDF files.
https://pdfbox.apache.org/


Below is a quick hack where I demonstrate how to read a text file and create a pdf file of that text file.

5 years ago
If you can show the code where you are having the problem that would be great.

Looking at your parameter value, I only see one single quote...

"#?ORG_ID='||ORG_ID"

Is this a typo? Seems like there should be two single quotes.

Sorry, I'm not very familiar with MyBatis so I might not be much help.
Monica,

I like drawing out my ideas using a stylus on my Surface Pro tablet computer and OneNote, from there I can save, edit, email and print.

Took two semesters of Calculus notes (probable 50 pages of notes all together) using the Surface Pro and OneNote, it was way better than a spiral notebook.

Just some though if you have a similar laptop or tablet computer that you can drawn upon.



I was thinking, maybe your sql statement is not correct.

Usually you would write something like this for an sql statement...

SELECT <SOME COLUMN NAME> AS ID WHERE ORG_ID = <SOME VALUE>

So for example...

SELECT DRIVER_LICENSE AS ID WHERE ORG_ID = COLORADO

Of course the database would have a DRIVER_LICENSE and ORG_ID columns.

Your sql, just by the looks of it seems to be off, I'm reading it as...

SELECT #?ORG_ID='||ORG_ID AS ID

This would indicate to me you have a column in your database named #?ORG_ID='||ORG_ID

Just some ideas, I could be way off.

Looking at the Java source code below for DataInputStream.skipBytes(int n), when skipBytes(int n) is called it actually calls the skip(long n) method of InputStream.
You will notice in the source code that when in.skip is called it is cast down to an int.

Rob is correct in that must implement the method due to implementing DataInput.

If you skip more bytes than an int can handle you would not be able to use skipBytes, you would need to use skip.
Otherwise if you need a long returned you would use skip, if you need an int returned you would use skipBytes.

5 years ago
Jeanne,

This was a fun exercise and very challenging. Below is what I came up with. I don't know if it is much more elegant but I finally got it to output what you were looking for.
Hopefully it would be some use to you.

The BiFunction (mergeList) at the beginning of the method is used to merge the lists if there is a duplicate key.

5 years ago
"You should be able to get a String of length Integer.MAX_VALUE (always 2147483647 (231 - 1) by the Java specification, the maximum size of an array, which the String class uses for internal storage)."

StackOverflow

Another limiting factor might be the size of the email you are sending as most providers limit the size of email messages.
On the client side (Outlook) I remember it being a real pain when I would get a very large email.
5 years ago