JavaScript regex for email address validation

I found this helpful page with a nice recipe for email address validation in JavaScript. Unfortunately the regular expression doesn't allow for email addresses with a plus sign in the front part, for example foo+bar@argle.com. These kinds of email addresses are perfectly valid and are used by many to implement disposable email addresses (though I'd recommend Sneakemail myself).

So here's my amended regular expression for validating email addresses. Have I missed anything?

^\w(?:\w|-|\.|\+(?!\.|@))*@\w(?:\w|-|\.(?!\.))*\.\w{2,3}

Before you use this, you might want to read my follow up post with comments from a number of people on the unsuitability of this pattern.

Simon and Holly: greengrocers to the stars

Our dining
room, full of fruit and veg

We're in this little fruit and veg co-op with a bunch of mates. Our turn to head out early in the morning to Flemington came up, and here's all the veg divided up. It's a great time for produce, with a huge variety in peak condition at really cheap prices. We didn't manage to spend all the $30 per household budget before filling the little car.

A DVD player that doesn't suck?

DVD players seem to be disposable devices these days. You really only get a year out of one before it starts randomly skipping on brand new discs. So I'm in the market for a new one.

This time around, I'd like one that doesn't insist on following the studio's instructions. When I press the "root menu" button, I don't want to be told "Operation not allowed by disc" given that I own both the disc and player.

So does such a device exist? Are there DVD players that obey their owners?

Laminate flooring and Udden bench and drawers

Before

Today we got a lot done on the house. We laid a laminate floor in the kitchen and built an Udden bench with drawers. Above is the "before" shot. Note the disgusting lino and the oh-so-chic bachelor pad cum ski lodge wood-panelled cupboards. We ripped up the lino and pulled out the cupboards.

Sun Herald
27th January 1980

We found this nugget of history under the lino. January 27 1980. The Sunday Herald hasn't changed, with its screaming headline about us selling Titanium ore to the reds, while we couldn't sell wheat to them because they invaded Afghanistan. Underneath Macca is getting deported from Japan for forming Wings. Or something.

Underlay
and flooring go down

The underlay and flooring go down.

The trim
goes down

The trim goes down, to hide my sins.

The
finished kitchen

And here it is finished, with the Udden bench and drawers. Lovely!

Lessons learnt: Measure twice, cut once is very optimistic. More like measure twice, get someone else to check your measurements, stop and have a think, measure again, then cut. Sometimes you get it right.

But this laminate flooring is great. We bought a very cheap type of it, as we plan to completely redo the kitchen soon enough anyway. All up it probably cost about $120, including some tools I had to buy.

I took a bunch more photos too.

Next job is fixing shelves and stuff to the walls.

Productive DIY day

Four bikes
on racks

I'm starting a new category, DIY, to capture improvements we're making around the house.

I had a very productive day of DIY yesterday. I made and installed a couple of flyscreens for our bedroom and the lounge room. Flyscreens are amazingly simple to make. All you need is a hacksaw, mitre box and a special tool for stuffing the spline into the slot which costs about two bucks. All the materials for the screens themselves can be bought at your local hardware store. The most important thing, though, is to get your measurements right. Geometric transformations in your head, the classic tool of IQ tests, are needed to ensure you're cutting the aluminium in the right direction.

After the screens we grabbed four bike storage hooks from Cell Bikes down on Parramatta Road and I installed them. This allows us to store our four bikes in a very small space. Hanging from the front wheel isn't ideal, but we need the space. I made a bit of a mess of the wall getting the holes drilled with my crappy non-hammer cordless drill, but once we get a shed built we'll repaint the room anyway.

Kitchen
before the makeover

The next project will happen tomorrow. We've bought some laminate flooring and a bunch of Ikea shelves. The laminate needs to acclimatise to the kitchen for two days, so that means we can't lay it until tomorrow lunchtime.

Apart from the floor and all the shelves, the crappy cupboard and bench in the middle there is coming out to be replaced with the Udden stainless steel console we've already got, supplemented with two drawer units. With those drawers and all the shelves, we should find ourselves with much more kitchen space and certainly it'll be a lot nicer.

Wall fastening

A question for any DIYers out there. I'm going to be installing an Udden shelf tomorrow and I'm wondering what kind of fastening to use. Ikea are very coy in their instructions: "Choose screws and fittings that are specially suited to the material in your wall/ceiling and have sufficient holding power." Which isn't very helpful.

I was thinking of using green wall plugs and 10G x 50mm screws but that shelf only has four screw holes, which would place quite a bit of load on such fixings. I've been trying to find some specs on what you can load on such screws, without much success. Given that we'll probably be storing glases and plates on it, I'd want something that's well and truly strong enough.

Should I consider one of the more technical fixings like Dynabolts and similar? There are varieties that don't seem to need special tools, and their web site gives excellent technical and installation information, not that I know how to interpret the technical specs.

Suggestions?