Posts by Category : Coding

First Roadblock Scraping PDFs from ProQuest Historical Newspapers 3

Part of my dissertation research involves getting a giant corpus of newspaper articles from ProQuest Historical Newspapers. I need the editorial pages and A section from the Washington Post from 1946-1989 and from the Los Angeles Times from 1963-1989. I also need all of Paul Conrad's editorial cartoons from the LA Times for the same years since he was notorious for giving away originals and his archives don't have his complete body of work (unlike Herblock who never gave away an original in his life Read More

If it ain’t broke, don’t fix it 0

I don't have too much to report this week. My work at the CHNM took a bit of precidence over Clio as we just launched our new issue of the Journal of Digital Humanities today and my job is to create the iBook. This is a pretty involved process but it's really fun. It was also a nice break from coding as it's very visual and design orientated so it gave the other side of my brain a chance to play a bit. But I did manage to get quite a bit done on my form before I had to switch gears and brains. I Read More

Theory Matters in Code…Who Knew? 1

What I learned on Saturday: Just because you are copying code and just changing the variable names does not mean it will work the first time you try because, you: changed the wrong variable, forgot how you named things in your database or forgot to call the function you just wrote in your file, the debates I'm having with controlled vocabulary effect how I code. This last one was interesting for me. I finished creating a generic function for populating my joiner database and once that was done there Read More

Populating Multi-Select Boxes From Your DB Using an All-in-One PHP Form 5

*Author's note: this post has been updated and rewritten as of Nov. 8 based on comments in the comment section. So you have a database that you want to enter information into via a form and you want the form to have a multi-select box that both gets populated from your database and will have the associated data to an entry pre-populated when you edit an entry. It would look something like this in new entry mode: and something like this in 'Edit' mode: This tutorial is designed to teach you three Read More

Arrays, Foreach, & Explode…Oh My! 1

So since the other cool kids in my class are blogging their progress I thought maybe I should do the same. I figure it would also be a good way to track what I've done, what I have left to do and keep track of some of the places where I found my code. Up until last week I've felt very behind the rest of my classmates. While they were already playing with data sets that already existed (and this does not mean they had it easier than me as Jeri's post can attest to) I had to first figure out how to Read More