maintenance

SQL Server Maintenance Suggestions?

I run an online photography community and it seems that the site draws to a crawl on database access, sometimes hitting timeouts. I consider myself to be fairly compentent writing SQL queries and designing tables, but am by no means a DBA... hence the problem. Some background: My site and SQL server are running on a remote host. I u...

Maintenance - balancing the question of when and if to make changes

I maintain a couple libraries for other people. After having gone through a couple releases for each of them, there are some things I would do differently, if I had to do them over again. The question is: Should I do them over? I guess we all face that dilemma - how to balance the helpfulness of the maintenance activity versus the d...

Duplicate maintenance - code and documentation

This may not be the best title - I would appreciate it if someone would come up with a better one after reading my problem. Also, I want to say up front that I am largely self-taught on the Internet, so there may be many tools that I am not aware of! I am maintaining software implementing the Flow-Based Programming concept in both Java...

Finding dead PHP5 classes/methods

Is there any tools to check for dead code for PHP5? Something like Scan classes with Reflection Follow "normal" code with token_get_all() and find variables with token T_NEW and then scan for method calls. Output something like classname (count of new declarations) methods (count of calls) ...

Improving productivity to 1 Bug correction per man/day

I am a senior software engineer, and a few months ago I have been asked to help with co-ordination of bug corrections. The project manager (non technical) has given me an objective of improving productivity to 1 bug correction per man/day. This has been a real challenge, and I would like to know what other developers/managers may have do...

How do I write more maintainable regular expressions?

I have started to feel that using regular expressions decreases code maintainability. There is something evil about the terseness and power of regular expressions. Perl compounds this with side effect like default operators. I DO have a habit of documenting regular expressions with at least one sentence giving the basic intent and a...

How to find a similar code fragment?

Does anyone has some tool or some recommended practice how to find a piece of code which is similar to some other code? Often I write a function or a code fragment and I remember I have already written something like that before, and I would like to reuse previous implementation, however using plain text search does not reveal anything,...

How to save my sanity while maintaining spaghetti code

Just wanted to hear some words of advice (and comfort.. ) that will help me to take control over some complicated spaghetti code -- code that was developed by multiple programmers (usually that never meet each other) over long time. the solution's features are just patched on top of each other. Usually I tend to see 2 kinds of programme...

Closing down a project - what are the key things to do?

It seems probable our client will cancel the project we've been working on for 15 months. It's possible (although not very likely) that it will get restarted at some point. We've also extended our company's product in several areas while doing this. Other project teams may need to make similar extensions, and we'd like them to be able...

SQL exclude a column using SELECT * [except columnA] FROM tableA?

We all know that to select all columns from a table, we can use SELECT * FROM tableA Is there a way to exclude column(s) from a table without specifying all the columns? SELECT * [except columnA] FROM tableA The only way that I know is to manually specify all the columns and exclude the unwanted column. This is really time consumin...

Script for Maintaining folders

I am trying to create a script that will keep 5 folders or 6 months worth of folders, whichever is greatest. I would have to use the created date for the 6month part of the script since the naming convention is by version rather than date. would anybody have any ideas about the best way to proceed? Thanks. ...

How do you keep reference documentation up to date?

I'm doing Yet Another PHP Framework for the fun and sport of it, and I'm doing the first rounds of documentation. I'm planning to code a little, document what I've coded, code some more, adjust the documents to reflect the code's new abilities, repeat. For example, the configuration is pretty manual and tedious at the moment, but I'm doc...

SQL Server 2005, Maintenance Plan suggestion

Hi there, I need some advice on SQL Server 2005 maintenance plan, okay here some question: What task(s) is/are suitable for daily maintenance and what for weekly/monthly maintenance Do database need to be offline while in some task, example : reorganize/rebuild index, Shrinking database, etc... (since we need to keep 90% uptime) How l...

Why use 'e0' at the end of a defined constant in c?

Hi Everyone, I'm trying to debug a problem with a perl application that calls some c programs to do text editing. BATCH_JV_CSH_MAX is used to test the maximum value of an amount field. It currently indicates an error if the amount is over 99,999,999.99. Is is supposed to accept values up to 999,999,999.99. Well, that is what is stat...

Resources (resx) maintenance in big projects

In a big project where you have lots of resources (resx) what would be the right approaches and/or tools of translation in order to save time, at the same time keep everything in order and leave nothing behind. More precisely, how to find (as far as translations are concerned) what has been modified (adds and removes are easy) of an ent...

SVN Maintenance

We have been using SVN at my workplace for a few years now and we really haven't done any kind of maintenance on it besides updates and backups since we installed it. Is there anything else we should be doing to maintain SVN or is what we've done all we really need to do? ...

Do you ever make a code change and just test rather than trying to fully understand the change you've made?

I'm working in a 12 year old code base which I have been the only developer on. There are times that I'll make a a very small change based on an intuition (or quantum leap in logic ;-). Usually I try to deconstruct that change and make sure I read thoroughly the code. However sometimes, (more and more these days) I just test and make s...

SQL Server 2005, Shrinking replication database

Right now i currently using transactional replication with updatable subscription. Is there any ways (including T-SQL) that can use to shrink down distribution database used within replication schema? The file was named distribution.MDF Also i found quite large data stored on folder repldata, is it save to delete this files? And how? O...

SSIS Packages - Issues with version control and maintenance

We have been developing SSIS packages for about a year now, and have 2 major issues associated with the maintenance of these packages : 1) We are using version control, but trying to identify the changes between versions of packages is a nightmare - the results of a text diff between 2 versions of a package is basically unusable. 2) Fo...

Hey indies! How much of your time is spent on maintenance?

I would like to know, for those of you who are one-man bands especially, how much of your time is spent maintaining or supporting your programs, as it compares to everything else you do in your day to day business. I worked in telephone-based tech support for a large ISP for two years, and I still have nightmares about that. I can get m...