Results matching “politics” from Ye Olde Rad Blog III

Learning the Unix Shell (bash)

|

Last month I mentioned a quest to learn the Unix shell .. specifically » bash (the Bourne Again SHell). Almost done. Currently ~80% complete .. enough to feel reasonably confident at a terminal.

Linux shell terminalThe 'shell' is simply a program that lets you interact with the operating system (actually the kernel, to be more precise) ..

.. by taking your (text-based) commands and passing them on to the kernel. In my case, this kernel happens to be » Linux (which is but one variant of Unix).

The term 'shell' comes from the notion that this software acts like a 'layer' that sits between you and the operating system .. similar to the way an egg-shell sits between you and your hard-boiled breakfast.

The shell can be intimidating, cuz it uses a (text-based) command-line interface (CLI). No intuitive GUI to help you along. You either know the commands or you don't.

Didn't take me long to realize the CLI was where Linux's true power resides. When we upgraded the site, for example, to a Virtual Private Server, the support-techs who helped me with the move all used the command-line to work their mojo.

Most Linux distros do indeed come with an excellent GUI (usually either KDE or Gnome). But (but!) the Rad VPS does not. Which is why it became necessary to learn the Unix shell. (Something I tried to avoid.)

The Rad VPS is based on CentOS (Community ENTerprise Operating System), an off-shoot of Red Hat, which is probably the most popular of all enterprise Linux distros (.. and now a new member of the S&P 500, a development you may find telling).

GUIs (such as KDE or Gnome) require lots of memory/RAM. My laptop, for example, has 2-gigs, but the Rad VPS comes with an allotment of only 512-MB (.. upgraded from 384 just today).

With that limited amount, I need to run not only all the standard web applications .. such as Apache (web server), MySQL (database), Perl (scripting language), etc. but also cPanel/WHM.

So there's not much RAM left to run a GUI. [ Don't think I didn't inquire about installing a GUI. =) ]

Bottom line » if you wanna administer your own VPS, you need to learn the Shell. So that's what I'm doing. (Of course, there have been distractions, making progress uneven.)

Learning XML

|

XML is the foundation for several next-generation web technologies, such as XHTML, Ajax, RSS and Web Services. So it sounds like a good thing to know.

XML vs HTMLWhile HTML (the language of the web) is used to display information (how data looks), XML is used to structure & describe information (what data is).

XML is easy to learn, but comes with a set of related technologies, such as:

  • XPath .. which is used to extract data from within an XML document (similar to how SQL works).
  • XSLT .. a styling language which transforms an XML document/file into something else (such as HTML, PDF, ASCII or another XML file).
  • XQuery .. provides advanced query functions on XML data, similar to SQL. More powerful than XPath.
  • XPointer & XLink .. which work together to create hyperlinks to XML documents and to sections within XML documents (even if/when no named anchors exist, which is pretty cool).

So there's a lot to learn. (I'm about knee-deep into it.)

Since XML is just plain text, XML documents/files can be created or edited with any text editor, such as Notepad or Wordpad, which come with every version of Windows. But they provide no advanced features such as:

  • line numbering
  • tag completion
  • syntax color coding
  • checking for well-formedness
  • validating XML files (against DTD & Schema)
  • collapse & expand sections of code

I heard that the best (most feature-rich) XML editing software that's FREE is » Microsoft's Visual Web Developer 2008 Express Edition .. which I downloaded and installed.

Holy moly. Big download. Couple of gigs. They make you register the software, too. Took me a long time to finish everything .. after downloading all the updates (including the security patches & SP1, plus installing Microsoft's SQL Server 2008 Express).

Today is Martin Luther King day. I find it interesting (and coincidental) that the very next day we swear-in our first black president. What are the odds these two (seemingly unrelated) days/events would occur consecutively?

Martin Luther King Jr.

I've always been good in math. I got the highest grade, for example, in my (first) Calculus class .. even after I opted to skip pre-Calculus, and hadn't had a math class in/for 10 years. (Pre-Calc is now a mandatory prerequisite, I hear.)

I also got the highest grade in my Statistics class (taken the same semester as Calculus). The professor who taught my 'Stats' class taught two classes that semester. He told me I got the highest grade in *both* classes.

Depending on how you categorize the variables, the odds of these two days/events occurring consecutively..

.. would be between 1-in-365 (the number of days in a year) and 1-in-133,225 (which = 365x365, since each event could theoretically fall on any given day).

I could spend today's entire entry discussing the nuances associated with probability & statistics, but my point is » the odds are miniscule .. no matter how you dice the math.

My brain, for some reason, seems predisposed to identify the statistical curios associated with seemingly unrelated events ('coincidences'). It's not something I try to do, mind you. Just seems to occur on its own.

We know that the inauguration date would've been the same whether Obama or McCain was elected. And (we know that) MLK could've been born on any day. Moreover, his birth (which we celebrate with today's holiday) obviously had nothing to do with our presidential inauguration.

So the proximity of these two events seem totally unrelated (from a design standpoint). Yet in reality, and certainly in influence, they are obviously very much related. So much so that many feel the accomplishments of one man could not exist without the efforts of the other. (See my point?)

I'm not drawing any conclusions .. merely identifying a curious coincidence. And it's obvious the work MLK did back in the 60's preceded Obama's rise to the presidency (chronologically). So even the ordering of the consecutive days aligns correctly with historical events.

Went to Tom's last night for a house-warming party. He recently sold his townhome and moved into an apartment.

President-elect Obama & family

I said, "Dude, turn on the elections." He hadn't yet set up his cable TV service, so he dug out an old set of rabbit ears from a storage box, and spent 20 minutes trying to get a signal.

We watched the election returns on his (new) plasma TV .. connected to a (old) set of rabbit ears.

The signal periodically faded, then returned. Interesting how we watched history being made via the old (rabbit ears) and new (plasma TV). Kinda symbolic.

Everybody was wiping tears. (Tho for different reasons.) Some felt history books a hundred years from now will point back to this night as a major milestone (.. for better or worse, which remains to be seen).

No Desire to Rule the World

|

There's a scene in The Gladiator (Best Picture, 2000) where Marcus Aurelius (Roman Emperor, 160-180 A.D.) shares with Maximus (his General) that he's dying, and tells him he wants Maximus to replace him and lead Rome after his death.

Marcus Aurelius | Roman Emperor 161-180 A.D.

"I want you to become protector of Rome after I die .. to give power back to the people, and end the corruption that has crippled it. [long pause] Would you accept this great honor I have offered you?"

Maximus responds: "With all my heart, no."

The ancient emperor grabs Maximus by the head and implores, "That is why it must be you!"

The implication here is that the very desire for this power (» ruler of the most powerful empire on the planet) disqualifies one for the job. (A political catch-22, if you will.)

Indeed, it has been my experience, working in large organizations, that people who crave power the most tend to suk the worst at exercising authority.

Maximus for President!

Realize I'm making coarse generalizations, but certainly, anyone who wants to be president (or even a senator) would've long since passed the threshold of any power-craving test we could concoct.

I see less of a problem however, with the people themselves than with the system that puts them there. Most agree our current system of government does not attract the best and brightest minds our nation has to offer.

Along these lines .. I must ask » what is it that drives a person to desire such lofty positions of authority? .. especiallly when approval ratings sit at all-time lows, and few trust a politician to do what he/she says. And does mere presence of this desire prognosticate anything (as Marcus implies) about the likelihood of their becoming a noble, effective leader?

Fyodor DostoevskyYou know you're in a bad place when you feel like reading Dostoyevsky .. as a way of commiserating with someone who can relate.

He was screwed over pretty badly. Critics claim it was these experiences that enabled him to write with such penetrating insight.

"The writer's own troubled life enabled him to portray with deep sympathy characters who are emotionally and spiritually downtrodden, and who epitomize the traditional Christian conflict between body and spirit.

Dostoyevsky sought to plumb the depths of the psyche, in order to reveal the full range of the human experience, from the basest desires to the most elevated spiritual yearnings.

Above all, he illustrated the universal human struggle to understand both God and self. Dostoyevsky was, as Katherine Mansfield wrote, a man who loved, in spite of everything, adored life, even while he knew the dank, dark places."

I've known a few dank, dark places myself. (Haven't we all?)

"Who loved in spite of..." That's not easy to do.

Even those who don't like Dostoevsky concede ungrudingly he is "a titan of world literature."

Critics seem to agree The Brothers Karamazov is one of the greatest novels ever written. Some even claim it is the single greatest novel -- ever. (That statement raised my eyebrows.)

  • Einstein said, "Dostoevsky gives me more than any scientist."
  • Freud called it, "The most magnificent novel ever written."

Find recent content on the main index or look in the archives to find all content.