159 questions
1
vote
2
answers
676
views
CMP/KMP iOS build failed with "No matching variant of androidx.compose.foundation:foundation:1.7.0.."
I have composed a multiplatform project with Android and iOS. The Android app runs and installs successfully, but when I run the iOS app from XCode build, it fails with the below error.
🛑 No ...
0
votes
0
answers
61
views
AdMob UMP reports Obtained consent status, but ads fail to load when legitimate interest is disabled. Why?
I’m using AdMob’s User Messaging Platform (UMP) in my Android app to handle user consent for personalized ads. While it generally works as expected, I’ve encountered an issue in a specific scenario:
...
0
votes
1
answer
77
views
How does CMP (Consent Mode Platform) facilitate communication with third-party vendors like Google Analytics via gtag integration?
We've integrated a widget on our clients' websites that utilizes gtag for sending events to Google Analytics (GA4). Each client provides us with their Measurement ID (tracking code / GA4 ID) for this ...
1
vote
1
answer
715
views
Sandboxed JavaScript for CMP (Consent Mode v2) cannot write to dataLayer
I have set up a custom template using code from my CMP provider, which works fine for consent setting. We have had to make several additions and edits to the CMP as provided. I want to send a custom ...
1
vote
1
answer
405
views
Google Consent Manager Platform (CMP) is not showing everytime in debug mode
Sharing following code, how am I calling for CMP dialog.
fun initDebugConsent(deviceId: String, onConsentResponse: OnConsentResponse) {
this.onConsentResponse = onConsentResponse
val ...
0
votes
1
answer
159
views
disable task tag [TODO] jdtls [nvim, cmp, lua]
this is my lua config for cmp:
require('lspconfig')['jdtls'].setup {
root_dir = function(fname)
return vim.fn.getcwd()
end,
cmd = {
'jdtls',
'-vmargs',
'-...
0
votes
0
answers
123
views
Comparison two files using cmp bash command and sed option
I have simple script which is checking if file from today is different than file from yesterday. For that I am using cmp command, but unfortunately I need to also make some correction in file so I use ...
-1
votes
1
answer
68
views
Perl: sort hash ref using multiple array ref values [closed]
I have a hash ref with values being an array ref. I would like to sort the hash using multiple values. For example:
{ 'ID' => ['Age', 'Name', 'Start-Date'] }
I would like to sort by: 1) Age; then-...
0
votes
1
answer
1k
views
cmp instruction and negative numbers [duplicate]
Here is a code to sort the given array in assembly language
.model small
.stack 100h
.data ;roll number 2435
data1 db 66h, 2, 045h, 4, 040h, 3, -025h, 5, -010h, 011h
swap db 0
.code
mov ax, ...
1
vote
1
answer
499
views
compare two files except first bytes of each lines with shell command
I have two log files with every line starting by the time. I'd like to compare the files except for this time part.
for exemple :
file1.og
[20220201_133108] abc
[20220201_133108] defg
[20220201_133108]...
0
votes
0
answers
334
views
x86: EAX contains value of 1 but cmp eax, 1 gives false
I have such part of code
cmp eax, [SPHERE]
je VolumeSphere
I use the variable SPHERE and it's like enum for 1.
Also, I check what is in eax and it 1 too(by printf).
So, I have changed the code to ...
1
vote
1
answer
3k
views
Python cmp() function [closed]
Hello I was trying to compare two tuples in python using the cmp() function
But there was an error wich is the following:
NameError: name 'cmp' is not defined
my Code:
myStupidTup = ("test",...
0
votes
1
answer
355
views
will carry flag be set after CMP?
(MSP430 16 bit)
CLR[.W] R14
CMP[.W] #0x0200, R14
JC #1234
How can I know if Carry flag will be set?
Can CMP[.W] #0x0200, R14 make Carry flag be set?
-2
votes
1
answer
46
views
How should I solve this c++ sorting problem
#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<string.h>
#include<map>
#include<functional>
using namespace std;
map<...
1
vote
0
answers
166
views
Invalid cmp type when trying to test tcf consents
I'm trying to implement TCF 2.0 consents on amp page.
Here is a sample code which I took from https://github.com/ampproject/amphtml/blob/master/examples/amp-consent/cmp-vendors.amp.html
<!-- ...
1
vote
0
answers
36
views
unable to run assemble exe file [duplicate]
I'm trying to print hello word with assembly on Windows 10.
I successfully converted the object file to executable file
with nasm -f elf64 hello.asm and ld hello.o -o hello but
when I run the file ...
0
votes
0
answers
433
views
Comparing local and ftp files with cmp and find
I want to compare files in a local folder with subfolders to its counterpart on a ftp server and delete the unchanged files in my local folder. My command currently looks like this (inspired by the ...
1
vote
2
answers
7k
views
Custom sort on two columns with condition Pandas
I have a data frame as the following:
df = pd.DataFrame({'id':[3333311,3455572,6464544,2323322,2222111,4333311,5454566,3321767],'A':['12 days','35 days','36 days','56 days','54 days','44 days','56 ...
1
vote
1
answer
332
views
How to deal with the FinderException while migrating EJB 2 CMP entity beans to EJB 3 JPA entity?
I'm migrating an EJB2 application and I don't know how to deal with the FinderException thrown by EJB2 CMP entity beans because in some business methods there was logic code implemented in catch ...
0
votes
0
answers
27
views
malfunction if in bashscript [duplicate]
I have a code:
flag=true
if cmp -s item1 item2 ; then
if test flag = true; then
echo 'a'
else
echo 'b'
fi
fi
and for somereason only the else is triggered and I get 'b', why is ...
1
vote
1
answer
2k
views
Convert sort from Python2 to Python3
I've written a sort in Python2, I'm trying to convert it into Python3 which asks for a key and says no more cmp function is available :
test.sort(lambda x, y: cmp(x[2],y[2]) or cmp(x[4], y[4]) or cmp(...
0
votes
1
answer
282
views
How to delete the same files in the two directories with comparison in linux?
I want to delete the same files in two directories.
Both have so many files with the same name. If two files are same I want to delete in the first directory.
I am not sure whether linux shell is ...
1
vote
1
answer
614
views
Python 2.7 filecmp.cmp returns false even though the gzipped files are identical
I'm comparing a bunch of fastq.gz files. Each file is ~4G:
if filecmp.cmp(f1,f2,shallow=False)
It returns false, as in f1 and f2 are different. But when I compare the files using diff/comm I get 0 ...
-2
votes
1
answer
421
views
Assembly intel x86 - compare [] [] [duplicate]
I'm trying to write simple assembly program, which takes 2 strings from command line and then counts occurrences of first one in the second one.
For example: x="abc" y="abcabc abc". It should print 3.
...
1
vote
5
answers
112
views
Incrementing and modifying numbers on list
I'm trying to write a script as a part of my registration form. Everything is set, however, I would like to implement a "UID" function similar to how UID works in the bash. However here's the tricky ...