This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static T GetValue<T>(this DataRow row, string field) | |
{ | |
if (!row.Table.Columns.Contains(field)) | |
{ | |
return default(T); | |
} | |
else | |
{ | |
return (T)Convert.ChangeType(row[field].ToString(), typeof(T)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
StarHScale a Horizontal slider that uses stars | |
Copyright (C) 2006 Mark Mruss <selsine@gmail.com> | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String GetUrl(String url) throws Exception | |
{ | |
URL serverAddress = null; | |
HttpURLConnection connection = null; | |
// OutputStreamWriter wr = null; | |
BufferedReader rd = null; | |
StringBuilder sb = null; | |
String line = null; | |
try |
NewerOlder