May 22nd, 2010
I’m working on a project at the moment to make online djembe lessons available to download immediately once payment has been received.
Wanting to make it a little bit more difficult for people to share the links I went looking for a PHP based solution to provide unique download links that are only valid for a certain number of downloads and expire after a certain amount of time.
I found Ardamis has kindly shared a great solution for Unique download links, so just wanted to tip my hat in his general direction, and share this for the next person with the same issue.
Posted in Uncategorized | No Comments »
March 4th, 2010
I’ve released a new jQuery plugin to get the server time.
It waits for the page to be loaded, and send the client machines time to the server by ajax. The server then returns $timedifference.”|”.$offset where offset is the difference in seconds between the server and the local machine.
The script will then check the local machine time every second and apply the offset.
This approach allows us to use the local machine’s time keep capability to keep ourselves accurate.
If there are time zone differences to be taken into account these will also be accounted for.
Click here to check it out:
Posted in Uncategorized | No Comments »
March 4th, 2010
My sister, a dublin make up artist, asked me to give her a hand with her website today.
She wanted a flash slideshow that was pretty slick and also easy to update herself. It reminded me of slideshowpro, which is pretty good at doing just that.
Slide show works by reading in the images to be included from an XML file.
It also reminded me a php class that I wrote a while ago to allow a client (or user) to update the XML file themselves. This class could be standalone, but would best be suited included into a CMS.
So here you go…. it’s rough, ready and could save you a few shillings if you were considering slide show pro director.
Posted in code, php | No Comments »
February 14th, 2010
Problem with “Beginning Rails page 113:
I found a typo in the book too… it says:
Let’s generate the model and migration for the registration table now:
$ ./script/generate model registrations
it should say:
$ ./script/generate model registration
This causes problems later on when doing the following:
event = Event.find(:first)
user = create(:login => 'simon', :email => 'simon@example.com', :password => 'secret')
user.registrations.any?
NameError: uninitialized constant User::Registration
I had to figure that one out the hard way…
Posted in rails | No Comments »
February 14th, 2010
I decided to set my next site on Ruby on Rails…
After spending AGES trying to set it up…
I thought that there was something wrong with my Rails installs (and re-installs).
I was working from Beginning Rails by Apress. The book is pretty old and it turns out that SQL lite is no longer packaged with rails and the basic example was bombing out and I didn’t realise it…
The discovery of the log/test.txt was instrumental… wish that had been mentioned in the book.
This change in Rails wasn’t to be the last pain in my arse it seems… The way rails does scaffolding has changed completely it seems, so another 2 hours later I find an open Internet place (tropical island remember?) and I have a working tutorial (http://fairleads.blogspot.com/2008/01/this-is-second-part-of-my-series.html) for Rails 2.
And I see the fruit of my first rails scaffolding setup… I must say it’s beautiful!
I’m sure I’ll be finding a few more things that don’t work in ‘Beginning rails’, but ‘Beginning Rails 3′ will be out in March 2010 (next month), so I’ll probably make a move on that asap.
Posted in Uncategorized | No Comments »
January 31st, 2010
That’s it… I give up on getting Ruby on Rails integrated with my current XAMMP environment!
I am going with Ubuntu for now:
I found these instructions on setting up Ruby on Rails on Ubuntu really helpfull.
Although initially annoyed at the mess of setting up in Windows, I’m grateful for the opportunity to get to know Ubuntu and Linux a bit better…
Posted in Uncategorized | No Comments »
January 31st, 2010
Been having a really hard time getting Ubuntu to see my wireless network card.
Think I’ve finally found a solution. Seems although Ubntu 9.1 ships with the drivers, it doesn’t ship with the firmware… I followed the instructions here – dell 1501 ubuntu wireless drivers, but I assure you I didn’t find that without a LOT of googling and digging!
Posted in Uncategorized | No Comments »
September 19th, 2009
I love Gmail for many reasons:
- Spam filters!
- Free backups of my mail
- Can access all my email no matter where I am
I forward all my email addresses on to Gmail.
You can also set up Thunderbird / outlook to connect to Gmail, should you so choose.
Check out the Gmail power usage guide for details.
Tips:
1) While looking into Mozilla Jetpack I came across the better Gmail checker. This neat little thing puts a little icon in the lower right corner of your Firefox with the number of unread Gmails in your inbox.
This lead me to finally sort out the 1100 unread emails in my Gmail. Most of them are email lists etc, that I have no intention of reading and figuring out how to mark all of them read had put me off ever doing so.
Anyway, inspired by my new jetpack toy, I went about figuring that out too:
2) To mark all mail read:
- In the search box, type “is:unread”
- In the select area press “All”
- A link will appear that says “Select all conversations that match this search”, press it
- From the drop down, select “Mark All as Read”.
So there you have it, happy Gmailing everybody!
Tags: Gmail, tips
Posted in General | 1 Comment »
June 15th, 2009
This week, I have been listening to some great free web design mp3s, courtesy of Webstock.
I really enjoyed Doug Bowman’s talk on common structure and design patterns for web front ends. It will be interesting to see what come of this in the near and medium term future. Imagine building a site using common HTML structure and being able to plug in a 3rd part css file, much like CSS zen garden.
I hadn’t come across Uber Geek, Bruce Sterling before and I found his talk, web2.0 and beyond, amusing and entertaining.
Posted in web design | No Comments »
June 10th, 2009
Geek news, just in: a discussion group was formed to define standards to be adopted by PHP frameworks and applications.
Participation, seems to be closed, but spying is not
There motivation and aim seems to be summarised by:
“Hey, we are all agreeing that we are going to code this way and we’d like you to do it to.”
Isn’t that nice
The meeting included representatives from Agavi, Cake, PEAR, Phing, Solar, Symfony and Zend.
Given the attendees there is certainly some weight behind this and it’s worth keeping an eye on… especially if you’ve been developing your own framework.
Find out more at the ugliest usefull site in the universe
Tags: framework, MVC, php, standards, web standards, zend
Posted in Uncategorized | No Comments »