August 2004 - Posts

Got gmail weee

I just got a gmail account thanks to Greg Duncan (http://coolthingoftheday.blogspot.com/)
Time for testing :D:D

Happy netting,
Warnar Boekkooi

I HATE ASP

Ok i have one Small statment I Hate Bad writen Asp witch is only readable by the programmer who wrote it.
Second i hate to have to intergrate a ASP.NET system that i wrote into one of the 3 versions after that made me clear that all versions where about the same and finding out after making a great intergration into one version that the other two are totaly diffrend.

O yeah one last think ASP.NET is a 100000000000000000000000000000% better then ASP (this is a personal oppinion)

Happy Netting,
Warnar

Internal Compiler Error: stage 'BEGIN'

Strange error:
Internal Compiler Error: stage 'BEGIN'
and a lot more this because some enum i use the problem was that i typed Database.NameOfTheEnum.Option1 where Class was defined as Database.DB Class = new Database.DB()
But i didn't know that i just couldn't access a enum like that.
The way to access one is Database.DB.NameOfTheEnum.Option1 if you get my point hope you do.

Happy netting,
warnar

I have a new display

W00T i got a new display a Iiyama HM903DT B Vision master Pro 454.
It is great :) only bummer is that the USB hub on it is USB 1 and it dues not have a switch so you can switch between to pc because there is a way to get two pc connected to the display :))

Happy netting,
Warnar

CS1607: Assembly generation -- Referenced assembly 'DataBase' is a localized satellite assembly

Got the following error while working:
CS1607: Assembly generation -- Referenced assembly 'DataBase' is a localized satellite assembly

I was the [assembly: AssemblyCulture(””)] witch i had changed to [assembly: AssemblyCulture(”nl”)]

Happy netting,
warnar

Cool capture program

Hey all,

I found myself a great capture program called SnagIt (http://www.techsmith.com/).
It has some really cool options the best is the window capture then you can select the window witch you want to capture.

Later,
warnar

Password encoding

Here is the way i encode my passwords for the database:
System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Cryptography.RNGCryptoServiceProvider();
byte[] buff = new byte[16];
rng.GetBytes(buff);
string salt = Convert.ToBase64String(buff);
string encodeType = "SHA1"; //You can also use "MD5"
string pass = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile (salt + txtPass.Text, encodeType);

As you can see i use a new salt for every password but you can also just set a static salt :)

Happy netting,
Warnar

C# password generator function

Here is a password generator:
public static string CreateRandomPassword(int PasswordLength)
  {
   string _allowedChars = "
abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789!@$?";
   Byte[] randomBytes = new Byte[PasswordLength];
   char[] chars = new char[PasswordLength];
   int allowedCharCount = _allowedChars.Length;

   for(int i = 0;i<PasswordLength;i++)
   {
    chars[i] = _allowedChars[(int)randomBytes[i] % allowedCharCount];
   }

   return new string(chars);
  }

Happy netting,
warnar

Problems xp SP2

Hey all,

Just installed SP2 i have to say “I HATE THE SECURITY CENTER!!!”.
Got a error that i had the wrong kernel that was because i have a costum bootscreen also got the following error:

This was because i had Demon Tools running just rename atapi.sys when you get the error.

After installing i got this error on a old dos app:

Read this http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B324767

So what was so good about sp2 again??

Happy netting,
Warnar

Back from London

Hey all,

Just came back from London been there for about 5 days.
MY FEET HURT!!!!!
My god kewl city but my mom is like the giant tourist and want's to see everything but can't seem to read the signs.
The beer is like hell expencife but good.
Hilton was cool but i missed the internet connection :(
And one of the most importent things is THE CHICK LOOOOOOK GREAT!!!! men what they got walking there i almost god blinded :D
Any i'm back and that's about it.

Happy netting,
Warnar