Explaining Syslog to RH Support

Were my expectations too high?

Support, what RHEL service is logging this?  rhnsd?  yum-updatesd?
It should show the process name in the syslog output.  Please fix?

Oct 27 10:00:04 rcf-monitor : 4 updates available

Response:

I think that rfc-monitor is likely a third-party service of some sort. I haven’t been able to find any mention of it internally or any package or file with that name on RHN. So I don’t think that’s yum or rhnsd talking.

Support,

Syslog logs the hostname.  rcf-monitor is the hostname.

Proper syslogging looks like this, where you will note
"ntpd" as the service responsible for generating the
syslog line.

Nov  1 03:52:51 rcf-monitor ntpd[27018]: message here...

twm Shirt

Paying homage to the classic Tab/Tom’s Window Manager, it’s the twm shirt, available with no markup in cost toward my wallet.

Designed by yours truly. If you’d like to do something else with the design, here it is in multiple formats, and I’d love to hear if you liked it.

Adjusting a PostgreSQL Sequence

I recently had the unfortunate task at work of copying most of a production PostgreSQL database to a development server. The whole database would have been simple. It’s the “most of” part that made things messy. At any rate, I ended up in a position where I needed to make various incorrect “sequence” definitions match their respective tables. For example, the maximum id in table principals was 18133 and the sequence used for that primary key was currently at, well, 1.

I’d never ever delved into this sort of thing before (I had to look up what a PostgreSQL sequence was) as I’m not a DBA by trade. I also won’t likely have to do this again for quite some time, so here are my notes:

Query the last value for the sequence (well call this SEQLAST below, and assume it returned 3):

SELECT last_value FROM mytable_sequence;

Query for the largest id (our primary key, we’ll call this LARGESTID below and assume it returned 18133):

SELECT id FROM mytable ORDER BY id DESC;

If SEQLAST and LARGESTID match, you’re all set. If they don’t, you need to adjust mytable_sequence so that the next primary key issued is LARGESTID + 1 for mytable. You do this with the setval sequence function.

SELECT setval('mytable_sequence', 18133);

This reads as, “Set the last value of mytable_sequence to 18133 and increment before handing out the next number when nextval() is called for this sequence.” The incrementing is implied, though you could also specify the clearer and functionally equivalent statement via:

SELECT setval('mytable_sequence', 18133, true);

You could also specify “Set the next value of mytable_sequence to 18134 and do not increment before handing out the next number when nextval() is called for this sequence.”

SELECT setval('mytable_sequence', 18134, false);

Reference: Google Search: site:postgresql.org postgresql setval

The First InterOp

I wasn’t aware of this and thought it was cool.

From The Robustness Principle Reconsidered:

The original InterOp conference was intended to allow vendors with Network File System (NFS) implementations to test interoperability and ultimately demonstrate publicly that they could interoperate. The first 11 days were limited to a small number of engineers so they could get together in one room and actually make their stuff work together. When they walked into the room, the vendors worked mostly against only their own systems and possibly Sun’s (since as the original developer of NFS, Sun had the reference implementation at the time). Long nights were devoted to battles over ambiguities in the specification. At the end of those 11 days the doors were thrown open to customers, at which point most (but not all) of the systems worked against every other system. By the end of that session the NFS protocol was much better understood, many bugs had been fixed, and the standard was improved. This is an inevitable path for implementation-driven standards.

On Home Renovation

A month or two ago, I finished up a pale blue and chocolate (trim) painting of my bedroom. I also replaced all of the 2-prong (but internally grounded) outlets with 3-prong outlets and replaced the window handles and lock. I was really enjoying my work and detail. I got to the door part of the project and thought,

Gee, before I paint this, let me make this cheap hollow luan-sheeted door better with a new doorknob and door stop.

I’ll see if I can fill it with insulating foam, too, for sound-deadening.

Also, it’s sticking at the door-jamb between the hinges and messing up the previous paint, so I’ll fix that somehow too.

See, new solid wood doors cost $320 or so from Lowes, and this house isn’t in a neighborhood where such investment would be returned at resale. Read More »

buy cheap lexapro | online health information | buy seroquel xr | colonial health insurance | cheapest place to buy prozac | health diagnosis online | buy acomplia online cheap