Intended use of HTTP POST

I read this article from Elliotte Rusty Harold yesterday, and its kind of stuck in my mind [1]. He writes about what the different types of HTTP requests were actually intended for; the difference between the verbs GET and POST. His point is that to view information, GET should be used so that the page can be bookmarked (or indexed, or emailed) and reused. POST is just for actions that shouldn’t be repeated – and he’s right.

His article is here: http://cafe.elharo.com/web/post-considered-inconvenient/ and its well worth the read. I don’t think I’d ever really thought about this before, or not in these terms. Thanks, Elliotte, for a great and thought-provoking article!

1 Possibly because I’m writing a big search form and sorting mechanism for a big set of results at work! Since I work in manufacturing its all dates and partcodes and supplier codes and so on, not terribly exciting but a good illustration of when to use different posting methods.

Super Dooper Opera Search Feature

Opera has sneaked in a fabulous new search feature – and I missed it completely! In looking up how to set up some shortcut searches, I stumbled across this and thought I’d share.

Opera 9 (and I think earlier versions) comes with a preconfigured search function, where you type the letter “g” and then the search terms you would have typed into Google’s search box and the search is performed for you. I have a couple of other searches set up as well, previously it was necessary to work out where in the query string to put your search and hack about with an ini file to get it working.

Not any more! On any site with a search box you can right click in it and choose “Create Search …”, you will then be asked to choose a shortcut letter to use with it. That’s so clever! And very non-techie to use.

Self-promoting example

In opera, go to lornajane and right-click in the Search box on the right-hand bar. Choose “Create Search …” and type “l” into the search box. Now in a new tab, type into the address bar:

l opera search

And guess where you’ll end up??

Usage

I have p for the PHP Website and w for Wikipedia, and am lost without them!

PuTTY from command-line

Following my brush with RSI, I’ve become very mouse-averse, which is difficult on a windows computer! There are a couple of shortcuts that I use to launch programs, mostly revolving around use of the Start->Run dialog (press Windows and R and it just pops up).

PuTTY can have saved sessions which is very useful – for example I use a different coloured background for the production server at work, so I remember which window it is and don’t type into the wrong one. To launch a saved session from the command line (or Run dialog box), use:

<path to putty.exe> -load <saved session

I have to look this up every time I need to change my machine or set this up somewhere else, so its here for safekeeping!

Daisy Scarf

Its been a craft-tastic few weeks lately, I’ve another almost-finished item to post after this one! Here are the photos of the mohair scarf I recently made for my boyfriend’s mum’s birthday

photo of scarf

And the closeup of the motifs (there were eleven daisy squares altogether):

photo of scarf

Two Beef Slow-cooker Recipes

I often put the slow cooker on when I know that there are going to be people coming and going and wanting feeding at different times in an evening. I usually do a fairly standard chicken casserole but the last couple of weeks I’ve experiemented with beef. One of them was rather improvised (didn’t check the cupboards before I started) but it wasn’t too bad, so I thought I’d share both recipes here.

Beef and Bean Stew

Take some beef (about 400g in this case) and brown it with some oil in a frying pan. Once its sealed all over, pop it in the slow cooker with a tin of chopped tomatoes and a tin of kidney beans in chilli sauce. Now leave it for 8 hours or so.

Beef and Lentil Casserole

Take some beef (I used 400g again, but it doesn’t matter), brown it and pop it in the slow cooker. Chop up an onion and a couple of carrots (and any other veg that come to hand) and pop them in the frying pan with some more oil. Use a whole stock cube and half a pint of boiling water to make some stock (this is different from the proportions in the instructions but it works). Once the veg starts to go soft in the pan, add some stock and let it simmer for three minutes. Stir in some cournflour and then add the contents of the pan to the slow cooker. Add the rest of the stock and a tin of lentil soup to the slow cooker. Leave it alone for eight hours.

Girls and Gadgets Don’t Mix

My partner asked me the other day if I would like a new watch for Christmas. Actually I would really like a new watch for Christmas and I’m touched that he had thought of such a gift. He asked that I choose, so that he could be sure of getting something that I liked.

As a first step, we grabbed the Argos catalogue and he started to browse. I brought some drinks in and asked how he was getting on. “I’m looking for a ladies watch that actually does something”, he replied. But we didn’t find one.

Why is it that men need dates, alarms, lights and interesting energy solutions on their watches (not to mention ones that are manufactured from interesting stuff, like titanium), when women just need the time (often with no second hand and no accurate markings) and plenty of bling? I don’t get it. I want one with a backlight so I can see the time at night, and an alarm to set in case I fall asleep on the train.

With women being target market for phones, music players, and even games consoles these days, it seems very odd that such a fundamental market hasn’t caught up. I’m not a gadget freak really (not much anyway) and I don’t need something which remote controls my talking entertainment centre and is waterproof to 100m or anything. My current watch was an emergency buy from Next when the last one died and its pretty good – it has minute markings and a second hand – and a diving bezel thing that I use when I’m cooking to remind me when something will be ready.

I suppose the answer is to buy a man’s watch. I’m a big girl after all (at almost six feet tall) and I do have big hands. The trouble is that I have tiny wrists, ladies watches are too big even after I’ve had links taken out – an average man’s watch is big enough for both my wrists at one time, which isn’t practical!

Short of starting my own gadget accessories range, I’m not sure how I’m going to solve this!

PHPWomen: A Community is Born

This post has been a week or so in the making, I just wanted to find the right words to tell the story. I saw a post on the PHP DevZone saying that Ligaya Turmelle wants to hear from women in PHP.

Well I hopped right across to the her blog post and raised my hand, thinking there wouldn’t be too many other people there. How wrong was I? To date there’s 44 responses to that one post.

The dawn of a new group

The new community is now online at www.phpwomen.org and its thriving. The forums are very active and full of people introducing themselves and discovering there are fellow phpwomen nearer to them than they thought. So far I think my nearest is either Belgium or Amsterdam – but there’s a lot more in Europe than I thought and I’m sure there are others in the UK just waiting to emerge. I’m a moderator on those forums as well, which is my first online position of that kind although I did briefly help out with experts-exchange before it went commercial.

The threads on the forums vary widely from “this is me”, through comparing notes on sanitising input variables, and along to who has which dog and a riveting post entitled Work and Babies.

The main site has interviews with both Ligaya and Elizabeth Narramore who had the original idea, announcements of conferences and will include other PHP news updates too, among other additions to numerous to list here.

Looking to the future

Well the community has certainly started with a bang and I hope that everyone continues to contribute as actively as time goes on. For me I hope that I continue to build relationships with the lovely women I’ve met so far, and that we will also be able to contribute to the PHP community as a whole. Here’s to a bright future!

Sporting Update

It struck me the other day that I hardly ever write about netball here, which is odd if you think about how much time I spend playing it! So here’s an update on the season so far.

I’m playing in the Northern League (in England) for Shipley Netball Club. There’s been lots of changes to the competition structure in England and to be frank things still seem to be shaking down into place! This season also sees the introduction of a new kit at the club – little purple dresses with very little matching shorts. Its best described as “ickle” and leaves me feeling like a porn star as I de-fuzz and fake-tan for each outing! Its short, sleeveless and I definitely wouldn’t have chosen it myself, but I’m sure we look great.

I’m now playing for the first team and I’ve had a slow start to the season, only getting on court for three quarters [1] out of four matches so far – but watch this space and who knows how things will progress :)

The same team is playing in some other leagues as well and hopefully I’ll see more action in these. I played a whole match in our first Challenge Cup fixture and really enjoyed the game – although we got drawn against Linden (who are one of the best teams in the country) and predictably got walked on. We’ll also be playing in a Yorkshire and Humberside league but I haven’t got full details of that yet.

1 Netball is usually played as four quarters of fifteen minutes each.

Accidental E-Self-Discovery

Something wierd just happened …. I was trying to do something on the PHP Community Book Site (more about them another day), to get dokuwiki to hyperlink to sections. I was confused about the syntax so I googled for it.

Can you guess what happened next?

My own website was one of the hits

Wow. I was eighth hit for the search term “dokuwiki internal hyperlinks”. That has never happened to me before.

The only downside is that I don’t know the answer to my question and its certainly not on this website – never mind :) The actual way to do dokuwiki’s internal links is by looking on the syntax page that comes with each wiki (hyperlink to it above the box on the edit page, if you have one) – or you can use the syntax page on the dokuwiki homepage, http://wiki.splitbrain.org/wiki:syntax