legacy

Using default values in an INSTEAD OF INSERT trigger

断了今生、忘了曾经 提交于 2020-01-02 03:39:10
问题 We are performing a database migration to SQL Server, and to support a legacy app we have defined views on the SQL Server table which present data as the legacy app expects. However, we're now having trouble with INSTEAD OF INSERT triggers defined on those views, when the fields may have default values. I'll try to give an example. A table in the database has 3 fields, a, b, and c. c is brand new, the legacy app doesn't know about it, so we also have a view with 2 fields, a and b. When the

Docker: what is the equivalent of the legacy --link parameter

时光毁灭记忆、已成空白 提交于 2020-01-01 04:40:05
问题 I need to connect my db container with my server container. Now I just red about the legacy parameter --link , which works perfect $> docker run -d -P --name rethinkdb1 rethinkdb $> docker run -d --link rethinkdb:db my-server But, if this parameter will be dropped eventually, how would I do something like the above ? 回答1: The docs says to use the docker network command instead (which is available since Docker 1.9.0 - 2015-11-03) Instead of $> docker run -d -P --name rethinkdb rethinkdb $>

Change state of React component from old external Javascript?

让人想犯罪 __ 提交于 2020-01-01 03:25:27
问题 How can I change the state of a React component from my old legacy jQuery soup code? I have a component like this: var AComponent = React.createClass({ getInitialState: function() { return { ids: [] } }, render: function() { ... }, onButtonClick: function() { ids.splice(…); // remove the last id } }); When something special happens in the old jQuery soup code, I'd like to push an id to AComponent.state.ids . How can I do that? One "obvious" solution is an anti-pattern; here it is: var

C++ Unit Testing Legacy Code: How to handle #include?

陌路散爱 提交于 2019-12-31 19:28:48
问题 I've just started writing unit tests for a legacy code module with large physical dependencies using the #include directive. I've been dealing with them a few ways that felt overly tedious (providing empty headers to break long #include dependency lists, and using #define to prevent classes from being compiled) and was looking for some better strategies for handling these problems. I've been frequently running into the problem of duplicating almost every header file with a blank version in

What can you do to a legacy codebase that will have the greatest impact on improving the quality?

蓝咒 提交于 2019-12-31 08:06:39
问题 As you work in a legacy codebase what will have the greatest impact over time that will improve the quality of the codebase? Remove unused code Remove duplicated code Add unit tests to improve test coverage where coverage is low Create consistent formatting across files Update 3rd party software Reduce warnings generated by static analysis tools (i.e.Findbugs) The codebase has been written by many developers with varying levels of expertise over many years, with a lot of areas untested and

Best Strategy for moving from VB6 to .NET [closed]

对着背影说爱祢 提交于 2019-12-28 03:06:12
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . My company has tons of legacy applications that are written in VB6. We are in transitions from moving VB6 applications to .NET (3.5

Reliable source for older releases of Google Play Services API

☆樱花仙子☆ 提交于 2019-12-25 17:58:49
问题 I'm working on an App that uses Google Play Services' GcmNetworkManager. This feature was introduced in v7.5, so to maximize the number of devices where my app will not need to ask the user to update Google Play Services, I would like to build my app against that version of the API files. Unfortunately, I don't seem to be able to select an older version in the Android SDK Manager. There are several websites that come up in a Google search that provide older API versions, but none of them seem

Reliable source for older releases of Google Play Services API

流过昼夜 提交于 2019-12-25 17:58:09
问题 I'm working on an App that uses Google Play Services' GcmNetworkManager. This feature was introduced in v7.5, so to maximize the number of devices where my app will not need to ask the user to update Google Play Services, I would like to build my app against that version of the API files. Unfortunately, I don't seem to be able to select an older version in the Android SDK Manager. There are several websites that come up in a Google search that provide older API versions, but none of them seem

Reliable source for older releases of Google Play Services API

纵饮孤独 提交于 2019-12-25 17:58:06
问题 I'm working on an App that uses Google Play Services' GcmNetworkManager. This feature was introduced in v7.5, so to maximize the number of devices where my app will not need to ask the user to update Google Play Services, I would like to build my app against that version of the API files. Unfortunately, I don't seem to be able to select an older version in the Android SDK Manager. There are several websites that come up in a Google search that provide older API versions, but none of them seem

Blurry print with legacy borland software

一世执手 提交于 2019-12-25 03:03:17
问题 Here is my problem : I have to port an old sofware made for windows NT 4 (i thought) with an old Borland on Windows 7 or newer. The program is running well ( no problem with dependency walker, App Verifier shows a Bad DEVMODE buffer but this error exists on XP and it works well). The programm have to print a label with some information, this works good on windows XP but on seven numbers are blurry, i don't know why and i don't how to troubleshoot that. My printer works because i can print a