Sunday, April 03, 2016

The Maximum Log Size specified is not valid when changing Windows Event Viewer log size

When changing Application Windows Event Log maximum size and you are seeing the message below then it is possible that it is set by group policy (local or Active Directory).

---------------------------
Event Viewer
---------------------------
The Maximum Log Size specified is not valid. It is too large or too small. The Maximum Log Size will be set to the following:  1028 KB
---------------------------
OK  
---------------------------

This behavior can be modified allow changes via Windows Event View application. To do so open Group Policy Editor (gpedit.msc). Then navigate to Computer Configuration | Administrative Templates | Windows Components | Event Log Service | Application (for example) then change Maximum Log Size (KB) to Not configured.

Note that you need to be an administrator to make the changes.

Saturday, April 02, 2016

Running Python one liner

Running on liner Python is sometimes just fells awesome, practice with caution though. Below spits out uuid4 using Python one liner.

c:\> ipy -c "import uuid; print(uuid.uuid4())"

Reference(s):
http://stackoverflow.com/questions/2043453/executing-python-multi-line-statements-in-the-one-line-command-line

Disable/Enable network interface using PowerShell

Windows 10 update 1511 sometimes losses connection inside a VirtualBox(5.0.16) VM. Mostly it happens after the host machine recovers from sleep or hibernate. Workaround I have observed so far is to disable/enable the interface. This can get boring overtime, so below is the PowerShell script that I use to automate it.

Note that O is the name of my network adapter.

Enable ClearType using PowerShell

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 Powershell code that enables ClearType which I shamelessly copied from StackOverflow.

Reference(s):
http://stackoverflow.com/questions/5676768/enable-disable-cleartype-in-windows7

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

Thursday, March 31, 2016

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.
  1. Reboot the machine.
  2. During the boot-up press e at the screen below.
  3. Look for the line with linux and add iomem=relaxed
Reference:
https://forums.opensuse.org/showthread.php/514436-X-server-not-starting-after-update

Install minimal GNOME shell on Debian Stretch

#: apt install gdm3 xserver-xorg-legacy
This will install just the GNOME shell, pretty lean and mean (for GNOME standard :)

Note:

  • This is a pre-release of Debian Strech
  • Need to add xserver-xorg-legacy otherwise it will not work, might be related to this bug.