annoyance

What strategies have you used to improve build times on large projects?

I once worked on a C++ project that took about an hour and a half for a full rebuild. Small edit, build, test cycles took about 5 to 10 minutes. It was an unproductive nightmare. What is the worst build times you ever had to handle? What strategies have you used to improve build times on large projects? Update: How much do you think...

screenshot an application in python, regardless of what's in front of it

So I can use PIL to grab a screenshot of the desktop, and then use pywin32 to get its rectangle and crop out the part I want. However, if there's something in front of the window I want, it'll occlude the application I wanted a screenshot of. Is there any way to get what windows would say an application is currently displaying? It has th...

How to prevent Visual Studio from compiling solution after I exit debug mode?

Visual Studio builds the entire solution when I exit debug mode. This is very annoying as the solution contains 42 projects (ASP.NET MVC, IIS hosted WCF, Silverlight apps and others) and the build process locks Visual Studio for aprox. 30 seconds. What causes Visual Studio to do a full rebuild of the solution? Is there a setting that I...

Should loading/startup dialogs be locked on top?

Introduction I have been so annoyed by applications that have a startup dialog which is Always on Top configured. By start dialog I mean the annoying box that tells you what program you just opened (and probably opened on purpose so useless information), who the program is registered to (most likely you, more uselessness), and some oth...

Excel 2007 Visual Basic Editor: eats spaces, throws cursor around

I can't resolve this issue, I found a similar question here but: setting the workbook to Manual calculation (alt-m-x-m or alt-t-o>formulas) didn't work Setting editor options to disable: Auto syntax check & Background compile didn't work anybody have any idea how to fix this very annoying behaviour, I'm used to quickly pop up VBA (al...

Database vs Flat Text File: What are some technical reasons for choosing one over another when performance isn't an issue?

Hello All, I am having a problem in one of the teams that I am working in. One of the guys is a bit SQL happy in my opinion and wants to store the log information generated by a small python FTP downloader into a database, instead of just a nice formatted text file. Now its always been my opinion that a database should only be used if...

proliferation of rocket tray icons

Each time I run a test using TestDriven, it creates another "rocket" icon on my system tray. I have to manually do right-click Quit to get rid of them. How can I avoid this? ...

Any way to avoid using anonymous functions in jQuery?

If I have a chunk of code like this: .hover( function () { hoverState($("#navbar a").index(this),1); }, function () { hoverState($("#navbar a").index(this),-1); }); Is there any way to get rid of the anonymous functions and just say: .hover( hoverState($("#navbar a").index(this),1), hoverState($("#n...

Events tab randomly appears and disappears in VS 2008

I know it's a minor annoyance.. but it's still an annoyance and it baffles me.. About 3 months ago I was using VS 2008 and when I went to the "Properties" tab there was the little lightning bolt for events(in design mode). Then it suddenly went away.. about a week later I discovered that if I didn't have the properties tab "stickied", th...

R: an NA in subsetting a data.frame does something stupid

I do find R to be a very frustrating language. It seems to excel on data-dependent bugs. Consider the following code. When you don't explicitly test for NA in your condition, that code will fail at some later date then your data changes. > # A toy example > a <- as.data.frame(cbind(col1=c(1,2,3,4),col2=c(2,NA,2,3),col3=c(1,2,3,4),c...

non-ugly resizing of buttons in MSIE

I attempted to re-size two buttons in MSIE, so they would be extra-large but I get ugly aliasing. {%html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"%} {%head%} {%title%}ugly button{%/title%} {%style%} button { height:100px; margin:2em; width:450px; } {...

Children inside <a href> trigger mouseout. How to prevent that?

I have this: <a href="javascript:void(0);"> <div> <span>some content</span> <span>some content</span> </div> </a> The problem is hovering the mouse over from one <span> to another triggers an instant mouseout and mouseover again even though they have no padding or margin between them. Even on the browser's status bar...

Latex: Listings with monospace fonts

This is what the code looks in Xcode. And this in my listing created with texlive. And yes I used basicstyle=\ttfamily . Having looked at the manual of listings I haven't found anything about fixed-with or monospace fonts.. Example to reproduce \documentclass[ article, a4paper, a4wide, %draft, smallheadings ]{book} % Pa...

Help with Visual Studio 2008 annoyances

I really like VS2008 but I was wondering if someone has workarounds for these annoyances: When I open a /* ... */ comment block, VS insists on placing a '*' character on every new line. That's nice, but sometimes I don't want that at all. Is there a way to turn it off? The formatting section in the Options dialog for the C# editor does...

More elegant way to initialize list of duplicated items in Python

If I want a list initialized to 5 zeroes, that's very nice and easy: [0] * 5 However if I change my code to put a more complicated data structure, like a list of zeroes: [[0]] * 5 will not work as intended, since it'll be 10 copies of the same list. I have to do: [[0] for i in xrange(5)] that feels bulky and uses a variable so s...

How can I supress Delphi DataSnap error message dialogs?

We run a DataSnap Delphi 2009 application on Windows 2003 Server. DataSnap Client and Server are on the same computer, using DCOM over Borland Socketserver. The client runs a background batch job. Sometimes, we discover that the client can not connect to the server application and displays a message dialog on the server desktop indicati...

Add a DIV that takes up all available vertical space

I have an empty page with one DIV on it: <div style="height: 20%; min-height: 10px; max-height: 100px; width: 100%; background-color: blue;"></div> I want to add a DIV after this one that takes up all remaining vertical space on the page. How do I do it? I've spent all day on this and ...

How do I get Visual Studio 2010 to open in the same layout/state it was in before I closed it?

This is a simple question, but one that I can't seem to find an answer to. At work I have VS 2010 on a Windows 7 machine with 3 monitors. I also have nvidia's 'nView' and UltraMon to utilize my 3 monitors. What happens is when I open VS 2010 it opens as not maximized, but is fit to one monitor. This compacts everything in the VS window...

annoying indenting in Visual Studio when editing .aspx files

When I am editing VB code inside a .aspx file in Visual Studio 2010, my code is automatically indented in a bizarre way. I have searched through the options and can't find anything that fixes this. [I thought unchecking Pretty listing (reformatting) of code in Text Editor -> Basic -> VB Specific would for sure do the trick but it didn'...

Prevent aspnet_client folder being added to .NET sites

Yes, other questions here dive into the why. I know why the folder is added. But I haven't seen this question answered: How do I make sure the aspnet_client is never added to my .net sites, EVER? ...