Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
In docker the container-id will be set as the hostname of the container by default. Containers can talk with each other using container-id (or here hostname)So this issue can be solved by preferring hostname instead of ip.But only way of making sure that registration happens through hostname is by settingeureka.instanc...
I have several microservices running in Docker Data Center. I have the same Eureka configuration across the services/applications. But some of the applications are registering with theireth0IP address instead of the container ID.I have tried setting thepreferIpAddressasfalsebut it is not enforcing all the time.There is...
Springboot client unable register with Eureka using Docker container id
just shutdown that application which is using 443 port & retry. mine vmware workstation was using 443 port i just kill process tree of vmware & retried it works for me.
I am running XAMPP and have rebuilt my PHP server from the ground up, renamed the server fromServerV1toServerV2, and now attempting a basic POST request from Android volley, returns the error found within the Apache logs:[Sat Dec 19 19:24:57.528601 2015] [core:notice] [pid 7956:tid 260] AH00094: Command line: 'c:\\xamp...
XAMPP Error: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
3 If you check aws docs's SourceArn you will see that this is a string, not a list of strings. So you can have only one value in SourceArn. Share Improve this answer Follow answered Apr 3, 2023...
I have updated the template.yaml file as below, I need to give permission to multiple schedulers for an lambda function. ## Grant permission to Events trigger Lambda PermissionForEventsToInvokeSchedulerFunction: Type: AWS::Lambda::Permission Properties: FunctionName: !Ref SchedulerFunction Acti...
How to give multiple SourceArn for AWS::Lambda::Permission in Cloudformation?
You can use basic auth for http or certificate for https. When kube api server communicates to the webhook it will present the client certificate to the webhook webserver to authenticate itself. You need to have cacert in your webhook webserver to successfully authenticate kuernetes api server. The same cacert you will...
i created ubuntu machine that will receive the audit log from my cluster. i created config file in order to configure the webhook backend for k8s auditing.apiVersion: v1 kind: Config clusters: - cluster: server: http://34.68.115.34 name: webcluster contexts: - context: cluster: webcluster user: "" name:...
K8S auditing Webhook backend - how to handle authentication?
The expression.*matches bothvar1andvar1/var2thus the first rule is applied on both.So you have to specify it that the first rule only matchesvar1. This can be done by replacing.(any character) by[^/](any character except/). So try this:RewriteRule ^page/([^/]+)$ ./page.php?var1=$1 RewriteRule ^page/([^/]+)/([^/]+)$ ./p...
Though .htaccess, I want to redirect /page/var1/var2 to ./page.php?var1=var1&var2=var2. This is very easy BUT I want to make it so /page/var1 also redirects to ./page.php?var1=var1 (without having the var2). The only way I'm doing this is:RewriteRule page/(.*)$ ./page.php?var1=$1 RewriteRule page/(.*)/(.*)$ ./page.php?...
.htaccess Optional characters?
Presto uses the Hive metastore to map database tables to their underlying files. These files can exist on S3, and can be stored in a number of formats - CSV, ORC, Parquet, Seq etc.The Hive metastore is usually populated through HQL (Hive Query Language) by issuing DDL statements likeCREATE EXTERNAL TABLE ...with aLOCAT...
I'm trying to use Presto on Amazon S3 bucket, but haven't found much related information on the Internet.I've installed Presto on a micro instance but I'm not able to figure out how I could connect to S3. There is a bucket and there are files in it. I have a running hive metastore server and I have configured it in pre...
Presto on Amazon S3
The workaround I've come up with, which is a little simpler than the alternative posted, is the following:Create a staging table in mysql, and load your new data into this table.Run the command:REPLACE INTO myTable SELECT * FROM myStagingTable;Truncate the staging tableThis can be done with:import sys from awsglue.tran...
I have a lambda process which occasionally polls an API for recent data. This data has unique keys, and I'd like to use Glue to update the table in MySQL. Is there an option to overwrite data using this key? (Similar to Spark's mode=overwrite). If not - might I be able to truncate the table in Glue before inserting all...
Overwrite MySQL tables with AWS Glue
To get 1:1 IP addresses you'd need a replication controller for each site. Replication controllers are for managing identically configured resources.However, you could always dohost-based or path-basedrouting to get to the right service / pod. That way you could just have a subdomain + mapping for each user.
I have a replication controller creating 10 instances of my pod. The pod runs a Zeppelin notebook which should be accessed by users over the web. However I need the possibility to access a specific notebook/pod over the web. If I expose the pods using a service of type LoadBalancer I will automatically be routed to any...
Access specific kubernetes pod from external
3 Create an AWS policy with S3 access rights (in particular PutObject, GetObject etc.) Create an EC2 oriented IAM role and add the policy from the first step to that role Assign the IAM role to the EC2 instance (or perhaps configure it to use in an instance profile whe...
I am trying to use Julia on an AWS computing cluster, processing data from Amazon S3 buckets. How do I use in Julia AWSS3.jl to open a connection to an S3 bucket? In particular I would like to know what is the best approach to configure the connectivity and subsequently use that configuration from Julia.
How to use the package AWSS3.jl to connect to an S3 bucket running on an EC2 instance?
Yes, make one a remote of the other.git remote add team[email protected]/team.git git fetch teamNow you will have the team repository as the remote "team", just like "origin". Its main branch is team/main. You can check the differences withgit diff main team/mainand look at new commits withgit log main...team/main(or v...
I don't know if parents was the correct term to use, but I have two repositories in Git. One is located in git.company.com/team and one is located in git.company.com/user. The repository in the user location had been forked from the team location, but when the team version was changed from public to private the fork wa...
Comparing Two Repositories with different parents
1 The best way is to use different branches for different projects if those are not related/dependent. In case you have to use same repo, you can use orphan branches. These are independent branches and do not share histories which is your requirement. Also check this answer...
I have a few projects, Project 1, Project 2, and Project 3, all in their seperate repos. My team is now setting up on github. Within our larger organization, it seems like what other teams have been doing is creating one big repo to host various projects. How do I set up a repo with a folder called Project 1, and push...
Pushing separate projects into larger team repo
To be able to append a query to the end of your rewritten URL, you'll want to use theQSAflag. This allows you to have that query string at the end of the pretty URL starting with?rather than&.ShareFollowansweredOct 24, 2012 at 3:36quentinxsquentinxs86688 silver badges2323 bronze badgesAdd a comment|
I have a shopping cart which has SEO links, i'm creating a option to refine the search option within the results displayed.This is an example of what i am trying to achieveCustomer display a list of products www.example.com/products/Drives-Bluray/view/list/category_id/30/sub_category/167Then if customer want to search ...
Complex htaccess rewrite for variable url
You can make your pods IP address available as an environment variable and then reference the environment variable in your application.ymlSee:https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/pod.ymlapiVersion: v1 kind: Pod metadata: name: kafka-stream-app spec: co...
We have a Kubernetes cluster with three pod running, i want to know what are the RPC endpoint we need to provide inapplication.serverto make interactive query work.So we have a use case where we need to query state-store withgRPC server. while creating gRPC server we are giving50052as a port..but i am not able to get w...
How configure the application.server dynamically for Kafka Streams remote interactive queries on a spring boot app running on Kubernetes
You can useDirectoryindexdirective in/F_Check/.htaccess. Create an htaccess file in the folder if it doest already exist there and put the following lines :DirectoryIndex check.php RewriteEngine onThis will set/check.phpas directory index handler for the folder.You can read more aboutDirectoryindexdirective on Apache ...
I have a Folder namedF_Check, which containscheck.phpand some other PHP files.I want the User to show or redirect tocheck.php, if user opensF_Checkdirectory. Means, whereindex.phpshould open,check.phpshould be open. But, after opening other PHP files, it should not redirect tocheck.phpfile.I search for it, but did not ...
Open check.php by Opening Folder Directory using htaccess
It does not make any sense but after I specify the host IP is 0.0.0.0 I can connect to docker.
I created a container using following command: docker run -itd --name jkdb -e POSTGRES_PASSWORD=123 -v /home/lchang/jkrug/data:/var/lib/postgresql/data -p 5532:5432 -d postgres I checked in container and psql does listen to 5432 in container. However, when I try to connect from my host by following command, I got an ...
Psql Docker: could not connect to server: No such file or directory
These are known asRewriteRules, and they are fairly straightforward:RewriteEngine on RewriteRule ^about$ /index.php?app=aboutHere's the documentationAs far as making it more generic, how about this:RewriteEngine on RewriteRule ^([A-Za-z]+)$ /index.php?app=$1This will make any request to something like /staff or /contac...
I currently have a website that I am trying to optimize in terms of SEO.I've got the site working with URLs such as:domain.com/?app=aboutIn my app,$_GET[app]is set to 'about', as expected.Now, I want to make it so that a URL likedomain.com/aboutis treated as if it weredomain.com/?app=about.How can I do this in an Apach...
How can I rewrite query parameters to path parameters in Apache?
You can just open the file named.gitignorewith any text editor and remove the lines that you would like to stop ignoring.
I accidentally added .h files to the gitignore file and need help deleting that file type off of the ignore list. My xcode builds are not finding necessary files because of them being removed.I am fine with removing the file type or deleting the whole thing. I am on a mac.Thanks!
Remove file types from the .gitignore file
-2 sudo vim /etc/nginx/nginx.conf Share Follow edited Jul 10, 2021 at 21:14 blackgreen♦ 38.5k2525 gold badges132132 silver badges140140 bronze badges answered Jul 10, 2021 at 9:44 ...
I am new to nginx and tried some tutorials to configure nginx on Amazon Linux 2. For a simple start I tried to show just another html page instead of the welcome page of nginx. The problem is thats no matter what changes I do in the nginx.conf file. Nothing change. The most confusing part is even if I stop nginx the w...
How to configure nginx on Amazon Linux 2?
Hi% signis special character in crontab.Need to escape this withbackslash \.
I tried to schedule crontab for automate kibana dashboard data export, but it's not working.crontab -e is* * * * * /home/rehan/Installation/SIEM/ELK%20/Other/test.shtest.shfile has execution permission but the script is not get run every minute. Any suggestions?
Crontab is not running
It's not clear what you're looking for. There will be no useful information on your local machine because you're doing a Lambda deployment with CodeDeploy. I would start in the CodeDeploy console for more information - it should include information as to why your deployment failed. Next, you should look in the Lambda c...
I am trying to deploy a lambda function through CodeDeploy. I have everything set up except my AppSpec file. Since I am deploying a Lambda and not an EC2 instance, I believe that my AppSpec file should be something like this (JSON).{ "version": 0.0, "Resources": [{ "myLambdaFunction": { "Type": "AWS::Lambda...
AWS CodeDeploy Failure
0 The content for Jekyll sites is organised into 'posts' and 'pages'. Which can be in html or markdown format. Jekyll prescribes this directory structure. If your github-pages sites is a User Page it can only be published from master (and overwriting it with a jekyll the...
Hoping someone out there can help me, I have scoured the boards already. I'm not a total noob, but I'm just slightly higher than that. I set up a Github static page 2 years back. Just a simple page, tweaked the CSS a bit from the existing templates, added an image, text and links. Got the site to work, even figured ou...
How do I convert existing content on a Github page to a new Jekyll theme?
You can update theconfig-mapinhelmand istio adapter will take care for other stuff.you can find more details at thisgithub issueTake a look at thisexample.You can bring your own Prometheus to Istio, with three quick steps.First, update your Prometheus configuration. Prometheus relies on a scrape config model, where tar...
I need to do a POC on collecting k8s application metrics using Istio + Prometheus. My prometheus is running on a VM. I do not want to run Prometheus as a container in kubernetes.Can anyone help me getting the right documentation for this? Or suggest how can I do this without running prometheus as a pod in k8s?
How to integrate Istio with Prometheus
One option is to tellkubectlthat you don't want the certificate to be validated. Obviously this brings up security issues but I guess you are only testing so here you go:kubectl --insecure-skip-tls-verify --context=employee-context get podsThe better option is to fix the certificate. Easiest if you reinitialize the clu...
I am trying reach my k8s master from my workstation. I can access the master from the LAN fine but not from my workstation. The error message is:% kubectl --context=employee-context get pods Unable to connect to the server: x509: certificate is valid for 10.96.0.1, 10.161.233.80, not 114.215.201.87How can I do to add 1...
Invalid x509 certificate for kubernetes master
2 You can use the LD_PRELOAD variable to use your own allocator. LD_PRELOAD="/path/your_lib_exporting_malloc.so" Running any application dynamically linked with glibc in the same terminal will actually use the malloc implementation you provided. Many malloc implementation...
I was wondering which is the default memory allocator in G++ 4.4.1, on Ubuntu 9.1. I am interested in comparing different C++ allocators in a multithreaded environment. And where can I get more information about the default memory allocator? EDIT: I refer to new and delete operators. The only linking is to rt and pthr...
Which is G++ 4.4.1 default allocator?
I store my dotfiles (and other configuration) on github too. My approach is to have all those files only inside the repo and symlink them into the place using a rake task. This has the advantage that your actual home directory is not inside a git repo and you don't have to deal with submodules everwhere, as this would ...
I keep many files in my home directory undergit. Important dotfiles, my thesis, etc.I want to push certain files togithub, e.g., myemacsconfiguration, to share.Obviously, I don't want to push the entire repo. Aresubmodulesthe way to go?My first thought is to make a directory~/github/emacs, andrsyncselective files here,...
$HOME git repo (selectively) to github?
Yes, it's possible. In your code, perform a loop like thisFor all sources (array of source Name for example)Create the Pubsub reader on this source (you get a PCollection)Apply the transformation on the PCollectionCreate the sink dedicated to the Source for the transformed PCollectionYou reuse the transformation but th...
I have 3 different Pubsubs (source) and 3 corresponding GCS buckets (sink) for them processing similar data. Currently my Java application provisions three Cloud Dataflow assets which write the data from the Pubsubs to the GCS buckets using windowed writes.Current pipelines: pubsub_topic_abc ---> dataflow_abc ---> gcs_...
Can we write data from multiple Pubsub (source) to multiple GCS (sink) using a single Google Cloud Dataflow?
Ok the problem was that the custom font was no longer embedded in the app. I had switched to another similar one which looked the same. Weird though as I'd have expected those offending labels to revert back the System font on the device but they did not. Is it possible they were being pulled from the Macbook?
I have a UIVC loading from a Storyboard which, in turn, loads a Xib. This inner load is causing the VC to take more than a second to load. There is some fancy footwork going on in the inner xib (it loads another xib which has dynamic drawing) but this doesn't appear to be the bottleneck.According to Instruments,UIFont ...
Xib taking long time (>1s) to load. UIFont cache seems to blame
Try this out to execute a command on 30th March 2011 at midnight: 0 0 30 3 ? 2011 /command WARNING: As noted in comments, the year column is not supported in standard/default implementations of cron. Please refer to TomOnTime answer below, for a proper way to run a script at a specific time in the future in standard...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
How do I set up cron to run a file just once at a specific time? [closed]
Sadly you can't do this. Instead, it would be better to send all your events to alambda function, and the function would take care of filtering and re-distributing the events further down your message pipeline.
I'm creating a rule for EventBridge and I want the rule to match the following structure:{ "id": "<string>", "changes": { "name": { "old": "old name", "new": "new name", }, } }Inside of thechangesobject, I don't know what the keys are. Once an attribute is modified, I'll receive the key name, ...
Is there a wildcard character in AWS EventBridge rules?
2 What server do you use? In Linux you can take dump of mysql with the command mysqldump and put it in the cronjob for continuous backuping. And also with bash script, you can name your files as the backing up date. Share Improve this answer ...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be imp...
Ways to backup MySQL databases regularly? [closed]
1 First of all the memory allocations are always rounded (up) to page size. I didn't understand what you said "while allocation exists"... Although it can cause many problems, every thread in your process who has a pointer to the allocated memory can access it (so you ne...
My current situation is the following: I am allocating tbytes with malloc(t) then I fill this memory with data (just to force the mapping from virtual to physical memory). The memory page size is 4kB. Given this situation, I have the following questions: 1.) How much physical memory is used by this (I see the followin...
Fractured Memory Pages during Memory Allocation?
We have releasedPetastorm, an open source library that allows you to use Apache Parquet files directly via Tensorflow Dataset API.Here is a smallexample:with Reader('hdfs://.../some/hdfs/path') as reader: dataset = make_petastorm_dataset(reader) iterator = dataset.make_one_shot_iterator() tensor...
I am trying to design an input pipeline with Dataset API. I am working with parquet files. What is a good way to add them to my pipeline?
Tensorflow Dataset API: input pipeline with parquet files
No, it is not possible to change the prefix from "PMD." to "pmd:" in eclipse-pmd (I know because I created eclipse-pmd).It is however possible to use only one of the formats. The reason the two formats exists is that Sonar and eclipse-pmd use different rule engines to analyse the code. eclipse-pmd uses the original PMD...
I am using PMD Plugin for Sonar on Jenkins for the static analysis of my code. I am also running the PMD Plugin for Eclipse (eclipse-pmd 1.5 to be exact (http://marketplace.eclipse.org/content/eclipse-pmd)).My problem is the following : I wanto to suppress a certain PMD warning. Lets say that I want to suppress the war...
Can we use the same suppress warning for both sonar's PMD plug-in and Eclipse's PMD plug-in?
Opencl api can query gpu or cpu devices for capabilities of opencl programs but results should be similar for any natively optimized structure. But if your C++ AMP is based on HLSL or similar, you may not be able to use LDS.32kB LDS and 24kB constant cache per compute unit means you can have 1kB LDS + 0.75kB per thread...
I'd like to create an integer array of 100 and an another one of ~10-100 integers (varies by user input) on every thread. I will reuse the data in the array_views several times on a thread so I want to copy the content of the aray view as local data to enhance memory access time. (Every thread is responsible for its "o...
Max size of thread local memory of a GPU thread (C++ AMP)
My solution was to run multiple express apps listened on different ports, and set a Nginx server at front to proxy requestsSay you have three express apps, each one would handle a specific type of routers, and listen on separate port (8081,8082,8083), and of course, they should run in cluster mode://API app used to han...
I have a large set of routes in a Node JS application I'm trying to scale to multiple CPU cores (via NodeJS clusters).The plan I had in mind was to have different workers handling a different set of express.js routes. For example:/api/ requests handled by WorkerA /admin/ handled by WorkerB /blog/ handled by WorkerC etc...
Dividing express routes among Node JS Clusters
I've been experiencing this recently as well; however, it looks like a false-negative: when I push to a branch being watched, despite the Pipeline showing that stage in error, it pulls and delivers source to the next stage.Strange behavior, but not actually an issue.ShareFollowansweredMay 12, 2017 at 17:26cazzercazzer1...
I've created AWS Code Pipeline with GitHub as a source. It was working fine and I was able to fetch repository from GitHub without difficulties. I've deployed my app million times through this pipeline.Until last Sunday (15-11-2015) when I tried to release changes to my pipeline.Since then I'm gettingEither the GitHub ...
AWS CodePipeline doesn't work anymore - GitHub's token insufficient permissions
You want to inspect the local config forkubectland see current context. This shows your current context with namespace.kubectl config get-contextsExample output - can also be multiple clusters, but only one "current":$kubectl config get-contexts CURRENT NAME CLUSTER AUTHINFO NAMESPACE * mini...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
How to see current namespace with kubectl? [closed]
5 I had a similar issue: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:722: waiting for init preliminary setup caused: EOF: unknown and the problem turned out to be the wrong version of my WSL distro, which was 1 in...
I am using docker on my CentOS Linux release 7.8.2003 (Core) with 16 GB RAM. My docker version is Docker version 19.03.7. Docker-compose version is docker-compose version 1.23.2. I have 30+ docker containers running on my machine. Everything was working smoothly, but I ran into a problem. Sometimes, when I try to run ...
Cannot start container: OCI runtime create failed: container_linux.go:349
You can create a certificate that is only valid for the PC on which it is created, although it can be exported and trusted elsewhere. Will that be adequate?http://office.microsoft.com/en-us/excel-help/digitally-sign-a-macro-project-HA001231781.aspxShareFollowansweredFeb 7, 2012 at 10:40FionnualaFionnuala90.7k77 gold ba...
I build one using Microsoft tools but its says "Untrusted cerificate". which is useless.Is there any way to build trusted certificate for macro for free?
Is there any way to build trusted certificate for macro for free?
3 A few ideas: animation-iteration-count (MDN) is the simplest condition I could think of. You could also use CSS Custom Properties (aka "CSS Variables") with a bit of JS: :root { --count: 19; } .selector { animation-iteration-count: var(--count); } Now in JS you just...
I used to write OpenGL2.1 apps on C++. Now i am working in HTML5, because i have strong belief it going to be single UI platform. I know that a lot of CSS3 animations/rules can be forced to GPU. But, none of them allow "user-level" computations. I know that its not what CSS was designed for, but how can i make animati...
GPU rendering on CSS3
Thanks toMichael Doubez's commentsubqueries did the trick:sum_over_time((seriesA * seriesB)[1h:])and on grafana the$__rangealso works, i.e.,sum_over_time((seriesA * seriesB)[$__range:])
I'm trying to aggregate (sum) a new series that's from an arithmetic operator.I haveseriesA * seriesBwhich produces a new series that's multiplication ofseriesAandseriesBbut when I dosum_over_time(seriesA * seriesB[1h])it returns no data, tried putting parentheses between but still no data.Is there a way to aggregate a...
prometheus aggregate series produced by an arithmetic operator
The answers byJohnandStefanare both correct. There's no way to trigger a simple "Roll this EC2 instance back to an earlier snapshot" feature on AWS.There is a way to "roll back" an instance's filesystem to a snapshot byrestoring the snapshotto a new EBS volume, detaching and deleting the old one, and attaching the new ...
Is there a convenient way to roll-back an EC2 instance to a previously saved snapshot in the same manner that you can do so with VMWare and other virtualisation platforms. In my investigations so far, it seems you have to deploy a new instance and select the snapshot as the starting volume.I am doing a lot of testing w...
Revert Amazon EC2 instance to snapshot?
Solved. The problem was with lack of time sync on client side.
oc version:Client Version: 4.4.3 Server Version: 4.4.3 Kubernetes Version: v1.17.1image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:6a5398997bd7ccddd8d0be0f0f2d9dcae8dddc01d54e6877437f07397c273048There's not any error on other pods only get below exception at Prometheus Operator pod logs:E0616 12:23:10.33604...
Openshift 4.4 - Prometheus Unable to see metrics
You could try playing with:kubectl create <resourcetype> <otheroptions> --output=yaml --dry-runSee:https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#createfor different<resourcetype>you could use this with.
Is there any kubectl command to bootstrap yaml file for certain object?For examplekubectl generate deployment --ymlAfter which I would fill it with values I want.Thanks
Is there a way to generate blank kubernetes yaml?
I imported the certificate on the right client trust store. Now the communication is established.ThanksShareFolloweditedAug 16, 2019 at 17:11answeredAug 16, 2019 at 17:02LaminosLaminos6999 bronze badgesAdd a comment|
I am trying to establish a communication between a C# client and a C# server through TCP/SSL.I have generated self signed certificate using IIS and imported it into the trust store.The communication works well when the client and the server arehosted on the same machine. (I am able to exchange packets).But when the cl...
TCP Client C#: The remote certificate is invalid according to the validation procedure
To allow volume mounts on MacOS, podman machine needs to be created with access to the folder from which you are going to attempt to mount sub-folders, so it would have access to it.Is likely that most MacOS users would only want to mount from within their home directory, so machine should be created like below:podman ...
In my company we switched to Podman due to docker latest change in policies. My colleagues who use Windows with WSL2 switched seamlessly. Me, who uses MacOs BigSur v.11.6.2 face the following issue:$ podman machine init -v /Users:/mnt/Users $ podman machine startI get the following error$ Starting machine "podman-machi...
Mounting volumes between host (MacOs BigSur) and podman VM
After experiencing the same issue, I found a fix in the latest version of the Google provider for Airflow, which is currently not yet available in Cloud Composer. However, you can manually override this by adding the release candidate package to your Cloud Composer instance.You can use the release candidate for version...
On Cloud Composer I have long running DAG tasks, each of them running for 4 to 6 hours. The task ends with an error which is caused by Kubernetes API. The error message states 401 Unauthorized.The error message:kubernetes.client.rest.ApiException: (401) Reason: Unauthorized HTTP response headers: HTTPHeaderDict({'Audit...
Cloud Composer Kubernetes API timeout issue
I'm not really familiar with R, but I usually include private repositories in my projects using the Git protocol over SSH.GitHub requires you to authenticate in order to download private code. If you use Git over SSH, your machine will authenticate with your SSH key when you pull in your project dependencies. I do this...
Hi I was wondering how to source private repos in github that I have been given access to.Using thedevtoolspackage, it is easy enough to source open repos by using commands such as:source_url('https://raw.github.com/hadley/stringr/master/R/c.r')but doing the equivalent with the URL for a private repo doesn't seem to wo...
r sourcing private repos from github
If you want to use the same SSL certificate in multiple load balancers that are in different projects, you will need to upload your own SSL certificate.
I have a certificate in one of my GCP project, and I want to use the same certificate in a different project without having to create a new one, is it possible? I couldn't find any information about cross-project certificate in the documentation. (The certificate will be used in the load balancer if it makes any diffe...
One certificate for multiple projects - GCP
0 As illustrated by this question, it is still not possible to open multiple remote (SSH/Container) inside the same VSCode workspace/window. If possible, try and adapt your workflow to: have multiple python container running on the same remote server, each one mounting a d...
I know it is generally possible to connect to a container's python interpreter with: remote containers remote ssh The problems I have with these solutions: it opens a new window where I need to install/specify all extensions again it opens a new window per container. I am working in a monorepo where each services's...
VS Code: Connecting to a python interpreter in docker container without using remote containers
There is aversiondirective, but I've never seen it used in practice:# Snakefile version: "1.2.3" rule all: input: 'test.txt' rule test: output: temp(touch('test.txt'))There isan example/test for CWL conversionthat usesversioninside rule definition, where perhaps it might be useful, but otherwise the utility of ...
Is there any standard or recommended way to add a version number to a pipeline (written in snakemake in my case)?For example, I have thispipelineand just now I added aCHANGELOG.mdfile with the current version on top. Are there better ways to identify the version a user is deploying?
Add version to pipeline
You wantproxy_hide_headerinstead of proxy_ignore_headers
Just wonder if there is any way to overwrite / drop the response back Cache-Control: private from a proxied remote server. The setup architecture looks like this (yes, it's a reverse-proxy set up):[my server] --> [remote server]The setting for my server site-available/default:server { listen 80; ## listen fo...
Overwrite Cache-Control: Private in Nginx
I get it. I don't open the port for public, but since these two are in the same network, aren't they supposed to be communicating?Everything works as expected. When you use private ip all traffic stateswithinVPC. When you use public IP, the traffic first has to go to the internet and then back. It does not matter if th...
I want to access my server from an other instance, which is also within the same VPC, but my security group configuration does not allow me to do so.My security inbound rule as followsPort range | Protocol | Source 22 | TCP | 10.0.0.0/8telnet private-ip 22 -> works finetelnet public-ip 22 -> does not wor...
Why can't access a server with a public IP within the same network?
You have the Docker daemon listening on the localhost address,127.0.0.1. You won't be able to connect to that from a remote host. The only host that can connect to that address is...the local host.To have the Docker daemon accept connections from remote hosts, you probably want:ExecStart=/usr/bin/dockerd -H fd:// -H tc...
I'm trying to connect a docker daemon from a client to a remote host via TCP but I'm getting this error:docker -H tcp://{{HOST_IP}}:2375 ps Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?What could be possible reasons for that? What is a proper debugging approach for finding a solution?Sy...
Docker remote daemon (TCP): Cannot connect to the Docker daemon
Docker will autostart any container with aRestartPolicyof'always'when the docker service initially starts. You won't find any evidence of this within cron or any other normal system startup scripts; you'll have to dig into the container configuration to find it.docker inspect my-container(Look forRestartPolicyin the ou...
This question already has answers here:docker - how do you disable auto-restart on a container?(8 answers)Closed6 years ago.The community reviewed whether to reopen this question7 months agoand left it closed:Not suitable for this siteThis question does not appear to be abouta specific programming problem, a software a...
How to prevent docker from starting a container automatically on system startup? [duplicate]
DOCKER_OPTS="--dns 8.8.8.8"inside /etc/default/docker fixed the issue
Im trying to deploy a django app using the gitlab ci and using docker for the same .My deploy.sh file:ssh -o StrictHostKeyChecking=no ec2-user@$EC2_PUBLIC_IP_ADDRESS << 'ENDSSH' cd /home/ec2-user/app export $(cat .env | xargs) docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY docker pull $IMAGE:we...
docker login fails on gitlab
0 A custom option like this isn't likely something GitHub will implement. See: https://github.com/desktop/desktop/issues/15293 Share Improve this answer Follow answered Sep 16, 2022 at 16:08 ...
GitHub Desktop has this feature to discard all changes (non-committed, non-stashed) at once, and it works fine. When you discard changes in GitHub Desktop, all changes (or rather should I say all files containing changes) on a currently checked-out branch will be moved to the recycle bin, which is also a pretty nice f...
Discard changes in GitHub Desktop without moving them to recycle bin
With private repositories, how do I give someone read access versus write access? This kind of permission is not available for simple accounts. When you add an user as a collaborator, he gains read/write permissions. The story changes if you own an Organization. Organizations contains teams and each team can have di...
One thing I noticed: Using the GitHub UI, I added a collaborator to a repository. I saw that they committed changes without any authority / approval from me. It was a private repository. With private repositories, how do I give someone read access versus write access?
Do collaborators have commit access on GitHub?
Found more guidance for remote zipped files inDocker documentationBecause image size matters, using ADD to fetch packages from remote URLs is strongly discouraged; you should use curl or wget instead. That way you can delete the files you no longer need after they’ve been extracted and you don’t have to add another lay...
So, I have, it works, but I want to change the way to immediately download the file and unpack it:Dockerfile FROM wordpress:fpm # Copying themes from local COPY ./wordpress/ /var/www/html/wp-content/themes/wordpress/ RUN chmod -R 777 /var/www/html/How can I immediately download the file from the site and unzip ...
How to download and unzip in Dockerfile
Just roled my own library because there was nothing for .net core / xplat support...https://github.com/MichaCo/DnsClient.NETIt works pretty great and gives youdiglike log messages if you want.Simple to usevar lookup = new LookupClient(); var result = await lookup.QueryAsync("google.com", QueryType.ANY);and works with c...
Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si...
How to get mx records for a dns name with System.Net.DNS? [closed]
Taken from the AWS documentation: You can only create MySQL version 5.7 and 8.0 DB instances with latest-generation and current-generation DB instance classes, in addition to the db.m3 previous-generation DB instance class. Read more: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.MySQ...
I'm trying to figure out how to create a simple DB instance. I have so far only a DBSubnetGroup and DBInstance. At this point, I've figured out a couple things based on the errors I get when I try to create a stack with my template (created in Designer). I've now hit an error that, according to the instance class docu...
RDS does not support creating a DB instance with the following combination
According to your description, if you want to created a scheduled WebJob which will fired at 8:00 AM.I suggest you could try to use below cron.At 8:00 AM every day: 0 0 8 * * *More details about how to set the cron, you could refer to thisarticle.Result:Besides, if you want to make sure your web jobs will continue work...
I actually require an cron expression to automatically restart an app at 8 am every day. for that I have to create an scheduled webjob in azure but i'm not getting the exact cron expression.
cron expression to run a webjob at 8 am everyday in azure
Someone posted an answer and deleted it before I could accept it. But here it is - FROM ubuntu:latest MAINTAINER ME RUN apt-get update && apt-get install -y \ net-tools inetutils-traceroute \ iputils-ping xinetd telnetd This works!!
Dockerfile1 FROM ubuntu:latest MAINTAINER ME RUN apt-get update RUN apt-get update && apt-get install -y net-tools \ && apt-get install inetutils-traceroute \ && apt-get install iputils-ping \ && apt-get install xinetd telnetd Dockerfile2 FROM ubuntu:latest MAINTAINER ME RUN apt-get update RUN apt-get update && apt-g...
Docker building fails: returned a non-zero code: 1
Before you push make sure that files are added to the index and changes have been committed. Its a good practice to commit with a message. In case you did not commit with message, use git log to find SHA for most recent commit. On the Git-hub check the SHA or message for most recent commit. While doing git push <remo...
I'm pretty new to using Git, so maybe I'm doing something basic wrong. What I'm trying to do is push the commits of a branch to the remote repo on Github. I tried the following line git push origin Interface It returns 'Everything up-to-date', but when I check the branch on Github, my changes aren't there. What am I...
After push, git says everything up to date but changes are not in the repo
+50You can use these rule inparentFolder/.htaccess:RewriteEngine On # remove ChildFolder from URL show in browser RewriteCond %{THE_REQUEST} \s/+(parentFolder)/ChildFolder/(\S*)\s [NC] RewriteRule ^ /%1/%2 [R=301,NE,L] # add ChildFolder internally RewriteRule ^$ ChildFolder/ [L] RewriteCond %{REQUEST_FILENAME} !-f ...
My URL washttp://demo.example.com/parentFolder/but i have to redirect it to child folder, URL ashttp://demo.example.com/parentFolder/ChildFolder/i have redirect it in htaccess as<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?demo.example.com/parentFolder$ RewriteCond %{...
how to Remove Sub directory name from URL with htaccess?
The format of a number printed with%'ddepends on the current locale, not (necessarily) on whichprintfcommand you're using.If your script is as you've shown us, you're invoking/usr/bin/printf.On my system:$ echo $LANG en_US.UTF-8 $ printf "%'d\n" 123456 123,456 $ /usr/bin/printf "%'d\n" 123456 123,456 $ LANG=C printf "%...
I have a nightly report that is executed by cron with the following lines in it:PRINTFX="/usr/bin/printf" <snip> ${PRINTFX} "%-11s %-11s %'d\n" ${F1} ${F2} ${F3}Crontab entry:[ca-adm@homwpspect01 ~]$ crontab -l 55 01 * * * /usr/local/sbin/CRONSQLEventsMy Issue is that if I run this manually ...
env issues when running cron bash script
You can setupSettings Encryptionto encrypt settings if they are meant to be distributed. Note that most of the times, the RDBM login and password are only known on the machine responsible for analysis, which is often a continuous integration system.
Attempted to ask this to[email protected]but my email address appears to not be allowed to send to that list despite being subscribed.I'm trying to figure out how to put together a centralised, managed SonarQube service which would allow any developer to submit results to the service.All of the documentation for settin...
How do I hide Sonar database credentials from end users
I've had the same problem. I solved it with the following steps:By clicking on the title bar "CPU Basic" of the graph it will open a menu. Select "Edit".At the top of the right sight you will see a drop down box showing the text "Time series". Click on that text.Now you will see a list of possible graph types. Directly...
I have installedNode eporter full(1860) Grafana dashboard. It seems works, but CPU graphic is not visible:As we can see, that values seems available.CPU Busymetric is working.WhyCPUpercentage andCPU Basicgraphs does not show graphic?
Why grafana graphic is not visible?
As persvnbook, when you hit 'p',Subversion will cache the server certificate in your private runtime auth/ area, just as your username and password are cached.On unix/linux, this caching happens under each user's home directory. ( Seethisfor more information)So you need to understand the caching and then put the cert...
So I have a certificate issue with a third party svn server and fixing it right now is not an option for me. When I ssh into my server I can trust the certificate but it only applies for the user I'm logged in as. Right now to accept the certificate permenantly I just do:svn info "https://www.example.com/repo"and I get...
svn accept certificate permanently for all users
Simply restarting Apache after enabling WSGPPathAuthorization fixed my error. For those of you who encounter something similar, here's what I did: SSH into the server Navigate to where your http.conf file is stored (in Apache, this is usually etc/httpd/http.conf) Edit http.conf, adding WSGIPathAuthorization On. Rest...
I'm working with Django Rest Framework and Django Rest Framework JWT, but I'm running into an issue in regards to local behavior vs external behavior. When I make a POST request to get a JWT token, everything works as desired both locally and on my EC2 instance. However, once I have the token, when I make a request t...
Django API works locally but not when deployed on Elastic Beanstalk
0 Solved - see comment from Deepak Srinivasan. Share Improve this answer Follow answered Nov 12, 2013 at 13:57 queerdancerqueerdancer 3511 silver badge55 bronze badges Add a ...
I'm having the following issue: I backed up my Drupal7 project on my localhost via $ drush archive-dump --destination=/var/backup/example.com.tar.gz using drush 6.1.0 on my Ubuntu 12.04. (apache2/php5.3.10/mysql 5.5.34). I then tried to restore it to my Mac (OSX Lion) via $ sudo drush archive-restore /var/backup/exa...
drush: no path to user login after archive-restore
There is no way to mount a local directory into a Kubernetes pod (after all kubeflow and ksonnet just create pods and other Kubernetes resources).If you want your files to be available in Kubernetes I can think in two options:Create a custom docker image, copying the folder you want, and push it to a registry. Kubeflow...
I am trying to mount a local directory into a component deployed in kubeflow using ksonnet prototype.
How to mount local volume to ksonnet component deployed in kubeflow
4 Python is a "garbage collection" language. One such consequence of this is that memory is automatically allocated and freed as needed. This creates memory fragmentation which can break apart transfers to the CPU caches. It's also not possible to change the layout of a dat...
It's my first time posting here and I hope you guys can answer my question. I'm writing a Python script that finds all of the prime numbers up to some number n using the sieve of eratosthenes. In order to make the program more efficient, I want to sieve the range of numbers in "segments" that fit inside the CPU's L1 c...
Python: Get Processor's L1 cache
Leaving my approach to solve this using Python's boto3 client. (1) Empty repository and then (2) delete stack.import boto3 ecr_client = boto3.client('ecr') ... # Apply only to ecr cfn template if '-ecr' in stack_name: print('Deleting existing images...') image_ids = ecr_client.list_images(repositoryName=ECR_RE...
How to delete aws ECR repository which contain images through cloudformation? getting below error while deleting it.The repository with name 'test' in registry with id '**********' cannot be deleted because it still contains images
How to delete aws ECR repository which contain images through cloudformation?
You have to have the path to to your selenium driver specified when running it as a cron. for exampleexport PATH=path/to/your/selenium/driver/folder:$PATH && cd /Users/Saleh/Desktop/MMM && python READY.py
I am trying to automate a python script to run every minute but can't seem to figure out why I get the error:ImportError: No module named seleniumalthough:pip freeze ... selenium==3.4.2 ...and script runs in command line.here's what I am doing:* * * * * cd /Users/Saleh/Desktop/MMM && python READY.pyError:crontab: insta...
ImportError: No module named selenium cronjob Mac
I don't have knowledge of the programmers' state of mind when they made this decision but yes - a library is not going to be used in a well-defined scenario or two, it's going to be used however someone coded the main() to call itIf you really want to disable an option then compiling it out seems to me to be the best a...
In case you missed it - an OpenSSL vulnerability in the implementation of theTLS Heartbeat Extensionhas been making the rounds. For more information seehttp://heartbleed.com/.One of the possible mitigation steps is to recompile OpenSSL with the-DOPENSSL_NO_HEARTBEATSoption to disable the vulnerable extension.Why does a...
Compile Flags vs Configuration Options - TLS Heartbeat
If you don't want to change the URL then simply remove the redirect flag from yourRewriteRule.Do the following :ChangeRewriteRule ^(.*)$ /HTML/pages/construction.html [R=302,L]ToRewriteRule ^(.*)$ /HTML/pages/construction.html [L]
I have a .htaccess file and i've set up a 'Coming Soon' website. It excludes my ip as i'm the developer but for other visitors I don't wan't it to change the url of the address.Here's the file:Options +FollowSymlinks RewriteEngine on RewriteCond %{REMOTE_ADDR} !^12.345.67.89$ RewriteCond %{REQUEST_URI} !/HTML/pages/con...
How to keep website url the same in .htaccess 503 redirect
16 That command only lists the user's inline policies, you would also need to get the list of managed policies attached to the IAM user. Then you would also need to get the list of groups a user belongs to, and list the inline policies and managed policies attached to eac...
I run this command: aws iam list-users, and I get a list of users but not permissions (meaning if someone is root, or s3fullaccess and so for) are listed. I run this other command: aws iam list-user-policies --user-name xxxxx, and I get this result below empty: { "PolicyNames": [] } Which command or what combinat...
How to list users and its permissions with AWS CLI?
I think of git as mainly a tracker for software components (such as lines of code) and not software configuration.A server password is configuration and therefore to be excluded from change control. The .htaccess file is a configuration artefact necessary (As I understand it in your case) for the correct operation of y...
Another developer says we should put .htaccess files in the git repo, but because the live server uses passwords and our local boxes don't, I said we should put them in the .gitignore. However, he says that if you have to have different .htaccess files across instances, you're doing it wrong. I argue not all server ins...
What is the best way to handle .htaccess with a git repo?
That you need to do this in the first place is kind of a failure of project architecture. Script files that shouldn't ever be accessible to the Web shouldn't be inside your DocumentRoot in the first place.That said, this will probably work:RewriteEngine on <DirectoryMatch "/(?!.*/ajax$)"> Order deny,allow Deny f...
I have this .htaccess file where I prevent users from physically accessing files from the browser (where they should only be loaded through the system)Options -Indexes Order deny,allow deny from allI have one problem though, sometimes I load files via AJAX and there I get 403 Forbidden. I have little experience with ap...
How can I deny all but one directory name with .htaccess?
4 Wikis are just Git repositories, you can make changes locally and push them to your repository. But you have to clone it separately. Append .wiki.git to the repository name. That is, if your repository name was foobar: git clone [email protected]:myusername/foobar.git wo...
I've succeeded to config to pull/push from my github repo without username and password using ssh-key. But I cannot find a way to pull/push wiki for that repo without username and password. Could someone please help? Thanks!
How to push to github wiki without username and password?
Even if you use a single persistent connection the PHP script will be executed for each playlist request, and, like you noticed the registered shutdown function will get called at each run's end.Instead of updatingDate_endimmediately log the HTTP requests along with the user and stream IDs and periodically calculate ...
I'm reading a dynamicly generated m3u8 hls playlist from ffmpegbasically the file look like#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:11 #EXT-X-MEDIA-SEQUENCE:3 #EXTINF:11.000000, 2_3.ts #EXTINF:8.000000, 2_4.ts #EXTINF:11.000000, 2_5.ts #EXTINF:11.000000, 2_6.ts #EXTINF:8.000000, 2_7.ts #EXTINF:11.000000, 2_8.tsI'...
Outputing HLS m3u8 TS segment PHP-FPM Nginx
My issue got resolved by following Gari Singh suggestion.What is the full path the the fabric-samples directory? The usual issue here is that you do not clone the fabric-samples repository into a folder shared with Docker Toolbox. Typically you need to make sure that you clone fabric-samples somewhere under C:\Users on...
I am new to blockchain and i was going through the tutorialhttp://hyperledger-fabric.readthedocs.io/en/latest/build_network.htmland doing it. I completed the pre-requisites and download of the samples and binaries. I was able to run./byfn.sh -mgenerate successfully. But when I was running./byfn.sh -m upI got the error:...
/bin/bash: ./scripts/script.sh: No such file or directory when running ./byfn.sh -m up Hyperledger fabric
Docker uses a so-called union file system for a running container. The recommended driver on Linux is called overlay2. The files and directories for each layer of an image are stored under /var/lib/docker/overlay2, assuming the default config. The directory structure for each layer is combined to create the final file...
How does docker create a file system for a Linux container? And how are permissions set up on the root file system? I encountered a situation when starting a docker container on a particular machine with Ubuntu Server. For some reason, /tmp in the container doesn't have write permissions: $ docker run -it python:3.11-...
File system permissions in a docker container
That would be "topics": see "Classifying your repository with topics"Under your repository description, click Add topics.ShareFollowansweredMar 5, 2019 at 6:08VonCVonC1.3m539539 gold badges4.6k4.6k silver badges5.4k5.4k bronze badgesAdd a comment|
See the picture, this example repository 'octobox' is labeledrubynotificagtionsinboxetc. How can I label my own repository like that?
Labeling a GitHub repository
One tip, post the output ofgit log --graph --oneline --allwith your HEAD, so we have a better insight on what is going on.If I understood correctly, you should try the following: (make sure you don't force push something. Use hash codes for arguments onreset)git reset his-last-commit(to uncommit recent edits after his ...
I am pretty sure the answer to this question may be found on SO, at least in bits and pieces on several different posts. I have a branch that was created of a different branch. I have made some commits in my branch and then the owner of the other branch has force pushed some commits onto my branch. After that happened,...
Git replace the local branch and rebase my branch on top of the new one
Well, the standard procedure with git is to update from upstream. Find the source repository for the interested npm module, clone it to your local repo, create a separate branch and patch it with your changes. Every time you find the npm module's repository was changed you update the master branch in your local reposi...
I only know the very basics of git so I am unsure how to do this or if there is a better/easier way. Suppose a have a third party package from NPM and I need to modify it to add a feature/patch etc but further down the line the contributors of this package release an update. How do I update the package with the newest...
What is the standard procedure to patching a third party package while also being able to merge updates further down?
i used something like that.RewriteRule ^(?!intranet/|cv/)(.+)$ somedirname/$1 [L] RewriteRUle ^$ somedirname/ [L]so when mysite.com/intranet is called it goes into the folder intranet or when mysite.com/cv is called it goes into the cv folderbut in this case when no subdir is called it forces to go into 'somedirname'of...
I have the following .htaccess file in a directory:RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://www.mysite.com/launch [R,L] DirectoryIndex index.htmlBasically, this forces any and all pages below mysite.com/launch to an SSL version ofhttps://www.mysite.com/launch/index.html.However, for a sing...
Remove .htaccess in subdirectory
That's not just ordinary Docker behavior; that's ordinarylinuxbehavior. When you bind-mount a filesystem onto another directory, as in:mkdir /tmp/mount mount -o bind /var /tmp/mountYou will only see files in the destination mount that existin the source filesystem. You will not see the files contained in any child mou...
I'm currently trying to understand how Docker handles mounting of volumes and ran into the following behavior which seems kind of stange to me:Assumed that we want to mount the /var/run directory into a container (just as an example), we do the following:$ docker run -i -t -v /var/run:/test ubuntu:latest /bin/bashSo fa...
Docker's behavior when mounting volumes
After some intense Googling / StackOverflowing, I found the magic incantation./run/desktop/mnt/host/${driveLetter}/path/to/my/windows/dirWhere ${driveLetter} is the drive letter in Windows but lower case (e.g. c, d, e, etc.)Maybe I missed some documentation somewhere but now I can run my Node container on a Windows Hos...
I am running Windows 10 as my host, and I am trying to mount a Windows directory into a Linux container (node, Debian based).Previously, I was using Hyper-V backend and the dockerode package to interact with the Docker daemon to mount my Windows directory into my container. I could create a Docker volume by passing in ...
Windows Host Docker + WSL2 - How to mount Windows directory to a Linux container
16 Yes you can. And actually I think it's a more convenient way comparing to FTP. Make sure your Git is set to "commit as-is", so that you can avoid some signature issues. Publish your ClickOnce application to a directory in your git repository (you may want another branch...
I'm wondering if you can create a ClickOnce installer for a project and then host the installation folder on GitHub (via the downloads page)? I guess by default ClickOnce publishes the installation files to a subfolder which I think is not supported on the Github downloads page but maybe there is another way.
Is it possible to offer a ClickOnce installer on Github?
Memory Cache-stores and loads resources from Random Access Memory (RAM). It is fast because it is easy to load resources from RAM. These resources will persist until you close the Browser or you manually clear it.Disk Cache- It stores and load the resources from disk and it is persistent. It will not contact webserver ...
I'm running WP website with cache plugin enabled. The site is running slow so I decided to check which element is consuming more time to load. Straight to F12 (chrome web tools) and from there the tab Network. What I see and I don't understand is why some of the files are loading from disk cache and other no. Please se...
Why some css, js and images files are loaded from the disk cache and other no?
I actually received the response below for the same question on Pytorch forum. "Yes, your setup will work since the PyTorch binaries ship with their own CUDA runtime (as well as other CUDA libs such as cuBLAS, cuDNN, NCCL, etc.). The locally installed CUDA toolkit (12.0 in your case) will only be used if you are build...
I will be using pytorch for a deep learning application. My computer has an NVIDIA GPU already. I installed CUDA following https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html Following that I installed pytorch in a conda environment with the pip command suggested on pytorch.org pip3 insta...
would pytorch for cuda 11.6 work when cuda is actually 12.0
For location, choose what seems best to you. Here are some considerations to help out:Locations under/varare for files whichchange in size, or generally are "variable."/srvgenerally indicates files related to some service running on the machine./homeshould usually be reserved for interactive users. You can set a system...
I see a lot of different advice online as to where to serve your web application from, what user to run it as, etc.For instance, I've seen it served from: /var/www/site, /srv/www/site, /home/$USER/site.I've seen the user be www-data, $USER (i.e. my user account), or a custom user specifically created for that purpose (...
Best practices for linux user permissions to run web application as?
@swxraft if you run the commands in the order posted in your questionsudo yum install -y yum-utils device-mapper-persistent-data lvm2sudo yum install dockersudo yum-config-manager --add-repohttps://download.docker.com/linux/centos/docker-ce.repoyou installed a docker in the REHL repo (probably an alias to podman). And ...
Installed docker on Centos (running using VirtualBox) following steps below:sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum install docker sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoAnd I rebooted my virtual machine, and as I type 'docker --vers...
Installed docker and I got podman
This should work, although it's clunky (and I haven't tested it):$ git fetch upstream $ git diff upstream/master -- file1.ext path/to/file2.ext yet/another/file3.ext | git apply - $ git add file1.ext path/to/file2.ext yet/another/file3.ext $ git commitWhere "upstream" is the name of the upstream remote, and "master" (a...
i'd like to fork only a couple of files from some repository. For these particular files I'd like to be able to track and merge the upstream changes.Best Regards
Fork particular files from a repository in github
Check your git config first and see what values are set for user.name and user.email git config -l These two need to be the same as your username and email at Github. To set these values just do the following git config user.name "John Doe" git config user.email "[email protected]" The commands above set your userna...
I've just started using Github, but all of my commits show up as "blah [name]" where name isn't my Github username. Also, the latest commit shown at the top left corner says "Oops! This commit is missing author information". Any help will be appreciated. Thanks
"This commit is missing author information"
1 To resolve OutOfMemoryError using OrientDB console change the heap min a max size. Edit bin/console.sh changing the exec arguments. For example, to use a min of 5GB and max of 6GB use the following exec "$JAVA" -Xms5g -Xmx6g -client $JAVA_OPTS $ORIENTDB_SETTINGS $SSL_OPTS...
I'm doing a select using console.sh on OrientDB v.2.1. After waiting some minutes, I get the following output: java.lang.OutOfMemoryError: GC overhead limit exceeded I have 6GB of RAM available and I'm using the default configurations. I tried to uncomment JAVA_OPTS=-Xmx1024 changing the value to 4G, restart orientd...
OrientDB 2.1 Exception in thread "OrientDB WAL Flush Task" with java.lang.OutOfMemoryError (heap or GC)
That's not how you should operate on Heroku.On Heroku, dynos are short-lived, and you shouldn't rely on their storage, which is deleted when they are restarted.Pushing a new release of your code will always restart the dynos, so addingcto.gitignorewon't change a thing.Instead of trying to save to your local disk, you s...
I deployed a simple app into Heroku. It's a MEME generator.When users interact with it through the web, files are created in a "c" folder in the server, but any time I update code on my local machine, push it to github and then to Heroku, the folder, which is empty on my local machine and on github, gets also emptied o...
Pull specific folder from heroku into github
kubectl create secret generic gcloud-private-key --from-literal=GCLOUD_PRIVATE_KEY='"...\n...'\n', '"' are invalid character for TLS key when create from literal. You can load the key directly from the original file as-is:kubectl create secret generic gcloud-private-key --from-literal GCLOUD_PRIVATE_KEY="$(cat <file>)"
I am new to Kubernetes.I found some errors while using google-cloud-storage.The problem is, when I specify GCLOUD_PRIVATE_KEY directly in .yaml file, I work nicely.- name: GCLOUD_PRIVATE_KEY value: "-----BEGIN PRIVATE KEY-----\n(...)\n-----END PRIVATE KEY-----\n"However, when I inject the variable to cluster.AT term...
set env variable in Kubernetes clusters