Saturday, January 1, 2011

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.

Sunday, December 20, 2009

Browse the Google Chrome SQLite Database

1. Quit Google Chrome.
2. Open SQLite Database Browser.
3. File > Open Database.
4. Browse to ~/.config/google-chrome/Default/Web Data

Wednesday, December 16, 2009

Change the Login Screen Power Management Preferences on Ubuntu

1. sudo chsh -s /bin/bash gdm
2. sudo passwd gdm
3. Switch User
4. Login as gdm
5. System > Preferences > Power Management
6. Edit as desired
7. Close
8. Logout
9. Login as original user
10. sudo chsh -s /bin/false gdm
11. sudo passwd -d gdm
12. sudo vipw -s
13. Replace empty password field with '*' character
14. Save the file

I used this, for example, to disable suspend on closing the lid of my laptop.