Archive

Posts Tagged ‘Technology’

UPDATE: Bringing test driven development to Drupal 5

April 2nd, 2009
Comments Off

Test Driven Development BadgeA few days ago I made a post about modifying phpunit_setup.inc to enable test driven development on Drupal 5.  Since then a few things have happened.

Drupal TDD

The first big news is that phpunit_setup.inc is now part of a new project called Drupal_TDD.  To quote our README file the project is,

“…designed to make Test Driven Development with Drupal easy and enjoyable.”

As part of this change the source code for phpunit_setup.inc has moved to GitHub.  This will allow us to collaborate more easily on phpunit_setup.inc in the future, and should make it easier for any readers hoping to give test driven development with Drupal a try.

Check out the project page for news and updates, or to download the latest version of phpunit_setup.inc.  You can also visit the Drupal TDD wiki for documentation and examples.

Good-bye Backports, Hello Automated Version Detection

In other news, I’ve also been busy refactoring code to integrate some thoughts and feedback I’ve received.  The main changes are:

  1. Using phpunit_setup.inc in Drupal 5 now works just like using it on Drupal 6. You no longer need to include drupal6_backports.inc in your unit test files.  The same steps Pat outlines on his blog to use phpunit_setup.inc in Drupal 6 will now work with Drupal 5.  This also means you won’t need to change your tests when migrating between versions.
  2. When running under Drupal 5 phpunit_setup.inc now creates the same database schema as running a fresh Drupal 5 install. Rather than backporting the Drupal 6 installation process to Drupal 5 which created tables you wouldn’t normally use in a Drupal 5 installation, phpunit_setup.inc now automatically detects the version of Drupal you’re using and runs the appropriate database installation procedure.

There are still more announcements on the way, but that’s all we can reveal right now.  Stay tuned for further developments!

Mark Uncategorized , , , , , ,

Bringing test driven development to Drupal 5

March 27th, 2009

UPDATE: Since this post was written phpunit_setup.inc has been moved into the Drupal TDD project. phpunit_setup.inc has also been updated to not require the drupal6_backports.inc file.  Read my post on the changes for the details.

Inspired by the work of Pat Shaughnessy in a series of great articles he wrote on Test Driven Development (TDD) using Drupal (1234567, and 8) I was motivated to take his code and use it on my current Drupal project.

Read more…

Mark Uncategorized , ,

Rogers WAP/MMS/Emai on Motorola V3

April 18th, 2008

I recently got a new Motorola phone unlocked and carrier independant.  Inserting a SIM card is enough to send and receive phone calls, however to use advanced services like picture messaging and the internet some setup needs to be done.

During my searching I had trouble finding these settings on my carrier’s website.  It turns out there are actually two connections you need to setup.  The first allows you to connect to the internet, and the second allows to you send and receive MMS messages.  After scouring some very long forum posts to find these I thought I should make it easier on others to find these settings for themselves.

Rogers Motorola Internet Settings

Name: Rogers
Homepage: http://www.mymobilehomepage.rogers.com
Service type1: HTTP
Gateway IP: 010.128.001.069
Port1: 80
Domain1: blank
Service Type 2: Wap Secure
Gateway IP 2: 010.128.001.069
Port 2: 9203
Domain 2: blank
DNS1: 000.000.000.000
DNS 2: 000.000.000.000
Timeout: 15 mins
CSD no. 1:
User name 1:
Password 1:
Speed (BPS) 1: 9600
Line type 1: ISDN
CSD no. 2:
User Name 2:
Password 2:
Speed (BPS) 2: 9600
Line type 2: ISDN
GPRS APN: goam.com
User name: wapuser1
Password: wap

Rogers Motorola Media/MMS Settings

Name: Rogers MMS
Homepage: mms.gprs.rogers.com
{all the other settings are identical to the previous ones except for the last 3}
GPRS APN: Media.com
User Name: Media
Password: mda01

Hope this saves others some of the grieve I had tracking these down!

Mark Uncategorized ,

Dark Room

April 18th, 2008
Comments Off

Dark Room is a great little app I’ve been using lately to edit text.  It’s full screen, simple and helps me focus on what I’m supposed to be doing!

Mark Uncategorized , ,

Did Windows Live Just Go Down?

December 15th, 2007
Comments Off

It’s 14:48 MST here on Saturday afternoon on Dec. 15, 2007.  I had some problems downloading a movie of the Xbox Marketplace last night, I checked the Xbox.com website this morning and it said that there are some issues with Video Marketplace which are preventing all downloads.  Now I just went back to check again and it says that, "Windows Live ID is unavailable from this site".  Same thing if I go to hotmail.com, live.com, and mail.live.com.  Did someone trip on a power cable?

Mark Uncategorized

Copyright in Canada

December 14th, 2007
Comments Off

windowslivewriteritunesemiyeldrm-11291itunes7icon317DRM.  Digital Rights Management.  You might not know what it is but chances are you’ve used it.  It’s found in practically every media we consume.  On the television, in your iPod, your Xbox and your computer.  DRM is all around us, yet for the most part we’re unaware of it.  So what is it, and why is it something you should start caring about?

Digital Rights Management is a term used to describe any technology designed to prevent the unauthorized copying, performance, or distribution of a piece of media.  For example, it is designed to prevent songs you buy from showing up on the Internet where other people can download them for free.  That’s it DRM isn’t complicated at all.  So what’s all the fuss about?

It comes down to balancing consumer "fair dealing" rights with corporate profits.  On one side, consumers want to be able to purchase the music, television, movies and games the way they always have and to enjoy them without having to endure unneccesary cost or hastle.  As well consumers like reporters, artists, critics, and academics expect to able to quote and construct new content from existing media without needing to seek the consent of the media producers.  These consumer expectations are called "fair dealing" or "fair use" rights and have been well established in legal tradition.

On the flip side, the media producers are now learning to live in the age of digital distribution and the Internet.  They’ve seen programs like Napster dramatically increase the amount of piracy in the market, and are scared that consumers will no longer pay them for the content they produce.  Whether this has happened or not, is an issue of debate however it’s clearly their concern.

This is where DRM fits in.  DRM is technology added by content producers to take back control of their media.  By preventing illegal copying, playback, and distribution of their content they can force consumers to pay to use their media on every device they own.  No more copies showing up on the Internet, and no more concerns about piracy.

In principle things would be fine if DRM stopped there, however in practice it doesn’t.  Since it’s technically unfeasible to distinguish every legal use from an illegal one, few if any of the legal uses of media are allowed by the DRM protecting it.  For example, quoting or using components of a work is prevented by DRM since it makes it too easy to stich together a new copy of the entire work.  Or playing back a song purchased off of iTunes on a device not made by Apple.  Since Apple isn’t 100% confident you’re not stealing it doesn’t allow it.  Too bad for Apple’s competitors.  Who needs an open marketplace anyway?

Too get around these restrictions DRM has placed on "fair dealing" uses, consumers have been forced to use applications which remove the DRM and allow them access to the content without restrictions.  In the United States the government has responded by outlawing any product or service which can be used (with or without the intent of the provider) to remove or disable DRM.  This legislation is know as the Digital Millenium Copyright Act or DMCA for short.  So far Canada, has taken a more restrained wait and see approach, however that is now starting to change.

This week Jim Prentice, Canada’s current Industry Minister, was prepared to introduce a bill that would "harmonize" Canada’s copyright protection laws with those of our trading partners.  Though it hasn’t been made public yet the ministry has refused to comment on it’s contents and many fear that it will be the equivalent of the Canadian DMCA.  This would make any Canadian using technology to circumvent DRM and enforce their "fair dealing" rights a criminal under the law.  This could potentially criminalize thousands of reporters, artists, and academics and at the very list handicap them in the practice of their profession.

The government has now responded by tabling the bill until later in the holidays, but has still refused to publicly consult or comment on it’s contents.  If you’d like to let them know what you think please read this excellent blog post by Michael Geist, a law professor at Carleton University in Ottawa.

For more information consider reading any of the excellent articles.

globeandmail.com: How did copyright become cool?

Michel Geist’s blog

Mark Uncategorized , ,

Goodbye My Wii Friend

January 23rd, 2007
Comments Off

I’m writing this post to say goodbye to my Nintendo Wii.  I got it before Christmas along with a copy of Rayman and Zelda.  Over the holidays it was thoroughly enjoyed by all, however now as time passes I’ve found I haven’t been able to justify the time I spend playing with it.  This basically means it’s been sitting there unused.

During the last three weeks I’ve used it once to show too my neighbours, and that’s it.  In the same time I’ve used my 360 quite a bit more, mostly for music and communicating with other people on my friends list.  As I take a critical look at my media usage, the Wii just didn’t make the cut.  It’s too bad because it’s a good system, just maybe not the system for me.  Now if I could just get rid of my PSP.  You can’t give those things away!

Mark Uncategorized ,

Red Arrow Now Has Wireless Internet

December 25th, 2006
Comments Off

I know a lot of you reading this often travel between Calgary and Edmonton.  Some of you probably even prefer the Red Arrow as your means of doing so.  If that’s the case keep reading.  I just wanted to make a quick post to highlight how impressed I am with the fact Red Arrow now includes highspeed wireless Internet on some of their coaches. Reading the FAQ on their website (look on the right hand column. ;) )  It’s still in the testing phase so it’s not included on all coaches, but that also means it’s free to use as much as you want.

Mark Uncategorized ,