Results matching “parent” 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.

The White House (Gasp!) Goes Drupal

|

The White House re-launched its website on Drupal. Can you believe that? Not sure why this blows my mind. In searching the web however, I see many others have also sat up and taken notice.

George Washington at the White House running on DrupalNo doubt the White House has content to manage. Sure.

But I think the reason it's so unexpected is that Drupal is simply too cool & cutting edge for the White House .. which we normally associate with stodginess and somnolent formality.

Then there's the fact that Drupal is not an American product. It was born in Belgium, at the University of Ghent (.. as a message board for fellow-students enrolled there).

And you know how RADICAL college students can be. Downright revolutionary at times.

It could also be that we associate politicians with being less-than-honest about their true intentions .. while Drupal is open source, and therefore completely transparent. (Imagine how people might feel if Hitler were caught parading around town wearing a scarf knitted by Mother Teresa.)

Dare I mention how the government TAKES your money .. without even a thank-you note, and gives it to people who have much too much already. While Drupal, released under GPL, is better than free (as in 'free beer'), cuz it's also open source (free as in 'freedom').

The whole thing feels grossly incongruent .. as tho two vastly different worlds have collided. Matter and anti-matter. Good omen, tho .. for both the White House and Drupal.

Centuries of Philosophical Thought

|

Have a special treat for you today. Earlier this year I spent my Saturday mornings (8 weeks worth) up at Chapman University, here in Orange county. There I participated in a co-parenting course called » Kids First (.. for a second time, both court-ordered).

The curriculum is designed to help divorced parents put aside their disappointment & resentment and focus on putting their » kids first. (Hence the name.) Excellent course, taught by seasoned professionals who really care. ($300)

Friedrich NietzscheMy particular classes were held in the same building where Chapman's Philosophy / Religion department is located.

[ The combatants, uh I mean parents, are assigned to different classrooms, as you might expect, to minimize the number of brawls. ]

Posted on the bulletin board outside the office to the Philosophy department was a large laminated poster that contained a list of the major philosophers throughout history, with a representative quote beside each name.

I enjoyed reading those quotes each week .. so much that on the final day I stayed late to copy them down, along with the name of each philosopher and their corresponding dates. I've been carrying around that piece of paper ever since. (Tho it's getting ratty.)

Today I finally transferred these quotes to 3 web pages (7 entries per page), and included a picture for each philosopher (which the original poster did not have). I also added a brief historical description to complement each entry.

Rad's Nuclear Grade Crock Pot Stew

|

Have a special treat for you today » my Nuclear Grade Stew recipe (2 pages). I've made this stew at least 50 times over the years .. probably closer to a hundred. Now that autumn is here, and the nights are getting chilly, it's time to break out the crock pot.

Crock PotFor the pages that contain this recipe, I designed a new, single-sidebar layout .. another liquid-elastic hybrid. See what you think.

For previous web pages, I used a design that comprised dual-sidebars, one on each side, cuz I liked the balanced, symmetric look provided by that layout. So this feature took longer to complete than expected, cuz I first had to code the CSS from scratch.

I've made this stew for the Bug many times (cutting the veggies into smaller pieces so they fit easily in his little mouth). So it's made with lots of love. He digs it.

Been lagging on entries lately, as you mighta noticed. Been dabbling in Programming. Kinda got lost. Big subject.

On the personal side, I took the Bug kayaking last week .. out on the Newport Back Bay. (No waves there.) He later confided, "Dad, at first I was a little scared. But now I'm not scared." We stopped at a small island where he got out and searched for buried treasure.

"Hey Rad Man!" began an email I received last week. "I'll pay $100 for a link on your Downloads page." Of course, there's no way of knowing if such offers are legit .. until the cash arrives.

 BenjaminI've researched Search Engine Optimization (SEO) enough to know I don't much care for it.

Programming I enjoy, but SEO contains a seemingly endless amount of info to digest, some of which conflicts from site to site.

And the suggested techniques are often time-consuming, with dubious results that demand the patience of a saint before you start to see results. Rather focus my energies on generating original content.

Moreover, some of the techniques used to 'optimize' web pages (for higher search engine rankings) seem manipulative, if not downright dishonest. Many of the SEO sites I've visited have a 'slimy' feel to them » detailing how to trick search engines into ranking your pages higher.

I learned that links from 'ranked' pages will (in turn) yield greater 'importance' to the pages that those links aim at (point to). This is (I assume) what this person had in mind when she contacted me.

The email seemed both professional and specific. (Not slimy.) The girl was clear about what she wanted. And best of all, her proposal could be implemented minutes. (Simple.)

The problem was .. that the page they wanted a link on was created back when I knew squat about web standards (XHTML & CSS). The underlying mark-up (code) was a rat's nest of deprecated tags and coding no-no's.

Downright embarrassing .. from a webmaster's point-of-view. Miracle the page would render at all (.. even in 'quirks' mode).

Reblog this post [with Zemanta]

Web Typography & the Confusing EM

|

Web typography. It would seem to be a fairly simple topic, no? While I was reviewing some related concepts recently, the following question popped into my head » What exactly is an em?

EM | Usage in Web Typography I've been using em's a long time, and knew they were based somehow on the letter 'M.' Wasn't sure however, if they were based on the size of the capital [M] or lower-case letter [m].

Also felt confident they were based on the horizontal measurement, but not certain. (In both cases, I was wrong.)

Trying to answer this simple question led to a surprising amount of confusion. Many sources on the web discuss ems, and detail their usage, without ever defining what exactly an em is.

Many pages are more complicated than need be. (It's not rocket science.) Finally have a handle on the topic, but my dang eyeballs are burning .. from reading so much.

First, let me answer the question I posed at the top, and therefore avoid the criticism I levied at many other sites.

An em is (drum-roll, please) » a unit of measure (.. defined by a certain number of pixels). So like inches & meters & light-years, which are also units of measure, the em is a » unit of LENGTH.

The thing that makes the em tricky is that » unlike inches or meters, or other fixed (or 'absolute') lengths, the em is a relative unit.

"Relative to what, Rad?" you might be asking. Relative to the font-sizing applied to (in pixels) its » parent element.

What this means is » the SAME font-size declaration (specified with ems) can yield DIFFERENT results (in pixels) .. when/if the parent element for each declaration specifies a different sized font. Hence, the confusion.

Reblog this post [with Zemanta]

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.)

Autumn Begins .. with a Single Drop

|

Autumnal equinox today. The exact moment when the sun crosses the equator (heading south) = 9:18 PM UTC, which = 2:18 PM Pacific Daylight.

Autumn ColorsNational Geo says » 5:19 AM Eastern (which = 2:19 AM PDT), so I think they type-o'ed AM, when they meant PM.

Nevertheless, it's still the best page I've seen yet on the subject .. cuz it explains why there's not (yet) 12 hours of (equal) day & night. Cool video, too.

Just noticed I used a picture of a spigot dripping water in yesterday's entry (» re: Conditional Love, near the end) ..

.. while a photo (using high-speed photography) shows a droplet hitting the surface in the entry directly below it (» New Layout Design, posted 9/15), which I used to represent LIQUID designs.

Conditional Love = Manipulation

|

An article posted in last week's NY Times has been gnawing at me all weekend. It cites a study performed by two Israelis & a "leading American expert on the psychology of motivation." The single-page piece is titled » "When a Parent's Love Comes with Conditions" .. or » "When 'I Love You' means 'Do as I Say'."

Conditional Love = Manipulation The article can be summed with the following quote:

"The primary message of all types of conditional parenting is that children must earn a parent's love. A steady diet of that, Rogers warned, and children might eventually need a therapist to provide the unconditional acceptance they didn't get when it counted."

Doesn't it seem odd that a study was required to determine that rationing of love & acceptance (like gasoline during a shortage) based on 'performance' .. is detrimental to children? Duh.

First, conditional love is not love. Let's call it by its real name » manipulation. And it's the worst kind of manipulation, cuz children, especially young ones, are at the mercy of their parents.

Moreover, they do not yet possess the skills necessary to recognize and defend against such insidious tactics  .. from people they're so dependent upon (for eveything).

Now, do you know anyone who enjoys being manipulated? Cuz I don't. Heck, even people who enjoy pain don't like being manipulated. Cuz it doesn't really hurt; it just feels slimy. [Speaking of slime & pain, refer to my comments about boiling a frog near the end.]

Not very difficult to tell the difference, either. Kids (who happen to be particularly sensitive) can spot a fake all-the-way across the coffee shop and will turn away .. while gravitating wholeheartedly to the genuine. You can actually observe this play out.

There are many things a parent can use as leverage to encourage (or discourage) a particular behavior. But love should never be included in the leverage toolkit. Same goes for affection & attention .. things too precious to be used as mere bargaining chips.

Withholding love & affection based on behavior is cruel. Sure, it might elicit the desired response .. in the short term. But the child will grow to resent it (.. as does anybody who's being manipulated). Used consistently and frequently enough, it will instill deep-seated feelings of inadequacy .. that may never go away. (You might even know someone like this .. with deformed self-esteem.)

Many times, when a child is acting out, I'd wager it's *because* he or she is not getting the emotional support they need (from a parent). That would be like telling a hungry child » "Stop fussing or I won't give you any food."

[ In the military, we had a saying » "The beatings will continue until morale improves." Same principle. ]

Whichever side of the great nature vs nurture debate you tend to favor, you always return to » the parents .. as the prime causal agent for how a child turns out .. whether it be on count of their genes or their parenting methods (.. or a combination of both).

We were all kids once. (Well, most of us.) So we all have many years of first-hand experience from which to derive our opinions .. of what works, and what doesn't (.. and what really suks). My point is, it's not rocket science.

Reblog this post [with Zemanta]

(Today btw, is 9-9-09 .. for all you numerologists.) Anybody who has ever used Cascading Style Sheets (CSS) to style a web page has likely experienced the frustration that comes when a particular style refuses to render the way you want.

Understanding the concepts outlined here will help troubleshoot any CSS rendering problem .. much better than banging your head against the wall (.. a technique that seems to provide limited success).

Three rendering principles determine how CSS styles are applied to a web page, and which style(s) take precedence. They are:

  1. The Cascade
  2. Inheritance
  3. Specificity

For reference sake, here's a quick review of basic CSS syntax » selector {property: value}

For example » p {color: green} .. will apply a value of 'green' to the color property for the text contained in a paragraph ('p' = paragraph selector). This is called a CSS "rule".

Here's a brief overview of the 3 rendering principles listed above that determine how CSS rules are applied to a web page:

CascadeI. THE CASCADE

Styles are applied in the following "cascading" order: External style sheet » Embedded styles » Inline styles.

A given HTML page can contain one, two, or all three (or none). Styles lower down the cascade normally supplement (add to) styles higher up the cascade. If a styling conflict exists however, styles lower down take precedence.

In other words, the last style applied wins (.. given equal specificity). Here's a brief description of each type of cascading style mentioned above.

1. External style sheets (fileName.css).

These styles can be applied to an unlimited number of HTML pages .. which link to the CSS file. Very powerful, since they allow you to change the look-n-feel of an entire site by modifying a single file. Web pages normally link to only a single external style sheet, tho it's possible to link to multiple external style sheets .. which also cascade, depending on the order they're listed. Large professional sites often use multiple external style sheets.

2. Embedded styles

They are found within the head tag of an HTML page. These styles are enclosed within the 'style' tag <style> and apply only to the HTML page in which they are found. These styles supercede any styles contained within an external style sheet that may conflict with them (.. given equal specificity).

3. Inline styles

Inline styles are applied to individual HTML elements/tags, using the "style" ATTRIBUTE. Note that this is not the same as the style ELEMENT applied to embedded styles mentioned above, tho it's spelled the same way. Inline styles supercede all others that conflict with them .. since the last style applied wins. Plus, they carry maximum specificity (which we'll discuss later).

Horrible Dream @ 4:44

|

Horrible dream last night. The digital clock on my nightstand read 4:44 (in big green numbers) when I woke .. feeling like I'd just finished running a marathon. Nothing like starting the day exhausted & covered in sweat.

Amusement ParkHaven't had a dream where I lose the Bug in more than a year. But they're the most terrifying.

We were at an amusement park (in my dream) .. riding this thing that goes around & around .. like a wavy roller coaster. (Metaphor for my life?)

As the ride concludes, the Bug says (urgently), "I gotta pee," and runs off, down the ramp .. with a bunch of other kids.

"Wait!" I shout. But his belongings are scattered around the cart we rode in. I quickly gather them up before hurrying after him.

He couldn't have gotten very far, but I lost sight. Lots of kids his age are scurrying about (happily). Soon as I exit the building, I see it's early evening. Warm & almost dark, but the grounds are well-lit.

As I call out for him, a boy tugs on my shirt sleeve and points to a man standing near the entrance to the ride we just came off. "Did you lose a boy?" he asks. "We have him upstairs." Immediately I'm relieved. Seems like a very nice guy.

As a side note, in my other dreams where I lose the Bug (at a campground, for example, out in the woods), I always go "upstairs" to try to find him (.. to a rec room located above the cafeteria at the campground).

But once I get there, I always find people who seem to know something, but refuse to say anything, or pretend not to know.

So this normal-looking guy takes me up to the second floor .. to a circular room directly above the ride on which we just rode.

We have to push a few boxes out of the way to get there. I think nothing of this (in my dream) .. nothing strange. I'm just looking forward to getting the Bug back. Nothing else matters.

Seems to be some kind of administrative offices up there. (It's always the second floor of a 2-story building where people tell me he is.)

When we get up there, the guy stops at his desk and pulls open a sliding shelf near the floor and takes out some toys to show me. But I don't want to see any of his stupid toys.

Then it sounds like he's trying to make some kind of deal with me. I look around and notice the place seems more like a storage area than an office (lots of boxes piled everywhere). My patience quickly expires. "Take me to my son, now!" I interrupt, shouting.

First Father/Son Bike Ride

|

Embarked on my first-ever father/son bike ride with the Bug yesterday. We took a leisurely trip around the Back Bay (here in Newport Beach), a popular path where few cars travel. Gorgeous day, too.

Father Son Bike RideHis little bike still has training wheels. A bigger one* sits waiting in the garage, but he refuses to ride anything without training wheels. (* Miss Julie picked it up for him in Laguna last month.)

I'm in decent shape .. seeing I've been biking everywhere .. since my license was suspended in June. So my legs feel strong.

The Back Bay loop is 10 miles. So I expected the Bug to be tired afterwards. Surprised me when he insisted on hitting the trampoline soon as we returned.

Used to be I could tire him with a full day of outdoor activity. That doesn't seem to be working so well anymore. Ever since he turned 4 .. he's become impervious. I'm the one who usually tires first.

Speaking of tiring .. last night I slept better than I have in months. Been dragging all day today .. even after a triple-espresso this morning. I made some puttanesca for lunch today. That usually helps. (Carb-loading.)

The loop is mostly flat but has one big down-hill. Made me smile to hear him yelling, "Woo-hoo!" all the way. "That was cool, dad!"

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