Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The actual error message is "Host key verification failed", which means you need toadd the remote server host key fingerprint to Jenkins.In case of GitHub, you will find said fingerprint atgithubs-ssh-key-fingerprints, as Imentioned here.
I am using my jenkins as a localhost i added my public key in the github and tried cloning in the machine withgit clone[email protected]:xyz/xyz.gitit's perfectly cloning the repo commit the repo and pull push are working completely in local machine. I wanted to use jenkins to build my jobs through jenkins with ssh i a...
Getting error while cofigure jenkins with git ssh key
public interface ApplicationProcessor extends Runnable { // interface methods are by default public and abstract HealthCheck getHealthCheck(); }As for 2nd part useFuture<Void> or just Future
How can I refactor an abstract class that implements Runnable into an interface?import com.codahale.metrics.health.HealthCheck; public abstract class ApplicationProcessor implements Runnable { public abstract HealthCheck getHealthCheck(); }UPDATE: And also how can I remove the usage of a generic wildcard type for...
Abstract class that implements Runnable into interface
1 A model contains layers. Each layer contains weights that can be disposed. To dispose these weights, layer.dispose can be used. model.layers.forEach(l => l.dispose()) Share Improve this answer Follow ...
When reading the official documentation, I am aware that when handling Tensors directly one must explicitly destroy them after use to avoid memory leaks: let mytensor = tf.tensor([1, 2, 3, 4]); tf.dispose(mytensor); However, what can one do to dispose of a model? Is simply calling mymodel.dispose() enough, or is ther...
How can I delete a model in Tensorflow.js?
A stupid question. I have a typo in it.Ingress:chang toingress:
I am setting up Network Policy in k8s, but it does not work as my expectation.My k8s has network policy enabled. It has to namespaces:- proxy - jupyterUnder namespace jupyter, it has lots of jupyter pods, and each jupyter pod has a service for it to provide cluster IP. Under namespace proxy, I have a node-proxy forward...
How to fix my NetworkPolicy not working problem?
1 Every instruction you add in the Dockerfile on build adds a new layer to the build. For each instruction run on build the image layer caches the contents of that layer on top of the other ones. Layers can be cached between builds if the results are expected to be the same...
In my Dockerfile I have: FROM python:3.6-alpine RUN apk add --no-cache --virtual .fetch-deps \ zlib-dev \ jpeg-dev \ geoip-dev ENV PYTHONUNBUFFERED 1 RUN mkdir /src WORKDIR /src ADD requirements.txt /src/ RUN pip install -r requirements.txt If there are any problems with downloading or installing the ...
How to split pip install into steps in Dockerfile?
Execute the following commands. pip install requests==2.25.0 -t ./python --no-user pip install beautifulsoup4 -t ./python --no-user pip install pytz -t ./python --no-user On PyPI, download the following whl files from the pages of numpy and pandas numpy-1.24.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64....
What I want to achieve To scrape an website using AWS Lambda and save the data on S3. The issues I'm having When I execute Lambda, the following error message appears. { "errorMessage": "Unable to import module 'lambda_function': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/opt/python/urllib3/uti...
"cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_'" on AWS Lambda using a layer
Looking at the developer console of Chrome clearly shows the problems:Mixed Content: ... requested an insecure image 'http://35.232.70.59/wp-content/uploads/2018/11/construction-image38-2-free-img.jpg'This means that your site includes resources loaded with plainhttp://even though the site is served withhttps://.Failed...
I have recently installed ssl certificate through CloudFlare. I'm getting https but not getting padlock. I tried using really simple ssl WordPress plugin but I could not help mixed content.My website URL:https://claimstock.com
Not getting padlock though I installed ssl
You can check if it has started by running the commandps -ef. You can also grep it todockerif you want to reduce the number of results(using| grep docker). If its of not running, executesudo service docker startOR if it still doesn't work thenYou can refer this linkdocker docsYou can rundocker run -dordocker run -d &so...
On Linux Mint 17.1 x86_64 with kernel 3.13.0-48-generic and OpenSSL version 1.0.1f-1ubuntu2.11; whenever I try to execute any docker command (likedocker loginordocker run hello-world), I get the following error:FATA[0000] Get http:///var/run/docker.sock/v1.18/info: dial unix /var/run/docker.sock: no such file or direct...
Docker: Are you trying to connect to a TLS-enabled daemon without TLS?
TheJdbcTemplateis a reusable object that should only be initialized once. Yournew JdbcTemplateis entirely unnecessary because Spring is providing it for you.The current best practice is not to use field injection at all and instead to make all dependenciesfinaland initialize them in the constructor; this helps prevent ...
I am trying to call a oracle based stored procedure in Springboot. It's working as expected but I am getting below warning while scanning through SonarQube. Please suggest a way to handle it.Program.java :public class DataExecutor { @Autowired DataSource dataSource; @Autowired JdbcTemplate jdbcTemplate; public int e...
Singleton class unsynchronized behaviour
Since your jenkins is not accessible from a public IP address, GitHub can not trigger the build via WebHook. The alternative is to use the "Polling" mechanism, to check for changes every X minutes, for example:
their are a lot of question like this but none seem to work. I am running jenkins on http://localhost:1001/ and have added the authorization token from github into jenkins and it seems to work. I can build the project manually and when i push some thing onto the github and build the project again changes are made but ...
not been able to make Jenkins trigger a build when changes are pushed to Github
It turned out that symfony system variables that I have stored on server are not enough. When you start to execute the command from command line its fine, but when using Cron you need them in .env file. Turned out that in the proces of countinous integrations I only got.env.distfile and I've to make the.envfile anyways...
I can't get to execute symfony command in bash script when I run it incron. When I execute the .sh script by hand everything is working fine.in my bash file the command is executed like this:/usr/bin/php -q /var/www/pww24/bin/console pww24:import asari $office > /dev/nullI run the scripts from root, thecronis set to ro...
Execute symfony command in bash script
There is absolutely nothing wrong with this approach; however, I am going to recommend that you instead use the built in caching storage. See the section called "Saving cache files" inData Storagefor more details.This way you don't hog any precious space if your JSON objects are large in the event of a low memory situa...
In my app I have to download JSON data from numerous web services. The data classes I use are fairly complex ones (lots of properties, quite deep inheritance tree, etc.).I intend to do caching, using a single db table, where I'd store the downloaded JSON data in a VARCHAR column (along with other meta-data containing c...
Caching downloaded JSON data to SQLite database - is it a good idea?
Technically and factually, it's not a bug: the rule finds that the code uses arbitrary numbers.However, I find reasonable to think that this very particular use case, with fixed indices for column numbers, should be considered a false positive. And indeed, I see no point in trying to "fix" the code. So my suggestion is...
By definition,"Magic number" is a value that should be given a symbolic name, but was instead slipped into the code as a literal, usually in more than one place.This is a perfect example of a magic numberfor(int i = 0; i < 4; i++){ // Noncompliant, 4 is a magic number ...and should be changed to somet...
SonarQube: Magic numbers should not be used (squid:S109)
Laravel's doc's have a section on how to keep sensitive information out of your config for reasons like publishing on GitHub: http://laravel.com/docs/5.1/installation#environment-configuration Make sure you add the appropriate files to the .gitignore file so that they are not committed.
I am quite new to using Github and want to publish my first project, a Laravel based PHP site, there. My question is: Is there a way to ensure, that my local DB Config (/app/config/database.php) does not get published? Are there any other things I should pay attention at when publishing my Laravel project? Thanks f...
Best practice for publishing laravel project on Github
delete the record for checksum value for that I was getting the error and It is resolved now.
I am getting the error Liquibase checksum validation failed.ErrorUnexpected error running Liquibase: Validation Failed: 1 change sets check sum changelog.sql::3::snowflake was: 8:f97afb605f986bcfcc0d3e4ecf5208e6 but is now: 8:a10040290479269659939671e8a14db0AnyIdea how to debug this issue in GITHUB Action and Ru...
Getting error Liquibase validation failed because checkum has changed in GITHUB Actions
You could deploy aningress controllersuch as nginx and createingress resourceto expose backend services usinghost.apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: simple-ingress-example annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec: rules: - host: api.branchname.domain.c...
Hi i have a question when it comes to k8s and handling branchesmy namespaces have the following :an API deploymentaNodePortservice mapping the port3000of the deployment to port80apostgresinstance to serve as a DB (Not important for this problem)anIngressexposing allI would like to find a way that would make it able to ...
subdomain per branch/namespace on K8S
Noticed this was working again this morning, grafana version is now 9.4.7 so I am guessing this was a bug.
When performing the following query via SSH session directly on the influx database I get the following dataQuerySELECT TOP("count","src_ip",10) FROM (SELECT count("action") FROM "autogen"."tail_ip_block_log" WHERE ("action" = 'block' AND "direction" = 'in') GROUP BY "src_ip")Outputname: tail_ip_block_log time top src...
Can't get influx query to populate Grafana table correctly
While running from crontab you cannot rely upon any environment variables, TTY, or paths. Sounds like you've got paths sorted but the mailer may be expecting to know something about you. Try running your script without your environment, to get meaningful messages about what your problem is: su {your_name} -c {your scri...
I have aperlscript that executes a command. I am saving the output of this command to an array and checking the content on the output to mail me a success or a failure message.This works fine when i run the script itself. But when i schedule the script to run as acronjobi get a failure mail irrespective of the output.I...
Different mail from shell script and cron running the script
atis your friend.Using this loop will create a job for every point in time you need to run your script:awk '{for(i=3;i<=NF;i++){system("echo playsound.sh | at "$i" "$2" "$1)}}' < timetable.txt
this table I will be updated every month, How I can linking the table with crontab to run a shell scripts? -The table will be like this for all days in the month-1 Apr 4:59 6:25 12:41 16:13 18:56 20:26 2 Apr 4:58 6:23 12:40 16:13 18:57 20:27 3 Apr 4:58 6:23 12:40 16:13 18:57 20:...
Run CRON job 5 times a day as it is shown in the table
goto phpmyadmin select your database go to sql tab than go to import browse your name.sql file and press go..it will upload your file
Hi I have done this page for the client to WordPress on localhost. I did a backup and I can not import a SQL database error pops up. All I have uploaded to the server. Now, only now I was ET database and I'm stuck here. Please help, I attach a screen. I care about time, please and thank you!
backup SQL from localhost
Try rw tag while specifying the volume mounts. In your case that would be docker run -d -p 3306:3306 -v "C:/ProgramFiles/MySQL/Config":/etc/mysql/:rw -v "C:/ProgramFiles/MySQL/Data/":/var/lib/mysql/:rw --name mysqlserver mysql/mysql-server
environment:docker for windows 10 version: Docker version 17.09.0-ce, build afdb6d4 docker images: mysql/mysql-server latest docker had setting shared Drive C: I want to run a mysql container, so I use follow command: C:\WINDOWS\system32>docker run -d -p 3306:3306 -v "C:/Program Files/MySQL/Config":/etc/mysql/ -v "...
changing ownership of '/var/lib/mysql/': Permission denied
If the caching is occurring in the context, the cached values should go away when you dispose of the context at the end of the current HTTP request. You do have a per-request context, right?Here's somecontext lifetime best practices.
We have two web applications and each one is creating it's own data context for EF. When I make changes to an entity in one app I see the changes on the page and in the database when I view the data in SQL Server Mangement Studio. However, I don't immediately see the changes in the other application.Both apps use depen...
Does Entity Framework have some sort of context caching?
I extended the standard wildfly image by creating aDockerfilecontaining:COPY standalone.conf /opt/wildfly/binI added placeholder instandalone.conffor JAVA_OPTS added by kubernetes environment variableJAVA_OPTS="$JAVA_OPTS $DYNAMIC_JAVA_OPTS"Inject the parameter by k8s yamlenv: - name: DYNAMIC_JAVA_OPTS value: -Da...
I'm trying to add new variable to JAVA_OPTSWildfly command in Dockerfile:CMD cd /opt/wildfly/bin && ./standalone.sh -b="0.0.0.0"Pod yaml file:env: - name: JAVA_OPTS value: -DattributeName=valueBut the new attribute is not added to system properties and I see only default variables defined in standalone.conf:JAV...
How add JAVA_OPTS variable to wildfly by kuberentes yaml file?
I'm guessing this is actually aDirectoryIndexissue, not a cache one.If you look atthe documentation, you see that this directive takes a list of indexes which Apache attempts to locate in order. Therefor, you can force priority forindex.phpby moving it to the front of the listDirectoryIndex index.php index.htmlShareFol...
I'm working on a web server.BEFORE: There was a website. "domain.com/" redirected to "domain.com/index.html" (logic) and this page redirected to "domain.com/en/index.html" with the tag : "meta http-equiv="refresh" content="0;url=en/index.html""NOW: There is a Wordpress (I installed it), without index.html but an index....
How to force to refresh a web page
I want to update my pull request so that the commits are now made from the other branch rather than my master branch.I'm afraid this is not possible. The GitHub interface only allows to change the destination branch*to merge into, not the source branch.* This was added in2016 August. I find the title of the announcemen...
Instead of making changes in another branch and making a pull request from that branch, i made the changes in the master branch and made the pull request.Now, i want to edit the pull request.I want to copy the changes made to the master branch to another branch.I want the master branch be updated with the upstream bran...
Git change the source branch of a pull request
It is able to create a docker container from TFS and integrate with build/Release pipeline. Some tutorials for this area:Continuous Deployment with Docker and Build vNextUsing docker on Windows in VSTS build and release managementHowever it's not possible to build a Windows 7 Docker Container. If you plan on doing a...
We are running on-premises TFS 2017. I would like to create a release definition for our QA team which will create a Docker container running Windows 7, and deploy our release build to it automatically.Once the deployment is done the QA team should be able to log onto the container to test the app. No manual running o...
Is it possible to create a docker container from TFS and deploy a release build to it?
You need to create project access tokens, if you don't have permissions ask the admin to createTo create a project access token:On the top bar, select Main menu > Projects and find your project.Settings > Access Tokens.Enter a name.Select a role for the token.Select Create project access token.Edit the .gitmodules fil...
I am working on CI/CD pipeline (GitLab) build and I want to update my submodule. ( In localgit submodule update --init --recursive --remoteworks well). But the same thing in the pipeline gives the below error:Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the corre...
Host key verification failed error for submodule in gitlab pipeline
There is nothing that docker provides but if your directories are empty then you can try and print what is there after the copy operation.docker cp a b docker exec container ls -alhR /your/pathOr you can print the same on the host side before copying. Because cp will only copy what you provide it. So either print it be...
I use to copy directories from host to containers extensively before pushing them to a repository. Sometimes we may need to monitor the filenames getting pushed/copied during the Jenkins build.How can i see what files are getting copied during a copy operation using "docker cp" ?
Docker "cp" command in verbose mode
You can use this rule:RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_HOST} ^([a-zA-Z_]+)\.mysite\.com$ [NC] RewriteRule ^([a-zA-Z_]+)/?$ index.php?inst=%1&sub=$1 [L,QSA]ShareFollowansweredNov 4, 2014 at 10:27anubhavaanubhava771k6666 gold badges582582 silver badges649649 bronze badges411 week of struggling solve...
I have looked everywhere for this solution but have not seen a good enough match that I can reconfigure on my server.I want school.mysite.com/math/ to map to mysite.com/index.php?inst=school&sub=mathI can do either half but not both together.IE I can get mysite.com/math/ to mysite.com/index.php?sub=math with :RewriteR...
mod_rewrite regex sub domain plus folders
There are multiple ways to handle large file uploads.Write byte array to disk and upload to S3 using a background task maybe.Store in memory and upload the object directly (bad bad option, unless you set a very low file upload limit)take a look atthisgit repo on how the above methods can be achievedI don't see your use...
The method below in my Java Spring application directly streams and uploads a file to an Amazon S3 bucket. I have researched that using streams will make the uploading of large files (> 100MB videos for my use case) to be more memory efficient. When testing the method with a 25MB file, the memory usage of my Java Sprin...
High memory usage when uploading a multipart file to Amazon S3 via streaming?
Either remove the DEFINER=.. statement from your sqldump file, or replace the user values with CURRENT_USER. The MySQL server provided by RDS does not allow a DEFINER syntax for another user (in my experience). You can use a sed script to remove them from the file: sed 's/\sDEFINER=`[^`]*`@`[^`]*`//g' -i oldfile.sql
So I try to import sql file into rds (1G MEM, 1 CPU). The sql file is like 1.4G mysql -h xxxx.rds.amazonaws.com -u user -ppass --max-allowed-packet=33554432 db < db.sql It got stuck at: ERROR 1227 (42000) at line 374: Access denied; you need (at least one of) the SUPER privilege(s) for this operation The actual sql c...
Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Each issue is reported at the severity the rule holds in the relevant quality profileat the time the issue is raised. Once an issue is raised, it isn't changed by analysis even if you change the severity of the rule. So for instance if I:add rule A as Blocker in my profile and issue i1 is raisedi1 is a Blocker issueupd...
While S2583 is defined as a Major issue, is reported as a Blocker issue, any idea that it can explain this? This code portion is detected as a Blocker instead of a major issue. Thanks in advanceprivate final List<Object> lstError = new ArrayList<>(); // 1: Implies 'lstError' is not null... // ... more code ... public...
Sonarqube S2583 reported as Blocker issue in SonarJava 4.15.0.12310 + Sonarqube 5.6.4
As mentioned in thenoteshared, You need to configure yourCloud Build Trigger, if you want to avoid Secret Manager.The Build Trigger setup step involves authenticating to your source repository with your username and password.So when you fire this Cloud Build Trigger, it will not ask for your credentials in Secret Manag...
According to anotein Cloud Build documentation titledAccessing private GitHub repositories:When you run builds using Cloud Build triggers, you can automatically connect to any private repository you own without storing your credentials in Secret Manager.Based on this, I have tried togit clonemy private GitHub repo (wit...
Clone private GitHub repo in Google Cloud Build yaml
You could use Wrangler which is made by Cloudflare to deploy your code through the Github Actions. On Github there is the repository which explains how to do a first setup and to manage your worker.
I have a Cloudflare worker that I would like to use to commit to a GitHub repository automatically. Is this possible? If so, how do I do it?
How do you commit to a GitHub repo using a Cloudflare worker?
Volumes are outside of container images. That's exactly what they are for - bringing data inside a container that isn't in the image. From the Docker docs: A data volume is a specially-designated directory within one or more containers that bypasses the Union File System to provide several useful features for persi...
I want to commit the data in a container's shared volume to an image. I cannot seem to do it? I kind of get the impression this perhaps is not possible in Docker but that seems totally at odds with the whole philosophy of not leaving data on the host so part of me thinks there must be a way to do this. 1. Terminal 1 ...
In Docker, how can I share files between containers and then save them to an image?
When using automated builds, this is what happens;Docker Hub (or Docker Cloud, which has some more advanced features) checks out the git commit that triggered the buildIt builds the Dockerfile that you configured to build from in your automated buildFrom the above; you shouldnotgit cloneinside your Dockerfileat all, be...
I already have set up a github repository with 3 branches (master, dev and docker). I already set up successfully and linked the automated build on dockerhub. Each time a push is done on Github an image is built on Dockerhub with different tag (latest for master, beta for dev and alpha for docker). This is working fine...
Docker workflow for automated builds on Github-Dockerhub
vcardiois an open-source application that does exactly what you've put as your description. I'd check it out and tweak it if necessary.
As we all know that, when we click the option "export to SD card" in contacts, , It means we are creating our contact backup and that file is stored with the extension as a .VCF file format, Later on when we import that file, android OS automatically takes all the contacts in it and saves in our contacts. I just want t...
How to take contact backup using code?
0 To do this with Subversion, you will need your own repository. Then treat the "original" as a vendor branch. Export a copy of the original repository's code, commit to your own. Then check out a copy from your repository, make your changes, commit, and so on. You will hav...
Scenario: There is an original svn (google code) repository that is not mine. http://asterisk-chan-dongle.googlecode.com/svn/trunk/ I want to keep my own copy of that repo on my google code account. However my copy will have some changes made by me. So I do: svn checkout http://asterisk-chan-dongle.googlecode.com/svn/...
synchronize two github and google code repositories
There are two possible ways of starting kube-controller-manager with customized settings, by providing YAML files.Method #1Thekube-controller-managerruns as a pod in your control plane. It's config file is located in/etc/kubernetes/manifests, akube-controller-manager.yaml. By adding.spec.containers.commandlike so:spec:...
I'm usinghyperkubeto startkube-controller-managerdocker container. In order to rotate the kubernetes CA I followedthis doc. I have to point the KCMclient-caandcluster-signing-certto different certs. Automating this is difficult because KCM process uses command line arguments.I don't see any optionhere. Does anyone know...
How can I start kube-controller-manager with config file?
I suggest building with the--network hostwhen running docker build. This will guarantee the RUN instructions to use the host network directly. That way you will be sure that slowness is not related to docker.ShareFollowansweredNov 12, 2017 at 11:03yamenkyamenk48.8k1010 gold badges9494 silver badges8989 bronze badgesAdd...
While creating a docker image from a dockerfile or being inside the created container,pip install <package>in a conda environment is super slow.The download speed hugely differs if I do the same without docker. I tried to change the mirrorpip install -i http:pypi.doubanio.com/simple <package>and can gain slight improv...
Download speed for pip install inside docker container very slow
If there is simply random text in the picture, then use Amazon Rekognition. It will find text in any location. Amazon Textract is designed for converting paper documents into organized data. It will probably not work well with a random picture (although I haven't tried it so I can't be certain!).
How do I decide when to use Amazon Textract vs Amazon Rekognition's TextDetect method? My usecase is click picture from mobile and convert image data into text and store into AWS RDS. https://aws.amazon.com/blogs/aws/amazon-rekognition-image-detection-and-recognition-powered-by-deep-learning/ https://aws.amazon.com/t...
Amazon Textract vs Amazon Rekognition DetectText
Getting where you want to be is easy:git checkout master. This will however not include that commit that was apparently pushed to GitHub before but isn’t included in your master branch (that “WORKING. BOOM.” commit).You should merge it into your master branch to include the commit and to make sure that nothing is lost ...
In a bit of a bind. Not as familiar with git but was using Github with Windows without issue. Until somehow, on the last commit, I must have done something horribly wrong and it resulted in a detached head.Following the directions onthis stackoverflow question, I saw that the first job is to create a temp branch, so I ...
Github detached head for beginners -- how to resolve this situation?
Assuming you are usingthis one. You can edit theimage fieldin the values and apply it like that:helm install airflow -f values airflow-stable/airflowor directly by setting the option from command line:helm install airflow airflow-stable/airflow --set airflow.image.repository=custom-image-addressFor credentials, there i...
In our company we have a private docker registry (artifactory) and need to use it to store our docker images.So, if I want to use custom airflow docker image (par example, with some extra pip and apt packages installed) I should save this image in our private docker registry.Can anybody tell me, how can I orderairflow'...
airflow helm chart: How to use a custom docker image from a private registry?
1 You can use Redis as a database for this. It is very very fast, does queuing amazingly well, and it can save its state to disk in a few manners, depending on the fault tolerance level you want. being an external process, you might not need to have it use a very strict sav...
I am creating an application (app A) in Python that listens on a port, receives NetFlow records, encapsulates them and securely sends them to another application (app B). App A also checks if the record was successfully sent. If not, it has to be saved. App A waits few seconds and then tries to send it again etc. This...
Python: file-based thread-safe queue
I think is everything correct. There aren't "default groups" for a recently created project. Only groups with any permission set on this project (or for which a permission is inherited from a parent project) are listed. Administrators group is "privileged" and normally don't need any additional permission set too.
Following the link below, I tried to run ls-groups on my new gerrithub project I set up. I have already put my public ssh key into the my profile settings so I can successfully connect to it. I am the creator of the project, but when I run ls-groups on the project, it connects and runs but returns nothing. I thought ea...
Why does gerrit ls-groups command on my project show no default groups
In order to get the ip address of the machine that the runner is executed.We will use the Gitlab APIhttps://docs.gitlab.com/ee/api/runners.html#get-runners-detailsGET /runners/:idThis API call will return the details of the runner with this specific:id. When a job executes this id is available onCI_RUNNER_IDpredefined ...
I run several docker commands ingitlab-ci.yml. Some of them require current machine IP address to be passed to them, like this:docker build --pull -t my_image . --add-host=<my service>:<current ip>$CI_SERVER_HOSTNAMEis not the one, its value isgitlab.com. I need actual IP address of the CI machine asifconfigwould see i...
gitlab pipeline: get hostname inside gitlab-ci.yml
1 It’s related to docker compose v2 beta which is experimental feature Here Share Follow answered Oct 15, 2021 at 9:12 joseAndresGomezTovarjoseAndresGomezTovar 81177 silver badges1414 bron...
i'm use new mac book with m1 if docker compose up, one of the containers throws an error: Unhandled Exception: System.IO.IOException: Function not implemented at System.IO.FileSystemWatcher.StartRaisingEvents() at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed() at System.IO.FileSystemWatcher.set_Enabl...
docker compose on mac m1 error: Function not implemented
1 You can use find with -ctime to search for .tar.gz files changed in the last 7 days and then loop on the results, ftping each. Using this logic with your existing solution: #!/bin/sh USERNAME="ftp user" PASSWORD="ftp password" SERVER="IP or domain" # local directory to p...
I have a VPS running on Centos 7, and created a cron job to dump my database (Sql 8.0) and to create a tar to backup my entire site's files and this goes on everyday I want to create another bash / cron job to connect to my backup server and upload those backup files stored on my VPS. The problem is, I can't get it to...
Uploading current day's backup instead of all files via Cron jobs
This uses: robocopy inside a subroutine to get the current date (an error is forced to get the time stamp of the error in yyyy/mm/dd format) mountvol to enumerate the defined drives vol to test drive accesibility It will search for a "flag" folder (the backup folder) in the drives to determine which to use Once all t...
I’m trying to make this batch script automatic. The drive letter changes and i cant find a way in window to force it to use the same one each time. im not using the %date% environment variable because i need the date format to be like this: "YYYY_MM_DD" Is there any way I can i get this script to run without user inp...
how can i get this script to run without user input
Youcando it by manual creation of Service and Endpoint objects for your external server.Objects will looks like that:apiVersion: v1 kind: Service metadata: name: external-ip spec: ports: - name: app port: 80 protocol: TCP targetPort: 5678 clusterIP: None type: ClusterIP --- apiVersion: v1 kind: En...
Say I have a service that isn't hosted on Kubernetes. I also have an ingress controller and cert-manager set up on my kubernetes cluster.Because it's so much simpler and easy to use kubernetes ingress to control access to services, I wanted to have a kubernetes ingress that points to a non-kubernetes service.For examp...
Kubernetes Ingress to External Service?
Rabbitmq uses the hostname as part of the folder name in the mnesia directory. Maybe add a--hostname some-rabbitto your docker run?I had the same issue and I found the answerhere.
RabbitMQ in docker lost data after remove container without volume.My Dockerfile:FROM rabbitmq:3-management ENV RABBITMQ_HIPE_COMPILE 1 ENV RABBITMQ_ERLANG_COOKIE "123456" ENV RABBITMQ_DEFAULT_VHOST "123456"My run script:IMAGE_NAME="service-rabbitmq" TAG="${REGISTRY_ADDRESS}/${IMAGE_NAME}:${VERSION}" echo $TAG docker...
Docker RabbitMQ persistency
See Proxy all the Containers: Host server runs a container running a proxy (squid, in this case) that can do transparent proxying. That container has some iptables rules that NAT traffic into the proxy server - this means that container needs to run in privileged mode. Host server also contains (and here's the magic)...
I am running docker on Debian Jessie which is behind a corporate proxy. To be able to download docker images, I need to add the following to my /etc/defaults/docker http_proxy="http://localhost:3128/" I can confirm that this works. However, in order to be able to access the interwebz from within my container, I need ...
How can I make all my docker containers use my proxy?
Try setting ignorecase to false in your git config. I just had the same issue and it worked for megit config core.ignorecase falseShareFollowansweredFeb 23, 2022 at 5:14AndreaAndrea9111 bronze badge0Add a comment|
I've currently facing a rather odd issue, git is not looking for case changes on my files. I hadapp.module.tsandoutside.dto.tsand I've changed them toApp.module.tsandOutside.dto.ts.I'm not sure wether git is not picking those changes or if that's a very specific issue with my repository, but my repository is still with...
Git's not detecting file name casing change
Wikipediasays:In a variety of computer networks,binary exponential backoffor truncated binary exponential backoff refers to an algorithm used to space out repeated retransmissions of the same block of data, often as part of network congestion avoidance.The 'truncated' simply means that after a certain number of increas...
I am new to kubernetes and I am having trouble tracking down an exponential backoff signal I am observing on my Jmeter load tests for response times. I have a kubernetes service that is running between 4-32 pods with horizontal pod autoscaling. Each pod is running a Gunicorn WSGI serving a django backend. All of the di...
Exponential backoff in kubernetes?
We have an open issue for that (providing an API) athttps://github.com/RestComm/Restcomm-Connect/issues/947. Would you be interested in contributing to move it forward faster ?
I'm setting up a Restcomm instance and I would like to integrate it with Jenkins, so each time we have a PR in github in a specific branch, Jenkins will deploy the RVD App to the Restcomm instance.I have access to the RVD Workspace from Jenkins, so I guess I could have something like:Developer create/update her RVD app...
Automatic deployment to Restcomm
Just use replaceScene throughout. Pushing & popping scenes only makes sense for quick intermissions, ie showing the settings screen. You will want to avoid any scenario where you push a scene, where it might potentially be followed by a call to replaceScene. It gets very complicated and inconvenient to keep track of t...
// TRY TO AVOID A BIG STACK OF PUSHED SCENES -(void) mainMenu() { // etc [[CCDirector sharedDirector] pushScene: gameScene]; } // stack: // . game <-- running scene // . mainMenu -(void) game { [[CCDirector sharedDirector] pushScene: gameOverScene]; } // stack: // . gameOver <-- running scene // ...
cocos2d director flow control: replace scene after push scene. What happens to the pushed scene?
You will need to use alias rather than root as you are attempting to map /test to /home/phragile/public and the latter does not end with the former. See this document for more. You will also need to execute PHP within that location (see your location /index.php block). You have a very specific configuration that is de...
Here is my nginx.conf which serves any request coming to example.com with /srv/phabricator/phabricator/webroot/index.php. I want to change the functionality such that if a request comes in to example.com/test then /home/phragile/public/index.php is served. daemon off; error_log stderr info; worker_processes 1; pid ...
How to redirect nginx request to different path
As you have probably noticed,docker stopas well asdocker rmexit with a status code indicating failure if the container is not existent or not running. This results in your build failing.If you can cope with the error messages in your build log you can do this little trick to prevent the shell command of failing:docker ...
I am looking to pragmatically stop and delete a Docker container if it is running. This is for a build script.Take the following example. How would I stop and delete the Docker container "rabbitmq" as seen under the NAMES column in a bash script?docker ps CONTAINER ID IMAGE COMMAND ...
Stop and delete Docker container if it's running
SonarQube as well as JaCoCo require class files only at analysis time, but do not store them anywhere afterwards. While without class files SonarQube can produce some result (partial or even wrong), JaCoCo absolutely can not and requires class files.Also should be noted that both (SonarQube in its UI, and JaCoCo in its...
I have created Maven project and created surefire-report as well jacoco report. jacoco.exec is also generated and if I upload my project on server with compiled classes then I can able to see my code coverage, but as the best practices if I omit the class files the I am not able to see the code coverage. Can someone pl...
Sonar code coverage does not reflecting on server without classes files
I think a better test would be to avoid the initial costs/latency incurred in starting up the JVM and loading the classes. Something like:public class TestDynamoDBMain { public static void main(String[] args) { try { AWSCredentials credentials = new PropertiesCredentials(new File("aws_credentia...
I've been testing out DynamoDB as a potential option for a scalable and steady throughput database for a site that will be hit pretty frequently and requires a very fast response time (< 50ms). I'm seeing pretty slow responses (both locally and on an EC2 instance) for the following code:public static void main(String[]...
How to improve speed of DynamoDB requests
Allocating and initialising an object is slightly more efficient, because thingWithObject: will do an alloc, then init, then autorelease which you counter with a retain, so you add something to the autorelease pool. The first option only involves an alloc and a init. Personally, I use the explicit alloc when I want to...
I was wondering, what (if any) is the difference between creating objects using: NSThing *thing = [[NSThing alloc] initWithObject:object]; vs NSThing *thing = [[NSThing thingWithObject:object] retain]; Is there a difference in how the memory management works? Also, when is it common practice to use one vs the other?...
What's the difference between an [[alloc]init] and a [[thing]retain]?
Solved fromhttps://devcenter.heroku.com/articles/using-the-cliAdd an environment variable asNODE_EXTRA_CA_CERTSthat points to the certificate.For Windows:set NODE_EXTRA_CA_CERTS=C:\path\to\ca_cert.pemor .crtFor Linux:export NODE_EXTRA_CA_CERTS=/path/to/ca_cert.pem
I am behind in my company's firewall. We use a certificate file *.crt provided from our company to access SSL enabled web sites.So I am gettingunable to get local issuer certificateerror when usingheroku login.I am using Windows 10 and Heroku CLI 7.14.1 and tried addingHEROKU_SSL_VERIFY=disableandSSL_CERT_FILE=C:\certi...
Heroku CLI error: unable to get local issuer certificate
It seems that github pages doesn't publish by default. I succeeded to publish by doing : fork https://github.com/1j01/jspaint go to repo settings (https://github.com/username/reponame/settings) in GitHub Pages section, switch source list to master branch and click save. switch back to gh-pages branch and click save ...
I have a user page generated with Jekyll, it works fine, it even has a 404 custom page. But now I'd like to have a project page that is just plain HTML, CSS and JavaScript (no Node.js nor Jekyll), showing up as my_acount.github.io/project_repo/. I uploaded the content, added a blank file with the name .nojekyll, and c...
Why isn't this static project page showing up on a Jekyll-generated user page on GitHub Pages?
I've fixed my problem by using javabase64-1.3.1.jar library. OutputStream fos2 = FileUtil.getOutputStream(base64FileName, FileUtil.HDD); InputStream in2 = FileUtil.getInputStream(fileName, FileUtil.HDD); Base64.encode(in2, fos2); in2.close(); fos2.close(); I stored the base64 string to a text file first. public void...
I used ostermillerutils library to create base64 string but I get OutOfMemory error if the image is heavy. If the image I try to convert is a simple image, the code is working fine. public String createBase64String(InputStream in) { //collect = new ByteArrayOutputStream(); ByteArrayOutputStream bos = new ByteA...
OutOfMemory when creating Base64 string in java?
In this case an exception is thrown.Thenew(nothrow)only means that failure to allocate storage for the object will not throw, it does not place constraint on the object constructor (nor constructors of subobjects).
I am trying to understand what would occur if I failed to allocate memory in a constructor for an object which is itself dynamic.Example:Say I am dynamically allocating an object and I am checking whether the object was allocated:Object* object = new(nothrow) Object(); if (object == nullptr) { // handle stuff }Now what...
How does failure to allocate memory in constructor bubble up
Note: when debugging such problems with cron, you should look for errors in your local system mails or redirect those to your real mail by adding[email protected]on top of your crontab file.There are 2 problems with your crontab commandTLDR; the fixed cron expression* * * * * docker exec sample_container bash -c 'touch...
I am trying a cron task inside a container from host but with no luck. From the host I am adding the following line oncrontab -e* * * * * docker exec -it sample_container bash -c 'touch /selected/directory/temp$(date +%H-%M)'But this is not working. Interestingly, when I run the command independently outside crontab it...
Cron task inside container from host
As PerAmazon DynamoDB Pricing:Free Tier*As part of AWS’s Free Tier, AWS customers can get started with Amazon DynamoDB for free. DynamoDB customers get25 GB of free storage, as well as up to25 write capacity unitsand25 read capacity unitsof ongoing throughput capacity (enough throughput to handle up to 200 mill...
AWS Free tier allows 25 Read/Write per account. I am not able to understand how this is allotted.I tried with MAX 8 Tables and MIN 2 Tables (Single DB only). AWS is allotting 3 Read/Write per table no matter what are the number of tables in DB. (I didn't go above 8 as it might cost me for going above the allowance of 2...
AWS Free tier Read/Write allowance/table
You can, of course, do this by creating an alias forcommit -s. You can also add it using acommit-msghook if you want. However, it's intentional that you cannot specify a configuration option for this.The reason is that you are supposed to intentionally and deliberately sign-off your commit message in each instance, m...
I would like thisSigned-off byto be set automatically without me giving the -s parameter as I would normally do:git commit -s -m "message"I wish I could just givegit commit -m" message"andSigned-off byto be put automatically at the end of the commit message.
Github: Add Signed-off by in commit without using -s param?
You can give your container a specific name when running it using --name option.docker run --name mycontainer ...Then your exec command can use the specified name:docker exec -it mycontainer ...
So I'm trying to run the following shell script which requires the container id/name of the container (in which the script would be run) dynamically.One way could be to dodocker psand then getting the Container Id, but that won't be dynamic.So is there a way to do this dynamically?#!/bin/bash docker exec <container id/...
Dynamically get a running container id/name created by docker run command
The below should solve your query on getting domain per namespace.The query below "get ingress" retrieves the domain details from all namespaces and using awk, it prints the 1st column which is the namespace and the 4th column which is the domain in the ingress, you can grep it further to filter down on particular name...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
Obtain the hostname served by a Kubernetes Ingress [closed]
HTML panel - include your camera video (player) there
I'm using the Grafana for monitoring time series data, now I want to add a camera or video/stream on a Grafana dashboard.Is there any way or any plugin to do that?
How to add video/stream to the Grafana dashboard?
Using std::vector<int> IntVector; you're giving automatic storage to your vector (i.e. if in a function it will be on the stack space, in the case of a member of a class it depends on how the parent object is allocated.. in the above example: on the heap) using IntVector = new std::vector<int>(); you're fully alloc...
Is there any effect of allocating memory using 'new' inside an object that itself was allocated using new. Is there any advantage or disadvantage on the compiler, linker, run-time performance or anything? An example of what I'm talking about class IntData { public: IntData() { IntVector = new std::vect...
Dynamic allocation inside a dynamically allocated object
1 Ah, came across my own question :D So, Falco can be used as a HIDS (Host-based intrusion detection system), which will alert on any unusual activity based on rules defined in Flaco configuration. This can be deployed as a Deamonset (privileged) or directly on nodes. ...
Hope you can help. I am trying to enable audit logging in a docker container so if anybody kubectl exec to a docker container and runs any commands, then those commands get logged and we can view them in kubectl logs and capture with fluentd for example. An option with adding the following line to /etc/profile of a co...
Enable command line audit logging in docker container - kubernetes
Vagrant doesn't inherently support this, since it's intended audience is really development environments. It seems like you're looking for something more like what VMWare vSphere does.
I'm using Vagrant to deploy my VMs and my current setup looks like this: server1 = VM1, VM2, VM3 ( main production server ) server2 = VM1, VM2, VM3 ( backup server ) My questions is, can I somehow sync the VMs across the different physical servers in case one fails so I can keep running the VMs on the second one with...
Syncing Vagrant VMs across different physical servers
0 I posted the answer here. Daphne redundantly and prematurely loads the entire HTTP POST request body into RAM. If you need to upload large enough files - you need to use uvicorn instead daphne. Replace daphne -p <your-port> -b <your-host> ... with uvicorn --port <your-por...
I have a Django web application that uses Channels and Daphne for websocket communication. All of my websocket stuff is working properly without any issues. My trouble comes from the fact that my server also allows me to upload files to the server. Small files (even up to 282mb) are being uploaded and working fine wi...
Django Daphne large file uploads
Put the rules below at the top of your .htaccess file (in the root directory of your site) and then select one of the options below, modify it to your needs and place in after in your .htaccess file.The first option will match the most urls and is not recommended. The second will only match urls with 5 directories, bu...
I am really new to .htaccess. I was wondering how to create a complex seo friendly urls for the search string and selected filters.I'm using following code currently for the search.ReWriteRule ^search/(.*)/(.*) ?module=search&q=$1&page=$2 [L] ReWriteRule ^search/(.*) ?module=search&q=$1 [L]When it comes to add...
.htaccess and seo friendly search query string
If I were you, I would open up the SQL Transaction inspection tool and see any sql transactions that are happening (this will take some trial and error to tune the filters to find what transactions you are looking for). Then when you find the table that is being queried specifically for a "Get Latest Version" and not ...
We're using TFS 2013. I'm interested to know if it's possible to see which developers are performing a 'Get Latest Version' command from various projects. tbl_command shows Get commands, but this doesn't tell me what was gotten. Is this available somewhere?
TFS 2013 audit get latest version commands
don't use your login password, just use a access token, you can generate on this pagehttps://github.com/settings/tokens/new, check access as you need. and generate token. don't forget to save generated token first, because that is one time view only. and try login with generated token.ShareFollowansweredFeb 2 at 7:10Zi...
This question already has answers here:Message "Support for password authentication was removed."(50 answers)Closedlast month.I am trying to push my code, make many tries and facing diffrent issues.git push origin masterLogon failed, use ctrl+c to cancel basic credential prompt. remote: Support for password authenticat...
git push with access token [duplicate]
my main IDE is netbeans which has imperfect git support Most devs just use the command line. I switch to the NetBeans conflict resolver occasionally, which is very good, but for normal stuff the console is usually faster. My instinct is to suppose that there will need to be some "build stage" prior to committing to...
In my project the deployable version needs to have a copy of each of the external libs, a different config file and install and setup files, for security concerns, the main project is set to refuse to run if they are present. Thus the upstream copies of the other projects need to be committed to repo. How can I work o...
What ways are there to work on a project in a testing environment where the Git commit needs to be different to the PHP code used for testing and dev?
If you have corresponding certificate for every server, you can use proxy_ssl_name $proxy_host; Or can create one certificate with all Subjec Alt Name inside and distribute it to all backends
My nginx upstream has multiple servers, eg: upstream backend { server backend1.example.com:12345; server backend2.example.com:12345; server anotherbackend.com:12345; } server { listen 12345; proxy_pass backend; proxy_ssl on; proxy_ssl_verify on; ...
How to specify multiple server names in proxy_ssl_name in nginx reverse proxy configuration
The SQL Server image is based on Ubunutu 16.04 (according to its DockerHub reference page). According to the answers to this question, there's a bug in Ubuntu 16.04 with setting the time zone. Try changing your docker file to: ENV TZ=America/New_York RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && dpkg-reconfigu...
I'm using Docker 19.03 on Mac but it would be nice if there is a cross-platform solution. I have this Dockerfile ... FROM microsoft/mssql-server-linux:latest RUN apt-get update RUN apt-get install unzip -y ENV TZ=EDT RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN date ... This...
How do I set timezone for my docker container?
Either wrap it in<pre>tags or use Markdown's triple-backtick code blocking, like:``` . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / ==...
How can I include the SPRINGBOOT CLI Image in my readME file using github markdown?. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___...
GitHub ReadMe: How to include CLI Text Logos
- is a special character in regex when you use inside character class [], it stands for range when it appears anywhere else except As the first character in class or after [^] At the end of character class so your regex should be DST-[0-9]+ Character Class
i just added the https://github.com/github/platform-samples/blob/master/pre-receive-hooks/require-jira-issue.sh script to one of my github remote repos and was able to successfully configure a pre-receive hook at the org level and enabled it for one of my sample repos. Now when i push to that sample repo from local, i...
Jira pre-receive hook on GitHub server not working for git commit pushes
Stacks and heaps are not C++languageconcepts (save the odd function in the C++ standard library), but areimplementationconcepts.That's why C++ books will use the standard termsautomaticanddynamicstorage instead.If you were reading a book on compiler design and implementation then you'd fully expect comprehensive prose ...
In books such as "C# in a Nutshell", what is allocated on the stack and heap is introduced quite quickly. However, C++ sources such as "Programming Principles and Practice Using C++", the standard, and cppreference.com never mention stacks or heaps with regards to memory allocation - not even when they talk about stora...
Is there a particular reason that stacks and heaps aren't mentioned more often in C++ resources?
The author of the Motor (MOngo + TORnado) package gives an example of caching his list of categories here:http://emptysquare.net/blog/refactoring-tornado-code-with-gen-engine/Basically, he defines a global list of categories and queries the database to fill it in; then, whenever he need the categories in his pages, he ...
I am going to build a page that is designed to be "viewed" alot, but much fewer users will "write" into the database. For example, only 1 in 100 users may post his news on my site, and the rest will just read the news.In the above case, 100 SAME QUERIES will be performed when they visit my homepage while the actual dat...
Caching repeating query results in MongoDB
I believe that this is browser-specific. For example, Firefox has a preference about this in about:configsee this article in Mozilla's KB. I don't know about other browsers (IE might have something in advanced security settings).
I know that data retrieved over SSL (https) is encrypted over the wire, but once it arrives at the browser, is it stored in the client's browser cache? If so, is it stored encrypted or in plain text?This probably depends on the browser, so perhaps different browsers do different things? Modern browsers better behaved...
Is data retrieved over SSL cached by the client browser?
4 There are pre built ruby images (e.g Alpine 3.11 Ruby 2.7) that include bundler. It's easier to start with them as they generally use the current "best practices" to build. Notice that they set the BUNDLE_SILENCE_ROOT_WARNING environment variable with ENV directive in th...
New to ruby and bundler here. I am installing them in a docker image with this docker file: FROM alpine:3.5 # Install Ruby, Ruby Bundler and other ruby dependencies RUN apk add --update \ ruby ruby-bigdecimal ruby-bundler \ ca-certificates libressl \ libressl-dev build-base ruby-dev \ ruby-rd...
How to install ruby and bundler with dockerfile?
This code should do what you are intending:git clone -b master https://github.com/jerryc127/hexo themes/butterflyThe reason why you're getting unknown switch 't' is because the git command line interface uses dashes to determine which arguments are being passed in."A double-dash is a syntax used in shell commands to si...
enter image description here$ git clone -b master https://github.com/jerryc127/hexo -theme-butterfly .git themes/butterfly error: unknown switch `t' usage: git clone [<options>] [--] <repo> [<dir>] -v, --verbose be more verbose -q, --quiet be more quiet --progress force progres...
Why does it say that error: unknown switch `t'?
AWS Glue offers fine grained access only for tables/databases[1]. If you want users to restrict to only few columns then you have to use AWS Lake Formation. Refer tothiswhich has examples.For example if you want to give access to only two columns prodcode and location then you can achieve it by doing as shown below:aws...
How to give column level access to particular roles in Glue Catalog? I want to give Role_A permissions to only column_1 and column_2 of Table XYZ And, Role_B to give access to all columns of Table XYZ.
AWS Glue Column Level access Control
GitHub has an option for this in the branch protection settings, which is “Dismiss stale pull request approvals when new commits are pushed.” That controls whether the approvals are removed, and while it doesn't specifically re-request approvals from the reviewers, they will receive the normal notifications that chang...
This question already has answers here:Is there a way to make Github un-approve a pull request if a new commit is pushed to the branch?(2 answers)Closed2 years ago.We have have programmers on our team that make changes after the Code Reviewers approved.Is there a way in Github, everytime a new file/edit is committed, G...
Github Code Reviews: Automatically Reset and Rerequest Approvals after Changes [duplicate]
You can define a method as below, to do the job and then call the method whenever you need according to your need or on some event like git branch merged/removed, etc.def deleteSonarProject() { def sonarToken = "-your admin credential token generate it from sonarServer-" def url = "http://yourBaseURL:portNumber...
We currently have a jenkins pipeline usingMultibranch Workflow plugin. Each git branch execute a sonarqube analysis creating a sonarqube project using thesonar.branchproperty. This is very useful because each branch is being analyzed before merge it, the problem appear when a branch is merged with master and disappear ...
Automatically remove Sonarqube branch projects when git branch merged / removed
You possibly will have to do update as opposed to insert (doc_as_upsert option)Quoting the documentation herehttps://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-updateThe update action payload supports the following options: doc (partial document), upsert, doc_as_upsert, script, params (...
In elasticsearch I have data something likepost_enas index and multiple posts saved in that which has fields likeid, title, description, price, status.Now how I can update specific fields only for each post with the use of bulk. (With single post I can easily update the fields.)Here is a sample of json for bulk request...
How to update some values only in bulk in elasticsearch?
Well, I don't know the exact details and all, but if you leak some data that was based on the size of some type, the leak will result in larger amounts of bytes for a 64 bit, compared to a 32 bit. For example, if you leak this piece of data: // arr holds an array of 10 pointers int *arr = malloc(10 * sizeof(int *)); ...
I am dealing with memory leak in C code these days. I am amazed to see the different memory leaks in different hardware architecture. The following is the leak summery shown by valgrind in 64 bit architecture: LEAK SUMMARY: ==4064== definitely lost: 1,600,192 bytes in 7 blocks ==4064== ...
Different memory leaks in different hardware architecture
I added validation for the Location variable and this solved the issueif(!location.matches(...)) { throw error..... } String url = apiUrl + location;
I facing a SonarQube bug and am not able to figure out whats the issue. SonnarQube's issue is, change this code to not construct the URL from user-controlled data.@Value("${...}") String apiKey; @Value("${...}") String apiUrl; public Response apiResponse(String location) { HttpHeaders headers = new HttpHeaders();...
SonnarQube's issue: change code to not construct the URL from user-controlled data
8 When you get an OOME you can be very low on memory and logging doesn't always work. One way around this is to have a shutdown method which holds some memory it doesn't release until its shutting down. e.g. private static byte[] lastResort = new byte[256*1024]; public s...
I have a piece of software that has to analyze big files. Constraining the input or giving infinite memory is not an option, so I have to live with flying OOMEs. Because the OOME only kills the Thread, my software runs in some crappy state. From outside everything looks okay because the process is running but on the i...
java out of memory then exit
Please useabout.sonarqube.com/contactin order to contact administrator of sonarqube.comShareFollowansweredApr 10, 2017 at 12:20Julien L. - SonarSource TeamJulien L. - SonarSource Team2,5771717 silver badges1515 bronze badgesAdd a comment|
I got the following error when login into sonarqube.com:You're not authorized to access this page. Please contact the administrator. Reason : You can't sign up because email '[email protected]' is already used by an existing user. This means that you probably already registered with another account.It seems the issue i...
Sonarqube.com login with github issue: mail is already used by an existing user
Are you using jitpack repository? <repository> <id>jitpack.io</id> <url>https://jitpack.io/</url> </repository> Also try deleting the existing jar file of 1.1 version and then updating maven project and compiling it.You could find the jar via somthing like: sudo find / -name '*1.1*jar'
I'm using a github repository with jitpack with the following dependency:<dependency> <groupId>com.github.bys1</groupId> <artifactId>taigalib</artifactId> <version>1.2.1</version> <scope>provided</scope> </dependency>For some reason, after updating from version 1.1 to 1.2 and later 1.2.1, it doesn't update the ...
Maven doesn't update Github repository
4 You don't need to do anything. ARC will implement the dealloc method for you, which will call all releases for your retained properties. I really recommend you read the memory management documentation from apple, it will help to understand what ARC is really doing, incl...
Let's say i'm working on an app with a large number of views and i have some problems understanding memory management when the UIViewController segues to another UIViewController. Which of the following object should i release in viewDidDisappear: ? @property (weak, nonatomic) IBOutlet UIImageView *background; @prop...
iOS memory management with ARC
0 Caching based on the response header cannot be done because it implies that Nginx must proxy the request back to the backend and check its response, defeating the purpose of the proxy cache. Share Improve this answer Follow ...
I want to implement a custom nginx cache control method from my scripts, by using a custom header: "Do-Cache". I used in http block of nginx: map $sent_http_do_cache $nocache { public 0; default 1; } And in the server block of nginx: fastcgi_cache_bypass $nocache; fastcgi_no_cache $nocache; So, for ...
Nginx cache bypass by custom response header
I solved this by simply zipping the files properly with the symbolic linksFirst I created three symbolic links (with respect to above dir structure):ln -s ./lib/libaio.so.1.0.1 ./lib/libaio.so.1ln -s ./lib/libaio.so.1.0.1 ./lib/libaio.soln -s ./lib/libaio.so.1.0.1 ./libaio.so.1.0.1ln -s ./lib/libclntsh.so.12.1 ./lib/li...
I am trying to connect to Oracle using AWS lambda and python.These are the step I followed. (Everything has done EC2 instance)Downloaded the instantclient-basic-linux.x64-12.2.0.1.0.zip andinstantclient-sdk-linux.x64-12.2.0.1.0.zipCreated this folder structure~/lambda/lib/Extracted thezipfiles in the~/lambda/lib/copied...
Connecting to Oracle RDS