Friday, June 01, 2012

PL/SQL Popularity

TIOBE tracks the "popularity" of programming languages.

To quote from their index page: "The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. The popular search engines Google, Bing, Yahoo!, Wikipedia, Amazon, YouTube and Baidu are used to calculate the ratings. Observe that the TIOBE index is not about the best programming language or the language in which most lines of code have been written."

It has been very gratifying to see that PL/SQL is doing much better than holding its own. It has moved up dramatically in the past year. Go, PL/SQL, go!

Wednesday, May 23, 2012

Join me at ODTUG's Kscope12 in June


From June 24 through the 28th, hundreds of Oracle technologists will gather in San Antonio, Texas, for the ODTUG Kscope12 conference. As ODTUG says and I agree completely, "ODTUG Kscope12 is the place to be for the Oracle technical community in 2012. If you are a developer, architect, technical lead, or database administrator who works with Application Express, Business Intelligence, Oracle EPM; including Hyperion products, Essbase, Planning; Database Development or Fusion Middleware, Kscope12 is where you should be. It’s hard to find a conference that’s big enough to attract world renowned speakers and small enough to get the chance to share knowledge. Kscope12 is that conference."

Oracle Open World is an amazing experience, but it is also very, very large and, of course, an official Oracle event. ODTUG offers a refreshing alternative: about 1/40th the number of people, and just about all of them technologists. A strong mix of work and play and good deeds, ranging from the community service day on Saturday 23 June (sprucing up the Boys and Girls Club of San Antonio) to Sunday symposiums, the Wednesday party blast, countless presentations from many of the best DBAs, PL/SQL coders and APEX developers, and so much more.

I'll be presenting four times this year:

Clean Up Your APEX PL/SQL Code
Writing Maintainable PL/SQL Code
Error Management Features of Oracle PL/SQL
High Performance PL/SQL
 
Hope to see you there!

High Performance PL/SQL + 11g New Features Training in Colorado

11-12 June  2012 will find me in Broomfield, Colorado, training PL/SQL developers and Oracle DBAs.

This two-day training, sponsored by RMOUG, covers the most critical features you need to know about if you are going to write PL/SQL programs that fully utilize the capabilities of PL/SQL, including the most important enhancements of Oracle Database 11g for PL/SQL developers.

Detailed Description of Topics to be Covered
  1. Bulk Processing with BULK COLLECT and FORALL: the most important performance optimization feature of PL/SQL, bulk processing turbo-charges the speed of repeated execution of the same SQL statement (think: DML inside a loop) by reducing the number of context switches. We'll explore every nook and cranny of BULK COLLECT and FORALL.
  2. The Function Result Cache (11g): a fantastically elegant and high-impact feature, the function result cache provides an SGA-based cache that helps you optimize the performance of queries
    across an entire instance that repeatedly retrieve the same rows of data.
  3. Row-Level Error Suppression in DML: added in Oracle Database 10g Release 2, the LOG ERRORS clause (along with the built-in package, DBMS_ERRLOG) offers row-level suppression of errors in DML statements, especially helpful when modifying large numbers of rows.
  4. PL/Scope (11g): new to Oracle Database 11g, PL/Scope analyzes the way that all identifiers (variables, constants, subprograms, exceptions, types, etc.) are used in your code. It allows us to perform analysis on our code in a way never before possible. For example, you can implement your own scripts to check code for compliance with naming conventions - no parser required!
  5. The NOCOPY Hint: so simple, and yet so impactful. Add one keyword to your IN OUT parameter definition and get a significant boost in performance. Along the way, learn about the
    difference between formal parameters and actual argument values, passing by reference vs. value.
  6. Dynamic SQL Advanced Features: Oracle Database 11g includes many enhancements for dynamic SQL, especially for Method 4 dynamic SQL.
  7. Advanced Collection Features: the year is 2012 and all PL/SQL developers should be aware of and use collections (PL/SQL's version of arrays). So we'll skip the basics and concentrate on advanced features like use of the TABLE operator, string-indexed associative arrays, and nested collections.
For more information and to register, click here.

Thursday, May 17, 2012

Schema-level Procedure or Package with one Procedure?

I received this question from a PL/SQL developer:

Dear Steven,
 
I'm an Italian Pl/Sql developer who often follows your precious advices.As you always say, it's useful to modularize your business logic through procedures and functions inside a package, and I always do that way.
 
My question is this. If I have to write a main module X (procedure or function) which calls further N modules (procedures or functions), how do I have to choose between to develop it by a package or by a procedure? I mean, is it better to write a package with the only X procedure in the specification and the other N modules inside the body or to write directly a procedure X with a main code and the other N modules defined inside it? I've thought that I should ask to myself whether I want to hide the N modules (package) or not, but I'd like to get your opinion.
 
Thanks in advance!
 
And my reply:
 
I suggest you never define a schema-level procedure or function (outside a package). Instead, always start with a package for a very simple reason: everything gets more complicated over time. Users request new features or changes to existing features, developers realize that they need to do more or do it differently, etc.
 
So there is a very great likelihood that in time you will find that you need to build another procedure or function that is related to the first. Even if they don't share code, they share the same "domain" within your application. And that is one of the best reasons for creating packages: to group together related functionality.

If you don't use a function, you may find yourself defining prefixes for those related schema-level program units, so that you can see by name that they are related.

Bad idea. Better to put those schema-level procedures and functions in a package - but now you have to go back to all the places they are called and add the "package dot" to each invocation (or create a synonym to "redirect" into the package). 

Bad use of time.

Instead, therefore, I suggest that you start with a package, even if the specification contains just a single subprogram.

Monday, May 14, 2012

If I Were Governor of California (or Illinois or....)

Governor Brown today announced the need for an additional $8B in cuts to state spending, on top of some $15B of cuts over the last three years. These cuts will slash funding for education, health care for children, welfare programs, etc.


And California is not alone. Many states face drastic shortfalls in their budgets, massive underfunding of pensions, and so on.


And it's just going to keep on getting worse.


So what's a governor to do? It seems to me that in a sane, rational, compassionate society, one in which we recognize the importance - above everything else - of ensuring all our children are healthy, are fed, are educated, are thriving, the first thing we do is identify those who have extracted millions, probably billions of tax dollars, and siphoned them off to their pockets.

If I were governor....I would have my staff analyze who in my state has been getting rich off of the state budget. Sure, lots of the money, maybe most of it, goes to directly paying for services to the poor. But I am beyond certain that there is a cadre of well connected businesspeople who have bribed and cajoled and "contributed" their way to legislators' hearts and pocketbooks over the years. 


I would identify these people and with maximum transparency possible publish the flow of state funds to their commercial enterprises, and sum up the total amount that these very wealthy people have taken out of the system - in effect, taken from the mouths, stomachs, bodies and minds of our most vulnerable.

I would then call on all of these people and their companies to renegotiate any contracts with the state to cut profits to a bare minimum - not lose money, but not make tons of money off of the public either. If they don't like the terms, I am sure we could find others who will do it.


And I would encourage citizens of my state to bring pressure to bear. In effect, these people need to be shamed (they should feel ashamed, but I doubt they do) into doing the right thing.

The money reclaimed from this effort would almost certainly not take care of the deficits. Women, children, the working poor, many of those in the middle class right on the edge, will still pay with their very health and quality of life. But at least they wouldn't be doing that while the fat cats continued to meet in their country clubs, whine about "welfare queens" and then use their illicit gains from public works contracts to fund their own extravagant life styles.



Friday, May 11, 2012

It's Yes Time!

Finally after many years of being complicit in the poisoning of our own bodies, many people are coming to realize that lots of the food products (as opposed to food) that we buy in supermarkets are bad for us, make us sick. Thanks, Michael Pollan and others for your impact!


This shift in public opinion is revealed in changes in advertising by the companies who sell industrialized, factory-produced edibles. 


I was watching the Daily Show last night and was greatly amused by Kraft Food's "It's Yes Time!" campaign.


The ad was all about how a Mom keeps saying No, No, No to all the idiotic things her husband tries to do. But then she is fixing a dinner of hot dogs and this is a Yes! meal because the hot dogs are "Oscar Mayer Selects" that feature "specially selected cuts of meat that have no artificial preservatives. Better yet, Selects has no artificial flavors or colors—even more reason to say yes."

This is good news, no doubt about it. Almost as good as not selling that crap "meat" anymore at all.

But what I find hilarious about these ads, along with a new series of ads from the American Beverage Association ("America's beverage companies are making it easier to choose the beverage that's right for you - with more choices, smaller portions, fewer calories and clear calorie labels."), is that these companies are all implicitly dumping on the rest of their products, and admitting that they are not good for you.

And in the case of Kraft, the almost explicit message is "Don't buy our regular hotdogs. They are a no-no and bad for you."

Ah, the joys and absurdities of marketing!

Saturday, May 05, 2012

Raw+Material=Art

My older son, Chris Silva, is an artist in many media: mural, painting, mosaic, music, video.

He is included in a massive and quite beautiful book titled "Raw+Material=Art".

If you're looking for a relatively inexpensive, high production value "coffee table book" that will delight your visitors and yourself, or if you are Chris Silva fan and must acquire everything that has anything of his in it, check it out!

Here are some links to information about the book:

http://www.coolhunting.com/culture/raw-material-art.php

http://www.tristanmanco.com/2012/02/10/thames-and-hudson-catalogue/

And of course you can order it on Amazon.

Chris also recently put together a mixed-media exhibition that is amazing. You can watch a video of it here (the MORE OR LESS - FULL entry on the blog) It's not the greatest resolution; hopefully there will be something better soon.

Thursday, May 03, 2012

Loey and her Dad: Stars at 1871 Grand Opening

Chris won a commission to create a mural, in collaboration with his friend Dan Ezra Lang, at 1871, a new "incubator" for startups here in Chicago (1871.com). Very high profile initiative and big feather in Chris's cap to have gotten the commission.

CONGRATULATIONS, CHRIS!

1871 threw a big grand opening celebration last night and Chris put us on the guest list to attend.

Loey was easily the most beautiful and amazing baby at the party. Also, so far we could tell, the only baby or child there altogether. Mostly it was crammed full of a bunch of potential investors in suits and software coders in t-shirts with the names of their websites prominently displayed.

You can see both Chris's mural and many pictures of lovely Loey here. But here are some highlights:

Lovely Pink Loey



The mural (or most of it)

A close up:

Loey sitting on couch excited about the thing-in-her-hands-she-can-chew-on:

And then she realizes her mom is not within two feet of her:






Saturday, March 31, 2012

April SQL Quizzes at the PL/SQL Challenge by AMIS

I am very pleased to announce that the SQL quizzes at the PL/SQL Challenge for the month of April are provided by Lucas Jellema and Patrick Barel of AMIS (you will find at the end of this post a description of AMIS). Patrick is a longtime player at the PL/SQL Challenge, and also both reviews and authors SQL quizzes. Lucas is Chief Technology Officer of AMIS and a well-known and highly-regarded presenter at numerous Oracle conferences.


I hope that you enjoy their SQL quizzes. My deepest thanks to AMIS for supporting the Oracle community through the PL/SQL Challenge site.


About AMIS


AMIS is an Oracle, Java and SOA Specialist from The Netherlands, founded in 1991. Consistently active as frontrunner with the latest Oracle technology, AMIS is well known around the world for its community contributions, through presentations on conferences, Master Classes, articles in developer magazines, books and its Technology Blog (http://technology.amis.nl). AMIS has 5 Oracle ACEs and ACE Directors among its staff.

AMIS provides consultancy services around Oracle technology, including Database Development (SQL, PL/SQL, APEX); User Interface development using Java/JEE,ADF and WebCenter; SOA & BPM using SOA Suite, BPM Suite and OSB; BI using ODI, OBI EE; Security, Performance, Scalability, Availability and Administration of run time infrastructures including Database, Middleware and VMs. These services are rendered locally in The Netherlands, but also to customers in other countries and continents. Note that the Oracle Database, SQL and PL/SQL have always been crucial in the activities of AMIS.

AMIS is probably best known for its advanced knowledge, experiences and specialists. Knowledge transfer in various forms - training, coaching, reviews, "education permanente" - is a key element of what the company does. AMIS for example can deliver masterclasses and trainings on site (or through webinars) and also offers self-study materials.

The latest initiative from AMIS is the 'further' training program, targeted at experienced Oracle professionals, who are somewhat stuck in traditional tools and technology and perhaps yesterday's versions or ways of working, and who are now ready and eager to 'further' their knowledge and career. This program is offered to individual developers as well as to organizations who have teams to propel in this fashion. The program is provided in various ways and through various channels.

More information about AMIS can be found at the corporate web site, the Twitter account - @AMIS_Services, its technology blog, and through email to info@amis.nl.

Sunday, March 25, 2012

Good Deeds - It's All Relative

A "news analysis" piece in the Sunday New York Times, titled "Text to Driver: That’s My Space," that explores a growing phenomenon of "parking rage." That's when you sit in your car in your parking spot and do some texting or emailing or twittering or facebooking or....anything that involves having your head bent over a small smartphone device and moving your thumbs, rather than driving away and letting someone else use the parking spot.

This anecdote caught my attention:

On weekends, said Mr. Mercuri, he drives to the suburbs to do errands at stores like Costco, where parking lots can get packed. He said that if he finds himself using his phone in his car after he shops and sees someone who needs his spot, he’ll pull into a fire lane. But on the weekdays, he said, he’s under too much pressure to give up a parking space. Monday to Friday, you have to have that hard edge,” he said. “On the weekends, I try to find small ways to do good to balance it out.” 

I must admit, I am not envious of Mr. Mercuri. He is under so much pressure that the "hard edge" critical to succeed includes ignoring the needs of the parking public. 

Now that is a man in need of edge, wherever he can get it and as hard as he can get it. 

Here's hoping his weekend charitable activities are enough to refill his cosmic karmic account.

Thursday, March 08, 2012

Ohio and New York High Performance PL/SQL Trainings

I will be doing one day trainings on high performance PL/SQL and Oracle Database 11g new features in Columbus and Manhattan (NY) in April:

April 16 - Columbus more info
April 18 - Manhattan more info

These are one day, whirlwind explorations of the many ways you can get those PL/SQL programs running faster, including:
  • BULK COLLECT
  • FORALL
  • DETERMINISTIC functions
  • Function Result Cache
  • NOCOPY
  • DBMS_PARALLEL_EXECUTE
  • Pipelined Table Functions
Hope to see you there!

Sunday, March 04, 2012

Recursive Foot-in-Mouth Syndrome

The Republican primary contest has offered many examples of the well-known Foot-in-Mouth Syndrome, whereby candidates say things that cause them, at a minimum, some embarrassment and, even worse for them, lost votes.

Today while reading the Chicago Tribune, I discovered a rare variation of the syndrome, Recursive Foot-in-Mouth Syndrome (RFIM), in which a candidate, while explaining why his foot was planted firmly in his mouth, plants a foot within that foot.

I can understand why you might be thinking that this candidate must be Newt Gingrich, who seems adept at converting massive contributions by extreme-right, arch-Zionists like Sheldon Adelson into massive losses in the polls. But, no, the master practitioner of RFIM is Rick Santorum.

So, let's see...in the last week or so he called President Obama a "snob" for (supposedly) demanding that everyone attend college (he didn't). And then Santorum took on the most popular president in U.S. history, saying that JFK's speech on the separate of religion and government made him "throw up."

Two big feet in one really big mouth. Not, however, recursive.

But then on Friday, Santorum told his devotees in Chillicothe, Ohio: "I know sometimes I can get a little wound up. You see, I don't often use a teleprompter. The worse that come out of my mouth are my own. They are not written by some poll-tested speechwriter."

So he attempts to explain away his gaffes by insisting that these are his own words, not provided by anyone else.

How does that in any way mitigate the stupidity, banality and maliciousness of those comments? Not one bit. Nope, he's just layering one foot on top of (or within) another.

Recursive Foot-in-Mouth Syndrome. Perhaps one day that will serve as yet another definition of santorum.

Tuesday, February 21, 2012

The Insanity of Stock Trading in the 21st Century

As anyone who's read my blog or otherwise knows me is aware, I have more than my share of criticisms of capitalism. I am not sure it is possible to come up with a better economic system than one that is market-driven. I am very certain, however, that our political system - whose sole purpose should be to protect and improve the quality of life of its citizens - must put boundaries around the behavior of capitalists.

In other words, the political system must taken priority over the economic system.

OK, well, let's put that aside for the moment. Let's just focus on the concept and then the current reality of the stock market.

The fundamental point of a stock market, from what I understand, is to provide a way for companies to obtain investment - and, closely related to that, allows an individual to make such an investment, to both express support for a company and benefit from its success.

That all sounds good to me, and I have certainly participated in the stock market over the last few decades. Now, my wife and I are contemplating selling any and all stock we have and avoiding the stock market like the plague.

Why? Because the entire system seems so fundamentally corrupted, so deeply oriented towards speculation (legalized gambling), so out of control, that it is now a destructive force in our society. And the aspect of the stock market that I think most clearly demonstrates all of this is computerized trading.

Here are a few quotes and links to articles that really drive this home for me:

Nanosecond Trading Could Make Markets Go Haywire

"It’s as if computerized trading has created a new world, one where the usual rules don’t apply, populated by algorithms and only dimly understood by the people who made them...."There’s this whole world below 650 milliseconds. It’s like landing on another planet,” said Neil Johnson, a complex systems specialist at the University of Miami and co-author of the study, released Feb. 7 on arXiv. “It’s an enormous part of the market which is out of human reach."

Yes, that's right folks - an "enormous part of the market which is out of human reach."

"One new computer chip built specifically for high-frequency trading can prepare trades in .000000074 seconds; a proposed $300 million transatlantic cable is being built just to shave 0.006 seconds off transaction times between New York City and London.)"

Think about this: a company spending $300 million to lay a cable across the Atlantic just to make stock transactions .006 seconds faster! Blows my mind to think about all the effort, all the money - and perhaps one or persons will die in accidents laying that cable? - just so some Wall Street and London firms can trade that tiny fraction of time faster!

"Verifiable figures are elusive and estimates vary wildly, but it is claimed that a one millisecond advantage could be worth up to $100m (£63m) a year to the bottom line of a large hedge fund."

It is now estimated that some 70% of all stock transactions occur through computerized trading and they happen so quickly and so frequently that they clearly have nothing at all to do with investment and economic growth.

These transactions are all about "gaming" the system, manipulating stock prices (and the conditions that drive stock prices up and down), to extract profit out of that system without providing any benefit to the stock market, the society, the world.

I know, I know - what a whiner. And I will keep on whining - all the way out of the stock market.

Tuesday, January 10, 2012

Ever wanted to debug lobs, object types, XML docs in your IDE?

"Exotic" datatypes, like large objects, object types, XML documents, etc. are being used by more and more Oracle development teams. And those teams, of course, are using one of many different IDEs for PL/SQL, including Toad, SQL Navigator, PL/SQL Developer, SQL Developer, etc. 

These IDEs come with source code debuggers, but unfortunately Oracle's implementation of the Java Debug Wire Protocol (JDWP) comes with a number of limitations, including:

- CLOB: Only the first 511 characters are shown.
- BLOB: Only the first 510 bytes are shown.
- XMLTYPE, ANYDATA, ANYDATASET, ANYTYPE: No value is shown.

If you'd like to see Oracle address these limitations in the upcoming 12c version, check out my PL/SQL Obsession blog for details.

Friday, January 06, 2012

Is it Onion or is it Science?

I hope that you are aware of the Onion, a hilariously satirical newspaper and website. It continually amazes me how funny and sharp they can be, week after week.

For example:

Obama Openly Asks Nation Why On Earth He Would Want To Serve For Another Term

Citing three years of exhausting partisan politics, constant gridlock in Congress, and an overall feeling that the entire nation has "completely lost it," President Barack Obama openly asked a campaign-rally crowd Tuesday why he'd want to serve another term as president of "this godforsaken country."

"My fellow Americans, I come to you today to ask, why?" Obama said to 1,200 people gathered inside a gymnasium at Taylor Allderdice High School. "Why can't our congressional leaders work together to create jobs? Why can't Wall Street ever be held accountable? And most important, why on God's green earth would I voluntarily subject myself to this nonsense for another four years?"

and how about this:

Scrunch time: The peculiar physics of crumpled paper



"WHEN you throw out your Christmas wrapping paper this year, don't tell Narayanan Menon and Anne Dominique Cambou. You'll be throwing away examples of their painstaking research.That's because they study the physics of crumpled balls of paper, which contain deeper mysteries than you might expect."

and from the same article:
"Despite technological advances, it is still extremely difficult to peer inside a simple scrunched-up paper ball with any detail."

Well, OK, actually, that second article is from New Scientist, a quirky science magazine from the UK. It's generally a fascinating read, delving into all sorts of scientific curiosities, and never shying away from the areas where science and society/politics intersect. I urge you to check out the website and even subscribe.


Tuesday, December 20, 2011

Isn't She Beautiful?

What can I say? I just have to share this wonderful photo of a smiling Loey Lucille....



Sunday, December 11, 2011

The PL/SQL Whisperer

That is my new nickname, after my latest round of trainings in Europe.

I spent two days in Berlin, training 25 developers at an event sponsored by DOAG. Then I headed over to the Netherlands to spend a couple of days with 37 developers at an AMIS-sponsored training.

But on Tuesday, after I completed the first day of training without the assistance of a microphone, my voice said "Bye, bye!". I woke up Wednesday morning to discover I had lost the ability to speak above a whisper. DOAG hustled, did what was necessary, and brought in a portable microphone/speaker system. AMIS made certain to have the same ready to go on Thursday.

And so for three straight days, I whispered about new features of PL/SQL in 11g and much more besides. The attendees were very good natured about this less than optimal situation. One person said it made the whole class more exciting - it was as though I was giving away secrets, that no one should hear- except for the very special people in attendance.

Several students in the Dutch class even found themselves whispering to me when they asked a question - whispering, it turns out, is socially contagious! And I was quickly anointed the "PL/SQL Whisperer." Well, I can think of worse names, but I sure hope that soon I will recover my voice.

This was only my fourth business trip all year, which is a truly wonderful change from previous years (a less than fantastic result is that I will lose my Platinum status on American Airlines next week, so it will be tough to even get exit row seats when I do fly).

It was, unfortunately, a bit of a hard week on the road. Besides losing my voice, my flight on Wednesday from Berlin to Amsterdam was cancelled. I had to reroute through Zurich, but the flight to Zurich left late, so while I was able to just make the connection to Amsterdam, my bag did not follow along with me. By the end of the first day of training at AMIS offices, I had quite the five o'clock shadow. But the bag was delivered on Thursday, so it wasn't really such a big deal.

And then on Friday, I celebrated the end of a long week with a night in Amsterdam. Had a nice dinner with good friend, newly-minted Oracle ACE, AMIS consultant and father of three wonderful children, Patrick Barel. Then I went back to my hotel room to catch up on email and call my wife via Skype.

But the wireless network was not available. So the manager dutifully visited my room with an ethernet cable and (as far as I could tell) had to jam the cable a bit forcefully both into the wall and into my laptop. That made me uncomfortable. And still no Internet access.

So then he agreed to let me use the Internet in a different room - which led to a very irritating discovery: the ethernet plug would not come out of the back of the laptop. The spring that holds the cable in place had snapped. Manager Jon poked at it for a while, making me more uncomfortable, but it would not come out. Oh, I was very bummed and finally gave up, had him cut the cable so I could take the darn thing home, and figured I would have to have a technician get it out.

Yuch.

But then the day manager visited in the morning before I left for the airport. He had better tools and was able to quickly remove the plug. Whew, what a relief.

Both classes went well (of course, the students might feel differently, I suppose) - the PL/SQL community in Germany and the Netherlands is wide and deep: lots of very experienced developers attended. So I learned a few things along the way, which will soon make themselves known in PL/SQL Challenge quizzes.

I also made an interesting discovery about how students concentrate on and extra information from the hundreds of slides and hours of talking I give them to them in a two day class. I covered FORALL in the class, also its SAVE EXCEPTIONS clause. I showed slides, ran code and talked about how if at least one statement raises an error, Oracle will save the exception information and then raise the ORA-24381 error. I talked about how you should avoid writing an exception handler like:
WHEN OTHERS THEN IF SQLCODE = -24381
and instead you should declare your own exception and assign it to this error, so
you can write an exception handler like:
WHEN my_errors.forall_failure 
Then right at the end of the course, I talked about avoiding the hard-coding of error numbers and showed -24381 again as an example.

In the AMIS class, we ended with a short quiz. Two players tied for highest score (they selected 19 of 21 choices correctly across 5 questions - quite good!). So it was necessary for these two hotshots to engage in a sudden-death tiebreaker. The way I do this is I show a slide with a question and the first person to answer correctly wins.

The first slide asked: "Which feature of PL/SQL does this number relate to?" And then I showed "-24381". I thought there would be an instant response, given how often I showed and mention this number in the class.

And I was shocked to discover that neither of the students recognized the error code. I stared at them, surprised. Really? When I talked about it, referenced it multiple times, in the last two days?

Well, OK. We went on through several questions without success and then Christian Rokitta identified correctly that the optimizing compiler was first introduced in Oracle Database 10g. So congratulations to Christian for his first place showing, and to Danny Ven for the other score of 19 and his second place.

I am not exactly sure what to conclude from the inability to recognize the -24381 code. Perhaps students in my courses are confronted with so much information that they automatically filter out low level details. That way, they will be able to concentrate on the bigger picture.Certainly, people usually do not complain about how little I cover in my classes or how slowly I go through the material. And right at the beginning, I tell them to focus on principles and concepts, don't worry about all the technical details.

So I guess they took my advice!

In any case, now it is 4 AM on Sunday and I am (a) back in Chicago (hurray!) and (b) awake due to jet lag and (c) still without a voice and (d) most sadly, without a PL/SQL Challenge website. For some reason, it is unavailable but hopefully that will be fixed really soon.

Friday, December 02, 2011

Gingrich the Man - When the bar is set very low

Here's what Newt Gingrich says about himself:


"I don't claim to be the perfect candidate. I just claim to be a lot more conservative than Mitt Romney and a lot more electable than anyone else."

Wow, now that's truly inspiring, Newt. Not.

Mostly it just tells you how terrible the field of Republican candidates for President are, for 2012 - with Gingrich himself admitting it.


Isn't it strange that in a nation with the power and prestige of the United States, in a nation with just two parties competing for power, that the Republicans are left to choose between the likes of Bachman, Santorum, Gingrich, Paul, Cain, Romney and Huntsman? 


Of course, Huntsman seems lots more human, rational and sane than the others (except for the Mormon part, to which "rational" surely does not apply - as it does not apply to Catholicism, Judaism, Islam, etc. - by definition). But he doesn't stand a chance.

Wednesday, November 23, 2011

Gingrich the Historian: Bring Back Child Labor!

"It is tragic what we do in the poorest neighborhoods, entrapping children in, first of all, child laws, which are truly stupid," said the former House speaker Friday at the Kennedy School of Government at Harvard. "Most of these schools ought to get rid of the unionized janitors, have one master janitor and pay local students to take care of the school. The kids would actually do work, they would have cash, they would have pride in the schools, they'd begin the process of rising."

Newt Gingrich considers himself to be a "historian," which dictionary.com says means "an expert in history; authority on history." And history is, in turn, "the branch of knowledge dealing with past events."

Perhaps Gingrich really is an expert on past events, in that he knows that they happened, and even perhaps what happened. For example, he is likely aware of the horrific abuse of children in the past, before there were "truly stupid" laws governing how and when children could work. He is probably not so aware of widespread problems today of child slavery and abuse - 'cause it's not in the past and he is a historian.

But he also seems to be a blithering idiot. How else to explain his belief that you could pay some really poor children in a school to clean up after the other, better-off children, and that this would be a good thing (instill a work ethic, and so forth)? Was he ever a child? Perhaps his grasp of personal history is terribly weak. Children can be incredibly cruel beings.

How long would it take before some evil bullies started taking dumps right on the floors in the bathroom stalls? Or deliberately eating and then puking up lots of disgusting stuff? The children who took these jobs would become laughingstocks of the entire school, objects of scorn and abuse.

But, OK, suppose that wasn't the case. Suppose that all the children in the school are really nice to each other, and would never think of doing such awful things to one another?

Presumably the school has more than a handful of really poor children, anxious to put the janitor father of some other children out of work (thereby sending the whole family into poverty) so that they can work their way out of laziness and someday become a grown-up janitor (but not at a school).

Which of these deserving and desperate children get the jobs? How do you choose? Or perhaps you rotate the honor, so that the income (surely well below minimum wage, that job killer, right, Newt?) and lessons are spread across many young minds and bodies? But then the lesson will be diluted. They might only be able to pull themselves up by a quarter of a bootstrap, which might not be enough in the 21st century.

And so on.

We all had a great laugh at Herman Cain's expense when he couldn't come up with an answer to how he felt about Obama's actions in Libya. And that was pretty funny (and awful, too, when you consider that this man claims to want us to take him seriously as a possible finger on the button of nuclear destruction). 

But why isn't Gingrich being similarly mocked and taken to task? He is supposed to be some sort of deep intellectual, fully informed about past events, ready to take on the future. And this is the best he can do? Offer up some half-assed, incredibly destructive, completely un-thought-out call to return to a past in which children were routinely abused and taken advantage of in order to increase profit margins?

Shame on you, Newt Gingrich. 

Thursday, November 17, 2011

My First Song for Loey

Loey is a busy, active little baby. Eating very well, but in between feedings she is a wiggly little package. A few nights ago, I was holding her but she couldn't find a comfortable position. So I got up and walked around with her, bouncing her gently, and she quieted  down right away.

I Like to Move Around, Grandpa
by Steven Feuerstein, copyright 2011

I don't like to sit around in one place.
I like to move around, Grandpa.

Hoist me on your shoulder,
Bounce me on your legs.
I don't like to sit around, Grandpa.

Rock me in your arms,
Rub my belly on your head.
I like to move around, Grandpa.

Move around, move around, 
Move around, move around, 
I like to move around, Grandpa.

Swing me slowly side to side,
Rest me on your shoulder.
I don't like to sit around, Grandpa.
Hang me facing down,
Across your long arms.
I like to move around, Grandpa.

Move around, move around, 
Move around, move around, 
I like to move around, Grandpa.

Later, much later, I can move on my own.
I like to move around, Grandpa.
But now I'm too little and I can't walk.
So you've got to move me 'round, Grandpa.

Move around, move around, 
Move around, move around, 
I like to move around, Grandpa.

Saturday, November 12, 2011

"God Told Me to Do It"

Such a statement made by, say, a murderer would be a strong indication of mental illness.

So what does it say about a Republican candidate for President of the United States?

Like Herman Cain, who said in a speech today to a national meeting of young Republicans:

"That's when I prayed and prayed and prayed. I'm a man of faith — I had to do a lot of praying for this one, more praying than I've ever done before in my life. And when I finally realized that it was God saying that this is what I needed to do, I was like Moses. 'You've got the wrong man, Lord. Are you sure?'"

We are left to assume, I suppose, that God, that all-powerful, omniscient being responded in an appropriately deep, manly tone: "YES, HERMAN CAIN, I AM SURE."

As opposed to another completely reasonable reaction, which would be to blast Herman Cain with a bolt of lightning, frying him to a black crisp for doubting the word of the Lord

Or maybe he just prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed and prayed....

for sooooooooooooooooooooo long that he started hallucinating from dehydration and/or hunger.

Any way you look at it (bad judgement, delusions or arrogance), this man should be kept far away from the White House.

Sunday, October 30, 2011

Oh, Frabjous Joy, I Am a Grandfather!

Our very first ever in the whole wide world grandchild - our granddaughter, Loey Lucille - was born at 9:54 this morning, 30 October 2011. Ah, what a glorious feeling! Everyone is doing well, excellently, and Loey Lucille is clearly thriving from the get-go. Her father, my son, Chris, has posted the first three photos of what is sure to be a deluge of multimedia recording of Loey's life at his Facebook page.

But I have to post a photo here as well, so we can all celebrate this beautiful new life right here, right now, no hyperlinking required! And now (a week later), I am happy to announce that you can visit:

Loey Lucille on Flickr

for lots and lots of photos.

Here she is, in all her chubby, puffed-up glory:


Welcome, little Loey!

Friday, October 28, 2011

Wanted: Your Ideas for Enhancements to PL/SQL

On November 9, I will be doing the keynote presentation at the 100th member meeting of the Northern California OUG. The day before that I will visit with the PL/SQL development team at Oracle HQ.

It's always great to catch up not just with Bryn Llewellyn, the PL/SQL Product Manager, but also some of the developers themselves (those very special human beings who actually build the programming language at the center of so many of our lives). They'll interrogate me to get a sense of what developers are doing (and not doing) with PL/SQL out there in the "real world." And I'll find out whatever I can about new features in the upcoming release of the language (in this case, 12.1).

I usually take advantage of this wonderful opportunity to also tell them about what I'd love to see added to (or fixed in) PL/SQL. Of course, my ideas are limited to my own experience. So I thought I would ask all of you for your ideas.

What changes in PL/SQL would make the biggest difference for you and your applications?  

Feel free to reply to this post with your thoughts. You can also visit ILovePLSQLAnd.net to vote on a set of enhancement ideas, and even submit your own for consideration.

I'll pull together all the ideas I receive and present them to the PL/SQL team. But I must warn you: I don't expect to come out of this meeting with a list of confirmed enhancements planned for future PL/SQLs. That simply isn't the way Oracle plays the game. Instead, you'll just have to hold your breath until some future version of Oracle Database delivers the enhancement you requested.

Thanks in advance for your input!
Steven

Sunday, October 16, 2011

Hurray! Romney getting more Wall Street money than Obama

In the 2008 election campaign, Obama was the #1 recipient of contributions from Wall Street firms and individuals. Employees of Goldman Sachs, alone, contributed $1 million. I don't know about you, but when I heard of this, I was very worried. Is he really going to stand up to the very companies who paved his way to victory? Did he make a "back room" deal to let these robber barons and their underlings avoid prosecution and come out financially whole?


Well, the verdict is in: whether or not he made any sort of deal, Obama did make an enormous mistake in continuing Bush's policy of handing over hundreds of billions of hard-earned tax dollars to a small number of companies and individuals to bail them out from their mistakes. He did not make sure (remember this was when Congress was controlled by Democrats) that these plutocrats accepted reforms to the way they do business to avoid it happening again.


No, it was "Here's all the money you could ever dream of, with no strings attached."\

Amazingly, after everything Obama has done for Wall Street, now that he is making noises about the rich paying their fair share, Wall Street is turning on the President, and showering Mitt Romney with their largess.



Well, I say: GOOD RIDDANCE! We need a Democratic candidate for President who is not beholden to Wall Street and the rich; who is willing to say clearly: "Class warfare? They are the ones waging class warfare against the middle class and poor of the United States."

Friday, October 14, 2011

Smartphones and Hotel Rooms

My friend told me at Oracle Open World in San Francisco how much he likes his new smartphone; he uses it for so many things, the interface is really nice....he is so pleased with it.

And I found myself thinking in response: I like not having a relationship with my phone.

I have a relationship with my laptop, and it's not particularly healthy.

So I am quite content to have my phone be a smallish, squarish lump in my pocket until someone calls or I need to call someone.

Yes, that means that I can't look up instructions to the restaurant at which I am meeting my sister-in-law and her family. That I can't play Angry Birds or a gazillion other game apps, many of them free or costing almost nothing.

I've decided that's OK. I don't really need to have the world at my fingertips. It's much more important to me to be in the world that is just beyond my fingertips and under my feet.

Think about this: when was the last time you experienced the earth - the very world in which your mind and body evolved to finally - in an unmediated fashion? When you were last truly in the world, not walking along a path in a nature preserve, not sitting on a chair in the lawn in your backyard, certainly not sitting in a cubicle working at your computer, but in a part of the earth that was untouched by human development, that simply was?

========================

And while in San Fran (my first business trip this year without any family along, and only my second of the year!), I realized that my favorite part of a hotel room is the latch on the door - which ensures that no one can just stroll into my room. I have privacy and that makes it feel just a little bit like home.

Friday, October 07, 2011

Happy Birthday, Dad!


Today would have been the 82nd birthday of my father, Sheldon Feuerstein. I miss him lots. He was a man of many talents, sharp intellect, intense devotion to family (above all else), and a deep, gravelly voice that still echoes through my brain.

And he got better as he got older! His temper mellowed, he became more open-minded, willing to challenge long-held beliefs. He got less grumpy, and overall more positive and supportive.

Dad was never terribly satisfied with what he'd accomplished with his life, and constantly wrestled with regrets. That irritated me to no end, since he was so well respected by everyone who crossed his path. He applied his intellect and workaholic tendencies (which I seem to have inherited) to ensuring his family, and most importantly his wife, was and is financially secure.

Sure, he could have done some things differently. But so much of what he did and accomplished required no correction, no regrets at all. I suppose he just set the bar higher for himself, and that does seem like a better thing to do than setting it too low.

Wednesday, October 05, 2011

PL/SQL Trainings in Germany and Netherlands in December

I swore over traveling just about a year and overall it's worked out very well. I am in San Francisco for Oracle Open World now, and it is only my second business trip of the year!

But as has usually been the case in past years, the end of the year gets a bit busy, and so I will be traveling twice more before the end of the year:

November 9 - Keynote speech at the 100th Northern California OUG Meeting

And then off to Europe in early December for two trainings:

Best of Oracle PL/SQL Two-Day Training
Sponsored by DOAG (German Oracle User Group)
Berlin on 6-7 December
http://www.doag.org/termine/termine.php?tid=430924

Best of Oracle PL/SQL, Best Practices and New Features
Sponsored by AMIS
Nieuwegein, Netherlands on 8-9 December
http://www.amis.nl/evenementen/617-steven-feuerstein-best-of-oracle-plsql-best-practices-and-new-feature

If you live in Germany or the Netherlands or any place close by....please consider attending one of these courses. My trips to Europe will now be few and far in between, so take advantage of my "rare" appearance! 

Thursday, September 29, 2011

The ongoing saga of ridiculously insecure evoting machines

Argonne researchers 'hack' Diebold e-voting system

http://www.computerworld.com/s/article/9220356/Argonne_researchers_hack_Diebold_e_voting_system_

By Jaikumar Vijayan
Computerworld
September 28, 2011

Researchers at the Argonne National Laboratory this week showed how an electronic voting machine model that's expected to be widely used to tally votes in the 2012 elections can be easily hacked using inexpensive,
widely-available electronic components.

Roger Johnston, head of the Vulnerability Assessment Team at the U.S.  Department of Energy's science and engineering reseaech lab, said the hack, which requires about $25 and very little technical expertise, would let
cybercriminals "flip" votes gathered on Diebold Accuvote TS machines and change election results without raising any suspicion.

Johnston and his team have long warned about vulnerabilities in e-voting machines. And two years ago, the team demonstrated how a Sequoia touch screen e-voting machine could be similarly manipulated using ...

It's a bit incredible to me that after all the demonstrations of how easy it has been to hack these machines, the vendors would make a little bit more of an effort to at least avoid outright embarrassment.

Kudos to Argonne researchers for bringing this to our attention!