Joe's Jottings

  • About Me
  • Writing….

Author: Joe

  • Upgrading to WordPress 2.5.1 – some notes for the nervous

    There’s a few basic rules that we can all follow and learn from in life.

    You know the stuff:

    • Never play cards with a man called Mississipi Slim
    • Always walk a mile in the other mans shoes – you have his shoes, and you’re a mile away from him.
    • Don’t eat the yellow snow.

    To that I might add – Be wary of upgrading software when you don’t need to do it!

    I’ve just upgraded ‘Joe’s Jottings’ to the most recent version of WordPress and whilst it only took me an hour or so, it could easily cause some serious pain for folks less happy with a little database hacking.

    I followed the basic upgrade instructions given here – and on completion attempted to log in to the system.  Now, this is soemthing I do every day, so it’s reasonable to assume that I can remember my password.  And, just in case, I have it noted down soemwhere…so…I was rather peeved when WordPress rather politely told me I’d got it wrong.  Never mind…I can order up a new password.

    Following the instructions, I received a mail containing a link that included a URL containg a ‘key’, and on clicking on this was told that the key was invalid.  A closer look at the key indicated why; it contained a couple of ‘&’ characters, which would be treated as splitting the key in to multiple fields when entered in to a browser!

    Guys…this is REALLY naff!

    Anyway – as I needed to get the blog sorted and checked I opened up the database, went to the relevant user record in the database and changed the value of the ‘user_activation_key’ field in the record to a word that didn’t contain any nasty characters.  I then took that word, pasted it over the value of the old key in the URL I’d been sent, and posted that in my browser window.  The result was I soon received the new password.

    There is a proper fix – http://trac.wordpress.org/changeset/7837?format=zip&new=7837

    Note that if you’ve already requested a password change you’ll have to blank out the user_activation_key field before you can make use of this fix. 

    Anyway – apart from that, it now works fine.  But by ‘eck, it was a hairy 30 minutes sorting this out.

     

     

    June 4, 2008
  • Reflections on “The Ones Who Walk Away From Omelas”

    I read this short story again recently; it’s by Ursula Le Guin and is one of the most haunting short stories that I’ve ever read.  The only short story that sticks with me more than this one is Parke Godwin’s ‘Stroke of Mercy’, which is stunning.

    I’d suggest you go and read ‘The Ones Who Walk Away From Omelas’ before you hit the link below, but, if you can’t, to save the plot summary, here we go:

    http://en.wikipedia.org/wiki/The_Ones_Who_Walk_Away_From_Omelas

    I guess the question for me is whether I would choose to be one who walked away; I suppose that in our heart of hearts we all like to think that we have in ourselves the courage and self-knowledge to ‘do the right thing’.  For several years after I first read this story – which must have been in the mid 1980s – I guess at one level such thinking was hypothetical and rhetorical; it wasn’t the sort of world we lived in, after all.  But today I’m not so sure that it is rhetorical anymore, and also I’m not sure I’ve got the guts to walk away.

    We in the ‘developed world’ live a materialistic and consumer driven lifestyle, which has had an increasing amount of impact on the state of the world.  For us to have many of our goodies, it could be argued that somewhere else in the world someone else’s lifestyle takes a kicking.  We have an oil-driven economy; if you’re cursed enough to live above rich oil fields then start running now.

    We want high-technology equipment; if you’re a young, female, circuit board assembler in a sweat shop then be aware that some of the processes that are involved may expose you to fertility affecting chemicals.  In order to provide us with cheap electronics, some of the safeguards that we adopt in the developed world are ignored.

    Have a think about it, please.

    I guess my hiking boots and rucksack are still in the store cupboard right now, and I sincerely doubt that I’ll be walking away real soon.  But I do wonder whether I should at least dust the rucksack down and polish the boots, figuratively speaking, for the day when I too start looking to the distant hills of a less consumption oriented lifestyle and choose to walk away from Omelas.

    May 25, 2008
  • The Bus Book – 14th to 28th April – Jung!

    For many years I have had a great interest in the work of CG Jung.  This originated in my 20s, when I became inteersted in comparative mythology, and read the book ‘The Hero with a Thousand Faces’ by Joseph Campbell.  His references to archetypes in common myth of the hero greatly influenced my thinking, and to this day I regard the day I picked up his book as a great day in my intellectual development.

    From here I went to look at archetypes directly, and it wasn’t long before I encountered Jung, and the stage was set for my life-long engagement with Jungian ideas.  And, an interest in Jung helped me get soem of the ‘in jokes’ in TV’s ‘Frasier’. 🙂

    “One memorable scene had Niles filling in for Frasier on Frasier’s call-in radio program, in which Niles introduces himself as the temporary substitute saying, “…and while my brother is a Freudian, I am a Jungian, so there’ll be no blaming Mother today.”

    Anyway…the books.  How I came to have three books about Jung ‘on the go’ at once, so to say, is a short story in istelf.  My previous Bus Book was about the Knight’s Templar, and I happened to remember that Jung once had a dream about a Templar showing up in a contemporary city.  Digging out the reference to it led me to look through the three books I had about Jung, and I decided that a revision of my knowledge was in order.  So here we are.

    At some point I may blog Jung’s own ‘Memories, Dreams and Reflections’ here, but for now it’s books about the man, not by him.

    The books are:

    Anthony Stevens, ‘Jung A Very Short Introduction’ (JAVSI), Anthony Stevens ‘Jung – Past Masters Series’ (J), and Ruth Snowden’s ‘Teach Yourself Jung’.

    These are all good books.  The two by Stevens obviously cover similar ground, and I have a great liking for the ‘A Very Short Introduction’ series.  If you ever need a good ‘crash course’ on anything that these books cover, start your education with the relevant book in this series.

    Starting with the Teach Yourself Book – this is a nice, snappy, introduction to Jung doen in the usual ‘TY’ style.  Pleasantly and non-intrusively illustrated with relevant cartoons, each Chapter follows the useful ‘Tell ’em what you’re going to tell ’em, tell’ em, tell ’em you’ve told ’em’ model of educational writing and it works nicely.   It’s a very nice introduction, and can easily be read and assimilated in a a day or so – I would recommend it for anyone ‘fresh on the trail’.  It is a little incomplete; by the nature of the series, TY books are an introduction, but I would ahve expected to see something more on Jung’s alleged anti-semitism, and the accusations of Nazi-sympathies for his Presidency (starting in 1933) of ‘The Medical Society for Psychotherapy’.  These accusations are utter nonsense, but still get bandied around occasionally.  It would have been nice to see an introductory work tackle them head on.  I found the glossary in this book most useful – keeping on top of terminology is critical in a field like this, and this is a good glossary indeed!

    I’ll look at the two Stevens books together, as I think that the ‘A Very Short Introduction’ book is best regarded as a later and enhanced edition of the ‘Past Masters’ book.  These are both fine books; the ‘Past Masters’ one was the first book on Jung I bought, a good many years ago, and it’s still a fine read.  However, I prefer the ‘A Very Short Introduction’ one.  Both are solid, academic introductions to Jung’s life and work from an acknowledged expert in the field, and cover the areas that the TY book does, as well as looking in to the anti-semitism and Nazi allegations skipped by that book.  Oddly enough, neither has a glossary- something of an oversight in my opinion – but both are well indexed and, like the TY book, have good lists of further reading.

    So…which do I prefer?  My favourite is the ‘A Very Short Introduction’.  If I was pointing someone with a ‘lay’ interest in Jung at a book, I would, however, point them at teh Teach Yourself book first.  If it were soemone with a basic understanding of psychology and psychological terminology, then I would have no problems with telling them to jump straight in to the ‘A Very Short Introduction’.

    May 15, 2008
  • Salad Bowl or Melting Pot?

    The other day I was reading an old favourite of mine ‘The Networking Book’, by Jessica Lipnack and Jeffrey Stamps
    http://www.netage.com/pub/books/NetBook/netbook.html

    In one chapter an interesting observation was made about the nature of networks; should a network be regarded as a salad bowl or a melting pot?

    Before you start wondering whether you’ve encountered the rogue ramblings of a wannabe chef, I should explain; a ‘salad bowl’ network is one where the individual members retain their identity and collaborate together, much like a well designed salad’s ingredients do.  The ‘melting pot’ network, on the other hand, is one in which the individual members no longer retain their individuality but become ‘one’.

    This observation was made about a ‘real world’ network, but it is equally applicable to online networks and communities. My own preference is for the salad bowl, but with a few safeguards.  After all, whilst it’s great to have the individual flavours of the ingredients of a salad be distinctly noticeable, if whole cloves of garlic and a few anchovies were to be added to a salad bowl supplying a whole table, those who didn’t want the strong flavours would be rather annoyed. So, it kind of makes sense to not throw all the strong ingredients in to the bowl when only a few may want to have them; why not have a few alternative salad bowls, or even small side dishes with garlic cloves and anchovies in (and a further dish with walnuts for those of us suffering from nut-allergies) that diners can take from at their leisure without inflicting their tastes on others.

    Electronically, therefore, the analogy would be create a community that meets the needs of the vast majority of people, whilst either providing sub-sections of the site for specialists, or even pointing those who require something slightly spicier to other sites.

    A classic example here is the frequent cry for ‘Adult Sections’ on web sites, or ‘Games’ sections to include Flash or other online games.  These would, to me, be the garlic cloves or anchovies; a ‘Warez’ section or part of a site that suggest locations for illegal copies of media would be ‘Walnuts’, as such a section is likely to get you in to big trouble with the authorities, just as a walnut where it’s not expected can cause serious illness for an allergy sufferer.

    My own approach is that there are already many sites offering these options for people; rather than re-invent the wheel, it may well be better to direct people away from your salad bowl to someone else’s.

    May 9, 2008
  • Online Culture and the Law of Two Feet

    Well, after 4 years I recently left an Internet Forum which I’d grown very attached to.  The reason I left was pretty straightforward to me, and in my ‘Bye Bye’ post I simply commented that I was leaving because the culture of the site had changed.  I’d always told users of the site that if they didn’t like the place they should just move on rather than throw hissy fits at how the place was run, so it would have been hypocritical of me to do anything else!

    I thought that I’d made my reasons pretty clear, until a user of that Forum posted a comment questioning what I meant by culture.  And it’s a good question, that has set me thinking.  So, for what it’s worth, here’s some thoughts on online culture and when to move along.  So, here’s a few thoughts.

    First of all, what is meant by culture in general?  As always, you get a lot of choice with definitions.  I liked these three:

    1. a particular society at a particular time and place; “early Mayan civilization”
    2. the tastes in art and manners that are favored by a social group
    3. patterns of human activity and the symbolic structures that give such activity significance. …

    I believe they apply equally to an Internet Forum as they do to a ‘real world’ community; what differs is the way in which the culture is expressed.  Online it will be in words and other media, either in real time or time-shifted; offline it will be in words, media, activity and face to face interaction, again either in real time or time-shifted.

    I started also considering ‘Ethos’:

    “The disposition, character, or fundamental values peculiar to a specific person, people, culture, or movement “

    so I guess that the Ethos of an Internet site is the outward manifestation of it’s culture? 

    Which led on to ‘Rules of Conduct’, which I’ve always regarded as the stick with which to support the two previously defined carrots.  Within any comunity, there are always rules of conduct backed up by consequences which help maintain the culture.  On an internet site these rules of conduct may range from none existent through to fairly tight. Ignoring for the time being the ‘Laws of the Land’, I think it’s fair to say that in general terms the Rules are rarely required if all users of an Internet site follow the Ethos of the site and respect the underlying culture.  This is, at least, what I’ve always thought to be the case.

    Culture isn’t static; it evolves.  The degree of evolution (or even revolution) depends, I believe, on the following:

    1. Rate of turnover of users of the site
    2. Strength of the culture and the degree to which the ‘Site Elders’ (old established members and the controlling authorities of the site) support the existing culture.
    3. The comfort of the vast majority of users with the existing culture.

    When the culture changes, there is often going to be a correspoinding change to the ethos of the site, and hence eventually to the Rules.  Should the cultural change be the equivalent of a ‘hostile takeover’ then it is up to the elders to apply the rules of the site to maintain the culture;  should the change be evolution or the acceptance of the need and desire  to change by the population of the site, then the role of the elders is simply to accept the cultural shift and smooth through it’s effects by amending the rules.

    My own feeling is that whatever the cause of the change, changes to Ethos and Rules are a given if cultural change takes place or is allowed to happen.  Should those changes not happen, the result is a community which is almost schizophrenic; the culture may have changed but the public ethos and rules may not have altered to go with that change, resulting in inconsistency.

    And so to the rule of two feet…

    The ‘Rule of Two Feet’ or ‘Law of Two Feet’ was something I encountered many years ago; “If something isn’t working for you, go somewhere else and find something that WILL work for you”.  Another, rendition of this Law is “The people who attend are the right people”.  It is a Law driven by culture and ethos; if follwoed by people it does tend to prevent cultural change and development in a community except in very specific ways.

    1. If enough people walk away, the culture may collapse or be changed to stop the loss.
    2. The people who walk away may, if sufficient in number, gather together to form a new culture with which they are happy.

    What usually happens to people who follow the Law is that they find communities with cultures and ethos’ that suit them.

    Which brings me to my final observation…why, if an online community has a culture and ethos that someone finds unbearable, do they spend large amounts of time and energy fighting to change it?  Why not go and establish oneself elsewhere?

    May 5, 2008
  • The Bus Book – w/c 7th April – The Templars, Piers Paul Reid

    The things I knew about the Knights Templars – OK, the things that I’d picked up along the way and thought they were true to varying degrees – were as follows:

    1. They wore white smocks with a red cross on and were a martial order who were created to protect pilgrims in the Holy Land in the Middle Ages.
    2. They were violently supressed by the French King who wanted their land and money, and the story goes that one reason that Friday 13th is considered unlucky is that this purge took place on Friday 13th.
    3. Finally…they’re supposed to hold the secret of the Holy Grail and also are supposed to be related to the secretive ‘Priory of Sion’ who, according to various conspiracy theorists and Dan Brown, have protected the secret of the Merovingian Heresy.

    Well, of these, this great little book gives me the facts on (1) – the knights did indeed wear white smocks with red crosses.  As for (2), well, the purge did happen on Friday 13th….as for (3) – nothing said.

    This book is a good introduction to the historical facts behind an institution which has passed over from fact in to myth and legend.  I have to say that the main reason I bought it was that I’d always been interested in the myths and legends surrounding the Holy Grail, which led to an interest in the various Crusades.  It’s not a thick book but I would say that it sometimes gets a little heavy in terms of the relentless facts – who was who between what times, so to say.  In parts it reminded me a little of those books of the Old Testament of The Bible which detail who begat who – vitally important for those interested in Biblical bloodlines but something of a shock to the system for the rest of us. 

    It is well researched and thorough – I would have liked a little more detail about the day to day running of the order, it’s military tactics, etc.  – but it was a little ‘dense’ in places, and I found a few sections hard to get through because of the occasional sections in the book where you’d follow one arc of the story for a few years, so to say, then suddenly find yousrelf back in time and starting another arc of the story that overlapped in time with the first.  I appreciate that this sort of thing is incredibly difficult to write (hey, I wouldn’t even try!!) but it might benefit from a few timeline diagrams showing who’s reign overlapped with who, etc.

    Overall I enjoyed it – it taught me a lot, and I’d certainly recommend the book to anyone who wants to get the historical background to this group of men at this point in history.  I was actually surprised at how relatively small the Order was for the first decade of its life – something that the conspiracy theorists love to go on about – and how wealthy and influential they quickly became.  And it was the latter that eventually led to their downfall.

    Not an easy read for the reasons I mention, but a satisfying one.

    May 4, 2008
  • PHP Session Variables and AJAX

    This one is a beauty… 

    I have recently been writing a web application that combined AJAX and PHP Session Variables.  I soon encountered a problem where it appeared that the session variables were not available form the code loaded by the AJAX call.

    The application basically fires off an AJAX call to load a PHP page when a link is selected, and then populates a <DIV> on the same page with the parsed results of that PHP page.  Session variables were being used to store some basic ifnromation about the logged in user – user name, etc. – and I was hoping to make use of these in the AJAX loaded code.

    After some serious head scratching it became clear that the PHP session variables, whilst being available everywhere else in the application, were not available from any code loaded with AJAX.

    Now, whether this is a known issue or not, or whether I’m being dim, I’m not entirely sure and would welcome any input people have to offer.  However, in the meantime I’ve ended up passing over a couple of extra parameters with the AJAX GET statement and have used those to regenerate the user related data within the AJAX loaded code. 

    Because the application is OO designed, this wasn’t a major problem, but actually recognising the problem was a bit time consuming; hopefully this post will save someone else the head-scratching!

    April 24, 2008
  • Life is what happens…

    when you’re making other plans, according to John Lennon!

    And it certainly seems to be the case that blogging is not what happens when you’re assailed by the requirements of life and the ‘day job’!

    What’s been difficult in the last couple of weeks is stocking ideas up for the blog but never seeming to be in a position when I can actually settle down and do anything.  Now, there are two ways I can look at this; one is that I’ve been so busy that I’ve just not been able to touch base with a computer, or the other is that I’ve just prioritised blogging downwards for a short while!

    I’m afraid that I have to plead guilty to the latter; a side effect (which I should have guessed!) of Facebook was that I suddenly found myself touching base with friends I’d lost contact with a decade ago, talking about new projects and new ideas.  All good stuff but something of a phenomenal show stopper!

    So…be prepared for Facebook to seriously damage your ability to do anything else!

    Of course, the day job also had it’s impact, along with a little more socialising with real life friends than usual. 

    But, enough excuses.  I have ideas, I have a little more time, so I’d better get going.

    April 22, 2008
  • ASP.NET Gridview and CSS

    Here’s a quick tutorial on combining a style sheet with an ASP.NET gridview control.  The only reason I’ve picked on the Gridview control is that I’m using it extensively at the moment.  This is something that threw me a little when I first had to use the Gridview with a CSS file.  Whether I was being particularly dense or not I’m not sure, but for what it’s worth, here’s a quick ‘getting it working’ tutorial.

    This is far from complete – let’s just call it a traditional web development mindset being applied to ASP.NET.  I always find that making the initial breakthrough’s the hard part – I hope this short article eases the way for you!

    The tools…

    I’m assuming you’re using Visual Web Developer for the purposes of this tutorial.  If you’re doing it ‘the hard way’ with just a programmer’s editor then I’ll detail that separately.  In each case ‘Website’ is the name of the folder containing the files that make up the website.

    Within Visual Web Developer

    On the default.aspx page, go in to Design Mode and drop a Gridview object and a data source object to suit your data source (this will depend upon what you’re using for your data for the view, and isn’t relevant to the tutorial – the CSS side of things will apply to all data sources).

    Now, right click on the Website folder in the Solution Explorer window.  From the displayed menu, select ‘Add ASP.NET Folder, and from the newly displayed sub-menu select ‘Theme’.  A folder called ‘App_Themes will be created, and within it a new folder called ‘Theme1’ will be visible, available for you to type in the name of the display theme that you’re going to create.  (For the sake of this tutorial, an ASP.NET theme is a collection of visual effects that can be applied to a website and the controls therein – including style sheets)  With startling originality, we can call it ‘Test’.

    Now, right click on the newly created ‘test’ folder within the ‘App_Themes’ folder, and select ‘Add New Item’.  A dialogue will be displayed that will allow you to select, amongst other things, a Style Sheet.  Select this, and rename the style sheet added to the Test Theme to ‘Test’.

    We now have an empty style sheet – open it up and enter the following:

    .gridtitle {color: fuchsia;}

    This adds a CSS class to the Style Sheet called ‘gridtitle’.  All it does is sets the colour of the text to a rather disgusting (but definitely noticable) fuschia pink colour.Obviously, in the real world we would now proceed to put in to our style sheet anything we pleased.  But for the purposes of this tutorial, this will do.Now, back to our Default.aspx page.  Select the ‘Source’ view.  Modify the first line of the file to read as follows:

    <%@ Page Language=”VB” AutoEventWireup=”false” CodeFile=”Default.aspx.vb” Inherits=”_Default” StylesheetTheme=”Test” %>

    All we’ve done is added the StyleSheetTheme attribute with a value of ‘Test’.  This basically attaches the Style Sheet from our Test theme to the page.Now, we have a Style Sheet, containing a class.  We now need to tell a particular part of the Gridview control to inherit the visual style set by this class.

    For the sake of demonstration, find the <Headerstyle> tag within the asp:Gridview structure, and modify the tag to read as follows : <HeaderStyle CssClass=”gridtitle” />

    This assigns the gridtitle class from our Style Sheet to the Header style.If you run the page, you will see the Header Row of the Gridview rendered in bright pink. And that’s how to do it!

    Using a Text Editor

    If you’re constructing the site using a text editor, then the syntax used is as above.  the main thing you have to do manually is to create the necessary folder structure under the ‘Website’ folder to support the Themes.  In the same folder as the Default.aspx file, create a folder called ‘App_Themes’.  Now, within that folder, create a further folder called ‘Test’.  Within the ‘Test’ folder create a stylesheet file called ‘test.css’ and define the gridtitle class within it.

    Now return to the Default.aspx file and make the changes to it outlined above.

    Again, that’s all there is to it!

    April 7, 2008
  • The Bus Book – w/c 31st March – Libra

    Don DeLillo’s Libra takes on the great rift in the American psyche; that which opened up on 22nd November 1963 when Kennedy was assasinated.  Whatever the nature of the man, one thing became true form that point on – that bad things can indeed happen to and in the Home of the Free.

    This is a labyrinthine book on a number of levels.  It is a semi-fictional account of the life and death of Lee Harvey Oswald.  The author makes no attempt to separate fact from fiction; indeed, as Oswald has entered the status of myth it would probably be nigh on impossible to do so.  The book follows Oswald’s youth, his time in the US Marines, his assignment to the U2 base at Atsuga, his defection, his return, and the fateful day in November 1963 when he and history collided on Dealey plaza.

    The book also follows the activities of three disaffected CIA veterans of the Bay of Pigs invasion, and how their initial thoughts of a faked assasination attempt on JFK eventually give way to soemthing more sinister.

    Parts of the story are seen through the eyes of Nicholas Branch, a retired CIA agent who is now tasked with assembling the definitive story of the assasination of JFK.  He is provided with all sorts of information and meta-information about the assasination – even down to the dreams of witnesses to the event.  A CIA information specialist he knows as ‘The Curator’ keeps the information coming, thickening the fog and building new paths in to an already infinitely complex maze.

    Over the years it is quite possible that no other single event in human history with one exception has been examined so closely with so little agreement as to what actually happened.  And the other event is the Crucifixion.

    The rest of the book is almost stream of conciousness from Oswald, the CIA agents, Jack Ruby and all the other bit part players in the drama.  The labyrinths I mentioned are of information, conspiracy, identity and intention.

     It’s a stunning book.  I am actually quite haunted by parts of it.  As a Sunday Times critic wrote – “This, you feel, is America, and the bad news starts here.” CS Lewis, who wrote about the ‘Inner Ring’ of people more in the know than you are, also died on 22nd November 1963; I’ve often regarded this as ironic. 

    Read it – it reminds me, for some strange reason, of ‘The Name of the Rose’.  I have no idea why.

    A final observation…I bought this book in Leeds and started reading it on the evening train back to Sheffield.  A young lady opposite asked me what I was reading, and I told her.  A young man in a neighbouring seat then looked up and showed what he was reading; The Illuminatus! Trilogy – a novel about an all-encompassing conspiracy.  Whether The Curator would forward notes on such a random meeting to Nicholas Branch…who knows.

    April 7, 2008
←Previous Page
1 … 34 35 36 37 38 39
Next Page→

More posts

Personal StuffTechnologyThe MediaPoliticsPersonal Development

Twenty Twenty-Five Legal Pad

Designed with WordPress