lamp

November 2008 - Posts

C.0.8.54 expected C.0.8.52
19 November 08 05:20 PM | Frederick.Chapleau | with no comments

Another Google Catcher page catcher.

When Installing Report Server and applying the SP2, this may occurred when you restore a backup from another SQL 2005 RS SP2 database.

The answer: you installed the CTP2 of the RS 2005 SP2, check out the latest one, and install it, this should be solved.

-f.

Filed under:
service reference reuse types in referenced assemblies
09 November 08 11:25 AM | Frederick.Chapleau | with no comments

When developing using Web Service, you may want to reuse common components, so that adding a service reference do not generate Type proxy to common Types.

In .NET 3.5, WCF (windows communication framework) enable you to do that. But with a catch, you MUST use the 3.5 WCF Service to enable the "Reuse Types in References Assemblies".

Only this type of Project/Service enable Service Contracts, that defines type mapping understandable by Visual Studio.

Here is a clear example on how to do that, from Jane Mattila a Senior Consultant at Microsoft Services in Finland.

http://blogs.msdn.com/jannemattila/archive/2008/10/15/web-services-and-namespaces-or-wcf.aspx

-f.

Filed under:
A quick Tutorial for Linq to SQL
09 November 08 09:22 AM | Frederick.Chapleau | with no comments

In less than an hour, I've made a COMPLETE web application, from the UI, to the Database including simple CRUD.

I have used ASP.Net > WebServices > Linq > DBML > SQL > SQL Server.

This is the tutorial for the basic concept, and the rest was... intellisense :)

http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx

-f.

Filed under:
My Slashdot-like RSS Date Converter
06 November 08 07:57 AM | Frederick.Chapleau | with no comments

What is this crazy format,

1970-01-01T00:00+00:00

There is no way to format this using XSL. So my solution inside a XSL transformation template, was to call a C# function that convert it back to a DateTime object and after that that formatting this like...

image

My Solution :

To add  to the xsl:stylesheet tag

xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:cy="urn:my-scripts"

Include this function:

<msxsl:script implements-prefix='cy' language='CSharp'>
    <![CDATA[
    public string Since(string abc)
    { 
        DateTime dt = DateTime.ParseExact(abc, "yyyy-MM-ddTHH:mm:sszzzz", System.Globalization.CultureInfo.InvariantCulture);
        TimeSpan sp = DateTime.Now - dt;
        string formattedDate = string.Empty;
        if(sp.TotalDays>=1) formattedDate += Math.Round(sp.TotalDays).ToString() + "d ";
        if(sp.Hours>0)         formattedDate += sp.Hours.ToString() + "h ";
        if(sp.Minutes>0)     formattedDate += sp.Minutes.ToString() + "m ";
                            formattedDate += sp.Minutes.ToString() + "s";
        return formattedDate;
    }
    ]]>
</msxsl:script>

And call it like this:

<xsl:value-of select="cy:Since(dc:date)"/> ago, at <xsl:value-of select="dc:date"/>

-f.

Filed under:
TX1000 Windows XP Drivers
04 November 08 08:45 AM | Frederick.Chapleau | 5 comment(s)

As requested my many people, here are the complete list of Windows XP drivers for my HP tx1218ca (tx1000).

Those are Windows XP x32 version of the drivers, hopping that they are compatible with the x64 version.

Audio
HDAUDIO\FUNC_01&VEN_10EC&DEV_0862&SUBSYS_103C30BF&REV_1000\4&1AFC31B3&0&0001
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-45958-1&lc=en&cc=us&lang=en&os=228&product=3177437&dlc=en
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=24&Level=4&Conn=3&DownTypeID=3

nForce Chipset
PCI\VEN_10DE&DEV_026C&SUBSYS_30BF103C&REV_A2\3&13C0B0C5&0&81
PCI\VEN_10DE&DEV_0264&SUBSYS_30BF103C&REV_A3\3&13C0B0C5&0&51
PCI\VEN_10DE&DEV_0269&SUBSYS_30BF103C&REV_A3\3&13C0B0C5&0&A0
http://us.download.nvidia.com/Windows/nForce/standalone/430_410/8.26_11.09_nforce_winxp_english.exe

Coprocessor
PCI\VEN_10DE&DEV_0271&SUBSYS_30BF103C&REV_A3\3&13C0B0C5&0&53
Have disk, select System Devices and pick up the SMU directory under the extracted files, force the driver
ftp://ftp.hp.com/pub/softpaq/sp33001-33500/sp33411.exe

BlueTooth
USB\VID_03F0&PID_171D\5&7630A81&0&7
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=321957&prodSeriesId=1839144&prodNameId=1839169&swEnvOID=1093&swLang=8&mode=2&taskId=135&swItem=ob-41446-1

Modem
HDAUDIO\FUNC_02&VEN_1057&DEV_3055&SUBSYS_103C30BF&REV_1007\4&1AFC31B3&0&0101
http://rapidshare.com/files/58969387/Motorola_SM56.rar.html

Authentec fingerprint
USB\VID_08FF&PID_1600\6&2D7CB5BB&0&2
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=321957&prodSeriesId=1839144&prodNameId=1839169&swEnvOID=1093&swLang=8&mode=2&taskId=135&swItem=ob-52313-1

 

-f.

Filed under: