practice (2,153)


language agnostic - Binary file layout reference

language agnostic - Binary file layout reference

Where are some good sources of information on binary file layout structures? If I wanted to pull in a BTrieve index file, parse MP3 headers, etc. Where does one get reliable information?…


multithreading - What are some good resources for learning threaded programming?

With the rise of multicore CPUs on the desktop, multithreading skills will become a valuable asset for programmers. Can you recommend some good resources(books, tutorials, websites, etc.) for a prog…


Global Exception Handling for winforms control

When working on ASP.NET 1.1 projects I always used the Global.asax to catch all errors. I'm looking for a similar way to catch all exceptions in a Windows Forms user control, which ends up being a hos…


math - What does the term “BODMAS” mean?

What is BODMAS and why is it useful in programming?…


Distribution of table in time

I have a MySQL table with approximately 3000 rows per user. One of the columns is a datetime field, which is mutable, so the rows aren't in chronological order. I'd like to visualize the time distrib…


Suggestions for implementing audit tables in SQL Server?

One simple method I've used in the past is basically just creating a second table whose structure mirrors the one I want to audit, and then create an update/delete trigger on the main table. Before…


c# - Is String.Format as efficient as StringBuilder

Suppose I have a stringbuilder in C# that does this: StringBuilder sb=new StringBuilder(); string cat="cat"; sb.Append("the ").Append(cat).(" in the hat"); string s=sb.ToString(); would that be as eff…



c# - Convert enums to human readable values

Does anyone know how to transform a enum value to a human readable value? For example: ThisIsValueA should be "This is Value A".…


sql server - [ADO.NET ERRROR]: CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file HelloWorld.mdf failed

Anyone seen this before? CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named database for file C:\Documents and Settings\..\App_Data\HelloWorld.mdf faile…


Best practices for managing and deploying large JavaScript apps

What are some standard practices for managing a medium-large JavaScript application? My concerns are both speed for browser download and ease and maintainability of development. Our JavaScript code i…




best how java example for and with practices class use