Wednesday, 18 June 2025

 Portecle 1.11


When you change the JDK you often copy the old cacerts to hold on to your company intern certificates. But sometimes you need also the certs, which are coming with the new JDK.

To export and import the company certs with the command line is sometimes a pain. With the tool Portecle this gets easy and smooth.



Thursday, 5 June 2025

Intellij: Use local module instead of maven dependency on JBoss

 Intellij 2025.1.1.1


Sometimes you want to use a dependency from your project workspace when running a server, in my case an old JBoss.

Unfortunately the JBoss does not get this right out of the box , so I made this change:

- right click on the JBoss in the Services tab

- Edit Configuration

- Deployment tab

- Edit artifact (in my case the ear:exploded)

- In the Output Layout mark the .war entry

- press the + element

- Choose Module Output

- Choose the module you want to be used


This way I got my JBoss running with the local module


Addendum:

Sometimes this stops working, unload and load seems to work most of the time to fix it




Monday, 12 May 2025

Intellij: Disable "Flip comparison" tipp for null checks

IntelliJ IDEA 2025.1.1.1 (Ultimate Edition)

Since a short amount of time IntelliJ wants me to change something like "x != null" to "null != x", because it likes the constant on the left side and null seems to be a constant for IntelliJ.

I really don't think this is something I should pay attention to and I wanted this new behavior gone in my IDE.

To disable this: Settings > Editor > Inspections > Java > Code style issues > Constant on wrong side of comparison




Friday, 18 April 2025

Installing Debian 12 on ASUS EeeBook X205TA

ASUS EeeBook X205TA
debian-12.10.0-i386-netinst
Rufus 4.7

After various attempts to install Linux at this hardware, mainly with this instruction: https://github.com/filirnd/x205ta, where I failed over and over again, I decided (after several months) to give this another try.

But this time with an 32 Bit Debian.

You will need 

- Rufus to create a bootable USB stick.
- Network during the installation process

Here my steps

- Disable Secure Boot in the Bios of the Asus

- Download debian-12.10.0-i386-netinst from https://www.debian.org/distrib/

- Use Rufus to create an USB stick (only important property was: Partition scheme to GPT)

- Install (it complains about 3 missing firmware files, I ignored)

- Fix audio with Terminal: sudo apt install firmware-intel-sound (found here: https://github.com/heikomat/linux/tree/cx2072x/cx2072x_fixes_and_manual)



For me this worked, hope it does also on your ASUS






Tuesday, 15 April 2025

Move a Git & Maven project as module to a parent project

Maven 3.9.9
Git 2.49.0.window.1

First go to the parent folder in Git Bash and add a git subtree:

git subtree add -P dir-name git-repo revision

dir-name:    name of the module
git-repo:      The git-url from the project you want to move. In Bitbucket you find this in repository settings. example: https://git.mycompany.com/git/scm/clients/mycompany-webservice-client.git
revision:      for me this was always HEAD

This adds the project to the parent project.

Next steps:
- in the module pom set the parent and delete the own version and maybe SCM tag
- in the parent add the module as module (and maybe as dependency with the project.version version, if you want to use the parent as bom (bill of materials))

Sources:
How to Move a Git Repository into a Sub-Folder of Another Repository



Thursday, 3 April 2025

Download folder from a website recursively with Cygwin/wget in Windows

 My goal was to download from a (internal) website a folder with all subfolders from a trusted source on Window 11.

So first I installed Cygwin from here: https://www.cygwin.com/
I forgot to add the wget package, but you can add it after the install with just run the setup again.

Then I run this command:

 wget -r -np -nH --cut-dirs=4 --no-check-certificate --user=myUser--password=myPassword https://mySite/dir1/dir2/dir3/dir4/dir5/



--cut-dirs tells wget where to begin

--no-check-certificate is not safe, but spares a lot of trouble to add the right certificates

-np = no parents, so we do not walk up

-r = recursive

The result was:

FINISHED --2025-04-03 12:27:51--

Total wall clock time: 19m 54s

Downloaded: 18872 files, 1.8G in 4m 50s (6.40 MB/s)