maintenance

Do you develop your Perl applications as CPAN modules?

这一生的挚爱 提交于 2019-11-29 06:12:46
问题 Recently I read a blog post saying that it is a good practice to develop Perl applications just as you would develop a CPAN module. (Here it is – thanks David!) One of the reasons given was that you could simply run cpan . in the project dir to install all the dependencies. This sounds reasonable, and I also like the “uniform interface” that you get. When you come across such an application, you know what the makefile does etc. What are other advantages and disadvantages to this approach?

What are some good strategies to allow deployed applications to be hotfixable?

China☆狼群 提交于 2019-11-29 04:07:52
In an ideal world, our development processes would be perfect, resulting in regular releases that were so thoroughly tested that it would never be necessary to "hotfix" a running application. But, unfortunately, we live in the real world, and sometimes bugs slip past us and don't rear their ugly heads until we're already busy coding away at the next release. And the bug needs to be fixed Now . Not as a part of the next scheduled release. Not tonight when the traffic dies down. Now . How do you deal with this need? It really can run counter to good design practices, like refactoring your code

Rails: admin-only maintenance mode

十年热恋 提交于 2019-11-29 01:37:04
问题 I'd like to put my app into maintenance mode but still have admins / moderators be able to log in and use the site. Two reasons: I'm making some changes within the app that are best applied using the in-app interface rather than the console. Moderators don't have access to the console, but can definitely help with the maintenance tasks we have ahead of us. How would you recommend this be done? I have been experimenting with setting an environment variable ADMIN_MODE and changing all the

SQL Server xp_delete_file not deleting files

烈酒焚心 提交于 2019-11-28 23:28:44
I'm trying to write some SQL that will delete files of type '.7z' that are older than 7 days. Here's what I've got that's not working: DECLARE @DateString CHAR(8) SET @DateString = CONVERT(CHAR(8), DATEADD(d, -7, GETDATE()), 1) EXECUTE master.dbo.xp_delete_file 0, N'e:\Database Backups',N'7z', @DateString, 1 I've also tried changing the '1' a the end to a '0'. This returns 'success', but the files aren't getting deleted. I'm using SQL Server 2005, Standard, w/SP2 Had a similar problem, found various answers. Here's what I found. You can't delete 7z files with xp_delete_file. This is an

How can I copy data records between two instances of an SQLServer database

蓝咒 提交于 2019-11-28 20:13:28
I need to copy some records from our SQLServer 2005 test server to our live server. It's a flat lookup table, so no foreign keys or other referential integrity to worry about. I could key-in the records again on the live server, but this is tiresome. I could export the test server records and table data in its entirety into an SQL script and run that, but I don't want to overwrite the records present on the live system, only add to them. How can I select just the records I want and get them transferred or otherwise into the live server? We don't have Sharepoint, which I understand would allow

When should database indexes be rebuilt?

半城伤御伤魂 提交于 2019-11-28 18:40:51
I was reading about refactoring a large slow SQL Query over here , and the current highest response is from Mitch Wheat, who wants to make sure the query uses indexes for the major selects, and mentions: First thing I would do is check to make sure there is an active index maintenance job being run periodically. If not, get all existing indexs rebuilt or if not possible at least get statistics updated. I'm only am amateur DBA, and I've made a few programs freelance that are basically Java desktop clients and occasionally a MySQL backend. When I set up the system, I know to create an index on

How to find a similar code fragment?

喜欢而已 提交于 2019-11-28 18:21:46
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, as I did not use the variable names which would be exactly the same. Having similar code fragments leads to unnecessary code duplication, however with a large code base it is impossible to keep all code in memory. Are there any tools which would perform some

Identifying Unused Objects In Microsoft SQL Server 2005

橙三吉。 提交于 2019-11-28 17:40:02
问题 It's a trivial task to find out if an object is referenced by something else or not. What I'd like to do is identify whether or not it's actually being used . My solution originally involved a combination of a table that held a list of objects in the database and an hourly job. The job did two things. First, it looked for new objects that had been added to the database since the last run. Secondly, it looked at sql's object cache. If an object in the table was listed in the cache, it was

Development cost versus maintenance cost

偶尔善良 提交于 2019-11-28 17:27:08
问题 I'm trying to explain the ratio of development versus maintenance costs to our sales department, and currently I have mostly my gut feeling that we spend about 60% of the time with maintenance. We have some persons on the team who tends to sell custom solutions, that we have to build, and if the sales people doesn't understand the total cost of development, then they will not be able to sell for realistic prices. Another "problem" is that we are expanding our service, and have a need to

Tips for maintaining an internal Maven Repository?

删除回忆录丶 提交于 2019-11-28 15:48:58
I'm interested in maintaining a Maven 2 repository for my organization. What are the some of the pointers and pitfalls that would help. What are guidelines for users to follow when setting up standards for downloading from or publishing their own artifacts to the repository when releasing their code? What kinds of governance/rules do you have in place for this type of thing? What do you include about it in your developer's guide/documentation? UPDATE : We've stood up Nexus and have been very happy with it - followed most of Sal's guidelines and haven't had any trouble. In addition, we've