Search Results: "Dirk Eddelbuettel"

2 August 2006

Dirk Eddelbuettel: New version of digest package for R

A few days ago, Henrik Bengtsson reported that my digest package breaks under R-devel, i.e. what will be R 2.4.0 come October. Being a good sport, he also debugged and patched this :-). I made a new version (0.2.2) available that is waiting in CRAN's incoming area until the CRAN maintainers come back from vacation. In the meantime, it is also available on a simple digest page I finally added to the code section here. So as an belated into, digest provides hash digests of arbitrary R objects by relying on the wonderss of R's serialize() function, and a simple interface to (C-level) md5, sha-1 and crc32 functions. Clearly, digest is not meant for crypto but rather to quickly summarize, compare or even cache complex R objects that may have arisen from larger computations or simulations. Apparently, Henrik uses digest to compute hash functions of arbitrary R objects that can be cached using his R.cache package.

29 July 2006

Dirk Eddelbuettel: Patch to build palm-db-tools_0.3.6 with recent g++ versions

A freshly downloaded version of palm-db-tools (using the most recent version 0.3.6 from June 2003) will not compile with g++ 4.0.3 and its pickier interpretation of C++. A simple patch which removes trailing semicolons after class definitions, and adds virtual destructors for a few classes, is below. The mailing list archives show one other patch for a different (yet probably relevant :) problem, and its from November 2003. By the way, would be nice if someone added the package to Debian. The Makefile's make clean target isn't quite right, and make install isn't exactly correct either. Plus, I seem to be building this by hand every few years, and it's so much easier to just apt-get. And no, my plate is already too full.
diff -ru palm-db-tools-0.3.6.orig/libpalm/Block.h palm-db-tools-0.3.6/libpalm/Block.h
--- palm-db-tools-0.3.6.orig/libpalm/Block.h	2003-06-19 18:37:47.000000000 -0500
+++ palm-db-tools-0.3.6/libpalm/Block.h	2006-07-29 15:04:19.000000000 -0500
@@ -176,7 +176,7 @@
 	size_type m_size;
      ;
 
- ;
+ 
 
 bool operator == (const PalmLib::Block& lhs, const PalmLib::Block& rhs);
 
diff -ru palm-db-tools-0.3.6.orig/libpalm/File.h palm-db-tools-0.3.6/libpalm/File.h
--- palm-db-tools-0.3.6.orig/libpalm/File.h	2003-06-19 18:37:47.000000000 -0500
+++ palm-db-tools-0.3.6/libpalm/File.h	2006-07-29 15:04:42.000000000 -0500
@@ -89,6 +89,6 @@
 	uid_map_t m_uid_map;
      ;
 
- ;
+ 
 
 #endif
diff -ru palm-db-tools-0.3.6.orig/libsupport/infofile.h palm-db-tools-0.3.6/libsupport/infofile.h
--- palm-db-tools-0.3.6.orig/libsupport/infofile.h	2003-06-19 18:37:47.000000000 -0500
+++ palm-db-tools-0.3.6/libsupport/infofile.h	2006-07-29 15:07:08.000000000 -0500
@@ -33,6 +33,7 @@
          
         public:
             virtual void parse(int linenum, std::vector< std::string> array) = 0;
+	  virtual ~Parser()  ;
          ;
         class ConfigParser: public Parser
          
@@ -40,6 +41,7 @@
                 ConfigParser(DataFile::CSVConfig& state)
                     : m_Config(state)
                      
+	        virtual ~ConfigParser()  ;
                 virtual void parse(int linenum, std::vector< std::string> array);
             private:
                 DataFile::CSVConfig& m_Config;
@@ -50,6 +52,7 @@
                 DatabaseParser(PalmLib::FlatFile::Database& db)
                     : m_DB(db)
                      
+	        virtual ~DatabaseParser()  ;
                 virtual void parse(int linenum, std::vector< std::string> array);
             private:
                 PalmLib::FlatFile::Database& m_DB;
@@ -60,6 +63,7 @@
                 TypeParser(std::string& p_Type)
                     : m_Type(p_Type)
                      
+	        virtual ~TypeParser()  ;
                 virtual void parse(int linenum, std::vector< std::string> array);
             private:
                 std::string& m_Type;

23 July 2006

Dirk Eddelbuettel: RQuantLib 0.2.3

A few minutes ago, a new RQuantLib package 0.2.3 was uploaded to CRAN and Debian. The main changes are an upgraded the very newest version 4.2 of RcppTemplate by Dominick, and updates throughout ensuring that RcppTemplate is now used for all R to C++ interfaces.

Dirk Eddelbuettel: Waterfall Glen Xtreme 10m

Ran in the third annual Waterfall Glen Xtreme 10mile race this morning. Beautiful scenery in the forest preserve around the Argonne labs southwest of Chicago, and gorgeous weather now that the heat wave has broken. This race starts and ends in cross-country fashion on an open field and begins with a wide 'parallel' start -- something I'd never done but quite enjoyed. The course is fairly hilly by Illinois standards and thus a bit of challenge. As with some other race, started too fast and faded somewhat. The final time of 71:54.5 is still fine with a 7:11 pace/mile and minimally faster than the previous personal best from two years ago on a flat course. I think I'll be back for the race next year.

21 July 2006

Dirk Eddelbuettel: Undeleting from ext3

Kudos to Paul Wise who suggested late last night to try magicrescue to recover an OpenOffice file with meeting notes I had mistakenly deleted from the laptop before I even got to editing these very notes, or backing them up. And it worked -- despite the dire warnings from the ext3 FAQ about the near impossibility of undeleting from ext3 partitions. But a few things worked in my favour here: OpenOffice files are zip files 'under the hood', and magicrescue knows how to deal with certain file formats via its collection of 'recipes' (which one can extend), and zip is among the shipped recipes. Also, I still had the 'ls -l' session in one konsole tab so I knew the exact file size I was looking for. And I wasn't in a hurry. So this morning, after magicrescue had faithfully restored 4479 files in over four hours, its companion magicsort then filtered these into a handful of directories, one of which was 'OpenDocument Text' -- which contained a few files, including two versions of the desired file as well as copies of the version from the previous meeting. Nice. And OpenOffice gladly opened the file. Lastly, it cetainly helped that I happened to have a lurking debian-devel irc session open where --- where Paul not only caught my remark, but almost immediately suggested to try magicrescue. So here goes a well-earned Thank You to Paul!

20 June 2006

Dirk Eddelbuettel: UseR! 2006 presentation

A quick note to mention that the slides from my talk at last week's UseR! 2006 conference in Vienna are on my website. My presentation introduces and briefly discusses fifteen different ways to 'use R' in Quantian. Roughly bucketed into four categories (classic, graphical, web-based and programmatically), these approaches cover the spectrum from the well-known to newer and promising interfaces. And of course all run 'as is' directly off a self-configuring and directly bootable Quantian dvd or iso image. Once again, thanks to the organizers in Vienna who mounted yet another conference that was both fun, informative and packed with excellent talks. It also drew even more R users and developers than before -- almost twice the number of participants and presentations than in 2004. It looks like we will meet next year in Boston for a North American UseR!, followed by Munich in 2008.

7 June 2006

Dirk Eddelbuettel: Vraiment mal!

A few days ago, AvantGo syncing to my trusted (yet dated) Tungsten C failed all of a sudden. As I hadn't updated anything on the Kubuntu / Ubuntu box I use as my home workstation, and the (aptly named) malsync library which implements the protocol under Linux/Unix didn't change, I was a tad puzzled. Perusing AvantGo's website was pointless. Years ago they mentioned Linux support via the (unsupported) malsync library, now they seem to hide it. So what the heck, off went an email to AvantGo's support. To their credit, a reply arrived within 48 hours. While they pointed me to a Mac OS X answer (eek!) in their knowledgebase, it contained the basic hint: new prc files for a new version were required. So Google: if someone asks you why AvantGo syncing from Linux all of a sudden fails, tell them to get the new files from here. The app is now called M-Business and requires a fresh setup of server, id and password; but you're off to the races afterwards.

4 June 2006

Dirk Eddelbuettel: Sunburst Races Marathon 2006

Went to South Bend, Indiana, on Friday for the 2006 Sunburst Marathon yesterday morning. This is a smallish marathon with 600 runners, embedded in a half-marathon, 10k and 5k all of which start at the College Football Hall of Fame and end in the Notre Dame football stadium. Early 6:00am start, made worse by the fact that it is one time zone earlier too so I got up at 3:30am 'my time. Ouch. The race almost didn't start as a hazardous materials spill was announced right at start time. Luckily, that got taken care of and we were off and running at 6:15am. The first ten to twelve miles went pretty well and fast, and I slowed down a little afterwards. I started to pay for the fast first half with some oncoming cramps starting around mile 18. Somehow I managed to suppress the cramps with a combination of walking water stops, gatorade, gu (handed out by the race organisers a four or five water stops -- nice!) and sheer stubbornness and some more walking when needed. I had aimed to beat my Boston qualifying time of 3:20 -- and I did with a chip time of 3:17:48, which is also another PR and a nice improvement over the previous three marathons. So on to Boston for the one hundred eleventh Boston Marathon next April!

29 May 2006

Dirk Eddelbuettel: Quantian HOWTO on running / installing inside a VMWare Player virtual disk

Based on the detailed notes by Simon Blomberg which he sent me by email, I added a reasonably detailed HOWTO on running Quantian via the VMWare Player. I had intially blogged about this here and here, but never expanded on this. The HOWTO shows how to create a virtual disk using the qemu-img command from qemu, how to add such a disk image to simple the VMWare Player configuration file, and howto install into that disk, and later boot from it, inside a VMWare Player session. All of this should actually work for just about any bootable iso with an installer, not just those that are based on Knoppix. Feedback welcome!

Dirk Eddelbuettel: Bike The Drive 2006

Yesterday was the annual Bike The Drive in Chicago. The very scenic Lakeshore Drive, also known as LSD, gets blocked for four or five hours until 10:00am, and almost 20,000 cyclists take advantage of it for doing 15 to 30 miles from Grant Park down to Hyde Park, and up all the way to Bryn Mawr. Couldn't have asked for a nicer day as all of a sudden summer has broken out here with temperatures of over 90 degrees fahrenheit. It's really stunning to have the sunlight gleaming over the lake, to see the city skyline in bright sunlight, and to be surrounded by nothing but bikes. A nice outing, highly recommended. We then took the afternoon off and baked at the neighborhood pool.

27 May 2006

Dirk Eddelbuettel: JPM Chase Corporate Challenge 2006

Yesterday was the 2006 edition of the JP Morgan Chase Corp. Challenge -- in its 30th year overall, and for the 25th time in Chicago. 19000 runners, and I didn't pay attention to securing a good starting spot, so I spend one mile running around slower runners and walkers. Hand-stopped finishing time of 23:09 (about 6:37 min/mile), a minute slower than last year's rather decent time, but still better than 2004, 2003, and 2002.

11 May 2006

Dirk Eddelbuettel: Quantian on German news stands

openMosixview author Matt Rechenburg sent me a kind email with a heads-up that the current issue of the German computer magazine PC Welt contains an article about Quantian as well as an included cdrom/dvd. Get it while it's hot off the presses ;-)

7 May 2006

Dirk Eddelbuettel: Patricia Barber

Went to see Patricia Barber and her band at a fundraiser for the Oak Park Arts Council, and in particular its scholarships program. I had seen Barber before at her usual venue, the Green Mill. I am still somewhat divided about her music: some material is really good and innovative. I particularly like how she transforms standards, and how she can rock rather hard. Some of her stuff, on the other hand, leaves me unimpressed. But she's definitely worth watching given the opportunity. The surprise revelation of the evening, though, was Ars Nova, a standard quintet (tenor, alto, piano, bass, drums) composed of a mix of current students of the local high school OPRF as well as former students now spread across area music programs as well as Berklee. They played a set of modern classics and were really impressive. No web site to link to, unfortunately.

Dirk Eddelbuettel: Dee Dee Bridgewater

A few weeks ago we went to see Dee Dee Bridgewater at the Jazz Showcase downtown. She performed material from her recent Grammy-nominated album J'ai deux amours covering, well, French material. The show was ok, but somewhat uninspired.

3 May 2006

Dirk Eddelbuettel: Beancounter minor bug fix release 0.8.7

Two contributed patches in this update: Jesse Chu noticed that split-adjustments did not cover close prices, and Doug Laidlaw provided an updated rpm.spec file. Version 0.8.7 is currently in Debian's incoming area, uploaded to CPAN and onto the beancounter page here, an announcement should appear on Freshmeat shortly.

29 April 2006

Dirk Eddelbuettel: New Neil Young Album available via streaming

The new Neil Young album Living with War is streaming freely via his web site for the next week as reported in a few different places this week. Try it out!

25 April 2006

Dirk Eddelbuettel: RGtk2 packages in Debian

As previously mentioned, I had built local packages of Michael Lawrence's RGtk2 port of the Gtk v2 widgets / toolkit to the R language and environment. This package, along with the related cairoDevice package, is now in Debian's main archive. RGtk2 extends and replaces the older r-omegahat-rgtk package. For an two interesting applications using RGtk2, look at Graham William's rattle, a glade-based data-mining user-interface to several R functions, and at John Verzani's PMG (aka Poor Man's GUI) generic GUI for R.

9 April 2006

Dirk Eddelbuettel: Race That' Good For Life 2006

Participated in the 25th annual Race That's Good for Life 5k race in Oak Park this morning, just as I had in 2003, 2004 and 2005. Near ideal conditions: sunny, no wind, temperatures in the 40s. I was afraid my legs were a little too tired: I had some rest after the Shamrock Shuffle last weekend but did a 12 miler after work on Thursday and 9 miles with two Boston-bound friends at Waterfall Glen -- 'hilly' territory for around here in Chicagoland -- yesterday morning. So while I didn't feel all that fresh, I also managed to run a pretty silly race of a way-too-fast first mile at 5:50 followed by 6:44 and 6:40 to average a pace of 6:19 minutes/mile with which I broke 20 minutes for the first time ever: 19:36. That's 50 seconds faster than last year, which was already a PR. Now I'm ready for a nap ;-)

3 April 2006

Dirk Eddelbuettel: Shamrock Shuffle 2006

Today was the Shamrock Shuffle, reportedly the world's largest eight kilometer, or (approximately) five mile, race with an estimated field of 25,000 runners. Having skipped it last years due to some traveling, my (reported chip) time of 33:24 (6:40 min/mile pace) is a nice improvement over the previous 37:06 from two years ago. Our little informal 'Owies' running group fielded a group of ten runners that were registered for the 'Chicago Challenge'. This a new competition where aggregated team results from today, the Distance Classic Half Marathon in August and the full Chicago Marathon in October count. Results are in (pdf), and we did well with a sixth place -- so let's see where can take it from here.

31 March 2006

Dirk Eddelbuettel: RQuantLib updated

A new RQuantLib package 0.2.2 has just been released to CRAN and Debian. As with 0.2.1, Dominick did all the lifting and further improved on the C++ interface between R and QuantLib using his RcppTemplate package.

Next.

Previous.