Tip

By Druss , 1 February, 2019

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.

By Druss , 12 May, 2017

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):

By Druss , 18 October, 2016

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:

By Druss , 8 September, 2016

On a fresh Debian 8 (Jessie) install, I found that I couldn't update the package repository using apt because security.debian.org was always timing out. While I initially thought this was because of a mirroring issue oslt, it turns out that it's because I was trying to access it via the IPV6 that my VPS was using. Turns out that the fix is reasonably straightforward. You simply tell apt not to bother with ipv6 and simply use ipv4 … like so:

echo 'Acquire::ForceIPv4 "true";' >> /etc/apt/apt.conf.d/99force-ipv4

By Druss , 14 June, 2016

I recently had to write a script for an app that polled a blog to retrieve content from the latest post. While blog updates are communicated using Atom/RSS feeds, these feeds by default only provide access to the last X items from the blog. The trick to retrieving earlier content is to append ?max-results=1000 to the feed URL to, for example, retrieve the last 1000 posts. I'm sure there's a limit to this number, but it was sufficient in my case.

Hope this helps someone out there.

Tags Old
By Druss , 19 December, 2015

If you encounter,

Could not back up sites directory for drupal

when trying to back up a site using Aegir, then this is because there are some permission issues with some of the files in the sites directory.

In my case, these files were in the private/temp/ directory. Listing all offending files can be done by the following command:

find . | grep private/temp/

If anything other than the usual .htaccess file is found, then that is probably a likely culprit. Checking file permissions should confirm this.

By Druss , 6 December, 2015

Edit: Skip this and scroll down for a proper fix!

Just tried installing MongoDB support for PHP on Kubuntu 15.10 via pecl and ran into the following error message which caused the installation to fail:

configure: error: Cannot find OpenSSL's libraries

While this can probably be fixed using some magickery, in my case, I did not want SSL support on a dev server. I just wanted to get the fucker up and running. To this end, I discovered that the issue was that I was using:

pecl install mongodb

By Druss , 19 November, 2015

So if you've just installed or upgraded to the new version of Kubuntu (Wily Werewolf), you will notice that Skype runs fine but does not appear in the system tray as an icon. The workaround to fix this is to install the sni-qt package, but specifically the 32-bit version of the package (as Skype is a 32-bit app). To do this, open a terminal and type:

sudo apt-get install sni-qt:i386

This will also install a dependency. Once this is installed, quit Skype and restart it to find the familiar green check in your system tray.

Hope this helps :)

By Druss , 26 October, 2015

I wanted to add a timestamp to my MySQL command prompt to keep a track of when the previous command on my screen was executed (my mysql window is open all the time). As per MySQL's docs, this can be done with something like:

mysql> prompt [\w, \R:\m]>
PROMPT set to '[\w, \R:\m]> '
[Sun, 12:30]>

(Note that there's a space after the > in the prompt command.)

The other options for the prompt command are:

Tags Old

Tags

All times are UTC. All content licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.