The data warehouse is closed down this weekend, or rather the MySQL database of the data warehouse is shut down to simulate an IT crisis. I have received a shitload of alarms, my telephone’s audible alarm is ringing like mad. I hope Henrik knows what he is doing. When I did the same midsummer eve 2013, I was made to swear never ever do that again. And now Henrik deliberately do the same thing for training some new guys in the BI-team, I’m a bit apprehensive about this exercise. There will be a mess to sort out on Monday, I think one new guy have only been there for a day or two! The new guys are just thrown into the deep end. If the newbies survive they be data warehouse experts by the end of the week, which is pretty amazing. Let’s hope for the best.
Woe to the British people, woe to EU, woe to Europe and woe to rest of the world. The British people voted to leave EU. The people are not always right, last Thursday the British people were wrong.
To be a EU member or not to be, is simply to complicated for a referendum, it is not fair to the people to require an ‘exit’ or a ‘remain’ from them. To call for such a referendum is to open the door for populists, the sweetest tongue, the loudest voice is likely to win, since no one can see the consequences of the Brexit, any lie will be as good as the truth.
Politics is not what I normally write about in this blog, but it’s my blog so I can write whatever I feel like.
Most of the time a new computer language is simple to pick up, the logic and operations that is. The hard part these days is to understand the class structure and all accompanying frameworks and learn the IDE (visual studio in this case). Often there is not much logic behind these components which force you to learn a lot by heart, so when I say I’m a C# .net developer I mean I understand parts of the machinery you need to master if you are a true master C# .net developer. But I think I now have the basic skills, I just have to learn more and practise hard for a year or so to become a proficient C# .net developer.
So far I like C# .net and the development environment, I have a feeling you can be very productive knowing these tools.
Normally I display my code, but in this case I’m unsure if this is open or closed source and what company policy dictates for closed source code, so I show this picture which tells where I am in the visual studio world.
The C# .net code I have written is substandard so it is nothing you want to look at anyway. But it works, you do not expect much more from a PoC so I'm happy.
Who wins 2016 European Championship?
With the help of The Data Warehouse and Qlikview the Business Intelligence crew have created an app for keeping track of the results and where you put your money or rather wine bottles. I will win some some +200 bottles of wine if I win this company EURO 2016 competition. Yes I know you can do the app with Qlikview only or Excel or …, but now the BI crew based in on the Data Warehouse for better transparency and integration with other viewers than Qlikview.
My results for the group stage
Actually I do not know what I would do with +200 wine bottles, since I seldom drink wine these day. Anyway I suppose the BI crew will win since they are in control of the data or rather the match results from all competing in this game. That is what Data warehousing and Business Intelligence are about. Stay ahead of the competition by taking control of the data. Anyway it is a nice and practical example of making BI useful.
I blurred the picture since I do not want other contestants to see the winning results, that would delute my win.
Many seem to have problems accessing MS SQLServer databases from Linux via PHP/PDO.
This is how I connect.
I use freeTDS to interface with PHP/PDO.
First I I downloaded latest stable freetds release from http://www.freetds.org/software.html, which happened to be freetds-0.95.95 in my case.
Then the compile pirouette:
- ./configure --enable-msdblib --disable-debug --with-tdsver=8.0 --enable-msdblib
- make install (as root)
This can be checked with tsql -C:
I tried to ./configure TDS version 8.0 which is MS SQL, but I got version 5.0 which is Sybase!
The configuration directory is /usr/local/etc, the configuration file is freetds.conf, (you find an example file in the directory), I added an entry for my MS SQL Server instance:
port = 1433
The server is called rdc01, port is MSSQL default 1433 and tds version=8.0.
I tested this with the tsql command:
[tooljn@toossedwvetl3 pgm]$ tsql -S rdc01 -U userid -P 'password' -L database
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
1> select 'hej'
(1 row affected)
As you see I specify rdc01 as MS SQL server (rdc01 points back to the entry in the configuration file.
I run a select ‘hej’ (terminated by go on the next line) just to make sure the server responds, and it did with ‘hej (1 row affected)’
And I ended the session with exit.
So far so good freeTDS is installed and working, now to PHP.
The compile pirouette:
- make install (as root)
I have a lot of ./configure parms for the PDO interface I use:
I use the following PHP code to display the PDO interfaces installed:
dblib is what we want.
Now we only have to do a pdo connect:
$pdoHandle = new PDO (dblib:host=rdc01;dbname=database, userid, password);
dblib:host=rdc01 points back to the configuration file.
And that’s it folks.
My Dell E7450 laptop just died. it’s very dead, no sign of life whatsoever, even the power adapter shut off itself. Will the data in the PC be recoverable? I’m not very good at backing up my PC. It is Saturday morning I have to wait until Monday to call Dell Service, fuck! Most unfortunate and inconvenient, I was planning to debug a failing MS SQL server connector this weekend, and fix some MS Sharepoint lists. But I need access to the company network for that and my PC.Hopefully Dell Support team resurrect the PC during Monday.
And Monday morning we have planned to use my PC for end user training. We rehearsed the training on my PC with Single Sign on login and all. User training without minute preparation is seldom a success, f-u-c-k again.
Sometime life is such a bitch.
It's late Tuesday afternoon and still no sign of the Dell PC repairman, I am not happy.
Wednesday afternoon, The friendly Dell PC repairman have fixed my PC and I'm happy again.
Yippi, Here I am for the world to see
A new Data Warehouse was born last week, After many R.I.P. posts at last a post celebrating a newborn. (Sadly there will be more R.I.P., but today is a day of joy and celebration.)
The new Data Warehouse is a proof of concept only, it is intended as the data store for a BI solution serving a faraway distribution center. It took some 3 hours to create the Data Warehouse and plan some 10 extraction jobs, the job stats might even show in the monthly twitter graph for May.
The only problem so far is the MS SQL Server connector of the Data Warehouse, for some reason it refuse to run. Hopefully it is a minor problem.
If this PoC make it all the way to production I will write more about it. So far so good (except for the SQL server connector).