Archive for the ‘code’ Category

Three Oh Five – WordPress Upgrade are out


2011
02.08

The upgrade to 3.0.5 was resleased yesterday. From the release notes:

Two moderate security issues were fixed that could have allowed a Contributor- or Author-level user to gain further access to the site.

One information disclosure issue was addressed that could have allowed an Author-level user to view contents of posts they should not be able to see, such as draft or private posts.

Two security enhancements were added. One improved the security of any plugins which were not properly leveraging our security API. The other offers additional defense in depth against a vulnerability that was fixed in previous release.

Download and upgrade now!

Expire private images to protect privacy on the Internet?


2011
01.11

A new product over at x-pire.net (which redirects to x-pire.de) was unveiled in Germany today, with the aim of embedding expiry times and information into images so that they cannot be viewed after a certain time. In that way there should be a maximum lifespan to digital images on the web to prevent future embarassment, usage etc. At this stage, the prototype is available as plug-in for Firefox (as well as some other browsers in future), and expounds the idea of a ‘forgetful internet’ so that information is not immortal on the web. (more…)

Upgrade to WordPress 3.0.4 – HTML Sanitation bug


2010
12.30

From the WordPress Development Blog:

Version 3.0.4 of WordPress, available immediately through the update page in your dashboard or for download here, is a very important update to apply to your sites as soon as possible because it fixes a core security bug in our HTML sanitation library, called KSES. I would rate this release as “critical.” (more…)

Nudge, nudge, wink, wink – WordPress Upgrade


2010
12.09

… it’s time to go 0-3, I think — WordPress 3.0.3 is out – but the update is really only applicable to remote publishing-enabled systems…

WordPress 3.0.3 is available and is a security update for all previous WordPress versions.

This release fixes issues in the remote publishing interface, which under certain circumstances allowed Author- and Contributor-level users to improperly edit, publish, or delete posts.

WordPress 3.0.2 is out


2010
12.02

Don’t forget to upgrade inplace or download! It is a mandatory security update for all previous WordPress versions, and upgrades are easy :)

Stuxnet lessons – and resources


2010
11.27

Just a quick grouping of resources relating to Stuxnet resources and analysis after the targeted infections of the frequency converters of the Vaasa, Finland based Vacon (though Vacon publicly denies this) and Iranian company Fararo Paya.

The bottomline takeaway – never use default passwords (partical attack vector of the PLCs and SCADAs), and keep systems patched (4 zero-day Windows-based attacks). And don’t allow USB devices on a production network (the entry point of the 0.5Mb virus written in C and C++)… (more…)

Proxying all Linux Traffic – set web access for Ubuntu behind a proxy


2010
10.22

So that it’s documented… I’m using port 8080 as the default port as the likelyhood of your upstream proxy being on 8080 is high – else, typical proxy ports are, of course, 80, 800 (transpartent), 8000, 3128 (squid)

To force your server to force web traffic via a proxy, just two quick things to set – in /etc/environment, export one (or two) variables: (more…)

Search and view gzip’d files


2010
10.21

You knew it already – but I keep forgetting – the power of zgrep and zcat both of which behave as their z-less counterparts.

So, to search a gzip’d file, you can simply zgrep <term> <filename.gz>, or to cat/view it, zcat <filename.gz>

Good to come back to in case of impending forgetfulness…

Intel Gigabit Ethernet Card on an old kernel?


2010
10.21

For self-reference, mainly:

For the Intel Corporation 82574L Gigabit Network Connection on an old kernel that doesn’t have the drivers compiled into it – get the driver and

make install

it on the platform you’re on, and to be sure (if it doesn’t get done for you) to copy to /lib/modules/2.4.36/kernel/drivers/net/ (your kernel may vary, this is an example only) (more…)

Firefox: Paste HTML code from one child frame to parent text-box – src stripped


2010
09.10

Here’s something fun: use Firefox 3.6.9 to have a set of Javascript code in a child frame append HTML code to a text box in the parent frame, and content of the string is modified:

what was

<img src="foo.jpg" alt="bar" width="1" height="1" />

becomes

<img alt="bar" width="1" height="1" />

which is pretty pointless… (more…)

Search all files for TEXT in bash


2010
08.09

To find all files by file name containing THE TEXT I SEEK:

grep -lir "THE TEXT I SEEK" *

(more…)

WordPress 3.0.1 – I’m sure you’ve upgraded already


2010
08.09

I’m sure you’ve done it already, but WordPress 3.0.1 (a maintenance release) is out since Friday and you should have upgraded (and updated the database) already by downloading the 3.0.1 version.

List of revised files:

(more…)

On the fly compression of a tar-ball or mysqldump


2010
07.14

Just to jot it down lest I forget:

Tar’ing the local directory and streaming the tarball straight to gzip:

tar cvf - . | gzip > target.tar.gz

MySQLdump’ing directly to gzip: (more…)

[SOLVED] qlikView installation on Windows 7 – installation error


2010
07.13

You may encounter the following error on installation:

Installation ended prematurely because of an error

when trying to install 32-bit or 64-bit qlikView on Windows 7. With or without UAC (User Access Control), installation fails.

Suggestions to (re-)install vbscript.dll using regsvr32 vbscript.dll in the c:\windows\system32 (64-bit equivalent) directory didn’t help.
(more…)

End of life for Ubuntu versions


2010
07.12

In the story relating to release upgrades for Ubuntu, below the end-of-life table for the Ubutu Releases from the Ubuntu Wiki – just to have it all in one place; I’m only including the LTS (long-term support) editions, as these should be the only ones deployed on live production systems. In the meantime, Maverick Meerkat is due in October 2010, supported for 2 years. (more…)

VMWare console and Firefox 3.6.6 – Workaround


2010
07.06
VMWare Plug-in Error - Cannot access virtual machine console

VMWare Plug-in Error - Cannot access virtual machine console

As the VMWare plugin does not work with Mozilla‘s Firefox 3.6.6 – and as it cannot launch a virtual machine console – you’ll have to use a workaround. This post results from the error I kept receiving:

Cannot access virtual machine console. The request timed out.

The paths are applicable to your OS and version – the below is for Vista 64-bit. You can add a direct link to the VMConsole on your desktop (much easier, actually). (more…)

IOL with some issues?


2010
07.05

IOL – the online offering of Independent Newspapers – seems to have issues — only two stories show up – one about Nigeria reversing their ban on its soccer team (and announcing that the football federation said it would disband and rebuild the side) and another after a very strange story about the Gatsby International Health Spa, and the search they performed on the suspicion of theft… (more…)

Firefox 3.6.6 Crash Protection – crashing?


2010
06.28

Is it just me or is the new version of Crash Protection which pushed itself via a new release of Firefox up to 3.6.6 marking every instance of Flash as crashed? On the one hand, this may be a little salute to the Flash – Apple situation (though I hardly think it likely).

Am I the only one who’s experiencing this? Hmmm…

Oh, yes – remember to make sure your add-ons are up-to-date

Secure SSH Tunneling – at no extra cost


2010
06.19

Assuming you have a Windows machine and you interact with Linux boxen at any stage, chances are high that you have used and interacted with PuTTY at one stage or another. That beautiful, less than 2 sec, 444K download of a tool (currently at version 0.60 beta) allows you to SSH, COM-direct, RSH, Telnet etc from the desktop. Both examples below relate to MySQL port tunneling.

SSH Tunnels using the Bash command line

Running on a proper machine (or even a Windows with Cygwin or a Mac Terminal) allows you to quickly tunnel a session to a remote server: (more…)