Script

Url snooping here an easier way

Technically not a drupal link (shoot me !!!) but while browsing I came across an interesting link on url snooping with php here the code - it uses the snoopy class which is only 37 kB

pager_query - how to ... nice

Tying off some loose ends here with some drupal sites, I just keep adding more stuff and never get the project rolling over the line.

I know in in principle how the whole pager routine work for books in general – very general until I sat down early on this evening to finish it all off heres what I came up with after 30 minutes of goggling. I do like the structure of the books data set.

//This is numbers per page
$num_per_page = 5;

//actual query

$query = "SELECT n.nid, n.created FROM {node} n WHERE n.type = 'halloffame' AND n.status = 1 ORDER BY n.created DESC";

Plotting via python

Spent most of the afternoon trying to sort the plotting features in scipy – looks like my problem was that once I called the plot function I also needed to call the show function so the the graph would indeed show on screen. This could be overcome by just inserting the show () function at the bottom of the code segment of the plot function.

Data extraction from the web

I was doing some work for a client a couple of days ago – as always I was running short on time and needed it done yesterday. The job entailed trying to finish off the shipping costs of a product that would be posted from Ireland to a number of countries.

Lucky for me An Post here in Ireland have an online application that allow the checking of the shipping costs problem was that it was time consuming to check all the shipping costs.

Sin Waves with paths in Photoshop

Here something that I did ages back as a substitute for not getting python to communicate. I went ahead I did it in JavaScript.

I had been wondering how I might do a sin wave path in Photoshop – obviously I had to write some code so after a bit of experimentation this what I came up with in the end, Warning not the prettiest code in the world but it but it works.

Flash FUSE toolkit

Sometimes I do wonder what I'm doing most of the time looks like here another library that I glanced and never put the pieces together what was going on. For the last hour I've jsut been trying to figure out how the whole library works.

Slide presentation does - too early for the dont's

Been struggling trying to get some flash presentations up and running today, some what different to what goes on with powerpoint.

Here’s what I discovered - when creating screens the first screen in a stack attached to that parent is displayed with the parent (that just he way it is) and counted as a whole and every subsequent screen is independent.

Python to Excel

Finally manged to get python to communicate with excel and write data to the file.

The script below is structured so that the user selects a folder and the automatically reads in all files in that folder outputting the average and standard deviation to excel.