You are here

Tip

Windows: Turn off all your monitors via the command line

Submitted by Druss on Wed, 2021-11-24 19:26
  1. Create a batch file named turnoff.bat on your desktop.
  2. Open it and add the following line
    powershell (Add-Type '[DllImport("user32.dll")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2)
  3. Save the batch file.
  4. Run the file to turn off your screens.There will be a brief command-line window that pops up during execution.

Tested on Windows 10.

Finding out which DNS servers are currently being used in Linux (Ubuntu)

Submitted by Druss on Tue, 2020-12-08 21:23

So, I've been facing some DNS issues with my Ubuntu box and needed to do some debugging. While I was certain that my router was assigning the Google DNS servers (8.8.8.8 and 8.8.4.4) via DHCP to my machine, I needed to make sure that they were actually being used. Usually, I would be able to tell by looking at the output of /etc/resolv.conf oslt. However what I found in resolv.conf was

Linux: Computer immediately restarts after shutdown

Submitted by Druss on Tue, 2020-07-21 02:53

So I have a Xubuntu box, an old PC that was running Windows previously. All is peachy with the Linux install bar one thing: every time I shutdown the system, it shuts down fine, but immediately restarts again. This wasn't happening with Windows and appeared to be an issue particular to Linux or Ubuntu.

Youtube playing OK in browsers, but other embedded videos do not

Submitted by Druss on Sat, 2019-03-30 23:23

On a fresh installation of Windows 10, I found that Youtube was working just fine, but other embedded videos on sites like Twitch and Reddit were not. I thought it had something to do with HTML5 or flash, but as it turns out, it was because I had chosen the wrong version of Windows during the installation process. Choosing Windows Professional N or, basically any N version, results in video issues primarily due to the lack of appropriate codec and DRM support. Even Netflix will very likely not play. This also affects all browsers.

What does SLAM support do for robotic vacuum cleaners?

Submitted by Druss on Fri, 2019-02-01 14:31

Lots of guides and specifications for robotic vacuum cleaners like the Roomba, Xiaomi Roborock, Dyson, etc. talk about the product being "SLAM-based" without offering any explanation as to what that is. Well, SLAM stands for Simultaneous localization and mapping and it is used in robotics to, as the name suggests, construct and update a map of an unknown environment while simultaneously keeping track of an robot's location within it.

Hearthstone: Playonlinux install suddenly not working after update

Submitted by Druss on Thu, 2018-01-11 01:57

If your WiNE or Playonlinux installation of Hearthstone or Blizzard's Battle.Net client has suddenly stopped working after an update, one thing to try is to check if a newer version of Wine is available and install that. This usually gets me out of trouble with my Playonlinux installation.

Eclipse svn commit error: "svn: E200007: CHECKOUT can only be performed on a version resource [at this time]."

Submitted by Druss on Sat, 2017-05-13 00:10

I just ran into the following error while trying to commit (a previously working project) in Eclipse Neon:

svn: E200007: Commit failed (details follow):
svn: E200007: Commit failed (details follow):
svn: E200007: CHECKOUT can only be performed on a version resource [at this time].
svn: E175002: CHECKOUT request failed on '/svn/foo/!svn/rvr/1337/trunk/site/bar.example'
svn: E200007: Commit failed (details follow):

Garlic and warts

Submitted by Druss on Wed, 2016-10-19 00:36

So I have this weird little growth on my arm and my guess is that it's a wart. I remember someone telling me that rather than going in for ointments and other applications, I should just use garlic. There's a lot of stuff out there on this, but in this write-up, I'm going to only collate information on this subject from reputable (or relatively reputable) sources.

From Townsend Letter for Doctors and Patients. .243 (Oct. 2003): p53. by Dr. Alan R Gaby:

Pages

Subscribe to RSS - Tip