2,833 questions
Advice
0
votes
0
replies
17
views
How modify script with adding second task?
This script adds a line to add custom.js to vivaldi browser directory:
#!/bin/bash
vivaldi=/opt/vivaldi/resources/vivaldi
moddir=$HOME/vivaldi-modding/
sudo cp $moddir/custom.js $vivaldi
sudo sed -i -...
0
votes
0
answers
29
views
buildroot foces adding hash file in BR2_GLOBAL_PATCH_DIR?
I'm using buildroot 2024.02.
I set BR2_GLOBAL_PATCH_DIR+="$(BR2_EXTERNAL_MY_PATH)/patches". Its contents:
% tree /home/admin/buildroot-external-my/patches
/home/admin/buildroot-external-my/...
0
votes
0
answers
46
views
Can msimsp be used on msi where files are contained within the msi?
I am trying to create an msp file from two msi files.
The msi files were created using Advanced Installer. I've selected "Archive installation files into CAB files" but not "Compress ...
2
votes
2
answers
59
views
How to change legend patches after plotting?
I have a function that is supposed to enlarge all labels in a figure to make it ready for export. However I fail to enlarge the legend properly:
import matplotlib.pyplot as plt
def enlarge_legend(ax, ...
0
votes
1
answer
1k
views
Power Apps Patch() not working correctly in all instances
I have a very complex logic statement that uses multiple settings to determine if to perform a Patch() function.
I use Notify() to isolate which statement is firing.
I have isolated it to Statement#4 ...
0
votes
1
answer
87
views
Yocto kernel patch "previously applied" error
I have a DTS patch file that adds an EEPROM to the devicetree.
I have a .bbappend recipe with these simple lines
PATCHTOOL = "git"
SRC_URI += " \
file://0001-imx6dl-custom.dts.patch \
...
0
votes
0
answers
61
views
Removing file uing .msp patch with WiX toolset
I have created two installers with WiX, the original one that installs two files, and then the next version installer that updates one file, removes one file and adds one new file.
Then I have created ...
0
votes
0
answers
57
views
Overriding patch in pytest
`
def mock_failed_authorization(instance_id=None,crn=None, f_instance=None, resource_group_id=None, f_resource_group=None):
def decorator(f):
@wraps(f)
def g(*args, **...
-1
votes
1
answer
58
views
unidiff: encode file move?
Is there a way to encode moving a file path that patch respects?
echo '# Story' > story.txt
patch -Nfu << EOF
--- story.txt
+++ kitty.txt
@@ -1 +1 @@
-# Story
+# Kitty
EOF
echo "...
-1
votes
1
answer
102
views
How to combine multiple patches into a single GitHub pull request?
How do I combine
https://github.com/jidanni/gdal/tree/patch-57
https://github.com/jidanni/gdal/tree/patch-58
https://github.com/jidanni/gdal/tree/patch-60
into a single pull request to https://github....
0
votes
0
answers
58
views
Windows Installer Patch: Updating third field of Version
I am trying to create a Windows installer patch using Installshield 2023 Patch Design view which internally uses a .pcp file.
I am required to create multiple patches over the base release. For each ...
0
votes
1
answer
88
views
Error: "patch does not apply" when manually editing diff
I have the following git diff for Python code:
@@ -520,7 +520,7 @@ class AreaManager:
self.broadcast_ooc(
f"[{client.id}] {client.showname} ({client.name}) is GM in this hub ...
1
vote
1
answer
215
views
git patch file that can remove/delete a file without considering its content
I would like to create a .patch file that can remove/delete a file without considering its content.
In my git repo, I have myfile1.txt, its content:
Hello1
Hello2
Hello3
I want to have a git patch ...
0
votes
0
answers
104
views
Git apply: how to ignore changes marked as "Binary files ... differ"?
I'm storing lots of deb's and rpm's as diffs from a few selected "seed" packages. The diffs are generated using git diff and applied using git apply. I only need the source files in the ...
-1
votes
2
answers
223
views
REST API: How to prevent races when doing read - update - write cycle on server side
Let's assume a relational db-backed API. I understand the usage of optimistic concurrency control (eg by using a version field) to prevent lost updates from clients (where the r/u/w cycle is performed ...