LSI megaraid write cache via CacheCade

technology

If you like to use the MegaRAID write cache feature make sure that you indeed have a version 2.0 key.

Version 2 keys have the part number LSI00292 while Version 1 keys have the part number LSI00248.

It is possible to get the Version 1 flavor, since both keys share a part number. If you use a Version 1 key
nothing will say this in the MegaRAID “WebBIOS” software or any of the command line tools that LSI offers.
The only indicator will be the part number on the packaging and the fact that write cache will not be enabled.

assemble images randomly

linux misc

Want to assemble images randomly into one? That’s easy in the command line if you have imagemagick installed:

Assuming you have all pictures in the current directory:

for i in *jpg ; do mv "$i" $RANDOM.jpg ; done

this renames all files ending in jpg into files that have a random number. Files might get overwritten should the random number come up again.

Assembling is as well:

montage *jpg -mode concatenate outputfilename.jpg

If you would run this again outputfilename.jpg would be a used as source image as well.

avoid enum suggestions in mysql procedure analyse()

technology

If you don’t want to see enum suggestions in a mysql procedure analyse() call on a table then you simply run it like:


select * from table_name procedure analyse(1,1) \G

The (1,1) will always show you non enum solutions for each column.

Firefox 22 . Mac OS X 10.6.8 and Quicktime 7.6

OSX technology

It seems that in any dying project the bureaucrats, middle managers and otherwise challenged people are the last to leave. They cling on to past greatness and try to re-evoke what is gone.

The last Firefox update 22 put the latest available Quicktime Version 7.6.8 on their blocklist. Clips will not longer play, but a warning will show up, requesting an update. Only problem is that Quicktime 7.6.6 is not out of date for OS X 10.6.8. FF has acknowledged this and it is fixed. But a download of FF still has the broken blocklist.xml.

If you want or need to fix this manually you can do:

1) locate blocklist.xml for instance via

mdfind blocklist.xml

2) remove the 3 lines:

<pluginitem blockID="p408">
<match name="filename" exp="QuickTime Plugin\.plugin" />                      <versionrange minVersion="0" maxVersion="7.7.0" severity="0" vulnerabilitystatus="1"></versionrange>
</pluginitem>

3) restart Firefox

Hey Flickr …

internet

Hello Flickr,

next time that you remember that I did set up an account in 2006 and send me an email please make sure that your stuff, actually, well, how I can put this: works.

I knew about you. All along. I didn’t us you. Many reasons. Now there is 1TB of storage. That’s great. Just that I was unable to upload anythings since your uploader is broken.

Maybe wait another 7 years, and content me again if you have something else worth looking at. You had my attention. Bummer that you were not ready for it.

– your truly

linux

When installing opendkim on a Centos 5.7 or 5.9 system following the wonderful howto by Steven Jenkins mail stops going out and the maillog shows:

May 23 12:55:53 her9 postfix/cleanup[4836]: warning: cannot receive milters via service cleanup socket socket
May 23 12:55:53 her9 postfix/smtpd[4832]: warning: premature end-of-input on public/cleanup socket while reading input attribute name
May 23 12:55:53 her9 postfix/smtpd[4832]: warning: cannot send milters to service public/cleanup socket
May 23 12:55:53 her9 postfix/smtpd[4832]: 8DBDB4D48004: client=localhost.localdomain[127.0.0.1]
May 23 12:55:53 her9 postfix/master[4824]: warning: process /usr/libexec/postfix/cleanup pid 4836 killed by signal 11
May 23 12:55:53 her9 postfix/master[4824]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling

The syslog is even scarier:

May 23 12:55:53 her9 kernel: cleanup[4836]: segfault at 0000000000000008 rip 00002b152350db10 rsp 00007fff855746e8 error 6

Yes, a segfault. Things work better when SELinux gets disabled.
Without going deeply into the reason of this incompatibility the following commands make opendkim work while SELinux is still active.

This command will show you what did cause trouble today, and convert it already in to the syntax for an ‘allow’:

ausearch -m avc -ts today | audit2allow


If what you see is indeed only about opendkim you then can go ahead and install this:
ausearch -m avc -ts today | audit2allow -M yourdesiredmodulename
semodule -i yourdesiredmodulename.pp

Things work much better then.

The Centos SELinux How To is a helpful resource for this kind of thing.

infinite sar display – neat option

history linux technology

wanting watch sar run in a terminal in linux indefinitely one can start it with


sar 1 0

The first number indicates the sampling time in seconds. The second number is usually the number of samples you like ot see.

If this number is 0 then sar will not stop. And as another bonus will look at how large the terminal is and will display a new header
accordingly.

Command line can be user friendly. I really like those little gems that show up in all software: People spending their time to make something better. It is like a little gift to the world. With software the value of even a little detail can potentially be significant. Which is an awesome thing.

For all we know it might very well be that the feature described here will please people in a hundred years from now.

I don’t think that mankind will manage to drop unix at this point. Neither can it give up on the use of steel. Yes there might be new systems, much like there have been new materials.

The new gets all the attention. But in many cases the new will not replace the old entirely. Only journalists tend to think that way. In reality the findings of Mr Newton help Boeing and Airbus today to build tubes with wings that shuttle people around the globe close to the sound of speed.

I hate this guy

daily life technology

Working on some code which is from 1992. Amazing fact number one is that the bits did not rot. Still compiles like a charm. But I really really hate the guy who wrote it. I know that back in the day storage was an issue. Things needed to be a bit more optimized than today. But having it all come down to a line like:


pos1 = ((*(*(l+x)+y)));

feels a bit outdated. Sure, it still works. Couple of comments could have been nice. Those extra brackets barely make up for it. I think the best thing that the author of those lines did, was not to get under a bus or die in any other way: I would not be here in that case.

“Fight Club” in 2013

communication daily life economy history internet marketing media politics

Watching “Fight Club” again today is a strange and very interesting experience.

So much has changed since the book / film came out. It is clearly set in a different epoch.

Its character ‘Tyler Durden’ says:

God damn it, an entire generation pumping gas, waiting tables;
slaves with white collars.  Advertising has us chasing cars
and clothes, working jobs  we hate so we can buy shit we don't need.

…

We've all been raised on television to believe
that one day we'd all be millionaires, and movie gods,
and rock stars.

But we won't. And we're slowly learning that fact.
And we're very, very pissed off.

It seemed fitting at the time. What happened since then?

Many of those jobs are gone. People in that slice of society
make less money today. Sometimes even in absolute dollars.
Certainly corrected for inflation. In the same time the share
of the upper sliver of society on the other end of the wealth
distribution has nothing but exploded.

So why seems the portrayed unrest even further removed
from reality than less than a score years ago?

The answer might lie in the proliferation of computer games and the Internet
during that time.

Both soak up all that extra male testosterone and time that would
otherwise find not much constructive application in the world of 2013.

Oh, and it looked absolutely awesome. I miss movies shot on film.

4×6 index card or Din A 6 Karteikarte

deutschland

In case you are looking for Din A6 Karteikarten in the US you can use 4×6 index cards. These are close enough.