Random scribbles about whatever pops into my little head…

Free Video Conferencing 


"You can give without loving, but you cannot love without giving." — Amy Carmichael

On Mon, Mar 12, 2012 at 8:38 AM, Charles Cherry <> wrote:


"You can give without loving, but you cannot love without giving." — Amy Carmichael


Free Video Conferencing


"You can give without loving, but you cannot love without giving." — Amy Carmichael




"You can give without loving, but you cannot love without giving." — Amy Carmichael

How to add icons to submit buttons using jQuery and jQuery-UI

If you are using the jQuery-UI css framework, you know that you can style buttons to make them more attractive and match your current UI theme. For example, you can make this kind of button:

Look like this:

simply by adding “class=’button'” to the tag, and then running this jQuery code snippet:

$(function () {

You can also add icons to your buttons, too:

$(function () {

            text: true,
            icons: { primary: "ui-icon-search" }

You end up with a button that looks like this:

(or like this, in a modern browser: )

But adding icons only works for non-input elements, i.e., button, span, anchor, div, etc., (just about anything other than an <input /> tag).

In order to add an icon to a button-styled input element, you have to do some tricky workarounds. (I got part of this workaround from a comment by Robert Mullaney in this article:

Here is how I add icons to my ‘<input type=”submit” ‘ elements:

1. First, add a custom “icon” attribute to your input tag using the name of the icon you want to display as the attribute’s value:

<input id=”saveButton” type=”submit” value=”Save” icon=”ui-icon-disk” />

In this case I want to display a “disk” icon next to the text of my “Save” button.

2. Add the following jQuery code to your page’s start-up script. I usually put this in my “master” page or “layout” view, so that it operates on every page in my site.

$('input[type="submit"]').each(function () {
        icons: { primary: $(this).attr('icon') },
        label: $(this).val()
    }).click(function (event) {

You end up with real submit buttons that look like this:

This code iterates through all “input type=submit” elements on the page, and then adds the necessary tagging to make the button goodness work.

The bold part is where the custom attribute comes into play. If the element has an attribute named “icon”, it grabs the value of that attribute and hands it to the icon option of the button function.

The rest of the code is standard jQuery stuff – it binds to the click event of the new button tagging, which then triggers the click event of the parent input element whenever the button is clicked.

Very tricky, but it works! (At least it works for me, and I’ve tested it in Chrome and IE-7/8. I can’t vouch for any other browsers out there.)

Note: Using an image editor, I modified the default icon files that ship with jQuery-UI to use colored icons instead of the standard (ugly) monochrome icons.

Big Brother is Watching You

Security camera at London (Heathrow) Airport. ...

Image via Wikipedia

According to the website Security News Daily, Big Brother is watching us in ways that most people are clueless about. I would venture to say that the Founding Fathers would not be too happy about it, either.

  1. Roving John Doe Wiretaps – allows law enforcement to tap any and all communication lines — cellphone, landline, email, text messaging — a “person of interest” may be using.
  2. FBI monitoring of email and electronic communications – Big Brother is constantly monitoring billions of email and e-communications, automatically, using very sophisticated search and identification algorithms.
  3. “Red-Light” Cameras at intersections – snaps photos of license plates as people go through intersections.
  4. Surveillance cameras in public places – these are connected to high-speed facial recognition software which matches against images of “persons of interest.”
  5. Geolocation tracking on cellphones – just like scanning emails and other e-communications, Big Brother has the wherewithal to track your phone, anywhere, anytime, without your knowledge or permission.
  6. Electronic toll collectors – people who use ezpass or ipass or similar electronic toll payment systems are also allowing Big Brother to track and store their whereabouts.
  7. Business records – Section 215 of the Patriot Act allows Big Brother to access bank statements, library records, medical records, business papers — virtually any paper trail left by a “person of interest.” BB doesn’t even have to have to show probable cause.
  8. The “Lone Wolf” provision of the Patriot Act – permits the government to conduct intelligence investigations without the traditional burden of proof.
  9. The “Secure Communities” initiative – allows Big Brother to deport individuals they deem a security threat without any of the normal due process.
  10. Biometric identification – fingerprints, eyes, voice, etc., are regularly scanned on people entering the U.S.
Read the whole thing, then ask yourself if gaining a little security is really worth losing all those previously assumed civil rights.
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.” – Ben Franklin


New Blue Nightmare: Clarence Thomas and the Amendment of Doom

Taken seriously today, that approach to the Constitution would change the way Washington does business.  Radically.  The list of enumerated powers is short and does not include, for example, health care, education, agricultural subsidies, assistance to the hungry or old age pensions.  Most of the New Deal and Great Society with the interesting exception of civil rights laws which enforce the Civil War era amendments would be struck down.  Whole cabinet departments would close.

Ah…that’s music to my ears!

via New Blue Nightmare: Clarence Thomas and the Amendment of Doom | Via Meadia.

Turkey Overturns Historic Religious Property Seizures

Hagia Sophia, Istanbul at dusk

Praise God!

I have to say, on the surface this appears to be a VERY important development in the history of the Middle East! For an Islamic society to recognize the property rights of Christians, Jews, and other non-Muslim minorities is almost incredible – especially in this age of radical Islam.

Turkey Overturns Historic Religious Property Seizures

Let us hope that other Islamic societies, especially in the Arab world, take their lead from Turkey in this and other Muslim-Non Muslim societal relationships.

Truth be told, nearly all of the lands around the Mediterranean were once populated by Christians, until they were conquered by the Arab Muslim crusaders during the seventh and eighth centuries.

Perhaps we will eventually see some of these lands returned to the Church? It is highly doubtful, but then again, I never expected Turkey to do such a thing!

Worried About Money? Try Giving Some Away!

According to a 2010 survey, people who gave money away (even small amounts) – either to another person or to a charitable cause – reported feeling happier at the end of the day than those who only spent money on themselves.

Worried About Money? Give Some Away

True Christians (and other like minded philanthropists) have known about this phenomenon for at least two millennia – for didn’t Jesus say, “It is better to give than to receive?”

So go ahead, make yourself feel better and happier – give some money to a needy cause! One great cause to start with is Myanmar Hope Christian Mission!

– Disclaimer: I am the director of said organization 🙂

Islam vs. liberty

A good article by Marvin Olasky on Islam vs. Liberty. Is Islam compatible with a free society?

I especially like the sidebar on Dhimmitude:

Dhimmitude past and future

Today, it’s hard to find a Christian who says slavery was righteous because slaves were kept alive. Muslims defend dhimmitude, however, by saying that Muslim conquerors could have expelled or killed Christians and Jews, but deserve credit for letting them live. (Of course, genocide against the inhabitants of conquered nations would have left Arabs with depopulated areas and not much likelihood of repopulating them.)

Some also have praised Islam for giving opportunities to the children of dhimmis. (Muslims often removed children from their Christian or Jewish parents and brought them up in Islam. That went along with the belief that all children are born Muslims and corrupted by parents.) Other defenders of Islam have asserted that dhimmi status was better than anything offered Jews under Christianity. That is generally not true: For example, under Byzantine authority Jews could not purchase any property that the church had, but under Islam they could purchase no property, period. Under the Byzantines, Jews could act as witnesses, but they could not under Islam.

The books of historian Bat Ye’or are full of specific detail. In Persia in 1890, Jewish women had to “expose their faces in public [like prostitutes]. . . . The men must not wear fine clothes, the only material permitted them being a blue cotton fabric. They are forbidden to wear matching shoes. Every Jew is obliged to wear a piece of red cloth on his chest. A Jew must never overtake a Muslim on a public street. . . . If a Muslim insults a Jew, the latter must drop his head and remain silent. . . . The Jew cannot put on his coat; he must be satisfied to carry it rolled under his arm. . . . It is forbidden for Jews to leave the town or enjoy the fresh air of the countryside. . . . Jews must not consume good fruit.”

Muslims showed great patience in psychologically weakening their opponents. For example, authorities would allow bells inside churches but not outside, anticipating that the bells inside would “eventually fall into disuse. For the bells are normally attached to the church steeple so that when rung they may be heard from afar. If they are obliged to ring them within the church, then no one will hear them or pay heed to them and they will be abolished altogether since they will serve no purpose.”

The result of beating and belittlement was obvious to observers in Turkey two centuries ago, who noted that dhimmis have “the most submissive cringing tone,” and in Morocco during the 1870s, who said Jews had terrorized expressions. Should that be surprising? Didn’t Jews have terrorized expressions in Christian-ruled territories? Bat Ye’or argues that “dhimmitude is in no way comparable with the position of Jews in Christendom.” Jews in Europe were an oppressed minority; Christians and Jews in many Muslim countries were oppressed majorities. Persecution of a majority is no different ethically than persecution of a minority, but it requires establishment of a police state rather than just use of the police.

French philosopher Jacques Ellul, in an introduction to Bat Ye’Or’s The Dhimmi, also differentiated the situation of the dhimmi from that of the European serf in the Middle Ages. Serfdom, he noted, “was the result of certain historical changes such as the transformation of slavery . . . when these historical conditions altered, the situation of the serf also evolved until his status finally disappeared.” Dhimmi status, though, “was not the product of the historical accident but . . . the expression of an absolute, unchanging, theologically grounded Muslim conception of the relationship between Islam and non-Islam. It is not a historical accident of retrospective interest, but a necessary condition of existence.”

If Bat Ye’Or is right, we should speak about the Muslim assignment of dhimmi status not in past tense but in present and future tenses as well. As Ellul wrote, “because of Islam’s fixed ideological mode. . . . one must know as exactly as possible what the Muslims did with these unconverted conquered peoples, because that is what they will do in the future (and are doing right now).” Based on the experience of Christians in Sudan and Indonesia, Ellul’s pessimistic realism is well-warranted. Dhimmitude is not merely something to be studied by historians; it still goes on wherever Islam gains an edge. —

Full Disk Image of Earth Captured August 26, 2011 – Hurricane Irene

Amazing image of Hurricane IreneClick to view full size