From Discover Magazine
To the dust cloud in the central lower left quadrant. Estimated to be 10 meters across. Makes the tree like sand structures at least 30 meters tall!
Collection of unedited thoughts and bits of knowledge I can't seem to remember
Search This Blog
Thursday, January 14, 2010
Wednesday, January 13, 2010
Append to a text blob in SQL 2008
From StackOverflow
Wish I could remember this without google...
Wish I could remember this without google...
update
tablename
set
fieldname = convert(nvarchar(max),fieldname) + 'appended string'
Saturday, January 2, 2010
SharpMap patch
Something novel, fixed my first bug in open source software: SharpMap
Adding this control as part of my DRC rewrite in C#
Adding this control as part of my DRC rewrite in C#
Index: Trunk/SharpMap/Data/Providers/DbaseReader.cs
===================================================================
--- Trunk/SharpMap/Data/Providers/DbaseReader.cs (revision 61030)
+++ Trunk/SharpMap/Data/Providers/DbaseReader.cs (working copy)
@@ -417,7 +417,16 @@
{
baseTable = new FeatureDataTable();
foreach (DbaseField dbf in DbaseColumns)
- baseTable.Columns.Add(dbf.ColumnName, dbf.DataType);
+ {
+ try
+ {
+ baseTable.Columns.Add(dbf.ColumnName, dbf.DataType);
+ }
+ catch(DuplicateNameException)
+ {
+ baseTable.Columns.Add(string.Format("{0}_1",dbf.ColumnName), dbf.DataType);
+ }
+ }
}
internal FeatureDataTable NewTable
===================================================================
--- Trunk/SharpMap/Data/Providers/DbaseReader.cs (revision 61030)
+++ Trunk/SharpMap/Data/Providers/DbaseReader.cs (working copy)
@@ -417,7 +417,16 @@
{
baseTable = new FeatureDataTable();
foreach (DbaseField dbf in DbaseColumns)
- baseTable.Columns.Add(dbf.ColumnName, dbf.DataType);
+ {
+ try
+ {
+ baseTable.Columns.Add(dbf.ColumnName, dbf.DataType);
+ }
+ catch(DuplicateNameException)
+ {
+ baseTable.Columns.Add(string.Format("{0}_1",dbf.ColumnName), dbf.DataType);
+ }
+ }
}
internal FeatureDataTable NewTable
Thursday, December 24, 2009
Changing Table Layout panel control dynamically at runtime
Change Column span and Row Span for a control in a tablelayoutpanel at runtime...
TableLayoutPanel1.SetRowSpan(TextBox1, 2)
TableLayoutPanel1.SetColumnSpan(TextBox1, 2)
Change Column and row position of a control in a tablelayoutpanel at runtime...TableLayoutPanel1.SetColumnSpan(TextBox1, 2)
TableLayoutPanel1.SetRow(TextBox1, 2)
TableLayoutPanel1.SetColumn(TextBox1, 2)
TableLayoutPanel1.SetColumn(TextBox1, 2)
Subscribe to:
Posts (Atom)