Drupal: Twitter module & entering a PIN

If you're trying to get your site to post tweets to Twitter using the Twitter module and if, in the process of authorising the application, you end up with a message asking you to go back to your site and enter a provided PIN number, then you are a bloody idiot.

Just as I was.

Drupal Twitter & Oauth modules: exception 'TwitterException' with message 'Read-only application cannot POST'

Today, I was trying to get Drupal to automatically announce new posts on Twitter. To do this, I had to install the Twitter and OAuth modules. Following instructions, I created an application on Twitter and linked my Drupal account to it configuring it to announce new posts upon publishing them. However, this did not work as I ran into the following long-winded error message in the logs:

Eclipse egit error: An internal Exception occurred during push: git-receive-pack not permitted

When using Eclipse (Indigo) earlier today, I ran into the following error message while trying to push my commits upstream:
An internal Exception occurred during push: [URL] git-receive-pack not permitted

Kubuntu Precise: No apport report written because MaxReports is reached already

My upgrade from Lucid to Precise did not go well and I've been battling errors ever since. I ran into the following error when trying to reinstall the php5-gd extension for PHP:
No apport report written because MaxReports is reached already

Shifting the pitch (and tempo) of music rather than retuning your guitar

If you, like me, enjoy playing on your guitar to music from your PC, you will share my annoyance at the fact that bands often tune up or down a step or so for different songs. While it might be simple enough to tune your guitar up and down as and when necessary, I think that everybody will agree that it's a bit of a pain. Here's a solution for people like me who tend to have, well, an indolent approach to their guitar.

mysql respawning too fast, stopped & init: mysql post-start process (5075) terminated with status 1

After my upgrade from Lucid to Precise (and thereby, from MySQL 5.1 to 5.5), I found that my MySQL instance was not running. When I tried to start the service all I got back was that it had failed to start.

I checked the system log (sudo tail /var/log/syslog) to see if I could divine the cause of this issue and I found the following messages:
init: mysql post-start process (5075) terminated with status 1
mysql respawning too fast, stopped

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so'

After an upgrade from Lucid to Precise, my PHP install started complaining about a library:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so'

While I've got a hunch that the actual problem is related to issues I had during the upgrade, turning this error (and other similar ones) off is as simple as going into /etc/php5/conf.d and renaming the file, in this case gd.ini to something like gd.ini.bak.

KTorrent in Kubuntu Precise: Magnet URIs, Right-click not working

After my upgrade to Kubuntu 12.04/Precise Pangolin, I found that while KTorrent worked, it was buggy as right-clicking on torrents did nothing. I blamed this on a configurational mishap during the upgrade and lived with it as I could do perform most operations using the main menu or the toolbar buttons. However, with most sites moving away from .torrent files and toward magnet links, I found that KTorrent wasn't playing nice with the magnet URIs.

J.R.R. Tolkien Interview from 1971 (BBC 4 Radio)

Linux: Copy contents of a file to the clipboard from the command-line

I needed to upload the contents of a lengthy log file to a site earlier today. There was no option to simply attach the file. I was instead asked to just paste its contents. I suppose that I could have opened the file in an editor like Kate and copied its contents to the clipboard. But I became curious as to the possibility of accomplishing this from within the terminal. A little googling revealed the existence of a utility named xsel for this very purpose.

Pages

Subscribe to languor.us RSS