pseudorandom21 166 Practically a Posting Shark

I bought a book on C# and read most of it one day, the knowledge seemed to sort of sink in once I wanted to use C# for some small projects.

pseudorandom21 166 Practically a Posting Shark

oh sure let me get right on that, just for you bro!

pseudorandom21 166 Practically a Posting Shark

This is my first time trying to use a web API with C#, a friend asked me to make him a simple remote control app. I don't really know where to begin, I'm thinking I can create a
WebRequest filled with the proper info, is this going to work?

A demo of it can be found here: http://gamecp.com/?key=demo
and some API doc here: http://wiki.gamecp.com/API_Index

pseudorandom21 166 Practically a Posting Shark

Bill Gates money: school computers in African bush villages without electricity
Michael Jordan money: 200mph capable Ferrari stuck in an LA traffic jam

Both actual, Bill Gates donates a lot of money to organisations buying computers and medical supplies for developing countries, Jordan spends it all on expensive toys for himself...

One could also argue there is a significant difference between being richer than god (gates) and a pro. athlete.

Gates funds exhibit A: http://www.templetons.com/brad/billchart.gif
Gates funds exhibit B: http://www.cartoonstock.com/lowres/jkn0075l.jpg

Jordan funds exhibit C: http://www.cartoonstock.com/lowres/hsc1004l.jpg
Jordan funds exhibit D: http://lh4.ggpht.com/_WJylQZPr0k8/TFJbC2aeCjI/AAAAAAAADCc/3friffl5b9o/s1600/Rich%20Bill%20Gates.jpg

most important is exhibits A, and D.

Also, exhibit D should satisfy your request.

pseudorandom21 166 Practically a Posting Shark

You could find some open source project that sucks and improve it.
www.sourceforge.net

pseudorandom21 166 Practically a Posting Shark

Damn! I have to go back and visit Australia again. I visited in 84 and met cyclone Munie while on Green Island. The ride back to Cairns was FUN - 14 foot seas on a trimaran, it was like riding a bucking bronco. Got to hold 'the koala bear' for about 15 minutes while the zoo-keeper went to the loo. Koalas are not soft and furry; they are furry but are solid muscle.

but I digress - I like bananas and will miss them when they are gone.

Most animals are solid muscle, and so much badder than any human--that's why it sucks so bad to get attacked by anything, even a dog.

pseudorandom21 166 Practically a Posting Shark

But then what will the monkeys eat?

pseudorandom21 166 Practically a Posting Shark

Sorry, I found the solution. I wasn't thinking and was looking in the wrong place for the answer.
Visual Studio created this:

tblPetBreedsBindingSource.Filter = "TypeOfPet='" + this.listBox1.SelectedValue.ToString() + "'";

and it obviously has a Filter property.

pseudorandom21 166 Practically a Posting Shark

I have a database bound to a listbox but I would like to view only certain items, how to do that?

It sounds like a really simple task but I don't know how to do it.

pseudorandom21 166 Practically a Posting Shark

and most likely you'll then never be able to play it again without that hack as Steam has a tendency to lock things to the system it was first used on, which would be registered as an Oz based machine.

I don't think that's accurate and I'm willing to bet on it.
Also, just got done playing some skyrim--pretty, pretty good.

pseudorandom21 166 Practically a Posting Shark

Yeah I never google anything, just spout random crap at times (as long as it doesn't matter anyway).

pseudorandom21 166 Practically a Posting Shark

If you're like me and enjoy Steam's service (not having to mess with DVDs and CDs),
you may have purchased Skyrim through steam.

Now if you're in the Americas and this category fits yourself, you might like to know all you need is an IP in a different country to play the game a few hours before it's official U.S. release date.

Now, once you've preloaded the game as I have, it's sitting on your hard drive in encrypted form yet still unplayable?

Not so if you're lucky enough to be a subscriber to a quality VPN service!

Needless to say this is a simple "tip", connect to a server in Australia/New Zealand and you can play the game at 7:00AM Central time, 20 minutes from this post. Some benefit if you've time in the morning, rather than at 11 or 12 PM at night (it's official U.S. release date).

I hope I've alleviated a bit of asinine boredom this evening/morning/afternoon for at least some Skyrim players.

My apologies if you should think this isn't Daniweb geek's lounge worthy.

pseudorandom21 166 Practically a Posting Shark

=D I'm glad someone enjoys quality input devices @jwenting.

I'm rocking...
Logitech G500 mouse
Logitech K350 keyboard (has a nice leather padded wrist-rest too)
Logitech G13 (previously discussed)
Microsoft Xbox 360 controller
Rii mini wireless keyboard (has a touchpad and decent lighted keyboard, very useful for netflix)

pseudorandom21 166 Practically a Posting Shark

//Also you shouldn't use "exit" in a C++ program, because it may cause destructors to not be called.
This probably isn't true anymore, but normally it isn't excusable to use exit() anywhere except the main function, instead you might want to throw an exception and then the caller can elect to handle it, or not (terminate the program).


"endl" does more than insert a newline, it also flushes the buffer. If you need to optimize such a trivial program, well.. There must be something unseen happening.

If you just want it to be easier to work with declare constants for array sizes and decompose it into more functions.

pseudorandom21 166 Practically a Posting Shark

Change endl to "\n" and work on your indentation instead of optimization.

pseudorandom21 166 Practically a Posting Shark
pseudorandom21 166 Practically a Posting Shark

Yeah, they definitely aren't up to spec with most enthusiast builds, but they are easily comparable to any computer you would find under $1k at a retail store.

Except they're made to run Mac OS and Mac OS sucks, try maximizing a window or playing Quake III on it. Better forget your hopes and dreams of eye-bleeding graphics in video games and buy the console Microsoft made for you people.

Also, lolol try maximizing a window or tell me about your file system?

jingda commented: Mac OS is mac os not Mac OSX! +0
pseudorandom21 166 Practically a Posting Shark

One of the things I've noticed that you don't run into with school work or working on your own projects...

Particularly in the case of older-aged employees--they may have a problem but not have a clue in the world about how to explain it to you. Normally they might ramble on and on about irrelevant details and the only part of concern is a few words out of it.

Now you may be tempted to try to come up with something using this limited knowledge of the problem (and the solution), but don't do it! It is imperative that you squeeze the information out of them somehow, otherwise it just won't be possible to do it right and it could make you look bad. Make sure you get the information you need!

Hope it helps, lol.

pseudorandom21 166 Practically a Posting Shark

awesome!
how did you get the offer anyway?

pseudorandom21 166 Practically a Posting Shark

"To paraphrase the bumper sticker:
If the US doesn't have these WMDs, only our enemies will have them. "

Only because international politics is such a mess, I realize weapons are necessary under anarchy (international relations) but I'm not happy about it. And considering that the US is still the only country to use the atomic bomb and they did it twice (the second time for no good reason) I'm not fully convinced only the enemies of the US having them is such a bad thing....

I don't agree with that, so long as American politicians don't sink as low as most of the braying idiots talking about "pulling the troops out and making a lake afghanistan with nuclear weapons". I've heard the same idea more than once from a group of idiots, "pull troops out" and "lake afghanistan" seem to be the most prominent ideas amongst them.

pseudorandom21 166 Practically a Posting Shark

>> no, the point (utterly lost on you, as predicted no doubt) is to show that anything can be turned into a weapon to kill people.

I'm well aware of that argument and can follow it. It's not "lost on me". MY point is that he didn't actually MAKE a point, he just lazily posted a link that we've all read before. It added nothing to the discussion.


>> According to your logic all those should therefore be banned.

Straw man argument. I never made that argument or anything approaching it. I certainly don't think that. I never said we shouldn't sell stuff that a skilled (or perhaps even a semi-skilled) person can turn into a weapon. Obviously you need to be able to buy fertilizer. My point is 1) most people could never have pulled off what McVeigh pulled off. Most homemade bombs fail to detonate. 2) The vast majority of people can't turn a semi-automatic weapon into an automatic weapon. Certainly there are people who CAN do it. 3) If they were legal, guys like Harris and Cho would have bought them and killed way more people.

So yes, anything can be turned into a weapon to kill people... if you're MacGyver. Fortunately most of these clowns aren't or we'd have far more dead people.

And no, no one kills over a hundred people with a NON-automatic weapon. I'd love to see a link of THAT.

Why the arbitrary sentinel value? I've not seen your argument …

pseudorandom21 166 Practically a Posting Shark

skyrim comes out 11/11/11 (8 days)
think I'm gonna get it

pseudorandom21 166 Practically a Posting Shark

it should accumulate and print the spaces all at once instead of one at a time.

pseudorandom21 166 Practically a Posting Shark

I think it's asking you to fix the loop such that it doesn't print multiple spaces here:

// are we on the border?
                if (r == 0 || r == rows - 1 ||
                    c == 0 || c == cols - 1)
                    cout << "*";
                else
                    cout << " ";
pseudorandom21 166 Practically a Posting Shark

This morning:


Now:


So one new person cast a vote .. and 28 posts went down. Someone had a busy morning :)

I suspect if this were looked in to you would find Rashakil Fol behind it. The number of unique down voters went up by one, and my negative posts went up by 28. Someone is digging up threads just to down vote them.

Interesting...
I saw a job on oDesk that gave the details of "automating a forum task" or something..
This may only be the beginning if such is the case, of course it's very likely it is unrelated but could also be very related.
:scared:

Nick Evan commented: This thread was dead for two years. +0
pseudorandom21 166 Practically a Posting Shark

http://www.cnn.com/video/#/video/politics/2011/11/01/pkg-moos-perry-loosey-goosey-giddy-new.cnn

This is hilarious (to me), but also potentially of concern for undecided voters or even Perry supporters, so I'd like to hear some feedback, what do you all think is going on with Rick Perry here?

pseudorandom21 166 Practically a Posting Shark

Is there any reason I'm missing as to why not many languages let a programmer create a table of constant information at compile time?

Something like:

public const Dictionary<string,decimal> SOME_DICT = new Dictionary<string,decimal>( 
{"A", 1.9}, 
{"B",2.3}, 
{"C", 4.4444} );
pseudorandom21 166 Practically a Posting Shark

but that's where the fun and tense roll over. Explore like nobody knows how to and you'll have either to pull out some stunts and bravery to move on or stay away from dangerous areas. Agree though walkthrough kill the mood. I only read it after finishing the entire game and gain some secrets from the game itself.

I don't think walkthroughs _always_ ruin the mood, sometimes I just don't enjoy the games little puzzles or I get lost and sometimes even a bug keeps me wandering around for waaay too long. I kind of like 'em sometimes.

pseudorandom21 166 Practically a Posting Shark

What is the equivalent of the "setw" stream manipulator for C++ in Java?

I've been messing with the java.util.formatter class, but haven't figured this out yet?
http://www.cplusplus.com/reference/iostream/manipulators/setw/

pseudorandom21 166 Practically a Posting Shark

Anyone here play Counter Strike online?

Do you mean 1.6 or CSS ?
Usually I stick with CSS beta.

pseudorandom21 166 Practically a Posting Shark

Yay no more food or computers or guns!

pseudorandom21 166 Practically a Posting Shark
pseudorandom21 166 Practically a Posting Shark

The hell you can't! It still doesn't change the fact that those people probably would have murdered others regardless of having guns.

They would probably have only ran out of ammo quicker, and you certainly didn't account for Dylan and Eric's fetish for bombs.

VernonDozier, have you ever even fired a gun? I'm sure you're aware of the concept of actually hitting the target with it.

http://www.acolumbinesite.com/weapon.html

pseudorandom21 166 Practically a Posting Shark

No I stand by my argument, even if you should decide to misinterpret it.
My question to you is, what are you worried about?

pseudorandom21 166 Practically a Posting Shark

I agree with you then, it's much more out-of-line than superficially appears.

Not to mention Bjarne Stroustrup's quote "Proof by analogy, is fraud." -Bjarne

pseudorandom21 166 Practically a Posting Shark

AgileMind, no. I spent about a half hour last night explaining my arguments to a friend of mine (anti-gun as he was) so I don't want to take the time to debate you.

But... What makes you think citizens would start killing people and owning sex-slaves because they have a bigger gun? It seems your vision of Americans consists of homicidal maniacs and psychopaths/criminals. That just isn't the case.

pseudorandom21 166 Practically a Posting Shark

I don't think taxing the rich more is wrong at all, particularly because some people are struggling to survive. It's like a mandatory conscience, instead of donating to a homeless shelter the government steals the money and then takes part of it, and gives the rest to the starving/homeless.

Could give tax breaks to the wealthy for donating to charity then?

pseudorandom21 166 Practically a Posting Shark

Sorry but you must not have read much of the text on this website at all.
Please read the rules before posting.

pseudorandom21 166 Practically a Posting Shark

Many applications crash if you throw too much input at them fast enough.
Lol Windows (I had that happen on firefox one time, and other apps).

pseudorandom21 166 Practically a Posting Shark

I can see how a flintstone would think paying more in taxes would be ok...
Or perhaps you missed all the backlash about it making citizens pay more, and also specifically by taxing food and other products people need to survive.

Sure, give the federal government a bigger budget so they can line out all the problems right?

pseudorandom21 166 Practically a Posting Shark

I would like to use a machine gun to go bird hunting. We have blackbirds that fly in herds of thousands. A machine gun would be just the thing to break them up :)

lol a .22 machine-gun and shooting bird-shot would be fun.
http://www.cheaperthandirt.com/65126-5.html

pseudorandom21 166 Practically a Posting Shark

wtf?!?! what do you need a machine gun for?

Truthfully it's more about my right to own one than wanting/needing one.
You can get one now if you pay the tax (like $200 extra), but they stopped allowing in NEW machine guns, meaning all the existing ones are now worth like 10 grand a piece (at the minimum) and will only go up in value unless this is repealed. So basically people are just getting the shaft on them at the moment, but they're still available.
I would like to see a criminal pay 10 grand for one them (never going to happen), so why do regular joes get the shaft?

pseudorandom21 166 Practically a Posting Shark
std::string buffer;
std::getline(std::cin,buffer);
pseudorandom21 166 Practically a Posting Shark

I lol'd so hard, Rick Perry and Santorum were acting the fool as always.

pseudorandom21 166 Practically a Posting Shark

You can watch the CNN/Western Republican debate live on CNN.com right now.
I just find these events so hilarious, Perry just looked like an idiot and it looks like he's wearing makeup too.

pseudorandom21 166 Practically a Posting Shark

If you wish to use some of the classes in C# or another .NET language I might also suggest making a C++/CLI wrapper for them, and using it as a class library, also the project uses the boost library (C++) which you can find an installer for here:
http://www.boostpro.com/download/

The VS2010 solution file is also included on sourceforge so hopefully you can see how to use boost with Visual Studio (add the lib/include directories to the project settings).

and finally if you don't want to download all the files from sourceforge manually, a Windows SVN app I use is:
http://tortoisesvn.net/

with the SVN client you can clone the whole repository.

pseudorandom21 166 Practically a Posting Shark

Lol did I mention I made software for the xbox 360 controller to move the mouse and keyboard?

http://sourceforge.net/projects/xinmapper/files/

Heck you may want to use some of the code in your project.

pseudorandom21 166 Practically a Posting Shark

The gun law doesn't seem to be the issue, I support repealing the hughes amendment:
https://wwws.whitehouse.gov/petitions#!/petition/push-congress-repeal-hughes-amendment-fopa-and-nfa/FWXhjh9s

The man knew what he was doing, it's his fault.

Btw repealing the hughes amendment will make machine guns more affordable, currently you can get one but it will cost you thousands of dollars, which is stupid when criminals have them anyway.

pseudorandom21 166 Practically a Posting Shark

you check the least significant bit to determine if it's even or odd, because it's 2^0 = 1.

thus you can shift the bits the proper direction and determine if the bit is set or not.

in case bits were never described this way to you:
[ ] [ ] [ ] [ ]
we have four bits here, each with a value of:
[2^3] [2^2] [2^1] [2^0]

least sig. bit is set? value = 1.
lest sig. and 2^1 = 3.

for a byte this continues to 2^7.

pseudorandom21 166 Practically a Posting Shark

You have to admit though, it's a lot easier to lay in bed and use a gamepad.