Jump to content

  • Log In with Google      Sign In   
  • Create Account

benryves

Member Since 03 Sep 2003
Offline Last Active Dec 18 2014 10:53 AM

#4892556 Virginia Tech Shooting #2

Posted by benryves on 10 December 2011 - 11:02 AM

It's natural that area in general is sensitive to any kind of incident, but at same time it breeds culture of fear, especially given large scale automated reaction. How many similar incidents occur every day? It's similar to how airplane disasters come in bunches. For a week after a major airplane crash, there is a ton of media attention, it seems that every day another plane has an accident, while it's just media paying close attention to everyday incidents.

There's also the theory that if the media gives a lot of attention to one shooting it can trigger another one shortly after. (See Charlie Brooker's "Newswipe").


#4850468 [.net] System sound in Windows Forms (C++, Direct3D 9)

Posted by benryves on 17 August 2011 - 03:03 PM

If you set the Form's KeyPreview property to "true" it will receive KeyUp/KeyDown events before the control that has focus.


#4850321 [.net] System sound in Windows Forms (C++, Direct3D 9)

Posted by benryves on 17 August 2011 - 08:04 AM

If it works, I guess so. It does still seem like a bit of a hack to put the keyboard handling code for the form into a TreeView control, though!


#4848260 [.net] System sound in Windows Forms (C++, Direct3D 9)

Posted by benryves on 12 August 2011 - 09:26 AM

The TreeView control does not know how to handle WASD and so makes the default beep when it receives a key that it doesn't support. One way to work around this would be to set e.SuppressKeyPress = true; in your key event handler for each key you handle yourself (do not set it to true for keys you do not handle else those keys will stop working in the TreeView control).

A better way to handle key input may be to put the form in control. Ensure that the form gets a chance to receive keyboard events before the other controls claim them by setting the form's KeyPreview property to true. You can then handle the key events with the form's event handlers, rather than relying on a specific control (such as the TreeView control) being selected.


#4847449 Heeeeeeelp.

Posted by benryves on 10 August 2011 - 08:01 PM

No? No help? How saddening...

Using a descriptive title for the thread and waiting a bit longer would help, but do bear in mind that this is a website for game development, not general technical support...


#4843215 Predictions: Origin vs Steam

Posted by benryves on 01 August 2011 - 01:06 PM

I can't say I've ever seen steam use more than a few percent of my system resources, unless it was doing something like verifying cache or something.

This is when playing games, though I did once leave it running in the background and it started having a fight with CCC.exe pegging both at 50% CPU (I only have a Core 2 Duo). It may be hardware specific but if you search online for "set steam low priority" you'll find others with performance issues caused by Steam doing, well, whatever it's doing.

Adverts can be disabled, but I've only ever seen them come up after exiting a game, and they show interesting information.

Cheers, I have now switched them off. They usually pop up after signing in for me.

Besides, 9 times out of 10 you will have wanted those patches anyway, because they will have fixed some issue. Which is better, sitting there for a few minutes while a game 'finishes' its install by getting patched up with all the bug fixes, or losing a few hours of play-through due to some bug?

If it was just a few minutes, then fine, but a couple of hours is not my idea of fun. I'd rather save the time and download and install any patches manually as I have done with all my other games.

Seems really odd that some people would have such problems with it. What kind of system specs do you have? And is it a startup program for you? I've always kind of wondered if the resource problem some people see couldn't be related to Steam attempting to catch up on all its updating during a short time some people run it, vs it doing a tiny amount spread over the whole day for those of us who just leave it running.)

I do have a fairly vintage machine (2.13GHz Core 2 Duo, 2GB RAM, Radeon 5770) but if it can play the games fine I don't see why something like Steam should be an issue.

I think the up-to-dateness is kind of one of the main reasons why Steam exists. It can be annoying, yes, but ultimately it's for the good if you think about it. As for pop-ups, I only get the latest news and discounts when I first open the Steam window, which is perfectly fine as a) I like notifications about discounts and b) I can dismiss them all with a single click. Not sure, but I'd think these can be disabled in the preferences as well. About CPU usage: it's you. Mine's running at 0% stable. Perhaps try reinstalling?

I guess my main problem with Steam is that I don't particularly like its implementation - it seems like a decent enough idea (though I prefer to spend a little more and buy something physical - having the choice is good). This is why I get a bit irritated when a game purchased on disc requires Steam to install, launch and play it as I don't get that choice. Another competitor may force Steam to improve, though as I'm the only one here that seems to dislike it I think the problem is me, not Steam. :)


#4843137 Predictions: Origin vs Steam

Posted by benryves on 01 August 2011 - 08:55 AM

Steam is a pleasant and refined British Butler, quietly sitting in the background, working away on things for you, and waiting for you to ask something of it.

You must have a different Steam to me, then, as mine doesn't let me play games I installed from a disc until it has downloaded a few hundred megs worth of patches, pops up irritating adverts from time to time, consumes a frankly ridiculous amount of CPU time (>30%, affecting frame rates and load times until I manually set its process priority to Low) and generally gets in the way of launching and playing games.


#4840753 FPS GAMES SUCK!

Posted by benryves on 26 July 2011 - 01:26 PM

Rouge Warrior? Sounds like a game about make-up, not guns.

Anyhow, you didn't mention any of my particular favourite shooters - the DOOM and Quake series, Duke Nukem 3D, Shadow Warrior, Blood, or Prey. I'm really enjoying Duke Nukem Forever, too.


#4792375 [web] CSS is pi***ng me off!

Posted by benryves on 30 March 2011 - 04:58 PM

Are you in standards or quirks mode? (Do you have a sane doctype in your HTML?) In IE, if you bring up the developer tools (F12) does it say Standards or Quirks mode in the toolbar?

Most modern browsers are pretty consistent as long as you are in standards mode. In quirks mode, just about anything goes...


#4786450 [web] PHP warnings...

Posted by benryves on 16 March 2011 - 05:10 AM

The $_POST superglobal will only contain values of fields that have been POSTed to the page. To determine whether the values exist you can use isset:

if (isset($_POST['BtnSubmit'], $_POST['TxtFname'], $_POST['TxtPwd'])) {
    # BtnSubmit, TxtFname and TxtPwd have been submitted - try logging on.
}

Historically, register_globals would put any incoming variables (whether they come from $_SERVER, $_POST, $_GET etc) into their own variables (so you could access $_POST['TxtFname'] as $TextFname). This feature (which is a bit of a security hole) has been switched off by default for a while now, so $PHP_SELF should be $_SERVER['PHP_SELF'].


#4785918 Japan Nuclear Reactor

Posted by benryves on 14 March 2011 - 10:34 PM

A simplified explanation about what is going on can be found here. The site has an obvious pro-nuclear bias, but given the catastrophising in the general media it may provide a bit of balance.


#4784119 Need good free AntiVirus program.

Posted by benryves on 10 March 2011 - 02:35 PM

Microsoft Security Essentials doesn't seem too shabby.


#4778625 No pixel is an island...

Posted by benryves on 24 February 2011 - 02:50 PM

Get a really powerful magnet. The ones you use to clean tropical fish tanks are ideal. Hold it against the problem area for a few minutes.

It won't actually solve the problem but it does look fricking trippy. Probably doesn't work on modern flatscreens. What a loss to humanity that is.

The paths of the electrons from the electron guns to the glowing phosphor dots in the CRT are controlled by a pair of electromagnets (one for the X axis and one for the Y axis). Holding a magnet near the screen alters the path of the electrons, and can end up steering electrons intended to strike the red phosphor dots onto the green or blue phosphor dots, hence the physical distortion of the image and the crazy colours.

The shadow mask (which is intended to only let electrons from the red gun strike red phosphor dots, electrons from the green gun strike green phosphor dots and the electrons from the blue gun strike blue phosphor dots) is made of metal and can become magnetised by the presence of an external magnet, temporarily distorting the image. The degauss button produces an intense alternating magnetic field that demagnetises the shadow mask and undoes the effect. However, very strong magnets may physically distort the shadow mask, resulting in permanent damage. I wouldn't recommend holding a strong magnet near any monitor you're fond of.


#4778448 [web] Dragging a border

Posted by benryves on 24 February 2011 - 08:42 AM

Yes, this is possible with JavaScript. MooTools can make this pretty easy with its Drag.Move class.


#4777472 Help, browser is not parsing php file?

Posted by benryves on 22 February 2011 - 04:30 AM

If you're on Windows, I'd strongly recommend the Microsoft Web Platform Installer - it makes installing PHP a doddle.




PARTNERS