Edenwaith Blog

Permanent Eraser 2.6.2 and Gatekeeper

4th January 2014 | Permanent Eraser

Permanent Eraser 2.6.2 came out at the end of December 2013, fixing some issues related to Gatekeeper and the latest version of OS X — Mavericks. 2013 almost became the first year since the inception of Permanent Eraser that the app was not updated at least once. Since 2003, Permanent Eraser has received at least one or two yearly updates, sometimes even more, depending upon the development schedule. Looking forward to 2014, work on Permanent Eraser 2.7 will begin.

What's new in Permanent Eraser 2.6.2

One of the biggest fixes in Permanent Eraser 2.6.2 was to properly code sign the app so it would be identified by Gatekeeper as an app by a trusted source. The article Code Signing and Mavericks by Craig Hockenberry helped reveal some trouble areas to resolve. Even though Permanent Eraser 2.6.1 had been code signed, it was not validating properly with Gatekeeper. If I verified the code signature of the app, I saw the following results:

codesign --verify --verbose=4 Permanent\ Eraser\ 2.6.1.app
Permanent Eraser 2.6.1.app: valid on disk
Permanent Eraser 2.6.1.app: satisfies its Designated Requirement

Looks good so far. For the interest of it, I then tried verifying an earlier version of Permanent Eraser which had not been code signed.

codesign --verify --verbose=4 Permanent\ Eraser\ 2.6.0.app
Permanent Eraser 2.6.0.app: code object is not signed at all

Once again, this is returning the expected results. However, if I used the new spctl utility to verify Permanent Eraser in OS X 10.8+, I encountered a problem.

spctl --verbose=4 --assess --type execute Permanent\ Eraser\ 2.6.1.app
Permanent Eraser 2.6.1.app: rejected

spctl, which manages the system policy security, is a command line utility which first appeared in Mac OS X 10.7.3, but the security system known as Gatekeeper came to prominence with OS X 10.8 "Mountain Lion".

The solution was not to use the Mac Developer signing idenity to sign the app (which is used for signing an app for the Mac App Store), but to use the Developer ID Application one, instead. Now when I perform the appropriate checks in OS X Mavericks, everything is looking good.

codesign --verify --verbose=4 Permanent\ Eraser.app/
Permanent Eraser.app/: valid on disk
Permanent Eraser.app/: satisfies its Designated Requirement

spctl --verbose=4 --assess --type execute Permanent\ Eraser.app
../Permanent Eraser.app: accepted
source=Developer ID

Oddly enough, after signing this way in Snow Leopard, trying to verify the app returned this result:

codesign --verify --verbose=4 Permanent\ Eraser.app
Permanent Eraser.app: valid on disk
Permanent Eraser.app: does not satisfy its designated Requirement

However, since the other checks appear to be in proper working order on post-Snow Leopard systems, this looks to be the proper route to properly code sign the app and let it verify properly with Gatekeeper.

References:

git-branch-delete : Deleting local and remote git branches in one fell swoop

25th December 2013 | Tutorial

At my work, I build up a large collection of branches in my git repository over time. Eventually the large number of branches gets overwhelming and requires some maintenance to make the project more manageable (AKA less cluttered). Cleaning up the local and remote branches tends to follow this two step process:

  1. Delete local branch: git branch -d name_of_branch
  2. Delete remote branch: git push origin :name_of_branch

After doing some research, I did not find any quick and dirty way to delete both the local and remote branches with one simple command in git on a Mac. However, I did eventually discover a Ruby script named git-branch-delete that someone1 had written which does nicely perform this task.

Installation for OS X

  1. Download the file git-branch-delete
  2. Extract the file git-branch-delete from the compressed tarball
  3. Copy the file git-branch-delete to /usr/local/bin
  4. Set the proper permissions: chmod 755 /usr/local/bin/git-branch-delete

Usage

Once this has been set up, open up a new Terminal session and delete old git branches from the command line using the following command: git branch-delete <branch-name>

Reference

Edenwaith git-branch-delete Gist : https://gist.github.com/edenwaith/8118506

Footnote

1) Original source : https://github.com/scottwb/dotfiles/blob/master/bin/git-branch-delete

Compiling Git for PowerPC Macs

3rd August 2013 | Tutorial

This year I've begun using the version control system Git for managing source control. I've been putting up some of my older projects on GitHub, which were built as Universal Binaries on Xcode 3 (or earlier). Since I've been working on a long-due update for EdenGraph, I began looking around for a Git client for older PowerPC Macs. The results were disappointing, but this may not be too surprising since Git is a relatively new tool and PowerPC Macs were fazed out in 2006.

However, I did come across a blog post on how to compile Git from source for a PPC Leopard machine, but the instructions, while close, didn't work entirely in my tests. When trying to build the source code, it resulted in the following error:

	$:git-master admin$ make prefix=/usr/local
	GIT_VERSION = 1.8.4-rc0
		* new build flags
		CC credential-store.o
	In file included from cache.h:8,
					 from credential-store.c:1:
	gettext.h:17:22: error: libintl.h: No such file or directory
	In file included from cache.h:8,
					 from credential-store.c:1:
	gettext.h: In function ‘_’:
	gettext.h:54: warning: implicit declaration of function ‘gettext’
	gettext.h:54: warning: incompatible implicit declaration of built-in function ‘gettext’
	gettext.h: In function ‘Q_’:
	gettext.h:62: warning: implicit declaration of function ‘ngettext’
	gettext.h:62: warning: return makes pointer from integer without a cast
	make: *** [credential-store.o] Error 1
	

I found that I needed to create a configuration file first, configure the project, and then build it. These instructions installed git 1.8.2 on a PowerBook G4 running Mac OS X 10.5.8.

  1. Download the latest Git source from http://git-scm.com/downloads
  2. Create configuration file: make configure
  3. ./configure --disable-nls
  4. make prefix=/usr/local
  5. sudo make prefix=/usr/local install

Once Git has been installed, go to the project folder (via the Terminal) and create an empty Git repository with the git init command and then download a project with the command git clone git://path/to/MyProject.git. If you are looking for a GUI-based Git client for PPC Macs, check out GitX.

EdenMath 1.2

31st May 2013 | EdenMath

After a nine year long hiatus, EdenMath has been polished and updated, ready to run on the latest versions of OS X.

New Features

Evolution

EdenMath was the first Cocoa-based application I wrote for the Mac. Cracking open the time capsule shows how EdenMath has evolved over the years, from an embarrassingly bad and inconsistent user interface in the first version of the application, to the more refined later versions.

The interface for EdenMath 1.1 was a dramatic improvement over its predecessors', but it still had its flaws. Developing for EdenMath 1.2 allowed for the opportunity to rethink the entire interface. The following screenshots are a couple of experimental interfaces which were designed during the process of constructing EdenMath 1.2.


Source Code

The source code has always been available, but the source is now even more accessible at its own Github repository.

The Future

The original plan was to update EdenMath with several key features and then lovingly retire the program. However, time was running short and not every feature made it into this version. I am tentatively planning a 1.3 version of EdenMath for the future, which might include the following features:

2013 : Turning The Corner

1st January 2013 | Edenwaith

2012 was intended as a year for cleaning out the old to make way for the new. Some good progress was made, but not everything has been completed yet, which will continue throughout this year, in addition to updating the active projects.

Here is 2012 at a glance:

The progress is half-way complete in retiring the older programs. In 2013, GUI Tar, EdenGraph, and EdenMath will each receive at least one more update before being retired. This will leave 33 RPM, Permanent Eraser, and EdenList as the remaining Edenwaith projects.

Aside from the plans for application retirement, preparations are being made for the development of Permanent Eraser 2.7 and EdenList 1.2 for iOS.

33 RPM 1.1.8

9th December 2012 | 33 RPM

Today, the long due update to 33 RPM, version 1.1.8, was released.

Features and updates:

The most important change to 33 RPM in this release is that 33 RPM is now free of cost. Since the development of this project has dropped off precipitously in the past two years, it did not make sense to continue charging for a product which was not being continually updated. If you recently purchased 33 RPM and have not already received a refund, please contact us.

33 RPM 1.1.8 has also been tested and verified for the past two releases of OS X — Lion and Mountain Lion, both which have been quickly released since 33 RPM 1.1.7 was released in September 2010. One nasty, but occasional, bug that was squashed was trying to adjust the time slider would not work in Lion or Mountain Lion. A number of other smaller cosmetic and functional issues have also been made.

Psychomancer 1.0.7

2nd September 2012 | Psychomancer

Yesterday, Psychomancer 1.0.7 was released, which coincided with the ten year anniversary of the release of the Linux version of the previous version -- 1.06. As mentioned earlier this year, a number of older projects are being cleaned up and retired. Psychomancer was one of the earliest Edenwaith products, but it has been largely ignored for the past decade as newer Mac and iOS projects took precedence. However, before retiring Psychomancer in its current incarnation, a little love needed to be shown with one more update. Over the course of the past two months, Psychomancer was updated with 150 new features, improvements, and bug fixes. This represents the largest set of changes to the game since the original incarnation of the game in August 1999.

Before sending off Psychomancer, let's reflect on how things have changed since the last significant update. In 2002, Psychomancer was still being developed under Digital UNIX, the same platform where it was born in 1999. 2002 and 2003 extended the range of supported platforms to Mac OS 8, 9, X, Linux (x86), and Windows 9x - XP. Strangely enough, Windows XP is one which is still relevant in its same incarnation as it was years ago, whereas (Mac) OS X has undergone quite a few transitions since then, the most noteworthy change being the switch from PowerPC to Intel processors.

The first early versions of Psychomancer 1.0.7 had been organized under Project Builder on Macs running Mac OS X 10.1 and 10.2. Since I no longer have any computers running those versions of the Mac OS (however, my trusty PowerMac G4 is still running which supports Mac OS 9, Mac OS X 10.3 and 10.4), I had to convert the old Project Builder file using Xcode 2 before upgrading the project to Xcode 3. One primary goal for this update was to create a Universal Binary for both PowerPC and Intel-based Macs. Unfortunately, Xcode 4 dropped this feature, so Xcode 3 was necessary to be able to generate a Universal Binary. This project was built on a 2003 PowerBook G4, running Mac OS X 10.5.8 and Xcode 3.1.4.

Going through this game with a fresh perspective (since it had been so long since the last update), I found numerous areas for improvement from better descriptions, adding new features, and fixing bugs.

Improvements to each of the classes:

After playing Diablo 3, I took inspiration in adding more random events to increase the playability of the game by randomizing the potions found in the Treasury and adding additional random puzzle locks.

Upon going through the list of old and new bugs, I kept encountering odd issues with the inventory. Sometimes too many health potions would be added. Sometimes an item wouldn't be added. Other times, random items would just disappear from the inventory. I finally sat down and reworked the inventory system, based off of a linked list. This was an interesting (and somewhat fun) exercise to go back to code written thirteen years ago and figure out what wasn't working properly. All things considered, most of the code in this project was quite clean and organized. However, there were a couple of odd issues with adding and removing items from the linked list, which were finally fixed.

The largest bug I quickly encountered was that drinking potions didn't do anything. What the...?! I was quite surprised that issue hadn't been caught and fixed a long time ago. Fortunately, a quick fix, but an issue that should have never stayed around as long as it had.

And so, now, we bid Psychomancer a fond adieu. While this journey has come to an end, it does not mean that a new one cannot begin. One never knows. Perhaps someday Psychomancer will be converted to work on Z-machine interpreters. Perhaps it will be given a long-promised overhaul and be gain graphics and sound. Considering the popularity of mobile development in 2012, it would not be unthinkable to one day see Psychomancer on a phone or tablet. Or perhaps Psychomancer will end up in some other form entirely. Time will tell...

Permanent Eraser 2.6.0

28th May 2012 | Permanent Eraser

On 19 May 2012, Permanent Eraser 2.6.0 was released. The two most important new features are Solid State Drive (SSD) detection and the new DoE overwrite pattern. If a file is detected to reside on an SSD, the file will only be overwritten once, instead of multiple times, due to wear leveling techniques used by SSDs. The next feature is the addition of the 3-pass DoE pattern to erase files.

In order to keep up with the latest versions of Mac OS X, older versions of the OS are occasionally dropped. Permanent Eraser 2.6 was originally intended to still support Mac OS X 10.4 "Tiger", but the addition of the new DoE overwriting pattern required a custom build of the srm utility, which unexpectedly failed to run on Tiger. However, we'll look further into this issue to determine if support for Tiger can be returned in a future version. For those who are still using Tiger, Permanent Eraser 2.5.3 is still available for download.

Likely due to the pending deadline which requires all new application submissions to begin using entitlements at the beginning of June, it took nearly two weeks for Permanent Eraser 2.6.0 to be reviewed for the Mac App Store, which is at least double the length I've encountered with an app (for either iOS or Mac) to be reviewed. And in the continuing spirit of inconsistent app reviews, PE 2.6 was rejected since the plug-in is installed in the user's ~/Library/Services/ folder, which is also how Permanent Eraser 2.5.3 handled the plug-in, yet that version had been approved. The work around to this problem is to either remove the plug-in or re-architect the application and build the Service directly into the program. This latter point is already planned for a future release of Permanent Eraser, however it will likely not happen until Permanent Eraser 2.7 or later.

Permanent Eraser 2.5.3

13th January 2012 | Permanent Eraser

Today Edenwaith released Permanent Eraser 2.5.3, an important update for the latest version of Mac OS X — Lion. This update focused mostly on fixing incompatibilities with Lion. Since these improvements focused on Lion, a separate version of Permanent Eraser 2.5.3 was not made for the aging Mac OS X 10.3 Panther, since there would have been no added benefit.

What's new in Permanent Eraser 2.5.3:

2012: It's The End Of The World As We Know It (And I Feel Fine)*

1st January 2012 | Edenwaith

"I've always felt that death is the greatest invention of life. I'm sure that life evolved without death at first and found that without death, life didn't work very well because it didn't make room for the young. It didn't know how the world was fifty years ago. It didn't know how the world was twenty years ago. It saw it as it is today, without any preconceptions, and dreamed how it could be based on that. We're not satisfied based on the accomplishment of the last thirty years. We're dissatisfied because the current state didn't live up to their ideals. Without death there would be very little progress."

Steve Jobs

The preceding quote came from an interview with Steve Jobs in 1995. Ten years later, Steve Jobs would echo the idea of death in the speech he gave at the 2005 Stanford commencement.

The premise of Edenwaith was to develop useful software, often to fill in a gap in the application ecosystem. The radical shift from Mac OS 9 to Mac OS X provided the opportunity for a new breed of application developers to create for this new platform. Apple discarded the previous 17 years of Mac OS development in favor of a UNIX-based OS which would provide the Mac OS foundation for the next 15 to 20 years.

During the early years, the software selection was slim, as established developers scrambled to update their own offerings for Mac OS X. It was during this time that two of Edenwaith's earliest products (EdenMath and EdenGraph) were developed. The calculator provided with the operating system was very simple, and the venerable Graphing Calculator, once a staple third party application on Macs, would not make the transition to Mac OS X for several years. Apple has done an excellent job in not allowing Mac OS to atrophy like it had in the 1990s. Each iteration of the operating system has built upon its predecessor, which filled in many of the gaps and cracks which were visible in the earliest versions of Mac OS X.

Over the past decade at Edenwaith, some ideas have flourished while others have languished. As Mac OS X improved over the years, the need for several of Edenwaith's products came to an end. Rather than let them shrivel on the vine until nothing remains but a dried-out husk, I have decided to retire a number of applications to disrupt the illusion of any life that might be left in these old projects. Some projects will likely not be updated any further, but a couple of projects will see a final update before being put to rest.

2012 will be a time for rebirth, by cleaning out the old to make way for the new. Several years ago the decision was made to focus on a select few applications instead of dividing time and effort amongst a plethora of projects. Our time is finite, so we must decide what do wish to wisely spend our time on, instead of wasting it.

* Apologies to R.E.M.

« Newer posts Older posts »