production

MySQL "inserts" speed difference between production and local environment is too big!

Hi, I have installed MySQL 5.1x instance on a Linux machine (768MB RAM). I restored a backup of about 1000 rows and through my .NET application (deployed on a different Windows webserver) I performed certain read operations, which, when considering that the table had no indexes, were fast. I then cleared the server from these rows and ...

Transferring changes from a dev DB to a production DB

Say I have a website and a database of that website hosted locally on my computer (for development) and another database hosted (for production)...ie first I do the changes on the dev db and then I do the changes to the prod DB. What is the best way to transfer the changes that I did on the local database to the hosted database? If it...

Rails dependencies issue when in production mode

Im working on a legacy oracle database with a slightly odd table naming convention where each column name is prefixed with the tables initial letters - eg policy.poli_id. To make this database easier to work with I have a method set_column_prefix that creates accessors for each column with the prefix removed. ie: # Taken from wiki.ru...

Is it a bad idea to leave firebug "console.log" calls in your producton JavaScript code?

I have a bunch of console.log calls in my JavaScript. Should I comment them out before I deploy to production? I'd like to just leave them there so I don't have to go to the trouble of removing the comments later on if I need to do any more debugging. Is this a bad idea? ...

JRuby on Rails and calendar_date_select

Anyone have any success with a JRuby on Rails war deployment and calendar_date_select? The gem wouldn't include the helper functions and I would receive the following error since the function wasn't declared in the app: undefined method 'calendar_date_select_includes' for #<ActionView::Base:0xbe823> After installing calendar_date_sele...

How to efficiently handle the changes between production and development when updating from the repository

I have inherited a project with a local development environment that has code specific to that machine, and which is different for the production server. Even though the majority of it is contained in constants and the rest is in the tests, every time I commit from development and update in production I'm going to have to make the same ...

Tracing memory corruption on a production linux server

Guys, could you please recommend a tool for spotting a memory corruption on a production multithreaded server built with c++ and working under linux x86_64? I'm currently facing the following problem : every several hours my server crashes with a segfault and the core dump shows that error happens in malloc/calloc which is definitely a s...

Different methodologies for solving bugs that only occur in production.

As one who is relatively new to the whole support and bug fixing environment and a young programmer I had never come across a bug that only occurs in the Websphere environment but not on the localhost test enviroment, until today. When I first got this bug report I was confused as to why I couldn't reproduce it on the localhost test env...

Collaborative Development Overview Diagram

I am going to be implementing a development environment for some young developers and I am looking for a diagram to describe the ideal programming environment. Basically what I am setting up is an environment that consists of the following pieces IDE (Eclipse) Local Development Environment (XAMPP/MAMP) Repository (SVN) Test Environmen...

ASP.NET Problem with upload on production server but not in dev

Hi everyone, maybe a simple question but I really don't know what to do. When I submit a file through a form using , it works perfectly on my dev machine. When I try the same thing on the server, it gives me the error below. The error doesn't help me at all because I don't even have this function in my code (CaptureCollection) and I d...

hardening drupal for a live deployment

Are there any special security measures to take when deploying a Drupal site to a production server? For instance: I can imaging that we need to remove install.php from the root directory. Are there any more actions? Or is there maybe a module available which checks the site for "world readiness" ...

What's the risk of deploying debug symbols (pdb file) in a production environment?

I have an application that logs exception strack traces and I wanted those stack traces to include file names and line numbers when deployed in production. I figured out how to deploy the debug symbols w/ the assembly, but in the process of researching the issue I ran accross this question, which implies that it's not a good idea to inc...

Is it viable to use ASP.NET MVC 2 Preview 1 in a production application?

Hello, I'm not sure if it is viable to use ASP.NET MVC 2 Preview 1 already in a production system? I would like to, because it introduces several much-needed functionalities which are quirky in MVC 1. Unfortunately I didn't find anything about that topic or roadmap information in ScottGu's release post from 7/31. Is MVC2P1 already pre...

Rails 2.3.3 - Setting to production mode

How do I set the application to production mode? Okay, this must be a no-brainer but I'm about to deploy my first Rails app and I've got everything setup properly: Ubuntu Hardy, Passenger, MySQL. However, it's still running in development mode. I've only been able to find documentation for older versions of Rails and want to make sure t...

SVN to Production quality code

Hi I have SVN repo that I frequently use for change management. However after each fix, I have to upload the code to the production server. At the moment, I upload files by files so that the .svn directory do not uploaded. Is there a way to upload the all code from svn repo to server without .svn directories, the easier way? ...

Best Practices for Patching Enterprise Java Systems?

As much as I've searched, I've not been able to find a single set of best practices for patching production enterprise java systems. I've even heard it described as a black art by one person. So, my question is, are there defined best practices for providing patches to production systems? What are they? References to any such practices ...

When was Tcl v8.5 first released for production?

I can't seem to locate this on the web anywhere. What was the date of the first stable release of Tcl v8.5? Thanks. ...

Can I use a VM for MOSS (SharePoint) 2007 production environment?

I am currently working on a fairly simple company intranet based on MOSS 2007 with around 1400 users, a few blogs and wikis, minimal file sharing and no My Sites (at the moment). We are considering deploying to a VM for the production environment but I have not been able to find much information on doing this. We mostly use VMWare, thou...

Development and Production Workflow

I've seen pieces of this problem solved around the net, yet I'm still confused, so I thought I'd ask the smart folks at Stack Overflow about this. We're a small startup and at the moment our workflow from development -> production involves ftp-ing in and just uploading the dev code. The dev code IS under subversion control - although ...

Copying live sites to local

Recently I've been getting more and more into web development and as such have a few questions. I have a few websites that are on a production LAMP server and I've been trying to copy them to my local computer running xampp 1.7.1 on XP Pro. The problem I've been having is mostly path issues. I mainly develop for wordpress, joomla, magent...