Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
You have Sonar looking for source code from src/main/java, so it won't find your js code. Change it to:sonar.sources=src/mainSonar will automatically make the java analysis from /java, and the javascript analysis from /webapp
I'm trying to analyse myJEEproject withSonar 4.2. It's amulti-languageJEEproject withJavaandJS.The plugins I've added to mySonar 4.2are :Java 2.1andJavaScript 1.6.Recently, Sonar added themulti-languageanalysis, following thedoc, I've removed thesonar.languagefromsonar-project.properties. But it still analyse only the...
Sonar 4.2 analysis both Java and JavaScript in same project
Metric timestamps are in milliseconds, but you're using seconds.Add 3 zeros to your number and it should work.The timestamp is an int64 (milliseconds since epoch, i.e. 1970-01-01 00:00:00 UTC, excluding leap seconds), represented as required by Go's ParseInt() function.https://github.com/prometheus/docs/blob/main/conte...
I'm trying to give Prometheus a data with a timestamp like follows:"# HELP ABAP_MESSAGE_SERVER_HTTP_AVAIL2 Active Users\\n" + "# TYPE ABAP_MESSAGE_SERVER_HTTP_AVAIL2 gauge\\n" + "ABAP_MESSAGE_SERVER_HTTP_AVAIL2{Provider="DP_SYSMON",} 100.01 1670401800\\n"When trying to do this, I get this error from Prometheus:msg="Err...
Giving a timestamp with a metric to Prometheus
It is possible to get the daily expenses for the last days using the aws ce subcommand: aws ce get-cost-and-usage \ --time-period Start=$(date +"%Y-%m-%d" --date="-240 hours"),End=$(date +"%Y-%m-%d") \ --granularity=DAILY \ --metrics BlendedCost \ --query "ResultsByTime[].[TimePeriod.Start, Total.BlendedCost.[Amou...
Is it possible to get the daily costs using the AWS CLI tool? I am looking for an output similar to the information available via the Cost Explorer in the AWS Web Console. I need a simple way to quickly check the expenses in my AWS account for the last several days.
How can I get the daily costs using the AWS CLI
location ~ ^(/[^/]+)(/.+)$ { root ...; if (!-d "$document_root$1") { return 404; } try_files $1$2 /default$2 =404; }
Given this folder structure:root folder + default + settings1.txt + settings2.txt ... + settingsN.txt + user00001 + settings1.txt ... ... + userN + settings1.txt ...And this example url:domain.com/user00009/settings1.txtOrdomain.com/xavi/so...
Nginx try_files (folders + files) fallback
According tothis articleyou can accomplish this by usingSetEnvIf. You match each of the folders and files you want to grand access to and define an environment variable 'allow' for them. Then you add a condition that allows access if this environment variable is present.You need to add the following directives to your ...
I have a directory protected by htaccess. Here is the code I use now:AuthName "Test Area" Require valid-user AuthUserFile "/***/.htpasswd" AuthType basicThis is working fine. However, I now have a directory inside of this folder that I would like to allow anyone to access, but am not sure how to do it.I know that it is...
Exclude one folder in htaccess protected directory
Create trivial script last_weekday_in_month.sh and use it in your crontab entry. You use syntax far beyond basic shell => IMHO it is better to move it to trivial script with specific shell enforced via #!/... 12 * * 0 /path/last_weekday_in.month.sh && sudo tar -cpzf /media/BackupDisk/wwwJUNEbackup.tar.gz /var/www la...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
Schedule crontab job for last sunday in the month [closed]
Try this:count by (namespace) ( max_over_time(kube_pod_info{namespace=~"team-.*", pod=~"export-.*"}[1d]) )
Team, i have a query to pull certain expression matched pods and namespaces but i want to pull them for last x number of days. how to ?count(kube_pod_info{namespace=~"team-.*", pod=~"export-.*"} ) by (namespace)outputElement---------------------------------------------Value{namespace="team-a4-db8a1b8b054f"} 500attempt...
prometheus promql to fetch pods within certain time
You could store the certificate in a Kubernetes Secret:https://kubernetes.io/docs/concepts/configuration/secret/Here is an example on how to do so:https://kubernetes.io/docs/concepts/configuration/secret/#creating-a-secret-using-kubectl-create-secret
I just started to explore Kubernetes and I deployed a service in a container on Kubernetes which is running on a cloud.My service requires to make a call to a database which requires a certificate for authentication. I am wondering what would be the best practice to store/install the certificate on KubernetesI need to ...
Installing certificates on Kubernetes
Thanks to the hint from @Ben Manes:Caffeine.newBuilder() .removalListener((key, value, cause) -> { if (cause.wasEvicted()) System.out.printf("key=%s, value=%s", key, value); }) .expireAfterWrite(60, TimeUnit.SECONDS) .build();
I knowCache2khaving aCacheEntryExpiredListenerthat is only triggered if a cache entry self-expires (not when being invalidated explicit).Cache<String, Object> cache = Cache2kBuilder.of(String.class, Object.class) .addListener( (CacheEntryExpiredListener<String, Object>) (cache, entry) -> handl...
Is there a CacheEntryExpiredListener for Caffeine Cache?
No, you can't have multiple ranges in one statement. You can either set it like1,2,3,4,...27,32,33...or, to have it better readable, split it up to two statements1-27 11 * * * process.sh 32-59 11 * * * ... process.shIf you don't need cron to log or output something, consider to add1>> /dev/null 2>&1to the end.
Is this the right way to run process.shevery minutefrom 11:01-11:27 and from 11:32-11:59 ?1-27/1,32-59/1 11 * * * process.sh
Is this cron correct using multiple ranges?
I contacted AWS support and they helped resolve the problem. Thanks to Shaun H @ AWS! The solution to the problem is to use AWS CLI instead of AWS console to set up an OIDC provider. I'm pasting relevant parts of Shaun's response below: 1.) Manually obtain and verify the thumbprint using the procedure described her...
I get the following error while setting up Firebase as an AWS IAM Identity Provider using OpenID Connect. We encountered the following errors while processing your request: Please check .well-known/openid-configuration of provider: https://securetoken.google.com/<Project ID> is valid. The AWS IAM Identity Provi...
Using Firebase OpenID Connect provider as AWS IAM Identity Provider
It's an apache bug, see belowhttps://issues.apache.org/bugzilla/show_bug.cgi?id=51223You can recompile Apache with the patch if you're feeling brave....
I'm trying to download a static file from another domain. In my .htaccess file, which is in the root directory:Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Headers "Accept, If-Modified-Since, Origin" Header set Access-Control-Allow-Methods "GET, OPTIONS"And here's the request-response cycl...
CORS Headers Not Being Set
Sure you need some kind of a primary key in the table.It will be easier to remove duplicates and to track the 'reason of insert' (for debugging purposes) if you have one.SomeRDBMS's (likeMySQLwithInnoDB) actually create a hidden primary key for you if you didn't do it explicitly, so just do it yourself and make if visi...
I am creating an audit table for tracking changes done on a record in main table.Here audit table is the exact duplicate of main table (say Employee Table) but will only have 'inserts' for every changes happens in the main table. So it will have duplicates (same EmployeeIDs), so should I add separate Audit_ID for eac...
Should I include primary key for Audit Table in SQL?
Convert your CSV into metrics with Prometheus recording rules (https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/):groups: - name: example rules: - record: give_this_metric_a_name expr: 1 labels: dc: datacenter1 - record: give_this_metric_a_name expr: 2 ...
There's a prometheus metric that returns memory consumed by each instance of an app in a specific data center:memory_metric{appid="12354"}So the above query will give me memory consumed by that appid on every data center, like{dc: datacenter1, value: 20000}, {dc: datacenter2, value: 30000}There's a number associated wi...
Grafana Prometheus | Joining a metric with a static list of key-value pairs
so I'm not so sure what am I looking for even.Most probably you are looking for this part ofthe docker documentation. It explains how docker compose is treating network. Part of particular interest for you is this:By default Compose sets up a single network for your app. Each container for a service joins the default n...
I'm a bit new to docker-compose, so I'm not so sure what am I looking for even.I created two images, and I'm running them using docker-compose, on a local environment these two services communicate via HTTP requests (both are running on localhost, one service on port 3000, one service on port 8000)When I moved those tw...
docker-compose make requests between containers
I would suggest making your cached class synchronized via the Double Check Lock mechanism, instead of using the additional implementation for thread safety: public final class CachedText implements Text{ private final Text origin; private String result; public CachedText(final Text orgn) { this...
I have a simple interface public interface Text { String asText() throws IOException; } And one implementation public final class TextFromFile implements Text{ private final String path; public TextFromFile(final String pth) { this.path = pth; } @Override public String asText() t...
Simple Cache mechanizm using decorators
You can also look intoPrometheus 2.0. It is currently in beta with one file format change on the way in the next beta (so you might end up having to drop some historical data at least once) but its storage scales incomparably better and there is nothing to configure for it.It should be able to handle your expected load...
I want to store nearly 2000 machines' metrics and there are 70 metrics of each machine, and scrape-interval = 10sso what kind of configuration or performance of my Prometheus server needs at least?and In that case, how do I make the configuration?like this:-storage.local.retention=2160h -storage.local.memory-chunks=52...
How do I use Prometheus in my business case?
You probably should look for an alternative to running 50 scripts per minute, every minute. AsEd Healpoints out, there is likely a much better way to design the system to do whatever it is that you are trying to do.For what its worth, here is a single bash script that runs those 50 commands in sequence:#!/bin/bash for...
i want to run 50 php page from crontab every minute what is the best way insert every one in crontab or use bash to load all from one corn this is example what i need1 * * * * /usr/bin/php /var/www/folder/page.php?id=1 1 * * * * /usr/bin/php /var/www/folder/page.php?id=2 1 * * * * /usr/bin/php /var/www/folder/page.ph...
How to use bash file in centos crontab
S3 supports the ability to generate a pre-signed URL via the AWS Javascript API. Users can thenGETthis URL to download the S3 object to their local device.See this question for aNode.jscode sample.
Have looked at all the tutorials on how to download files from S3 to local disk. I have followed all the solutions and what they do is download the file to the server and not to the client. The code I currently have isapp.get('/download_file', function(req, res) { var file = fs.createWriteStream('/Users/arthurlecalve...
How do you download a file from AWS S3 to a client's device?
Prometheus will ingest the three values from the three targets, which (unless you've done something very weird) will then exist independently.No math will be performed on them other than math you request in PromQL.
I am wondering how Prometheus behaves, if there are multiple instances of a service available. For example there is one service which is deployed in a kubernetes cluster with three instances running.Each instance increases its count-metric.What happens when prometheus scrapes these instances and receives the three valu...
Prometheus multiple instances of microservices
Idiomatic Airflow isn't really designed to execute long-running jobs by itself. Rather, Airflow is meant to serve as the facilitator for kicking off compute jobs within another service (this is done with Operators) while monitoring the status of the given compute job (this is done with Sensors).Given your example, any ...
We have a lot of the long running, memory/cpu intensive jobs in k8s which are run with celery on kubernetes on google cloud platform. However we have big problems with scaling/retrying/monitoring/alerting/guarantee of delivery. We want to move from celery to some more advanced framework.There is a comparison:https://gi...
Apache Airflow or Argoproj for long running and DAGs tasks on kubernetes
I think you need to add a remote server you can see below a sample of .yml fileimage: node:10 pipelines: branches: master: - step: name: Installation caches: - node script: - npm install artifacts: - node_modules/** # Save modules ...
I am trying to deploy my angular universal app on server through bitbucket pipeline. I have written scripts inbitbucket-pipelines.ymlas follows:pipelines: default: - step: name: Build app caches: - node script: - npm install - npm install -g @angular/cli ...
How to write bitbucket pipeline for deploying my angular universal app?
If your kubectl configuration is incorrect after creating a cluster, you can always rungcloud container clusters get-credentials NAME(seeconfiguring kubectl) to restore a working kubeconfig file.ShareFollowansweredSep 19, 2015 at 21:53Robert BaileyRobert Bailey18k33 gold badges5151 silver badges5959 bronze badges4Thank...
I created cluster in gcloud with three nodes. So far so good.Thereafter i tried to run the pod.. it is giving error.. I found out the kubectl is not configured correct.. Getting following error when I try to run the pod.. Appreciate any help in this regard.error: could not read an encoded object from nodejs.yaml: unabl...
Kubectl configuration in gcloud
Get a custom domain, and do DNS withCloudflare(free)… you can turn https on atCloudflare(in page rules) — then you don't have to worry about github's http/https settings and mixed content errors.There are good instructions for setting up a custom domain with github pages, you can see it here:Custom domain for GitHub pr...
I've hosted my webapp to Github pages, thus website is on 'https'. But now, I want it to make a 'Http' request to some external site.(I don't have a custom domain to change hosted site to http.) I'm getting the 'Mixed-content' error -Mixed Content: The page at 'https://username.github.io/MyHostedSite/' was loaded over ...
Make 'http' request from Github-pages 'https' hosted site
1 you can try in this way: CMD [./node_modules/babel-node/bin/babel-node your app.js]; or try to use another way: // you can rename this file to bin.js const fs = require('fs'); const babelrc = fs.readFileSync('.babelrc', 'utf-8'); let config = {}; try { config = JSON.pa...
Suppose I have following Dockerfile WORKDIR $APP_DIR ENTRYPOINT ["npm", "run"] CMD ["start"] The start is mapped to babel-node bin/server, where babel-node is a nodejs non-global dependency binary file (installed inside $APP_DIR/node_modules by default) On my mac, without any set up, this works fine. But when I run i...
How to execute non-global npm binary in docker
Oh my, well. Technically, yes, you can. In embedded devices which don't use a MMU or any form of protection (or, you know, x86 in real mode), you can do exactly what you have posted there. You can also do it in user mode on any operating system, but the chances of you actually hitting valid memory are very small. In r...
Disclaimer: I am new to C/C++. If I were to manually assign a memory address to a variable in C, and then try to echo out that value...do I have unrestricted access to view anything in memory or are there restrictions in place? For example: char * p = (char *)0x28ff44; printf("Memory value: %c", *p); I'm guessing tha...
Can I access anything in memory?
It is common for operating systems to page out parts of the kernel. The kernel has to define what parts may be paged out and which may not be paged out. For example, typically, there will be separate memory allocators for paged pool and non-paged pool.Note that on most processors the page table format is the same for s...
I'm recently learning the part ofI/O bufferingof operating system and according to the book I use,When a user process issues an I/O request, the OS assigns a buffer in the system portion of main memory to the operation.I understand how this method is able to avoid the swapping problem in non-buffering situation. But is...
Is there any mechanism where the kernel part of an OS in memory may also be swapped?
VBOs are not like regular memory, there is no need for any kind of sophisticated "memory management". You allocate a own, apropriately sized VBO for each distinct mesh and be done with. Any attempt to outsmart the driver will just result in inferior performance. Also there is no benefit in attempting to make your VBOs...
I am looking for smarter algorithms in handling VBOs in OpenGL. As it stands, I currently store each of my models in 4MB VBO's. If the model is larger than 4MB, it is stored separately. The objects are stored such that the models are pooled together to decrease the number of binds. The problem I am experiencing has be...
Memory pool algorithms
4 If you need a list of Amazon S3 content and you do not need it perfectly up-to-date, you could use Amazon S3 Storage Inventory, which will store a daily CSV listing of all files in an S3 bucket. You could then use that list to trigger your pyspark jobs. On a similar ben...
I am trying to distribute the process of getting a list of 60 million keys (file names) from s3. Background: I am trying to process all files in a folder, about 60 million, via pyspark. As detailed HERE the typical sc.textFile('s3a://bucket/*') will load all of the data into the driver, and then distribute that to th...
How to distributed fetching a list of keys on s3
Thelistcontainer takes care of memory management for you.Simply create alistmember on yourRecordListclass like this:std::list<Record> records_;Then simply add lines usingemplace_back:records_.emplace_back(<whatever parameters `Record` constructor takes>);WhenRecordListis destroyed, so is thelistand all its elements.Sha...
Having read literally dozens of answers here on the topic of lists, vectors, thenewoperator, RAII andthisvery good description of memory allocation, I still cannot imagine a practical implementation that meets the following need. Note I am most experienced in .net and its memory management, if that helps guide any answ...
How to add new object instances to std::list without 'new'
This error is coming because jenkins is not able to recognise maven.Pre-requisite: You must have configured Sonarqube with Jenkins.Follow the following steps to rectify your issue:Download the Maven plugin in Jenkins or if you have already downloaded skip to next step.In theManage Jenkins >> Global Tool Configuration >...
Please check my new pipeline is : now it is intergrating with maven.NEW PIPELINE-stage('Test & code quality check ') { withMaven(maven: 'M3'){ withSonarQubeEnv(credentialsId:'mbk-sonar',installationName:'sonar-qube') { sh '''mvn sonar:sonar -X -f /var/jenkins_home/workspace/cabs-stag/cabs-stagSrc/po...
Sonarqube-Jenkins-maven Intergate
As far as I know that folder isn't meant to be accessible via a client API like EWS. Eg because of the security implications that somebody else accessing the Mailbox could edit/delete the Log to hide their actions. All access should be done via the Exchange Management Shell cmdletsCheers Glen
I wrote a tiny EWS API program in C# to check Exchange audit logs. The test is against an Exchange 2016 server.When I'm trying to check the admin audit logs folder:Folder myFolder= Folder.Bind(service, WellKnownFolderName.AdminAuditLogs);I get an "access is denied" error:Microsoft.Exchange.WebServices.Data.ServiceRespo...
Access Exchange (2016) audit logs with EWS Managed API
I have solved this issue using the Spring Cloud Kubernetes Dependencies<spring.cloud.kubernetes>0.2.0.RELEASE</spring.cloud.kubernetes><dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-kubernetes-ribbon</artifactId> <version>${spring.cloud.kubernetes}</version> ...
I am running into issues with Kubernetes Service Discovery on Spring Boot applications.I should be able to discover the services whether my spring boot application is running within or out of Kubernetes cluster. Our local development won't be on k8s cluster.I am using Service Discovery via DNS. I tried usingspring-clou...
Spring boot Kubernetes Service Discovery
Aside: This is a common problem; as such this is probably a duplicate question. The default encoding on 2.7 is ascii. You need to provide an encoding for your program's output. A common encoding to use is 'utf8'. So you'd do instead: print title.encode('utf8') Here's one way to check the default encoding: import ...
This question already has answers here: Setting the correct encoding when piping stdout in Python (12 answers) Closed 10 years ago. My program works right in the commandline, but w...
UnicodeEncodeError only when running as a cron job [duplicate]
This pattern describes the steps required to add a continuous integration and continuous delivery (CI/CD) pipeline to s3 bucket . It uses GitHub as a source provider. The pipeline gets triggered when new items are committed, and the changes are then reflected in the S3 bucket.
I am automating a task using boto3. I have configured the S3 bucket to host a static website, I want to upload my HTML files from github to s3 bucket using boto3. Is that possible? I was thinking of using pyGithub to clone the repo locally and the upload it to AWS s3 using boto3. Any other way I can achieve it?
How can I upload the files on Github to AWS S3 bucket using boto3?
Are you using Litespeed Enterprise or Openlitespeed?OpenLitespeed cannot work with the .htaccess file, you need to configure it via web admin: Edit virtual host -> RewriteLitespeed Enterprise should work with the htaccess file, make sure you configure it to work with it:Edit virtual host -> Rewrite -> Enable Rewrite: N...
I use the following rewrite on my site and it worked fine in shared server.RewriteEngine On <Files .*> Order Deny,Allow Deny From All </Files> <Files ~ "^\.ht"> order allow,deny deny from all satisfy all </Files> <FilesMatch "^php5?\.(ini|cgi)$"> Order Deny,Allow Deny from A...
htaccess doesn't work in litespeed
I have found the solution to above problem. You need to follow 2 steps: The services which want to communicate with each other should belong to same network version: "3" services: serviceA: .... networks: - YOUR_NETWORK networks: YOUR_NETWORK: external: true 2. If you deploy your stack, you...
I am trying out a simple service discovery scenario using different docker stacks. Let's assume I am having 2 stacks. For simplicity purpose,I am naming them as stackA and stackB. StackA has a service called 'serviceA' and StackB has a service called 'serviceB'. ServiceA and serviceB are having a simple RestApplicati...
Docker Communication between service of one stack to another
It seem that "Lines to cover" are the set of lines that must be covered by unit tests.so if We like to know how many lines has been covered, we should simply calaculate it :55% * 100 = 55 Covered Lines and is still 45 Lines to have to cover.
1°) Consider that I create new branch , add some code, and somes unit testsso sonar report shows : 50% Coverage on 100 New Lines to cover2°) I add some unit tests and rebuild3°) sonar report shows : 55% Coverage on 100 New Lines to coverQuestion is :I do not understand why the coverage increase (from 50% to 55%) but t...
In SonarQube, does Lines to covers should decrease when add tests relatives to the concerned lines to cover?
+100Updated answerI am not sure if it is angularjs related as a number of these HTML files are swapped out using ng-views and templates.Bundling reduces the number of requests to the server. For AngularJS you could use a technique at build time to inline the templates with javascript. This is a plugin for a Grunt bas...
I have an ASP.net application which uses AngularJs, Javascript, HTML5. The problem is everytime I deploy the browser may cache some files which results in errors because the user is not getting the latest Html and javascript files.I understand HTML5 has a manifest file which can force files to download but is there a m...
Deploying ASP.Net MVC, Angular application download file when there is a change
9 Looking at the output it seems that either the PR is closed or the PR does not exist. NOTE: Please commit your code before doing this as if you might have updated the code which will not be present anywhere then you might be in trouble. The ideal way to test a PR is this...
I have been having trouble grabbing a pull request. Here is my command line attempt at the pull request code: $ git fetch upstream pull/3/head:testbranch Password for 'http://[email protected]': fatal: Couldn't find remote ref pull/3/head Unexpected end of command stream We are using an origin repo and an upstream r...
Git: How to fetch a pull request for testing
Settings -> Labels: Tick the checkbox next to "Show in IMAP" at the 'Chats' label
I want to add 'backupp Gmail chats' feature to Gmail Keeper athttp://GmailKeeper.combut the chats are not available when accessing Gmail account through IMAP, any other ideas? Thank you.
How to programmatically access Gmail chats?
Your Github stars are available in JSON at a URL like this: https://api.github.com/users/username/starred (sub in your own username of course) I found this Yahoo! Pipes thing to turn your stars into an RSS feed. The Yahoo Pipes service has shut down, and IFTTT apparently dropped the stars trigger from their Github c...
Is there some way to get an RSS feed for one's github stars list? I want to get it into Pinboard via IFTTT.
Creating an RSS feed for Github Stars
You don't need to bridge them: what you want is a superset server (that you happen to be running via docker) to connect to a clickhouse database (that you also happen to be running via docker).You also shouldn't need to install SQLAlchemy for Clickhouse: looking at the dockerfile athttps://hub.docker.com/r/amancevice/s...
I'm trying to setup Apache Superset for Clickhouse. My understanding so far is that I need to install SQLAlchemy for Clickhousehttps://github.com/xzkostyan/clickhouse-sqlalchemyI'm in Ubuntu 16.04 LTS, and using the Docker vanilla version of Clickhouse and of Superset:https://store.docker.com/community/images/yandex/cl...
Superset for Clickhouse in docker with SQLAlchemy
FROM whatever COPY contextfile containerfile RUN do_thing_to containerfile in your case FROM ubuntu:14.04 COPY serf.zip serf.zip RUN unzip serf.zip -d /bin \ && rm serf.zip The file must be in the build context. Conventionally, that means it's in the directory or a subdirectory below the directory containing the Do...
I have a docker file which contains a line like this FROM ubuntu:14.04 RUN curl -Lso serf.zip https://URL/serf.zip \ && unzip serf.zip -d /bin \ && rm serf.zip And that means it downloads a file and extract it within the linux image (here it is an Ubuntu-14.04). Now, I don't want to use that URL. Instead I have the ...
Copy a file from host OS to docker image
In the first example you don't initialize m. You merely change your copy of it. So, put otherwise, the caller will never see what you did to m. In the second example you allocate memory and then return a pointer to it. Which is valid. You might be able to fix your first example like this (untested but should work): vo...
Consider following codes: #include <stdio.h> #include <malloc.h> void allocateMatrix(int **m, int l, int c) { int i; m = (int**) malloc( sizeof(int*) * l ); for(i = 0; i < l; i++) m[i] = (int*) malloc( sizeof(int) * c ); } int main() { int **m; int l = 10, c = 10; allocateMatrix(m, l...
Dynamic memory allocation question (in C)
Both png and jpg are commonly used. It depends mainly on what kind of image you have and the way it is exported.If you need transparency, you can use png. If you need a very high contrast picture with many colors, you might consider using jpg instead.
What is the best image format (e.g. png, jpg) for images to be displayed in a Markdown page on public git repositories like github or bitbucket? in terms of size, speed, and compatibility.
Best image format for markdown page for github or bitbucket?
The simple reson is: you have reached the limit of private repos. You might want to upgrade, switch to another provider or build your own local image repository. I answer my own question, so anyone googeling around and trying to fix this issue can find this solution. I upgraded my plan to Docker Pro and continued usin...
This sounds like a silly problem but I'm not able to pull anything from my own private DockerHub repos. zsh: docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username: my-username Password: Login Succeeded...
docker pull requested access to the resource is denied from hub.docker.com
On the MD file page, click on the RAW button. it will take you to a different URL (in this casehttps://raw.githubusercontent.com/linode/docs/master/docs/security/linux-security-basics.md) but it shows the raw contents of the file, unformatted
This question already has answers here:How do I view the source of Markdown files on Github?(5 answers)Closed7 years ago.Please note this question is about simplybrowsingMarkdown source code on the GitHub website,nothow to add preformatted text when writing Markdown (or similar.)GitHub automatically renders an HTML pre...
GitHub - browse plain text version of markdown file [duplicate]
The correct annotation looks something like this, give this a try:@Library('shared-lib') _You're missing the underscore, if this does not resolve, can you share the error logs.
I am not much aware of jenkins groovy coding. I am trying to get a task done on the jenkins side. So please let me know if I am doing it wrong.I generated a groovy script on the agent dynamically using the main pipeline groovy script and in that I am trying to use a jenkins shared library.My dynamically generated groov...
Unable to find class for annotation for groovy script file on agent
The Symfony Routing Component documentation contains an example of how to easily enable the cache:The all-in-one RouterBasically your example can be reworked like the following:// RouteProvider.php use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\Route; $collection = new RouteCollection(); ...
I'm using the Symfony Routing components standalone, i.e. not with the Symfony framework. Here's my bare-bones code I'm playing with:<?php $router = new Symfony\Component\Routing\RouteCollection(); $router->add('name', new Symfony\Component\Routing\Route(/*uri*/)); // more routes added here $context = new Symfony\Comp...
How to cache routes when using Symfony Routing as a standalone?
So it turned out my problem was that the JVM wasn't using the proxy settings of my machine, I had to add the following to the Sonar runner script.SONAR_RUNNER_OPTS="-Dhttp.proxyHost=myproxy -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=my.local.host"
I'm trying to use Sonar Runner but keep getting a socket timeout exception. The machine I'm running it on is behind a proxy so I think maybe that is the problem.I still get the problem when the Sonar Server and the Runner are on the same box so I also don't know if this is a problem with Java not properly picking up th...
Sonar Runner Behind a Proxy
If following is the repo url:https://github.com/xyz/repo/and you want all commits from master of usernayadthenhttps://github.com/xyz/repo/commits/master?author=navyad
A github repository can have commits by many users.How can I find all commits made by a user in a github repository in browser?Let's say when i sayhttps://github.com/navyad/messengerbotin browser, it shows page of that repo.How same url can be used to figure out the commits of a user?
Find all user commits in a github repo
10 "$path" is a pseudo-column which evaluates to the path of the source file given row comes from. This is provided by Presto's Hive connector. If you have a file with 100 rows, you will get same path 100 times. If you want to get first ten distinct paths, you should try ...
What is exactly "$path" used for? I just ran "select "$path" from table limit 10", in athena it's showing the file path of S3 where data is pointed. But when i gave limit 10, it's showing same path 10 times, if i don't limit the statement it's scanning entire data. Can please someone expalin.
What is $path pseudo column? What is the use of it in Athena (Presto)?
This blog post is a great start and understanding Azure's strategy regarding volume mounting (ASL == App Services on Linux; ASW=App Services on Windows):... However, in this case, we would like to leverage the regular App Service Filesystem, so we can interact with the application using FTP. When a container is deplo...
I've deployed aWeb Appon Azure and use a Docker Container from the public registry (my own image) to host my website. But users can upload pictures and data is stored in json-files on the server. Of course I want to write these files to a mounted volume outside of the container. So that I can redeploy an update version...
Mount a volume while using a docker container in Azure App Service
One way to do this is theCustomMessagelambda trigger(docs).In this lambda you receiverequest.userAttributeswhich includes all the user attributes for the recipient; including locale, if you set it.You can use this information to select from your email templates in various languages, and return the desired e-mail asresp...
I'm developing a multilingual application - currently the application works with 3 different languages. Is there a way to handle multilingual email verification in Amazon Cognito?Thanks,Lucas.
Amazon Cognito - Multilingual email messages
I managed to fix this by using theNEflag, ie:RewriteRule ^#x-tab / [R=301,L,NE]
I've tried to do a bit of searching (and come up with this:How to rewrite a URL with %23 in it?) but its not quite what I'm looking for.I have a website, with a tabbed content section (x-tab, y-tab, z-tab etc.). There are links: www.site.com/#x-tab. I then use jQuery to monitor whenever a -tab link is clicked and to di...
Rewrite an url with %23 to #
Place your .htaccess file into your pages directory/folder and place following rules in it. Also please clear your cache of your browser before testing your URLs.RewriteEngine ON RewriteRule ^documentation/license/?$ PHP/pages.php [NC,L]For Generic rewrite: you could use following.RewriteEngine ON RewriteCond %{REQUEST...
I have URLs like these pointing at folders:1) https://try.com/documentation/license/ 2) https://try.com/documentation/licenseI want to rewrite both pointing at PHP/pages.phpI have tried this:RewriteRule ^(.*)/$ PHP/pages.php [NC]This works in case #1 but not in case #2.I have also tried this:RewriteCond %{REQUEST_FILEN...
htaccess rewrite any folder but not any file
It turns out my private key format was incorrect. It needs to include the '-----BEGIN RSA PRIVATE KEY-----' wording and also the new line characters, like this (private key mangled for obvious reasons):var privateKey = '-----BEGIN RSA PRIVATE KEY-----' + '\n' + 'MIIEogIBAAKCAQEAgaqMPqZ2QlhLx7pmguBMR32+dLPq7HrXN92z+QLb...
I'm trying to use Lambda to generate and return a signed cookie so my iOS app can use the cookie to access restricted files via CloudFront.I think this should be possible using the Signer class:http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudFront/Signer.htmlOn this basis I have written the following Lambda...
How to use AWS.CloudFront.Signer in Lambda function
Ifmake unistalldoesn't work, as mentioned here,uninstalling on linux, trymake installagain, capturing the output.Then go through all of the install commands and manually remove the installed files.Also, 'make -n` may help to determine all of the installed files.
I had installed git by downloading the tar ball and then doing the following steps./configure --prefix=/scratch/custom/git make make installBut after running these commands, I still see that git is created under/usr/localas belowbash-4.1$ whereis git git: /usr/bin/git /usr/local/git /usr/share/man/man1/git.1.gzI wou...
How do I completely uninstall git from my Linux Machine
It's not an nginx bug: If you're currently running a site that's live and accessible on the internet, bot scripts will try to find common vulnerabilities by hitting your server with various automated requests of common URLs, paths and patterns (e.g.admin.php,/wp-login.phpfor WordPress blogs...). Just make sure you set ...
i am new to nginx, yesterday i installed lemp on centos and hosted a website on. today i get this in error message. please tell me if this is a security bug of nginx? Thank you!cat /var/log/nginx/error.log 2017/07/01 03:52:18 [error] 6073#0: *23151 open() "/usr/share/nginx/html/testproxy.php" failed (2: No such file or...
is this a bug of nginx: open() "/usr/share/nginx/html/testproxy.php" failed
-1 This can be an answer to your problem. I've deleted some sensitive data with the help of this repo. It basically deletes the files from your history and you need to make a push in the end. At Readme's most down part, there is a link that will guide you through. S...
I've a repository that was migrated from Mercurial to Git in the past, and this repository is on BitBucket. Now I need to move from BitBucket to GitHub, but GitHub saying to me that exists a big file, bigger than 100mb. I can find the branch of file with git log --all -- *MQ.rar, but when I execute the command to remo...
I can't remove Git Large File from repository history
Try this:/** * @deprecated (when, why, refactoring advice...) */ @Deprecated @Data @AllArgsConstructor @Builder @NoArgsConstructor public class SomeClass { }For more information:https://rules.sonarsource.com/java/RSPEC-1123
I use Java 8 and the existing code just had @Deprecated and it was tagged by SonarQube. I tried adding @deprecated Javadoc tag to fix this issue. But, it still throws the same error. Here's what I have added:@Data @AllArgsConstructor @Builder @NoArgsConstructor /** * @deprecated (Not using this now) */ @Deprecated pu...
SonarQube throws CodeSmell "Add the missing @deprecated Javadoc tag."
I looked examplegithubapidocumentation.Live example onjsfiddle.angular.module('ExampleApp', []) .controller('ExampleController', function($scope, Slim,$sce) { Slim.getReadme().then(function(resp) { $scope.readme = $sce.trustAsHtml(resp.data); }).catch(function(resp) { console.log("catch", resp); ...
i am working on angular app that needs to display readme.md files from GitHub do is it possible to get via Json callback in angular i tried repositories and i got it but how for readme.md files
access readme files from github using jsonp angularjs
YourGit repositoryseems to bebroken orat leastin an invalid state.The root cause seems to beMissing unknown 366362as232d670123a2267b4879bbd01d142426which means something (probably the HEAD) points to the object with the hash 366362as232d670123a2267b4879bbd01d142426 (which will be stored in the file.git/objects/36/6362a...
I just created a new repository on GitHub and trying to initially push my local Java project.I added the ssh key in my GitHub account, and it's referenced correctly by Eclipse, I assume.I only get this error message when I'm trying to push:Can't connect to any repository:[email protected]:MaximStein/MyProject.git ([ema...
EGIT Can't connect to any repository - Missing unknown
3 Enable the -XX:+HeapDumpOnOutOfMemoryError option and when the server runs out of memory have a look at the .hprof file with a tool like Eclipse MAT. MAT will tell you who is using the memory, and it will try to figure out leaks as well. Share Improve this answ...
I have been designing a Java server, connected via PHP, that accepts a series of protein chains and performs computations on each of them. The computations are handled by external Perl scripts which return data to Java which is then inserted into a MySQL database. Java successfully executes the Perl scripts and retur...
Java/MySQL Insert causing OutofMemory Exception
+100Just in case, try and rename itLICENSE.txt(orLICENSE.md) ans see if it makes any difference.FromGitHub documentation "Detecting a license", GitHub useslicensee/licenseeto detect a license file.You could therefore:clone your second repositorygem install licenseecd /path/to/cloned/repolicensee detect .That way, you c...
I've got several GitHub repositories which are licensed using Apache 2.0, but some of them don't seem to recognise the license file.An example of a repository that does recognise the license displays this:An example of a repository that does not recognise the license displays this:The license files themselves are binar...
GitHub - License Not Recognised
The kubeconfig directory is default to$HOME/.kube/config. But it can be overwritten by$KUBECONFIGenv.To get your kubeconfig directory, run:$ [[ ! -z "$KUBECONFIG" ]] && echo "$KUBECONFIG" || echo "$HOME/.kube/config"What it does?If$KUBECONFIGis set, print the value. Otherwise, print the default value.
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, ...
kubectl: Get location of KubeConfig file in use [closed]
Load testing Cloudfront itself is not the best idea, according to Cloudfront main page The Amazon CloudFront content delivery network (CDN) is massively scaled and globally distributed. However you could test the performance of your website with and without the CDN to see if there is a benefit/ROI of using Cloudfro...
I have an application that needs to handle huge traffic. The previous version of the application hits nearly 2,000,000 requests in 15 mins. That version does not have a CDN so that I need to deploy nearly 50 containers each for frontend and backend. So now I have added a CDN in front of my application. I have chosen A...
Is Load testing with Cloudfront (CDN) is a good approach?
docker inspect is your friend to figure out details regarding a container. With this you can get the log path by running following command: $ docker inspect --format='{{.LogPath}}' NAME|ID For example: $ docker inspect --format='{{.LogPath}}' 2de7566c47eb Hope it helps.
I have Dockerized a sample app and have configured it to log to STDOUT. I then run the container without specifying a logging-driver. According to the Docker docs, STDOUT should be collected out of the container and into a JSON file... But nowhere in the logging docs do they tell you where you can find this JSON file!...
Where is the Docker JSON file logging driver writing files to?
Pipelines are independent entities - while you can execute "child" pipelines, there is no functional connection between the two. One way around this is to have the child pipeline write the value to some form of intermediate storage (blob storage, a SQL table, etc), and then have the "parent" pipeline read the value aft...
I have a pipeline that executes another pipeline in azure data factory v2. In the executed (child) pipeline I assign a value to a variable I want returned in the master pipeline, is this possible? Thanks
Adfv2 reference child pipeline variable in master pipeline
You have to name your github pages repo exactly in this format:username.github.io. Rename yourwojtassrepo towojtass.github.io.Check out the steps for creating github pageshere.
I've just created a my own blog on github.com, but the url to this site ishttp://wojtass.github.io/wojtass/how can I change it tohttp://wojtass.github.io/?
changing name url address in github blog address
Using Kubernetes APIs you can get the configmaps you need. I am not familiar with the Java client, but here it is:https://github.com/kubernetes-client/javaYou can retrieve a list of configmaps and their contents using these APIs. Your application will need a cluster role and a cluster role binding to allow it reading f...
We are trying to get live configuration data from our kubernetes cluster. Therefore we would like to read the configmaps from each of our services.Is there a way to exctract this data with a spring microservice which runs alongside the rest of the services?Or are there other (better?) ways / tools to get this informati...
Extracting configmaps from services in kubernetes cluster using a spring microservice
10 I managed to find a solution. I decided to read through how the official mysql image is built, and implement the same solution here. https://hub.docker.com/layers/mysql/library/mysql/latest/images/sha256-b589f11ab39a852fd13090aeb56314978c73a16d615e28ec148306889b67889f?...
I am trying to build a docker image for php, which can handle database dumping in my mysql container. The problem is that it seems to install the mariadb version instead of the mysql version of the client. This gives me an error mysqldump: unknown variable 'set-gtid-purged=OFF' The script that does the dumping is not ...
Install mysql client in docker image
The solution is following: I replaced ${client:csv} on ${client:sqlstring}So the query for 2 variable as follows:select name from orders where concat('"',client_id::text,'"') =ANY(ARRAY[${client:sqlstring}])
I have 2 variables.client.Query:SELECT title AS __text, concat('"', id::text,'"') AS __value FROM clients WHERE active=trueFor value I use concatenation with quotation marks as some values can take string-values.order. Order:select name from orders where concat('"',client_id::text,'"') =ANY(ARR...
Grafana: join variables, retrieved from sql queries
refer to how to create a statically linked golang executable with go 1.5+ Change the Dockerfile's go-wrapper install line into RUN go-wrapper install -ldflags "-linkmode external -extldflags -static"
I'm trying to build my app which contains go-sqlite3 by docker. main.go package main import ( "database/sql" _ "github.com/mattn/go-sqlite3" ) func main() { sql.Open("sqlite3", "test.db") } Dockerfile FROM golang:alpine RUN apk add --no-cache git RUN apk add --no-cache sqlite-libs sqlite-d...
Is it possible to build a static sqlite Go app by docker golang:alpine image?
Git, the version control system, is separate from GitHub, which is just one of the ways you can host a Git repository. According toWikipedia, Git was released back in 2005. I assume this Git repository was created on someone's local machine (and maybe hosted somewhere other than GitHub) until sometime after GitHub was ...
I am just curious.The initialcommitof thisrepositorydates from27 Sep 2006.How is that even possible when GitHub itself started development in1 October 2007and was launched inApril 2008(according towikipedia) ?
GitHub repository older than GitHub itself?
As mentioned inthe documentation:Check headers to see what OAuth scopes you have, and what the API action accepts:$ curl -H "Authorization: Bearer OAUTH-TOKEN" https://api.github.com/users/codertocat -I HTTP/2 200 X-OAuth-Scopes: repo, user X-Accepted-OAuth-Scopes: userX-OAuth-Scopeslists the scopes your token has auth...
I am trying to download the latest artifact of a repository I don't own.The API just gives me the following error:{ "message": "You must have the actions scope to download artifacts.", "documentation_url": "https://docs.github.com/rest/reference/actions#download-an-artifact" }The thing is, I don't see an "actions" ...
Retrieve artifacts from public repository using PAT
You can have this code inmysite/.htaccess:RewriteEngine On RewriteBase /mysite/ # add .php internally to files RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.+?)/?$ $1.php [L] # handles profile URLs RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rew...
I have this .htaccess code in the root folder to replace this url:localhost/mysite/profile.php?username="someone"to becomelocalhost/mysite/someone.RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /mysite/profile.php?username=$1This is working fine but what I w...
PHP Pretty URLs combination of two mod_rewrite rules?
what you want is@Cacheable(sync = true)
I have a DAO object with a method of the following type. I have injected the DAO into service layer and I'm able to get cached results from this DAO method call. But when multiple threads invoke this method (on a proxy that wraps the DAO singleton) some of those threads still going to fetch the data from my database i....
Multiple threads calling the @Cacheable method. Spring cache (3.2.6) is allowing all threads into the method
You've noted that your working set goes up afternew/malloc. This is because they ask the OS for memory. You've also noted that it does not go down afterdelete/free. This is because they don't return memory to the OS. On a normal, sane system, this is not a problem. The unused memory space for your process will end up i...
A customer is complaining that my program is using too much memory. However, after working with them for a while, I've realised that:They've turned off their page file (on their terminal services box).They're worried about the size of the "private working set" figure in task manager for my program.So, my question is, ...
What will the effect of trimming my "working set" be on a system with no page file?
If a file name is given as the sole argument to thecrontabcommand, it is used to replace the current crontab:crontab -l > cron.jobs crontab cron.jobsAlternately, feed the file through stdin:crontab < cron.jobs
One of our servers has around 20-25 different cron jobs scheduled on it. Usually, we periodically check-in the cron jobs to a file in the repo usingcrontab -l > cron.jobsWhile bringing up a new server, which is a replica of the previous server (in terms of OS and deployed code base), is it possible to source the cron j...
Is there a way to source cron jobs from a file
You can check if the code deploy agent is running from the commandsudo service codedeploy-agent statusIf the command returns an error, the AWS CodeDeploy agent is not installed. Install it as described inTo install, uninstall, or reinstall the AWS CodeDeploy agent for Amazon Linux or RHELIf the AWS CodeDeploy agent is ...
I am new to github and AWS. I want to deploy my code directly from my github repository (a simple 'hello world' html page), and onto my EC2 instance. I was following this tutorialhttp://docs.aws.amazon.com/codedeploy/latest/userguide/github-integ-tutorial.htmlHowever on step 4 I am struggling.It says after 'launched th...
Linking github repository with my Amazon EC2 Instances AWS
You cannot save results from the AWS CLI, but you canSpecify a Query Result Locationand Amazon Athena will automatically save a copy of the query results in an Amazon S3 location that you specify.You could then use the AWS CLI to download that results file.
I need to download a full table content that I have on my AWS/Glue/Catalog using AWS/Athena. At the moment what I do it is running aselect * from my_tablefrom the Dashboard and saving the result locally as CSV always from Dashboard. Is there a way to get the same result using AWS/CLI?From the documentation I can seehtt...
How to get the full results of a query to CSV file using AWS/Athena from CLI?
I had this problem. It turned out my credit card on file was expired.
I am trying to linked account within AWS. But the AWS organisation throws the below error while inviting the user " You cannot add accounts to your organization while it is initializing. Try again later"
You cannot add accounts to your organization while it is initializing. Try again later
- (void)aMethod { UIView *aView = [self createObject]; } - (UIView *)createObject { UIView *returnView = [[UIView alloc] initWithFrame:CGRectZero]; [returnView autorelease]; return returnView; }
In Objective-C, if I have a method in which I allocate and initialize an object, then return it, where/how do I release it? for example, let's say I have a method where I create an object: - (void)aMethod { UIView *aView = [self createObject]; } - (UIView *)createObject { UIView *returnView = [[UIView alloc] ...
Memory management when returning an Objective-C object
I also added an SSH key to my GitHub account but that doesn't seem to matter.Correct: an HTTPS URL would not involve SSH in any way, so no amount of SSH key registration would help.Check first which credential helper you are using ("git-bash" suggests you are on Windows), and make sure to use the latest Git (for instan...
So I cached my credentials because I was sick of entering my GitHub credentials every push, but it still asks me to enter credentials, although it's a bit different. I get a pop-up - as always - to enter my credentials, I enter them and it says "Logout failed" - as always - but this time the tkinter pop-up doesn't show...
git push still asking for credentials even after caching credentials
You can solve this problem using a customFormatter.import logging import re class SensitiveFormatter(logging.Formatter): """Formatter that removes sensitive information in logs.""" @staticmethod def _filter(s): # Filter out the password with regex # or replace etc. # Replace here w...
I am using a librarypython-sonarqube-api, which shows a password in debug logs using a logger which I consider abug.Until it can be fixed I need to hide the password in the logs. I am considering using a filter but I am not sure how to use it without breaking current structure of all loggers in the software.Could you s...
How to mask password in Python logs?
Why don't you want to make it in PHP script itself? I think I saw this for the first time in Zend framework, but now using similar approach in my projects..htaccess:RewriteEngine on RewriteRule .* index.phpindex.php$path = $_SERVER['REQUEST_URI']; $paths = explode('/', $path); // Add some logic for showing the page you...
Is it possible to do an odd and even replacement in.htaccessto replace/in a url with= &?In other words I have a link like so:page/subscriber/action/manage/sortby/idand I'm wondering if there's way to simply replace the odd numbered/with=and the even/with&?I have some urls that are very long with lots of arguments and I...
Dynamically Parse URL in .htaccess
You are looking for "second level cache "You don't need any aditional bundle - it is in doctrine , you just need to configure it .http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/second-level-cache.html
I'm using symfony framework and i'm trying to figure out a way to reduce database read action significantly, i've heard about using caching to serve data that is accessed very frequently, and the cache updates when the data is updated, this is pretty much everything i know about the subject, i'm archiving data to a dif...
Symfony - caching of database result sets
The usual method for "tracking any changes" to a table is to add insert/update/delete trigger procedures on the table and have those records saved in a history table.For example, if your main data table is "ItemInfo" then you would also have an ItemInfo_History table that got a copy of the new record every time anythin...
I'm trying to use a simple mysql database but tweak it so that every field is backed up up to an indefinite number of versions. The best way I can illustrate this is by replacing each and every field of every table with a stack of all the values this field has ever had (each of these values should be timestamped). I gu...
How to version control data stored in mysql
Yes, it is. Scott Gublogged about it:In addition to supporting full page output caching, ASP.NET MVC 3 also supports partial-page caching – which allows you to cache a region of output and re-use it across multiple requests or controllers. The [OutputCache] behavior for partial-page caching was updated w...
ASP.NET MVC 3 (final) was released today. When this version was in its infancy I remember reading on codeplex that donut caching was being considered. Does anyone know if this made it into V3? I cannot seem to find any information so I can only (sadly) assume that it didn't happen.
Is Donut caching available in ASP.NET MVC 3
(V8 developer here.) There's no way to do this, and you don't need to worry about it. Marking works the other way round: the GC finds and marks live objects. Dead objects are never marked, and there's no explicit act of destroying them. The GC never even looks at dead objects. Which also means that dead objects are no...
I'm working with some code in NodeJS, and some objects (i.e, 'events') will be medium-lived, and then discarded. I don't want them becoming a memory burden when I stop using them, and I want to know if there is a way to mark an object to be garbage-collected by the V8 engine. (or better yet- completely destroy the obj...
'marking' an object for garbage collection in NodeJS
This is the config that I used for my avro producer:avro_producer_conf = { "bootstrap.servers": "SSL://127.0.0.1:9094", "security.protocol": "ssl", # Certificates used by simple Producer "ssl.ca.location": "/ssl/root/intermediate/ca-chain.cert.pem", "ssl.certificate.location": "/ssl/root/intermediat...
I am using confluent kafka python 'https://github.com/confluentinc/confluent-kafka-python' for writing application. Both kafka and schema registry is secured and uses https endpoints.While running the application, i am getting following errorResult: Failure Exception: SSLError: HTTPSConnectionPool(host='hostname', port...
Confluent kafka python SSL verification
GitHub Dependabot is not currently capabale of wildcards, but it has beena long requested feature in thedependabot-corerepository.Some kind people built automation that can generate adependabot.ymlfile based on your wildcards and the files in your repository. For example checkthe Action by Makeshift on GitHub.
I need to configuredependabotfor a large number of repos (manually configuring will take days 😛 ).Some repos are "single language" such astypescriptusing a singlepackage.jsonpackage-ecosystem: npmwhile other repositories are styled as "mono repos" and use a variety of languages and accompanying package managers with d...
How can I automate the generation of dependabot configuration files for many repositories
Seems you are referring to procedure calledleader election. There is niceblog postabout leader election in kubernetes. Some internal kubernetes services requires this too, for examplekube-scheduler, since at moment only one scheduler can work.Also, you can use other ways for leader election, maybe your language have li...
There's a conceptOperatorin k8s which will could provide a CRD and do some operations when watching ADD/UPDATE/DELETE events of the CR.It's a common method to deploy two services for the purpose of high availability, one as the master to respond to requests and the other as a standby to do failover. I have heard that i...
How to develop an Operator which could have a master Pod working and a standby to do failover?
TheRedirectdirective is prefix matching, and everything after the match (ie./file.php) is appended onto the end of the target URL, hence the redirect loop.However, you can useRedirectMatchinstead, which matches a specific regex, rather than simple prefix matching. For example:RedirectMatch ^/dir$ /dir/file.php
I am trying to forward the location of a directory, e.g.,www.example.com/dirto a file in itself, e.g.,www.example.com/dir/file.php. The following is my.htaccessconfiguration:Redirect /dir http://example.com/dir/file.php.I am getting a redirect loop in this fashion:example.com/dir/file.php/file.php/file.php/+...+file.ph...
Redirect loop in Apache
log_statementwill log only top-level statements, that is statements sent by the client. Nested statements are not logged.One way to log those is to use theauto_explaincontrib module. You'll have to enable it, setauto_explain.log_nested_statements = onandauto_explain.log_min_duration = 0. Then all statements, even neste...
We have business logic in SQL queries (~200 triggers), that supplement our application code. and we have some bugs in it -to find them I would like to see all transactions that change anything on the database (instead of checking 40 tables by hand).We enabled logging in/etc/postgresql/10/main/postgresql.confby setting:...
PostgreSQL log trigger/function query data
You couldamend the date of your latest commit, and the force push.GIT_COMMITTER_DATE="Mon 20 Aug 2018 20:19:19 BST" git commit --amend --no-edit --date "Mon 20 Aug 2018 20:19:19 BST" git push ---forceWarning: make sure to advertise that forced push to any contributor to that repo: they will have to reset their master b...
Hello there I Would like to know how to fix this. I would like to be able to see when is the last time my account have commited/push on my github repo.but the problem is I have commited 20-24hrs ago by the time I've asked this question. right now github will not show the time it only shows "latest commit a day from now...
Github latest commit is showing "a day from now"
Your problem is that the AWS server's public IP address is no longer reachable when you start the VPN. What you need is a VPN split-tunneling exception for your source IP address (i.e. the IP address where you initiate the RDP session... not the AWS IP... presumably this RDP session is initiated from India); however,...
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 years ago. Improve this question ...
AWS RDP getting disconnected after joining VPN [closed]
Ok, this works. I changed myDockerfile.devto the following:FROM node:alpine WORKDIR '/app' COPY ./shared /shared COPY ./web /app RUN npm install CMD ["npm", "run", "start"]From the base project directory (where/sharedand/webreside), I run:docker build -t sockpuppet/client -f ./web/Dockerfile.dev .
I have an npm module I'm working on locally that is a dependency in a client app.Directory structure is basically the following:/app /client /src App.js package.json Dockerfile.dev /shared /contexts package.json test.js /hooksMypackage.jsonis the following:{ "name": "web", ...
Local npm dependency "does not a contain a package.json file" in docker build, but runs fine with npm start