Thursday, February 25, 2010
Blocking user agents in IIS7
Monday, February 15, 2010
Enabling Screen Rotation on Samsung Omnia II phone - also enabling classic Microsoft Settings Control Panel
- http://www.careace.net/2010/01/19/enable-screen-rotation-setting-on-samsung-omnia-ii/
- http://www.fuzemobility.com/enable-long-press-of-phone-key-to-rotate-screen/
Two registry keys to change:
- HKLM\System\GDI\Rotation\HideOrientationUI and change the value to 0
- HKEY_LOCAL_MACHINE\Security\Shell\StartInfo\HideSettings change to 0
Monday, February 08, 2010
Getting SQLite to work in PHP (PHP5) on Windows Server
Then:$db = sqlite_open('filename',0666)to$db = new PDO('filename');
$res = sqlite_query($db, $query, SQLITE_ASSOC);to$res = $db->query($query);
I might have got some of this wrong... but hopefully not!
$row=sqlite_fetch_array($res);to$row=$res->fetch(PDO::FETCH_ASSOC);
Friday, February 05, 2010
Doing IE6 testing
Wednesday, February 03, 2010
Sunday, January 31, 2010
Just in case I need to use PHPMailer again...
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "mail.domain name"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "Domain Email account"; // SMTP username
$mail->Password = "password of an email account"; // SMTP password
$mail->From = "From email account – from above mentioned domain";
$mail->FromName = "From Name here";
$mail->AddAddress("To Email account here ","Display name");
$mail->AddReplyTo("Reply to email account here ","Details");
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = "Subject Line of the email";
$mail->Body = "Body part of the message – email details</b>";
$mail->AltBody = "Alternate part of the body";
if(!$mail->Send())
{
echo "Message did not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>
Thursday, January 28, 2010
Writing a DNN skin - need to get parent tab name
Have you ever wanted to get at more than just <%= SkinPath %>in your skin?
Maybe you want to display the name of the currently Active Page?
<%=PortalSettings.ActiveTab.TabName %>
Or maybe you want to display the name of the Active Page's Root level Parent?
<%=PortalSettings.ActiveTab.BreadCrumbs(0).TabName%>
If you want the currently Active Page's immediate Parent Tab Name try this:
<%=PortalSettings.ActiveTab.BreadCrumbs(PortalSettings.ActiveTab.Level - 1).TabName %>
Thursday, January 21, 2010
When Visual Studio 2008 keeps crashing
Friday, January 15, 2010
MonoTouch - if you can't see any Provisioning Profiles
Distribution identity is not shown in MonoDevelop project signing options
MonoDevelop 2.2 has a bug that causes it not to detect distribution certificates that contain a comma. Apreview build of MonoDevelop 2.2.1 is currently available that fixes this issue.
Wednesday, January 13, 2010
UITabBarController (kind of) inside a Modal child view
Some initial MonTouch links
Monday, January 11, 2010
A really good guide to url rewrite rules
Tuesday, January 05, 2010
Setting up wordpress MU to work with authenticated SMTP Mail Server
I really don't like having sendmail running on a webserver, but some features of WordPressjust don't work if it can't send email (user registration, for example). Still, WordPress offers support to send email through external SMTP servers instead if a local mailer.
In
/wp-includes/pluggable.phparound line 377, change$phpmailer->isMail();to
$phpmailer->isSMTP();Then, in
/wp-includes/class-phpmailer.phparound line 155, set your SMTP host:var $Host = "my.smtphost.com";You may also need to set a username and password, and tell WP to attempt authentication. You'll see those in the lines below the hostname variable.
var $SMTPAuth = true; var $Username = "username"; var $Password = "password";On the other hand, you could do this via a plugin, perhaps even Callum McDonald's WP MailSMTP.
Easy (but took 4 go's to get right!)
Thursday, December 17, 2009
YQL, Pipes and beyond
Sunday, December 13, 2009
More player code live on runsaturday
A player with side map and elevation/speed chart:
Wednesday, December 02, 2009
Tuesday, November 17, 2009
"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
If you're working late at night and suddenly you start seeing lots of https issues concerning... "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
Then it might just be because your app is routing its requests via the excellent fiddler2 - in which case SSL will not be trusted :)