Monday, July 5, 2021

Pineapple

 I started today a new chapter in my professional name: Enterprise Architect at Pineapple.

Actually, they also started a new chapter today, rebranding from previously known Capital Lending Centre.

I'm very exited for this new position responsible for many IT & development aspects, at the core of a tech focused young company. Go Pineapple!

Saturday, June 12, 2021

Salesforce Ideas

Salesforce has that nice feature to allow users suggest and vote on new ideas to be implemented. There are many times when the feature you are looking for is not there and if you'd contact Salesforce support they just suggest to vote that specific idea, which very likely was already proposed.

But this is also a two edged sword because also allow you to see what is actually missing from Salesforce and highly requested by their customers: IdeaExchange sorted by popular items.

Surprised to see proposals made more than 10 years ago and voted or commented by thousands? Don't be. this is the reverse of the coin which many times the manuals are just forgetting to mention.

I voted some, but not too many, as I don't think that the sheer number of votes matter too much.

Friday, June 11, 2021

Some more free services available with an Azure free account

 Microsoft added some more services for their Azure free account:

  • Azure Database for PostgreSQL
  • Azure Database for MySQL
  • Azure Key Vault
  • Azure Logic Apps

Nice. Some more reasons to start trying Azure for free.

Saturday, May 1, 2021

Microsoft Certified: Azure Solutions Architect Expert

 I passed yesterday AZ-303 exam so now I call myself 


Yay!

Next step: data engineer associate, coming soon.

Monday, April 26, 2021

AZ-304 certification

I passed yesterday Microsoft's AZ-304 certification, one step towards Azure Solutions Architect Expert.

I prepared pretty well for this exam so I didn't find it too difficult. I used Pluralsight series for this exam, Sybex's Microsoft Azure Architect Technologies and Design (Study Guide), plus a few other materials including quite a lot MS documentation (read well Overview or FAQ pages), but I found interesting Mark Grimes' YouTube videos (1, 2, ...).

Next obvious step is AZ-303 scheduled in a few days. Sure is easier to prepare for both at the same time.

The only negative was waiting an hour on VUE online app to be verified before starting the exam. They talk about 15 minutes but in my case was a full hour.

Tuesday, December 1, 2020

PMI-ACP renewal PDUs

 Also today I've just finished the last online course to maintain my PMI-ACP certification, due for renewal in Feb 2021. For this cycle of 3 years I had to do 30 PDUs to maintain it.

For last few days I was watching some videos, approved by PMI, to earn those PDUs. As you may know, the rule of thumb is 1 PDU for 1 hour of conference or virtual event, so you can do the math. Quite a lot of information to review all theory tested by ACP exam, and even more.


Salesforce Sharing and Visibility Designer certification

Two days ago I got my 3rd Salesforce certification, Sharing and Visibility Designer:


This is the 1st one for architect level, one more to go for Salesforce solution architect. Yay!

Wednesday, November 25, 2020

ServiceNow certification

I got my ServiceNow Admin certification more than 2 year ago and since then I took a few delta exams, an open-book exam about changes introduced by new releases. Until now those delta exams were free, and mandatory to maintain the certification, but with current release ("Paris") they introduced a $200 annual fee.

It was announced almost half a year ago but I didn't actually pay attention to that small detail. Today I received an email reminding me the calendar, as the exam should happen before Jan 7th, 2021.

Sorry ServiceNow, but I think I'll just let this certification expire. My initial plans were different and didn't use this certification at all, so paying $200 / year just to maintain it is out of question. I intend to maintain some other certifications I have, and I'd do it for ServiceNow, too, if they were free, but not in these new conditions they introduced.

Wednesday, November 11, 2020

.NET 5.0

Launched yesterday at dotnetconf.net I've just installed .NET 5.0:

  • Downloaded and installed .NET 5 SDK. Checked.
  • Updated Visual Studio to 18.6. Checked.
  • Read the release notes. Checked.
  • Read EF Core 5.0 release notes. Checked.
  • Watch dotnetconf.net. Checked.
No more release candidate version, and no more .NET Core (except EF), but one unified platform. I'd like that, when all parts will be ready.

Monday, November 2, 2020

Salesforce platform developer 1 certification

 As planned, today I took and happily passed my 2nd Salesforce certification: platform developer 1.


The next one for Salesforce Application Architect credential path will have to wait a while, as the preparation for it will take a bit longer, but hopefully will come.

Wednesday, October 28, 2020

Salesforce certifications

 I played with my own org in Salesforce for a while, but lately a few things aligned, mainly the company I'm working for just moved to Salesforce. It was a pretty big move, delivered by a big name in consulting services, but now slowly we (app dev department) have to take more and more on the support part. So I decided to get certified with Salesforce.

Besides this, the company also moved to DocuSign (of course, for e-signatures), which happily integrates with Salesforce. Again we had some consultants working on this, but that sparked also my interest.

DocuSign has free developer instances, which I registered and integrated with Salesforce (dev org). Then, registered with DocuSign University (separate registration), reading the docs, testing and tried (successfully) a first certification: DocuSign eSignature Template Specialist 2020. Then a more important one I was interested, DocuSign eSignature for Salesforce Specialist 2020 (after reading and testing the manual + University exercises). Yay! It worked, and even better, all free.

Then the focus was back to Salesforce certification, which I prepared for quite some time. First one is App Builder which I passed 2 days ago:


Yay again! Next one is logically Salesforce Platform Developer 1, which I intend to try in a few days. Hopefully I'll have good news on this one too, very soon.

Keeping busy these special conditions of working from home.

Monday, July 20, 2020

ASP.NET Core trick: breakpoint for 404 errors

I had an 404 error for a test web app that used a NGINX reverse-proxy config file, which was pretty hard to track it down. Most of the routes worked fine, except pages under an /admin folder, all throwing 404 error, page not found.

The easiest thing to track it down is a break-point somewhere, but where exactly, for a page that's not found? So, I added temporarily a middleware in Startup.cs, by the book:

app.Use(async (context, next) =>
{
// Do work that doesn't write to the Response.
await next.Invoke();
// Do logging or other work that doesn't write to the Response.
});

Then just add the break-point on highlighted line and inspect the Request object.

In my case I only needed a backslash in proxy_pass parameter of NGINX's config file.

Monday, May 25, 2020

IPython Notebook to connect to SQL Server 2019

I installed Anaconda 3 some time ago, and then I installed SQL Server 2019 without ML libraries for Python. Now I just wanted to connect from an IPython Notebook to this local named instance of SQL Server, directly.

I tried with both pyodbc (which worked from first try) and pymssql which seemed to have some issue. The error message was:

"MSSQLDatabaseException: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (localhost\\SQLSRV2019)\n')"


It looks like pymssql library needs the TCP/IP connection configuration to be enabled, and also needs SQL Server Browser service to run. So, start SQL Server 2019 Configuration Manager and then Enable TCP/IP configuration setting:



And in Windows Services.msc make sure SQL Server Browser runs:



After these changes restart SQL Server 2019 instance (don't forget this step).

The code for pyodbc:
import pyodbc conn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=.\SQLSRV2019;DATABASE=db1;UID=sa;PWD=***') cursor = conn.cursor() cursor.execute("select id1, name1 from Table1") rows = cursor.fetchall() print(rows)
The code for pymssql with Pandas DataFrame:
import pymssql import pandas as pd conn = pymssql.connect(user = 'sa', password = '***', host='.\SQLSRV2019', database = 'db1') q = pd.read_sql_query('select name1, id1 from Table1', conn) conn.close() df = pd.DataFrame(q, columns=['name1','id1']) print(df)
Then let's plot the values with matplotlib:
import matplotlib.pyplot as plt
df.plot(kind='bar')
You can try these with either JupyterLab / Jupyter Notebook from Anaconda 3 or even with VS Code extension for Anaconda.

Monday, February 10, 2020

Azure Key Vault—Private endpoints now available in preview

"Establish a private connection between Azure Key Vault and other Azure services by using Azure Private Link, now available in preview for all public regions.
[...]
All traffic to the service can be routed through the private endpoint, so no gateways, NAT devices, ExpressRoute or VPN connections, or public IP addresses are needed. Traffic between your virtual network and the service traverses over the Microsoft backbone network, eliminating exposure from the public Internet."

A question may be why only now? It should have been there from the beginning.

Docs link.

Sunday, November 24, 2019

ContactForm.Sample project on GitHub

I added a new demo project called ContactForm.Sample at github.com/OviCrisan/ContactForm.Sample. It's just a sample solution with 2 projects, one to show a contact form with both C# and JS / AJAX, which then uses HTTP POST to a web API project, which saves data to a Postgres database. The web API (Contactform.Sample.Postgres) is build as a separate infrastructure project because I intend to add some more API projects for other databases, SQL and no-SQL.

Here's a simple diagram of the projects:

And the regular C# web form with Google reCAPTCHA (demo) enabled:


More technical details are added to readme files in the project source code, including details to run it with Docker compose from Docker containers.

By the way, the project Docker images are also available on Docker Hub here and here.

Comments are welcome. Thanks.

Monday, November 18, 2019

Seagate external hard drive

Black Friday came earlier this year for me with a new Seagate 6TB external hard drive, for all videos and books scattered of different computers and laptops I use, at home and at work. All good with it so far but it's formatted with NTFS which doesn't quite work on Mac OS. After a bit of digging I found out that Seagate offers a free version of Paragon NTFS for Mac. Installed and tested. Nice.

Thursday, November 7, 2019

ContactForm github project

It's been a while since I wanted to post a personal project on GitHub, with few features I'm interested in: ASP.NET Core MVC and APIs, Azure DevOps, Azure Functions & AWS Lambda, as well as Docker images. Some other features will be covered in another project I'm working on, but let's keep that as a secret until available.

The project I'm presenting now it's called ContactForm and is available at github.com/OviCrisan/ContactForm (see the link on the right side bar). It's meant for a simple contact form processing page, which works with both HTTP POST form data as well as REST API JSON, on the same endpoint (the root of deployed URL). There is more in the readme.md files from the project, with this diagram trying to explain different components:

The core of it is a .NET Standard 2.0 library deployed to NuGet.org (nuget.org/packages/OviCrisan.ContactForm), which then is used in ContactForm.Web (web app  + web API), ContactForm.AzFunc (Azure Function) and ContactForm.AWSLambda (AWS Lambda function). Some libraries are using older versions just because AWS Lambda uses .NET Core 2.1, and also at the time of writing this Azure Functions 3.0 are in 'preview' mode.

Depending on the settings in the config file or environment variables it enables email notification and/or webhook posting or REST API call. Also, optionally, you can enable Google reCAPTCHA v2 with visible checkbox. For this last option you need to register your own set of keys or use for testing Google provided samples, which you can find in the readme files in the project.

The web application is also deployed as a Docker image at hub.docker.com/r/OviCrisan/ContactFormWeb, read more here.

The core library and web app have some unit testing projects, but very minimal (using XUnit). Also provided Azure DevOps YAML file for core library continuous integration. Some other additions will be added soon.

Comments, suggestions and bugs reporting are welcome. Thanks in advance.

Wednesday, November 6, 2019

PostgreSQL 12 on Windows 10

I used previous versions of PostgreSQL, but I installed them with default Windows installer from the website which came with a Windows Service easy to start / stop. This last version 12 I installed with Chocolatey and I couldn't find any Windows Service to start.

So, back to documentation and googling. First I create environment variable PGDATA pointing to a newly created data folder, like C:\pgdata (easier than specify that folder in parameters). Then from C:\Program Files\PostgreSQL\12\bin I ran:

.\initdb C:\pgdata
.\pg_ctl start
.\createuser --interactive
.\createdb test1

Newly created user 'postgres' has the superuser role.

Additionally, you can create other users with passwords to be used by the applications.

Then, I prefer to use Valentina Studio which integrates nicely with Postgres.

Monday, November 4, 2019

Big Azure update today

There are a lot of announcements today from Microsoft Azure specially for Ignite event, some of most important ones in my opinion:




Thursday, September 26, 2019

Conditionally added XML element

On a project I'm working on we have to generate some XML documents with a pretty complex structure. In previous version we used XmlDocument, but the code is pretty verbose, so I checked XDocument alternative from Linq to XML.

This new solution works better (looks like is even faster), but I was looking for a simple solution to skip empty nodes. We didn't want <node></node> or <node />.

So in the end I tried something like this:
using System;
using System.Linq;
using System.Xml.Linq;
namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            var b3 = string.Empty; // "3"
            XDocument x = new XDocument(
                new XDeclaration("1.0", "utf-8", null),
                new XElement("a",
                    new XElement("b1", "1"),
                    ElemString("b2", "2"),
                    ElemString("b3", b3),
                    new XElement("b4", string.Empty),
                    new XElement("b5", null),
                    ElemChildren("c", ElemString("c1", "11"), ElemString("c2", string.Empty)),
                    ElemChildren("d", ElemString("d1", string.Empty), ElemString("d2", string.Empty))
                )
            );
            x.Save(Console.Out);
            Console.ReadKey();
        }
        static XElement ElemChildren(string name, params object[] children) {
            return children.Where( obj => obj != null).Any() ? new XElement(name, children) : null;
        }
        static XElement ElemString(string name, string val) {
            return string.IsNullOrEmpty(val) ? null : new XElement(name, val);
        }
    }
}
which produces:
<?xml version="1.0" encoding="utf-8"?>
<a>
  <b1>1</b1>
  <b2>2</b2>
  <b4></b4>
  <b5 />
  <c>
    <c1>11</c1>
  </c>
</a> 
ElemChildren() was used to exclude a node having all children Null, while ElemString() is a simple ternary function (here's only for strings, most important part).
Notice the difference between <b4></b4> and <b5 />. Also notice that node <d> is missing completely because of all Null children nodes.