SharePoint 2010: Custom Timer Job Caching Old Code

I’m new to SharePoint 2010 development, and while I was working on a Custom Timer Job, every time I made a change to my code I noticed that those changes were not being applied… the “old” code was still being used. So, after doing some research (and losing a lot of hair), the way to fix this behavior is to change your Assembly and File version numbers:

SP2010 Assembly Iformation

That’s all that needs to be done to ensure that your most recent changes are deployed… otherwise, you’ll lose a lot of hair, like I did.

What is a Redundant Server?

If you want to know a simple explanation of what a Redundant Server is, here it is:

A redundant server is a backup server, up and running on the network, that can take over instantly if the primary server fails.

Often, if the primary and secondary are both functional, both will share duties, increasing overall throughput. But in the event one fails, the redundant box takes over full duties until the primary is back on line.


Using The Post Method In Ajax

In the Rasmus’ 30 Second Ajax Tutorial, we’re using the get method to send our request:

function sndReq(action) {'get', 'rpc.php?action='+action);
     http.onreadystatechange = handleResponse;

But what if we want to use the post method? Well, let’s modify that function to do just that:

function sndReq(action) {'post', 'rpc.php', true);
    http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    http.setRequestHeader("Content-length", action.length);
    http.setRequestHeader("Connection", "close");
    http.onreadystatechange = handleResponse;

That’s it, that’s all you need to modify. Of course, you’d need to modify your rpc.php page to receive requests using the post method.

Remember, this is one way to do it.

Hope this helps.

Convert Pixels to Points to Ems

I was looking for a way to convert pixels to ems for a website project I was working on, and came across this conversion table which, I’m sure, will be a useful reference to you if you ever need to convert pixels to points or ems (or percentage).

In case you don’t know, using pixel units to set font sizes is of bad practice; use ems or % units instead to display fonts on the monitor, and points for printing.


Retrieving The Value Of A Flash DataGrid Cell

Well, kinda late, but I wish you all a Happy New Year!

This year, I want to blog more. And to accomplish this, I’ll be managing my time better. It won’t be easy but I’ll do it.

Okay, now on to today’s tip.

Because I’m kinda rusty in ActionScript, one of my goals is to develop more Flash applications.

Anyway, here I’ll give you a very simple example on how you can retrieve the value of a Flash DataGrid cell. I had to do something like this at my job, and I had to spend quite some time doing some research to figure this out. This tip, hopefully, will save you some time.

Ah! I’m assuming you already have some flash/actionscript experience, so I’ll keep this as short as possible. Continue reading