I am trying to connect IntelliJ to a GitLab account on a Macbook. I follow these steps: go to Settings then **GitHub** then + Then filling Server and token For the server field, it's defaulted to github.com and cannot be changed For the token, I use the access token generated in Gitlab But I get the following error: Incorrect credentials. Request response: Bad credentials I also tried to follow the following steps: Settings then **GitLab** then + Then filling Server and token For the server field, I use the <gitlab repo url> For the token, I use the access token generated in GitLab But, again,
I am a Norwegian citizen currently in India on a tourist e-visa. My visa lists the following conditions: e-Visa Validity period is 5 Years from the date of issuance of this ETA. Activities Permitted : Recreation/Sight-Seeing Continuous stay in India on each entry should not exceed 90 days. Maximum stay in India in one calendar year on an e-Tourist Visa or paper Tourist Visa or both, shall be restricted to 180 days. Multiple entries will be granted within the e-Visa validity period stamped on your passport. I am approaching a continuous stay of 90 days, so I will soon have to leave India. Howev
Problem: I'm trying to deploy a Flask app with a pre-trained machine learning model (stored as a model.pkl file in the same directory) to Google Cloud Run. The container runs perfectly fine locally, but fails when deploying to Cloud Run with the following error: ERROR: (gcloud.run.deploy) Revision 'mymodel-service-00015-svm' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Commands I'm Using: Building the Docker image: docker build --no-cache -t gcr.io/dehaproject2024/mymodel:latest
Problem Description: I'm encountering an issue with Open Graph (OG) tags not displaying correctly when sharing Branch.io links on LinkedIn. The same links work as expected on Facebook and Slack, showing the appropriate image, title, and description in previews. However, on LinkedIn, the preview shows a generic image instead of the correct OG metadata. Link Details: Here’s a sample link for testing: Link: https://heroicminds.test-app.link/episode/test This link renders correctly on Facebook and Slack, showing the correct image and title. Steps Taken: Used LinkedIn’s Post Inspector to test the l
I have a simple .NET 8 (C#) class library that reads some registry values. It was created and built in Visual Sudio 2022 (64 Bit) v17.11.5. Project file: <PropertyGroup> <TargetFramework>net8.0-windows10.0.26100.0</TargetFramework> <ImplicitUsings>disable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> Methods: public static RegistryKey? GetRegistryKey () => Registry .CurrentUser .OpenSubKey("Software") ?.OpenSubKey("ODBC") ?.OpenSubKey("ODBC.INI") ?.OpenSubKey("ODBC Data Sources"); public static IEnumerable<string> GetDataSources1 () { using var key = DataProviderOdbc.GetRegistr
I need to make a bot that should forward messages sent to him in the group. How can this be done, I have searched a lot of information, nothing helps I tried to forward the group ID, maybe I did something wrong, but when the bot wrote to me that the message had been sent, nothing appeared in the group. (if the bot was an admin in the group and had access to messages)
Since I will be heading to Norway next week and there seems to be heightened solar activity recently, I've been reading articles online about seeing the northern lights. I have read at least 20 articles and one of the most common recurring phrase is hunting for northern lights. Numerous articles recommend booking a tour to get a chance at spotting them. Those tours appear quite pricey to me for the few hours that they last. How hard is to for someone who has never seen the northern lights to spot them? In photos, they look like gigantic phenomena and seem like they would be hard to miss! Are t
I've got some WestJet lounge vouchers available on my WestJet rewards account (from my WestJet credit card) and was going to use them to grab dinner before my flight. However I am flying from Calgary to Heathrow, and it seems the Westjet lounge is only available for domestic travellers. Their website lists a bunch of other lounges, saying this: Platinum, Gold and Silver WestJet Rewards members may be eligible for complimentary lounge access based on their tier benefits and each lounges entry requirement. See individual lounge access below. Guests seated in Business on our Boeing 787-9 Dreamlin
I need to implement this paper Page 5, there is a function void Split(double a, double *x, double *y) { double z = a * ((1 << r) + 1); *x = z - (z - a); *y = a - *x; } With -O3 (which I need for the rest of the program, gcc sees that z - (z - a) can be simplified to a (but only when function is inlined) : Split(double, double*, double*): movsd .LC0(%rip), %xmm1 mulsd %xmm0, %xmm1 movapd %xmm1, %xmm2 subsd %xmm0, %xmm2 subsd %xmm2, %xmm1 subsd %xmm1, %xmm0 movsd %xmm1, (%rdi) movsd %xmm0, (%rsi) ret .LC3: .string "%lf -- %lf\n" main: subq $8, %rsp movl $.LC3, %edi movl $2, %eax movsd .LC1(%rip)
My team and I need want renovate to be able to automatically rebase et merge PRs, once it has been approved by us. I found some documentation on how to automatically approve PRs and merge but I cannot find something about rebasing and merging only the ones that are approved, without rebasing the ones that are not. Any help ? Thanks
I have had marijuana in the last 3 months, and am now planning a Europe trip. I am not taking any drugs with me. It is my first time travelling to another country so I am now feeling paranoid that I’ll get drug tested and they’ll find that I’m positive. My brother told me he got a random drug test done in Greece, so now feeling paranoid. I’m thinking of going to United Kingdom Spain Switzerland Germany Italy Iceland Turkey Any thoughts? Why would they drug test passengers? What happens if it is positive? I know this is probably a dumb question but I am feeling very paranoid so would appreciate
I have a Java 8 application that has to accept any number of date and time formats from a user. Obviously that yields an exhaustive list, as there are many ways to write a date and time. For locale purposes, though, this is all US-formatted dates (and yes, I checked that the locale was indeed en_US). However, what should be a simple date/time string has been causing a great deal of strife for me. Here is my code: String dateString = // user generated thing // Remove whitespace for simplicity's sake dateString = dateString.replaceAll("\\s+", ""); // There are A LOT of formats here, but I only p
My telegram bot doesn't send messages anymore. I get this error: "RuntimeWarning: coroutine 'Bot.send_message' was never awaited". from telegram import Bot bot_token = 'xxx' chat_id = 'xxx' message = 'TEST' bot = Bot(token=bot_token) bot.send_message(chat_id=chat_id, text=message)
I live in Kenya with a work visa on my British passport. I also have an Ausi passport but that has nothing to do with my status in Kenya. I was planning on visiting China for the canton fair. I applied for a visa using the British passport. After the application, I realized that Australian's are exempt for 15days for certain Chinese visas. Do you guys think there would be any issues going to China with both passports (UK+Ausi) with the pending visa application?
I’m using Next.js with the ImageResponse API from next/og to generate a dynamic OpenGraph image for my website. The issue I’m facing is that the OpenGraph image displays correctly on tools like OpenGraph.xyz and Facebook Sharing Debugger, but it does not show up when sharing the link on WhatsApp. Here’s the relevant setup: OpenGraph Image URL: https://www.presupuestouniversitario.com.ar/opengraph-image?f1e1d2a5a4c83247 The dynamic image is generated via the /opengraph-image route using ImageResponse from next/og. Meta tag used in the HTML: <meta property="og:image" content="https://www.presupu
I have the following tacit fork (intended to be used monadically): F&.I G H&.I I.e., the left and right verbs F and H of the fork get I applied with &. (under) before feeding the outputs to G. Is there a way to simplify the fork definition, in the sense that &.I is only specified once? (F G H)&.I is not equivalent since I^:_1 is applied after G, not before. (F G&(I^:_1) H)@I is equivalent, but clearly not simpler/conciser.
We have a C++ multi-threaded application with shared libraries, running on linux x86_64 (debian-12, kernel 6.1.xx) and on a raspberry pi 5 ( arm64, debian-12, kernel 6.3.xx ). If I lock at /proc/$pid/statm. /proc/$pid/statm reports 4 times the number of pages on x86_64 as on arm64 on the RPI5. The gcc- release generation command lines are identical with the exception of the -mtune option. The application creates the same number of threads with same stack-sizes on both architectures. RPI5 arm64: cat /proc/$(pgrep x4rtflex)/statm 150018 65643 7904 1 0 57587 0 Sum 1124.612061 MB x85_64 ( core-i5-
When attempting to build AOSP 14, I encountered an error during the build process. The build environment was configured according to the requirements for AOSP 14, but I encountered the following error: internal error: undefined variable CTS_TEST_SUITES_DEFAULT 11:02:32 fatal errors encountered #### failed to build some targets (02:25 (mm:ss)) #### Steps Taken Environment Setup: Executed source build/envsetup.sh. Selected the build environment with the command lunch aosp_cf_x86_64_phone-trunk_staging-userdebug. Build Information: PLATFORM_VERSION_CODENAME=VanillaIceCream TARGET_PRODUCT=aosp_cf_
In Python, the global declaration is used inside function definitions to specify that assigning the variable will create/update a global variable, rather than the default local variable. Python also allows the global statement outside of function definitions. This doesn't cause an error, which leads many beginners to misuse it by writing the top-level declaration once instead of putting it in each function that needs it. It seems like this should be a syntax error, like using return outside a function or break outside a loop. Do these declarations serve any purpose, which would explain why it'
I am struggling to connect to a MongoDB Atlas database using the Firedac component. I have the MongoDB Atlas connection string but am unsure how to setup the connection in Delphi. I note that the Data API has been recently deprecated in MongoDB so a REST connection is not a viable option. Grateful for any advice from anyone who has successfully created a connection.
I have issues with mcmapply that only occures if an Rcpp-function, testfun(), is first called outside mcmapply and then called through mcmapply. The issue only exists if: testfun() uses openMP mcmapply uses parallelization (mc.cores>1) If I call mcmapply with testfun(), it runs and finishes without errors. If I first call testfun() separately and afterwards mcmapply, then mcmapply stalls. MWE: Rcpp::sourceCpp(code= " #include <RcppArmadillo.h>; // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::export]] void testfun(int n) { arma::mat foo = arma::sqrt(arma::zeros(n,n)); }") library(parallel) print
Besides choosing between linux/windows/mac and 32/64 bit, is it possible to choose the processor of the machine where the action runner will be running? In my organization we have been using actions smoothly, but a partner of ours, compiling and using our code, reports runtime crashes when running on a AMD machine. We are waiting for more information from their side: we don't know whether they compiled on an intel machine and then tried running on an AMD machine, or if both compilation and execution where on an AMD machine In the meantime, to try and reproduce his problem we were wondering whe
I have two functions for a project I am working on. One of them modifies a WooCommerce archive layout and the other returns "Call for price" on products that have no price set: // Modify category page layout function woocommerce_after_shop_loop_item_title_short_description() { global $product; if ( ! $product->get_short_description() ) return; ?> <div class="category_description_container" itemprop="description"> <h2><?php the_field('product_title'); ?> <span class="non-bold"><?php the_field('product_subtitle'); ?></span></h2> <div class="category_description"> <?php the_field('category_descri
I'm encountering an issue where the Android Studio Emulator is running but not appearing on the screen. It was working fine previously, but now it's consistently out of view even when I try different device types. Here's what I've already tried: Restarting Android Studio Creating new AVDs Checking for updates to Android Studio and the emulator Adjusting screen resolution and scaling settings I've tried everything I can think of, but the emulator still won't show up.
So, I'm using the lexical editor in my react project. My app get the text from a API that transcribe audio and then I need to put on the Lexical editor, but I'm having problem to manipulate the text, I just don't know how to do. TextEditor.tsx: import { useEffect } from "react"; import { LexicalComposer } from "@lexical/react/LexicalComposer"; import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin"; import { ContentEditable } from "@lexical/react/LexicalContentEditable"; import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin"; import { ListPlugin } from "@lexical/reac
Assume I have some function do_stuff that takes a &HashSet<X> and wants to collect the items into a Vec<X> by copying all the elements. What is the canonical way to do that? I have basically found the following ways to do this: Using _.clone().into_iter().collect() (GodBolt Link): use std::collections::HashSet; #[derive(Copy, Clone, Eq, Hash, PartialEq)] struct X {} struct Y { xs: HashSet<X>, } fn do_stuff(y: &Y) -> Vec<X> { y.xs.clone().into_iter().collect() } This is recommended here: How can I collect Vec from &HashSet? - Answer by at54321 Using _.iter().cloned().collect() (GodBolt Link): u
I'm developing a custom WooCommerce shipping method and trying to create a custom field type called multiselect_with_limits. This custom field type should allow selecting multiple neighborhoods and specifying a minimum order limit for each one. However, when I try to use this custom field type, I get the following error: Warning: Array to string conversion in /wp-includes/formatting.php on line 1096 function woocommerce_form_field_multiselect_with_limits( $key, $args, $value ) { // Eğer multiselect değerleri array ise işle if ( is_array( $value ) ) { $value = implode(',', $value); } $field = '
I created two classes, Book & Date. The Date constructor simply takes 3 int arguments for day, month and year. The Book constructor takes string isbn, string title, string author, Date copyright_date. I thought I could use the Date constructor to create a Date object inside the Book constructor but it doesn't seem to be working. #include <bits/stdc++.h> using namespace std; class Date{ public: class Invalid{};//to throw in error Date(int d,int m,int y); Date() = default; //getters int get_day(){return day;}; int get_month(){return month;}; int get_year(){return year;}; //helper functions priva
An exercise am working on, I created two classes, Book & Date. The Date constructor simply takes 3 int arguments for day, month and year. The Book constructor takes string isbn, string title, string author, Date copyright_date. I thought i could use the Date constructor to create a Date object inside the Book constructor but it doesnt seem to be working. #include <bits/stdc++.h> using namespace std; class Date{ public: class Invalid{};//to throw in error Date(int d,int m,int y); Date() = default; //getters int get_day(){return day;}; int get_month(){return month;}; int get_year(){return year;}
I am working on a FinTech Android app, and I recently discovered that the APK can be tampered with using tools like APKTool. Specifically, the strings.xml file can be modified, and the APK can be recompiled without any issues. This poses a significant security risk, as the app handles sensitive financial data. I want to implement APK tamper detection to ensure that any modifications to the app's resources or code are detected before the app is allowed to run. 1.What are the best practices for implementing tamper detection in Android apps, especially in the context of a FinTech application? 2.A