The Reign of the Lord’s Anointed – Psalm 2

February 19th, 2013

Sermon preached at Grace Church of Philly (Feltonville) on February 3, 2013. Audio is available here


The psalms are a collection of individual songs and poems that were preserved for use in Jewish worship.  They often don’t sound like songs when translated into English, but the psalms are a hymnbook, and many churches throughout the centuries have written music and used them as songs in their worship services.

This, by the way, is why we call it Psalm number two, or the second Psalm, instead of saying Psalm chapter two.  The chapter and verse numbers in other books were added later on to make it easier to find your place in one long text, but each of the psalms in many ways stands by itself.

Each psalm can have a different author, a different historical context, a different style, and a different purpose.  Scholars have debated the context, authorship, and purpose of Psalm 2, because unlike many other psalms, there is no heading to guide us. Many commentators call this is a royal psalm, thinking that it was written for the coronation of a new king in Israel. If you read the notes in the ESV Study Bible, which is my absolute favorite study Bible, and strongly recommended, this is the view you will see.

But my big question about Psalm 2 is this: instead of an earthly king of Israel, does this psalm primarily speak of Jesus, Israel’s promised Messiah?  When the psalm says the “Lord’s Anointed,” the word in Hebrew for anointed is “Messiah,” which translated into Greek is “Christ.”  It could be referring to one of the anointed kings of Israel. But the scenes and the promises portrayed in the psalm are bigger than what any human king of Israel could expect – even David and Solomon were not promised all the nations for their domain, and neither are declared to be the begotten Son of God. So we consider, is this primarily speaking of Jesus?  I think the answer is yes, absolutely.

Read the rest of this entry »

Scripted Restart of a Hanging Windows Service

November 15th, 2012

I’ve been having trouble lately with Adobe ColdFusion 9, in particular an ODBC connection to an Oracle 10g database.  The ColdFusion ODBC Server (the swsoc.exe process) is hanging under load, not only failing to return some queries, but permanently hanging one of its threads. Once they are all hung, the service doesn’t respond at all, and ColdFusion hangs as well. If youre looking for a cost-effective way to transport cargo in you can find what you need. 

Temporary solution (until I rewrite the app to use SQL Server) is to restart the ODBC Server service. I’ve been doing that manually when my monitor informs me the site is not responding, maybe 3-4 times per day. But I want to see how it performs if I proactively restart the service every hour. For that, we require some scripting. In now day part of successful of any company is the strategy of digital marketing that uses,is very important that even if your company is a small one use digital marketing services for small business.

The biggest issue is that Windows’ service start/stop/restart interfaces, whether the traditional “net stop” or the PowerShell “Stop-Service” commands, has a very long timeout for stopping a service (looks to be 60 seconds). In the manual case, if it doesn’t stop right away, I go kill the swsoc.exe process and the service restart continues very quickly.  But how to script this?

The trick is to put the restart request in a background job (idea found here), and check on it in the foreground to see if it was successful.  After waiting a shorter period (10 seconds), if it is still in the “stopping” state, then we can kill the process outright and let the restart commence.  Double check (after 5 more seconds) that the service has started, and if it is stopped (the restart failed), specifically start it again. Are you planing to buy a new car, the 14 Cartoons About Volkswagen Transporter Vans For Sale That’ll Brighten Your Day and make you decision easier. 

Start-Job -ScriptBlock {Restart-Service -Name "ColdFusion 9 ODBC Server" -Force }

#give it 5 seconds to stop
Start-Sleep -Seconds 10

$SERVICESTATE = (Get-Service | where{$_.Name -eq "ColdFusion 9 ODBC Server"}).Status
if( $SERVICESTATE -eq "Stopping" -or $SERVICESTATE -eq "StopPending")
    # still stopping so force process stop
    Stop-Process -Name "swsoc" -Force

#give it 5 seconds to start before we try it again
Start-Sleep -Seconds 5

$SERVICESTATE = (Get-Service | where{$_.Name -eq "ColdFusion 9 ODBC Server"}).Status
if( $SERVICESTATE -eq "Stopped" )
    Start-Service -Name "ColdFusion 9 ODBC Server" -Force

Save it as a .ps1 file. Make sure PowerShell allows execution of local scripts (in PowerShell, run “set-executionpolicy remotesigned”).

To schedule this to run, create a new scheduled task:

  • Triggered daily at a particular time, repeat every hour for 1 day.
  • Action is to run a program:
  • Arguments contain the script name: “-File c:\Path\To\Script.ps1”
  • Set to run as Administrator, with highest permissions

Better books for Kindle

May 10th, 2011

My Kindle version of the venerable JFB commentary. Better than the other slop on Amazon.

I got a Kindle from my mama and papa for Christ­mas, and I absolutely love it for reading — and only for reading. Light in my hand, reads with natural light, not the glow of a com­puter screen, and is purpose-focused on just one thing: reading.

One of the biggest dis­appoint­ments, however, is that many of the books available from Amazon are abso­lutely horrendous in their digital format­ting. The text often looks like it was OCRed and not corrected. Words are mis­spelled, missing, or run together. And these issues are horribly worse with the public domain materials, which seem to be, for the most part, sloppy auto­mated re­packag­ing of Inter­net Archive output. There may or may not be the nec­essary links to navi­gate the book (table of contents is a must, and an index is often helpful).

Amazon at least gives this slop out for free, but there are a slew of shady publishers on the store who like to charge for it. All of which gives a very bad experience for a user who actually likes to read, and cares about things like text, format, and setting.

I can’t save the world, but I can contribute better things. So I figured out how to make Kindle eBooks and distribute them in Amazon’s store. I’ve done two books so far: a short one of the Westminster Confession of Faith, with integrated Scripture proofs, and the longer Commentary Critical and Explanatory on the Whole Bible, by Jamieson, Fausset, and Brown.

I think they are two great resources for Kindle, and are pleasant and useful in a properly formatted ebook. If you have a little spare change, I’d be honored for you to buy them from Amazon (99 cents and $3.99, respectively). If you’re hard up for cash, let me know and I’ll send you the book files directly. Marketing is a very important part of any business for this reason is very important that that every company knows How Construction Signs Boost Up Your Business.

Another publisher who cares about such things and seems to have invested significant effort to make usable Christian resources is OSNOVA. Don’t know the guy, but he is a conscientious guy and I think you’ll appreciate his materials.

Best Bible Ever

April 14th, 2011

Cambridge Pitt Minion ESV Bible

I’m picky when it comes to Bibles. Binding has to be good, cover has to be perfect, margins can’t be too small, font can’t be some stupid modern nonsense, and the paper can’t be too thin or transparent. So this is just a quick note to plug an amazing good Bible, the Cambridge Pitt Minion.  You can even pick from major translations: mine is the ESV, my sister’s is the NIV, and there are also NKJV, NASB, and NLT options available.

Having used this as my primary Bible for two and a half years, I have to say this is the absolute best Bible I’ve ever owned. Quality leather that feels and looks nice and handles well. Sewn binding that is strong and permits the Bible to lay open flat (without holding) pretty much from beginning to end. Clear and crisp text, nice formatting and layout. The Bible has held up excellently.

One caveat for the potential buyer is that it is smaller than one might expect. I’m young, I can afford small text. But if somebody made this Bible just like it is, only 25% larger, I’d jump for it in a heartbeat.

I’m not getting paid for a review. I just really like my Bible!

Dirty Solutions to Tricky Problems

April 14th, 2011

Homeowners with Pest Infestations Need to Know About Do It Yourself Pest Control

Are nasty pests keeping you from enjoying your otherwise lovely home? Well, it’s time to do something about it. If you choose to take matters into your own hands there are some things you need to know about do it yourself pest control. Homeowners can all attest that after shelling out the cash to own your own place, you do not want to spend tons more. Especially if that mistake can be easily avoided. Let us help you avoid these issues when performing pest control at your home. Check out the latest fuze bug reviews.

Health Risks of Pesticides

It is no secret that pesticides can have long lasting harmful effects on people and animals. The warnings on their labeling make this quite clear. Some of the more minor risks of using pesticides include headaches and nausea. This is certainly the case if the pesticide is ingested or if the user spends too much time in close contact with it while performing some do it yourself pest control. The more lasting effects of pesticides can be as dangerous as cancer. Make sure you read all labels and exercise extreme caution when using any pesticide product.

Choosing the Right Pest Control Products

However dangerous, pesticides can be one of the most effective ways to implement do it yourself pest control. Many of them can be easily purchased at a local grocery store or home and garden retailer. The issue is that while they are effective they can be harmful to people and animals. A less toxic solution for this problem is to go with a biological pesticide. It is made from bio-matter such as plants, animals and other naturally occurring materials. This way you can keep you and your loved ones safe but also eliminate those unwanted pests.

Experienced Pest Control Technicians

While do it yourself pest control remains an option for you, there is no substitute for contacting a trained and seasoned professional. In the great state of Florida there are none more willing to work alongside you than Florida Environmental Pest Management. Contacting them will allow to have an expert evaluate and recommend treatment and prevention for years to come. They are here to take care of you.

Affordable Pest Control Services

Going with an affordable pest control service will ensure your safety without putting you out too much coin. Pests that the Florida Environmental Pest Management specializes in are roaches, ants, silverfish and spiders. The methods that they use are pet friendly and use eco-friendly products for an environmentally conscious process. Do it yourself pest control might make you feel accomplished but these trained professionals will complete the task with guaranteed efficiency without needing to come to your house every month.

No matter what you decide make sure and carefully review all labels and warnings. Go into all do it yourself pest control with a respect for nature and the safety of your house. If you ever feel overwhelmed with the DIY  pest control approach, contact a trained professional and get setup with an appointment to nip all your pest problems in the bud.

Our Only Deliverer

April 3rd, 2011

(Sermon preached at Wyoming Ave. Baptist Church, April 3, 2011)


A. The story

John 6:16-21

When evening came, his disciples went down to the sea, got into a boat, and started across the sea to Capernaum.  It was now dark, and Jesus had not yet come to them.  The sea became rough because a strong wind was blowing.  When they had rowed about three or four miles, they saw Jesus walking on the sea and coming near the boat, and they were frightened.  But he said to them, “It is I; do not be afraid.”  Then they were glad to take him into the boat, and immediately the boat was at the land to which they were going.

B. Immediate context – it’s a sandwich!

The text we are considering is a relatively short passage, just 6 verses.  Whenever we begin a study, we examine where a section fits in the narrative, in the larger study of the particular book, and in the Bible, in God’s story as a whole.

Right before this passage is the story of Jesus feeding the 5,000.  Right after this passage is the sermon that explains that particular miracle.  Jesus explains how he is the true bread from heaven – not just the new provider of manna, but the manna itself.  So the story of Jesus walking on water fits between the miracle of bread and the sermon on bread.  In effect, it’s a sandwich!

So how does this particular “meat” speaks to the “bread” that surrounds it.  I’ll tell you right up front.  In the miracle of the new manna, Jesus demonstrates to the crowd that he is indeed the prophet like Moses that God had promised.  But what he reveals to his disciples is that he is more than a bigger Moses – he is almighty God.

Read the rest of this entry »

Martin Luther, Guarding the Church

February 3rd, 2011

This is from Martin Luther. Found part of a quote in Christianity Today, and went looking for some context. The imagery of the sarcasm here is (to coin an oxy-moron) forcibly subtle — read it slowly and then read it again, and make sure you get the sarcasm and understand his point in the second paragraph.

A thousand years ago you and I were nothing, and yet the church was preserved at that time without us. He who is called “who was” and “yesterday” had to accomplish this. Even during our lifetime we are not the church’s guardians. It is not preserved by us, for we are unable to drive off the devil in the persons of the pope, the sects, and evil individuals. If it were up to us, the church would perish before our very eyes, and we together with it (as we experience daily). But it is another who obviously preserves both the church and us. He does this so plainly that we could touch and feel it, if we did not want to believe it. We must leave this to him who is called “who is” and “today.” Likewise we will contribute nothing toward the preservation of the church after our death. He who is called “who is to come” and “forever” will accomplish it. What we are now saying about ourselves in this respect, our ancestors also had to say, as is borne out by the psalms and the Scriptures. And out descendants will make the same discovery, prompting them to join us and the entire church in singing Psalm 124: “If it had not been the Lord who was on our side, let Israel now say,” etc.

It is a tragic thing that there are so many examples before us of those who thought they had to preserve the church, as though it were built on them. In the end they perished miserably. Yet such fierce judgment of God cannot break, humble, or check our pride and wickedness. What was Munzer’s fate in our day (to say nothing of old and former times), who imagined that the church could not exist without him and that he had to bear it up and rule it? Recently the Anabaptists reminded us forcefully enough how mighty and how close to us the lovely devil is, and how dangerous our pretty thoughts are, impelling us to pause and reflect (according to the advice of Isaiah) before any undertaking, to determine whether it is God or an idol, whether gold or clay. But it is no use — we are so secure, without fear and concern; the devil is far from us, and we have none of that flesh in us that was in St. Paul and of which he complains in Romans 7:23, exclaiming that he cannot deliver himself from it as he would like, but that he is captive to it. No, we are the heroes who need not worry about our flesh and our thoughts. We are sheer spirit, we have taken captive our own flesh together with the devil, so that all our thoughts and ideas are surely and certainly inspired by the Holy Spirit, and how can the Spirit be found wanting? Therefore it all has such a nice ending — namely, that both steed and rider break their necks.

But this is enough of such lamentations. May our dear Lord Christ be and remain our dear Lord Christ, praised forever. Amen.

(From “Martin Luther’s basic theological writings,” some pages of which are available on Google Books.)

Promise VessRAID 1840i

January 27th, 2011

I just installed two Promise VessRAID 1840i units for a client, each one loaded with 8 x 1TB Seagate Enterprise drives. With 8 more drive bays, we can easily take each unit to 24TB without replacing drives, and you can add up to 3 more expansion enclosures, 16 bays each, for a maximum total of 128TB. Impressive, to say the least.

My major issue with purchasing these units is that there is no good review information online for any of the Promise gear. No user forums, either. So you don’t know what you’re getting in to, and have to trust the word of the sales guy (did I mention these things are generally only available through reseller channels?). To perhaps help the next guy, I wanted to provide some feedback on my experiences.


I got my units empty, which I hear they won’t be doing anymore. Came with all the necessary trays and screws to load drives. SATA drives work with no adapters (unlike some Dell arrays), haven’t tried SAS drives. Simple as pie. Biggest trouble was dealing with all the trash: boxes, bubble wrap, and clamshells for the hard drives from CDW.

Power Up

The dual power supplies are rated at 450W each, 900W total, and a max draw of 9A on 100V. So I was worried about overloading my 15A circuit with two of these starting up. From experience, however, the half-loaded unit draws far less. A CyberPower UPS (very nice unit, by the way) shows a peak wattage at startup of 225W, which is only 2A at 110V. Wattage once the fans have gone to normal speed is under 150W. (This is one expensive light bulb!)

UPS Compatibility

The VessRAID has two USB ports on the back to connect the unit to an Uninterruptible Power Supply. (The second one is for an un-defined support mechanism to upload config or debug files via flash drive.) Given that there’s a pretty well-developed UPS standard for using USB HID interfaces, and I figured just about anything new should work. Nope.

The hardware compatibility list provided by Promise lists only two compatible units: APC Smart-UPS 1500, and APC Smart-UPS 3000. My guess is they’re using an antiquated APC protocol. Important note: you cannot use the cheaper SC line from APC, because they only include a serial port, not a USB port, which you get at double the price on the non-SC units. So you probably don’t want to stray from the hardware compatibility list, particularly when buying a UPS.

If, however, you’re creative, you can make something work. If you have a regular server attached to any other UPS, you could use SSH or telnet scripting to login to the VessRAID CLI and initiate a shutdown. I tested it using the Telnet Scripting Tool by Albert Yale (widely available, including at an unauthorized archive of the guy’s software).

Initial Configuration

Initial config, particularly for the network settings, is best done via the serial console port. The units include a RJ-11 to DB-9 cable, but you’ll need a working serial port on your PC or laptop. Given that most laptops don’t have one these days, you might want to invest in a USB to Serial adapter. The Trendnet TU-S9 was cheap and seems to work well.

Management through the web interface must be done on the management port, so configure it in a subnet that you can access from your other machines. NAS and iSCSI will happen through the iSCSI ports. NAS should be on the same network as the clients; you might want to isolate iSCSI traffic in a different subnet (or even a separate physical network).

Configuration (NAS)

All the “i” units of the VessRAID 1000 series (i.e., the 1840i) are mainly intended to be used as iSCSI devices, and have 4 x Gigabit ports for that very purpose. However, they also have a built in Network Attached Storage system that can be used to provide Windows sharing, FTP, and NFS access.

The pros of this arrangement:

  • The VessRAID units operate as their own distinct servers, and need not rely on any other machine to do their storage work. Particularly useful on a smaller network, or for a very particular storage task.
  • The units will sync themselves automatically, using a customized version of rsync. You can easily configure this backup from one unit to another in the web configuration software.
  • Multiple clients can access the same file system at the same time. Remember that with iSCSI, the array is presenting the low-level data blocks to the initiator on the client (a Windows server, for instance), so there is no way that multiple clients could use one file system at the same time — unless you share it through the client.

The cons of this arrangement:

  • Active Directory support (available via a firmware upgrade) is poorly implemented. Getting the NAS connected to your domain is a touchy matter, requiring an exact combination of case-sensitive domain and user names that I got to work, but couldn’t figure out.
  • Active Directory permissions are even worse. Instead of specifying which users or groups should be used in the ACL for a particular share, the NAS web configuration presents ALL of your users and groups, with default full access permissions.  If you want to include only a few users, you have to click “Deny” on every other users. If you want to include a group, you can’t effectively, because the Deny permissions on individual users will override Allow permissions on a group. This implementation is absolutely useless.
  • Poor support for Windows permission lists. This is true in any SAMBA implementation, because the underlying Linux-based file system only supports the user/group/all permission scheme. So the NAS can’t handle fine-grained permissions on folders or files within a share.
  • Speed. Access through iSCSI is much faster.

Configuration (iSCSI)

I originally configured the units in NAS mode, but the client wanted to put some Windows user shares on the array, which require fine-grained folder permissions. So I reconfigured the logical disk for iSCSI use.

The simplest approach is to use Microsoft’s iSCSI Initiator (included in Windows 2008 server, and available to download for Windows 2003 server). There are good instructions available in the VessRAID documentation and from Microsoft on how to get this to work. Especially helpful for best practices is Microsoft’s step-by-step guide.

After connecting the client to the logical disk using iSCSI, you format it in the Windows Disk Management utility. To enable use of partitions larger than 2 TB, you have to convert the disk to use GUID Partition Tables (GPT). Once done, the whole space should be available to format using NTFS. I won’t discuss it here, but make sure to consider the types of files being stored, and other requirements (such as Shadow Copies or NTFS Compression), when choosing an appropriate cluster size.


I used PassMark’s Performance Test software to obtain some basic benchmark numbers for the VessRAID’s performance. This is using a standard Broadcom Gigabit interface on a Dell Poweredge 1900. All arrays are RAID5.

Local Array
3 x 160GB
Dell PERC 5/i
Sequential Read 61.8 MBps
Sequential Write 92.5 MBps
Random R/W 7.2 MBps
WriteThru WriteBack
VessRAID 1840i
8 x 1TB
Gigabit iSCSI
Sequential Read 105.8 MBps 105.8 MBps
Sequential Write 27.9 MBps 90.6 MBps
Random R/W 12.4 MBps 31.9 MBps
ReadyNAS NV+
4 x 500GB
Sequential Read 12.0 MBps
Sequential Write 4.5 MBps
Random R/W 5.9 MBps

Note the very significant performance difference between the WriteBack cache setting the WriteThru cache setting on the VessRAID. WriteThru writes the data directly to the disks when it arrives. WriteBack holds data in cache before flushing it to disk, which is far more efficient, as sectors can be written together and larger chunks at a time. To safely do this, however, requires a battery backup for the cache, so that if power is cut suddenly you don’t lose that data (which hasn’t yet been written to disk). The problem is that Promise does NOT include the battery with the units. It’ll cost you an extra $100. You’d figure on larger units like this they wouldn’t nickel-and-dime you, but they do.

Correction: I had reversed the WriteThru and WriteBack terms. I have corrected it in the text above, after the feedback from the commenter below.

That Navy internship finally paid off…

July 7th, 2010

The big air conditioner at church wasn’t working right. The second compressor wasn’t turning on, and we couldn’t figure out what it was. Pressing the contactor on the relay powered it right up, so it was wired right. And Loran bypassed the low and high-pressure cutoff safety switches, but it still wouldn’t turn itself on.

So we found the wiring schematics from Carrier. The high power stuff was wired correctly. Problem had to be in the low voltage. So we traced compressor 1’s control wiring from the thermostat connections through the pressure switches, and did the same with compressor 2 (minus the now-disconnected switches). Everything seemed to be correct, except that the incoming low voltage for C2 wasn’t powered.

So we traced a little further, and found a broken jumper in the economizer unit that was constantly calling for outside air, and also thus not energizing the second compressor. My father the soldering gun guru did a little magic on the resistor wire, and C2 powered right up.

Back in the summer of ’95, I had a crazy little summer internship for NAVSSES, the Naval Ship Systems Engineering Station, at the Philadelphia Navy Yard. I worked for the boiler control division, doing electrical diagrams for steam boiler and turbine control systems. And now, 15 years later, it finally pays off. Turns out I can read an electrical diagram.

Forgiveness – Walking to lose weight: Does it work?

June 30th, 2010


Experts told TODAY how walking can help with weight loss and shared some quick tips on how to make your workouts even more effective.

Looking for an easy-to-start workout regimen that can show results, without having to go to the gym or spend money on equipment?

Try walking.


It might not seem like the most efficient exercise available, but experts on the topic say it can help with weight loss, mental health and more. Even a few thousand steps a day can burn hundreds of calories, and it’s easy to add some modifications to your routine to lose weight. Visit biofit probiotic reviews site for more details about healthy habits. Read up and understand crohn’s diease and why it is important to eat healthy.

Can walking really help you lose weight?

According to Cedric Bryant, Ph.D., the president and chief science officer of the American Council on Exercise, walking “certainly can” help with weight loss.

“It is a low-impact aerobic exercise that allows individuals to expend energy and burn calories, so it can certainly help with weight loss,” said Bryant.

Some recommend walking as a form of exercise due to its simplicity and accessibility.

“I am a fan of walking as a form of movement — especially if you’re just getting started,” said Marisa Moore, a registered dietitian in Atlanta, Georgia. “What’s most important is finding a type of activity you like and will do.”

Walking is a low-impact exercise that can help many.
Walking is a low-impact exercise that can help many. Alistair Berg / Getty Images

If you are using walking as a tool to help lose weight, Bryant recommends walking for at least 45 minutes per day most days of the week.

“The basic recommendations in terms of general health and well being is to just to meet a minimum threshold of about 30 minutes of activity on most days of the week,” he said. “If you’re desiring to lose weight, you really want to work in the 45 to 60 minute range. The thing to understand is that it doesn’t have to be all in one walking session, you can break it up through the course of that day.”

Bryant recommends breaking up those walks into two or three large chunks. These are just some of
one and done workout healthy benefits.

“Maybe you go for a 30 minute walk in the morning, and then maybe it’s another 15 or 30 minute walk following dinner or during your lunch break,” he suggested. ” “The idea is to try to accumulate, you know, for about 45 minutes to an hour of walking, which tends to correlate best with reasonable weight loss or or better weight control.”