Finally, I stumbled on a stackoverflow conversation. Without further ado...
Add the following line to your didFinishLaunchingWithOptions in AppDelegate:
[UIApplication sharedApplication].idleTimerDisabled = YES;
Notes-to-self and other scattered ramblings about writing code and drinking lots of coffee.
[UIApplication sharedApplication].idleTimerDisabled = YES;
#import <iAd/iAd.h>
@interface MainViewController : CDVViewController {
ADBannerView *adView;
}
[adView release];
adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
CGRect adFrame = adView.frame;
if([UIApplication sharedApplication].statusBarOrientation
== UIInterfaceOrientationPortrait
|| [UIApplication sharedApplication].statusBarOrientation
== UIInterfaceOrientationPortraitUpsideDown) {
adView.currentContentSizeIdentifier =
ADBannerContentSizeIdentifierPortrait;
adFrame.origin.y = self.view.frame.size.height-adView.frame.size.height;
} else {
adView.currentContentSizeIdentifier =
ADBannerContentSizeIdentifierLandscape;
adFrame.size.width = adView.frame.size.width;
adFrame.origin.y = self.view.frame.size.width-adView.frame.size.height;
}
adView.frame = adFrame;
[self.view addSubview:adView];
BOOL hide = (newInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || newInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
[[UIApplication sharedApplication] setStatusBarHidden:hide withAnimation:UIStatusBarAnimationNone];
CGRect mainFrame = [[UIScreen mainScreen] applicationFrame];
[self.view setFrame:mainFrame];
if (newInterfaceOrientation != UIInterfaceOrientationLandscapeLeft && newInterfaceOrientation != UIInterfaceOrientationLandscapeRight) {
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
[self.view bringSubviewToFront:adView];
adView.frame = CGRectMake(0.0, self.view.frame.size.height - adView.frame.size.height, adView.frame.size.width, adView.frame.size.height);
}
else {
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
[self.view bringSubviewToFront:adView];
adView.frame = CGRectMake(0.0, self.view.frame.size.width - adView.frame.size.height, adView.frame.size.width, adView.frame.size.height);
}
'find . -type f -name "*.pyc" -delete;'
(without the quotes)'*.pyc'
as its contentcd
into your application directory. For me, this is cd /Sites/appengine_myappappcfg.py --no_cookies --email=YOUR_EMAIL_HERE@gmail.com --passin rollback ./
<html>
<head>
<!-- 1 css resource -->
<link rel="stylesheet" href="[EXTERNAL_PATH]">
</head>
<body>
<div id="container">
<!-- begin content -->
<!-- 1 image resource (to be used as sprite) -->
<img src="[EXTERNAL_PATH]">
<!-- end content -->
</div>
<!-- 1 js resource -->
<script src="[EXTERNAL_PATH]"></script>
<!-- embedded js if required -->
<script language="javascript">
your.thing = new your.constructor({
name1: value1,
name1: value2
});
</script>
</body>
</html>
"C:\Program Files\nircmd\nircmd.exe" mutesysvolume 2
C:
cd C:\Program Files\JohnnyFoster.com\BeTrayed!
start BeTrayed "C:\Program Files\nircmd\nircmd.exe" mutesysvolume 2
Y:
exit
cls
MUTE_SYSTRAY.cmd
Start -> All Programs -> Startup
folder
FastCGI Error
The FastCGI Handler was unable to process the request.
Error Details:
Could not find entry for "php" on site 1 in [Types] section.
Error Number: 1413 (0x80070585).
Error Description: Invalid index.
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
[Types]
php=PHP
[PHP]
ExePath=C:\Program Files\Zend\ZendServer\bin\php-cgi.exe
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:1000
IdleTimeout=1500
ActivityTimeout=3000
RequestTimeout=1500
OAuth is hard. I don't care if you're the greatest engineer on Earth, at first glance OAuth is a WTF moment. Having a slew of Classic ASP sites to maintain, and no luck finding any help in the VBSCript OAuth department, I dove in to the HELL that is OAuth. When I'd finally emerged, although scarred for life, I had a full fledged OAuth implementation... done entirely in VBScript... OK, not entirely... but mostly no doubt.