IamCraig.com Rotating Header Image

Opinion

Holy crap! I have opinions! Lots and lots of opinions! You want to read my opinions NOW!

Deleting files under Linux/Unix

Today I came across a comment on a blog post related to deleting files on a Unix/Linux system that was a clear case of bullshit. I tried to post a comment to that effect on the blog in question, but the comment feature was broken. So, since I had already gone to the trouble of writing my response, and since I don’t post nearly as much to my own blog as I would like, I’ll just post it here instead.

To PoorMe, who claimed to have “just lost all of [his/her] files and folders on [his/her] server in just 2 seconds” by running the suggested command, I call bullshit!

I actually intentionally tried this a few years ago on a server that I was decommissioning. First of all, you have to be in the root directory for the dreaded “rm -rf *” command to try and remove everything (unless you craft the command explicitly to remove everything under the root directory), and you’re almost never in the root directory unless you place yourself there for some specific and very unusual reason.

Secondly, in my test (which I did run as root) I ran into many files and directories that threw up errors and interrupted the process, even though I used the “-f” flag. In fact, I ended up having to delete individual directories off of the root to do what I was trying to achieve, and even then I gave up trying to remove anything but directories I knew contained user data.

Thirdly, even without those errors the process would have taken minutes, if not hours, not “2 seconds”. Anyone who thinks it takes two seconds has obviously never tried it. Besides, assuming you’re connecting over SSH, how are you still connected if you deleted everything, including the SSH server?

Bottom line, don’t run commands on your system that you find on the Internet without first understanding and checking them. But even if you don’t take that advice, the chances of you erasing every file and directory on your server in the blink of an eye are close to zero. Sure, you might erase a whole lot of stuff you didn’t want to erase that you may never get back and which may destabilise your system requiring you to reinstall the operating system (and it may happen in as few as two seconds), but what PoorMe claims happened almost certainly didn’t happen.

Come clean, Christy Clark

As a tax-paying British Columbian, I should love Christy Clark. I should. But I don’t.

She is a divisive character in BC politics. She’s not the first, that’s for sure, but you’d think that people would learn. Not “we the people”, but the politicians themselves. Nobody likes a divisive leader. They didn’t when Bill Vander Zalm was around, and they don’t now, so what does Clark think she’s gaining by her divisive style of leadership that Vander Zalm didn’t back in the late 1980s? If she’s gaining anything, it’s only with her cronies in the BC Liberal Party, not with any members of the voting public. Is that really putting “[BC] Families First”?

I’m moved to write about this at this time because of the dispute between the BC Public School Employers’ Association (BCPSEA) and BC’s public teachers. I could point fingers at both sides in this dispute for various reasons, but Clark particularly stands out for rebuke. I say that because no member of the British Columbian public really sees this as a labour dispute between a monolithic employer that doesn’t actually employ any teachers (the BCPSEA) and the BC Teachers’ Federation; it’s Christy and her sidekick of the moment in the education portfolio (Peter Fassbender as of this writing) versus the teachers. It’s an open secret that sealed court proceedings accidentally revealed by the NDP show that the current BC government — strongly led by Clark, so there’s no doubt who is driving this — has a policy to provoke a strike by BC teachers. Imagine! Any thinking leader — especially one with an alleged “Families First” agenda — would not set out to “provoke” anything, never mind the total disruption of the lives of BC’s families!

This won’t be a long post because I really want to get to what I believe is the crux of the matter here. This won’t address issues such as liveable wages in one of the most expensive places to live in the world, and a little thing called inflation. It also won’t address Clark’s contempt of the courts and her preference for fighting and defying their rulings on the legality of her actions dating back over a decade, actions that would get you and I thrown in jail!

Let’s look at Clark’s record with the education system. As Education Minister in the early 2000s she implemented changes that were unpopular with school boards and teachers. While it’s not my contention that popularity is the measure of success, popularity is the basis of democracy. And here we are, over a decade later, and the school boards are still struggling to provide services that are expected by the public and the provincial government on the pittance provided by the latter. Quite frankly, if it wasn’t for the dedication of those people on the ground — teachers, administrators and school board employees — the BC public school system would collapse. With her own child in a private school — a privilege affordable for only 11% (2012 figures) of BC pupils — one really can’t help but wonder if this is actually Clark’s intention.

But enough about that. It’s widely known that Clark’s father was a teacher, and one can reasonably assume that she herself attended at least some school. And here is where I get to the crux of the matter as I see it, and it’s the seldom asked question (at least publicly) on the tips of the tongues of just about anyone I talk to about the war between Clark and the teachers: What formative experience did Clark have — either with her father or one of her own teachers — that seems to put her at perpetual odds with educators? (By “educators” I include more than just teachers.) I’ve heard the term “daddy issues” used often enough to wonder if this premier’s divisive style of leadership — if you can call it “leadership” — is personally-driven rather than based on arguable ideology or coherent policy.

Is it, Christy? Is it time to come clean and excuse yourself from any involvement in the negotiating strategy with the BCTF or, for that matter, any of your government’s education policies that so negatively affect families and the education of their children? Is it time to put your son in a public school — like 89% of your constituents in this province, who feel their children are being used as pawns in a fight between grown-ups who should know better — and suffer with them through this labour strife that you have intentionally provoked?

Samsung and Android: Out-of-box failure

I learnt a new term recently while doing research related to configuring my Samsung/Android tablet: Out-of-box failure. The current definition (as of this writing) on Wikipedia that applies in this case is as follows: “Out of box failure … is a negative experience a user has when installing and/or performing initial configuration on a piece of hardware ….”

In a nutshell, I am mightily disappointed in my Samsung/Android tablet.

While I have damn nearly two decades of experience being the go-to guy for computer problems among some of my friends (not to mention providing technical support to paying clients for almost that long), managing a tablet (or smart phone) is a new experience for me. I expected to run into challenges, but I didn’t expect to be let down so severely.

I remember learning about Android years ago — long before it was even released — and at the time I was excited. (Well, as excited as I get anyway.) Here was a new operating system (albeit based on an old [and good] OS, UNIX, with which I have almost as much experience as I do with Windows) that was going to allow people to turn their “dumb phones” (akin to the one-trick pony sitting on your kitchen counter: the toaster) into handheld, portable computers, just like their bigger cousins sitting on laps or desks. Not only that, it was going to create competition for the monopoly at that time — Apple and iOS — giving its users the freedom to manage their devices as they saw fit rather than as the dictatorial manufacturer saw fit. Besides the fact that I am a fan of competition, I have no love for Apple or their products. I specifically dislike the control they exert over the consumers of their products, the people who put ridiculous amounts of money into Apple’s coffers. Either you do it Steve Jobs’ way, or you can suck wind:

And yet, here I am — definitely not an “early adopter”! — with a new Samsung Galaxy Tab 3, running Android of course, and I find that I’m being railroaded into having to do things according to the Gospel of Google:

  • First, if you want to do anything useful with your tablet (other than read reams and reams of dire legal agreements as you run each app for the first time), you have to sign up for a Google/NSA account. If you don’t want to do that, you might as well return your tablet or use it for a paperweight, frisbee, coaster, or for skipping on a lake like you would with a stone.
  • Then, if you want to dump crap like Dropbox … well, you can’t! It’s a “system app”, so you can’t uninstall it. You can disable it, but only after you roll back the updates that were installed after you finally broke down and gave your name and email address to Google and the NSA.
  • The other thing I have found my Samsung/Android tablet is useful for is spam. Not sending spam or stopping it, but reading it. The fucking thing is always whistling at me or interrupting what I’m doing to ask me if I want to sign up for one Google service or another, or to remind me that I haven’t yet set up yet another “system app” (Peel Smart Remote in this case) that I also have no intention of ever using. Plus I’m now getting spammed by YouTube (“Happy dances around the world” for fuck’s sake), even though I keep clicking the “unsubscribe” link and even though the link takes me to a YouTube page that tells me that my “current setting” is “off”. Let me give you arseholes a tip: If you want me to use your software or service, hijacking my email account and the device for which I paid a couple of hundred dollars and generally pissing me off is a guaranteed losing strategy. This kind of shit is why, in the desktop world, the first thing I do with a new computer is “format c:” and install a fresh and unadulterated copy of the operating system to get rid of all the “crapware” cluttering the desktop and hard drive that companies have paid to have added to the system, but which is generally of little or no use to any thinking user. I suspect that once I get the hang of this, I will similarly root any future new Android device I buy (or work on) immediately.

OK, so as I think I understand it (I’m just guessing at this point in my learning experience, actually), it’s the decision of the device manufacturer to decide what apps are “system apps”, so I need to blame Samsung for that … and they (and Google) are starting to look more and more like Apple to me. This isn’t even a cell phone attached to one of the evil members of the cell phone cartel, who speciously claim that they must control what software runs on my phone — it’s just a tablet, which to me should be no different than a desktop computer when it comes to installing what I want on it — so I fail to understand why I am forced to keep apps that I have no intention of ever using, such as Dropbox and Peel Smart Remote. (Hasn’t Google learnt from Microsoft’s experience about bad behaviour like this in the latter’s various anti-trust lawsuits launched by the American and European governments?) To me this is like being forced to live with a slovenly neighbour from down the street, because the Communist Party Housing Authority said so. No thanks.

Although I have had this tablet for almost three months now, it has taken me this long to get over my feelings of loathing and dread (for all of the above reasons) and find the time to get this far in the experience, where I have finally installed my choice of web browser (Firefox, which crashes daily for no apparent reason) and anti-virus (Avast), and a crashing (because it wants to use the now disabled Dropbox) KeePassDroid so that I can actually access useful services that I use for which I need to log in. (Two out of three apps crashing; not what I would call “out-of-box happiness”.) I don’t have all the time in the world to screw around with this crap, as educating as it is, so time will tell whether or not this tablet turns out to be a productive and useful tool, or another listing on Craigslist.

It will also determine what new cell phone I buy shortly, ending my one-man, seven-year boycott of the anti-competitive cell phone industry, and a “dumb phone” (also known as a “feature phone”, although I can’t figure out why when it has only one feature!) or continuing with no phone is starting to look like a mighty attractive option right now.

Stay tuned!

Cell phone carriers coincidentally raise prices at the same time

Within the last few days, two of the “big three” cell phone companies in the uncompetitive Canadian cartel/oligopoly (Bell and Rogers) “coincidentally” raised their prices at exactly the same time by exactly the same amount! Telus jumped the gun by doing the same in January, apparently. Wow, what are the chances?! What an incredible coincidence — and I mean “incredible” 100% literally. Should Canadian consumers rush out and buy lottery tickets, or (more likely) look skyward and prepare to dodge lightning bolts?

Probably neither, actually. The proper response is to adopt the position — i.e., bend over. As Michael Geist writes, Why Are Canadian Wireless Carriers Increasing Prices? Because They Can. And because they have nothing but contempt for their customers.

Can anybody say “collusion”? I knew you could.

Thieving bastards.

Alison Redford’s Resignation

Alison Redford, 2012.

Alison Redford. Source: Dave Cournoyer

I shouldn’t have anything to say about the resignation of a politician in a jurisdiction where I do not live. But, I do.

First of all, I do wonder what the hell a provincial politician is doing spending tax-payer money (and a considerable sum of it, at that) on a trip to the funeral of the former leader of another country. If she felt so strongly about going to Mandela’s funeral, she should have spent her own money to do so. (I don’t know how wealthy she is, but I’d bet she would have worked to get a better deal to do so than the $45 000 of tax-payers’ money she supposedly spent, which will no doubt be paid for by passing the hat around among her supporters now that she has said she will repay it.) If the prime minister wants to waste money going to the funeral of a (former) terrorist who happened to become the leader of a country … well, I suppose that’s one of the perks of the job. What can we tax-paying peons do? But even a provincial leader has no business dealing with other national governments on a direct level, not officially anyway.

But I am drawn to the comments of Calgary mayor Naheed Nenshi, as quoted in the CBC article Alison Redford resigning as Alberta premier:

Calgary Mayor Naheed Nenshi says Redford’s resignation as premier is a sign of what is wrong with the political process.

Nenshi says while he disagrees with some of the things she did, Redford was trying to do good things for the province as leader.

“I want to remind people that this is also a human story,” he said.

“It’s about a real person. A good person. A person who loves this province and has worked hard and made incredible sacrifices for this place. And it’s the story of a system that takes somebody like that, chews them up and spits them out.”

Forget the sentimentality of his comments and those of the NDP leader, Brian Mason. It just seems shocking to me that, after not even two and a half years at the helm, she’s run out of town because, to paraphrase one of the thin-skinned members of her revolting caucus, she’s a “mean bitch”. If even people who philosophically oppose her (such as Mason) can say positive things (remember, Redford has resigned, not died) like, “I have to say I thought she was a very intelligent premier with her own vision …”, then I do have to wonder about the short-sightedness of what has happened there — short-sightedness on the part of both the Progressive Conservative Party of Alberta and Redford herself. Even if you’re a cynical, poll-watching politician who thinks only in terms of getting re-elected at the next election, the next election isn’t even for a couple of years yet!

Again, I don’t live in Alberta, and so I’m not on top of the spending issues (in addition to the one above) that people seem to be laying at her feet, and the charges of entitlement (I thought all politicians felt entitled?) and being “out of touch”. Maybe if I was an Albertan I’d be cheering right now; I really don’t know. But it was Nenshi’s comments that grabbed my attention. On the one hand I can’t help but feel that a huge percentage of politicians — from the lowliest town councillor to the top dog in the land — are on the take somehow and bilking the taxpayer with every breath they take. On the other hand, I also can’t help but feel that you can’t ever hope to attract decent people to politics if they get treated this way the minute they’re not the flavour of the moment.

Can Redford be nearly as bad as the dickhead we have running the country — his utter contempt for the electorate at large on display Wednesday by the manner in which the swearing in of the new finance minister was carried out? Although I wonder if perhaps she gave up and rolled over too easily, I also can’t help but compare her apparent willingness to step aside for the greater good to the exact opposite behaviour of that buffoon and national embarrassment in Toronto, Rob Ford.

No fun BC

Car burns during Vancouver Stanley Cup riot, 15 June 2011. © Copyright 2011 Craig Hartnett.

Car burns during Vancouver Stanley Cup riot, 15 June 2011

So just about everyone in Canada east of the Rockies got to imbibe at some inhumane hour of the morning during the Olympic gold medal ice hockey game between Canada and Sweden on Sunday. West of the Rockies though, the no-fun police were demonstrating their true colours: Public establishments in British Columbia were not allowed to serve alcohol, even though in other provinces rules had been relaxed for this special occasion.

A few years ago I’d have been critical of this “no-fun” policy. But in 1994 and 2011, Vancouverites proved that they can’t hold their liquor when they trashed the city in riots following the losses of their hockey team in the Stanley Cup finals. Of course, this time “we” won, but winners rioting is not an unheard of phenomenon either, and the infantile population of Vancouver had already proven twice they were quite happy to riot at the drop of a puck and therefore can’t be trusted.

Of course, not every resident of Vancouver and its environs is infantile, but as is always the case it’s the minority that spoils it for the majority. (In fact, Vancouverites spoil it for the whole province.) Most of us wouldn’t turn into raving criminal maniacs if we had a beer or two with breakfast at four in the morning, even if our team lost. Unfortunately, it seems we’ll probably have to wait a generation before those in charge will trust us enough to test that hypothesis.

“Comply or Die”

Yet again we have Canadian police killing civilians, acting as judge, jury and — most importantly — executioner. While we wait for a thorough and impartial investigation — in our dreams — of the shooting of Sammy Yatim in Toronto, as with the killing of Robert Dziekanski at Vancouver Airport in 2007 it’s certainly telling to note that the cops had apparently killed him within 39 seconds of arriving on the scene, even as he stood alone inside a tram car! Do the cops not learn anything from their past behaviour?!

Unlike the Dziekanski case though, this cop clearly shot to kill. You don’t fire nine shots into someone expecting that they’ll be providing fingerprints and a mug shot down at the cop shop later. Oh, and just for good measure (kind of a “fuck you, punk”), one of the 23 cops on the scene (because apparently all the thugs in town wanted a piece of the action) then tasered Yatim’s lifeless body, before ironic first aid was performed on him. (Actually, one can’t help but wonder if the taser was deployed only so that the cops could say that they tried to subdue Yatim with it. A little fudging of the time line in the cops’ notes would have been required of course, but that’s OK, as long as the bad guy dies.)

Part of the report on the Canadian Broadcasting Corporation’s The National on 28 July 2013 included an interview with a former Toronto cop who, while being critical of the speed with which Yatim was executed, used the term “Comply or die.” I’d never heard the term before, but it so poetically and succinctly seems to sum up what appears to be the motto of most police forces these days.

Rather than engage the population they’re supposed to protect in order to use “minimum force” and avoid violence — yes, even apparent bad guys with knives need to be engaged unless loss of life is imminent — cops these days seem to be on a rampage, killing, tasering or pepper-spraying anybody that even dares to look at them sideways. It doesn’t even matter that you’ve managed to live for a half century or more without so much as stealing a penny candy as a kid or getting a parking ticket, you too can find yourself on the wrong end of a weapon held by a mentally unstable cop who is miffed at you for not immediately getting down and kissing his jackboots the moment he (or she in the case of “Constable 728”, aka Stefanie Trudeau) barks a command in your direction, even when you hadn’t heretofore even had a reason to note the cop’s presence.

And that last point is important to note. All sorts of people come to the defence of the cops in cases like this for all sorts of reasons, many of whom probably fit into my penny candy / parking ticket description. Based on their life experiences, it’s obvious to them that anyone who incurs the wrath — or even just the attention — of the police is obviously guilty of something. It doesn’t really matter what that “something” is; for these people you’re guilty until proven innocent, and “you must have done something to deserve being shot, tasered or pepper-sprayed.” Or, in the case of completely blameless Buddy Tavares and his assailant RCMP Constable Geoff Mantler, you must have done something to deserve having said jackboot forcibly applied to your lips to assist you in planting the kiss.

That old adage about walking a mile in someone’s shoes comes to mind.

Related to this story but with reference to my previous post about the Canadian media, I found it odd how CBC television news showed pictures of Yatim looking like something of a gangster but had a former Toronto cop on who questioned the speed of the use of force, while Global television news showed pictures of a clean-cut young kid, but had on their own “expert” who said that cops had no choice but to shoot to kill.

Possible arrival of Verizon in Canada

I’m not a big fan of multinationals, and quite frankly I’m dubious about the possible entry of Verizon into the Canadian cell phone market — the market with the highest prices and least competition in the world. (Third World countries like Somalia and Zambia have better service and lower prices than Canada.) I’m also not happy about the way the scheme to encourage new entrants and more competition in the market has been co-opted by the Big Three (Bell, Telus and Rogers).

But if companies like Bell are willing to take many of their customers’ hard-earned dollars out of their overflowing coffers to buy full-page advertising in major newspapers to convince the same customers they’re already screwing that Verizon’s entry into Canada is a bad thing, then on that basis alone I say we should roll out the red carpet for Verizon.

Think about it. Things can’t get much worse for the consumer, and one can only hope that things get a little tougher for the incumbents, even if only temporarily.

Update, 30 July 2013: And now Telus is spending your money suing you via the federal government!

Criticisms of the Press: Canadian Edition

We, the public, need a free and professional press. Fortunately, in Canada, the “free” part is not usually an issue. But recently the “professional” part certainly took a beating, in my opinion, certainly on the television.

First up is the rail tragedy in Lac-Mégantic, Quebec. I never thought I’d say this about the Milquetoast Peter Mansbridge, the Canadian Broadcasting Corporation’s chief correspondent and anchor of The National news programme, but where is the guy? In his place we’ve had Mark Kelley anchoring the “show” (as he himself called it) nightly from the dark streets of Lac-Mégantic, giving us hand-wringing man-on-the-street interview after hand-wringing man-on-the-street interview with grieving survivors and residents, done by him and his team of reporters, some seemingly reeled in from other parts of the country in an attempt to leave no grieving resident unturned.

Then the hue and cry started to arise about the conspicuous absence of the chairman of The Montreal, Maine and Atlantic Railway, Inc. (owners of the runaway train), Edward Burkhardt. Mark Kelley set the tone the night before Burkhardt was scheduled to show up in Lac-Mégantic, four days after the derailment, by seeming to discount anything Burkhardt might say on his arrival. And so it was that Burkhardt arrived in Lac-Mégantic and promptly made a fool of himself. However, he was aided and abetted in that endeavour by so-called journalists, whose weighty questions included, “How much are you worth?” and “Did you sleep last night?” What the hell?! What the fuck does that have to do with anything?! If we’re going to hang everyone in Lac-Mégantic who has slept since the disaster on 6 July, we’re going to run out of lamp posts! The press displayed a pack mentality, savaging Burkhardt in a most tawdry and unprofessional manner like sharks in a blood-fuelled frenzy.

On a side note, Edward Burkhardt really does need to fire himself as the public face of his company until he gets some professional help in handling the press. That, some help with showing a little more empathy (he has the words figured out; he needs help with the delivery) and a kick in the arse for hanging his employee and a volunteer fire department out to dry before a full investigation, will help him and his companies immensely after future accidents. But he doesn’t deserve death threats.

And another side note is this use of the term “show” to describe a news programme. As I’ve pointed out, Mark Kelley of the CBC used this term, and I’ve heard Dawna Friesen of Global News refer to her news programme as a “show” too. My Concise Oxford Dictionary defines a “show” as, among other things:

· n.
1 a spectacle or display.
2 a play or other stage performance, especially a musical. > a light entertainment programme on television or radio.

Sadly, the use of the term “show” is actually accurate these days, especially with respect to the “light entertainment” part, as I’ll demonstrate in a moment. However, it shouldn’t be. I don’t watch, listen to or read the news to be entertained. (It’s mostly about death and destruction anyway. How is that entertaining?!) I’m not interested in the weather reporter with a joke a minute, or the (not so) witty repartee between the news reader and the sports guy. Sadly, I think I’m in the minority.

The other news item that sickens me is the treatment of the death of some Hollywood actor. Umm, what’s his name again? (Do web search for “dead actor”.) Oh yeah, some guy named Cory Monteith. I guess he was on some popular TV show or another, actually, so maybe he’s not actually a “Hollywood actor”.

Any death is a tragedy for someone, usually that person’s family and friends, not to mention the deceased him- or herself. Sorry, but Cory and I didn’t know each other, therefore I am not a friend of his and I’m pretty sure he’s also not a member of my extended family. (If either were true, I wouldn’t be getting my news about him off the TV.) So, as a human being, I extend my condolences to the Monteith family and Cory’s friends. However, I’m not going to grieve for him, and the “news shows” should not expect that I will. Nor should they pander to and perpetuate the cult of celebrity worship.

But what is truly sickening to me is that Monteith’s death was the lead item, getting a full five or six minutes of coverage on the six o’ clock news on Global News on 14 July (and a similar amount of time on CBC’s national news, although at least a predicted federal cabinet shuffle got top billing), while the deaths of two nameless “nobodies” on the following two news stories were accorded thirty seconds each. Where is the sense of proportion?!

Again, I’m probably in the minority with respect to the “light entertainment” that news has become; these days, it seems, if it’s not entertaining and keeping our short attention spans occupied, it’s apparently not worth paying attention to. After all, there’s probably a competitor with a shinier, more entertaining “show” on another channel. However, I don’t think it’s too much to expect a modicum of professionalism and at least an attempt at a veneer of impartiality from journalists when it comes to thinking of questions to ask stunned officials on the scene of a deadly disaster.

Attention Susan Ormiston!

Maybe nobody at the CBC knows any better, or maybe they’re too afraid to correct you. However, I do and I’m not.

The Queen does not PRO-sess canned fish at a packing plant. She does, however, pro-SESS down The Mall in a pro-SESS-shun.

Look it up. You’re welcome.

There was another odd pronunciation (in addition to at least two instances of the above for which I was within earshot of the TV), but I forget what it was. Additionally, I heard someone else remark on your rather odd pronunciation of “Edinburgh” (and by “odd” I mean odd to someone who lives there, not odd to a North American who might assume it’s pronounced as a German might do so), but I didn’t hear that one myself.

Again, you’re welcome.