Archive

Archive for the ‘General Geekiness’ Category

Using Akregator with Firefox 3.0

May 29th, 2008

If you’re a linux user like I am, there’s a good chance that you’re using Firefox as your web browser and Akgregator as your news reader.  Since Firefox has no native support for Akregator, you have to set up a little script of your own to get everything working together.

First, run a text editor as root.  In Gnome, type the following in a terminal:

gksudo gedit

In Kde, type the following:

sudo kate

Paste the following code into the editor of your choice:

Download the akadd.sh shell script and save it to your hard disk.

Download: akadd.sh

Open the code in your text editor as root.

The code listing for the script is as follows:

#!/bin/bash
#
# Add an RSS feed - either podcast or news.  podcasts get added to amarok, news to akregator,

main () {
        for f in "$@"; do
		f=${f:7}
		f='http://'$f
                # GET the feed and try to guess what type it is.
                GET "$f" | grep -i enclosure |grep -q -i -e mp3 -e ogg
                if [ $? -eq 0 ]; then
                        addPodcastFeed "$f"
                else
                        addRegularFeed "$f"
                fi
        done
}

startKDEProgram () {
        # note, doesn't need to use nohup and bg - kde progs do this already
        # usage: startKDEProgram program timeout
        dcop |grep -q "$1"
        if [ $? -ne 0 ]; then
                am_running=0
                tries=0
                echo "$1 not running... starting it..."
                "$1"
                while [ $tries -lt $2 ] && [ $am_running -eq 0 ]; do
                        echo "still waiting for $1 to start (giving up in $(($2 - $tries)) tries)..."
                        sleep 1
                        dcop |grep -q $1
                        if [ $? -eq 0 ]; then
                                am_running=1
                        fi
                        let tries+=1
                done
                echo "tries made = $tries"
                if [ $tries -eq $2 ]; then
                        kdialog --error "couldn't start $1"
                        return
                fi
        fi
}

addRegularFeed () {
        startKDEProgram akregator 30
        dcop akregator AkregatorIface addFeedsToGroup '[' "$1" ']' Imported
        kdialog --msgbox "news feed added to akregator"
}

addPodcastFeed () {
        startKDEProgram amarok 30
        dcop amarok playlistbrowser addPodcast "$1"
        kdialog --msgbox "podcast added to amarok"
}

main "$@"

save this little script in /usr/bin/feeds, with the filename akadd, then close your editor and go back to the command prompt.  CD to /usr/bin/feeds and type:

sudo chmod 755 akadd

Now you have to tell firefox where to find this little gem.  To do this, just click on the RSS icon in the address bar and select /usr/bin/feeds/akadd.  You should be up and running!

NOTE:

The original akadd script was written by Mathew Gates, and can be found here.

The fix to make it useful with Firefox 3.0 Beta was written by a French student at Linux tips, and can be seen here.

The reason my version is longer is because i really did want podcasts to go straight to Amarock, and I like the dialogs ;)   Both versions work, I simply modified the longer version

Jerry General Geekiness ,

And the best shared hosting comany is…

April 4th, 2008

It’s not pretty when you’re hosting company fails to deliver. It’s even less pretty when your server goes down unexpectedly. Kaushal Sheth had this problem. One day out of the blue, he (and I’m only assuming “he” here.) simply didn’t have any web sites. It’s happened to most of us. Heck, it happened to me about a week ago!

Most of us will simply groan and bear it, Kaushal did something about it. He researched shared hosts from top ten lists all over the Internet and came up with his very own guide to the best web hosting companies. Each of these sites has a 99.9% uptime guarantee and redundant server facilities at extremely reasonable prices.

My hat is off to Kaushal. It takes a lot of wok to research hosting companies in today’s market. In fact, it was so much of a bother for me that I just went over to a VPS server, but that’s just me. If you’re still in the market for a shared hosting plan that has a radical transfer rate and a low cost, check out his list, I’m sure you’ll be happy you did.

Jerry Blogging, General Geekiness

Oh for the love of…!

January 31st, 2008

It seems like every time I get a good blogging pattern going something comes up that brings it to a screeching halt.  Over the past 21 monhs we’ve had family emergencies, Moves, and of course there’s the little man of the house, who generally breaks my routine three or four times per day.All of these things have done their part at keeping me from posting on all but one of my blogs in anything like a regular fashion.  Some of them were very large scale interruptions (Funeral Services for an uncle in Oklahoma), the last in this chain of events was terribly small.  As in microscopic.

I’ve been suffering the worst head cold I’ve had in years for the past two weeks, and it’s pretty much kept me from anything other than watching some really bad TV.

Does that mean I haven’t had a hundred ideas I would have liked to post here?  No, of course it doesn;t, but if you’ve ever tried to write with a head full of cold medicine, you’ll understand why I haven’t been around.  I read some of the stuff I tried to write.  Even I don’t understand it.

But I’m back, and it’s time to get rolling in the new year.

Stay tuned.

Jerry General Geekiness ,

Remastering the MasterPlan’s Morning After WordPress Theme

November 26th, 2007

The Morning AfterIt’s not often that I come across a WordPress theme that gets me excited. Most themes out there are nothing more than souped up versions of the default WP theme. Kubrick. While I have nothing against a simple layout, the fact of the matter is that most of the sites I run require far more versatility than Kubrick can provide. Enter The Morning After theme by The Master Plan. Not only does the theme have a metric ton of options to play with, but it’s got a nice, clean newspaper style home page layout to go along with it. It only took one look for me to realize that the main page layout was exactly what I wanted for my food blog… With a few tweaks, of course.

After uploading the Morning After to my WordPress sandbox, I was immediately greeted with an issue. The theme as I downloaded it wasn’t compatible with WordPress 2.3. Thankfully the Master Plan has dedicated support forums and that problem was quickly and easily remedied. Setting the theme up as instructed on the download page was also quite simple. As a matter of fact, if you’ve got even a little bit of design experience, everything about the Morning After theme is simple.

The theme is based on the Blueprint CSS Framework, and once you take a moment to understand the way the framework is designed, any changes you’d like to make to the Morning After is as simple as changing a little bit of css. Everything else is done for you. That simple.

As a side note, if you’re just jumping in to CSS design. (What kept you?), take a look at blueprint. this tool will save you hours of headaches once you’ve learned it.

Jerry General Geekiness, Web Design Practice, WordPress , , ,

Ugh! New teeth, new plugins and the death of a project.

November 2nd, 2007

Well, the 30 days project hit a wall because of two very different but equally distracting issues in my “every day life”. First, CbsoP was accepted into a blog advertising network, which is driving the numbers higher than I could have managed on my own, therefore invalidating those statistics. (It’s a good thing, just bad for the test I was performing…) the second issue started when the little one in the house decided that he had to cut four teeth at the same time. For anyone with children, you’ll realize that almost all of my time has been spent tending to his needs, not my own.

I will restart that project shortly using different blogs as the benchmark and hopefully this time I’ll get through the whole process without a pause.

In the meantime, I’ve completed my first WordPress plugin, which will be posted here later in the day. While it’s not the world’s most useful plugin, it is functional, and I think there is a subset of the blogging world that may gain something from it. Most specifically those people using TTFTitles by John Leavitt, as this plugin is strictly a companion to his own that adds some functionality to the blogroll (at this point. It will probably gain a lot more functionality before I’m done.).

There will be other plugins and theme advice over the next few days, as I’ve been very busy getting a new custom theme together for a friend, and have been doing a lot of work on a theme upgrade for my cooking blog as well, which includes updates toa few other plugins.

Stay tuned kids! I’ll be back very shortly with more, now that My son is a little more like “Normal”

Jerry General Geekiness, News and Events , ,

ss_blog_claim=3928b73221a2ea923abbd6c5cb76831e ss_blog_claim=3928b73221a2ea923abbd6c5cb76831e