Karin’s Pensieve


LCDS Application-Specific Data Source

  1. Setup Server and Client applications as described here.
  2. Setup data source in Tomcat as described here.

But, instead of putting myapp.xml under [lcds root]/tomcat/conf/Catalina/localhost, rename it to context.xml and put it in the META-INF directory of the myapp application WebContent folder.

Caveat: From what I read at Apache.org, what Tomcat should do is to check if there is myapp.xml in the [lcds root]/tomcat/conf/Catalina/localhost directory.  If not, then it should load your context.xml file and rename it to myapp.xml and store it in this directory.  The myapp.xml file will then take precedent to the context.xml file in your META-INF directory.  So, if you change context.xml in the future, make sure to check [lcds root]/tomcat/conf/Catalina/localhost directory and delete myapp.xml if exists so that Tomcat can reference the updated context.

February 8th, 2010 by Karin Huegele

Slicehost: How to set hostname to match slice name

Basically the short version of the Slicehost documentation:

Change the name of your hostname to match the name of your slice name:
sudo vi /etc/hostname
sudo vi /etc/hosts

Apply your changes:
sudo hostname -F /etc/hostname

Or, reboot:
sudo reboot

Check:
hostname -f

April 14th, 2009 by Karin Huegele

Glassfish Installation on Ubuntu

Mostly copied from Jasper’s Blog, with the exception of using apt repository to download glassfish.  It worked for me on my Ubuntu 8.04 and 8.10:

  • Install Java:

sudo apt-get install sun-java6-jdk

  • Retrieve glassfish V2 from apt:

sudo su

<enter your password>

apt-get install glassfishv2

  • Next you can either start it with the command

/usr/bin/asadmin start-domain domain1

  • Or better create a init.d file to start and stop it…

gedit /etc/init.d/glassfish

GLASSFISHPATH=/usr/bin
case ”$1” in
start)
${GLASSFISHPATH}/asadmin start-domain domain1
;;
stop)
${GLASSFISHPATH}/asadmin stop-domain domain1
;;
restart)
${GLASSFISHPATH}/asadmin stop-domain domain1
${GLASSFISHPATH}/asadmin start-domain domain1
;;
*)
echo $”usage: $0 {start|stop|restart}”
exit 1
esac

  • save and exit
  • chmod a+x /etc/init.d/glassfish
  • to have glassfish start during boot (and stop during halt)

ln -s /etc/init.d/glassfish /etc/rc1.d/K99glassfish
ln -s /etc/init.d/glassfish /etc/rc2.d/S99glassfish

January 22nd, 2009 by Karin Huegele

Welcome Home, President and Mrs. Laura Bush!

Today is a great day to be Texan!

My favorite quote:
“Popularity is as fleeting as a texas win.” — GW Bush –
Whoop!

January 21st, 2009 by Karin Huegele

Christmas Lights Gone WILD!

Accompanied by ‘Wizards in Winter’ by Trans Siberian Orchestra

 

This one is a bigger production, in Frisco, Texas, about 30 minutes from my home:

December 6th, 2008 by Karin Huegele

Tolerance fails T-shirt test

November 13, 2008 Chicago Tribune Column by John Kass

Tolerance Experiment

As the media keeps gushing on about how America has finally adopted tolerance as the great virtue, and that we’re all united now, let’s consider the Brave Catherine Vogt Experiment.

Catherine Vogt, 14, is an Illinois 8th grader, the daughter of a liberal mom and a conservative dad. She wanted to conduct an experiment in political tolerance and diversity of opinion at her school in the liberal suburb of Oak Park.

She noticed that fellow students at Gwendolyn Brooks Middle School overwhelmingly supported Barack Obama for president. His campaign kept preaching “inclusion,” and she decided to see how included she could be.

So just before the election, Catherine consulted with her history teacher, then bravely wore a unique T-shirt to school and recorded the comments of teachers and students in her journal. The T-shirt bore the simple yet quite subversive words drawn with a red marker:

“McCain Girl.”

“I was just really curious how they’d react to something that different, because a lot of people at my school wore Obama shirts and they are big Obama supporters,” Catherine told us. “I just really wanted to see what their reaction would be.”

Immediately, Catherine learned she was stupid for wearing a shirt with Republican John McCain‘s name. Not merely stupid. Very stupid.

“People were upset. But they started saying things, calling me very stupid, telling me my shirt was stupid and I shouldn’t be wearing it,” Catherine said.

Then it got worse.

“One person told me to go die. It was a lot of dying. A lot of comments about how I should be killed,” Catherine said, of the tolerance in Oak Park.

But students weren’t the only ones surprised that she wore a shirt supporting McCain.

“In one class, I had one teacher say she will not judge me for my choice, but that she was surprised that I supported McCain,” Catherine said.

If Catherine was shocked by such passive-aggressive threats from instructors, just wait until she goes to college.

“Later, that teacher found out about the experiment and said she was embarrassed because she knew I was writing down what she said,” Catherine said.

One student suggested that she be put up on a cross for her political beliefs.

“He said, ‘You should be crucifixed.’ It was kind of funny because, I was like, don’t you mean ‘crucified?’ ” Catherine said.

Other entries in her notebook involved suggestions by classmates that she be “burned with her shirt on” for “being a filthy-rich Republican.”

Some said that because she supported McCain, by extension she supported a plan by deranged skinheads to kill Obama before the election. And I thought such politicized logic was confined to American newsrooms. Yet Catherine refused to argue with her peers. She didn’t want to jeopardize her experiment.

“I couldn’t show people really what it was for. I really kind of wanted to laugh because they had no idea what I was doing,” she said.

Only a few times did anyone say anything remotely positive about her McCain shirt. One girl pulled her aside in a corner, out of earshot of other students, and whispered, “I really like your shirt.”

That’s when you know America is truly supportive of diversity of opinion, when children must whisper for fear of being ostracized, heckled and crucifixed.

The next day, in part 2 of The Brave Catherine Vogt Experiment, she wore another T-shirt, this one with “Obama Girl” written in blue. And an amazing thing happened.

Catherine wasn’t very stupid anymore. She grew brains.

“People liked my shirt. They said things like my brain had come back, and I had put the right shirt on today,” Catherine said.

Some students accused her of playing both sides.

“A lot of people liked it. But some people told me I was a flip-flopper,” she said. “They said, ‘You can’t make up your mind. You can’t wear a McCain shirt one day and an Obama shirt the next day.’ ”

But she sure did, and she turned her journal into a report for her history teacher, earning Catherine extra credit. We asked the teacher, Norma Cassin-Pountney, whether it was ironic that Catherine would be subject to such intolerance from pro-Obama supporters in a community that prides itself on its liberal outlook.

“That’s what we discussed,” Cassin-Pountney said about the debate in the classroom when the experiment was revealed. “I said, here you are, promoting this person [Obama] that believes we are all equal and included, and look what you’ve done? The students were kind of like, ‘Oh, yeah.’ I think they got it.”

Catherine never told us which candidate she would have voted for if she weren’t an 8th grader. But she said she learned what it was like to be in the minority.

“Just being on the outside, how it felt, it was not fun at all,” she said.

Don’t ever feel as if you must conform, Catherine. Being on the outside isn’t so bad. Trust me.

jskass@tribune.com

Thank you, John, for pointing out what we don’t want to happen to our kids.  I sincerely believe that the sharing of knowledge and ideas is what sheds prejudice, intolerance, and the perpetuation of simply bad ideas.

November 14th, 2008 by Karin Huegele

Manhattan Project


Manhattan Project

Words by neil peart, music by geddy lee and alex lifeson

Imagine a time
When it all began in the dying days of a war
A weapon — that would settle the score
Whoever found it first
Would be sure to do their worst –
They always had before…

Imagine a man
Where it all began a scientist pacing the floor
In each nation — always eager to explore
To build the best big stick
To turn the winning trick –
But this was something more…

The big bang — took and shook the world
Shot down the rising sun
The end was begun — it would hit everyone
When the chain reaction was done
The big shots — try to hold it back
Fools try to wish it away
The hopeful depend on a world without end
Whatever the hopeless may say

Imagine a place
Where it all began
They gathered from across the land
To work in the secrecy of the desert sand
All of the brightest boys
To play with the biggest toys –
More than they bargained for…

Imagine a man
When it all began
The pilot of enola gay
Flying out of the shockwave
On that august day
All the powers that be
And the course of history
Would be changed for evermore…

October 24th, 2008 by Karin Huegele

Force Ten

What I remembered the most about this song: The very first time I was introduced to it….
was in my Beethoven class! THAT just blew me away. My professor played about the first 30 seconds of the song, before Geddy Lee started singing. I thought the song sounded like Rush, I had a feeling that it must have been Rush, but I just could not believe that I actually got it right! My professor? The world’s authoritative expert on Beethoven? Loves Rush? Now, THAT was, and still is, amazing.


Force Ten

Words by neil peart and pye dubois,
Music by geddy lee and alex lifeson

Tough times demand tough talk
Demand tough hearts demand tough songs
Demand –

We can rise and fall like empires
Flow in and out like the tide
Be vain and smart, humble and dumb
We can hit and miss like pride

We can circle around like hurricanes
Dance and dream like lovers
Attack the day like birds of prey
Or scavengers under cover

Look in –
To the eye of the storm
Look out –
For the force without form
Look around –
At the sight and the sound
Look in look out look around –

We can move with savage grace
To the rhythms of the night
Cool and remote like dancing girls
In the heat of the beat and the lights

We can wear the rose of romance
An air of joie de vivre
Too-tender hearts upon our sleeves
Or skin as thick as thieves

Rising falling at force ten
We twist the world and ride the wind

Look in –
Look the storm in the eye
Look out –
To the sea and the sky
Look around –
At the sight and the sound
Look in look out look around –

October 24th, 2008 by Karin Huegele

Red Barchetta

Ok, they didn’t sing this so perfectly anymore. But Boy! They’re still the best!


Red Barchetta

Inspiried by a nice morning drive, by richard s. foster
Words by neil peart, music by geddy lee and alex lifeson

My uncle has a country place, that no one knows about
He says it used to be a farm, before the motor law
And on sundays I elude the eyes and hop the turbine freight
To far outside the wire, where my white-haired uncle waits.

Jump to the ground
As the turbo slows to cross the borderline
Run like the wind,
As excitement shivers up and down my spine
Down in his barn
My uncle preserved for me, an old machine —
For fifty-odd years
To keep it as new has been his dearest dream

I strip away the old debris, that hides a shining car
A brilliant red barchetta, from a better, vanished time
I fire up the willing engine, responding with a roar
Tires spitting gravel, I commit my weekly crime…

Wind in my hair —
Shifting and drifting —
Mechanical music —
Adrenalin surge —

Well-weathered leather
Hot metal and oil
The scented country air
Sunlight on chrome
The blur of the landscape
Every nerve aware

Suddenly, ahead of me, across the mountainside
A gleaming alloy air-car shoots towards me, two lanes wide
I spin around with shrieking tires, to run the deadly race
Go screaming through the valley as another joins the chase

Drive like the wind
Straining the limits of machine and man
Laughing out loud
With fear and hope, Ive got a desperate plan

At the one-lane bridge
I leave the giants stranded
At the riverside
Race back to the farm
To dream with my uncle
At the fireside…

October 24th, 2008 by Karin Huegele

Tom Sawyer

Back to Junior High School Days! Was my favorite then. STILL is my favorite NOW!


Tom Sawyer

A modern-day warrior
Mean mean stride,
Todays tom sawyer
Mean mean pride.

Though his mind is not for rent,
Dont put him down as arrogant.
His reserve, a quiet defense,
Riding out the days events.
The river

And what you say about his company
Is what you say about society.
Catch the mist, catch the myth
Catch the mystery, catch the drift.

The world is, the world is,
Love and life are deep,
Maybe as his eyes are wide.

Todays tom sawyer,
He gets high on you,
And the space he invades
He gets by on you.

No, his mind is not for rent
To any God or government.
Always hopeful, yet discontent,
He knows changes arent permanent,
But change is.

And what you say about his company
Is what you say about society.
Catch the witness, catch the wit,
Catch the spirit, catch the spit.

The world is, the world is,
Love and life are deep,
Maybe as his skies are wide.

Exit the warrior,
Todays tom sawyer,
He gets high on you,
And the energy you trade,
He gets right on to the friction of the day.

October 24th, 2008 by Karin Huegele