Seriously though. I’ve known about the concept of ‘regular expressions’ for years, but for some reason I never took the plunge. And now that I have, my mind is absolutely blown away. Remember all those months in grad school (c. 1998-2000) when I was OCRing, proofing and manually parsing thousands of letters into my Access database? Well I sure do.
Twenty years later, I now discover that I could’ve shaved literally months off that work, if only I’d adopted the regex way of manipulating text. I’ll blame it on the fact that “digital humanities” wasn’t even a thing back then – check out Google Ngram Viewer if you don’t believe me.
So let’s start at the beginning. Entry-level text editing is easy enough: you undoubtedly learned long ago that in a text program like Microsoft Word you can find all the dates in a document – say 3/15/1702 and 3/7/1703 and 7/3/1704 – using a wildcard search like 170^#, where ^# is the wildcard for any digit (number). That kind of search will return 1701 and 1702 and 1703… But you’ve also undoubtedly been annoyed when you next learn that you can’t actually modify all those dates, because the wildcard character will be replaced in your basic find-replace with a single character. So, for example, you could easily convert all the forward slashes into periods, because you simply replace every slash with a period. But you can’t turn a variety of dates (text strings, mind you, not actual date data types) from MM/DD/YYYY into YYYY.MM.DD, because you need wildcards to find all the digit variations (3/15/1702, 6/7/1703…), but you can’t keep those values found by wildcards when you try to move them into a different order. In the above example, trying to replace 170^# with 1704 will convert every year with 1704, even if it’s 1701 or 1702. So you can cycle through each year and each month, like I did, but that takes a fair amount of time as the number of texts grow. This inability to do smart find-replace is a crying’ shame, and I’ve gnashed many a tooth over this quandary.
Enter regular expressions, aka regex or grep. I won’t bore you with the basics of regex (there’s a website or two on that), but will simply describe it as a way to search for patterns in text, not just specific characters. Not only can you find patterns in text, but with features called back references and look-aheads/look-backs (collectively: “lookarounds”), you can retain those wildcard characters and manipulate the entire text string without losing the characters found by the wildcards. It’s actually pretty easy:
Yep, it’s been a computational summer. Composed mostly of reading up on all things digital humanities. (Battle book? What battle book?) Most concretely, that’s meant setting up a modest Digital History Lab for our department (six computers, book-microfilm-photo scanners, a Microsoft Surface Hub touch display, and various software), and preparing for a brand new Intro to Digital History course, slated to kick off in a few weeks.
I’ve always been computer-curious, but it wasn’t until this summer that I fully committed to my inner nerdiness, and dove into the recent shenanigans of “digital humanities.” Primarily this meant finally committing to GIS, followed by lots of textual analysis tools, and brushing up on my database skills. But I’ve even started learning Python and a bit more AppleScript, if you can believe it.
So, in future posts, I’ll talk a little less about Devonthink and a bit more about other tools that will allow me to explore early modern European military history in a whole new way.
…my export test from Aeon 2 timeline software to the web. Preparing to teach a new Introduction to Digital History course in the fall, while overseeing the creation of a modest Digital History Lab, will make you dust off all sorts of old, half-baked projects.
So we just reacquainted ourselves with my old website, started in 1998-1999, a period which coincided with me procrastinating after returning from my dissertation research in the French, English and Dutch archives. I had allowed the website to go fallow (but running) since 2006 or so – funny how a full-time job will do that. So today we reconnected, remembered the right password, downloaded local copies to sync on a new computer (using Dreamweaver), and now we’re up and running again.
Hopefully I’ll be able to put up a bunch of timelines for my various courses on the site, so I can give the URLs to students, as well as pull up the timelines in the classroom, rather than lug in my laptop and hook it up to the projector. Manually creating timelines in Illustrator has been fun (for example), but it takes a long time to make each one, and the data isn’t exportable, searchable, or manipulable like CSV files are. Which might be useful, say, if you were getting back into databases. Once I get GIS under my belt, I might possibly put up some maps as well – to replace those old AutoCAD map files from 1997. Oh yeah, I should probably replace that circa 1999 homepage too:
It seemed cool 18 years ago (to me, at least), but I’m told styles have changed since then.
And I’d totally forgotten about my attempt to create a website for EMEMHers circa 2002. Turns out I even posted a few items, like the data from Erik Lund’s Austrian generals, and a PDF of John Lynn & George Satterfield’s Guide to Early Modern Military Sources in Midwestern Research Libraries (back when the proximity of rare book rooms was critical). Most amusing is my page where I include a list of books that it’d be great to have digital copies of. Good times. Of course, it’s also kinda depressing to realize that I’m now a part of history.
Jumping back to the present, my first experiment merging the early 21st century with the late 20th century seems successful – a timeline of various events and individuals from the Crusades. A course which, FWIW, I’ll be teaching again this fall. So if you’re interested in seeing how the Aeon timeline software translates to the Internet, take a peek at http://www.jostwald.com/Timelines/CrusadesTimeline/aeontimeline.html. The timeline is dynamic: scrolling, zooming, searching, collapsing ‘arcs’, and clicking on arrows for further details. I haven’t updated the data to take advantage of Aeon version 2 yet, nor have I connected all the people and events or included many notes. But feel free to send any corrections my way.
Next up: figuring out the Simile widget, which will allow a bit more customization. An interesting example of combining an interactive timeline and map is here. Throw in embedded widgets for family trees, maps (Google or otherwise), argument maps, and Voyant text analysis – now you’ve got yourself a historical toolkit worthy of the 21st century!
Looking back over my own experience with twenty years of Internet history, I’m reminded of that old Virginia Slims cigarette ad: “We’ve come a long way, baby.”
Busy with various projects, including designing a digital history lab.
But I did attend the Joe Guilmartin memorial conference earlier this semester, where the attendees alternated between laughing at our collective recitation of Guilmartin’s many bons mots, and growing contemplative (and perhaps wiping away a stray tear or two) as his former advisees testified to his impact on their academic careers.
My contribution to the proceedings was to open up the conference with a broad think-piece about developing a more precise taxonomy/typology of the levels of war, spurred by JFG’s introduction to the subject long long ago. A few examples of the course materials he handed out in his seminal European Warfare course.
So here’s the revised “strategy” matrix. There are plans for conference proceedings, wherein I’ll explicate the below chart (and much more), and add a few more levels. So feel free to leave suggestions or comments. especially about those pesky column labels.
Here is a simple operational-level map I created for my European Warfare class to try to reinforce the ideas of:
- What the operational level entails, and looks like on a map, particularly in contrast with a tactical-level map.
- How an army has multiple strategies available to it in order to achieve its strategic objectives. There are others I could have included if I’d had time (esp. amphibious).
Of course as we get further into the 18C and start talking about Napoleon et al, we’ll complicate it with the “operational art”: multiple armies, marching by different routes, etc.
And let’s not forget that whole DIMEFIL thing, courtesy of the DoD.
Feel free to use (because you know you want to), with proper attribution, of course.
I’m thinking about making a few minor changes to my European Warfare, 1337-1815 course next semester. Past versions have focused a fair amount on the narratives of various wars: out of the 38 class meetings (50 minutes each), I devote one class meeting each on the 100YW, the Ottoman wars, the Wars of Italy, the French Wars of Religion, the Dutch Revolt, the 30YW, L14’s wars, Frederick the Great’s wars, the French Revolutionary wars, and the Napoleonic Wars. The rest are topical.
This time I’ll be condensing a few of the war narratives and warfare topics into a single class (sorry Dutch Revolt, sorry French Wars of Religion). Thus I’ll focus on the Italian Wars, the 30YW, Frederick’s wars, the Revolutionary/Napoleonic wars, but more and more Louis XIV’s wars. This will give me more space to read a few of the new French books out, and focus a bit more on the actual process of campaigning, Louis XIV-style. This includes dedicated classes on small war, professionalization (military ranks/organization…), maybe even the fiscal-military state. Shockingly, I hardly mention the Military Revolution in the course – I’m not a big fan of sweeping historiography at the undergrad level. Even in a course that covers almost 500 years of European military history!
But to the reason for my post: Any suggestions for good early modern combat sequences from movies? I’ll include a few scenes from Alatriste, and there are a few things on YouTube, but if you have any other favorites, let us know in the comments.
Just finished teaching the Crusades for the first time, like, ever. Never even taken a medieval history course for that matter. Sad, no?
Anywho, on my first go-through of a new history course I focus on getting the narrative down. (For those curious, I assigned Madden’s Concise History of the Crusades and Allen and Amt’s source reader.) In later iterations I add in more topical subjects – case studies, interesting primary sources… The first go-round isn’t always the most fun for the students, but if there’s one lesson of History I’ve learned, it’s that you really can’t make any intelligent generalizations about a period, can’t have a discussion of any depth, if you don’t first know what actually happened (or think happened, in the case of the Crusades). Especially if the prof doesn’t know.
So even though I spent extremely little time this semester talking about the period’s warfare (mostly about sacking cities and grand strategic-level stuff), my initial, off-the-cuff and undigested impressions of the military history of the Crusades are:
- Sometimes no organization and no central authority is better than lots of organization and attempted central authority (compare the First and Fourth crusades).
- Sometimes trying to avoid the mistakes made by your predecessors just leads to the same mistake, but by a different route (see just about all the Egyptian campaigns).
- Sometimes trying to avoid the mistakes made by your predecessors leads to massively-impractical schemes (see Maximilian I’s 1518 crusade plan).
- Fighting 2,000 miles from your home base is hard (see every Crusade).
- Fighting 2,000 miles from your home base while relying upon your enemy-from-back-home is even harder (see every Crusade, but especially the Third). Coalition warfare is difficult – William III & Co. did a pretty good job, all told.
- Relatedly, unity is a hard thing to come by (see most Muslim responses to most Crusades, and most Christian responses to most setbacks in the Latin East. And those Normans were a pain in the ass – I’m looking at you Bohemond).
- It is so much easier to teach a subject when you have 4 different historical atlases that illustrate just about every major operation.
- Given my reliance on all those maps, I developed an unoriginal list of generic questions to ask when trying to explain any big shift in foreign policy/war, or why a successful army turns back:
- Did a ruler or general die?
- Were they attacked on another front?
- Did segments of the army(ies) have a falling out?
- Did a coup or civil war break out back home?
- Was there a famine/economic crisis…?
- Some student will inevitably ask about those tiny little arrows on the map, and you’ll have no idea what they refer to. Count on it.
- I’m shocked how important the Byzantine fleet was in controlling early Frankish access to Anatolia via the Bosporus ferry. (But see #1.)
- Avoid naming your kids Baldwin, Raymond, or Alexios.
- I had no idea the Byzantines were so kinky, into maiming each other and all.
- Don’t expect a History Channel special on the Kingdom of Heaven movie to talk about Ridley Scott’s secular caricature of medieval religion. Do expect it to have Kelly DeVries taking us on a tour of a medieval castle.
Future posts on the explosion in French EMEMH research. My advice: learn to read French if you can’t already.