Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Yes, there is a better way wich works for any repo: use the releases atom feed.
The general form is
https://github.com/<owner>/<repo>/releases.atom
And the one you're looking for is available at https://github.com/angular/angular.js/releases.atom
|
Is there a way to get changes feed to this file:
https://github.com/angular/angular.js/commits/master/CHANGELOG.md
My goal is to simply know when angularjs, or any other repo I consume, has come up with a release.
Is this the way?
Is there a better way?
| RSS to a github file? |
Duplicate content is unavoidable when using GitHub Pages with users and organizations if the repository is publicIn general this shouldn't be a problem. See aprevious answer.You do have a couple of options:Google and other search engines can't obviously access private repository which requires a paid plan.Switch to apr... | I'm looking at using GitHub Pages to host my blog and Jekyll to present it.Presumably, whatever I commit will appear at<yourname>.github.iothrough Jekyll and athttps://github.com/<yourname>/<yourname>.github.ioin rawer form. See thispage showing links to live sites and to the source repos used to construct them.Advice ... | GitHub Pages and Jekyll content duplication and SEO issues |
Github has a help section for this situation. You can view it here. That will remove them if they never existed.
If you want to keep them around, make a copy of the file before you follow the github guide. Once you have removed them from your repository, add them back to your working directory, and add than add t... |
My project is here [the link is not for marketing thing as many might think], I am entirely new to Git and Github and I Use Git Extensions with Visual Studio 2008. I committed the file, directory Plug.Sln and Samples into Github, now
How the heck do I remove it from them & leave no trail that file existed in my repos... | How do I delete the committed files from Github? |
sonar.projectKeyis an ID of the project. Example: if you will analyze project A and next project B with the same ID, then data of B will overwrite result stored for A project.sonar.projectNameis a display name - visible in SonarQube dashboard. Example: My Projectsonar.branchallows you to analyze more branches of one pr... | I'm not sure if I understand correctly the use of parameters ProjectKey, ProjectName and branch in a sonarscanner analysis.Suppose that I have a project with diferents branches. When I run the analysis independently of the branch, the value for ProjectName and ProjectKey parameters has to be always the same?Or every br... | Right use of ProjecKey, ProjectName and Branch |
git pullis nothing butgit fetchfollowed bygit merge. So what you can do isgit fetch remote example_branchgit merge <commit_hash>ShareFolloweditedJul 17, 2015 at 8:22answeredJul 16, 2015 at 19:38unrealsoul007unrealsoul0073,90911 gold badge1818 silver badges3333 bronze badges4@unrealsoul007 this will merge just that one ... | I want to do agit pullbut only till a specific commit.A->B->C->D->E->F (Remote master HEAD)so suppose mylocal masterHEAD points toB, and I want to pull tillE. What should I do ?This is not pulling a specific commit, this is pulling upto a specific commit. | Git pull till a particular commit |
You can try this redirect rule at top of your .htaccess:RewriteEngine On
RewriteCond %{QUERY_STRING} ^edd_action=check_license&item_id=[^&]+&license=[^&]+&url=[^&]+$ [NC]
RewriteRule ^$ /wp-admin/admin-ajax.php [L,R=302,NE]
# other WP .htaccess code goes below thisThis rule will redirect landing page URI to/wp-admin/... | I'm trying to write an .htaccess regex, but still can't make it. I spent many hours trying to figure out the way. Of course, with regex, it is hard to find an exact answer. That's why I would really appreciate your help.The scenario is: there is a script (WordPress plugin) making a POST request to my API gateway which ... | Htaccess regular expression challenge |
UsingHTTPoison, you need to pass the:insecurehackney option.HTTPoison.get! url, [], hackney: [:insecure] | I'm trying to call a dev environment REST service from my phoenix server, but I don't want to whitelist the CA. For the record, I don't even know how to add the CA key to Phoenix's whitelist.How to do https request from phoenix while also ignoring the SSL's CA error? | How to do HTTPS request from Phoenix and ignore the CA error |
Extract before/after image from journal.Simply copy the joesd to a flat file. Then copy flat file to database *NOCHKThis code gets the after image.? DSPJRN ?*JRN(mylib/myJRN)
OUTPUT(*OUTFILE)
OUTFILFMT(*TYPE3)
OUTFILE(QTEMP/Z1)
ENTDTALEN(*CALC)
insert into myflatfil
SELECT... | I need to analyze the journal entries of type R for DB2 on iSeries in order to be able to audit all sql requests (Insert, Update,Delete) generating changes on data : in fact, i would like to analyze the ENTRY_DATA field as returned by QSYS2.Display_Journal in order to dissect image-before / image after of changed lines... | IBM iSeries : fulls details of journal entries (type R) |
12
You'll probably find it's actually your second app which is generating the Express JS message: "Cannot GET /testing".
Nginx proxy_pass directives behave differently based upon what can appear to be very minor differences in how you define them. If you specify a location ... |
I have the following configuration:
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://localhost:3000; # this is where our node js app runs at
proxy_set_header Host $http_host;
proxy_cache... | Nginx multiple locations for multiple Node JS Express Apps |
A good starting point for this is the Android Cloud to Device Messaging (C2DM) introduced in Android 2.2. You should play around with it a little bit. It will give you a first understanding of what a cloud service is all about and what it entails on the server side as well as the client side. Take at the blod post, he... |
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
... | Android Cloud Storage [closed] |
Since a submodule acts like a standalone repository once you are inside it, you can test the submodules directly.
If you change directory (cd) to Assets/NRSDK while on the cleanup/dev1 branch of your super project, you can rungit show-refto see all the references it has. I also usually rungit fetch -pvto make sure I’m ... | Example project:https://github.com/hpvdt/HMD-nreal/tree/cleanup/dev1When I checkout this project and try to synchronise with all its submodule, I got a very concerning error message:git submodule update --remote --recursive
fatal: Unable to find refs/remotes/origin/HEAD revision in
submodule path 'Assets/NRSDK'It is c... | In git, what may cause the error message " fatal: Unable to find refs/remotes/origin/HEAD revision in submodule path 'Assets/NRSDK'" |
If branch B is at local, You can merge A to B locally and push B to remote:
git checkout B
git merge A
git push origin B
If you don't have B at local, you can push A to remote and pull request to merge A to B and click merge button on github.
or, fetch B branch to local and merge A to B , then push B to remote, like ... |
I have a local branch A that doesn't exist yet in the remote repo. I also have a remote branch B in the remote repo. How do I merge my local changes into the remote branch?
| Merge local branch into remote branch other than master? |
You have a typo in your origin remote URL. It's github.com, not github.
First, remove your bad remote:
git remote rm origin
Then add it back with the correct address:
git remote add origin ssh://[email protected]/Mallanaga/ABCD.git
After, you should be able to run git push -u origin master without any trouble.
|
C:\Dropbox\Apps\rails_projects\ABCD>git push -u origin master
ssh: github: no address associated with name
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
/shrug. I've done this a dozen times. Not sure what happened here. I can push on o... | brand new app I'm pushing to github |
2
You could use GitHub webhook or Bitbucket webhook to listen (and trace) push events.
But:
there is no "clone/pull/fetch" events
you wouldn't be sure of who did the push anyway.
A better setup would be for the team to push to a "git repo proxy" (an intermediate repo that... |
I need a report of all pull and push by all team members.
| Report of bitbucket and github pull and push |
13
GitHub has a strict file limit of 100MB. So, It's recommended to use Git Large File Storage for your use case.
Git Large File Storage lets you store large files on a remote server such as GitHub.
Download & install git-lfs by placing it into your $PATH.
Run the followi... |
I am trying to push files over 100MB to Github. I have tried all the options I could find, including the GitHub large file extension, but no luck.
I am trying to push from GitHub Desktop currently, as I am pushing over 100 files and this is a workaround, but hoping someone can provide me with some advice or the exact ... | Pushing files over 100MB to GitHub |
As Gaurav said in hisanswer, we can only use thehosttype (<domain>) in thetargetsarray. In order to incorporate the httpsschemeand the path/backoffice, you need to useschemeandmetric_pathproperties respectively in the configuration (schemedefaults tohttpand metric_path to/metricsif not mentioned explicitly).I see that ... | prometheus is telling me that:"https://some-domain.com/backoffice" is not a valid hostname"My config file is:global:
scrape_interval: 10s
scrape_configs:
- job_name: 'spring_micrometer'
metrics_path: '/actuator/prometheus'
scrape_interval: 5s
static_configs:
- targets: ['192.168.99.102:8085... | Prometheus: invalid hostname with https scheme |
You could try{{ topic.url | relative_url }}which should give you the relative url of your topicShareFollowansweredFeb 20, 2020 at 14:45Stanislas GirardStanislas Girard31422 silver badges99 bronze badgesAdd a comment| | I am trying to create a simple website for documentation using github page using markdown documents.The directory structure is:root
|-- index.md
+-- _topic
|-- doc1.md
|-- doc2.md
|-- ...
+-- docn.mdThe index.md file content:---
title: TOC
---
{% for topic in site.topics %}
* [{{topic.tit... | Jekyll markdown processing does not create hyperlink |
You can use a json patch for this, below is an example.Here is an examplekustomization.yaml. It will call out a patch in thepatchessection:apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/app1
patches:
- target:
kind: Ingress
name: my-ingress
path: ingress-patch.jsonHe... | I've got this ingress.yaml base configuration:apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
sia: aza
app: asap-ingress-internal
name: asap-ingress-internal
annotations:
kubernetes.io/ingress.class: "nginx-external"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:
-... | Kustomize how to replace only the host in Ingress configuration |
Your disk usage chart reveals a lot of disk usage on the overlay filesystem, so by Docker containers union file system. This suggests that you are having some large containers running. Those might have been large to start with or be writing binary data to the container file system while running.To get to the bottom of ... | I have a local OpenNESS network edge cluster using Kubernetes as its infrastructure management.
I'm facing the disk pressure issue due to which pods are getting Evicted and in CrashLoopBack state.
Also, the images from worker-node went missing(got deleted automatically)
If I check the disk usage, I see 83% been used by... | how to solve the disk pressure in kubernetes |
3
You cannot change that inside the running container, you would have to do that on your host.
How you do that on the host depends on your host-os, on Linux I suggest to take a look a cgroups, thats how docker internally restricts containers.
On ubuntu you could use the cgr... |
How can we change the memory and cpu limit for docker containers at runtime? I mean while the container is running I would like to change the the memory limit for example
Thanks in advance
| Runtime constraints on CPU and memory with docker containers |
Ok, I found the answer. The trick is you have to define error_page explicitly for all those special locations. Here is the configuration which worked for me.location / {
root /var/www/nginx-default;
index index.html index.htm;
error_page 404 /404.html;
}
location /abc1.html {
root /var/www/nginx-d... | I am running nginx server. I want to serve a custom error page for a particular request only. For-example for requesthttp://localhost/abc1 & http://localhost/abc2if these pages are not there I want to serve a custom error page. This custom error page should appear only for above two mentioned links, rest of the page er... | Multiple 404 error pages in nginx |
1
The only way is to use the --oom-score-adj option to docker run or even --oom-kill-disable.
https://docs.docker.com/engine/reference/run/#runtime-constraints-on-resources
Share
Improve this answer
Follow
... |
Please help to find an appropriate solution.
There is a java service running in Ubuntu environment, that periodically invokes external process with params (multiple instances of the same program). Everything is packed into Docker container (memory limit is set, unprivileged, readonly except tmp and logs, cap_drop all)... | Adjust OOM killer for subprocess in Docker container |
You should make use of WordPress Transients API to store temporary, cacheable data.
This allows you to save a value, along with an amount of time that the value should be cached for. Here is an example of how this might work with your function:
function popular_uploads() {
// Try to retrieve saved data from the... |
Is there any way to cache data for a WordPress plugin ? I have a ready one that uses third party API access to YouTube API V3 and I need to apply cache for both optimization and keeping the hits under the quota.
Supposing I have this function:
function popular_uploads() {
$url = 'https://www.googleapis.com/you... | How to cache third party API access in SQL database for a WordPress plugin |
Unfortunately, PhpStorm doesn’t support pushes to multiple remotes.
As a workaround you could set in your config "pushUrl" like this:
[remote "github"]
url = <url1>
pushUrl = <url1>
pushUrl = <url2>
Or as mentioned in comments, use the following commands:
git remote set-url --add --push origin git://origi... |
I want to use manage remotes to share my project on Bitbucket and GitHub. But there is a problem. When I add a git link of GitHub to manage remotes section, and then when I click push, GitHub seems but Bitbucket doesn't seem. Screenshots are below.
.git config like this:
If I write Bitbucket to remote in branch sec... | 'Manage Remotes' problem in PhpStorm for Git |
Caching should be done in the model. If I had to choose in general, I would probably end up transparently caching the model's database interaction, which wouldn't require you to make any changes to the rest of your code. This of course would be done in the parent class of your models.
Definitely focus on caching your ... |
I am having some second thoughts about where to implement the caching part. Where is the most appropriate place to implement it, you think?
Inside every model, or in the controller?
Approach 1 (psuedo-code):
// mycontroller.php
MyController extends Controller_class {
function index () {
$data = $this->mo... | Cache layer for MVC - Model or controller? |
Important thing to remember for this kind of redirection is that Apache strips out all multiple slashes in RewriteRule match. For this reason it is better to use variable%{THE_REQUEST}which remains "as is". SO just use this code in your .htaccess under DOCUMENT_ROOT directory:Options +FollowSymLinks -MultiViews
# Turn ... | What rule should I write for redirection in htaccess so thathttp://abc.com/http://xyz.com/path/redirects tohttp://xyz.com/path/buthttp://abc.com/?url=http://xyz.com/path/should not redirectThanks,
Loveleen | Redirect Rule in htaccess |
RedirectMatchdoesn't needRewriteEngine Online.You can use this negative lookahead rule:RedirectMatch 301 ^/(?!index\.)(.+)\.html$ /$1.phpMake sure to clear your browser cache. | I'm currently using:RewriteEngine On
RedirectMatch 301 (.*)\.html$ $1.phpThis works ok, but the problem is thathttp://www.example.comredirects tohttp://www.example.com/index.php. How do I inhibit the home page php redirect from happening while keeping all other pages redirected?For example:www.example.com/page1.html >>... | Redirect all html pages except home page to php version |
There are lots of differences between Android kernel and Vanilla kernel:http://www.linaro.org/blog/android-blog/androidization-of-linux-kernel/CONFIG_ASHMEM=y
CONFIG_STAGING=y
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_LOGGER=y
CONFIG_ANDROID_RAM_CONSOLE=y
CONFIG_ANDROID_LOW_MEMORY_KILLER=yTo overcome ... | What I have been trying to do is patch or merge the differences in the android kernel to a linux kernel for a specific board. I am having trouble successfully merging the 2 though. I have tried to merge the kernel using these commands to make a patch file:
1st: I tried to find the point in time where the vanilla l... | patch differences between android kernel and vanilla linux kernel |
First, identifiedmod_expiresis compiled inside your apache.TryPATH_TO_YOUR/httpd -M | sort /* <-- look for expires_module*/And your apache configuration should be likeExpiresActive on
ExpiresDefault "access plus 1 year"And always restart apache after configuration changed | we all know that setting expire date for static files is very useful and the way i found to do so is through theExpiresDefaultproperty in a .htaccess file but it just doesn't work. I am using YSlow and page_speed to test the HTTP response, but it just keep on telling me that I need to set an expire date for my JS, CSS ... | apache ExpiresDefault - just doesn't work |
You need to run apache (httpd) directly - you should not use init.d script.Two options:you have to run apache in foreground:/usr/sbin/apache2 -DFOREGROUND ...(or /usr/sbin/httpd in CentOS)you have to start all services (including apache configured as auto-run) by executing/sbin/initas entrypoint. | I'm trying to run a simple Docker image with Apache and a PHP program. It works fine if I rundocker run -t -i -p 80:80 my/httpd /bin/bashthen manually start Apacheservice httpd starthowever I cant get httpd to start automatically when runningdocker run -d -p 80:80 my/httpdApache will startup then container exists. I ha... | Docker CentOS image does not auto start httpd |
where are those backups located? Are they just stored in the app's region or are they geo-replicated in the paired region as well?
Automatic backups are stored in the same region (datacenter) of App Service that is backed up as given in this MS Doc.
Custom backups stored in Storage Account.
We can store the custom... |
I have an Azure App Service (Premium) that is backing up my apps on the standard schedule. All of that is working fine. My question is, where are those backups located? Are they just stored in the app's region or are they geo-replicated in the paired region as well?
| Are the Azure App Service Backups stored in both paired regions? |
Openstack Magnum usesCinderto provision storage for kubernetes cluster. As you can readhere:In some use cases, data read/written by a container needs to persist
so that it can be accessed later. To persist the data, a Cinder volume
with a filesystem on it can be mounted on a host and be made available
to the container,... | When speaking about Openstack Magnum deployment of Kubernetes cluster (on bare metal nodes), is it somehow possible to leverage local disks on those nodes to act as persistent storage for containers?In advance, thanks a lot. | Deploying Openstack Magnum on bare metal |
docker container diff is what you need: https://docs.docker.com/engine/reference/commandline/container_diff/
|
Is there a convenient way to find out all installations and changes made inside a docker container after the container was built? Because its not recommended to commit the changes to a new image, how could I easily find out all changes so that I can put them in the Dockerfile?
| Docker post build installations inside container |
Boot 2.1 is end of life. The last release, last month, was 2.1.18. The current 2.2.x release of spring-kafka is 2.2.14.If you can upgrade to (at least) Boot 2.2.11 (spring-kafka 2.4.11 - Boot brings in 2.3.x by default) (and a broker >= 2.3), you could consider configuring incremental cooperative rebalancing.Current re... | I'm running Spring boot applications in k8s cluster with Kafka.
during a rolling update or scaling my services, some of them rebalanced which is ok since consumers are being added or removed, but this causes the service whos rebalancing to stop serving traffic.I'm usingSpring boot 2.1.1.RELEASESpring Integration Kafka ... | Spring boot application stop serving traffic while Kafka consumer rebalancing |
You could try like this!server {
server_name app.somename.com;
location / {
proxy_pass http://192.168.0.16:80;
proxy_set_header Host app.somename.com;
}
} | I have a dynamic IP which I manage using ddclient. I use no-ip to maintain the hostnames to point to my IP.I have www.somename.com, sub.somename.com and app.somename.com. Obviously, these all point to my IP. The first two are a couple of wordpress pages on a server (server1) running NGINX, with separate configs in site... | nginx redirect subdomain to seperate server ip |
You must call the API from your local IP address. To get your local IP, just do the following:If you are on Ubuntu 16.04:ifconfig | grep 192If you are on Ubuntu 18.04:ip -c a | grep 192Your local IP address will probably be something like192.168.0.XXX. | Have created a simple GET API using node.js and trying to consume it within my expo-react native project using axios/fetch.The GET API is called whenever user clicks on submit button.Submit ->http://localhost:port/apiHowever, when I am trying to test the feature on my android device by connecting the device through dat... | Call localhost API within react native ( android device : connected through local) |
Assuming you don't need to capture whatever comes after /camp/, this nginx configuration should do it:
location /camp {
rewrite ^/.* /connect/rally_camps/register ;
}
From the nginx docs for rewrite:
If a replacement string starts with “http://”, “https://”, or “$scheme”, the processing stops and the redirect... |
I'm facing a problem where I need to redirect or replace existing URLs in a legacy Flask app to a more "vanity" URL scheme.
For instance:
www.example.org/camp -> really points to https://example.org/connect/rally_camps/register
While I managed to make this work using nginx config (this is using the typical uwsgi + rev... | How to implement vanity URLs in a legacy Flask app? |
I assume you have a separate pod for each of the two containers that you are launching. If so, the simplest way to constrain a pod from getting scheduled would be to add a nodeSelector label to the pod - a nodeSelector label that does not match labels on any of your nodes.spec:
containers:
- name: myapp
image: ... | I have configured 2 containers in k8s yaml, and both are spawned as expected.What if I want to ensure that one of them doesn't launch(without removing corresponding entry from yaml)?Can setting requested cpu to 0 work? | kubernetes: Dont launch a container configured in yaml |
One route is git ls-remote as in
$ if git ls-remote https://github.com/git/git.git >/dev/null ; then echo got it ; fi
got it
|
I have some code where people submit git repo links.
The repo may be served over HTTPS with no authentication or HTTPS with basic authentication.
I want to check programmatically whether if I have access to the repo. I don’t want to run git clone because it could be time-consuming to download the entire history. I’m... | How do I check whether I have access to a repository without cloning? |
You can try these, I used the same method to installauth_moduleon my mac.brew tap homebrew/nginxbrew install nginx-full --with-rtmp-module --with-debug | How can we set NGINX web server and its RTMP module on mac system?I have tried to set up server using below linkhttps://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-rtmphttps://github.com/arut/nginx-rtmp-module/wiki/Installing-via-BuildBut could not run it as it give error as below :-nginx-rtmp-mod... | How can we set NGINX web server and its RTMP module on mac system? |
I would recommend you to upgrade to jxls-2, you can easily use a SxssfTransformer which will handle all your requirements.See here:https://bitbucket.org/leonate/jxls-demo(specifically, theorg.jxls.demo.SxssfDemoclass). | Exporting Large Amount Of Data Using Jxls-core 1.0.2
Hi all,
I'm having issues with exporting (to excel) big bean with more than 40 thousand items using Jxls core 1.0.2
Sometimes I get Java out of memory error.
Is there a way to Implement it in chunch (write in chuncks)?
It works fine with less than 5 000Map<String, ... | Exporting Large Amount Of Data Using Jxls-core 1.0.2 |
Two things I can see now:Your BIOs aren't initialised properly. UseBIO_new_bio_pair(&rbio, 0, &wbio, 0);instead of yourBIO_make_bio_pair()call;Once you've fixed that, thenSSL_connect()will returnSSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE- you then will need to put it into a loop, like theSSL_read(). | I have a problem making the link between the underlying socket (in this case, a (lib)ssh2 tunnel channel) and the BIO in order to make a handshake.The reason for all the trouble is: the server I wish to handshake with is not an SSL encrypted server initially, and has to be told to turn on SSL before SSL_connect()'ing/h... | SSL_connect/read from "empty" BIO |
Maybe you could precise a little bit (SonarQube version, etc.).
Maybethiscould help.
Regards. | I am getting issues by this url:http://myserver.url/api/issues/searchBut i noticed that not all issues, that i can see in dashboard are presented in JSon response.Why that happens? | SonarQube how to get all issues using WebService API |
An index is split into multiple shards that can be stored across multiple data nodes.If an index hasone shard and zero replicas, all its documents will be stored on one data node only. If this node fails, the entire index is lost.If an index hasone shard and one replica, ES usually puts them in different data nodes so ... | I'm running an ELK cluster with 3 Data nodes. 2 of the Data nodes are also used as data ingestion nodes using 2 logstash systems.I'm running on 1 shard and 0 replicas for a single index, which is daily created with around 2 million documents per index. The current size of an index is around 8GB.As I don't have many nod... | ELK replication and the role of the Data Nodes |
You need to setup the domain which is sending the CSRF cookie. Try settingCSRF_COOKIE_DOMAINto".domain.co.uk"andCSRF_COOKIE_SECUREtoTruein your settings.Relevant documentationhttps://docs.djangoproject.com/en/4.1/ref/csrf/#how-it-works | BackgroundI'm trying to configure my Django app to work with ssl provided by cloudflare. I have about the same setup asthis answerand have followed the same solution.Issue:This has been killing me for weeks (please help!) as I amnota networking/security guy and just need a solution that will avoid me gouging my eyes ou... | CSRF django nginx with ssl from cloudflare |
In order to catch the query string, you need to use either%{QUERY_STRING}or%{THE_REQUEST}:Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
# Redirect /index?id=2 to /index/2
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+index\?id=([^&\s]+) [NC]
RewriteRule ^ /index?%1 [R=302,L]
RewriteCond %{REQUEST_FIL... | I have a url likelocalhost/index?id=2How do I hide the id part by using htaccess and just show:localhost/index/2 | hiding get variable in url |
The same issue applies, when trying to debug on PHPStorm with docker.You can resolve it by adding aserver_nameto the nginx config :Theserver_name _;should get set to_, which is the default server name. You can also addanotherserver name, resulting in PhpStorm adding a new PHP Server (Settings: PHP > Servers) and will ... | I'm trying to move my Magento development environment to docker. I've started withthisready to use solution. Almost everything works properly except xdebug.I've set up PhpStorm according tothis tutorialand I have properly mapped my local project directory on docker volume in the server section. When I try to start debu... | PhpStorm xdebug can't find file when connection comes from docker container |
Looks like it is failing because the hostname resolution happens through the internal DNS system which have pods/service entries but not cluster node entries.Try running your metrics-server with following arguments:- command:
- /metrics-server
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalI... | executing the commandkubectl get --raw /apis/metrics.k8s.io/v1beta1it returnedError from server (ServiceUnavailable): the server is currently unable to handle the requestview the logs from metrics-serverhttp: TLS handshake error from 192.168.133.64:51926:EOFkubelet version is 1.12.3metrics-server 0.3.1i have another cl... | Kubernetes metrics-server: Error from server (ServiceUnavailable): the server is currently unable to handle the request |
Sure sounds like firewall issues. Try stopping iptables, and running again. Also, RALUS can dump a log file - which may give some more to go on.
I use the older UNIX agent myself, which uses port 6101 IIRC - but I believe that the newer client uses tcp/10000 for control and 1024-65535 for transfer.
Last resort is to ... |
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... | Symantec Backup Exec 11d RALUS Communications Error [closed] |
Ruby as a built-in rdoc cli that will generate html pages from *.rdoc files:
rdoc README.rdoc -o ./tmp/doc
Try rdoc --help for more info.
|
Want to see how an RDoc README file will look on Github before committing. How to run RDoc on a single file and preview the result in a browser?
| How to preview RDoc file? |
This line:
myString = [notificationDictionary objectForKey:@"myKey"];
Does not make use of your synthesized property accessor. It simply sets the instance variable directly, and bypasses the automatic copying behavior.
In order to make use of your property accessors, you need to add self. as follows:
self.myString = ... |
There's something i don't seem to get about properties and memory management with iOS!
In my AppDelegate, i want a NSString * property :
i've declared it this way in the .h file:
@property (nonatomic, copy) NSString *myString;
and synthetized it in the .m.
One of my method uses the property like this:
myString = [n... | Which object did send a "release" message to my property? |
This is quite embarrassing. I had a typo, as pointed out by @torek in the comments. It should have been:
docker run -it --rm
--user $(id -u):$(id -g)
-v $HOME:$HOME:rw
-v /etc/passwd:/etc/passwd:ro
-v /etc/group:/etc/group:ro
-v $PWD:$PWD:rw
-w $PWD
alpine/git
cl... |
I want to use GIT from within a Docker container. The usage as documented on https://hub.docker.com/r/alpine/git/ is quite simple:
docker run -it --rm -v ${HOME}:/root -v $(pwd):/git alpine/git clone ...
This works. One big downside of this is that all files are now owned by root, instead of the current user. I want... | How can you run a GIT container as the current user? |
I encountered the same issue while trying to deploy docker application in elasticbeanstalk. It seems the issue is with platform selected while creating the environment.If you select the platform "Docker running on 64bit Amazon Linux 2" this issue is reproduced.To solve this you can select the platform option " Docker r... | I am trying to deploy docker application in AWS elastic beanstalk from travis CI.Travis CI not showing error but when i am deploying the application in elastic beanstalk it showing below error in the logs.2020/04/27 02:03:14.074446 [WARN] failed to execute command: docker pull node:alpine as builder, retrying...2020/04... | unable to deploy docker application in elasticbeanstalk using travis ci |
Yes.If you just haveproxy_cache_bypassset true on pages you don't want cached (eg. logged in users) then they will still be saved into the cache and served to people who should get cached pages (eg. non logged in users).But setting bothproxy_cache_bypassandproxy_no_cacheto true means that those users neither receive no... | Here's the documentation:proxy_cache_bypassDefines conditions under which the response will not be taken from a cache. If at least one value of the string parameters is not empty and is not equal to “0” then the response will not be taken from the cache:proxy_cache_bypass $cookie_nocache $arg_nocache$arg_comment;proxy_... | Nginx proxy_no_cache and proxy_cache_bypass |
Ohh sh... a bit fresh air solved this issue ;)
When an entry is full it will be splitted. In my original split method checkSplitEntry (where I wanted to avoid waste of memory) I made a big memory waste mistake:
// left child: just copy pointer and decrease size to index
BTreeEntry newLeftChild = this;
newLeftChild.ent... |
I've implemented a simple B-Tree whichs maps longs to ints. Now I wanted to estimate the memory usage of it using the following method (applies to 32bit JVM only):
class BTreeEntry {
int entrySize;
long keys[];
int values[];
BTreeEntry children[];
boolean isLeaf;
...
/** @return used bytes... | Calculating memory usage of a B-Tree in Java |
You won't be able to access the file using that URL.
GitHub provides raw file access using a different domain, and you haven't included your user or organization name. Also remember that a Git repository isn't simply a directory; you'll also have to provide a branch name or commit hash or something similar to tell Git... |
I have the following method:
def getEndpointContent(url)
return JSON.parse(open(url).read)
end
I want to use this to return the contents of a json file located in a git repo without checking out the repository.
However, if I pass in, for example, https://github.com/MyRep/myFile.json for the url parameter, I... | Read JSON file in git repo without checkout |
This work in my PC (change username):sudo mdadm --detail /dev/md0 | grep 'Working Devices :' | while read OUTPUT; do su - RealUserName -c "DISPLAY=':0.0' notify-send \"$OUTPUT\""; doneShareFollowansweredOct 9, 2019 at 12:21ŠergŠerg79355 silver badges1818 bronze badges11You might consider accepting the answer if it work... | I'm trying to get the RAID status every time i boot into my system (Debian) and send the output as notification in the desktop.
This works as expected from terminal:sudo mdadm --detail /dev/md0 | grep 'Working Devices :' | while read OUTPUT; do notify-send "$OUTPUT"; donebut it won't work if I run a crontab job pointin... | How to run a bash script from crontab and send the output to desktop notifications |
in terminal
"cd /.git/refs/remotes/origin"
do "ls", you will see some branches and HEAD
Remove the branch you think has the problem
"rm branchname"
If it did not work, delete all branches/HEAD
you may wana pull
|
Jenkins build is failing with error below error. Kindly help to fix it.
git config --get remote.origin.url # timeout=10
using GIT_ASKPASS to set credentials
Setting http proxy: www-proxy.us.oracle.com:80
git fetch --tags --force --progress origin +refs/heads/:refs/remotes/origin/ # timeout=10
hudson.plugins... | Build failing with error : cannot lock ref 'refs/remotes/origin/users/bill.roper/develop': is at b10165 but expected 5f |
Google Domainsis an internet domain name registration service offered by Google. Google Domains offers domain registration, DNS hosting, DNSSEC, Dynamic DNS, domain forwarding, and email forwarding.Google Cloud Platform, offered by Google, is a suite of cloud computing services that runs on the same infrastructure that... | I started a project with Google Cloud, I linked my Google Domain to the project. I then changed the Google Name Servers at the Domains site. My website is through Wordpress which I linked through the Google Cloud marketplace. I then used WordPresses ssl certificate generating tool (Let's Encrypt) but was unable to gene... | Google Domains and Google Cloud Platform |
In AWS Cognito it automatically detects and throws an exception when someone tries to register with an existing email address. Therefore you can trigger the exception throwing out from Cognito and do the handling. So that from my opinion it is better to first check the user is exists in your DB and throw a custom excep... | I'm currently migrating my DB based user directory to AWS Cognito. I'm usingmigrationtrigger for migrating existing users. This working fine.My issue, What if an existing email id is used forSignUp. So I thought to addPreSignUptrigger which checks user exists in DB and also make auto confirmation for all users.My quest... | AWS Cognito user pre-sign up validation. To check if user exist in other DB |
This is how I access the template cache in my project:from django.utils.hashcompat import md5_constructor
from django.utils.http import urlquote
def someView(request):
variables = [var1, var2, var3]
hash = md5_constructor(u':'.join([urlquote(var) for var in variables]))
cache_key = 'template.cache.%s.%s' ... | I amcaching htmlwithin a few templates e.g.:{% cache 900 stats %}
{{ stats }}
{% endcache %}Can I access the cache using thelow levellibrary? e.g.html = cache.get('stats')I really need to have some fine-grained control over the template caching :)Any ideas?Thanks everyone! :D | How do I access template cache? - Django |
If you place your Elastic Search Cluster inside a VPC, whether inside a public or private subnet, the Kibana URL which is generated is internal to the VPC. Which means you cannot access it outside the VPC. You can access it through an EC2 instance inside the VPC i.e. you will have to create a windows EC2 instance insi... |
I have launched Elasticsearch in a Public Subnet, still, I am not able to access the Kibana console from my browser. I am not able to understand the issue, I have configured the Security Group correctly.
Please refer the image below for my setup :
What other setting needs to be made to access Elasticsearch over the i... | Amazon Elasticsearch - Not able to access Kibana |
You need to add commands like this to your .htaccess file:redirect permanent /some-article/http://www.example.com/some-article/Is this a server with mod_rewrite? In this case you could do a generic redirection for all paths:RewriteEngine On
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301] | I recently purchased a new domain for my WordPress site and I want to redirect anyone who visits using an old domain to the new one. I haven't moved servers, just added a new domain.For instance, if they went to either of these:http://www.example.net/some-article/
http://example.net/some-article/Then I'd like them to b... | Using .htaccess to redirect from one domain to another |
Having a dependency on a GitHub repo is having asourcedependency (which might declare itself binaries dependencies in its own repo).You would need to fork that repo, and transform its maven project in order togenerate a fat jar(with for instance theShade plugin).And you would need to publish that new artifact to an art... | I would like to use a GitHub repo inside a Script I'm writing. The Script will run inside an application which requires that the Script has minimal dependencies. By this I mean it can have a dependency on a standalone .jar or library, but not on one that has further dependencies. This is a security measure. My Script n... | Recreating GitHub project without dependencies (Java) |
The error is telling you that SonarQube Scanner was unable to create the necessary temp files to run the analysis. You should check file existence and permissions. | I successfully run the demo project with SonarQube + SonarLint for Eclipse. Then I add to this project java classes to analyze and try to re-run but Solar keeps to throw the error - "Unable to create root temp directory. "
The LocalHost is up. Once again, the first demo run was successful. For more information, please,... | Re-running SonarQube failed. "Unable to create root temp directory" |
It's possible to setmax_connas the issue is closed:https://github.com/grafana/grafana/issues/7427ShareFollowansweredFeb 13, 2017 at 10:46Jakub KubrynskiJakub Kubrynski13.9k66 gold badges6161 silver badges8686 bronze badgesAdd a comment| | In Grafana it's possible to use an external database for keeping the configuration. I use MySQL and the question is if there is any option to configure the maximum number of internal database connections in Grafana? | Number of database connections in Grafana |
Here's a function from PHP that can remove a file.https://www.php.net/unlinkAnd also, the example here;https://www.php.net/manual/en/function.unlink.php#108940Contains information on how you can delete files from a directory (just skip the rmdir at the bottom)Edit: Forgot about the cron-thing. :)If you create a file wi... | I want to delete all files inside a folder called " data " with php and using Cron Job, theCron Job is set to run script every hour, but i'm lost what should i write in the emptytextfield and and how delete all files inside a specific folder in php??please someone explain me and help me out...Fixed it:Placed delete.ph... | Cron Job - delete all files inside a specific folder |
Looks like your node.js server isn't running (or not listening on port 1337) - make sure it's up by running and if not, start the parse-server.
|
I've followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-migrate-a-parse-app-to-parse-server-on-ubuntu-14-04
All fine, except that when it comes to sending a POST request to the Parse-server, I get an error 502. Here are both POST and GET requests which return a 502 when using https and a 3... | Parse-server on DigitalOcean - Error 502 |
If you can ping the server it can be the following causes:The server is not answering ssh, sometimes ssh server is not up or it is answering in another port.There is a firewall blocking your request.You do not need to install the openssh server in your computer to access a remote hosts and normally outbound connections... | I have Ubuntu 22.04 newly installed on my laptop. I am trying to connect to a remote server and getting the following error:ssh: connect to host ********* port 22: Connection timed outI tried some solutions which include,ping the IP addressadding the IP address to the firewall using sudo ufwinstalling ssh and opensshH... | ssh: connect to host ********* port 22: Connection timed out |
Kubernetes is controlled through an HTTP REST API, which is fully specifiedhere. You could write a web app that directly issues the appropriate HTTP requests to the Kubernetes API server.However, it's much more recommended to use one of theKubernetes client librariesthat exist for different programming languages. These... | I want to create pods, manage replica sets, and deployments using a rest API either built with PHP or Python. This needs to be controlled from a web app where the user clicks on a button and a new pod with a specific volume is created. I'm not sure how to achieve this.I came across KC8 API and Python KC8 client API but... | Run Kubernetes dynamically using API |
Perhaps this
git remote add upstream https://android.googlesource.com/platform/frameworks/base
git checkout jellybean
git fetch upstream
git merge upstream/jb-mr1-release
ref
|
I want to merge
branch jb-mr1-release
my git branch is jellybean
How to merge from Android googlesource into jellybean?
| How to merge into my git? |
You could check the following apis to get related information:Builds - Get Build Work Items Refs: Gets the work items associated with a build.GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/workitems?api-version=5.0Work Items - List: Returns a list of work items to find the parent work i... | I am creating the CI for my company and we are using Azure Devops for it. I would like to add a PowerShell script at the end of my pipeline that tags all the related parent work items with the tag "ReadyToTest" once the build has completed. Has anyone ever done anything like this or similar as i am stumped.//pseudo cod... | Changing the value of work items tags after an Azure DevOps build |
Why do you have "actual" changes mingled in with the tab changes? Stash your current work, do one giant sweep to clean up the whitespace, push that, then go back to your regularly scheduled programming. Sure, you'll hit a few merge conflicts with anything you were working on before the whitespace fix, but that's unav... | Is there a way to configuregithub for macto do a diff with the-woption to ignore whitespace?We are in the process of replacing all tabs with spaces in our project but when looking at the diffs for these commits in Github:mac the whole file is marked as changed which makes it hard to see the actual changes. | Github for mac diff options |
The standard is not specific about these aspects, so they are implementation defined. Most notably, a caching behaviour like you describe is normally achieved by using a custom allocator (e.g. for a memory pool allocator) so it should normally be decoupled from the container implementation.
The relevant bits of the st... |
If a std::unordered_map<int,...> was to stay roughly the same size but continually add and remove items, would it continually allocate and free memory or cache and reuse the memory (ie. like a pool or vector)? Assuming a modern standard MS implementation of the libraries.
| Memory allocations when using unordered_map |
I found this, it's not a comparison against any specific CPU physics engine but one hopes they are comparing like with like and running PhysX on the CPU.
So it's rather unspecific and from a FAQ by the makers of PhysX so take with a pinch of salt.
From here:
Running PhysX on a mid-to-high-end GeForce GPU will enable ... |
I have an application that is written to use the Bullet physics engine. I am running it on an Intel i7 2600K CPU with 8 cores. The application has to process millions of chunks of physics work, each of which can be done independently. It currently runs with 8 processes, each process working through its quota of the to... | How fast is PhysX on GPU compared to physics engines on CPU? |
After making your code changes, you can run a git commit --amend and then force push the changes to your fork/branch. The amend and force push will then take the changes but only show it as the same commit in your fork/branch.
Note: If using github, the changes will get picked up in the pull request (PR), but there wi... |
I have a pull request on an Open-Source repository with one commit e.g., commit a. Now someone requested me to change some code in that commit.
If I open that branch in my Android Studio and change the requested code and then If I commit again, there will be two commits. I want to change the code and only have one com... | How to squash commits in a Pull request |
The P-flag in your RewriteRule causes the request to be proxied to the internal server using mod_proxy. mod_proxy by itself does not cache content. The caching is probably a result of mod_cache being enabled as well on the server. The settings you need to disable caching for your internal server can unfortunately only... |
I'm using an htaccess rule to proxy to an internal server, using the answer recommended on this question, "Can ProxyPass and ProxyPassReverse Work in htaccess". I'm using htaccess as that is all I have access to. The method suggested works, but when I make a change on one of the internal pages and reload (from the e... | How to disable caching of a rewrite rule which proxies an internal server? |
This is an expected behavior for security reasons. You should download the certificate using below command and keep it safe.kubectl get csr my-svc.my-namespace -o jsonpath='{.status.certificate}' \
| base64 --decode > server.crthttps://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/#download-the-certificate... | I am new to kubernetes. I created a certificate in kubernetes for my validation webhook.
After approving the certificate, and checking if it is still there after few hours, by runningkubectl -n mynamespace get csrHowever, it shows no resources found in the namespace. But if the certificate is newly created
and run the... | Kubernetes certificate always disappear after few hours |
You could useETAGson your thumbnails. This would prevent the transmission of the actual thumbnail data if it hasn't changed (i.e. still has the same hash). However, you would still face the clients HTTP requests to check if the ETAG has changed (normly to be answered by HTTP 304.But combined with a rather short freshne... | Is there any way (server or client side) to force the browser to pull a new version of a file (image) from the server. The image in question is otherwise cached for a long time. I know I can append a random number, for instance, to the URL of the image but this is not acceptable in this situation. I need for the image ... | Refresh image or clear cache |
0
We found that using rsync to copy the data from the old server to the new server fixed the issue. Apparently rsync whatever metadata was being looked at by the rsync program. Our first two attempts used scp and a USB stick to copy files. These methods did not work.
... |
Our current setup consists of about 100 remote sites that gather data and then once a week transfer that data to a local server using rsync over a cellular connection. The data is stored at the remote sites for 12 months before it is deleted. All remote sites have been operating for more than a year. (They have a y... | rsyncing to a new destination, but files are already there. Can I rsync know not to resend the all the files? |
23
When we zip a directory the shell directory is also added to the zip while the Lambda expects it to be without the shell directory. Use the below command to create the zip correctly.
$ cd my_lambda_fun
$ zip -r lambda_one.zip .
Share
... |
I am new to AWS Lambdas - I am trying to write a lambda function to retrieve some data from firebase. I have called this function exports.handler and uploaded it to the Lambda with the node modules as a Zip file. However, when I try to run it, it returns the following error:
{
"errorType": "Runtime.HandlerNotFound",... | AWS Lambda function returning Runtime.HandlerNotFound error |
I don't believe there is any feature to set a schedule or introduce a time delay for AWS IoT Jobs.Theautostartflag refers to anofflinedevice comingonline, and what behaviour happens then.You can implement this yourself by having a process running which knows to create the jobs at the correct time. | I want to run the device update using aws iot jobs can I set startTime?
I saw in their documentationhttps://www.npmjs.com/package/aws-iot-device-sdk#examples."autoStart: If set to true then agent will execute launch command when agent starts up."
but they didn't mention anything regarding how to schedule the start at ... | How to schedule an IOT job in AWS to run at specific time? |
You need to use multiline syntax for thecommandargument.Try this to getcdworking as expectedsshCommand remote: remote, command: """
cd /abc/set/
pwd
"""The current directory is reset with each invocation ofsshCommandbecause it is a new shell. I'm not sure about thesshScriptthough. You may consider changing your... | In my jenkins scripted pipeline, one stage I am running is a bash script in remote machine. I tried few ways as follows but not coping with the following requirement :Since I wanted to remote login to the server and then run few commands to deploy on the same. I am not able tocdusing SSH PipelineSo I want to use sshCo... | Not able to cd while using SSH pipeline sshCommand in jenkinsfile |
With 3G you are most likely connect via your mobile operator NAT. To check this out - see whichexternalIP address assigned to the 3G router, it's most likely starts with 10., or 172.16.....172.31, or 192.168. In such setup dynamic DNS will cut no ice - DNS in this case will reflect IP of the mobile provider NAT, and yo... | I am working on a project where we have to download videos from DVR box which is at a remote location( Different country). Problem is the client is using 3G router and Cisco vpn client to communicate with their datacenter and application at different stores. They are using IPSec for communication. One more thing, DVR b... | Dynamic DNS with 3G |
You should not have to change anything in your Dockerfile. Docker will cachepom.xmland if it has not been modified since the last build, theCOPYinstruction is skipped. | I have created aDockerfilein a way thatI don't have to download dependencies again and againwith an idea in mindif any step is not changed. docker build will not re-run that stepCOPY pom.xml pom.xml
RUN mvn dependency:resolve #here I am expecting it will download all dependencies first time as long as pom is not change... | Dockerfile skip maven dependencies download again and again |
You need to open a port on your container in yourdocker-composefile. For example, if you want to expose port 8080 in your container to port 8080 locally, you'll add it like this.backend:
build:
context: ./backend
dockerfile: ../Dockerfile.laravel
command: php artisan serve --host 0.0.0.0
volumes:
- ./... | This is my backend service (docker-compose.yml).backend:
build:
context: ./backend
dockerfile: ../Dockerfile.laravel
command: php artisan serve --host 0.0.0.0
volumes:
- ./backend:/codeThe content ofDockerfile.laravelis:FROM php:8.0.3-alpine3.13
ADD https://github.com/mlocati/docker-php-e... | Why am I unable to open Laravel using this Docker configuration? |
Basically same way you just did in your question. :)DistributionSummary.builder("test.distribution")
.tag("static", "abc")
.tag("dynamic", tagValue) // comes from a variable dynamically
.register(meterRegistry)
.record(value);registerbasically meanscreateNewOrGetExsisting. Also, since Mi... | I would like to log dynamic tag values for the DistrbutionSummary metric, how can I do that?in the below example, there is a tag called myTag, and I would like to log the value of the tag on the fly according to the data received. there could be multiple tags I want to log the distribution summary for and I would not k... | How to log dynamic values for the tags in micrometer DistributionSummary |
You should add "Host" to the request header to determine which server the request should be routed to. For example, you can do the following:curl -H 'Host: myserver.com' localhost:80/helloShareFollowansweredApr 9, 2021 at 10:40MarounMaroun94.9k3030 gold badges190190 silver badges246246 bronze badgesAdd a comment| | I have installed Nginx 1.12.0 on my laptop.I have a simple Nginx server block as follows:server {
listen 80;
server_name myserver.com;
location /hello {
return 200 'OK';
}
}I want to test the working of this server block.
One method I can think of is :insert the following in /etc/hos... | Testing of Nginx server block |
1
As indicated by @burak-serdar , this is most likely due to the usage of the template package - as seen here: https://github.com/BishopFox/sliver/blob/978a66bdb0c93adec7cd81721428ca89340830ec/server/generate/binaries.go#L599
Share
Follow
... |
I found a in interesting project on Github mainly written in Golang containing comments which seem to change the way the code is compiled:
https://github.com/BishopFox/sliver/blob/master/implant/sliver/sliver.go#L37
// {{if .Config.IsBeacon}}
"sync"
// {{end}}
How is this method of altering the compilation called and... | Golang Comments seem to alter the compiler input (Sliver) |
All Heroku (cedar) applications will work on SSL by default these days, so if you havehttp://myapp.herokuapp.comthen it will also work onhttps://myapp.herokuapp.comso if you're happy using the herokuapp.com then you don't need to purchase one for testing purposes.ShareFollowansweredJul 19, 2012 at 7:30John BeynonJohn B... | I need to test PayPal functions on production, so I need SSL certificate.I found sites providing SSL certificate, but when I was choosing web platform - cloud platform wasn't there.Can anyone tell site which can help me ?Please share experience : what problems could be with including SSL certificates ? | Where I get trial SSL certificate(for testing) on Heroku? |
2
Bit rusty on this. How about Dijkstra?
Boolean[] visited; // [node] = true;
Boolean[][] connected; // [node][i] = node
Vector<Vector<Integer>>[] path; // this should suck
Integer startNode;
Integer endNode;
Queue queue0; //for thread 0
Queue queue1; ... |
My work makes extensive use of the algorithm by Migliore, Martorana and Sciortino for finding all possible simple paths, i.e. ones in which no node is encountered more than once, in a graph as described in: An Algorithm to find All Paths between Two Nodes in a Graph. (Although this algorithm is essentially a depth-fir... | GPU-based search for all possible paths between two nodes on a graph |
You can find the information you are looking for inSupported Kubernetes versions in Azure Kubernetes Service (AKS).From the docs:AKS publishes a pre-announcement with the planned date of a new
version release and respective old version deprecation on theAKS
Release notesat least 30 days prior to removal.For the past re... | I currently have a 1.15.5 K8s cluster hosted in azure that I will soon look into upgrading. I can see this should still be possible:$ az aks get-upgrades --resource-group my-cluster --name my-cluster --output table
Name ResourceGroup MasterVersion Upgrades
------- --------------- --------------- ----------... | Where to see the date for when a k8s version in azure "expires" (is no available for an upgrade)? |
I cannot comment because I don't have <50 reputation, so I'll add this as an answer: If you create a KMS key while logged in using SSO (AWS Identity Center), and then your admin deletes and recreates the permission set used to log in, you lose access to the key. Similarly, if you assume a role and create a KMS key, and... | When I open the customer managed keys in region eu-central-1, I can see one key, but I get the following error message:DescribeKey request failed AccessDeniedException - User:
arn:aws:iam::<MY_ACCOUNT>:user/admin is not authorized to perform:
kms:DescribeKey on resource:
arn:aws:kms:eu-central-1:<MY_ACCOUNT>:key/<MY_KE... | Unable to delete KMS key |
1
The original version of FreeRTOS used memory pools. However it was found that users struggled to dimension the pools, which led to a constant stream of support requests. Also, as the original versions of FreeRTOS were intended for very RAM constrained systems, it was fo... |
Recently I wrote a C-Application for a Microblaze and I used uC/OS-II. uC/OS-II offers memory pools to allocate and deallocate blocks of memory with fixed size. I'm now writing a C-Application for an STM32 where I use this time FreeRTOS. It seems like FreeRTOS doesn't offer the same mechanism or did I miss something? ... | Memory Pool in FreeRTOS like in uC/OS II |
You can directly use the defined value like:...
envFrom:
{{- toYaml .Values.envFrom | nindent 6 }}
...Or Instead of use range, you can usewith.Here is an example:values.yaml:envFrom:
- configMapRef:
name: my-config
- secretRef:
name: my-secretpod.yaml:apiVersion: v1
kind: Pod
metadata:
na... | I m trying to inject env vars in my helm chart deployment file. my values file looks like this.values.yamlenvFrom:
- configMapRef:
name: my-config
- secretRef:
name: my-secretI want to iterate through secrets and configmaps values . This is what I did in deployment.yaml fileenvFrom:
{{- range $... | helm chart getting secrets and configmap values using envFrom |
0
Not really sure what could be wrong without seeing the code. But I have two thoughts:
1) The library you're using is deprecated. Have you tried using this one instead, ActionBar-PullToRefresh
2) Are you doing any work on the UI thread when the refresh occurs?
I have use... |
I am trying to integrate Android-PullToRefresh to refresh an ExpandableListView data. but it freezes UI until it I get data from Network and call method "onRefreshComplete()". I am calling webservice in AsyncTask's doInBackground and updating in onPostExecute.
I also tried to download apk file, it refreshes ListView ... | Android-PullToRefresh frezzes ExpandableListView when refreshing |
I had forgot I asked this question. I just received another upvote so here is what I did to make this work on Windows.Open C:\Program Files\VcXrv\x0.hosts
Add your IP address
Navigate to C:\Program Files\VcXrv\
Run .\xauth.exe add [YOURIP]:0 . 00000000000000000000000000000000
Navigate to C:\users\<YOURUSERNAME>
Copy ... | We are using docker to provide parity for a group development project. We are using VcXsrv to display the GUI but we have to disable access control to make it work. When running the container we set the DISPLAY environment variable to our IPs and it works fine.I read that disabling access control is a bad idea so I w... | How to use Vcxsrv on windows with docker and setup access control |
FindBugs static analysis class file not java file.If you want use findbugs rules you should:compile java file to class file.config sonar-project.properties add sonar.java.binariessonar.sources=.
sonar.java.binaries=target/classesBTW. I suggest launch analysis from Maven or Gradle.Analyzing+Source+CodeORYou can use defa... | I have a java web project containing 4 files.demo.javaweb.xmlindex.jsppom.xmlExecute commandclean verify sonar:sonarSonar only checked theweb.xml,index.jsp,pom.xml. It did not checkdemo.java. Sonar version:6.5 | sonar doesn't scan *.java file |
RFC 26163.2 Uniform Resource Identifierssays:As far as HTTP is concerned, Uniform Resource Identifiers are simply formatted strings which identify--via name, location, or any other characteristic--a resource.So,http://foo/baris a different resource tohttp://foo/bar?baz.Some URIs are treated as equivalent, sohttp://foo/... | I'm currently playing around with a build / deployment script for minifying static resources. Following good practice I'd like to set an expire header far into the future for most of my javascript, stylesheet and images.To my question, when one or more of the static files has changed clients should ask for the newest v... | Http caching - style.css?123 or style_123.css? |
the TCP connection is terminated at the AWS edge by AWS Global Accelerator (seeblog post), while the HTTPS connection is terminated on the load balancer in the AWS Region. So you need certificates only at the load balancer level. | If you connect theAWS Global Acceleratorto an Application Load Balancer, and then the Load Balancer to an Instance, where in the chain is the HTTPS request terminated and replaced with a plain HTTP request? Do I need certificates at the Global Accelerator Levelandthe Load Balancer (because HTTPS is only terminated at t... | Is HTTPS terminated at the load balancer or global accelerator in AWS? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.