front and back-end web development, Leeds, UK


Richard's Blog - Design, coding and life in Japan

Richard

Blog Archive: November 2009

Making multi website systems

I have realized over time that I get asked to do similar things again and again. I have set up websites that are similar to others I have made in the past. Of course the know how and the code sitting there waiting to be re-used means I can do this again more simply and quickly than the first time around!!

So is this the way to do it............. NO!

Tags:

A bash script to download your remote MySQL schema and load it locally

#!/bin/bash
REMOTEUSER=username
REMOTEPASS=password
REMOTECOMPUTER=remotecomputer.com
REMOTEMYSQLUSER=mysqllogin
REMOTEMYSQLPASS=mysqlpass
DB=database
FILENAME=dbschema.sql
LOCALMYSQLUSER=localuser
LOCALMYSQLPASS=localpassword

ssh -l "$REMOTEUSER" "$REMOTECOMPUTER" "mysqldump -u$REMOTEMYSQLUSER -p$REMOTE

#!/bin/bash
REMOTEUSER=username
REMOTEPASS=password
REMOTECOMPUTER=remotecomputer.com
REMOTEMYSQLUSER=mysqllogin
REMOTEMYSQLPASS=mysqlpass
DB=database
FILENAME=dbschema.sql
LOCALMYSQLUSER=localuser
LOCALMYSQLPASS=localpassword

ssh -l "$REMOTEUSER" "$REMOTECOMPUTER" "mysqldump -u$REMOTEMYSQLUSER -p$REMOTEMYS
		           
Tags:

Back from the CakePHP Matsuri conference in Tokyo

I had a fantastic time meeting other developers in Tokyo at the CakePHP Matsuri meeting in Shibuya Tokyo.

It was good to see how other developers were utilizing PHP and PHP frameworks in Japan. Especially when talking about how they have integrated with other technologies like CMS's and other API's. It also good being one of the few white people, as it meant I could get a lot of time chatting to the 2 core developers that were there.

Tags:

Testing output JSON data from a RESTful API with Cucumber

Some of the following is in Japanese so please excuse this a little, but I am setting up an Restful API in Rails that outputs JSON data, I wanted to check the multi-level JSON objects contained specific data.

Tags:

Recent Blog Posts