Category: C#
-
Saxon.NET and local file paths with special characters and spaces
I thought I’d post this here in case this can help other folks. One of the parsers that I like to use is Saxon.Net, but within the .net platform at least, it has problems doing XSLT or XQuery transformations when the files in question have paths with special characters or spaces (or if they reference…
-
Fonts, Font-sizes and the MacOS
So, one of the questions I’ve occasionally been getting from Mac users is that they would really like the ability to shift the font and font sizes of the programs’ interface. If you’ve used the Windows version of MarcEdit, this has been available for some time, but I’ve not put it into the Mac version…
-
Working with the Clipboard on OSX
Coming from the Windows and Linux world — the object where data is copy and pasted from is called the Clipboard. Not so in OSX. In OSX, this is referred to as the NSPasteBoard. Should you need to get string data on and off of it – use the following: private static string[] pboardTypes…
-
Automated Language Translation using Microsoft’s Translation Services
We hear the refrain over and over — we live in a global community. Socially, politically, economically — the ubiquity of the internet and free/cheap communications has definitely changed the world that we live in. For software developers, this shift has definitely been felt as well. My primary domain tends to focus around software built…
-
Building your own reminder system
One of the hats I wear is as a member of the Independence Library Board. I love it because I don’t work with public libraries as often as I’d like to in my real job, and honestly, the Independence Public Library is the center of the community. The Library is a center for adults looking…
-
Getting the real %windir%\system32 directory from within a 32 bit process on a 64 bit machine
When working with the 64-bit flavor of Windows, there are a couple of quirks that you just need to accept. First, when Microsoft designed windows for 64 bit processing, they weren’t going to break legacy applications and second, how this gets done makes absolutely no sense unless you simply have faith that the Operating System…
-
Elevating a process to running an MSI from a standard user’s account
One of the questions that consistently comes up with the advent of Windows Vista and Windows 7’s use of the UAC is how to run applications or processes without being prompted for a username/password. There are a number of places online that talk about how to use the C# classes + LogUser API to impersonate…
-
Using MarcEdit to reuse (and maybe import) items in Dspace
I’ve been thinking a little bit about some of the things that I use MarcEdit for and have been pushing some of this work off my desk to some of the staff in our technical services department. We actually use MarcEdit quite a bit when it comes to sharing metadata from our Dspace instance with…
-
MarcEdit 5.x and OCLC Plug-in Update
I took a couple of minutes and made a few changes to MarcEdit and the OCLC plug-in to provide some additional functionality to the plug-in framework and fix an error in the OCLC plug-in. Changes: MarcEdit: One real change. In the MacroInterfaces.dll (the library that allows the Scripting interface and the Plug-in interface access to…
-
C# plug-ins continued — Interacting with one’s hosted application
Example Project Source: PluginProject.zip Because I’ve been doing a lot of work with MarcEdit and plug-ins, I thought I’d post some sample code for anyone interested in how this might work. Essentially, the sample project includes 3 parts — a host application, a set of Interfaces and a Shared library. Making this work requires a…