You are here

Tip

Command-line downloading files behind an authentication wall

Submitted by Druss on Sat, 2012-06-30 00:25

I often find myself in situations where I want to download a file from the command-line using tools such as wget. While there are many reasons to doing so, today I needed to do it due to the size of the file and the fact that I needed it on a webserver of mine. So instead of downloading it first to my desktop and then uploading it to my server, I wanted to simply download the file directly from my webserver via the command-line.

Firefox taskbar pinned icon opening window with a duplicate icon

Submitted by Druss on Wed, 2012-06-13 12:22

I accidentally unpinned my Windows 7 Firefox taskbar icon. While I was able to re-add it easily enough, clicking it to open FF resulting in a duplicate icon being spawned which was where FF was opened. I had to google a bit to find a fix and here it is:

Linking Adsense account to Google Analytics account

Submitted by Druss on Mon, 2012-05-21 23:40

The new Google Analytics interface is quite nice if often annoying. One of the many issues I have been having with it is linking the Adsense account for one particular domain to its equivalent Analytics account. Most of the help documentation is for the previous version of the Analytics interface and the newer docs are not terribly helpful at all. The latter simply keeps asking me to go to the Admin tab and linking the Adsense account by clicking on it or something trivial like that.

Git: Deleting remote branches and tags from the commandline

Submitted by Druss on Thu, 2012-05-17 00:50

Since it wasn't working well enough in Eclipse, I had to muddle around for a solution for the command-line. I found the one below and it's nifty:

Deleting a branch:
git push origin :mybranch

Deleting a tag:
git push origin :mytag

IOW, the syntax is identical for both tags and branches.

Cheers!

Tags:

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

Submitted by Druss on Tue, 2012-05-01 21:55

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.

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

Submitted by Druss on Tue, 2012-03-27 15:13

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.

Lucid to Precise Kubuntu upgrade: adobe-flashplugin cannot be removed

Submitted by Druss on Mon, 2012-03-26 22:53

So I tried updating one of my boxen running the Lucid Kubuntu LTS to the new Precise Pangolin beta. During the upgrade, I received an error message stating that adobe-flashplugin could not be upgraded. I ignored it and continued with the upgrade and all went swimmingly. Once the upgrade was completed and I had rebooted, when I tried to run an apt-get update, I ran into an error with respect to the adobe-flashplugin package. When I tried to remove it, it did not work. As a stop-gap measure, I removed a number of packages that depended on it including Firefox and sun-java6.

ACDSee: Changing the background colour of a transparent PNG/GIF image

Submitted by Druss on Sun, 2012-03-25 01:22

Rather than use images with transparencies, it is often preferable to replace transparent pixels with a suitable background colour.

In ACDSee 4, the background colour of transparent PNG files (or any other image file that supports transparency) is by default set to black. There is no immediately apparent option whereby you can change this colour and then save the file as a JPG or similar. After some asking around, I was told that while it is possible to customise this colour, it's a bit of a pain. Here's how:

Windows 7: Changing the location of system temporary files and browser caches

Submitted by Druss on Wed, 2012-02-15 01:11

My windows machine is running off a bum drive and seeing as to how HDD prices are temporarily ridiculously high at the moment, I've decided to attempt a few workarounds to see if I can continue to use this erratically faulty drive for a couple of more months. The issue with the drive is in itself unknown. It just locks up suddenly with the HDD LED continuously on. Windows continues to be active for a while, but not terribly responsive. Sometimes, the issue sorts itself out after a while. Other times, the system reboots.

Pages

Subscribe to RSS - Tip