Saturday, December 19, 2020

AWS Cognito UI Customization

AWS Cognito gives quite poor options to customize the auth popup



We cannot add new elements, cannot create new inputs for extra css styles, etc. But there is way to make it a little bit more flexible.

Friday, October 16, 2020

Display 'Show Desktop' icon in the taskbar Windows 10

In Windows 10 I always suffered without the old good thing:



Since Windows 98 through Windows XP and Windows 7 it was becoming smaller and harder to find and finally disappeared completely in Windows 10. So, let's bring it back!

Tuesday, April 14, 2020

Chrome Extension - Mouse Gestures

Google Chrome extensions aim to add extra functionality to the browser and/or separate pages. The example below demonstrates how to create a simple extension from scratch. The functionality will be implemented - navigation back and forward with mouse gestures.

The core component of every Chrome extension is the manifest.json file. So let's create the base version of the file:

{
  "name": "Mouse Gestures",
  "version": "1.0",
  "manifest_version": 2,
  "browser_action": {
    "default_popup": "index.html"
  },
  "content_security_policy": "script-src 'self' 'sha256-GgRxrVOKNdB4LrRsVPDSbzvfdV4UqglmviH9GoBJ5jk='; object-src 'self'"
}

As declared in the manifest.json file, we have to add the index.html file. It could be any simple 'hello-world' html file like this:

<!DOCTYPE html>
<html lang="en">
<body>
    Hello, I am an awesome chrome extension!!
</body>
</html>

So, the first version of the extension is ready, let's install it. Open chrome://extensions/ page, turn on the 'Developer mode' toggle on the top panel, then press the 'Load unpacked' button and select the folder with the extension we just created. The new extension appeared on the list and the 'M' icon appeared on the top panel too. If we click it we can see the popup:


Sunday, February 9, 2020

Delete old files with Windows Task Scheduler and PowerShell script

1. Creating the PowerShell script.
2. Adding the task to the task scheduler.
3. Export the task to another machine.

Sunday, January 26, 2020

Generate XLSX file using C# and OpenXml package

The Following features are implemented:

  • Cell formatting
  • Cell colouring
  • Borders
  • Columns custom width
  • Formulas
  • IgnoredErrors

The resulting xlsx file looks like this:

Monday, January 20, 2020

Setup react-native for Android on Windows 10 and build .apk

As being just a newbie at react-native, I ran into many obstacles trying to setup everything for it. I spent quite a while resolving all issues, googling every bug and making my first 'pomodoro' app working. So I decided to track some steps here I did just in case I forget them and I can to refresh my memory reading this post :). Almost everything here is as is, without detailed explanation. But it works. At least for me.

Tuesday, January 7, 2020

Implement TabPages in Vanilla JS and CSS

Today, as the lunch break challenge I decided to create Tabs in Vanilla JS and that's what I made:

About

In descriptive writing, the author does not just tell the reader what was seen, felt, tested, smelled, or heard. Rather, the author describes something from their own experience and, through careful choice of words and phrasing, makes it seem real. Descriptive writing is vivid, colorful, and detailed.

Good descriptive writing creates an impression in the reader's mind of an event, a place, a person, or a thing. The writing will be such that it will set a mood or describe something in such detail that if the reader saw it, they would recognize it.

To be concrete, descriptive writing has to offer specifics the reader can envision. Rather than "Her eyes were the color of blue rocks" (Light blue? Dark blue? Marble? Slate?), try instead, "Her eyes sparkled like sapphires in the dark."

Details

To be evocative, descriptive writing has to unite the concrete image with phrasing that evokes the impression the writer wants the reader to have. Consider "her eyes shone like sapphires, warming my night" versus "the woman's eyes had a light like sapphires, bright and hard." Each phrase uses the same concrete image, then employs evocative language to create different impressions.

To be plausible, the descriptive writer has to constrain the concrete, evocative image to suit the reader's knowledge and attention span. "Her eyes were brighter than the sapphires in the armrests of the Tipu Sultan's golden throne, yet sharper than the tulwars of his cruelest executioners" will have the reader checking their phone halfway through. "Her eyes were sapphires, bright and hard" creates the same effect in a fraction of the reading time. As always in the craft of writing: when in doubt, write less.

n this excerpt from Jamaica Inn by Daphne du Maurier, notice the writer's choice of adjectives, adverbs, and verbs. Granite. Mizzling. Du Maurier's choice of words allows the reader to almost feel the weather occurring on the page.

Contacts

First name:

Last name:

A paragraph without a header.


The HTML is the following: