Wednesday, February 22, 2012

Phone book and newLISP

Work has a web-based phone book but ... it's web-based.  Gotta load up the page, enter the last name, hit 'go' ... all for a four-digit number.

Had a bash script for years; wget, grep-fu and voila. Good problem-space to try out new language on, like newLISP.

Doesn't spit back the actual data, yet, but getting this done up after a man-hour of study-time tickles me.

(print "Last name?")

(set 'lastname (read-line))

(println "Looking for " lastname)

(set 'phone (parse (read-file "/Users/bdunbar/foo/phone/phone.cfm") {\W} 0))

(set 'loc (find lastname phone 0))
(if loc
(println "Found name " (phone loc) " in directory.")
(println "Found nothing. Do you have the right spelling?"))

(println "finished.")




Tuesday, February 21, 2012

Something I did not know this morning

One can write functions in DOS batch.

Cool: I learned something useful.  DOS batch files are still around, making one better is a worth a few minutes of study time.

Sad: I've been noodling around a DOS prompt since 1989.  That same year I got real intimate and familiar with the best NOS of that era - Banyan Vines.

Banyan Vines and StreetTalk are in the rubbish bin.  Microsoft Friggin' DOS is still around.

Where is the justice, I say.


Saturday, February 18, 2012

Agile PLM - BEA-090402 - BEA-000386 - Authentication for user superadmin denied

Encountered a problem with Agile PLM where the database user credentials were invalid, but the error returned referenced the WebLogic Server (WLS) superadmin credentials.

This caused us (me!) to look in the wrong area for troubleshooting for several hours, and needless downtime of a systemthat, while not production, was critical for training efforts for a new process to go live several days later.

Hopefully by putting this data here it might show up in google it will save someone else some grief.

  • Agile PLM 9301
  • WebLogic Server 10.3
  • Solaris 10

Startup uses WLS encrypted boot.properties for the WLS credentials.  While this is not how the system is setup by Agile install binary, changing this around is a) trivial and b) common sense. 

Parking login credentials in a bash script variable is asking for trouble.

I do not believe this has anything to do with the problem.  But certain people (coughOraclecough) were confused on this point.

Symptoms

On startup of WLS Node Manager fails with this error message.

<Critical> <Security> <BEA-090402> <Authentication denied:
Boot identity not valid; The user name and/or password from the boot identity file (boot.properties)
is not valid. The boot identity may have been changed since the boot identity file was created.
Please edit and update the boot identity file with the proper values of username and password.
The first time the updated boot identity file is used to start the server, these new values are encrypted.>

This is, needless to say, alarming.

In an effort to simplify things, do some fault isolation, one might change the startup scripts to restore the WLS superadmin credentials and is rewarded with this error message.


<Critical>
<WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException:
Authentication for user superadmin denied
weblogic.security.SecurityInitializationException: Authentication for user superadmin denied
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(Unknown Source)
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
        at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
        at weblogic.security.SecurityService.start(SecurityService.java:141)
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
        Truncated. see log file for complete stacktrace>

<Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>

One can even remove the shell variables from the startup script, and will be prompted to manually input the credentials.  Which will fail with the above error message.

The problem was NOT with the WLS superadmin credentials.  I know this because we can look in the database for those.  While they are encrypted, after a while one learns that the encrypted value AE43938383AKKH23566 eq 'tartan' [1].


What Happened

We have different credentials for the Agile database user in our five different environments.

The day prior, we had refreshed our Training environment with a copy of the Production database.  To do this we used the cloning facility provided by NetApp.

The database came up 'ok', but when the application supplied database credentials on startup ... it failed.

Which one could expect.  The passwords are different.

What one doesn't expect is that the error returned does not reference an actual database account, but WLS superadmin credentials, which are still valid: authentication for user superadmin denied.

As soon as the DBA applied the Training environment credentials to the database, I was able to start the Node Manager and Managed Hosts.

Sha-zam!


So What?

Based on my experience, by comments from the Oracle SE, I believe that any Agile PLM version 9.3 [2] database account that is locked out, has invalid credentials, will experience the same problem: that is they will have an error that indicates the WLS superadmin credentials are wrong, when they are not.

This seems to not be common knowledge with the Agile support team at Oracle, or if it is it's not something the support engineer assigned to the case knew about.  And when he closed the case he was real quick to not make a KB out of the problem because it was, he said, specific to the way we implemented Agile PLM.

Which seems wrong but whatever. [3]

If this happens to you, hopefully you will find this document, not have to waste hours and hours of time fixing your problem.


[1] Not the real password.
[2] At least this version.  The way to bet is all versions that use WLS.
[3] Ref.


Saturday, February 11, 2012

Making soap from components - costs - reasons why

Travis
I'm interested by your soap ideas.  Can you break this down a bit? How much does "washing soda" cost?  Am I saving 50 cents a week, or $9 ?  How much time does it take to make the mix?  If I can earn $20+/hr, tax-free, by doing these things, I might.  ...but if I'm going to earn $3/hr, and have to story more items under my sink (which is already crammed), then I'm not interested.

Cost

The Store Bought Stuff [1] : $21.99 for 80 loads (.27 cents per load)
Semi-Home Made [2]
: $6.67 for 43 loads (.15 cents per load)

Recipe
One Fels-Naptha bar, grated
One cup borax
One cup washing soda

Mix well.  Use 1 tbs per load, double if heavily soiled.

Takes me five minutes for a batch.

One doesn't have to go out of their way to acquire the ingredients.  I found everything at Walmart, in the mop and soap aisle.

Commentary
Spending five minutes every six weeks to make up a new batch to save five dollars.

This is a no-brianer.  It's a few bucks.  Pick up a box of Tide, call it a day.  What are you, some kind of freak?

Yet ... it's half (rounding up) the cost per load.  Half.

Yet ... five minutes of labor every six weeks is nothing.  I spend more time than that blowing my nose, woolgathering, thinking dark thoughts about the government.  Five minutes at the kitchen table is lost in the noise of everyday life. 

Mr. Bluntobject wrote on the same subject
I suspect that the big payoff of making your own dish soap is the making your own part, giving the finger to the world of prepackaged overpriced convenience. Which, now that I spell it out, is pretty persuasive.
Yeah!

In the end, this is why I make my own washing-machine soap:
  • Being thrifty is it's own reward. 
  • Pennies make dollars. 
  • Proverbs 6:6-8.

[1] All prices from Amazon, 2012-02-11
Tide Ultra High Efficiency Original Scent Powder
80 Loads
$21.99

Arm & Hammer Super Washing Soda
55 oz.
$9.175

Fels-Naptha Laundry Bar
5.5 oz.
$3.99

Twenty Mule Borax
76 oz.
 $12.92

[2] Really, I'm not eschewing modern prepackaged convenience in favor of brewing my own soap from atomic components.  I'm just making my own from the same ingredients that P&G does. Got no time to mine borax.



Thursday, February 09, 2012

I don't understand this

One can make washing machine soap: Borax, washing soda, Fels-Naptha bar.

One can make dish-washer soap: Borax, washing soda, sea salt, unsweetened lemonade flavor Kool-Aid.

One can buy a bread machine for $75 bucks - and then make loaves of bread @ .16 cents per.

So why the heck do people continue to buy washing machine soap, dish-washer soap, and bread at the grocery?



Wednesday, February 08, 2012

Poodle - it's what's for dinner

Him: There's an eagle outside! In the tree!

You mean a hawk?

Him (eye roll): I know what an eagle looks like. White head, orange beak. In. Our. Tree.  I need the binoculars.  (exit)

He's twelve. Knows his birds o' prey.

Neenah Eagle


Sat there looking huge and national symbolish for a while.

Flapped away at a sedate mosey, when, I guess, it was clear none of the smaller dogs would be outside for dinner.


Monday, February 06, 2012

Ain't gonna happen

So check this out. 

The same Roman Catholics that voted Barack Obama into office, had no problem with a dude who was all about murdering babies ...

... are now going to vote for the other guy because some legislation require Catholic hospitals to provide health insurance covering contraception to employees.

I got this ocean-front property for sale in Arizona - from the front porch you can see the sea.


Sunday, February 05, 2012

The Ethicist says the darndest things

Shorter Ethicist
Peter: It is ethical to narc out a guy to thugs with guns?

Ethicist: Better to live on your knees than to die on your feet.  Do what you must to help your fellows see the light!

Fighting for what is yours?  Doing the right thing?  Passé .

The smart, the ethical, the right, thing to do is to help thems with guns in their bad deeds. 

Do it for the team, Bobby.





Saturday, February 04, 2012

A thing I did not know this morning

The baculum (also penis bone, penile bone or os penis) is a bone found in the penis of most mammals. It is absent in humans, but present in other primates, such as the gorilla and chimpanzee.

Baculum


Tab Clearing

What is a Sin?

Speak No Bush   I’m no longer willing to support non-conservative, unconstitutional, financially unsustainable domestic or foreign policy agendas simply because of their Republican origins.

The real third-party threat: Gary Johnson
   Johnson's positions on the issues bear much resemblance to the positions of Ron Paul. Major differences include balancing the budget immediately rather than waiting until 2015, opposition to ending the Federal Reserve System, support for a military alliance with Israel, and belief in global warming.

SSH Tricks

A Simple Lisp Webapp for beginners

Spores  One of the unresolved mysteries surrounding September 11 are what have come to be called the 2001 Anthrax attacks.

Ghandhi & Terrorism: Tackling the “Mad Idea”

Colonization of the Moon

View 711 Thursday, February 02, 2012 
I note that I haven’t said anything about what the government ought to do to help the Middle Class.  Sorry.

The answer, of course, is not much. Mostly, get out of
the way. Get out of the way of development of cheap energy. Stop making
it expensive to hire people and complicated to impossible to fire them.
Repeal a lot of regulations. It’s really not all that complicated.




Better elite better mass

The Great Divorce - David Brooks

There are two tribes in our society now - productive and non-productive.  It's not fair.  So the solution is to ...

. . . but we need a National Service Program. We need a program that would force members of the upper tribe and the lower tribe to live together, if only for a few years. We need a program in which people from both tribes work together to spread out the values, practices and institutions that lead to achievement.

If we could jam the tribes together, we’d have a better elite and a better mass.


Jamming a pack of Morlocks into a herd of Eloi in a DMV-like program of picking up garbage on the highway isn't going to teach anyone anything. 

Except, maybe, how to skate, shirk, and avoid doing anything productive while looking efficient.


Thursday, February 02, 2012

Tab Clearing

How a long-dead activist’s ideas influenced Barack Obama

Abstruse Goose: Other People's Code

An Open Letter to Catholics on Behalf of Ron Paul

The Conversation With a Florida Tea Partier That Should Scare Every Republican

Not Obama's Most Empathetic Moment

Dial 911 if this column makes you spit blood    Tepid. Lukewarm. Disappointing. Not what should be happening four years into a recession (oh, right, that’s supposed to be over) after the Federal Reserve has used all its tricks and our elected officials have bankrupted the country.  But it gets worse.

Organizations Versus Getting Shit Done

Tuesday, January 31, 2012

Well what _about_ Gary Johnson?

A cousin of mine sent me an email last night about Gary Johnson. I hadn't heard of the guy, but I checked out his website.

Says he was a governor and wants to cut spending, legalize marijuana and legalize gay marriage. Fine by me, I guess. Never really gave that stuff much thought. I keep my head down and put food on the table, maybe hunt a little and take my wife out for dinner once in a while.

Johnson was a handyman? That's cool. Successful businessman? Even better. Never raised taxes and they called him "Governor Veto." Whoa, this guy climbed Mount Everest and built his own house! Now, that's awesome. Sounds like my kind of guy: Tough, independent and minds his own business.

I might send this email to a few friends. I know this one who was all ticked one day. He was like, "They're all a bunch of crooks."

He might like this Gary Johnson fella. Seems like a regular joe to me. Except for the Everest thing.

Hey, what about Gary Johnson?

Sunday, January 29, 2012

Newt Gingrich makes it difficult

I've written off the GOP candidates for President.  What they promise to bring is big(ger) government, expanding bureaucracy, endless war in the third world ... well the guy in the White House now is doing a bang-up job of that, already.  Why trade horses in mid-stream, I say.

But Newt went and made it real difficult.  Promised a moon base by 2020.  Said we'd do it by using private industry, offering prizes.

"Whereas the Congress has determined that an American owned Lunar Colony is in the national interest, the first American owned company that shall place 31 American on the surface of the Moon and keep them there alive and well for a period of three years and one day shall be paid a prize of $7 billion dollars."

View 372 July 25 - 21, 2005

Which would get 'er done, if it can be done. 

A moon base, infrastructure to deliver things there, a solid foundation to an actual space age, getting some of our eggs out of this basket.

Oh, elbow room, elbow room.
Got to, got to get us some elbow room.
It's the moon or bust,
In God we trust.
There's a new land up there!


Elbow Room - Schoolhouse Rock

Now how am I supposed to NOT vote for this guy?

Not that I have any actual worries on this score.  The GOP will come to their senses, nominate Romney.  Who will a) promptly loose to the Current Occupant or b) Win the election and then continue the program currently in progress.


Friday, January 27, 2012

Did you kill anyone?

If there’s one thing that can be said about the experience that is joining the Marines, it’s that your friends back home won’t understand a damn bit of it. For every life-altering experience  you may have, good and bad, your friends back home will ... be the same way they were when you left them. Your friends will be doing the same things–going to school, not going to school, working, while you’ll be barraged with culture shock and do things that none of them will ... ever have to worry about.

You’ll meet new people, see new things–new worlds even; and they won’t even begin to understand it. Going home will never be the same again, and being home for too long finds you in the precarious position of wishing you were gone again. The very idea of home becomes a distant memory, because it’s never the same as it was. It’s not that home has changed, ... it’s remained largely the same.

What’s really changed is you ... and you’ll never be the same again. But hey, that’s okay. Regular people live regular lives, and you’ve lived anything but. What’s really important is that you try your best not to alienate everyone at home, and if you need help with it, don’t be afraid to seek it. Your friends and family will never understand, but they can try if you give them a chance.


Terminal Lance #175 "Back Home"



Sunday, January 22, 2012

Tab Clearing

Aaron Sorkin Is Ready to Masturbate All Over Your HBO With The Newsroom  I can't think of a more Sisyphean mission than to try and restore America's faith in the media with a fucking TV show. Yes, reporters used to be depicted as good guys in pop culture, and that's because pop culture back then was naive and stupid.

The Mastering Emacs Reading Guide

The Ultimate Collection of Emacs Resources 

Twelve Things You Were Not Taught in School About Creative Thinking
  I'm not staring vacantly into space, I'm working. Most of the time.

Why the Future Never Gets the SF Right - Michael Flynn  ... anyone who thinks the main basic function of SF is to commit journalism on the future will be perennially disappointed.

Air Force’s Top Brain Wants a ‘Social Radar’ to ‘See Into Hearts and Minds’

The Harvard Classics - in handy digital form.

Wikipedia protest is 'foolish', says Twitter boss

The Iraq War, the Next War, and the Future of the Fat Man

The Rise of the Praetorian Class

Newsweek: Why Are Obama's Critics So Dumb?  The article is okay. The cover makes it clear that nothing would give the editors of Newsweek greater joy than to drop their collective knees and give the President (D) a right good sucking.

The Cambered Hand Push Up.

Schlep Blindness.

Ideas: Mormon Candidates, Gay Marriage, and Polygamy.

I had no idea judges could order grown men and babies to be executed.   Funny ol' world.


Saturday, January 14, 2012

Grandchild Update

A year old, and he's getting sly.

Crawls into the kitchen. Reaches for the dog's dish: nothing better than dog food.  Remembers that Mom is in the other room.

Sits up all innocent-like, cranks his head around to check his six. Mom is not paying attention.

Situation: excellent. On to the dog dish!

Thursday, January 12, 2012

Better to be the doer than the doee

Mr. Pournelle says it pretty well, about the jarheads who pi*ssed all over dead enemy fighters . . .

... some things are pretty clear. First, they allowed a comrade to tape this, and he put it up on a social medium, and it got loose. Is anyone here astonished? Which says several things about these particular Marines.

First, they won their battle. It’s them that’s doing the urinating, not being urinated on. Urinating on the enemy is a practice of war from at least 3,000 years ago, and probably a lot longer. It’s better to be the guy letting fly than the recipient. When you send young men into combat and they win this is what happens.

Second, none of these guys is ready for promotion to any kind of command NCO level. They may be good as combat leaders and may not – they did win this fight, after all – but they don’t think through enough. This hands the Taliban a bit of a propaganda device, but then we have plenty of tapes the Taliban made about themselves.

Third, this is a Marine matter, and if it were left to me I’d leave it to the Company Commander. That’s what company grade officers are for. There will be howls from the media, of course. It’s a free country. Of course it’s free because we have troopers like these.

And fourth, if nobody else wants them, in the extremely unlikely event that they post me to a combat command over there, I’ll take them. They look like good troops to me.



But because it went viral and because of a lot of reasons it's going to go a lot higher than the company commander and I'll wager whoever is the highest ranking Marine in the group is going to get an other than honorable out of this sorry sad mess.

Sucks but there it is.



This is ...

the oddest and most interesting thing I've seen all week.

BaCon - A free Basic to C converter for Unix-based systems.

That it's written in Bash or Kornshell stopped me for a minute - but only because I'm used to thinking of bash as a tool I use to interact with a computer and not a programming language.

Come to think of it, I think of it this way even when I'm writing and using bash scripts.  Which is, hey, programming.  How about that.

Which is interesting because it's been real obvious for a few years now that the job of 'systems administrator' is changing from 'babysit a server' to 'write code that babysits a server'.

Times change.  Be nimble or find yourself on welfare. 

Think I'll setup BaCon and see how much BASIC I don't remember.


Tuesday, January 10, 2012

vi is an editor . . .

 "vi is an editor with two modes: one which destroys your input and the other which beeps at you."

~ From Someone in Twitter