2018-08-03

New Dress Code

New dress code at the office. Due to global warming and the tropical summer 2018 I have introduced
a new dress code at 11Dim.  


Note the second button, done up strict business mode, unbuttoned vacation mode.

The top button should always be unbuttoned.

2018-07-28

The longest hottest summer



I live just behind the sun scorched field you see on the picture, the field  have always been green
summertime. Stockholm summers are cool and rainy, this summer just a few drops of water temperatures
around 30 centigrades daytime and +20 degrees nighttime. We are not used to weather conditions like
this, our homes have central heating not AC.
The summer 2018 is the hottest and driest ever in Sweden.

2018-07-08

I am a Pythonist

I am a pythonist
I know what I want
But I don’t know how to get it (yet)
Lasse Rotten

Recently I done some Python coding, I did not foresee that coming. And Python 2.7 not version 3. I
who like to be beyond the bleeding edge notoriously (miss-)using alpha releases in production. One
of the disadvantages of being a contractor is you sometimes have to yield to standards.  As
corporate lead IT-architect I could bend rules, as IT manager I could just neglect policies, as an
employee I could just play ignorant of standards I always got away with it. If you produce something
useful the business people like you most of the time get away not following the regulations. But it is
harder as a contractor, at least as I see it as a contractor you follow the given guidelines.  
So Python 2.7 it is.

I had to move Oracle tables over AWS S3 into a Redshift database. And I had some as I see it
unnecessary difficulties, first the Oracle driver, I found many of them none worked, this should be
easy just import the database driver with an import statement or a pip command, nothing worked
until I had imported a Java driver and a Python driver, then all of a sudden I reached Oracle. I’m still
not sure on the sequence of events but I do have an Oracle connection. Now my code was a mess
after all futile attempts to find the Oracle database, so I cleaned it up. Now I got a an error message
telling ‘The database cannot be found’ or something similar. Very odd, after many new tests and
scrutinizing my code a number of times I realised I had deleted the creation of the database cursor, I
attempted to connect to Oracle with a non-existing cursor object. A more appropriate error message
had indicated there was a problem with the cursor object, that had saved me both time and a lot of
harsh words. After these initial problems that took the better part of a day, the rest to grab the tables,
transfer the tables into S3 and redshift was a breeze.
Do I like Python? Well I only used it for less than two days so it would be a bit presumptuous to have an opinion, but I do not see why  some people think it is so superior to other scripting languages, to me it more looks like the same shit as other scripting languages, just a bit different. Still I merely scraped on the Python surface. But I found the import future statement, that might allow me to sneak in some version  threeish code.

2018-06-10

Electric power



Yesterday the office had a planned power outage for twelve hours. Of course things went wrong.
A decision was made to run the servers on the UPS battery and a diesel generator.
I advised the Data Warehouse guys to shutdown the Data Warehouse servers anyhow. So far
so good, the servers were stopped and when the power was back one guy went to the server room
to start them up. The servers were already running but refused to communicate, the guy called me.
After some thinking I realised there must have been a power failure despite the UPS/Diesel backup
and when the power was back the servers started automatically before network or anything else were
up and running. We powered off and on the servers and Hallelujah! The entire Data Warehouse
started up just as it should except…
Last month I was forced to create a new ETL server extracting data from Bloomberg. That virtual server did not start automatically but that was cool I started that server manually. This morning I did not get the Bloomberg reports, so something must have gone wrong. I tried to Putty into the server it did not work, ping did not work, the f-ng  server refused to communicate, I could enter it via the KVM’s master console, most thing looked normal except I could not find any recent logs from Bloomberg extractions. After some hours of desperate looking around I saw that the IP address to the server was wrong, then I remembered I had cloned the server and created a new production server, I had started the test server. Attention to details have never been my thing. I just had to start the right server and we were back on track again. I suppose this is a price I have to pay for “moving fast”. I usually develop at a high velocity, sometimes more frequently the last years I forget small details as this new server, it’s just temporary until the entire Data Warehouse is moved to the new OpenSuse platform. But of course they had to cut the power in between.  

2018-06-01

PowerBI meets the Data Warehouse


The first graph from PowerBI 😀


I think I followed this post, anyway now the connections is made.

2018-05-01

So long Atlas Copco, thanks for all the fish


Yesterday I did my last day as an employee of Atlas Copco, this second “sojourn” at Atlas Copco lasted for some seventeen years, far longer than the five years I had planned to stay. But if your stay is pleasant you tend to stay longer if possible, in total I worked almost thirty years for the company, yes I have enjoyed most of those years. Atlas Copco gives you a lot freedom and opportunities to grow a career. Not all have been positive of course, how can it many times I been disappointed, upset, outright pissed off and a few times yelled at and being yelled at. But many times and a few times in thirty years are less than a pee in a pond or even a fart in the universe. Most of the time I and my work has been appreciated, the first years I got paychecks I never would have dared to ask for. I can say all my bosses in Atlas Copco have been good to work for. Bernt, Erik, Christer, Lennart, Ulf, Poppen, Folke, Britt, Jalle, Gunnar, Bertil, Rolf, HÃ¥kan, Lisa, Antonis, Mats, Tim, Liselotte and finally Patrick you been great although some of you I only worked for a short time. 

I might have forgotten one or two, still it is an impressive list of good managers, of those a few have meant a little more for me; Jalle and Rolf superior intellects who have been great and kind mentors during my first years and Bertil was the best of them all.

Colleagues and people who have worked for me are too many to name here, most of them great guys, If I should single out a few it is Ente during the first years and Ulf, Camilla and Petter from the latter years. Actually when Ulf, Camilla and Petter respectively left the company I became depressed and wanted to quit work myself. I still miss them badly, very different individuals but great professionals and good guys. We had many laughs and a few irritations together.

Of my achievements in Atlas Copco I am most proud of the MPS system, an ERP system for manufacturing from purchasing to delivery of products and all in between. I did most of it and all coding myself, the system was used for twenty six years in two business areas of Atlas Copco. In all modesty I do not think many people have done that. We had an army of SAP experts and a year to replace my system (I did it in three months). Still Ulf and I did most of the reporting for the new SAP system.

Last year I pondered upon what to do when I’m sixty five, now when I am I still ponder but I have taken the decision to leave my employment and start up as a consultant. I will continue to do work for Atlas Copco, how much and what remains to be seen. But I will only do work that I like, that is development, operations and problem solving. I will not chase work only do things that “stumble upon” me. If you have something drop me a line.

Of all companies I have worked for Atlas Copco is by far the best and most dynamic. I highly recommend you to seek employment there.

Late update:
I did not mention Henrik in the post. Henrik is a great guy but in the post I only mention colleagues I worked with  for some time in Atlas Copco. When we were employees of Atlas Copco we did not work that much together, but we do now. Henrik is from time to time engaged by Atlas Copco to help out with difficulties. Henrik together with Camilla has engaged me to help them create a cloud based data warehouse, based on Henrik's ideas and code. Henrik is not only a good guy he is also a darn good IT developer. That is why I felt obliged to write this late admendment.   

2018-04-25

TLS 1.2 and coffee down my windpipe

Last week I received this mail while sipping coffee:
Hello,
This is Bloomberg Enterprise Data Support. We are sending you this email as a reminder of the notification RefID:14671
which was sent on the 31st of January 2018. Effective 2nd of June 2018 Data License Web Services will no longer support
TLS version 1.1 and below. Clients running TLS 1.1 or below will be required to upgrade to TLS 1.2.
A UAT environment is also provided for you to test the migration. Details are provided in the notification sent under
RefID 14671. Please see https://service.bloomberg.com/portal/notification/5198 to access this.
According to our logs at the end of March your connections for dl789431 were still TLS version 1.1 or below.
Thank you and please let us know if you have any questions on this. You can reply to this email without altering the subject
line or give us a call at one of the below numbers. Your reference number can be found in the subject line starting with H#.


I almost choked on my coffee and dropped the cup on the floor. As I had developed my Bloomberg
routines myself on an old Linux platform using PHP non supported anyway by Bloomberg, they only
support .Net and C#. I knew this would be lot’s of (extra) work. First I checked  what OpenSLL version
I was on:
 
Do OpenSLL 1.0.0K support TLS 1.2? Of course not. I was pretty sure OpenSLL is not something you
easily upgrade, so I decided to start by create a new server with a modern Linux system.
After some reading and very superficial testing I decided to go for OpenSUSE 42.3




OpenSLL 1.0.1. Supports TLS 1.2 so I was cool with my openSUSE. I spent the better part of last
weekend migrating my Bloomberg communication routines with everything around, which includes my
Data Warehouse. Monday morning I did my first production tests, they worked fine.
So now my Data Warehouse is migrated from Mageia Linux to openSUSE (most jobs still run in
the Mageia though). I hope to finalize the migration during this summer.

All’s well that ends well, but I do not like the way Bloomberg acted in this case. They claimed they sent a message in January We must upgrade from TLS 1.0 to TLS 1.2 and then they sit and wait until end of April, then they come back with the “ultimatum mail” above, actually stating “if you can’t comply second of june - Tough Luck “. Fortunately Bloomberg support is good, so even though they could not help since they do not support Linux nor PHP, they responded fast and could tell when my test shots  where ok making the test period short.