distinct

Posted June 10, 2009 by ngzax
Categories: Encoding

Tags: , , ,

adjective
1 recognizably different in nature from something else of a similar type • physically separate
2 readily distinguishable by the senses
—-

In the course of trying to answer a question for my wife this evening, I ran across an interesting type of query that, though it would seem simple and common, I am fairly certain I haven’t ever written in my entire career.

The essence of the problem is “how do you perform a grouping query while simultaneous removing duplicates.”

So, for example, if you had the following data set:

A B C
a b c
a b c
a d e

If you were to do the standard GROUP BY

select a, b, count(c) from test group by a, b order by a, b;

against this table, you would get the following:

 a     b     count
 ----  ----  --------
 a     b     2
 a     d     1

However, my wife didn’t want that duplicate “c” in column “C” counted. Here’s the query I used (in PostgreSQL) to achieve that:

select a, b, count(b) from (select distinct a, b, c from test) AS t group by a, b order by a, b;

resulting in:

 a     b     count
 ----  ----  --------
 a     b     1
 a     d     1

QED

In retrospect, the reason this probably never came up is because with good data, you really shouldn’t have duplicate rows, but you don’t always control your input data. :)

multiple

Posted May 28, 2009 by ngzax
Categories: Encoding

adjective
having or involving several parts, elements, or members : multiple occupancy | a multiple birth.
—-

I have recently had to design some personal websites for friends and have been using the iWeb application that comes bundled with Mac OS X. It is a surprisingly good program and I have been pleasantly surprised with both its quality and ease-of-use.

The one thing that always bothered me was that it seemed like you had to have all your “Sites” within a single structure. This seemed very limiting as the sites I was developing were completely unrelated.

Fortunately, I ran across this article on iWeb Tips which contained a tip on how to accomplish this.

What you do is make copies of the ~/Library/Application Support/iWeb/Domain file, 1 for each separate “Site Collection” you need. You then just open that file and iWeb opens with the selected sub-Sites. It works great.

thermodynamics

Posted May 26, 2009 by ngzax
Categories: Excogitations, Politics

plural noun [treated as singular]

The branch of physical science that deals with the relations between heat and other forms of energy (such as mechanical, electrical, or chemical energy), and, by extension, of the relationships and interconvertibility of all forms of energy.

—-

It is a sad day for clear thinking people when judges at the highest levels are praised for being the proper ethnicity and valuing empathy over reason.

Thus, it was with great pleasure that I read the article “Obama and the ‘South Park’ Gnomes” in today’s Wall Street Journal.

Mr. Obama’s energy policy goes something like this: Phase One: Inaugurate the era of “green” energy. Phase Two: Overturn the first and second laws of thermodynamics. Phase Three: Carbon neutrality!

As my readers know, I have been in the energy industry for more than 20 years. I am also an avid outdoorsman and environmentalist. I take very seriously humankind’s stewardship of the Earth.

I also know as an engineer that you can’t wave a magic wand and expect wind and solar to replace fossil fuels in our lifetime. A much more thorough and balanced approach, which *will* include nuclear power must be discussed.

It is deeply dishonest for supposed “environmentalists” to hijack true concern for the environment as a cloak for their true motives, which are collectivism and anti-capitalism.

doublespeak

Posted May 15, 2009 by ngzax
Categories: Excogitations

noun
deliberately euphemistic, ambiguous, or obscure language : the art of political doublespeak.


“On Tuesday, it was Geithner’s turn to dribble out the bad news. He reported that both Medicare and Social Security were rapidly running out of money. In fact, Medicare would be broke by 2017–and that the only way to keep it solvent was to “control runaway growth” in health-care spending. Apparently, such control means offering health care to all those Americans that can’t afford it.[emphasis mine]

from “Mean Street: Obama’s Big Fat Fibbing Budget” by Evan Newmark

The fact that Geithner would lie so blatantly is is not remarkable. That’s what politicians do. What’s astonishing is that people eat this up.

It appears that there are people in this country who are willing to believe that you can “save” by spending. Perhaps endless advertising and an excess of entertainment have doomed our nation.

Maybe banks should start accepting credit card payments for savings deposits!

shame

Posted April 13, 2009 by ngzax
Categories: Politics

Tags: , , , ,

noun

a painful feeling of humiliation or distress caused by the consciousness of wrong or foolish behavior

—-

“I have no doubt that Notre Dame would never bestow … an honorary doctorate in divinity to a theologian who is an unrepentant apologist for racial apartheid and white supremacy, regardless of what these three individuals may have accomplished or how well their celebrity may be received by the wider culture and its influential institutions.”

“Why then would the University of Notre Dame bestow an honorary doctorate of laws on someone who for his entire public life has enthusiastically fought for a segment of the human population, the unborn, to remain permanently outside the protections of the law? Not only that, he has also demanded that our legal regime require that his fellow citizens, including Catholics, underwrite the destruction of these prenatal human beings. And not only that, he is right now preparing to remove by executive order protections that were put in place so that pro-life physicians, nurses, medical students, and others in the health care field may not be forced to participate in abortions or be discriminated against for refusing to do so or even harboring such beliefs.”

from “Barack Obama and Notre Dame: Juris Doctor Honoris Causa?” By Francis J. Beckwith.

This is a great article. Please read the entire thing.

I appreciate the fact that many people have become tired of fighting this issue over the past 40 years. It is quite exhausting to fight for God and Human dignity. No matter. The fight must go on. Look how many years the Abolitionists fought. And how many died. One hundred years from now, people who support unrestricted abortion will be perceived just as 19th century slave owners are today.

It is shameful for this historically significant institution to capitulate to popular culture on a matter of such grave importance.

corrupt

Posted March 31, 2009 by ngzax
Categories: Politics

Tags: , ,

adjective
1.dishonestly using your position or power to your own advantage, especially for money:

  • Both companies are under investigation for corrupt practices.
  • The whole system was corrupt – every official she approached wanted money before helping her.

source: Cambridge Online

—-

“Troubled OneUnited Bank in Boston didn’t look much like a candidate for aid from the Treasury Department’s bank bailout fund last fall.

The Treasury had said it would give money only to healthy banks, to jump-start lending. But OneUnited had seen most of its capital evaporate. Moreover, it was under attack from its regulators for allegations of poor lending practices and executive-pay abuses, including owning a Porsche for its executives’ use.

Nonetheless, in December OneUnited got a $12 million injection from the Treasury’s Troubled Asset Relief Program, or TARP. One apparent factor: the intercession of Rep. Barney Frank, the powerful head of the House Financial Services Committee.

Mr. Frank, by his own account, wrote into the TARP bill a provision specifically aimed at helping this particular home-state bank. And later, he acknowledges, he spoke to regulators urging that OneUnited be considered for a cash injection.”

Wall Street Journal. January 22nd, 2009

If you think that the 750 billion TARP or the 1 trillion “stimulus” package and all the unending bailouts are helping the economy, you are deceived.  Rather, this is an extravagantly brazen power grab by the permanent political class in history.  A Revolution made possible by the tacit acceptance of almost the entire mass media.

We are slowly being imprisoned and our rights being taken away.  We are placing our lives and futures entirely at the mercy of falsely named “public servants” who are in truth are merely the resurgent political class. Abandoning our freedom and ushering back in the Kings, Dukes and Earls, we are making ourselves the Serfs.

cognitive dissonance

Posted March 26, 2009 by ngzax
Categories: Fiction, Politics

Tags: , ,

noun
the state of having inconsistent thoughts, beliefs, or attitudes, esp. as relating to behavioral decisions and attitude change.
—-

“It’s with a budget that leads to broad economic growth by moving from an era of borrow and spend to one where we save and invest.”

– Barack H. Obama, Press Conference, March 24th, 2009.

WAPO Obama Budget

WAPO Obama Budget

This chart courtesy the Washington Post.

UPDATE:

Here’s an excellent article, “An Agent of Cynicism” by Peter Wehner for Commentary which describes in much greater detail the dissonance emanating from The O’Changeling.

stimulate

Posted March 16, 2009 by ngzax
Categories: Politics

Tags:

verb
1. apply or act as a stimulus to. 
2. animate or excite.
— ORIGIN Latin stimulare ‘urge, goad’.

—-

In the beautiful Commonwealth of Pennsylvania we have first-hand experience with the efficacy of government stimulation.

Our Governor, Ed Rendell, a Democrat, has been stimulating us for the last six years.  During this time he has increased government spending 36%, more than double the rate of inflation.  Moreover, billions of dollars have been spent on economic development.  Pennsylvania can be “proud” that it ranks 2nd in the rankings of economic development spending among all states.

The rub comes when we look at the results.  During those same six years, Pennsylvania ranks 40th in job growth, 40th in income growth, and 42nd in population growth.

But who am I to decide?  Maybe we’re just not spending enough.

(The facts in this article were taken from “Pennsylvania’s Spending Problem” by Matthew J. Brouillette for the Philadelphia Bulletin, 2/24/2009)

thunderstruck

Posted February 27, 2009 by ngzax
Categories: Politics

Tags:

adjective
1. extremely surprised or shocked.

they were thunderstruck by this revelation.
—-

That didn’t take long. The same week that President Obama promised (again) that “95% of working families” would not see their taxes rise by “a single dime,” his own budget reveals that taxes will rise for 100% of everyone for the sake of global warming. Ahem.

“An Incovenient Tax”, Wall Street Journal, February 27, 2009

I hope you had over/under 2 days.  ;)/p>

It’s going to be a loooong 2 years.

dime

Posted February 25, 2009 by ngzax
Categories: Politics

Tags: ,

 

\Dime\, n. 
[F. d[^i]me tithe, OF. disme, fr. L. decimus the tenth, fr. decem ten. See {Decimal}.]

A silver coin of the United States, of the value of ten cents; the tenth of a dollar.

 


 

From  President O’bama’s non-State of the Union campaign speech, February 24, 2009:

if your family earns less than $250,000 a year, you will not see your taxes increased a single dime. I repeat: not one single dime.

I have my doubts.  :)

We’ll see how long this lasts… anyone have an over/under?

And please have no illusions.  People making $250,000/year and living and working in Manhattan are most certainly NOT rich.  That’s the problem with demagogic statements like this.