Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Thanks to all. My ports were reversed:> docker run -p 9191:80 my:apache | I'm a newbie at docker. I'm creating a Hello, World example. All I'm trying to do is bring up Apache in a docker and then view the default website from the host machine.DockerfileFROM centos:latest
RUN yum install epel-release -y
RUN yum install wget -y
RUN yum install httpd -y
EXPOSE 80
ENTRYPOINT ["/usr/sbin/h... | docker: Says connection refused when attempting to connect to a published port |
Try to add following headers, hope that this will help:server {
location / {
proxy_pass http://webservers;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}Fullofficial instructionabout how to setup Django Channels + Nginxc... | I have setup a Django application with Nginx + uwsgi. The application also uses django-channels with redis. When deploying the setup in an individual machine, everything works fine.But when I tried to setup the app in 2 instances and setup a common load balancer to coordinate the requests, the request get properly rout... | Django channels daphne returns 200 status code |
This feature works only for Mac and Win Docker, so if you are running it on Linux -it's not gonna work.Linux support for this hostname has been implemented and is likely coming in the next days/weeks:docker/libnetwork#2348There are still some workarounds, while it's not released for LinuxI.you can create a file named .... | I am trying to deploy spring boot application on kubernetes and connect to postgres which is on my localhost.Spring boot deployment is fine.
for postgres i did askind: Service
apiVersion: v1
metadata:
name: postgres
namespace: default
spec:
type: ExternalName
# https://docs.docker.com/docker-for-mac/networking/... | java.net.UnknownHostException: postgres |
I'd just drop the database and then re-create it. On a UNIX or Linux system, that should do it:$ dropdb development_db_name
$ createdb development_db_nameThat's how I do it, actually. | I'm writing a shell script (will become a cronjob) that will:1: dump my production database2: import the dump into my development databaseBetween step 1 and 2, I need to clear the development database (drop all tables?). How is this best accomplished from a shell script? So far, it looks like this:#!/bin/bash
time=`dat... | Postgres: clear entire database before re-creating / re-populating from bash script |
According to documentation, you might use #cleanuphttp://api.rubyonrails.org/classes/ActiveSupport/Cache/FileStore.html#method-i-cleanupYou could, for example, schedule a cron job to run it periodically on your hosts
./script/rails runner -e production 'Rails.cache.cleanup'ShareFollowansweredDec 31, 2014 at 23:47robinw... | I have a rails app which uses disk cache for the now default Russian-doll caching. I have no trouble with invalidating the cache and my cache strategy is working to my requirements, however I have to find a proper way to delete the expired entries from the disk. As documented the disk cache keeps on growing until it is... | Clearing expired cache entries from disk cache on Ruby on Rails 4 |
CrashLoopBackOffmeans that your pod continues on crashing and gets restarted and crashes again.Depending on the point of crash, for example soon at startup or later during the execution of your app, you may or may not see the logs.In this case (no logs shown) it's likely that your pod has NOT some requested resources a... | I am trying to run a simple image on a specific namespace to debug some issueskubectl run busy --image busybox --namespace my-local-dev
deployment.apps/busy createdHowever for some reason the container keeps restartingbusy-67b577b945-ng2lt 0/1 CrashLoopBackOff 5 3mand I am unable t... | kubernetes: no log retrieved by kubectl |
Check AWS CLI version:aws --versionIt looks like the AWS CLI needs update.
To upgrade an existing AWS CLI installation, use the--upgradeoption:pip install --upgrade awscliIf you have pip3 then.pip3 install --upgrade awscliorsudo pip3 install --upgrade awscliAlso remember thataws sts assume-role --role-arnhas expiry tok... | I am trying to embed a QuickSight Dashboard and am following the current steps.https://aws.amazon.com/blogs/big-data/embed-interactive-dashboards-in-your-application-with-amazon-quicksight/I'm at step 3 and able to assume the role and,export AWS_ACCESS_KEY_ID="access_key_from_assume_role"
export AWS_SECRET_ACCESS_KEY="... | AWS QuickSight Embedding CLI error - aws: error: argument command: Invalid choice, valid choices are: |
Generally speaking, a variable that takes upnbytes can be read / written more effectively from memory if it resides at an address divisible byn. On some processors (notably, not x86) attempting to read / write in an unaligned manner can cause a hardware trap.So while packing a structure can reduce its size, it typical... | I am trying to understand why alignment matters when dealing with data structures and why would it affect memory access performance. I stumbled upon a C syntax,__attribute__((packed));which what I understand, signals the compiler to not pad extra bits for alignment.Say:struct sampleStruct{
uint8_t foo;
uint8_t ... | Does `__attribute((packed))` affect the alignment of other data structures? |
You do not have to manually free memory that you use.
Perhaps this is useful also.
garbage collection
The process of freeing memory when it is not used anymore. Python performs garbage collection via reference counting and a cyclic garbage collector that is able to detect and break reference cycles.
Sample on allocati... |
In Python, when you write x=10, it reserves a memory location and essentially stores 10, right? Then, if you write x=20 will 20 replace the value of 10 (like C/C++ does) or will it write 20 to a new memory location and consider the old 10 as garbage?
Thanks in advance ;)
| Will making a new assignment for a variable in Python will change the old address of the variable? |
You have to use withAccess parameter for set method
Possible values you can look on officialKeychainSwift github here
https://github.com/evgenyneu/keychain-swift/blob/master/Sources/KeychainSwiftAccessOptions.swift
You need some access value with ThisDeviceOnly ending to it not be synced over devices.
|
I use KeychainSwift to save my data on keychain, my problem is, when the I backup and restore my app, from Device A to Device B, those data from Keychain was included on the transfer.
The question is, how can I prevent it from happening and make my keychain stay only on Device A?
This is my code on Saving data into th... | How to prevent keychain data to be included in backup and restore process of the devices when using KeychainSwift? |
Your source command is in a RUN, so it is forgotten in the next command
|
I'm trying to install rbenv in a centos container using this tutorial.
When i run these commands in bash myself they work but when using docker build i get the error below.
FROM centos:latest
RUN yum install -y sudo git vim git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel open... | Error running commands with Dockerfile |
You haven'tspecified how to build the project. For a C project, the default is the standard autotools-style./configure && make, but your project doesn't have a configure script (or a Makefile).You can just add something likebuild: cc file1.c file2.c …To call the C compiler directly, but if you want the project to be u... | travis CI did not work with C compiler..travis.yml :sudo: required
language: c
os:
- linux
compiler:
- gccGitHib repo link:Algorithmstravis CI error:travis_time:end:0dcb3648:start=1438359476527442359,finish=1438359476614557866,duration=87115507
[0K$ cd piyush-maurya/algorithms
$ git checkout -qf 37da548d8f6e1c... | travis CI did not work with C compiler on GitHub? |
If you use a date format likedate +"%d-%m-%Y_%H:%M"in your crontab you may need to escape the%characters with a backslash, like this:date +"\%d-\%m-\%Y_\%H:\%M".Many crons handle%specially by replacing them with newline and sending the following text as stdin to the command before it. Seeman 5 crontabfor details. | I'm running a cron every 6 hours to backup my database.
I want the filename to contain the date & time it was created in the following format:mysqlbackup_22/5/2013_15:45.sql.gzThis is the command I run:date=`date -d`; mysqldump -uusername -ppassword dbname | gzip > /path/to/dir/mysqlbackup_$date.sql.gzWhat do I need to... | Date time format in UNIX crontab |
You need to add the RESOLUTION attribute to your master playlist in the EXT-X-STREAM-INF tag. This is optional in https://www.rfc-editor.org/rfc/rfc8216#section-4.3.4.2 but it's required by the quality selector UI plugin.
See: https://github.com/chrisboustead/videojs-hls-quality-selector/issues/8
Nginx RTMP module con... |
I am using Nginx for live adaptive bitrate streaming. My live streaming is working fine.
Also, the chunks are getting created and the master playlist is also getting created as you can see in this image.
My config
application live {
live on; # Allows live input
exec_push ... | nginx live adaptive bitrate streaming:- not able to switch quality manuallly? |
I solved this by putting all variables in one line.Like this-@ID_IMAGE_NAME="id-svc:" ID_IMAGE_TAG="1.0" \
PING_IMAGE_NAME="ping-svc:" PING_IMAGE_TAG="1.0" \
docker-compose up -d ping idHerepingandidis my container name.Maybe the issue was every time I'm upping docker-compose. | In my docker-compose file, there is more than 3 service. I am passing two-variable from docker command with a makefile. But I'm facing a problem - after executing first command similar second command not executing.See this example for better understanding-The docker-compose file is -version: '3.7'
services:
... | Passing variable from makefile to docker compose file? |
I just followed this blog post -https://www.robustperception.io/writing-json-exporters-in-python. | I am new to prometheus and a little confused as to how I might be able to get the following metrics inserted into prometheus so I might be able to display them to grafana. The idea is to poll every a rest api from a service I have that returns info every 5 minutes.The result of the post request looks like the following... | Adding metrics to Prometheus |
Hi you are doing the right way.
I mean the:kubectl get pods,svc -o widewill effectively show you the pods and services and their IP. If the line is empty though, it is because there is no such IP in services or pods in your cluster workoads. two things to check:maybe the IP has changedmaybe this logs come from an IP in... | I've noticed some logs in my Zabbix, telling me that some random IP, from my private subnet, is trying to log in asguestuser. I know the IP is10.190.0.1but there are currently no pods with that IP. Does anyone have any idea how to see which pod had it?The first thing I thought of, is looking and GCP Log Exporter, but w... | Kubernetes, see what pod has some specific IP address |
To get number of currently open TCP connections, you can usenode_netstat_Tcp_CurrEstab(Gauge) metric.you can also usenode_netstat_Tcp_ActiveOpens(Counter) metrics with appropriate rate such asrate(node_netstat_Tcp_ActiveOpens[10m])These metrics are based onTCP-MIB (RFC-4022)and they are obtained by parsing/proc/net/net... | I am using this command in linux to see (currently) established TCP connections:netstat -ant | grep ESTABLISHED | wc -lHow can i translate this command to PromQL (per node) ?I am using prometheus with node exporter in my kubernetes cluster | How I get the number of (currently) established TCP connections in prometheus (kubernetes monitoring) |
In Luigi you have events. I guess that you can use the event of failure and manage the error in there. You can generate the file that will work as a checkpoint for the failed task and log the message that you prefer.Official documentation:https://luigi.readthedocs.io/en/stable/tasks.html#events-and-callbacks@luigi.cont... | I am beginning to use Luigi.
I have build a pipeline that does several tasks, and I have been careful enough to make sure the tasks work well. So the pipeline works well.
While building the pipeline, in the times that tasks had failures, they got reported with:(and I edited them till they work fine.So let's say I have ... | how does luigi handles task failure? |
The progress bar is shown on jobs that define the attribute environment
Here's an example of how to use it:
jobs:
deploy:
runs-on: ubuntu-latest
environment: Production
steps:
- run: ./deploy.sh --env prod
|
I am writing some GitHub actions for my project and I would like to have the orange progress bar to track the progress of my action.
| How can I add progress bar to my github action |
If you haveGit for Windows, you have 200+ Linux command accessible in<Path\to\GIt>\usr\binThat includes commandrm.exeYourClean-reportssteps can then become:rm -Rf cypress\reports && ...That command would be interpreted in a Linux environment. | I am working on a cypress project. The package.json has commands to delete old report folder and create new folder with same name.I achieve this by using windows commands in package.json:“Clean-reports”: “rmdir /s /q cypress\reports && mkdircypress\reports”
“Test”:”npm run Clean-reports && cypress run”But when running ... | Gitlab pipeline fails since the package.json has windows commands |
I suggest that you apply a bucket policy1 to the bucket where you want to store public content. This way you don't have to set ACL for every object. Here is an example of a policy that will make all the files in the bucket mybucket public.
{
"Version": "2008-10-17",
"Id": "http better policy",
"Statement... |
I have uploaded some files using the Amazon AWS management console.
I got an HTTP 403 Access denied error. I found out that I needed to set the permission to view.
How would I do that for all the files on the bucket?
I know that it is possible to set permission on each file, but it's time-consuming when having many fi... | Amazon S3 Permission problem - How to set permissions for all files at once? |
If you have a Gradle build,as mentioned in theREADME, you just add:dependencies {
compile 'me.drakeet.materialdialog:library:1.2.2'
}As explained in theblog post, this looks like (in Android Studio) | I am trying to use material designing libraryhttps://github.com/drakeet/MaterialDialogfrom github in my eclipse but I didnt found any jar file in this library project. So how can I use this library in my project in eclipse | How to import github library in eclipse |
From the comments, it sounds like you got this to work.Traffic to service IPs is forwarded via kube-proxy, either through a user-space proxy or through iptables rules, depending on the Kubernetes release version and configuration. You may want to look at the iptables rules for the node corresponding to that container t... | I am runningkubernetes single node on coreos.I have created a pod running a python application and exposing an http endpoint.I have created a kubernetes service that exposes the HTTP endpoint. I have exposed this service using NodePort and can call it successfully from outside the cluster.What I am then trying is to ca... | Unable to use curl and service name from inside kubernetes pod |
Basically you create a new.htaccessfile in your sub directory to override the root one. There are more details regarding this described in this question:How to remove .htaccess password protection from a subdirectoryHope it helps.ShareFolloweditedMay 23, 2017 at 11:45CommunityBot111 silver badgeansweredSep 25, 2013 at ... | I have an htaccess file that's being used to password protect a file named wp-login.php (used by Wordpress for login).Here's what the htaccess looks like:ErrorDocument 401 "Authorization Required"
<FilesMatch "wp-login.php">
AuthName "Restricted"
AuthType Basic
AuthUserFile /home/username/.wp-admin
require valid-user
<... | how to prevent htaccess directive from cascading to subdirectories |
Turns out Codeigniter sets its own max size. I haven't figured out how to limit that, but changing nginx won't change anything unfortunately. Thanks for all the help VBart and gsharma. | "upstream sent too big header while reading response header from upstream"I keep getting this when I try and do an authentication from facebook. I've increased my buffers:proxy_buffer_size 256k;
proxy_buffers 8 256k;
proxy_busy_buffers_size 512k;
fastcgi_buffers 8 256k;
fastcgi_buffer_size 128k;But it doesn't see... | nginx big header response |
+50Is there a way to perform that operation through terraform?There might be some edge cases where there is a solution to this. Since I am not familiar with kubernetes inside DigitalOcean I can't share a specific solution.As an alternative options, is it possible to "manually" update the terraform state in order to syn... | I successfully maintain a kubernetes cluster in digital ocean throught terraform. The core cluster configuration is the following:resource "digitalocean_kubernetes_cluster" "cluster" {
name = var.name
region = var.region
version = var.k8s_version
vpc_uuid = digitalocean_vpc.network.id
node_pool {
... | Update the node size of a digital ocean kubernetes cluster without replacing the whole cluster |
If you fetch the commit via the Repository Commits API, the response will include a files array with the list of changed files:
https://developer.github.com/v3/repos/commits/#get-a-single-commit
|
I am trying to use the GitHub API to grab all files changed by a particular commit, but I don't see a good way of doing it.
In other words, whats the equivalent of git show --name-only sha1 in the GitHub API?
| Grab files changed by commit from GitHub API |
Interesting question. In this case the value2will be a literal in the instruction in your SYCL kernel - this is as efficient as it gets, I think! There's the slight complication that you have an implicit cast frominttofloat. My guess is that you'll probably end up with afloatliteral2.0in your device assembly. Your SYCL... | I'm studying SYCL at university and I have a question about performance of a code.
In particular I have this C/C++ code:And I need to translate it in a SYCL kernel with parallelization and I do this:#include <sycl/sycl.hpp>
#include <vector>
#include <iostream>
using namespace sycl;
constexpr int size = 131072; // 2^17... | How to optimize SYCL kernel |
Microsoft should have fixed this by now for real ingresses. However, apparently the fix doesn't cover our case where Nginx runs as a pod behind a service with advanced networking. We were told to use the workaround posted by denniszielke inhttps://github.com/Azure/AKS/issues/607where the iptables for all nodes are upda... | We have two AKS clusters for different environments. Both use a Nginx server as a custom ingress. By that I mean that it acts like an ingress, but it is just a normal Nginx deployment behind a service. There are several good reasons for that setup, the main one being that ingress did not exist in AKS when we started.Th... | Unable to get real remote IP in AKS with advanced networking |
The two viable options you have, you already described in your comments.One is to use Azure VM and IIS (I don't like it) - there you know what to do.The other one is to use a Web Role (Cloud Service) and do the things described in thelink you refer to. I advise you to take the Web Role path.Or third option, is to wait ... | I deployed myMVC 4application onAzure, installed own CA, create self-signed certificate and certificate for server (https working good). How can I activaterequire client certificatessigned by my CA and working only with it? | Request client certificate by site on Azure |
Yes, it is possible. You have to pay attention that all tensors are on GPU. In particular, by default, constructors like torch.zeros allocate on CPU, which will lead to this kind of mismatches. Your code can be fixed by constructing with device=x.device, as below
import torch
def char_OneHotEncoding(x):
coded =... |
I'm trying to do one hot encoding on some data with pyTorch on GPU mode, however, it keeps giving me an exception. Can anybody help me?
Here's one example:
def char_OneHotEncoding(x):
coded = torch.zeros(x.shape[0], x.shape[1], 101)
for i in range(x.shape[1]):
coded[:,i] = scatter(x[:,i])
return co... | Can we use pytorch scatter_ on GPU |
I would do rather use the functionality of the android environment
You could setup a (base) library android project and N depending (gui) project.
The depending projects may have own code and resources.
Each project will probably use an own trunk in git
|
I am a android developer, and I'm developing an application that have multiple user interfaces.
Question: What is the best practice for maintaining multiple interfaces on github ?
Thanks for help :D
| Github best practices - How to maintain multiple user interfaces |
DocsIn general, if it's a standard resource, the best way is to consult the official documentation for all the fields of the resource.You can do this withkubectl explain. For example:kubectl explain deploy
kubectl explain deploy.spec
kubectl explain deploy.spec.templateYou can find the same information in the web-based... | I'm working on composing yaml file for installing Elasticsearch via the ECK operator (CRD).Its documented here -https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-elasticsearch-specification.htmlAs one goes through the sub-links, you will discover there are various pieces through which we can define the configura... | Whats the best way to compose yaml file for Kubernetes resource? |
<div class="s-prose js-post-body" itemprop="text">
<p>Have you checked <a href="https://serverfault.com/questions/69092/apache-w-mod-proxy-or-static-media-server-in-front">this</a>?</p>
<p>If I am not mistaken you are trying to use Apache+nginx the wrong way.
Nginx should be the first one serving requests and pass back... | <div class="s-prose js-post-body" itemprop="text">
<p>I'm kinda new to server deployment stuff, so please bear with me for this noob question. My webapp run on apache while I'm serving the static files from nginx. So far so good. I want that users should be able to access some static files by accessing the apache direc... | apache reverseproxy not working @noob |
Don't use Unicode, use Windows-1252 encoding:
chcp 1252
set destination=e:\backup\utorrent\%date%backup\
mkdir "%destination%"
copy "d:\Programok\utorrent\aktuális\*.dat" "%destination%"
|
I just want a simple script to backup some files with task scheduler, but copying just wouldn't work in a batch file.
I want something like this:
chcp 65001
set destination=e:\backup\utorrent\%date%backup\
mkdir "%destination%"
copy "d:\Programok\utorrent\aktuális\*.dat" "%destination%"
But even this doesn't work in ... | My windows batch script for copying files doesn't work, why? |
The idea behind feature branches is they should only contain a small, atomic change. This change should, in theory not cause merge conflicts due to its very nature.
If a feature is introducing merge conflicts I would be more inclined to examine what you consider to be "a feature".
The way I have experienced this being... |
We are in the process of outlining and preparing for a Git integration and we are implementing a similar design to the following link.
http://nvie.com/posts/a-successful-git-branching-model/
The issue we are running into is when you commit and push to the 'develop' branch or continuous integration branch, since we hav... | How to handle Git continuous integration merge conflicts |
You could add aGitHub Actionin your repository, which wouldcheckout your repository, on demand, when youtrigger it manually.That same GitHub Action ca, execute any command you want inside the checked out repository (on Azure server: no need to download the code).TheGitHub Actions for VS Codecould be used to trigger tha... | I use the vscode extension to modify code in a github depot but i would like to know if it is possible to execute the code without downloading it | Execute code in a github remote depot vscode |
you should probably use files tag and not command:commands:
create_post_dir:
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/99_make_changes.sh":
mode: "000777"
content: |
#!/bin/bash
mkdir -p /var/app/cu... | I'm running a Rails 4.2 app on Elastic Beanstalk, and need to set log permissions and create the /tmp/uploads folder (plus permissions) after deploy.I was running two ebextensions scripts to do this, but on some occasions they would fail because the folder /var/app/current/ didn't yet exist.I'm presuming this is becaus... | Elastic Beanstalk: what's the best way to create folders & set permissions after deploy? |
But why is it displayed as below when creating a pull request?The article "Setting up continuous integration with GitHub" fromStanley Ndagi(twitter) points out to:Click the settings cog next to the repo name:In Advanced Settings, notice thatOnly build pull requestsis turned off.This means that every push to GitHub will... | I work with github and circle ci.Is the workflow of circle ci executed when a pull request is made?Or will it be executed when merged?In the latter case, what if I want to test when pull request?I think it will be executed when merged.But why is it displayed as below when creating a pull request? | When does the circle ci workflow run? |
repopermission is needed.repo- Grants read/write access to code, commit statuses, collaborators, and deployment statuses for public and private repositories and organizations.https://developer.github.com/v3/oauth/#scopes | What API permissions do I need to change status of commits in pull requests received from users?Currently I'm usingrepo:status- but that gives me access to commit status only on my own repos. I'm building a ci service - like travis, circleci. Not sure, how they can change status in pull requests | What API permissions do I need to change status of commits in pull requests |
The usual thing is:git remote prune originwhich should clean up the whole business. | I have a branchtestin local, and then push it to GitHubgit push -u origin testthen this branch is merged into master and deleted using Github'sDelete branchby admin.Then I delete this local branchgit branch -d test, but it still shows inbranch -vaasremotes/origin/test, and cannot be delete bygit push -u origin --delete... | Is it safe to delete branch file under .git/refs/remotes/origin/ which is already deleted on remote? |
The Dockerfile on the hub gets updatedafterthe build runs. Also, the pending for the build means it just hasn't run yet. Sometimes it takes a while. Do you have your github account Linked in the Settings section of the Docker repository? You can reach the status page to see if anything is broken here:https://status.... | I have created a Dockerfilehereand set up automated build for it on the docker hub, but nothing seems to happen. The build just shows "pending" and theDockerfileon docker hub is empty. What am I doing wrong? | Docker automated build shows empty Dockerfile |
4
I solved the problem by doing some smarter memory management. In particular by using a CustomList according to the suggestions on http://www.simple-talk.com/dotnet/.net-framework/the-dangers-of-the-large-object-heap/
Share
Improve this answer
... |
A memory intensive program that I wrote ran out of memory: threw an OutOfMemory exception. During attempts to reduce memory usage, I started calling GC.GetTotalMemory(true) (to write the total memory usage to debug file), which triggers a garbage collect.
For some reason, when calling this function I don't get an out ... | Why does running out of memory depend on intermediate calls to GC.GetTotalMemory? |
I was using Laradock before installing Laravel Sail. Maybe there were some conflicts. So I backed up all my databases, then I removed all containers using this code. sudo docker rmi -f $(docker images -a -q). Then installed fresh Laravel project and it worked.
Please read my below comment as it is was a better solutio... |
Hi i tried to install fresh Laravel project using
Laravel Sail
docker environment. First it was showing me "Docker is not running" error. Then i found out, i needed to start docker as rootless. I solved it, reading this url: [https://docs.docker.com/engine/install/linux-postinstall/].
After that, I successfully instal... | Laravel Sail is not working properly in Ubuntu 20.04 LTS |
You have allocated memory for an array of pointers. You need to allocate the memory for each element to store the string
e.g.
#define NUM_ELEMENTS 10
char **devices;
devices = malloc(NUM_ELEMENTS * sizeof(char*));
for ( int i = 0; i < NUM_ELEMENTS; i++)
{
devices[i] = malloc( length_of string + 1 );
}
|
gcc 4.4.3 c89
I have the following source code. And getting a stack dump on the printf.
char **devices;
devices = malloc(10 * sizeof(char*));
strcpy(devices[0], "smxxxx1");
printf("[ %s ]\n", devices[0]); /* Stack dump trying to print */
I am thinking that this should create an char array like this.
devices[0]
devi... | stack dump accessing malloc char array |
If you are loading a page on HTTPS all resources should be loaded using HTTPS. No resources will be allowed to load using HTTP if the page was loaded on HTTPS. | After installing ssl certification in the website, it is showing a shield symbol with a warning "This page is trying to load scripts from unauthorized sources". How to resolve the issues? Should i change all the http to https through out the project or any other ways are there to resolve this issue? | This page is trying to load scripts from unauthorized sources |
The only restriction on where a Dockerfile is kept is that any files you ADD to your image must be beneath the Dockerfile in the file system. I normally see them at the top level of projects, though I have a repo that combines a bunch of small images where I have something liketop/
project1/
Dockerfile
proje... | I am gaining knowledge about Docker and I have the following questionsWhere are Dockerfile's kept in a project?Are they kept together with the source?Are they kept outside of the source? Do you have an own Git repository just for the Dockerfile?If the CI server should create a new image for each build and run that on t... | Where to keep Dockerfile's in a project? |
If you've made a commit that's deleted all files from your remote repository, and you've got a new local repository with a completely different commit history started from scratch, then why not just force push your new branch to the remote?First backup your remote master.git checkout -b oldmaster origin/master
git push... | I was working on a online Github repo I created.I had to go offline for a month, and during this time I thought to redo the repo from scratch. So I created a new local repo on my system using the Windows Github app. Screenshot at bottom.I now have internet and want to push it to the my online repo. I already did a comm... | Github, created new local repo for new work, want to push/merge to online |
Ansible service module try to guess the underlying init system.
In your case of the phusion/baseimage docker image, it finds /sbin/initctl, so the module simply launch /sbin/initctl stop nginx; /sbin/initctl start nginx inside the container which does nothing as the init system is changed in this image (my_init).
So t... |
I use Ansible in order to provision a Docker container with Vagrant.
My Ansible file contains the following section to start nginx:
- name: nginx started
service:
name: nginx
state: restarted
From what I understand, this section should restart nginx in all cases, but when I connect via SSH to the container,... | Ansible service restart does not work |
0
This specific error has nothing to do with this being a standby server.
Rather, you forgot to use the -U option to specify the database user, so pg_dump assumes it is the same as the operating system user.
Don't use the root user for anything but administrative activities... |
I have setup PostgreSQL hot stand by replication on Ubuntu. I need to know if master DB server is down, then how to get the backup from the slave.
I have tried this command
pg_dump testdb > /var/lib/postgresql/20190306.bak -p 5433
I got this error:
pg_dump: [archiver (db)] connection to database "channeldb" failed:
F... | How to get the PostgreSQL db backup from slave if master down |
8
you were supposed to grant stan to rds_superuser in order to do that. You did:
rds=> create user stan;
CREATE ROLE
rds=> CREATE DATABASE foobar WITH OWNER = stan;
ERROR: must be member of role "stan"
you should:
rds=> grant stan to su_rdsadm;
GRANT ROLE
rds=> CREATE D... |
I just created a new postgres RDS instace on aws (through the dashboard), and I gave it a default user, lets call him "jack".
When I logged in to the instance, I saw my created user "jack", and that he had a role "rds_superuser" attached. (so I thought that I can do the same things that I used to do with superuser on ... | rds_superuser role in postgres RDS server |
21
Yes, just add it to the root users' crontab; run the crontab -e command.
The places cron stores its files can be a little bizzare, so use the crontab -e command which will make sure it's in the right place, and I believe it checks the syntax.
Share
Improve this... |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog... | Is it possible to make a Bash file run as root in crontab? [closed] |
I didn't find a traditional way to fix the dup TrueClass, but I found a good enough way around it so I can develop locally without having to switch those paths each time.In the guide for gh-pages to jekyll here:http://jekyllrb.com/docs/github-pages/They specifically state to not have a trailing slash on your baseurl in... | I'm using gh-pages for depoyment for my jekyll site.I've been trying to develop without having to delete/add the {{ site.baseurl }} paths back in before all the css, js, and img files for my sources every time I want to serve jekyll locally.I'm getting a little stuck here as everyone says to pass an empty string like t... | Jekyll serve --baseurl '' returns error:can't dup TrueClass. Use --trace to view backtrace |
TheAvailablefield shows the number of replicas or pods that are ready to accept traffic and passed all the criterion such as readiness or liveness probe or any other condition that verifies that your application is ready to serve the requests coming from user. | I may have a stupid question but could someone explain what "Available" correctly represent in DaemonSets? I checkedWhat is the difference between current and available pod replicas in kubernetes deployment?answer but there are no readiness errors.In cluster i see below status:$ kubectl get ds -n kube-system
NAME ... | What is 'AVAILABLE' column in kubernetes daemonsets |
You need to pass the--with-registry-authflag ondocker service createto pass your credentials.Authenticate if you're not logged in to your private registry
(docker login ..)Create your service:docker service create --with-registry-auth --name my-service my_repo/image:latest | As a docker beginner, I have built a swarm cluster on 5 Linux server. (docker version 17.12.0-ce)But when I create a service, I seedocker service pscommand shows"pulling image failed" error="pull access denied for registry.xxxx.xxx.I'm using a private registry which should be usedocker loginat first.So, how to do the l... | docker swarm create service failed when pull images from private registry |
I believe that Github calculates users based on email address.So if you add that wildcats.unh.edu address to your user account on Github, those commits should be attributed to you. | I have a github repo from a few years ago that had 247 commits and 5 contributors. However the majority of commits from one of those contributors wasn't from github, rather via a Git Bash CLI that I would push from more or less anonymously.Problem:The graph view in github is only showing the commits from registered Git... | Github Anonymous Commit history |
(2) is not OK. -drain and -release are equivalent (in a ref-counting environment), and aftering -draining the autorelease pool is deallocated. So you will double-release the autorelease pool object and crash the program.
Even before ARC, unless you are working in a very tight memory budget, it's atypical to create an... |
I'm new to Objective-C and I'm not sure if I'm using NSAutoreleasePool the right way.
If I want to use autorelease only one time I use:
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *newText = [NSString stringWithFormat:@"%d", prograssAsInt];
sliderLabel.text = newText;
[pool release]; //newTex... | Is this the right way to use NSAutoreleasePool? |
2
This limit is in place to prevent a single user from using too many resources, so it's not likely that it will be raised. If you want to make one request for multiple events, you can do that with the v4 GraphQL API. Note that the API limits are different for the v4 API ... |
Playing around with the Github API, I see that there is a limit of 5,000 requests an hour. Is there a way to increase this? (Not the main question)
When I hit the /users/:username/events endpoint, I get back an array of events. The ones that are PushEvent have an array called commits. Each commit has its own endpoint ... | github api is it possible to bring down requests? |
As I mentioned in a comment, this is likely because of the interleaved interaction of gnuplot and accelerate on the GPU, when the accelerate computation is called lazily. I can't say I know the details, but this [0] seems relevant. It may be that gnuplot can't use the GPU since Accelerate has already claimed it, but A... |
Trying to plot the output of some Data.Array.Accelerate computations with gnuplot I encountered a strange problem. When run via the interpreter everything is fine, as is plotting straight Haskell data or just printing the Accelerate values, however trying to plot the Accelerate data fails. The error given is forkOS_en... | Haskell Array.Accelerate - forkOS error |
Already answeredhereJust useopensslcommandopenssl s_client -showcerts -connect server.edu:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem | I can usewgetor a similar command line tool to get an HTTPS response from a server.On Firefox/chrome browser, I can simply download the certificate in pem format through the user interface, then add it to my trust host list.
How can I download the same HTTPS certificate through the Linux command line?Thanks. | How to get website's https certificate on linux command line? |
... one man told me that storing all the code in .h files produces some memory management issues. [...] And I'll avoid this issue if I'll store a code in .h/.cpp files. Is that true?
Memory management usually refers to handling of dynamic memory at runtime. For clarity: Writing all your code in headers has nothing t... |
Not so long ago one man told me that storing all the code in .h files produces some memory management issues. Because I get too many duplicates of one class. And I'll avoid this issue if I'll store a code in .h/.cpp files. Is that true?
I've already googled some info on this subject and I read that it's all just abou... | Does storing code in header files cause memory management issues in C++? |
Try this instead:# My cron lines
RUN echo "* * * * * www-data echo 'Hello Word' > /var/www/test.txt" >> /etc/crontab
# Change CMD to have cron running
RUN echo "#!/bin/sh\ncron\n/usr/local/bin/apache2-foreground" > /usr/bin/run
RUN chmod u+x /usr/bin/run
CMD ["run"] | the problem is my crontab not running in docker. Here is my code.docker-compose.ymlversion: '3.1'
services:
web:
container_name: autoping
restart: always
# image: php:7.4-apache
build: .
volumes:
- ./html:/var/www/html
ports:
- 80:80
depends_on:
- db
db:
image: ma... | my crontab not working on php:7.4-apache docker-compose |
Example 1andExample 2sections of this Github action's author is an example of what your Github action workflow file should look like.Since you're the user of this Github action, your repository will contain your workflow file under your.github/workflowsdirectory. Your workflow action file can be named anything, as long... | I have a repository on Github that contains a notebook I'd like to run automatically. I've looked atthis action, which seems useful, but I'm not quite sure how my actions.yaml file should look, as I'm pretty new to Github actions. | Run a Jupyter Notebook through Github Actions |
Dask is a Python library which enables out of core parallelism and distribution of some popular Python libraries as well as custom functions.
Take Pandas for example. Pandas is a popular library for working with Dataframes in Python. However it is single-threaded and the Dataframes you are working on must fit within m... |
I want to understand what is the difference between dask and rapids, what benefits does rapids provides which dask doesn't have.
Does rapids internally use dask code? If so then why do we have dask, cause even dask can interact with GPU.
| Dask Vs Rapids. What does rapids provide which dask doesn't have? |
If this is a single threaded standard type of program, limiting the stack size is really just a safety precaution. It will prevent an infinite recursion from eating all your memory before it dies. By setting the limit to unlimited you will just be able to keep allocating on the stack until it tramples over the heap.I... | I have inherited some code that I need to maintain that can be less than stable at times. The previous people are no longer available to query as to why they ran the application in an environment with unlimited stack set, I am curious what the effects of this could be? The application seems to have some unpredictable m... | What is the effect of running an application with "Unlimited Stack" size? |
HTML5 Cache
HTML5 provides application cache, which means that a web application is cached, and accessible without an internet connection.
Application cache gives an application three advantages:
Offline browsing - users can use the application when they're offline
Speed - cached resources load faster Reduced server ... |
Is HTML5 Application Cache different from browser cache?? If so, in what aspects, it is different and how this mechanism works?? And tell me how using AppCache we can improve browsing performance.. Also discuss about the pros and cons of HTML5 AppCache (its expiry and storage size limit etc.,)??
| Browser Cache Vs HTML5 Application Cache |
A git bash.exe should inherit your %PATH% as $PATH
But the docker toolbox Windows start.sh also depends on other environment variables which should be set before the call:
DOCKER_MACHINE: path/to/docker-machine.exe (including the exe itself)
VBOX_INSTALL_PATH: path to VirtualBox.
Make sure those are defined first, b... |
I see the shortcut to Docker on windows is:
C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\Docker Toolbox\start.sh"
I use git-bash in Cmder/ConEmu.
I want to execute this script when I start in that console, so I have all
my terminals in tabs contained in 1 program instead of git-bash here, docker... | getting Docker script to load with git-bash in ConEmu/Cmder |
You could do something like this:RewriteEngine on
RewriteRule ^oldsite/?$ http://www.domain.com/errorpage.html [r=301,nc]This is a little gentler than a hard 404. Otherwise you can change the response code. Hope this helps.ShareFollowansweredFeb 17, 2011 at 10:45TNCTNC5,38811 gold badge2727 silver badges2828 bronze b... | I have a development version of a website that I want to hide/disable. But I don't want to delete the files for the moment. I also don't want to redirect requests to somewhere else. I just want to respond to the requests for that website with a HTTP 404.How should I do it?I am using Apache and .htaccess. | Return a 404 for all requests |
The easiest solution is probably to use theGitHub API, rather than trying to use the "raw" link you see in the browser.First, acquire apersonal access tokenNow issue an API request to/reposusing that access token:import requests
token = "MY_SECRET_TOKEN"
owner = 'Test'
repo = 'testrepo'
path = 'token.json'
r = request... | So I have been having some issues solving how I can read my repo file, which is in JSON format, with requests. (Python)Basically I have created something simple like:r = requests.get('https://raw.githubusercontent.com/Test/testrepo/master/token.json?token=ADAJKFAHFAKNQ3RKVSUQ5T12333777777')which works, however, every t... | Possible to request github JSON file without token |
You can run the cmd:kubectl logs <pod_name> -c <init_container_name>This will fetch the logs of the init container even after is finished running.Just an example, for the below pod spec theinit-containerruns first (to completion) and just prints "Hello world".apiVersion: v1
kind: Pod
metadata:
name: test-pod
spec:
... | We have a multi pod container which consists of 2 pods. init container runs first and the actual container run. recently our init container job are failing due to which our deployment is getting failed. we need to get the init container logs post completion of the init containeris there way to do that ??i know we can g... | get logs for init container post job completion |
This has now been fixed so you should see an error if run this way.Seehttps://github.com/SonarSource/sonar-csharp/issues/535 | I'm trying to execute and report aSonarQube code analysis(without test coverage for now) against a.NET Coreproject from aLinuxbuild agent.I downloadedsonar-scannerfromthis page, and trying to run the report with the following command (the server url is set up in the configuration).sonar-scanner -Dsonar.projectKey="MyPr... | Can I run SonarQube code analysis for .NET Core (C#) on Linux? |
Normallymeans getting the tree object with its attributes, no more.Recursivelymeans that any tree object (or subtree) referenced by the first tree will be expanded into its own objects, and so on with each depth level.ShareFolloweditedMar 21, 2019 at 19:25answeredMar 21, 2019 at 19:13Romain ValeriRomain Valeri20.4k33 g... | What's the difference between getting a tree normally and recursively from the GitHub API?https://developer.github.com/v3/git/trees/#get-a-tree-recursively | What does it mean to get a tree recursively from the GitHub API? |
Nope.You've actually listed two goals in your question:analyze multiple projects in a single run.view multiple projects in a single, aggregate dashboard.The first is not possible. The second is, but to accomplish it you'll need to analyze each project individually, then aggregate them using the commercialViews Plugin. | I want run Sonar onMultiple Project (Not Multiple Module)in single run(All are Java projects).For Ex:
I have the Folder structure as belowRootFolder|--- Project1
|--- Project2
|--- Project3I want to run Sonar on Project1,Project2 and Project3 in single run.For Ex: If i run Sonar on 'Rootfolder' report should be... | Running SonarQube on Multiple Project (Not Multiple Module) |
The issue can be resolved by changing the runtime type from GPU to CPU and then again to GPU | While making a connection to GPU in Google Colab, it's unable to connect and shows "connecting" for a very long time.
I have tried refreshing it and restarting the computer but none of them worked.
I was working on a deep learning project and used T4 GPU | Showing "connecting" for a very long time while making a connection to GPU in Colab |
It depends on the emergency...For live data,replicationis the way to go, but an accidentalDROPwill be replicated straight across...Also, are you looking to survive a building disaster, or just a server/drive/hardware crash? | I have around 400 GB Live mysql Databases on one server and I like to create a mirror for this database.
In the server I have database ranging from 1 GB to 100 GB.
What are the best practices available that I can use?
My purpose is that I should be able to switch in case of emergency.
It should have all live data.Thank... | How to create mirror of mysql database for switching purpose in case of emergency? |
Here is a brief description of the 3 tokens that you talked about. I will try to link you to more detailed documentation where ever possible.
Token: This is a OpendId Connect compliant id token issued by Cognito Identity which asserts the users identity in a signed and verifiable way. Consider this token as a digital... |
I'm trying to setup Cognito and I'm having trouble understanding the differences between the following three types of tokens:
Token (returned by getOpenIdTokenForDeveloperIdentity)
SessionToken (returned by getCredentialsForIdentity)
SyncSessionToken (returned by listRecords)
In which way are these tokens related/di... | AWS Cognito token types |
I've created a separate project and isolated the issue.
Looks like a very strange bug in GDI with 256 color bitmaps (all my images are 256 color bitmaps taken from my school days game written in QBasic).
there are no problems with png and 24 bit bitmaps
problems with resizing 256 color bitmaps seem to go away after l... |
I've installed Windows 8.1 recently to try, and my pet project is crashing on it (same binary works fine on one Win7 and two Win8 machines).
OutOfMemoryException is being thrown in BitmapImage.EndInit:
public static BitmapImage GetResourceImage(string resourcePath, int decodePixelWidth = 0, int decodePixelHeight =... | BitmapImage OutOfMemoryException only in Windows 8.1 |
Turns out this is possible. Docker just re-uses the "password" mechanics for the access token, which seems misleading and inconsistent with similar types of tools.From theDocker documentation:At the password prompt, enter the personal access token.For Travis CI specifically, specify your username via theDOCKER_USERNAME... | This is my .travis.ymlsudo: required
services:
- docker
....
....
# login to docker
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password--stdin
- docker push <username>/<image-name>Instead of using my Docker Hub password, I generated an Access Token athttps://hub.docker.com/settings/secur... | Is it possible to use Access Tokens to login & push images to Docker Hub from Travis CI? |
IAM groups and roles, they both serve different purpose.
An IAM group is primarily a management convenience to manage the same set of permissions for a set of IAM users. Groups can be granted permissions using access control policies. This makes it easier to manage permissions for a collection of users, rather than ha... |
So after reading through this: AWS IAM Role vs Group I'm not entirely sure what would be better for a group of users.
We're looking at implementing a group of users with least privileges, but doing it by giving them all a 'dev' role to assume, rather than a group.
This seems reasonable but what's the best practice her... | Is it better to use AWS IAM User Group, or IAM Role for users to assume? |
In NetBeans, you can add command line options using the Properties of the Project, the Run option. There is an option for the JVM command line there. Look at the -Xms and -Xmx options.
This works for JRuby projects as well, incidentally.
|
In my project I often encounter Java heap space errors, i.e., there isn't enough space to run the program any more. Is there any way I can increase virtual memory?
I am not using the command-line. I am using Net Beans.
| Is there a way to increase virtual memory in an application started from NetBeans? |
You can write your queries inside init.sql, in this squence:-
DROP DATABASE IF EXISTS test_db;
CREATE DATABASE test_db;
\c test_db;
CREATE TABLE Role(
RoleID SERIAL PRIMARY KEY,
RoleName varchar(50),
);
insert into Role(RoleName)
values ('Admin'),('User');
|
I know this question is already asked and also answer given. But it is not working for me. I follow the same. My postgres container is running fine. I checked inside the container that /docker-entrypoint-initdb.d/init.sql exist.I used the following docker-compose.yml.
version: "3"
services:
postgres:
image: post... | How to create table postgresql when start by docker compose |
The first process in your container will start with PID 1, and there is no way to change this behaviour.
However, it is possible to run your app with other PID by using init process or supervisor for your Java app.
You can find detailed information about this approach inhere | I have a scala app running as a docker container inside kubernetes pod. I use sbt native packager to build the app. Now when I go into my app pod kubectl exec it pod sh , and do ps -ef | grep Java
I see that Java is running with pid 1 . I want to change this to run my Java process with any other pid than 1. Can anyone... | java process inside kubernetes pod running with pid1 |
Generally correct. When you dispose Timer, ObjA will be eligible for GC. In fact, garbage collector will collect it during its next garbage collection cycle.
Keep in mind that, It will not collect your object immediately after it becomes eligible for GC. Garbage collector uses its heuristic algorithm to to trigger g... |
Say I have a class like this
class A
{
private B _objB
private Timer _timer; // Using System.Timers
public A(objB)
{
_objB = objB;
_timer = new Timer();
_timer.Interval = 1000;
_timer.Elapsed += SomeEvent;
}
public void Begin()
{
_timer.start();
... | Timers and Garbage Collection |
2
As Schwern pointed out, the commit history is the repository.
The sensible way to walk the history of a Git repository is to clone it first. If you are interested in the history only, you can omit the checkout or create a bare clone. In JGit, use the CloneCommand like thi... |
I need to access a Git remote repository to get the commit history (and just that) through a Java application. JGit, I see, is an option. From its documentation, I learned you have to clone the repository to access it.
Is there a way to access the repository remotely (i.e, without cloning it), with JGit or a differen... | Git API to access a remote repository without cloning it |
1
According to:
https://docs.gitlab.com/runner/install/kubernetes.html#using-an-image-from-a-private-registry
If your Docker image is in a private repository, you need to create an image pull secret in the Kubernetes namespace where your job is running.
You can create an im... |
I am getting below error
Running with gitlab-runner 14.0.0 (3b6f852e)
on gitlab-runner-artefactory-gitlab-runner-68f94fd89-pnd6g DaN3U_2T
Preparing the "kubernetes" executor
00:00
Using Kubernetes namespace: sai
Using Kubernetes executor with image aie-docker-dev-mydockerrepo/python:3.6-strech ...
Using attach strat... | Failed to pull image with policy "": image pull failed: Back-off pulling image "<image_name>" |
You could change your code like this and make sure you have added the port 8001,8000 in the inbound rule of your NSG associated to the Ubuntu VM.import http.server
from prometheus_client import start_http_server
from prometheus_client import Counter
REQUESTS = Counter('hello_worlds_total','Hello World requested')
cl... | I have a very simple Ubuntu VM hosted on MS Azure. I have this simple python program running on it:import http.server
from prometheus_client import start_http_server
from prometheus_client import Counter
REQUESTS = Counter('hello_worlds_total','Hello World requested')
class MyHandler(http.server.BaseHTTPRequestHandl... | MS Azure - python http.server - Connection refused |
Your first match group is file name without extension, while you're passing it to the last fallback URL where extension is expected.Also there's no point of escaping forward slashes. They have no special meaning here.server {
listen 80;
server_name localhost;
root /var/www/localhost/www;
location ~*... | Been trying this for several hours now but i am having a hard time figuring it out.location ~* ^\/sys\/assets\/(.*).css$ {
try_files $uri $uri/ /sys/assets/stylesheets/$1;
}I am basically trying to make css files called from /sys/assets/file.css to fallback to /sys/assets/stylesheets/file.css | Nginx location regex not matching |
Yes. SQL Server is backward compatible with any version that was supported at the time the version was released.
For SQL Server 2016 that was SQL Server 2008-2014.
A full list of the compatibility modes available can be found on the documentation here.
Note that restoring a database on a newer version of SQL Server is... |
Can you restore SQL Server 2008 backup to SQL Server 2016 ?
Thank you
| Restore SQL Server 2008 backup to SQL Server 2016 |
There was an issue when saving the default integration response mapping which has been resolved. The bug caused requests to API methods that were saved incorrectly to return a 500 error, the CloudWatch logs should contain:
Execution failed due to configuration error:
No match for output mapping and no default output ... |
In AWS API Gateway, I have a GET method that invokes a lambda function.
When I test the method in the API Gateway dashboard, the lambda function executes successfully but API Gateway is not mapping the context.success() call to a 200 result despite having default mapping set to yes.
Instead I get this error:
Execution... | AWS API Gateway : Execution failed due to configuration error: No match for output mapping and no default output mapping configured |
I guess it was more simple than I thought. I had to publish port 3306docker run -p 3306:3306 --name memories -e MYSQL_ROOT_PASSWORD=password -d mysql:5.6ShareFollowansweredSep 28, 2016 at 20:56ryanmcryanmc78422 gold badges99 silver badges2222 bronze badges3How to persistent the MySQL data? maybe you need to enable dock... | I am using Docker for Windows, on Windows 10 Enterprise. I am trying to connect to a container that is running mysql. I followed the instruction herehttps://hub.docker.com/_/mysql/and I used this command to start the containerdocker run --name memories -e MYSQL_ROOT_PASSWORD=password -d mysql:5.6if I typedocker psI get... | Connect to Docker container running mysql on Windows 10 |
Google Cloud Managed SSL Certificates are free.You can only use Google Managed SSL Certificates with Google services such as load balancers. You cannot use them on services you control. Google does not make the certificate private key available.Google services such as load balancers support more than one SSL certificat... | Can anyone help me with thepricingand support forSubdomainfor Google-managed SSL certificate in Load Balancing.I am working with https for Static website.https://medium.com/@marco_37432/create-a-custom-domain-cdn-with-google-beta-7ad9531dfbaeI want to create a Subdomain with admin.example.com to link Google-managed SSL... | Subdomain & Pricing of Google-managed SSL certificate in Load Balancing |
You'll want to run nginx in foreground mode by adding the following to your nginx.confdaemon off;You can specify a custom nginx.conf to nginx with the -c argument | I'm trying to useForeman(version 0.31.0) to manage our application's processes but I'm not having much luck with nginx (nginx/1.0.10 + Phusion Passenger 3.0.11).Here's the relevant line from my Procfile:nginx: sudo /home/ubuntu/nginx/sbin/nginxWhen I start the app, Foreman reports that nginx is started and then immedia... | Foreman not working with NGINX |
It looks like your images are not loading due to the wrong file extension. You are trying to load "http://jeanturban.com/img/Current/light1.jpg" when it should be "http://jeanturban.com/img/Current/light1.JPG" -- notice the capital JPG at the end. | I have a website hosted by Github and I am having issues with displaying pictures. I recently tried to upload new pictures but despite the path being right, the page fails to load the images and gives a 404 error in the source as it tries to find the path. Here is the repo of my site:https://github.com/jeanturban/jeant... | Pictures not showing up in site hosted by GitHub |
You need to give more memory to your JVM. e.g. the below allocates 512Mb to the JVM.
javac -Xmx512m ...
The Java virtual machine runs with a fixed maximum memory size. For memory-intensive operations you need to increase this appropriately. -Xmx specifies the maximum amount of memory the JVM will take. -Xms specifies... |
When trying to build Apache FOP by ant on the command line, it complains:
[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] ...
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:353)
I don't understand. I have enough RAM, how can the system run out... | The system is out of resources when building Apache FOP |
Can I execute a prestop hook only before deletion?This is the whole purpose of thepreStophook. A pre-stop hook is executed immediately before the container is terminated. Once there as terminatino signal from API, Kubelet runs the pre-stop hook and afterwards sends the SIGTERM signal to the process.Its design was to pe... | MyGo-basedcustom resource operator needs some cleanup operations before it is deleted. It has to delete a specific znode from the ZooKeeper.These operations must not be executed before regenerating resource. They have to be executed with the user's deletion command only. Thus, I can't use an ordinary prestop-hook.Can I... | Can I execute a prestop hook only before deletion? |
9
you can achieve using search end point (you need to be authenticated)
query myOrgRepos($queryString: String!) {
search(query: $queryString, type: REPOSITORY, first: 10) {
repositoryCount
edges {
node {
... on Repository {
name
}
... |
I wanna query all repositories in my organization on github private, i try to use
query {
organization(login:"my-org-name") {
id
name
url
repositories(first:100) {
nodes {
id
name
}
}
}
}
However it returns
{
"data": {
"organization": {
"id": "MDE... | How to use github graphql v4 api to query all repositories in my organization? |
EE doesn't have an internal faux-cron process you can hook into, but there is afirst-party add-onthat can do the trick. The thing is, it requires a plugin method or module class and module method be passed to it, not a URL. So, you'd have to write a quick plugin that, when executed, calls your action URL via cURL or wh... | I'm developing an Expression Engine site. The site has a database table populated from an external feed, and this feed needs to be parsed twice daily.Obviously, a cron job seems a good fit for this, but where I'm struggling is, where do I put the code for this? I want to use the EE framework, and have the cron job hit ... | Cron jobs with Expression Engine 2? |
Each docker container runs in a separate "network namespace". The means that (a) each container has its own ip address and (b)localhostmeans "this container", and doesn't have anything to do withlocalhostin an other container.If you want your services to be accessible from another container, you will need to configure... | I have 2 applications:server that binds on 127.0.0.1:5150client that connects to 127.0.0.1:5150Each application is containerized in a Docker image. In the server Dockerfile I use:...
EXPOSE 5150
...I'm having trouble connecting to the server from the client:$ docker run --rm -it --name server my-registry.com/server:0.0... | Network communication between Docker images |
I worked it out by decompiling the extension. It is a documentation issue.
The correct file name is indeedKubernetesLocalProcessConfig.yamland the below yaml will work (note the-was missing in the docs)version: 0.1
enableFeatures:
- ManagedIdentity | Has anyone managed to use managed identity with Bridge to Kubernetes?I've been reading these articles:https://learn.microsoft.com/en-us/visualstudio/bridge/managed-identity?view=vs-2019https://learn.microsoft.com/en-us/visualstudio/bridge/overview-bridge-to-kuberneteshttps://learn.microsoft.com/en-us/visualstudio/bridg... | How to use managed identity with Bridge to Kubernetes? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.