Wednesday, March 19, 2014

A Drawing About Hammers

Chubbysm

Another Guardian Comment Bites The Dust

I left a comment over at The Guardian which has now been censored like so many others when a nobody dares question a celebrity. However, I don't see why my carefully chosen words can't find a home here and it gives me a chance to edit them a little to clarify my point. The comment was in response to this piece by Lily Cole.
I have more interesting things to do than hold any grudge against Lily Cole. Before I saw her Guardian article this afternoon, I was only dimly aware that she is a successful model with features that are possibly more striking than they are attractive. However, as a journalist, she can't really claim an equal degree of success. Would a real journalist offer such a gnarly piece of phrasing as 'arriving to New York' or misuse an apostrophe in 'it's' instead of 'its'? Yet, at the same time, what right do I have to complain? In a room containing only myself and Lily Cole, only 50% of us would be published journalists and it wouldn't be the side of the room with the whiskers and perpetual frown. Like many freelance writers, I have sent articles into The Guardian via 'Comment is Free' and I heard nothing every time until I eventually stopped trying. Rejections might have kept me going but silence eventually gnaws through the sinews connecting your brain with your soul and that frustrates me because I'm not, by nature, a quitter. I am, however, a realist and I see no reason to continue to flog a horse when it's lying bloating beside the road. Not when there are other ways of navigating what Hunter S Thompson might well have been describing when he talked of 'the proud highway'. Yet I'm not exactly a beginner when it comes to writing. I think I know how to phrase things quite well. I've had books published and even if I haven't had any commercial success, I'm not a complete stranger to the occasional good review. Even The Guardian itself has published reviews of my work and suggested that I'm not without wit. Yet try to turn that praise into income and I fail every time. I hear nothing even when I submit articles which others have said are good, thought provoking and sometimes pretty bloody funny. I know this comment will ultimately go to the place where comments go when they don't follow guidelines. The Guardian doesn't like anybody questioning their editorial choices or the abilities of their writers and I can hardly blame them. It's actually commendable that they have started to defend their writers from undeserved criticism given the levels of abuse that are sometimes tolerated 'below the line'. And I certainly don't take any pleasure in constantly criticising The Guardian yet publishing shambolic articles written by celebrities devalues the work of real journalists and freelance writers. The Guardian remains one of the last and best places where we could practice our art yet they prefer to give jobs to famous amateurs and dilettantes. I expected better.
Before a version of this comment was deleted, it received some good (and a few lame) replies. Some accused me (rather predictably) of 'sour grapes' but others were better than that and I penned this reply which I didn't have chance to publish. The debate had ended less than fifteen minutes after it had begun.
I'm smiling because some of the replies were just too damn reasonable to my bad tempered comment. I accept your points (and that made by R042). Perhaps it is just a case of 'sour grapes' but I was simply trying to voice a concern that everybody should have about the way that modern celebrity intrudes into areas which were once home to professionals. MancunianPsycho suggests I should 'write something more interesting' but that's just a stock reply voiced when anybody dare question the style or substance of an article. I do write many things and I submit many but never with any success. I accept that I'm probably just not interesting enough but there must surely be plenty of others that are. Hell, I know others that are a damn site more interesting and could provide websites details and email addresses. "I thought of the TV show, and indeed it's movies that inspired her" I accept that it could be read as 'it is movies that inspired her' but I maintain that it's also damn clunky. Again, I don't have a problem with Lily Cole. Actually, I can see some value in the article, though perhaps not enough to justify its publication. I'm really just saddened by the way that our culture seems vaguely at odds with the interests of the common man and woman. It really does appear that we have to have a 'celebrity name' before our views become important. There was an excellent piece in The Guardian just yesterday in which Joan Smith noted how the tabloid response to the sad death of L'Wren Scott almost ignored the deceased in their clamour to publish photos of Mick Jagger. Yet that was just a symptom of the very same problem evident in many of the broadsheets. We live in an age that is utterly at the mercy of the marketing people, in which you must have that hook or moment of fame on which to hang your opinions, otherwise you might as well not exist. The rest of us must content ourselves by expressing ourselves through cat memes or hoping for a celebrity retweet on Twitter.  


Tuesday, March 18, 2014

Stop the world etc.

First of all, just to keep up with the moronic zeitgeist, I thought I better post this video. It might well be the most nauseating thing I've seen this year. And when you consider some of the nauseating things I've seen this year, that's a real tribute to how truly horrendous it is. And I don't give a crap about postmodern irony or being in on the joke. My gag reflex doesn't recognise postmodern. I've said it before but that doesn't stop me wanting to say it again: I guess I'm just not one of life's 'nice' people. That's why The Guardian's current fixation on Jack Monroe (and porn and privacy and Russell Brand and internet memes) is wearing me down like The Times' obsession with Caitlin Moran wore me down to the point where I stopped reading that paper. I'm still looking for something better to read than The Guardian but it keeps returning to my good books by publishing something immensely good alongside the drivel that passes for 'Comment is Free' most days. I guess I'm getting resigned to the fact that the world out there just doesn't really reflect the interests in here (points to forehead). Apropos of nothing: I wish Google would hurry up and send me the magic piece of paper which authorises my Google account so I can access AdWords and then the Play store. My app is so finished that I've even gone to the trouble of adding 'skinning' options which are alternative sets of graphics to change the look of the entire thing. More apropos: I've developed a severe addiction to 'Fish 'n' chips', the classic nibble from Burton's biscuits. They call it a taste of childhood but I say it's the perfect treat when I'm sitting rewatching the first series of 'Prison Break'. Speaking of which, I keep a shortlist of actors who I think should really have made it big by now and Robert Knepper is still top of that list. Wish somebody would cast him in something truly heavyweight and let him truly flex his acting muscle. He should try lip syncing to Disney. Perhaps that's the only guaranteed way to success these days...

Saturday, March 15, 2014

Programming Android: Three Weeks On

As much as I hate to admit it, I think I've finished my app. It's a proper monstrosity of bad design, hastily drawn graphics and butchered code but in the space of less than a month I've gone from not knowing a thing about the Android SDK to being in the final stages of testing a functioning app that does everything I originally intended plus a little bit more. Three weeks ago I began this adventure by thinking: I wish I could find an app that does X,Y, and Z. Now I have an app that does X,Y, and quite a bit of the Z and it has probably saved me 69p had this app originally existed in the Play Store. I can't say that it's been an easy three weeks and I'm not sure I would have liked to have attempted this without some programming experience. Yet, had I been learning from scratch, I'm not sure Android is the worst place to begin to learning to program. It's certainly a friendlier developing environment than some I used when I started out many years ago. I remember the misery of coding on an old Vax in a cold university basement room when we all had to wear mittens to stop our fingers from freezing. And people wonder why it's taken me so long to come back to software engineering… Although I'm not exactly a new code monkey, I began not really knowing much Java and I'm not entirely comfortable with it now since it's clearly a language that's easy to learn but difficult to master. At a few points, I wanted to add features which just proved beyond my skillset. One required me to catch, buffer and then process MotionEvents (the data generated when the user touches the screen) but it led to a wasted two days and my utter defeat. Perhaps I'll try again with my next app... Things I know now but wish I'd known back then:
  • It's easy to use transparent PNG graphics inside a SurfaceView so long as you clear your bitmaps with the eraseColor(android.graphics.Color.TRANSPARENT) instead of filling your bitmap with white. Took me three days to figure that out.
  • The word 'Activity' in Android is almost synonymous with screen or process. Think of each functioning element in your program as individual Activities. So, if you're making a database program, you could have an activity for the screen where you add records and another activity for the screen for modifying records. If it's a game: one activity for the main menu, another for settings, one for the high score table, and another for the main game itself…
  • Learn about 'context'. I think it's the single most confusing and difficult element of the Android API. I'm not entirely sure what it is myself and I'm still not entirely sure how to 'get' it from different points in the code.
  • Learn to nest layouts right at the start. Setting up screens is a nightmare until you understand that you can, for example, drag a horizontal layout onto the screen and embed elements inside that. That layout can then be dragged into a vertical layout, making it really easy to arrange elements both vertically and horizontally on the screen.
  • Don't go looking for 'file open' dialogs. They don't exist natively in Android and, to be honest, I'm not entirely sure they are needed. It's really easy to throw data out to other apps, such as email, Evernote and Dropbox.
  • Be quite liberal debugging with Log.d("Activity1", "Loop7"). As your app runs, it throws up messages to a console on your PC so you can track the code and see where it stops, throws errors or is trapped in loops.
  • Saving preferences inside your app is unbelievably easy with the SharedPreferences object.
Except for those really ambitious things that were just beyond me, I can't say anything has been unbelievably difficult. The problem now it to stop myself from adding more features. I've got my widget working and I think that was the last big addition I'll make. In the last two days, I've added a ton of new functions. I've even done the unspectacular work of programming the settings page so that the app remembers the user's preferences and adjusts the internal workings accordingly. In a way, this part has pleased me the most since I've tried to make the whole thing flexible so anybody can use the app as they see fit. It needn't be used for the purposes I intended, which is probably good because I'm not sure anybody would want to use it for the purposes I intended. The next stage is when things get difficult. I have to test the app and make sure that it runs on devices that have different sized screens. Device fragmentation is probably the worst thing about programming for Android. There are so many devices out there with completely different capabilities and hardware. The chance that this app will run on all of them is slim to zero. However, I want to be sure that it can be used on the majority of current Android devices and that means either getting my hands on a range of test devices (impossible) or using an Android emulator on my PC. And that's where I have a problem… The Android emulator that comes with the Android Development Kit runs really slowly. However, you can install an Android kernel that's built with Intel code. If you have an Intel based PC, the Android emulator runs pretty quickly and you can run it in a variety of configurations so you effectively have every type of Android machine at your fingertips. Want to emulate a small phone running an earlier version of Android? You just run the emulator with all the settings turned down and you get to see what you app looks like running on a low spec phone. You see a problem and jump straight back into the code to fix it. It's a great way to test and bugfix your app if you have an Intel based machine. Only, I don't have an Intel based machine. My PC has an AMD Phenon II X6 and it completely incapable of emulating Android via the Intel kernel. There is one emulator called Bluestacks available for AMD machines but, as far as I know, it's not customizable, which means it's pretty useless for my purposes. There is an online Android emulator which can be set up to emulate different devices but I can't say that it runs particularly quickly and I know I don't intend to spend money testing an app which will never earn me a penny. It means I'll either have to beg to borrow a friend's PC or be happy just to test the app on my Samsung Note 10.1 (2014) edition running Jelly Bean and my old Galaxy S2 running Android 4.1.2. I have no idea what it would look like on a seven or eight inch tablet or how it might run on a bigger tablet even a year old. Ideally, I should buy a really cheap 7 inch Android tablet, such as the Tesco hudl, but it's an expensive way to test compatibility. Meanwhile, sometime this week, I hope to figure out how to upload my app to the Google store or I might not even bother. My app will never be the next Flappy Bird and given it might only be downloaded five or six times, I might simply stick the finished app on this site for anybody to try, if that sort of thing interests you. If it doesn't, I'll probably be back to cartooning and moaning about The Guardian ignoring my submissions until I come up with my next ridiculous plan.

Friday, March 14, 2014

David is now online...

Time. There's never enough of it and never enough to do all the things I intend to do in a single day. Something always has to suffer and it's usually the thing that's most pleasurable, such as writing a decent blog post, drawing a funny cartoon or taunting a loft insulation salesman with a hint about an under-lagged crawl space. Because I have so much to do, I wonder how people find the time to do the things that they spend their days doing, such as posting gormless updates to Twittermefacegrambook. I woke up early this morning to find another complaint waiting for me in my inbox. My on-the-other-side-of-the-world employer tells me that I need to provide instant feedback whenever he asks me a question. I've recently fallen into the habit of not loading Messenger when I'm at my desk. The truth is that I've simply not had time and I'd forgotten. Instant Messaging isn't part of my life and it never occurs to me to load that most monstrous piece of malevolent gropeware. Instead I rely on email, the now outmoded method of instant communication which just isn't instant enough. I suppose my 'forgetting' to load Messenger reveals my deeper neurosis about Instant Messaging which I loathe like a true Luddite. The mere thought of using IM (even the acronym chills my balls) on a daily basis makes me feel like Winston Smith walking into the Ministry of Truth. Every Instant Message is a sinkhole into which I see my privacy disappear. I particularly resent losing valuable time to long meandering conversations in which you're forced to mimic the trivial small talk of normal conversation instead of getting to the meat of the business as you would in an email. I despise the way IM informs other people when you're on the internet, as though it's their business. I hate having my train of thought broken every time the IM client tells me that somebody else is now online. 'As if I care!' I cry as the little boxes appear. 'As if I care!' Do I want my computer sending out messages to people to tell them that I'm 'available'? I'm never available to waste time or to engage in small talk. The problem with the world is that there's too much talk and too little actually meaningfully said. But that is Instant Messaging: a symptom of the cultural malaise that has taken over the world. It's a boredom born in a world where surface has taken over from depth, when every news story has to be accompanied by pictures or (preferably) an 'infographic'. When cat memes make their creators millions but authors struggle to get their novels published I think it's time to question if our time on this planet is being used wisely. The truth is: I don't want Instant Messaging in my life. I want Delayed Messaging in which a friend takes the time and effort to write me something long and meaningful, full of interesting things, and requiring effort on my behalf to read, internalize, and then respond. Yet the sad truth is that I have no option. We live in a new age where there are no set hours to jobs because jobs occupy every hour, where there's no separation between work and life because your life is your work, and where people tell us that we've never been so free yet all of us are increasingly connected, tied down, and always available to chat. 'Chat'. No other word more concisely symbolises the vapidity of our age.

Thursday, March 13, 2014

Blood Blister

My chair is fixed. I'm not so certain about my body. thumbIt took me a few hours yesterday to remove the old bolt from the seat. There was about half an inch of threaded end stuck in the hole and I spent about an hour trying to drill out the hard steel with an electric drill. That didn't work so I tried to cut a notch in the slightly exposed end of the bolt but the screwdriver wouldn't bite. Frustrated, I reached for a hammer and tried to knock it through. That's when I missed the chisel and hit my left hand. I cursed mightily and angrily tried again with the hammer. That's when I missed the chisel a second time and hit my left hand on the same tender spot. It hurt even more and where the hammer bounced off the bone, it went into my thumb, producing this delightful blood blister. I was about to give up but I remembered something my Dad had taught me or perhaps it was something I'd seen on one of the Discovery Channel documentaries such as Gold Rush. It suddenly struck me that I'd been doing it all wrong. The high powered electric drills were just spinning on top of the bolt. I reached for an old brace and bit and slowly started to turn it in the hole. Soon I could see small flakes of metal coming out and I could feel the drill biting. After about half an hour, I could see the drill beginning to protrude from the other side. I'd gone in slightly askew and half of the bolt was remaining so this time I reached triumphantly for the hammer to knock out the stuck fragment. It popped out easily, though not before I'd managed to hit my hand a third time. My cursing didn't last long. About half an hour later, the chair was reassembled with a new bolt and washers holding the back in place. I felt slightly elated. I'm not a handyman. In fact, people often laugh about my skills as a handyman, though the same people admit that I can hang wallpaper pretty well, put up shelves, rewire a plug, and do plenty of the other things that need doing. About the only thing I can't do is climb a ladder higher than twenty feet. I figure I'm too big and cumbersome to go climbing about on the roof. Anything lower than that and I'll give it a try. And that pretty much sums me up. I'll have a go at anything. I'm just not sure the result will ever be all that pretty. The bolt doesn't look great hanging from the chair but you only see if it you go looking for it. The point is it works and I preserver in these things because I like to believe we're not past the stage when a little effort produces a result. We throw things away too easily. Since I saved this PC monitor by soldering in some new capacitors a year or so ago, I feel like I have a duty to at least try to get things working again. I've saved my chair, saved some money, and have a blood blister I didn't have before. Today, I'll stick to my preferred form of engineering. I have new ideas to incorporate into my app. A few days away from it has given me a little more faith in the concept. I intend to learn how to create a widget to sit on my Android screen and integrate with the app. It should be fun and hopefully blood blister free.

Wednesday, March 12, 2014

Some Thoughts on Bob Crow

Hemingway wrote whilst standing up. He wasn't the only writer to do so. Perhaps it accounts for something special in his writing, his characteristic stocky phrases or the muscular pull of his lines. I don't write standing up but perhaps the next best thing is to write whilst sitting on an uncomfortably hard chair since my usual perch is currently in pieces in the back room alongside the remains of a broken drill which I'd destroyed trying to remove a hardened steel bolt that had sheared off in its hole. Yesterday was a hell of a day, a long run of blistering bad luck and ugly turns that ended in Manchester where I was forced to buy a new power drill. Even with the right tools, my chair is still unusable and work is now backing up. I have a website to build, a video to fix, and a cartoon to draw before tomorrow's deadline for the next issue of an LFC fanzine. Two paragraphs into the day and my back is already aching from the hard plastic sticking under my shoulder blades. Yesterday was also a bad day because it was the day I heard that Bob Crow had died. I suppose if it weren't such a tragedy that he died only 52 years old, I wouldn't actually write about Bob Crow except I had recently found myself warming to him. That's not to say I didn't find something comic in seeing a union leader enjoying the high life. In many respects, I viewed him like I view George Galloway, though perhaps with less overt comedy. Yet seeing Crow on 'Have I Got News For You' recently made me reassess my attitude towards these leftward firebrands. The same goes for Dr David Starkey on the right. It's easy to mistake everything they say for the worst things they say. Or sometimes it's hard to distinguish the sense from the way they expressed that sense. I do think it's a crazy world in which the driver of a largely automated Underground train is earning more than a university lecturer who contributes to world knowledge. It's that kind of detail which made it easy for the Tory commentators to mock Crow, as I saw Andrew Pierce doing on Sky News on Monday night. In that sense, Crow and Galloway have always been a blessing for the right. They were easy to lampoon and their worst foibles distracted from the very great sense they sometimes spoke about the rights of workers. It would be foolish to deny that Britain is a country ruled by a rich Eton elite yet populated by a majority of people too distracted by X Factor finals, mobile phones, and American ten pin bowling to actually care about that bias. To his credit, Crow did care, as I'm sure Galloway also cares. That's why I'll miss Crow. He was one of the few public figures to express an opinion which was precisely that. It wasn't a party line, a faecal crumb of marketing detritus put out by some central office. Right or wrong, he was one of the few actually happy to go on TV and express an opinion that he knew would alienate some. That's rare in politics as it's rare on TV, where the middle ground is worn flat by a million bland heels. But at this point I have to stop. I would write more but my back hurts. This chair gives spasm-inducing discomfort and there is one less person fighting for my rights as a worker.

Tuesday, March 11, 2014

Hey Bob! Here's More Self-Centred Waffling

An anonymous Bob, from nowhere.com, left a comment this morning accusing me of 'self-centred waffling'. It's always a little unsettling getting such an anonymous comment, though thankfully, in this case, Bob's IP address included what appears to be his real name (I'm guessing that his real name is 'Mark'), so I know it wasn't from a friend trying to tell me to quit. That said, I think Bob/Mark's observation is bang on the money. This is a blog and, like all blogs, self-centred waffling is its raison d'être. What would this site be if it wasn't an expression of my deluded hope that somebody might actually care what I think or what my cartoons might say? The truth is that the world generally doesn't give a fig. That is the world I recognise. My neighbour came around the other day to ask me to move my car. We've lived next door to them for ten years. I know all their names, their jobs, the names of their illegitimates. They didn't even know that we've never owned a car. Isn't modern Britain's Big Society just wonderful, Mr Cameron? The other part of Bob's criticism is easier to address. He asks 'what app ? no links no info' and that's also right. I'm damn cautious about talking about my app because some Android genius in India would easily knock it together in a spare lunch hour and market it to the world. I know how this game operates. Good ideas are few and far between and I think I'm sitting on a $100 idea. If I market it right, it might even earn me $120 which is about £70 in these God fearing times. I was in Chester on Saturday on the way with my sister to see her consultant. I was idling time browsing the small PC World next door to Nero and listening to a sales assistant explain how he was doing a computer course where they were being taught to write their own Android apps. There's nothing quite like listening to salesmen in PC World making idle boasts to ignorant customers to make you realise how you're actually achieved something barely worth celebrating. But I've said this before. Learning to write Android apps is easy. Mastering it is something else. I suppose I should also be grateful for Bob's aggressive comment for setting me right about this blog. I haven't blogged properly in two weeks but my excuse is that I've just lost the will to work. I suppose years of rejection have finally got to me. I've lost the enthusiasm to write, to draw, and even, I suppose, to live and breathe. I just begrudgingly face each day with the realisation that it will involve yet more crap and gruelling misery. My sister's treatment at the hands of the local GPs has reached the point where I'm considering seeking legal advice regarding medical negligence. This last week has been one of the worst and it seems that the closer the consultant actually gets to finding the cause of her problems, the problems actually gets worse yet are routinely laughed off by the local GP as 'a bug that's going around'. Last Thursday was very distressing and I needed help so I rang the local surgery for advice. They wouldn't send anybody to see her and they told me that the emergency doctor only attends to the elderly. They suggested we stick her in a taxi and go to the walk-in centre four miles away in another town… A shame we don't own a car, though that doesn't stop the neighbours for giving me grief about my parking… In the meantime, I continue to work on the app during the moments when I'm not sitting outside the doors of consultants and GPs, or building websites for people who tell me that 'desire for greatness is to be on the right track. But if we are on the right track, we'll get run over if we just sit there. Action is paramount for greatness.' If you do a search (I did), you'll know that it's a hackneyed phrase used by business gurus to sell their particular brand of bullshit. Is it unusual to get annoyed by people who are constantly upbeat and wanting me to work in a team? I occasionally do a little work for an American who quite the opposite and I love that. I miss being able to rib somebody and trade mock insults. It doesn't seem normal trying to be so smiley… And that, I think, is my problem. That's why Bob was probably annoyed with my self-centred waffling. As you can see, I do waffling quite well but I don't do smiley bullshit. In truth, the app isn't working how I hoped it would. It's not good enough to talk about. Nobody but me would probably want to use it like few people really read this blog. But what the hell. I enjoy self-centred waffling. I'll blog again. This has been cathartic. In the meantime, if anybody knows how to remove a snapped bolt from an office chair, I'd be very grateful. I sat in my favourite chair last night and it went 'thud' and the back fell off. I thought a bolt had simply come out, as they often do. Only this one had broken half-way down its length, due, I think, to the bloody awful blue locktite stuff some firms insist on sticking on bolts. It stops the bolts from falling out but always makes them sheer off instead. I now have to figure out a way of removing the piece of bolt stuck in the threaded hole so I don't have to buy another chair. Like I say: more crap and gruelling misery...

Tuesday, March 04, 2014

Deep in Geekdom

My brain imploded the moment I tried to do something which was just far too advanced for its limited ability. It involved strange ugly creatures that lurk in the deep places of the Java programming language; exotic elaborations of inconceivably weird data sets that my mind just couldn't comprehend in their entirety. I was trying to capture input from a touchscreen in an array but the array needed to be held in another array, and the whole thing wrapped in classes which defined the methods of storing the data and then freeing memory when no longer needed. Perhaps I was tired. Perhaps I was simply trying to go too fast. I don't know. I could no longer remember the difference between implementing a class and extending a class. The web wasn't helping. My questions on an Android programming forum had gone unanswered. I was left reading example source code that was thousands of lines long and impossible to unravel. It just made me feel like the little I had accomplished in a week and a half was precisely just that: a little. At midnight last night, I pushed myself away from my desk and went to draw a cartoon for the next couple of hours whilst Dumb & Dumber playing on the box. So, as it stands, the little app I've written is almost finished. It had taken the entire weekend for me to realise that I couldn't expand it to be something more useful. One of the worst things about life as a programmer was dealing with feature creep – the excitement of clients who want their simply database to run their entire world. Now I'm programming for myself, the feature creep is worse than ever. However, I'm now trying to wrap it up and get back to blogging. There are parts of the app that need to be finished but they're the dull parts such as a settings screen and it's hard to find the enthusiasm to code them. I still need a way to export and import user data but since I'll probably be the only user, I'm not sure it's worth the trouble. I also need to spend time using this app, learn its flaws and try to work out if this is a genuinely useful tool which will do all it was intended to do: write my blog, clip my toenails, and tell me that the meaning of life is the number 42.

Cartoon: The Selfie

Selfie

Monday, February 24, 2014

Coding

Untitled-1 I don't want to ignore the blog at the expense of the app but, over the weekend, I definitely became more serious about the work I'm doing with Android. I actually found myself adding comments to my code. It's a small thing but it tells me that I'm passed the stage where I'm not entirely sure what I'm doing. As you can see from this snippet, I'm actually writing completely new code and I need the comments to remind me what all the parts are doing. It's strange to be programming again. This project started out as an intellectual distraction. Could I really get something running on my Android tablet and could it actually do something I might find useful? I could and I think that it is. Useful to me, at least, and I'm already using it as it was intended. I'm also now at the stage where I can see the faults of my original design and I've started to rectify them. One of the problems I've tackled today was the variety of screen sizes in the devices that run Android. Every device out there seems to have a different sized screen or different pixel densities. That's a problem because I'd like my little App to work on a wide variety of devices so I need to be sure that I've built software capable of adapting to different environments. That's not as easy as it sounds, if, indeed, it sounds easy at all. It's the sort of thing that could easily leave me chewing on the business end of mental ward by the end of the week…

Saturday, February 22, 2014

Android Programming: Day 3… Bright Colours

Yesterday morning I was pretty delighted by my progress and intended to make my humble app a little more functional. This morning I'm just exhausted. Yesterday was crazy ambitious even by my standards of blindly leaping into things without quite knowing what I'm doing. The problem began when I tried to implement at file open dialog box. Whoa, I hear you cry and I agree! I'm moving into the exciting stuff really quickly but I have things to do and my file open dialog box was where I left off yesterday. You know the sort of thing I'm talking about: you click 'load' and a window appears asking you to select a file. I thought it would be easy. Usually one of the easiest things to program is the file open dialog box and that's because you don't actually write software using a programming language. Well, you do but using a 'programming language' is like saying that the entirety of your speech is made up of English and it contains words and grammar which you understand. It is true that programming involves knowing that language but much of the basic functionality of any piece of software is actually created by using something called the API, which is the application programming interface. To continue the English analogy, it's like saying that a writer has lots of newspaper articles that are already written for them and which they can quote. In software terms, these are libraries of functions that provide many of the basic building blocks of the app. For example, somebody has usually created a simple-to-use building block which displays a file open dialog box. You tell the computer to go and create the dialog box and you wait for it to come back with the name the user selected. You don't actually know anything that happens – the 'new folder' option or 'sort files by name'. You simply say 'I need a file name, get one for me' and the computer's demon returns with a 'as you requested, master' and lays both the directory and file name at your feet. So, adding my file open dialog box was my next step. Except one of the very few things that Android is currently missing is a built-in file open dialog. Yesterday, after writing my enthusiastic and critically acclaimed blog update (nearly three people read it) I clearly faced a dilemma. Write my own file open dialog, find one somebody had already created, or do something else. Writing file open dialog boxes is miserable and I wasn't going to spend my day worrying about one of the ideas I had for my App which wasn't actually necessary. I decided instead that what my app needed was more whiz bang. I decided to look at the graphic functions of Android. I was hesitant at first because that's heading into games programming, which I assumed would be really difficult. However, pretty quickly, I'd created a screen and had some things flying around. By 4am this morning, I'd designed a new layout for the app, produced yet more things flying across the screen and a functioning button which makes a satisfying click noise. Today I intend to add another button, make my buttons indent when I click them, and then I want to produce more graphical magic before I then link the whole thing into a facility to interact with the wider world. For the first time, I actually think this app might have a future beyond my little world where it does something solely for my amusement and utility. I beginning to hope that others might enjoy it. In fact, I can see there being at least another ten or eleven people in the entire world who might want this app and that would be at least £5 or 6£ in my pocket if I sold if for fifty pence.

Friday, February 21, 2014

Android Programming: Day 2... (Yes, this blog post is really going to be that exciting!)

Sadly, there's been no word from Joleen, she of the big boobs and even bigger butt, but I have managed to create a SQL database inside Android, so you needn't be too downhearted. [Counts to three before he opens his eyes and looks to see who's left in the room…] If you're still reading, it means you're one of the better few who are less interested in pornographic internet SPAM and more interested in a misguided dabbler's attempts to wrap his brain around Javascript. How easy is it to develop an app to run in Android, you ask? I'd say surprisingly easy, though the Android SDK running on Eclipse does create a functioning 'Hello world' App for your as soon as you install it. So in that sense: it's very easy. In some ways, it's actually easier than developing software for the PC, especially if you have an Android device plugged into your machine. The updated app code runs straight on the device so you get fewer of those 'bugger, I've just crashed my PC' moments you get when developing things for the PC. I started this little 'project' about two days ago and I already have an app which does quite a bit more than say 'Hello world' and it's running on my old Android phone which has become my unofficial test bed. I also have it running on my tablet but since I use that almost constantly, it's not as easy to keep it plugged into the PC and it won't be until my new ultra-cheap-but-long micro-usb cables arrive from China. I don't exactly know why I'm writing an app except the other day I was searching for something to do a specific task related to my cartooning. Not being able to find anything suitable on the Play Store, I began to wonder how difficult it would be to simply write it myself. I used to program databases after I did my computer degree – which, I should add, taught me next to nothing about programming – and before that I'd been a complete computer junkie making simple games with even simpler graphics. Every meaningful thing I've ever known about programming has been self-taught yet I've never truly taken the time to learn Object Orientated programming and what little I know about Javascript is based on my somewhat limited knowledge of C. I am an old school programmer completely out of his depth with newer code. In the past, I've often written simple things to run inside a web browser, to change the various random phases on this blog, for example, but I've always wanted to know how to develop a proper app. My cartooning hasn't been going so well – no bugger seems to ever like anything I draw – and my writing is at a standstill given that the agent still hasn't replied yet it's probably a little too soon to send the book elsewhere. My enthusiasm for blogging is also at a new low and my 'real' work is just destroying my will to live. What better time to add another string to my bow? The last couple of days have been about information overload and absorbing as much as I can. I've been selectively reading chunks from different huge tomes on Javascript written by clever people who don't know how to write. That's not to say that they're incapable of writing but they're incapable of writing for the audience to which the book has been marketed. The best I've found so far is 'Android Apps for Absolute Beginners' by Wallace Jackson, which has become my new Bible and I've read from cover to cover. Last night I also attempted Jeff "JavaJeff" Friesen's 'Learn Java for Android Developers', which I thought I didn't necessarily need but hoped it might help me remember the stuff I've long forgotten. About half way through an early chapter, I fell asleep and woke up to realise that I didn't have a clue what he was talking about. Only a few pages earlier, I'd been told how to declare a variable and then I was suddenly deep into the murky territory of inheritance, polymorphism, and upcasting.
Following the cast, the contract's reflexivity, symmetry, and transitivity requirements are met by only allowing Points to be compared with other Points, via expression p.x == x && p.y == y.
Sometimes clever folk need somebody a lot less clever to put a hand on their shoulder when they get excited and ask them to rephrase that for people without a doctorate in abstract logic. Of course, the fault might well be my own. I'm a terrible student since I never attempt the examples they write in the course of these books. I always want to get to the meat of the business. I get frustrated having to read five pages about how to change the colour of text, which is the sort of thing I tend to figure out quite easily. More difficult for me was learning how to open new screens from the main screen. It was obvious in the end but it was the kind of top down structural approach to software development I really needed at the beginning. Had they said that an Android app is made up of many 'Activities' which are essentially concurrent and each declared in their own file, I might have had a better idea of what I was doing. I don't think learning things my way is necessarily bad. It forces me to have an active knowledge of real programming rather than the kind of passive knowledge you get by simply reading other people's code. I believe writing is best learnt by writing and speaking a language best learnt by speaking a language. Programming is best learnt by getting the hardware to do what you want it to do. My app might not break any records and surprise people with its originality but it will do what I want it to do and that's a better achievement than simply producing the same code as you could have downloaded from your tutor's website. At this point, my 'App' is like some kind of Texas Chainsaw hillbilly with pieces chopped from different places and stitched together. Yet it actually does what I wanted and I'm delighted it works. I only have one functioning button, a menu system which deletes the database and then restores it by reading in data from text files, and my Settings page only reports things about the database just to assure me that the database actually exists. I wasted three hours yesterday trying to figure out why my database wasn't being created only to later discover that my database existed and was fully populated with fake data but my 'checkDbExists' routine was flawed. Christ… Does anybody find this kind of rambling blog post interesting? I'm not bright enough to actually write a meaning post about Android programming but I'm too dumb to realise I should just shut up and get back to it. Today I'd like to figure out how to open a file selection dialog to import and export data. Later, I'd like to allow them to modify records and then start extending the functionality to the actually things I'll hopefully find useful.

Tuesday, February 18, 2014

Vegetable Slicing and the Symbolic Castration of Ant & Dec

AntandDecMen of the world unite! Either Ant or Dec has chopped off the top of his thumb and, oh, what a fine time it is to be a man, when the best among us has done what we all aspire to do: sing a song of manhood replete with sharp kitchen gadgets and a willful disregard for reading the instructions. But you might have already grimaced over this story and know that it was actually Ant who suffered the injury whilst using a vegetable slicer to prepare dauphinoise potatoes for Dec. I only typed 'Ant or Dec' because I can't honestly tell one receding hairline from another standing a foot to the right. In my mind, it's the high-foreheaded hydra that's one thumb down on the day and has only three thumbs remaining. It's a strange world where this story features so highly in the news. It's probably why, as I gazed over the morning papers, I wondered why I continue with this sad pretence of blogging. The truth is that had I not written a piece about 'Flappy Bird' in the past week, traffic to this blog would be at an all-time low, with today setting a chilly record. Meanwhile, The Guardian promotes Jack Monroe like she's the incarnate truth of blithe poverty; the happy-clappy survivalist and expert prepper for a country that's just about getting by on one Ryvita a day and the occasional shapeless grape we find squashed beneath our empty freezer. That's not to say I don't like Jack Monroe, her backstory, or how she's passionate about eating cheaply. It's just that she's so different to me that she constantly demonstrates how I'm doing everything wrong… So, here goes. Aim for the mainstream, David. Aim for the mainstream… How to cheaply feed a family of four with one thumb joint taken from popular TV presenter, Anthony 'Ant' McPartlin and some bloody-stained veg sliced unreasonably thin… First, take one TV presenter (£20 million a year, available at your local broadcaster), wash his thumbs, and apply one sharp blade to the top knuckle… But I have to stop this sham right there. It would be fine if I could but I just can't carry on and I'm increasingly tired of newspapers that can. It's not just The Guardian that does it, of course. They all twist stories to fit their particular narratives. The Guardian just happens to have the best free web presence and politics I don't totally object to, so I'm still drawn to reading it and feeling dismayed and utterly disappointed by the predictability of their content; how they try to link every celebrity story into a restatement of their perpetual themes of the surveillance society, poverty, gender politics… Especially gender politics… Perhaps it's just these jaded eyes but journalism seems to have become home to every third-rate academic willing to add another floor to the elaborate Babel that stretches skywards towards a feminist utopia that really isn't up there. But perhaps a tower is far too phallic, no matter how much my metaphor might droop. Let's make it a deep cave disappearing down towards some core dark truth. Yet what surprises me the most is that I've never been entirely hostile to gender studies. I never thought it a paradigm shift to realise that gender is not absolute. Gender study is very prevalent in literary theory where it has become an often repeated observation that a writer such as D.H. Lawrence had a feminine sensibility. Once you accept that kind of distinction, the rest of it follows fairly easily. Even if I never thought much of Kristeva's work (a writer who clearly hates to be understood), I've always quite liked Hélène Cixous's way of making her point.
I write this as a woman, toward women. When I say "woman," I'm speaking of woman in her inevitable struggle against conventional man; and of a universal woman subject who must bring women to their senses and to their meaning in history.
If Freud could argue that we are defined by our childhoods, it seems only reasonable to conclude that the things we do, the words we choose to write, might also be influenced by our bodies, hormones, the very way we respond to the base urges of our gender. The problem is that some places aren't ready for the reconstituted male, men who agree with the broad arguments of feminism and simply wish to move on. We have to continue to play the role of the proxy bastards, out to keep women down and establish the patriarchal order. It's not a part I wish to play but I'm doomed by my place in the patriarchy. Last week's Question Time was a perfect example. Tessa Jowell was on the panel with Dr David Starkey, George Galloway and others. They were debating whether the accused should be given anonymity in rape cases and Jowell was generally against it lest it discourage more women to come forward. It was a strange argument but typical of the 'two wrongs do make a right' logic that sometimes passes for progressive thinking. Rape has been under-reported for centuries and it's only relatively recently that the law has taken the proper steps to recognise its severity. Yet should centuries of abuse, mainly by men, now justify a new kind of injustice that overlooks the rights of the individual if they just happen to be male? Even when acquitted, the accused are never cleared of the suspicion of guilt. Rape is a sentence that is handed down as soon as an allegation goes public. Does a belief in 'innocent until proved guilty' make me a typical man or simply somebody who believes in equality? Sometimes, in wanting justice to be blind, it feels like I'm not demanding the fashionable bias. To me these things seem logical but perhaps logic isn't as important playing the gender game where everything hinges on what we have between our legs. I expect articles in the papers this week explaining why Ant shouldn't be mocked for losing his thumb, how it either reveals the emergency of a new masculine identity or reinforces the old stereotypes that says that men are useless around the kitchen. Brighter folk might even tell you that Ant didn't chop off his thumb but symbolically took off the top inch of his penis. Perhaps they're right. I really haven't thought about it enough to disagree except to say if Ant was slicing vegetables with his penis, then he was asking for trouble. By now, I'm just confused. Perhaps his thumb is or really isn't his dick and I don't know my arse from my elbow. I nearly didn't blog today and tomorrow I might not even bother.

Monday, February 17, 2014

Movie Poster for a Modern Classic

FilmPoster   Terrible, I know...

Another Michael Gove Cartoon

GoveMinister3 Monday. I'm not sure what the hell I'm doing. I didn't intend to draw another of these 'Great Figures of State' cartoons, though I liked the idea of doing a series of them and I thought it would give me chance to learn new skills. I'm trying to teach myself to be less kind in my drawing. I finished this Gove cartoon last night, thought it was done, and then immediately realised this morning that I'd been too kind to the man. I've tried to rectify that as much as I can but the result is still too kind.

Sunday, February 16, 2014

Great Figures of State: George Osborne

OsborneI drew a quick Nixon caricature for yesterday's blog post but I was so underwhelmed with the result that I decided not to publish it. It would have looked woeful at the head of a post where I was also going to reproduce Nixon caricatures by Gerald Scarfe and Ralph Steadman. The reason my caricature was weak was probably because I just feel no particular vehemence towards Richard Nixon. So many great movies and books have been made and written about Nixon that I'm fascinated by him, even if I wouldn't have liked his policies had I been born by the time he came into power. After yesterday's failure, I thought I'd try to draw somebody I dislike and having read Martin Rowson's brilliantly scathing piece about George Osborne in The Tribune, I realise that there was only really once obvious candidate. I don't think of myself as being 'of the Left' but neither do I think myself any ally with the Right. I've been interested in satire for so long that I tend to feel that it's not really my place to belong to any side. I'm somewhere in the middle but my allegiances aren't strong. When Labour was in power, I saw things I disliked about them and I longed for a change in government. Now the Tories are in charge, I see things wrong and I long for a change in government. The fact is: I probably just question the lot of them. Politics has many fine people working for our good but there are too many charlatans and careerist politicians happy to tie down a safe seat on a good wage. It's the careerists who I despise the most and Osborne is the ugliest toad in the pond. I suppose we are always tempted to think of our Chancellors as being nasty but Osborne has managed to out-nasty every Chancellor I can remember. It's not that there hasn't been a political argument for austerity but austerity too closely fit with an ideological narrative that the Tories were ready to unleash on the nation. Rather than give us austerity with a certain reluctance, they were gleeful in the way they talked about cuts and tightening our belts. Austerity is an easy thing to preach when you're the son or daughter of wealthy parents and when you emerged from your private education primed to pick whatever course you might want to take through life. Osborne chose politics with the same kind of detachment that other people choose to become doctors or lawyers. There's no real life bearing down on his decision. No need to take that job stacking shelves in Tesco 'until somebody better comes along'. For most of us, nothing better ever does come along. Life is no fairy tale and the good guys rarely win.

Saturday, February 15, 2014

Nixon's The One: Review

NixonTitleWatching the third part of Sky Art's sublime 'Nixon's The One' last night, I realised that the show really isn't about the words. It's about the silences. The words themselves are the actual words taken from the secret White House tapes that Nixon recorded during his time in the Oval Office. Yet rather than focussing on the big issues that made the Nixon presidency so memorable for good but mainly bad reasons, the show's producers have chosen the odder more personal moments that were more revealing of the man. That, essentially, is the essence of the show. It's about Nixon himself, a strange creature of paranoid tendencies yet occasional moments of softness and calm who found himself elevated to the highest position in the country. It's about a man incapable of preventing his deep character flaws from poisoning that office and who couldn't stop his demons from taking hold when his weaker angels should have prevailed. Nixon3 Harry Shearer's version of Nixon is a measured and brilliantly clever performance which is might otherwise be easy to spot because of the prosthetics which could otherwise push this Nixon into the territory of the comic caricature. Nixon has been played many times before on film but I don't think ever this well. Anthony Hopkins, Frank Langella, and Dan Hedaya have played Nixon before with various degrees of weight and comedy, but I think Shearer has managed to find the right balance. It is lightly comic without it heading into the area of the grotesque you see in the contemporary cartoons by, say, Steadman or Scarfe (below). Scarfe reduced Nixon to his jowls and nose (often bomb shaped) and Steadman had him shitting explosively whilst making a speech. This Nixon isn't that figure, so vilified by liberals, and rightly so since it's hard to see how that Nixon could ever have won office. This Nixon is easier to understand; a charismatic bumbler who constantly doubted his own power and thereby gave in to his delusions of persecution and victimhood. The third episode of the show's run saw Nixon visited in the Oval Office by religious figures Billy Graham and Oral Roberts. It's the visit by Roberts that stood out, dominating the second half. Roberts, played brilliantly by John Guerrasio, speaks almost non-stop for the entire ten minute scene and Nixon is reduced to the role of the weaker other, unable to get in a word but trying his best to act  presidential. It's all about the flickering force smile, the licking of the lips, the puffing out of the cheeks, and it's in these silent moments that Sheerer is at his best, capturing Nixon's mannerisms perfectly through the strange backwards lean of the stance, his head pushed forward to emphasis the roundness of the shoulders. As Roberts begins to lecture Nixon about the power of television, Nixon is reduced to sitting holding his cup of tea, looking both engaged and bored, acting the convivial host but failing magnificently as his eyes gaze into the distance. It's a sense of Nixon as the victim of circumstance; a deeply flawed man in an office that is beyond his character to carry off. The ten minute scene perfectly conveys why I find this what makes this series so compelling. I'm used to seeing Nixon as the epitome of the corrupt politician. I recognise that Nixon here, the Nixon that Hunter S Thompson described as 'a man with no soul, no inner convictions, with the integrity of a hyena and the style of a poison toad.' Yet with hindsight, the show makes me wonder if that is really a fair assessment. Perhaps there is a case for saying that Nixon was the best President that America ever had. His figure looms so large over all politics since the 1970s precisely because he taught us a valuable lesson. He was the politician that taught us to mistrust our politicians and to remember that the office doesn't change the man. It merely magnifies their frailties, their faults, and the essential corruption that we all share but are rarely placed in a position to recognise. NixonSteadman ScarfeNixon