# Packaging…Mac…???

Yes.  I need to figure out how to package up a XULRunner app, so that it can be distributed and installed on to a Mac. From what I have been reading,  there are two methods for installing on a Mac:   The software publisher has provided an installer, which will automatically install the application The … Continue reading

# XRap Version 0.3 Windows Released!

Well its been a long time, a lot of reading, and a lot of learning (JavaScript and XUL), but I’ve managed to finally change over XRap from C# over to a XULRunner Application!  I haven’t quite got the UI just how I like it, but funtionality-wise it works perfectly. How it works: Once XRap is … Continue reading

# GUID generator in JavaScript

Found two little functions in JavaScript to create a GUID function S4(){ return (((1+Math.random())*0x10000)|0).toString(16).substring(1); } function guid() { return (S4()+S4()+”-“+S4()+”-“+S4()+”-“+S4()+”-“+S4()+S4()+S4()); } Thanks to sj at note19.com, I don’t know exactly how reliable the generator is, I ran a couple tests against 50 guids, and it passed, but I need to run the guids through the … Continue reading

# XUL File I/O: Write Files

Writing files in XUL isn’t that much harder than reading a file, in fact its very similar.  What a relief.  In my example I am appending the data “Appending Data” to my file. function writeFile() { var data = “Appending Data”; var filePath = “C:\\text.txt”; var file = Components.classes[“@mozilla.org/file/local;1”] .createInstance(Components.interfaces.nsILocalFile); var foStream = Components.classes[“@mozilla.org/network/file-output-stream;1”]    … Continue reading

# How-to: Read Files in XUL

After some weeks of procrastination and going nuts over other projects, I’m getting back to XUL and my XRap program.  I’ve been asked to change my current XRap code (currently the 0.1 is in C#) to XUL, which would increase its portability, and it just makes sense to make a XULRunner Packager in XUL.  Unfortunately, … Continue reading

# Installing PHPUnit on Ubuntu 8.04

You need to get the latest release of PHP $sudo apt-get install php5 To get PHPUnit you need to get the PEAR installer, which is part of PHP$sudo apt-get install php-pear Once you have PEAR installed you must register the PEAR channel with the PEAR environment \$sudo pear channel-discover pear.phpunit.de The and the last … Continue reading

# XML Listing of File System

One of the challenges of automatically preparing a wxs (which is in xml) file for WiX to process into an msi file for installation, was creating a recursive algorithm to read a target directory an get all sub-directories and corresponding files. The problem I was having, was that I could get all directories and files, … Continue reading