Multiple Monitor/Screen Information Example

by Brian on March 20, 2010

Microsoft made it very simple to get information about the displays available to Windows with the Screen class in Windows Forms. Using this class you can identify the primary screen, and get properties like size from any display device.

Screenshot of monitor/display information sample. Try it with multiple=

For anyone developing an application which supports multiple monitors the Screen.Bounds property may be useful in finding screen offsets. If you have multiple monitors attached try the Get Current Screen Info button on your secondary display.

Download the C# sample code and binaries to explore further. Like all good API examples I have omitted error handling ;)

{ Comments on this entry are closed }

Looking forward to PyCon 2010!

by Brian on February 17, 2010

On Thursday I’m making the yearly pilgrimage to PyCon in Atlanta. This will be my third year and I’m sure it’ll be better than ever.

For me the real highlights of this conference are the legendary open space sessions. The level of interaction and learning at these really sets it apart from other conferences. Last year I attended a number of crackers including one on Cassandra and big data scalability with Jonathan Ellis. It’s great to see that Jonathan is delivering a scheduled talk on database scalability, and I’m sure there will be a fair number of open space sessions dedicated to NoSQL databases.

Looking at the 2010 schedule these are my other top picks:

  1. Deployment, development, packaging, and a little bit of the cloud (Ian Bicking)
  2. Powerful Pythonic Patterns (Alex Martelli)
  3. Understanding the Python GIL (David Beazley)
  4. Mastering Team Play: Four powerful examples of composing Python tools (Raymond Hettinger)
  5. Unladen Swallow: fewer coconuts, faster Python (Collin Winter)

I’ll have my camera with me again this year so watch out for pics under the pycon and pycon2010 tags on Flickr.

{ Comments on this entry are closed }

Twitter to blog script

May 24, 2009

Based on an example provided with the Twitter library for Python I cobbled together the following script to add my latest tweets to this site. It’s called from a cron job that I run on an occasional basis. My script linkifies hashtags and @username tokens in tweets so that you can see search results or [...]

Read the full article →

Keeping files in sync with Dropbox

May 23, 2009

When you use more than one computer on a daily basis, keeping files in sync between them is a constant problem. I’m familiar with tools like Subversion and Mercurial that make it relatively easy to keep code in sync between machines, but these require explicit actions that I often want to control. When it comes [...]

Read the full article →

Get fast computers for your developers

March 8, 2009

I’ve just been through an office move at a client site and packing it up got me thinking about the choices that companies make for their staff when it comes to computer hardware. Most users can benefit in some way from having faster computers, with bigger screens, and better input peripherals. Corporations have a tendency [...]

Read the full article →

Essential Utility: htop

February 8, 2009

I’ve been rebuilding my Dell PowerEdge 830 server after a meltdown last week. This time I decided to go with Ubuntu Server 8.10 as the base operating system with Windows running under VMware Server 2.0.
Since this is a pretty small server, I’m always checking up on resource usage and top is a useful tool for [...]

Read the full article →