Multiple google calendars on windows phone
I have an android phone and my girlfriend has a nice and very cool lumia 710. But we are both very busy and it's very easy to plan two different things on the same date. Although it happens to the best of us it becomes annoying very quickly. So lets fix that problem
Google calendar to the rescue
WordPress + Janrain engage plugin
This blogpost isn’t gonna be about .net but PHP instead. I recently switched from my old blog system to a wordpress system. WordPress has a plugin to enable logins/registation through openId/OAuth through many of the social sites like: Twitter, LinkedIn and Gmail. This plugin is called JanRain engage
The plugin makes use of the JanRain engage service for which you can register free of charge for a key to enable this service in your website. After you install this plugin you get an option in the wordpress admin screen like seen below:
After you put in the api key and enable the options you’re ready to go!
Hey, on windows hosting it still doesn’t work!
It appears that there’s a bug in the plugin that does not correct HTTPS correctly on windows based php hosting. It tries to redirect to the https version of your site but because you didn’t enable it, it comes up with a 404. If you want to fix this you have to take the following steps:
1.If you go into the plugin/rpx directory there should be a file there called rpx.v.php. In that file look at line 1437. There should be the following line of code:
$this_url = (!empty($_SERVER['HTTPS'])) ? 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
What this code does is the following: append http/https to the tokenurl. The tokenurl is used to redirect back to your current page after a login attempt. They check for an empty $_SERVER[‘https’] but as found in the php manual in windows hosting $_SERVER[‘https’] isn’t an empty string but is set to ‘Off’ instead as can be seen from the php manual excerpt below:
HTTPS'
Set to a non-empty value if the script was queried through the HTTPS protocol.
Note: Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol.
2.Change the code to:
$this_url = (!empty($_SERVER['HTTPS'])) && strtolower($_SERVER['HTTPS']) != 'off' ? 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
And you’re all set to go!
Devdays 2011
Recently I’ve been to the Devdays which was held in The Hague in the Nederlands. The devdays is an event where all the new Microsoft technologies are showed and demoed. In this post I’ll make a list of some of the better talks that I saw.
ASP.NET MVC
MVC 3-101
In this video Scott Hanselman talks about creating a website using MVC3 and also some other advanced topics. You can watch this video if you have no idea what ASP.net MVC is and also if you have worked with ASP.net MVC before and need to get up-to-date with the new version.
Entity Framework 4.0 + One to Many Relations
In this blog post I’m going to show you something that should be really simple but entity Frameworks makes it a little bit difficult. Removing items from a One to Many relationship. I love the Entity Framework and Code First but sometimes you get really bogged down because of very small things that take a lot of time researching.
I’m currently using EF4 in a small Project called Yamma when I ran into the problem described below: (http://yamma.codeplex.com). Yamma is an application for managing your bank account and expenses. It’s not done yet.. but when it is I’ll post about it. Now lets get on with or problem description:
The below example uses Code First CTP5 as a way of creating a database
Data model:
The following data model is used in this example:
The order class shown above have a list of OrderItems which have their own OrderId containing the order they belong to. The following datacontext is used for this example:
namespace test
{
public class TestDataCOntext: DbContext
{
public DbSet<Order> Orders { get; set; }
}
}
RSS Feed