Wednesday, August 25, 2010

iPhone App Signature Invalid. Disallowed Signer.

Google has 4 hits for "disallowed signer". That doesn't bode well.

mlm@Matthew-McClures-MacBook-Pro ~/tmp
$ codesign -d iMapMyRide.app
Executable=/Users/mlm/tmp/iMapMyRide.app/iMapMyRide

mlm@Matthew-McClures-MacBook-Pro ~/tmp
$ echo $?
0

mlm@Matthew-McClures-MacBook-Pro ~/tmp
$ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation -verbose iMapMyRide.app
Validating iMapMyRide.app -verbose warnings
warning: Application failed codesign verification.  The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
Executable=/Users/mlm/tmp/iMapMyRide.app/iMapMyRide
codesign_wrapper-0.7.9: using Apple CA for profile evaluation
Disallowed signer
 - (null)

Wednesday, June 9, 2010

Change the Screen Command Key

For example, this interferes less with Emacs use than Screen's default Control-A command key.

screen -e '^Zz'

Type a literal Control-Z by typing Control-V Control-Z in Bash.

Friday, April 9, 2010

Prevent Closing JIRA Issues as Duplicate Unless Linked to the Duplicated Issue

Using the JIRA JSS plugin, Justin de Vesine came up with the following Validator:

from com.atlassian.jira import ComponentManager
from com.atlassian.jira.issue.link import IssueLinkTypeManager;

authenticationContext = ComponentManager.getInstance().getJiraAuthenticationContext()
ilm = ComponentManager.getInstance().getIssueLinkManager();

iltm = ComponentManager.getComponentInstanceOfType(IssueLinkTypeManager)
            
dup_link_type = iltm.getIssueLinkType(10010);

user = authenticationContext.getUser()

resolution_ob = issue.getResolutionObject()
if resolution_ob and resolution_ob.getName() == "Duplicate":
    result = False
    description = 'Link this issue to the issue it duplicates before Closing or Resolving as Duplicate.'
    links = ilm.getLinkCollection(issue, user)
    if links.getLinkTypes().contains(dup_link_type):
        result = True

Monday, February 1, 2010

Bash Options to Fail Fast

set -o errexit  # Exit on simple commands that return non-zero status.

set -o errtrace # Makes shell functions, command substitutions, and 
                # commands in subshells inherit traps on ERR

set -o nounset  # Exit on use of unset variables.