mochahochabeachside.com

One of my favorite Scrubs Moments

by Eric on Jul.30, 2010, under Entertainment, Humor, People, Television, Uncategorized, Videos

This is one of my favorite Scrubs moments....

YouTube Preview Image

Love that show!  Think it finally jumped the shark when JD (Zach Braff) and company left, though.

All is not lost, however. Even though the show is going off the air, you can get the complete Scrubs series, seaons 1 - 8 for $177.99 w/ free shipping.

Leave a Comment more...

Pure-ftpd does not work with centos vps ispconfig The Perfect Server

by Eric on May.10, 2010, under Linux

So you're following the tutorial at The Perfect Server - CentOS 5.4 x86_64 [ISPConfig 3] and when you get to installing Pure-FTPD you get FAILED on start, and see

May 10 08:09:58 pimp pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted

in the logs.  Well, the answer is at hand.  Rather than looking through countless google entries to find the answer buried on page three or four, just go here, where the folks at newart-design.net have put together the answer. Make sure to yum install first, that way you can chkserv on and use /etc/init.d to control.

Leave a Comment :, , , , more...

Keyboard Cat has a Rival?

by Eric on Apr.15, 2010, under Interesting, Videos

Iggy, the up and coming Keyboard Cat, can be seen here practicing his dexterity on his owner's IPAD:

YouTube Preview Image

Leave a Comment :, , more...

Auto-install of WordPress Theme from CLI

by Eric on Mar.25, 2010, under Blog, Scripts, wordpress

If you're like me, and you still like to install your WordPress themes from the command line (or you were 3/4 asleep and forgot WordPress now has a nice, easy-to-use auto-installer built into the admin interface), you know it can be a pain.  You have to download the file, unzip it, make sure it's right, delete the archive, chwon the files, etc...  It can be a pain.

So, I created a nice little script to take care of all of that.  wpthemeget will take a download URL from the WordPress Themes directory (in the format of http://(www.)wordpress.org/extend/themes/download/themename.ver.zip (or .tar.gz, or .tgz)), and will download, unarchive, chown, and remove the downloaded file, with no muss or fuss...  The output?:

root@fyre [.../wp-content/themes]# wpthemeget http://wordpress.org/extend/themes/                                        download/motion.1.0.4.zip
Downloading theme motion.1.0.4.zip...
Theme is a zip archive...
Unzipping... [COMPLETE]
...Removing downloaded archive file... removed `motion.1.0.4.zip'
...Chowning files... [COMPLETE]
...Installation Complete!

No muss, no fuss. The only caveat is that you have to be in your themes directory when you run it.  Future versions probably won't have this requirement, but hey, I hacked this out when I was barely awake, on heavy medication, and repeatedly falling asleep at the keyboard.  At one point, I had to delete something like 40 lines of "zzzzzzzzzzz......" because I fell asleep with my finger on the key.  Fortunately, vi treated it as all one paragraph so '<esc> dd' did the job.  The code for this little script is after the break.  Grab it, chmod it to exec, and drop it in /usr/local/bin, and it'll be good to go anywhere on your system, for all your blogs.  Happy blogging!

(continue reading...)

Leave a Comment :, , more...

Medley of current TV Theme Songs…

by Eric on Mar.25, 2010, under Interesting, Videos

This guy is amazing... I say "this guy" when it appears to be two guys in the video. If you look very, very closely, you can tell it's an edited video, and it is really one guy. Well, I won't stake my life on it, but I'll wager my pride. Regardless, this guy (or these guys) go through 22 of your favorite TV theme songs in around 7 minutes (list after the cut). Pretty good transitions, and pretty good playing, as well, especially for some songs that don't transpose to keyboard and guitar. And so, withour further ado...

YouTube Preview Image

(continue reading...)

Leave a Comment :, , , , , , , more...

SQL Headache?

by Eric on Mar.09, 2010, under work

I thought I had a headache, today, and then I came across an SQL problem. Actually, it was just a crashed table, but the SQL in the error message made my head spin...
SELECT IF(votenum >= 1, votenum, 0) AS votenum, IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg, post.pagetext AS preview, thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid, thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views, thread.prefixid, thread.taglist, hiddencount, deletedcount , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed , deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason, threadredirect.expires, post.pagetext AS previewbbcode FROM thread AS thread LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread') LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1682 AND canview = 1) LEFT JOIN post AS post ON(post.postid = thread.firstpostid) LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid) WHERE thread.threadid IN (0,25887,23738,25882,25869,25881,25843,25792,25533,24533,25874,25879,25884,25870,25866,25873,25832,25846,22121,15123,25859) ORDER BY sticky DESC, lastpost DESC;

....After that? I need a drink...

Leave a Comment :, more...

I Speakth with a Lithp

by Eric on Mar.02, 2010, under Humor, Life

Between a co-worker and myself:

(6:20 AM) co-worker: the most amusing part is that it's all in parantheses
(6:21 AM) myself: (I love parentheses (in fact, I've been told that I use too many of them (actually, an old English teacher accused me of writing in LISP (he was a bit of a geek))))
(6:22 AM) co-worker: at least you close all of them
(6:22 AM) myself: I wouldn't want it to fail at compile.

Leave a Comment :, , more...

Spent a week in the hospital, overdrawn, can’t make rent, may get evicted, please help…

by Eric on Feb.01, 2010, under Life

Hi folks...
Normally, I don't write posts like this, but I don't have much of a choice.  Recently, I spent a week in the hospital, after missing most of the previous week of work.  As you may or may not know, I have an open wound - literally a hole in my leg - from a previous abcess/infection that very nearly killed me and resulted in the loss of my leg in June of 2009. That's almost healed.  Around two and a half weeks ago, I started having issues with my leg, again.  It turned out to be a large hemtoma near the existing wound site.  A hematoma is a place - like a bruise - where blood pools under the skin in large quantity.  Think a huuuge blood-filled zit.

I had to go into the emergeny room on Tuesday the 19th of January.  The next day, I had surgery to open up, clean up, and debride the wound area.  This left an open wound area that is 5.5cm wide, by 5.8cm long, by 0.5 - 1.0cm deep. (If you really want to see, pictures can be seen here.) I was discharged from the hospital on the 26th of January.  I have not been released to go back to work until today.

Because of the amount of time I have missed, Joni and I have fallen dramatically behind in our finances.  We have no money in savings - having used it all the previous summer when I was in the hospital for three months, and therefore we are flat broke.  I quite literally do not know how I'm going to pay my rent.  Unfortunately, this means that we may very well face eviction.  Some people you can explain the situation to, and get extra time... and some people, you can't.  Therefore, I am forced to do something I don't want to do.  Beg.

If you can possibly find a few dollars to send to us, "donate" to our rent fund, please donate to us via PayPal. If 100 people donate $10, our rent will be paid (yes, we know it's expensive. We used to have roommates, and yes we're in the process of finding someplace cheaper, and when I actually am able to work normally, it's not that bad).  We're not asking for any specific amount... Just what you feel you can spare, and that you link to, re-post, or re-tweet this posting.  Thanks so much for understanding, folks. We know that the economy sucks right now, so we appreciate even more that extra little bit. So many thanks to everyone that can help, and so much understanding to those that wish they could!



Leave a Comment :, , , , , more...

Conversations at work…

by Eric on Jan.11, 2010, under Humor, Life

Sometimes my conversations at work just make the whole day worthwhile... the conversation for the day ended on a relatively tame note... we were discussing Houston weather, and I told him be glad he wasn't in tornado country... this ensued (Oh, yes, parental advisory, explicit lyrics...):

(2:49 AM) Me: we broke a record.
(2:50 AM) Me: record was 28 back in 1997.
(2:50 AM) Co Worker: I'm pretty tired of "breaking records" in houston
(2:50 AM) Co Worker: Ike worst storm in x years
(2:50 AM) Co Worker: coldest shit
(2:50 AM) Co Worker: just
(2:50 AM) Co Worker: Houston
(2:50 AM) Co Worker: figure it the fuck out.
(2:50 AM) Me: lol
(2:50 AM) Me: at least you're not in kansas
(2:51 AM) Me: then you'd have to worry about
(2:51 AM) Me: biggest tornado outbreak in x years
(2:51 AM) Me: biggest motherfuckin nasty-ass tornado ever
(2:51 AM) Me: most pieces of straw driven through your little homie while you tried to hold on to a pipe, screaming while the wind tried to drag you away, ever
(2:51 AM) Me: you know.
(2:51 AM) Me: just kansas.
(2:51 AM) Me: normal shit.
(2:51 AM) Me: cows.
(2:52 AM) Me: chickens through telephone poles.
(2:52 AM) Me: day to day crap.
(2:52 AM) Co Worker: hahah
(2:52 AM) Co Worker: in Los Angeles, they'd say the same about Texas.
(2:52 AM) Co Worker: nuh uh, it's too hot over there.
(2:52 AM) Co Worker: Hurricanes!
(2:52 AM) Me: Yeah well..
(2:52 AM) Me: at least I went my whole life without having to learn how to dive underneath my desk every time the ground moved!
(2:53 AM) Me: I may have a lot of things to be afraid of, but _everything that I stand, walk, move, operate, or live on, around, in or near_ is not one of them.

The day started off even better than that....  we have a very few employees that work in our remote offices.  The joke started a long time ago when the company moved from their old location to their current one. Apparently when we upgraded offices, the remote employees, be they in any of the company's remote locations, keep getting downgraded to smaller and smaller offices.  (All joking aside, the remote offices are pretty much like the local ones. Just on a smaller scale.)  Regardless, apparently their are a lot of towers in India, where companies rent tower-top offices for their employees... or at least in my imagination...

(2:26 AM) Me: and they work like 7 days a week or something.
(2:26 AM) Me: eesh
(2:26 AM) Co Worker: Think so.  In a small office.
(2:26 AM) Co Worker: together
(2:26 AM) Co Worker: It's 145pm MOnday, in India.
(2:26 AM) Me: They work with [a remote admin, my superior]?
(2:27 AM) Co Worker: yeah
(2:27 AM) Me: ah
(2:27 AM) Me: let me guess. Small, triangular shaped office.  One on each wall?
(2:27 AM) Me: heh
(2:27 AM) Co Worker: hahaha
(2:27 AM) Me: trap door in the middle...
(2:27 AM) Me: office is at the top of a tower.
(2:27 AM) Co Worker: HAHAHAH
(2:27 AM) Me: rent's cheap
(2:28 AM) Me: but the owl's and bats roosting overhead get annoying.
(2:28 AM) Co Worker: HAHAHAHA
(2:28 AM) Me: have to keep replacing monitors when they fizzle and die from bird crap
(2:28 AM) Me: and don't even get _statrted_ about the white stuff on the keyboard...

...You don't even want to see the living conditions I came up with for the folks in the Florida offices.  Let's just say that beach access is easy to come by when you only have to open the flap.  It's the rogue waves you have to watch out for, though. They really screw with equipment. And rfc1149 networking is a bitch during hurricanes.

...yeah, I amuse way too easily... see this for proof.

Leave a Comment :, , , , , , , , more...

Ninjas Hijacked My Mother…

by Eric on Dec.07, 2009, under Humor, Videos

Sometimes there are no words to describe the beauty that is the Internet...
YouTube Preview Image

1 Comment :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...