Various Code I've Written (PHP and BASH)

Here is some of the code I've written over the years. Enjoy, it's all Free Software! Mostly PHP, but some BASH as well, I know C/C++, Python, some Perl and Lisp, but I've never really used those languages for anything.

HashOver Comments - PHP Comment System (In development)
A HashOver Thread HashOver is a PHP comment system intended as a replacement for services like Disqus. HashOver adds a "comment section" to any website, by placing a few simple lines of JavaScript or PHP to the source code of any webpage. HashOver is a self-hosted system and allows completely anonymous comments to be posted, the only required information is the comment itself. HashOver is free and open source software, under the GNU Affero General Public License.

There is a decent number of comment systems available on the Internet, few are free and open source, fewer are standalone systems, most being integrated with a content management system (Drupal, WordPress), even fewer are self-hosted, and even fewer allow anonymity.

Dynam Forms - Dynamic Form Query Names
PHP logo This script removes the need to specify query names directly in e-mail form scripts. If you're familiar with PayPal button code, you'll find this very familiar. Add as many fields as you like, just increase the number following the "f" and "v" in the "name" attribute.


Simple PHP Diff Script - Shows Line Changes in Bold Text
PHP logo Here's a simple PHP diff script I wrote for no particular reason. Its output is similar to how Wikipedia does it, though admittedly, a lot simpler and inferior. It works really well for predictable comparisons, like two files that are mostly the same or a directory listing where some files have been renamed, added or removed. However, I have no use for it, I was simply trying for proof of concept. Even if I have no use for it, somebody might, right?

Anyway, here's how it works.
  1. It loads two files (any file and its older version.)
  2. It slits (or "explodes") each line into an array and counts the number of lines.
  3. It then compares each line of the current file to its older version.
  4. If two lines match, the current file's line is displayed normally.
    • If two lines don't match it does the same process again, this time slitting each word into an array and comparing them to the words in the old file's line.
      • When two words don't match, the words from the current file's line are wrapped in HTML bold tags ("<b></b>") with a little style for color, and printed (or "echoed") on page.

  5. It then reads and displays the old version of the file.

PHP Share Button
PHP logo Share Icon Share Icon <-- Beauty, eh? still doesn't have a proper share button. For a long time I've looked for a good share button. One like Twitter's, one that: displays a count of posts, and lets people share the page with the post automatically containing the page title and URL. I looked so long without finding anything that I wrote one myself. And I've talked a little bit about the half-PHP-half-JavaScript share button that I wrote, but I really haven't shown it off or explained how to use it. It's kind of pointless to write it just for myself.

Article: Advanced Application Launchers With Zenity
Shebang If you're like me, you hate when you're in a hurry and just want to start an application, get right to it, and just start working. Well it never works that way when you need it to. You have to start the application then navigate to the directory containing either the various subdirectories or the file(s) you'll need to work on, before you can even start. Wouldn't it be nice to just start the application at the navigation stage? Well you can. As well as: graphically feed text to Espeak or Festival, graphically display a command's output like a directory listing or a file's contents, graphically start a web browser at a specific website like a Google search with your input, and so much more! This is basic BASH and Zenity, it's easy!

The gModu Project
PHP logo The gModu Project is a small project started by TildeHash author Jacob Barkdull, the project exists to develop a PHP-based "modular" web page design. The concept is (and currently implemented on as) one "index" file that holds the website's design, e.g. its header, footer, tables, divs, images, and anything else used for the website's structure, but leaves the title, keywords, description, and body content empty.

All pages' title, keywords, description, and body content are stored in ".gmodu" files, these files exist to be included and phrased by the "index" file; the "index" file then uses the files to "fill in the blanks" and structure the websites pages.Here's an example: home.gmodu

I am currently, cleaning up the code, writing documentation, tutorials, and demonstrations, respectively. As well as writing and packaging (.tar) the drop-in-and-go files. Proper source code is not available yet.

Article: BASHing Visual Basic Out of the Picture
Shebang Awhile ago, two family members of mine were programing something for a simple task, they chose to do it in Visual Basic as the program was going to be running in a Windows environment anyway. The task was having a simple program that would run in the background -- or ran when needed -- to print a specific file (or multiple files) whenever the file(s) changed, specifically, whenever the file was modified. This was being done on a Windows system so file changes related to permissions, ownership, etc, didn't apply.
Share This Page On...
Subscribe to Newsletter:
Advertisements: portfolio
On the blog...
HashOver Gets a Logo!
Regarding and Its Share Button
Did Brendan Eich Contribute to Firefox's Decline?
The NSA backdoor in "Linux"
The popularity of Firefox is definitely waning!
Critique of Gedit Syntax Highlighting + PHP Color Schemes