Drupal Caulfield's blog

Boost Regex Search from a file into a string and then into a Sqlite Database (1 of 3)

 This is the first post in a 3 post series on using C/C++, the Boost libraries, and SQLite. This post will cover getting things together and trying a test db. There isn't a lot of information out there about how to use the boost regex library in C/C++ and even less examples of people parsing the output. I never quite figured out exactly what kind of data type m is in the function, but I did figure out how to do what I wanted. I can read a file, parse it into a string, use the boost regex_search function to return all the values I was searching for and then finally to take those results and put them into a SQLite database. 

Boost Regex Search (2 of 3) - Using the regex_search function

 This is the second post in my three post series on using the Boost Regex library in Dev-C++ in cooperation with SQLite. The first post can be seen here. This time we are going to actually use the regex_search function in order to parse through a file and return the results for us to put into the database.

Regular Expressions in Notepad++ or Scite

I like Notepad++ and Scite (for Windows and Linux respectively) and use them as my editor of choice for many projects. They are both formed off of the Scintilla backend. Today, I was going through some HTML forms, you know the ones with a multitude of option elements for state, country, etc. Imagine you had to get all of the state names and country names out of those option selections. There are plenty of ways, but doing a regex find and replace in Notepad++ makes it pretty easy.

Drupal Gardens Beta

 Drupal Gardens announced their official beta today, which is a bit ahead of schedule. Fortunately, I received an invite and can't wait to do some further playing around in Gardens. The alpha test was already pretty smooth, and quite pretty, so will enjoy seeing if the quirks from alpha have been taken care of in beta. Check it out at http://www.drupalgardens.com/

 

A review of Cracking Drupal: A Drop in the Bucket

Cracking Drupal: A Drop in the Bucket is the first book specifically discussing vulnerabilities in the Drupal Content Management System. However, is it all it's 'cracked up' to be? 

Pages

Subscribe to RSS - Drupal Caulfield's blog