,

How to post with WP-CLI

Right, so this is probably not for everyone – but I just wanted to share.

#Disclaimer

I am real big fan of VI and I do tend to think the default WordPress interface is a bit confusing, especially – if you just want to write.

 

Too many option, too much stuff on the screen.

 

When the stress is ON and my attention-span is reduced to the one of a goldfish, it becomes really easy to lose your focus – and WordPress admin doesn’t help much. That is why I like VI so much – and thereore I was looking for a way to deploy it for the management of my writing.

Vim plugin – not this time

Before you just say – “hey there is a plugin for that” – (If you don’t know, Vim as a bunch of plugin and I would advise you check VimAwesome to get an idea of how many things you can do with this tiny piece of software.) So obviously among all the plugins, there are a few dedicated to manage your WordPress blog directly in VIM. However, after I tried doing this in the past with Sublime Text – turned out to be too much of an issue and was interfering with my regular coding sessions.

WP-CLI is your friend

So lets start with the fact that WP-CLI *is* awesome in itself.

In case you never heard of it – it is a very clean – intuitive – command line tool for managing WordPress.

It is designed to handle most of (nearly everything) of WordPress (and if you wanna more about it – just go check their website)

and it turns out you have a few “interactive” editing tools for publish…

 

Handy commands

$ wp post <command>

The core command to manage your post – i.e : creating, listing, editing, updating, etc.

  1. Create a new post

$ wp post create ./source-file.txt –post_category=105 –post_title=”You title”

2. List existing draft

$ wp post list –post_type=”draft”

3.Edit an existing draft

$wp post edit 1443

which will edit the given post (in VI – if vim is your default editor) – and then when you just escape – save exit – it will auto publish the new version.

That’s basically it.

 

Now – further development are about combining this tool with a similar tool – producing text – like Notional Velocity (Mac) or Terminal Velocity (Linux/Unix) – SimpleNote (Windows/Mac/Linux). and adding some extra commanding line tooling for image preview and image upload for which we could use tranfer.sh maybe…

 

That is really all there is to it – but I just to share cause i was excited about this whole set up.

 

 

 

,

10 laws of project management

Augustine’s Law

A bad idea executed to perfection is still a bad idea

Corollary: A good idea poorly executed is of no use to anyone

 

Lakein’s Law

Failing to plan is planning to fail

Eisenhower’s corollary : Plans are useless, but planning is indispensable.

 

Fitzgerald’s Law

There are two states to any large project :

  • too early to tell
  • and too late to stop

Corollary: Projects have momentum, once started they become increasingly difficult to stop

 

Hofstadter’s Law

It always takes longer than you expect, even when you take into account Hofstadter’s Law.

 

Parkinson’s Law

Work expands to fill the time available.

Corollary: If you wait until the last minute, it only takes a minute to do

 

Constantine’s Law

A fool with a tool is still a fool.

Corollary: A fool with a tool is a more dangerous fool

 

Graham’s Law

If they know nothing of what you are doing, they suspect you are doing nothing

 

Murphy’s Law

If anything can go wrong, it will.

1st corrolary: Left to themselves, things tend to go from bad to worse.

2nd corrolary: If there is a worse time for something to go wrong, it will happen then

 

Kinser’s Law

By the time you finish doing something, you know enough to start

 

 

 

,

THE CULT OF DONE MANIFESTO

It is an original piece from Bre Pettis and Kio Stark – under Creative Common.

For me it is a reminder that done is better than perfect, and no matter how creative you want to be there is a point where actual delivery matter more than potential awesomeness .

Here it is:

The Cult of Done Manifesto

  1. There are three states of being. Not knowing, action and completion.
  2. Accept that everything is a draft. It helps to get it done.
  3. There is no editing stage.
  4. Pretending you know what you’re doing is almost the same as knowing what you are doing, so just accept that you know what you’re doing even if you don’t and do it.
  5. Banish procrastination. If you wait more than a week to get an idea done, abandon it.
  6. The point of being done is not to finish but to get other things done.
  7. Once you’re done you can throw it away.
  8. Laugh at perfection. It’s boring and keeps you from being done.
  9. People without dirty hands are wrong. Doing something makes you right.
  10. Failure counts as done. So do mistakes.
  11. Destruction is a variant of done.
  12. If you have an idea and publish it on the internet, that counts as a ghost of done.
  13. Done is the engine of more.

 

The Cult of Done

 

 

 

Make your meetings more efficient

Meetings can suck your time and your life.

But… that is still also one of the best way we know to actually coordinate with each other and make sure agreements flows into an organisation.

Yet, when you call for a meeting you can still make sure your time will be well used by creating a frame within which the conversation will happen.

Meetings

What do you need this meeting for?

A meeting about a topic in general is not good enough for people to really prepare to your meeting (we assume people want to come prepared to your meeting).

So are you trying to:

  • kickstart a project / an event
  • solve a problem
  • define a strategy
  • agree on an issue
  • Get feedback
  • Share experiences (debriefing post-event for instance).
  • Create a political space for people to vent

Once you know what you want to achieve during the meeting, get more precise:

Kickstart the project / an event

Probably you are gathering the team that will work on this event – so you can either send the list of roles before hand or if you do not have it yet, then define as an outcome : to have a list of roles.

Maybe you need to create a schedule for the event, then define it as an outcome : to produce a schedule.

Or, as an alternative, someone can be tasked to provide a suggestion and then your meeting is a review meeting where the outcome is an approved schedule.

Solving a problem

Are there materials that participants can read before the meeting?

Was there a email conversation that should be shared with the participants?

Can you create context around the problem?

What does the solved problem looks like? (hints: an approved budget, people hugging, a decision made…)

Define a strategy

Is someone responsible to present a strategy at the meeting?

Can you send ahead of time the materials that should be read to help understand what are the constraints on the strategy?

What is the time span for this strategy?

How critical is everyone to be in the meeting?

Can two people take the responsibility to create a strategy document instead and present it to the rest of your team – turing the meeting into a shorter maybe more efficient review meeting?

Agree on an issue

What is the problem and where are the disagreements?

Can you provide a brief of the pros and cons on the issue before the meeting?

Can you formulate the issue as a question?

This way, people could think about it before the meeting.

Define the type of meetings

It may help – to frame your meeting as a :

  • Kickstart meeting
  • Review meeting
  • Update meeting
  • Conflict-resolution meeting
  • etc.

And define your deliverables as an outcome

  • A task list
  • A schedule
  • A strategic decision
  • A list of role/responsibilities
  • An project updates summary
  • A list of problem to solves
  • A list issues to take in consideration
  • etc.

 

Conclusion

All these are just general examples, but the point is that you want people to come ready and know the meeting was left with a clear progress – so try to frame your progress as deliverables that are produced by the end of the meeting.

, ,

Time Management – Hustle Hack 101

Yes, procrastination sucks, but it is part of life, stop complaining about it and do something about it.


Here are some tips I am using myself or have used at some point and have helped me along the way.

Start somewhere with a schedule for your days with objectives

Achieving your goals assumes you have defined some, and if your day is not going as you want, probably worth thinking what was that you wanted on the first place, what were you goals for the day, and what did you plan to achieve that you didn’t do. Because if you don’t make goals, that’s the best way to fail at meeting them.

 

Claim back your time by cutting your meetings in half

Yes meetings are important – but if you try to cut the chase in the meeting and get to a conclusion in half the time, you’d be surprised how much blabla and useless talk can go into a meeting and you’d be able to achieve more.

 

Gain clarity by defining clear deliverables

It is what you create not what you do that matter.

Focus on the outcomes, not on the activities.

People do not care what you did all day, if there are no results.

What is the result of your work?

Can it have a tangible form?

These are questions you may need to ask yourself from time to time.

These outcomes can be :

  • an email produced
  • an presentation
  • an article
  • or report.
  • etc.

It is also okay to explore, especially when you do not know what you need to do or produce, especially true when you deal with some innovative and creative process, when you are not sure, you need to think, so you spend a lot of time researching.

But even this can be structured in a deliverable:

  • it can be a list of materials you gathered
  • it can be made into a blog post
  • it can be a zip file, with a bunch of PDF for reuse.

Anyway, when you feel your time is going away with no result, it can be useful to clarify the deliverables.

Get your focus back with the pomodoro technic

Just check Wikipedia:

 https://en.wikipedia.org/wiki/Pomodoro\_Technique

TL;DR
Set up a 25 min timer – work focused during this time.

Then set up a 5 min break to reward yourself and then do it again.

Can’t get the Pomodoro thing to work?

Try any of these any other focus-driven method:

The 1-3-5 method
http://jasono.co/2013/08/25/why-the-pomodoro-technique-doesnt-work-for-me/

The 2-min rule
http://jamesclear.com/how-to-stop-procrastinating

The 50-10 rule
https://theproductivephilosopher.wordpress.com/tag/the-5010-rule/

The 10-min rule
http://www.naomiliddell.com/10-minute-rule-do-the-work/

 

Time is a question of importance

In the end time management is a question of importance

In the end, it is all question of importance. You lose time because you don’t care enough about your time to take your day seriously and make every minute count.

 

Finally watch this :

David Allen has broken down the science of productivity into a method he called GTD – for getting things done. It is based on real scientific data, originally from some work done by the the NASA on stress. I am a big fan of his work personally and would strongly recommend you get his book.

Meanwhile you can watch a talk he gave at Google a while ago but which is to me still one of the best out there:

Getting things done – David Allen at Google:

 

,

Laziness is unconscious incompetence

I stumbled upon this video the other day.

Some ex navy seal guy, they do army-style training programs for people who like to get their butt kicked.

But also, they happen to have very good content on psychology of motivation (which actually make sense given what they do as a job.)

The following video is about the reasons behind lack of motivation, lazy-style, I’ll do it tomorrow approach.

 

TL;DW: Lazy is incompetence-driven. You don’t think you can do it, so you try to avoid doing it. And when you do, you figure out you actually suck, then most people just drop out here, and the real deal is to go beyond this feeling.

 

I find this fascinating on so many levels.

 

At a personal level, I can totally identify I did that myself so many times, and to really understand the root of the problem is a first step toward solving it.

But, from an HR perspective it just highlights the importance of training to create motivation, and drive mastery within the organisation.

From a marketing perspective, it just remind us that UX is here to make it feel it is easy, because else, it doesn’t happen, users are not thrilled.

Apparently, it happens that we hate to suck at the things we do.

 

 

 

 

, ,

The Resistance

The resistance is some phenomenon well known of creative people, entrepreneurs and anybody trying to make something different and/or new happen – to some extent it is like a force of nature that manifest itself against our will to improve, our desire to advance.

The resistance is the dark side of the force, here to maintain our free choice in the grand scheme of thing.

 

But mostly, resistance is a little bitch.

Many authors have talked about this phenomenon.

The best I have ever read so far is Steven Pressfield, who dedicated a number of books to it, and his words are so accurate that it is a must read for everyone in the business of making shit happen.

 

Here it is.

 

From The War of Art: Break Through the Blocks and Win Your Inner Creative Battles

 

The following is a list, in no particular order, of those activities that most commonly elicit Resistance:

  • The pursuit of any calling
  • The launching of any entrepreneurial venture or enterprise, for profit or otherwise.
  • Any diet or health regimen
  • Any program of spiritual advancement.
  • Education of every kind.
  • The undertaking of any enterprise whose aim is to help others.
  • Any act that entails commitment of the heart (the decision to get married, to have a child, to weather a rocky patch in a relationship, etc.)
  • The taking of any principled stand in the face of adversity.

In other words, any act that rejects immediate gratification in favour of long-term growth, health, or integrity

Or, expressed another way, any act that derives from our higher nature instead of our lower.

Any of these acts will elicit resistance.

Now, what are the characteristics of Resistance?

Resistance Is Invisible

Resistance cannot be seen, heard, touched, or smelled. But it can be felt. We experience it as an energy field radiating from a work-in-potential.

Resistance is a repelling force.

It’s negative.

Its aim is to shove us away, distract us, prevent us from doing our work.

Resistance Is Insidious

Resistance will tell you anything to keep you from doing your work.

It will perjure, fabricate, falsify; seduce, bully, cajole.

Resistance is protean.

It will assume any form, if that’s what it takes to deceive you.

Resistance will reason with you like a lawyer or jam a 9-millimeter in your face like a stickup man.

Resistance has no conscience.

It will pledge anything to get a deal.

Then  it will double-cross you as soon as your back is turned.

 

If you take Resistance at its word, you deserve everything you get.

Resistance is always lying and always full of shit.

Resistance Is Impersonal

Resistance is not out to get you personally.

It doesn’t know who you are and doesn’t care.

Resistance is a force of nature. It acts objectively.

Though it feels malevolent, Resistance in fact operates with the indifference of rain and transits the heavens by the same laws as stars.

When we marshal our forces to combat Resistance, we must remember this.

 

Resistance Is Infallible

Like a magnetized needle floating on a surface of oil, Resistance will unfailingly point to true North—
meaning that calling or action it most wants to stop us from doing.

We can use this.

We can use it as a compass.

We can navigate by Resistance, letting it guide us to that calling or purpose that we must follow before all others.

Rule of thumb: The more important a call or action is to our soul’s evolution,
the more Resistance we will feel toward pursuing it.

 

Resistance Is Universal

We’re wrong if we think we’re the only ones struggling with Resistance.

Everyone who has a body experiences Resistance.

Resistance Never Sleeps

Henry Fonda was still throwing up before each stage performance,

even when he was seventy-five.

In other words, fear doesn’t go away.

The warrior and the artist live by the same code of necessity:

The battle must be fought anew every day.

Resistance Plays for Keeps

Resistance’s goal is not to wound or disable.

Resistance makes no prisoners.

Resistance aims to kill.

Its target is the epicenter of our being: our genius, our soul, our uniqueness.

Resistance aim to take the priceless gift we were put on this earth to give and that no one else has but us.

Resistance means business.

When we fight it, we are in a war to the death

— About The Resistance – by  Steven Pressfield

 

Now you know.

Start paying attention.

Procrastination, self-doubt, over-confidence, anything that result in delaying the creation of anything of value – is the resistance at work.

Fighting the resistance is like a sport.

You start slow and easy.

As you get better, so does the resistance.

It is like Newton third law, for every force exerted, you have a a second force in direct opposition and equal in magnitude  resisting the force of progress.

How do you stay motivated

The short answer is : you don’t. There is no such thing as “staying” motivated. Instead you need to cultivate necessity.

Necessity

You know this feeling you get when you’re getting dangerously close to a deadline. Like you have to get that shit done. Now. Err.. actually yesterday, but yeah, now. And you get full power into your essay/project/report. That feel like motivation, right? So now the question is more how do I stay motivated all the time? Not just when I get close to a deadline, but when I want to.

Think about it for a moment, the high pressure coming from a danger (missed deadline) is a high necessity. So you need it and you do it.

To get wired on your goals, and achieve what you want in life, you have to need these goals in the first place.

You are like “I would like to want to get my degree, but instead I’ll just chill today” You want results but not as hard as you wanna chill.

So, first change your source of information, what you watch, what you read, until you become something else.

To be somewhere, you have to be someone else, so become some else.

Because we are wired to do just what we need to do, get to the point where you need to achieve your goal.

,

Do the work. What for?

Do the work.

You know it is true. You know it is right but you do not get to do it.

Too busy? Too lazy?

Maybe you are just unclear with your goals.

Humans are goal-driven animals. We just cannot move our little finger if we do not have a reason for it. It may be a primal instinct that drive you toward action, and skip the rationalisation altogether, or it may be a cold rationalised series of strategic moves, or a mix of both. Whatever it is, the clearer it will be for you, the better off you will be.

Too often, lack of productivity and the feeling of being in the busy hamster wheel is the result of a lack of clarity.

By lack of clarity, I mean that your head tells you one thing, but your guts tell you an other one, and you get confused.

When you get confused your brain is activating its internal brakes and you won’t get far.

Like, you know you should be finishing this report, but hell, that TED talk on the future of education is soooo interesting… hey! look a video on hamster… 2 hours later… no new lines on this report, or not much progress on this design thing, or whatever you were supposed to get done is yet to get done.

Why?

Because you don’t know why you were supposed to do this report on the first place… Like, yeah, you know it’s tied to your project/job/commitment to someone, but why was that someone important? What do you do this project? How is this linked to your long terms goal? etc.

 

In short, you need to get your guts and your brain to reconnect.

 

How?

Get a piece of paper, your daily journal, an old envelop, whatever you can, and a pen. Write down:

“I want to do this report because X”

“I want to do X because Y”

“Y because Z”

etc.

Go as far as possible in your chain of causality until your life purpose and this report reconnect. Until this report make sense in your life again.

Unless it doesn’t, and then figure out how to get out of here, because your life won’t get much better if you keep doing shit you hate because it is not what you want to do anyway.