A place for Sharepoint and rantings
Technical
Sharepoint and ResX and a little tool
Oct 14th
I am doing lots of work in Sharepoint that requires resource files in english and german.
With a variety of developers before me different styles of editing the foreign language files emerged.
I think that much better tool support for managing resx’s is required, and I recently found one that is a great help to us with a vareity of resx’s in various states of translation and existence.
http://resxtranslator.codeplex.com/
This resx tool allows you to pick a file and it displays the nuetral and foreign side by side along with comments and allows you to edit them all at once. Corking piece of work, some polish would go amiss but Im hard pushed to say where as it does exactly what I need it to do and I can pass it to a non-techie developer. It still down to me to edit the comments first to identify what needs translating and what definately needs leaving alone.
If you doing multi-language work go and check this tool out it might just help.
Of backups and Earthquakes
Mar 3rd
For those unaware, we had a little earthquake, 5.2. Largest in the UK for 25 years. So for those of us who are not used to these geological events it was bad enough.
Bad enough when you live an a house only 8 years old made of paper, or seemingly so, I certainly felt every bounce and wobble, if that’s what earthquakes do. Whilst in my house, the effect felt amplified by the banging of the mirror against the wall in time with the wobbles. It lasted 10 seconds they say, I say it lasted a lot longer, as the mirror continued to bang as the lesser quake ripples continued for another 20 seconds or so.
I wasn’t sure if we were in for a second larger quake or what, not being used to quakes, it was only my third after all. I wondered whether or not to wake the kids and go wait it out in the car, well it was dark and late I was tired and a little worried to say the least.
The last thing on my mind was to remember to pick up the external USB disk drive that holds my backups, or the pack of dvd’s More >
[X]Ubuntu – more installation problems
Jan 22nd
It would appear that I am suffering from a similar problem that many others have encountered. Some more digging and exact wording in google has found my particular problem.
The documentation is lying.
Xubuntu requires a 192mb to install. I have 192mb. It’s just that some of it is running linux. Its because of this I get the system install hanging at 15%.
Apparently the installer for [X]Ubuntu, ubiquity, disables the swap files to install, a sensible precaution if you are about to rebuild the whole disk, however in my situation in a manual partitioning case, the swap could have been left alone, in fact some clever so and so edited the perl scripts to stop it disabling a swap he created on a USB key, I could not find those scripts as they had been relocated in the new version else I’d have give it a go.
Unfortunately the text-installation is not included in the primary ISO’s and the alternate CD is required. This is good news for me and other with even less ram as the Alternate CD only requires 64mb to install. Just what it will install I am curious about. I’m hoping that a text only version of linux More >
Experiencing Ubuntu – Installation
Jan 17th
Apparently Ubuntu – Just Works.
Well I thought I’d find out. I have an Old Laptop its a Sony Vaio PCG-F403, basically it is 450Mhz and has 192mb of memory. Its old and slow.
So I start with the ISO, downloaded it eventually from a mirror and burned away.
Here goes. It opened with a pretty Ubuntu logo did some linuxy things, more linux things, then a sample from the Lion King before opening into, Linux.
That was a surprise, no horrible stand-alone installer, straight into Ubuntu Linux and you can use it there and then. This looked promising. So I started the Installer, an icon on the desktop saying Install with an icon of a drive and an arrow going into it, fairly self explanatory.
The installer starts and I pick my country etc then get to the Partitioning, the bit that always went wrong before, the bit I end up having to go into dos, delete partitions, then back in use something called disk druid to manually partition things. Only this time no disk druid, just three radio buttons. Guided – resize, Guided – whole disk and manual. So I selected Guided whole disk. Enter some login details and away it More >
Vista – All Gloss and Pop-ups
Jul 25th
Being an MS developer, well a sap developer of late (but I keep sneakily writing Sharepoint interfaces to it), I have used MS for a long while (86-90, 95-07+), I toyed with Linux having started my career in unix and had to work with “green screens” for 8 years and having a GUI in Linux just didn’t feel right. So I been running Vista for a while now.
Of course being the techie in the family all the family have windows too, many of them now happily working on XP SP2 all virus checked and firewalled up to the eyeballs. And yes all the extra security on machines designed before SP2 make them run slowly.
Slow machinery is something my brother-in-law can’t stand, he’s worse than me for gadgets and tech and relies on me to advise him of what’s coming up.
Having been to PDC05 I got a Vista Polo shirt, it was great, a good fit, great quality, does exactly what I need it too. Unlike Vista. I’m a bit ashamed to wear it now everyone knows what Vista is like.
Getting back to the point. My brother-in-law being the gadget hungry monster he is asked me about upgrading his PC More >
Hmm not impressed – whoops
Apr 7th
My Samsung 37″ R88.
So I set it up and plugged in Sky and the Xbox and the DVD player (no HD or PC yet).
From the moment I turned it on my wife was ooooh and arrr thats fantastic. It’s so clear and crisp (this was just SD). It’s a bit blurry I thought, this isn’t anywhere near as good as I hoped.
So I thought I’d better try some HD content. Step in “Pirates 2″ clip on downloaded on the xbox 360.
“Oh my god, that’s utterly amazing, we need a HD-DVD player now” says the wife (I love having a geeky wife).
“It still looks a bit blurry to me the edges on the text are not well defined”. I say.
“Put your bloody glasses on then you dick” says the wife (never was subtle).
Whoops.
It’s as amazing as she said. Its better than I could have expected. I have been watching an old Toshiba 40″ rear projector. Blacks and greys all run into each other, in fact unless your watching at night there is no such thing as a black on this old TV. You could not watch this TV in bright sunlight without drawing the curtains.
The Samsung R88 with its 8000:1 More >
Core2Duo Upgrade
Sep 18th
Well I finally upgraded my home PC, its been a while I was making do with an AMD XP1900+ and whilst faster than my previous PC it never behaved like the workhorse that was promised. I mean take video encoding or picture manipulation, it was slow, real slow, primarily due to the lack of extensions in the chip that the intel had.
Living with the AMD was also a problem, it was so loud and cost to make it cool quitely was a little steep so it stayed upstairs in the backroom. You could hear this thing from outside the room with the door closed.
This new chip though, talk about small, talk about cool, talk about quiet. Hey I’m just using the standard components that come, admittedly the graphics card I have at this minute is passive cooled, but this new build is almost totally silent. I have it in the lounge and you cant hear it above the TV, Sky+ box and of course the wind tunnel that is the xbox360.
Anyway a little advise for those thinking of upgrading to a core2duo. BEWARE. Hardly anyone else has one and when your build goes wrong for whatever reason there is no More >
Reading XML that has namespaces
Sep 4th
In trying to convert this blog I had to knock up an application to read dasBlog dayentry files and write out a large RSS style wordpress import file.
Now I don’t do XML that often but when I do its been with simple XML so a quick “//Entries” XPath query and away you go. However the dasBlog XML is done properly with lots of namespaces.
So when I’ve been doing my simple XPath query it returns nothing. So for those having similar problems the solution is this. You need a namespace manager.
Here is a quick code snippet that explains how you would use it.
XmlNamespaceManager mgr=new XmlNamespaceManager(xmlDoc.NameTable);mgr.AddNamespace(“def”,”urn:newtelligence-com:dasblog:runtime:data”);
foreach(XmlNode innerNode in xmlDoc.SelectNodes(“//def:Entry”,mgr) ) { //Do things with innerNode; title=innerNode.SelectSingleNode(“def:Title”,mgr).InnerText; //Do more things}
Simple as that.
tags: .net, c#, xml+programming, xml, namspace+manager