Topic: Hey, if it's good enough for Stargate...  (Read 6039 times)

0 Members and 1 Guest are viewing this topic.

Toasty0

  • Guest
Hey, if it's good enough for Stargate...
« 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  

vsfedwards

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #1 on: November 30, 2003, 09:16:07 am »
c#takemeto[px918m3]

wow it really works!!!

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #2 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.

   

jualdeaux

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #3 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?  

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #4 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  
« Last Edit: November 30, 2003, 09:11:06 pm by Toasty0 »

Malystryx_XC

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #5 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?

Scott Allen Abfalter

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #6 on: December 01, 2003, 01:58:50 pm »

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

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #7 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    

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #8 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?  

Toasty0

  • Guest
Hey, if it's good enough for Stargate...
« Reply #9 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  

vsfedwards

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #10 on: November 30, 2003, 09:16:07 am »
c#takemeto[px918m3]

wow it really works!!!

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #11 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.

   

jualdeaux

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #12 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?  

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #13 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  
« Last Edit: November 30, 2003, 09:11:06 pm by Toasty0 »

Malystryx_XC

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #14 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?

Scott Allen Abfalter

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #15 on: December 01, 2003, 01:58:50 pm »

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

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #16 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    

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #17 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?  

Toasty0

  • Guest
Hey, if it's good enough for Stargate...
« Reply #18 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  

vsfedwards

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #19 on: November 30, 2003, 09:16:07 am »
c#takemeto[px918m3]

wow it really works!!!

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #20 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.

   

jualdeaux

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #21 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?  

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #22 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  
« Last Edit: November 30, 2003, 09:11:06 pm by Toasty0 »

Malystryx_XC

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #23 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?

Scott Allen Abfalter

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #24 on: December 01, 2003, 01:58:50 pm »

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

Toasty0

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #25 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    

IKV Nemesis D7L

  • Guest
Re: Hey, if it's good enough for Stargate...
« Reply #26 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?