Dynaverse.net

Off Topic => Ten Forward => Topic started by: Toasty0 on November 29, 2003, 11:05:10 pm

Title: Hey, if it's good enough for Stargate...
Post by: Toasty0 on November 29, 2003, 11:05:10 pm
...then it's good enough for me.

I think my fellow .Net coder will get a kick out of this. Enjoy.
http://blog.nonny.com/index.php?view=post&post=63

Best,
Jerry  
Title: Re: Hey, if it's good enough for Stargate...
Post by: vsfedwards on November 30, 2003, 09:16:07 am
c#takemeto[px918m3]

wow it really works!!!
Title: Re: Hey, if it's good enough for Stargate...
Post by: IKV Nemesis D7L on November 30, 2003, 08:13:51 pm
Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   
Title: Re: Hey, if it's good enough for Stargate...
Post by: jualdeaux on November 30, 2003, 08:27:42 pm
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




38 or so isn't it?  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Toasty0 on November 30, 2003, 09:10:19 pm
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Malystryx_XC on December 01, 2003, 01:31:19 pm
LOL...

Good find!  I remember the episode but I never payed too much attention to the code written on the board.  I'll have to go back and look for it the next time it airs!

I think maybe I should start learning C# to pick up on these things?
Title: Re: Hey, if it's good enough for Stargate...
Post by: Scott Allen Abfalter on December 01, 2003, 01:58:50 pm

That could be Java code, not just C#...  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Toasty0 on December 01, 2003, 05:19:05 pm
Quote:


That could be Java code, not just C#...  




That is as much Java code as the following:

Code:

{
         string ConnStr;
         string SQL;
         ConnStr =@"Data Source=YOURBrokenPuter//C#ROCKS;"+"database=pubs;integrated security=true";
         SqlConnection MySqlConn= new SqlConnection(ConnStr);
         MySqlConn.Open();
         try
         {
            SQL="byroyalty";
            SqlCommand MySqlCmd=new SqlCommand(SQL,MySqlConn);
            MySqlCmd.CommandType=CommandType.StoredProcedure;
            SqlParameter MySqlParam= new SqlParameter("@percentage", SqlDbType.Int);
            MySqlParam.Value=40;
            MySqlCmd.Parameters.Add(MySqlParam);
            SqlDataReader Reader;
            Reader= MySqlCmd.ExecuteReader();
            if (Reader.HasRows)
            {
               MyGrid.DataSource=Reader;
               MyGrid.DataBind();
            }
            else
            {
               Label Message = new Label();
               Message.Text="No rows to display";
               Page.Controls.Add(Message);
            }
         }
         finally
         {
            MySqlConn.Close();
         }
         // Put user code to initialize the page here
      }



It's C# code.

 

Best,
Jerry    
Title: Re: Hey, if it's good enough for Stargate...
Post by: IKV Nemesis D7L on December 01, 2003, 05:40:21 pm
Quote:

Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  




Crash?  
Title: Hey, if it's good enough for Stargate...
Post by: Toasty0 on November 29, 2003, 11:05:10 pm
...then it's good enough for me.

I think my fellow .Net coder will get a kick out of this. Enjoy.
http://blog.nonny.com/index.php?view=post&post=63

Best,
Jerry  
Title: Re: Hey, if it's good enough for Stargate...
Post by: vsfedwards on November 30, 2003, 09:16:07 am
c#takemeto[px918m3]

wow it really works!!!
Title: Re: Hey, if it's good enough for Stargate...
Post by: IKV Nemesis D7L on November 30, 2003, 08:13:51 pm
Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   
Title: Re: Hey, if it's good enough for Stargate...
Post by: jualdeaux on November 30, 2003, 08:27:42 pm
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




38 or so isn't it?  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Toasty0 on November 30, 2003, 09:10:19 pm
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Malystryx_XC on December 01, 2003, 01:31:19 pm
LOL...

Good find!  I remember the episode but I never payed too much attention to the code written on the board.  I'll have to go back and look for it the next time it airs!

I think maybe I should start learning C# to pick up on these things?
Title: Re: Hey, if it's good enough for Stargate...
Post by: Scott Allen Abfalter on December 01, 2003, 01:58:50 pm

That could be Java code, not just C#...  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Toasty0 on December 01, 2003, 05:19:05 pm
Quote:


That could be Java code, not just C#...  




That is as much Java code as the following:

Code:

{
         string ConnStr;
         string SQL;
         ConnStr =@"Data Source=YOURBrokenPuter//C#ROCKS;"+"database=pubs;integrated security=true";
         SqlConnection MySqlConn= new SqlConnection(ConnStr);
         MySqlConn.Open();
         try
         {
            SQL="byroyalty";
            SqlCommand MySqlCmd=new SqlCommand(SQL,MySqlConn);
            MySqlCmd.CommandType=CommandType.StoredProcedure;
            SqlParameter MySqlParam= new SqlParameter("@percentage", SqlDbType.Int);
            MySqlParam.Value=40;
            MySqlCmd.Parameters.Add(MySqlParam);
            SqlDataReader Reader;
            Reader= MySqlCmd.ExecuteReader();
            if (Reader.HasRows)
            {
               MyGrid.DataSource=Reader;
               MyGrid.DataBind();
            }
            else
            {
               Label Message = new Label();
               Message.Text="No rows to display";
               Page.Controls.Add(Message);
            }
         }
         finally
         {
            MySqlConn.Close();
         }
         // Put user code to initialize the page here
      }



It's C# code.

 

Best,
Jerry    
Title: Re: Hey, if it's good enough for Stargate...
Post by: IKV Nemesis D7L on December 01, 2003, 05:40:21 pm
Quote:

Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  




Crash?  
Title: Hey, if it's good enough for Stargate...
Post by: Toasty0 on November 29, 2003, 11:05:10 pm
...then it's good enough for me.

I think my fellow .Net coder will get a kick out of this. Enjoy.
http://blog.nonny.com/index.php?view=post&post=63

Best,
Jerry  
Title: Re: Hey, if it's good enough for Stargate...
Post by: vsfedwards on November 30, 2003, 09:16:07 am
c#takemeto[px918m3]

wow it really works!!!
Title: Re: Hey, if it's good enough for Stargate...
Post by: IKV Nemesis D7L on November 30, 2003, 08:13:51 pm
Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   
Title: Re: Hey, if it's good enough for Stargate...
Post by: jualdeaux on November 30, 2003, 08:27:42 pm
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




38 or so isn't it?  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Toasty0 on November 30, 2003, 09:10:19 pm
Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Malystryx_XC on December 01, 2003, 01:31:19 pm
LOL...

Good find!  I remember the episode but I never payed too much attention to the code written on the board.  I'll have to go back and look for it the next time it airs!

I think maybe I should start learning C# to pick up on these things?
Title: Re: Hey, if it's good enough for Stargate...
Post by: Scott Allen Abfalter on December 01, 2003, 01:58:50 pm

That could be Java code, not just C#...  
Title: Re: Hey, if it's good enough for Stargate...
Post by: Toasty0 on December 01, 2003, 05:19:05 pm
Quote:


That could be Java code, not just C#...  




That is as much Java code as the following:

Code:

{
         string ConnStr;
         string SQL;
         ConnStr =@"Data Source=YOURBrokenPuter//C#ROCKS;"+"database=pubs;integrated security=true";
         SqlConnection MySqlConn= new SqlConnection(ConnStr);
         MySqlConn.Open();
         try
         {
            SQL="byroyalty";
            SqlCommand MySqlCmd=new SqlCommand(SQL,MySqlConn);
            MySqlCmd.CommandType=CommandType.StoredProcedure;
            SqlParameter MySqlParam= new SqlParameter("@percentage", SqlDbType.Int);
            MySqlParam.Value=40;
            MySqlCmd.Parameters.Add(MySqlParam);
            SqlDataReader Reader;
            Reader= MySqlCmd.ExecuteReader();
            if (Reader.HasRows)
            {
               MyGrid.DataSource=Reader;
               MyGrid.DataBind();
            }
            else
            {
               Label Message = new Label();
               Message.Text="No rows to display";
               Page.Controls.Add(Message);
            }
         }
         finally
         {
            MySqlConn.Close();
         }
         // Put user code to initialize the page here
      }



It's C# code.

 

Best,
Jerry    
Title: Re: Hey, if it's good enough for Stargate...
Post by: IKV Nemesis D7L on December 01, 2003, 05:40:21 pm
Quote:

Quote:

Now we know the real reason the Stargate has a maximum up time of about 40 minutes.

   




hehehe...yeah, tis true. It only takes .Net 40 minutes to accomplish what it takes others days, weeks, months, and yes, even centuries to complete...

heheheheh  




Crash?