Welcome! Log In Create A New Profile

Advanced

[PHP] Happy Diamond Jubilee everyone!

Posted by Ashley Sheridan 
Ashley Sheridan
[PHP] Happy Diamond Jubilee everyone!
June 01, 2012 07:50PM
This is a bit of a shameless plug, but it is a Friday and a pretty
special weekend over here.

I recently got to work on something a bit fun at work in my spare time
and they liked it so much that it got used internally to celebrate the
jubilee weekend.

This is the result http://jubilee.themlondon.com

For those of you interested, the leg-work is done by a bunch of PHP
scripts run in the background via cron, split into 3 tasks:


1. A script goes out and searches Twitter for tweets that mention
the jubilee, one instance per keyword and records those to a DB
to limit the draw on the Twitter API
2. A second script goes over those tweets and pulls in all the
non-default profile images for each unique user
3. Lastly, the image is built as 12 separate tiles every half hour,
using PHP and GD to match the average colour of each profile pic
to a spot on the image, and then these are stitched together for
the final image

Anyway, hope you guys all have a great weekend, more so if you're
unlucky enough to be working over the whole 4 days :-/

--
Thanks,
Ash
http://www.ashleysheridan.co.uk
Daniel Brown
Re: [PHP] Happy Diamond Jubilee everyone!
June 01, 2012 07:50PM
On Fri, Jun 1, 2012 at 1:44 PM, Ashley Sheridan
<[email protected]> wrote:
> This is a bit of a shameless plug, but it is a Friday and a pretty
> special weekend over here.
>
> I recently got to work on something a bit fun at work in my spare time
> and they liked it so much that it got used internally to celebrate the
> jubilee weekend.
>
> This is the result http://jubilee.themlondon.com
>
> For those of you interested, the leg-work is done by a bunch of PHP
> scripts run in the background via cron, split into 3 tasks:
>
>
>     1. A script goes out and searches Twitter for tweets that mention
>        the jubilee, one instance per keyword and records those to a DB
>        to limit the draw on the Twitter API
>     2. A second script goes over those tweets and pulls in all the
>        non-default profile images for each unique user
>     3. Lastly, the image is built as 12 separate tiles every half hour,
>        using PHP and GD to match the average colour of each profile pic
>        to a spot on the image, and then these are stitched together for
>        the final image
>
> Anyway, hope you guys all have a great weekend, more so if you're
> unlucky enough to be working over the whole 4 days :-/

Congrats, Ash, and nice work. Looks great!

--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Pruim
Re: [PHP] Happy Diamond Jubilee everyone!
June 01, 2012 10:40PM
And this is when I realize that I still have so much to learn!!!! Looks amazing ash!


Jason Pruim
352.234.3175 Google Voice
352.682.1073 Cell

On Jun 1, 2012, at 1:44 PM, Ashley Sheridan <[email protected]> wrote:

> This is a bit of a shameless plug, but it is a Friday and a pretty
> special weekend over here.
>
> I recently got to work on something a bit fun at work in my spare time
> and they liked it so much that it got used internally to celebrate the
> jubilee weekend.
>
> This is the result http://jubilee.themlondon.com
>
> For those of you interested, the leg-work is done by a bunch of PHP
> scripts run in the background via cron, split into 3 tasks:
>
>
> 1. A script goes out and searches Twitter for tweets that mention
> the jubilee, one instance per keyword and records those to a DB
> to limit the draw on the Twitter API
> 2. A second script goes over those tweets and pulls in all the
> non-default profile images for each unique user
> 3. Lastly, the image is built as 12 separate tiles every half hour,
> using PHP and GD to match the average colour of each profile pic
> to a spot on the image, and then these are stitched together for
> the final image
>
> Anyway, hope you guys all have a great weekend, more so if you're
> unlucky enough to be working over the whole 4 days :-/
>
> --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paul M Foster
Re: [PHP] Happy Diamond Jubilee everyone!
June 01, 2012 10:40PM
On Fri, Jun 01, 2012 at 06:44:17PM +0100, Ashley Sheridan wrote:

> This is a bit of a shameless plug, but it is a Friday and a pretty
> special weekend over here.
>
> I recently got to work on something a bit fun at work in my spare time
> and they liked it so much that it got used internally to celebrate the
> jubilee weekend.
>
> This is the result http://jubilee.themlondon.com
>
> For those of you interested, the leg-work is done by a bunch of PHP
> scripts run in the background via cron, split into 3 tasks:
>
>
> 1. A script goes out and searches Twitter for tweets that mention
> the jubilee, one instance per keyword and records those to a DB
> to limit the draw on the Twitter API
> 2. A second script goes over those tweets and pulls in all the
> non-default profile images for each unique user
> 3. Lastly, the image is built as 12 separate tiles every half hour,
> using PHP and GD to match the average colour of each profile pic
> to a spot on the image, and then these are stitched together for
> the final image
>
> Anyway, hope you guys all have a great weekend, more so if you're
> unlucky enough to be working over the whole 4 days :-/

*Very* nice work!

Paul

--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashley Sheridan
Re: [PHP] Happy Diamond Jubilee everyone!
June 02, 2012 11:00AM
Paul M Foster <[email protected]> wrote:

>On Fri, Jun 01, 2012 at 06:44:17PM +0100, Ashley Sheridan wrote:
>
>> This is a bit of a shameless plug, but it is a Friday and a pretty
>> special weekend over here.
>>
>> I recently got to work on something a bit fun at work in my spare
>time
>> and they liked it so much that it got used internally to celebrate
>the
>> jubilee weekend.
>>
>> This is the result http://jubilee.themlondon.com
>>
>> For those of you interested, the leg-work is done by a bunch of PHP
>> scripts run in the background via cron, split into 3 tasks:
>>
>>
>> 1. A script goes out and searches Twitter for tweets that
>mention
>> the jubilee, one instance per keyword and records those to a
>DB
>> to limit the draw on the Twitter API
>> 2. A second script goes over those tweets and pulls in all the
>> non-default profile images for each unique user
>> 3. Lastly, the image is built as 12 separate tiles every half
>hour,
>> using PHP and GD to match the average colour of each profile
>pic
>> to a spot on the image, and then these are stitched together
>for
>> the final image
>>
>> Anyway, hope you guys all have a great weekend, more so if you're
>> unlucky enough to be working over the whole 4 days :-/
>
>*Very* nice work!
>
>Paul
>
>--
>Paul M. Foster
>http://noferblatz.com
>http://quillandmouse.com
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

Thanks, it did take a little while to get right. I might be able to post some bits of code if anyone is interested?

Thanks,
Ash
http://ashleysheridan.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bastien
Re: [PHP] Happy Diamond Jubilee everyone!
June 02, 2012 02:00PM
Bastien Koert

On 2012-06-02, at 4:51 AM, Ashley Sheridan <[email protected]> wrote:

>
>
> Paul M Foster <[email protected]> wrote:
>
>> On Fri, Jun 01, 2012 at 06:44:17PM +0100, Ashley Sheridan wrote:
>>
>>> This is a bit of a shameless plug, but it is a Friday and a pretty
>>> special weekend over here.
>>>
>>> I recently got to work on something a bit fun at work in my spare
>> time
>>> and they liked it so much that it got used internally to celebrate
>> the
>>> jubilee weekend.
>>>
>>> This is the result http://jubilee.themlondon.com
>>>
>>> For those of you interested, the leg-work is done by a bunch of PHP
>>> scripts run in the background via cron, split into 3 tasks:
>>>
>>>
>>> 1. A script goes out and searches Twitter for tweets that
>> mention
>>> the jubilee, one instance per keyword and records those to a
>> DB
>>> to limit the draw on the Twitter API
>>> 2. A second script goes over those tweets and pulls in all the
>>> non-default profile images for each unique user
>>> 3. Lastly, the image is built as 12 separate tiles every half
>> hour,
>>> using PHP and GD to match the average colour of each profile
>> pic
>>> to a spot on the image, and then these are stitched together
>> for
>>> the final image
>>>
>>> Anyway, hope you guys all have a great weekend, more so if you're
>>> unlucky enough to be working over the whole 4 days :-/
>>
>> *Very* nice work!
>>
>> Paul
>>
>> --
>> Paul M. Foster
>> http://noferblatz.com
>> http://quillandmouse.com
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Thanks, it did take a little while to get right. I might be able to post some bits of code if anyone is interested?
>
> Thanks,
> Ash
> http://ashleysheridan.co.uk
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

I'm sure lots of us are interested. It's very cool. Nice job!

Bastien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tedd Sperling
Re: [PHP] Happy Diamond Jubilee everyone!
June 05, 2012 09:30PM
On Jun 1, 2012, at 1:44 PM, Ashley Sheridan wrote:

> This is a bit of a shameless plug, but it is a Friday and a pretty
> special weekend over here.
>
> I recently got to work on something a bit fun at work in my spare time
> and they liked it so much that it got used internally to celebrate the
> jubilee weekend.
>
> This is the result http://jubilee.themlondon.com
>
> For those of you interested, the leg-work is done by a bunch of PHP
> scripts run in the background via cron, split into 3 tasks:
>
>
> 1. A script goes out and searches Twitter for tweets that mention
> the jubilee, one instance per keyword and records those to a DB
> to limit the draw on the Twitter API
> 2. A second script goes over those tweets and pulls in all the
> non-default profile images for each unique user
> 3. Lastly, the image is built as 12 separate tiles every half hour,
> using PHP and GD to match the average colour of each profile pic
> to a spot on the image, and then these are stitched together for
> the final image
>
> Anyway, hope you guys all have a great weekend, more so if you're
> unlucky enough to be working over the whole 4 days :-/
>
> --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>

Just saw it -- far out!


Cheers,

tedd

PS: You Brits have too much free time on your hands. :-)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, only registered users may post in this forum.

Click here to login