Skip to main content

Posts

Enable ClearType using Python

When I remote desktop to Windows machines most of the time the fonts just looks ugly. This can be improved by enabling ClearType and I do this every time I connect to a box which I do several times a day. Below is a Python code that enables ClearType which I shamelessly copied from StackOverflow. Reference(s): http://stackoverflow.com/questions/5676768/enable-disable-cleartype-in-windows7

OpenSUSE Tumbleweed does not boot to GUI after upgrade

OpenSUSE Tumbleweed kernel update as of 3/31/2016 does not boot to the UI anymore. This was observed on VirtualBox 5.0.16. Workaround is to pass iomem=relaxed to the kernel, see below for details. Reboot the machine. During the boot-up press  e at the screen below. Look for the line with linux  and add iomem=relaxed Reference: https://forums.opensuse.org/showthread.php/514436-X-server-not-starting-after-update

Howto: Installing pywin32 on Python 3.5.1 64-bit

Installing Python for Windows Extensions on Python 3.5.1 64-bit C:\>pip install pypiwin32 If you are getting the following error message in importing win32gui install VC++ 2010 redistributable. >>> import win32gui Traceback (most recent call last):   File "<stdin>", line 1, in <module> ImportError: DLL load failed: The specified module could not be found. Reference(s): http://sourceforge.net/projects/pywin32/ https://www.python.org/downloads/

Install minimalist GUI on top of Debian Stretch netinstall

LXDE is pretty lightweight desktop environment. There are other lighter weight DEs out there mind you but for most practical purposes LXDE serves most of the modern x86 machines. To install minimalist (just the core) LXDE on Debian Strech, do: #: apt-get install lxde-core lightdm Note: This will also install a lighter version desktop manager LightDM This is a pre-release version, it may change without notice.

Allow changes to SQL Server table schema if the changes require table re-creation

Modifying an  SQL Server table that requires the table to be re-created is not allowed by default using SQL Server Management Studio for good reason. For example, changing a column of type nvarchar from 10 to 20 will result with the following error: Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created. To allow schema change for the above situation using SSMS, do the following: Open SSMS (SQL Server Management Studio). I am using SSMS 2014.  For good measure, back-up the database. Navigate to Tools | Options .  Click on Designers . Remove the check box on Prevent saving changes that require table re-creation .  Click on OK .  Proceed with changing the table schema. Again for good measure, enable Prevent saving changes that require table re-crea