Popular Posts
Generate subversion diff report using python bash: svn --diff-cmd "python" --extensions "diff_to_html.py" diff -r 596:671 diff_to_html.py import sys import diff... JSRequest, Get parameters from querystring with javascript in SharePoint Provides method to parse query string, filename, and pathname from URL // Initialize first JSRequest.EnsureSetup(); // Get the current fil... ROBOCOPY: Robust File Copy for Windows -------------------------------------------------------------------------------    ROBOCOPY     ::     Robust File Copy for Windows --------...
Stats
Linq paging
var lqData = (from data in cl.AsQueryable<JobData>()
              select data).Skip(pageIndex * pageSize).Take(pageSize);
Regex.Replace by group value
string content = @"<div><img src=""loading.gif"" title=""loading""></div>";
content = System.Text.RegularExpressions.Regex.Replace(content, @"<img(.+?)>", delegate(System.Text.RegularExpressions.Match match)
{
    return string.Format(@"<img{0}/>", match.Groups[1].Value);
});