legacy

DOS legacy application with USB printer

岁酱吖の 提交于 2019-12-06 01:34:13
问题 I have the unfortunate task of doing (minimal) maintenance work on two legacy applications developed in DBIII+/Clipper '87. I have full access to source and a minimal toolchain to recompile the application when needed, but I am not allowed to reimplement it from scratch due to various (mostly psychological) reasons from the main user. Anyway, while the applications work fine under XP, hardware support is becoming a chore. The user needs to replace the failing printer (an old impact HP with

Using RequireJS with legacy code

拈花ヽ惹草 提交于 2019-12-05 16:35:59
I'm working with a very large project that uses: Legacy JSP pages that includes javascript files with script tags Backbone models and views that uses other javascript modules without RequireJS We now want to start using RequireJS with jQuery, BackboneJS and UnderscoreJS for everything we develop from now on, but we don't have the resources to rewrite all the legacy JSP pages. We may have time to rewrite the Backbone models and views we have already developed. The problem is that for our legacy code (both 1 and 2 above) we include all our javascript files in a huge file and ship to the browsers

Should a legacy Android application be rebuilt using SDK 2.1?

与世无争的帅哥 提交于 2019-12-05 12:08:54
I have an Android application that uses the well known Strategies for Legacy Applications . It is build with the Android SDK 2.0 with manifest settings minSdkVersion="3" (API 1.5) and targetSdkVersion="5" (2.0). Question1: Since maxSdkVersion is not specified, the application should be installable and compatable with newly released Android versions 2.01 and 2.1 correct? At this point in time, I am not planning any enhancements that will use any new API features. Question2: is there any value in rebuilding the application with Android SDK 2.1? Question3: If so, should targetSdkVersion be

List all available .NET assemblies

牧云@^-^@ 提交于 2019-12-05 01:15:53
What is the best way to list all available .NET 2.0 assemblies? An example of the list needed is the one MS Visual Studio shows when you do 'Add Reference...' in the .NET tab. I have read Visual studio uses its own directory configuration and the GAC another and .NET instalation another. Any ideas of how I can know where this directories are in a computer portable way (another computer might have windows installed in D: drive for example)? From the information listed it must be possible to Assembly.Loadxxxx() it. Note: It should be done programatically and not using gacutil for example (unless

Breaking a local dependency to unit test a void method

梦想的初衷 提交于 2019-12-04 15:43:14
I am practicing with mockito, but I am a bit stuck on how to test a method that depends on a call to method in a local object. See the following example: public class Worker { public void work() { Vodka vodka = new Vodka(); vodka.drink(); } } This worker, instead of doing his job, he likes drinking. But I want to add a test to prove that he drinks while he works. But there is no way of doing so, because I must verify that the method drink() is called when the method work is called. I think you agree with me, that this is impossible to test, so I need to break the dependency before starting to

Ubuntu18.04在uefi模式下安装失败-无法将grub-amd-signed软件包安装到/target/

巧了我就是萌 提交于 2019-12-04 13:40:04
dell 的240G固态+750G机械,原本机械中有一个16.04的ubuntu,固态下有一个win10。想把Ubuntu安装到固态,之前的ubuntu盘上面还有一些数据,不想删掉,打算做三个系统。先用软碟通刻录,在legacy模式下居然识别不出U盘的系统,就报找不到操作系统。之前ubuntu16.04也是这样装的。后来百度说要uefi的模式可以,试了下真的可以进去了。但是报错。无法将grub-amd-signed软件包安装到/target/中。又百度,说这个错是ubuntu12中的bug,按理说应该不会在ubuntu18.04中的。 然后又用另一台电脑装那台是240固态只有win10,分了50G的机械。用的uefi的模式,一次安装成功。这就郁闷了。同样的设置。为啥不行。 之后又尝试了 (uefi + legacy Option Rom )、 纯uefi,(legacy + legacy option Rom);在联网环境下安装和不联网环境下安装,均没有成功。(百度到这个bug在联网时会自动修复,就试了下,联网安装真好慢)。 legacy模式装ubuntu16一切ok,为啥ubuntu18会识别不出系统?我觉得可能与主板和刻录的盘有关,主板也不好验证,就换了个刻盘的工具 Rufus.之后就OK了。 解决方案: 1.使用 Rufus 刻录ubuntu18.04的iso。 2

Setting up Liquibase with MS-SQL Server

孤街醉人 提交于 2019-12-04 09:24:22
问题 I am utilising Liquibase (www.liquibase.org) into our MVC3 SQL Server 2008 project to manage database migration/changes. However I'm stumbling on the first hurdle: Connecting to Microsoft SQL Server instance. I am looking at the quick start tutorial on the liquibase site, but exchanging the mysql for sql server DB I run this command: liquibase --driver=sqljdbc.jar --changeLogFile="C:\Temp\ChangeLog.xml" --url="jdbc:sqlserver://localhost;databaseName=test" --username=user --password=pass

Converting C source to C++

≯℡__Kan透↙ 提交于 2019-12-04 07:47:22
问题 How would you go about converting a reasonably large (>300K), fairly mature C codebase to C++? The kind of C I have in mind is split into files roughly corresponding to modules (i.e. less granular than a typical OO class-based decomposition), using internal linkage in lieu private functions and data, and external linkage for public functions and data. Global variables are used extensively for communication between the modules. There is a very extensive integration test suite available, but no

IntelliJ not starting after OS X Yosemite update

半城伤御伤魂 提交于 2019-12-04 07:35:05
问题 I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. 回答1: The officially recommended solution is to install/update JDK 1.6 on Mac ( if this link doesn't open in Safari, try Firefox ). Modifying Info.plist will break the application digital signature and prevent the patch updates . We do not recommend modifying Info.plist file to run under JDK 1.7 or 1.8. Please check this

DOS legacy application with USB printer

怎甘沉沦 提交于 2019-12-04 06:17:27
I have the unfortunate task of doing (minimal) maintenance work on two legacy applications developed in DBIII+/Clipper '87. I have full access to source and a minimal toolchain to recompile the application when needed, but I am not allowed to reimplement it from scratch due to various (mostly psychological) reasons from the main user. Anyway, while the applications work fine under XP, hardware support is becoming a chore. The user needs to replace the failing printer (an old impact HP with parallel interface) and the 486 (!) desktop where the applications are hosted. The main problem now is to