Having a JPA entity (e.g. CompanyAddress) with a somewhat strange primary key setup, where the primary key is also just a foreign key for another table (e.g. Company) with the naive setup of the ID field: @Id @ManyToOne() @JoinColumn(name = “COMPANY_ID”) private Company company; and then creating a Spring Repository for the entity, I got Continue Reading
No CEST with JDBC
The server time zone value ‘CEST’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. For some reason. I mean, yes, I’m in the “Central Continue Reading
xkcd password generator
xkcd is right that we use passwords which are hard to remember, but easy to crack with computers. Recently my oldest password (the master password for my KeePass file) got compromised, so I suddenly got interested in generating a password that is hard enough, but not easy to remember. I could use some online services Continue Reading
Looking up my project’s changes
Trying to find changes since the release in specific files (.sql and .properties files): git diff –name-only release/x.x.x.x develop | grep -P “\.(sql|properties)” Which lists all the files (just the name, not the content) which changed between the two versions provided, then filters it if it either contains .sql or .properties. Trying to find new Continue Reading
MyFaces component not found
So if I have this nice exception on WebSphere 9 with JSF 1.2 (yes, WebSphere 9 uses JSF 2) and MyFaces 1.8 (I guess): looking for a component that is referenced even though it’s not on the same page, it’s because f:subview requires an id attribute, and even though it was working without it well Continue Reading
AngularJS formatter/parser is (not) type sensitive
I have a small AngularJS (1.x) directive so my input field does not show the value the is in the model, but formats it before (and parses the user input from the input field’s format): This does not seem to work, the fields always get empty, even though that debugging shows that the conversions are Continue Reading
Bitbucket pipeline dependency
My Bitbucket pipeline failed with the error message: Apparently the Ruby Docker image is based on Debian, so I can just add to my bitbucket-pipelines.yml file.
A program with an incorrect format
Server Error in ‘/Web.Api’ Application. Could not load file or assembly ‘Oracle.ManagedDataAccessDTC’ or one of its dependencies. An attempt was made to load a program with an incorrect format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where Continue Reading
Cherry-picking changes from a file to a different file
I have a file. I have another file on a different path on a different branch with mostly the same content. I have changes in my first file. I want to move these changes to my second file. The files have the same name, only the path differs. (I also need to ignore changes in Continue Reading
Removing annoying Cisco Jabber thingy
Cisco Jabber 11.7 on Windows 10. It has a small, somewhat hidden grey bar at the top of my screen, that shows some buttons and a search field if I put the mouse over it. I didn’t know the name of it, and it’s a bit hard to find a solution for removing it without Continue Reading