My Dominant Hemisphere

The Official Weblog of 'The Basilic Insula'

Posts Tagged ‘Technology

Why The WordPress Visual Editor Doesn’t Work With Konqueror

with 6 comments

Today’s technology tidbits:

The dashboard utilises the TinyMCE javascript visual editor when writing posts in the WYSIWYG format. Unfortunately as stated on its website, TinyMCE isn’t compatible with Konqueror. Why not? Well, here’s a quote from the freshmeat website for TinyMCE:-

…the day Konqueror and Opera implement the Midas specification I will look in to these browsers as target platforms as well…

I’ve noticed one aspect about Konqueror. Developers seem to focus on satisfying W3C standards as their primary goal, leaving the onus on compatibility issues to website and web-based app designers.

Anyhow, I do hope Konqueror and TinyMCE can work together someday soon.

Ubuntu UK’s recent podcast had some very interesting discussion on Linux and security. Nothing’s bullet-proof 🙂 .

Links of interest:

  1. Debian Med
  2. Linux for Clinics
  3. LinuxMedNews
  4. The Linux Medicine Howto courtesy of The Linux Documentation Project

That’s it for today folks. See ya 🙂 !

Copyright © 2006 – 2008 Firas MR. All rights reserved.


Howto – Play Embedded Real Player Media in Konqueror Using KMplayer

with 3 comments

[Caption: 1st spot! Yay!]

Hi! Getting the plugin that comes with RealPlayer 11 Gold to work with Konqueror 3.5.9 is downright painful.

I figured out a way to make KMplayer work with Konqueror to view RealPlayer files. KMPlayer is nifty in that it can use multiple backend engines – not to mention xine and mplayer. This howto works for Kubuntu 8.04 (KDE 3.5.9).

Let’s get on with the howto:-

  • Download and install Real Player 11 Gold for Linux from here. Follow the instructions in this howto to do so.
  • Next install MPlayer and KMplayer from the repositories. Make sure you have all of the repositories enabled before doing so. Once you’ve done that, In a terminal just do the following:

    sudo apt-get install mplayer kmplayer

  • Now grab MPlayer’s binary codecs from here. The download is actually a single zipped file. Use Ark to extract it.
  • We need to copy all of the codecs to /usr/lib/codecs . Next we need to copy/overwrite some of these codecs with those that came with RealPlayer 11 Gold. RealPlayer’s codecs reside in the /path-to-realplayer-installation/codecs folder. Copy them into the /usr/lib/codecs folder. You can accomplish all of this graphically for this process to be more intuitive. For all of this, Konqueror needs to be run with sudo privileges. So in a terminal do:

    sudo konqueror

    Goto /usr/lib and create two folders under /usr/lib – codecs and win32. Now goto /path-to-realplayer-installation/codecs and copy all of the files to /usr/lib/codecs . Konqueror will prompt you that you’re attempting to overwrite. Have no fear! Proceed 🙂 !

  • Next we need to create symbolic links (shortcuts) to all of the files you just copied to /usr/lib/codecs in /usr/lib/win32 . To do so we do the following in a terminal (although you could try doing it graphically):

    cd /usr/lib/win32

    sudo ln -s /usr/lib/codecs/* .

    Don’t forget that dot! It’s not a typo 🙂 .

  • Now we need to configure the xine engine so that it knows where to look for the codecs. Open up Kaffeine. Goto Settings > Xine Engine Parameters > Decoders and enter either /usr/lib/codecs or /usr/lib/win32 in both fields. Click Apply and then OK. We have configured xine.
  • Now we need to configure Konqueror to use KMplayer to play Real Player files. Goto Settings > Configure Konqueror > File Associations. In the list under Known Types click on audio and select vdn.rn-realaudio. Click on the tab called Embedding. Click on Add and select Embedded player for KDE (kmplayer_part). You might be having other selections already in your Services Preference Order. So remember to place Embedded player for KDE at the very top. Repeat the whole thing with vdn.rn-realaudio, x-pn-realaudio and x-pn-realaudio-plugin all of which also lie under audio and for vdn.rn-realvideo which comes under video. Do the same for vdn.rn-realmedia, vdn.rn-realmedia-secure, vdn.rn-realmedia-vbr, vdn.rn-realplay, vdn.rn.realsystem-rmj, vdn.rn.realsystem-rmx under applications. Konqueror is now configured to use KMPlayer to play embedded Real Player media. Click on Apply and then OK. Restart Konqueror.
  • Test it all out! When an embedded media opens up, an embedded instance of KMplayer should start. You can then specify either xine or mplayer as the engine KMPlayer should use for the media. I’ve found mplayer to be more reliable.

Note that this workaround isn’t perfect and your mileage may vary. You’ll do alright for the most part though 🙂 . Readers are welcome to send in their comments! Cheereo 🙂 .

Readability grades for this post:-

Kincaid: 4.9
ARI: 5.2
Coleman-Liau: 11.0
Flesch Index: 78.7/100
Fog Index: 7.4
Lix: 29.6 = below school year 5
SMOG-Grading: 8.0

Powered by Kubuntu 8.04

Copyright © 2006 – 2008 Firas MR. All rights reserved.

Written by Firas MR

April 29, 2008 at 3:09 pm

Navigating, Exploring and Konquering!

with 2 comments

In case you just noticed, I’ve revamped the entire theme to suit the audacious browser I’ve so come to love – Konqueror. I hope this website is now viewable by most browsers. Happy surfing people!

Copyright © 2006 – 2008 Firas MR. All rights reserved.

Written by Firas MR

April 11, 2008 at 1:31 pm

Posted in Technology, Unix

Tagged with , , , ,

Introducing Kubuntu Hippy Horse Omega Pony!

with 3 comments

Source, Author and License

Oh yea! Boy do I love creativity like this! lol .. This post is wholly and solely dedicated to the geniuses who’ve managed to devise quite possibly the most fantastically, stupendously, hilarious name for any linux distro in recent history! lol !!

Check it out here!

Readability grades for this post:

Kincaid: 6.0
ARI: 5.5
Coleman-Liau: 11.6
Flesch Index: 69.8/100 (plain English)
Fog Index: 10.0
Lix: 32.5 = below school year 5
SMOG-Grading: 9.7

Powered by BlogJet and Ubuntu Linux 7.04

Copyright © 2006 – 2008 Firas MR. All rights reserved.

Written by Firas MR

April 1, 2008 at 9:50 pm

Posted in Technology, Unix

Tagged with , , ,

SMOG, Fog and Similar Things

with 3 comments

[Caption: The STS-92 Space Shuttle astronauts photographed upstate New York at sunset on October 21, 2000. Water bodies (Lake Ontario, Lake Erie, the Finger Lakes, the St. Lawrence and Niagara Rivers) are highlighted by sunlight (sun reflecting off the water surface), making for a dramatic and unusual regional view. The photograph was taken looking toward the southwest from southern Canada, and captures a regional smog layer extending across central New York, western Lake Erie and Ohio, and further west. The layer of atmospheric pollution is capped by an atmospheric inversion, which is marked by the layer of clouds at the top of the photograph. The astronauts were able to document this smog event from a variety of vantage points as they orbited over the northeastern U.S. and southern Canada. Source and License]

It was while reading a page from the Oxford Handbook of Medicine mentioning the Flesch Index and it’s applications to doctor-patient communication that first got me interested into readability indices. I’ve since meandered into some excellent articles (here and here) on the subject and have decided to include scores below each of my future posts . Why? Well, ‘coz it’s fun! I’m generating these scores using the GNU ‘diction’ and ‘style’ utilities (featured in this great article and available for download here. In Ubuntu Linux, just install the diction package through its repositories.). For those of you who’d like to add these stats without having to download anything, this website uses the same backends. The absolutely fun thing with that website is that you can see your scores change dynamically as you type!

For a very brief overview of what these scores mean, here’s an excerpt from the ‘man’ page for ‘style’ (the man page is licensed under the GNU GPL):-

Kincaid formula
The Kincaid Formula was developed for U.S. Navy training manuals; it ranges in difficulty from 5.5 to 16.3. It is probably best applied to technical documents, because it is based on adult training manuals rather than school book text. Dialogs (often found in fictional texts) are usually a series of short sentences, which lowers the score. On the other hand, scientific texts with many long scientific terms are rated higher, although they are not necessarily harder to read for people who are familiar with those terms.

Kincaid = 11.8*syllables/wds+0.39*wds/sentences-15.59

Automated Readability Index
The Automated Readability Index is typically higher than Kincaid and Coleman-Liau, but lower than Flesch.

ARI = 4.71*chars/wds+0.5*wds/sentences-21.43

Coleman-Liau Formula
The Coleman-Liau Formula usually gives a lower grade than Kincaid, ARI and Flesch when applied to technical documents.

Coleman-Liau = 5.89*chars/wds-0.3*sentences/(100*wds)-15.8

Flesch Reading Ease formula
Developed by Rudolph Flesch in 1948, the Flesch Reading Ease formula is based on school texts covering grades 3 to 12. It is widespread, especially in the USA, because it is computed easily and produces good results. The index ranges from 0 (hard) to 100 (easy). Standard English documents average around 60 to 70. Applying it to German documents gives bad results because of the different language structure.

Flesch Index = 206.835-84.6*syll/wds-1.015*wds/sent

Fog Index
The Fog index was developed by Robert Gunning. Its value is a
school grade. The “ideal” Fog Index level is 7 or 8. A level above 12 indicates the writing sample is too hard for most people to read. Texts less than 100 words will not produce meaningful results. Note that a correct implementation would not count words of three or more syllables that are proper names, combinations of easy words, or made three syllables by suffixes such as –ed, –es, or –ing.

Fog Index = 0.4*(wds/sent+100*((wds >= 3 syll)/wds))

Lix formula
The Lix formula developed by Björnsson from Sweden is very simple and employs a mapping table as well:

Lix = wds/sent+100*(wds >= 6 char)/wds

Index 34 <–> 38 <–> 41 <–> 44 <–> 48 <–> 51 <–> 54 <–> 57
School year 5 | 6 | 7 | 8 | 9 | 10 | 11

SMOG Grading
The SMOG Grading for English texts was developed by McLaughlin in 1969. Its result is a school grade.

Grading = square root of (((wds >= 3 syll)/sent)*30) + 3

It was adapted to German by Bamberger and Vanecek in 1984, who
changed the constant +3 to -2.

Having just learned a lot of comp related stuff lately (LAMP server basics being one of them ) and reflecting on this piece of exciting news, I guess there isn’t anything medical on my mind right now ! So with that I end this post.

Do send in your comments!


Readability scores for this post:

Kincaid: 8.6
ARI: 9.8
Coleman-Liau: 11.1
Flesch Index: 68.1/100 (plain English)
Fog Index: 11.7
Lix: 41.9 = school year 7
SMOG-Grading: 10.6


Powered by Blogjet and Ubuntu Linux 7.04

Copyright © 2006 – 2008 Firas MR. All rights reserved.