Posts

Developing Microsoft Azure Solutions - my preparations for 70-532 exam

Image
Yesterday I've passed my first Microsoft exam - 70-532: Developing Microsoft Azure Solutions, yay! :D I would like to share with you the way I took for preparing myself for this exam.

It costed me 2 weeks of my life. Two weeks of daily learning and experimenting for at least 12 hours, but it was totally worth it. 777 points - not the best score you can have while taking the exam and I know, that it could be better. It always can. But after all you need only (or maybe not only?) 700 points to pass. Was it hard? I think it was.

As of November 22, 2016, the exam objectives got major update. Because Microsoft is slowly shutting down the old Azure portal (ASM) and moves everything to new, ARM portal, the update was necessary.

Below you can find list of links to (probably) every resource I've used to prepare myself for exam.

I highly recommend you to buy Scott's course on udemy. I've got it for 10€ (there was some huge discount). 8 hours of very good videos about Azure and …

4developers in my eyes - quick (but late) review

Image
It was a little bit quiet in here last two weeks. Two weeks ago I had very little time to take care of my blog. All because I was preparing to upcoming journey from which I came back just few hours ago. Last week I spent in St.Petersburg, Russia. Anyway, two weeks before today I had pleasure to take part of 4developers 2017 conference and I would love to share my thoughts about it with you :)
My point of view 4developers is a big conference with many sessions. Shouldn't be surprise that I've decided to spend most time on .NET sessions (most, not all the time :P). Let me tell you which speakers I remembered the best.
Szymon Wydra and his session about how did he stopped being afraid and fallen in love with parallelism. This guy knows what he is talking about. So much knowledge in such short period of time. What I know for sure is if I would ever try to operate with hell of a lot data I will use TPL Library. And he used LINQPad instead of PowerPoint!


Łukasz Pyrzykwas talking abou…

Swipeable custom control in Xamarin.Android - II. Create simple swipe

Image
As a continue of last week post about creating your own swipeable custom control, today is the day we will be able to swipe our cell!
First of all create new layout in your Class Library. I called my layout SwipeBase.axml and placed it in Resources/layout directory.


For now this layout will contain only FrameLayout with minimal height set to 48dp (density points) and no marings or paddings. We will
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:minHeight="48dp" android:layout_margin="0dp" android:padding="0dp"> </FrameLayout> Now it's time to create SwipeControl class. Nothing complicated, just class that inherits from FrameLayout with some initialization method. Of course this will not allow us to use any kind of gesture, but we need some base to work with ✌.
public class SwipeControl…

Swipeable custom control in Xamarin.Android - I. Preparations

Image
As I mentioned in post about my first package in NuGet Gallery, I want to write something more about swipeable custom control I've made. What I've decided is to create small tutorial based on my creation of this package, divided into few parts about how to create your own swipeable custom control without need of using mine.
Prepare solution You have to create two projects. First one will be blank Android app which will be our demo app and will have reference to our second project - Class Library (Android). Thanks to this approach we will be able to create dll from our class library project and use it in every Xamarin.Android app we want. Of course you don't have to divide solution into two parts just like I did. You can write everything in you app, but think about it in this way - you will be not able to simply use this feature in future apps you will be writing. Not the best idea, huh?

Prepare Android app ListView Now you will create simple ListView in your android app. …

MongoDb Storage Provider for ASP.NET Identity - part 1. Creating UserIdentity

Image
ASP.NET is a huge framework handling a lot of stuff for us. One of the most widely used parts of it is a memebership system calledASP.NET Identity and by default it is working with SQL Server and uses Entity Framework Code First for database creation and operations. But what if I'm not using Entity Framework?

In my Get Noticed competition project ShoppingReminder I've decided to use MongoDB instead of SQL Server. Membership system is a huge thing to write and I don't have time for that, so I need to figure out something that will work with MongoDB
Luckily, Microsoft gave us gateway to use other databases with ASP.NET Identity. All we have to do is to create custom storage provider for ASP.NET Identity and we will be able to use all goods this membership systemprovides to us.
To start working on custom storage provider we need to create some database provider. I've done this while I was writing repository for my project. You can find this article here. Mine gives me c…

My very own package in NuGet Gallery

Image
If you are using Visual Studio then you have to know NuGet. Did you ever wonder what you have to do to get your own package in NuGet Gallery? Not much, really!
First of course you have to write some code. Maybe not just some code. It would be very nice if someone else would be able to use your code in his and didn't want to harm you. I've decided to write custom control for Xamarin.Android framework. I will write a little bit more about it next week. You can find source code with sample app here. If you want to use it via NuGet you can find it here.
If you have your code done build DLL library. Now we can create description, package and upload it into gallery. It's fairly easy! Pre-requisites Download NuGet CLI and add environment path. Creating description (.nuspec) Open Windows Command Prompt, navigate to folder where you have your .dll or .csproj and type nuget spec <file_name>. In the same folder you will find .nuspec file called in the same way as your .csproj.…

I need remote database

Image
While writing my first lines of code I have used local instance of MongoDB but you cannot hold your database on local machine for eternity. Plus I wanted to see if my DbConnection is working as expected, so I started to looking for hosting. Lucky me I didn't waste too much time, because I have found all that I need on MongoDb website. They give you something called MongoDB Atlas. All you have to do is register, create your cluster and voilà! You can connect to your database in cloud. How can you achive that? Just in few simple steps I'll show you in a few minutes. 
First of all - register and fill 2 forms. Simple data about you - email, password, name, phone, company (type PRIVATE if you want to try it just for yourself, like me), your job function, country and unique group name. Next you will be logged into your account and we can start with creation of our first (and only free) cluster!
This is what you can see on the very beginning. Big green button, that asks you to touch…