I den kommende uge vil jeg prøve at programmere en fungerende prototype til en webkanban ved hjælp af phpscaffold. Databasen er eksporteret til min server, så nu kan arbejdet begynde. Regner med at der skabes en simpel CRUD-funktionalitet.
CRUD skal betjenes via et administrationspanel i WP. Det skal desuden være muligt at editere de enkelte “tegn” via en knap, der leder til et redigeringsfelt.
Når “stilladset” er på plads skal en præsentationskanban programmeres. Der skal laves en shortcode, som looper gennem databasen. CSS formatterer alt efter skærmstørrelse.
Who – Justin Bieber
Right now Justin Bieber is the most popular guy on Twitter. But – is it really Justin’s just tweeping his days away. His fingers must glow like red hot iron on the phone. Allegedly he’s the author of not less than some 20.000+ tweeps.
That’s an amazing number of tweeps – especially if you compare to the tweeps of Lady Gaga. She tweeped around 2500 times or so.
Kipling’s “six honest serving men”
From the poem “Six Honest Serving Men” from “The Elephant’s Child” you can learn how to analyze communication:
I KEEP six honest serving-men
(They taught me all I knew); Their names are What and Why and When And How and Where and Who.
I send them over land and sea,
I send them east and west;
But after they have worked for me,
I give them all a rest.
I let them rest from nine till five,
For I am busy then,
As well as breakfast, lunch, and tea,
For they are hungry men.
But different folk have different views;
I know a person small—
She keeps ten million serving-men,
Who get no rest at all!
She sends’em abroad on her own affairs,
From the second she opens her eyes—
One million Hows, two million Wheres,
And seven million Whys!
What – Twitter
So where are we? Twitter is a micro blog. You can post max 140 characters. That’s it. You can also post images, video or sound. Twitter is for short statements. It sounds boring. But professional authors and artists can reach out to a big audience.
When – anytime
Justin can tweep anytime – at least if he’s in reach of the internet somehow. He might use a browser – or his smartphone. Whatever device he prefers there might be some app where he can write his updates.
An so he did. 20.000+ times. That’s a lot of micro blogging.
Why – the most important question!
The most important question is: “Why?”. Do you really think that this is just Mr. Bieber having fun? When I click send around 60 persons will receive my tweep. When Justin does the same thing
33.728.223
can read his tweeps. That’s a lot of readers.
To me Twitter may be a kind of social media. But when you reach out to millions of readers it’s not a passtime any more. It’s hardly a hobby. So for people like Justin Bieber Twitter is a mass media channel.
With what effect – guess what: they might just buy the album
Who is the author?
It could be Justin. At least some of the time. But the page looks strangely welldesigned. It’s nice in an almost boring way. Here it is relevant to ask yourself – is the page really made by Justin – or do you think that a ghostwriter is afoot? Are the pictures really made by Justin?
Did Justin write all of the text, some of it or nothing whatsoever?
Can Justin really read the tweeps from the 123.772 persons he follows?
Will this page even pass a Turing test? (Could we suspect robotic activities here?)
Perhaps part of the site is made by professionals. Perhaps all of it. If somebody was payed to help Justin they did a good job if you can take the number of followers as a sign of such a thing. Have a good look at the site.
Have a good look at this – and the other 100 most poplar Twitter sites. Asking yourself who the sender really is might light a candle. So from the point of view of the multimedia programme you can say, that:
I begyndelsen af januar scorede teamet en opslagstavle og aftalte korte ugentlige scrummøder i en frokostpause. Scrumboardet er ikke kommet fra start, fordi vi mangler … af alle ting … knappenåle.
Bruger phpscaffold.com til at lave et stativ af filer til editering af kanban databasen. Resultatet er 16 filer, der igen skal tilrettes til et WordPress miljø. Hvis det virker, så har jeg sparet mange timers arbejde.
Lige nu eksperimenterer jeg med sed i bash (og her er det jo herligt at Macs terminal er en unixklon!). Det må være muligt at fjerne og editere linjer en masse via en trunkering a la *.php. Det er dog ikke lykkedes at fjerne mønstre i mere end én fil endnu.
De 16 filer skal have fjernet linje 1 – og tabellerne skal formatteres ordentligt (border = 1 er ikke kønt, og friseringen bør ligge i css – border = 1 bør ændres til en class).
Lægger hovedet i blød for en smart sed – eller noget i den stil…
Phpscaffold skaber en række filer, der kan inkluderes i et plugin. Men filerne skal editeres en anelse. Linjen include(‘config.php’); skal fjernes, og resten burde teoretisk set fungere a la det her:
$Id = (int) $_GET['Id'];
// mysql_query("DELETE FROM `kbnNotes` WHERE `Id` = '$Id' ") ;
$wpdb->query("DELETE FROM `kbnNotes` WHERE `Id` = '$Id' ");
echo (mysql_affected_rows()) ? "Row deleted.<br /> " : "Nothing deleted.<br /> ";
(NB: jeg har ikke afprøvet koden endnu, så det her er kun noter…)
Efter lidt søgen på nettet med nøgleord som “CRUD” og “PHP” faldt jeg over http://www.phpscaffold.com/ – hvis det fungerer, så sparer man en masse tid. Scaffolding er et glansnummer som CakePHP, Symphony, Ruby on Rails – og andre MVC frameworks kan udføre. Mindre kan altså gøre det. Herligt site 🙂
Det skal da afprøves. Jeg vil se om dette stillads virker sammen med mit kanban plugin. Hvis det fungerer kan man spare mange timers arbejde i pico.
Includefilen må kunne ændres til noget, som $wpdb forstår.
Indrømmet – drag and drop er lækkert. Funktionen giver de samme metaforiske oplevelser som et grafisk skrivebordsmiljø. Men HTML5 og CSS3 er ikke en standard endnu. Ældre browsere vil ikke understøtte metoderne.
Nu kan du få WordPress til at hejse Dannnebrog på de officielle flagdage. Multimusen.dk præsenterer et WordPress plugin: “Danske Flagdage 1.0” som du kan downloade her. “Danske Flagdage” er naturligvis open source.
Multimusen.dk will set a few cookies from Doubleclick, Google and the Social Media plugins they ay set some cookies. Some of my pages use APIs - such as YouTube, LinkedIn, Google Fonts, Google Maps, Mapbox, Spotify, Jetpack, Twitter, Facebook &c.. Such plugins may set the odd cookie.