Categories
Technology

The Machines That Make The Web

CMScartoon1For our next project, we don’t just make a website. We make a way to make a website. Ya may have noticed the Web has transformed drastically in the last few years. Well OK maybe you haven’t noticed. Transformation is pretty much the norm for the Web. But in a short time there has been a sea-change behind the scenes. Or a scene change beneath the sea. One of those. To be clear, this ain’t your parents’ Web.

Twenty years ago when HTML was new-born, most pages were just text with a few code words (called “tags”) laced through. You could type a page into a computer by hand, upload it to another computer called the web server, and voilà, you had a website. Or more precisely, you had a document sitting on a server. Someone typed the address of your page into their browser, the software on the server sent them a copy of what you uploaded. Done. Things were simpler then.

You can still do this indeed. It’s easier than you will be imagining to create a basic website. What’s considerably harder is making a page someone will actually look at. Constantly-changing, information-rich things like Google search results or Facebook timelines or eBay auctions clearly aren’t waiting around as static documents on a server somewhere. Nor are they being typed up on demand by millions of underpaid interns – though that is an entertaining thought. All such modern sites have one thing in common: a database.

This really means no more than putting your information into tables so it’s logically organised and accessible, but the difference that makes is enormous. Say you’re looking for a particular car, a blue Golf around ten years old, for less than about 2,000 eurodollarpounds. Imagine having to read through the details of hundreds and hundreds of used cars arranged in no particular order. You’d settle for the first one you found. Hell after an hour you’d settle for a burnt orange Daihatsu three-wheeler. But if the info is in a database the computer can do the tedious work for you, instantly winnowing that huge list down to the few that meet your criteria. Most excellent; this sort of thing is why we keep those darn machines around.

And a huge proportion of modern websites also work this way. Instead of sending out static documents on request, new software on the web server takes the visitor’s input, queries the database for relevant information – which could include images and other media as well as text – and pours the results into a template to create a custom page. And that is what it sends back to the visitor – a document that didn’t even exist before they asked for it.

This ‘new software’ on the web server is called a Content Management System, or CMS. You create the templates that dictate how your pages will look, you put the information into the database, but the CMS mixes them together and serves them to your website visitors. Modern ones even give you tools to create those templates and an interface with which to enter your information. A good one is as easy to use as a word processor – like the one I’m writing on here.

A content management system is what we need for the ‘team thesis’ I spoke of. We could make our own one using PHP, a popular language for writing code that runs on web servers, but the objective is not to show off our coding skills. The objective is to deliver a real working solution to a real working client. If we were consultants here, we’d recommend they use an existing CMS, customised for their needs. So that’s exactly what we’ll do for them – choose the best for their needs, and customise it to suit them even better. There is a huge range of great ones available.

The question we face now is, which?

Categories
Cosmography

THIS IS NOT A RESOLUTION

Apologies for the long absence. I will try to blog more often in 2014, but I can’t promise a return to regular service. My MSc is becoming far too demanding now.

It’s not the workload exactly, though that is… not insubstantial. It’s more that as it continues, the course lays greater and greater emphasis on teamwork. We had a project to complete in every module last semester, and now we are facing into the most important one of all. Known, with unnerving simplicity, as the ”The Major Project”, it is effectively our Masters thesis.

Can you imagine that, those of you who have postgraduate degrees – thesis by team? Your group assessment of Sylvia Plath’s earlier work? Your collective opinion of mediaeval Italian prosody? Weird.

And for me, alien. I simply have no experience of working in teams. I am a loner – to the point at times of social dysfunctionality. I’ve always been self-employed, generally liaising only with an editor, often being left entirely alone to do my art thing.

I’ve never even played team games. Sure, they try to make you in school. But you notice what they forget? To tell you how. It’s like you’re meant to be born knowing the rules of soccer or whatever. So sport as I understood it largely meant standing in the cold, wondering what the hell was expected of me. Occasionally a crowd would thunder in my general direction and, yes, then there might be some instructions. But even these would tend to be lamentably short on detail and clarity.

Idea note_20140102_024447_02While I’m here, can I mention something else to sport-obsessed educators? Children don’t learn teamwork from adult-size sides. Eleven or fifteen kids is not a team. lt’s a pack.

Thanks in part to this misguided introduction to cooperation I was a pretty hopeless team player at first – and especially, leader. You know the saying “I never ask my people to do something I couldn’t do myself”? My variation was to never ask anyone to do a thing I hadn’t done already. But I think I’ve learned to relax and trust people more.

Which leads me back to my point. Working for myself, I can justify taking a break in all sorts of ways. Maybe I need it, maybe I deserve it. Maybe I just feel like it – I’m the boss after all. Now compare that to a teamwork situation where not only my own degree, and hence my future, depends on the work I put in, but the futures of three or four other people. That’s a whole different standard of pressure.

So between now and the end of June, I guess I’m going to be keeping it pithy.

Categories
Politics

Save The Senate

Logo of the Oireachtas of Ireland
Logo of the Oireachtas of Ireland (Photo credit: Wikipedia)

Let’s not try to avoid the obvious here. The Seanad is an embarrassment. It’s astonishingly, intrinsically and indeed deliberately unrepresentative. It is a pawn of the executive, a sinecure for the superannuated, an affront to democracy.

But it’s something.

Embarrassing and undemocratic, because our Senate is fascist through and through. I’m quite serious. Its structure was inspired by a social theory called corporatism, applied under Mussolini’s government and endorsed enthusiastically by the Papacy as an alternative to the danger of electing socialists or communists.

The idea was that instead of voting in the traditional area-based way, members of society would be represented according to the role they played. So there would be workers’ representatives and bosses’ representatives, and instead of strikes (which would be illegal) they would reach agreement in parliament. It all seems rather sweet and naive really. If you overlook the fascist bit. It’s also fantastically paternalistic and condescending. Rather like communism, you don’t get to elect lawmakers directly. You elect people who elect people who elect people.

Well OK, one sort of person is considered sufficiently mature. As a university graduate, I get to vote directly for a Senator! We’re smart. The rest of you, you’re all represented by your trade union or your business organisation. And if you’re not an employee, an employer or a member of the graduate professions, well I guess you just don’t belong in the ideal world of Pope Pius XI.

At the same time though, the Senate can’t actually do anything. In framing the constitution of 1937, de Valera wasn’t going to create a power system to rival his party machine. Arguably it was a sop to the Catholic Church – which unlike communism actually could threaten democratic government. The Senate can say what it likes but it can’t stop a law passing or force any amendments. It can just delay a bill.

Unless the Dáil considers it urgent, and suspends even that power.

We should be glad I guess that it’s both powerless and undemocratic, and not just one of those things. But what it should be of course is neither. Whether directly elected or appointed by lottery (actually a better idea than it sounds), it must be constituted in a way that represents people equally. And it should have powers. Not to rival the Dáil’s authority of course, but sufficient to oversee legislation.

We speak of the checks and balances necessary to democracy, but in practise we ignore them pretty much completely. We have a winner-takes-all system of government. When you’ve got the Dáil you’ve hit the jackpot. Take the opposite extreme: In the US the executive is elected directly, entirely independently of the legislature. The legislature itself is divided into two houses of almost equal power, watching each other. These three branches plus the judiciary keep power balanced. Sometimes rather closely balanced as we’re seeing right now, but balanced.

Our system looks a lot like that, but the resemblance is almost wholly superficial. Despite being directly elected, our President is virtually powerless. The executive is elected by, and from among, the party or parties that win the Dáil (House). Finally, the Senate is packed with the executive’s nominees. So it’s true to say that the deadlock currently besetting America wouldn’t happen under our system. But that’s because under ours, the President and the Senate would be Republican too.

An Irish Taoiseach is as close to a dictator as it’s possible to get under the rule of law. Party discipline ensures cabinet assent. Except in rare cases of a minority administration, his will is inevitably carried out by the legislature. Only the judiciary is truly independent, and the circumstances under which they can review legislation are highly circumscribed. So it’s true that abolishing the Senate won’t remove a lot of government supervision. Just the little bit we had.

And once it’s gone, once all power is finally vested in the Dáil, do you seriously think they’ll ever give it back? We need a parliamentary system with more checks and balances, not fewer.

Categories
Cosmography

Let Us Not Deny The Autumn

image

Categories
Politics

National Drug Problem Festival

Guinnessmap
Well it’s certainly one view of the country

How many people would drink Guinness if it were not for its association with Ireland?

It might still be a known product, sure. Its following in Africa for example probably has little to do with its Irish origins. But for most people, the images of beverage and country are almost indistinguishable – despite it being owned by British-based Diageo. If you strip away the associations with Irish culture – or what people suppose to be Irish culture – what are you left with? No tradition, no fun-loving attitude, no music and mystery. Just a black drink with a bitter taste and weird texture.

Diageo should ruminate on this. Without the Irish market, there would be little enough market for Guinness.

Ironically these thoughts are prompted by an effort to regain market share in Ireland. I say share; I doubt that Guinness has declined much in total sales, but it remains associated with the more relaxed, conversational drinker. The biggest growth sector – the young, excessive drinker – prefers cider, lagers, alcopops, Buckfast. Any old shit in fact, as long as they can drink a lot of it quickly. It’s hard to drink Guinness quickly. The “Arthur’s Day” programme of concerts by fashionable and/or obscure bands is clearly aimed at attracting the younger crowd. But it threatens instead to kill the goose.

The debate continues elsewhere about what restrictions should be placed on the promotion of alcohol, whether it’s right to aim it at the young through sport or art or even entertainment. That’s not really the problem here though, so much as the sheer scale of Diageo’s vision. The original “Arthur’s Day” was a one-off celebration of the company’s product and history. No one objected to that. Where they overstepped the mark was in turning it into an annual event, virtually a national holiday. That is going a bit far now. Already they push the identification of brand and country to extremes, even to the point of using the national symbol for their company logo. But declaring a new feast day, that’s acting like they own the place.

It’s not a national holiday of course. It’s an enormous alcoholic drink promotion in a country that has an enormous alcoholic drink problem. Such a big event inevitably brings the issue to a head. (I’m sorry, it was unavoidable.) Guinness wants to project an image of Ireland as a land of happy drinkers, where the worst social consequences of alcohol use are perhaps a comical hangover, perhaps a jaw that aches from too much talk and laughter. And not, say, spousal abuse and suicide.

If you feel like registering your disapproval, you could visit the Boycott Arthur’s Day Facebook page.

Categories
Cosmography

Checkout Desk

With little luggage for the journey, the Ryanair passenger has time to contemplate the many, many ways the have to die.
With little distracting luggage, the Ryanair passenger has time to contemplate the many, many ways they have to die.

Do you ever feel when you fly with Ryanair that check-in is really trying to prove your bag breaches some rule? Well, that might be because they’re being paid to do that. From Ryanair’s annual report (pdf), page 67:

As part of its non-flight scheduled and Internet-related services, Ryanair incentivizes ground service providers at many of the airports it serves to levy correct excess baggage charges for any baggage that exceeds Ryanair‘s published baggage allowances and to collect these charges in accordance with Ryanair‘s standard terms and conditions. Excess baggage charges are recorded as non-flight scheduled revenue.

So if you thought that because it’s airport staff doing it it must be the law or safety or something, it’s not. It’s a revenue stream.

Categories
Cosmography

That Doesn’t Mean What You Think It Means

That Doesn't Mean What You Think It Means

Yes, that is the impression I had.

Categories
Cosmography Technology

Explain This With Your Science

Especially if your science is physics. Obviously something to do with magnetic… [Waves hands around] domains. Yeah, definitely those domains probably.

The tweezers here have two small disc magnets attached. When the arms are squeezed together, one magnet flips up to contact the other arm. When they’re squeezed again, it flips back – and so on. The freaky aspect is that it happens so consistently. Same input but opposite outcome, every other time.

It seems like there’s some sort of “magnetic equilibrium” that neither position can quite satisfy. Whichever one it’s in, the system takes any opportunity to get out again. It’s also very dependent on how the magnets are positioned. I got them this way quite by chance, and I haven’t (yet) been able to reproduce the arrangement. One other clue: Their poles are aligned in the same direction.

Answers on a postcard. Or in the comments, which I suppose are a form of post-post postcard.

Sorry. First day back in college. I have a bit of delirious.

Categories
Cosmography

Skin My Shed

BackWallYeah it looks pretty, but you don’t have to clean it.

The back-kitchen / laundry / scullery / workroom / conservatory / toolshed at my parents’ house hadn’t really been tidied since my father died – or indeed many years before. I was not looking forward to this.

But it’s a revelation, literally. The last time this wall was fully visible it was the 1990s. Ever since it’s been obscured by “temporary” shelves – and the crap that inevitably accumulated on them. Stuff in jars and tins, mostly. Nuts, screws, washers, and bolts. So many, many different sorts of nail.

I’m slightly amazed to see the stonework properly again. Ideally I’d take this opportunity to repoint it, but there’s only so much summer and a lot of jobs to do. So many, many jobs. I’ve a range and a washstand to restore, a home Ethernet/satellite network to complete, two websites to design, a laptop to refurbish and an entire programming language (JavaScript) to learn before college starts again in little more than a month. Hmm… To finish this job alone, I’m going to have to sort out all the tools. That may not sound too fearsome, until you realise how many, many kinds of tools there are. Two entire sets of spanners and sockets (my Dad’s old imperial and my metric one – there’s a generational change), plumbing tools, wood tools, electrical tools, car tools, power tools, gardening tools, broken tools. All these have to be separated out. And where do gas fittings go? Welding rods? We don’t even have an arc welder any more.

A lot has to go. Two generations of male “But it’s useful!” thinking has its consequences. If you click on the picture to zoom in you’ll see a thing that looks like a green raygun. That’s a car timing strobe. I don’t think anyone even makes a car with mechanical timing any more. It will be a wrench though. Each bit will be a wrench. I hauled out a fridge today, one that my father once cannily converted into a chest freezer by the simple expedient of laying it on its back. It’s a strange shade of pale blue-green inside, it was made in Italy, and it’s probably the first fridge I ever saw. And I’m going to send it to a dump.

I came across a pair of metal… things. Just matching stamped pieces of steel. I do not know what they are, what they were once part of. Beyond some educated guesswork based on their shape, I don’t know what they are meant to do. But I know they’re important. The one thing I do recall about them is that at some point they were the key to a problem I wrestled with. A long-forgotten problem. How can you throw away something like that?

OK, just me then.

But the space must be made. Firstly, so that there is some chance of ever finding a thing. Because at the moment it’s organised on the principle “A place for everything, and everything in that place”. Secondly, so that there’s some space in this space. Because this is actually a great space. (Now I’m an interior designer I’m forbidden to use the word “room”.) The light is extremely good. All right, the transparent roof makes it too hot to breathe in during summer, and the gap between that roof and the top of the wall makes it icy in winter. But for… the many, many days between this could be a good place. Not just for storage and drying laundry, but to work or relax in.

Wonder can I bring the Ethernet out here.

Categories
Technology

Customised Galaxies

Screenshot_2013-08-23-02-52-42
With Sweet ROM the Note’s home screens will work in landscape mode.

Tired of Vodafone Ireland still trailing behind the curve, I decided to upgrade the Galaxy Note myself. Again. A year ago I installed Ice Cream Sandwich. Now we finally have Jelly Bean.

Only, not quite. This time I’ve eschewed not just Vodafone’s particular mix of Android, but Samsung’s too. Up until now I’ve stayed with the stock firmware so that I would be reviewing the standard user experience. This time I decided to go the whole hog and “root” the phone – which basically means giving myself administrator privileges so that I can change whatever I like. Obviously that involves some risk, but it makes your device a lot more interesting. Particularly it means you no longer have to stick to official builds, but can try out customised versions of Android.

A word of warning first though. Certain models of the Note, and several other Samsung Galaxy phones, are vulnerable to a problem known as “BrickBug”. Due to a design fault, if the memory chip it contains is erased in the wrong way it can never be written to again. Thus the device is rendered absolutely unusable and – short of an expensive mainboard replacement – irreparable. Which is depressing. So proceed with caution!

It can be worked around safely, but I won’t attempt to give comprehensive instructions here. Go straight to the horse’s mouth – the invaluable XDA-Developers forum. Actually it’s well worth looking around there before you do anything with an Android phone.

Indeed it was here that I came across the version of Android I chose to use: Sweet ROM. This is one guy’s personal mix that he released to the public, but I think he got the balance pretty right. And unlike many custom versions of Android it’s designed specifically for the Note and so retains all its pen abilities. Here’s the (almost) complete feature list provided by the author – which you can skip if you hate jargon:

CHANGELOG

  • LT9 Firmware
  • Kernel Philz XXLT9 v5.08.5 (thanks Phil3759)
  • Modem LT3
  • Deodexed & Zipaligned
  • Full Root
  • SuperSU (thanks Chainfire) & busybox
  • 24 Toggles including working 2G/3G toggle controlled in Settings (Silver 3D theme thanks Dr.Ketan)
  • Full Airview in Gallery, Video, Lockscreen Notifications, Email & Message. Partial in Snote & Splanner
  • Multi Window Add All Apps S4 white theme
  • SG4 Weather Widget
  • Samsung Camera Shutter Sound on off hack
  • MMS Hack – No SMS in call Log, 200 recipients & No SMS to MMS Auto Convert
  • TW Launcher rotate 270 degrees
  • Call record and no ascending ringtone & 2G/3G hack
  • Ink Effect Added to Settings/Lockscreen
  • Smart Rotation & Smart Stay
  • LockScreen Shortcuts, News Ticker & Weather all working
  • 4 Way Power Menu
  • Enabled extra widgets Negative Colors etc
  • Added Nova Launcher
  • added Flash Player
  • S4 Wallpapers (modded SecWallpaperChooser.apk)
  • Resized Popup Browser with call up app (thanks vijai2011 & kam333)
  • Transparent Status Bar with White S4 style icons & circle percentage battery
  • Added Internet Speed Meter Lite
  • Sub Symbols in stock keyboard
  • Build prop tweaks for battery & performance
  • All Mods & Hacks done myself (unless mentioned) using LT9 firmware
  • and more I can’t remember

To translate: it’s a lot of thoughtful tweaks done by an experienced user. And lovably, it cuts out most of the pre-installed (and irremovable) apps that phones come burdened with. Only real essentials are there; the rest you can choose whether to install.

It’s a great mix and I’m enjoying using it – it’s like my phone came back from a holiday to the feature. Now I have root though it’s almost trivial to switch to other customised versions, and I’ve no doubt I’ll be trying some more.