<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rlucas.net: The Next Generation</title>
	<atom:link href="http://blog.rlucas.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rlucas.net</link>
	<description>...fighting entropy one financing round at a time</description>
	<lastBuildDate>Wed, 10 Aug 2011 16:04:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The other Lighter Capital</title>
		<link>http://blog.rlucas.net/finance/the-other-lighter-capital/</link>
		<comments>http://blog.rlucas.net/finance/the-other-lighter-capital/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 16:04:56 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[finance]]></category>
		<category><![CDATA[bic]]></category>
		<category><![CDATA[china]]></category>
		<category><![CDATA[revenueloan]]></category>
		<category><![CDATA[zippo]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=544</guid>
		<description><![CDATA[Today, the team at Lighter Capital (formerly RevenueLoan) kicked off a promotion, where we commit to investing $500k in a company that applies online by 31 August 2011 (that&#8217;s 21 days and counting). We did lots of the usual things, plus some unusual things, to get the word out &#8212; press releases, blogger outreach, videos, [...]]]></description>
			<content:encoded><![CDATA[<p>Today, the team at <a href="http://www.lightercapital.com/">Lighter Capital (formerly RevenueLoan)</a> kicked off a promotion, where we commit to investing $500k in a company that applies online by 31 August 2011 (that&#8217;s 21 days and counting).</p>
<p>We did lots of the usual things, plus some unusual things, to get the word out &#8212; press releases, blogger outreach, videos, tweets, etc.  We&#8217;re pleased to trumpet our &#8220;Lighter&#8221; name, as indicating both a lighter-weight process and a lighter attitude than the traditional banks.</p>
<p>But in our research we discovered: <i>we&#8217;re not the only &#8220;lighter capital&#8221; out there</i>.</p>
<p>In fact, the industrial city of <a href="http://en.wikipedia.org/wiki/Wenzhou">Wenzhou</a>, south of Shanghai on China&#8217;s eastern coast, claims the title of &#8220;lighter capital of the world.&#8221;  To wit:</p>
<blockquote><p>In Wenzhou, there are more than 500 lighter manufacturers that produce 5,000 kinds totaling 500 million lighters each year. Among that, 80 percent are exported abroad. Lighters from Wenzhou make up 70 percent of the world&#8217;s market for lighters with metal shells, and 80 percent of the European market.</p></blockquote>
<p>From the <i>China Daily</i>, http://www.china.org.cn/english/2002/Apr/31597.htm</p>
<p>So, to our &#8220;lighter&#8221; brethren across the big pond &#8212; 你好， 我们爱你的名字！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/finance/the-other-lighter-capital/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force a reference to System.Core in Visual Studio 2010</title>
		<link>http://blog.rlucas.net/bugfix/force-a-reference-to-system-core-in-visual-studio-2010/</link>
		<comments>http://blog.rlucas.net/bugfix/force-a-reference-to-system-core-in-visual-studio-2010/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 02:48:49 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[bugfix]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=537</guid>
		<description><![CDATA[There are reasons why you might need to add a reference to &#8220;System.Core&#8221; to your Microsoft Visual Studio project. (For example, if you wish to compile/build both inside the IDE and from the command-line with MSBuild.exe.) However, if you try to do this through the IDE, it will barf at you: &#8220;A reference to &#8216;System.Core&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>There are reasons why you might need to add a reference to &#8220;System.Core&#8221; to your Microsoft Visual Studio project.  (For example, if you wish to compile/build both inside the IDE and from the command-line with MSBuild.exe.)</p>
<p>However, if you try to do this through the IDE, it will barf at you: &#8220;A reference to &#8216;System.Core&#8217; could not be added.  This component is already automatically referenced by the build system.&#8221;</p>
<p>Alas, that&#8217;s a big fucking lie.  It&#8217;s referenced by the IDE when it invokes the build system, but not by MSBuild itself.  So sometimes, you indeed must add such a reference, but you can&#8217;t do it from IDE-land.  So close VS2010 and fire up vim.  Add a line to the .csproj file in question, telling it to:</p>
<p> <code>&lt;Reference Include="System.Core" /&gt; </code></p>
<p>Hat tip to Ashby at StackOverflow:</p>
<p>http://stackoverflow.com/questions/1302488/the-type-or-namespace-name-linq-does-not-exist-in-the-namespace-system-data/4331322#4331322</p>
<p>I got to this point when recompiling something for .NET 3.5 that had originally been coded/built for .NET 4.0; it wouldn&#8217;t import the LINQ namespace without being told to import System.Linq, but then couldn&#8217;t find it without the System.Core reference being made explicit.  Arrgh.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/bugfix/force-a-reference-to-system-core-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fukushima-type reactors in the USA</title>
		<link>http://blog.rlucas.net/tech_and_market_reflections/fukushima-type-reactors-in-the-usa/</link>
		<comments>http://blog.rlucas.net/tech_and_market_reflections/fukushima-type-reactors-in-the-usa/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 23:02:05 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[tech_and_market_reflections]]></category>
		<category><![CDATA[fukushima]]></category>
		<category><![CDATA[nukes]]></category>
		<category><![CDATA[reactor]]></category>
		<category><![CDATA[safety]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=522</guid>
		<description><![CDATA[I was moving a bookshelf around my house this weekend when I found a copy of &#8220;Nuclear Power Reactors in the World,&#8221; an April 2000 publication by the IAEA.  (Don&#8217;t ask why I have this kind of crap lying around &#8230;) It struck me that people would want to know what reactors are &#8220;like&#8221; the [...]]]></description>
			<content:encoded><![CDATA[<p>I was moving a bookshelf around my house this weekend when I found a copy of  &#8220;<a href="http://www-pub.iaea.org/mtcd/publications/PubDetails.asp?pubId=6120">Nuclear Power Reactors in the World</a>,&#8221; an April 2000 publication by the  IAEA.  (Don&#8217;t ask why I have this kind of crap lying around &#8230;)  It struck me that people would want to know what reactors are &#8220;like&#8221; the Fukushima Daiichi reactors in Japan which have been causing all sorts of problems lately.  Well, here goes:</p>
<p><iframe src="http://batchgeo.com/map/8b32827f1a3ae2904616c13925626c59" frameborder="0" width="100%" height="550" style="border:1px solid #aaa;border-radius:10px;"></iframe></p>
<p><small>View <a href="http://batchgeo.com/map/8b32827f1a3ae2904616c13925626c59">BWR 1970s reactors in the USA</a> in a full screen map</small></p>
<p>The March 2011 earthquake / tsunami / reactor emergency brought to the public eye the dangers of &#8220;active safety&#8221; in engineered systems.  Elements of reactor design and operation which may have seemed appropriate in the 1960s (when these reactors were designed) now seem like &#8220;what were they thinking??&#8221; anachronisms to concerned laypersons.</p>
<p>Specifically, I&#8217;m talking about the need for electrical pumps to be in continuous operation to prevent reactor core overheating; use of water (hydrolysible into 2H2 and O2, explosive and reactive gasses) as coolant; use of cladding and fuel alloys that are subject to fire risk and enhanced toxicity (zirconium and MOX); and storage of spent fuel rods in top-floor containment pools subject to sloshing and evaporation and requiring electrical pumping.  Keep in mind that all of the bad shit at Fukushima started happening <em>after the earthquake and tsunami had passed,</em> during a period where the active safety systems relatively slowly stopped working.</p>
<p>(Lots of folks don&#8217;t realize it, but you <em>can</em> build stable, passively safe, high tech systems, to a degree.  Simple airplanes are built to fly themselves.  If you&#8217;re up in the air piloting a Cessna in level flight at, say, 5000 feet, you could probably take a 10 minute nap and live to tell about it.  Yes, there&#8217;s gravity involved, but the aerodynamics involved let the plane stay up there either flying (engine on) gliding (engine off) for quite a while with no requirement for constant input and management.  Contrast this with something like the Joint Strike Fighter, where the plane is intentionally aerodynamically unstable and, without the constant inputs of a high-speed computer, would fall out of the air like a brick.  We want reactors that are boring and Cessna-like, not delicate JSF divas that literally melt down without enough attention.)</p>
<p>(Non-geek version: the Fukushima-type reactors are like delicate plates spinning on top of poles.  You can&#8217;t just leave them be without expecting to break a lot of shit.  And they don&#8217;t tend to revert to safe or stable states when they break.)</p>
<p>The above map names the US-based reactors with BWR type (boiling water; arguably the most dangerous type still in service), manufacture by GE (GE, Toshiba, and Hitachi were the suppliers at Fukushima), and construction dates that include the 1970s (1969 in the case of Nine Mile Point).  This does <em>not</em> mean that you should freak out if you live near these plants.  But it does mean that, in the broadest sense, these types of reactors are subject to the same types of risks as the Fukushima reactors.  (Keeping in mind that even Fukushima was fine for 30+ years until a 9.0 earthquake.)</p>
<p>If you want to do something positive about nuclear power in general, don&#8217;t freak out or ask for all nukes to be banned.  Instead, the nuke-minded citizen should:</p>
<ul>
<li>&#8230;push for greater research on safer alternatives like <a href="http://web.mit.edu/pebble-bed/">pebble bed reactors</a>.</li>
<li>&#8230;push your Congressional representatives to get off their asses and open up a real, centralized, better-than-inaction interim solution for the nation&#8217;s nuclear waste.  (This gets rid of fuel rods sitting in ponds at the very place where they can do the most incremental harm when things go wrong&#8230;)</li>
<li>&#8230;pay, pay, pay.  [Good] nuclear power will <em>not</em> be cheap.  But it can be vastly improved from the Fukushima state of affairs.  However, it will take enormous amounts of money for research, and the political will to eschew interim half-assed solutions (like putting cheap BWRs into service well into the 1970s, when other approaches were already either viable or in progress).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/tech_and_market_reflections/fukushima-type-reactors-in-the-usa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why is Port 21 apparently open on my firewall?</title>
		<link>http://blog.rlucas.net/bugfix/why-is-port-21-apparently-open-on-my-firewall/</link>
		<comments>http://blog.rlucas.net/bugfix/why-is-port-21-apparently-open-on-my-firewall/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 20:26:53 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[bugfix]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[pix]]></category>
		<category><![CDATA[port 21]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=520</guid>
		<description><![CDATA[Scenario: You set up a server somewhere on the public Internet.  You lock down its ports to the minimal subset you need using firewall(s).  Yet, somehow and for some strange reason, nmap reports that port 21 (FTP) is open on your server!  Sure enough, you do a &#8220;telnet myhost.cxm 21&#8243; and it connects!  Shit-damn, what&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Scenario: You set up a server somewhere on the public Internet.  You lock down its ports to the minimal subset you need using firewall(s).  Yet, somehow and for some strange reason, nmap reports that port 21 (FTP) is open on your server!  Sure enough, you do a &#8220;telnet myhost.cxm 21&#8243; and it connects!  Shit-damn, what&#8217;s going on??</p>
<p>Don&#8217;t bang your head against your iptables or pf or PIX or ASA config.  First, check to make sure that the environment you&#8217;re checking <em>from</em> behaves right.  Do a &#8220;telnet google.com 21&#8243; and see if it connects.</p>
<p>Some NAT setups in offices apparently try to do some stateful inspection of outbound active FTP in order to rewrite the addresses/ports involved, and these can intercept <em>outbound</em> requests on port 21, making it seem like any host is picking up on that port.</p>
<p>Try nmap&#8217;ing or telnet&#8217;ing from an outside host directly connected to the public internet.  And make sure that your subsequent security scans/checks come from such a host.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/bugfix/why-is-port-21-apparently-open-on-my-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Capital As A Service: A Manifesto</title>
		<link>http://blog.rlucas.net/vc/capital-as-a-service-a-manifesto/</link>
		<comments>http://blog.rlucas.net/vc/capital-as-a-service-a-manifesto/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 03:57:39 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[vc]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=510</guid>
		<description><![CDATA[We have been misled.  We, the entrepreneurs, early employees, and investors who power the world of technology startups, are told that &#8220;everything has changed.&#8221;  Everything is now &#8220;agile,&#8221; &#8220;lightweight,&#8221; and &#8220;flexible,&#8221; and it&#8217;s all going to be available to us &#8220;as a service.&#8221;  We create user-friendly experiences, using elegant free open source frameworks, running just [...]]]></description>
			<content:encoded><![CDATA[<p>We have been misled.  We, the entrepreneurs, early employees, and investors who power the world of technology startups, are told that &#8220;everything has changed.&#8221;  Everything is now &#8220;agile,&#8221; &#8220;lightweight,&#8221; and &#8220;flexible,&#8221; and it&#8217;s all going to be available to us &#8220;as a service.&#8221;  We create user-friendly experiences, using <a href="http://www.djangoproject.com/">elegant free</a> <a href="http://rubyonrails.org/">open source frameworks</a>, running just as many <a href="http://aws.amazon.com/ec2/instance-types/">EC2 instances</a> in the &#8220;cloud&#8221; as we need at any given moment.  We coordinate the world&#8217;s information by mashing-up APIs from across the Web, and we coordinate our dev teams with daily <a href="http://scrummethodology.com/">Scrum</a> standups and free collaboration tools.  <a href="http://www.amazon.com/Four-Steps-Epiphany-Steven-Blank/dp/0976470705">A book</a> can tell you how to have an &#8220;epiphany&#8221; and learn all this for yourself, and a thriving startup culture <a href="http://ycombinator.com/">on</a> <a href="http://www.techstars.org/">the</a> <a href="http://en.wikipedia.org/wiki/Silicon_Alley">coasts</a>, in the Rockies and Chicago, and elsewhere will support you.</p>
<p>But everything has <em>not</em> changed.  Just try raising capital.</p>
<p>Software is now a service.  Hardware, indeed, infrastructure is now a service.  Need an office?  <a href="http://coworking.com/">Use a Web service</a> to pick a short-term coworking space.  Outsourcing?  Sure &#8212; <a href="http://www.odesk.com/">there&#8217;s a service</a> to manage those service providers.  Hell, <a href="http://www.oncompare.com/">the boys at OnCompare now</a> have a service <em>to help you select the services</em>.  Everything you need is discoverable, trialable, and available 24/7, online, with a few clicks and a credit card, right?</p>
<p>But the moment you start to feel the rhythm, decide you want to dance to the music, and try to roll up funding to grow one of these agile new businesses, the record screeches to a stop.  Needle scratch, and silence: a disco full of folks staring at you.  Are you crazy?  You want <em>what</em> on demand? <em>Capital</em> as a service?</p>
<p>Yes.  You want just enough of it, just when you want it, conveniently and as automated as possible.  You want to try it out in 10 minutes, understand it, trust it, and, if you like it, use its APIs to integrate with your business processes.  This is how you <a href="https://adwords.google.com/">advertise for clicks</a>, how you <a href="http://99designs.com/">get a new logo designed</a>, and how you <a href="http://www.joyent.com/">provision servers</a>.</p>
<p>So what is money&#8217;s major malfunction?  When you can get 100,000 virtual server instances started for you in a minute, why does it take days and weeks (or worse) to get $100,000 in working capital?</p>
<p>Something&#8217;s wrong with this picture.  And it&#8217;s about to be fixed.</p>
<p>Find a money-man and ask him about &#8220;<a href="http://en.wikipedia.org/wiki/Efficient-market_hypothesis">efficient markets</a>.&#8221;  He will give you a sparkling smile and tell you the MBA answer, that markets tend to squeeze out transaction costs, and costly middlemen, and price gaps.  Then ask him about the cost of doing transactions with him.  Or ask if he&#8217;s a costly middleman.  Or ask what &#8220;price&#8221; he pays his investors to use the money.  Is he still smiling the MBA smile?</p>
<p>We like having coffee with our investors.  But you shouldn&#8217;t have to savor a fine latte from <a href="http://cherryst.com/">Cherry Street</a> or <a href="http://www.coupacafe.com/">Coupa</a> to get funding.  Sand Hill Road is a lot more fun to travel on a bicycle carrying a picnic, than in a rental car carrying a pitch deck.  And banks are more fun once they&#8217;re <a href="http://trinityplacenyc.com/">turned into bars</a>.</p>
<p>Money, especially the &#8220;buy side,&#8221; loathes change.  From where Money sits, everything is fine: by definition, wherever the Money is, folks are feeling pretty flush.  And so the Money will resist change, it will cling to its prerogatives.  Bankers would still be on the golf course by 3 PM if ATMs hadn&#8217;t revolutionized their customers&#8217; expectations.  For heaven&#8217;s sake, it&#8217;s the year 2011, and the <a href="http://www.flickr.com/photos/emilio_guerra/3715837831/">New York Stock Exchange</a> still closes at 4 PM.  The barbarians are at the gates: it&#8217;s about time for the &#8220;buy side&#8221; to get a little less comfortable.</p>
<p>About to go public on the Big Board?  Toying with a half-billion M&amp;A offer?  Trying to pioneer commercial space travel?  Building nuclear submarines?  OK, you want <a href="http://www.harvard.edu/">old-school</a> money from <a href="http://www.last.fm/music/Sugarhill+Gang">old-school</a> money-men, with old-school suits and <a href="http://www.imdb.com/title/tt0357413/">rich mahogany</a>, Corinthian leather, and white-shoe lawyers.  But rolling up the cash to take your SaaS company from $2 M to $4 M next year?  It it worth 12 weeks of pitching and partner meetings and <a href="http://www.purell.com/">Purell</a> between uncounted firm handshakes, with no guarantee of success?</p>
<p>We think not.  For a <a href="http://www.imdb.com/title/tt0087332/quotes">specter</a> is hanging over the Internet: the specter of capitalism.  And we believe that capitalism should and will deliver its promise <em>as a service</em>.  We at <a href="http://www.revenueloan.com/">RevenueLoan</a> are not the only ones who see this; we may not even be the ones who ultimately realize it.  But make no mistake: capital for growing technology companies is going to be available on-demand, as a service, and players in this market who ignore this trend do so at their peril.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/vc/capital-as-a-service-a-manifesto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>secedit for setting security policy in windows server 2008 r2 server core</title>
		<link>http://blog.rlucas.net/bugfix/secedit-for-setting-security-policy-in-windows-server-2008-r2-server-core/</link>
		<comments>http://blog.rlucas.net/bugfix/secedit-for-setting-security-policy-in-windows-server-2008-r2-server-core/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 01:56:25 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[bugfix]]></category>
		<category><![CDATA[insanity]]></category>
		<category><![CDATA[msft]]></category>
		<category><![CDATA[poor engineering]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=499</guid>
		<description><![CDATA[in which our hero beats his head against secedit and the Windows security policy documentation until you are served up a tasty skull-pulp of useful and hard-won knowledge.]]></description>
			<content:encoded><![CDATA[<p>Concepts:</p>
<p>There is a policy running on the system.  There may be one or more databases in .sdb files which are files representing a possible policy that could be run.  These are stored in c:\windows\security\database\.  One may &#8220;export&#8221; a policy out to a configuration .ini file (the docs for secedit say .inf, but it is clearly the venerable .ini format), which policy comes either from a database .sdb file, or from the current running system policy (if no policy is specified when running secedit.exe on the command line).  One may edit this configuration .ini file (the docs ambiguously call it a &#8220;security template&#8221; as well, but the command line options all say &#8220;cfg&#8221;).  You then create a new security database .sdb file with the &#8220;import&#8221; syntax.  Contrary to a lot of stuff on the Web, you don&#8217;t need to put it into some particular magic database (but see below for path gotchas) like the original secedit.sdb; put it in a new one.  Once you have a new, valid, legit database .sdb file, you only <em>then</em> use &#8220;configure&#8221; to apply the database file to the current system.</p>
<p>Lots of gotchas here.</p>
<p>Sometimes when secedit.exe fails, it is silent, like a good UNIX program, but it will return an %ERRORLEVEL% so check that or you will be bamboozled.  It is noisy when it succeeds and sometimes even noisier when it fails (except when it&#8217;s silent).</p>
<p>Secedit silently failed in many confusing ways if either the security database .sdb or the configuration .ini was located on my z: drive, which in this case was a VMware shared folder on a Mac OS X system.  Move stuff to a C: temp dir, then clean up afterwards, because hey, writing xcopy lines in batch files is fun.</p>
<p>The configuration .ini files are in full on, utf-16 format.  Two fucking bytes per character.  Nice.</p>
<p>If you try to create a brand-new configuration .ini file without reference to anything, you do not get a listing of the default settings, but rather an unhelpful, nearly-empty file that informs you that Description=Default Security Settings. (Windows Server).</p>
<p>If you try to look up the values for the various sections, you just plain can&#8217;t get them anywhere.  If you go to <a href="http://technet.microsoft.com/en-us/windowsserver/bb310732.aspx">this horrible javascript monstrosity of a reference</a> site and click Technical Reference (for Windows Server Group Policy), you can get a giagantic, unstructured spreadsheet that has relatively lengthy (but non-technical) prose about the various settings.  But it won&#8217;t tell you which sections they go under in the .ini file, nor the requirements for each field, some of which are registry settings and some of which are not.  If you want to see something that was apparently done as a class project by a charity course taught for retarded non-native English speaking remedial computer science students by the generous and distinguished engineers of Microsoft (who are clearly working on better and more interesting problems than, oh, say, making sure the OS&#8217;s core security API is sensical and internally consistent), you can look at <a href="http://gps.cloudapp.net/">this horrifying jumble of shittiness</a>, which can&#8217;t search for shit but mollifies you with funny Engrish when it fails (I am not kidding: &#8220;We probably hit search limit.  Try to redefine your search string.&#8221;) and as a bonus demonstrates the sloth of Azure serving AJAX (because, you know, actually putting the documents into an html page where anyone&#8217;s browser &#8220;find&#8221; function could speedily search for it would lack the pedagogical value to the retard-children-programmers).</p>
<p>You can maybe stay sane if you learn that the registry values are prepended by an integer and a comma, where that int seems to specify the data type of the reg value (4=integer, 7=text, 1=some other kind of text).</p>
<p>Specifically in the [Event Audit] section, there are values that are <em>not</em> registry values.  They are ints that appear to be bitmask math fanciness.  (Remember setting options on visual basic windows back in the &#8217;90s, where you got to add up powers of 2? ).  It so happens that they all have two bits, the first one being &#8220;log successes&#8221; and the second being &#8220;log failures.&#8221;  So 0 is neither, 1 is successes, 2 is failures, 3 is both.  But this isn&#8217;t, as far as I can tell, anywhere on MSFT&#8217;s site and it&#8217;s sure as fuck not in the giant unstructured spreadsheet reference.</p>
<p>Much of the configuration .ini file can be omitted (so you can just overlay the parts you want).  But you MUST include the [Version] and [Unicode] sections or it will barf.  Use secedit /validate to check it.  However, &#8220;validate&#8221; does not mean that it will actually round-trip and work right; it doesn&#8217;t check the security identifiers in the [Privilege Rights] section so it&#8217;s quite possible to have a valid cock-up (see round-trip gotcha below).</p>
<p>Biggest one: secedit CANNOT ROUND-TRIP.  The security policy &#8220;export&#8221; may will (and does for me) produce an output with entries in the [Privilege Rights] section that refer to &#8220;Classic .NET AppPool&#8221; among others.  If you try to import and configure with this, you&#8217;ll get &#8220;No mapping between account names and security IDs was done&#8221; in the error log.  Turns out you have to manually fix this by adding &#8220;IIS AppPool\&#8221; before the names of these AppPool entities.  (<a href="http://www.symantec.com/connect/forums/backup-exec-2010-remote-agent-crashes-start-backup">Hat tip</a>)  If you want to actually find out whether that, or some other hackery, fixes it to something that can be mapped to an SID, find yourself the <a href="http://technet.microsoft.com/en-us/sysinternals/bb896649">PSTools download</a> and test the name with PSGetSID.exe.  Awesome.</p>
<p>The &#8220;configure&#8221; option only really needs a .sdb database specified by /db.  If you give it an additional /cfg parameter, it will muddy up the .sdb with the contents of the specified config ini.  There is no benefit to using this, ever, other than skipping a step that could result in you keeping a sanity-preserving intermediate state backup.</p>
<p>The &#8220;overwrite&#8221; option doesn&#8217;t do what you think it does.  Especially with &#8220;configure.&#8221;  Just don&#8217;t use it, unless you are planning on destroying what is in your .sdb file(s).  The .ini configuration already wins in a tie.</p>
<p>The &#8220;configure&#8221; option is NOT ATOMIC, and it will happily set your system&#8217;s security policy partially to be what was in the file you indicated, and partially not (for example, with the broken round-tripping of IIS AppPool names).  There&#8217;s no way to find out whether or not the configuration will succeed, except to &#8220;suck it and see.&#8221;  And once it does partially, non-atomically make a goulash out of the then-current and database-specified settings, there&#8217;s no way to tell what succeeded or failed, except by reading the log, which is formatted in an unparseable mess.  Fantastic.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/bugfix/secedit-for-setting-security-policy-in-windows-server-2008-r2-server-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Beams, Snow Banks, and Small Businesses</title>
		<link>http://blog.rlucas.net/small_business/sun-beams-snow-banks-and-small-businesses/</link>
		<comments>http://blog.rlucas.net/small_business/sun-beams-snow-banks-and-small-businesses/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 01:15:11 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[small_business]]></category>
		<category><![CDATA[seattle]]></category>
		<category><![CDATA[small business]]></category>
		<category><![CDATA[snow]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[vitamin d]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=490</guid>
		<description><![CDATA[Seattle was inundated yesterday by a steady snowfall during which it was cold, then warmer, then colder again: AKA, a recipe for icy road disaster (at least in a city of 142 square miles with 26 snowplows). Today&#8217;s morning news and communications, then, were dominated by transportation-related issues.  &#8220;Schools are closed!&#8221;  &#8220;Courts closed!&#8221; &#8220;Clinics closed!&#8221;  [...]]]></description>
			<content:encoded><![CDATA[<p>Seattle was inundated yesterday by a steady snowfall during which it was cold, then warmer, then colder again: AKA, a recipe for icy road disaster (at least in a city of 142 square miles with 26 snowplows).</p>
<p>Today&#8217;s morning news and communications, then, were dominated by transportation-related issues.  &#8220;Schools are closed!&#8221;  &#8220;Courts closed!&#8221; &#8220;Clinics closed!&#8221;  &#8220;Stay home by all means!&#8221;</p>
<p>That wasn&#8217;t an option today at <a href="http://revenueloan.com">RevenueLoan</a> &#8212; we had a closed deal to paper and two more to work on.  So I put on the hiking boots and the bubblegoose, and navigated foot-mobile through the mostly-closed Seattle streets.</p>
<p>And, while abnormality was the order of the day &#8212; 30 year old Seattleites sledding and sliding around like giddy 5th graders, hilly streets barricaded, and creep-crawling traffic throughout the day on main highways &#8212; what struck me most was the acute <em>normality</em> of the day for the small businesses I passed.</p>
<p>Local printing company &#8212; &#8220;open&#8221; for business.  Our caffeinated home-away-from home at <a href="http://mokascafe.com">Moka&#8217;s Cafe</a> &#8212; check.  Tiny bookstore slinging used paperbacks and tacky tourist t-shirts &#8212; you bet.</p>
<p>The office windows across the street from mine, usually packed until 6 or 6:30 with yuppies at an Anonymous Top Online Retailer, are empty at 4:30.  A Major Local Operating System Vendor was beseeching people to stay home.  And, that&#8217;s fine &#8212; arguably most of the people out there driving today were assholes endangering themselves and others (at least if my anecdotal observations can be extrapolated).</p>
<p>But there&#8217;s something heartening about seeing that neon &#8220;Open&#8221; sign lit up &#8212; not the giant custom one in the corporate standard font, but the red-and-blue one you can buy at Costco when you&#8217;re first hanging a shingle.  Something heartening about the proud real-estate guy giving the walking tour to prospective tenants on pavement he just scraped and salted.  Something heartening about the beer distributor&#8217;s careful truck maneuvers as he pulls up to the corner bar to restock it for happy hour.</p>
<p>OK, fine, cynics: I know that these people are responding to the iron economic law that governs small business, and the simple reality that fixed costs don&#8217;t go away.  There is no East-coast failover data center for the guy who makes sandwiches on the corner, and there&#8217;s no corporate balance sheet to pay him his take-home if he no-shows.</p>
<p>But I think it&#8217;s more than that.  People doing their work because <em>the work itself is valuable</em>.  Yes, bonds have value.  Yes, big corporate edifices have power.  But imagine a world of 6 billion bondholder rentiers.  Who makes a tasty Jambo sandwich?  Who actually prints up your annual reports?  The work we do, cumulatively, is what makes humanity wealthy (and human, for that matter).</p>
<p>And those small businesses are the individual loci of non-abstractable <em>human work</em>.  The smallest functional unit that can deliver the value they do.  And they show up despite the snow.</p>
<p>So maybe it was the bright sun in the sky, reflecting off of the snowpack, and giving a blessed vitamin-D-blast on a Seattle winter&#8217;s day.  But something about the walk this morning, and the &#8220;open for [small] business!&#8221; that came to me from shop windows and storefronts, gave me a cheer.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/small_business/sun-beams-snow-banks-and-small-businesses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web.config and App.config file gotchas</title>
		<link>http://blog.rlucas.net/bugfix/web-config-and-app-config-file-gotchas/</link>
		<comments>http://blog.rlucas.net/bugfix/web-config-and-app-config-file-gotchas/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 18:11:11 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[bugfix]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=486</guid>
		<description><![CDATA[If you try to use idiomatic .NET, and you have even modest configurability architecture requirements, you will almost certainly want to use the *.config system (App.config or Web.config). According to old hands at Win32 programming, this is quite a step forward from *.ini files or registry manipulation. Perhaps so. However, the *.config regime is extraordinarily [...]]]></description>
			<content:encoded><![CDATA[<p>If you try to use idiomatic .NET, and you have even modest configurability architecture requirements, you will almost certainly want to use the *.config system (App.config or Web.config).  According to old hands at Win32 programming, this is quite a step forward from *.ini files or registry manipulation.  Perhaps so.</p>
<p>However, the *.config regime is extraordinarily fragile and surprise-prone once you start trying to do more than just add name/value pairs to the &lt;appSettings&gt; section.  The following are some gotchas that I hope you can avoid if you have to deal with this.</p>
<h3>.EXE assembies get App.config, and Web DLLs get Web.config, but non-Web DLLs (e.g. tests) get App.config.</h3>
<p>.EXE assemblies look for filename.exe.config, which is in App.config  format.  Normally, DLLs do NOT get a config file; rather, they inherit /  acquire whatever config is in place in their runtime environment.  But there are two important exceptions.  Web services / sites get built as DLLs.  Their execution environment (presumably IIS or the dev server) looks for Web.config and its format.  Test projects (of the MS type that Visual Studio 2010 makes by default) get built as DLLs, as well, but they get run by (mstest? vstudio?) an execution environment that looks for an App.config file.</p>
<p>So, to sum:</p>
<ul>
<li>.EXE =&gt; App.config</li>
<li>.DLL Web project =&gt; Web.config, via its server runtime</li>
<li>.DLL Test project =&gt; App.config, via the test / IDE runtime</li>
<li>.DLL other =&gt; none, inherits runtime environment</li>
</ul>
<h3>Sections such as &lt;appSettings&gt; can be externalized into other files, but there are two subtlely different and incompatible ways to do so.</h3>
<p>Specifically, you can add a &#8220;file&#8221; or &#8220;configSource&#8221; attribute to your appSettings section.  If you use &#8220;file,&#8221; that file will be read and will override default values that are set in that section in the .config main file.  If you use &#8220;configSource,&#8221; however, you must not set any values in your .config main file, and instead must entirely scope out that section (and that section alone, save for the XML declaration) in the file whose name you specify.</p>
<p>Frustratingly, &#8220;file&#8221; and &#8220;configSource&#8221; have different rules for what may be included (relative / absolute paths, parent directories, etc.).  Especially restrictive are the rules for Web.config, I believe, though I don&#8217;t have them straight.  Effectively what this means is that if you have several Web projects that require a shared configuration section, you cannot put your customSection.config in a parent directory and have your projects pull it in (thereby keeping a Single Point of Truth); rather, you have to propagate multiple copies out to all of the sub-Projects (ick).</p>
<p>For more on this: re: <a href="http://msdn.microsoft.com/en-us/system.configuration.sectioninformation.configsource.aspx">configSource</a>, re: <a href="http://msdn.microsoft.com/en-us/ms228154.aspx">file</a> from MSDN.</p>
<h3>Web.config settings are <em>mostly</em> inherited from machine.config down through a hierarchy, but confusingly stop being inherited at the sub-directory level in IIS.</h3>
<p>Sometimes, or at least most of the time by default, Web.config settings for a given directory are merged with those of parent directories, and are merged with machine-level config as well.  This can lead to somewhat unfortunate results if you have an app in a subdirectory of another app with divergent configruation requirements.  This fellow seems to have <a href="http://www.nerdyhearn.com/blog/188">figured out how to resolve this</a>.</p>
<p>Be alert, though, because not all settings *do* propagate properly.  First, a parent Web.config can indicate that its settings should not be inherited.  Second, collection settings are merged together, not replaced, by child specifications.  Third, some settings, just seem stubbornly not to propagate (see <a href="http://msdn.microsoft.com/en-us/library/dtbwsx8s.aspx">this MSDN article</a> which suggests that &#8220;anonymousIdentification&#8221; does not propagate because it is a secret never-properly-set default magical element).  Finally, the above-quoted MSDN article raises the good point that Web.config only applies to ASP.NET stuff, and that there is an entirely different regime for static content and plain old ASP files.  So watch yourself, there, Tex.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/bugfix/web-config-and-app-config-file-gotchas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t bother with symlinks in Windows 7</title>
		<link>http://blog.rlucas.net/rants/dont-bother-with-symlinks-in-windows-7/</link>
		<comments>http://blog.rlucas.net/rants/dont-bother-with-symlinks-in-windows-7/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 00:53:10 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[rants]]></category>
		<category><![CDATA[incredulity]]></category>
		<category><![CDATA[iron falcon tearing out my liver]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[prometheus bound]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=475</guid>
		<description><![CDATA[Yes, in theory, Windows has rocketed into the 21st century with symbolic links. However, you can&#8217;t make them in Windows 7 unless you&#8217;re an Administrator, or unless you manage to give yourself &#8220;SeCreateSymbolicLinkPrivilege.&#8221; Giving yourself this privilege is possible with Professional/Ultimate versions of Windows, but not Home Premium, via secpol.msc, which just doesn&#8217;t exist (and [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, in theory, Windows has rocketed into the 21st century with symbolic links.  However, you can&#8217;t make them in Windows 7 unless you&#8217;re an Administrator, or unless you manage to give yourself &#8220;SeCreateSymbolicLinkPrivilege.&#8221;</p>
<p>Giving yourself this privilege is possible with Professional/Ultimate versions of Windows, but not Home Premium, via secpol.msc, which just doesn&#8217;t exist (and can&#8217;t be downloaded).  (Funny, I don&#8217;t recall the comparison chart having a checkbox for &#8220;can actually use computer&#8221; that was missing from Home Premium.)</p>
<p>If you try to set this for yourself, don&#8217;t bother trying to use C# or PowerShell.  You&#8217;ll need to manually wrap the unmanaged C++ advapi32 APIs, and pass all kinds of structs and pointers back and forth.</p>
<p>In the end, just give up on whatever it was you wanted to use symlinks for.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/rants/dont-bother-with-symlinks-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Lopsided Barbell of bank credit</title>
		<link>http://blog.rlucas.net/finance/lopsided-barbell-of-bank-credit/</link>
		<comments>http://blog.rlucas.net/finance/lopsided-barbell-of-bank-credit/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 18:38:29 +0000</pubDate>
		<dc:creator>rlucas</dc:creator>
				<category><![CDATA[finance]]></category>
		<category><![CDATA[banks]]></category>
		<category><![CDATA[credit]]></category>
		<category><![CDATA[goldman]]></category>
		<category><![CDATA[interest]]></category>
		<category><![CDATA[rbf]]></category>
		<category><![CDATA[revenueloan]]></category>

		<guid isPermaLink="false">http://blog.rlucas.net/?p=473</guid>
		<description><![CDATA[At a fascinating macro talk this morning by a Goldman Sachs strategist, he mentioned a &#8220;lopsided barbell&#8221; of credit. To the biggest firms with the best ratings &#8212; think IBM or MSFT &#8212; money is basically free, with coupon yields at sub-2%. But to middle-market (say, $100M &#8211; $500M sales) and lower-end of middle market [...]]]></description>
			<content:encoded><![CDATA[<p>At a fascinating macro talk this morning by a Goldman Sachs strategist, he mentioned a &#8220;lopsided barbell&#8221; of credit.</p>
<p>To the biggest firms with the best ratings &#8212; think IBM or MSFT &#8212; money is <a href="http://reports.finance.yahoo.com/z2?ce=5415145149581575416750&#038;q=b%3d4%26is%3dinternational%26so%3dd">basically free, with coupon yields at sub-2%</a>.</p>
<p>But to middle-market (say, $100M &#8211; $500M sales) and lower-end of middle market (let&#8217;s say $20M &#8211; $100M) companies, bank credit is simply not available at any price.</p>
<p>Interestingly, this week at a discussion with some regional commercial bankers, <a href="http://asack.typepad.com/">my partner Andy Sack</a> heard gripes from the loan officers about extraordinarily tight credit conditions for single-digit-millions size facilities.  (Of course, loan officers always gripe when &#8220;the credit guys&#8221; say no, but it&#8217;s worse now than usual, and importantly, not much better than 2008).</p>
<p>So: until or unless the big banks stop getting money for &#8220;free,&#8221; they&#8217;ll be quite content to sit on it and/or plow it for nearly-free into premium credits in large deals.  Don&#8217;t expect small business credit to loosen up until, paradoxically, rates have risen somewhat.</p>
<p>(Don&#8217;t expect us to have that problem over at RevenueLoan.  We&#8217;re funded by private equity investors specifically to prove out the <a href="http://revenueloan.com/">royalty/revenue-based financing model</a>, so A. our money costs us &#8220;private equity rates&#8221; and B. we&#8217;re on a mission to fund small businesses!)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rlucas.net/finance/lopsided-barbell-of-bank-credit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

