Homecooked.nl - Bas Langenberg

Cooking up some nice code today…

  • Fix a Crashing WebLogic Instance

    Recently, I had some very strange behavior at a customer. The AdminServer of a freshly create domain refused to start. It was very strange since all the prerequisites were installed and the jvm version was supported. We tested a bunch of things: Downgrade Java to the version in the prebuild virtualbox image provided by Oracle; Play with some ulimit settings for user Oracle; Make oracle user able to dump it’s core; Try to actually get debug symbols for the core dump; One of the things I saw once during debugging is problems with becoming a different user on the OS within the JVM.

    Read more…
  • Move to Hugo

    We’re moving! I’m not against Jekyll all of a sudden, but I tend to change computers a lot. Installing a bunch of Ruby dependencies / Gems while wanting to write a quick blog is not fun. I also wanted to start hosting this site on my own VPS @ DigitalOcean for more control and bespoke stuff I’d like to track. (Which I cannot think of now) Go check out Hugo if you want a simple site which you can setup quickly!

    Read more…
  • How to remap your caps lock to an additional left control in Windows 10

    I always remap my capslock to an additional control. Since I googled how to do this for the 1000th time today, I’d like to document this on my blog. Create a capslock-to-control.reg file somewhere on your computer Add the following content: REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 Apply the file to the registry by double clicking and confirming the change Reboot Yer done! Hope this helps someone out.

    Read more…
  • How to setup Apache to proxy and renegotiate an SSL connection

    I have no clue how to call this, but it solved a problem we had at a customer earlier this year. The problem: An ancient version of Java running SOA Suite 11g not being up to spec to speak the newes SSL ciphers. To make a longer story short - We put a proxy in the middle and configured that to upgrade the connection. Here is the file: # Configures outbound connection in Apache # Location: /etc/httpd/conf.

    Read more…
  • Lets try the official Oracle Docker container

    a month ago Oracle released official Docker images for use by developers. The images are usable on any public cloud or on premise, bare metal servers. Reason enough for me to take them for a spin. Prerequisites A Docker account; A Linux VM; Note that the beauty of Docker makes it irrelevant which Linux distribution you use. It is recommended to make sure the kernel is fairly recent and a current version of Docker is installed.

    Read more…
  • Inspecting WebLogic with Puppet

    Recently, I was talking with some colleagues about Puppet and the added value it brings to everything infrastructure. The reason I mostly talk about Puppet is because of the superb WebLogic and Oracle database support existing for it. There are modules for WebLogic in Chef, but these only install the software. With Puppet, you can manage much more. A lot of other blogs mentioning Puppet mostly show how you can provision the software.

    Read more…
  • How to make systemd run a script on shutdown while networking is still there

    This took me way to long to sort out. In Linux, sometimes you want to make sure a script is ran which interacts with a service on the network or internet. This means that when the shutdown or reboot sequence is started, it needs to run before the networking services are stopped. So just in case I forget how to do this or someone else is in dire need this functionality, please find the solution for my problem below.

    Read more…
  • How to build vim from scratch

    I ran into a problem this weekend. I was unable to compile Vim with Python 2 support on a virtual machine I upgraded earlier from Ubuntu 14.04 to 16.04. In Ubuntu 16.04, Python 2 is not installed by default anymore, so Vim is also compiled without support for this language. Sadly, my Vim setup requires Python 2 to be available since I use 2 plugins which rely on it. YouCompleteMe and Ultisnip, yet replacable, are staples in my Vimming.

    Read more…
  • Managing a blog is a weird thing

    So for some reason my template decided to store it’s css externally, and I didn’t notice untill a few weeks ago that the domain of my template’s creator expired and my blog had the appearance of a website in 1994. An hour of hard work fixed this. Apparantly I care enough about this place, so I should put a bit of effort in this. I think I’ll use this blog to share some content of projects I am currently working on.

    Read more…
  • So what I've been up to

    Long time no blogging. This is probably not the last time this will happen. I tend to be ‘busy’. Also, I only blog when I feel like and when I think I have something to talk about. I just try and post an update on what I have been working. Hell, maybe someone get’s some inspiration out of this! What have I accomplished WebLogic OCA 12c Certification in the pocket.

    Read more…