How to install Python of required version using PowerShell

by Dmitry Kirsanov 26. February 2023 11:46

 

One of the software packages I’m using, namely Stable Diffusion, requires a particular version of Python to work… Stable. Hence I made a little PowerShell script that would ensure that if there is a Python of lower version or it’s not installed, then it would be downloaded and installed automatically. Here it is: More...

Software Architects are endangered species now. But not juniors.

by Dmitry Kirsanov 16. February 2023 16:18

 

Artificial Intelligence (AI) has been a buzzword in the tech industry for the past decade. The advancements in AI have transformed the way we live and work, but it has also caused a lot of anxiety among developers who fear that AI may take over their jobs. However, the truth is that AI is not a threat to junior software developers, but rather… software architects. More...

Tags:

Analytics

The Hidden Gem of Computing: Windows 10 LTSC 1998 - The Secret OS that Revolutionized Gaming

by Dmitry Kirsanov 1. April 2022 18:38

When we think of classic operating systems, Windows 95 and 98 come to mind. However, few people know about the hidden gem that was secretly developed by Bill Gates himself - Windows 10 LTSC 1998. This elusive OS has remained under wraps for decades, but now its incredible story can finally be told. With its remarkable features and unparalleled gaming capabilities, Windows 10 LTSC 1998 has become the holy grail for tech enthusiasts and gamers alike.

The Secret Origin of Windows 10 LTSC 1998:

It all began in the late 1990s when Bill Gates, the visionary founder of Microsoft, was working on an ambitious project. He wanted to create an operating system that would revolutionize the world of computing and gaming. With the help of a select group of Microsoft's top engineers, Bill Gates personally oversaw the development of Windows 10 LTSC 1998.

The team behind this secret project were instructed to think outside the box and push the boundaries of technology. What they created was a revolutionary OS that was light years ahead of its time, so much so that it would be incomprehensible to the average user of that era.

Unparalleled Gaming Performance:

Windows 10 LTSC 1998 was designed with gaming in mind. Bill Gates, a visionary who understood the potential of gaming as a mainstream form of entertainment, ensured that the OS had features that would maximize the performance of games. As a result, this operating system provides an astounding 50 to 80% increase in frames per second (FPS) compared to contemporary systems of the time.

The secret to this performance boost lies in the polished code that Bill Gates personally fine-tuned. By eliminating unnecessary bloatware and optimizing the OS for gaming, Gates was able to create an operating system that ran like a well-oiled machine, delivering unparalleled performance even on hardware of the time.

The Treasured Rarity:

Despite its incredible capabilities, Windows 10 LTSC 1998 was never released to the public. It was deemed too advanced for the market at the time, and Microsoft feared that such a release would alienate their user base. As a result, Windows 10 LTSC 1998 was shelved, and only a handful of copies were ever produced.

Over time, rumors of this mythical operating system began to circulate within the tech community. Some claimed to have seen it in action, while others dismissed it as an urban legend. Those who were fortunate enough to obtain a copy of Windows 10 LTSC 1998, however, became part of an exclusive club, with their prized possession becoming the envy of gamers and tech enthusiasts alike.

Conclusion:

The story of Windows 10 LTSC 1998 serves as a testament to the genius of Bill Gates and the innovative spirit that has driven the tech industry for decades. While it may never be released to the public, its legacy lives on in the hearts of those lucky enough to experience its unrivaled performance. As the world of technology continues to evolve, one can only wonder what other hidden gems are waiting to be discovered.

How to remember everything during online meeting

by Dmitry Kirsanov 25. October 2021 08:01

Pandemic brought one thing that changed the way we go through our daily office lives. And that’s – endless online meetings. At some companies you may be lucky to have just one per day, personally I’ve got the worst possible experience, as far as online meetings go (or, at least, my imagination refuses to show how it could be any worse) – non-stop 9 to 5.

Yes, such experience would be a 100% fault of your employer, and it’s not what you should be going through. A day of such experience draws all energy out of you, and often you may remember only as much as there was written in your calendar and notes. But there is a light at the end of this tunnel. More...

What to do when your phone is lost or stolen

by Dmitry Kirsanov 8. April 2021 19:51

Mobile phones are siblings of old day PDAs, but store vast amount of data. With smart cards up to 1Tb, access to cloud storage, e-mails, messengers and social networks, possessing your phone could potentially have consequences far beyond the obvious financial loss.

In this post I will attempt to address the risks and provide the way to create your own, personal emergency protocol for cases of your phone being lost or stolen.

More...

Tags:

Security

Leaving Google, a comprehensive checklist

by Dmitry Kirsanov 8. February 2021 19:56

 

If, like many other people, you are playing with the idea of leaving all the Google services behind, and switching to better alternatives, this guide is for you. It’s relatively easy to assemble a walk-through for ditching old accounts and setting up new ones, but if you aren’t actually in process of doing it, and have your very own reasons for it, that guide won’t do much good to anyone. Hence I am doing it, going through the whole process, and documenting it as I do. I hope it will help you to migrate as well.

In short, we’ll go into full Zero-Trust mode with Google, the way they should have been treated from the start.

The Why

For the sake of leaving the argument on not-very-relevant topic behind, I’ll say that every one of us has his own reason. When speaking about the reasons to migrate from, Google is a gift that doesn’t stop giving. Security, privacy, usability, even politics – there are plenty of reasons to choose someone else.  I’ll describe my reasons simply to illustrate my case, you don’t have to have any of these problems with the company to migrate.

More...

Two Generals problem

by Dmitry Kirsanov 27. July 2020 20:00

There is a logical problem, a thought experiment for emulating the communication over an unreliable link, called “the Two Generals’ Problem”. In case if, like most people, you never heard of it, here is the definition:

Two armies, each led by a different general, are preparing to attack a fortified city. The armies are encamped near the city, each in its own valley. A third valley separates the two hills, and the only way for the two generals to communicate is by sending messengers through the valley. Unfortunately, the valley is occupied by the city's defenders and there's a chance that any given messenger sent through the valley will be captured.

While the two generals have agreed that they will attack, they haven't agreed upon a time for attack. It is required that the two generals have their armies attack the city at the same time in order to succeed, else the lone attacker army will die trying. They must thus communicate with each other to decide on a time to attack and to agree to attack at that time, and each general must know that the other general knows that they have agreed to the attack plan. Because acknowledgement of message receipt can be lost as easily as the original message, a potentially infinite series of messages is required to come to consensus.

The thought experiment involves considering how they might go about coming to consensus. In its simplest form one general is known to be the leader, decides on the time of attack, and must communicate this time to the other general. The problem is to come up with algorithms that the generals can use, including sending messages and processing received messages, that can allow them to correctly conclude:

Yes, we will both attack at the agreed-upon time.

Allowing that it is quite simple for the generals to come to an agreement on the time to attack (i.e. one successful message with a successful acknowledgement), the subtlety of the Two Generals' Problem is in the impossibility of designing algorithms for the generals to use to safely agree to the above statement.

It’s even called a “paradox” for “inability to find a logical solution” to this problem. Because the proposed solution is to send confirmation for confirmation, and messenger could disappear.

If so many people are saying, that there is no solution, then perhaps there isn’t one, right? More...

Tags:

Other

HOSTS File Editor

by Dmitry Kirsanov 4. September 2019 10:57

HOSTS file is a text file in your Windows system that contains name resolution pairs to quickly resolve domain and LAN computer names, or ensure that resolution fails and host in question would become unreachable. We use it to speed up access to intranet hosts, block advertisement and telemetry websites, and in software development – to substitute real world hosts with local copies.

I have to edit HOSTS file often and on different computers. Supply IP addresses for local servers, block connection to Facebook, disable adverts in some apps, that kind of stuff. Well edited HOSTS file makes Windows work faster and helps avoiding problems with connectivity.

One problem, though – it’s over 60Kb large in my case, and adding / removing / temporarily disabling records - takes time. Not much, but more than I’d like to spend on that task. Therefore I felt the need for a command line editor – a single-command application, that would allow to perform the full range of operations on that file and make whole editing process a fraction of a second. And here it is. More...

Fast Backup for SD Cards

by Dmitry Kirsanov 12. July 2019 08:59

If you are photographer (as in – snapping pics often) or have dashcam / drone / similar photo/video device, you may know the problem of having a one-button copy of just the files you need to where you need them.

For example, I have a directory in home NAS (Network Attached Storage), where I keep videos from car dashcam, so if I would suddenly receive a fine for speeding, I could prove that I didn’t. I don’t like bringing the dashcam  microSD card from garage, as there is a good chance I’ll forget to bring it back, and will waste time later. Ideally would be to move the card from dashcam, insert it into the phone or tablet using external card reader, and press the button to copy only the video files.

In case of photo camera, I’d like to do the same – just press the button, and let all jpg and mp4 files be moved to local drive, hence removing them from SD card.

In case of dashcam, I’d like to keep the last video file intact. The reason is – the GPS device may take awhile to refresh the time from satellites, and will not reset the time if there is at least one video file with newer timestamp.

In case of force majeure I would want to only copy files that were made during last few minutes, and that should be an option too.

Since I want to copy files from external card, I’d like that card to be automatically dismounted when done. In some cases I’d like the local copy of files to be encrypted (say, if copying to relatively public computer, or the nature of images is sensitive). And if I’m copying them to cloud drive, I may want to reduce the bandwidth to particular amount – e.g. even if the card is full, move only 5 Gb a time.

And last, but not least, since we have so many options, and they are likely to be unique per source, I’d like to save this configuration to each external card, so it would be loaded next time the card is inserted. I’d also like this configuration to be editable in normal text editor, hence let it be a JSON file.

I tried to find an app that would do this, and even asked professional photographers, but it appears that they do it manually. There is also a hardware button on some NAS that copies all files from external drive, but you can never be sure it happened, and files aren’t removed from external drive. So, once again, I had to do it myself.

More...

Tags:

Fixing yet another problem in Google Chrome

by Dmitry Kirsanov 10. June 2019 07:31

While digging into the problem with Chrome extension today, found that Chrome took around 700Mb of space for temporary files, which looked like CrashpadMetrics.pma~XXX.TMP. These files are 1Mb in size each, and there were literally over 700 of them.

Chrome creates these files to send to Google even if you disable this feature. Files aren’t sent, but created and never cleaned up.

I have a cleanup batch file on each computer, that executes every week, and it deals with drive(s) cleanup, synchronisation and stuff. I added this line:

ttl.exe "C:\Users\[my user name]\AppData\Local\Google\Chrome\User Data" /subs /days:30 /mask:*.tmp

This uses my TTL application to delete files older than 30 days. I could simply write “del crash*.tmp”, but what if there is a temporary file that’s currently being written, or might be used. Hence the TTL and generous 30 days.

The first run freed 685Mb on system drive.