Jul 22 2008

No Media Bias Here!

Published by steve under Politics

On July 14th Senator Obama wrote an editorial for the New York Times entitled "My Plan for Iraq". As is common during election years, John McCain then submitted a rebuttal editorial to the New York Times. But in an uncommon development, the Times refused to print it. Since the media seems intent on suppressing debate, many blogs have been posting the text of McCain's editorial, and I will do the same here:

Rejected NYTimes Editorial
by John McCain (7/21/2008)
:

In January 2007, when General David Petraeus took command in Iraq, he called the situation “hard” but not “hopeless.” Today, 18 months later, violence has fallen by up to 80% to the lowest levels in four years, and Sunni and Shiite terrorists are reeling from a string of defeats. The situation now is full of hope, but considerable hard work remains to consolidate our fragile gains.

Progress has been due primarily to an increase in the number of troops and a change in their strategy. I was an early advocate of the surge at a time when it had few supporters in Washington. Senator Barack Obama was an equally vocal opponent. "I am not persuaded that 20,000 additional troops in Iraq is going to solve the sectarian violence there,” he said on January 10, 2007. “In fact, I think it will do the reverse."

Now Senator Obama has been forced to acknowledge that “our troops have performed brilliantly in lowering the level of violence.” But he still denies that any political progress has resulted.

Perhaps he is unaware that the U.S. Embassy in Baghdad has recently certified that, as one news article put it, “Iraq has met all but three of 18 original benchmarks set by Congress last year to measure security, political and economic progress.” Even more heartening has been progress that’s not measured by the benchmarks. More than 90,000 Iraqis, many of them Sunnis who once fought against the government, have signed up as Sons of Iraq to fight against the terrorists. Nor do they measure Prime Minister Nouri al Maliki’s new-found willingness to crack down on Shiite extremists in Basra and Sadr City—actions that have done much to dispel suspicions of sectarianism.

The success of the surge has not changed Senator Obama’s determination to pull out all of our combat troops. All that has changed is his rationale. In a New York Times op-ed and a speech this week, he offered his “plan for Iraq” in advance of his first “fact finding” trip to that country in more than three years. It consisted of the same old proposal to pull all of our troops out within 16 months. In 2007 he wanted to withdraw because he thought the war was lost. If we had taken his advice, it would have been. Now he wants to withdraw because he thinks Iraqis no longer need our assistance.

To make this point, he mangles the evidence. He makes it sound as if Prime Minister Maliki has endorsed the Obama timetable, when all he has said is that he would like a plan for the eventual withdrawal of U.S. troops at some unspecified point in the future.

Senator Obama is also misleading on the Iraqi military's readiness. The Iraqi Army will be equipped and trained by the middle of next year, but this does not, as Senator Obama suggests, mean that they will then be ready to secure their country without a good deal of help. The Iraqi Air Force, for one, still lags behind, and no modern army can operate without air cover. The Iraqis are also still learning how to conduct planning, logistics, command and control, communications, and other complicated functions needed to support frontline troops.

No one favors a permanent U.S. presence, as Senator Obama charges. A partial withdrawal has already occurred with the departure of five “surge” brigades, and more withdrawals can take place as the security situation improves. As we draw down in Iraq, we can beef up our presence on other battlefields, such as Afghanistan, without fear of leaving a failed state behind. I have said that I expect to welcome home most of our troops from Iraq by the end of my first term in office, in 2013.

But I have also said that any draw-downs must be based on a realistic assessment of conditions on the ground, not on an artificial timetable crafted for domestic political reasons. This is the crux of my disagreement with Senator Obama.

Senator Obama has said that he would consult our commanders on the ground and Iraqi leaders, but he did no such thing before releasing his “plan for Iraq.” Perhaps that’s because he doesn’t want to hear what they have to say. During the course of eight visits to Iraq, I have heard many times from our troops what Major General Jeffrey Hammond, commander of coalition forces in Baghdad, recently said: that leaving based on a timetable would be “very dangerous.”

The danger is that extremists supported by Al Qaeda and Iran could stage a comeback, as they have in the past when we’ve had too few troops in Iraq. Senator Obama seems to have learned nothing from recent history. I find it ironic that he is emulating the worst mistake of the Bush administration by waving the “Mission Accomplished” banner prematurely.

I am also dismayed that he never talks about winning the war—only of ending it. But if we don’t win the war, our enemies will. A triumph for the terrorists would be a disaster for us. That is something I will not allow to happen as president. Instead I will continue implementing a proven counterinsurgency strategy not only in Iraq but also in Afghanistan with the goal of creating stable, secure, self-sustaining democratic allies.

No responses yet

Apr 24 2008

VB.Net: Word Search Generator

Published by steve under Programming

Previously I wrote a long post explaining how I created an algorithm to generate Word Search puzzles. I used the wonderful perl scripting language, which is typically my language of choice for utility programs.

Since that time I undertook the task of recreating the same logic in VB.Net. Here is my finished product. Reading through the previous post will describe the logic, which I attempted to reuse as closely as possible. I'm not going to walk through any of the code here, but you can view it in the source files provided in the zip file. Whereas I find perl more fun and cleaner to program in, the resulting user experience from the VB.Net environment is sooooo much nicer. You'll need to have .Net 2 installed to run this.

No responses yet

Apr 10 2008

In praise of … Beyond Compare

Published by steve under Technology

Everyone has their favorite utility programs, those trusty apps that we just can't live without. For me perhaps at the top of the list is the outstanding file comparison program, Beyond Compare from Scooter Software.

There are certain tools which are so well designed and implemented that using them becomes like second nature. Beyond Compare is one of those tools for me. Beyond Compare allows you to compare directories of files and highlights for you the differences. You can define what constitutes a file difference (i.e. text comparison, binary comparison, timestamp comparison), you can choose to ignore certain files which you don't care about (i.e. maybe extraneous thumbnail files), and you can tailor what is shown to you (like all files, just mismatched files, just orphan files, etc...). Once file differences are located, you can sync up the files, or you can open a file comparison window that shows exactly what the differences are. From there you can pick and choose parts of the differences that you want to move from one file to the other.

Another great feature is that you can script your actions, allowing you to automatically sync file systems. Just create a scheduled task in Windows that invokes a given session of Beyond Compare, and it will completely sync two file trees in the background, using all the logic that you defined for that session. Also, the file systems you are dealing with don't have to be just on your network; you can compare/sync to an FTP site as well.

I've used Beyond Compare daily for years to handle code promotion in a 3-tier development environment. It's always worked quickly and flawlessly for me. Beyond Compare is not a free tool - but it is so affordable that buying it is really a no-brainer. Thanks Scooter Software for creating such an outstanding tool!

No responses yet

Mar 26 2008

Speaking of Digitizing

Published by steve under Technology

I ran across a site which may be the one to address the need for online census records which I wrote about recently. It is footnote.com and it uses a flash interface to view scanned documents.

They've gone through the effort to photograph every name on the Vietnam memorial, and attach biographical information to each one. Very impressive use of technology. Can you imagine digitized images of all past U.S. census forms, hyperlinked to a master genealogy database, maintained by crowdsourcing? Perhaps unrealistic because of disagreements of who is really an ancestor, but then again no one thought Wikipedia would be able to work either.

No responses yet

Feb 12 2008

Programming Sudoku

Published by steve under Programming

I've been reading a copy of Programming Sudoku by Wei-Meng Lee.

Wow - what a great book! First off, it contains a very clear explanation of creating an algorithm to solve Sudoku. Since I'm interested in creating puzzle solving algorithms, this is naturally something I want to read! I wish I could explain things as well as he does. Secondly, it serves as a great starter project for someone new to Visual Studio 2005 and Visual Basic. I really enjoy programming books that have a single project as their goal - and this one is the best I've seen. It makes it so much more useful than a book that contains nothing but disjointed code fragments.

One response so far

Jan 04 2008

Google, Digitize This

Published by steve under Technology

Google has been working for some time to scan library books and make them available online. But I would rather have them spend their time on something else. Scan in all census records and marriage records from the 50 states. This would greatly aid genealogy research.

The 1880 census is already online. With other censuses, there are pay-services which can supply them. Why should anyone have to pay for it? Our taxes conducted the census-taking, it should be available to the public for free. I know they are available for free at certain libraries/locations, but this is the internet age. We want them free online. Besides the once-a-decade census, being able to get public records of marriages from every little courthouse in America would be great.

If there are privacy issues, then only scan in data from before 1900. That covers most of what family-tree researchers are looking for anyway. Thanks Google!

No responses yet

Jan 01 2008

Credit Card Feeds

Published by steve under Technology

RSS feeds are great for keeping up with breaking news. Would it be nice to use one to keep track of your expenses? Huh?

What I envision is your credit card company provides you with a feed for activity on your card. Maybe the feed address would be something like http://www.discovercard.com/feeds/498shfkcnwiruy2hfdnwlk. The random string at the end is unique to you, but knowing it doesn't tell you anything about your card account number or identity.

You would subscribe to the feed with bloglines or google reader or whatever your favorite aggregator is. Then as soon as a charge gets posted on your account, a item shows up in the feed with the date, amount, and (possibly) vendor. So if you're sitting at your desk toiling away while your significant other is out spending money with abandon, you are going to know about it right away. Plus if someone has stolen your card number and is buying a flat panel TV at your expense, you are going to see the fraud immediately.

I know there are security concerns with this. Would having a randomized feed URL with no relation to your account be enough? I doubt it. Anyone could randomly search for feeds and then see some info, but there is nothing there that tells anything about the person or the account. But...I'm sure someone would start scraping all the feeds they could find to deduce spending habits, and then try to do something with that data. It would be better if the RSS feeds would require a secure login in order to read them.

I started thinking about this after one or our credit card number got stolen and someone charged some items to it (all online purchases). We caught the problem when the paper statement came, and got the money back. After that episode I starting logging in to the online statement from the credit card company and looking through the charges more frequently. But that is not very fun, especially if you are many cards. If all your credit companies gave you an RSS feed, the process would be very easy and likely it would cut down on fraud.

No responses yet

Dec 23 2007

perl: Word Search Generator

Published by steve under Programming

Intro

I enjoy doing puzzles, and find myself picking up these variety puzzle magazines to give myself something to do while sitting on the beach during vacation. And eventually I end up thinking about how they create these different types of puzzles, and wondering if I can come up with a way to create them myself.

Everyone is familiar with word search puzzles. A grid is filled with seemingly random letters, and a list of words is given. Your job is to find the words hidden in the grid. In this post I'm going detail a program to generate word search puzzles. The language I used is perl 5. Features of the program will be:

  • will run locally on a PC; from the command line (this is not a web application)
  • will generate puzzles of various sizes
  • words can be hidden in various directions
  • output will be a PDF file, which can be viewed or printed

As a disclaimer; my word search program is undoubtedly not the most clever way of solving this problem. My perl code is not the cleanest, nor is it the most reusable. And there are others who have already solved this problem - as usual there is a perl module out there that does it already! But there is a certain level of satisfaction that comes with thinking through it yourself - which was my motive here.

If you want to run the program yourself, you'll need to install perl. You'll also need one extra perl module; PDF::Create. You will find that ActiveState perl has good tools which allow you to add this module.

In the following discussion I'll show pieces of the perl code, with comments. You may want the full source code itself. Here it is, right-click to save as.

  • ws.pl - the perl source code (rename to ws.pl)
  • animals.txt - a sample configuration file

We will start by working out the logic needed....

Pages: 1 2 3 4 5 6 7

No responses yet

Dec 21 2007

First post

Published by steve under General

Well I never thought it would happen; but I'm blogging.

I grabbed that latest WordPress and set it up on my own domain. I've used WordPress many times on other sites I've built - but never thought on using it for my own site. But it provides a nice look and a nice content management system, so I relent.

I'm starting with the nice Paalam theme by Sadish at wpthemepark.com. I might modify the picture if I can find something more appropriate.

The two services I've had on my site since forever, WhoWhatWhen and QuoteOMatic, and still here and appear in the header. But I'm going to try posting some programming-related thoughts. Who knows where it will lead?

No responses yet