Solving tech problems

ASP.NET Core 3.1 Identity tables in MySQL

Uncategorized

To have identity tables in MySQL install Pomelo package, set the connection string and DBContext in Startup.cs like this: services.AddDbContext(options => options.UseMySql(Configuration.GetConnectionString(“MySqlConnection”)); Open NuGet > Package Manager ConsoleRun: EntityFrameworkCore\Update-Database -VerboseRun: update-database

XPATH cheatsheet

Uncategorized

This post was inspired by great this find, which I managed to search while working on one project. It happens few times in the past that some interested content was not available any more and in order to save this great cheatsheet I am copying it from LeCoupa

ADIDAS is failing BIG!

Leisure and Pleasure, Thoughts

As much as I loved Adidas sneakers (since I was kid, from original Wimbledon and Universal model) I must tell you that I hate this “shit quality” direction they are aiming. By devoting so much money in marketing and paying these professional athletes ridiculous amount of money they are directly failing us, old customers. You can not remove all you production facilities into Asia (China, Bangladesh, Vietnam…) and sell us some shitty plastic low quality products. Don’t be a hunk, open only 1 factory in Europe and start producing jus…read more

The ugliest cars in the world are Toyota cars

Thoughts

Latest Toyota cars or let’s say last two generations are the worst designed cars in the whole world (my personal opinion). I got angry every time when I spot some new Toyota model in daily traffic. I can not describe why I got angry when I look this Quasimodo ugliness but I found out that it is Toyota design that makes me angry. I am not specialized in design, but the rules how these cars are designed, influence my calmness in a bad way. Few days ago, I was behind…read more

Firefox and Chrome redirects to HTTPS from HTTP error

Programming

This Friday, 16th March 2018 it was all working well and today on Monday 19th March 2018 it stopped working and Firefox and Chrome are redirecting my development websites to HTTPS. After searching what could be thee cause I found out that if your development website ends with .dev domain extension then both browsers demand that you have commercial SSL and not self-signed. The solution of this problem was to change all my projects and settings from .dev to .test and now it is working again. I hate these kind…read more

Solving PHPMailer and GMail connection failed issue

System Administration

Strange behaviour – it just stopped working 10 days ago and after a long search found a solution in specifying additional parameters in SSL connection, so working example should be like this: try { $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPDebug = 2; $mail->SMTPAuth = true; $mail->SMTPSecure = ‘ssl’; $mail->SMTPOptions = array ( ‘ssl’ => array ( ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true ) ); $mail->Host = “smtp.gmail.com”; $mail->Port = 465; $mail->IsHTML(true); $mail->Username = GOOGLE_SMTP_USERNAME; $mail->Password = GOOGLE_SMTP_PASSWORD; $mail->SetFrom(SMTP_USERNAME); $mail->Subject = “Test”; $mail->Body = “hello”; $mail->AddAddress(YOUR_RECEIVING_EMAIL); if(!$mail->Send()) {…read more

How to save 55$ for undelete software

System Administration

You probably accidentally deleted some important files more then once. It is especially sensitive when it comes to photos from your family trip and when you deleting by instinct with SHIFT+Delete (avoiding Recycle Bin). I did that today and I needed some simple data recovery software. I remembered that there is File Scavenger who can restore accidentally deleted files and I installed it. Scanned the drive, found my photos and when I wanted to recover them I found out that I need to buy the licence for 55$. I didn’t…read more

Mscorsvw.exe high CPU usage on Windows Server 2012

System Administration

I sometimes really hate Windows. When you do obligatory updates sometimes it takes hours for operating system to settle down and stop using CPU and memory like crazy. One of these processes are mscorsvw.exe and ngen.exe which do some .NET assemblies optimization. I read about a lot of angry posts about these processes and that it takes hours “to optimize” and during these hours your server and services on it are suffering (and you need to be clever when finding explanations to your clients). Follow these steps: Navigate to the…read more

Can not connect to Remote Desktop Connection in Windows Server 2012R2

System Administration

I faced today strange problem that I could not connect to Windows server through Remote Desktop Connection. When I click “Connect” it disconnect me immediately. Restarting the server didn’t helped. Here is the simple trick how you can connect… Open RDC dialog and click on Show Options Go to Advanced tab  and choose under If server authentication fails option Connect and don’t warn me You are now successfully connected after pressing the Connect button Glad to hear if this saved you day. You can Tweet this solution so help someone…read more

Tuscany in Autumn

Leisure and Pleasure

Ever been in Tuscany? If not, you must go there. Amazing landscapes and old mediaeval towns. At the top of it is always adorable Italian food and wines and climate is super mild during the whole year. Gladiator movie is also filmed in some of these locations and I created few wide prints for my office from these image I took…