Archive for the ‘Uncategorized’ Category

MediaPlayer onCompletionListener

Sunday, June 21st, 2015

Another way to create an endless loop, I’m thinking, is by using the onCompletionListener function which seems very convenient.  I would imagine it’s fantastic for creating a playlist of song by tying it up with an array of songs or a set of pointers to songs in a database.  But since I’m looking to call the same fragment repeatedly, my code ends up being somewhat recursive.

The Background constructor looks like this:

Background(Context con) {
context = con;
mp1 = MediaPlayer.create(context, R.raw.neroli2);
mp1.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
@Override
public void onCompletion(MediaPlayer mediaPlayer) {
mediaPlayer.seekTo(0);
mediaPlayer.start();
}
});

Now the call from the UI is even simpler:

public void play() {
mp1.start();

As unbelievably clean as this code is, it still creates a .31 second gap, which wouldn’t be terrible if this was between tracks, but it’s not seamless yet.

I would be remiss if I didn’t give a shout-out to the folks who created IntelliJ platform.  The prototyping for the setOnCompletionListener was awe inspiring.  Type in “new MediaPlayer.OnCompletionListener” and the rest of the framework is automatically inserted into your code.  I’m still in disbelief it’s that smart.  🙂

 

No news is no news

Friday, June 12th, 2015

There was a time and it wasn’t so long ago when there was a common courtesy in the hiring process.  When you applied for a position through the medium of e-mail, you received an automatic confirmation return which gave a mild satisfaction of knowing it was received correctly.

That doesn’t happen anymore.

What I’m referring to is a newer and, in my opinion, a ruder form of ignoring a candidate – the callback.

I’m willing to admit that I’m probably not the best candidate for every position as math teacher, tech support or even “human OCR drone.”  But when I’ve done my best to dress professionally, carry copies of my resume, shake hands firmly, answer your questions honestly, take your building tour and meet some of my potential co-workers, the very least you could do is sit down for a minute or two.  Send me an email!

</rant>

For my family

Saturday, April 19th, 2014

My cousin John traced his heritage back in August 1996. He gave me a copy of his documentation because we share the same grandparents.

I’ve recently purchased a copier-scanner-fax-printer which does a reasonable job of OCR. I’ve scanned a couple of the pages relevant to me and my other cousins. I’ll make the PDFs available on this site as well.

The PDF Links:
George Ceneviva Bio (which is page 5 of the below document ( 68 kb ))
John Joseph Ceneviva Family Tree ( 1 mb )

If History has taught us anything…

Friday, October 14th, 2011

If History has taught us anything it’s that we have learned nothing from History.

Opinion

Sunday, October 9th, 2011

The Obama administration made a huge mis-step by decrying the fees Bank of America and others will be charging for ATM usage.

History
A report from one of the Federal Reserve Bank of Boston showed that credit cards were inflating the price of goods, regardless if payment was in cash or credit. Thereby creating a regressive “tax” on cash buyers. ATM purchases were no mentioned because the structure of ATM fees is different (ATM fees are a flat per transaction charge but credit cards are a percentage of the transaction).
The CFPB (and / or congress) agreed to limit the transaction fees banks could charge on ATM purchases. The banks kicked back with their monthly charge for ATM purchases.
Question
My only question is this: Does the limiting of ATM transaction fees increase the likelihood that banks will increase the number of ATM cards it issues to the lower-middle and lower class, thereby giving them higher availability to lower cost banking services?
Or was this just a “dip the toe in the ‘tax the rich’ ideology” to see how it plays in middle (and middle class) America?
IMHO
The administration decided to bunt to maybe make it to first base instead of “swinging away” for the fence. The banks are in terrible shape and the housing debacle that no one is publicly talking about is really causing problems. The Fed has decided it will print money to get us out of this (same with the ECB). The easing part of the Quantative Easing is to ease ourselves into a higher inflated currency and an overall devaluation of money so that the world’s citizens don’t realize their banks have so much debt and remove their money and sink the economy.

A right to privacy?

Sunday, September 26th, 2010

I was walking along the Delaware River yesterday thinking about an online discussion on Facebook with a high school classmate. Fall on the Canal The subject was “Don’t Ask, Don’t Tell” and as surprised and disappointed as I was that we still have the policy, I was equally surprised and disappointed that people still support it.

And I’m looking at all the freedoms we have in this great country. Freedom of Press where organizations as consistently incorrect as Fox News are allowed to publish their obviously skewed content. Freedom of Religion where any God you wish to believe in must be respected. Freedom to not have to take in soldiers into your house. Freedom to own firearms with quantities and qualities which defy logic at times (do we really need assault weapons?) We can’t be arrested without due cause. We are innocent until proven guilty. We can sue police if they cross certain lines (beatings and the like).

Yet, in the military and in American life in general, we do not have Freedom of Genitals.

We can’t marry who we choose. We can’t get insurance benefits for who we choose. We can’t have our most loved one’s visit us in the hospital. And even though they may not be enforced, laws are on the books concerning which consenting adults we share our most intimate body parts.

When is this mass phobia going to go away? When are we going to disconnect this deserved freedom from pedophilia, bestiality, drug addiction, alcohol abuse and a myriad of other scare tactics used to keep us on the “straight” and narrow?

I just keep waiting for the grown-ups to show up.

State of Denial (from October 2006 diary entry)

Monday, March 8th, 2010

If President Bush can be in a state of denial about the war in Iraq, so can I.

Indeed, I don’t want to know there’s a war going on. I don’t want to know about torture and abuse of prisoners. I don’t need to know when we’ve broken international laws which we find antiquated and optional.

I don’t want the news to show returning flag-draped caskets, dead body counts, dollars spent, lives ruined or any other knowledge of this war except for the fact that we are winning.

Most of all, I want to forget that I’m a Quaker which was a pacifist organization but now is so liberal that we tolerate every response to war including vengeance, blood in the streets without end, without oversight, amen.

Thank you Jesus
soldiers with flag-draped coffins

Are You Listening Microsoft?

Sunday, February 28th, 2010

When they finally get the Windows spoken interface packaged for general distribution, I think I’m going to get the Jamaican Male voice.  There’s something calming and easy-going about the voice – the perfect antidote to our faster, faster, in-demand world.

Me: Hey, Mon.

Computer: Yea.  Wat a gwan my yuut?

Me: Look, I just sliced into my finger with a knife cutting a bagel.  I need directions to the nearest open emergency room.

Computer: Lawd, mi gad.  Let me get it fe yuh.  It da 10 minutes away.  I’m sending the directions to my bredda GPS in your car. Arright?

Me: Good, look I’ll need you to…

Computer: Hold on.  Webmd sa keep yu finger elevated and tie-it-up wit a piece of clath?

Me: Yea, I’m ok.  I’m going to need you to send …

Computer: Mak mi tell ya sumtin, 65 percen people cut their finger off while aeat breakfast.  Look here now, Williams-Sonoma has a bagel cutter fe $25.99.  How bout I arder it fer yu?.

Me: Yeah… No… Maybe… I don’t know, can this wait Mon?

Computer: Hold Tight, Mon.  Everyting copasetic an mats.  I just found another one on e-bay, can I put a bid in…

Me: Mon! Stop with the bagel cutters, I’m outta here.  Send my wife a text message telling her where I’m going.  Where’s my phone?

Computer: Bredda Phone saying its dark where he is.  Maybe he’s in your other pants, Mon?  Mek mi take picture.

Me: No!  No more pocket pictures.  I got it, thanks.  Send the hospital notice that I’m on my way and a copy my insurance info.  I hate waiting.

Computer: Aright.  Mi tak care of that a’ready.  Gwaan man.  By the way, can the Computer Shopping News?

Me: Yeah, yeah, whatever.  Don’t buy anything; you remember what happened last …

Computer: Ya Mon.  Mi member. Mi member. Zeen.

Privacy is Dead – Get Over It.

Friday, February 26th, 2010

You already know that my cat has died.  If you wanted to.  You already know that my wife just purchased a new Toyota because she has a high degree of brand loyalty and they were offering 60 month financing with no interest.  If that was of any interest to you, gentle readers.

But what is of increasing interest to me is our communications in this Web 2.0 world.  There are some very smart people warning that our children’s laissez-faire attitude towards posting inappropriate (for the adult world) content will catch up to them.  I’m dubious.

It’s a shelf-life issue.  It’s a consciousness issue.  It’s just a time issue.  People are spending more time “Amusing Ourselves to Death” that they really don’t have time for research.  I wonder if the college admission staff have enough time to go through every person’s Facebook, MySpace and YouTube entries, let alone find comments on other people’s pages, blogs, newspaper sites.

But my true disagreement comes from the impossibility or impracticality of keeping every byte of the web ever.  Where’s the interest?  Does anyone care what anyone said last year?  Two years ago?

Will anyone ever care what was tweeted at the local high school prom a week after the event?  No.

Will anyone at Twitter consider this information worth keeping a year from now?  No.

Will anyone bother reading this?  I doubt it.  So when I pull it down because I’m bored yet again will these words remain?   No.

Scott McNealy was wrong.  Privacy isn’t dead.  But, it isn’t completely hidden either.  Ask the Hollywood star who can’t even get arrested.  Right out in plain view, no one pays attention.

Privacy is exposed and then soon lost.  After I bring down the Facebook post about the death of my cat, it – like she – becomes a part of history; tiny, insignificant, beautiful, loving and gone.

Annie's Tongue

Hello world!

Thursday, February 25th, 2010

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!