Content Security Policy blocking a blob resource

I have a page with extensive use of a fairly old JavaScript library, that does not load properly in Firefox and I only get the error message: This is strange, because the page does not contain this resource (it must be loaded dynamically). Also, the content security policy set in the header supposedly allows this …

@IdClass required for a @ManyToOne column

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 …

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 …

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 …

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 …

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 …

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 …

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 …