My blog touching on music, dev stuff, drinking around town (london, UK), commentary on tech/gadgets and what ever the hell comes to mind.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « May | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
Posted on February 26th, 2010 by thiswayup.
Categories: Development.
Wow, wish I got home a bit earlier last night after the PHP social. Don't believe I crashed out finally about 2am after chatting to a few people including Jeremy about various things relating to coding, organising conferences, stories from PHP NW 09. But before all that there was an interesting chat about designing a REST api and saying how bad the twitter api was, more Php Hip Hop and also some guy ranting about how great Drupal is. Was tempted to jump up and counter with how great Modx is but was enjoying me beer too much and it looked liked people had enough with chats! Going to have to leave that till next month!
Made it to the PHP UK conference today and this morning got to hear Josh Holmes do the keynote talk about "The lost art of simplicity", of course was much more abstract chat but so many elements ring true such as the instinct of developers to over build for something simple. Then went on to hear Stefan Priebsch chat about Anti-php patterns, a talk on bad habits or mi-interpretations of patterns. Then followed to Rowan Merewood on his chat about "Living with legacy code", a talk about how to deal with legacy code when trying to update/integrate it with new code. I always like Rowans code with his great injection of his personal style of presenting and humour. Loved the comic book style slides
Just had lunch and I really should mingle a bit more…
ps apologies for any typos and mistakes on this post, the usual amount of checking and editing I would normally do!
Posted on February 22nd, 2010 by thiswayup.
Categories: dev.
Just to remind myself how to capture the event when the map is dragged AND work out the distance to a previously recorded center point on the map
GEvent.addListener(gmapFn.mapObj,'dragend',function(){
var ctrLatLng = gmapFn.mapObj.getCenter();
alert(ctrLatLng.distanceFrom(gmapFn.lastRefLatLng));
});
Very handy! gmapFn.mapObj = the object of the instianted gmap object and gmapFn.lastRefLatLng is a GLatLng. You can quickly get the center of a google map by calling the function gmapObject.getCenter() which returns the center as a GLatLng.
Enjoy!
Update : handy refrence of all the events you can to a google maps listener http://econym.org.uk/gmap/gevent.htm
Posted on February 16th, 2010 by thiswayup.
Categories: Development, London gems.
Holy crap! I don't believe they did it! The crew at secretlondon.us have just gone live with the site!!!!
Check out the blog entry as well! Glad to see the map working, gonna have to put a few more hours in to make it more amazing!
update – Holy crap! My mug is on tech crunch!
Posted on January 25th, 2010 by thiswayup.
Categories: dev.
I've been seeing alot of php/web dev best practices recently and I'm always looking at whats the "best" way to do things …just so that I can be a lazy ass over the long term and not have to go back (and fix) potentially naff code
Here is a small collection of them that has ended up in my delicious bookmarks.
Posted on January 19th, 2010 by thiswayup.
Categories: Development.
After all the xmas fun and what not, I decided to finally get round to try and catch up with some more reading the Pragmatic programmer and I thought it be best in this post to cover some of the things that jumped into my head. The Pragmatic Programmer has been recommended by people as a guide to subjects associated to a programmer's role including things such as approaches to development, architecture, personal development, testing and teams. This purchase came about because of the realisation that the more projects I undertake, the more I realise the science of software development is a myth, it is a black art. We never know what we are building *exactly*. On recent projects and on the currently one I am on now I was trying to figure the balance between building a prototype to try figure out the feasibility of what we can build is actually achievable, versus to 'just getting on with building it'. I thought there was a balance to be achieved to building something to be reused and building something to be thrown away. In one chapter that sticks out for me, it discusses tracer bullets as an analogy. Tracer bullets helps a gunner, it checks if the shot they are taking is on the right track by flaring up and shows a path it takes towards the end target. Tracking code is much the same idea, build code that is usable and aims to fulfills a end requirement. The operative word is 'aims'. Very much half the time, we build on what we know or think we know. Creating tracer code helps us create a working 'thing' as an idea to try figure out whether we are on the right track when we show it to people. A prototype is a proof of concept. I seemed to be quite hung up about wasting time on creating prototype code which I can't reuse, I then read the following paragraph :
Prototyping generates disposable code. Tracer code is lean but complete, and forms part of the skeleton of the final system. Think of prototyping as the reconnaissance and intelligence gathering that takes place before a single tracer bullet is fired.
I realise more from my reflection that my analytical nature is at times stopping me to "just build it" on projects. Seems like a classical case of 'analysis paralysis' at the first step! With a recent project I then noticing myself just trying to put a whole bunch of code together to get past my first hurdle after reading more about the idea of the duck tape programmer. From these sort of related readings I have these guiding principles (until some other crazy idea skips along) :
Maybe this time next year, I'll understand at a better level the approach to development!
Posted on January 3rd, 2010 by thiswayup.
Categories: Wordpress.
Just found this really handy wordpress plugin to backup wordpress from the tools menu.What really is quite handy is that it can email you on a scheduled weekly backup to exclude your spam comments. Very cool!
Posted on January 3rd, 2010 by thiswayup.
Categories: Meta-life.
Well, here's a the new year and I thought I would try and jot down my new year's resolution this year to *try* and follow. I decided to try break this process down as to make it more realistic and likely to be achievable by doing the following :
Last year I learnt PHP and JavaScript. Though I'm still discovering new things with these languages (especially JavaScript!) I thought I would try pick up another. Plus I really feel like developing a couple of apps my self
My new aim is to learn objective-C and so that I can build an Iphone app. My short term aim is to try build a basic app first on the iphone for my personal use, release it to the world then later embark on trying to build an app for someone else or a few of them, possibly a few web apps
After starting this blog again, I thought I'll try and keep up the momentum. My aim is to try blog at least three times a month on anything that comes to mind initially then try to bump it up by blogging at least 5 times in a month. The later challenge should be contributing something back to the community and writing some more technical tutorials.
I live in the best city for live music plus I have a free gig venue across the street from where I work. So this year I'm going to have to try and make it to at least 2 gigs a month then come summer hit 4 festivals plus about 3 gigs a month.
I have been really lazy in the past year taking photos and uploading them. I still have a shad load to upload to my Flickr account and I realise that I am my own worse critic! This year is all about throwing it out there on the photo front and worry about making it look good later! So for the first bit is to do at least one photo walk a month (time for some scheduling) then if it goes well and I got some good pics up, then join up on some more photographer london walks in the spring and create a separate gallery section on my website drawing from my Flickr.
I just about managed to swim about 50% of the weeks in 2009
Far shorter then I expected! This year I'm going to try and swim at least once a week then when the winter isn't so oppressive in the Spring then an early swim! Also I should try do something else in the year such as a good old hike, wall climbing, diving or surfing and DEFINITELY roller blading in summer!
I seem to be getting more requests to help people so I need to get into the mind set and figure out a good process to knock these babies out quicker. Working professionally as a developer, my job lends itself to me having to build the things but I sometimes forget(choose to neglect) about the whole process, since I just want to code! Short term aim is to get a new website out for the family business and for the housing association then maybe do some more freelancing towards the end of the year.
Cooking seems like a good alternative on a friday/saturday night to going out on the lash! So on the weekends, do more experimental cooking and buying less fried chicken! For the first few months, cook two new recipes a month then four new recipes a month and at least once a month for friends.
Though I keep meaning to drop out as being one of the the admins of DS:London.net, I think I should try and put in some more effort in as it will be running for more then 3 years! So this year I am going to try get some kind of structure in place so I don't have to attend it as much then try get some kind of sponsorship in place by the end of the year so we can try balance the books a bit more.
I think this resolution is to force me to take more of an active interest in exploring as I seem to be slipping away from being what my moo card says I am(i.e the Urban extraordinaire ). I think this will also probably manifest itself as me being more sociable and actually heading out more often. I guess I'll be more attentive on the meetup.com front! For the first quarter I need to blog about one new 'gem' in london or interesting stuff! Then when summer breaks, be more active in adding to the different london social network guides such as four square.
Well that's it, let's see what happens next year!
Posted on December 12th, 2009 by thiswayup.
Categories: Music, cool stuff, justgeek.
Over the past year, I have started to notice I tend to use alot of the different musical services/bits. In this blog entry, I’ll try and outline the different ones I use and the main motivation I use them. By the way, I am based in the UK so all you American’s, I am a bit jealous you have Pandora!
I have an Ipod 160gb classic and Iphone on me pretty much everytime I’m moving around. My main machine is running Win XP and keep itunes synched to my Apple hardware.
last.fm – I started using last.fm a couple of years ago to try figure out what I actually listen to as it builds a whole bunch of statistics on the music you are listening to. It does this by having a “scrobbler” software that sits in your desktop and tracks the music you play on your then sends it to last.fm. The fun part of this is that once you get some of your data up there, you can then start comparing musical tastes to other people through looking at your “neighbours” who based on their scrobbling, you may have a common interest then go on a bit of a peek on what they listen to. This actually works surprisingly well and it allows you to explore people with some potential quirky tastes! Along with that there’s the usual groups, web 2.0 chiat and wot not.
Itunes - Ok, not exactly revolutionary I know but I have been using itunes since I got my ipod a few years ago. It’s my main hub for my music and I synch the whole contents to my Ipod. I lost all my music once and oh boy, once you loose your music, you get paranoid about loosing it again!
With recent updates to Itunes, you can now build a genius mix based on a single tune plus it even automatically builds Genius lists based on genre, at this exact moment I am listening to a dance mix playing Xpaner, Sasha
Works really well when I can’t be arsed to decide what to listen to from my library and go into “radio-play-something-to-me” mode.
The Godfather – Not related to the Mafia film but a very cool music tagging piece of kit. Before Itunes, I didn’t cared about placing decent ID2 tags on my music but as Itunes is kinda naff if you don’t, having a good piece of kit to do it is VERY important. The Itunes tagging kinda sucks as it cant do things like query other sites for data to put into your albums. Highly recommended for people with large aounts of untagged music.
Spotify – If you haven’t heard of Spotify then get it now! Essentially, imagine having an Itunes style interface with a library of a millions of songs which is streamed (and some sometimes allowed to be stored), that’s Spotify. But that’s not the only selling point, another great selling point is the playlists you can build, share and collaborate on. If you wish to share your playlist, you can instantly get a web address that in another spotify, it will open and see it as a new playlist. Genius (even more so then the Itunes offering)! It is a brilliant system and I’m glad the record industry are waking up to this model. Spotify fund this by either interjecting your listening with ads or you pay a monthly £10 subscription, which incidentally also allows you access to the Iphone App that gives you ability to download playlists to plat offline. WOW!!! I’m not too far from getting a subscription!
7digital – I thought I would include my fave online digital store as well. One of the reasons is that they offer free music to download (legally) from their website in a regular subscribed email plus they offer the downloads as Mp3 in 320kbps with a nifty desktop app to manage downloads. The prices are very competitive compared to Itunes and I am all for some further competition to push the music stores on. I was thinking at looking at the Amazon offering, but meh, why try fix it if its not broken!
So peeps, how about you? What do you use? Listen
Posted on December 6th, 2009 by thiswayup.
Categories: humour, justgeek.
Just found a website called b-rhymes.com recently through the Kohana website. Essentially this website can find words which sound similar to any word you typed in! Great building a poem, rap or lyric for lazy creatives? I gave it ago
Hanging around the streets, us the DS peeps and I thought we best retreat..
to that pub that what we see much of our club.
Sitting down, we unpack and unwrap for some gaming and much loved entertaining!
Hmmmm…probably won’t make the T. S. Eliot Prize but you get the idea
Posted on November 30th, 2009 by thiswayup.
Categories: dev.
Just for my own personal reference. Here’s a quick list of the different types of variables in Modx.