Skip to content

Instantly share code, notes, and snippets.

View tonyarnold's full-sized avatar

Tony Arnold tonyarnold

View GitHub Profile
<?php
define('KEYFILE', MANIFEST . '/signedfileuploadkey.pem');
Class extension_signedFileUploadField extends Extension{
public function about() {
return array(
'name' => 'Field: Signed File Upload',
'version' => '1.0',
'release-date' => '2009-05-05',
# Outgoing email settings
production:
delivery_method: :smtp
smtp_settings:
address: smtp.gmail.com
port: 587
domain: thecocoabots.com
authentication: :plain
user_name: username@gmaildomain.com
//----------------------------------------------------------
// SRCharacterForKeyCodeAndCocoaFlags()
//----------------------------------------------------------
NSString *SRCharacterForKeyCodeAndCocoaFlags(NSInteger keyCode, NSUInteger cocoaFlags) {
// Fall back to string based on key code:
#define FailWithNaiveString SRStringForKeyCode(keyCode)
UCKeyboardLayout *uchrData = nil;
UInt32 deadKeyState;
// OSStatus err = noErr;
+ (void)setSystemMenuTransparent:(BOOL)transparent {
CFPreferencesSetValue(CFSTR("AppleEnableMenuBarTransparency"), (CFBooleanRef)[NSNumber numberWithBool:transparent], kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
CFPreferencesSynchronize(kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
[[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"AppleMenuTransparencyChanged" object:nil];
}
+ (BOOL)systemMenuTransparent {
BOOL returnValue = NO;
CFPropertyListRef plr = CFPreferencesCopyValue(CFSTR("AppleEnableMenuBarTransparency"), kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
if (plr != NULL) {
20/07/2009 3:16:47 PM null
INFO: Listening on port 8080
20/07/2009 3:16:47 PM javax.enterprise.system.tools.admin.org.glassfish.server
INFO: Admin Console Adapter: context root: /_____admingui
20/07/2009 3:16:48 PM null
INFO: The Admin Console Application is not yet installed.
20/07/2009 3:16:48 PM null
INFO: Admin Console Adapter: context root: /_____admingui
20/07/2009 3:16:48 PM javax.enterprise.system.tools.admin.org.glassfish.server
INFO: Admin Console Adapter: context root: /_____admingui
<?php
/***
Method: encodeHeader
Description: Encodes header
Source: http://bitprison.net/php_mail_utf-8_subject_and_message
More info: http://www.ietf.org/rfc/rfc2047.txt
***/
public static function encodeHeader($input, $charset='ISO-8859-1'){
NSNumber *windowLevelIndex = [[NSUserDefaults standardUserDefaults] objectForKey:@"DesktopBackgroundLevel"];
if (windowLevelIndex != nil) {
switch ([windowLevelIndex integerValue]) {
case 0: // Show behind the desktop icons, but on the desktop - ignored by Exposé
[window setLevel:kCGDesktopWindowLevel];
[window setIgnoresMouseEvents:YES];
[window orderBack:self];
break;
case 1: // Show above the desktop icons - still ignored by Exposé
[window setLevel:kCGDesktopIconWindowLevel];
<br />
<b>Deprecated</b>: Function set_magic_quotes_runtime() is deprecated in <b>/Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/boot/bundle.php</b> on line <b>4</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/boot/bundle.php:4) in <b>/Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/boot/bundle.php</b> on line <b>6</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/boot/bundle.php:4) in <b>/Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/boot/bundle.php</b> on line <b>7</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/boot/bundle.php:4) in <b>/Users/tonyarnold/Sites/tonyarnold.local/symphony/lib/boot/bundle.php</b> on line <b>8</b><br />
<br />
<b>
[#|2009-07-28T17:37:43.486+1000|SEVERE|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=37;_ThreadName=Thread-1;|WebModule[]Error: unable to initialize application
org.jruby.rack.RackInitializationException: The driver encountered an error: @connection_factory not set properly
from /export/home/redmine/redmine-20090728/WEB-INF/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:457:in `new'
from /export/home/redmine/redmine-20090728/WEB-INF/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:457:in `initialize'
from /export/home/redmine/redmine-20090728/WEB-INF/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:53:in `new'
from /export/home/redmine/redmine-20090728/WEB-INF/gems/gems/activerecord-jdbc-adapter-0.9.1/lib/active_record/connection_adapters/jdbc_adapter.rb:53:in `jdbc_connection'
from /export/home
RewriteCond %{REQUEST_URI} ^/solutions/summary/.*$ [NC]
RewriteRule ^(solutions)/summary/.*$ /$1/ [R=301,L]