Many of you may not know, but besides writing code we also love to share our knowledge. In 2015 we became the Knowledge Partner at WOW School (http://www.wowschool.pl) – programming and business school for kids running in Warsaw (so far, more info later). Our responsibility is to provide the best educational programme for children between 8-16 years and deliver it for some groups too (mostly as a beta-tests of our convictions). Last weekend we took part in international initiative Devoxx4kids – programming conference for kids (SICK!) and I want to share some thoughts after this awesome event.

Our Head of uKulele Section (and frontend developer from time to time) – Maciek (@maciejkorsan) – is really enjoying Front-Trends conference (https://2016.front-trends.com/) this year. During Lightning Talks session today, he performed slightly romantic and very touching song called “Frontend is an Art”. Want to know lyrics or see the video from this performance? 🙂Continue reading…

After configuring my Azure app and service bus I had to create some endpoint on the raspberry pi. Fortunately there is azure package for python so it wasn’t so hard to achieve my final goal – communication between slack and the board.

I’ve started my journey with downloading some sample code from Igal Tabachnik – xkcd slackbot (https://github.com/hmemcpy/xkcd-slackbot). Because I had no: experience in C#, visual studio on my computer, any idea how should it be deployed, I thought it will be fun. And it indeed was.

After getting sources of Igal’s bot, I’ve looked into the structure of asp.net (?) project. To make it working I needed some server environment. I’ve created new app service on my azure account. After that I had to rewrite xkcd bot to connect with my previously created azure service bus. To do it, I’ve used my favourite text editor (Sublime) and refactored Igal’s code. I had to edit all those configs etc manually, without visual studio’s help 😉
It was fun because I couldn’t test the solution on my local machine. After few tries I’ve managed that I can deploy my app using git directly on azure.

git push azure master

And we’re home 😉 Here’s the final code of my controller with pushing call from slack to service bus queue (which is used by my pythin script on raspberry pi ;)):

using System;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml.Serialization;
using Nancy;
using Nancy.ModelBinding;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Microsoft.ServiceBus.Messaging;

I’ve been very busy lately and had not enough time to take care of my project. Today I would like to tell you something about the architecture of Officer Pi. Let me show you my idea packed into a compressed graphic file 😉