Author Archives: Charles Cherry

The Gay Divorcees

The Gay Divorcees

"The debate over marriage does not necessarily hinge on its popularity among the eligible, and advocates of gay unions would no doubt assert that "equality" is not a numerical proposition as quickly as their opponents would aver that the very idea is a hopeless category mistake.  But it is nonetheless worth noting that there is no particular groundswell — even in states and cities that have both legal gay marriage and significant numbers of homosexuals — and that, when gay couples do decide to get married, they are more likely than their straight equivalents to change their minds later."

http://www.catholiceducation.org/articles/sexuality/se0239.htm

Don’t Know Much About Nothing

Edward Feser smacks down another New Atheist Know-Nothing:

https://www.firstthings.com/article/2012/05/not-understanding-nothing 

Painting

https://artistsnetwork.tv/p-156-acrylics-the-watercolor-alternative-with-charles-harrington.aspx 
~CRC~

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

Free Video Conferencing

http://www.hyperionics.com/hc/ 
~CRC~

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

On Mon, Mar 12, 2012 at 8:38 AM, Charles Cherry <camainc@gmail.com> wrote:
https://vsee.com/
~CRC~

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

Free Video Conferencing

https://vsee.com/
~CRC~

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

Test

367

~CRC~

"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 () {
    $(".button").button();
});

You can also add icons to your buttons, too:

$(function () {

    $("#searchButton").button({
            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:

http://www.robertmullaney.com/2010/11/29/style-submit-and-reset-buttons-with-icons-using-jquery-ui/

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 () {
   $(this).hide().after('<button>').next().button({
        icons: { primary: $(this).attr('icon') },
        label: $(this).val()
    }).click(function (event) {
         event.preventDefault();
         $(this).prev().click();
    });
});

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!