Results matching “summer” from Ye Olde Rad Blog III

Feliz año nuevo. Most Content Management Systems (such as Drupal & MODx) work in conjunction with (require) a database. So do blogs (such as Movable Type) & forums (such as SMF).

MySQL is the world's most popular database software for web-based applications (.. such as CMS's & blogs & forums). It's what I use. It's the only database system I've ever used.

cPanel / Web Host ManagerThe Rad VPS (« physically located downtown Chicago) uses the cPanel/WHM control panel to help administer the site. cPanel makes it stupid-easy to create a new MySQL database.

You simply » enter a descriptive name for your new DATABASE (such as » rad_modx) and click the button labeled 'Create Database.' cPanel talks to MySQL and creates the database for you. Viola! Done. Too easy.

To use your new DATABASE, you'll also need to create a USER (such as » rad_modx, conveniently same as the database_name). Give this USER a password and click the button labeled » 'Create User.' Voila! Done creating new USER.

Lastly you need to assign a particular USER to a particular DATABASE. You do this by selecting both from their respective drop-down menus (one lists all available DATABASES, the other all possible USERS) and clicking the button labeled 'Add.'

Then you assign to this USER the appropriate PRIVILEDGES (normally ALL) necessary to perform the database functions. Click the button labeled 'Make Changes' and you're done. Voila! As if this weren't easy enough, cPanel even has a wizard to walk you thru these steps.

MySQL Database ManagementSo, in order to configure a database to work with a particular web application (such as Drupal or MODx), you need 3 pieces of info:

  1. database_name
  2. user_name
  3. user_password

Couldn't be easier. Tho I sometimes forget the final step of actually assigning the USER to the DATABASE (after creating both). Creating new DATABASES is not something I do on a regular basis.

RADIFIED currently uses 5 databases. Three for the blogs » 1-each for the 3 different versions of Movable Type I have installed .. based on v263 (installed 2003), v335 (installed 2007) & v432 (installed 2008). Another for Drupal (2008). And 1 for MODx Revolution (beta5), which I installed a few days ago.

The Rad forum, which uses YaBB, doesn't use a database. (At least not yet.) Might be worth noting here that Movable Type, Drupal, MODx & YaBB are all OPEN SOURCE (better than free) .. as is MySQL.

While installing MODx a few days ago, I noticed they include an option to test your database connection & credentials .. to see if MODx can access it okay.

Created a dedicated 'Guides' page. See here » Radified Guides. Been meaning to do that for .. eons. This will allow me to off-load the guides listed here on the home-page, so I can clean it up.

MODx Content Management System (CMS)I indented & right-aligned every other link .. to make them easier to read. What do you think? When the links were all lined-up together & left-aligned, they seemed too .. similar.

Eventually I'd like to include a representative graphic for each guide/link. But for now, I just wanted to create a page that contains a repository of the links to all our guides.

On a related note, I've been looking more deeply into MODx, the Content Management System (CMS). They are fixin' to release a new version (complete-rewrite, from the ground up, based on PHP5) .. called » REVOLUTION. (Current version is called » EVOLUTION.)

Drupal would be cool, but it's way too sophisticated for what I need. I don't want/need a PhD in CMS's. Here's a MODx site, for example. (I used to live in Lancaster, PA .. the heart of Amish country. Nice people there.)

I'd like to become intimately familiar with a good CMS .. as another skill to add to my digital toolkit. Only way to do that is » use one daily.

The good people at MODx claim a 'Release Candidate' version of REVOLUTION will be coming » "Winter 2009" (.. which is now). [ Notice how the words 'Summer 2009' have been lined-out. ] UPDATE » They just changed the RC date to "Spring 2010". Hmmm.

The MODx site is running REVOLUTION. I'm in no hurry, tho. Rather make a good decision than a hasty one.

First day of winter, otherwise known as the » winter solstice. The word solstice means 'sun stopping,' because the sun appears to cease its southerly trek for a few days around this time each year, before heading back north.

Pooh's Heffalump MovieThe exact time when the sun reaches its southern-most point = 10:47 AM PDT. Interesting how they can pinpoint the exact moment.

Today is the longest night of the year (most hours of darkness). Starting tomorrow, the days begin to lengthen. The seasons are caused by a tilt (23-degrees) in the earth's axis .. as we make our annual trip around the sun.

Of course, if you live down in the southern hemisphere, everything is reversed. Today is your first day of summer, with the longest day of the year. Summer solstice.

Consider this » the earth is 92 million miles from the sun (give or take a few mil). Let's call that distance » the 'radius'. We can calculate the distance of our annual orbit by using the formula for the circumference of a circle » pi x diameter .. which = 3.14 x 184 million, which means we travel » 578 million miles every year (around the sun) ..

.. at a speed of 578-MM / 365 days per year = 1.58 million miles per day, which = .066 million miles/hour, which equals » 66,000 mph (if my math is correct). That's almost 100 times faster than the speed of sound. We're bookin'. Better fasten your seatbelt. Imagine hitting something at that speed. Ouch.

The seasons remind us of the cycle of life .. rebirth, renewal .. that no matter how dark things might get, brighter days are coming. And that dark days come to us all.

The Bug Rides .. without Training Wheels!

|

The Bug rode a bike for the first time this week. I mean » a 2-wheeler, without training wheels. One of the major milestones on the road to manhood.

Bicycle I was excited (.. even more than he was) .. running alongside, shouting » "Oh my God! You're riding!" Waiving my arms like an idiot.

But later disappointed. Cuz I had anticipated spending a few days teaching him. Instead, he just hopped on and rode off (.. his very first try).

I didn't say anything, but was thinking, "Doncha know you're supposed fall & crack your noggin a few times .. like I did?"

I've been talking to various dads the past few weeks, learning different techniques on how to teach him to ride ...

.. such as » remove the pedals & let him push himself along, allowing him to become accustomed to the bike's balance at his own pace .. or » grab him by a snug-fitting t-shirt between the shoulder blades and run alongside .. again, giving him most of the balance .. and also » the 'broomstick technique.'

Riding a bike is all about » balance. I think the reason he picked it up so quickly is cuz he's been riding a 2-wheel scooter around town the last few weeks. It's actually called » a razor. (He's a little demon on that razor.)

I'm learning programming. Not a specific language, such as Javascript or Ruby. Rather, the concepts of programming .. that can be applied to ALL programming languages.

[ By the way, I've completed my study of the Unix shell. You can retrace my CLI steps » here. ]

Structure & Interpretation of Computer ProgramsMy particular style of learning emphasizes nailing down foundational concepts .. those primarily presented at the beginning of a course.

While this approach can be frustrating initially, because it slows progress at the outset, while foundational concepts are digested on an emotional level .. it allows me to crank thru with confidence (at an accelerated pace) once the foundation is set. [ See note #1 for an example. ]

Like any good geek, I've previously sought entrée into the world of Programming, but always settled for a cursory review of specific languages. (Most recently » Javascript.) Never found that global entrée I was seeking .. until recently.

The approach that is working for me .. is a combination of studying the HtDP text and watching the SICP videos (found » here).

  • SICP = Structure & Interpretation of Computer Programs (based on Lisp)
  • HtDP = How to Design Programs (uses Scheme)
  • Both languages are similar. So the two courses complement one another nicely.
  • The SICP videos and the HtDP text are freely available online, along with the SICP text.

The SICP course is legendary in the world of Computer Science. More people refer to it as the single best course on Programming .. than any other.

It was designed and presented by two professors at MIT (.. arguably the world's finest institution of geekdom). Moreover, it was recorded and the videos posted online, where they remain available for download & viewing (free).

I admit, I need to view each video multiple times before feeling comfortable enough to move on to the next lesson. But I *am* getting it .. and enjoying it.

The HtDP course is a simplified version based on the concepts presented in the SICP course.

Neither the SICP videos by themselves, nor the HtDP text alone works for me. But .. combining both courses really makes things click. I get it. I see what's happening .. how things work. It makes sense. And I look forward to learning more.

Rad Intro to Calculus

|

Today is the 40th anniversary of the first manned lunar landing (1969) .. a historic event for techies .. cuz it was techies who put us there. And techies used » calculus to put a man on the moon (some 240,000 miles away).

MoonAt the heart of calculus lies the notion of » limits (a concept I'm quite familiar with, unfortunately).

Calculus was invented to solve (among other things) the problem associated with finding the instantaneous rate-of-change .. as visualized by the slope of a line tangential to any given point on a curve (of a graph).

To calculate a slope, you might recall (dust off them algebraic brain cells) we pick two representative points, find their difference and divide the » "rise by the run" .. the change-in-Y / change-in-X (.. commonly referred to as "delta-Y over delta-X").

As the change in the X coordinates (recall from basic Algebra) gets smaller and smaller, we get closer and closer to determining the slope (rate-of-change) at a particular point.

The problem however .. is that a point has no size, so the "change" or 'difference' (in the X coordinates) becomes zero. And dividing anything by zero is a major mathematical no-no. (Defined as "undefined" .. a mathematical black hole that will crash your computer.)

See t=13:00 here, and especiaaly t=13:30.

Limits

The concept of » limits was introduced to address this problem. Imagine standing in your living room, and walking half the distance to the furthest wall. Then walk half the distance again. And again & again.

Each time, you keep getting closer & closer. But .. you'll never actually reach the wall (cuz you keep going only half the distance). A hundred years from now, you'll be very, very close (to the wall), but still not quite there.

Getting closer & closer to the wall is analogous to decreasing the size of the difference between the two X coordinates along a curve plotted on a standard graph (which contains an X & Y axis). But the limit (drum-roll, please .. here it comes) is » the wall! .. even tho, in reality, you never actually get there.

That's why the notion of a limit represents a mathemetical "concept" (not reality). If you think about it, you can't really have an instantaneous rate-of-change (.. cuz nothing can change in an instant, cuz an instant contains no time). And the word 'rate' implies "per-unit-something." That 'something can be (and often is) » time.

That's also why the result is called/termed a 'derivative' .. cuz you can't get there with conventional mathematical manipulations. It's kinda like what that old farmer told me down South when I asked for directions » "Son, you can't get there from here." =)

Guess Who's Back

|

Two county sheriffs (1 male & 1 female) escorted me out after court this week. That's never happened before. I think they were just ensuring nothing happened en route. Keeping the peace. You know how ugly things can get during a custody battle.

Pooh & Piglet catching butterfliesI actually liked being escorted. Felt safe, protected. One walked on each side. They were very nice, professional. So I appreciate whoever it was that set it up. Tho I got some strange looks from passersby.

The sheriffs walked me to the edge of the property, where they watched me cross the street, then waved goodbye. =)

Kinda surreal, I thought, while waiting there at the bus stop (.. like this whole ordeal has been).

This time in court was very different. I hardly said anything. Experts testified.

First, the courtroom was cleared of all unessential people (not uncommon, due to the nature of the accusations). If you were there, and listening carefully, you might've heard the judge say the word I've been waiting to hear for years » enough.

The Zen of Sensitivity & Suffering

|

Was doing good until sunset on Father's day. Then it got to me and the blues arrived. Used to resist sadness, fight it. Now I just go with it. Roll with it. Flow with it, like a canoe downstream. (Resisting and fighting just wears me out.) Been here enough times that I know the drill. No big deal.

yin yang There's a prophetic verse in Isaiah saying Jesus was ".. a man of sorrows, and acquainted with grief." So it seems okay to be sad, tho not particularly pleasant. I get kinda numb, distant. Feel like crying.

Been reading a book on Zen a friend gave me. Interesting ideas, perspectives. For example, here's a passage I found particularly thought-provoking.

The context is about rejecting the notion that anything that doesn't involve serious effort (and usually pain-n-suffering) is somehow unworthy or worthless. But the concept can be applied in other ways. See here:

Now there do seem to be times when verve & vigor are appropriate. Times when force works with, and not against nature. As Shakespeare said, "There is a tide in the affairs of men, which, taken at the flood, leads on to fortune." [Julius Caesar, Act 4, scene 3]

But when the tide is not at flood, when mere brawn is up against granite, the effort to go against nature seems more stupid than splendid.

At best, one could say with the French general of the Charge of the Light Brigade, "C'est magnifique, mais ce n'est pas la guerre." To call it splendid is to base one's evaluation of man on his animal strength over what is more characteristically human » his intelligence.

This mis-evaluation is perhaps based on the common distrust of intelligence on the part of those who lack it, as something tricky, cunning and weak-spined. But this mis-evaluation also reduces the standards of human character until they are more applicable to pachyderms and rocks than human beings.

For after all, is the final test of character really just in seeing how much suffering you can endure? Your ability to endure depends on how insensitive you are. But being human is about, above all, being sensitive. And this means, the measure of character becomes, among other things, the quality rather than the quantity of your suffering.

It occurred to me again today, while composing a short thank-you note, that Texans donate more to the Rad cause (this site) than all other states combined.

TexasNever been ever to figure out this statistical curio, seeing I live in California.

I've lived in many states over the years .. including Connecticut (where I grew up), Florida, (where I attended both bootcamp & the Navy's Nuclear Power school), Maine (shipyard at Bath Iron Works), Hawaii (the first state away from home to feel like home), Idaho (gorgeous .. in the summer), Washington, Pennsylvania & Illinois, and vacationed in many others, but Texas isn't one of them ..

.. tho I do recall being enchanted with the sense of expanse there as I drove thru the panhandle on I-40 (on my way to California). There was something compelling about the landscape .. readily apparent soon as we crossed the border. Vast & open. Felt like I could see for a hundred miles. Couldn't stop looking, as if it were beckoning.

So maybe Texans are simply the most generous?

Anyway, thanks to all you Texans for your continued generosity over the years .. especially during these difficult economic times, when so many are struggling financially. I'm sincerely grateful.

Been researching MODx, a Content Management System (CMS) .. similar to Drupal and Joomla .. tho considerably more 'flexible.'

MODx

Being a publisher-of-content myself means I'm always on-the-lookout for cool, new publishing tools. Movable Type has been my tool-of-choice since 2003, but I'm always open to trying new things.

The thing I don't like about Movable Type is that it's difficult to customize. You're limited to one of their pre-designed templates. Even minor tweaking is a nightmare. And it suks when your site looks like so many others.

Before we discuss CMS'es, you should know that Drupal won the Packt Publishing award for best Open Source CMS two years running (both 2007 & 2008). These awards were chosen by guys who know their CMS'es. Tho the judges admit:

There isn't necessarily one CMS that is "the best," but rather the best is the one that best fits a user's needs.

It's unlikely the judges actually used all the CMS'es themselves, since there are so many. Joomla came in second. It's probably the single most popular CMS out there.

Regulars might recall when I installed a copy of Ubuntu Linux last summer .. an operation I prepared for by creating a separate 20-gig partition (on my new hard drive), which I formatted as EXT3.

VMware Workstation

Somebody in the forums (Nigel, I think) suggested using VMware (.. either the freebie 'Player' or full-boat 'Workstation' ..) to run a 'virtualized' installation.

I initially balked at the idea .. cuz I didn't grok how virtualization works. But you don't need to understand how an automobile works in order to benefit from driving one. Same goes for virtualization. And the benefits are substantial.

The coolest thing about 'virtualizing' a Linux installation .. is that you can run it from (within) Windows .. just like you can run Photoshop (from Windows) .. or any other Windows-program for that matter .. multitasking all of them at the same time.

I found that .. if you can only use/access Linux by booting into it (and thus leaving Windows behind), you're less likely to use it (.. or so it has been my experience).

So last week I deleted my EXT3 partition, and reformatted it as NTFS .. where I installed a virtual machine containing Ubuntu 8.10 'Intrepid Ibex'.

Intrepid even found my wireless adapter upon initial boot-up. (Woo-hoo!) No more having to troubleshoot wireless connections and installing proprietary drivers just to get internet access.

The only drawback I've found is that you can't copy-n-paste info/text (such as passwords, etc.) between programs running in Windows and those running in (virtualized) Linux. (Tho I wonder if this might help.)

Redesigned the site's » Archive index page (from scratch). It contains links to all monthly archives posted since the site's launch (summer of 2000). Gateway to Memory Lane.

Knights debating the importance of good table design with King Arthur

Been meaning to do that for some time now (years, actually). That page was the single-most mucked-up page on the entire site. The code was a rat's nest of deprecated standards, poor design choices and mark-up errors. I'm surprised it would render.

Began that page back when I knew very little about HTML and before I'd even heard of CSS. Over the years, the muck seemed to multiply as the page grew. It's not a highly trafficked page, so I didn't worry about it.

Tho at sundry times, I'd go in and try to manually clean up the code. That always proved an exercise in futility. Seemed like the more I tried, the worse things got. The only real solution was a complete makeover (a move which could be viewed as symbolic of the site's growth and development).

Now the page contains a third the mark-up it did before (10-KB vs 30) and the styling looks 3X cleaner, by making use of advanced techniques such as colgroup styling for better readability. Leaner, meaner and faster-loading.

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