Please help. I have a Telegram Bot that ping static IP every 60 seconds, when i start him from Bash Console - it works fine but once a day stops working. I tried to use Always on task but in log file receive 'ping: socket: Operation not permitted'. I have 5USD account, what can i do? What i see when run from Bash Console: --- 176.102.48.100 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms PING 176.102.48.100 (176.102.48.100) 56(84) bytes of data. --- 176.102.48.100 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms PING 176.102.48
my problem is that prettier in VS Code is automatically closing tags on save like that: <meta charset="UTF-8"> to: <meta charset="UTF-8" /> To resolve problem i have to set: ctrl + , -> type formatter -> editor:default formatter set on none. But I still want to use prettier so how to stop auto closing tags in prettier ?
I've recently made a component using webflux and webclient. There are a few requests that uses an external resource to retrieve some data. In local works everything fine, retrieving data from the external resource and correctly displays to the user. When i do a deploy on remote server it doesn't work anymore and it shows me these error: i.n.r.DefaultHostsFileEntriesResolver : -Dio.netty.hostsFileRefreshInterval: 0 Jan 08 23:59:31 dlv-izac-user app/web.1 2023-01-09 07:59:30.715 DEBUG 4 --- [or-http-epoll-7] i.n.util.ResourceLeakDetectorFactory : Loaded default ResourceLeakDetector: io.netty.uti
I am trying to make the main menu text keep repeating until the user chooses 5 and then the program closes but I don't know how to make it keep repeating. I tried to use a while loop which didn't work and started spamming the main menu. So here is the code all I need is for you to explain how to make the main menu repeat and the choice repeat until the user picks option five (exit). print('''------------ Main Menu ------------''') one='1 - show all contacts' two='2 - add a new contact' three='3 - find contact' four='4 - Delete contact' five='5 - Quit' print(one) print(two) print(three) print(f
raw_data_input_path = "s3a://{}/logs/application_id={}/component_id={}/".format(s3BucketName, application_id, component_id) df = glueContext.create_dynamic_frame_from_options(connection_type="s3", connection_options={"paths": [raw_data_input_path], "recurse": True}, format="json", transformation_ctx=dbInstance) my Bucket key contains 10 json files 1 txt file, i want to only include json files in the dynamic frame. Is that what the 'format' param is for in create_dynamic_frame_from_options https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-pyspark-extensions-glue-context.html#aws-g
I'm trying to implement vue-gtag to my Vue3 project, but right after following the Get Started and Auto Tracking documentation, I'm getting the following log in my browser: GET https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX&l=dataLayer net::ERR_BLOCKED_BY_CLIENT I don't know what I've done wrong, but in order to better explain my implementation, that is it: createApp(App).use(router).use(VueGtag, { config: { id: G-XXXXXXXXXX } }, router).mount('#app') I also tried to add the plugin only in some pages as a test, but the same error occurs. I am using Google Analytics 4, or GA4, and I d
How do I set MQ permissions for a windows user (username and password) to be able to use a queue, so a java client can get and put messages ? I already have a queue manager up and listening on (windows) port 1414 on locallost and a queue defined.
I know that the R packages ``tidymodelsandcaret``` both support multinomial classification. However, does either package support ordinal regression/classification? Here is what I mean by "ordinal regression/classification": Regular regression: estimate numbers, e.g., numeric values ranging from 1 to 250 Binary classification: estimate binary values, e.g., 0 or 1; positive or negative; yes or no Multinomial classification: estimate one of more than two categories, e.g., rock|paper|scissors; red|white|green. Crucially, there is no natural order among these categories. Ordinal regression/classifi
Is there a way to customize the style of the built-in SearchBar in MAUI? I need a white background like the bottom image and remove the Cancel button. My XAML: <SearchBar Placeholder="Search" ios:SearchBar.SearchBarStyle="Minimal" BackgroundColor="White" /> Result: Desired:
I'm trying to build a console application, A, into another console application, B (an NUnit testing project). B references A by a ProjectReference. When running A, it works fine. All is also fine when I run B without referencing A. However, I'm met with the aforementioned error when B references A. Why? And how can I fix it? Some similar questions I've found do not fix the issue. https://github.com/dotnet/sdk/issues/5779 - My runtimeconfig is as follows: { "runtimeOptions": { "tfm" : "net6.0", "framework" : { "name" : "Microsoft.NETCore.App", "version" : "6.0.12" } } } https://github.com/dotne
I have a spring project with Gradle. I created a task in the build.gradle: task dockerFile(type: Dockerfile) { destFile.set(project.file('Dockerfile')) from "alpine:$alpineVersion" runCommand 'apk add --no-cache openjdk11' copyFile "build/libs/${jar.archiveFileName.get()}", '/app/' workingDir '/app/' entryPoint 'java' defaultCommand '-jar', "/app/${jar.archiveFileName.get()}" } Everything works fine. Dockerfile is generated. But when I try to run the image it gives me the error: no main manifest attribute, in /app/demo-0.0.1-SNAPSHOT-plain.jar Also here is my entire build.gradle: import com.bm
.onContinueUserActivity is never called in the state restoration example app provided by Apple. Inside of DetailView, this method is called: // The described activity for this view. .userActivity(DetailView.productUserActivityType, isActive: product.id.uuidString == selectedProductID) { userActivity in describeUserActivity(userActivity) } Inside of ContentView (parent of DetailView), this method is NOT called: .onContinueUserActivity(DetailView.productUserActivityType) { userActivity in if let product = try? userActivity.typedPayload(Product.self) { selectedProduct = product.id.uuidString } }
I have a product for which I store software builds in Artifactory. I name the software artifacts like this, so it is possible to se what a downloaded file contains: system-pcm33-base-v0.0.0.0_65_ga03970a.raucb Thus it is also possible to download directly via an URL, not using jfrog https://artifactory.deif.com/ui/native/amc-sw/pcm33/master/system-pcm33-base-v0.0.0.0_65_ga03970a.raucb Now I would like to make a quick way to download the latest master build. To do this I have in my build made a symlink system-pcm33-base.raucb -> system-pcm33-base-v0.0.0.0_65_ga03970a.raucb I can also push this
I am having a bit of a challenge implementing CASL in my app. I have created the following composable useAppAbility ("hook") that defines all the rules: import { AbilityBuilder, createMongoAbility, subject } from "@casl/ability"; import { useAbility } from "@casl/vue"; const service = {}; const user = {}; const subscription = {}; const invoice = {}; const account = {}; const ability = createMongoAbility(); const ROLES = ["admin", "account_owner", "beneficiary", "super_admin"]; const defineAbilityFor = (role: Object) => { const { can, rules } = new AbilityBuilder(createMongoAbility); const is =
I'm trying to merge groups of adjacent polygons, but I'm getting big multipolygons with non-adjacent areas. In the code block below plot(Matsuyama.sf) shows a large contiguous region and a few islands, but I can't extract those geometries. How do I get those areas and geometries. library(sf) library(tidyverse) Matsuyama.sf <- st_read("https://geoshape.ex.nii.ac.jp/city/geojson/20210101/38/38201A1968.geojson") Matsuyama.sf <- st_transform(Matsuyama.sf, crs=4326) plot(Matsuyama.sf) st_area(Matsuyama.sf) I can split into hundreds of polygons, but the code options below just lump them back togethe
I have a class, for example User, with a dependency of type IValidate in the constructor paramaters. Could someone please help me create fake object with a mocked instance for this parameter? Right now it is throwing an exception. Is there any way to configure the parameter?
While using import torch_geometric I get a module not found error from torch_geometric.data. import torch runs without an error. --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) Cell In[2], line 1 ----> 1 import torch_geometric File ~\anaconda3\envs\python3_8_10\lib\site-packages\torch_geometric\__init__.py:4 1 from types import ModuleType 2 from importlib import import_module ----> 4 import torch_geometric.data 5 import torch_geometric.loader 6 import torch_geometric.transforms File ~\anaconda3\envs\python3_8_10\li
I have this structure in FastAPI. project_folder/ project_folder/app/ project_folder/app/main.py (with app object of FastAPI) project_folder/app/rest/panel.py (here I try import app object from main) In panel.py I import by: from ..main import app or from app.main import app Its works with other files... like "from app.models import XYZModel". I run by command: bash -c "uvicorn main:app --host 0.0.0.0 --port 8000 --reload" and I try this: bash -c "uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload" It works. All paths and imports to multiple files inside different directories work fine.
context Our current context is the following: researchers are running HPC calculations on our Kubernetes cluster. Unfortunately, some pods cannot get scheduled because the container engine (here Docker) is not able to pull the images because the node is running out of disk space. hypotheses images too big The first hypothesis is that the images are too big. This probably the case because we know that some images are bigger than 7 GB. datasets being decompressed locally Our second hypothesis is that some people are downloading their datasets locally (e.g. curl ...) and inflate them locally. Thi
Hello I'm a total beginner to Unity and just installed. Every time I try to create new 3D project, Error window pop up "Failed to resolve project template: [com.unity.template.3d] is not a valid project template." any suggestions on what to do? Unity 3.3.0 I tried googling the answer but it seems that the Error for everyone else is different than mine.
I have to convert the binary to string, I tried something, but it didn't work. This is my code (I am not allowed to change the main function!), but I can't understand what's wrong: #include <stdio.h> #include <stdbool.h> #include <math.h> #include <string.h> void decode_bytes(const int rows, bool bytes[rows][8], char string[rows]) { int iteration = 8; for (int j = 0; j < rows; j++) { for (int i = 0; i < iteration; i++) { if (bytes[j][i] == 1) { string[j] += pow(2, iteration - (i + 1)); } } } } int main() { bool bytes2[7][8] = { { 0,1,0,0,1,0,0,0 }, { 0,1,1,0,0,1,0,1 }, { 0,1,1,0,1,1,0,0 }, { 0
I would like to create a table in an odt (OpenDocumentText) file using odfpy? The docu of the package is outdated and the project nearly orphaned (but maybe on its way back I think). Be aware I don't mean Spreadsheet documents but text documents.
I am trying to publish a web app to IIS and I am getting this error in my publishing profile. Underneath that it gives me the path to my dotnet-tools.json file and says, "...dotnet-tools.json came from another cmputer and might be blocked to help protect this computer. For more information, including how to unblock, see https://aka.ms/motw. I went to the site listed, but frankly everything there was way over my head. I have Googled and read multiple posts, but cannot seem to find a solution. One post said to right click on the file, the properties and on the General tab, check the "unblock" bo
I am building a text editor but I can't save the file because I can't get the text within the textbox. Even thought in the entry widget I can use .get() to get the text. I tried .get() but it displays an error that it isn't an option.
I am having an issue with my Laravel Voyager admin panel. After upgrading my PHP version and updating Composer packages, all pages on Laravel Voyager work except /admin/products. I have tried running the following cache and config commands: php artisan optimize php artisan config:cache php artisan route:clear php artisan view:clear php artisan key:generate Even after clearing all caches, the page still returns a 404 Not Found error. Running php artisan route:list shows that the route exists in the registered route list. What could be causing this specific route to return 404 despite being regi
im trying to compile a basic code with GTK3+ on Debian11 and i got the following error: fatal error: gtk/gtk.h: No such file or directory im using vs code and the autocomplete find the path to the file gtk.h but showme a include errors. I compile with this command: gcc main.c -o main 'pkg-config --cflags --libs gtk+-3.0' The output of pgk-config --cflags --libs gtk+-3.0: :~/Code/GTK/gtkTutorial$ pkg-config --cflags --libs gtk+-3.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2
On Ubuntu 20.04 with Gnome3 and X11 and Qt5.12.8 (PyQt 5.14.1) from PyQt5.QtWidgets import QSystemTrayIcon, QApplication qapp = QApplication(['']) print(str(QSystemTrayIcon.isSystemTrayAvailable())) shows True as user and False as root (via sudo as well as via pkexec). How can I find out the reason for "False as root" (is there a way to enable logging for this) and how can I enable system tray icons also for code running as root? I have also tried to inject the user's X11 env vars but this does not help: pkexec env DISPLAY=$DISPLAY XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR XAUTHORITY=$XAUTHORITY python
Is it possible to move firebase database from one account to another account. My client want to move the database to firebase under their account. Is there any way to move from account ([email protected]) to account ([email protected]). Many thanks