legacy

Porting PHP5 to legacy PHP4, DOMDocument quibbles

I'm trying to make some of my php5 code work on a legacy server, which unfortunately cannot be upgraded (client's machine). if (!isset($docRoot)) { $docRoot = $_SERVER['DOCUMENT_ROOT']; } // generic storage class for the words/phrases $t = new stdClass(); $t->lang = $curPage->lang; // load xml translations, could split this int...

Accessing data from the CRM Higher Gear?

I'm trying to find out more information on a CRM for auto dealerships called called Higher Gear. Does anyone know where I can find out more technical information about this product? I'd like to know if it runs on a proper database or a proprietary database. I've already emailed their support staff and marketing staff, and I haven't h...

NSPasteboard setString:forType: returns NO under Leopard, fine in Snow Leopard

The following code is from a NSTableViewDataSource where I'm trying to impliement drag and drop. Can someone tell me why the setString:forTypes: method in the following code returns NO under Leopard? It works fine in Snow Leopard. I checked the "Pasteboard Programming Topics for Cocoa" legacy document but I can't figure out what I'm doi...

How to replace existing Swing UI module with Griffon based one in a legacy Java application?

The application that I would like to revamp is pretty well organized. UI is separated into a module. UI controllers implement the interface PropertyChangeListener. When other modules want to have something happened in the UI they just fire PropertyChangeEvents on UI controllers not being aware what is behind them. Current implementations...

Understanding and modifying large projects

I am a novice programmer and as a part of my project I have to modify a open source tool (written in java) which has hundreds of classes. I have to modify a significant part of it to suit the needs of the project. I have been struggling with it for the last one month trying to read code, trying to find out the functionalities of each cla...

How can I convert MS Excel 2.x files into CSV format?

I currently have MS Excel 2.x (BIFF2) files that I receive from a client. They need to be loaded into an ETL system via SSIS. From what I can tell and from my tests, SSIS cannot read these files directly. I have also tried using Aspose.Cells for .NET to open / convert these files in .NET with no luck. Hopefully there is another way t...

Html Browser: best practice to pass user SID to server-side

Legacy application (win32 clients + centralized db) has 40+ installations in a company & lacks the ability to be extended by plugins. Legacy authentication system relies on computer name, user name & user SID (there is no single DOMAIN server in a company, there are dozens of workgroups). I'm going to build stand-alone intranet site th...

How to remove CSS spaghetti in legacy web app?

After working on several large web applications, and seeing gigantic style sheets with no clear structure, I'd really love to know if people have found ways to keep their css clean for large and complicated web apps. How do you move from a legacy, mess of css to cleaned up, nicely cascading, DRY stylesheets? The app I'm currently work...

Tips for build foreign keys into a legacy database

Hey, I've got a database that doesn't have any foreign keys. I've done some checks and there are a a fair few orphaned records. Its a pretty large database 500 + tables and I'm looking at the possibility of building the foreign keys back in. Other than trawling though every single table over time? Has anybody ever been through this ...

"Cosmetic" clean-up of old, unknown code. Which steps, which order? How invasive?

When I receive code I have not seen before to refactor it into some sane state, I normally fix "cosmetic" things (like converting StringTokenizers to String#split(), replacing pre-1.2 collections by newer collections, making fields final, converting C-style arrays to Java-style arrays, ...) while reading the source code I have to get fa...

How did 16-bit C compilers work?

C's memory model, with its use of pointer arithmetic and all, seems to model flat address space. 16-bit computers used segmented memory access. How did 16-bit C compilers deal with this issue and simulate a flat address space from the perspective of the C programmer? For example, roughly what assembly language instructions would the f...

Is there an easy way to detect .NET 1.1 dependencies in a solution?

Hi, I'm maintaining some older .NET applications, and twice this week there have been problems when customers tried to move their apps over to new hardware (two different apps). In both cases the problem was solved by installing .NET 1.1 The question is, is there an easy way to find these dependencies in the source code, so that future...

Biztalk 2010: calling a dll from GAC with dependencies

I have to call functions from a custom dll from biztalk orchestrations (similar to this solution http://www.codeproject.com/KB/biztalk/CallCustomDllBiztalk2006.aspx). The dll calls functions of a third party dll, which uses some other third party dlls (we are using to communicate with a legacy system). The article http://msdn.microsoft....

Cleaning up a large, legacy Java project

I've been assigned to do some work on a huge Java project, and the influence of several iterations of developers is obvious. There is no standard coding style, formatting, naming conventions or class structure. It's a good day when I come across a class with Javadoc, and unit testing is a happy daydream. So far those of us on the proj...

How do I export an entire FreeVCS repository?

I just inherited an old FreeVCS repository at work and would like to migrate all the files to our Subversion repos. How can I export the entire repository? I'm using the 2.2.1.0 standalone GUI client and also the Delphi 5 integrated client. Is it just me or does FreeVCS actually "understand" Delphi packages? ...

How to store authentication credentials for legacy systems in a J2EE container?

I need to store authentication credentials for legacy systems in a J2EE container (IBM WebSphere Application Server Network Deployment 6.1). These legacy systems are accessed using an HTTP interface, but it's not a Web Service. The idea is to query these credentials using JNDI (or some other mechanism) and then use it to authenticate in ...