patch

simple way to create patch on deployed grails application

冷暖自知 提交于 2019-12-07 11:17:53
问题 i have a deployed grails apps on tomcat6 in my client server machine, but the application is still need many fix, so every bug founded or missing feature on client machine, i creating a patch and delivering to client via ftp on .tar.gz file that will replace on deployed folder. i can't send a fully .war files because the apps is big (~80M), so sending a changes .class files is the only option i have. but the process to creating a patch is too time consuming , especially on rebuild the project

using self in python @patch decorator

时间秒杀一切 提交于 2019-12-07 09:12:02
问题 I'm trying to use python's mock.patch to implement unit tests with nose. class A: def setUp(self): self.b = 8 #contrived example @patch.object('module.class', 'function', lambda x: self.b) def testOne(self): # do test # Here, patch complains that it doesnt know self (which is correct). What is best way to get this kind of functionality in a clean fashion? I know I can use a global variable, or that I can mock it within the test (but that involves me cleaning up the objects at the end of the

WiX: Patch installer superseding previous versions (1.0.0 -> 1.0.1, 1.0.0 -> 1.0.2, 1.0.1 -> 1.0.2, aso.)

喜夏-厌秋 提交于 2019-12-07 06:59:52
问题 I am trying to provide a simple installer package (MSI) which I want to support with updates (patches) that supersede all previous patches. So I have a MSI V1.0.0 and 2 patches V1.0.1 and V1.0.2. The user should be able to just install the latest patch regardless which previous patches were already applied to the system. My project contains 2 features (Client and Server). The basis of the patch so is always the RTM package (HelloWorld 1.0.msi / HelloWorld 1.0.wixpdb). The generation (build)

Reusing patch objects in matplotlib without them moving position

蹲街弑〆低调 提交于 2019-12-07 06:58:09
问题 I want to automatically generate a series of plots which are clipped to patches. If I try and reuse a patch object, it moves position across the canvas. This script (based on an answer to a previous question by Yann) demonstrates what is happening. import pylab as plt import scipy as sp import matplotlib.patches as patches sp.random.seed(100) x = sp.random.random(100) y = sp.random.random(100) patch = patches.Circle((.75,.75),radius=.25,fc='none') def doplot(x,y,patch,count): fig = plt.figure

Sitecore 8:Patching an agent

℡╲_俬逩灬. 提交于 2019-12-07 00:56:28
I need to patch agent in other environment so I have created a patch as below: <agent type="Sitecore.Tasks.PublishAgent"> <patch:attribute name="interval" value="01:00:00" /> <param desc="mode (full or smart or incremental)">smart</param> <param desc="languages">en</param> </agent> Here I patch attribute using <patch:attribute name="interval" value="01:00:00" /> But how can I patch a param?.Also how can I test the same? Thanks You can patch exactly as you have posted, i.e. if the param matches an existing param of the same name then it will overwrite it. There is no need for any additional

Difference between patch and update [closed]

天涯浪子 提交于 2019-12-06 14:52:47
Closed . This question needs details or clarity . It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post . Closed 2 years ago . On creating Installers, I came across both patch and upgrade. Whats is the major difference between a patch and and upgrade? Is a patch similar to update? A patch is basically a diff between two MSI databases of the same product (e.g. v1.0.0 and v1.0.1) and can be installed only on target machines where its target MSI (i.e. v1.0.0) is installed. It can be used only for updating an installed

How to apply patches on the top of a git tree preventing duplication?

我的梦境 提交于 2019-12-06 13:45:18
I'm seeking advice for a problem that I thought to be simple, and it might be simple indeed by creating a small script, but I think there should already be a way to do that with git/quilt/stgit. I'm not exactly good at git and this is causing some issues to me. My problem: I've got a git tree (linux kernel) and a number of patches. What happens, such patches were intended for and older version of the kernel, and many of them have already been applied to my tree. The patches start with an header line like From b1af4315d823a2b6659c5b14bc17f7bc61878ef4 (timestamp) and by doing something like git

How to create an update patch for windows application

我们两清 提交于 2019-12-06 12:57:44
How do I create an update patch that updates the application without having to reinstall the application in newer version? Also, how could I combine other software such as SQL express and printer driver with the application setup file? I have used Visual Studio 2010 to develop my application. Here is a useful link for you : http://www.codeproject.com/Articles/125721/Installer-and-Patching-Program-using-Visual-Studio You can combine other software such as SQL express and printer driver with the application by adding custom action in the setup project. What you can patch depends up how you

JsonPatch in an Angular/.NET Web API project

守給你的承諾、 提交于 2019-12-06 12:52:10
I'm utilizing KevinDockx's JsonPatch extension for Visual Studio. My project uses .NET Web API (not Core) and Angular (6) . .Net Web API doesn't support the JsonPatchDocument namespace, thus the need for KevinDock's JsonPatch extension. I'm reading through his documentation here: https://github.com/KevinDockx/JsonPatch/blob/master/README.md JsonPatch consists of two parts: On the client (consumer of the API) : the JsonPatchDocument / JsonPatchDocument class to build what's essentially a change set to be applied to your object on your API side. At (Web) API level : an ApplyTo method to apply

How to apply a patch

家住魔仙堡 提交于 2019-12-06 12:33:07
问题 I have this patch code which i downloaded from a web article (Calling Matlab from Java). http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html But I donot know how to apply it in my windowsXp running computer. What I'm trying to do is call Matlab script file from java. I have found the necessary source codes and every thing but this mater is holding be back. Any help is highly appreciated. Thank you. Here's the patch code. Index: MatlabControl.java ====================================