I needed to convert some Unicode UTF16-BE strings (as used in Java) to UTF-8 (which is “byte-orientated” and so doesn’t need to worry about endianness) – however, there didn’t seem to many examples online. I’m not going to say these methods are robust, 100% accurate for every use case or even the best way to do it – but just ways to do it.
It’s worth noting that Java uses the escape sequence \uXXXX (where X is a hexadecimal code), and PHP uses the nearly similar escape sequence \u{XXXX} . Both seem to use \xXX for a single character.
Whilst I’m not quite managing to watch a film a week (my wife has been ill with, of all things, Kennel Cough – caught from one of our dog’s inoculations!), I have managed to finish watching Superman (2025) – you know the one with Nathan Fillion as Green Lantern/Guy Gardner, Alan Tudyk as Four/Gary, Bradley Cooper as Jor-El, Pom Klementieff as Five, and Sean Gunn as Maxwell Lord: surprisingly it was directed by James Gunn who did Guardians of the Galaxy. I wonder if he has any favourite actors… Oh, it also has David Corenswet as Superman and Nicholas Hoult as Luther.
Casting wise – I think they’ve got Jimmy Olson (Skyler Gisondo) spot on: Lex Luthor (played by 36 year old Nicholas Hoult) is too young and doesn’t quite have the gravitas for Luthor – he’s got the “Modern Doctor Who Master” villain issue of “make him over-excited/manic”: I can’t see how Luthor would have acquired all the funds and technology necessary with that sort of attitude (and age: even if he inherited a large portion). David Corenswet as Superman is okay – they’ve definitely gone for the Christopher Reeves look and feel for him (hair curl, shorts and even the classic theme) and Maria Gabriela de Faria as “The Engineer” (a nano-tech metahuman) has got the semi-mechnanicalish movement, but didn’t quite have the acting ability.
Title screen of The Naked Gun with the hilarious “error”where they ran out of screen space.
Looking for a film to watch for my (quite possibly short-lived) New Year’s resolution of watching at least one film a week, I stumbled upon the 2025 The Naked Gun with Liam Neeson and Pamela Anderson.
Whilst it is a continuation/sequel to the Leslie Neilsen movies, I can’t say the humour was there – I don’t think I laughed once. I did spend quite a lot of the movie thinking “Who is the actor playing Sig Gustafson” (answer: Kevin Durand – who played Vasiliy Fet in the excellent TV series “The Strain“), I didn’t recognise Pamela Anderson at all (despite being a young teen in the 80s/90s when Baywatch/Barbed Wire was available: neither really interested me, but the she was plastered everyway) and did have a bit of a smile when Weird Al’s customary Naked Gun cameo was made and a little smile when Dave Bautista made his small cameo – but that was about it.
I recently had to help somebody with a Windows 10 based application which offered a “connection” facility (i.e. enter your computer’s IP address and port and the 3rd party system would connect to it), but the application failed to say which port(s) it had open.
Whilst there are a number of ways to view open ports – such as Microsoft’s Sysinternal’s TCPView and NirSoft’s CurrPorts – I wanted to suggest a way which neither required an additional piece of software to be installed and didn’t require administrator access.
Here are the steps to find out what ports application “AppName” has open: