Alex Ivanov's Avatar

Alex Ivanov

@aivanov

Java Client Sustaining Engineer at Oracle. Views are my own.

52
Followers
34
Following
167
Posts
16.12.2023
Joined
Posts Following

Latest posts by Alex Ivanov @aivanov

Preview
Listing the Content of a Directory - Dev.java How to efficiently list and filter the content of a directory on a file system.

TIL about Files.newDirectoryStream and DirectoryStream, and the overload that supports globbing. Yet it didn't work out, I resorted to Files.list and then filtering the list. dev.java/learn/java-i... #java

13.02.2026 14:36 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

I noticed that it happens when the generated playlist ends and YTM needs to generate new entries… Then it duplicates the track that was last twice… or three times.

13.02.2026 14:20 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Why does Iterable<T> not provide stream() and parallelStream() methods? I am wondering why the Iterable interface does not provide the stream() and parallelStream() methods. Consider the following class: public class Hand implements Iterable&lt;Card&gt; { private ...

The next answer by @BrianGoetz explains why there's no stream() method in Iterable.
Answer: Why does Iterable<T> not provide stream() and parallelStream() methods? stackoverflow.com/a/23177907/5...

13.02.2026 14:18 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Convert Iterable to Stream using Java 8 JDK I have an interface which returns java.lang.Iterable&lt;T&gt;. I would like to manipulate that result using the Java 8 Stream API. However Iterable can't "stream". Any idea how to use the Iterab...

Answer: Convert Iterable to Stream using Java 8 JDK stackoverflow.com/a/23936723/5... #java #stackoverflow

13.02.2026 14:13 πŸ‘ 1 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

I haven't even looked at #AdventOfCode this year.

26.12.2025 18:10 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I post rarely here…

07.11.2025 17:41 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I don't see anything to dislike here. What the Bluesky team describes looks reasonable to me.

07.11.2025 17:14 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Had this problem yesterday… then a video suddenly started playing after a few minutes when I was in another tab.

16.10.2025 10:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
4-panel comic. (1) [person finds bottle on shore] (2) [person reads message from inside bottle: ICMP ECHO REQUEST...] (3) [person writes on message ICMP ECHO REPLY...] (4) [person puts bottle back in water and leaves]

4-panel comic. (1) [person finds bottle on shore] (2) [person reads message from inside bottle: ICMP ECHO REQUEST...] (3) [person writes on message ICMP ECHO REPLY...] (4) [person puts bottle back in water and leaves]

Ping

xkcd.com/3150/

07.10.2025 02:24 πŸ‘ 2361 πŸ” 254 πŸ’¬ 28 πŸ“Œ 9

Why does Windows 10 and rarer 11 add languages to keyboard layout switcher? It often adds English US and English UK, so that I have three English in the list. These phantom languages aren't in the Settings app. To remove them from the list, I have to add them first.

12.09.2025 18:22 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Ah, you don't say!

05.09.2025 11:04 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

On the other hand, as soon as the script grows more than a few tens of lines, a C program would likely be more robust solution.

04.09.2025 22:37 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Often, it's quicker to write a shell script than a similar C program, which is a bonus, especially if you need to solve this problem once.

04.09.2025 22:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

I'm afraid I'm not the person you're looking for.

18.08.2025 13:04 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Water is boiling now.

24.06.2025 21:26 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Awesome! πŸ‘ I haven't used it myself yet.
Your description matched the problem: avoid writing JNI code to access native libraries, so I suggested using it. I understand it may not fit well into your specific case, though.

15.06.2025 18:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Core Libraries The Foreign Function and Memory (FFM) API enables Java programs to interoperate with code and data outside the Java runtime. This API enables Java programs to call native libraries and process native ...

Has the time come to try Java FFM (Foreign Function and Memory) API? docs.oracle.com/en/java/java...

13.06.2025 10:49 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

What an interesting case… ImageIcon.getNextID will overflow mediaTrackerID. bugs.openjdk.org/browse/JDK-8... Yet, apparently, it causes no issues whatsoever. github.com/openjdk/jdk/... #openjdk #java

13.06.2025 10:32 πŸ‘ 2 πŸ” 1 πŸ’¬ 2 πŸ“Œ 0

That's unfortunate. Sorry to hear this…
It looks more and more people abandon social media platforms.

13.06.2025 10:27 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

It's always this long.

31.05.2025 16:20 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Developer Ecosystem Survey 2025 Take our survey, shape the future, and seize the chance to win a MacBook Pro or other rewards!

JetBrains Developer Ecosystem Survey 2025 surveys.jetbrains.com/s3/developer...

28.05.2025 11:39 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
8355515: Clarify the purpose of forcePass() and forceFail() methods by manukumarvs Β· Pull Request #25091 Β· openjdk/jdk Clarified the purpose of forcePass() and forceFail() methods and recommended usage of these methods. forcePass() contained an incorrect sample; it&#39;s addressed by JDK-8355441. The description of...

Thanks to github.com/openjdk/jdk/..., PassFailJFrame documentation now has a section dedicated to its forcePass() and forceFail() methods. #openjdk

20.05.2025 12:11 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Still, it's cosier with curtains.
Yet… you'll have to get wider curtains.

20.05.2025 12:08 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

All languages are confusing. Maybe, English is less confusing than others.

18.05.2025 20:58 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Thank you. This helps.
The descriptions of the methods used β€œforcibly”, but when I was writing another description I used β€œforcefully” for whatever reason. So, I looked up both words in dictionaries, and I concluded β€œforcibly” fits. Yet I still had doubts.

17.05.2025 18:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Me in an orange and black singlet with bib number 476 on my chest and in maroon shorts. I stand in front of Irish Runner Series panel, and I wave my right hand.
Distance: 5 km; time: 22:15; pace: 4:25/km.

Me in an orange and black singlet with bib number 476 on my chest and in maroon shorts. I stand in front of Irish Runner Series panel, and I wave my right hand. Distance: 5 km; time: 22:15; pace: 4:25/km.

I set a new PB in Irish Runner 5K, it's now 22:12. I'm delighted. Hard training pays off.

17.05.2025 18:41 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I started to wonder which adverb suits better: β€˜forcibly pass/fail a test’ or β€˜forcefully…’ Does any native English speaker have an opinion?

16.05.2025 12:52 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
β€œSilver” medal for half marathon at Regeneron Great Limerick Run 2025

β€œSilver” medal for half marathon at Regeneron Great Limerick Run 2025

Yesterday I ran half marathon at Great Limerick Run, I ran it in 1:44:16. It's a new PB! ☺️ So happy! πŸƒβ€β™‚οΈ

05.05.2025 22:35 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
In Loving Memory of Square Checkbox History of checkboxes and radio buttons in user interfaces

Today I've got a chance to reference β€œIn Loving Memory of Square Checkbox”. tonsky.me/blog/checkbox/

25.03.2025 17:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

What a great reimagining of Savage Garden's classic song.

10.03.2025 15:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0