Infarction 503 Posting Virtuoso

Red for me. And price doesn't always correlate with quality. There's some cheap wines that are quite good; it's finding them that can be the issue... ;)

Infarction 503 Posting Virtuoso

DHMO is not quite as bad as hydroxic acid, which is like everywhere...

Infarction 503 Posting Virtuoso

it's not just the empty campaign promises, it's stretching the rules for themselves, voting dishonestly, and funneling extra funds for their own "needs" as well

Infarction 503 Posting Virtuoso

I'd go with the politicians over corporate leaders. If the C*O/VP/P of a company fails to pull something off, there's a huge mess for the company and a smaller severance package for the ex-corporate officer. Politicians on the other hand just pull stuff off and get away with it almost all the time.

Infarction 503 Posting Virtuoso

President Bush may not know how to pronounce "nukilar" correctly, but he knew all about carbondioxide net usage of the USA, in contrast to Al Gore.

:D Finally, I've found someone who understands...

There's also potentially severe economic affects that may have come into play by signing the Kyoto Protocol... or so I've heard...

Infarction 503 Posting Virtuoso

I'd recommend seeing an optometrist, as they'd have a more educated answer than what you'd get here...

Infarction 503 Posting Virtuoso

3.5 is to 3 what 1.1 was to 1

That's usually the idea behind a minor version number, yes...

Infarction 503 Posting Virtuoso

Drinking a rusty nail again... my, how I do like these...

Infarction 503 Posting Virtuoso

Interacting with IE through another app requires that you control it through a provided API. For most Microsoft products (e.g. IE), they support Microsft Active Accessibilty (MSAA) (and here is another link). I don't know how well it supports manipulating HTML controls inside of the browser though. I think it might be possible through an IHTMLDocument but I honestly don't know how to get or use one.

Infarction 503 Posting Virtuoso

Use XLINQ it'd help you a lot..

Most people don't have support for that yet ;)

If you're using ASP.NET, you'll likely want a GridView for your table, and an XmlDataSource for getting your data. If your data format doesn't line up well with how the XmlDataSource pulls it out by default, you can either create an XSL to convert between the XML and how it gets displayed, or you can write some XPath queries to build a data set programmatically and then bind to that. If by chance your server does support C# 3.0, then you should consider XLINQ.

Infarction 503 Posting Virtuoso

3.0 and 3.5 are basically extensions to 2.0. There's several new language features (LINQ being my favorite so far) that change the language a bit, but it's a good change :)

Infarction 503 Posting Virtuoso

I currently have 2 credit cards, one of which I make nearly all my purchases on (though it's always backed up from my checking account so I'm never in debt), and one which I never use and should cancel. I'm looking to maybe get a different one though...

Infarction 503 Posting Virtuoso

I figured we had more hard core halo3 players than this. =\
Maybe not the best place for this poll.

> I'll be paying $25 for a team tournament towards the end of the month. It is for charity though...
that's awesome. $25? You get food or anything?

I don't know yet, but probably not. I think the format is going to be a couple games after work through a whole week or something, so getting food and drinks every day would eat up a bit of the donations...

Infarction 503 Posting Virtuoso

I'll be paying $25 for a team tournament towards the end of the month. It is for charity though...

Infarction 503 Posting Virtuoso

Visual Web Developer is for making websites. If you want to make VB apps, use the VB development environment.

Infarction 503 Posting Virtuoso

Assuming that your button is on one page and you want to link to another, you can just set the PostBackUrl attribute to your destination:

<asp:Button ID="Button1" runat="server" PostBackUrl="someotherpage.aspx" Text="foo" />
Infarction 503 Posting Virtuoso

It's good enough that my co-workers and I stay up too late playing it... :P

Infarction 503 Posting Virtuoso

I think you might have to do something about taking the repeater and finding the label in its children or something... I had a problem like this once, but I don't quite remember what I did...

Infarction 503 Posting Virtuoso

I don't understand the fuss about "omg tables will kill you in the middle of hte night" either, but whatever. If they work, they work. It's probably a lot easier to code a WYSIWYG editor that uses tables rather than one using divs, too, so a lot of those will probably tend towards tables. Both tables and divs can be a pain, and both can help make a job easier. And when the benefit is bragging rights and the cost is developer time, I'd guess most employers will vote for the quicker one...

Infarction 503 Posting Virtuoso

Option 2, closing after the last query for the page load (which may be automatic anyways, when everything is GC'ed). The overhead of opening and closing the connections for a single load will always be more than keeping an idle connection for processing 1 request. If you want to keep it around longer than that, there may be security ramifications, as AD suggested.

Infarction 503 Posting Virtuoso

Look into the DragPanel control offered in the AJAX Control Toolkit

Infarction 503 Posting Virtuoso

ah, but what's a "C++ game"?
You kids assume it's a game written in C++, but is it? Sounds more like a game which has C++ as the topic/storyline to me, and I don't think that would make for a good game.

It probably wouldn't sell very well (quest 3: hunt down the NULL pointer?), but games like that might be good for kids who are interested in programming... :P

Infarction 503 Posting Virtuoso

user32.dll brings tears of joy to my eyes...

sorry, couldn't help it :P

Aia commented: A library is a library. +4
Infarction 503 Posting Virtuoso

I think most browsers still execute the page unload event when you close them. You can always try it and see how it goes ;)

Infarction 503 Posting Virtuoso

Here's 2 sample ways to do it (I used two tables, each of which have a PK and either an int or an nvarchar column):
1) Have several INSERT commands that, when the form is submitted, each pick out their own data from the form and submit them. The code would look something like this:

protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack) // form submitted
        {
            SqlConnection sc = null;
            SqlCommand command = null;
            try
            {
                sc = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\inetpub\wwwroot\foo\App_Data\Database.mdf;Integrated Security=True;User Instance=True");
                sc.Open();
                string query1 = String.Format(@"INSERT INTO Numbers(number) VALUES({0})",
                                    numberInput.Text);
                command = new SqlCommand(query1, sc);
                command.ExecuteNonQuery();
                string query2 = String.Format(@"INSERT INTO Strings(string) VALUES('{0}')",
                                    stringInput.Text);
                command = new SqlCommand(query2, sc);
                command.ExecuteNonQuery();
            }
            finally // clean up
            {
                if(command != null)
                    command.Dispose();
                if(sc != null)
                    sc.Close();
            }
        }
    }

2) Have a stored procedure in the database that does all the inserts for you. The code would look kind of like this:
C#:

protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack) // form submitted
        {
            SqlConnection sc = null;
            SqlCommand command = null;
            try
            {
                sc = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\inetpub\wwwroot\foo\App_Data\Database.mdf;Integrated Security=True;User Instance=True");
                sc.Open();
                command = new SqlCommand("InsertData", sc);
                command.CommandType = CommandType.StoredProcedure;
                command.Parameters.AddWithValue("@number", numberInput.Text);
                command.Parameters.AddWithValue("@string", stringInput.Text);
                command.ExecuteNonQuery();
            }
            finally // clean up
            {
                if(command != null)
                    command.Dispose();
                if(sc != null)
                    sc.Close();
            }
        }
    }

SQL:

CREATE PROCEDURE dbo.InsertData
    (
    @number INT,
    @string NVARCHAR(50)
    )
AS
    INSERT INTO Numbers(number)
        VALUES(@number);
        
    INSERT INTO Strings(string)
        VALUES(@string);
        
    RETURN

Note that I didn't validate my data in either of these. Also, …

Infarction 503 Posting Virtuoso

It looked pretty good on the projector at work... :P

Infarction 503 Posting Virtuoso

Interestingly enough, Mike chose to drop that little bit of footage from production...

More like, only to be expected...

Infarction 503 Posting Virtuoso

I wouldn't talk bad about any draft dodger unless I got drafted and entered the military (or if I was in the military anyway). I completely disagree with the Vietnam War (or would have, had I lived at that time) and I wouldn't fight for an unjust cause. I'm also not too fond of this war. Had it been a situation like WWII, I would fight. Even the Persian Gulf war I would be willing to fight in. I don't think it's fair to force someone to risk their life when 1) they don't agree with the reasons for the war and 2) they still aren't considered responsible enough to drink yet they are responsible enough to be killed for their country. Draft the Bush daughters and let's see who the real draft dodgers are. For that matter any child of a congressman. They would be sure to change their minds about the war.

Given that there hasn't been a draft for Iraq, was there a point to your post?

Infarction 503 Posting Virtuoso

What i dont get is why the hell the american public voted for him TWICE!!!!

Because the alternatives were worse... TWICE!!!!

And now Hillary's running... *shudder*

Infarction 503 Posting Virtuoso

At the first question I realized what kind of stupid quiz it was. So I figured what the hell....

Your score is 10 on a scale of 1 to 10. You are a True Believer in President Bush. Your loyalty and devotion to him is matched only by your desire to see his liberal detractors locked away and declared enemy combatants. Given the chance, you'd gladly vote Bush a third term, and if America were so blessed, you'd be perfectly content if Bush were president for life.

Infarction 503 Posting Virtuoso

Only noobs start threads about their own birthdays...


Happy B-day anyways :P

Infarction 503 Posting Virtuoso

ROFL!!! I love it!! I don't have any pics of my stuff, but I guess I'll have to get off my lazy butt and post 'em...I think I'm gonna have to copy your idea with the binary scarf...
btw...does the binary in your scarf stand for anything? Think of the fun you could have making a scarf that said "up yours" or something in binary...:P

Mine's the binary machine code for the exploit string mentioned in Aleph One's article Smashing the Stack for Fun and Profit. +10 to geek. I'm planning to do another (less geeky scarf) where it's white or cream and a bamboo branch down the middle, but I think I'm gonna hold off on that for a little while and stick to a few simpler things...

*EDIT* Just noticed the computer case in one of your pics...it looks like you have the same exact case as one of my computers... :)

Heh, that's my scrap heap. There's a mobo and 2 wifi cards that don't really work, and maybe a stick of RAM, but no CPU or anything else. I'm just too lazy to junk it :D

Infarction 503 Posting Virtuoso

Is anyone here going to get it at one of the midnight things?

I was thinking I'd drop in and get a copy in the afternoon, when the lines are shorter... :P

Infarction 503 Posting Virtuoso

I gave in and bought an Elite... at least I shouldn't need to upgrade for a little while... :P

On the other hand, I'll probably not be buying a TV soon... thank god for VGA output

Infarction 503 Posting Virtuoso

I do some knitting occasionally...(NO!! I'm not gay!! haha) I have a sweater that I knitted myself and it's Very comfortable...

I also knit (started in April). It's really a good way to do nothing productively. Well, I guess it's not really doing nothing, but I like it anyways. I just finished my second project, which is totally awesome (pics).

Infarction 503 Posting Virtuoso

yeah, I'd rather it was built in though. How well does the 20GB last? I don't really want to get the Elite if I don't have to, but I don't want to be running out of space after only a few games...

Infarction 503 Posting Virtuoso

Just wondering if any of you do some sort of artsy or crafty stuff in your free time. I know some of you never leave the computer (jbennet, I'm talking to you :P) so you might not have much to say, but I figured it might make for a fun topic...

Infarction 503 Posting Virtuoso

I'll either have pasta or leftover pizza for dinner. And probably some Scotch afterwards, though maybe Vodka+lemonade...

Infarction 503 Posting Virtuoso

I actually found the Halo controls to be very easy to pick up when I first tried it. And the game is pretty fun. As for how to aim? Well, since you can't use an aimbot, you just have to be good :P

I'm even thinking about buying an Xbox360 mainly for Halo 3. If only they played HD-DVD, I'd have one tomorrow... well, I still might, but I have to think about it more :P

Infarction 503 Posting Virtuoso

Would using the TextChanged event for your input fields work?

Infarction 503 Posting Virtuoso

I recommend you read my previous post. There aren't any books like Building A Forum For Dummies because there's already a ton of forum software out there, and likely most of them are better tested and packaged than what you'll be making. So, you'll have to do it from scratch. You need to decide how to model your data, make the database, and then build your interface to it.

Infarction 503 Posting Virtuoso

foo is a value to compare against. You'll want to replace it with whatever value you have, and other values with else if statements. And I'm totally out of the habit of writing code. Those should be DropDownList.SelectedValue.Equals("foo") rather than using == and = :icon_redface:

Infarction 503 Posting Virtuoso

Using the AutoPostBack, check the value of the drop down box. Something like this:

protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack)
        {
            if (DropDownList1.SelectedValue == "foo")
                Response.Redirect("somepage.aspx");
        }
    }

Or, if you use VB:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Page.IsPostBack Then
            If DropDownList1.SelectedValue = "foo" Then
                Response.Redirect("somepage.aspx")
            End If
        End If
    End Sub
Infarction 503 Posting Virtuoso

Couple notes:
1) C++ and C# are almost completely unrelated.
2) C# and VB are equally suited for web development with ASP.NET.
3) You can learn C# and ASP.NET side by side. Of course, you'll only be using a small part of what C# can do, but not bad at all.
3) For using AJAX, look into the toolkit (found somewhere on http://asp.net/ajax) or wait for the next VS release (which will include AJAX).
4) If you're just looking for a collaborative management site, you might consider looking at Sharepoint (Windows Server 2003 required I think...).

Infarction 503 Posting Virtuoso

Creating a forum sounds like a fun project. I've not tried it myself, though I've thought about it several times. It'll be a bit of work though...

You'll need to decide how to structure your database. You'll need data for users, forums (and subforums), threads, and posts. The last 2 could be combined if you're clever about it (I think... like I said, I haven't tried). Getting that to work right is possibly the harder part.

After that, you can probably use a few data controls to render the data to the user. I'm still pretty new to ASP too, so I have no idea what control might be easiest...

Infarction 503 Posting Virtuoso

Why not run the query and see what it does? My guess would be that it basically makes a copy of table1 and saves it to table2.

Sulley's Boo commented: riiiiiiiiiiiiiiiight! +3
Infarction 503 Posting Virtuoso

There shouldn't be a problem with the two versions. The Visual Studio group does side-by-side testing of their releases to make sure the new one won't break the old one, and they usually cover most any situation you'd think of. I don't think there's much testing between 2003 and 2008 though, for when the new release comes out.

Infarction 503 Posting Virtuoso

For limiting the files, you could check to make sure that the extensions are within a certain list (e.g. .pdf, .xls, .xlsx, .doc, .docx) and only upload ones that match. Note, this will only work based on extension, not actual data.

For the anti-virus, you might be able to tell it to scan the files as soon as they finish uploading. See if your AV has a command line interface you could execute.

Sorry, I don't know the details of how to implement either of these yet. The first one should be fairly easy to find on google though...

Infarction 503 Posting Virtuoso

That's going to depend on the router, and - I'm guessing - would be difficult at best with those languages. If a router had a web-based interface, you could scrape the data, but that'll be a small portion of routers (might serve though). More likely you may have to automate a telnet/<remote access of choice> session to gather the data, and scrape that.

Infarction 503 Posting Virtuoso

xkcd rocks...


so I say while wearing one of their shirts... :P