Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
That error means that somehow or other, one of the object files that Git uses to store the contents of your repository history has gotten lost/corrupted.If you just recently created the repo, I'd suggest just re-creating it (or re-cloning if you cloned it from somewhere). | So I have a newly created repo and I attempted to commit my newly created code but I got an error. So I ran 'git fsck' on my repo and I got this error.broken link from tree 9da8f3ce1355d9bdf03734d42ab15e50e5cf6361
to tree 64a40fc17140c1ce37720675d327d59aa9105ef1
missing tree 64a40fc17140c1ce37720675... | Git commit resulting in a missing tree error |
strace git statusshows that this action uses the lock file.git/index.lock, that's why the.git's mtime is updated.gitbeing cool, it uses the environment variableGIT_INDEX_FILEto decide which lock file to use. If unset,gituses.git/index(this is the default), but if set,gituses its value. Fromman git:GIT_INDEX_FILEThis en... | I currently maintain a project for a git-prompt for bash (https://github.com/magicmonty/bash-git-prompt) and I just got a bug report (https://github.com/magicmonty/bash-git-prompt/issues/97) from someone who works with Docker, who tells me, that everytime he uses the prompt, the cache is invalidated, because the.gitdir... | Can anyone explain, why "git status" touches the .git directory? |
The short and disillusioning answer is: No, a field cannot be of multiple types simultaneously without using generics or custom classes.What I was looking for was a way to declare a field - actually any kind of variable - to be of an intersection type.
Whilstintersection typesexist in Java since the introduction of gen... | I have a class, which's instances will be serialized. Thus the class implementsSerializable. The class has a field of typeList, which must beSerializableas well of course. Imagine the class looking something like this:import java.io.Serializable;
import java.util.List;
public class Report implements Serializable {
... | Can a field of a Java class be of multiple types without using generics? |
Your mod_rewrite rules are redirecting to/index.phpinstead of/codeigniter/index.php.Put this in your .htaccess file:RewriteBase /codeigniter/ | I am using codeigniter 3.I created login controller like<?php
class Login extends CI_Controller
{
public function index()
{
echo "It's working";
}
}
?>My .htaccess fileRewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]I a... | 404 error in codeigniter 3 when calling controller without index.php |
29
I faced the same problem when using docker-compose 1.29.1. Downgrading to docker-compose 1.26.2 resolved this problem.
reinstall docker-compose 1.26.2
rm -f /usr/local/bin/docker-compose
curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$... |
When I try to run ' docker-compose up" the command prompt throws the below error :
$ docker-compose up
Building tomcat
unknown flag: --iidfile
See 'docker build --help'.
ERROR: Service 'tomcat' failed to build
Below is the Dockerfile and docker-compose.yml file:
$ cat Dockerfile.dev
FROM node:alpine
WORKDIR '/app'
... | Unable to start docker Container from docker-compose - "unknown flag: --iidfile" |
I found that you can pull a pull request as follows:git pull origin pull/274/head | This question already has answers here:How can I check out a GitHub pull request with git?(21 answers)Closed6 years ago.I need to test the following pull request:https://github.com/grobian/carbon-c-relay/pull/274. I have cloned the master repo to my local drive:git clone https://github.com/grobian/carbon-c-relay.git ca... | GIT - how to test a forked change / pull request? [duplicate] |
You're missing trailing:characters in your[[:space:]]. Try this instead:OpenGl[[:space:]]Tutorial[[:space:]]Project/Dependencies/** linguist-vendored
OpenGl[[:space:]]Tutorial[[:space:]]Project/glad.c linguist-vendoredShareFollowansweredJun 3, 2019 at 12:10ChrisChris132k116116 gold badges285285 silver badges267267 bron... | I am currently learning OpenGL and am uploading my program to GitHub. However, because the dependencies are included in the language statistics the statistics are massively inflated.I have attempted to write a.gitattributesfile to sort this however I can't get it working. I have gone through github-linguistics document... | .gitattributes file isn't excluding files from the language statistics |
By default, Taipy runs in development mode, which deletes data and scenarios upon each execution.To retain scenarios, you can use either the 'experiment' or 'production' modes (see thedocumentation).To run in 'experiment' mode and create/run version V1:python main.py --experiment V1This ensures that your scenarios and ... | I created a Taipy application to create scenarios with predictions and metrics, but when I rerun my code after stopping it, I lose all my scenarios and data. Where does it come from? How can I keep my scenarios and data? | Taipy Scenarios not found after a rerun |
It seems a bug of Docker Development Environments Preview. The IntelliJ IDEA is opened by this process.
/Applications/Docker.app/Contents/MacOS/com.docker.dev-envs
You can degrade the Docker Desktop to version 3.4.0 to temporarily fix this problem.
|
I'm getting a strange error popup I suspect it has something to do with a built in integration of Docker in IntelliJ.
I'm running the following:
Mac OS Big Sur 11.4
IntelliJ 21.1.3
Docker Desktop 3.5.2.18
Docker version 20.10.7, build f0df350
When I launch Docker Desktop, it launches IntelliJ for some reason and I g... | "Cannot execute command" popup from IntelliJ when launching Docker Desktop |
No.You will only get a security error if the embedding site uses SSL, but the iFramed one does not. Whether the sites use different certificates or not, that does not matter.No. (Isn't this the same question as #1?)SummaryHaving different certificates between the main page and iframed pages is not a problem.Embeddinght... | Iframe from domain with SSLcertificate will be embedded on other site (foo.com).Must foo.com have SSL cerificate?If foo.com has SSL certificate, will it be an security error? foo.com has SSL certificate for foo.com, but iframe domain has other SSL certificate.If foo.com hasn't got SSL certificate, will it be an securit... | SSL iframe is embedded on other web site |
The update instructions in the Administration view (System Upgrades) differ from the instructions here:UpgradingI would change the first instructions as follows (in cursive text the changed/added lines) and I'd try to keep theUpgradinginstructions in sync.Copy the list of installed plugins and stop your old SonarQube s... | We are currently running a production server at version 5.1.2 which we are planning to upgrade.Tests have shown that upgrading to 5.3 works as expected.However, upgrading from 5.1.2 -> 5.4 or 5.1.2 -> 5.3 -> 5.4 results in all quality profiles from the 5.1.2 instance becoming empty - no rules assigned at all.Worse, bac... | All quality profiles have no rules when SonarQube is upgraded to 5.4 |
Try this:RewriteEngine On
RewriteBase /
RewriteRule ^drupal/(.+)$ $1Hope this helps | I have an established Drupal installation atexample.com/drupal- and now I need to move the installation up one level to the domain root.So the rewrite rule I need is to redirect all existing URLs - e.g.example.com/drupal/some_section/somepagetoexample.com/some_section/somepageetc.How do I do this? | .htaccess rewrite base URL up one directory level |
A few options come to mind:Have the Windows devs use WSL so the paths match Mac OS XDeclare environment variables for each path and reference those in the configHave an extra compose file that contains the volume declarations but isn't checked into source control so it doesn't get overwrittenI've not done any of these ... | The situation is that I have three developers working on a project. One developer is on Mac OS X and the other two are on Windows 10 Pro machines. My project consists of .NET Core 3.1 SDK and utilizes docker support to run. It was created in Windows initially so the docker-compose.override.yml file has the following li... | How to manage docker-compose.override.yml file between macOS and Windows? |
My recommendation would be to use Gendarme with Unity. FXCop seems to require the Microsoft SDK, and Gendarme is Mono based.https://www.mono-project.com/docs/tools+libraries/tools/gendarme/Not sure how you’d hook that up to a Github workflow though.ShareFollowansweredJul 25, 2020 at 14:55Justin BeaudryJustin Beaudry865... | I am trying to setup a github workflow for .NET Standard 4.7.1 so that I can run FXCop for some static code analysis.The precanned github workflows for .net all seem to target .NET Core 3.x. Unity does not seem to support .NET Core.Is there a way to install .NET Standard 4.7.1 with github workflows? If not, how else c... | Unity .net 4.7.1 + Github Workflow |
you can change Home dashboard on org or user level (on org or profile page). Just need to star it first.ShareFollowansweredDec 12, 2016 at 8:18TorkelTorkel3,3742121 silver badges1616 bronze badgesAdd a comment| | in Grafana (I have 4.0.1) there is possibility to create more organizations. When I switch among them, I always get home dashborard (I think it is loaded from this file "/usr/share/grafana/public/dashboards/home.json" there is on web browser nice Title "Home Dashboard" comming from that file above defined in HTML as<di... | Grafana: want to get Organization name into home dashboard |
+200You useJNI.newDirectByteBuffer, you can and you should free the memory manually, and do you clean up work at the same time.If you want it clean up automatically, what you need is monitor the object's life cycle. And if you only want to work with API and don't use reflection, you can use aPhantomReferencewithReferen... | I have a region of memory wrapped with JNINewDirectByteBuffer. I would like to run free/release code in the cleaner of theByteBuffer. Is there a way to do this or do I have to offer a custom free method that the user will have to call with theByteBuffer?EditTo clarify, I allocated the memory myself and calledNewDirectB... | Freeing memory wrapped with NewDirectByteBuffer |
For work with endpoints (e.g. fastcgi backends) you need ngx_http_upstream_module, which have embedded variable $upstream_addr, put it in the log configuration, something like this:
log_format cache '$remote_addr - $remote_user [$time_local] "$host" "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent... |
I am a newbie to nginx. I am using nginx as a load-balancer in front of some web servers. I want to add a custom field in the nginx log and the value of the field will be populated by web server handler (endpoint) but I have no idea how to implement this. Any pointer or brief explanation would be great to have.
| How to customize nginx log: adding a custom field which will be populated by web server endpoints |
From command line you could do following:git rm <file> - remove file locally and marks it for deletion
git commit -m"your message" - commit file to local repo
git push origin master - push the change to github. | I accidentally added and committed a file from my local repo that I do not want added to my GitHub project's repo. Can I delete this file with terminal or can I manually delete it online? | How to delete single file in GitHub? |
3
REGION MISMATCH
I followed the README here, but failed to notice the region difference, nor the Version ARNs section that implies the package author has created the layer in multiple regions.
Share
Improve this answer
Follow
... |
I have a function (Node.js 8.10) in us-west-2 and I am unable to attach the layer arn:aws:lambda:us-east-1:553035198032:layer:git:3. I get the following error message upon save:
You are not authorized to perform: lambda:GetLayerVersion.
I have the AWSLambdaFullAccess managed policy attached to my user, and even the pe... | Unable to attach a Layer to Lambda Function |
The problem was caused by SELinux that prevented Docker to access the file system.
If someone has the same problem than this post, here is how to check if it's the same situation :
1/ Check SELinux status: sestatus. If the mode is enforcing, it may block Docker to access filesystem.
# sestatus
SELinux status: ... |
I'm trying to start a Nginx container that serve static content located on the host, in /opt/content.
The container is started with :
docker run -p 8080:80 -v /opt/content:/usr/share/nginx/html nginx:alpine
And Nginx keeps giving me 403 Forbidden. Moreover, when trying to inspect the content of the directory, I got ... | Docker permission denied with volume |
+25I have tested on a standard Debian Wheezy. The problem your script faces come from the fact that the current working directory (CWD) is not what you expect.Setting an absolute path in your open operation is a way to avoid it:f = open('/home/pi/test.txt', 'a+')First, I have fear an infinite recursion if events fortes... | I have virtually an identical situation asthis question, except the accepted answer does not work for me at all. Making this simple Python script is my second attempt; echoing text and redirecting it to a file doesn't do anything either. I am using the Raspbian linux distro.pi@raspberrypi ~ $ incrontab -l
/home/pi IN_C... | incron on Raspbian not working |
Ok it seemed that the problem was the different floating point of the two architectures. The flagtorch.backends.cuda.matmul.allow_tf32 = falseneeds to be set, to provide a stable execution of the model of a different architecture. | I try to run my PyTorch model (trained on a Nvidia RTX2080) on the newer Nvidia RTX3060 with CUDA support. It is possible to load the model and to execute it. If I run it on the CPU with the--no_cudaflag it runs smootly and gives back the correct predictions, but if I want to run it with CUDA, it only returns wrong pre... | Using Pytorch model trained on RTX2080 on RTX3060 |
If you can cope with table-at-a-time, and your data is not binary, use the-Boption to themysqlcommand. With this option it'll generate TSV (tab separated) files which can import into Excel, etc, quite easily:% echo 'SELECT * FROM table' | mysql -B -uxxx -pyyy databaseAlternatively, if you've got direct access to the s... | I'd like to avoid mysqldump since that outputs in a form that is only convenient for mysql to read. CSV seems more universal (one file per table is fine). But if there are advantages to mysqldump, I'm all ears. Also, I'd like something I can run from the command line (linux). If that's a mysql script, pointers to h... | Dump a mysql database to a plaintext (CSV) backup from the command line |
Am I correct in assuming that the SSL certificate for my website will not cover the data over the socket?Yes, this is correct.You will need to contact the provider of that API to request that they provide a SSL/TLS version of the API. There is no way for you to unilaterally apply encryption to the connection. | I have a web app that makes requests to an external API running on a Windows machine via raw sockets. This is a third party program that only uses sockets. I want to make sure that the data being sent and received is secured.Example:My sitehttps://example.com/order(hosted on AWS) opens a backend socket connection to 13... | Securing Windows port with SSL for socket connection |
I could reproduce your issue with{AzureWebJobsStorage}connection string entry in thelocal.settings.jsonis somehow mismatched in its format:{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "{AzureWebJobsStorage}",
"FUNCTIONS_WORKER_RUNTIME": "dotnet"
}
}For all triggers except for HTTP, a valid... | I'm trying to create a CRON for every minute in my Azure Function timer trigger.As per the documentation I found this:https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer#cron-examples"0 */1 * * * *"doesn't run at all."*/1 * * * * *"does run every second.Where am I going wrong?function.jsonl... | Azure Function - Cron Trigger - ok every second but not every minute |
Yes, there's only one allocation in your specific example. If you had used UniqueString, as mghie says, or if you had built the string dynamically, then you end up with a new string allocation even if the string contents are the same as some other string.
However, an interesting fact about your specific example: there... |
Delphi uses reference counting with strings.
Do this mean that there is only one memory allocation for '1234567890'
and all a,b,c,d, e and f.s reference to it?
type
TFoo = class
s: string;
end;
const
a = '1234567890';
b = a;
c : string = a;
var
d: string;
e: string;
f: TFoo... | Delphi strings and reference counting |
This seems to work for me. I had to set a stream context to get it to work
<?php
$url = "https://api.github.com/repos/carry0987/Messageboard/releases/latest";
$opts = [
'http' => [
'method' => 'GET',
'header' => [
'User-Agent: PHP'
]
... |
I have try to use php to get Github release's tag_name,but in vain.
The link is Latest Release
<?php
ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 6.0)');
$json =file_get_contents("https://api.github.com/repos/carry0987/Messageboard/releases/latest") ;
$myArray = json_decode($json);
foreach( $myArray as $k... | How can I get Github release's tag_name via PHP? |
Here is a simplistic design approach.
Since you have two scheduled methods in the 2 VMs triggered at same time, add a random delay to both. This answer has many options on how to delay the trigger for a random duration. Spring @Scheduled annotation random delay
Inside the method run the job only if it is NOT already s... |
I have a nginx loadbalancer in front of two tomcat instances each contains a spring boot application. Each spring boot application executes a batch that writes data in a database.
The batch executes every day at 1am.
The problem is that both instances execute the batch simultaniously which i don't want.
Is there a way... | Activate Batch on only one Server instance |
From my comments…
Likely the options between mysqldump and PHPMyAdmin export don't match. For example, inclusion of DROP TABLE, extended INSERT, etc.
I suggest comparing the two files. I'm sure there is something obvious. Then either adjust the options for mysqldump or in PHPMyAdmin. Either should work as the latter u... |
I have a large mySQL database that I backup each night via a cron job:
/usr/bin/mysqldump --opt USERNAME -e -h SERVERNAME -uUSER -pPASSWORD > /home/DIRECTORY/backup.sql
It is working well - except when I go to 'restore' the sql file on another server - it takes a long time (about 3 mins)
This is in contrast to using ... | mysqldump file imports slowly compared to phpmyadmin file |
You can use apache conf file as following settings.<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://172.17.0.2/
ProxyPassReverse / http://172.17.0.2/
ServerName first.com
</VirtualHost>
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://172.17.0.3/
... | I want toforward requests(via domain name) frompublic IPtodocker containers.
My network looks like this:It should works like this:first.com -> "first" container, 172.17.0.2/16mail.first.com -> "first-mail" container, 172.17.0.3/16second.com -> "second" container, 172.17.0.4/16But I have an exper... | Forwarding domains to docker containers |
It's quite strange, I might recommend that you delete everything in the user.js.coffee and save it and try again. It looks that there's some wrong returns in there. | I am facing a problem when i fetched the rails project from github.When i cloned the repository and try to run the code from a remote system, i got the following errors.["ok","(function() {\n\n\n\n}).call(this);\n"]
(in e:/github_projects/myfork/TestRepo/TestProj/app/assets/javascripts/users.js.coffee)Extracted source... | rails 3.2 code not working when fetched from github |
I think you need to provide a mapping between the interface and the implementation.For Example :public interface IInterfaceName { }
public class InterfaceImpl : IInterfaceName { }
IUnityContainer container = new UnityContainer();
container.RegisterType<IInterfaceName,InterfaceImp(typeof(InterfaceImpl).Name);
IInterfa... | We have a WPF application that uses Unity to resolve it's dependencies. It works fine on different computers but if we try to run it on a machine with Intel Atom Processor with 2 GB RAM (Intel Compute Stick) we get an System.OutOfMemoryException when initializing unity with this line:var unityContainer = new UnityConta... | Use unityContainer in wpf application and 2gb ram system |
9
I was able to see the log outputs and was not able to reproduce your issue with your code.
I created a file called tommy.py:
import logging
def get_module_logger(mod_name):
"""
To use this, do logger = get_module_logger(__name__)
"""
logger = logging.getL... |
For several years now I've used Python's logging class in the same way:
def get_module_logger(mod_name):
"""
To use this, do logger = get_module_logger(__name__)
"""
logger = logging.getLogger(mod_name)
handler = logging.StreamHandler()
formatter = logging.Formatter(
'%(asctime)s [%(nam... | Python logging class in Docker: logs gone |
Sonar means to do:attrs.forEach(attributes::put); | This question already has answers here:Using method reference instead of multi argument lambda(4 answers)Closed3 years ago.In this code, I have this warning:Replace this lambda with a method reference.attrs.forEach((key, value) -> {
attributes.put(key, value);
}
);I don't know resolve this error, be... | How resolve this warning Replace this lambda with a method reference in forEach [duplicate] |
If your python script runs fine by itself and only fails incron, then most likely the paths to the libraries are not set in cron. Here's an example from one of my cronjobs where I add the path to cron before executing the file00 12 * * * LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib && export LD_LIBRARY_PATH && /path... | I coded a python application which was running OK as a cron job. Later I added some libraries (e.g.pynotifyand other *) because I wanted to be notified with the message describing what is happening, but it seems that cron can't run such an application.Do you know some alternative how to run this application every five ... | Notification as a cron job |
5
No, you can't unfortunately: http://git-scm.com/docs/git-merge
When I have that requirement (which is not that often), I usually do it manually in the console. If that is a big burden on your workflow I would suggest a shell-script that could first do all the merges witho... |
We have pull requests coming from other forks as well as branches within our own fork that has to go to multiple branches. Is there a way we can merge pull requests to multiple branches in one step?
| Merging a pull request into multiple branches |
Well there are ways to have some performance tips both at database levels and Application levels.For database levels here are few inputsQuery optimizationIndexes creation on frequent asked data.For some ORM layers likehibernateit also provides some sort of mechanism to cache the outputs in primary levels and secondary ... | What is the better way to cache a Java Web Application using MySQL? to improve performance.What are the best techniques to do it?It is better to do this at the application level or database level?I'm new to this, so, sorry if I'm wrong. | Caching web applications in Java |
As already said, you can only suggest the GC to delete your objects. The only thing you might do is setting the heapmax (for example: -Xmx512m). You can affect the run of the gc this way.
This is probably one of the biggest disadvantages of Java. If you really need the heap, your have to use languages like cpp, which ... |
I have two functions below one is insert() and other one is startGC().
I will call insert() method first which will take some 300MB of heap space.
After that I will call startGC() which should release the memory allocated in heap because all the vector objects are local to the function but its not happening.
private v... | Why Java System.gc() not working as expected? |
0
I had the same problem, and I did as you did, make Cache.onMemoryWarning() public and then call Shared.imageCache.onMemoryWarning() in the method didRecieveMemoryWarning().
And it worked!
Share
Improve this answer
Follow
... |
I'm fetching about 136 images, each one about 500 KB, in order to have them cached on the disk.
After downloading image #98, I start getting the following error for the images left (which makes me think they aren't getting cached).
2015-07-29 09:52:44.471 MyProject[299:3418965] [HANEKE][ERROR] Failed to get data for k... | HanekeSwift unable to allocate memory |
After talking with a colleague (thanks Lucas Still), he had the idea and pointed it out in Gitlab's documentation to check variables for what user is pushing. This was a great idea since I already had a bot gitlab user that does thegit pushso all I had to do is have anexceptand check if the user is that bot account:dev... | I have a project where I have 4 environments (dev, test, staging and prod) and we have branches for each (develop, test, staging master respectively). We usenpm versionto bump version inpackage.jsonbut also add a git tag. After that we run the build and on success of that, we push the commit and tag created by thenpm v... | Prevent infinite loop with Gitlab pipeline and git pushing |
Kept messing with it, finally figured it out:- name: Deploy Files
uses: appleboy/scp-action@master
env:
HOST: ${{ secrets.aws_pull_host }}
USERNAME: ${{ secrets.aws_pull_username }}
KEY: ${{ secrets.aws_pull_private_key }}
with:
source: frontend/build/
target: ... | This is the project structure:- parent/
|- .github/workflows/
|- frontend/
|- ...This is the .yml file within workflows:name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-ve... | github action failing? tar empty archive, docker run failed with exit code 1 |
3
your question has several possible answers. It all depends on the way the application is designed.
A possible scenario would be to keep session information on a database shared among different web heads. In this way the client, once authenticated will retrieve its "sessio... |
Wondering if we can share session data between two servers (running different code) behind an Nginx reverse proxy.
To be precise, we have a legacy app in PHP running on an apache server. We are updating some functionality and hosting only that functionality on a separate server (nginx). Both apps update the same DB. ... | Sharing sessions between different servers behind an nginx reverse proxy |
Thanks for all of your replies, unfortunately those weren't the ideal solutions for my use case, though they were very helpful in me coming up with the solution.async function checkServers() {
let emailBody = "";
let callResult = "";
let completedCalls = 0;
let promises = [];
for (const apiToTest of... | I'm trying to use AWS lambda to test a few API calls usingaxios, however I'm having some trouble. Every post I came across said the best way to handle promises in Lambda was to useasync/awaitrather than.then, so I made the switch. When I run the program usingnodeit works perfectly, but when I invoke the Lambda locally,... | Async/await not working AWS lambda, skipping everything after await |
In order to fix line endings you can apply following instructions
UNIX System
git config --global core.autocrlf input
Windows System
git config --global core.autocrlf true
Alternatively (in .gitattributes)
If you want to treat as binary everything in a particular folder, in .gitattributes you could add something li... |
I have to include some folder to a repository but I don't want my git to modify it's content (line endings etc)
I already have some files that are marked as binary files in .gitattributes i.e. images:
*.png binary
but this rule specifies certain category of files - png files, however I want to achieve something like... | mark folder as binary in .gitattributes |
Since you are trying to send a large amount of text to a SQL Server instance, you could useSQL Server's streaming supportto write the string to the stream as you go, minimizing the amount of memory needed to construct the data to send. | I have oneList<string>which length is undefined, and for some purpose I'm converting entireList<string>tostring, so I want's to check before conversion that it is possible or not(is it gonna throw out of memory exception?) so I can process that much data and continue in another batch.Sampleint drc = ImportConfiguration... | C# check conversion from List<string> to single string using String.Join, is possible or not? |
You can't use the{{ ... }}syntax withkubectl apply. That syntax generally matches theHelmpackage manager. Without knowing to apply the template syntax,{ ... }looks like YAML map syntax, and the parser gets confused.annotations:generally belong undermetadata:, next tolabels:.Annotationsin the Kubernetes documentation ... | Getting this error message afterkubectl apply -f .error: error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{"include (print $.Template.BasePath \"/configmap.yaml\") . | sha256sum":interface {}(nil)}I've tried puttingchecksum/config: {{ include (print $.Template.BasePath "/configmap.yaml... | kubectl apply error: error converting YAML to JSON |
Check the remote 'origin' of your repo:
git remote -v
If it contains https, your ssh key won't matter, because it is an https url, and not an ssh one.
You can change it to an ssh one with:
git remote set-url origin [email protected]:USERNAME/REPOSITORY2.git
|
I'm trying to use one of my GitHub ssh keys so that I can push and pull from an oranization/repo. I just created the key and added it to my own account. I followed all the instructions on GitHub Generating SSH Keys page.
GitHub ssh recognizes me when I do ssh -T [email protected]
However, when I try to pull or clone, ... | Using GitHub personal SSH key does not work for oganization repo |
Among theSDK prerequisites, you have:RequiresApache Commons(Codec,HTTP Client, andLogging) third-party packages, which are included in the third-party directory of the SDK.so I just added them to my.bashrc:# Apache Commons Logging
export CLASSPATH=$CLASSPATH:/Users/marius/Dev/aws-java-sdk-1.3.8/third-party/commons-lo... | Following Getting Started with theAWS SDK for Javatutorial, to run theAwsConsoleAppsample:java -cp .:/Users/marius/Dev/aws-java-sdk-1.3.8/lib/aws-java-sdk-1.3.8.jar AwsConsoleAppI get the following issues:===========================================
Welcome to the AWS Java SDK!
==========================================... | AWS SDK for Java Tutorial sample missing classes |
You switched from General Purpose (gp2) to provisioned IOPS (io2).With gp2 you get a baseline of 100 IOPS and then 3 IOPS per GiB after the first 33.33GiB, with a max of 16,000 IOPS. Pricing is based on volume size.Pricing: $0.10 per GB-month of provisioned storageWith io2 you provision the number of IOPS you need, ind... | I recently resized the root EBS volume on an EC2 instance.I changed it from:gp2 120GB and 360 IOPSto:io2 512GB and 1000 IOPSI was reading documentation about gp2 and they say that they give you 3 IOPS per GB which is why when I had 120 GB it had 360 IOPS.
But this made me think that IOPS per GB mattered, and now that I... | Do Larger EBS Volumes Require more IOPS? |
Combining the answers on this thread this is what ended working for me:(I have the name of the branch in the $BRANCH_NAME env var)TAG=$(git ls-remote remote "refs/tags/v*[0-9]" | cut -f 2- | sort -V | tail -1)
# fetch all commits up to but excluding the TAG
git fetch --filter=tree:0 --shallow-exclude $TAG origin $BRANC... | I have an issue reading the tags of a git repository during the CI automated workflow. I do not want to create a full-clone as this incurs extensive overhead so would prefer to maintain a 'shallow clone' but somehow determine the tag for application versioning.Use CaseGithub Actions CI build checks out the Git-Reposito... | Get latest tag `git describe --tags' when repo is cloned with depth=1 |
After some research, calming down and thinking, I realized that Docker-in-Docker is not really so much "-in-", as it is rather "Docker-next-to-Docker".
The trick to make a container able to run another container is sharing /var/run/docker.sock through a volume: -v /var/run/docker.sock:/var/run/docker.sock
And then the... |
I am running Docker in Docker (specifically to run Jenkins which then runs Docker builder containers to build a project images and then runs these and then the test containers).
This is how the jenkins image is built and started:
docker build --tag bb/ci-jenkins .
mkdir $PWD/volumes/
docker run -d --network=host \
... | Docker in Docker - volumes not working: Full of files in 1st level container, empty in 2nd tier |
This is indeed a bug in current versions of Tower. However, as you already noticed, the repository gets created successfully - it's only the error message that's incorrect.
Until we fix this, the simple workaround is to clone the repository like any other repo with the standard "Clone Remote Repository" dialog. | Is anyone seeing this issue with Tower? When I try to Create GitHub Repository, if I enter anything in the "description" field, I get the following GitHub API Parse Error: "A response from the GitHub API could not be parsed. Please try to retrieve the resource again."Tower then acts as if the repo was not created, but ... | Anyone have this Tower issue when creating GitHub Repo? |
The solution was to do vagrant halt and then vagrant ssh again. Then it printed out the 10000. Looks like simple logout and login with the user was not enough for some reason. | I have a problem with the error: PHP failed to open stream: Too many open files.I have looked on various answers here on stackoverflow, but I am unable to solve this issue. I have mainly tried to increase the limit of max. open files:I have edited /etc/security/limits.conf where I specified this:* soft nofile ... | PHP failed to open stream: Too many open files |
Create Table as SelectAnother way of storing Athena query results at a specific location in S3 is to use aCTAS-Query (CREATE TABLE AS SELECT).Using this has tons of advantages, because you can even specify the result format. Gzipped JSON, Parquet etc...CREATE TABLE default.my_result_table
WITH
(
format='JSON',
ext... | I am aware that running a saved Athena query stores results in an Amazon S3 location based on the name of the query and the date the query ran, as follows:QueryLocation}/{QueryName|Saved}/{yyyy}/{mm}/{dd}/{QueryID}/Is it possible to override this and store it on a path similar toQueryLocation}/QueryNameoverwriting the ... | Athena query results at specific path on S3 |
Had the same warning since upgrading our GitHub Enterprise to3.6.3on one of our repos.Turns out that one of the files within the repo contains a reference to a file which is no longer in the master branch. For me, it was simply that the readme was pointing to an image file which was no longer present. Where you have ... | As title. Recently GitHub keeps showing me a banner complaining that one of my Repo. seems to have some problem. Does anyone know what would cause this warning? And how to disable it?The only clue I have is that this usually happened when I force push some commits to the repo. | GitHub shows banner: ... repository doesn't contain the 'none' path in 'master' |
try to use this, and please don't forget to replace root path!location /main/ {
root /full/path/from/root/main/;
try_files $uri $uri/ /index.php?$args;
}I've set wordpress on my host in folder /main and got it's working with next settings:location /main {
index index.php;
try_files $uri $uri/ /mai... | I have a WordPress site running nginx under a sub-direcotry.
how can i write rewrite rules in a sub-directory?
or can anyone please convert this Apache rewrite rule? I searched everywhere about nginx rewrite rules but nothing worked!
RewriteEngine On
RewriteBase /main/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUE... | nginx rewrite rule under a subdirectory |
Start simple:Add a cronjob that simply executes a single command, maybeformat(Sys.time()), via an Rscript file -- mostly to demonstrate (to yourself) that you can run an R scriptConvert your existing code into an R script you can run at the command-line. Make sure you have no dependencies on environment variables etc ... | I have an R script that runs just fine from inside R or from the command line. Its operation is pretty straightforward. It just takes some regularly updated data, does some analysis, makes some plots, and saves them to disk. I want to run it automatically somewhat in sync with the data updates, so I am trying to run... | cron has trouble running an R script |
2
Is there a way to make a shrunk back up in once step?
No. The empty space in the files is not copied into the backup, but the restore always creates the files with the same sizes they had when the database was backed up.
I don't want to shrink production now and cause... |
This is a weird issue but I'm working with a DB and the IT team increased the allocated space by 60% which results in a db of 13GB allocated space. (This was to avoid so many resizes because DB was full) However for development I use MS SQL Express on my local machine. The DB backup file is only about 4GB cause it doe... | Is it possible to shrink an MS SQL DB storage allocation (not file size) during backup but not change the db? |
Task manager and third party software are using performance counters to query the dedicated GPU memory information. For example you can execute these counters from powershell:Get-Counter -Counter "\GPU Engine(*)\*"
Get-Counter -Counter "\GPU Engine(*)\Running Time"
Get-Counter -Counter "\GPU Engine(*)\Utilization Perce... | The Windows Task Manager, in the "Details" tab, shows the "Dedicated GPU memory" usage for every process. For example, I can currently see that chrome.exe uses 1.4 GB Dedicated GPU memory, dwm.exe uses 1.3 GB Dedicated GPU memory, and firefox.exe uses 0.78 GB Dedicated GPU memory.I want to get that exact same data from... | How to get the "Dedicated GPU memory" number for every running process in Windows (The same numbers that are shown in the Windows Task Manager) |
It's certainly possible to stop a currently executing step function.Using the AWS CLI as an example, you can callaws step functions stop-executionwith an exeuction-arn:$ aws step-function stop-execution --execution-arn <value>
[--error <value>]
[--cause <value>]
[--cli-input-json <value>]
[--generate-cl... | I need a step function that waits 2 days before processing a request. Within that two day period it's possible for a user to cancel the request with a follow up request. Is this achievable with step functions. | Cancel a Step Function in the Wait step |
If postgres version doesn't matter, try to change Postgres image to this one, it works for meAnd also make sure that you add ports indocker-compose.ymlpostgres:
image: postgres
restart: always
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
ports:
- "5432: 5432"
volume... | I'm trying to use Postico to connect to a docker postgreSQL container on my local machine.I've tried connecting to 0.0.0.0, localhost, and 127.0.0.1. Each give me the following error:could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections ... | Cannot connect to postgreSQL docker container via postico |
Have comment all NSLog statements in your project.
Fix it by disabling the NSLog statements (profiling on release and not on debug) will solve the issue . | If I 'Profile' my relatively large app on Xcode 7.2 (7C68) with theTimer Profiler, my app exits after about 7 seconds. I have no other apps running (that might be contending for system memory resources, say).Otherwise, if I use Cmd+R, the app runs well past 7 seconds — it runs as normal.Is profiling support for iOS 9 b... | My iOS app crashes without error when profiling on iOS 9 but not on iOS 8. Why? |
Yes, it will work - I have used something similar for a pet project of mine. Even the output ofmysqldumpis quite git-friendly, you can view diffs nicely etc.It's not very common to use git for backups though, which is probably why you have not seen it proposed anywhere. There are solutions designed solely for backups w... | Im hosting a web system on an Ubuntu instance on AWS. Its very critical that the database is backed up often. I've been looking at automated instance snapshots, but I do not find this solution desirable for two reasons: Its overkill to backup the entire instance, and all guides I've seen recommend only a single backup ... | Using cron job + git to automatically backup live database |
The end solution was to make sure all traffic was forced through OpenVPN.This would mean anyone connecting to the VPN would have the public IP that was assigned to the VPN server.Hence, this IP was the only one allowed to access the site via the WAF.ShareFollowansweredJan 17, 2019 at 15:45mysterykidmysterykid11311 silv... | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | Blocking IP's using AWS WAF so that only users connected to a VPN can access CloudFront [closed] |
Use [text](link_to_wiki_page) where link_to_wiki_page is the full URL of the wiki page you want to link to. Just navigate to the page and copy/paste the URL from the URL bar.
|
I want link wiki-page to issue text.
[]() syntax links into issues pool.
[[text|page]] doesn't work.
How to do it?
| GitHub link from Issue to Wiki |
OK. I know now what my mistake is. I seem to have confused authentication username/password with the so called "user agent". Adding this line to libcurl configuration:
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Dark Secret Ninja/1.0");
will make it work. No authentication is required.
|
With this minimal program, I can download a text file and print it using libcurl. And I do this anonymously, just like any https get request.
Now this URL: https://api.github.com/repos/bitcoin/bitcoin
Is an example of a Restful API case I don't understand but interests me because I need to retrieve the releases of my ... | Retrieve github releases with libcurl while being anonymous |
Amazon Cognito User Pools now enables customers to choose how long their access and refresh tokens should be valid. Access tokens can be configured to expire in as little as five minutes or as long as 24 hours. Refresh tokens can be configured to expire in as little as one hour or as long as ten years.
Reference:
08/... |
Is there anyway to change the access token timeout in AWS Cognito?
| Set AWS Cognito access token timeout manually |
the sessionFactory provides the methods you want...
from the 19.3 chapter of the NHibernate reference:
To completely evict all objects from the session cache, call ISession.Clear()
For the second-level cache, there are methods defined on ISessionFactory for evicting the cached state of an
instance, entire class, colle... |
I just started thinking about using the NHibernate second level cache in one of my apps. I would probably use the NHibernate.Caches.SysCache.SysCacheProvider which relies on ASP.net cache.
Enabling the cache was not a problem, but I am wondering on how to manage the cache e. g. programmatically removing certain entiti... | Removing objects from NHibernate second level cache |
The problem is thatpm2 startruns pm2 as a daemon ("in the background"), which Docker isn't aware of.You need to usepm2-runtimeto make it run in the foreground:CMD [ "pm2-runtime", "start", "npm", "--", "start" ]See pm2 "Container integration" docs.ShareFolloweditedApr 23, 2020 at 13:55answeredMay 1, 2019 at 12:42sdgluc... | MyDockerfilecontains thepm2 startcommand as follows:FROM node:10
WORKDIR /usr/src/app
COPY . .
# ...
EXPOSE 8080
CMD [ "pm2", "start", "npm", "--", "start" ]However the container exits straightaway after pm2 logs successfully starting:[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
[PM2] PM2 Successfully daemon... | Docker exits with code 0 when using pm2 start |
OP found a solution by themselves, in the comments, hence the CW.A uniqueID is required for a container if use ctrsudo ctr run -t --rm apache/camel-k uniqueID kamel version | Solution:sudo ctr run -t --rm apache/camel-k uniqueID kamel versionOriginal question:My goal is to install Camel-K CLIkamelon a server. I want to achieve it by calling an image as container and I have made it work use docker command, unfortunately the production server doesn't havedockerCLI installed but there'skubectl... | ctr equivalent of `docker run -it --rm apache/camel-k kamel version` |
Checking theredis-cliinfo memoryit shows the total memory to be the full system size, so likely without maxmemory it will use that value.However, usinggetting the memory limit from inside the containerand a bit ofbasharithmetic, you can create a command that will do the work so the operations only need to tweak one num... | I want to configure Redis as an LRU cache. I'd like to avoid repeating myself for the memory limits. If I docommand: redis-server --maxmemory-policy allkeys-lru
deploy:
resources:
limits:
memory: 1.5Gwould it be enough or do I really need to put in something like this (I used a slightly lower size for th... | Do I still need to set maxmemory if I put a memory limit on the container for Redis server? |
Will git stash reset submodules?No,git stash pushdoes not save the changes within submodules (seethis questionandthe documentationthat does not mention submodules at all) and it therefore does not revert those changes. | I'm new to git. I wanted to stash my changes and do agit pull origin masteron my branch. The project that I'm working on has submodules.Those are the commands I ran :git status- I can see all of my changes ( submodules + the main project )git stash pushno errors or warnings. I ran this in the main directory of my proje... | Will git stash reset submodules? |
Port 4096 does not look right, it should be Port 22 or omitted altogether as that's the default anyway. Also the generic username to connect to GitHub via SSH is git, like in User git. Do not use you GitHub username here.
|
I've been trying to get git working on my laptop using both my github.com account and my github enterprise account. I've been following this guide and this one to figure out how to edit the SSH config file and get authenticated. I also looked at this SO question which is pretty similar, and did the ssh-add mentioned o... | SSH config not authenticating for github enterprise and github.com |
It's very unusual to directly access the memory allocator in Rust. You generally want to use the smart pointer constructors (Box::new,Rc::new,Arc::new) for single objects and just useVecorBox<[T]>if you want a heap-based array.If you really want to allocate memory and get a raw pointer to it, you can look at the implem... | When I began learning C, I implemented common data structures such as lists, maps and trees. I usedmalloc,calloc,reallocandfreeto manage the memory manually when requested. I did the same thing with C++, usingnewanddelete.Now comes Rust. It seems like Rust doesn't offer any functions or operators which correspond to t... | Rust manual memory management |
You can dolet applyFirst f elems = elems |> Seq.tryPick (f >> Some)But I think I preferlet applyFirst f elems =
if Seq.isEmpty elems then
None
else
Some( f(Seq.head elems) )as more readable. | If I specify function value as:let applyFirst f elements =
if Seq.isEmpty elements then None else elements |> Seq.head |> fthen F# infers theftype asf: 'a -> b' option. It's ok, I understand why F# infersf's return type as'b option. But I wantfto bef: 'a -> 'b, and it can be done by changingapplyFirstfunction:let ... | Collapse option type creation |
This problem occurs because the credential halper has been set to wincred and you do not have wincred installed. To verify this, run the commandgit config --global credential.helperif the result says "wincred", this is your problem. To unset the credential helper, run the command:git config --global --unset credential.... | I am new to Git and Github; and I came across a problem. There is a similiar question here (git bash failed to load advapi32.dll), but they are experiencing a different problem and there are no answers either. I have searched online and was unable to fix this. Here is the issue:I am using Git Bash to push/pull commits ... | Git remote push: failed to load advapi32.dll |
iptables -N mysql # create chain for mysqliptables -A mysql --src 127.0.0.1 -j ACCEPTiptables -A mysql --src 1.1.1.1.1 -j ACCEPTiptables -A mysql --src 85.x.x.x -j ACCEPTiptables -A mysql -j DROP # drop packets from other hostsiptables -I INPUT -m tcp -p tcp --dport 3306 -j mysql # use chain for packets to MySQL por... | I want to whitelist 2 external ip-adresses vor port 3306 (mysql), but block all other IP-adresses to the port 3306 on a debian server running a mysql-instance. Both external ip-adresses should be able to connect to the mysql-server.What is the best way in iptables?What i did:/sbin/iptables -A INPUT -p tcp -d 127.0.0.1 ... | How to whitelist 2 ip-adresses with ip-tables and block everything else? |
*.vcap.meVMWare maintains this for theiropen cloud platform. | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | Public Wildcard Domain Name To Resolve To 127.0.0.1 [closed] |
You need to install the Python docker module:
sudo yum install python-pip
sudo pip install docker
|
I've installed Docker and Ansible to my AWS Ec2 Linux as follow:
sudo yum update -y
sudo yum install docker -v
sudo service docker start
sudo yum-config-manager --enable epel
sudo yum repolist
sudo yum install ansible
I've found following error message when I've tried to pull docker images to my AWS Ec2 Linux with a... | Failed to import docker or docker-py - No module named docker |
When you write files the data goes into the OS write-back cache. When the OS unexpectedly crashes (power outage, bluescreen, VM kill) that data is lost. The typical symptom is that the file has the correct size but is full of zeroes. (Maybe the size can also be wrong, I don't know.)Generally, the idea of writing to a n... | /// <summary>
/// Save settings to config file. Create backup of current settings
/// </summary>
public void SaveSettings()
{
Directory.CreateDirectory(CONFIG_DIRECTORY);
// move current settings file to backup
if (File.Exists(SettingsFile))
{
if (File.Exists... | Settings File is corrupted as well as the backup file |
If you want a shellinside the containerto expand your glob, you need to... well... actually run a shell inside the container. The one outside the container can't see files inside the container (of course), so it passeslsthe literal pattern, not a list of files in the directory as you intend.Thus:docker exec -t t1 sh -c... | I am trying to run specific command inside running docker container.Docker exec -t containername1 ls /tmp/sth/*in return I receivels: cannot access '/tmp/sth/*': No such file or directoryIn fact when I execute command while inside container everything works. Container is using Debian and local machine is using Windows.... | Using '*' in docker exec command |
A branch in git is just a text file containing a commit Id. This is located in .git/refs/heads. In your case there is a text file in .git/refs/heads/feature called story-30. Trying to create a branch called feature/story-30/Task-120 attempts to create sub folder in .git/refs/heads/feature called story-30, but this alr... |
This question already has answers here:
git push: refs/heads/my/subbranch exists, cannot create
(13 answers)
Closed 3 years ago.
I have an existing branch called feature/story-30 ,... | Git can not create branch for an specific task [duplicate] |
the selenium/standalone-chrome listen to the 4444 port. that's why you should to map yo 4444 port.
run as docker run -d -p 4445:4444 selenium/standalone-chrome
|
Following documentation online for using RSelenium with Docker, I have installed Docker Toolbox and RSelenium.
In the Docker Toolbox, I run
$ docker run -d -p 4445:4445 selenium/standalone-chrome
and
$ docker ps,
and get the following output.
Then, I run the following in R:
library(RSelenium)
library(Rvest) #not s... | RSelenium with Docker. Error in checkError(res) |
There are a few ways.The most common practice is as you mention usingConfigMap. This way is explain inKubernetes docs.Another option is to useSecret, however it's similar toConfigMapway.If you know that variable before deploying, you canDefine an environment variable for a containerLast method is to set them manually i... | I would like the set the same env variable to the same value on all the containers of my pod. I am not trying to pass info between containers so this variable will not be updated but I want to ensure that if somebody update its value, it will be kept in sync across all the containers in my pod.Is there any way to do th... | Set the same environment variables on all containers of the same pod |
I've been able to hack my way to make this work. As John Suggested, I've created another security group, added the ports which requires access and update it via the shell script. The updation works as removing all the rules mentioned in the security group and adding them again with the IP requiredThe source code has be... | I have a shell script which adds my public ip to the specified ec2-security-group. I've gone through some AWS docs and can't find which Apis to use to update existing IP address instead of simply adding one.I've gone through the following:update-security-group-rule-descriptions-ingressauthorize-security-group-ingressIs... | Updating Existing IPs from a Security Group in AWS using aws cli |
This is what you're looking for
require 'octokit'
user = Octokit.user("octokit")
repos = user.rels[:repos].get.data
Octokit.contents repos[3].full_name, path:"Gemfile"
Octokit#contents accepts the following object types for repo:
Integer @id = repo
String @owner, @name = repo.split('/') #this is what I used with #ful... |
I'd like to write a little ruby script to iterate through all of the public repos for a user and get a specific file if it is there. Here's a little code snippet that can be run in irb where the file exists, but I'm getting a 404, so there must be something wrong, but I don't see it:
require 'octokit'
user = Octokit.... | get contents of a file from user's public github repos in ruby |
Its just a guideline. You can call other instructions after[super dealloc]. however you can not access variables of the superclass anymore because they are released when you call[super dealloc]. It is always safe to call the superclass in the last line.Also KVO and depended (triggered) keys can produce side effects if ... | correct example:- (void)dealloc {
[viewController release];
[window release];
[super dealloc];
}wrong example:- (void)dealloc {
[super dealloc];
[viewController release];
[window release];
}Althoug in alsmost all other cases when overriding a method I would first call the super's method implemen... | Why do I have to call super -dealloc last, and not first? |
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)Replace th... | How to identify that cron job will run on specific Date&Time with help of cron expression Only | PHP - Cron Job Run At Specific Date & time |
NetworkPolicy is stateful and will allow an established connection to communicate both ways. | IsNetworkPolicya stateful firewall?For example, if I allow ingress from a certain IPs on certain ports, is the return traffic automatically allowed on ephemeral? Ditto for allowed egress.How does this play with a default block policy in place?Are there any other considerations here? | Kubernetes NetworkPolicy - is this a stateful firewall? |
As@Jonaspointed out in the comments section, creating a newLoadBalancerServicewith the same selector as the existing one is probably the fastest and easiest method. As a result we will have twoLoadBalancerServicesusing the sameingress-controller.You can see in the following snippet that I have twoServices(ingress-nginx... | I am having trouble upgrading our CLB to a NLB. I did a manual upgrade via the wizard through the console, but the connectivity wouldn't work. This upgrade is needed so we can use static IPs in the loadbalancer. I think it needs to be upgraded through kubernetes, but my attempts failed.What I (think I) understand about... | Upgrade classic loadbalancer to network loadbalancer |
All options and fields are documented within the resource references which you can find in the Kubernetes reference section.
E.g. for the definition of a Pod you can check the related docs, you'll find that everything within the "spec" block relates to PodSpec objects and these contain among others Container definiti... |
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions see... | Guide to Kubernetes Manifests: Good Resources/Docker Run options [closed] |
Beeing novice in prometheus I had missed theignoringandgroup_leftfunctions, this solved it:sum by(somefield) (gauge_metric) / ignoring(somefield) group_left sum(second_metric{deployment="a-value"} ) | When querying a prometheus metric, I would like to group the sum and divide the grouped results on a second metric.While the simple grouped sum function works:sum by(somefield) (gauge_metric)This query with the division included returns "no data":sum by(somefield) (gauge_metric) / sum(second_metric{deployment="a-value"... | Division of a grouped sum in prometheus |
Following is excerpt of the answer given to this question onterracotta forum."The three big problems I'd expect you to face with open source (community edition) Ehcache disk stores are: Firstly in open source only the values are stored on disk - the keys and the meta data to map keys to values is still stored in heap (... | How is the performance of BigMemory of Enterprise Ehcache compared to Diskstore of Ehcache Community Edition used with RAM disk?Big Memorypermits caches to use an additional type of memory store outside the object heap there by reducing the overhead of GC, had we used all of RAM in object heap. Serialization and deseri... | EhCache BigMemory vs Diskstore on RAM disk |
Ensure the RBAC authorization mode is still being used (--authorization-mode=…,RBACis part of the apiserver arguments)If it is, then check for a clusterrolebinding that is granting the cluster-admin role to all authenticated users:kubectl get clusterrolebindings -o yaml | grep -C 20 system:authenticatedShareFollowanswe... | I have deployed kubernetes v1.8 in my workplace. I have created roles for admin and view access to namespaces 3months ago. In the initial phase RBAC is working as per the access given to the users. Now RBAC is not happening every who has access to the cluster is having clusteradmin access.Can you suggest the errors/cha... | RBAC Error in Kubernetes |
With a LOT of help from AWS paid support, I got this working. The reality is I was not far off it was down to some SED syntaxt.
Here's what currently works (Gist):
option_settings:
- option_name: AWS_SECRET_KEY
value: <SOMESECRET>
- option_name: AWS_ACCESS_KEY_ID
value: <SOMEKEY>
- option_name: PORT
... |
I am running Meteor on AWS Elastic Beanstalk. Everything is up and running except that it's not running Websockets with the following error:
WebSocket connection to 'ws://MYDOMAIN/sockjs/834/sxx0k7vn/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
My unstanding was to add some... | How do I customize nginx on AWS elastic beanstalk to loadbalance Meteor? |
but for the online repo, or for someone who's cloning the repo just to try it out the compiled files should be present, therefore I cannot add the folder to .gitignore as that will prevent it from coming up entirelyThat's exactly how it's supposed to work. You don't commit compiled code for that reason. Another person ... | I have a folder that is set to be compiled whenever I do some changes. Sometimes, however, I do some changes that are not supposed to be compiled, such as testing something.The compiled files contain the current date of compilation, so even if the two compiled files are the same the time would be different in both. Now... | How to setup git in a local workspace to accept all incoming changes by default for some files? |
2
I have just found the solution and it works for me:
Just change
location / {
rewrite ^/$ https://$host/$language_suffix$request_uri;
}
to
location / {
rewrite ^/$ https://$host/$language_suffix$request_uri;
try_files $uri$args $uri$args/ /$lan... |
Good morning,
I am trying to deploy a localized version of my Angular 9 app. I have deployed it on English (main language) and spanish (located language)
It works just fine except when I try to access an URL that doesn't have /es or /en-US on it.
Works fine when I access https://example.com/es/login but send me back a... | Angular i18n nginx redirection |
Usualy it's kubelet that is responsible for registering the node under particular name, so you should make changes to your nodes kubelet configuration and then it should pop up as new node. | I have a running node in a kubernetes cluster. Is there a way I can change its name?I have tried todelete the node using kubectl deletechange the name in the node's manifestadd the node back.But the node won't start.Anyone know how it should be done?Thanks | How to change name of a kubernetes node |
I found the solution here...https://github.com/dotnet/aspnetcore/issues/25430I think this needs to be better documented in these pages:https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/?view=aspnetcore-5.0&tabs=visual-studioandhttps://learn.microsoft.com/en-us/aspnet/core/security/authenticat... | I’ve been trying to follow the same guide that pertains to hosting on Azure, but instead self hosting with Kestrel.Thisis similar, but uses Azure. Everything works fine until I add a valid ssl site certificate, then the external login api calls are not found according to the code in App.razor. It returns “nothing foun... | Hosted Blazor WASM with Identity Server and external login isn't working in production environment |
I went and readhttps://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repositoryagain.I noticed it said the package name needed to match or it wouldn't work. I had cloned it directly from the main branch, so I had no reason to suspect it not matching, but it seems it was renamed from "laravel/cash... | I'm trying to fork a repo so I can update it with my own code. I've done it before, but something seems to be missing this time.
When I put the repo path in the composer repository list, it will usually detect that it matches the package and use the package from my repo.
Here's my composer (simplified for example sake)... | How to override composer repository source? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.