Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
I Solved this problem using android:largeHeap="true" in application tag in AndroidManifest.xml
i am developing kids 1 to 100 learning number speaching application. here i used nearly 100 images used to refer the every images.i have two two levels. dynamically creating buttons, runtimely load images into buttons here. one is for number showing with images level. another one is for alphabetic with images showing l...
loading more100 images in to dynamic button from drawable folder, out of memory error while using more than 150 images from drawable folder in android
Go to your promtail-local-config.yamlChange the__path__to the local path of your logsExecute this command:./promtail-linux-amd64 -client.url http://localhost:3100/loki/api/v1/push -config.file=promtail-local-config.yaml -positions.file=/tmp/positions.yaml
I wanted to upload local .logs to grafana through loki using promtail. My promtail shows that the files are in, but in Grafana, it is not shown.I've tried configurating the loki and promtail config files. There hasn't been much results.
uploading local logs to loki through promtail
Apple appears to allow apps to download data updates and Javascript/HTML for use in UIWebViews. They even presented a WWDC session on data driven apps a couple years back.But note this item in Apple's app review guidelines:2.12 Apps that are ... simply web sites bundled as apps ... may be rejected.The only way to know...
We are trying to develop a hybrid app that can update itself by using css/javascript/html from the internet, instead of storing them in the phonegap project.Like soHtml5 cache manifest in a UIWebView?HTML5 AppCache in UIWebViewIt now does work fine on iOS 5 and 5.1In fact, inside phonegap index.html we do or location....
"Legality" of using web resources and appcache inside UIWebView/Phonegap
As the error stated: http://etcd:2379: Service Unavailable,. You should check if apisix container can connect to the etcd service. Usually, this error means your apisix contain and etcd are not in the same network. I suggest you start with the latest document: https://docs.api7.ai/apisix
I'm using apisix in container mode in my local machine and I can't get to set routes using the config file, I read the logs and It turned out that the error is fetching data from etcd. logs : 2023-04-29 16:55:07 2023/04/29 16:55:07 [error] 48#48: *108 [lua] config_etcd.lua:634: failed to fetch data from etcd: http:...
Apache apisix : failed to fetch data from etcd
4 It should be default-environment-zhqv8mwsqw.elasticbeanstalk.com I then tried default-environment-zhqv8mwsqw.elasticbeanstalk.com/sayhello On your local you use context path in url but in EBS it deployed at root. so need to put context. Share Improve this answ...
I have created a simple "HelloWorld" servlet in an Eclipse project. I built it into a WAR, deployed it in my Tomcat 7.0 local server and a simple request localhost/HelloWorld/sayhello prints "HELLO" No rocket science there. So following AWS documentation on how to deploy a WAR I go to Beanstalk management console ...
Deploying WAR on Amazons Elastic Beanstalk
After struggling here, we found out that the checks are tied to the commit. So, even if you create new branches or PRs, if they share the same commit, the checks will be reused.After pushing a new commit, the checks were refreshed and the stale ones were removed.ShareFollowansweredFeb 8, 2022 at 15:53viniciusjssouzavin...
We have some checks for our Github repo that run in Jenkins via a Webhook. We moved them to another CI server but, even after disabling/removing the Jenkins Webhook from the repo, the old PRs still triggers the old Jenkins checks and fail. New PRs are not affected.How can we clean or remove this old/stale checks for ex...
Github keeps performing external checks even after removing the webhook
Update Nov. 2021, VSCode 1.63:This issue should be allievated withissue 136198"markdown preview wrongly creates links "While"markdown.preview.linkify": falsewill disablelinkifyfeatures entirely, settingmd.linkify.fuzzyLinktofalsewill disable it only for linkswithouthttp(s) header.Which, I think, is a better alternative...
On a GitHub wiki page, if I type:www.foobar.comGitHub automatically assumes this is a URL and makes the text a hyperlink tohttp://www.foobar.com. However, sometimes I do not want a hyperlink to be created. Is there a way to stop this behavior? Perhaps some sort of markdown?
How do I prevent auto-generated links in the GitHub wiki?
The only way to downgrade properly is to start over from a DB backup that you (hopefully) made prior to the upgrade of SonarQube.
Can someone help me with some documentation on how to downgrade the SonarQube from Version 6.2 to Version 6.1 without loosing the existing analysis data?
Downgrade SonarQube from 6.2 to 6.1
You can use both the service of type Loadbalancer ( I assume AKS supports that) , or you can just use the node port.kubectl expose deployment hello-world --type=LoadBalancer --name=my-service kubectl get services my-serviceThe output is similar to this:NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) ...
I have a cluster on Azure (AKS). I am have aorientdbserviceapiVersion: v1 kind: Service metadata: name: orientdb labels: app: orientdb role: backend spec: selector: app: orientdb ports: - protocol: TCP port: 2424 name: binary - protocol: TCP port: 2480 name: httpwhich I want to e...
How to route TCP traffic from outside to a Service inside a Kubernetes cluster?
You can check which process is running using e.g.ps faux | less. Scroll down to find thelxc-startprocess corresponding to your container, and see what is running under it (thefflag triggers a forest display which should show in a pretty obvious way which processes belong to the container).Then, you can usestrace -fp <p...
I have a dockerfile which needs installing some 720mb worth of packages from apt.run DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev\ supervisor mercurial subversion buildbot buildbot-slave subversion doxygen\ cmake cloc build-essential valgrind cccc scons g++ cppcheck qt4-dev-tools\ ...
Docker build freezes installing packages from apt
The full rebase command is this. git rebase --onto <onto> <upstream> <branch-to-rebase> Git will take all the changes in branch-to-rebase which are not in upstream and put them on top of onto. The defaults are... branch-to-rebase: current branch upstream: branch-to-rebase's tracking branch onto: upstream git checko...
Very often git rebase used in a context of some branch. For example, if I want to move the base of feature branch on top of the master branch (based on latest commits) - tutorials say: git checkout feature git rebase master After tutorials like that, there are a lot of questions. Eg: how to perform the same action w...
Git rebase arguments context explanation needed
Ok, so I may have answered my own question. It appears that if I just fill out the credit card info on sign up of the sub-account, then link it to the master account, then log in to amazon.com with the same AWS root account details (yeah the 'books and retail side of the business', weird huh!) I can remove the credit c...
I have a master AWS account which will be the main billing account, and client accounts will feed their bills into it via consolidated billing. I am now setting up a new client account but it has asked me for a credit card. If for any reason my client wants to take their business elsewhere I want to be able to hand the...
AWS signup asks for credit card but I want to use consolidated billing
No, simply because a certificate does not contain that information. It's setup during the protocol negotiation part of SSL, and is mostly independent of the certificate properties.
I have an SSL Certificate that is represented bysun.security.x509.X509CertInfo. It contains different data on Organization, Organization Unit, Domain name and so on. But I need to get Protocol and Cipher data.SSLSessioninterface has methods to retrieve this datagetProtocol()andgetCipherSuite(). Is it possible to retrie...
Java: how to get ssl session data from ssl certificate?
GitHub stores pull requests under pull/ID/head so you can fetch the pullrequest into a repair-pr branch using git fetch [email protected]:jenkinsci/backend-update-center2.git pull/17/head:repair-pr git checkout repair-pr
I would like to clone from the latest commit of the following Pull Request: https://github.com/jenkinsci/backend-update-center2/pull/17/commits The trick is that this Pull Request was never merged and the repository containing the latest commits from jrichardBD is long gone. The user ikedam (commit a5cac69 in the hist...
How to clone from a lost GitHub repository?
Nothing can prevent someone accessing your database via SQL manager from changing the contents. You can make it tamper evident though.Basically you need to useHMACswhich are keyed hashes. Unfortunately this leads you to requiring key management to ensure the key stays secret which may not be possible in triggers. We us...
We have audit table in our database. Records to this table are done using triggers.Currently, there is nothing that prevents user to log on to database server, open table from management studio and change data in audit table.What are possible mechanisms that can prevent (or at least detect) cases of audit data tamperin...
Prevent audit table tampering
I think the issue was intermittent. I don't get that error anymore.
When I attemptdocker login my-company.jfrog.io.I getlogin attempt to https://my-company.jfrog/v2/ failed with status: 400 Bad Request.The Docker version is 18.09.7, build 2d0083dI tried the same command withDocker version 17.06.0-ce, build 02c1d87, I dont see any such error.
docker login fails with 400 bad request, for Docker version 18.09.7, build 2d0083d
You can define the "SecurityContext" at Pod level , which means it will be applied to all containers inside the pod.Pod security context
I have defined a sidecar container in a common.tpl file in my helm charts. This sidecar container is included in numerous pods in which different users are used.I was wondering if there is a way to define as user in the sidecar container the user of the application container. As a result in each pod the same user will ...
Can a sidecar container of a pod detect the user of the application container and use the same?
Most of the service aspects in Kubernetes are handled by thekube-proxyand/or regular iptables, so there is not a TCP connection timeout per se. If you are looking at lower-level primitives you could look atTCP timeoutsat the Linux kernel level ⏳, but typically those have defaults that are reasonable.You provided very f...
How to change Kubernetes NodePort service timeout?I have tested it by running infinite loop php code using apache2 webserver but after 3 minutes it ended up with 504 gateway timeout from nginx. I can guess that it handled by NodePort service Kubernetes
How to setup Kubernetes nodeport service timeout?
To pull from a private container registry on Gitlab you must first create a Deploy Token similar to how the pipeline or similar "service" would access it. Go to the repository then go to Settings -> Repository -> Deploy Tokens Give the deploy token a name, and a username(it says optional but we'll be able to use this...
I got problem with connecting my k3s cluster to GitLab Docker Registry. On cluster I got created secret in default namespace like this kubectl create secret docker-registry regcred --docker-server=https://gitlab.domain.tld:5050 --docker-username=USERNAME --docker-email=EMAIL --docker-password=TOKEN Then in Deployment...
Connect kubernetes to GitLab Container Registry
The simplest thing to do is just always work on topic branches. That way your forks master branch always looks like upstream so that once upstream includes your changes you always do the same thing, just delete your topic branch.If upstream merges your changes, your master and topic branch both contain the same commits...
I forked a project on GitHub, pushed some changes, and opened a pull request. The maintainer signed-off and applied the changes in a new commit (rather than merging my commit), and so the commit graph looked like this:* 03a0687 (origin/master) frotz: Corrected MAN_PREFIX | * 11d3e98 (HEAD, master, jleedev/master) frotz...
What do I do when a pull request is cherry picked?
You can do using the ftp extension in PHP, something like:$conn = ftp_connect("destination.host", 21) or die("failed to connect"); ftp_login($conn, $user, $pass) or die("failed to login"); ftp_put($conn, "/path/on/ftp/server", "/path/on/your/local", FTP_BINARY) or die("failed to upload);More details:https://www.php.net...
I want to be able to upload a csv file once a day (locally from my pc) to ftp. I then am going to insert this csv file into a mysql table.I've created the cron job to pick up a csv and insert it into the database, but I'm struggling how to figure out how to pick up a file that is on my loacl pc and upload it to FTP.Ha...
How to upload file to FTP using cron jobs
If this is your composer.json "require": { "torophp/torophp": "dev-master" } and you want to change it and use your fork instead, just add your repository into composer.json as follows: "repositories": [ { "type": "vcs", "url": "https://github.com/your-github-username/torophp" } ] Important: Do not...
I pull in a package using Composer with this composer.json: { "require": { "torophp/torophp": "dev-master", }, } When I run composer install it seems to pull this package from GitHub directly. I have created a fork of that repo on github with some small changes. Is there a way I can get composer to pu...
Change Composer git source for a package
The new$request_idvariable now is available since Nginx v1.11.0.
I found thissbange's answerabout unique request ID in nginx upstreams. Here is a quote:location / { proxy_pass http://upstream; proxy_set_header X-Request-Id $pid-$msec-$remote_addr-$request_length; }It's looks nice, but it generates long and not very useful string. It would be better with a short hash (m...
Can Nginx make hash sum from some strings (unique Request Id)?
I am not a fan of helm, but you can accomplish this in 2 ways:via env vars: make use ofDD_AC_EXCLUDEvariable to exclude the Redis containers: egDD_AC_EXCLUDE=name:prefix-redisvia a config map: mount an empty config map in/etc/datadog-agent/conf.d/redisdb.d/, below is an example where I renamed theauto_conf.yamltoauto_c...
I've installed the DataDog agent on my Kubernetes cluster using the Helm chart (https://github.com/helm/charts/tree/master/stable/datadog).This works very well except for one thing. I have a number of Redis containers that have passwords set. This seems to be causing issues for the DataDog agent because it can't connec...
DataDog how to disable Redis integration
I didn't find any information about how it's generated.There is no information about how SQS receipt handles are generated, because from the user perspective, a receipt handle is just that -- ahandle-- an abstract value which (as far as the user is concerned) is (or might as well be) completely opaque.A receipt handle ...
Is it possibile get a name of SQS queue from a receiptHandle? I didn't find any information about how it's generated. Thanks
AWS Get SQS queue name from ReceiptHandle
You would use thejavax.net.ssl.HttpsURLConnectionclass, notjava.net.HttpURLConnection.Check outthis linkShareFolloweditedNov 19, 2018 at 12:48frogatto28.9k1313 gold badges8787 silver badges132132 bronze badgesansweredMay 26, 2015 at 7:26Harsh PoddarHarsh Poddar2,5141818 silver badges1717 bronze badges21Thanks but not w...
This question already has answers here:How can I use certificate authentication with HttpsURLConnection?(3 answers)Closed8 years ago.I want to send something.crt with HttpURLConnection.It always says something like:javax.net.ssl.SSLException: Received fatal alert: unexpected_messageString requestURL = "https://some.thi...
How Send SSL Certificate With Java HttpURLConnection [duplicate]
Have you looked intogpu.js? The linked blog post offers useful examples.Edit:Ah, entire app. How about the Electron flag--force_high_performance_gpu?If that doesn't work someoneherefigured out a way to restart the app on dGPU. ...although the thread also mentions it's on dedicated by default, so maybe something changed...
I have an Electron app and I'm trying to figure out if there's a way toprogrammaticallyforce OS to run it on high-performance (discrete) GPU instead of the integrated GPU.Is there a CLI command / hack that can force OS to do this (similarly to how games automatically run on discrete GPU)?I foundthis thread, but I'm not...
Is it possible to force Node.js / Electron app to use high-performance (discrete) GPU programmatically?
A ugly hack, use init container, to copy data into emptyDir volume, then mount volume in 2nd container.initContainers: - name: init-config-data-copy-wait image: datacontainer command: - sh - "-ce" - | set -ex cp -r /src-data/* /dst-data/ ls /dst-data...
I have two containers inside my Pod:Container A based on my own Dockerfile. Inside this Dockerfile, there isCOPY ./files /my-filescommand. This image is inside my GitLab Docker registry.Container B based on image from hub.docker.com.I'd like to share data from Container A that are stored inside /my-files to Container B...
Share data from one Kubernetes container to another inside same pod
1 Though I did not found how exactly jax-ws implementation do this nasty trick, I've discovered instead that to avoid problem I need to change jaxws-rt from version 2.2.6 (which was used in our pom-files, but is almost two year old) to 2.2.8. This library version change com...
Improving java application, we are now facing migration from Axis to Jax-WS. Currently we encounter the following problem: in our generated service class, inherited from javax.xml.ws.Service there is a call to Service#getPort @WebEndpoint(name = "SomeServiceSoap") public SomeServiceSoap getSomeServiceSoap() { retu...
javax.xml.ws.Service.getPort() continuously invoked leads to OOM in PermGen
When you type git push without any arguments, its behavior depends on the value of the push.default setting. The default value of push.default is matching, which, according to git help config, does the following: matching -- push all branches having the same name in both ends. This is for those who prepare all the ...
So I am on a branch called 'test_branch'. I do git add . and git commit and everything works fine. But when I do git push, it gives me the error : ! [rejected] acceptance -> acceptance (non-fast-forward) error: failed to push some refs to '[email protected]:company/sample.git' To prevent you from losing history...
Github - Git Push Error
UpdateYou can use the github search function for it. Useorg:<org-name> <teamname> path:CODEOWNERSas search queryOld answerThis assumes you have all the repos checked out locally.I ran the command fromherein order to look through all the CODEOWNERS files and search for my teamname.grep --include=CODEOWNERS -rw '.' -e "t...
In github, our organization has code-owners.In the individual project I cancat .github/CODEOWNERSIt says# Code owners * @ourorg/projectnameHow can I find all git repositories for the same owner within this org? which is ourorg/projectnameThis will let me know which projects are owned by our squad
In a github organization, how can I find all the code owners which match a pattern?
There's an answer from a person who contributes to Elasticsearch. Basically he saysthere's no built-in query to do thisP.S. It's my understanding that Elasticsearch is not the solution to this type of queries. Redis and/or Druid might be a better fit
I'm trying to count active users for the service. We consider a user active if he did more than X actions in a span of a particular time period. Count will do fine, the list of user ids is not necessary.I couldn't find the suitable query in Elasticsearch, not just Graphana. Terms aggregation can't do that because it on...
How to count users who visited more than X times in a period
Have you tried updating the .gitconfig file on your system? if not, you can use these commands to set your name and email for github to show when you commit code in the repo. git config --global user.email "[email protected]" git config --global user.name "Your Name" the --global flag makes these settings available sy...
I made some bug fixes to an open source project on my local machine. I pushed the code to my github account then initiated a pull request (from? for? to?) the original author of the code. Why does my username show up as "ubuntu" on github? I did push from an Ubuntu machine, but under no circumstances do I want anyone...
New to git, pushed code to my repo and did a pull request, it was merged, but my username shows up as "Ubuntu" on the other person's page
Your capturing groups are working fine. You should either be using theListfunction onRegex101, or complete the expression to include the missing parts by adding:.*$at the end:^(?=.*?(?<text>[A-Z][^:]*))(?<value>[^:]+):.*$Substitutionis used to replace in a string, leaving the unmatching part in the output.
I have following texts:elasticsearch_sync_queue_lowerlevelgiberish_ManualAllocationPolicy:pending elasticsearch_sync_queue_SynchronizationProcessor:processingI'd like to extracttextandvaluelike:text=ManualAllocationPolicy value=elasticsearch_sync_queue_lowerlevelgiberish_ManualAllocationPolicy text=SynchronizationProc...
Match with capturing groups inside of lookaheads
0 A similar thread: GPU Memory bandwidth theoretical vs practical Running a minimal kernel that only writes data to a 1D large vector: __global__ void kernel( int *out ) { int idx = threadIdx.x + blockIdx.x * blockDim.x; out[idx] = idx%4; } on GeForce GT 710 I got...
Suppose you have a memory bound GPU kernel, how close can you get to the stated theoretical bandwidth of the GPU? Even in Mark Harris's Optimising Parallel Reduction presentation he 'only' gets 63GB/sec which is about 73% of the bandwidth of his test GPU (a G80) which he claimed 84.6GB/sec peak bandwidth. Could Harris...
How close to GPU theoretical memory bandwidth can you get?
Not exactly the same style, but I think it's done using thecalendar exampleof D3.js.If you do a "View Source" on GitHub's page, you'll see that they're using D3 for rendering their calendar.A similar look is achieved byjs-chart-widgets.ShareFolloweditedFeb 1, 2014 at 18:59Mesut Tasci3,03011 gold badge3333 silver badges...
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionThere is a wonderful contributions chart that github.com came with.Does anybody know if they use some kind of library or gem?...
Github contributions graph [closed]
Cloudfare SSL on Github pagesCloudfare has a detailed article that covers the steps of creating secure and fast Github Pages.Follow step 3 to enable SSL (HTTPS)the rest of the post is a summary of this step.Step 3: Time for SSLCrypto TabChange SSL to FullPage Rules TabPage Rule to Enforce HTTPSPage Rule non-www to secu...
I am having issues to activate the free Cloudflare SSL on my website. Hosting is on GitHub. My website is working fine. The only problem is the SSL.My DNSwwwrecord is set like this:And the SSL was activated like this:But still no HTTPS on my page. What else should I do?
Cloudflare SSL not working on Github page
Run the following command to get the actual address to connect with your app from host machine.minikube service --url <service-name>Ref:https://minikube.sigs.k8s.io/docs/handbook/accessing/
I've a simple HelloWorld ReactJs application Docker image and I created the deployment as:kind: Deployment apiVersion: apps/v1 metadata: name: minikube-react-app spec: replicas: 2 selector: matchLabels: app: minikube-react-app template: metadata: labels: app: minikube-react-app s...
Unable to access React Application from Minikube
Here is my working .yml fileversion: '3.7' services: fix-redis-volume-ownership: # This service is to authorise redis-master with ownership permissions image: 'bitnami/redis:latest' user: root command: chown -R 1001:1001 /bitnami volumes: - ./data/redis:/bitnami - ./data/redis/conf/redis....
I want to create Redis cluster in my docker based environment, Any docker base image that supports replication and allow me to create cluster using docker-compose would be helpful.
How to create redis-cluster in docker based environment
Use@Scedule(cron="0 0 3/4 * * ?")The Patternx/ymeans: where<timepart> mod y = xor@Scedule(cron="0 0 3,7,11,15,19,21 * * ?")According to theQuartz Cron Trigger Tutorial:The '/' character can be used to specify increments to values. For example, if you put '0/15' in the Minutes field, it means 'every 15th minute of t...
I have a spring batch application and i am using CRON to set how often this application runs. But the problem i am running into is that i want to run the job on specific hours3 am 7 am 11 am 3 pm 7 pm 11 pmAs you can see it is every 4 hours but starts at 3 am so i cannot use*/4in the hours section of the timing format ...
CRON: Run job on particular hours
This happens when you have 2 or more projects with same name. Rename your projects to have distinct names will help.In your case, Sonar specifically indicates that the project nameNet:DistanceConverteris confusing.
ello, I am doing my code analysis through sonar runner previously I am getting the following error.when I run teh command ofsonar-runnerAny help???SonarException: Can not add twice the same measure on org.sonar.api.resources.Project Exception in thread "main" org.sonar.runner.RunnerException: org.sonar.api.utils.SonarE...
sonar runner cannot add the same measure
you start withA---B---C foo / D---E masteryou push, and master was updated:A---B---C foo and origin/foo / D---E---F---G origin/masteryou did some modification, you fetch rebase on master:A---B---C origin/foo / D---E---F---G origin/master ...
I have a feature branchbranch-foo. It was branched off frommasterbranch, which is our stable/production branch.I have the following work process:I pushedbranch-footo remote repo & created a pull request for team to review.Then, on my local branchbranch-foo, I did code updates based on pull request review comments. But ...
how to push rebased branch
Try rvmsudo unicorn_rails -c /home/deployer/public_html/app/config/unicorn.rb
I just started playing around with Unicorn and NGINX set up (any full-blown reference would be appreciated. I have been crawling through google for three days and compile what I have to get my server running in rackspace). Continuing to my question. It looks like I have, hopefully correctly, set up NGINX to point to t...
Unicorn + NGINX: cannot start unicorn
I forget to do git pull before and commit on my branch,It's very common and correct to commit before a pull. In fact, you often must commit your changes before you pull.You can now:git pull(you should not need to addorigin master) and deal with the possible merge issues. A merge conflict doesn't automatically means you...
I forget to do git pull before and commit on my branch, so now my branch is5 commits behind master and 1 commit ahead of master.If I do "git pull origin master" my problem will be solved?The first commit behind was a merge with the 2 branchs, so I'm afraid of having a merge conflict.What should I do in this case?
Can I do a git "pull origin master" after commit?
Passwords on the query string are a bad idea. You could check for valid IP addresses at the start of your PHP file. This will allow any request from a set of IP addresses to access the parsed jQuery output. All other IPs will be denied access.$allowedIps = array('127.0.0.1','::1'); if(!in_array($_SERVER['REMOTE_ADDR'],...
I am using linux cpanel shared hosting.Am usinghttp://aaa.com/script.phpto scrape data from other website.PHP portion is to curl call to read whole page content, then on the page, will output the full content as html, then use jquery scrapping & ajax call to insert final data into mysql.(I decided to go for jquery clie...
Php page protection for cron task only
C# Code behind:Resoponse.Redirect("<Your Base URL>/booking/" + Request.Params["event"]);ShareFollowansweredMar 7, 2016 at 5:55Koby DouekKoby Douek16.4k2020 gold badges7777 silver badges106106 bronze badgesAdd a comment|
I have an events page that I need to redirect or rewrite based on a value in the url.The page generates urls like:www.website.com/booking/?event=value1&date=value2&noa=value3I would like this to redirect based on the first value regardless of what comes after so ifevent=new-eventit would redirect to:www.website.com/boo...
Redirect of rewrite url with parameters based on one value
I am facing similar issue. In my case, memory leak was caused by JAXBContext.newInstance(...) invoke. Solutions: wrap this new instance as singleton (https://github.com/javaee/jaxb-v2/issues/581) or use -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true VM parameter, like in answer Old JaxB and JDK8 Metaspac...
Some Context: We have upgraded the environment of a web application from running on Java 7 to running on Java 8 and Tomcat 8 (64-bit arch, Heap size about 2 GB, PermGen size=256 MB, no constraints on metaspace size). After a while, we started getting the following error: java.lang.OutOfMemoryError: Compressed class sp...
How to analyze memory leaks in Java 8 compressed class space?
1) no your schema is not reliable You should not call cache.asMap().putIfAbsent(givenKey, givenObj); by guava documentation method cache.get(K key, Callable loader) is preferable than to use asMap methods. 2) yes it can be optimised You should call instead this method: cache.get(K key, Callable<? extends V> loader) ...
I have a Runnable which has a cache (of type Cache) and we assume that it offers thread safe operations. This Runnable object is used by multiple threads. Our threads get objects from outer source and then check if the object key exists in the cache If not, then put If it's already in the cache then update I'm look...
How to update Cache from multiple threads
You are messing up with one flag with others. By default following command will deploy the controller iningress-nginxnamespace. But you want it to be in some other namespace likedefault. To do so, you need to passkubectl's flag like-nor--namespace.$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-...
According to theingress nginx controller doc, it remind the object will use the ingress-nginx namespace, and can change to other namespace with--watch-namespacetag.But when I usingkubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx0.28.0/deploy/static/provider/aws/service-l7.yaml --watch-n...
Limit the namespace from web url resource
still not ignoringIt would only if, after updating the .gitignore, you also remove those files from Git:git rm --cached static/OneSignalSDKWorker.* git commit -m "Do not track static files"Then check those same files are indeed ignored:git check-ignore -v -- static/OneSignalSDKWorker.jsIf the check-ignore returns nothi...
nuxt onesignal package is generate OneSignalSDKWorker every timenpm run devclient/static/OneSignalSDKWorker.jsevery time i push to server its says conflictsi tried to add this file to.gitignorestatic/OneSignalSDKWorker.*still not ignoring and make project conflicts
Github Gitignor is not working with OneSignalSDKWorker
You can reset your master to last working commit with minor complication that all other users who have latest checkout of master branch should be running following two commands [As git history have changed for the master branch].$ git fetch $ git reset --hard origin/masterAnd the step to set your branch back to origina...
So, I merged an old branch,test, from remote that was a pull request into a project and it made the project stop working. Then, while still in remote I went back to the merge and selected "revert" to bring it back to working again. Unfortunately, the old remote branch, 'test', states that it is now "3 commits" behind a...
How does one undo a git revert from remote?
1 I'm not 100% sure why it still works (maybe they're phasing people out to the new addresses?) but here's how to fix it. Go to your domain registrar, where you have previously set up your DNS records. You need to update your A records to the new ones provided by github. ...
Problem: I am getting below warning on github pages. However, my custom domain http://www.dilipagheda.com still works. I am curious why i am getting this warning and do i need to address it? if yes, how? Error: The custom domain for your GitHub Pages site is pointed at an outdated IP address. You must update your ...
I am getting a warning for the website deployed via Github pages that uses a custom domain. how do i get around it?
Maybe the issue is that GitHub uses some interesting markdown version...?YAML frontmatter isn't part ofMarkdown itself. A regular Markdown processor wouldn't do anything special with it. It would probably render a<hr>and some text, maybe ending with a header.But yes,GitHub treats YAML front matter specially:Many bloggi...
I get a weird output from my YAML header which I do not intend. Instead I expect the normal output with title, author and the table of contents of course.The following code produces the following output:--- title: General Stuff author: Me output: html_document: toc: true # table of content true toc_depth: ...
YAML header of markdown file generates odd table on top of document
You dont need a another gatekeeper instance. You can apply your policies to the pre-deployed instance of Gatekeeper. For this you have 2 options:OPA ConstraintTemplatesAzure Custom policy definitions
I am working with an AKS cluster and AKS comes with an pre-deployed instance of Gatekeeper for validating webhooks.However by design, AKS would only allow predefined or custom policies to be deployed through Azure policy portal. This is against the developer experience that I am trying to build, where developers would ...
Deploying multiple validating webhooks in the same kubernates cluster
Submodule is a good way to reference a fixed point in another repo history.See "True nature of submodules".Adding a submodule isn't enough, you must initialize it and update it:git submodule update --initYou can also declare a submodule in order to follow a certain branch of ots upstream repo.See "git submodule trackin...
Sorry for such an easy question but how do I make a git repository I've added locally viewable in my master?Details:the repo, in this case "stripe-php", is actually inside another repo, my application.visualizing the problem: the "stripe-php" hidden repo is colored gray-black instead of light-blue on github's website.S...
Make hidden git repository viewable
This Can be done through branch policy "Automatically included reviewers" option.ShareFollowansweredApr 5, 2022 at 6:33Anupam MaitiAnupam Maiti23511 gold badge22 silver badges1010 bronze badgesAdd a comment|
I am currently using Nukeeper in my Azure DevOps pipeline to automatically update my packages. It works fine and automatically creates a Pull Request when the pipeline is run. However, the Pull Requests do not have any required/optional reviewers assigned. I would like to automatically assignOptional Reviewerswith Spec...
NuKeeper - how to add reviewers for pull request?
One of the best way is to use the symlinks. But currently git doesn't support using symlink files as a normal file, see: How does git handle symbolic links?. So the best way to do this is using the git hooks. just create a hook to execute the commands to copy the contents of the required files to the repository folder...
I am not entirely sure what this feature is called, so I am just going to describe it, and perhaps someone can tell me how to do this. I have a git repo called mySettings where I store my settings for various editors like Sublime. Currently I am manually copying files between my local system and that repo, and then pu...
Pushing file to git that is not directly in repo with some sort of link
Those exclusions apply to the metrics, but not to the rules. Try amulti-criteria Issue Exclusioninstead.ShareFolloweditedSep 19, 2022 at 18:55answeredOct 11, 2018 at 8:03G. Ann - SonarSource TeamG. Ann - SonarSource Team22.5k44 gold badges4242 silver badges8484 bronze badges7Mh if I insert the expression **/*DTO.java o...
I want to exclude all files which end in DTO.java from sonarqube code duplication checks. I did this with:sonar.cpd.exclusions=**/*DTO.javaAlso when I look into the background tasks and the scanner context, I can see that the parameter is correctly set:- sonar.cpd.exclusions=**/*DTO.javaAlthough all this settings I get...
Sonarqube cpd exclusion not honored
you cant set username and password forpushgateway:Any user with access to the Pushgateway HTTP endpoint can create, modify and delete the metrics contained within. As the Pushgateway is usually scraped with honor_labels enabled, this means anyone with access to the Pushgateway can create any time series in Promet...
Hi I have pulled the docker image of pushgateway from dockerhub, and ran it withdocker run -p 9091:9091 prom/pushgatewayits all good running fine, but when I makehttp://localhost:9091/metricsit does not ask username and password. How to set username and password for pushgateway docker image.Note: I am running it on doc...
why pushgateway does not prompt for username and password?
Escape the dots like this:RewriteRule ^eve\.\./?$ http://www.site.com/ [R=301,L,NC]Dot.means any character and your stringeve..can matcheveryoreve11as well.
I have a simple rewrite rule to correct some 404s on a site I work on, but the redirect is not functioning correctly. I am trying to redirect www.site.com/eve.. to www.site.com/ with any the below (each tried separately):RewriteRule ^eve..$ http://www.site.com/ [R=301,L] RewriteRule ^eve.. http://www.site.com/ [R=301,L...
RewriteRule containing dots does not work
1 Have you checked this document? http://www.iis.net/learn/publish/using-web-deploy/web-deploy-automatic-backups It says that a backup is automatically created if it is enabled on the server (and then explains how to set it up) Share Improve this answer ...
I am using the following command to build package and deploy site on remote server using teamcity msbuild /M /P:Configuration=%env.Configuration% /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=%env.TargetServer%/MsDeployAgentService /P:DeployiisAppPath=%env.IISPath% /P:MSDeployPublishMetho...
How to take backup of Site prior to publish
The key was the PGDG is no longer available to Amazon Linux's yum since 9.3 so the individual pieces must be installed. # Remove old Postgres yum remove -y postgresql postgresql-server # Install Postgres 11 yum install -y https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-6-x86_64/postgresql11-libs-...
How do I install Postgresql 11 on Amazon Linux 2018.03 (specifically, not AMZ Linux 2) on Elastic Beanstalk? I want to install a package and not manually build a binary. If an autoscale machine boots and has to build the entire PG binary, it'll take significantly longer on a t2/t3.micro. I'm looking for pg_dump. [Ed...
How to Install Postgresql 11 in Amazon Linux AMI?
This should work:RewriteEngine On RewriteRule \/([^\/]+)\/$ $1.phpIt will serve you the file named after the last segment of the url:http://example.com/shops/shopname1/-> shopname1.phphttp://example.com/shops/-> shops.php
This question already has answers here:Remove .php extensions with .htaccess without breaking DirectoryIndex(3 answers)Closed10 years ago.Is it possible to remove the .php part from all of my URLs using a.htaccessfile?Two examples:http://url.com/home.php http://url.com/shops.phpBecome:http://url.com/home/ http://url.co...
Removing .php extension from URLs using .htaccess? [duplicate]
8 I have got the same issue, after investigation, I found that my target group was "unhealthy". I just add the health check path/file i.e "/rorbots.txt" and rebooted the Ec2 Server and its fixed the problem. Share Improve this answer ...
I'm using AWS CodeDeploy to deploy my project (triggered by CodePipeline) to an autoscaling group (EC2 instances behind an ALB). This is my appSpec file: version: 0.0 os: linux files: - source: / destination: /var/www/html/test-deploy overwrite: true permissions: - object: /var/www/html/test-deploy/coded...
AWS CodeDeploy stuck in AllowTraffic step
External tables are created in an external schema. An Amazon Redshift External Schema references a database in an external Data Catalog in AWS Glue or in Amazon Athena or a database in Hive metastore, such as Amazon EMR.External schemas are not present in Redshift cluster, and are looked up from their sources. External...
I am facing an issue in creating a view in an external schema on a spectrum external table. Below is the script I am using to create the viewcreate or replace view external_schema.test_view as select id, name from external_schema.external_table with no schema binding;I'm getting below errorERROR: Operations on local o...
cannot create a view in redshift spectrum external schema
Unfortunately, youcan't useyour policy in IP policy for an ES domain.Let me elaborate a bit on this, as I think there is a confusion betweenresource-based policies, such as IP policies for the ES domain, andidentity-based policiesfor IAM users, roles or groups. The differences are explained in the AWSdocs.In short, you...
I have made a whitelist policy containing list of IP address from where I want to get the IPSample below, consider Policy ARN isarn:aws:iam::0000000:policy/Whitelister{ "Version": "2012-10-17", "Statement": [ { "Effect": "Deny", "Resource": "*", "Condition": { ...
Attach Policy to AWS Elasticsearch
The AllowOverride Directive is set in the apache global configuration file. This file is managed by cPanel and it's important not to edit sections labeled not to edis as those edits will be lost.The configuration file is located at: /usr/local/apache/conf/httpd.confYou're looking for a section that looks like the foll...
I'm using a cpanel/whm setup.htaccess files work fine for the base directory (public_html) but anything below that (public_html/stuff/) isn't processed. I'm aware I need to set AllowOverride, but where exactly do I enable this?
apache htaccess in subdirectories with cpanel/whm
The easiest way to get started writing a custom pipeline component is to use theBizTalk Server Pipeline Component Wizard; it will generate all the boilerplate for you. I've also got several custom pipeline components you can use as an example, a few that are very close to what you need (i.e. a component that just sets ...
Up until now I've only been using orchestrations in my BizTalk application and it's been working fine so far. But now I want to convert some of the unnecessary orchestrations to pure message routing instead in order to get better performance.I've got a WCF service with only one method and that works fine because I can ...
How do I set BTS.Operation in a custom pipeline?
I resolved the problem. The Project was in the the recycle bin, I can assure you that it's the first think I have looked, and it wasn't there at the first time, and I can't explain why it was put there by the IDE. What a panic !
I develop a site with Django and PyCharm.I just linked my project to a GitHub repository, pushed the git-ignore file to make a test, and then I closed the project, when I reopened the project, Pycharm started to make some initialization, and all my Django project has been destroyed... I tried to find some files with re...
All my Project have been erased by Pycharm
GitHub Actions stores a configuration option using one of the http.extraheader options to send the original token for cloning your repository in a custom Authorization header. This is a bad idea because it then conflicts with the Authorization header added by Git when you use another repository, and the token that's ...
I have a bunch of repos that use Azure Pipelines for CI/CD, which I'm now trying to port to Github Actions. This is the first one I'm working on: https://github.com/Azure/AzureAuth/tree/fix-ghaction I've got it 99% working but I'm getting a weird authentication error on one step. The repo is mirrored to another org (c...
Auth error trying to copy a repo with Github Actions
You can implement component for that. Autowire MeterRegistryprivate MeterRegistry registry;And put map of counters inside.private Map<String, Counter> counters = new ConcurrentHashMap<>();add method:public void increment(String componentName){ Counter counter = counters.get(componentName); if(counter == null) { ...
I have an incoming event (to a spring boot application)in json format that contains a field called "component". I need to create a metrics counter and push to prometheus pushgateway per-component. There should be individual counters for every type of component. How to achieve this?
Dynamic metric counter in spring boot - prometheus pushgateway
This is not possible today.(Adding more text to reach the 30-character requirement. Huh?)
I was wondering if anyone had any information on how to backup a vm image that has been uploaded to the cloud.There is an option to revert to the initial state. However, it would be extremely handy if a snapshot could be taken or if the vhd could be downloaded again.Any input would be welcome.Thanks
backup/snapshot a vm image (vhd) in windows azure
You can install the latest version of docker using the Ubuntu installation approach!In your workflow, set up the VM to install docker and then check the version.I've verified it in this workflowand posted the YAML here:name: Check Docker Version on: [push] jobs: build: runs-on: ubuntu-latest steps: - na...
I want to use github actions to test thesbt-native-packagerdocker integration, which builds docker images from Dockerfiles.The issue is that github actions seems to use an either old or custom docker version.3.0.8is detected as version. Seea failed integration test run, which states[1] The detected Docker version Docke...
Using a specific docker version in github actions
Check thislinkout. tl;dr; counter is not intended to decrease its value, therefore there are some valid uses cases that were under discussion in this thread.Their recommendation is to unregister the counter and build a new one as a workaround.
I want to set Prometheus Counter value to 0 when the server restarts in a manner similar to,private static final Gauge SERVER_UP = Gauge.build(MetricConstants.SERVER_UP, "Server status").labelNames(labels).register(); Gauge gauge = (Gauge) map.get(SERVER_UP); gauge.labels(serviceName, serviceType).set(0);How can this b...
Set Prometheus Counter value to 0
You can use a git hook both on server and local or set up local filters (smudge/clean) to beautify your code before it even being committed to the repo. Git hooks Read the official docs for a full reference. Smudge / clean Read all about it and to set it up here: https://git-scm.com/book/en/v2/Customizing-Git-Git-Att...
Is there a way so that whenever a pull request is created on github, a new pull request is automatically created after running some npm command (ex. npm run beautify) so that I don't have to worry about the beautification process. If any such thing can be done which automatically adds a commit to the current pull requ...
Beautify all files before/after a pull request on github
I think a more appropriate way to do this is import { <ServiceName> } from 'aws-sdk'; for instance import { DynamoDB } from 'aws-sdk'; followed by this.client = new DynamoDB(); in the class. I say it is more appropriate because it uses TypeScript's import syntax. Also, there's a clear explanation - by AWS - on how to...
I am trying to write an SES TypeScript client, using AWS definitions file downloaded from https://github.com/borisyankov/DefinitelyTyped/blob/master/aws-sdk/aws-sdk.d.ts Here is what I've tried: /// <reference path="../typings/aws-sdk.d.ts" /> var AWS = require('aws-sdk'); var ses:SES = new AWS.SES(); Here is the er...
How do I use AWS sdk definitions for TypeScript?
11 You can edit your .git/config file to create a remote that pushes to multiple repositories. [remote "everyone"] url = https://github.com/USERNAME/REPOSITORY.git url = ssh://[email protected]/p/PROJECTNAME/MOUNTPOINT url = https://PROJECT.googlecode.com/git o...
Is it possible to mirror a git repository (sync across all hosts) on GitHub, SourceForge and Google Code given they all support git?
Mirroring a repository across Github, Sourceforge and Google Code
After further investigation it appears it is not possible to configure a task to validate the data integrity "WITH CHECKSUM" through the drag-drop features of SQL Server Management Studio alone. This command will need to be added to the T-SQL of the task
We have a daily maintenance plan in SQL Server 2005 that performs a full backup to disk using the "Back Up Database Task". "Verify backup integrity" is enabled but from what I understand data integrity is only validated if the backup media contains a checksum, which is enabled by the "WITH CHECKSUM" option during the...
Verifying Full database backups "WITH CHECKSUM"
It's not going to be possible I'm afraid, certainly at least not via VPN. Heroku uses Amazon EC2 so you can't even narrow it down to an IP range to permit access. Heroku is a closed system so you can't install additional components so unless it's something accessible via http/https then it's a no go.
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...
Heroku app calling external web service on a VPN [closed]
I noticed the same problem with Kubernetes version: 1.4.3 FYI: I have raised on their github issues:https://github.com/kubernetes/kubernetes/issues/35508However scheduledjob working fine for me with kubernetes version: 1.4.4ShareFollowansweredOct 25, 2016 at 11:24Sachin GhargeSachin Gharge11Hmm, thanks. I'm using CoreO...
I setup local environment with Vagrant by followingthisCoreOS's way and currently a version of k8s is 1.4.0.Now I want to try ScheduledJob which is introduced from 1.4.0 as an alpha resource. I first added a flag- --runtime-config=batch/v2alpha1=truein akube-apiserver.yaml, then api-server is restarted.Then I calledkub...
ScheduledJob of kubernetes never gets called
Have you tried to change the versions of kubernetes/cluster? I had the same issue and I changed the version of the cluster and it worked.
My eks.tf filedata "aws_availability_zones" "azs" {} module "myapp-vpc" { source = "terraform-aws-modules/vpc/aws" version = "3.7.0" name = "myapp-vpc" cidr = var.vpc_cidr_block private_subnets = var.private_subnets_cidr_blocks public_subnets = var.public_subnets_cidr_blocks azs = data.aws_availabili...
Why did I got error creating EKS Cluster? InvalidParameterException: unsupported Kubernetes version
It looks like at least one person has gotten SonarQube running on OpenShift using the DIY cartridge:http://majecek.wordpress.com/2013/12/06/how-to-run-sonarqube-4-0-on-openshift/I was able to get SonarQube to start following those instructions.EDIT: databases in OpenShift applications are only exposed publicly in scale...
I'd like to create a build chain for open source projects I'm working on. I'm currently usinggithub,travisandcoveralls. This is working fine but I'd like to add some kind of static code analyze.I was thinking about hosting SonarQube onopenshift, but problem is that openshift does not allow remote connection to database...
How to feed sonar without direct database access
Already solved. I built my own plugin for it.
I was wondering if someone could explain me how to backup database from my application. I build this app using Phonegap. Thank you
How to backup database phonegap / cordova?
wrong .htaccess ! should be ( in /var/www/html directory )<IfModule mod_rewrite.c> # Turn on rewrites. RewriteEngine on # Don't apply to URLs that go to existing files or folders. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Only apply to URLs that aren't already under /wp. RewriteC...
mode rewrite is on (checked with info.php test AllowOveride All in etc/httpd/conf/httpd.conf fileinserted .htaccess in /var/www/htmlRewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [...
.htaccess not working in Apache EC2 Linux Server
To get the list of PHP processes see this question:How to get list of running php scripts using PHP exec()?Another option is that you can acquire a lock of the file and then check it before running: for example:$thisfilepath = $_SERVER['SCRIPT_FILENAME']; $thisfilepath = fopen($thisfilepath,'r'); if (!flock($thisfilepa...
I have a cronjob that runs a PHP file that runs a DAEMON written in PHP, but I only want to run the DAEMON if no other instances of it are running, how can I get a list of PHP processes running in order to find if my DAEMON is running. I thought about some kind of exec that will generate a list that I can store in an a...
How to get list of PHP processes running on server with PHP
It appears that the CLI doesn't have a command to create it directly, but it's possible to do it with therepo viewcommand:git remote add origin $(gh repo view $repo --json sshUrl --jq .sshUrl)
I'm using the github cli (GH), and I have an already created repo, and a local git repo, is there a way to add a remote repo for that git repo using the gh cli?
how to add a remote repo using gh cli?
As noted in the comments, the Git Community Book is a great resource for learning all about git, from basic usage right up to really advanced stuff. If for some reason that's not to your liking, then this question links to a large number of reference guides for using git. You may want to look at the "beginner's refere...
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. ...
How to do a Second Commit in Github [closed]
Found the answer myself. Create a github token using the github API and add that as ENV variable to your Travis CI settings.This token can be used to perform the curl operation in travis shell script.Helpful link :https://blogs.infosupport.com/accessing-githubs-rest-api-with-curl/
I am looking for some ways to create a github issue from travis. I am calling some scripts intravis.yamlfile and I need to create a github issue when travis is executed. I came across documents on calling github APIS using curl command.Eg:curl -u $username -i -H "Content-Type: application/json" -X POST --data '{"title...
Create github issue from travis.yaml
1 As I understand your problem (might be wrong): you need to mount your code into the docker container. Let us say that you have your code on your mac in /home/user/cool-project. (I forgot where HOME is on the mac.) Then you run the container: you are doing something like...
I am currently trying to use Tensorflow's C++ api to build a binary to run on Ubuntu, but I am on a Mac. I was turned in the direction of this dockerImage to use to build tensorflow C++ binaries. However. I am new to C++ and building things and can't figure out how to write code on my Mac and the build with the contai...
How do you compile C++ using a docker container to create Linux binary while on Mac OS
On windows, you are using Docker Toolbox, and the IP you need is192.168.99.100(which is the IP of the Docker Toolbox VM). The IP you got is the IP of the containerinsidethe VM, which is not accessible directly from Windows.
I'm running an nginx container on a windows 10 machine. I've stripped it down to a bare minimum - an nginx image provided in the Docker hub. I'm running it using:docker run --name ng -d -P nginxThis is the output ofdocker ps:b5411ff47ca6 nginx "nginx -g 'daemon off" 22 seconds ago Up 21 seco...
Can not access nginx container on a local windows machine
.htaccessfiles are not available offline, because the server (Apache) uses them, not the browser. This is an important point which I think you did not understand yet. The server looks into the file andusesit to offer login, theloginitself does not happen in the.htaccessfile. A standalone.htaccessfile doesn't do anythi...
I have a working website with a verification/login using .htaccess & .htpasswd. When trying to cache it I get the error:Application Cache Error event: Resource fetch failed (403) http://fman.cf/.htaccessI'm not sure if their is another way to have an offline verification but here is my Offline.appcache file:CACHE MANIF...
How to Cache a .htaccess & .htpasswd/Authorization Required Offline
0 One short answer would be: trimToSize doesn't solve everything, because shrinking an array after it has grown - is not the same as preventing growth in the first place; the former has the cost of copying + garbage collection. The longer answer would be: int[] is low level...
Generally, They say that we have moved from Array to ArrayList for the following Reason Arrays are fixed size where as Array Lists are not . One of the disadvantages of ArrayList is: When it reaches it's capacity , ArrayList becomes 3/2 of it's actual size. As a result , Memory can go wasted if we donot utilize the...
Difference between ArrayList.TrimToSize() and Array?
But I'm afraid that it could delete the both tag rc1 and RC1.It shouldn't: tags are case-sensitive.How can I achieve this safely?You couldrename your tag locallybefore deleting it, if you really want to be on the safe side (and using a case insensitive OS).You don't need to do the same on the GitHub side (which does re...
I had a tagv1.0.0-RC1in my Github repo. I wanted to rename it to all lowercase likev1.0.0-rc1. So, I did it from the release edit pagehttps://github.com/username/repo/releases/edit/v1.0.0-RC1. I found that it created a new tagv1.0.0-rc1and it made me having two duplicate tagsv1.0.0-RC1andv1.0.0-rc1in my repo.The follow...
How to delete the mistakenly case-changed renamed tag in github?
You can re-use events. The ability to do this is afforded by the fact that you canrecord an event more than once:IfcudaEventRecord()has previously been called on event, then this call will overwrite any existing state in event. Any subsequent calls which examine the status of event will only examine the completion of ...
I wish to calculate the execution time for two different sections of my cuda code. In order to do so, I am trying to use CudaEvent_t start, stop.My question is, can I use the same two events 'start' and 'stop' for calculating execution time in some other section?For example:cudaEvent_t start, stop; cudaEventCreate(&sta...
Cuda reusing events to determine execution time of multiple sections
I have a similar setup on a number of SaaS platforms I develop and manage. This type of setup is certainly desirable, as your clients suggest. You should plan to serve each customer site on its own domain, probably also with *SSL, from the begining. In my opinion, this is best practice for a well architected Saas serv...
I have build a saas product with angular 4 integrated with golang rest api and uploaded the build on aws ec2 instance. My project is a multi-tenant based app which loads customers dashboard on merchant-name.mystore.com subdomain but some of the customers asking for custom domain feature like they should be able to loa...
Custom domain feature for saas product customers
I don't think this is possible (as has been pointed out in the comments) unless you redirect the browser to the full Wordpress URL:RewriteRule ^blog/?$ wordpress/category/blog/ [L,R=301]The only other way to get this working is to change the Wordpress PHP files yourself to handle this specific kind of redirect.
I have a site inrootfolder which has its own .htaccess file. There is also a WordPress installed in a separatewordpressfolder with its own .htaccess. I'm trying to target WordPress category directly from the main site but with the prettier URL. I want when I typemydomain.com/blog/to take me to themydomain.com/wordpress...
.htaccess RewriteRule to target WordPress category
It doesn't run, because cron supports these ranges:minutes: 0-59 hours: 0-23 days of month: 1-31 months: 1-12 or Jan-Dec days of week: 0-6 or Sun-Sat27 for hours is not supported. Anyhow it doesn't exist the 27th hour in a 24-hours day.ShareFolloweditedMar 10, 2014 at 22:56answeredMar 10, 2014 at 22:49DavidDavid3,00711...
33 */27 * * * python /root/get_top.pyWould the above snippet run every 27 hours and 33 minutes, or every 27 hours starting at 33 minutes past the hour?If this doesn't make it run every 27 hours and 33 minutes, what is the proper syntax for that?
Cron job syntax debian
Is it possible to install kubeadm and kubelet on debian stretch too ?Yes it is! Please refer to the helpful guide that you linked at the end of your question:https://kubernetes.io/docs/setup/independent/install-kubeadm/#installing-kubeadm-kubelet-and-kubectlHere is the relevant part:apt-get update && apt-get install -y...
I would like to install Kubernetes on my debian machine:Distributor ID: Debian Description: Debian GNU/Linux 9.5 (stretch) Release: 9.5 Codename: stretchLooking into google deb package archive I only find the package for "kubectl", nothing else:https://packages.cloud.google.com/apt/dists/kubernetes-stre...
Install Kubernetes (kubectl, kubeadm, kubelet) on debian stretch
Yes, you can connect to a nautilus cluster with a client in versions of both octopus and pacific.
I'm testing with a small k8s cluster and ceph cluster to create and assign persistent volumes. Ceph cluster version is Nautilus and the machines in k8s cluster are ubuntu 20.04. As far as I understand, I can't install ceph nautilus common packages on Ubuntu 20.04. Is it possible to install Ceph Octopus common packages ...
Kubernetes PV through Ceph RBD
The:headoption is deprecated. Use:gitinstead:pod 'AFNetworking', :git => 'https://github.com/AFNetworking/AFNetworking.git'
When I try to specify that I want to pull the latest version of a pod, according to theCocoapodsofficial docs, I list it in my podfile like this:pod 'ReactiveCocoa', :headUnfortunately, when I do this, I'm noticing that most pods just pull version thats listed in their podspec, not the latest commit as desired. What de...
How does one make a podspec honor the "head:" argument?