#get a pipeline of files
gci -r -i '<filename pattern>' |
#filter for the search pattern, don't want to needlessly update files
#if there isn't a match
?{Select-String -Path $_ -Pattern '<match regex pattern>' -quiet} |
%{
#get replacement content
$text = [io.file]::ReadAllText($_) -replace '<regex>', '<replacement>'
#write back out to disk, ascii encoded if desired
$text | out-file -enc ascii $_
}
This post was inspired by this discussion.
Looks like I’m going to have to change the margins on the blog to show code snippets better.
This is very exciting news. Vistaprint (my employer) announced today the acquisition of Soft Sight, Inc., and plans to launch custom embroidery in the first half of 2011.
Some info on Soft Sight:
Soft Sight has developed a sophisticated software capability for automatically rendering stitch patterns from custom designs uploaded to its website. Soft Sight’s innovative and patented automation systems enable an end-user’s embroidery artwork to be uploaded and embroidery designs to be instantly previewed and modified online. This drives its ability to provide high-quality custom embroidered products in low quantities at low prices.
Very cool! Can’t wait to see this.
If you find yourself squinting and want to make the text in your browser bigger or smaller, just hold down the control button and scroll your mouse wheel. One way makes it bigger, the other smaller. You can also use <ctrl> and the plus and minus keys to the same effect.
This works in both Internet Explorer and Firefox.
Trying to come up with some ideas for a better blog name. I want to keep the URL the same, but put a title on the blog that is a little better. Ideally, it won’t have “blog” in the title. The purpose is to be mostly technical (programming, technology, and the like), some random entertainment, and certainly no politics.
Yesterday, I saw a great blog title, “Dennis the Peasant”, a reference to Monty Python and the Holy Grail. “Dennis, there’s some lovely filth down here!”
So anyway, blog name. Suggestions?