house9

random code and what not

replace keyboard on Sony Vaio laptop PCG-K23 (PCG-9RLF)

just replaced the keyboard on my sisters Sony Vaio laptop - on the bottom is says it is a PCG-9RLF, but then it also says it is a PCG-K23? anyhow I had a hard time finding anything on the web, then I finally stumbled on this page which helped alot
http://www.laptoprepair101.com/laptop/2007/08/30/removing-replacing-laptop-keyboard/
  • You don’t need to loosen any screws on the bottom - I thought this would be needed and ended up wasting a bit of time going in the wrong direction.
  • At the top of the keyboard is a plate that you need to pry up, there are 4 slots you can stick a flat screw driver under (you can’t see them unless you press the keys down), this plate is also part of the screen hinge and the power cord that goes to the screen is attached so be CAREFUL!
  • Then there are 3 screws that hold the keyboard in place, loosen those
  • The keyboard will hinge up from the bottom
  • Then you need to disconnect the cable that goes to the motherboard
  • I ended up pulling this out without much effort
  • but then it was really hard to get the new one back in
  • turns out the slot has an open / closed ‘mode’, using a small screw driver I was able to get it to open up
  • Then just put everything back, turned out to be relatively easy in the end, I am definitely not an expert when it comes to computer hardware but so far this has been a success!

Medplaya Aparthotel Esmeraldas, Tossa de Mar Spain

Calle Vilafranca del Penedés s/n,
Costa Brava
Tossa de Mar, Girona 17320
Spain

Great town! and this was a perfect place to stay, very inexpensive, functional not fancy


View Larger Map







The hotel is not near the beach but the walk is very enjoyable, probably 10 minutes or so.

Hotel Front Maritim, Barcelona Spain

Paseo Garcia Faria 69
Barcelona 08019
Spain


View Larger Map

This was a really nice hotel. It is a bit far from the ‘downtown’ areas but really close to a really nice beach!

It is 4 blocks from the ‘Selva de Mar’ metro stop. If you are coming from the airport take a metro to ‘Passeig de Gracia’ and then get on the line to ‘La Pau’, the Selva stop is 4th to the last stop.


hotel

hotel

There is also a stop near the hotel on the red tourist bus route; a nice day out to grab the bus and see the sights of town and then get dropped off right out side the hotel.

There is an awesome place to eat two blocks from the hotel Els Peixaters de la Mediterrania. They have great tapas and we ate dinner there one night - one of the best I have ever had!

The beach was crowded on a very warm Sunday - there were not too many people on the weekdays.

beach

Frontair Congress, Barcelona Spain

Alberedes 16
Sant Boi de Llobregat, Barcelona 08830
Spain

We ended up staying here our last night because it was ‘close’ to the airport and included a free shuttle to the airport. But since we were traveling by train and bus it was not so easy to get here the night before. If I was going to do it again I would stay somewhere closer to a metro stop near ‘downtown’; there are trains running direct to the airport all the time.

They did have an indoor pool.

View Larger Map







Secure your Gmail

yeah - you DO want to run gmail over https; I am surprised this is not the default and I am surprised I did not already have this setting turned on.

In gmail click the settings link in the upper right hand corner


Then scroll to the bottom and select ‘Always use https’ in the Browser connection section
This came up while I was watching a great screen cast ’Security - What rails will and won’t do for you’, it was from ’Scotland On Rails Presentations’, there are 27 different presentations and all downloadable

bash scirpt to launch rails development environment

here is a bash script I put together to launch my rails development environment, i got tired of opening multiple terminal windows and cd to the project dir, this script
  • launches script/server in a terminal window
  • launches a new terminal and cd to the trunk
  • launches firefox at http://localhost:3000 with a specific firefox profile
  • and launches Komodo Edit - go ahead and pick the editor of your choice
this works on Ubuntu, probably on other Linux distro’s that use Gnome



I saved this in a file ~/scripts/launch_YOUR_PROJECT.sh
to execute this open a terminal and type ~$ bash ./scripts/launch_YOUR_PROJECT.sh
or create a symlink in your home directory



then execute using ~$ bash launch_YOUR_PROJECT

NOTE: in theory you should not need to even specify bash at the command prompt, when I did not I received the following error ”bash: launch_YOUR_PROJECT: command not found
running ’which bash’ returns ’/bin/bash’ which is specified in the shell script?, something to look into later.