Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
ThisGo and Lambda boilerplate appdemonstrates Lambda to Lambda traces on the X-Ray service map:https://github.com/nzoschke/gofaas/blob/master/worker.goResulting X-Ray Service MapWorkCreateFunction(function 1) is an API Gateway handler function. It callsWorkerFunction(function 2) via aLambda.InvokeWithContextcall.The tr... | I have the API Gateway that calls Lamdba function 1 and that invokes lambda function 2 in Go. I want to see these 2 functions joined in the service map.The only way i have been able to do this so far is to create a custom segment eg called "parent" and the create a subsegment from this context eg called "child". Th... | AWS X-Ray GoLang Lambda to lambda tracing and displayed in the service map |
Yes, you can do it.In Github's terminology the "to branch" is "base"
So the search phrase is:is:open is:pr base:XOfficial description:Search based on branch namesOptionally you can addis:mergedoris:unmergedfilters as well. | I'm working on a GitHub repo with lots of branches and pull requests.Let's say, for example, that I have the following pull requests:ato branchXbto branchXcto branchYdto branchXeto branchY.Is there a way to find all the pull requests that are targeted for branchX(i.e.a -> X,b -> X,d -> X)? | How can I filter all GitHub pull requests for a specific target branch |
This is the solution I came up with:auth.lua-- Some logic goes here
-- ....
-- ....
ngx.var.return_status = 200nginx.confhttp {
lua_package_path .....;
lua_package_cpath ....;
rewrite_by_lua_no_postpone on;
server {
set $return_status 1;
location /foo {
rewrite_by_lua_file " ... | I'm trying to figure out how to do the following:Request is coming in.HttpLuaModuleperforms some action against the request. If request is valid than Lua will finish processing withngx.exit(202). But there are some conditions that may (and will) occur during the processing andnginxmight return 403 , 404, 503 Errors.Wha... | How to write only logs with 200 status |
Therelabelingsmust be namedmetricRelabelingsaccording to thespec. Note that the yaml format of the ServiceMonitors does not use the same key names as the corresponding prometheus config (but it is still valid yaml).ShareFollowansweredJan 25, 2021 at 10:46Jens BaitingerJens Baitinger48922 silver badges88 bronze badgesAd... | after readingthisarticle I'm trying to cleanup metrics going out of Spark 3.0.1. Here is my servicemonitor.yml file:apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: spark3
release: prometheus
name: spark3-servicemonitor
spec:
endpoints:
- interval: 5s
port: spark-ui
... | Renaming metrics in service monitor |
This information on Stack Exchange was helpful
It seems that some people are proponents of using submodules within git, or even creating a separate repository for images/assets. Some say using a third party like Dropbox can help, or Unison. Others find it necessary to include assets in version control.
As far as I c... |
Some of the simple examples of GitHub practice will include addition or deletion of code in HTML/CSS files.
However, what should one do with media assets (which may be central to a web app)? Is it feasible or worthwhile to use Git and/or GitHub to store media assets such as images, or even video? What's considered bes... | What should one do with media assets related to a Git repository? |
Based on the information at hand, there are many points to consider on why you are having issues accessing the service inside the same WIFI network. The first thing that you need to validate is if the service is exposed correctly. Run ‘kubectl get services’ and check if External IP addresses are assigned and try pingin... | I've developed a simple app composed of two services: result and voting. You can find all the fileshere. The services are configured as loadbalancer and the minikube tunnel recognize them. However, I cannot access the service from another machine in the same WiFi network. I've disable the firewall in the host machine (... | Kubernetes services not accessible outside |
I use GitHub buttons, which you can find here
|
Is there any way to add star button to the promotional page of the repository just like there is facebook like and Google Plus' +1 button?
| Github STAR button on repository page |
Github doesn't allow inline-styles or classes. A workaround is to wrap sub tag around each element.
Embedding
Script
word2Vec
abc.sh
code2Vec
cde.sh
|
How to use a smaller font size in a GitHub readme.md?
I am trying to figure out how to use smaller text in the GitHub readme.
More specifically, I created a table and I want the font size to be smaller for this table.
I saw somewhere people recommended to use which I tried and does not work.
Table:
| Embedding ... | How to use smaller font size in a GitHub table? |
It should work like that :name=dev-tools
description=
regexp=com\.domain\.module\.dev-tools\..+That's the way we're using it in Sonarqube 5.6.6 and it works fine. | I have the following sonar projet:projectKey=com.domain.module.dev-tools.map-to-css-modules
projectName=com.domain.module.dev-tools.map-to-css-modulesI have created in sonarqube the following permissions templatename=dev-tools
description=
regexp=^com\.domain\.module\.dev-tools\.[A-z0-9-\.]+I excpect this permissions t... | How to use sonarqube permission template regexp |
0
If the URL is an HTTPS one, check your git config credential.helper: if manager, if would have cached, you need to reject its URL
git credential-manager reject
protocol=https
host=github.com
Share
Improve this answer
Follow
... |
I have 2 github accounts, one for personal use and one for work.
I am working on a personal website and so I have logged into git from the terminal using my personal username and password. When I do a 'git config --list' I am shown the correct username and password for my personal account as I would expect.
However ... | Two github accounts conflicting on the same computer |
The list of roots of trust changes from time to time, and Java's built-in one is often a little different to that of browsers. Those trust roots are what is stored in the system keystore (well, technically in the system truststore) and you can add to them by placing the extra roots that you want to support in a per-use... | I'm trying to accesshttps://blockchain.info/lastblockfrom java,
but the code throws:Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetThis is usually due to self signed certificate, but this one is not self signed(you can check it in your ... | Can't access blockchain.info from java due to missing certificate |
Answer to your last question - in nginx, thelistendirective is only allowed in theservercontext (that means per virtual host).According tomanual:Thelistendirective can have several additional parametersspecific
to socket-related system calls. These parameters can be specified in
anylistendirective, but only once fo... | I'm right understand that it's wrong to use "reuseport" for same IP:PORT pair on different virtual hosts:http {
server {
listen 192.168.0.1:80 reuseport;
server_name server1;
…
}
server {
listen 192.168.0.1:80 reuseport;
server_name server2;... | Nginx's "reuseport" for same IP:PORT pair on different virtual hosts |
Turns out this is what i needed:c:\OpenSSL-Win32\bin>openssl pkcs12 -in file.pfx -nocerts –nodes -passin pass:123 | openssl rsa -out privatekey.pemthis got me a private RSA key, which is then put into filezilla as the private key and the cert in the cert field in filezillas settings. both of these files should be in ... | here is what i have, running MS server 2008, IIS 7from godaddy, a p7b intermediate file from godaddy and the cert in crt format. this is all they gave me. I need to get a private key file out of this to go with the crt and configure it to be used in filezilla. i tried just loading the p7b file into the private key s... | godaddy cert not working with filezilla |
There is a separate documentation onHow to contribute to VSCODEFromDOCSEven if you have push rights on the Microsoft/vscode repository, you
should create a personal fork and create feature branches there when
you need them. This keeps the main repository clean and your personal
workflow cruft out of sight. | In VS Code's git remote repositoryVS Code, there are so many branches.Can I know what do these branches do?To contribute, test development, to VS Code, which branch should I checkout and start with? | Which branch of VS Code GitHub repo should I start with? |
There is a how-to documentation on the Rstudio website that details how to use either Nginx or Apache reverse proxies.
https://support.rstudio.com/hc/en-us/articles/200552326-Running-RStudio-Server-with-a-Proxy
In particular it mentions "you will also need to include code to correctly proxy websockets in order to corr... |
I am trying to use RStudio server proxied through nginx to develop a shiny app. When I use RStudio (not server) to run the shiny app, things work just fine. However, when I run things through the proxied RStudio, the app appears in the "viewer" pane but the app is not functional. My console reports that the app is ru... | Running shiny apps in RStudio when proxying with nginx |
If I were you, I would not rely on the fact that the service is hosted in IIS. What if you wanted to host your WCF service with some other technology? I think you should check outmemcachedwhich is a much more general caching solution, and it works fine with .NET.Anyway, if you really want to use the IIS cache, useSyste... | I have a WCF service hosted in IIS and want to return the data which is reside in the cache of IIS (HttpContext.Current.Cache)
What is the most appropriate choice of type this service should return? | How to return HttpContext.Current.Cache from WCF? |
Ifbrew link openssl --forcegives you this message:Warning: Refusing to link: openssl Linking keg-only openssl means you may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. Instead, pass the full include/library paths to your compiler e.g.:-I/usr/local/opt/... | When I run:rvmsudo passenger-install-nginx-moduleon my Mac to install nginx, the terminal prints:Checking for OpenSSL development headers...
Found: noBut I am certain I have openssl installed.which opensslreturns/usr/local/openssl/bin/openssland/usr/local/openssl/bin:is the first entry in my $PATH. My questions are:A... | Nginx Cannot Find OpenSSL Development Headers |
Short answer:
bug your HPC admins to install Singularity
Longer answer:
There are two ways to install Singularity, as a privileged installation or an unprivileged / user namespace installation. The first way is the default, but requires sudo/root for certain actions (mostly singularity build). The latter removes the n... |
I'm trying to launch a singularity container on a hpc cluster. I have been running the projectNetv2.sif and sandbox on my local with no issue. After exporting them to a hpc I get the following error.
(singularity) [me@hpc Project]$ ls
examples projectnet_image_v2.tar.gz projectnet_sandboxv2 projectNetv2.sif
(singul... | How to run singularity container on HPC cluster? - ERROR : Failed to create user namespace: user namespace disabled |
Set Sublime Text 2 to be your editor for commits
git config --global core.editor "subl -n -w"
But I do not use Sublime, so check this :
https://help.github.com/articles/associating-text-editors-with-git/
|
This question already has answers here:
How can I make Sublime Text the default editor for Git?
(18 answers)
Closed 8 years ago.
Whenever I use git commit --amend, it automatically... | git commit --amend opens Vim in terminal [duplicate] |
The accepted answer routes everything throughindex.php.This will break certain script includes, thewp-adminscript being one of them.You can use:location /blog/ {
index index.php;
try_files $uri $uri/ /blog/index.php?$args;
} | I has a site host on aNGINXserver which used to work fine to removeindex.phpin nginx site config usingtry_files.But now I am going to add a blog on it, where the URL will bewww.foo.com/blog, I can access the blog and useindex.php?p=.But, once I useprettypermalink with Nginx Helper,www.foo.com/blog/2013/07/bar, I get404... | Nginx rewrite in subfolder (404) |
Timezone is reckognized by JDBC driver, which does not know about Spark's timezone setting, but relies on JVM's default timezone. Moreover, it ignores remote database session's timezone settings. You said you ranTZ=UTC- I'm not sure, but probably it didn't work. Check whatTimeZone.getDefaulttells you.If, as I suspect, ... | I am creating a parquet file from reading data from oracle.Oracle is running in UTC. I confirmed using,SELECT DBTIMEZONE FROM DUAL;Output:DBTIMEZONE|
----------|
+00:00 |Reading from JDBC and writing to S3 as parquet:df = spark.read.format('jdbc').options(url=url,
dbtable=q... | spark timestamp timezone in JDBC read/write |
My problem is that i didn't clean result float array.
That's the job of whoever is calling your method that returns the float array: now he owns it, so he must call free on it.
Generally, there are two situations:
You use the array inside another method or a function without storing it - In this case, identify the ... |
I would like to know how to return float array in methods.
In methods like:
- (float *) ......{
float * result = malloc(sizeof(float) * number);
....
return result;
}
My problem is that I didn't clean result float array. How can I do that?
| Returning float array in Objective-C |
As far as I know, there is no magic that can translate the error code in a description for you. That doesn't mean you can't just continue on the path you already took:ErrorDocument 404 /?e=404&desc=Not%20FoundNow the errorcode is in$_GET['e']and the description is in$_GET['desc']. | I'm running an apache server, and I want the custom PHP error page to display the error number and error description. So for example, I have in my .htaccess:ErrorDocument 404 /?e=404And in my error page:<?php
$e = $_GET['e'];
if($e === 404){
?>
Error: <?=$e?>
<?php } ?>So it will display:Error: 404But I want it to show... | Get error description with .htaccess/PHP |
UDP support has been missing still from the GA release of theAmazon EC2 Container Service, seePorts are assumed to be TCP (issue #2)of theAmazon ECS Container Agent. Luckily this surprising gap has already been addressed and the new ECS agent version ispending release- I would expect this release to happen anytime soon... | According to the documentation of ECS task definitions, this is how we define port mappings."portMappings": [
{
"containerPort": integer,
"hostPort": integer
}
...
]By default this is binding port overtcp. How to achieveudpport bindings to docker containers running in AWS Elastic Beanstalk (... | AWS EC2 Container Service / Elastic Beanstalk Docker Container Port udp binding |
This is a protection to not allow people to simply exfiltrate all your secrets by submitting a pull-request. A malicious person could propose a change to the workflow that lists every secret and sends it to an S3 bucket for example.There is a different trigger calledon: pull_request_targetwhich will have access to the ... | I have forked a public GitHub repository to create a fork repo.The PR build in the source repo is created using GitHub Actions, and looks like:name: "Continuous Integration"
env:
GH_OAUTH_TOKEN: ${{ secrets.GH_OAUTH_TOKEN }}
on:
push:
branches:
- "develop"
- "staging"
pull_request:
branches:... | How to pass a secret from a forked github repo to source repo |
It appears that doing it was straightforward. Here is a minimal Dockerfile for the example Shiny Server run.
FROM rocker/shiny:3.6.3
USER shiny
EXPOSE 3838
CMD ["/usr/bin/shiny-server.sh"]
You can directly upload from ElasticBeanstalk interface.
Here are two very important basic mistakes that may be trouble in EB dep... |
How is it possible to deploy a shiny app via Shiny Server in a Docker container deployed to Elastic Beanstalk?
Theoretically it is possible to run R/Shiny (Server) on AWS Elastic Beanstalk with Docker containters. Unfortunately, I couldn't see any tutorial on this topic and my attempts failed miserably.
It is possible... | Shiny Server on AWS Elastic Beanstalk with Docker |
You can achieve this with query like this:SELECT
$__timeGroupAlias("time",'5m'),
name,
sum(used) as value,
'used' as metric
FROM test_data
WHERE $__timeFilter("time")
AND ('$TRUNKS' = '' or name in ($TRUNKS))
GROUP BY 1, 2
ORDER BY 1Here filtering of the names is done with usualinSQL clause. Additionally if no ... | i have the following table in a postgresql database, there is a script running every 5 minutes inserting this values in the table.name(varchar)used(int)time(timestamptz)monitoreado11002023-07-19 10:59:15monitoreado22002023-07-19 10:59:15monitoreado31502023-07-19 10:59:15also a i have a variable in grafana namedTRUNKSth... | postgresql + grafana panel implementation question |
To discard changes in a specific file you can usegit checkout -- <file>:I think this would solve your problem:git checkout -- abc.jsOr you can resolve the conflict, commit the changes and reset head afterwards. The last commit will be removed:A-B-C
^
feature-example
git reset --hard HEAD~1
A-B
^
feature-exa... | so I have 2 branchesmasterandfeature-example. I have a code change tomasterwhich I don't want to push to the repository. There's a commit tofeature-examplewhich I want to pull, So I didgit stash
git pulland thengit checkout feature-examplenow I made some changes tofeature-examplebranch which I don't want to push, I wan... | git stash merge conflict |
Check the list of images on your local machine withdocker image ls. Let’s sayrajesh12/mysqlis the image you want to use:image:
repository: rajesh12/mysql | I'm playing around wiht minikube and I have a config in myvalues.yamldefined like thisimage:
repository: mydocker.jfrog.io/mysqlI want it to point a to a local docker image that lives locallymysql/docker/dockerfileI'm not sure what the syntax is can't find it in the docs | Kubernetes-Helm Charts pointing to a local docker image |
One way is to locally save all the files you want to use from the FTP server, into anew_projectdirectory. Then:Create a new repository in GitHubcalled for example,new_project. Assuming the clone URL of the project is:https://github.com/user/new_project.gitExecute the following commands in your Terminal:cd new_project
g... | I need to take a lot of file from an existing website and put them into a git repository. What is the best way to add these files into an existing git repository from my ftp? | I have an existing site that I need to add to github. What is the best way to add lots of files to a github repository? |
There no automated tool to find "problems" like this one since it's not a problem: From the thousands of loops in your code, only one or two might eventually cause problems, depending on the data that your process.So you need to run the code, listen for feedback and run a profiler on the code when you have identified a... | Consider the following java code:for (Entity entity : entities) {
if(entity.getSubEntity().getField() == pField) {
return entity.getAnotherField();
}
}This code can cause a performance problem in production environments ifentitiescontains a lot of entries. Testing might not find the problem if it is only tested w... | Automatically detect loops with potential performance problems in Java |
After aJobruns to completion, thePodterminates, but it is not automatically deleted. Since it has completed, you need to use-ato see it. Once you have thePodname,kubectl logsworks as you would expect.$ kubectl get pods -a
NAME READY STATUS RESTARTS AGE
curator-1499817660-6r... | I have a cronjob that is completing and outputting several log files.I want to persist these files and be able access them after the pod has succeeded.I've found I can access the stdout withoc logs -f <pod>, but I really need to access the log files.I'm aware Openshift 2 apparently had an environment variable location ... | How do I retain/access the custom log files from a completed cronjob? |
0
Try the new git switch command instead
git switch -c newBranch tagName
This assumes that git tag -l does list the tag you want after a git fetch --tags upstream.
Share
Improve this answer
Follow
... |
Here is my setup
Remote named upstream points to the the branch where tag exists.
Remote named origin points to my fork.
I want to create a branch under origin that is even with the upstream tag. Make some changes to this newly created branch and raise a pull request to the upstream.
I am currently checked out on a ... | Git branch from a remote branch tag |
I figured it out. I kind of followed https://unix.stackexchange.com/questions/129322/file-missing-after-fsck but
I copied the partition to an external drive using dd. Then mounted the external drive (which just worked even though I could not mount the original ubuntu partition). Then I went into the lost+found folder ... |
I have two linux partitions on my laptop (one ubuntu and one garuda). Ubuntu was giving me problems so I installed Garuda to check it out. The Garuda partition filled up so I used KDE partition manager to shrink the ubuntu partition so I could expand the Garuda.
Then, Ubuntu wouldn't mount and would not boot as it sai... | How to recover home folder? Cloned partition recovered other directories like /etc/ but not /home |
It looks like your rule is rewriting css and js files back to index.php and that is why they arent loading. You need to exclude those file from the rule.You can use this :RewriteEngine on
RewriteRule ^((?!\.js|\.css).*)$ /index.php?p=/$1 [L]And to fix relative uris ,add the following in head section of you web page<bas... | I'm trying to apply CSS on HTML with a PHP routing class but it doesn't work...I want theH1 red color styleto be included, here is the code....htaccessRewriteEngine On
RewriteRule ^(.*)$ index.php?p=/$1 [QSA,L]index.php<?php
class R
{
private $r = [];
function a($r, callable $c)
{
$this->r[$r] = $c... | How to include CSS/JS and other files with a PHP routing and .htaccess |
GitHub itself cannot not "sort PR differently".As a project manager, you can list those PR and sort them yourself, using the PR commit message with a naming convention in order to do that sort.In other words, the logical order you are after can come from convention in the PR message, not from a PR reorder feature from ... | I created a project for a GitHub repository and I'm doing the project management there with tasks. I've already made some issues and pull requests but in order to preserve history logic, I would like to sort them differently. Is this possible? To update the number and order of history? | GitHub - Is possible to create pull requests before past pull requests or issues before past issues? |
You created an Auto Scaling Policy and that policy executes when the alarm you had configured is triggered.You can seeAverageselected in the dropdown list. Various option that can be selected areAverage,Minimum,Maximum,SumandSampleCount.You can also refer toScaling Based on Metrics. | I created an Auto Scaling group, with an Application Load Balancer attached, with a policy that when CPU utilization rate is greater than 75% add one more instance. It seems working.When I have four instances running, how is that CPU Utilization rate calculated? Average of the four instances? Minimum among the four? | AWS: How is CPU utilization calculated for auto scaling group |
I'm not really sure by looking at your Dockerfile, but by looking at your comment
Override the command, to run the test instead of the application
You'll still need to launch the website in itself after having installed it's dependencies, and then mocha. Since docker is only intended to run one process at a time you... |
I am creating a docker image/container for testing purpose from my productive build application (nodeJS app).
Now I want to do some e2e testing using mocha/chai and nightmareJS. So I have created a very basic test file.
My problem is now how to test for the running application. So I want to 'load' the application like... | NodeJS: How to do nightmareJS e2e-testing on running docker application |
Kafka Connectexposes a REST API, so you need to expose that HTTP endpoint from the Connect podsI read that Kafka connect is used to copy data from a source to Kafka cluster or from Kafka cluster to another destination.That is one application, but sounds like you wantMirrorMaker2instead for thatIf you don't want to use ... | I am using Kafka with strimzi operator, I created a Kafka cluster and and also deployed Kafka connect using yml file. But after this I am totally blank what to do next . I read that Kafka connect is used to copy data from a source to Kafka cluster or from Kafka cluster to another destination.
I want to use Kafka connec... | How to use Kafka connect in Strimzi |
There is a reference here to a quota link answered in another overflow forum:[GitHub Actions]: Create Artifact Container failed: Artifact storage quota has been hit. Unable to upload any new artifacts"There is no way to undo. The quota is monthly, so you just have to wait for quota reset.
Github Actions (runner time) a... | I try to deploy my Django app into Azure development using App Service with B1 plan.It worked fine, but suddenly I can't deploy to Azure anymore.When I read why the build failed I get this message:Error: Create Artifact Container failed: Artifact storage quota has been hit. Unable to upload any new artifactsMy GitHub a... | When deploying to Azure app service from GitHub I get "Artifact storage quota has been hit." error. How to I fix this? |
It's as easy as to Follow Below Steps :git checkout my_branchgit merge parent_branchgit push origin my_branch | I have the following structure:----parent_branch
|
------ my_branchI have worked in my_branch so far, and important changes were made in parent_branch. I want to merge only those changes into my_branch, without messing-up what I've worked on in my_branch. How can I safely do that? | Merge changes from parent branch, in GIT |
1
If the PR author blocks a user, comments are disabled for user in this pull request.
Share
Follow
answered Oct 5, 2021 at 11:35
PrayankPrayank
15611 silver badge99 bronze badges
... |
Is it possible to disable comments for one user in one pull request on GitHub?
| Is it possible to restrict a user's comments in one pull request? |
You have to delete one or more projecs to get below the threshold of 250'000 lines of code so that the suspending of analysis is lifted. (Or, if the project you are analysing is the only one, delete this project) That is a kind of deadlock situation, your changes (skipping the .js-file) cannot be honored by the server,... | I am running sonar-scanner msbuild on my vb.net project .
Since i didn't provide sonar.language properties during analysis it has analysed the .js files too. And now I am getting the error "Analyses suspended. You reached your 250000 lines of code limit allowed by your current license.Go to License page." on the sonarq... | How to resolve line of code limit issue in sonarqube? |
<div class="s-prose js-post-body" itemprop="text">
<p>Use the alias "db" that you have defined in file to refer to the database host name. </p>
<blockquote>
<p>Containers for the linked service will be reachable at a hostname
identical to the alias, or the service name if no alias was specified.</p>
</blockquote>
<p>... | <div class="s-prose js-post-body" itemprop="text">
<p>I need to use two containers together: one with Tomcat and another with a Database. </p>
<p>I have created the following yaml file which describes the services:</p>
<pre><code>postgredb:
image: postgres
expose:
- 5432
ports:
- 5432:5432
environment:
... | Connect to another container using Docker compose |
On a 64-bit system, pointers are 8 bytes each, so we can expect that your 8 properties (plus one for the isa defined in NSObject) to take up 72 bytes. On a 32-bit system, it'd take up half of that.
We can verify this with a handy method in the Objective-C runtime called class_getInstanceSize that will tell us how "la... |
This question already has answers here:
In Objective-C, how does +alloc know how much memory to allocate?
(4 answers)
Closed 10 years ago.
I have the following NSObject subclass. H... | Subclass of NSObject - Its weight in terms of bytes [duplicate] |
I was having a similar problem and there has been an issue raised in the repo that seems like what you are describing:https://github.com/pmarsceill/just-the-docs/issues/148This solved it for me - from a comment there:I got the same error few days ago, my solution is separate config files for github and local machine. Y... | I have been able to install most other jekyll themes but this theme in particular I can not get to render. It always shows up just as markdown and never renders the theme. I've had this problem with other themes, usually it involved fixing the url and baseurl in config or some other theme setting.Theme in question:http... | Trouble implementing specifically just-the-docs theme using jekyll |
I found an old bug in the SonarQube issue tracker (http://jira.sonarsource.com/browse/SONAR-3579) that describes the same problem, it is indeed a compatibility issue. It is suggested as a workaround to unset GEM_PATH and GEM_HOME variables before launching Sonar.I put the following two lines into the sonar startup scri... | When I try to run sonar-runner from the command line for a project, I get a 500 error:INFO - Install plugins
INFO - Install JDBC driver
INFO - Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
INFO: ----------------------------------------------------------------... | sonar unable to create JDBC datasource |
Your date = date + 1; is html, not code; hence it never changes date, hence it fills the entire memory with the output-buffer for lots and lots and lots of Model.TimePeriod1[0]. Add a bee-sting after the %></td>:
<tr>
<% for (int i = 0; i < 7; i++)
{
%><td><%: Model.TimePeriod1[date] %></td>... |
I'm getting an out of memory exception on this loop...however, it never even reaches a second iteration. The date index is 0 when the exception is thrown.
<% int date = 0; %>
<% while (date < Model.TimePeriod1.Count) { %>
<tr>
<% for (int i = 0; i < 7; i++)
{ %>
<td><%: Mod... | C# OutOfMemoryException |
If you put this line at the top of the.htaccessfile:DirectoryIndex index.html index.phpIt will swap the order in which Apache prioritises the files. | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed10 years ago.Improve this questionWordpress newbie here and building on this, I have a similar problem to the question asked here:under construction page on in... | Wordpress redirect to static index.html page while keeping sub-pages intact? [closed] |
If you are on self-hosted Gitlab, a lot of data are already exposed on an endpoint in Prometheus format.If you are on SaaS, then you might want to checkPipelines APIandJobs API.You can use these to then make a custom exporter and scrape with Prometheus.
I made one using theprometheus_clientfor python. | I have a lot of schedule pipelines in my Gitlab with a lot of jobs.
I need to have a tool to monitor the state of job (failure/success..)Is possible to do that with Grafana.I don't have an idea in details but I just started to learn it.Thanks | Monitor Jobs state with Grafana in Gitlab |
1
Make sure that ElasticSearch listens on ip 0.0.0.0 and not 127.0.0.1.
Since docker exec books-es curl 127.0.0.1:9200 works, this seems to be the issue.
Share
Improve this answer
Follow
answered... |
I've created a container running ElasticSearch on Docker (9200 and 9300 are published so they can be accessed via the host).
$ docker run --name books-es -p 9200:9200 -p 9300:9300 -d elasticsearch
65937a0f8967390d33abaad50b55975cb9292be6692d29791c2e6c37ac5d2832
I then test to see if it's running:
$ docker exec book... | Docker won't publish selected ports |
ImagePullBackOff occurs most of the time due to typos in the image name or not being able to reach the repository:Check for typos by copy/pasting the image name in a docker pull command (copy/paste so that any error is also copy/pasted: You want to find the error and not confirm your own bias).Check for reachability of... | I often get errors about pods not syncing / ImagePullBackOff errors on my Kubernetes cluster on Google Kubernetes Engine. But I'm not sure how to debug the issue as I can't establish the root cause.In the Google dashboard I can see the ReplicaSet has the warning:
Pod errors: ImagePullBackOffIf I drill down to the pod,... | kubernetes error syncing pod - how to debug |
TheDATEDIFF Functionis documented as:DATEDIFF ( datepart, {date|timestamp}, {date|timestamp} )Thus, it can either take adateor atimestamp.Your query is passing atimestamp with time zone, hence the error.Therefore, you could use:DATEDIFF(MINUTE, session_start::timestamp, session_finish::timestamp) | Im trying to add a date difference calculation to a Redshift SQL query:SELECT
client,
session,
person_id,
min(event_start) as "session_start",
max(event_finish) as "session_finish",
sum (case when event_type = 'execute-query-action-1' then 1 else 0 end) as "Type1 reports run" ,
sum (case when eve... | How to use Redshift DATEDIFF? |
Have you tried usingSonar Scanner for Maven? You can add it as a plugin under<build>as follows:<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.4.0.905</version>
... | I'm trying to set the projectkey via command line but Maven is ignoring it.I tried to run this:mvn sonar:sonar -Dsonar.projectKey=myprojectkeybut when I look at the output, it's using the project name of the POM for the project key not my parameter. | How to override project key and other settings via command line for Maven Sonar scanner |
Here is a way to make this work using alogfunction that is defined in a shared library invars\log.groovy:import java.io.FileWriter
import java.io.BufferedWriter
import java.io.PrintWriter
// The annotated variable will become a private field of the script class.
@groovy.transform.Field
PrintWriter writer = null
voi... | I am working on a scripted Jenkins-Pipeline that needs to write a String with a certain encoding to a file as in the following example:class Logger implements Closeable {
private final PrintWriter writer
[...]
Logger() {
FileWriter fw = new FileWriter(file, true)
BufferedWriter bw = new B... | Jenkins scripted Pipeline: How to apply @NonCPS annotation in this specific case |
Use connection draining (sending all new requests to your desired environment - green for example) and giving time for blue clients to fall off.You can set the max-lifetime of your websocket (connection draining period should be longer than max if that kind of reliability is needed)Otherwise would just handle client si... | I'm currently looking to implement Web sockets for a couple of Web services. But was wondering how this stateful http connections will impact Blue-green deployments & auto-scaling on AWS.Was googling around but haven't came across anything. Would appreciate any advice / inputs. | Blue-green deployment on Web Service with WebSocket Implementation on AWS |
0
Well, I saw some syntax errors in your code (maybe you didn't copy the code but typed it manually for SO not sure). Also you returned deferred instead of deferred.promise. What you trying to achieve works just fine:
Plnkr Example
Share
Improve this answer
... |
I have a basic app, that fetches some data through the $http service, however it doesnt render the data correct in the template, when the template is served from the template cache. My code looks like this:
angular.module('app', [])
api service:
.factory('api', function($http, $q) {
return {
getCars: fun... | Templates from templatecache not rendering bindings when data is returned from $http in 1.2+ |
With autoscaling this is not directly possible to assign an Elastic IP to autoscaled instances. However there are couple of options you can consider.After instance autoscales, having a boot up script(e.g UserData in Linux) with AWS EC2 CLI commands toassociatean Elastic IP address you have allocated to your account wri... | We have a 3rd party integration which needs the EC2 instance IP to be whitelisted. The 3rd party whitelists the IP on their server and then only the EC2 instance can communicate with them.
In the case of single instance this works.
However when auto scaling kicks in, we would end up in more than 1 instance. These new i... | Assigning static IPs to auto scaled EC2 instance |
At this time, I am fairly sure this functionality is limited to Snowflake accounts on the Microsoft Azure cloud platform. You can create another trial account on Azure and try these steps again.ShareFollowansweredJul 22, 2020 at 17:28Suzy LockwoodSuzy Lockwood1,08055 silver badges66 bronze badgesAdd a comment| | I am trying to create a SnowPipe pipeline with external stage as 'Azure Blob storage'. I am following the below link and have carried out exactly all the steps properly,but, got stuck at a point where the notification integration have to be established with Azure Blob.https://community.snowflake.com/s/article/Building-... | Isuse creating Snowpipe on Azure Blob Storage |
Cache is not inside your App namespace, you can either:<?php namespace App\Http\Controllers;
use \Cache;
class ChannelController extends Controller {You can then useCachethroughout your class. Alternatively you can add a\to the existing line you have:\Cache::put('test','test value',10); | When I use cache on laravel, 5 it keeps on giving me an errorClass 'App\Http\Controllers\Cache' not found<?php namespace App\Http\Controllers;
class ChannelController extends Controller {
public function popular()
{
Cache::put('test','test value',10);
}
}It's just a simple cache but still not work... | Laravel 5 Class 'App\Http\Controllers\Cache' not found |
Answer: Yes.You can set the parameterfilenamein the URL. You can even add some content to the new file. For instance, to create a new file callednewtest.pywith default valuePUT YOUR CODE HERE, use the following URL:https://github.com/Pithikos/C-Thread-Pool/new/master/tests?filename=newfile.py&value=PUT%20YOUR%20CODE%20... | I know you can use the URLgithub.com/<username>/<project_name>/new/<branch_name>/<path_to_create_file>to create a new file at a given path of a project.Is there a way to do the same but from the URL specify the name of the new file?So hitting something like the below in the browser:http://github.com/Pithikos/C-Thread-P... | Github URL to create new file with specific name? |
According to thisquestionthere are no bandwidth limits. Moreover, after searching through Amazon's tech docs and terms I found no mention of limits so any limits are not public. Searching the web also shows no results on bandwidth limiting policies. Also, since Amazon makes money on bandwidth it is not in their interes... | Does anyone know what happens when 10.000 or more users paralell downloading files from a amazon s3 server ?
will the bandwith be decrased ?
or can all of the 10.000+ users download the files with the maximum bandwidth ? | Amazon S3 parallel download bandwidth |
As John Hanley mentioned you can't update SSL cert.Google API for SSL cert doesn't have an update method. So deleted the resource usingkubectl delete -f <cert>.yamland created it again withkubectl apply -f <cert>.yamland it worked | I am using K8s ManagedCertificate to create a certificate on GCE. I wanted to add a new subdomain to my cert, so update the yaml file and did kubectl apply. I tried to describe my cert to see if everything is ok but found an errorWarning BackendError 16m (x144 over 36h) managed-certificate-controller googleapi: Err... | How to add a new subdomain to kubernetes ManagedCertificate? |
As of today,kubectl get pods -ais deprecated, and as a result you cannot get deleted pods.What you can do though, is to get a list of recently deleted pod names - up to 1 hour in the past unless you changed thettlfor kubernetes events - by running:kubectl get event -o custom-columns=NAME:.metadata.name | cut -d "." -f1... | Is there a way to get some details about Kubernetes pod that was deleted (stopped, replaced by new version).I am investigating bug. I have logs with my pod name. That pod does not exist anymore, it was replaced by another one (with different configuration). New pod resides in same namespace, replication controller and ... | How to list Kubernetes recently deleted pods? |
Q:Can I access the property values ofplugin.json? If so how can I access themaxDataPointsproperty from my controller?A:You can only accesssomeof the property values in theplugin.json. These values can be found in thePluginMetaclass, an instance of it can be found in theinstanceSettings.metavariable of theDatasourceclas... | I am using grafana 5.1.4. I build a custom datasource. But the property maxDataPoints no are show in datasource config.This is my file structure:My code in query.options.html:<section class="grafana-metric-options">
<div class="gf-form">
</div>
<div class="gf-form-inline">
<div class="gf-form max-width-15">
... | Put maxDataPoints in grafana datasource |
It's interpreting your dots as different prefixes, while in fact, I'm guessing they're just part of your database name...? In that case, increasing the amount of prefixes allowed is not what you want, but rather something like this:
ALTER SCHEMA dbo TRANSFER [[email protected]].tablename
|
I am transferring a database from one hosting provider to another. The current provider uses the domain name as part of the user name. The domain name is a .co.nz domain. So some objects in the database have a fully qualified name of [email protected].
Im trying to alter the schema of these objects to put them into a ... | How to resolve Sql Server Error Message 117 - Too many prefixes for object name? |
you can use built-in Linux command date to name directory as you want,
for example
xtrabackup --backup --target-dir=/data/backups/inc`date +%Y%m%d` (rest options)
|
It says on the manual that if you want to create an incremental backup you can do it with the following command:
xtrabackup --backup --target-dir=/data/backups/inc1 \
--incremental-basedir=/data/backups/base --datadir=/var/lib/mysql/
where /data/backups/inc1 is the incremental directory. So now if I want to create a... | how can I create incremental backups with xtrabackup automatically |
You do not need to take a backup at your base time. Just enable flashback database, create a guaranteed restore point, run your tests and flashback to the previously created restore point.The steps for this would be:Startup the instance in mount mode.startup force mount;Create the restore point.create restore point bef... | Using Oracle 10g with our testing server what is the most efficient/easy way to backup and restore a database to a static point, assuming that you always want to go back to the given point once a backup has been created.A sample use case would be the followinginstall and configure all softwareModify data to the base te... | Backup/Restore database for oracle 10g testing using sqlplus or rman |
You ma try this redirect rule from old site's .htaccess:RewriteEngine On
RewriteCond %{HTTP_HOST} ^xyz\.lastdomain\.com$ [NC]
RewriteRule ^b/([\w-]+)/(.*)$ http://$1.nextdomain.com/b/$2 [L,NC,R=301,NE]This assumes all the paths start with/b/right after the domain name. | I want to change/redirect URIs with http/https in this way:from:http:// or https://xyz.lastdomain.com/b/custom/any-string/456?foo=barto:https://custom.nextdomain.com/b/any-string/456?foo=barthe custom string should be in the new URL and everything from b so as the end of the URI should be appended.I appreciate your hel... | Redirect and change URL with Apache/htaccess |
I believe AWS ELB, Route 53, etc., are considered NFVs, as these services are virtualized. What I mean is that when you create an ELB in AWS, nobody in their data center is physically installing a physical device for your ELB. Instead, a virtual ELB will just be created for your account. | What is the difference between the services AWS provides and Network functions virtualization(NFV)? are security groups, route53 and ELB considered NFVs? | What is the difference between AWS and NFV |
How do I create a new issue for an existing pull request or create the issue then assign it?There is no such thing than assignment in GitHub, just issue referencies.But you could create the issue and then easily add a link by just adding a comment in your pull request referring to the new issue using the synthax#idIssu... | There are questions and answers specifying how do the oppositenew pull requestto anexisting issue.I created a pull request on Github before opening an issue. Now I would like to assign an issue to this PR (i.e. a better way to start the conversation about what/why/how I am proposing a fix).How to I create new issue for... | How do you attach a new issue to an existing pull request on github? |
Problem solved: I didn't have a GitLab runner on my personal company profile. The other project was of a group that has a shared runner. | I've created a repo in gitlab for a Dockerfile.
In the .gitlab-ci.yml i defined two stages: build and push to the registry.This is the .gitlab-ci.yml file:image: docker
stages:
- build
- push
build:
stage: build
script:
- docker build --no-cache -t ${DOCKER_REGISTRY}/debian9-cunit .
push:
s... | Docker build failed: tag invalid reference format (Gitlab CI) |
You're right @Catalin, this is a known Sonar limitation : there is no hierarchical representation of the directory tree. | I am using sonar to analyze a c++ project.
When I want to browse the analyses for a particular folder in my project I've seen that only the files in the folder are shown and not files from a sub-folder of the folder.
Those files are shown separately in another "component" that is that particular sub-folder.
Is there a ... | Is there a way that components from sonar to includes file from subfolders? |
6
I had this same problem. elasticbeanstalk-nginx-docker-proxy.conf is referring to proxy_pass http://docker but the definition of that is missing. You need to add something like
# List of application servers
upstream docker {
server 127.0.0.1:8080; # you... |
I'm developing a web application with Play framework and I'm running it on AWS Elastic Beanstalk using a single docker container and a load balancer. Normally, everything is running fine, but when I rebuild the whole environment I get the following error:
Command failed on instance. Return code: 6 Output: (TRUNCATED)... | Deployment on AWS Elastic Beanstalk with Docker fails |
There is a project that accomplishes this:https://github.com/wearemolecule/route53-kubernetesA side note here, there are some issues with being able to select the TLD that this uses, it seems to use the first matching public recordset.Also this doesn't work with the internal ELBs. There was an issue opened under the p... | When creating a service of typeLoadBalanceron AWS, Kubernetes auto-provisions an elastic load balancer. I am wondering how I can automatically associate that load balancer with a Route 53 alias?Alternatively, can I make Kubernetes re-use an elastic load balancer (which I've assigned a Route 53 alias to)? | How should I automatically associate a Kubernetes-provisioned elastic load balancer with a Route 53 alias? |
The one and only source file for thek8s.io/code-generatorpackage has abuild constraintspecifying+build tools.Thego getcommand “resolves and adds dependencies to the current development module and then builds and installs them.”Since the only source file for the package you have requested does not apply to your configur... | I can't for the life of me figure out why this is doing this. Another guy claims this works for him and that I have an environment issue. Yet every other dozen projects are working fine for me.So just for the fun of it I started out with acompletely pristinego environment. (rm -rf ~/go)There is no go.mod/go.sum file. N... | Go mod download complaining about build constraints |
Well, as you found out involume.kubernetes.io/selected-node never cleared for non-existent nodes on PVC without PVs #100485- this is a known issue, with no available fix yet.Until the issue is fixed, as a workaroud, you need to removevolume.kubernetes.io/selected-nodeannotation manually. | I experiencing some issues when scale down/up ec2 of my k8s cluster. It might happen that sometimes I have new nodes, and old are terminated. k8s version is 1.22Sometimes some pods are in ContainerCreating state. I am trying to describe pod and see something like this:Warning FailedAttachVolume 29m attachdetach-control... | Kubernetes pods are stuck after scale up AWS. Multi-Attach error for volume |
According the Quick start of vundle, it can "Identification" the [email protected]:<USERNAME>/<REPONAME>.git way:
" non-GitHub repos
Bundle 'git://git.wincent.com/command-t.git'
Actually, not only for "non-GitHub repos", but also including GitHub repos.
It just only modify the format from:
Bundle 'gmarik/vundle'
Bund... |
I'm install git for windows 1.8.5.2 on my Widnows7.
Somehow, github.com can be connected by port 22 from my computer, for example:
[Marslo@MJ ~/Desktop]
$ ssh -T -p 443 [email protected]
ssh: connect to host ssh.github.com port 443: Bad file number
[Marslo@MJ ~/Desktop]
$ ssh -T -p 22 [email protected]
Hi Marslo! You'... | How can I using port 22 for vundle (vim bundle) in windows? |
then you would need to do it like you normally would in kubernetes.
Create a docker registry secret (set its type to kubernetes.io/dockerconfigjson) and make pod reference that secret, so add imagepullsecrets to pod spec.
FOr more details consult the link I've referenced
|
I want to use pulumi to set up ECS with an image from a private docker registry (GitLab). Is there a way to specify the secret in the container defintion?
I'm trying to set up a new ECS cluster (awsx.ecs.Cluster) with a Service (awsx.ecs.EC2Service) running a Task with a container (awsx.ecs.Container). The image for t... | Using image from private docker registry in pulumi on ECS |
Have you triedSET NOCOUNT OFF? | In SQL Server 2005, is there a way of deleting rows and being told how many wereactuallydeleted?I could do aselect count(*)with the same conditions, but I need this to be utterly trustworthy.My first guess was to use the@@ROWCOUNTvariables - but that isn't set, e.g.delete
from mytable
where datefield = '5-Oct-2008'
... | Counting the number of deleted rows in a SQL Server stored procedure |
According to themanual, ordering is important. Try re-ordering the two directives and usingmergeto prevent any duplicates:<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html A86400
</IfModule>
<IfModule mod_headers.c>
Header merge Cache-Control 's-maxage=604800'
</IfModule> | I currently have this in my htaccess.<IfModule mod_headers.c>
Header set Cache-Control 's-maxage=604800'
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html A86400
</IfModule>HTTP headers will show as...Cache-Control: s-maxage=604800
Cache-Control: max-age=86400
Expires: Wed, 18 Dec 2013... | Merging s-maxage and max-age |
It turns out that the minimalistic theme is really minimalistic ;)It only has a default layout and no includes, as they were being called in the other post files. After removing references to them and updating the Gemfile it works:https://github.com/cooperkong/cooperkong.github.io/pull/1Removing from front matterlayout... | I have push the new site tousername.github.io, and changedthemetojekyll-theme-minimalas suggestedhereBut I'm keep getting 'Page build failed' email from Github without any description to the cause, I'm really new to usingjekyll, maybe I have missed something,
This is the link to the site,https://github.com/cooperkong/c... | Suggested jekyll theme doesn't work on Github pages |
public boolean validateEmployeeRequestForm(String empCode) {
return empCode != null;
} | public boolean validateEmployeeRequestForm(String empCode) {
if ( null == empCode ) {
return false;
}
return true;
}Here on second lineif ( null == empCode )it gives meSonarexception below.Change this condition so that it does not always evaluate to "false".How to h... | Handle null condition (In sonar Change this condition so that it does not always evaluate to "false") |
mkdir clean_repo
cd clean_repo
git init
cp -r ../bad_repo/. .
git add
git commitThis will make a new repo, then copy files from old repo (minus the.git). To "fix" the GitHub repogit remote add origin[email protected]:antirez/redis.git
git push -f origin masterShareFolloweditedMay 11, 2013 at 19:33answeredMay 10, 2013 a... | I've read countless Q&As here about recovering a broken git repository.git gsck,git cat-file -s <sha1>,git gc --aggressive,git repack -a -fand on and on. I've even tried cloning again from the remote (github). I've tried them all and still get corrupt and missing files (yes, even on github).Can you help me just start... | Git can't find sha1 — Can I discard the history and just start fresh? |
In Prometheus, you can obtain the labels of the latest scrape usingtopk()andtimestamp()function:topk(1,timestamp(up{job="micrometer"}))This can then be used in Grafana to populate a (hidden) variable containing the instance name:Name: instance
Type: Query
Query: topk(1,timestamp(up{job="micrometer"}))
Regex: /.*instanc... | ContextWe have a Spring Boot application, deployed into K8s cluster (with 2 instances) configured with Micrometer exporter for Prometheus and visualization in Grafana.My custom metricsI've implemented couple of additional Micrometer metrics, that report some information regarding business data in the database (PostgreS... | Show metrics in Grafana from the Kubernetes Pod that was scraped last by Prometheus |
I used thepre-commitdocumentation as inspiration:https://pre-commit.com/#azure-pipelines-examplehttps://github.com/asottile/azure-pipeline-templates/blob/master/job--pre-commit.ymland configured the following Python pipeline with Anaconda:pool:
vmImage: 'ubuntu-latest'
variables:
CONDA_ENV: foobar-env
CONDA_HOME... | Althoughthis sourceprovides a lot of information on caching within Azure pipelines, it is not clear how to cache Python pip packages for a Python project.How to proceed if one is willing to cache Pip packages on an Azure pipelines build?According tothis, it may be so that pip cache will be enabled by default in the fut... | How to cache pip packages within Azure Pipelines |
You can use a .htacces file to do it before loading any php. Then the servers doesn't need to load the PHP scriptsRewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L] | how can we redirect "http://www.example.com" to "https://www.example.com" when any user types "http://www.example.com" in cakePHP ? | SSL Redirection in CakePHP |
I fixed the issue by giving cron Full Disk Access. For steps see this article:https://osxdaily.com/2020/04/27/fix-cron-permissions-macos-full-disk-access/ | I'm trying to schedule the following script to run daily via crontab to back up my notes folder:#!/bin/bash
date=$(date '+%Y-%m-%d')
backupDir="/Users/MYNAME/backups"
if [ -e "$backupDir/$date.zip" ]
then
rm -rf "$backupDir/$date.zip"
fi
zip -r "$backupDir/$date.zip" "/Users/MYNAME/Documents/notes/"When I run th... | shell script creates empty zip via crontab, works manually |
You can wrap such text in pre tags.<pre>Text I want left[email protected]</pre>I just tested this out on github.ShareFolloweditedJun 22, 2022 at 10:55Stephen Ostermiller24.7k1414 gold badges9393 silver badges111111 bronze badgesansweredMay 13, 2013 at 15:56Shawn BalestracciShawn Balestracci7,42011 gold badge3535 silver... | I'm having a hard time finding any real answer to this (really simple?) question on Google, and I'm starting to worry that there is no solution.I am learning GitHub markdown. I would like to show some example code that contains fake email address like[email protected]. But GitHub insists on auto-linking this text. I al... | How do you display a section of plain text in GitHub markdown? |
you should check Network Kernel Extensions here:http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/NKEConceptual/intro/intro.html%23//apple_ref/doc/uid/TP40001858-CH225-DontLinkElementID_68ShareFollowansweredFeb 2, 2011 at 0:13mcFactormcFactor23111 silver badge55 bronze badgesAdd a comment| | Microsoft provides the Layered Service Provider as part of Winsock 2 which makes it relatively easy to develop a user-mode network filter. I am looking to port an HTTP content filter LSP to Mac OSX, and am looking for ways to do the implementation. Is there any similar interface in Mac OSX, or is this something that ca... | How to develop something similar to LSP for Mac OSX |
So the issue was that at the top of the dump the text on line one is:1 mysqldump: [Warning] Using a password on the command line interface can be insecure. | cross postHi, it’s weird because it always worked for me and now I keep getting an error:ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘mysqldump: [Warning] Using a password on the command line interfac... | error when trying to restore a dump file into a mysql docker image |
I know this question is getting old, but I recently had a similar problem with Bitbucket's webhook to Jenkins that would send out notifications of push changes for tags. I tried configuring the hook not to send those, but it never worked.After much trial and error, the only thing that worked for me was to set the "Bran... | I have users who need to trigger jenkins jobs on Github (Enterprise) pushes. So all I have access to are Webhooks, and the Git Service hooks. These hooks push even if the only commit was a tag.Some users auto-tag their builds if they succeed, this auto-tag causes a new webhook to fire and it triggers their build again... | Jenkins: Don't want to trigger on Git Tag (No Workspace) |
The same solution exists in services:
docker service rm $(docker service ls -q)
|
I want to remove all services I created in a Swarm:
To remove all the containers I used:
docker rm -f $(docker ps -a -q)
Is there a way to remove all the service with one line ?
I don't have a stack:
so docker stack rm STACK_NAME won't work.
| How to remove all services in Docker Swarm |
15
I have to use both options --gzip and --archive
mongorestore --uri="uri" --gzip --archive=/Path/to/archive/abc.gz
Share
Follow
answered May 26, 2022 at 16:59
BằngBằng
59677 silver badges... |
I'm trying to run mongorestore through docker to restore the database to another dockerized mongo on the system:
sudo docker run --net=host -v $PWD:/home/mongo mongo /bin/bash -c "mongorestore -d venko /home/mongo/mongo_venko_20200326230306.archive"
but I get
2020-03-27T00:17:32.645+0000 the --db and --collection ... | mongorestore file X does not have .bson extension |
Not a proper answer but it's something; by using tensorflow'smixed precision trainingI was able to reduce the "device-to-device" time to ~ 145ms. This is still an immense burden compared to everything else profiled and I'd love to be able to reduce it further.I don't know why this helped either. I assume that mp-traini... | I profiled a model that I am running and the vast majority of the time in each step (295 of 320ms) is being taken up by "device-to-device" operations (see image). I assume this means loading data from my cpu onto my gpu and back is the bottleneck.I am running this on a single machine. The data is stored on an SSD and b... | tensorflow how to reduce high "device-to-device" load |
Ok after some sleep (perhaps this helped) I just figured it out.Setup your github organization folderGo to Github and go to your ORGANIZATION->Settings->webhooks and add the webhook url (with user:password@, that was defined at Manage-Jenkins->Configure-System->Github hooks url) with your shared secret.Push something i... | I'm trying to setup our organization on jenkins.
So far I got three different methods and all are lacking some features:add single jobs for each repo, is working fine with github webhook and build on pushes, but for each new branch/PR I need to add it manually, thats not an optionadding workflow pipeline, is getting a... | Jenkins-CI github push triggers |
51
requests is not a standard library in AWS lambda.
So two ways to solve this:
1- Import it from the Botocore libraries stack as: (Option to be deprecated after the answer was given)
from botocore.vendored import requests
Here there is a list of all the available librar... |
I am fairly new to AWS and I am having some issues. Here is my code:
from __future__ import print_function
from urllib2 import Request, urlopen, URLError
import requests
import boto3
import json
def lambda_handler(event, context):
url = "https://globalcurrencies.xignite.com/xGlobalCurrencies.json/GetHistoricalRat... | AWS python lambda function:No module named requests |
Tags must follow the following regex ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
https://docs.aws.amazon.com/directoryservice/latest/devguide/API_Tag.html
The only way to 'get around it' would be to not use the character. You could encode it but at that point... probably best to just not use it.
|
We are using tagging in S3 for some files, however, if we use an "& " character in the value of the key value pair, I get the following error
"The TagValue you have provided is invalid"
Any ideas on how to get around this to work in S3?
Here is the code we are using with the AWS Sdk
var documents = await GetDocume... | S3 Tagging Error - The TagValue you have provided is invalid |
Yes that is correct, once a lambda function does not receive any traffic for a period of time (in my experience approximately 15 mins), the container is destroyed and the next request will result in a new container being started (known as a cold-start).One thing to note however, is that lambda containers can be shut do... | It is said that lambda shutdown the container when there is no traffic and when first request came after long time, there is a cold start problem. Is that right? Eg. If I am running a drop wizard application on AWS lambda, will the server gets shutdown if no traffic is coming and it will again starts the server on firs... | Does Lambda shutdown the entire container when the traffic is zero? |
While theAPI GET/eventsremains the main solution (possibly from different users as commented), there is animportant change from August 2018:Public events API delayed by five minutesThe public events API is now delayed by five minutes.As a result, when you query the API, the most recent event returned will have occurred... | I've looked atGET /eventsbut it returns all events not just push events which I'm interested in.I've read about webhooks and thispushEventin particular but that can be configured to only a repository to get notified if pushed to that one repo.But I want to get post requests like webhooks for all push requests across al... | How to get realtime push events from Github in all public repositories of all users? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.