Archive for September, 2011

IQ and religious adherence

Sunday, September 18th, 2011 | Religion & Politics, Science

My friend Stuart Ritchie, who is currently working towards his PhD in Psychology at the University of Edinburgh, was recently involved in a writing a paper looking at the relationship between IQ and religious adherence.

While you will find a far more in depth write up on Stuart’s blog, the key points found that there is a correlation between higher IQ and lower scores in five of the six measured used to gauge people’s religious belief.

The only factor which did not see this pattern was people who just described themselves as “spiritual.”

Interestingly, another of my friends is currently researching this area, and the results so far suggest that there is a link between describing yourself as spiritual is correlated with bad parenting – but I can’t comment further on this until the research has been completed.

Lifting the curtain

Saturday, September 17th, 2011 | Life

Since joining Facebook in 2006 (that’s over five years ago now – I genuinely don’t think I remember a time before Facebook), I’ve always had a policy of not accepting family members as friends.

There is good reason for this. Thanks to the innovative tagging features Facebook keeps introducing, your Facebook profile is full of photos, notes and status updates about just how drunk you where when you threw up in what you thought was a bathroom but later turned out to be something completely different. Nobody wants their family to see that side of their lives.

However, in the spirit of being more open, I’ve decided to rescind this policy. For better or for worse – I guess we’ll find out soon!

Paying for Sex

Friday, September 16th, 2011 | Life, Thoughts

On Wednesday, we headed down to Sheffield Humanists for their talk by Dr Natalie Hammond, “Paying for Sex.” She had recently completed her PhD on the subject, specifically men who pay women for sex and the law surrounding it.

After the talk, there was a group discussion which took a while to get going, initially with people discussing the laws surrounding the topic, but finally someone got up and moved the discourse to where we really wanted it to be – the ethics.

Naturally, being a progressive group, most people were in favour of women having the right to do as they wish and rational enough to see that it is just the same as selling your body to any labour (I sold my body to McDonald’s, doing hard labour for far less money for example), and supporting decriminalisation so that victims are not afraid to come forward and the industry can be properly regulated.

A good parallel between this with the law surrounding abortion. Even if you disagree with abortion, it still makes sense to legalise it because of the harm caused by back street abortions and driving the practice underground.

Similarly, the harm caused in prostitution is nothing to do with any inherent problems in the industry, it’s the fact that we drive it underground and as a consequence the pimps, the human traffickers, the drugs, etc, etc get involved and that is what causes the problems.

Luckily, there were a few people in the audience with more regressive views, so some great debate got going :D.

Your first Java applet

Friday, September 16th, 2011 | Programming, Tech

In previous columns we have fiddled about with some basic javascript so I thought this month we we do something a little different. We’re going to write a simple java applet. Yes you guessed it, its going to be one of those annoying “Hello World!” applets that every single damn language makes you do to get started. The sad fact is though is that they are great a teaching people the basics.

Article Overview

* Before we start
* The applet overview
* Creating the Java Source Code
* Compiling the source code
* Running the program

Before we start

Since we are going to be compiling the java code for the applet it means your going to need The JavaTM 2 Platform, Standard Edition. Its about 37 MB so it may take a while if your on a 56k modem. Use a download manager such as Flash Get. Also – make sure you download the SDK and not the JRE. You can download it from the following website.

http://java.sun.com/j2se/1.4/download.html

Now no one can say I don’t work hard for you. I wish someone had sold me I needed that while I was wondering why it wasn’t working. Your also going to need to set the PATH perminantly unless you know what your doing. Do to the documentation below and follow the steps to settings your path. You need to add some text to the path command rather than replace it by the way. Again I wish someone had told me that. The documentation on how to do this can be found at the following website.

http://java.sun.com/j2se/1.4/install-windows.html

The applet overview

An applet requires a java enabled browser to work rather than being a stand alone java application. Most major browsers supporrt java now although it may be an optional extra on your copy of Netscape or Opera. Internet Explorer automatically supports it. There are three steps in creating your first java applet:

* Creating the Java source code.
* Compiling the source code.
* Running the program.

Creating the Java source code

Open your text editor (Notepad will be fine but I prefer EmEditor) and type in the following:

import java.applet.*;
import java.awt.*;

/**
* The HelloWorld class implements an applet that
* simply displays "Hello World!".
*/
public class HelloWorld extends Applet {
public void paint(Graphics g) {
// Display "Hello World!"
g.drawString("Hello world!", 50, 25);
}
}

Save this code to a file called HelloWorld.java.

You also need an HTML file to accompany your applet. Type the following code into a new text document:

<HTML>
<HEAD>
<TITLE>A Simple Program</TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>
</HTML>

Save this code to a file called Hello.htm.

Compiling the source code

Open up command promt (Start > Run > “Command”). Once your at the command promt, go to the directory where you have saved the source code. For expample if you saved them in C:\code you would type cd C:\code. At the prompt, type the following command and press Return:

javac HelloWorld.java

The compiler should generate a Java bytecode file, HelloWorld.class. This file will appear in the same directory.

Running the program

Although you can view your applets using a Web browser, you may find it easier to test your applets using the simple appletviewer application that comes with the JavaTM Platform. To view the HelloWorld applet using appletviewer, enter at the prompt:

appletviewer Hello.htm

Now you should see an application come up with “appletviewer” or something similar at the top. It should then say applet loaded at the bottom and hello world in the middle. Congratualtions! Your applet works.

Don’t work if you got a error from command promt. I got that too saying it was using the default settings etc, but it didn’t seem to cause a problem. For more information on java applets go to http://java.sun.com.

Poker tales

Thursday, September 15th, 2011 | Distractions

I’ve been playing a lot of poker recently. And by a lot, I mean I’m pretty much at work, working for CWF, or in a casino. Luckily, Leeds isn’t exactly a high rolling town, so you can enter quite a lot of tournaments without it costing you much money.

The good news is that my poker is improving. Norm joined me for one of the Sunday tournaments at Alea, which had potential as many of the regulars were playing in the end of league winners’ freeroll instead.

Unfortunately, I didn’t get very far after my aces got cracked and then I shoved post-flop with an over pair, only to have Norm call me with nothing and hit two pair by the river to knock me out. I actually quite enjoyed the night though because for once, I was able to walk away from the casino without having to think “you would still be in that tournament if you hadn’t made that stupid mistake.”

This was less true of the tournament on the following Thursday at Alea where I Was getting great cards and quickly became chip leader and stayed that way for four hours – right until the two hands I went out on. Haven’t dominated the tournament I made some really bad calls looking for straights and it cost me what should have been an easy cash.

The day after at Grosvenor didn’t go any better. I made it through the rebuy period on my freeroll stack alone and despite being short stacked for three hours I made it to the final table – only to be the first person to go out. Bad times.

My squandered stack from Alea.

Las Iguanas

Wednesday, September 14th, 2011 | Humanism

On Tuesday, Atheist Society headed down to Las Iguanas for some dinner as part of their weekly social. It’s a great place to eat and best of all, they do 2 for 1 cocktails before 7:30. So by the time we sat down at our table we had to get a tray to take all the drinks over that we had lined up.

Unfortunately the food didn’t entirely agree with me and I ended up losing half a night’s sleep with stomach problems. First bad experience I’ve had there, and I eat there quite a lot. I think I’ll steer clear of the chicken next time :S.

September Humanist Community

Tuesday, September 13th, 2011 | Foundation, Humanism

Despite there being very little of summer left here in the UK, the weather remained warm enough for us to sit outside at the September meeting of the Humanist Community of Leeds. This month both religion and politics were discussed – it’s a wonder how we all remain friends with such divisive topics! As ever of course though, the discussions remained good natured and very much enjoyable.

Where is the food?

Monday, September 12th, 2011 | Humanism

For some reason, James had accidentally scheduled the A-Soc weekly social at The Library pub again.

However, when we got there, it turns out they had closed the kitchen. I’m not sure whether this was a blessing or a curse, but we made everyone down their drinks and headed out to find some food. We made it to The Eldon – who had also closed their kitchen! In the end, we found ourselves at Nation of Shopkeepers. Bad times.

Tearful goodbyes

Sunday, September 11th, 2011 | Friends, Life

With the university term drawing near, Elina had to return to Finland for the final year of her degree. So, at the end of August we headed over to Manchester Airport to drop her off.

It was pretty rubbish. I hate airports at the best of time, but when you’re only going there so that it can take away your girlfriend, that’s just a kick in the nuts.

Luckily, in today’s modern age, distance is only a partial barrier and Skype has been serving us well ever since. Big thanks to George for coming to keep me company too.

The canal

Saturday, September 10th, 2011 | Life, Photos

Recently, myself and Elina went for a walk down the canal. It was pretty scary, there was a lot of nature, including the rabbit you can just about see in the middle of the photo of the bushes.