Per Søderlind

I code for fun

[lorem] shortcode

Images: Shortcode, Nested shortcode, Example, Lightbox I needed dummy text for a blog I'm working on, and since I like to code I wrote a simple plugin I'd like to share, you'll find it  in the WordPress Plugin Directory   Plugin: You’ll find the plugin at http://wordpress.org/extend/plugins/lorem-shortcode/ Installation: Download the plugin and save...

The Team Portal iPhone/iPad App

I guess I'm at bit biased since we made this app, but I really like the Team Portal iPhone app. Give it a try yourself together with your free SharePoint 2010 account. Some of the current features: View and open your collaboration sites and sub sites Manage your favorite sites...

Upload to SharePoint 2010

  [caption id="attachment_1072" align="aligncenter" width="300" caption="SharePoint 2010 upload - screenshot from TeamPortal.com"][/caption]   Besides the built-in upload to SharePoint 2010, I've looked at other methods to do uploads to SharePoint 2010. Here are my findings: Differential uploader, by @einaros Traffic reduction with annotation changes made to 11MB pdf, and re-uploaded...

Node.js

If you haven't looked at Node.js, you should. Node.js is “evented I/O for V8 javascript”.  With Node.js (and its well documented api) you can write extremely high performance non-blocking event driven network servers in JavaScript. Here's a simple chat server and client I wrote using Node.js, Faye and the Connect...

SharePoint 2010: Customize out of the box Application Pages (AccessDenied, Confirmation, Error, Login, RequestAccess, Signout, WebDeleted )

In SharePoint 2010, for security reasons, master pages are not applied to the application pages AccessDenied, Confirmation, Error, Login, RequestAccess, Signout and WebDeleted, instead you’ll have to create a new custom application page and run the power shell command Set-SPCustomLayoutsPage.(source http://live.visitmix.com/MIX10/Sessions/PR02 - a must-see): In WSS3.0 and MOSS2007 it was...

radial navigation in html5

Sorry no IE  (might work in IE9 platform preview), so open these in a modern browser: DONUT™ - Radial Navigator ASK KEN™Visual Knowledge Browser

WordPress plugin template

UPDATE: As of WordPress 3.3, you shouldn't use the wp_print_styles hook, I've updated the Adding JavaScript section below to reflect this change. You can create a personalized plugin template by using my WordPress Plugin Template Creator When I  rewrote my WP-DenyHost plugin, I wanted to do it as fast as...

When .LESS is more

[sourcecode language="css"] @the-border: 1px; @base-color: #111; #header { color: @base-color * 3; border-left: @the-border; border-right: @the-border * 2; } #footer { color: (@base-color + #111) * 1.5; } ul { list-style-type: none; height: 30px; li { float: left; padding-right: 15px; a { padding: 5px; display: block; color: black; text-decoration: none;...

jQuery 101: Adding unobtrusive ajax to your existing form page

Using jQuery and the form and validate plugins, it is simple to add  unobtrusive ajax to your existing form page 1, Modify your existing form page Add <input type="hidden" name="isAjax" id="isAjax" value="0" /> to your form. This field will tell the processing script, process_input.php in my example, if the values in...

Fighting spam

I have reduced the number of  splog attacks on my site I use the Akismet and WP-DenyHost anti-spam plugins for WordPress. Akismet is a must-have and has, since I installed it, caught 304,056 spams (!!).  When Akismet catch a spammer, it logs the spammers IP address. WP-DenyHost, written by me, prevents spammers from getting access...