Results matching “laptop” from Ye Olde Rad Blog III

On Sundays I resist dawdling before my morning trip to the coffee shop. I aim to get up & get out post-haste .. cuz sometimes the Orange County Rebels (bike group) make a pitstop there (like they did last Sunday) .. creating huge lines (and forever waits).

They take all the seats and are a noisy bunch (.. ~50 of them). I'm usually half-asleep until I've had my coffee, so the noise & commotion is, uh .. not good.

I've been studying programming recently. One of the first concepts any aspiring programmer learns is the » if-then conditional statement.

Conditional statements take the form: If a particular condition is met, then » do X .. otherwise » do Y.

CrossroadsSo I'm riding my bike this morning and approach the intersection at Flower street .. where I wonder, "Did I remember to put the DVD in my hip-pack?" .. cuz I need to return it to the library.

And all of a sudden .. without any effort on my part, this whole if-then conditional statement (beautifully formatted) pops into my conscious mind. Now I'm sure I've negotiated many similar if-then scenarios before .. but never so explicitly.

So I stop the bike at the Flower intersection and peek into my hip-pack. If I have the DVD with me, I'm gonna turn left onto Flower and » take Flower down to the library and drop off the DVD.

But the library sits on a main road (noisy, lotsa traffic). I'd rather take the back roads, which are far more scenic and quiet. So otherwise (then), I continue straight and » take the backroads.

I could've dropped off the DVD after coffee (nothing bothers me after coffee), but I wanted to stop at the grocery store afterwards, and pick up a few things. And the grocery store is the opposite direction (from the library). So I'd have to drop it off now.

Anyway, it surprised me to see how quickly & easily this technological concept had superimposed itself (unrequested, no less) over my conscious life. So sharp & clear. Pronounced & pervasive. I mean, I didn't really want this formal if-then statement to invade my thinking. I'd rather keep that aspect isolated to the Programming part of my life. But I couldn't.

At the coffee shop, I shared my experience with Kurt .. who is always sitting there, programming games on his laptop at the corner table. He's a programmer who specializes in generating 3D graphics for some small Gaming company that makes games for the Nintendo Wii. "You've just decribed the last 30 years of my life," he said.

One of the concepts that keeps popping up in my study of Programming languages is » expressiveness. Loosely defined, expressiveness is » the ability to say a lot with a little (my own definition).

ShakespeareWhere Programming languages are concerned, expressiveness might be the ability to DO a lot with a little.

Related terms » Meaningful. Concise. Simplicity (as it applies to the elimination of unnecessary complexity). Elegance. Efficiency.

No doubt, you know an 'expressive' person or two. But sheer volume of words does not an expressive person make.

Some people can talk for hours without really saying anything (.. at least not anything meaningful). While others can speak volumes with a simple glance.

In programming, the notion of expressiveness is often touted as a plus, associated with "higher level" languages. I could be wrong, but the idea I get is » the more expressive (a language is) the better. Notice the statement that begins the second paragraph here:

"My contention is that expressive power is the absolutely most important property to focus on right now."

This from a developer with an admitted "unhealthy interest in programming languages," who's currently developing his own. Since the learning process often involves relating new information to things we already know, that's what I've been doing.

As chance would have it, I was watching Hamlet last night (the Kenneth Branagh version). Didn't take long to realize much of what was being said wasn't getting thru. ( "Say what?" )

So I enabled English subtitles and started vigorously working the pause button .. in order to read & digest the Elizabethan chatter. Much better.

Saying Much with Little

Note how the phrase » 'To be or not to be' is exceedingly simple. Yet it carries much meaning beneath the surface (.. especially that 'not-to-be' part).

The ability to "say much with few words" is a primary reason cited when discussing Shakespeare's literary prowess. In other words, it's not just what he says, but the way in which he says it .. that makes his writing so .. descriptive, enchanting.

Microsoft Fears Linux

|

I'm reluctant to republish the content of others (as so many sites already do), but .. I found it interesting & noteworthy that » Microsoft has acknowledged Linux as a threat .. especially since I spent so many hours in Linux these past few weeks (learning the Unix shell)

Linux PenguinCopy-n-paste snippet (minor Rad-editing for brevity):

"Microsoft acknowledges Linux as the first viable competitor to its Windows client business, due to the use of Linux on netbooks, which are rising in prominence as an alternative to full-sized notebooks.

Microsoft cited Red Hat and Canonical -- the latter of which maintains the Ubuntu Linux distribution -- as competitors to its client business, which includes the desktop version of its Windows OS." </snippet>

Notice how the article said » DESKTOP, and not server. Linux has long been a dominant force in the server market (.. if not the dominant force).

It's difficult to describe why Linux is so cool .. why using it feels so fresh & clean. But I think it has something to do with the good intentions .. that come from thousands of talented programmers donating their time & expertise .. to bring you (for free) an operating system they obviously believe in.

I might be imagining it, but I think you can actually feel these good intentions (while using Linux). Can you feel the difference (in intentions) between someone who genuinely loves you, and someone who is paid to love you?

Moreover, I feel our economy has a lot to do with the Linux threat to the Microsoft desktop. No matter how compelling the product, basic economics suggest it's hard to compete with free. (Which Windows is not.) And in these troubled economic times, free means more than it used to.

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

I know a guy who used to make serious bank. He always seemed to have a wad of broccoli handy. So it surprised me to learn he's now living in a ditch.

Homeless man"Where ya been?" I asked, running into him recently. (Hadn't heard from him in months.)

"I moved," he said. "Where to?" I inquired.

"I'm living in one of the most exclusive neighborhoods in San Clemente," he boasted. "Presidential Heights. Not far from where Nixon used to live."

[ I used to live in San Clemente myself, just off Buena Vista, a stone's throw from the beach there, and walking distance to the pier. So I'm familiar with the area. ]

After sharing how his global Internet-based business has been taking a beating, and how he began having trouble making rent, he described how he threw everything into storage (for $55/month) and moved to a "secluded ravine" he'd discovered while surfing nearby.

"I arrive shortly after sunset," he explained regarding his new routine, "and park about a hundred yards away. To discourage hikers, I've moved some brush across the path. I have a sweet little spot, complete with Thermarest pad & sleeping bag. I fall asleep to the sound of the ocean every night."

While showing me a video of his "new home" (recorded on his cell phone), he continued, "A blue jay wakes me every morning. I feed him peanuts."

After an early morning aerobics class (where he showers afterward), he heads off to the library where he begins his work. But while he was in the restroom last week, some kids stole the memory from his laptop.

Woke at midnight .. to a disturbing dream. (Didn't get back to sleep 'til 3:30.) Like any artist familiar with affliction, I didn't wanna let good angst go to waste. So I fired up the laptop and resumed my study of the UNIX shell.

The Art of Unix ProgrammingSomewhere 'round 2AM I stumbled upon » The Art of Unix Programmingbook at Amazon.com), by Eric Steven Raymond. (Tho I can't recall how I got there.) He's the guy who wrote How to Become a Hacker, which I quote from time to time.

In his treatment of Unix Programming, ESR uses words like culture & philosophy .. which caught my attention .. cuz I've always been fascinated by other cultures .. not so much for the better/worse comparative aspects, but rather for the mind-expanding effect one gets from truly seeing the world from another's perspective. Plus he writes well (or has a good editor), which I appreciate. Couldn't stop reading.

Here are 10 statements/ideas I found particularly interesting and revealing. Perhaps you might also. (Minor Rad editing for brevity.)

  • Unix was born in 1969. That's several geologic eras by computer-industry standards -- older than the PC or workstations or microprocessors or even video display terminals.

  • Few software technologies have proved durable enough to evolve strong technical cultures, transmitted across generations of engineers. Unix is one. The Internet is another. Arguably they're one and the same.

  • Unix has supported more computing than all other systems combined. It has found use on a wider variety of machines than any other operating system - from supercomputers to handhelds & embedded networking hardware, through workstations & servers, PCs & minicomputers. In its present avatars as Linux, BSD, MacOS X & a half-dozen other variants, Unix today seems stronger than ever.

  • Unix's durability & adaptability have been astonishing. Other technologies come and go like mayflies. Machines have increased in power a thousandfold, languages have mutated, industry practice has gone through multiple revolutions. Still, Unix hangs in there, producing, paying the bills, and commanding loyalty from the best and brightest software minds on the planet.

Quest to Learn the UNIX Shell (bash)

|

Been learning the UNIX Shell, which uses a command-line interface (from a terminal) .. something I've wanted to do ever since we upgraded to the Virtual Private Server last year. (Linux is a variant of UNIX.)

Linux shell terminalEven basic knowledge of (how to use) the Linux command line makes life administering a VPS much easier.

The Shell is simply a program that allows users (like me) to interact with the operating system (sometimes termed the 'kernel'). It can be conceived of as a 'layer' sitting between you and the operating system .. hence the term » shell.

Several shells exist, but nearly all Linux distributions come with » bash (Bourne Again Shell) .. cuz it's free, powerful and easy to use.

On my laptop I have installed a copy of Ubuntu Linux that I use to learn the shell (practice). Before jumping into learning the Shell, I figured this was a good time to upgrade my 'installation' of Ubuntu .. to the latest release (» v9.04, 'Jaunty Jackalope').

So I downloaded » this virtual machine (1.1 gig, using uTorrent). Had trouble getting it connected to the Internet, but that was due to my own inexperience with VMware, and not due to any short-comings of Ubuntu.

Anyway, I am really digging learning the Shell, cuz it's something I can use right away. For example, yesterday I upgraded the blogging software we use here at Radified (Movable Type) to the latest version (» 4.26). Something that used to take hours to accomplish was done in minutes .. (using a series of Shell commands). Beautiful.

Had a weird problem with my network earlier this week .. where I could not access my site .. which (as you might imagine) suks pretty bad. No problems accessing any other sites. Seemed as tho I was being blocked to my site and my site only.

Access DeniedFirst I called my web host. Can't access my site, I said. No web pages, no email, no FTP, SSH. Nothing. Have no problems accessing any other sites. So it must be a problem with the server.

Hmmm, the tech mutters, I was just checking out your site earlier this morning .. a few hours ago. Lemme try to pull it up.

Your site is loading fine for me, he says.

You must be loading from the browser cache, I argue.

He proceeds to perform his Linux-guru mojo and says, No, your site is fine. These are pages I didn't load this morning.

You sure? I ask.

He then has me check my IP addy and verifies I'm not being blocked .. then suggests I unplug my router (for 30 secs) to reset it before plugging it back in. This trick works! I can again connect to the site. Until...

No More Diapers or i-key on Laptop

|

Got rid of the Bug's last few diapers today. He hasn't worn diapers for months, even at night. Seemed symbolic when I dropped those Huggies into the trash. End of an era. (He's 4 now.) Good that he's developing, but kinda sad, cuz they're only small once .. for such a short time.

Speaking of little ones .. the Dog called today and said his wife is pregnant. Due in October. I'm so happy for him. Couldn't stop smiling.

He's in New York. He will make a great dad. (His first.) He married a girl from the Czech Republic. (You know what they say about Czech girls.)

My laptop had a sticky i-key. So I popped it off with a thin flathead screwdriver and broke the dang mounting clip that attaches the key itself to laptop. Or at least it popped off too.

Tiny parts. Hard to work with. Broke out a magnifying glass. Hard to do anything with a magnifying glass in one hand.

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

When I finish using my laptop each night, I gently close the lid and shut my eyes. When I wake each morning, I lift the lid, press the power button, and return to where I was working. (Been doing this for years.)

Ubuntu Linux 8.10 Intrepid Ibex

This morning however, the laptop wouldn't start. The BIOS loaded fine, and transferred the start-up sequence to GRUB (GRand Unified Bootloader).

But GRUB failed to offer a boot option, and instead kicked me back (automatically) to the BIOS .. in an endless (tho very short) loop. Sukage maximus.

Not much you can do when the boot loader fails to offer an option. I tried powering-off the laptop & powering it back on. Still no dice. "This ain't good," I muttered, wiping the sleep from my eyes.

Last summer, I installed a copy of Linux » Ubuntu 8.04, Hardy Heron (.. to a separate 20-gig partition, formatted as EXT3).

As part of the installation, Ubuntu automatically installs a copy of the GRUB boot loader, which has worked flawlessly .. (uh, until today, that is).

My hard drive is pretty new, so I didn't think it was a problem with the drive itself failing. So maybe GRUB somehow got corrupted, I thought .. tho I did nothing that should've affected it. I mean, GRUB sits in the Master Boot Record (MBR), and I have no reason to go there.

To make matters worse, I haven't backed up in waay too long. Just yesterday, the thought passed thru my head » "You need to back up your system drive soon."

I'm not even gonna say how long it's been .. cuz I'm kinda embarrassed .. especially since Radified is very much about backing up your hard drive (with industrial strength Cloning tools).

Quick shout-out to Peter S. (who lives in Baltimore). He helped me create a Perl script to change permissions (CHangeMODe) for the files-n-folders (located on the Rad server) that pertain to upgrading (actually installing) YaBB .. something that's been occurring with greater frequency.

YaBB: Yet aother Bulletin Board

Peter read where I wrote (on Jan 6th):

The worst part of "upgrading" YaBB (actually » installing) is chmod'ing all the files (setting file permissions .. to either 755 or 666). There are nearly a thousand files which need permissions set. Tedious maximus. Takes a while. (I hate it.)

I say "he helped me," but actually, he did most of the work himself, leaving only enough undone to help me learn some basic Perl scripting techniques.

We've been trading emails off-n-on (as time permits) the past few weeks. Now I have a script that works perfectly. It will save me untold hours of mind-numbing tedium. So I'm pretty stoked.

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