
attractive, usable web applications
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
{syntaxhighlighter brush: bash;gutter: false; fontsize: 100; first-line: 1; }#!/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
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
- Doctrine 2 and why you should use it! 29th Jul 10, 15:23
- How to localize your main blog listing page using Drupal 26th Jun 10, 11:46
- Creating Rails like template helpers in Django 24th Jun 10, 22:01
- Error: No module named messagesdjango.contrib.contenttypes 22nd Jun 10, 22:00
- Creating multiple blocks easily in a Drupal module pt2 8th Jun 10, 14:12