Pages

Saturday, September 20, 2008

An Intro to XPath, XQuery, and XSLT

Comparing XSLT and XQuery

XSLT and XQuery are two parallel technologies that use XPath as an underlying language. Their functionality overlaps and they are targeted to different needs of developers.

XML Query - W3C page on XQuery. Good general overview.

Thursday, September 18, 2008

Unit Testing ASP.Net with Visual Studio 2008

Joe Chung: Unit Testing ASP.NET with Visual Studio 2008

Here's something I'm looking into. There are testing frameworks included in .Net platform (unit testing, database testing, web testing). While I've used unit testing, the other two should be pretty interesting to investigate into.
I'll be looking into ASP.Net unit testing first.
From a short glance at the page the link above points to, I see that the testing framework is pretty simple and, seemingly, effective. I enjoy writing unit tests but also tests that represent real user behavior. This framework looks interesting.
I guess the database testing framework has its aces in the sleeve as well. Some database scripting capabilities would be useful, for example.
These three together should offer some amazing opportunities to test complete products, their data, and web presentation.

Monday, September 15, 2008

COM+

Here is a link to a brief overview of COM+. I have worked with Microsoft technologies, hence COM and COM+, but I never formally knew what the definition of COM+ was. There was Microsoft Transaction Server, DCOM, COM, ActiveX, .Net (as COM 2.0), the products exchanged names, were created, closed, resurrected, and so on. It's been confusing, to say the least.
Apart from the article on Wikipedia, I've found a nice and brief description of COM+ so I decided to post a link here. Also, here is Microsoft's COM page.

Probably the best short description would be the following:

"COM+ brought together the technology of COM components and the
application host of Microsoft Transaction Server (MTS). COM+
automatically handles difficult programming tasks such as resource
pooling, disconnected applications, event publication and subscription
and distributed transactions." (from Microsoft COM Page)


Friday, September 12, 2008

Codecs

Codecs can create a nightmare if you want to watch movies. Before going on a holiday, I installed a codec pack so that I could watch any video without trouble. While this was the case, it also created different problems with Windows sound system and programs would crash at random. Uninstalling the codec pack helped and all the programs produce sound without problems and are not crashing anymore.
But, coming across a new video file encoded, Media Player does not play video but only sound. GSpot says codecs are there but still cannot render video. Partial render failure results.
Hence, here is the link to a site that contains links to different codecs and codec packs. In case someone needs something similar...

Free-Codecs.com :: Download latest audio codecs, video codecs, codec packs and tools, FREE!

Now I'm going to look for a free XVID codec and see if the video will render.

update:
I installed the free XVid codec from xvid.org and everything was OK.

Thursday, September 11, 2008

Ado.Net Data Services, Entity Framework, etc.

Using Microsoft ADO.NET Data Services
Playing around with the Entity Framework... Trying to expose the data model through a web service. Turns out that scenario is supported out-of-the-box. Using Ado.Net Data Services, the whole model is exposed as a web service in about a few minutes.
.AttachTo is the method should one wish to implement a custom interface. This is what we were trying to do until we found what we were missing the previous years.
This is quite amazing stuff and requires a bit of thinking of the best way to utilize the technology. At the moment I don't see too much use for it right now, unless one is building Ajax/JavaScript clients. I mean, all those features are available through proper set up of the database server, creation of tables, views, etc. Building a data model is one more step towards abstraction and the creation of business layer.
Spending some more time on research will be fun, I reckon.

Wednesday, September 10, 2008

SyncToy 2.0

There is the final version of SyncToy 2.0 available for download. It includes the Sync Framework installations. At the first glance it runs smoothly and behaves much better compared to the Beta version. Hm... I will run it in parallel to Unison in the following period and see if it returns as my sync tool of choice.

Tuesday, September 09, 2008

SQL Statements or Stored Procedures

The eternal question. Here are a couple of recommended articles, though...

http://articles.techrepublic.com.com/5100-10878_11-5766837.html
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1214541,00.html

and a useful discussion
http://forums.asp.net/p/1309149/2573570.aspx
stating that in the case I'm interested in, having parametrized queries produced by a generator (like Entity Framework), SQL statements work as well as stored procedures.

Sunday, September 07, 2008

SyncToy Replaced with Unison (again)

After coming back from holidays I found something has happened to the sync in my Mesh account. My files and folders were being deleted in the synchronization. There was also an updated version downloaded but the mess continued. That lasted for a few days. I had my backup copy on a spare drive so I was trying to get through the sync mess and get to a point where all the locations were in sync with the correct files from the backup.
Then the update came out, stating there was a bug in the previous version. Installed that and started handling conflicts. Some folders kept being deleted after I copy files back from backup. I found that it is easier to go to an online desktop and then rename one of the folders with the same name (which is what happens if there is a conflict) and then delete one of them on a PC, since they can not be deleted on the online desktop.

Along with all that mess I, then, wanted to get my PC and the external drive back in sync for backups. That was even messier. Both platforms use Microsoft Sync Framework so the mess continued. The initial settings were Echo but the problem is that, it appears, all the changes get propagated. Meaning, if I replaced some files with a backup copy I'd get a delete action for the backup copy. :S That would delete my only valid copy of the files. So I tried to set the action to Sync but then there was even more weird choices and half the files would get overwritten for no reason. I wonder why is there no binary comparison done and then only the date can get updated rather than to copy all the files over. I liked none of the options.
Also, some of the files were copied to the target directory with .1 being added to the name, adding to the confusion.

I, then used Total Commander, to sync the folders where dates did not matter as the files were not updated for some time now. This was quick and easy. But the sync solution was not working anymore. Fixing things with other software just made SyncToy useless now.

So I went back to using Unison. It was so comforting to go back to a tested and proven solution that I can't describe my joy. Simple config files providing total control over what gets or does not get copied. Control over what happens to each individual change. These are all life savers.
Maybe, when I get the files back in sync, I can continue with SyncToy's Echo option as I'd like to copy changes from my PC to the backup drive and not do an actual synchronization. That's one option missing in Unison. Actually, this can be achieved with forcing changes from the left to the right. And I would not even have to preview the changes. This could all be set up in a batch file. Hmmm. That seems even better than SyncToy. Well, the case is up for the Unison (again) and SyncToy is out once again. Maybe some next version will be more usable than the current 2.0 is.
Unison, wellcome back. Unison is not being actively developed but it works and there is no need to develop it further as it already contains a nice feature set expected from a sync program. Hope I can get my files back in order now.

Thursday, September 04, 2008

EDMS

EDMS - Electronic Document Management System
Looking for some information on EDMS with SharePoint. Some related links to be contained here.

There are enough resources available on SharePoint online while now I'd like to see some solutions for EDMS.
Interwoven is a publisher of an EDMS product called WorkSite.

Wireless Future

Evolution to turbocharge wireless broadband

Just as I was reading the news on new wireless standards, my colleagues turned my attention to a recent news on wireless power transfer.

IDF's Coolest Demos: Robotics, Wireless Power, and More - Forward Thinking by Michael J. Miller

While I was on holidays I did not read or watch any news. That was the most refreshing aspect of holiday, right? Well, that's why I missed on this Intel's announcement. It appears this is a continuation of the work announced last year by MIT scientist with a Balkans origin. This time the power, transferred by using magnetic resonance, was used to power a 60-Watt light bulb. This looks more useful than what last year demonstration showed.

To anyone who is so excited by these news of wireless power transfer I'd recommend to research on Tesla's work and findings as people have been talking for a long time that Tesla has managed to transfer the power without wires long time ago but there are no known written traces to show that was done. There goes the whole conspiracy theory after that but I'd be inclined to believe he did it since it appears he was a natural-born genius in the field of electro-magnetic waves.

As for wireless networks and data transfer, I'm quite amazed to hear a forecast that the wireless technologies will advance faster than fiber technologies. This goes against the current Australian government's tender to create a fiber-optics network across Australia. Obviously, it would be better, in light of current announcements, to invest in wireless technologies to achieve Internet coverage in Australia.