Contrary to the current MSDN documentation here:
http://msdn2.microsoft.com/en-us/library/websvcproject.project.readprojectstatus.aspx
The ReadProjectStatus web method requires two sets of permission to return Projects for a given user:
Contrary to the current MSDN documentation here:
http://msdn2.microsoft.com/en-us/library/websvcproject.project.readprojectstatus.aspx
The ReadProjectStatus web method requires two sets of permission to return Projects for a given user:
1) Install IE7, say bye bye to IE6.
2) Reboot.
3) Make a new folder: C:\Program Files\Internet Explorer 6\
4) Visit Evolt.org: http://browsers.evolt.org/?ie/32bit/standalone
5) Download ie6eolas_nt.zip: http://browsers.evolt.org/download.php?/ie/32bit/standalone/ie6eolas_nt.zip
6) Extract the Zip file you download in #5 into the folder you created in #3.
7) Create a shortcut to the executable you extracted in #6
Get beer
9) Drink beer
You are done, you now have both IE6 and IE7 working on your PC.
A random tech post, I just know I’m going to need this again sometime and this is my web notepad.
This is some code, to impersonate another user using calls to unmanaged code, and then to loop some Sharepoint lists as the impersonated user and then go back to the user of the process.
using System;
using System.Runtime.InteropServices;
using System.Security.Principal;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
namespace ConsoleApplication1
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine(WindowsIdentity.GetCurrent().Name);
string siteUrl = "http://ukserver/sites/projectserver_101/";
string user = "username";
string userDomain = "domain";
string password = "pass@word1";
bool impersonate = true;
IntPtr userHandle = new IntPtr(0);
WindowsImpersonationContext impersonatedUser = null;
if (impersonate)
{
bool returnValue = LogonUser(
user,
userDomain,
password,
LOGON32_LOGON_INTERACTIVE,
LOGON32_PROVIDER_DEFAULT,
ref userHandle
);
if (!returnValue)
{
throw new Exception("Invalid Username");
}
WindowsIdentity newId = new WindowsIdentity(userHandle);
impersonatedUser = newId.Impersonate();
Console.WriteLine(WindowsIdentity.GetCurrent().Name);
}
StringBuilder viewField = new StringBuilder();
SPSite siteCollection = new SPSite(siteUrl);
SPWeb spWeb = siteCollection.OpenWeb();
foreach (SPList currentList in spWeb.Lists)
{
if (!currentList.BaseType.Equals(SPBaseType.DocumentLibrary))
{
viewField.AppendFormat(
"<list Name='{0}' Type='{1}' />",
SPEncode.HtmlEncode(currentList.Title),
SPEncode.HtmlEncode(currentList.GetType().ToString())
);
}
}
Console.WriteLine(viewField.ToString());
if (impersonate)
{
//
// Clean up the impersonated user, returning to our process owner.
//
impersonatedUser.Undo();
CloseHandle(userHandle);
}
Console.WriteLine(WindowsIdentity.GetCurrent().Name);
}
//
// This stuff required for impersonation
//
public const int LOGON32_LOGON_INTERACTIVE = 2;
public const int LOGON32_LOGON_SERVICE = 3;
public const int LOGON32_PROVIDER_DEFAULT = 0;
[DllImport("advapi32.dll", CharSet=CharSet.Auto)]
public static extern bool LogonUser(
String lpszUserName,
String lpszDomain,
String lpszPassword,
int dwLogonType,
int dwLogonProvider,
ref IntPtr phToken
);
[DllImport("kernel32.dll", CharSet=CharSet.Auto)]
public extern static bool CloseHandle(IntPtr handle);
}
}
You can use that impersonation stuff anywhere… just take out the Sharepoint stuff ![]()
Friends of the Earth are carrying a press release about the High Court upholding a legal challenge against the Met Police. The assertion by the police is that Critical Mass is illegal as the police are not notified in advance of the demonstration.
The High Court ruled in favour of the argument that as Critical Mass has taken place on the last Friday of every month since 1994, it is to be considered “commonly or customarily held”, and therefore the organisers (there are no organisers for Critical Mass) do NOT need to notify the police in advance.
This effectively legalises Critical Mass in London as the recent anti-terror laws which provided the police with this assertion does not now apply to demonstrations that are regular.
The full press release can be found here:
Critical Mass Cyclist Wins Judicial Review Against Met Police.
I’ve been reading on a forum I am on about DC Bike Pirates. A loose confederation of urban cyclists who generally take bikes, cross them with the straight edge scene and some punk, and then party.
From their forum post:
The pirates are a group of drinkers with a riding problem. Many of us are fixed. Some of us aren’t. On any pirate ride, you can ride any bike you’d like, and wear anything you’d like. If you’re straightedge or under 21, you are welcome, but please know that we do ride from bar to bar, so you may feel left out. Newbies always welcome. Yarrr.
our past pillages include…
the tri-state margarita relay
the schnapps smuggler
the rum runner
sail the seven seas for scurvy cessation
the pilsner plunder
the Morgan’s Mallet Marauder Massacre
the Halloween Haul Ass
the Clink’s Cleared Celebrationwe also play polo every-other-wednesday, and occasionally we race eachother on a high school running track. we’re dorks like that.
The full details and the log of their raids to date can be found on the thread on the forum.
Now, I’m envious… I want to do that! So… any London cyclists out there who like the idea of dressing down (or up), coming out on a beater, and pub crawling some suburb of London before we split?
I need messenger friends, they’d be up for this I’m sure… the next critical mass is too far away (can’t make this one because I’m hooking up with mates).
London needs Bike Pirates!
And so was my commute this morning. I’ve seldom known anything as much fun, and perhaps I shouldn’t have watched the Google video of NYC bike messengers, it clearly has inspired me.
So this morning I cycled a bit recklessly, and I think it would be fair to say that I cycled like an idiot… but it was FUN! Serious fun, I jumped every red light, streamed through oncoming traffic, shot up Notting Hill, chose Oxford Street for shits and giggles, hung onto a bendy bus as another oncoming bendy passed within inches of me. And I had a whale of a time. And on the whole, I had no more near misses than usual, except today I had a grin on my face the whole way. I LOVED it. Still, I think I’ll reserve such behaviour for when I’m feeling very alert and energetic, this is certainly not the way to cycle when you have even the slightest ill weather or mood about you.
That was on Ruby too. Have I said how she rides yet? Nope, of course I haven’t. I haven’t been blogging as I’ve been too busy riding her and grinning. She rides like a dream. Well, ride is one word, I think of it more as flying… I don’t really feel the road, nor my legs… I just drift along on the breeze, sometimes feeling a bit like a comic book hero and as if I’m the one creating the wind as I spin up to some crazy but stable cadence (152 without a wobble the night before last) and whizz up a hill. She descends well, the control and confidence boost she gives is just something else entirely, and I honestly feel invincible on the machine.
All of the procrastinating I went through over wheels, and the Neutrons are awesome. That said, my Cannondale has Fulcrum Racing 1’s, and those are also awesome… different horses for different courses though, the Fulcrums love sprints and to fly, the Neutrons love climbing and eating up country miles.
On the idea of a fixie/single speed, I think I’ll go for the Surly, unless I find more inspiration in the meantime. Perhaps a Soma or Independent… I’ve even thought about a Vanilla because they’re beautiful, but a beautiful bike won’t make a great winter beater road eater… so the Surly Steamroller is currently the head of the pack for the next bike purchase.
What else has happened, well concerning other things I’ve chatted about here I’ve gone and exported all of the email from The Bat! into UNIX mail box format, and then imported all 17,000+ emails into Gmail. I should’ve done it years ago, it’s wonderful already. That single thing has meant that now when the computer boots up, I let it go straight into Ubuntu, there’s no reason not to and I enjoy using Amarok for music even more than I enjoy Winamp.
What else? Mmmm. Oh yeah, I did the London to Brighton bike ride last Sunday. The ride itself is 58 miles and includes a couple of significant climbs, Turners Hill being mentionable, and Ditchling Beacon being the one that commands respect in everyone who approaches it. My time this year was 3 hours and 7 minutes from start to finish, so we (3 Dynamates and myself) were munching breakfast in Brighton before 9:30am. Then at 10:30am we set off to Eastborne (because that’s on the way to London!*), lunch there shortly after midday (and the coastal road is a bitch, flat he said, but no… there are cliffs, and cliffs roll up and down the whole way), and then onto the train station. Just to discover that all trains were banned that day by Southern Trains, and so we now had the prospect of an 80 mile cycle home having already done 80 miles. I managed another 27.8 miles before I had to call to be rescued… the 3 other dynamo’s made it to a deserted train station another 8 miles down the road and got home via jumping on the train whilst there was no-one to tell them not to. Me, I waited in a layby to be picked up and driven back to a place where there would be less pain. Still, 107.8 miles in just over 6 hours, with a new personal best for the L2B… I feel dead proud for that slice of fun.
* And if you don’t know the geography, it goes Brighton, Poland, Czechoslovakia, Holland, Eastborne, Venezuela, Africa, the Hanging Gardens of Babylon… and then London.
So I’ve got her! And she’s now called Ruby, and I think that’s going to stick.
Here she is (click images for the big picture):
More images are over on Flickr.
I’ve got something in the region of 17,000 emails stored at home on my Windows PC in a program called The Bat! It’s a great program, I really love it and my love for it has been the biggest delaying factor in my moving to Linux on a permanent basis.
Recently I’ve been using 4 PC’s, all Windows and Linux, and I’m finding it increasingly difficult to get to my email. Previous solutions have involved webmail (for the stuff I haven’t picked up yet), and remote desktop (for getting to older mail remotely). But that isn’t really great because now I’m dual-booting my home desktop, I can’t get to The Bat! all the time I’m in Ubuntu.
So I’ve been considering the merits of uploading my 17,000+ emails to something like Gmail. Having everything online and accessible from everywhere. The concerns over this though pretty much come down to organisation and access.
In The Bat! I have something in the region of 130 folders holding the 17k emails in a nice hierarchy. I can find things pretty damn quick as I know where I would’ve filed things of certain topics and I’m always right. With Gmail there is no hierarchy, just labels. What I am uncertain on is whether it’s possible to label 17k emails in such a way that it is really easy to find what I want? Labels to me are ways of pre-filtering searches, to seperate an email on the purchase of a hard drive from an email on a hard drive failure that a friend has had by choosing to label one ’shopping’ and the other ‘friends’. But it seems that before I perform an import I should probably think about the best use of labels in reducing 130 folders down to something filterable, searchable. So that’s the first thing that concerns me… how best to re-organise such a quantity of mail for a different way of working.
Access is the second concern, and by this I mean the question “What happens if Google close my account?”. I can’t think of any reason why they would, but they do not provide a business critical service, they provide free webmail, that’s it. There’s no accountability should my account become corrupt. No guarantee that in the worst case scenario I could extract my emails from their system. And there’s no way back either… once you’re heavily reliant on Gmail, you can’t export everything and use a different service. This concern doesn’t just apply to Gmail, it applies to all webmail. It’s perhaps a far-fetched scenario, but still one to be concerned about. It’s almost as if I want a “Gmail for businesses” product in which I can gain a level of confidence over the long-term security (business IP value perspective, not physical encryption) and accessibility of the mail.
So my question to you the reader is… where do you store your email? What are the shortcomings of storing it that way? Can you get to it from everywhere? Is it even important to be able to do so?
I’ve not even received the Nove and already I’m dreaming of another bike… I should seek help before it’s too late. It’s too late.
I seem to have acquired a bit of fixation with fixed gear bikes. Perhaps it’s the idea that my pedalling style will improve further (from elliptical to smooth), or that I will enjoy balancing at traffic lights. Perhaps it’s that it will be a reason to go slower but maintain a more constant speed. Perhaps it’s the no whimping out part of hill climbing. Or the simplicity of being able to grab a cheap fixed gear, whip down the shops, and lock it up without fear that a bike the price of a car is locked to a fence (I’m not likely to ever whip down the shops on the Serotta).
It’s all of that and more.
They’re just so damn sexy, elegant, and graceful. Real winter beaters and road eaters.
I’ve been looking at this Surly Steamroller on Flickr:

And it’s gorgeous.
I could sell the Cannondale for a couple of grand perhaps, put £300 down for the cost of the Surly frame and fork, get Ergott to build some incredible wheels, slap on a Brooks saddle and have it completed for under £600. This would please my bank manager (the rest would go to paying off the Serotta!), and would fulfil my second flush of bike lust.
A good idea or stupid? You tell me!
Whilst we’re on the subject of clothing, I thought it would be remiss of me to not mention the Sock Guy.
Sock Guy produce socks for cycling, and not much else (a few running socks too, but cycling is their thing). They have hundreds of designs and will even make custom designs for teams too. But with their range being so wide, it’s highly unlikely you’ll need custom.
This is one of my favourite designs:

Unfortunately, and as is usual with my luck, that’s the one style they’ve stopped doing! Ah well, they still stock the widest range of cool cycling socks I’ve ever seen ![]()
Recent Comments