anarres: (Default)
As part of getting ready for GSoC I've been reading about perl's DBI (database interface) module, which lets you interact with an SQL database through a perl script, rather than typing SQL into a terminal. There's a good little intro to it in Chapter 14 of the freely available Perl Cookbook from O'Reilly. (Free ebooks are one of my favourite things ever).

This script shows the simplest possible example of using DBI:

Read more... )
anarres: (Default)

Google Summer of Code

Dreamwidth - Welcome, GSoC students!
GSoC Timeline

Dreamwidth stats system and data sources

Dreamwidth stats design notes
Dreamwidth Business Statistics Bug 124
Bug 2699 - Create a graphical front-end for the statistics system
Bug 2717 - Meta - keep track of stats bugs
Data Sources - Dreamwidth
Usage and Business Statistics Proposal
DW Dev: More brainstorming on stats: payment stats
DW Dev: Stats: active accounts by payment level
Exploring the database

Dreamwidth patches

Dev_Patches
Dev_Version_Control
Livejournal Patches
Mercurial: the definitive guide

Dreamwidth - various stuff

DW Notes - BML
Dreamwidth notes - irc
How do I send people messages on Dreamwidth?
DW-Biz
Graph Love
Dreamwidth: the nifty things you might not know

Dreamwidth - development

DW-Dev-Training
Dev Getting Started
Beginning Dev Checklist
Dreamwidth Notes - Development
Dreamhack - getting started
Dreamwidth programming guideline checklist
Dreamwidth programming guidelines
Bug report workflow
Bugzilla
Dreamwidth Notes - Bugzilla
Dreamwidth Notes - Bugzilla workflow
DW-Maintenance
English stripping
Passing parameters in urls
More passing parameters in urls
Livejournal server technical info

Template Toolkit

O'Reilly Getting Started with the Perl Template Toolkit
CPAN: Template Toolkit
Dreamwidth - Routing and Template Toolkit

GD Graph

CPAN - GD Graph
GD Graph examples

SQL

W3C Schools SQL quick reference
W3C Schools SQL tutorial
SQL Data types - W3C Schools

Other stuff

Unix time converter
Grep tutorial
SSH tutorial - copying files using SCP
diff and patch tutorial
Mercurial tutorial

Perl Date Calc

CPAN Date Calc

GSoC

Apr. 27th, 2010 07:15 pm
anarres: (Default)
Wow, my Google Summer of Code proposal got accepted, this is amazing and exciting. I feel really lucky, I know the (Dreamwidth admins? Dreamwidthers?) had a hard time choosing between all the proposals.
anarres: (Default)
Sometimes, I do dorky things to amuse myself.

Suppose you generate 10 sets of 10 random numbers, either 0 or 1. In any given set you might get two or six or seven 1's, but it's a good bet that overall the average number of 1's per set will be about 5.

So I did this using Python (cheating a bit because I used pseudorandom numbers, but for something simple like this that should be fine). Here are my sets of numbers:

1: 0 1 0 1 0 1 0 1 1 0

2: 0 0 1 0 0 0 1 0 1 0

3: 0 1 0 0 1 0 1 0 0 1

4: 0 1 1 0 0 1 0 0 0 0

5: 1 1 0 1 1 0 0 1 1 1

6: 0 0 0 1 0 1 0 0 0 1

7: 1 1 0 1 1 0 1 1 0 0

8: 0 1 1 0 0 1 0 0 1 0

9: 1 0 0 0 0 0 0 0 0 0

10: 1 1 0 0 1 1 0 1 0 1

And here's a histogram of the results (made with the wonderful matplotlib plotting library):
(the axis labels don't show up so well: the horizontal axis is labelled "Number of 1's in a given set" and the vertical axis is labelled "Number of sets").




Read more... )
anarres: (Default)
So this is the part where I write a bit about myself. I'm a 3rd year mature student at the University of Manchester, UK, studying Physics with Theoretical Physics. However I'm starting to realise that the sorts of careers my degree leads to (mainly engineering or finance) don't interest me so much, and I've never much enjoyed lab work. However I've really enjoyed learning C++ and doing computing projects, and I'm beginning to think that a career in programming would be right for me, which is why I'm applying to Google Summer of Code.

As a hobby I'm working on a project called genderBender, which gender-reverses text by swapping gendered words, so for instance 'she' becomes 'he' and 'man' becomes 'woman', etc. It's pretty dinky-looking at the moment but I'd like to eventually work like Google's translate function, where you can translate either a piece of text or a website. My initial reason for doing this was to gender-reverse scifi ebooks in order to get some strong female characters, but I also think it would be a really interesting way to investigate how we tend to write and think about men and women differently.

For the past several years I've been involved in the Climate Camp, a group that takes action on climate change. For me one of the most exciting things about Climate Camp is that there is an anti-discriminatory Safer Spaces policy. Decisions are made through consensus decision making and I have gained some experience in facilitating these meetings. Up until 2008 I was also part of a small team responsible for building and maintaining the website. This lead to me learning a lot about HTML and CSS, and even more about the frustrations of attempting to non-hierarchically run a website which only two people know how to edit, but several dozen people want to frequently update (and all the updates need to go at the top of the main page, of course!) I'm happy to say that the Climate Camp website has since moved over to Drupal.

I also like making digital music using Ubuntu Linux, although I haven't had so much time for that lately. There are some songs I wrote here, which will probably only appeal to those who like their music slow, ambient, and weird.

Profile

anarres: (Default)
anarres

July 2012

S M T W T F S
1234567
891011121314
151617 18192021
222324 25262728
293031    

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 10th, 2025 07:23 pm
Powered by Dreamwidth Studios