And Death Shall Have No Dominion

Monday, February 20, 2012

1

I was nodding off on a trans-Atlantic flight, grinding through endless 90's action flicks--only the occasional exploding car keeping me from becoming a drooling mess--when I came across this little gem of a film called Solaris.  The story moved pretty slowly at times, but overall is very thought-provoking.  Definitely one of the better sci-fi films I've seen--no aliens, no lasers, no bs.

The Dylan Thomas poem in Solaris really blew me away.  I'm not sure whether it celebrates the immortality of the human spirit, or implies the opposite.  Either way, this poem gives me some serious chills.  And we're not talking nerd chills here.

The "death shall have no dominion" refrain sounds like one praying for it to be true, all the while knowing it's not.  Do the religious-sounding contradictions show the spirit transcending maddness, suffering, and even death? Or highlight the futility of an existence where happiness is never without suffering?


And Death Shall Have No Dominion

And death shall have no dominion.
Dead mean naked they shall be one
With the man in the wind and the west moon;
When their bones are picked clean and the clean bones gone,
They shall have stars at elbow and foot;
Though they go mad they shall be sane,
Though they sink through the sea they shall rise again;
Though lovers be lost love shall not;
And death shall have no dominion.

And death shall have no dominion.
Under the windings of the sea
They lying long shall not die windily;
Twisting on racks when sinews give way,
Strapped to a wheel, yet they shall not break;
Faith in their hands shall snap in two,
And the unicorn evils run them through;
Split all ends up they shan't crack;
And death shall have no dominion.

And death shall have no dominion.
No more may gulls cry at their ears
Or waves break loud on the seashores;
Where blew a flower may a flower no more
Lift its head to the blows of the rain;
Though they be mad and dead as nails,
Heads of the characters hammer through daisies;
Break in the sun till the sun breaks down,
And death shall have no dominion


SharePoint 2007 Installation Service Accounts

Saturday, September 24, 2011

0

Figuring out what service accounts are needed to setup SharePoint can be pretty confusing.  There's a whole novella on MSDN with excruciating detail on all the different combinations of AD and SQL accounts you could use.  I had to scrape pieces of my brain off the walls after reading through that monstrosity.

But after doing a few buildouts, I've found that a basic setup is actually very simple.  And unless you have a specific reason to do otherwise (like having to satisfy a security requirement), sticking with the basic setup is the best way to stay sane.

There's a ton of information in the MSDN article about what permissions each account needs.  But, you really only have to worry about permissions for ONE account: the install account. The SharePoint setup and configuration wizards will automatically assign appropriate permissions for the rest of the service accounts!

I recommend creating a separate install account just for doing the SharePoint setup.  The install account must be a local Administrator on each SharePoint server, as well as the SQL server.  It should have sysadmin and dbcreator roles in SQL.  Run the SharePoint setup and config wizards under that account account.  In fact, it's a good idea to simply log in as the install account to do all your setup.

(On a side note, I've seen a lot of cases where people resolve permission issues by making the Farm account or other service accounts local Administrators. Only the install account should be a local Admin, and only for doing the initial setup! If you have to make other service accounts local Admin, there's probably something mis-configured.)

Once setup is complete, all administrative privileges for the install account can be revoked.

All in all, I typically use 1 install account, and 5 service accounts:

Account Description
Install Account This is the account I login to each server as to do the buildout. Before doing the setup, you have to manually make this account a local Administrator on each server. It also needs to have sysadmin and dbcreator roles in SQL.

After the initial setup of SharePoint, this account is no longer needed.
Farm Account Runs Central Admin app pool and SP Timer service.
SSP Account Runs SSP Admin app pool, as well as individual SSP app pools
Search Account Runs the Search services (Windows SharePoint Services Search service, and Office SharePoint Server Search service)
Crawl Account Default account used to crawl content
Web Application Account Runs web application app pool. I usually create a separate app pool account for each web application


Trick Restroom

Wednesday, September 14, 2011

0

We just moved to a new office this week with walls whiter than a toothpaste ad and sqeaky clean restrooms. An interesting observation about the restroom dawned on me today: there are no urinals.  All stalls.  I went back to the door, looked at the loo next door and saw this:





Hmm.  Went back, did my business, went out--took another look around.  I'd been going the left one all week long...





Blogger Post Summaries & Thumbnails, Part II

Monday, September 05, 2011

6

This is Part II on how to make Blogger display post summaries with thumbnail previews.  Part I goes over exactly what we're trying to accomplish and how the results will look.

The process described here should work on all the out-of-box Blogger templates.  Complications may arise if you're using a heavily customized template... Be sure to save a copy of your template before making any changes!


Edit Template

First, we have to open the blog template for editing.  On your blog's Administration page, go to Template, then click on Edit HTML:


Check Expand Widget TemplatesBefore continuing, save a copy of the full template just in case.



Insert Summary Generation Script

Next, we insert a piece of javascript to generate the summaries.  Search for the following tag in the template: <b:includable id="main" var="top">


Copy and paste the code in this file into the space circled in red above:



Update Post Body Template

Finally, we update the template that renders a post to invoke the summary creation script if the current page is the Home page.  If we're on an individual post page or a static page, then display the full post body as normal.

To do so, search for the following tag in the template: <b:includable id="post" var="post">.  Then, search for <data:post.body/> beneath that.  Note that there may be more than one <data:post.body/> in the template, and we specifically want the one under that first tag:


Replace the tag with the contents of this file:


That's it!  Save the template and you should start seeing post summaries on your blog. For reference, here's the entire default Simple template with the added code.


Working with Thumbnails

By default, the first image in post will be used as the thumbnail.  You can override this behavior on specific posts by setting the class attribute on its images (from the post editor's HTML view).  Note that the attributes are case-sensitive.

  • - To use an image other than the first as the thumbnail, set that image's class to preview
  • - To specifically prevent an image from being used as the thumbnail, set its class to noPreview
  • - To use a completely different thumbnail, add the thumbnail image to the post, and set its class to hiddenPreview.  This image will not be visible on the full post, but will be used as the thumbnail for the summary.  I'd recommend putting this at the very end of the post.

For instance, the update below would cause the second image to be used as the thumbnail:


The end!


Blogger Post Summaries & Thumbnails, Part I

Monday, September 05, 2011

0

So I stumbled on some Blogger templates and decided to give my poor, tired blog a makeover.  I fell hard for the pretty ones with the flyout menus, post summaries, thumbnails and all.  Unfortunately, like so many of my flirtations with pretty things, it ended only in despair and disappointment.  My blog ended up looking nothing like what the previews promised, mainly because:

  • - The thumbnail images were stretched to fit, instead of cropped.  They looked absolutely atrocious unless the first picture in all my posts happened to be square.
  • - The preview text was one big blob of text since HTML elements like line breaks, coloring, and bullet points were being stripped.
  • - I couldn't use an image other than the first in a post as the thumbnail preview


That can't fly!  I did some digging and cooked up a short script to generate summaries.  It should work with most Blogger templates, and for sure the out-of-box ones.  Here's how it looks applied to the default "Simple" template.  I can create posts with any formatting and images of any size.



The Home page shows the first few lines of each post, with a "Read More" link to the full post.  Note that formatting like linebreaks and bullets are preserved.  The 200 x 200 thumbnails are then cropped from the top left corner of the first image (unless otherwise specified) in the post.



Read Part II for how to implement this.




Collosus

Monday, September 05, 2011

0

Found a new background for my windows phone!  This just makes my day :)  If I ever become a billionaire the first thing I'd do is build a collosus.  Oh... you drive a SUV?  *steps over SUV*  WHAT NOW??!





Filamente - Filtering List Items

Monday, September 05, 2011

0

Once in a while an irresistible urge to write code takes hold of me, and writing code is suddenly more important than breathing air.  Or eating food.  Or sleeping.

So despite flying to the east coast and back this week with babies inconsiderately bawling all out bloody murder and pillaging on the plane, I pounded out a long-overdue feature for Filamente: item filtering on SharePoint lists and libraries.

There are two limitations with SharePoint's filtering that really bug me.  You can't select more than one filter value per column, and can't filter freetext columns at all.  I hit that pretty much every time I need to filter something so I decided to implement support for both those scenarios in Filamente.

For instance, show all items with Priority P2 or P3:


Or, show files whose name contains the term "hyperion":


Pretty nifty, if I do say so myself  :P  We should be rolling out this feature in the next couple weeks.


Morality

Monday, September 05, 2011

1

I read a great article by Joel Marks on the New York Times Opinion Pages: The Confessions of an Ex-Moralist.  He hits on the crux of a big kink in my belief system. 

Coincidentally, vegetarianism was the flashpoint for both of us.  It made me realize that my general belief in utilitarianism / consequentialism doesn't really jive with my reasons for being vegetarian.  It's instead a gut -level conviction that some acts like the slaughter of animals or genocide are categorically morally wrong.  But my rational side has a hard time accepting that any act can be inherently wrong.

Mark's answer is that there's no morality at all and actions are neither right nor wrong.  Everything comes down to personal preference.  Some people enjoy coffee, some don't.  Some find beauty in nature, some don't.  In the same way, some people find goodness in compassion for animals, and some don't.  The "goodness" of treating animals humanely doesn't derive from any moral authority, divine or otherwise.  Its source is him, and me, and anyone who happens to share that preference.

I'm not sure what to make of this view... In a way it does resolve the disconnect (by saying the issue isn't even valid)  But an amoral world seems like a very scary place.  If it doesn't make sense to ask whether an act is moral or not, how would we know how to act?  I can't see a system existing in a complete vacuum.  Even math and physics are built on fundamental axioms that have not or cannot be proven.  Is a belief system without any fundamental assumptions about morality even a system?  Or just people doing whatever they want, whenever they want?