Thanks to Google caching, I got many posts back from my previous blog. All the ones I could find are back on the site with their original dates.
I’m thankful for Google cache!
Thanks to Google caching, I got many posts back from my previous blog. All the ones I could find are back on the site with their original dates.
I’m thankful for Google cache!
If you try to do a SharePoint 2010 installation on your client machine (that is, not a Windows Server OS) then you’ll get an error explaining that SharePoint 2010 can’t be installed on your operating system.
Never fear, CodeProject is here. Check out this helpful post to get it installed (it couldn’t be easier):
CodeProject article
Even though the post is from 2009, it still works great.
For more detailed steps (including the ones outlined in the link above) following these instructions:
Microsoft’s detailed steps
They will help you get the prerequisites installed as well.
As simple as it ended up being, it took me quite a while to figure out how to correctly add a simple overlaying graphic to a Brightcove video player yesterday. It involves a couple of steps which I did not find clearly laid out anywhere I looked. So, I thought a nice little step-by-step blog post would be helpful to anyone else looking for the same thing.
First, Brightcove has a nice and easy method (I say that because it looks easy…I didn’t try this method) of adding logo overlays to an individual video. You just:
This isn’t what I wanted though. I needed these videos to appear logo-free in certain instances. So, the best solution was to use one player in the instance where I didn’t need a logo and then use a different player that included the logo overlay for my other scenario. That required add an overlay to a player, not a video.
So, on to the solution!
Step One: Create a new player template
This part is easy. Actually, all the parts are easy. You just need to know what to do.
<Image id="logoOverlay"
width="50"
height="50"
scaleMode="exactFit"
visible="{!videoPlayer.menu.open}"/>
All of the attributes are optional except the id attribute. It doesn’t have to be named “logoOverlay”, but you have to have something there. Notice the value for my “visible” attribute. This ensures that my logo disappears when the video is done and doesn’t awkwardly overlay any of the video menu UI elements. Remove it if you want your logo to display the whole time. Also note the “x” and “y” values. Change these to your liking. You might have to wait to finish Step Two below when you’ve added a logo and then you can test a video with your player to see where the logo fits best. From there, you can keep adjusting your logo until you’re satisfied.
That’s it for the template! You’re done with Step One.
Step Two: Add Your Logo
I figured out step one all on my own pretty quickly. I figured out step two all on my own too, but it look a lot longer!
You’re done! Now, any video you display with that player will have a logo overlay.
Hi! If you got here searching for any number of things (particularly having to do with SharePoint 2007/2010) and you’re wondering where that content went…well, it’s gone. I’m going to try to get it back, but I did something stupid in transferring my blog to another hosting account and lost my content from the previous account.
So, please be patient, use Google’s cache if need be and I’ll try to get things back in working order!
I recently had a situation where I needed to compare many XML files generated by a program of one version to the same set of XML files produced by a previous version of the same program. Unfortunately, the sets of XML files were formatted differently and so doing a file comparison with Beyond Compare (a GREAT file comparison tool, by the way) was going to be useless.
So, I started looking for a way to quickly format all the files in each set the same way with one program. I looked into using Notepad++ which has a great XML Tools plugin (look for it under Plugins > Plugin Manager). I tried combining the plugin’s formatting commands with a macro that would format the XML file, save it and close it. So, I could easily open the few hundred files I had to format in Notepad++ (one set at a time), then run the macro multiple times (Macro > Run a Macro Multiple Times…). This would run through each file until all were formatted and closed. However, after working with it for a while, I couldn’t get the Notepad++ macro system to actual perform the XML Tools plugin format command. The macro would successfully run, saving and closing the file. But, when I checked the files they had not been formatted. I worked with it for a while, but could not figure out what the matter was.
I knew the real solution had to be some type of command-line utility and a batch file. So, I started looking into that. The solution I ended up with was just that.
First of all, I found HTML Tidy which I could run from the Windows command line to format a file. Using a configuration file for the tidy.exe (placed in the same directory as tidy.exe and named tidcfg.ini–although neither matters, see below) that looked like this:
indent:yes indent-attributes:yes
I got the formatting I wanted.
Now, all I had to do was brush up on my Windows batch command skills to run tidy.exe on multiple files. Easy enough! This is what my batch file looked like:
for /d %%X in (C:\<path_to_parent_directory>\*) do (c:\<path_to_tidy.exe>\tidy.exe -m -xml -config c:\<path_to_tidy.ini_file>\tidycfg.ini %%X\<xml_file_name>.xml)
I had a folder structure where there were hundreds of directories inside this one parent directory. Each of the child directories had a single XML file in it. Therefore, I needed the C:\<path_to_parent_directory>\* wildcard.
So, what this batch file does is simply look at each child directory (with the /d switch) in my parent directory. In each directory it runs (do) the tidy.exe program, tells it to modify the input file itself (-m) instead of saving the formatted XML to another file, tells it that the input file is valid XML (-xml) and then tells it where the tidycfg.ini file is (-config). Finally, it tells tidy.exe to take the current directory (%%X) and use the <xml_file_name>.xml file as the input file to format.
This little set up worked very well and quickly formatted all of my files in the same way so that I could successfully compare them with Beyond Compare.