1
I Use This!
Inactive

News

Analyzed 15 days ago. based on code collected 15 days ago.
Posted about 13 years ago by James Craig
1) Moved a couple of enums. 2) Added equality operator to Set. 3) Added less than and greater than operators to ObjectBaseClass. 4) Modified a numbre of attributes so that their types are read only.
Posted about 13 years ago by James Craig
1) Modified a number of items to use interfaces/base classes instead of concrete classes.
Posted about 13 years ago by JW7965
Awesome, the rest of the @using is what I was missing. Thanks! At least I had 2 out of 3 right (I had the FirstDay and IsNull nailed) so thx for the confirmation. Comment for other WebMatrix users - the System.Security.Cryptography seems to be ... [More] not available in the Webmatrix environment. Thanks again for all your great help! And the Utilities. From: JaCraig Actually what you would want to do is add @using Utilities.DataTypes.ExtensionMethods (all of the extension methods are in one of the namespaces under Utilities and end in ExtensionMethods). For FirstDayOfWeek you would do: DateTime.Now.FirstDayOfWeek() And for IsNull, for any object that you want to check it would just be: MyObject.IsNull() [Less]
Posted about 13 years ago by JaCraig
Actually what you would want to do is add @using Utilities.DataTypes.ExtensionMethods (all of the extension methods are in one of the namespaces under Utilities and end in ExtensionMethods). For FirstDayOfWeek you would do: ... [More] DateTime.Now.FirstDayOfWeek() And for IsNull, for any object that you want to check it would just be: MyObject.IsNull() [Less]
Posted about 13 years ago by James Craig
1) Fixed an issue with the naming of ToSQLDbType. 2) Fixed a number of exceptions that were thrown (replaced a number of NullReferenceExceptions with InvalidOperation, etc). 3) Fixed a couple of Streams where Close was being called when it wasn't ... [More] necessary. 4) Fixed a couple naming and type issues to make most of the library CLS compliant (parts that aren't are marked as such). 5) Various other changes to bring code in line with FxCop suggestions. [Less]
Posted about 13 years ago by JW7965
Hi. Thanks for checking this out for me, and avoiding the family's list of 10 things to be done. Hope they are still talking to you. So, I'm fairly new to Webmatrix such that I still struggle with some new or complex things. I'm missing ... [More] something very fundamental wrto these Utilities. And I'm sure it will a "duh" when shown the solution. Could you please show me the code for 2 of your utilities: FirstDayOfWeek and IsNull. I have your Utilities.dll in my bin folder. And have added @using Utilities to my code. But I'm getting an error "Unknown" when I try to use either of these utilities. Thanks so much. From: JaCraig By the looks of it, from the testing that I've done, it's about the same as if you were doing MVC. So you should just be able, for any of the extension methods, just add the appropriate using statement. For the other items, you should just be able to create the object. There are a couple namespaces that wont work (couldn't get LDAP to work for instance) but most items should work. [Less]
Posted about 13 years ago by JaCraig
By the looks of it, from the testing that I've done, it's about the same as if you were doing MVC. So you should just be able, for any of the extension methods, just add the appropriate using statement. For the other items, you should just be able ... [More] to create the object. There are a couple namespaces that wont work (couldn't get LDAP to work for instance) but most items should work. [Less]
Posted about 13 years ago by JaCraig
I'm still looking into it. I'm already seeing what I can do to turn at least a portion of the code to a portable library so adding webmatrix to the list of things to test would actually be pretty easy... Now I just need a night when family isn't telling me that I have 10 things that need to get done...
Posted about 13 years ago by JW7965
> Thanks for the function, I'll give it a try. > I'm not sure it will work in Webmatrix but never know till one tries. > > If you are still up for checking to see if, and how, your Utilities work in Webmatrix I am still interested in ... [More] several other of your utility functions. > Thanks again, Jack. > > From: JaCraig > > If that's what you're trying to do, then what you actually want is to use a function like this: > private static string CreateSalt(int size) > { > //Generate a cryptographic random number. > RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); > byte[] buff = new byte[size]; > rng.GetBytes(buff); > > // Return a Base64 string representation of the random number. > return Convert.ToBase64String(buff); > } > Which I got from here: http://stackoverflow.com/questions/2138429/hash-and-salt-passwords-in-c-sharp. But basically you want to use the RNGCryptoServiceProvider class which is in the System.Security.Cryptography namespace. It creates a strong salt where as my random functions would not. Mine are more if you were looking to fill a database with random values for testing, etc. > > Read the full discussion online. [Less]
Posted about 13 years ago by JaCraig
If that's what you're trying to do, then what you actually want is to use a function like this:   private static string CreateSalt(int size) { //Generate a cryptographic random number. RNGCryptoServiceProvider rng = new ... [More] RNGCryptoServiceProvider(); byte[] buff = new byte[size]; rng.GetBytes(buff); // Return a Base64 string representation of the random number. return Convert.ToBase64String(buff); } Which I got from here: http://stackoverflow.com/questions/2138429/hash-and-salt-passwords-in-c-sharp. But basically you want to use the RNGCryptoServiceProvider class which is in the System.Security.Cryptography namespace. It creates a strong salt where as my random functions would not. Mine are more if you were looking to fill a database with random values for testing, etc. [Less]