Developer Blog

by Roman Soldatow


  • Home

  • Tags

  • Archives

  • Projects

  • Impressum

Emails and Appointments/Meetings with Outlook and Python

Posted on 2018-06-17

If you would like to send Emails or Meetings or even Recurring meeting with Outlook, you could do it easily with Python.
We will use the pywin32 library for that, which is a python extension for Win32 API and provides ability to create and use COM objects.
It will use your Outlook, and you don’t need to authenticate or setup the SMTP.

Setup

Install pywin32 with pip.

1
2
pip install pywin32
pip install pypiwin32

Python Outlook Email example

1
2
3
4
5
6
7
8
9
10
import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application")

def sendEmail():
Msg = outlook.CreateItem(0) # Email
Msg.To = "test@test.com" # you can add multiple emails with the ; as delimiter. E.g. test@test.com; test2@test.com;
Msg.CC = "test@test.com"
Msg.Subject = "Subject"
Msg.Body = "Your text (not html)"
Msg.Send()
Read more »

Localstack

Posted on 2018-05-10

I recently discovered Localstack, which is a local AWS Cloud. You can develop and test your cloud apps directly on your PC locally and offline. It’s pretty handy if you working in a team and each of them need his own S3/SNS/SQS etc..

Windows docker setup

The easiest way to deploy it locally is by running the localstack docker container.
To let the localstack docker run on Windows, is it required to adjust the docker-compose.yml slightly by:

Read more »

Hexo Next Theme - Tags and Categories

Posted on 2018-05-02

If you are using Next Theme for the Hexo blog, and just uncomment the tags and categories lines in _config.yml,
it will generate the tags and categories pages based on tags/categories.
But it will not create the index page itself (which show you all tags/categories pages).
You can easily fix that, by creating “tags” page with:

1
hexo new page tags

And adding type: “tags” to the header of the page.
Additionally you can also disable the comments for this page with comments: false. Example:

1
2
3
4
5
6
---
title: Tags
date: 2018-05-02 00:22:51
type: "tags"
comments: false
---
Read more »

Sibbell Alternative

Posted on 2018-05-01

You might got an email that Sibbell.com will be shutdown and you are looking for alternative (like I did).
Here is a list of the alternative services (in the order of my preference):

  1. https://gitpunch.com/
  2. https://newreleases.io
  3. https://coderelease.io/
  4. https://releaser.richardhagen.no/

If you list is “small”, and you use atom reader to keep you up to date, than you could also subscribe to each projects
by adding /releases.atom to the project URL. e.g.

https://github.com/nodejs/node/releases.atom - to subscribe for NodeJS release updates.

Another way to keep track of the releases is by using Releases. With Releases You can check at any time the latest release version/notes of your Github starred repositories.

Adsense for Hexo Blog

Posted on 2018-03-31

If you have a Hexo based blog, and would like to add adsense ads, you could do it in two ways (auto/manual).
Adding an ad depends strongly on the blog theme you use, and can be slightly different in your theme.

Preconditions are:

  • You have an adsense account

Auto ads

The easiest way is to add ads with “Auto ads”. It will add ad automatically based on your settings, to your page.
Adsense will identify the blog posts and will add “magically” ad to your post.

  • Go to Adsense -> “Auto Ads”
  • Adjust “Global” / or URL specific settings
  • Click on “Setup auto ads” and copy the code snippet

To let it work, we just need to add the script we copied to the html header part of the blog.

The theme “Next“ I use, provide you a custom folder where you can add your own scripts.
The custom folder already has 3 files (head, header, sidebar). Just add the script you got, to the “head.swig” file.

Read more »
1…456

Roman Soldatow

Developer Blog over coding and embedded systems (DIY) projects, and also some tips and tricks around the IT world.
30 posts
16 tags
RSS
GitHub StackOverflow
© 2022 Roman Soldatow