How To

Some short and handy how tos.

How to make the system notification tray area wider on Windows 10?
This can’t be made with normal settings. But you can make all the icons visible by the simple drag and drop action. Drag and drop the icons from the pop-up part of the tray to the visible tray area.

How to convert multiple mkv video files in a folder with a batch file on Windows 10?
I needed it with little quality loss, with rescaling to 16:9 resolution, with small but ok mp3 audio and also with burned in subtitles (from the source mkv itself).
You need to install ffmpeg then copy ffmpeg.exe in the movies source. Create a bat file there (edit the destination folder) as the script below:

FOR /F "tokens=*" %%G IN ('dir /b *.mkv') DO ffmpeg -i "%%G" -c:v libx264 -preset veryfast -crf 20 -c:a mp3 -af "aformat=sample_fmts=s16" -ar 44100 -b:a 160k -vf "scale=1280:720,setdar=16/9,subtitles='%%G' :si=0" "e:\ST\1\%%G"

How to delete the old Windows 10 folders that won’t delete with normal delete?
After making a fresh Windows 10 installation the old users and Windows.old folders can’t be removed with normal delete action in explorer, even as administrator. This happens mainly due to inherited credentials of owners of the old installation. To some extend the cleanmgr tool helps.
I use these steps and a bat file: rename the folder in order to make sure it is not locked (restart maybe needed), then use the script below to take ownership and give yourself rights to it, and then delete.

takeown /F "ProgramData_" /A /R /D Y
icacls "ProgramData_" /T /grant yourUserName:F
rd /s /q "ProgramData_"

How to configure Eclipse with PyDev, Python and Plotly (Graphs) on Windows 10?
You need to have all on the same bits. Windows 10 on 64bits then also Eclipse and Java.
You can get old Eclipse installations from: https://www.eclipse.org/downloads/packages/release
Get old Java installations (without login to java oracle sign-on): https://www.oracle.com/java/technologies/javase-jdk16-downloads.html and use right-click.
Add JAVAHOME to PATH. JAVAHOME=path to java bin.
Drag and drop https://marketplace.eclipse.org/content/pydev-python-ide-eclipse into Eclipse.
Install Python: https://www.python.org/downloads/ and add to PATH to Python and Python Scripts.
Install plotly, numby, pandas with the Python Scripts command: pip install plotly
Revise: Project -> Properties -> PYTHONPATH and Preferences -> PyDev -> Interpreters -> Python Interpreters (correct location and plotly, etc. versions).

Virtualization & Containerization

Today’s OS virtualization technologies are primarily focused on providing a portable, reusable, and automatable way to package and run apps. The terms application container or simply container are frequently used to refer to these technologies. As the enterprise gravitates toward private clouds, particularly Linux-based clouds, an integrated container stack will be crucial for the delivery of applications and microservices to a diverse workforce. Containers are poised to emerge as an integral component of the cloud, which itself is on the way to dominating IT infrastructure both within and without the data center. Virtualization laid the groundwork for this transformation, but containers will kick it into the high-speed, highly diverse data environment that will propel data productivity for another generation.

DevOps

DevOps promotes a set of processes and methods for thinking about communication and collaboration – between departments of development, QA (quality assurance), and IT operations. In some organizations, this collaboration involves embedding IT operations specialists within software development teams, thus forming a cross-functional team – this may also be combined with matrix management.

Working: do it multi-thread but beware the wait flags. Do not wait approval to do great things. Patch even if not perfect, do not wait for approval, failure is good. Work as a reactive intelligent unit, not on automation pilot. Automation pilot is also when you are too organized!

“In response to a message that it receives, an actor can: make local decisions, create more actors, send more messages, and determine how to respond to the next message received. Actors may modify private state, but can only affect each other through messages (avoiding the need for any locks).”

On software development there are laws on design and productivity, one of it is Conway’s law, and others applicable from the natural world, others really counterintuitive.

Organizations which design systems … are constrained to produce designs which are copies of the communication structures of these organizations.

— M. Conway

Corollary: organize your work, your teams, your organisation to work decoupled, decentralised in an unserialized way and feeling happy.