79305989

Date: 2024-12-24 15:57:59
Score: 0.5
Natty:
Report link

A simpler approach with fp could be:

const removeEmptyProperties = fp.omitBy(fp.isEmpty);
const compactObject = (obj: unknown) => {
  return fp.mapValues((value: unknown) => {
    if (fp.isObject(value)) {
      return removeEmptyProperties(compactObject(value));
    }

    return value;
  })(obj);
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sebastian Serrano

79305979

Date: 2024-12-24 15:48:57
Score: 3.5
Natty:
Report link

सेवा में, थाना प्रभारी, क्रॉसिंग रिपब्लिक थाना, गाजियाबाद।

विषय: विवादित भूमि पर अवैध गतिविधियों और संगोष्ठी कार्यक्रम के आयोजन के संबंध में सूचना

प्रेषक: भूपेंद्र कुमार त्यागी

माननीय महोदय,

निवेदन है कि मैं आपकी ध्यानार्थ एक गंभीर विषय प्रस्तुत करना चाहता हूँ। मेरी भूमि, खसरा संख्या 976 और 975, धुंधेरा सीएस-05, अंसल एक्वापोलिस, जो मेरी (भूपेंद्र कुमार त्यागी), राजेंद्र त्यागी, दौलतराम एंड सन्स इन्फ्रास्ट्रक्चर प्रा. लि., राजमुनी त्यागी, और दौलतराम रतनसिंह एजुकेशनल चैरिटेबल ट्रस्ट की संयुक्त संपत्ति है, से संबंधित है।

इस भूमि पर गोल्ड कोस्ट डेवलपर्स प्राइवेट लिमिटेड, जिसका प्रतिनिधित्व विकास पुंडीर और सिद्धार्थ पुंडीर करते हैं, के साथ एक संयुक्त विकास समझौता (Joint Development Agreement) किया गया था। इस समझौते के तहत उन्हें व्यावसायिक मॉल का निर्माण करना था। लेकिन उन्होंने अपने दायित्वों को पूरा नहीं किया। न तो मॉल का निर्माण किया गया और न ही हमें हमारी भूमि का हिस्सा दिया गया। इसके अलावा, उन्होंने खरीदारों से धन संग्रह किया है, लेकिन उसका उपयोग निर्माण में नहीं किया। उनकी इस भरोसे की घात और समझौते के उल्लंघन के कारण, हमने उक्त समझौता रद्द कर दिया है।

इस विवाद को लेकर कई विभिन्न अदालतों में मामले लंबित हैं, जैसे कि:

  1. आर्बिट्रेशन केस नं.: [यहाँ जोड़ें]

  2. एफआईआर 90/2024, क्रॉसिंग रिपब्लिक थाना।

  3. एफआईआर 125/2024, क्रॉसिंग रिपब्लिक थाना।

  4. एनसीएलटी में मिसमैनेजमेंट के तहत मामला।

इसके बावजूद, उक्त डेवेलपर्स अब भी अवैध रूप से भूमि पर कब्जा करने का प्रयास कर रहे हैं। उन्होंने इस विवादित भूमि पर एक बड़े स्तर पर बैठक और राजनीतिक सभा आयोजित करने की योजना बनाई है, जिसका उद्देश्य अशांति फैलाना और हिंसा को बढ़ावा देना है।

इसके साथ ही, यह सूचित करना है कि एक संदेश प्रसारित किया जा रहा है जिसमें उल्लेख किया गया है कि:

"कल 25 दिसंबर 2024 परम पूजनीय अटल बिहारी वाजपेयी जी की जन्म शताब्दी के उपलक्ष में संगोष्ठी कार्यक्रम आयोजित किया गया है। दिनांक: 25/12/2024 समय: दोपहर 12:30 बजे स्थान: गोल्ड कोस्ट ऑफिस, इंडियन ऑयल पेट्रोल पंप, सवेरी मार्ग, क्रॉसिंग रिपब्लिक। आप सभी सादर आमंत्रित हैं।"

यह संदेश विवादित भूमि पर अवैध रूप से सभा आयोजित करने की योजना का हिस्सा हो सकता है, जिससे कानून और व्यवस्था को खतरा उत्पन्न हो सकता है।

अतः, मैं आपसे विनम्र निवेदन करता हूं कि:

  1. विवादित भूमि पर किसी भी अवैध सभा या गतिविधि को तुरंत रोका जाए।

  2. कार्यक्रम के दौरान कानून और व्यवस्था बनाए रखने हेतु उचित व्यवस्था की जाए।

  3. जो लोग हिंसा भड़काने या अवैध कब्जा करने का प्रयास कर रहे हैं, उनके खिलाफ सख्त कार्रवाई की जाए।

यदि स्थल पर किसी भी प्रकार की हिंसात्मक घटना होती है, तो उसके लिए पुलिस विभाग उत्तरदायी होगा।

आपसे अनुरोध है कि इस गंभीर विषय पर तुरंत ध्यान दें और आवश्यक कदम उठाएं।

भवदीय, भूपेंद्र कुमार त्यागी (संपर्क विवरण)


हस्ताक्षर:


(भूपेंद्र कुमार त्यागी)

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Deepanshu

79305969

Date: 2024-12-24 15:46:56
Score: 5
Natty: 6.5
Report link

Im also adding a new pathway to a model. My question would be if after I add all the metabolites and reactions, do I need to update the biomass equation as well? what would be the next step after adding the pathway for my model to work properly? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Carol

79305965

Date: 2024-12-24 15:44:55
Score: 11 🚩
Natty: 4
Report link

Did you fix this? I'm having the same issue.

Reasons:
  • RegEx Blacklisted phrase (3): Did you fix this
  • RegEx Blacklisted phrase (1.5): fix this?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you fix this
  • Low reputation (0.5):
Posted by: Muathcs

79305949

Date: 2024-12-24 15:36:52
Score: 2
Natty:
Report link

and @csrf inside the form

for example:

<form action="/submit" method="POST">
    @csrf
    <label for="name">Name:</label>
    <input type="text" id="name" name="name">
    
    <button type="submit">Submit</button>
</form>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @csrf
  • Low reputation (1):
Posted by: Meston Enock

79305930

Date: 2024-12-24 15:23:49
Score: 4.5
Natty:
Report link

I think you need this part which handles the async calls https://github.com/xoriors/rencfs/blob/921c1a968ccc3298ba476584b5ea1acc1409a791/src/crypto/fs_api/fs.rs#L389-L401

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user3329064

79305904

Date: 2024-12-24 15:08:46
Score: 1
Natty:
Report link

Please Try following things.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rahul Timbaliya

79305897

Date: 2024-12-24 15:07:46
Score: 2.5
Natty:
Report link

how are you Youssef Emad?. It's a pleasure to help you. Look, roughly speaking, I understand that in these competition "exercises", 100,000,000 instructions are equivalent to 1 second (I understand that in C++ instructions such as divisions or modules cost more than additions or subtractions, but I don't think it is necessary to take this into account. ). That said, your settlement of 100,000 could still be multiplied by another settlement of 1,000 and in theory be at the limit of the time allowed by the judge. I recommend you check on the internet what the "quick sort" sorting method is, in C++ there are already implementations. I like to learn these syntax topics or prefabricated methods on this page, which by the way I opened it right in the "quick sort" method for you.

I love these "competitive programming" topics, especially in c++. You can contact me in private with more similar questions and I will be happy to answer you, or write another post similar to this one.

Thank you, I leave you the "quick sort" link below, and forgive my bad English

Sorry if this answer is deleted, I think it might be because some rule of answering without code or something like that.

"Quick sort"

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): contact me
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how are you You
  • Low reputation (1):
Posted by: proyecto2028

79305885

Date: 2024-12-24 15:03:45
Score: 0.5
Natty:
Report link

Try to use 127.0.0.1 Instead of localhost

Browsers treat localhost differently than regular domains, but 127.0.0.1 behaves more like a standard domain.

Update your hosts file to map admin.localhost to 127.0.0.1:

127.0.0.1   localhost
127.0.0.1   admin.localhost

Access your application via http://127.0.0.1/login and http://admin.127.0.0.1/dashboard.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Khribi Wessim

79305882

Date: 2024-12-24 15:03:45
Score: 3
Natty:
Report link

In this case I would go with a Service Principal instead.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: apasic

79305877

Date: 2024-12-24 15:00:44
Score: 2
Natty:
Report link

I was able to upload pdfs successfully, but they weren't opening. Earlier I thought maybe the data was corrupted but later found out I just had to enable Pdf and Zip file delivery in security settings in cloudinary dashboard.

https://support.cloudinary.com/hc/en-us/articles/360016480179-PDF-or-ZIP-files-appearing-in-Media-Library-but-download-URLs-return-an-error

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sumrender Singh

79305876

Date: 2024-12-24 14:59:44
Score: 0.5
Natty:
Report link

There is actually a workaround for this behavior though it's a bit obtuse. I think the issue is that the signal comes in while the prompt is waiting for user input. We can overcome this obstacle by using a promise and setTimeout:

let sigint = false;
Deno.addSignalListener("SIGINT", () => {
  sigint = true;
});

// Add a timeout to prevent process exiting immediately.
while (true) {
  const val = prompt("Prompt: ");
  const printHandlerPromise = new Promise((resolve, reject) => {
    console.log(val);
    setTimeout(() => {
      if (sigint) {
        console.log('sigint!');
        sigint = false;
      }
      resolve(null);
    }, 0);
  });
  await printHandlerPromise;
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Finley Baker

79305860

Date: 2024-12-24 14:52:42
Score: 1
Natty:
Report link

enter image description here

HTML:
<div class="relative">
  <i
    (click)="bla()"
    class="pi pi-search z-10 absolute cursor-pointer top-1/2 mt-[-0.5rem] text-[var(--p-autocomplete-dropdown-color)]"
  ></i>
  <p-autoComplete
    [hidden]="!isUserLoggedIn() || userRoleId() === UserRoles.Admin"
    minLength="3"
    searchTimeout="300"
    formControlName="search"
    placeholder="Search.."
    [autoHighlight]="true"
    [forceSelection]="true"
    appendTo="body"
    (completeMethod)="onSearch($event)"
    (onSelect)="onSelect($event)"
    [suggestions]="suggestions"
    inputStyleClass="pl-10" // pay attention for this
  >
  </p-autoComplete>
</div>




CSS:
.pi-search  {
  &::before {
    @apply p-2.5; // increases clickable area, as **before** propagates click event to parent(i element)
  }
}
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sasa Jevremovic

79305854

Date: 2024-12-24 14:49:41
Score: 4.5
Natty:
Report link

As I said above, I believe I have the answer. I still have more digging to get to a final solution, but I don't want to leave this open.

Thanks for reading.

Dave

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dave

79305853

Date: 2024-12-24 14:48:41
Score: 1
Natty:
Report link

If you want to train your model to generate new text in a style similar to that of your texts, then this is Causal Language Modeling.

There is a separate page dedicated to this topic on HuggingFace: https://huggingface.co/docs/transformers/en/tasks/language_modeling.

Or, if you want a complete guide, there is a beautiful article on Medium on how to fine-tune the GPT-2: https://medium.com/@prashanth.ramanathan/fine-tuning-a-pre-trained-gpt-2-model-and-performing-inference-a-hands-on-guide-57c097a3b810. The dataset is wikitext (without labels) and the code sample looks like this:

# Define training arguments
training_args = TrainingArguments(
    output_dir='/mnt/disks/disk1/results',
    evaluation_strategy='epoch',
    num_train_epochs=1,
    per_device_train_batch_size=4,
    per_device_eval_batch_size=4,
    warmup_steps=500,
    weight_decay=0.01,
    logging_dir='/mnt/disks/disk1/logs'
)

# Initialize Trainer
trainer = Trainer(
    model=model,
    args=training_args,
    train_dataset=tokenized_datasets['train'],
    eval_dataset=tokenized_datasets['validation'],
)
Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: TayJen

79305852

Date: 2024-12-24 14:47:40
Score: 1
Natty:
Report link

It seems that the location isn't available for your subsidiary

You can go to Setup > Company > Location > Select your location and check you subsidiary

The location is a standard segment, so if you can see it, it maybe that:

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: AnthoVdo

79305846

Date: 2024-12-24 14:45:40
Score: 4
Natty:
Report link

You can easily convert HTML files to JSX format using this tool. https://www.discoverwebtools.com/tools/html-to-jsx-converter/

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Furkan Beydemir

79305832

Date: 2024-12-24 14:37:37
Score: 1
Natty:
Report link

I know this is an old post but @maglub suggest an edit to an open MR related to this bug.

https://github.com/NaturalHistoryMuseum/pyzbar/pull/82#issuecomment-2060723050

try:
  # try to correct the encoding
  return res[0].data.decode('utf-8').encode('big5').decode('utf-8')
except:
  # if it fails, the encoding should already be good
  return res[0].data.decode('utf-8')

This workaround may helps. All credits goes to maglub (see the original solution on github)

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @maglub
  • Low reputation (0.5):
Posted by: ollie314

79305831

Date: 2024-12-24 14:37:37
Score: 3.5
Natty:
Report link

uninstalling sentry-expo fixed it for me for some reason

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mahdi

79305830

Date: 2024-12-24 14:36:37
Score: 3
Natty:
Report link

I had related_name set to student in my profile models.py. When i changed that, everything worked.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Aidan Mc Intosh

79305825

Date: 2024-12-24 14:35:36
Score: 4
Natty:
Report link

Н.В.Гоголь в произведение «Шинель» раскрывает такие темы как: безвозмездная помощь и тема «маленького человека»

Главный герой- Акакий Акакиевич Башмачкин является маленьким человеком,то есть человек невысокого социального положения, не богатый,человек без амбиций и желания изменить свою жизнь в лучшее русло,также не обладает какими-то высокими талантами. Когда Башмачикину предлагают более трудную работу,он потеет и испытывает страх,по этой причине он всегда занимается одним и тем же делом-проверяет и печатает текст. Он слабохарактерный и мелочный человек. Главный герой долгое время собирает деньги на покупки новой шинели,так как прошлая стала уже не пригодна для носки и подшить ее нельзя было.Но вот жизнь решила по другому.Когда Башмичкин получил свою заветную и новую шинель,а позже пошёл на празднования по причине новой вещицы,его ждала неудача.Его новую шинель украли. Придя в милицию и объяснив сложившуюся ситуация, на него наорали и выгнали. Бедный Акакий Акакиевич слёг с горячкой,что и стало его смертью.

Так в повести Шинель Гоголь раскрывает тему возмездия с помощью финала. В ней Акакий Акакиевич после смерти в виде призрака пугает жителей Санкт-Петербурга и отбирает шинель у людей,до тех пор,пока не добрался до обидчика-чиновника,который выдвинул его на улицу,не захотя разбираться в пропавшей шинели.После напугав чиновника дух Акакия Акакиевича успокаивается.А чиновник сожалеет о сделанном.Таким образом «зло»было наказано.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Тимофей

79305819

Date: 2024-12-24 14:31:35
Score: 2.5
Natty:
Report link

add JAVA_HOME and java directory in user varriable for dell and in system variable click on path and add path java downloaded directory it works from

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vikram singh

79305817

Date: 2024-12-24 14:31:35
Score: 1
Natty:
Report link
StreamReader sw = new StreamReader(fs);
while (sw.EndOfStream != true)
{
    yazi += sw.ReadLine();
}

StreamReader.EndOfStream This is the most correct usage. Because when the lines are finished reading it returns true. At the beginning it returns false

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Uğur TEZGÖR

79305815

Date: 2024-12-24 14:31:35
Score: 2
Natty:
Report link

You have 2 solutions for that:

  1. Use runtime, in the map stage like you do in getInputData
  2. Work on your returned array to includes this 2 informations.

The first option is easier.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: AnthoVdo

79305804

Date: 2024-12-24 14:26:34
Score: 2.5
Natty:
Report link

As far as I know, Looker Studio is built for analytics purposes so it will only support reading data but not writing it back or updating rows in your database.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Visrut

79305794

Date: 2024-12-24 14:21:33
Score: 0.5
Natty:
Report link

This is already defined in the language, no need to calculate.
The number of base 10 digits, is std::numeric_limits::digits10, where T is int, unsigned, long, long long, float, double, long double, etc. There was a trivial change at c++ 11, to define if this was an int type or define.
note: The number of bits to store is std::numeric_limits::digits.

So, to get the digits to display an unsigned you would use:

#include limits
short displayDigitsBase10 = std::numeric_limits<unsigned>::digits10; 

Here is one link.
https://en.cppreference.com/w/cpp/types/numeric_limits/digits10

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Norman Bo Graham

79305792

Date: 2024-12-24 14:21:33
Score: 1
Natty:
Report link

I used the same code, I have setup Marketing Api product on my app with these permissions:

the app is also live.

this is the output I am getting:

400 GET https://graph.facebook.com/v21.0/ads_archive?search_terms=Shopify&ad_type=All&ad_reached_countries=%5B%22US%22%5D&access_token=EAAWZAJ9kprooBO379ZC8uJJ4qrYynoaKJRDXxIlPw1yYoHOXCHpVd4ONtGx8s1WugxOrAJJ18P7X2VeKzei4ZBM2d5CI98qGGaSp6XZALtzRXs6TYpZBADNN64UYOQdHxTamcsUOVlCZCvE2mkkPaqcpaM8LfgGR6BxeUIFfnlRV1jkDceg8sqWZAZCZCc9RkxQcQVJyAWBEd6udQh4BImr0T2VtwbOcBrYgkPAZDZD

something bad happened somewhere Error at FacebookRequestError.FacebookError [as constructor] (/Users/arsh/Desktop/Marketing API/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:349:16) at new FacebookRequestError (/Users/arsh/Desktop/Marketing API/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:371:129) at /Users/arsh/Desktop/Marketing API/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:674:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { message: 'Application does not have permission for this action', status: 400, response: { message: 'Application does not have permission for this action', type: 'OAuthException', code: 10, error_subcode: 2332002, is_transient: false, error_user_title: 'Authorisation and login needed', error_user_msg: "To access the API, you'll need to follow the steps at facebook.com/ads/library/api.", fbtrace_id: 'AdPW917DHicbwf_BcDQjefZ' }, headers: Object [AxiosHeaders] { 'error-mid': 'ab1c367cb6f07e7026449aba9261140c', vary: 'Origin, Accept-Encoding', 'cross-origin-resource-policy': 'cross-origin', 'x-app-usage': '{"call_count":0,"total_cputime":0,"total_time":0}', 'content-type': 'application/json', 'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "Application does not have permission for this action"', 'access-control-allow-origin': '*', 'facebook-api-version': 'v21.0', 'strict-transport-security': 'max-age=15552000; preload', pragma: 'no-cache', 'cache-control': 'no-store', expires: 'Sat, 01 Jan 2000 00:00:00 GMT', 'x-fb-request-id': 'AdPW917DHicbwf_BcDQjefZ', 'x-fb-trace-id': 'GgMW4uhpZ6c', 'x-fb-rev': '1019070744', 'x-fb-debug': 'MDyBQSjySv6yff/oHxWYRKumHmG8US0ihFmU1e++lp82Rvl4Wdkx8H941VrTzAa+A+0mWpH4UJGe7O2twiQo+A==', date: 'Tue, 24 Dec 2024 14:15:00 GMT', 'proxy-status': 'http_request_error; e_proxy="AcIRmeVGGgnFz6ReMPQASWClmORz6EpdjTZakR6-IbagoYZgNuhb6S78I63ZGfLvjVM5PMcIwkNwjsLbnejN"; e_fb_binaryversion="AcLaA3wGojmwqHz7tP0Haa3lZDbK5Rd-ZoWLSgGAoDTzdKy3uIc3J2eMvr9J7W1Td8j0-38ehQAYxacNuhT7DNVEamHiMw835yI"; e_fb_httpversion="AcJQ_lLWCibY4Gedvy1VFhJkh0WdUlFwaBddMSSyV5DFFgCuRf_4rcCF4ukW"; e_fb_responsebytes="AcLo9_AzJM5F99vFLeEpTTUXhztS90GDtqfIRrSKrkavMtxRjNzpg9XiX7Zf"; e_fb_requesttime="AcIMqDOrC30bjooIWRoufYyIIpW-j5uyT3gJ3E-qYqVzBxBUwcmVcmnpNO3rWGuomiZTJmxODw"; e_fb_requesthandler="AcKqL949LKkaAzTjREs2NHozoB4QHj5FYI6qR9Md0P-XVdaUmvsotI2dgpKBLlPPH8JEj-AYwhk"; e_fb_hostheader="AcLmt5tfvYdsV31Zp1TdTmsq24BcoqdKzmPzZ2svKnolKQRfJiITDUd9nxV1hZLpLPP13ehF9nkU_LBF"; e_fb_requestsequencenumber="AcJsHYHK2G4Xfh0UyJBjkFILYRMtaZ0bwdWwZpNOzBcoGGGmwhHH8D_Q9Z2O"; e_upip="AcKJT-6oUCfkvOW40SH_T6_sCCTzZdsLtwZbvSpI3Zp5t2Pw8Vgcfo6XzYv0pANtQo71WgGh5D7fAZEqOoXothEkH1pUHZ8rHrFnG8s"; e_fb_builduser="AcIUCLyLfJ-IYE2kHqWd538vUH5HXajrZWWXjfGch1p5VN_iUjgrAOgFCpmOMFvpG4E"; e_fb_vipport="AcK3iK_nAfs6J3BO9FavWAeOJX5XzojscznkII20oFyAjjgq3CARMARImL7T"; e_clientaddr="AcLiKnkjKBiYS2Wpm8H-WkU5cOlqFyRP-2EZx28nzyA4X7uC2QEPOxXrixwmHv8HAnFgYw3NS_3BnDYy-hX2Eo9U5WGjYE9K7TEUeCTGp7qVn8w"; e_fb_vipaddr="AcJCFIDyQLBU14_fAFqHRsbYxMXisVQCrtUO_tXIquvCVYyPZ5JVR-mt3-Gr8RtvlnyQhHV-1ueoya2Kv2rxb_zWcwKFQGQXkA"; e_fb_configversion="AcI5GaZ2U9u_mnevhi-X4rNuypRCuFVWLOUnJmPkGVtLRWlmqgrMJhs-BO5rug", http_request_error; e_proxy="AcIy2IYT9fAZ5XI4fdbEYduaAxi7tC8DnRO4RtWTuKqWmS0VLfzONpY7Y9PZeTOrN0sKY0XtiFBrlIQ"; e_fb_binaryversion="AcLsH5QKE9Hro-UPZrFpgK8ZOhirxvXpkWDEPgDx0QQ9kqpc9W7KdQWllAsijt4KXBsR8cKtEJJxLxPrXu5OgTf3avRHueVuQpM"; e_fb_httpversion="AcI6EPtl0hQ_n-LGvZJItnA9MCkNLoxZUsym2cphYUqa--KOCwfHJJjZAvG0"; e_fb_responsebytes="AcKOz6JfUFkDXI8EAwodhV3WQGfmQzfF5ZL1ZXD-Kw27KZIhyu7CK54drEHu"; e_fb_requesttime="AcLbqxa6rxRCFT1X2egBAlS8gUm23nhNsojM7C62pq7lle-028WVN28uHtoR2ENh-6rIWFFC1Q"; e_fb_requesthandler="AcJjOWAMKmhCl5R51PlvwPN3Mwzo36846lEq-MKMegDKEKD9C9QoqZ4d9vjKfBXiWjeRRub-pRQ"; e_fb_hostheader="AcJm5EPfImYtIRCMbTjniEGjv1O2AJroII4mc1YJ1jJO4UnjfiUQJWzZ9wk9rbFJd-9t1NpSN59JSVta"; e_fb_requestsequencenumber="AcIVGL0hNtEiR7F4Cpq7Q8wkXGyi9VDdjPYvkNzyW0oalHh8oXN8QoyB-g"; e_upip="AcLvyAPFZj84KRsT40V0bH8E9i2AHjyrj-e0yPE39uf3RXm7GfVbwqBYHJE1KA9lekV_57Jxql2P8CyZ0pmYGStNZFF3tA0dpQ"; e_fb_builduser="AcIAtddThsj35ocYK2qjH2G5tm1HwcfBoMJDmidD_1Qs-4wyTZXNarR3QROW8EmgrA4"; e_fb_vipport="AcLA85Yt9AuvhbJMm9qc2lQfru57d806SbIZEqYbiplKCnvq4grVNNkvZK3w"; e_clientaddr="AcJ0x9UJj_WwRVSIjzaWCe-UdvxUDb43sCi7ZxGbsr_QTtpHyv2HVRf8PmTwxTG3j1aE-i0XjnHU96xfi9XPNtaDUaWCxvsXjKfuNak2vO5KyzBaNBI8uVo"; e_fb_vipaddr="AcIMcugjT_Iz_MY8s5x46NOifxPUOFS9hbTbamxKZ_mmva_el565_FogZ5WiOnSZotfhDod4yy2E8MdbfDmojuFayeK-nlk8FjY"; e_fb_configversion="AcKUoU6Bi_piWI5CUuGpRhpD-toEtyu2ZEYgEfwSh5I13TumP_pyZBO5k54qWw"', 'x-fb-connection-quality': 'GOOD; q=0.7, rtt=65, rtx=0, c=10, mss=1228, tbw=3437, tp=-1, tpl=-1, uplat=296, ullat=0', 'alt-svc': 'h3=":443"; ma=86400', connection: 'keep-alive', 'content-length': '247' }, method: 'GET', url: 'https://graph.facebook.com/v21.0/ads_archive?search_terms=Shopify&ad_type=All&ad_reached_countries=%5B%22US%22%5D&access_token=EAAWZAJ9kprooBO379ZC8uJJ4qrYynoaKJRDXxIlPw1yYoHOXCHpVd4ONtGx8s1WugxOrAJJ18P7X2VeKzei4ZBM2d5CI98qGGaSp6XZALtzRXs6TYpZBADNN64UYOQdHxTamcsUOVlCZCvE2mkkPaqcpaM8LfgGR6BxeUIFfnlRV1jkDceg8sqWZAZCZCc9RkxQcQVJyAWBEd6udQh4BImr0T2VtwbOcBrYgkPAZDZD', data: {} }

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Arsalan Wani

79305771

Date: 2024-12-24 14:05:29
Score: 2.5
Natty:
Report link

message = prompt("Enter text"); if(message == "null" || message == null || message == "" );

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohammad shahnowaz

79305763

Date: 2024-12-24 14:03:29
Score: 2.5
Natty:
Report link

I encountered a similar issue with XGBClassifier and GridSearchCV. I tried the solution mentioned earlier—uninstalling and reinstalling an older version of sklearn (version 1.5.2 in my case)—but the problem still persists.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aanshik Tiwari

79305760

Date: 2024-12-24 14:01:28
Score: 2
Natty:
Report link

Did you try with a GPO with a PDOL field with 2 bytes at 0?

80 A8 00 00 04 83 02 00 00 00

It should be the same than what you sent with empty PDOL field, but maybe this specific card is expecting a PDOL with some data. From other answers found on StackOverflow, this PDOL formatting may be required by some MC cards:

https://stackoverflow.com/a/69540076/23786564

https://stackoverflow.com/a/50253256/23786564

I sadly don't have anymore the MasterCard specification (which can add some additional requirements to EMVCo standard), so I don't remember exactly if there was a requirement somewhere related to this.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-2): Did you try
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Gradlon

79305759

Date: 2024-12-24 14:00:28
Score: 3
Natty:
Report link

As with any opensource project, I would start by explain your matter in a Github Issue.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: PanZWarzywniaka

79305757

Date: 2024-12-24 13:58:28
Score: 1.5
Natty:
Report link

"How to reassign a task if the server executing it dies? If the server dies, it can't mark the task as open. What are efficient ways to accomplish this?"

If decentralized, you have to work with consensus, if a central (master) server instance is in place, it is the one that is the master who is distributing jobs. So this server is the one to decide if a job has completed or not right?

Simplify the complex problem as much as you can, in other words what you're doing is simply scheduling tasks to nodes. Add:

Based on these, your central server will know if the node executing went offline, and ensure tasks execution is rotated across the available nodes.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: menelique777

79305750

Date: 2024-12-24 13:55:27
Score: 3
Natty:
Report link

you can first run php artisan route:list then you could run php artisan route:clear

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: yassine afaila

79305742

Date: 2024-12-24 13:48:26
Score: 1.5
Natty:
Report link

toInt is deprecated now, use .code instead:

numbers.add(num.code - '0'.code)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: axolotlKing0722

79305725

Date: 2024-12-24 13:39:24
Score: 3.5
Natty:
Report link

Perfect answer Denied5! This really saved my day.

To add a small note fore everyone running into the same issue:

Reasons:
  • Blacklisted phrase (2): saved my day
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jeroen Appel

79305723

Date: 2024-12-24 13:38:24
Score: 1
Natty:
Report link

Check the .env file there APP_DEBUG variable:

Replace that with true to false: APP_DEBUG=false

After that run this command on terminal: php artisan config:clear

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Developer Nilesh

79305722

Date: 2024-12-24 13:38:24
Score: 0.5
Natty:
Report link

It seems you have switched the width and height in your CompressSave function. It works if you use:

int _width = img.cols;
int _height = img.rows;

Also note that OpenCV uses BGR as format when dealing with images, so probably you will want to use TJPF_BGR instead of TJPF_RGB.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tom Deblauwe

79305716

Date: 2024-12-24 13:36:23
Score: 0.5
Natty:
Report link

Take a look at https://www.npmjs.com/package/eslint-plugin-react-perf, as they says in documentation, it consider as warning :

<Item config={{}} />

<Item config={new Object()} />

<Item config={Object()} />

<Item config={this.props.config || {}} />

<Item config={this.props.config ? this.props.config : {}} />

<div style={{display: 'none'}} />

but not this :

<Item config={staticConfig} />
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Pico12

79305713

Date: 2024-12-24 13:34:22
Score: 2
Natty:
Report link
  1. Remove the "AZURE_CLIENT_ID + AZURE_TENANT_ID" from your environment variables so the Azure Identity client falls back to using system-assigned managed identity
  2. Check if the system-assigned managed identity of your Arc-enabled server has proper access to your Key Vault.
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andrew Matveychuk

79305708

Date: 2024-12-24 13:33:22
Score: 4.5
Natty: 5
Report link

SystemUI.setBackgroundColorAsync("black");

https://docs.expo.dev/versions/latest/sdk/system-ui/

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Nacef OTAY

79305699

Date: 2024-12-24 13:31:21
Score: 0.5
Natty:
Report link

Please first check for any errors related to load event

admob.on('admob.banner.load', (evt) => {
   console.log('Banner ad loaded successfully.');
 });
 admob.on('admob.banner.load_fail', (evt) => {
   console.error('Banner ad failed to load:', evt);
 });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chetan

79305698

Date: 2024-12-24 13:30:21
Score: 2
Natty:
Report link

I used this post to get to my answer although my issue was more generic (just parse an array of strings in my translations file). I am also using typescript. In case anyone here is stuck with the same issue: you can access the messages as kate shows above, but in typescript you also must first cast the object as unknown first before casting it to a string[] which can then be mapped normally.

const intl = useIntl(); 
const safetyTips = intl.messages["safety-tips"] as unknown as string[];
console.log(safetyTips);

<ul>
  {safetyTips.map((tip, index) => (
    <li key={index}>{tip}</li>
  ))}
</ul>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): stuck with the same issue
  • Low reputation (0.5):
Posted by: I_Literally_Cannot

79305695

Date: 2024-12-24 13:28:20
Score: 3.5
Natty:
Report link

Disabling the Async-service during import helped solve the problem.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Roman Kopaev

79305691

Date: 2024-12-24 13:28:19
Score: 9 🚩
Natty: 6.5
Report link

Have you found a solution ?

I'm trying to do the same thing and I got the same problem. If anybody has a solution ?

Reasons:
  • Blacklisted phrase (1): I got the same problem
  • Blacklisted phrase (1): trying to do the same
  • RegEx Blacklisted phrase (2.5): Have you found a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Naikyz

79305688

Date: 2024-12-24 13:27:19
Score: 1
Natty:
Report link

I don't have a specific solution though: after leaving the script for a few days and trying it today with the same code, it worked. If you encounter such problems: It may well be that the error lies with Steam, or that the Steam servers are blocking your script. Try it a day later with a different ip and new cookie data etc.

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Limes

79305686

Date: 2024-12-24 13:26:18
Score: 1.5
Natty:
Report link

enter image description here

[enter image description here]enter image description here3

I had several almost identical errors and it worked for me to change the port shopify theme dev --store theme.myshopify.com --port=4000

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yuri Lucio

79305677

Date: 2024-12-24 13:17:17
Score: 1
Natty:
Report link

I don't know if your case is the same as mine but I accidentally tried to inject Mapper instead of IMapper when using Automapper. That seemed seemed to be the one causing the issue, now it works.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: underscore

79305676

Date: 2024-12-24 13:17:17
Score: 0.5
Natty:
Report link

I had the same problem like a month ago and the solution in my case was really easy, I don´t know if it may apply to you. I was using genexus, so the pom.xml or build.gradle solution was not for me, so I searched who was the responsible for generating and compiling the program, and it turned out that this guy didn´t have the jaxb-api-2.3.1.jar, so when he built it the reference was not there. I just gave him the .jar, he built it again and it worked out perfectly. Maybe it´s a little basic but check it out if you have it in the lib carpet.

I hope this works, cheers and merry christmas!!

Reasons:
  • Blacklisted phrase (1): cheers
  • Blacklisted phrase (0.5): check it out
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): I had the same
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Juampi Martinez

79305674

Date: 2024-12-24 13:16:16
Score: 0.5
Natty:
Report link

Recently I wanted to use the Aer device but the solution of @roy-elkabetz didn't work for me. Maybe the library has changed the name of the package or the way you should import it.

After a little bit of search I found the working solution:

First, Install the "pennylane_qiskit" package by running:

!pip install pennylane_qiskit 

Then, import the AerDevice and use it to create your device:

from pennylane_qiskit import AerDevice
dev = AerDevice(wires=4)

The link to the original explanation: Link

Reasons:
  • Whitelisted phrase (-2): solution:
  • Contains signature (1):
  • Has code block (-0.5):
  • User mentioned (1): @roy-elkabetz
  • Low reputation (1):
Posted by: Amir

79305669

Date: 2024-12-24 13:13:16
Score: 0.5
Natty:
Report link

I'm not familiar with SDKMan, but this short script in my bin directory works in Linux for me. Hopefully it does so in macOS:

#!/bin/sh

export JAVA_HOME=/home/me/java/jdk-17
export PATH=$JAVA_HOME/bin:$PATH

From the command line I have to call it this way: . jdk17

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Karsten

79305660

Date: 2024-12-24 13:05:14
Score: 2
Natty:
Report link

I know, this is a quite old post. However, here a very simple thing which helped in my case: In Spyder, you can click Run > Configuration per file, which will give you plenty of options in where your Spyder-IDE-Script is launched. I used the option "Execute in an external system terminal" - same effect as described in the other answer, but very simple to execute.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Daniel

79305647

Date: 2024-12-24 12:57:13
Score: 1.5
Natty:
Report link

The custom build mentioned by Ostkontentitan has not been updated in many years. Here is a way to pinch-zoom the canvas with later versions. I did this using Fabric.js 5.3.1:


Before I go into detail please be aware there are two ways you can do this, either by re-drawing the canvas content or by scaling the canvas using CSS transform: scale(). The latter is vastly more performant.

I made a demo comparing drag and zoom using Fabric.js versus using CSS transform: https://codepen.io/Fjonan/pen/azoWXWJ


Since you requested it I will go into detail on how to do it using Fabric.js native functions although I recommend looking into CSS transform.


Setup something like this:

<canvas id=canvas>
</canvas>

For touch events we have to attach our own event listeners since Fabric.js does not (yet) support touch events as part of their handled listeners.

Fabric.js will create its own wrapper element canvas-container which I access here using canvas.wrapperEl.

const canvas = new fabric.Canvas("canvas",{
  allowTouchScrolling: false,
  // …
})

let pinchCenter,
    initialDistance

canvas.wrapperEl.addEventListener('touchstart', pinchCanvasStart)    
canvas.wrapperEl.addEventListener('touchmove', pinchCanvas)

/**
 * Save the distance between the touch points when starting the pinch
 */
function pinchCanvasStart(event) {
  if (event.touches.length !== 2) {
    return
  }
    
  initialDistance = getPinchDistance(event.touches[0], event.touches[1])
}

/**
 * Start pinch-zooming the canvas
 */
function pinchCanvas(event) {
  if (event.touches.length !== 2) {
    return
  }

  setPinchCenter(event.touches[0], event.touches[1])

  const currentDistance = getPinchDistance(event.touches[0], event.touches[1])
  let scale = (currentDistance / initialDistance).toFixed(2)
  scale = 1 + (scale - 1) / 20 // slows down scale from pinch

  zoomCanvas(scale * canvas.getZoom(), pinchCenter)
}

/**
 * Zoom the canvas content using fabric JS
 */
function zoomCanvas(zoom, aroundPoint) {
  canvas.zoomToPoint(aroundPoint, zoom)
  canvas.renderAll()
}

/**
 * Putting touch point coordinates into an object
 */
function getPinchCoordinates(touch1, touch2) {
  return {
    x1: touch1.clientX,
    y1: touch1.clientY,
    x2: touch2.clientX,
    y2: touch2.clientY,
  }
}

/**
 * Returns the distance between two touch points
 */
function getPinchDistance(touch1, touch2) {
  const coord = getPinchCoordinates(touch1, touch2)
  return Math.sqrt(Math.pow(coord.x2 - coord.x1, 2) + Math.pow(coord.y2 - coord.y1, 2))
}
  
/**
 * Pinch center around wich the canvas will be scaled/zoomed
 */
function setPinchCenter(touch1, touch2) {    
  const coord = getPinchCoordinates(touch1, touch2)

  const currentX = (coord.x1 + coord.x2) / 2
  const currentY = (coord.y1 + coord.y2) / 2
    
  pinchCenter = {
    x: currentX,
    y: currentY,
  }    
}

You can easily add zoom with mouse wheel as well adding this:

canvas.on('mouse:wheel', zoomCanvasMouseWheel)

/**
 * Zoom canvas when user used mouse wheel
 */
function zoomCanvasMouseWheel(event) {
  const delta = event.e.deltaY
  let zoom = canvas.getZoom()

  zoom *= 0.999 ** delta
  const point = {x: event.e.offsetX, y: event.e.offsetY}
    
  zoomCanvas(zoom, point)
}

Again, this is a very expensive way to handle zoom and drag since it forces Fabric.js to re-render the content on every frame. Even when limiting the event calls using throttle you will not get smooth performance especially on mobile devices. Consider using an alternative method with CSS transform as I have described in this answer.

Reasons:
  • RegEx Blacklisted phrase (1): I go into detail please
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fjonan

79305630

Date: 2024-12-24 12:46:11
Score: 1
Natty:
Report link

Instead of using MQQueueConnectionFactory MQConnectionFactory resolves the issue.

MQConnectionFactory mqQueueConnectionFactory = mqConnectionFactoryFactory.createConnectionFactory(MQConnectionFactory.class);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Amby

79305628

Date: 2024-12-24 12:44:11
Score: 1.5
Natty:
Report link
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>

$(document).on('keypress', function(e){
    if(e.which == 13){
        e.preventDefault;
        console.log('323');
    }
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28919203

79305624

Date: 2024-12-24 12:42:10
Score: 1
Natty:
Report link

It would be more precise if you add a screenshot of 'trace'.

Check if Camera- Environment- Background Type is set to Uninitialized. Change it to Solid Color or Skybox might solve your problem.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: enosh15dev

79305618

Date: 2024-12-24 12:39:09
Score: 1.5
Natty:
Report link

This trigger is automatically created when using SignalR or SQL table dependency for real-time synchronization. We cannot identify which one is currently being used. We have an option to check the trigger at certain intervals and then place the new trigger there and remove the old one. I don't know how accurate this will be, it's a guess solution.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: tech

79305610

Date: 2024-12-24 12:37:09
Score: 1.5
Natty:
Report link

You can simply install scrapy-contrib-bigexporter to directly save to parquet from Scrapy: https://github.com/ZuInnoTe/scrapy-contrib-bigexporters

It supports parquet, orc and avro. It has a couple of configuration options that allow you to be flexible (e.g. automatic inference of schema, compression etc.).

See here also an example on how to use parquet: https://github.com/ZuInnoTe/scrapy-contrib-bigexporters/tree/main/examples/quotes_parquet

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jörn Franke

79305602

Date: 2024-12-24 12:35:08
Score: 0.5
Natty:
Report link

I tried the first answer literally; the first 3 commands worked but the last one leads to following error: Set-AuthenticodeSignature: Cannot bind parameter 'Certificate'. Cannot convert value "Cert:\LocalMachine\Root\5B23597B139C09A75DE9BA4F9DA5A4691EDB338B" to type "System.Security.Cryptography.X509Certificates.X509Certificate2". Error: "Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch." (Note that there is no error at all in the .ps1 path, between "") The same errors occurred when I added the flags -filepath and -Certificate Thus, Self-Signing appears to work only for the administrator himself. The only solution to allow other users to run the adm's selfsigned .ps1 seems to be setting ExecutionPolicy to unrestricted…

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Bughater

79305600

Date: 2024-12-24 12:34:08
Score: 1
Natty:
Report link

Additionally to @Marco's answer, if you have a kendo drop down list that you only want to enable on Add,and not on Edit, you can also use the onEdit event handler like this (typeScript code) :

public onEdit = (e) => {
  if (!e.model.isNew()) {
    var region = e.container.find("input[name='City']").data('kendoDropDownList');
    region.enable(false);
  }
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Marco's
  • Low reputation (0.5):
Posted by: Cristian Rusanu

79305598

Date: 2024-12-24 12:33:08
Score: 1.5
Natty:
Report link

In my case I messed up with configuration values:

schema_config.configs.object_store was set to file_system instead of s3

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: marfer

79305593

Date: 2024-12-24 12:30:07
Score: 2.5
Natty:
Report link

I would recommend you read up on laravel factories. This has a much better and dynamic approach to seeding your table.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Olumuyiwa

79305592

Date: 2024-12-24 12:30:07
Score: 3
Natty:
Report link

Try deleting the hidden .vs folder in your solution directory and it will reset your project profile for visual studio. After that it should fix the issue.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ankush Patil

79305590

Date: 2024-12-24 12:29:06
Score: 3
Natty:
Report link

If you want the source out of the event arg you have to set it the right type : it has to be a RoutedEventArgs instead.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bernard XAVIER

79305587

Date: 2024-12-24 12:28:06
Score: 3.5
Natty:
Report link

Go to Setting => update and security => For developers, change from Microsoft store appss to Developer mode, then try again

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: quangha9795

79305585

Date: 2024-12-24 12:28:06
Score: 0.5
Natty:
Report link

Drawing on the answer of "B_26_Gaurav Joshi"

If you agree naming of your incoming files as YYYYMMDD you can find the latest by NAME rather than by Last Modified. The name often indicates the most recently updated in a batch of files that may have arrived in a random order.

Then use the same technique as "B_26_Gaurav Joshi" outlines but with file name segments rather than modified dates to sort for the latest data point.

BUT - there is a problem both with this solution and the overall idea of a sort. Every day the folder gets bigger and the sort is slower. I am seeing > 15 minutes for 4000+ files.

The further solution is to archive some files (ha obviously) or if you want them all on hand use a modified date filter in the Get Metadata so you are only looking at receipts for the last few days and progress only those into the sort. Effectively using both techniques together for the optimum result :/

Reasons:
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: TheMaskedGuestCoder

79305580

Date: 2024-12-24 12:26:06
Score: 1
Natty:
Report link

i hope my answer will help you so i had similar issue with this and i solved by putting the css inside tag and it's working fine also if you use some sort of fonts you need to install fonts and put them inside the storage/fonts and load them using @font in css

Reasons:
  • Whitelisted phrase (-2): i solved
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @font
  • Low reputation (1):
Posted by: yassine afaila

79305574

Date: 2024-12-24 12:24:05
Score: 1.5
Natty:
Report link

It sounds like you're facing an issue where OnInitializedAsync is called twice when you directly hit the URL in the browser, but only once when navigating using a link. This is likely due to how the component is being instantiated in both scenarios, particularly with regard to how Blazor handles page navigation and re-renders.

In Blazor, when you navigate to a page via a URL directly (e.g., you refresh the page or type the URL directly into the browser), Blazor may re-initialize the component multiple times due to a few potential causes, such as component caching, re-rendering behavior, or how OnInitializedAsync is handled in different lifecycle phases.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28918983

79305568

Date: 2024-12-24 12:21:04
Score: 1.5
Natty:
Report link

Laurens code uses a custom build version of Fabric.js that has not been updated in a while (as of December 2024) and is many versions behind. I build my own version of panning and zooming for Fabric 5.3.1 - both with mouse wheel and pinch gesture - using CSS transform which is vastly more performant and then updating the canvas after the zoom ended.


I created a CodePen showing the solution I propose here: https://codepen.io/Fjonan/pen/QwLgEby

I created a second CodePen comparing a pure Fabric.js with CSS transform: https://codepen.io/Fjonan/pen/azoWXWJ (Spoiler: CSS is a lot smoother)


So this is how you can achieve panning and zooming the entire canvas with both mouse and touch.

Setup something like this:

<section class="canvas-wrapper" style="overflow:hidden; position:relative;">
  <canvas id=canvas>
  </canvas>
</section>

Fabric.js will create its own wrapper element canvas-container which I access here using canvas.wrapperEl.

This code handles dragging with mouse:

const wrapper = document.querySelector('.canvas-wrapper')
const canvas = new fabric.Canvas("canvas",{
  allowTouchScrolling: false,
  defaultCursor: 'grab',
  selection: false,
  // …
})
let lastPosX, 
    lastPosY

canvas.on("mouse:down", dragCanvasStart)
canvas.on("mouse:move", dragCanvas)

/**
 * Save reference point from which the interaction started
 */
function dragCanvasStart(event) {
  const evt = event.e || event // fabricJS event or touch event
    
  // save the position you started dragging from
  lastPosX = evt.clientX
  lastPosY = evt.clientY
}

/**
 * Start dragging the canvas using Fabric.js events
 */
function dragCanvas(event) {    
  const evt = event.e || event // fabricJS event or touch event

  // left mouse button is pressed if not a touch event
  if (1 !== evt.buttons && !(evt instanceof Touch)) {
    return
  }
    
  translateCanvas(evt)
}

/**
 * Convert movement to CSS translate which visually moves the canvas
 */
function translateCanvas(event) {    
  const transform = getTransformVals(canvas.wrapperEl)

  let offsetX = transform.translateX + (event.clientX - (lastPosX || 0))
  let offsetY = transform.translateY + (event.clientY - (lastPosY || 0))

  const viewBox = wrapper.getBoundingClientRect()

  canvas.wrapperEl.style.transform = `translate(${tVals.translateX}px, ${tVals.translateY}px) scale(${transform.scaleX})`

  lastPosX = event.clientX
  lastPosY = event.clientY
}

/**
 * Get relevant style values for the given element
 * @see https://stackoverflow.com/a/64654744/13221239
 */
function getTransformVals(element) {
  const style = window.getComputedStyle(element)
  const matrix = new DOMMatrixReadOnly(style.transform)    
  return {
    scaleX: matrix.m11,
    scaleY: matrix.m22,
    translateX: matrix.m41,
    translateY: matrix.m42,
    width: element.getBoundingClientRect().width,
    height: element.getBoundingClientRect().height,
  }
}

And this code will handle mouse zoom:

let touchZoom
canvas.on('mouse:wheel', zoomCanvasMouseWheel)

// after scaling transform the CSS to canvas zoom so it does not stay blurry
// @see https://lodash.com/docs/4.17.15#debounce
const debouncedScale2Zoom = _.debounce(canvasScaleToZoom, 1000) 

/**
 * Zoom canvas when user used mouse wheel
 */
function zoomCanvasMouseWheel(event) {
  const delta = event.e.deltaY
  let zoom = touchZoom

  zoom *= 0.999 ** delta
  const point = {x: event.e.offsetX, y: event.e.offsetY}
    
  scaleCanvas(zoom, point)
  debouncedScale2Zoom()
}

/**
 * Convert zoom to CSS scale which visually zooms the canvas
 */
function scaleCanvas(zoom, aroundPoint) {
  const tVals = getTransformVals(canvas.wrapperEl)
  const scaleFactor = tVals.scaleX / touchZoom * zoom

  canvas.wrapperEl.style.transformOrigin = `${aroundPoint.x}px ${aroundPoint.y}px`
  canvas.wrapperEl.style.transform = `translate(${tVals.translateX}px, ${tVals.translateY}px) scale(${scaleFactor})`

  touchZoom = zoom
}

/**
 * Converts CSS transform to Fabric.js zoom so the blurry image gets sharp 
 */
function canvasScaleToZoom() {    
  const transform = getTransformVals(canvas.wrapperEl)
  const canvasBox = canvas.wrapperEl.getBoundingClientRect()
  const viewBox = wrapper.getBoundingClientRect()

  // calculate the offset of the canvas inside the wrapper
  const offsetX = canvasBox.x - viewBox.x
  const offsetY = canvasBox.y - viewBox.y

  // we resize the canvas to the scaled values
  canvas.setHeight(transform.height)
  canvas.setWidth(transform.width)
  canvas.setZoom(touchZoom)

  // and reset the transform values
  canvas.wrapperEl.style.transformOrigin = `0px 0px`
  canvas.wrapperEl.style.transform = `translate(${offsetX}px, ${offsetY}px) scale(1)`

  canvas.renderAll()
}

Now for touch events we have to attach our own event listeners since Fabric.js does not (yet) support touch events as part of their regularly handled listeners.

let pinchCenter,
    initialDistance

wrapper.addEventListener('touchstart', (event) => {
  dragCanvasStart(event.targetTouches[0])
  pinchCanvasStart(event)
})
    
wrapper.addEventListener('touchmove', (event) => {      
  dragCanvas(event.targetTouches[0])
  pinchCanvas(event)
})

wrapper.addEventListener('touchend', pinchCanvasEnd)

/**
 * Save the distance between the touch points when starting the pinch
 */
function pinchCanvasStart(event) {
  if (event.touches.length !== 2) {
    return
  }
    
  initialDistance = getPinchDistance(event.touches[0], event.touches[1])
}

/**
 * Start pinch-zooming the canvas
 */
function pinchCanvas(event) {
  if (event.touches.length !== 2) {
    return
  }

  setPinchCenter(event.touches[0], event.touches[1])

  const currentDistance = getPinchDistance(event.touches[0], event.touches[1])
  let scale = (currentDistance / initialDistance).toFixed(2)
  scale = 1 + (scale - 1) / 20 // slows down scale from pinch

  scaleCanvas(scale * touchZoom, pinchCenter)
}

/**
 * Re-Draw the canvas after pinching ended
 */
function pinchCanvasEnd(event) {
  if (2 > event.touches.length) {
    debouncedScale2Zoom()
  }
}

/**
 * Putting touch point coordinates into an object
 */
function getPinchCoordinates(touch1, touch2) {
  return {
    x1: touch1.clientX,
    y1: touch1.clientY,
    x2: touch2.clientX,
    y2: touch2.clientY,
  }
}

/**
 * Returns the distance between two touch points
 */
function getPinchDistance(touch1, touch2) {
  const coord = getPinchCoordinates(touch1, touch2)
  return Math.sqrt(Math.pow(coord.x2 - coord.x1, 2) + Math.pow(coord.y2 - coord.y1, 2))
}
  
/**
 * Pinch center around wich the canvas will be scaled/zoomed
 * takes into account the translation of the container element
 */
function setPinchCenter(touch1, touch2) {    
  const coord = getPinchCoordinates(touch1, touch2)

  const currentX = (coord.x1 + coord.x2) / 2
  const currentY = (coord.y1 + coord.y2) / 2

  const transform = getTransformVals(canvas.wrapperEl)
    
  pinchCenter = {
    x: currentX - transform.translateX,
    y: currentY - transform.translateY,
  }    
}

This effectively moves the canvas inside a wrapper with overflow: hidden and updates the canvas after zoom. Add to it some boundaries to avoid the canvas from being moved out of reach and limit the zoom and you will get a performant way to pan and zoom both for mouse and touch devices. You will find additional quality of life stuff like this in my CodePen demo I left out here to not make it too complicated.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fjonan

79305567

Date: 2024-12-24 12:21:04
Score: 2.5
Natty:
Report link

The max-width property does not work effectively for columns in a table when table-layout is fixed is applied. So for that you have to assign width:50px instead of max-width in table row and table header css

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ashfaq shaikh

79305563

Date: 2024-12-24 12:19:04
Score: 0.5
Natty:
Report link

When adding an extension using the Quarkus CLI, if you run quarkus extension add <extension> in the deployment module, it will add the runtime dependency by default, not the deployment one. To add the corresponding deployment dependency, you'll need to add it manually in your deployment module’s pom.xml.

For example, add the following to the pom.xml of the deployment module:

<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-rest-openapi-deployment</artifactId>
    <scope>provided</scope>
</dependency>

Currently, there is no Quarkus CLI command that automatically adds deployment dependencies, so this step must be done manually.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When addin
  • Low reputation (1):
Posted by: Max Culley

79305559

Date: 2024-12-24 12:18:04
Score: 1
Natty:
Report link

This row get you the error:

services.Configure<AWSConfiguration>(configuration.GetSection("AWSConfiguration"));

The extension

Configure<TOptions>(this IServiceCollection services, IConfiguration config)

is in NuGet package - Microsoft.Extensions.Options.ConfigurationExtensions. Install it to get your error fixed.

P.S. github link

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: VladOhotnikov

79305558

Date: 2024-12-24 12:18:04
Score: 0.5
Natty:
Report link

Use https://jwt.io/ to generate bearer token. Use this: Algorithm: ES256 Header: { "alg": "ES256", "kid": "[your key id]", "typ": "JWT" } Payload: { "iss": "[your issuer id]", "iat": 1734613799, "exp": 1734614999, "aud": "appstoreconnect-v1" } Note that 'exp' should be less than 1200 seconds from 'iat'. Insert your private key as entire text from downloaded p8 file into 'verify signature' field. Copy generated bearer token from the 'encoded' field.

POST https://api.appstoreconnect.apple.com/v1/authorization use your bearer token. It works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ol camomile

79305551

Date: 2024-12-24 12:16:03
Score: 3.5
Natty:
Report link

using updatemany instead of update can do the work for non-unique fields

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shubhanshu Sharma

79305544

Date: 2024-12-24 12:11:02
Score: 0.5
Natty:
Report link

This can be achieved in sqlite with some "creative" use of the right-trim and string replacement functions.

# Table 'files' contain the fullname in the 'file' column
# .mode is set to line for readability

sqlite> SELECT
  file AS fullname,
  RTRIM(file, REPLACE(file, '\', '')) AS parentpath,
  REPLACE(file, 
    RTRIM(file, REPLACE(file, '\', '')),
    '') AS filename
FROM files

  fullname = C:\Users\Public\Music\iTunes\iTunes Media\Music\Nirvana\Last Concert In Japan\16 Smells Like Teen Spirit.mp3
parentpath = C:\Users\Public\Music\iTunes\iTunes Media\Music\Nirvana\Last Concert In Japan\
  filename = 16 Smells Like Teen Spirit.mp3

Why this works? We typically think of rtrim as a function that removes spaces or a specified trim string from the end of the source string. Thus rtrim('abc','c') = ab.

However, it actually is working on a match of any and all characters in any order at the end of both source and trim strings. Thus rtrim('abc','dec') = ab and rtrim('abc','cb') = a.

Knowing that, we first replace the path separators in the file string and rtrim it against the original string. Since only the filename portion matches, it is removed -- giving us the parent path we seek.

We then we then replace the parent path from the original string -- resulting in the filename we seek.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jason Blue

79305542

Date: 2024-12-24 12:11:01
Score: 14.5 🚩
Natty: 6.5
Report link

Did you find any solution? I am facing the same problem.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (3): Did you find any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find any solution
  • Low reputation (1):
Posted by: Soyeb

79305527

Date: 2024-12-24 12:02:59
Score: 3
Natty:
Report link

removing .git/index.lock solved it for me.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Foad Rezek

79305521

Date: 2024-12-24 11:59:58
Score: 0.5
Natty:
Report link

You are returning wrong data format for script node (https://thingsboard.io/docs/user-guide/rule-engine-2-0/transformation-nodes/#script-transformation-node).

You should get 8 different telemetries by using following script:

// Extract the payload string
var parts = msg.payload.split(",");

// Map the values to telemetry keys
var telemetry = {
    temp: parseFloat(parts[0].trim()),
    humi: parseFloat(parts[1].trim()),
    voci: parseFloat(parts[2].trim()),
    noxi: parseFloat(parts[3].trim()),
    pm10: parseFloat(parts[4].trim()),
    pm25: parseFloat(parts[5].trim()),
    pm40: parseFloat(parts[6].trim()),
    pm100: parseFloat(parts[7].trim())
};

// Return the formatted telemetry
return { msg: telemetry, metadata: metadata, msgType: msgType };

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sdaia

79305507

Date: 2024-12-24 11:56:57
Score: 2
Natty:
Report link

FLAVORS = [ "Banana", "Chocolate", "Lemon", "Pistachio", "Raspberry", "Strawberry", "Vanilla", ] a=FLAVORS for i in a: pass for j in range(a.index(i)+1,len(a)): if i==a[j]: pass else: print(f'{i}, {a[j]}')

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abhishek Kumar

79305506

Date: 2024-12-24 11:56:57
Score: 0.5
Natty:
Report link

I agree that storing large amount of files in a Zip or some sort archive and then unzipping would be ideal, but then you don't get the revisioning and tracking etc of the files like you do in git based project. That aside..

As per @peterduniho suggestion, to bulk change the files in visual studio, if you edit the project file (right click the project root -> "edit project file") in text, then find all your content tags and add a "CopyToOutputDirectory" child node with a value of PreserveNewest, this should change them all at once.

This can of course be done in bulk as a find/replace operation

Find "/>" Replace with "><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>/>"

Before find replace

<Content Include="GCDS\Customisation\CUIs\Cuix ICONS\2D_to_3D.bmp"/>

After find replace

<Content Include="GCDS\Customisation\CUIs\Cuix ICONS\2D_to_3D.bmp">
  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @peterduniho
  • Low reputation (0.5):
Posted by: Kapanther

79305484

Date: 2024-12-24 11:45:55
Score: 0.5
Natty:
Report link

For me I converted the timestamp column to character then its solved the issue

 to_char(DELIVERY_DATE, 'DD-MM-YYYY' ) as "DELIVERY DATE"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Abdullah

79305470

Date: 2024-12-24 11:39:54
Score: 2
Natty:
Report link

step:1 => Open your cmd by Run as administrator

step:2 => go to your project path and run Set NODE_OPTIONS="--max-old-space-size=16384"

step:3 => run project ng serve

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: codewithharshad

79305469

Date: 2024-12-24 11:39:53
Score: 9 🚩
Natty: 5.5
Report link

Did anyone find a solution to this problem?

Reasons:
  • RegEx Blacklisted phrase (3): Did anyone find a solution to this problem
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did anyone find a solution to this
  • Low reputation (1):
Posted by: Jitesh

79305464

Date: 2024-12-24 11:37:52
Score: 2.5
Natty:
Report link

As Pine Script executes on historical data only, you cannot directly access future candles. The security() function can be used, however, to reference higher timeframes or other symbols' future candles indirectly, but you should remember that any forecast will be based on past data, not actual future values.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sudha academy

79305460

Date: 2024-12-24 11:36:52
Score: 2
Natty:
Report link

What helped me on Windows 10 was ending the mysqld.exe process in Task Manager and restarting MAMP

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What help
  • Low reputation (0.5):
Posted by: nick722

79305450

Date: 2024-12-24 11:30:51
Score: 1
Natty:
Report link

It seems like this could be a session-related issue. How is your session configured in the .env file? If the session driver is set to "file", make sure the correct permissions are applied to the storage directory. You can set them using the following command:

chmod -R 775 storage

Also, ensure the correct owner and group are assigned to the directory.

For Backpack, it's crucial to have the APP_URL setting in your .env file configured correctly. Verify that it matches the URL you use to access your application.

After making these adjustments, clear and optimize your application's cache by running the following commands:

php artisan optimize:clear
php artisan basset:clear
php artisan optimize

If the issue persists, check the Laravel error logs (storage/logs/laravel.log) or your server's logs for more details.

Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: jcastroa87

79305446

Date: 2024-12-24 11:26:50
Score: 1.5
Natty:
Report link

This is probably happening because you selected Remote-SSH: Connect to Host... instead of Remote-SSH: Connect Current Window to Host... in the dropdown menu at the top of the window. You should use the former instead — this will keep the remote host connection in window you are currently in.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: exogy

79305444

Date: 2024-12-24 11:26:50
Score: 1
Natty:
Report link

For me, this worked:

use MongoDB\BSON\Regex;

$qb->field($field)->equals(new Regex($searchTerm));

Probably just dependencies are newer.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: some_guy

79305441

Date: 2024-12-24 11:23:49
Score: 2.5
Natty:
Report link

Ok, I figured the solution, Posting anyone who might be stuck with similar issue.

  1. The token has to be PublicToken NOT InternalToken. This was causing the 401.
  2. The objectId passed to the GetManifestAsync has to be the version of the model that was translated, which means, it is not the URN of the file, but the URN of the version itself. Eg: fileURN can be urn:adsk.wipprod:dm.lineage:C34W6MjMRY-ul8uoPhbRyQ, but the version that I am interested in is let's say v1 of this file. Its URN will be something like urn:adsk.wipprod:fs.file:vf.C34W6MjMRY-ul8uoPhbRyQ?versionId=1 So the versionURN needs to be base64 encoded and passed to GetManifestAsync
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): stuck with similar issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: theandroid

79305435

Date: 2024-12-24 11:22:49
Score: 1
Natty:
Report link

It seems like the key here is proper memory management. @Jon Spring's solution is perfectly fine. I'd just like to propose doing it with a separate file. For even better memory management, you could write the results to a file incrementally instead of keeping them in memory. Since it's millions of rows for each file, the RAM will be filled up easily. So I guess it would be best to read each file and inner joing it with other_dataset. Then writing it all in one output_file <- "merged_results.txt" which resides outside R on your local drive.

Data quality

Your data quality is quite bad, there are many instances where rows don't even have ids to join with. This will be a big problem, since there will be many to many relationships.

text file structure

How are the text files structured? Will they have headers? Are they comma separated? Do they all have proper ids?

Code

setwd(dirname(rstudioapi::getSourceEditorContext()$path)) # set the current script's location as working directory
library(dplyr)
library(data.table)

user_1<- structure(list(ID2 = c(3481890, 3500406, 3507786, 3507978, 3512641, 3528872, 3546395, 3546395, 3572638, 3578447, 3581236, 3581236, 3581236, 3581236, 3599403, 3602306, 3603380, 3604665, 3612597, 3623200, 3623200), country = c("India", "India", "India", "Israel", "India", "India", "India", "India", "Belgium", "Israel", 
                                                                                                                                                                                                                                          "India", "India", "India", "India", "India", "India", "United States", 
                                                                                                                                                                                                                                          "India", "Bulgaria", "India", "India"), id = c(197273, 197273, 
                                                                                                                                                                                                                                                                                         197273, 197273, 197273, 197273, 197273, 197273, 197273, 197273, 
                                                                                                                                                                                                                                                                                         197273, 197273, 197273, 197273, 197273, 197273, 197273, 197273, 
                                                                                                                                                                                                                                                                                         197273, 197273, 197273)), row.names = 2000000:2000020, class = "data.frame")

user_250<- structure(list(ID2 = c(1000003, 1000004, 1000004, 1000011, 
                                  1000012, 1000012, 1000013, 1000013, 1000014, 1000017, 1000019, 
                                  1000025, 1000042, 1000042, 1000043, 1000043, 1000044, 1000046, 
                                  1000048, 1000049), country = c("India", "United States", "United States", 
                                                                 "China", "Argentina", "Argentina", "United States", "United States", 
                                                                 "United States", "Netherlands", "Chile", "India", "Russia", "", 
                                                                 "Chile", "Chile", "United States", "United States", "Italy", 
                                                                 "United States"), id = c(NA_real_, NA_real_, NA_real_, NA_real_, 
                                                                                          NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, 
                                                                                          NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, NA_real_, 
                                                                                          NA_real_, NA_real_)), row.names = c(NA, 20L), class = "data.frame")

other_dataset<- structure(list(id = c(197273, 197273, 
                                      197273, 197273, 197273, 197273, 197273, 708822, 708822, 708822, 708822, 708822, 
                                      708822, NA_real_, NA_real_, NA_real_, NA_real_, 708822, 708822, 
                                      708822), year = c(1951, 1951L, 1951, 1951, 1951, 
                                                        1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 1951, 
                                                        1951, 1951, 1951, 1951, 1951, 1951)), row.names = c(NA, 
                                                                                                            20L), class = "data.frame")

# save two examples in texts folder
write.csv(user_1, "texts/user_1.txt")
write.csv(user_250, "texts/user_250.txt")

# Path to your folder
folder_path <- "texts"
output_file <- "merged_results.txt"

# Get list of files
file_list <- list.files(folder_path, pattern = "user_.*\\.txt$", full.names = TRUE)

# Process first file separately to create the output file
first_data <- read.delim(file_list[1], header = TRUE, sep = ",") # assuming the text files have comma separation and headers!
merged_data <- inner_join(first_data, other_dataset, by = "id")
fwrite(merged_data, output_file)
rm(first_data, merged_data)
gc()

# Process remaining files
for (file in file_list[-1]) {
  # Read and merge current file
  current_data <- read.delim(file_list[1], header = TRUE, sep = ",")
  merged_data <- inner_join(current_data, other_dataset, by = "id")
  
  # Append to output file
  fwrite(merged_data, output_file, append = TRUE)
  
  # Print progress
  cat("Processed:", basename(file), "\n")
  
  # Clean up
  rm(current_data, merged_data)
  gc()
}
Reasons:
  • Whitelisted phrase (-1): solution is
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @Jon
  • Low reputation (0.5):
Posted by: G-Man

79305433

Date: 2024-12-24 11:20:48
Score: 1
Natty:
Report link

I got a response from Apple Support, they confirm that indeed there is no such API method. Here's the relevant part of their response for posterity and clarity:

You are correct that the App Store Connect API doesn't provide a direct method to add a device to an existing provisioning profile. To include a new device, you need to create a new provisioning profile that incorporates the desired devices. This process involves deleting the existing profile and generating a new one with the updated device list.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dmitry Orlov

79305429

Date: 2024-12-24 11:18:48
Score: 1
Natty:
Report link

Changed this:

template <typename... Args>
void operator()(Args... args) {
        if (ptr)
        static_cast<B<Args...>*>(ptr)->function(std::forward<Args...>(args...)); 
}

To this:

template <typename... Args>
void operator()(Args&&... args) {
    if (ptr)
    static_cast<B<Args...>*>(ptr)->function(std::forward<Args>(args)...);
}
    

Looks like its working correctly

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: widejaw78

79305427

Date: 2024-12-24 11:17:47
Score: 5
Natty: 5
Report link

The solution by user459872 worked.Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): user459872
  • Single line (0.5):
  • Low reputation (1):
Posted by: Naveen Jain

79305426

Date: 2024-12-24 11:17:47
Score: 1
Natty:
Report link

Try allowing all paths when you set allowed origins.
So change this
configuration.setAllowedOrigins(List.of("http://localhost:4200"));

to something like this:
configuration.setAllowedOrigins(List.of("http://localhost:4200/**"));

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: crunchy_pasta

79305415

Date: 2024-12-24 11:10:45
Score: 1
Natty:
Report link

Here, I have created the new_version branch from the main branch, which already contains the latest version of the code.

images:

  1. I created the new_version branch from the main branch. [1]: https://i.sstatic.net/lGXxLfg9.png

2.Next, I made changes to the README.md file in the new_version branch, added and committed those changes, and then tried to merge the main branch into the new_version branch. However, since the new_version branch was created from the main branch, it showed "Already up to date." [2]: https://i.sstatic.net/LXl44Fdr.png

3.Keep in mind that if you merge the new_version branch back into the main branch, the main branch will be updated with the changes made in the new_version branch, effectively replacing the code in the main branch with the updated code from the new_version branch. [3]: https://i.sstatic.net/Yn9Hydx7.png

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jinal Desai

79305408

Date: 2024-12-24 11:07:44
Score: 4.5
Natty:
Report link

Just do a replace all for 'xlookup' with 'xlookup'... and all your #name errors will vanish. Excel away!

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ani

79305407

Date: 2024-12-24 11:05:42
Score: 12 🚩
Natty: 6
Report link

How did you manage to solve this problem? I have the same problem and I tried adding some flags like '--allow-running-insecure-content', but it didn't help.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you manage to solve this problem
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: grav

79305393

Date: 2024-12-24 10:59:41
Score: 0.5
Natty:
Report link

The most upvoted answer is the right approach of sending the request through CORS proxy. However, since Heroku no longer offers a free tier, the deployment part is a little bit outdated.

For a 2024 solution, you can host a CORS proxy yourself with Cloudflare Worker free tier using this repository: https://github.com/Zibri/cloudflare-cors-anywhere

However, be aware that there are daily requests limits when using Cloudflare Worker, so depending on your use case it might not be suitable for production use.

If you are looking for a production ready CORS proxy, you can check out Corsfix, it has unlimited monthly requests and supports request header overrides.

Here is an example of how to send request through the CORS proxy

fetch("https://proxy.corsfix.com/?<TARGET_URL>"); 

(I am affiliated with Corsfix)

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: reynaldi

79305391

Date: 2024-12-24 10:59:41
Score: 2.5
Natty:
Report link

Too many quotes can lead to errors just write payload content into a file then pass the file to curl, before check manually if the same payload sended from your pc return the same error maybe is a server side issue.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Re401

79305389

Date: 2024-12-24 10:58:39
Score: 6.5 🚩
Natty: 5.5
Report link

Please I need help about pycharm terminal not loading

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2.5): I need help
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: KAPYA Tshibangu G.

79305380

Date: 2024-12-24 10:56:38
Score: 2
Natty:
Report link

My own workaround using inserting the result of SELECT.

INSERT INTO test (`id`, `other`, `column`, `names`)
SELECT '2' as `id`, `other`, `column`, `names`
FROM test
WHERE test.id = '1';

Delete previous records using,

ALTER TABLE `test`
DELETE WHERE `id` = '2';
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Analike