Looks like people better get playing the original Gears leading up to November!!! (I know I will be…
)
Gears of War 2 will feature ‘linked Achievements,’ meaning that Achievements earned in the original Gears will help unlock bonuses in the sequel.
Epic’s Cliff Bleszinski took the stage at Comic-Con to demonstrate to a live audience the E3 Sinkhole level and describe a new “linked achievements” feature for Gears 2 where achievements unlocked in the first Gears game would open features in the upcoming sequel.
He offered three examples of how the system would work:
- Complete Act One in Gears Of War and receive a playable Anthony Carmine in Gears of War 2
- Find 10 COG tags in Gears Of War and get Minh Young Kim in Gears of War 2
- Kill Raam in Gears Of War and earn a playable Raam in Gears of War 2
Questions such as whether all Gears of Wars achievements will be linked to the sequel and what other goodies can be grabbed besides characters won’t be answered until closer to the game’s November 7 release.
via The Escapist
The BBC has announced that it is working on a successor to Tomorrow’s World. This was always one of my favourite shows as a child, (yeah, I know I’m a nerd
), and I’m glad to see something like this making a return. We need some form of popular science show on TV, otherwise the vast majority of people will become ignorant of even the basics of science - but that’s a rant for another day…
Just a month after Sir David Attenborough said it was “very, very sad” that Tomorrow’s World had been axed - five years ago - the BBC has today revealed it is making a “new popular science format for the early evening” on BBC1.
A new science show is one of the BBC’s top priorities for BBC1 over the next year, according to its annual statements of programme policy for all its TV, radio and online services, published today. The SOPPs lay out the corporation’s programming plans for the year to the end of March 2009.
via The Guardian
A great little command-line tool for Leopard:
osx-trash manipulates the Mac OS X trash from the command line, just like the Finder does. It uses AppleScript via Scripting Bridge on top of to communicate with the Finder. You can move files to the trash, empty the trash, and list items currently in the trash.
project page via
You will have noticed this effect out on your travels on the internet - a text input field has some default text in it (often in a slightly dimmed colour), and when you click on the text box, default text disappears and then reappears when you click away from the box. It happens on the search box to the right here too.
I needed this same effect at work today so a quick Google came up with this great blog post - a lovely example of the exact effect I was looking for in both raw javascript and a version using the jQuery library.
The script searches the page that it’s inserted on for all form input fields that have a class of ‘default-value’ applied. Each form input field must also have a unique ID.
When the page loads the script changes the color of the text in the text fields it has found to the value of ‘inactive_color’. If the user clicks on the input field, the default text is blanked, and the colour changed to ‘active_color’. If the user clicks away from the input field, i.e. the input field loses focus, the value of the text field will revert back to the original text, and the colour will change back to ‘inactive_color’, unless the user has entered some other text.
Here’s a copy of the jQuery version for my own personal notes, never know when that could be useful:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| /*
* Written by Rob Schmitt, The Web Developer's Blog
* http://webdeveloper.beforeseven.com/
*/
var active_color = '#000'; // Colour of user provided text
var inactive_color = '#999'; // Colour of default text
$(document).ready(function() {
$("input.default-value").css("color", inactive_color);
var default_values = new Array();
$("input.default-value").focus(function() {
if (!default_values[this.id]) {
default_values[this.id] = this.value;
}
if (this.value == default_values[this.id]) {
this.value = '';
this.style.color = active_color;
}
$(this).blur(function() {
if (this.value == '') {
this.style.color = inactive_color;
this.value = default_values[this.id];
}
});
});
}); |
However, we don’t use jQuery at work, our entire site is based around Prototype and script.aculo.us, so I did a bit of butchering and here’s the code adapted to use Prototype:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| /*
* Written by Darren Oakley
* http://hocuspokus.net
*/
var active_color = '#000'; // Colour of user provided text
var inactive_color = '#999'; // Colour of default text
Event.observe( window, 'load', function () {
var default_values = new Array();
$$("input.default-value").each( function (s) {
$(s).setStyle({ color: inactive_color });
$(s).observe( 'focus', function () {
if (!default_values[s.id]) {
default_values[s.id] = s.value;
}
if (s.value == default_values[s.id]) {
s.value = '';
$(s).setStyle({ color: active_color });
}
$(s).observe( 'blur', function () {
if (s.value == '') {
$(s).setStyle({ color: inactive_color });
s.value = default_values[s.id];
}
});
});
});
}); |
Now all you need to do is give your input text fields a unique id, and the class of ‘default-value’, then the script will take care of the rest.
Following up from my old guide to installing PostgreSQL (for Ubuntu 7.10), I thought i’d better do an update for the latest releases…
This quick walk-through are my notes for installing the PostgreSQL database server and the PgAdmin administration application on Ubuntu Linux, and also set up the server so it allows access to other PC’s on your network.
Before we move on, this guide was tested on the current release of Ubuntu Linux, (8.04 - Hardy Heron) and PostgreSQL 8.3, but it should also be applicable to older versions (of Ubuntu and PostgreSQL) and other Debian based distros.
Continue reading ‘Install PostgreSQL on Ubuntu 8.04’
Time to get that pre-order on, this looks like it’s going to be awesome…
That’s it, I REALLY want an iPhone now…
You don’t need Steve Jobs’ permission to watch TV on your iPhone any more. And you don’t need to pay the cable company twice. A native Orb client for the iPhone and iPod Touch popped up on the installer networks overnight, and Orb confirms that it’s official.
The client software allows you to watch live TV on an iPhone or Touch wherever you are, in addition to your music. You’ll need a TV card or adaptor for your PC, of course, to get the live TV. So provided you have an internet connection, there’s no need to perform DIY transcoding using software such as Visual Hub. The client will even transcode the video stream nicely for 2.75G Edge networks. Orb does in software what Sling Media does in hardware.
via
The new version of Ubuntu is out, (as if you haven’t heard that by now), so that means a fresh install to play about with and working just the way I want!
One of the tools that I currently need (for the thesis work) is R and the BioConductor libraries. So here’s a quick run down on getting them up and installed on Hardy…
First up, run these commands in a terminal:
sudo apt-get install build-essential g77 gfortran
sudo apt-get install refblas3 refblas3-dev zlib1g-dev
sudo apt-get install r-base
This will then install the R base packages and some of the BioConductor packages, along with the gcc and fortran compilers and some other libraries that will be required for the next step.
sudo -s
R
Now at the R prompt, type the following…
source("http://www.bioconductor.org/biocLite.R")
biocLite()
Now sit back for a few minutes while your system configures BioConductor for you.
Was round the in-laws the other day and couldn’t help but notice this one in the garden…
A fine way to retire an old web browser. At least it’s found some use…
Latest Comments
RSS