Entries Tagged as 'Downloads'

RAPTOR Example Plugin

RAPTOR is a flowchart interpreter originally designed at the Air Force Academy, the runtime library that comes with RAPTOR is fairly week, and if you’re serious about using it to teach computer programming concepts, or using it for any type of proof of concept, you’ll definitely want to consider enhancing it.

Attached is a Microsoft Visual Studio 2010 (you can use the free Express version — but don’t try to use any Visual Studio newer than 2010)

Here is a list of the example functions implemented (using C#) 


  • Parse_String
  • Parse_String_Count


  • String_Trim
  • String_Trim_Start
  • String_Trim_End


  • String_Lowercase
  • String_Upppercase


  • String_Format_Int
  • String_Format_Double
  • String_Format_Date
  • String_Format_DateTime


  • Array_Int_Sort
  • Array_Double_Sort


  • Random_Int
  • Random_Double


  • Is_Int
  • Is_Double
  • Parse_Int
  • Parse_Double


To test or use this plugin, just place the DLL into the RAPTOR directory and re-start RAPTOR.  There is also a sample RAPTOR program included along with the full source code.

This source code, and the accompanying DLL may not be used in any commercial endeavor, it may; however, be freely used for educational purposes.



Download raptor_example_plugin.7z


The other night I decided to write a simple little PHP5 script to force all file extensions to lower case — mainly because when I upload pictures from my Nikon and Canon DSLR I get pictures with upper case file extensions (as I do when I RIP a DVD) and that can create no end of headaches when I place one of those files on a Linux based Apache server.

The script is simple (rather brute force), but it works, and seems to work fairly reliably.


Originally posted 2010-07-11 22:00:27.


I’ve been working with desktop search solutions, and I’ve determined through a great deal of perspiration that strigi seems to be the only Linux based desktop search engine that reliably indexes the majority of files that I’m interested in searching (Microsoft Office, Open Office, and files containing RF822 compliant email).

While the core engine for strigi might be the best I found, the client interface and tools leave a great deal to be desired.  In fact, to really figure out how to use strigi I needed to download and peruse the source.

In the source I found an elegant command line Perl script (search.pl) which demonstrated how to submit queries to strigi through a Linux socket.  The script was easy to port over to PHP5, and in doing so I added some enhancements in my core routines to make it easier to use to write a search client — that is I organized the results as array elements so that I could easily manipulate them rather than needing to attempt to parse them apart.

I haven’t gone any further than just writing some basis PHP5 functions and a harness that drives it from the command line; but I’m posting the code for others.  Just run the script from the command line, and provide the query as arguments (if the query has a space, make sure you enclose it in quotes — and you can put multiple queries on the command line as well).

Running the program and seeing the dump of the data is by far the easiest way to understand what I’ve done.