old (989)


apache - .htaccess directives to*not* redirect certain URLs

apache - .htaccess directives to*not* redirect certain URLs

In an application that heavily relies on.htaccess RewriteRules for its PrettyURLs(CakePHP in my case), how do I correctly set up directives to exclude certain directories from this rewriting? That…


How do you kill all Linux processes that are older than a certain age?

I have a problem with some zombie-like processes on a certain server that need to be killed every now and then. How can I best identify the ones that have run for longer than an hour or so?…


Delete all but the most recent X files in bash

Is there a simple way, in a pretty standard UNIX environment with bash, to run a command to delete all but the most recent X files from a directory? To give a bit more of a concrete example, imagine s…


java - What is the best way to migrate an existing messy webapp to elegant MVC?

I joined a new company about a month ago. The company is rather small in size and has pretty strong "start-up" feel to it. I'm working as a Java developer on a team of 3 others. The company primarily…


function declaration isn't a prototype

I have a library I created, mylib.c:#include<mylib.h> int testlib(){printf("Hello world\n"); return(0);}mylib.h:#include<stdio.h> extern int testlib(); In my program, I've attempted…


oracle - Simulated OLAP

We have a client that has Oracle Standard, and a project that would be ten times easier addressed using OLAP. However, Oracle only supports OLAP in the Enterprise version. Migration to enterprise is…


Best way to rotate Apache log files

I've got an Apache server that has one access log file that is topping 600MB. This makes it really hard to search the file or parse it. What software or modules for Apache are available that will mak…



design - Where to find resources on Refactoring?

Refactoring is the process of improving the existing system design without changing its behavior. Besides Martin Fowler's seminal book "Refactoring-Improving the design of existing code" and Joshua…


How do I delete old files from a directory while keeping the most recent ones on Windows

Possible Duplicate: Batch file to delete files older than N days I want to run a scheduled windows task that deletes all files from a directory that are older than 2 weeks. The reason is that thes…


What is the difference between old style and new style classes in Python?

What is the difference between old style and new style classes in Python? When should I use one or the other?…




how not from git and delete the for commit change