Category Archives: Programming

Accessing Shared Mailboxes in Office365 with PHP

After a lot of trying&failing, this setup worked for me when connecting to a shared mailbox in office365: As the username, use “your_username\shared_mailbox_alias” (your_username needs access to the shared mailbox of course) Add the extended option ‘DISABLE_AUTHENTICATOR’ => ‘PLAIN’ Example: $conn = imap_open( “{outlook.office365.com:993/imap/ssl}Inbox”, ‘[email protected]\shared_mailbox_alias’, ‘mypassword’, OP_READONLY, 1, array(‘DISABLE_AUTHENTICATOR’ => ‘PLAIN’) );

Ferjeruta

New pet project up: ferjeruta.no This is a pure javascript offline projects where i try to implement a tool for commuters and tourists in western Norway. Manually (sigh..) create xml objects from routes on the ferryoperator’s webpage jquery parse these and create a live webpage use localStorage (for the most part) to do the settings-bit… Read More »

Vektorspillet (no-nb)

I got dared to make a pc version of some game. so i did. mostly. Get it here (XNA 4.0) You will need the redistributable for xna4 aswell: http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=A88C6DEC-AEAE-42CD-A108-D35C013C3B97

Checking checkboxes, not always a breeze

So, I was sitting here and debugging some code for more than three hours. And finally, I figured it out: You cannot set a checkbox as checked until you have appended it to a container. Code that does not work: var newEl = document.createElement(‘input’); newEl.type = ‘checkbox’; newEl.value = ‘yes’; if(value == ‘1’){    newEl.checked… Read More »

HttpContext.Current.Items

Great method for sharing info in different layers in ASP.NET without passing anything between them. http://www.mikeduncan.com/3-hot-uses-for-httpcontextcurrentitems-they-wont-tell-you-about