Skip to content →

flowingmotion Posts

5 steps for setting up a new website

Fireworks by Jason O'Halloran via FlickrMy notes for setting up a new website

I am just in the process of setting up a new website and because I don’t do this often, I am writing down how to do it.

Nothing here is new.  What I write is not necessarily accurate.

These are my notes so that next time I don’t have to start from scratch.

Use my notes if they help you.  But read them intelligently knowing that I am not an expert.

Stages

  1. Get a domain name
  2. Sign up for Google Apps
  3. Set up your hosting & load up your WordPress shell
  4. Link up Google Apps to your hosting service
  5. Complete the link up at Google Apps

These steps take us from

  • I have found the name I want and I have chosen my hosting service (where my website sits physically).

To

  • I own the name.  Its “nameservers” point to my hosting service’s computers (where the website is physically)

And

  • I have a matching account at Google Apps for email with a piece of their code on my website on the hosting service computer ‘authorizing’ Google Apps to run this parallel service using the same name as my website
  • Note that if you don’t need a new email address then you don’t need steps 2, 3 and 5.

 

Leave a Comment

Strip whitespace from a document in elementary Python scraping

Tsingy 010 by Olivier Lejade via FlickrSimple python scraper

I’ve been using Python to extract text from textfiles that I created from pdf documents using opensource PDFToText.

Strip() does not strip all whitespace

There is a nifty python command which strips off leading and lagging white space.  For example, to clean up a line containing the phrase that we seek, we simply write

line = line.strip()

or

line=line.rstrip()

line=line.lstrip()

Easy peasy ~ except that my phrases were being returned with a long list of whitespace to the right.

The whitespace is not visible to the naked eye of course and I deduced that from the presence of word~long blank~closing quotes.

NBSP will not be stripped by strip()

My own diagnosis took me up some blind alleys.  In a thoroughly confused state, I sought help on StackOverflow.  While I slept, a helpful chap in Australia read me the riot act on confusion and told me what was likely to be my problem.

The whitespace wasn’t a space after all. It is a NBSP – non break space.  That is, a marker that is the opposite of forcing a page break – it prevents  a page break at that point.

Knowing this, all I had to do now was search for NBSP using its ASCII code “XA0” ( and that 0 is zero).

Simple python code to find and strip NBSP

So this is what I did:

I compiled a search term as

Snap = re.compile(r”””

(XA0)                    # searching for NBSP that shows up as white space but doesn’t leave with strip()

“””, re.X)                    # re.X allows this verbose layout with comments

matchObj =  snap.search(line)

if matchObj:

# Discard the line at the point where matchObj starts

line = line(matchObj:)

else:

pass

Clean NBSP from textfiles using Python

Hey presto – my line is cleaned up and the offending NBSP have gone.

 

Leave a Comment

Commuters agree to be deprived of life for eternal slumber

Frustration by greencandy8888 via FlickrfYesterday evening, the M1 motorway heading north out of London was closed – for 24 hours.  Thousands upon thousands of commuters going home and people heading north for the weekend were stranded.

Staying in London overnight is a large expense for a commuter.  Outgoings will be at least 100 pounds.  Your dogs and cats back home remain unwalked and unfed.  And I put that first because I am British.  Your partner and children might be ill amused too.

There is no insurance for commuter travel.   And no liability for the operators or the utility providers.  The commuter bears the risk as an Act of God.

Yet we don’t treat our commuter travel as part of the reason why we travel.

@documentally was grumbling.  I don’t blame him because I would have been worn out with frustration too.  And if I am honest, I’ve cut down my use of public transport to the minimum.

But the irrelevant frustration, the signs that we are going along with senseless commodification of our lives that only hurts us led me to wax lyrical.

My tweet of the morning that infuriated @Documentally even further

@Documentally We’ve been duped into believing that several hours travel isn’t an adventure – deprived of life for eternal slumber?

2 Comments

Don’t brag and don’t whimper!

Delight by Nagesh Kamath via FlickrAdventure, surprise and discovery

I am quite an adventurous person.  I like experiencing new things and the biggest prize is discovering a new method or way to get something new.

Tales of exploration

I also love listening to stories of people who think the same way.  But there is a paradox in our fascination with surprise and novelty.

Don’t brag and don’t whimper!

Stories where we succeed are not actually all that interesting.  It is the stories where we fail that are funny and interesting.

That’s life.

  1. We get fun doing something surprising and new.
  2. People laugh uproariously at our of stories of ill-judged hope

We don’t get both!

  • People don’t really want to know what you did well – they want to do it themselves.
  • People don’t give a jot about your misery but they will appreciate a laugh at your expense.

The fun is in doing well, or, recounting flops.  Don’t brag and don’t whimper!

I get the impression that this ethos is not widely shared.  What do you think?

Leave a Comment

Is the universe capable of having your city at its center?

View from the Rockfeller Center - Top of the rock - 51 by caccamo via FlickrStanding where you are – what do you see?

Psychologists angst quite a bit  over whether there is an essential us  or whether we are creature of circumsances.

Of course we are both and neither.

Without a deep respect for the place where we find ourselves, how can we see the world?  Irish Yorkshireman poet David Whyte calls the place we stand “hallowed ground”.

Birmingham poet, Roy Fisher is functional as  any Brummy should be.

 

The universe, we define

As a place capable of having

A place like this for its centre.

 

There’s no shame/ in letting the world pivot

On your own patch.  That’s all a centre is for.  (p.13).

Roy Fisher

 

( I must buy his book but I haven’t discovered the title yet.)

Leave a Comment

Is your soul in your city?

365.107 dancing on ruins by aaron.bihari via FlickrIs your city long past its prime?

I can understand the argument that many British cities, like Liverpool and Birmingham have

  • “outlived the lifespan of their own economic base or infrastructure and must now live primarily by their “superstructure”

and

  • “such institutions as museums-of-local-life or tourist-related service industries which recycle and re-package the industrial past assume a primary role in the local economy”

(Peter Barry in Contemporary British poetry and the city)

Are we hankering after times long gone?

There is also nothing wrong in selling history, geography and a variety of temporary, low grade experiences.  Though not from a holidaying culture,  I too have been on ‘holiday’ in my time.

But it makes no sense to

  • Think we can roll the clock back and re-assert the raison d’etre a place had in the past.
  • Deny that the old  raison d’etre has gone out with the tide of history.

Is there not a place which speaks to our soul?

If we aren’t selling history (and enjoying selling history) maybe we should move to a city which has a raison d’etre that speaks to our soul.

I know we don’t all have a choice but I am sure clear thinking will give us more choices.  I know from past experience that  it is utterly deadening to live in a place that has lost touch with why it exists.

Like a traditional farmer in winter, a city might be enjoying the fallow winter and living off stored harvests.  That is OK too.

It’s the self-delusion or alternative cynicism that makes us feel zombish.

Why does our city exist?  Do we empathize with its soul?

Why does our city exist?  And do we empathize with its soul?

What is the resonance between us and the city where we live?

2 Comments

Our lives but a poetry of place?

Birmingham Central Mosque by george daley via flickr“Birmingham’s what I think with.  It’s not made for that sort of job, but it’s what they gave me.”
Roy Fisher

    Is it true that thinking about the objects around us helps us see opportunity and choice?

    Are our lives poetry of ‘our place’?  Even if we not conciously writing its poems?

    • What thoughts did I have today because of my surroundings?
    • Did I even notice my surroundings?

    Would I think differently if I rearranged my surroundings and made them more attention?

    Would I enjoy thinking that way?

    Leave a Comment

    3 simple ideas for leading in today’s turbulent workplaces

    Walk-this-way-by-garryknight-via-Flickr.jpgDespite waves of change, life stood still

    We were at war

    I went to university at a time of radical social change.  Not to put too fine a point on it, we were in the middle of a revolutionary war.

    But psychology was cruising a plateau

    My nation might have been at war with itself, but profession was not undergoing great change.  Being a student was a matter of learning about behaviorism and functionalism and Marxism and   .  .  . and  .  .  .

    And psychology continued to cruise even when real change had happened

    It was only later that cognition made sufficient impact to affect professional life and one look at textbooks will tell you that psychologists were so complacent about the permanency of their approach that they simply edited cognition out of the applied text books.

    An astonishing number of people have been left behind

    Wave after wave of students have graduated without knowing how to do cognitive task analysis and if they have a glimmer, they do cognitive task analysis without agency.

    If you believe the typical psychologist, people do work without knowing what they are doing or caring about what they do.

    Mindfulness means the story of here & now

    Students don’t even study management because organizations “just are”.    It doesn’t even seem to occur to psychologists that context is king.  Mindfulness does not seem to suggest that paying attention to the moment may be important because the moment is important.  We look for generalizations because we believe that generalizations hold and following perfect recipes is the formula for the good life.

    How deadening.  How certain to create depression and ill health.  How certain to lead to economic and financial disaster.

    How odd.

    From paying attention to action in the moment

    If

    • Context
    • Attention
    • Visualizing (not planning) and getting feedback (not making assumptions)

    are both better descriptions and prescriptions of life at work, then what are the actions?

    Last night, I read Gail Fairhurst’s paper on new ways of understanding leadership.  She describes new ways of thinking about work.

    1. “Delve deep into context” and be content with understanding all the different ways that the people present understand and talk about the issues.
    2. “carve out room for maneuver while others remain stymied by disparate or oppositional Discourses (Huspek, 2000)”
    3. “draw upon alternative Discourses” to have fun

    OK, the have fun bit was mine.  But, the remainder of the 3 points are from Gail T. Fairhurst.

    This is very different from the psychology and management of my youth which assumed:

    • There is a good way to do this
    • The old guard know best
    • This is what you have to do (and please leave mind, spirit and sense of humour at the door!)

    To recap: The action of  here & now

    1. The truth is in the wide range of realities described by people who are present.
    2. Some views  will be mind-hoovering, locked in old conflicts and defining the world as impossible.  Find the way forward.  There always is one.
    3. Present (and act out) alternatives in a spirit of fun.

    In thirty years’ time, people may think differently again. And so they should.  What counts are the views of people who are there at the time!

     

    Resources

    Fairhust, G. T. (2009).  Considering context in discursive leadership research. Human Relations, 62(11), 1607-1633.

    Download a copy fast because Journals don’t give away freebies all that often.

    One Comment

    Fumblings with poetry

    (Notes take largely from James Rother’s blog)

    Poetry to the rhythm of a heart beat

    “The iambs’s not a normal way of speech”

    Te Tum Te Tum Te Tum Te Tum Te Tum

    Poetry to the rhythm of our breaths

    “so much depends
    upon

    a red wheel
    barrow

    glazed with rain
    water

    beside the white
    chickens.”

    William Carlos Williams

     

    [Breaking at breaths of American speech (at the time); each line advancing the action; the paragraph being a self-contained form – a second paragraph might have had a different form]

    Questions

    Which captures the imagination more readily?

    Which is easier to remember?

    Which allows fresh and surprising pairing of words?

    My questions

    Which offers possibility and what sort?

    Which affirms identity and whose?

    Rhythmic poetry or free-verse?

    Poetry : a rope bridge of vowels

    Prose: a causeway of consonants

    The metrical poem : begins with an assumption of human life which takes place in a pattern of orderly recurrence with which the poet must come to terms (Hass)

    The free-verse poem : begins with an assumption of openness or chaos in which order must be discovered (Hass)

    Most metrical poems : by establishing an order so quickly, move almost immediately from the stage of listening for an order to the stage of hearing it in dialogue with itself. They suppress animal attention in the rush to psychic magic and they do so by laying claim to art and the traditions of art at the beginning.  (Hass)

    The free-verse poem : insists on the first stage of sensual attention, of possibility and emergence—which is one of the reasons why it seemed fresher and more individual to the twentieth century. . . . (Hass)

    CHECK OUT SIMILAR POSTS

    Leave a Comment

    Sour grapes or dog in the manger or cutting off your nose?

    Split Rock Lighthouse in the Late Afternoon Sun by pmarkham via FlickrStatue at Tsarskoe Selo

    Having dropped an urn with water, a maiden shattered it against a cliff.
    The maiden sits sadly, holding the empty crock.
    Miracle! the water doesn’t run dry, flowing out of the shattered urn;
    The maiden, above the eternal stream, sits eternally sad.

     

    I found this translation of a Russian poem and think it so appropriate to times of great societal change.  What is the equivalent in English – sour grapes or dog in the manger or cutting off your nose to spite your face?

    And if one doesn’t want to be defensive or sulk in the face of unwelcome change, what is the alternative – in poetry or fable?

    Leave a Comment