Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Math:Calculate change per second = rate per second (only if you have raw jiffy value in TSDB)Multiply result with 100The result will be % CPU usage.You can't do this kind of math in Grafana by default. This is a task for your TSDB and Grafana will just visualize calculated result returned from TSDB.(Untested) example f... | According to theDocker Docs, cpu is reported injiffies:For each container, a pseudo-file cpuacct.stat contains the CPU usage
accumulated by the processes of the container, broken down into user
and system time. The distinction is:user time is the amount of time a process has direct control of the CPU, executing pro... | Viewing Docker CPU Usage in Grafana -- jiffies? |
git is a development tool but not distribution/deployment. To install a Python package you should have setup.py. Then you can install the package directly from git using pip or you can clone the repository yourself and install with pip install -e . or even with python setup.py install
During development you can clone ... |
I have my github project MYMODULE structure following the guidelines e.g.:
README.rst
LICENSE
sample/__init__.py
sample/core.py
sample/helpers.py
The core of my project is inside sample folder where __init__.py is stored.
I would like to be able to keep it accessible including sample folder in the PYTHONPATH, but o... | How to integrate and work with complex structure GIT repository sync and stored in a folder in the PYTHONPATH |
2
You need to add it to your gradle.
To do this go to the left hand menu of Android Studio.
1) Click on app
2) Gradle Scripts
3) build.gradle(the second one, should say Module.app)
4) Scroll all the way to the bottom where it says dependencies then add this line
reposito... |
I just downloaded this -> https://github.com/borax12/MaterialDateRangePicker/releases
Inside the downloaded folder is this
I'm a newbie in android, what should i do to use this in project without messing around with the packages. Create a project and copy-paste it in praying to the bug gods?
| Proper way to add this library in my project |
1
Its not that much of a problem, you can do it in two ways. Either use:
1.GitHub (User Interface).
or
2.git bash (Command Line) (Preferred)
Firstly create a new repository and name it without spaces (use _ for a better naming)
Then You will have to add folders and files to... |
I'm building a web-app and I want to make a group with the name of the app to contain the two major part of a web site, the Frontend and Backend. How can I do this? Or maybe some suggestions !
I have read other question on this topic but neither explained in detail. Maybe we can find a more complete answer to help peo... | How can I create a group with my project on GitHub and the FrontEnd and BackEnd associated to be repos of this group(project)? |
I'm not sure if there's an option for resetting the whole configuration file
but you can list the active configuration withpip config listand then usepip config unset <config>.<key>. config can be one of config optionsglobal user siteand key is the config you set withpip config set ...which is cert in you case | BackgroundI am on a windows PC. My work requires me to install 'A root CA (rootCA.cer) in my python env' due to Zscaler cloud security. I foundthislink on SO. And followed the stepsProblemI did as described in that linkconfig set global.cert rootCA.cerAnd now my python env doesn't detect any certificates...WARNING: Ret... | how do I reset my global.cert path to the default in python env? |
This will fix your issue:0 0 * * * /some/path/to/a/file.php >> /tmp/log/cron-`date +\%F`.log 2>&1 | I'd like to log cron output to a dated file —/tmp/log/cron-2014-12-17.log$ mkdir /tmp/log
$ chmod 777 /tmp/log
$ ls -lah /tmp/log
drwxrwxrwx 2 root root 4.0K Dec 17 21:51 .Cron (viarootuser)* * * * * /usr/bin/php /path/to/script.php > /tmp/log/cron-$(date "+%F").log 2>&1/tmp/logremains empty after each minute.If I run ... | How can cron output to a new log file based on date? |
InGKEwhen you add a Service of type LoadBalancer, it makes the necessary Google Cloud API calls to create either an external network LB, or an internal TCP/UDP LB.Thecloud.google.com/load-balancer-type: "Internal"annotation denotes an internal LB; otherwise, GKE creates an external network load balancer. This type of... | Loadbalanceris used to handle a request and forward that request to a particular pod, but my question is how does theGKELoadBalancer work, how is it different from the LoadBalancer we have inminikube, and how should we use LoadBalancer properly. | What is a loadbalancer in Kubernetes, Why do different Kubernetes engines like GKE have their own loadbalancer |
First of all You need to make sure your git config for username and password is OK.If it is not set then set like:git config --global user.name 'your username'
git config --global user.password 'your password'Then you need to add your ssh key to your git hub account.Check your existing SSH keys:Open Terminal and Enter ... | When push commits to Github on my windows computer, Github doesn't recognize my account commits, but when i do it on my mac it does.Already checked that my email address is the same on my PC as on Github as well as it being config as the global email address for my computer.The last commit is showing from my mac and im... | Github not recognizing my account when i commit |
1
It is hard to answer anything specific without a complete understanding of what is happening with the particular request, but here are some suggestions on where to start the search for solution.
There might be a problem with the middleware. I found another one, which s... |
I'm attempting to sign all of our AWS calls to ElasticSearch however the response is always;
User: anonymous is not authorized to perform: es:ESHttpGet on resource:
I've tried multiple key pairs and IAM users.
The calls within our PHP are made using the official elasticsearch-php client and all requests are signed usi... | Signing ElasticSearch AWS calls |
As per RFC1912 section 2.4:
A CNAME record is not allowed to coexist with any other data. In
other words, if suzy.podunk.xx is an alias for sue.podunk.xx, you
can't also have an MX record for suzy.podunk.edu, or an A record, or
even a TXT record. Especially do not try to combine CNAMEs and NS
records like this... |
I own foo.com and bar.com. I am managing both in Route53. foo.com hosts my site, and I'd like to direct traffic from bar.com to foo.com. I tried to set up a CNAME record for bar.com pointing to foo.com, but I got the error message:
RRSet of type CNAME with DNS name foo.com. is not permitted at apex in zone bar.com.
W... | RRSet of type CNAME with DNS name foo.com. is not permitted at apex in zone bar.com |
You have to use quotation marks and it's a good idea to use the slash before the field name:openssl req -sha256 -new -key $HOSTNAME.key -out $HOSTNAME.csr -subj "/CN=$HOSTNAME"If you need to concatenate:openssl req -sha256 -new -key $HOSTNAME.key -out $HOSTNAME.csr -subj "/CN=prefix${HOSTNAME}suffix"ShareFolloweditedAu... | I want to make a generic command which when run should take the value of the CN of the certificate as the hostname where the command is being executed .Command i used currently is as belowopenssl req -sha256 -new -key $HOSTNAME.key -out $HOSTNAME.csr -subj 'CN=$HOSTNAME'The value of HOSTNAME is defined in the environme... | How to define a Certificate CN name as Variable |
I believe last line of your .htaccess file could be the culprit, could you please try following once.RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z\-]+)\/([a-zA-Z\-]+)\/([0-9]+)$ ficha_jugador.php?idjugador=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.html [... | I am getting started with the mod_rewrite function for my PHP webpageI was superexcited to have created my first rewrite rule, but when I added to my .htaccess file, I got error 500 for all webpages (not only the one I am trying to redirect).Here is my file:RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^([... | Trying to debug .htaccess file |
Never mind, I figured out what the problem was. This only happens when the console overflows, which is why that initial letter g is there. Essentially the program doesn't know that initial g is there, but it still terminates the line after the same amount of characters, so the last letter is swallowed. However, it does... | I am having a problem with Git Bash on Windows. It is always eating the last character on every line which wraps, leading me to sometimes having a repeated letter in my commit messages. Any ideas on how to solve this?You can see this in the example below, the commit message is correct but not fully displayed. | Git Bash eating last character on each line |
You don't get it, you create it like:
https://s3.amazonaws.com/BUCKET_NAME/FILE_NAME.jpg
|
I have an image that I'm uploading to my bucket in AWS this way:
BFTask *task = [BFTask taskWithResult:nil];
[[task continueWithBlock:^id(BFTask *task) {
self.URL = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"test"]];
NSData *data = UIImagePNGR... | Getting image URL from bucket Amazon Web Service iOS after uploading |
10
I was having an issue connecting MySQL 8.0.3 using DataGrip. You need to download the JDBC driver from Oracle website. Select Developer Releases (Since this is an unstable version). The 8.0.8 version worked for me. Download and save in a project folder or something simil... |
I have managed to successfully connect to a docker instance running MySQL via the mysql command line utility. However, I am struggling to do so via DataGrip application from JetBrains.
My mysql cli command is as follows:
mysql -h127.0.0.1 --port=8181 -uroot
The connection string that is generated in DataGrip is:
jdbc... | Cannot connect to MySQL docker instance via DataGrip application |
That's the address-space of your process. Each process has its own virtual memory address-space. Unless you mmap a file, its data only appears in your process's memory when copied there by a read system call or equivalent. (C stdio / iostream functions will be implemented on top of system calls like that.)
The disk... |
I've always known that main memory caches data read from files on disk, but I have trouble reconciling this with the typical memory usage of a program, as shown in this diagram:
If I use fread or fgetl on a very large file 2010Stats.txt, on which segment of the above diagram does memory cache data from disk?
| Memory Caching of Data from Disk |
Try instead to rebase your branch on top of the upstream updated branch, with "upstream" being a remote referencing the original repository (which has merged your PR branch)git remote add upstream /url/original/repo
git fetch upstream
git rebase --onto upstream/master firstCommit~..YourBranchReplace "firstCommit" with... | I have made a Pull request to a repository through origin/some-branch. Now that repo updates and for some reason I had to update my branch. I updated it not via local repo but through website. Now it shows commits like :My commitOther commits as merged xyzNow I pull this repo to my local repo when I get back. At my loc... | How to not show/remove merge commit in my pull request |
If your API pods are not ready, Nginx wouldn't be able to route traffic to them.
From Kubernetes documentation:
The kubelet uses readiness probes to know when a Container is ready to start accepting traffic. A Pod is considered ready when all of its Containers are ready. One use of this signal is to control which Pod... |
I have a nginx deployment in k8s cluster which proxies my api/ calls like this:
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location /api {
proxy_pass http://backend-dev/api;
}
}
This works most of the ti... | Nginx proxy on kubernetes |
Try this onekind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
namespace: default //your 1 namespaces on which you want to deny all traffic.
name: deny-from-other-namespaces
spec:
podSelector:
matchLabels:
ingress:
- from:
- podSelector: {}Note a few things about this manifest:namespace: de... | Is there a way to isolate one namespace from accessing other namespace but still be able to go outside the cluster
I have 10 namespaces, I want that pods within this 1 namespace are not be able to talk to other namespaces but still be able to go outside the cluster to external resources
while this is applied to only 1 ... | Isolate pods in a namepace from other namespaces using network policy |
If I understand your question correctly, you can just add the[QSA](query string append) flagto the end of yourRewriteRuleRewriteRule ^([^/\.]+)/?$ page.php?page=$1 [L,QSA]This will process your request as you've already done, and add any further querystring params onto the end.ShareFolloweditedOct 14, 2015 at 13:11answ... | Currently I use:RewriteRule ^([^/\.]+)/?$ page.php?page=$1 [L]Which is good for when passing one querystring through.But is there a way just to pass all querystrings through? i.e. One page request might be:domain.com/contact?course=23and another may be:domain.com/contact?workshop=41So I need to know what the query stri... | .htaccess rewrite pass all query strings through |
I worked around the problem by having a docker image built for oracle/serverjre:8 in my machine.
I downloaded the oracle/Serverjre8 binaries and built a docker image then built the weblogic.And it worked !!
Alternately,you can pull the image for Oracle/ServerJre8 directly from Oracle container registry or Docker store... |
I have been trying to build a docker image for oracle/weblogic 12.2.1.
I followed all the instructions carefully as given in the official repo.
https://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles/12.2.1.1
but when i run:
docker build -t oracle/weblogic:12.2.1.1-developer .
it gives me a per... | pull access denied for oracle/serverjre |
If youprotect your main branchbyrequiring pull request reviews before merging, you can select "Require review from Code Owners".See "About code owners": that would be where you can specify additional collaborator to be reviewers. | I have a public repository on github and 2 collaborators. I created a branch rule for code review. I want to review PRs only by myself, but there is an ability to set other collaborators as reviewes. Which setting do i need to allow to set as as review only me? | How to control reviewers in public repository |
Update 2013:All major repo hosting services supports git, and supports smart https access (see below):code.google.com(withcases like this one, July 2011)bitbucket.orgtfs.visualstudio.com(!, as explained byScott Hanselman)Currently (July 2013), the main difference (between GitHub and other services) is in term ofrelease... | Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed10 years ago.Improve this questionIs Google code similar to Github where you can put your source code for collaboration?... | Google code or GitHub for project hosting? [closed] |
Use library to load images in your application.
LikePicasoorGlideAlso read difference between themhereI hope this will solve your problem. | Closed. This question needs to be morefocused. It is not currently accepting answers.Want to improve this question?Update the question so it focuses on one problem only byediting this post.Closed8 years ago.Improve this questionI am developing a game having a scroll view which contains image buttons(Images in drawable ... | How to solve out of memory (OOM) error without reducing image quality in Android [closed] |
Try deleting untracked files in your working directory by runninggit clean -dxf.Also, you'll need to export those variables in your commit-filter. If you don't, Git won't see them so they won't alter Git's default behavior. | I've got a git repository where I'm the only committer, so far, and that has already been published on github. I found that a few commits, being done from a different computer, has the wrong author information. My idea was to remove the repository from github, rewrite history and republish it as new.
For such purpose I... | git author rename not working |
The cleanest way to do this would be to useAPC(Alternative PHP Cache) if it installed. This has a built in "time to live" functionality:if (apc_exists('twitter_result')) {
$twitter_result = apc_fetch('twitter_result');
} else {
$twitter_result = file_get_contents('http://twitter.com/...'); // or whatever your ... | I would like to cache the result of the twitter api result and display them to users..What's the best method to cache the result?I'm thinking a writing the result into a file based on a time limit.. Is that ok or any other method should be used?And most importantly what would be the ideal cache time ? I would like to ... | how to cache the twitter api result? |
3
If I remember correctly the CNAME file should be named CNAME, without any extension.
Share
Improve this answer
Follow
answered May 16, 2013 at 14:43
Manu ClementzManu Clementz
1,7971212 ... |
I've read all the posts about this and still can't get it to work.
Here's my situation:
I have a github repo called "father". Inside that repo I have a branch called "gh-pages" with a CNAME.txt file with - builtbyfather.com. I also have a sample index.html in that branch. You can view it here. http://ajlohman.github.i... | Github custom domain for project pages |
You are callingcontext.done()right after callingpublish(). The publish() function is an asynchronous call, and you aren't waiting for it to finish. Also, I don't think your variablepubResultcontains what you expect it to.Try this:console.log('Loading function');
var aws = require('aws-sdk');
exports.handler = function(... | I've written an AWS lambda function to send a text message when an S3 object is uploaded. I've confirmed the subscription and I can receive test messages sent from the SNS console.When I test the lambda all the logs say the method succeeds but no sons message ever arrives. Here is the function (mostly just the sample... | AWS lambda to send SNS "succeeds" but message not actually sent |
relative pathes resolved by current directory. Solutions: Get script directory and combine with the relative path, something like:require(dirname(__FILE__).'/../../../app.config.php'); | I have a task script that works perfectly fine if i run it by visiting the php file from my browsers. However, when i attempt to run it via Plesk Task Scheduler it fail with a fatal error unable to load therequire()file.The require statement is a simple relative path:require('../../../app.config.php');the error is:PHP ... | php script require() statement fetches file when running from browser but not when running from Plesk CRON job |
If it is a folder that you need to copy, make sureSRC_PATHends with/(consideringDEST_PATHon the container does exist already)sudo docker cp /home/desarrollo3/proyectos/web2015/ 4aefd670e41f:/var/www/html/web2015docker cpmentions:SRC_PATHdoes end with/.the content of the source directory is copied into this directory.As... | I trying copy a folder to my container but not working. If I trysudo docker cp 4aefd670e41f:/var/www/html/web2015 /home/desarrollo3/proyectos/web2015The folder web2015 copy correct but I need copy the folder in my container.Working oksudo docker cp 4aefd670e41f:/var/www/html/web2015 /home/desarrollo3/proyectos/web2015N... | Docker cp Path not specified |
I used snap to install kops and this installed the 1.17 beta versionI removed this and installed 1.16.0 and everything was smoothI have theFull instructions to install Kubernetes Cluster | I am trying to setup a kubernetes cluster on AWS with EC2 instances; it is supposed to be pretty straight forward.Initially started with kubeadm and I ran into problemsSetup Kubernetes (version 1.18) cluster on AWS EC2There was a suggestion to use kops and I started with kops; I am running into problems againI need to ... | Create kubernetes EC2 cluster on aws using kops |
3
The problem is that Nginx uses a directio_alignment of 512 but that does not seem to work when hard drives have Sector size 4096.
Setting directio_alignment to 4k solves the problem and Nginx now can read from drives with both 512 and 4096 sector.
Nginx config:
aio thread... |
Nginx could not read files when having multiple mount points that have different sector size when using directio.
We have servers which mounts different hard drives under the root folder of Nginx. All our old disks have a sector size of 512 and when we replaced a disk suddenly Nginx could not read files from that disk... | How to fix 'failed (22: Invalid argument) while sending response to client' |
Offsets of local variables are "baked into" the machine code as constants. By the time the compiler is done, things that your program referred to as local variables are replaced with fixed memory offsets assigned by compiler.
Let's say you declare three local variables:
char a[8];
int b;
short c;
The compiler assigns... |
As far as I know, when a process allocates local variables, it does so by pushing them onto memory as a stack, but still accesses them as random memory by using an offset from the stack pointer to reference them (from this thread What is the idea behind using a stack for local variables?).
However, how does it know wh... | How does a process keep track of its local variables |
You can specify key name[--from-file=[key=]source]kubectl create secret generic my-app-secrets --from-file=secrets.json=secrets.dev.jsonHere,secrets.jsonis key name andsecrets.dev.jsonis source | Is there a way to set a kubernetes secret key name when using--from-fileother than the filename?I have a bunch of different configuration files that I use assecrets.jsonwithin my containers. However, to organize my files, none of them are namedsecrets.jsonon my host. For examplesecrets.dev.jsonorsecrets.test.json. My a... | How to set kubernetes secret key name when using --from-file other than filename? |
<div class="s-prose js-post-body" itemprop="text">
<p>Remove star from COPY, with this Dockerfile:</p>
<pre><code>FROM ubuntu
COPY files/ /files/
RUN ls -la /files/*
</code></pre>
<p>Structure is there:</p>
<pre class="lang-sh prettyprint-override"><code>$ docker build .
Sending build context to Docker daemon 5.632 kB
... | <div class="s-prose js-post-body" itemprop="text">
<p>I'm trying to copy a number of files and folders to a docker image build from my localhost.</p>
<p>The files are like this:</p>
<pre><code>folder1/
file1
file2
folder2/
file1
file2
</code></pre>
<p>I'm trying to make the copy like this:</p>
<pre><cod... | Dockerfile copy keep subdirectory structure |
The way Git stores files in the repository is on a whole-file basis. When you ask for a difference between two versions, Git retrieves both complete files from the repository1, and runs the diff algorithm between them. Unlike some other source control systems, Git does not calculate or store the differences between fi... |
If I have some code like
/**
* blah blah blah
*/
...some codes...
/**
* yadda yadda
And then I add
/**
* blah blah blah
*/
...some codes...
/**
* blah blah blah
*/
...some codes...
before the "yadda yadda" commanet, the git diff will show that I added:
+ * blah blah blah
+ */
+ ...some codes...
+ /**
... | Accurate git commits |
My recommendation is to simplify your ANT build and use Sonar to run findbugs and checkstyle.Sonar is designed to run tools like findbugs, checkstyle and PMD against Java code by default. It will download the software and perform this analysis automatically, most importantly it will do this based on the quality profile... | I am using ANT as a build tool and would like to reuse my checkstyle and findbugs reports in sonar. i m using sonar-runner to get the code coverage overview, so please could someone suggest me a way so as how to achieve it? | Reusing FindBugs and Checkstyle reports in sonar |
Amazon DynamoDB is a NoSQL database. It does not use the concept of columns. This is because each item (row) can have different data. The management console attempts to show the data in columns to make it easier for us humans to read.
When retrieving data from DynamoDB, you can request specific keys (eg Name), or you ... |
I'm newbie on Amazon web services cloud. I'm trying to store my data to aws DynamoDB table. I have created table into DynamoDB using python script. Please show below snapshot.
In the table, order of columns doesn't showing according to my requirements. I want to order of columns something like,
Rpi_ID RowKey Na... | Set order of columns in DynamoDB table of AWS |
Both Prometheus and VictoriaMetrics can return negative values for thesum(series_selector) - sum(series_selector offset d)query in the following cases:If some time series matching the givenseries_selectorstopped receiving new samples during the time durationd. Thensum(series_selector)will be smaller thansum(series_sele... | I have a metric query that calculates sum of the values for last d time rangesum(series_selector) - sum(series_selector offset d)This works on PromQL sinceleft side of the minus sign: sums all the value from the beginningright side of the minus sign: sums all the value from the beginning to d range beforeSo that result... | The difference of Prometheus / VictoriaMetrics on series_selector without time range |
You can query the ECS metadata service for the LaunchType value, which will either be EC2 or FARGATE.
|
I’d like to be able to detect if my code is running on a fargate task (as opposed to on an EC2 instance) and it would be ideal if I could get the fargate task ID from an env var.
I would then use this info for logging and config.
Many CI environments set some env vars which allow me to detect if my code is in CI.
Does... | Are there any Env variables automatically set on fargate tasks |
Increasing the heap size of your application may prevent theOutOfMemoryError.This post on SOexplains how to do this. | I have written a method to resize an array in Java:public HUD resize(float factor){
int[] array = new int[(int)Math.pow(pixels.length * factor, 2)];//Create new array
for(int y = 0; y < height; ++y){
for(int x = 0; x < width; ++x){
array[(int)((x * 2) + (y * 2) * width * factor)] = pixels[x ... | Resizing array in Java throws OutOfMemoryError |
I think in your case it would be something like this:
server {
listen 80;
server_name example.com;
location ~ ^/products/(.*)$ {
proxy_pass http://catalog.example.com/$1;
}
}
Here is the article with proxy_pass examples:
http://www.liaohuqiu.net/posts/nginx-proxy-pass/
|
I would like to have requests to http://example.com/products/some-variable rewritten to http://catalog.example.com/some-variable without redirecting the user. In other words, the URL should not change.
I have found an example where something similar is done here, but I can't seem to figure out how to do the opposite.
... | Rewriting subfolder to subdomain without redirect with nginx |
According to the docker-composereference, you need to specify the service labels like this:version: "3.7"
services:
web:
image: web
deploy:
labels:
com.example.description: "This label will appear on the web service"Add a deploy section and mention your labels there.As with docker, here as well ... | When labeling a service in the docker-compose file only the created container is labeled and not the service itself.I would like to add a label to a service created using a docker-compose file. When adding the label under the labels property, the label is only added to the corresponding container and not to the service... | Specify service label in docker-compose file |
8
This is available for EC2, I don't think it is available for all of the AWS resources.
http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html
Hope it helps.
Share
Improve this answer
Follow
... |
I am currently signed up to the free tier of AWS. I am enjoying experimenting with various services including those not affording by said free tier. Can AWS's enhanced budgets be used to stop services like EC2 instances if I accidentally spend too much? Or do they merely act as alerts?
| Using AWS budgets to stop a services |
An option is to attribute the string to a variable before adding it as a ENV variable in the workflow Github Context.
However, to make it work, you can't use directly return url; in the .js file. You will also need console.log(url); to print the url value to the console.
Your workflow would look like this:
- name: Url... |
I have a js file like this, which should return me a string to use later in the action:
action.js
async function getData(){
const url = "https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Meet_Truffle%21.jpg/440px-Meet_Truffle%21.jpg";
return url;
}
getData().then((url) => {
return url;
});
I did a simila... | Github Action js file return string to be saved in a variable |
1
If a package is missing a composer.json, you can add the following to your project's composer.json:
"repositories": [
{
"type": "package",
"package": {
"name": "lomotech/jajahan",
"version": "v2.2018.01",
"source": {
"url": "https://git... |
I am new in laravel 7. i want ask how to install github package into my laravel project.
(https://github.com/lomotech/jajahan) this package i want to install to my laravel but not instruction in this package.
| How to install github package in laravel 7 |
In git if you have a commit - its whole history is part of it. Therefore you cannot merge a single commit, as this implies you merge its whole history, too.If you do not want the changes of a single commit in the past, the trick is adding another commit on top of the latest one, which is undoing whatever the unwanted c... | Currently, in one of my branch, I have two commitscommit oldandcommit latest.commit latestwas done after thecommit old. Now, I want to merge onlycommit latestto the master. I don't want any changes thecommit oldwill do. How can I remove a particular selected commit from github? After reading other answers, I found that... | How to get rid of a particular commit( after being pushed to git hub) |
First of all Docker architecture has a push pull mechanism using Registry(which may be private or public(like docker Hub).
1) Answer to your first Question- Moving Docker images and container between machines?
You can create tar file of images or container and then move the tar file between your machines.
Check using ... |
We are evaluating Docker to use for our application,so really like to know the following questions:
What are the best practices to move docker images and container between different machine?
Also how to manage containers and images in production environment across different regions?
| What are the best practices to manage and move Docker containers? |
I thought that new is only needed for reference types (classes), and that primitive types (int, bool, float, etc.) never use newIn C++, you can allocate primitive types on the heap if you want to:int* p = new int(42);This is useful if you want a shared counter, for example in the implementation ofshared_ptr<T>.Also, yo... | My understanding has always been, regardless of C++ or C# or Java, that when we use thenewkeyword to create an object it allocates memory on the heap. I thought thatnewis only needed for reference types (classes), and that primitive types (int, bool, float, etc.) never usenewand always go on the stack (except when the... | Does new always allocate on the heap in C++ / C# / Java |
Because Wordpress also uses urls with subfolders this is going to be very hard to automate (if you use pretty urls, every post, page, category, etc could be shown as a subfolder).If you know exactly which applications you're moving, you could do this:RewriteCond %{REQUEST_URI} ^/(application1|application2|another-one|a... | I currently have a that has several applications running in a subfolder that I want to move to a subdomain and replace the current site with a new website but still allow the old applications to be found at the previous url for examplecurrent: mysite.com/application/page1.aspxWhat I want to do is move this application ... | I need an .htaccess rule for rewriting the url from example.com/xyz to xyz.example.com |
1
Keep it simple from your local branch:
git fetch origin && git merge origin/master
Share
Improve this answer
Follow
edited Sep 7, 2019 at 11:34
Paolo
24.2k66 gold badges4343 silver badges7777 bronz... |
In Git I am working in a local branch.
I need to take a pull from origin's master branch. So from local branch run a pull command.
git pull origin master
Password for 'xxx':
From xxxx
* branch master -> FETCH_HEAD
Auto-merging "file name"
Auto-merging "file name"
After auto-merging it's hung. nothin... | From a local branch pull master it's hang |
If you havent yet heard of Apache then this might be a bit above you. Skip out the AddType decleration and just save your files with a.phpextension instead ofhtml | I have a website consisting mostly of html webpages. In order to allow me to use php in them, in my .htaccess file I added a bit of parsing code. A few days ago the php somehow stopped being executed and I'm still not sure why. I googled a few things and tried a few different types of parsing code but nothing seems to ... | PHP not working on html anymore |
It is likely that some parts of the page, most often images or scripts, are loaded non-secure. You'll need to go through them in the browser's "view page source" view one by one and eliminate the reason (most often, a configuration setting pointing tohttp://).Some external tools like Google Analytics that you may be em... | I am getting the security alert: "You are about to be directed to a connection that is not secure. the information you are sending to the current site might be transmitted to a non-secure site. Do you wish to continue?" when I try to login as a customer on my clients oscommerce website. I noticed the link in the status... | Why do I have both HTTPS and HTTP links on site, need them all secure! |
To alarm on a specific lambda function's metric you have to set the FunctionName dimension.
Like this for example:
MyNewAlarm:
Type: AWS::CloudWatch::Alarm
Properties:
AlarmName: "AlarmNameGoesHere"
AlarmDescription: "Alarm if lambda errors out too many times"
Namespace: "AWS/Lambda"
... |
This is the structure of CloudFormation Alarm from AWS document.
Type: "AWS::CloudWatch::Alarm"
Properties:
ActionsEnabled: Boolean
AlarmActions:
- String
AlarmDescription: String
AlarmName: String
ComparisonOperator: String
Dimensions:
- Dimension
EvaluateLowSampleCountPercentile: String
Evalu... | How to set Lambda alarm for specific Lambda using CloudFormation? |
27
It should be delete me not only delete. write delete me and it should work.
Share
Improve this answer
Follow
answered Jun 27, 2020 at 1:07
AdiiiAdiii
56.9k77 gold badges158158 silver ... |
I'm trying to delete an RDS (MySQL) on AWS, but the "DELETE" button keeps greyed out even after I write "delete" in the confirmation field:
| Can't delete RDS on AWS |
You can try deploying the MySQL client on Kubernetes and connect using it.MySQL client like : Adminer, phpMyadmin etcAdminer example :apiVersion: apps/v1
kind: Deployment
metadata:
name: adminer
labels:
app: adminer
spec:
selector:
matchLabels:
app: adminer
template:
metadata:
labels:
... | I have deployed MySQL in my Kubernetes cluster. It works fine. But I am not aware of how to access or connect the MySQL service to other applications. I found that MySQL deployment is not browser-supported.
When I call the MySQL server on the browser usingIP:nodeport, I found the following error:J���
5.7.37����!bo.;�ÿÿ... | How can I access MySQL on a Kubernetes cluster? |
Github seems only supports ssh way to read&write the repo, although https way also displayed 'Read&Write'.No: the write aspect is only dependent on your GitHub right: owner of or collaborator on a GitHub project.And that for https or ssh.See "Permission levels for a user account repository".So make sure your own GitHub... | I'm trying to push several files into my own repository on GitHub but my access was denied. Here's the message:remote: Permission to lily0225/TravellingSalesmanProblem.git denied to ls3311.
fatal: unable to access
'https://github.com/lily0225/TravellingSalesmanProblem.git/':
The requested URL returned error: 403ls331... | github push access denied to someone |
So I started having this issue as well, recently too.I've been doing a little digging, and so far what I have found is the following:Placing 'reboot' in a SU crontab does nothing, but placing '/sbin/reboot' does successfully reboot the systemThis is untrue for a User crontab, neither 'reboot' nor '/sbin/reboot' functio... | I am using ubuntu 18.04.I want to reboot my server every day.Here is my crontab file for root, which is I can see with 'sudo crontab -e' operation0 0 * * * rm /var/log/*log.*
0 0 * * * rm /var/log/rinetd.log
1 0 * * * reboot nowI confirmed that the rest of the commands work well, but only the 'reboot' command doesn't w... | Why 'reboot' operation does not work with crontab? |
Your code is all messed up in the post, but anyway... you should probably compare the output of 'stat -c %Y' (not %y) to the output of 'date +%s' (not %d).But, even better, use something like md5sum or sha1sum to make sure the backed up file really matches the original. | I've written a script that backs up my financial spreadsheet document to another hard drive and another computer. I have also set up my server with email to send cronjob messages to my email instead of system mail. In my script I can't figure out how to use if then to check date of backed up file and current date. H... | Writing a simple backup script in bash and sending echo output to email |
According to your error it looks like your coreDNS setup is not correct.By default, CoreDNS is configured to run on Amazon EC2 infrastructure on Amazon EKS clusters. If you want toonlyrun your pods on Fargate in your cluster, complete the following steps.Create a Fargate profile for CoreDNS.aws eks create-fargate-profi... | I have followed the AWS official document to create an ALB controller and made sure few things like providing aws region and vpc id when creating a controller.https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.htmlHowever I notice the below error in the ALB contoller pod logs. I am running the controller pods... | AWS ALB Ingress has no host address and class is empty |
You have to place quotes around the url. :) Otherwise it's probably not doing the get parameters.ShareFollowansweredJul 18, 2014 at 11:51iautomationiautomation1,0061111 silver badges1818 bronze badges0Add a comment| | My wget cron job looks like this (set to every minute for testing):* * * * * wget -q -O - web-url.com/sub-folder/cron_job.php?us=user&pa=user2It sends me email with html from php every minute as notification that cron is done, but php should send email to user and echo id of that user for testing. Now when cron job doe... | wget cron job doesn't work but when manually refreshing script it works |
You could add the invalid certificate to the Local Computer Trusted Root Certification Authorities (answer stolen fromUsing a self-signed certificate with .NET's HttpWebRequest/Response).The tricky part in Ax is to install it at the proper place and give the Ax user access to it (especially if you call the web service ... | I'm in a need to bypass certificate error on HttpWebRequest used in Dynamics AX 2009. I found some fancy code that works perfectly fine in .NET:private bool ValidateCert(object sender,
X509Certificate cert,
X509Chain chain,
System.Net.Security.SslPolicyErrors error)
{
return true;
}
pr... | Ignoring SSL certificate error for HttpWebRequest in Dynamics AX 2009 |
This is called"change data capture"or CDC.Personally, I don't think this is a good use for Spring or AOP. I think it would be better done in the database itself, especially if the database is shared/modified by more than one application.You don't say which database you're using, but I'd recommend digging into your ven... | I'm using Spring AOP trying to define a good approach to have all my tables audited with no much hassle. Example of scenario:
I have a table named Person and its respective table PersonLog, which will store the Person values in addition to the user who modified, when and the type of the event, for each update.Simply pu... | Spring AOP - Database Auditing |
As per official docs
For example, if a workflow run pushes code using the repository's GITHUB_TOKEN, a new workflow WILL NOT RUN even when the repository contains a workflow configured to run when push events occur.
See this link to create a custom token
|
I have github actions workflow which should be triggered on release creation
name: "Attach package to release assets"
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
on:
release:
types: [published]
workflow_dispatch:
and another workflow which is responsible for rel... | Github Actions doesn't get triggered on release creation |
0
Your error is that you are not using a similar system as Linux, you can try it on your VMwareWorkstation or Linux Bash shell or MSYS2, or you can intall sh command into your Windows environment. Come on,it`s a simple Question!Use your browser to get some information!
... |
I am a beginner and I am trying this out on Jupyter Notebook: https://github.com/xiph/rnnoise/issues/69.
I faced a problem with the "Library Installation" part (to download RNNoise from GitHub).
I managed to download the repo, but I was unable to run the code from "./autogen.sh" onwards. I ran the code on Anaconda Pro... | How to install RNNoise from this GitHub repo? |
I think the problem here is that the period is 1 hour. If it goes down to two nodes within one hour it will go on the alarm state.If you want to evaluate every two hours, you can try to set your evaluation periods to 2 with period of 1 hour or to 1 with a period of 2 hours.ShareFolloweditedAug 11, 2021 at 13:07General ... | I kinda struggle understanding what happens in our AWS CloudWatch alarms setup.We're watching the number of available nodes in ElasticSearch. The goal is to raise an alarm when available nodes is less than three for more than 2 hours.Here's the alarm definition:But still the alarm is triggered even when the available n... | Understanding Evaluation Periods and Datapoints to Alarm |
You should be able to remove untagged Docker images using the"dangling=true"flag:sudo docker rmi $(sudo docker images -f "dangling=true" -q)source:https://docs.docker.com/engine/reference/commandline/images/ | when I run a command such as sudo docker rmi me/myimage I get the responce ...image untagged, but, when I rerun sudo docker images I can see that this "untagged" image is still there, and, if I run df -h I can see that the actual files still exist and occupy the file system space.
What command or procedure can ... | how to physically remove untagged docker images |
You should look at thedocumentation!If you need to rename or move your web directory, the only thing you need to guarantee is that the path to the app directory is still correct in your app.php and app_dev.php front controllers. If you simply renamed the directory, you're fine. But if you moved it in some way, you may ... | In my symfony I moved /MySymfonyFolder/web/app.php to root and rename it to index.php e.g. /MySymfonyFolder/index.php, I changed htaccess as below but it causes problem to find css images via cssrewrite as I wrotehere.1) I don't want to move /MySymfonyFolder/web/bundles/, /MySymfonyFolder/web/images/ and /MySymfonyFold... | how to move symfony /web/app.php to /root/app.php |
You need the -y parameter for the apt
FROM node:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update && \
apt-get -yqq install krb5-user libpam-krb5 && \
apt-get -yqq clean
COPY / ./
EXPOSE 3000
CMD ["npm", "start"]
And pay attention, that each RUN directive creates one additional layer in th... |
I am trying to create Docker image by next Dockerfile. It must to install Kerberos client.
Dockerfile:
FROM node:latest
RUN export DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update
RUN apt-get -qq install krb5-user libpam-krb5
RUN apt-get -qq clean
COPY / ./
EXPOSE 3000
CMD ["npm", "start"]
Next command RUN ... | How to install kerberos client in docker? |
When everything's working right i want
to save a copy/make a back-up so that
if i ever mess everything up i'll have
something i can go back toA version control system is perfect for you. Eclipse allows to clone your repository into a version control system such as CVS, SVN, Mercurial, Clearcase, Git, etc.For me, ... | I'm new to development and I'm sure this is a silly question but i can't work out how i should be backing-up copies of my project.
When everything's working right i want to save a copy/make a back-up so that if i ever mess everything up i'll have something i can go back to, but of course it's not as simple as just cop... | How can I back-up my java project in Eclipse? |
0
you can configure template with mappings by execute HTTP PUT request in Linux terminal, as following:
curl -XPUT http://ip:port/_template/logstash -d '
{
"template": "logstash-*",
"settings": {
"number_of_replicas": 1,
"number_of_shards": 8... |
What is the best way to configure ES index template with mappings in docker container? I expected to use template file but it seems that from version 2 it is not possible. Executing http request also won't work because on container creation process doesn't start. It could be done on each container launch with script w... | Default elasticsearch configuration for docker container |
Just figured out why it wasn't working.
It looks like you can't edit an anonymous gist, and in order to use it authenticated, you need to generate a token API for your account and specify that you want to use with gist in the scope, as shown here: https://help.github.com/articles/creating-an-oauth-token-for-command-li... |
I'm trying to edit an existing Gist through an API call, following the API docs, I'm doing a curl call like this:
curl -X PATCH -d'{"description": "the description for this gist", "files": {"file1.txt": {"content": "updated file contents"}}}' https://api.github.com/gists/5790365
But it keeps returning a 'Not Found' er... | Update a gist through its API |
1
I had similar issue migrating SPF2010 to different server.
Sollution: database upgrade on source server.
How: Open Sharepoint PowerShell, and type Upgrade-SPContentDatabase command, hit R(maybe Y) when promt.
Cheers
Share
Improve this answer
... |
I have create SharePoint 2010 site collection backup through Power shell, by using the command
Backup-SPSite "http://sitename:85" -path "C:\backup.bak" -Force
and i am restoring this backup on same SharePoint 2010 server/same machine on different port by using the command
Restore--SPSite "http://sitename:81" -path "C:... | SharePoint 2010 Restore-SPSite problems |
You should use:
CREATE TABLE copy_cust
AS SELECT *
FROM Customers
|
I need to create a backup copy of a table and all of the data in it.
This is what I have tried so far:
SELECT *
INTO copy_cust
FROM Customers;
Any help would be greatly appreciated.
| Mysql create copy of table and all of the data |
Turned out I had my replicas between quotation marks resulting in this error. | So I got an environmental variable in my Helm chart which works fine when I'm running a--dry-run. However, when I'm trying to release it for real an error is thrown.Because the amount of Postgres nodes differs based on the user's input in values.yaml I need a way to generate the partner nodes variable based on the numb... | Helm chart throws an error on release, but works fine on --dry-run |
Yes, the DLL's should be mapped into the process virtual address space. The mapping may not be backed by a real physical page if the code in that page has not been executed, and of course executing "random" bits of code without the right initialization or setup for the code to execute properly (e.g calling the processi... | I see that on Windows the functionEnumProcessModulesreturns a number of modules loaded for a specified process (some of these should be system dlls like guard32.dll, version.dll, etc..)My question is: are these modules mapped into the process' virtual space? Can I jump to an instruction located into one of these module... | Are memory modules mapped into process' virtual space? |
Whenever your application is terminated the memory it had allocated is returned to the system. Autorelease pools don't play any role in this case, if that's what you mean by "application pool". The objects that are still in memory at that moment will not be deallocated (in the sense that system would call dealloc for ... |
i always wonder sometimes that when i run my app an app pool is created and my app gets loaded inside the app pool and when i hit the home button my app is terminated i.e. the pool in which my app was residing will be terminated so in this case what will happen to those objects if i do not release such objects i think... | Does system release my objects when the application is terminated? |
6
Option 3 seems to represent to clearest separation of workflow between the two projects:
one with occasional contribution back to the original project, with pull requests
one with entirely new branches and code for the new application
To facilitate the merges, I would r... |
Overview
I have a project that is a customisation of an existing FOSS product. Its getting to the point where we're maintaining a long-term fork rather than applying new plugins and the like. I'd like some input on what the sanest workflow for maintaining this project might be.
Criteria
We should be able to send pull... | Git workflow for maintaining a derivative fork |
S3cmd first copies the object from source to dest, and then delete form source. Apparently it is doing it right (https://github.com/s3tools/s3cmd/blob/master/S3/S3.py) and I've never had this kind of problem.Are you running on the latest version of s3cmd?Have you tried to run another version?Is there some pattern relat... | I'm having a strange behavior from s3cmd.
when running mv command on multiple files in a folder (on by one), some of the files are only being copied to destination dir but not deleted from the source dir.did anyone experienced anything like that?thanks in advnaced,Oren | S3cmd mv command not deleting source files after copying |
You can use:@reboot@reboot /path/to/scriptSourceApple's Crontab Man Page | I was wondering how I could execute acrontabwhich usually occurs when Mac is turned off (not just asleep). As for documentation, OS X skips crontabs if the machine is off. Is there a way to have crontabs to be executed once mac turns on again?Thank you. | How to execute a crontab (OS X 10.9) when mac is turned on again |
If you check howcommands/pull_request.go#pullRequest()is implemented, it doesn't seem possible to avoid the editor.This shouldn't be very difficult to propose a patch adding a new option to this command, which wouldavoid the lines:message, err := pullRequestChangesMessage(baseTracking, headTracking, fullBase, fullHead)... | I am usinghubto send a pull request from the command line like so:hub pull-request -b upstream:master -h me:featureWhen I do this,hubautomatically opens up my terminal text editor and displays the pull request message so that I can edit it. However, 9.99 times out of 10 I am completely content with the message thathubc... | How can I send a pull request using hub with the default message (without opening a text editor)? |
AFAIK, there's no way to get what you want in Sonar.It's true that with the basic example that you gave, showing that there are 1000 tests in Sonar can be misleading. However, I can't believe this is a common use case to run a test repeatedly without changing its data (i.e. runningexactlythe same test several times).Ho... | Hudson and/or Sonar seem to report the number of test invocations, but not the number of tests.So if you have@Test(invocationCount=1000)
testFoo() {}Both hudson and sonar will say there are 1000 tests when there really is only one. Other than wc'ing the number of @Test tags, is there a way to see this value? | Is there an way to get an accurate count of testng tests via Sonar or Hudson? |
I found an article addressing my problem (the influence of Memory on the algorithm).It's not only the computation problem (mentioned here:https://stackoverflow.com/a/48687460/2298744) it's also the Memorybandwidth which would bottelneck the CPU.As described in the article every round fetches 8kb of data for calculation... | A modern CPU has a ethash hashrate from under 1MH/s (source:https://ethereum.stackexchange.com/questions/2325/is-cpu-mining-even-worth-the-ether) while GPUs mine with over 20MH/s easily. With overclocked memory they reach rates up to 30MH/s.GPUs have GDDR Memory with Clockrates of about 1000MHz while DDR4 runs with hig... | Why is the CPU slower for calculations then the GPU when only Memory should matter? |
Registrars job is primarily to coordinate and make sure there are no duplicates in domain names.ICANNmanages them. At a technical level registrars (andregistries) use theExtensible Provisioning Protocolto achieve this.They do update the DNS with nameserver information but not theRoot DNS servers(which is an entirely di... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed14 years ago.Improve this questionI searched on Google and Wikipedia a lot, but I could't find answers for these questions.1) What exactly registrar company do... | How does domain registration work? [closed] |
30
SES is not able to redirect messages by itself, but can call Lambda function and it can redirect message.
There is ready to use Lambda function: https://github.com/arithmetric/aws-lambda-ses-forwarder
Share
Improve this answer
Follo... |
I am searching a way to redirect email which are sent to a domain whose DNS is Amazon's Route 53 service. E.g. I would like to redirect the email [email protected] to [email protected]. And [email protected] to [email protected]. Is this possible to do with Amazon's Simple EMail Services (SES)? Is there another way to... | Redirecting EMails with Amazon SES Service |
Is there a way to mark these cache objects as garbage-collectible?The simplest way is to storesome data with strong references e.g. in a LinkedHashMap, possible as a LRU cache.data which you would like to retain if possible in a SoftReferences cache. These will not be cleaned up immediately but will be cleaned up befo... | I have run into a situation in which I would like to store an in-memory cache of spatial data which is not immediately needed, and is not loaded from disk, but generated algorithmically. Because the data is accessed spatially, data would be deleted from the cache based on irrelevance factors and the distance from the l... | Caching large amounts of spatial data in Java - is it feasible? |
Looks like golangci-lint isnt installed succesfully or installed in the directory outside of thePATHBy default this installer uses./bindirectory, so you can try./bin/golangci-lint run -c .golangci.yml, or you can useBINDIRvariable to set installation path. | I have setup golangci-lint in my development enviroment with configuring makefile,MakeFilebuild: lint_provider
go build -o ${BINARY}
lint_provider:
golangci-lint run -c .golangci.yml
install: build
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}...
mv ${BINARY} ~/terraform.d/plugins/.... | Unable to run golangci-lint on bitbuckt CI |
The terms "head" and "base" are used as they normally are in Git. The head is the branch which you are on; that is, the branch with your changes. The base is the branch off which these changes are based. This is similar to the terminology used for git rebase and git merge-base.
For example, if I'm comparing changes... |
GitHub's UI is fairly unintuitive and poorly thought-out, so here's a problem and a question:
What is the "head" repo? What is the "base" repo? I do not know which one is being copied from. The words "base" and "head" mean the same thing. The "head" of a linked list is similar to the "base" of a tree. (GitHub has fork... | What are 'base' and 'head' repo in GitHub web UI? |
forSonarQubevisithereandhere, it will help you.and I found this, it’s not possible, the concept of external issues
appeared in SonarQube 7.2. Upgrade to the new LTS 7.9ShareFollowansweredSep 30, 2019 at 14:14ArasAras1,5991616 silver badges2525 bronze badges11Thanks, I'll have a look at the tslint import route. I've j... | In the documentation (https://docs.sonarqube.org/latest/extend/adding-coding-rules/#header-1) TypeScript isn't listed as a supported language for custom rules but JavaScript is. Because of this is it possible to use the JavaScript runner to execute custom TypeScript rules?If not, is anyone aware of how to do more advan... | Custom TypeScript rules in SonarQube |
Agit fetch --all --pruneshould get rid of what is effectively a pointer (a remote tracking branch tracking what the remote branch was referring to)Seegit fetch: PRUNING.smarbermentions the alternativegit remotecommand:git remote update -p | This question already has answers here:Cleaning up old remote git branches(10 answers)Closed5 years ago.This isnota duplicate ofHow do I delete a Git branch both locally and remotely?, and I've readDelete local “remote branch” without deleting remote branch?but get little help.There was a branch calledstats_devbefore. ... | Delete local "remote branch" after the branch was deleted locally and remotely [duplicate] |
You can use the Management API, most notably the MemoryMXBean.
For example
import java.lang.management.*;
class Memory {
public static void main(String[] args) {
MemoryMXBean m = ManagementFactory.getMemoryMXBean();
for(MemoryType type: MemoryType.values()) {
usage(type, type == Memory... |
How can I get the value of the allocated and free memory of the following YoungGen (Eden, Survivor0,Survivor1), OldGen areas from Java?
I see that the tomcat page displays this information, how can I get it from the java code?
About maxMemory(), totalMemory(), freeMemory(), I know, But it is not entirely clear how to ... | How to get from Java YoungGen and OldGen? |
It is not possible on the Grafana orElasticsearch level. Fix your ES field mapping (doubledatatype forvaluefield)https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.htmland you will receive correct format for Grafana directly from ES. | I would like to graph values from elasticsearch with grafana.
The problem is that the value is stored as string:[
{"timestamp": 123123123123,
"value": "12"},
{"timestamp": 123123123123,
"value": "14"}
]When I then select metric in grafana 'Max', there is no value shown.I tried in themetric->optionsto set
scri... | Grafana - cast elastic string value to |
look at quartz, its a scheduling library in java. they have sample code to get you started.
you'd need that and the JDBC driver to your database of choice.
no web container required - this can be easily done using a stand alone application | This app must perform connection to a web service, grab data, save it in the database.
Every hour 24/7.
What's the most effective way to create such an app in java?How should it be run - as a system application or as a web application? | Daemon in Java: simple schedule application? |
Exactly, this is used to un-ignore a path that is ignored before that line. Your example illustrates the use case pretty good.
You are ignoring everything inside media except xmlconnect.
|
I don't quite understand this
I've read the official documentation on it from https://git-scm.com/docs/gitignore
An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again. It is not possible to re-include a file if a parent directory of that file is ... | what does "!" do in gitignore files? |
{
search(query: "repo:octocat/Hello-World type:issue is:CLOSED"
first: 20
type: ISSUE) {
issueCount
edges {
node {
... on Issue {
title
createdAt
labels(first:5) {
edges {
node {
name
}
}
}
... | I am trying to use GitHub GraphQl Api V4 to Query Dataquery {
repository(owner:"octocat", name:"Hello-World") {
issues(last:20, states:CLOSED) {
edges {
node {
title
url
labels(first:5) {
edges {
node {
name
}
... | GitHub GraphQl api v4 return "Cannot query field repository on type Query" |
I think I've figured this one out. I imported thenew WWDR Certificate that expires in 2023, but I was still getting problems building and my developer certificates were still showing the invalid issuer error.In keychain access, go toView->Show Expired Certificates. Then in your login keychain highlight the expired WWDR... | I have created certificate to enable Push Services in my app, but every time I try to add certificate in my Keychain, after adding certificate it shows me following error:This certificate has an invalid issuer | This certificate has an invalid issuer Apple Push Services |
openssl looks good!keyANDcrtmust be configured at your server site.crtmust be configured at client/partner site. Common Name (CN) incrtmust match your hostname (DNS) and must be used in the URL at the partner site.ShareFollowansweredMar 23, 2018 at 14:13MichaELMichaEL8444 bronze badgesAdd a comment| | I am trying to establish a connection between our server (Ubuntu, SSL certificate) and our partner (communication via AS2). When the partner is trying to connect to our server, he gets the error messageHANDSHAKE_FAILURE.As I have very little experience with certificates, I think the problem might be here. What I have d... | Ubuntu server - HANDSHAKE_FAILURE. How to correctly set up the certificate? |
2
If dummypassword is your true database password, then yes, this is absolutely a problem. You would literally be giving hackers instructions on exactly how to connect to your database! Don't do this.
Look into using dotenv on npm. This will allow you to create a .env file ... |
I'm running an express server and I am very new to databases. If I have a public repo on Github of my express server and have this line of code publicly visible in one of the files:
const pool = new Pool({
user: "postgres",
host: "localhost",
database: "postgres",
password: "dummypassword",
post: 5432
});
... | Publicly Visible Database Password on Github an issue? |
Apache accesses and processes the htaccess files on each request. This is why one does not need to restart the server every time to check their current configurations.You do need to restart the server/service for testing any changes made toapache.conf,httpd.confor the vhost configurations.Quoting fromApache's tutorial ... | Suppose we have the/home/example.org/public_html/directory on the filesystem, which serves as the document root of my virtualhost.The relevant httpd configuration for that vhost would look like this:<VirtualHost *:80>
ServerName example.org:80
...
DocumentRoot /home/example.org/public_html
<Directory /home/exam... | Apache: include htaccess in conf with AllowOverride None, better performance? |
Take a look at this StackOverflow question:rewrite rules for apache 2 to use with angular jsThe same applies with Angular, and you may need to set a matching basepath in your app if you are not using hash-urls. | Hiii guys,my problem is the following:At the beginning I just had one Angular-App, so I put it into the root folder of my Apache Server. My 404-Redirect on Apache to index.html was working fine.Now i have two Angular-Apps with the following structure:Root--> App1 (has its own index.html)--> App2 (has its own index.html... | Angular 4 on Apache in Subfolder |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.