Daily Archives: 2010-05-06

Roasted Eggplant with Red Pepper Cream Sauce

My post-semester “I have time to cook again!” food, Roasted Eggplant with Red Pepper Cream Sauce:
peppercreameggplant_sm.jpg
The recipe was one of those “Popped, mostly formed, into my head” things that are always the most fun to make. The eggplant is just sliced into eighths, drizzled with salt, pepper, and olive oil, and broiled until cooked. The sauce is the real fun of the affair. In one pan, I cooked down a thinly sliced red pepper and some crushed tomato in herbs, garlic, and olive oil, to make delicious red slime.
peppersauce.jpg
In another pan, I set up a roux with some milk, then added the pepper mixture, some appropriate cheeses for texture (In retrospect, probably would have been better without), and more milk until it reached roughly the right consistency.
The combination was served over farfalle, which the foodblogging category here should make clear is my default pasta.
I got lazy and used the toaster oven to do the broiling, so the slices were too close to the source and got a little dry/singed on the tips. I also missed on ratios a bit, and made too much roux for the volume of cooked-down pepper, so the sauce was thicker and richer than I intended. For a first pass at an unreferenced idea, though, this was a pretty solid success. Very interesting flavors and textures, particularly the herb/garlic/spice mating to the sweetness of the cooked down peppers, and the two distinct kinds of creaminess from the sauce and the flesh of the eggplant.
As a side note, making this is caused me covet knives; despite the fact that the housemates and I have a pretty nice set of knives between us there isn’t a narrow bladed slicer or a Nikiri in the house, and they both would have been handy here.

Posted in FoodBlogging, OldBlog | Tagged , | Leave a comment

User Time Logged In

A lab I sometimes do computer work for asked for a mechanism to account how long each user spends logged in on some *nix (Linux and ancient Solaris) boxes. I don’t know of a “proper” solution, so I did things the UNIX way: I wrote a stupid little awk script that parses the output of last -R to get a minute total. This isn’t a terribly clean or safe script, but it does “just enough” input sanitizing, and seems to work. Some (Linux) boxes I have access to appear to clear/archive/rotate wtmp on boot, so it doesn’t help on those.
Does anyone know of a better way to do this? Is there some utility I’m forgetting? Is this script dangerous in some way I’m not thinking of? Script follows:

#!/bin/sh
last -R | 
awk '
{
	user=$1;
	uselength=$9;
	
#	Check line format
	if (NF != 9) {
	print "Line " NR " discarded, " NF " entries. (Reboot messages, etc.)"
	}
	else if( $NF == "in"){
	print "Line " NR " discarded, still logged in."
	}
	else{
	
	logins[user]++;
# These times are (Days+Hours:Minutes)
	parsedtime=0;
	gsub("[()]","",uselength);
	split(uselength, sptime, "[+:]");
	parsedtime+=sptime[1]*24*60;
	parsedtime+=sptime[2]*60;
	parsedtime+=sptime[3];
	logintime[user]+=parsedtime;
	}
}
	
END {
	for (i in logins) {
		print i " Logged in " logins[i] " times, for a total of " logintime[i] " minutes";
	}
}'
Posted in Computers, DIY, General, OldBlog | Leave a comment