<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - hoffstein</title>
<link>http://snipplr.com/users/hoffstein</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 11:36:03 GMT</pubDate>
<item>
<title>(C#) Simple CSV Writer</title>
<link>http://snipplr.com/view/41517/simple-csv-writer/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 05 Oct 2010 07:19:51 GMT</pubDate>
<guid>http://snipplr.com/view/41517/simple-csv-writer/</guid>
</item>
<item>
<title>(C#) C# Extension Method To Add ForEach To Any IEnumerable</title>
<link>http://snipplr.com/view/10554/c-extension-method-to-add-foreach-to-any-ienumerable/</link>
<description><![CDATA[ <p>This will allow you to use the LINQ ForEach method on any IEnumerable.</p> ]]></description>
<pubDate>Wed, 17 Dec 2008 11:34:47 GMT</pubDate>
<guid>http://snipplr.com/view/10554/c-extension-method-to-add-foreach-to-any-ienumerable/</guid>
</item>
<item>
<title>(Bash) Create patch file</title>
<link>http://snipplr.com/view/10331/create-patch-file/</link>
<description><![CDATA[ <p>Patches are created using the diff program. When making patches, please use the -u option, or if your diff doesn't support it, -c. Ordinary (context-free) diffs are notoriously prone to errors, since line numbers tend to change when others make changes to the same source file.</p> ]]></description>
<pubDate>Mon, 08 Dec 2008 11:31:06 GMT</pubDate>
<guid>http://snipplr.com/view/10331/create-patch-file/</guid>
</item>
<item>
<title>(C#) C# Get Enum Members</title>
<link>http://snipplr.com/view/10188/c-get-enum-members/</link>
<description><![CDATA[ <p>Retrieves an array of strings corresponding to members of the given enum.  Useful for looping through them at runtime.</p> ]]></description>
<pubDate>Mon, 01 Dec 2008 16:34:59 GMT</pubDate>
<guid>http://snipplr.com/view/10188/c-get-enum-members/</guid>
</item>
<item>
<title>(Other) Vim display all syntax highlighting groups</title>
<link>http://snipplr.com/view/10186/vim-display-all-syntax-highlighting-groups/</link>
<description><![CDATA[ <p>This will open a new window containing all highlight group names, displayed
in their own color.  It is very useful when developing a new color scheme.</p> ]]></description>
<pubDate>Mon, 01 Dec 2008 09:48:53 GMT</pubDate>
<guid>http://snipplr.com/view/10186/vim-display-all-syntax-highlighting-groups/</guid>
</item>
<item>
<title>(DOS Batch) SQL Server Find Differences Between Two Tables</title>
<link>http://snipplr.com/view/10035/sql-server-find-differences-between-two-tables/</link>
<description><![CDATA[ <p>The TableDiff utility comes with SQL Server 2005 and can report differences on schema and data. The most popular feature of TableDiff is the fact that it can generate a script that you can run on the destination that will reconcile differences between the tables.

Original source was a TechNet article called [Top 10 Hidden Gems In SQL Server 2005][1].

[1]: http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/gems-top-10.mspx "Top 10 Hidden Gems in SQL Server 2005"</p> ]]></description>
<pubDate>Tue, 25 Nov 2008 11:20:20 GMT</pubDate>
<guid>http://snipplr.com/view/10035/sql-server-find-differences-between-two-tables/</guid>
</item>
<item>
<title>(Other) Vim Delete All Trailing Whitespace</title>
<link>http://snipplr.com/view/9718/vim-delete-all-trailing-whitespace/</link>
<description><![CDATA[ <p>This command will remove any trailing whitespace for all lines in the current buffer.</p> ]]></description>
<pubDate>Thu, 13 Nov 2008 15:36:21 GMT</pubDate>
<guid>http://snipplr.com/view/9718/vim-delete-all-trailing-whitespace/</guid>
</item>
<item>
<title>(DOS Batch) DOS command to run all SQL scripts in a path</title>
<link>http://snipplr.com/view/9717/dos-command-to-run-all-sql-scripts-in-a-path/</link>
<description><![CDATA[ <p>This assumes that you have sqlcmd (comes with SQL Server client tools) installed and wish to execute every file ending in .sql within the given directory against the specified server and database using Windows Authentication.</p> ]]></description>
<pubDate>Thu, 13 Nov 2008 14:20:50 GMT</pubDate>
<guid>http://snipplr.com/view/9717/dos-command-to-run-all-sql-scripts-in-a-path/</guid>
</item>
<item>
<title>(Regular Expression) Regex for matching floating point number</title>
<link>http://snipplr.com/view/9606/regex-for-matching-floating-point-number/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 10 Nov 2008 13:19:55 GMT</pubDate>
<guid>http://snipplr.com/view/9606/regex-for-matching-floating-point-number/</guid>
</item>
<item>
<title>(DOS Batch) Create symbolic link in Vista</title>
<link>http://snipplr.com/view/9512/create-symbolic-link-in-vista/</link>
<description><![CDATA[ <p>The mklink command is used to create a symbolic link. It has the following command line syntax:

    mklink [[/D] | [/H] | [/J]] link target

* /D – Creates a directory symbolic link. Default is a file symbolic link.
* /H – Creates a hard link instead of a symbolic link.
* /J – Creates a Directory Junction.
* link – Specifies the new symbolic link name.
* target – Specifies the path (relative or absolute) that the new link refers to.</p> ]]></description>
<pubDate>Wed, 05 Nov 2008 22:58:19 GMT</pubDate>
<guid>http://snipplr.com/view/9512/create-symbolic-link-in-vista/</guid>
</item>
<item>
<title>(DOS Batch) Open Windows Explorer in current directory</title>
<link>http://snipplr.com/view/9501/open-windows-explorer-in-current-directory/</link>
<description><![CDATA[ <p>When executed from a DOS prompt, this command will launch a new Windows Explorer window in the current directory.</p> ]]></description>
<pubDate>Wed, 05 Nov 2008 10:02:10 GMT</pubDate>
<guid>http://snipplr.com/view/9501/open-windows-explorer-in-current-directory/</guid>
</item>
<item>
<title>(Other) SQL Server 2005 data types</title>
<link>http://snipplr.com/view/9487/sql-server-2005-data-types/</link>
<description><![CDATA[ <p>## Exact numerics


  
    
      Type 
    
    
    
      From 
    
    
    
      To 
    
  
  
  
    
      bigint 
    
    
    
      -9,223,372,036,854,775,808 
    
    
    
      9,223,372,036,854,775,807 
    
  
  
  
    
      int 
    
    
    
      -2,147,483,648 
    
    
    
      2,147,483,647 
    
  
  
  
    
      smallint 
    
    
    
      -32,768 
    
    
    
      32,767 
    
  
  
  
    
      tinyint 
    
    
    
    
    
    
      255 
    
  
  
  
    
      bit 
    
    
    
    
    
    
      1 
    
  
  
  
    
      decimal 
    
    
    
      -10^38 +1 
    
    
    
      10^38 –1 
    
  
  
  
    
      numeric 
    
    
    
      -10^38 +1 
    
    
    
      10^38 –1 
    
  
  
  
    
      money 
    
    
    
      -922,337,203,685,477.5808 
    
    
    
      +922,337,203,685,477.5807 
    
  
  
  
    
      smallmoney 
    
    
    
      -214,748.3648 
    
    
    
      +214,748.3647 
    
  


numeric and  decimal are Fixed precision and scale data types and are functionally equivalent.
## Approximate numerics


  
    
      Type
    
    
    
      From
    
    
    
      To
    
  
  
  
    
      float
    
    
    
      -1.79E + 308
    
    
    
      1.79E + 308
    
  
  
  
    
      real
    
    
    
      -3.40E + 38
    
    
    
      3.40E + 38
    
  


 

## datetime and smalldatetime


  
    
      Type
    
    
    
       From
    
    
    
      To
    
  
  
  
    
      datetime (3.33 milliseconds accuracy)
    
    
    
      Jan 1, 1753
    
    
    
      Dec 31, 9999
    
  
  
  
    
      smalldatetime (1 minute accuracy)
    
    
    
      Jan 1, 1900
    
    
    
      Jun 6, 2079
    
  


 
## Character Strings


  
    
      Type
    
    
    
      Description
    
  
  
  
    
      char
    
    
    
      Fixed-length non-Unicode character data with a maximum length of 8,000 characters.
    
  
  
  
    
      varchar
    
    
    
      Variable-length non-Unicode data with a maximum of 8,000 characters.
    
  
  
  
    
      varchar(max)
    
    
    
      Variable-length non-Unicode data with a maximum length of 231 characters (SQL Server 2005 only).
    
  
  
  
    
      text
    
    
    
      Variable-length non-Unicode data with a maximum length of 2,147,483,647 characters.
    
  


 
## Unicode Character Strings


  
    
      Type
    
    
    
      Description
    
  
  
  
    
      nchar
    
    
    
      Fixed-length Unicode data with a maximum length of 4,000 characters.
    
  
  
  
    
      nvarchar
    
    
    
      Variable-length Unicode data with a maximum length of 4,000 characters.
    
  
  
  
    
      nvarchar(max)
    
    
    
      Variable-length Unicode data with a maximum length of 230 characters (SQL Server 2005 only).
    
  
  
  
    
      ntext
    
    
    
      Variable-length Unicode data with a maximum length of 1,073,741,823 characters.
    
  


 
## Binary Strings



  
    
      Type
    
    
    
      Description
    
  
  
  
    
      binary
    
    
    
      Fixed-length binary data with a maximum length of 8,000 bytes.
    
  
  
  
    
      varbinary
    
    
    
      Variable-length binary data with a maximum length of 8,000 bytes.
    
  
  
  
    
      varbinary(max)
    
    
    
      Variable-length binary data with a maximum length of 231 bytes (SQL Server 2005 only).
    
  
  
  
    
      image
    
    
    
      Variable-length binary data with a maximum length of 2,147,483,647 bytes.
    
  
</p> ]]></description>
<pubDate>Tue, 04 Nov 2008 15:07:09 GMT</pubDate>
<guid>http://snipplr.com/view/9487/sql-server-2005-data-types/</guid>
</item>
<item>
<title>(Bash) Grep to find files in a path containing a pattern</title>
<link>http://snipplr.com/view/9484/grep-to-find-files-in-a-path-containing-a-pattern/</link>
<description><![CDATA[ <p>This will return all files in the current directory (and all subdirectories) containing "MyPattern" (replace with any regex), ignoring case-sensitivity.</p> ]]></description>
<pubDate>Tue, 04 Nov 2008 10:31:55 GMT</pubDate>
<guid>http://snipplr.com/view/9484/grep-to-find-files-in-a-path-containing-a-pattern/</guid>
</item>
<item>
<title>(Visual Basic) SSRS Color Every Other Row In Table</title>
<link>http://snipplr.com/view/9468/ssrs-color-every-other-row-in-table/</link>
<description><![CDATA[ <p>Set the BackgroundColor property to the following expression.</p> ]]></description>
<pubDate>Mon, 03 Nov 2008 17:20:00 GMT</pubDate>
<guid>http://snipplr.com/view/9468/ssrs-color-every-other-row-in-table/</guid>
</item>
<item>
<title>(DOS Batch) Remove Seapine Surround SCM bindings</title>
<link>http://snipplr.com/view/9407/remove-seapine-surround-scm-bindings/</link>
<description><![CDATA[ <p>These commands will remove Seapine Surround bindings from a directory (and all its subdirectories).  It will also remove the read-only property from all files as well as bindings to Visual Studio source control integration.</p> ]]></description>
<pubDate>Fri, 31 Oct 2008 12:55:04 GMT</pubDate>
<guid>http://snipplr.com/view/9407/remove-seapine-surround-scm-bindings/</guid>
</item>
<item>
<title>(DOS Batch) Recursively delete files in a directory</title>
<link>http://snipplr.com/view/9405/recursively-delete-files-in-a-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 31 Oct 2008 11:52:04 GMT</pubDate>
<guid>http://snipplr.com/view/9405/recursively-delete-files-in-a-directory/</guid>
</item>
<item>
<title>(Other) Vim Delete All Blank Lines</title>
<link>http://snipplr.com/view/9383/vim-delete-all-blank-lines/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 30 Oct 2008 14:23:14 GMT</pubDate>
<guid>http://snipplr.com/view/9383/vim-delete-all-blank-lines/</guid>
</item>
<item>
<title>(Other) TSQL snippets for snippetsEmu</title>
<link>http://snipplr.com/view/9377/tsql-snippets-for-snippetsemu/</link>
<description><![CDATA[ <p>These snippets can be used with TSQL files (assuming .sql extension) by saving the below code to vimfiles/after/ftplugin/sql_snippets.vim.

* **$proc** - creates the skeleton for a TSQL stored procedure, including dropping the old procedure if it already exists.
* **$func** - creates the skeleton for a TSQL user-defined function (scalar), including dropping the old function if it already exists.
* **$view** - creates the skeleton for a TSQL view, including dropping the old view if it already exists.
* **$table** - creates the skeleton for a TSQL table, including dropping the old table if it already exists.
* **$sum** - creates a TSQL SUM statement using the specified field and creates an alias to preserve the field name.
* **$vc** - creates a varchar definition using the specified size.
* **$c** - creates a char definition using the specified size.
* **$d** - creates a decimal definition using the specified size and precision.
* **$tv** - creates a table variable definition.
* **$tt** - creates a temp table definition.</p> ]]></description>
<pubDate>Thu, 30 Oct 2008 09:47:52 GMT</pubDate>
<guid>http://snipplr.com/view/9377/tsql-snippets-for-snippetsemu/</guid>
</item>
<item>
<title>(Other) Vim convert tabs to spaces</title>
<link>http://snipplr.com/view/9218/vim-convert-tabs-to-spaces/</link>
<description><![CDATA[ <p>This will force all tabs in the current buffer to be converted to spaces.</p> ]]></description>
<pubDate>Thu, 23 Oct 2008 16:18:02 GMT</pubDate>
<guid>http://snipplr.com/view/9218/vim-convert-tabs-to-spaces/</guid>
</item>
<item>
<title>(C#) LINQ Conditional Sum</title>
<link>http://snipplr.com/view/9216/linq-conditional-sum/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 23 Oct 2008 14:43:40 GMT</pubDate>
<guid>http://snipplr.com/view/9216/linq-conditional-sum/</guid>
</item>
</channel>
</rss>
