
front and back-end web development, Leeds, UK
Richard's Blog - Design, coding and life in Japan
Blog Archive: November 2009
Making multi website systems
Submitted by Richard on Thu, 11/26/2009 - 11:33I 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
Submitted by Richard on Tue, 11/10/2009 - 16:46#!/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$REMOTEMYSTags:
Back from the CakePHP Matsuri conference in Tokyo
Submitted by Richard on Wed, 11/04/2009 - 14:00I 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
Submitted by Richard on Mon, 11/02/2009 - 14:27Some 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
- Testing controllers in Lithium 2nd Feb 12, 18:19
- Practical Internationalization in Lithium 31st Dec 11, 02:06
- Using OAuth in Lithium 30th Dec 11, 23:47
- How to add your own Tokens from CCK fields in Druapl 7 17th Jun 11, 04:49
- Weaving Lithium #li3 into a legacy PHP application incrementally 5th Oct 10, 11:54