Filtering a DataSet
public
static DataSet FilterDataSet(DataSet ds,string TableName,string column, string filter){
DataSet dsCopy = ds.Copy();
ArrayList alRowsToRemove =
new ArrayList(); foreach(DataRow dr in dsCopy.Tables[TableName].Rows){
if (dr[column].ToString()!=filter){
alRowsToRemove.Add(dr);
}
}
foreach(DataRow dr in alRowsToRemove){
dsCopy.Tables[TableName].Rows.Remove(dr);
}
return dsCopy;}
base.google.com
Javascript: prevent entering of Email addresses
{
elements = document.getElementsByTagName(type);
for (var i = 0; i < elements.length; i++) {
removeEmails(elements[i]);
}
}
{
var EmailRegex = "([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})";
var re = new RegExp(EmailRegex, "g");
try
{
element.value = element.value.replace(re,"");
}
catch(ex)
{
element.innerHTML = element.innerHTML.replace(re,"");
}
}
Javascript compression
InitTTSCaptureStream of object ITTSSTream failed
playTerminal=currentCall.RequestTerminal("{0CB9914C-79CD-47dc-ADB0-327F47CEFB20}",
(
int)MediaMode.MT_AUDIO,TERMINAL_DIRECTION.TD_CAPTURE); //Create a playlist with the file sent as parameterplayback=(ITMediaPlayback)playTerminal;
Object[] playList = { String.Format(@"{0}TestWave.wav",Application.StartupPath) };
playback.PlayList=playList;
//
// //Assign terminal to call and starts playing
currentCall.SelectTerminalOnCall(playTerminal);
// … Then after the call is accepted…
ITMediaPlayback playback;
playback=(ITMediaPlayback)playTerminal;
Object[] playList = { fileName };
playback.PlayList=playList;
ITMediaControl mediaControl;
mediaControl=(ITMediaControl)playTerminal;
mediaControl.Start();
The audio quality is terrible, with stuttering, and excessive echo. I think, it’s something to do with the half-duplex nature of the 4/PCI. But to be honest I don’t know.
I even had a crack at working with some of the TAPI examples in the SAPI SDK – modifying the code to use my Dialogic card rather than the H323 line.
But I got stuck when I hit the error InitTTSCaptureStream of object ITTSSTream failed
And there is no information whatsoever on the net about it.
Resurecting WinMX
Printer error 482
Ebay phishing scam
|
Dear eBay member, Hey are you going to buy the item from the auction that you won, why dont you answer to my emails, if you dont Respond Now I will contact ebay safeharbor and I will report you ! I am not a fool !
If you get this email, just delete it. |
RETURN statements in scalar valued functions must include an argument.
returns float
as
begin
return
select @something + 10
end
RETURN statements in scalar valued functions must include an argument.
returns float
as
begin
return ( select @something + 10 )
end
XSL stylesheet for displaying serialized datasets
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<xsl:template match="/">
<html>
<body>
<table>
<tr>
<xsl:for-each select="DataSet/xs:schema/xs:element/xs:complexType/xs:choice/xs:element/xs:complexType/xs:sequence/xs:element">
<td><b><xsl:value-of select="@name"/></b></td>
</xsl:for-each>
</tr>
<tr>
<xsl:for-each select="*">
<td><xsl:value-of select="." /></td>
</xsl:for-each>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>