To make the script execute when Adium starts up:
Create and save an AppleScript with the following code: tell application "Adium"
GetURL (”irc://myircserver.com#myircchannel”)
end tell
Edit appropriately and save it wherever you like.
With Adium in as the frontmost application, choose Adium > Preferences…
Select the “Events” toolbar item in the Preferences window.
Find and select the “New email notification” event in the list of events.
Click the “+” button to add a new action to the “You connect” event.
From the Action popup menu, choose “Run an AppleScript”.
Click the “Browse” button and choose the script you just saved.
Click OK.
As it was my first time in California, I did some research to find out how to spend my long 3 days long weekend (labour day on Monday). I got a lo of suggestions which I summarized on my previous post and here I will narrate what I have actually done do that it can be a reference to anyone in my same situation.
Friday: Computer History Museum and running along Steven’s creek trail
After a lunch at the Mongolian Barbecue in Castro street downtown Mountain View, I took my bike to the Computer History Museum, on the way to the Google campus, 15 minutes away from downtown.
The museum has a free entrance and guided tours are also available for free. Don’t miss it! The guides are so nice and make the visit a nice experience for anybody, even for non-computer people. I stayed at the museum for about 2 and half hours. HIGHLY RECOMMENDED!
Among the funny things you can see there there is the first Mac ever built, with a wood chassy and the signature “Woz” (Steve Wozniac, Apple co-founder)
I’ve also seen a working demo of the PDP-1, one of the first small computers. Two elderly engineers have restored one and probably made the restoration as theirs life most exciting project.
Back from the museum I went running along the Steven’s Creek trail. The trail goes from Mountain view all the way to the bay (about 8-10 km on way). Unfortunately it is asfalt all the way but at least it is on a separate track shielded from the cars. There are a couple of fountains along the way that make it easier if you want to do a longer run. I run for about 12km but unfortunately it got dark too fast.
It is a perfect trail, anyhow, if you want to ride your bike to the Google campus.
Saturday: bike run in Capitola (Santa Cruz) along the wineries
I joined Santa Cruz Bike tours for a 5/6 hours easy ride along Capitola’s coast. I rented a car (they only had a huge SUV that could contain my bike) at Avis in El Camino Real and drove to Capitola.
On the way I drove by Cupertino to take a look at the (disappointing) Apple campus.
Arrived at Capitola, I meet with Marty and Larry from Santa Cruz bike tours. I also meet the group of 7 Canadians that was going to ride with us. It was a great day! The Canadians proved to be hilarious! We rode through Capitola’s wharf and took a glimpse of the Begonia festival
Unfortunately my bike was not appropriate for real mountain biking but the path was arranged in a such way that you could skip the hardest parts. Next time I go mountain biking I’ll make sure to rent a more appropriate bike.
After having visited two wineries, tasted some great wines and spend about 50 bucks on two bottles, I want to bring home, the friendly Canadians invited me to have dinner together and we went to the local brewery. Before the night was over we also managed to play some beach volley but we were soon kicked out by the police since the beach is strangely closed between 10pm and 6am. We decided then to go and try the roller coaster (Santa Cruz has a very old wooden one) and that scared the hell out of me!!!! I then drove home at around midnight. Thank you Martine, Renee, Angela, Dave, Deanne, Chris. it was a great great fun!
I highly recommend Santa Cruz bike tours. They were so kind to let me join the group with a short notice and I’ve seen places I would never have seen without them. It was also a very nice way of meeting other people. I wish it was a little cheaper but it I’d totally worth the money.
Monday: Golden gate bridge and Alcatraz
I jumped on the Caltrain to San Francisco at about 10. You can take the bike in the apposite wagon (the first one?). In one hour and 10 minutes I was in San Francisco.
I did not ride along the coast since I had already spent enough time there (If you haven’t, head towards Fisherman’s wharf) and so I decided to cross the town center.
I looked at the map and decided: California St: I did not know how steep was the hill! Lot of pain later I reached the top but I don’t advice if you don’t have a mountain bike. Then I just headed towards the bridge, I could see it from everywhere.
Riding on the bridge was amazing, but even more to look at it from the land (Unfortunately I could only drive on the west side so I could not see the town properly).
I then glided to Sausalito and back on the first ferry to pier 1 (there where other ferries to other piers too but I just took the first one)
My boat to Alcatraz went a little after 4. Remember to buy tickets a few days in advance. I wanted to take on the morning tickets (the most complete tour) but is was already sold out three days before the tour.
At the isle I got one of those headphones with a recorded guided tour: DON’T MISS IT! The sounds and the voices are really cool. They guide you around and tell the most of the details you need to know about the prison.
I took the last boat (6.10pm), I wish I could have stayed on the isle a little longer.
Tuesday: My first baseball game at the AT&T Arean in SF
San Francisco’s baseball arena is great. I saw the match between San Diego Padres and the Giants and from now on I will always be a fan of the Giants!
I’m in Mountain View for a couple of weeks and since it happens to be also labour day I asked people around on what to do during the week-end. I put the summary here so that other visitors in the San Francisco area can take a look at it.
By bike
Bike the Golden Gate Bridge (It’s about 15-20 km and may take a couple of hours). You can rent a bike in San Francisco, bike to Sausalito or all the way to Tiburon, spend some time there and then take the ferry back to SF
Bike or walk along the waterfront in San Francisco is nice. You may even combine this with the Golden Gate Bridge bike ride
Bike (but beware of the many annoying hills and cars everywhere!)
You can take a bike on CalTrain to San Francisco. The bike car is the last car on the train.
Walk around the Mission district (Valencia st. between 24th and 16th, 24th between Valencia and Potrero) is fun. Check out Paxton’s Gate shop, bookstores, restaurants, murals, etc. Humphrey Slocombe ice cream is good
If you enjoy hiking and are in decent shape, I think a Half Dome hike is an incredible experience: http://www.nps.gov/yose/planyourvisit/halfdome.htm Unfortunately, it’s a long drive (3.5+ hours from SF)
Check out Big Basin state park - the redwoods there are amazing.
The aquarium in Monterrey is worth a visit too.
If you have more time, go to Yosemite and the over Tioga to Mono Lake and Bodie, sleep in Lee Vining (just next to Mono Lake) as other places maybe full already. The places are spectacular!
As today I’ve not yet moved into my flat although I’ve been paying the rent for almost three weeks.
When I checked in, on the 11th of August, the flat was in disgusting conditions. It had not been cleaned at all and stuff of the previous tenant was still inside.
Luckily enough we had insisted that a list of works to be done had to be put in writing in the contract. None of the works had been done, although contractually the landlord had a few more days to comply with his duty.
But not the cleaning. The cleaning had to be done before I moved in and they had had an extra week to do it properly.
After a first immediate solicitation nothing happened. At some point somebody went in and vacuum cleaned the carpet in one of the rooms: ridiculous!
I felt like they were making fun of me. I escalated the problem to my relocation company and to Google HR which had helped me getting the contract. I just wanted to break the lease and live the landlord to the next victim.
Unfortunately there is not much to do once you have signed a standard “assured shorthold tenancy agreement”: the contract is totally biased towards the landlord. Unless the flat is “uninhabitable” (which means practically that it has to be falling apart, without electricity and hot water) the lease is still valid, no matter what other clauses are in the contract. On the contrary, the tenant, if he does not pay the rent (as I intended to do since I could not move in) or does anything which goes against the landlord, can be brought to court and forced to pay the rent for the whole period of the contract!
As a tenant, you can protect yourself filing a “claim for damages following the loss of occasion*” which means that if you can prove that because of the landlord you have had some expenses (like living in a hotel while the flat was being fixed), you can bring him to court and ask for a rent refund. Little consolation given the hassle!!
Finally, two days ago the landlord as agreed in cleaning the flat. I’ve been there yesterday with two independent witnesses and it is definitely a better experiences. Walls have been painted, bathroom and kitchen has been cleaned and the stuff has been removed. Only few details are left like cleaning the windows from the outside. Seems I got now a new contact person at the managing company which is taking me seriously.
If everything goes well, on Friday I will finally be able to move in. I scheduled the movers to come at 10 am so it should be done by noon.
Who’s responsibility is this? Definitely of the estate agent, Rocco from Barnard-Marcus. Being an Italian himself I thought we were on the same frequency. Instead I realized that more than once he tried to pull it. He first raised the price once I showed interest, he tried to make me sign a contract without a break clause and finally tricked me in making a last-minute modification to the contract assuring me that the flat did not need to be fully repainted while I was away and could not recheck it.
I should never have accepted any contract modification and I should never never have had any contact with the estate agent directly but only though the relocation agent. The estate agent did not act professionally and for this reason I must warn any body from ever taking services from Barnard-Marcus and specially from him.
I learned a lesson, at the cost of two stressing weeks. It is so sad that you have to assume that people is unprofessional and unfair before they have proved them selves. It should be the other way around
* I’m not sure that “occasion” is the right word. I thought the lawyer said so but I could not find any reference on Google.
It was driving me nuts!! After installing the latest 2.8 beta for mac I was getting one of those red notifications every time any of my contacts was changing his mood message.
Luckily you can disable it in the Preferences->Advanced->Enable Mood Message Chat.
Tonight I was looking at my blogs awstats and realized that IE6 is still the most used browser (at least in Windows).
Given the fact that my blog is quite technical and my readers have a tendency to use open source software as Firefox, this is pretty scary!!!
Internet Explorer 6 is bad and full of bugs! It makes us programmers to do a lot of unnecessary work to make pages look nice.
REST advocates to use HTTP for CRUD fully exploiting the verbs defined in the protocol specification:
POST to Create
GET to Read
PUT to Update
DELETE to Delete
Nothing strange about that. But how do we handle server-side data validation ?
Server-side validation cannot be replaced by client-side but it complements it. Client-side we can f.i. verify if an E-mail address is compliant with the SMTP rules but we cannot verify if the address is already registered in our database.
HTTP provides the error codes 4xx to indicate that something has happened:
400 Bad Request
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
and specifically:
409 Conflict
The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. The response body SHOULD include enough information for the user to recognize the source of the conflict.
But how do we include enough information?
Inspired by the error validation model used in Spring MVC (Errors) I suggest that together with the 409 the server includes a response that may look like the following (assuming we are using xml):
Since the client can hold a reference to the object used for the POST/PUT operation, we may not need to include the invalid model in the response. The client should be able to show to the user an appropriate form with the validation errors.
Of course the errors tag could be extended to include more information to handle all the different cases but I thing that the idea is right (again, take a look at the Errors class in Spring MVC for an example of how to handle all kind of validation errors)