Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Thefull errorshould be:GitHubHostBuiltInExtension.XCSourceControlHostRequestContextIt could be aniCloud account issue, or a right issue on the/Users/Sharedfolder.sudo mkdir -p /Users/Shared
sudo chown root:wheel /Users/Shared
sudo chmod -R <userid>/Users/Shared | I am trying to connect my GitHub account with Xcode. When I put in my credentials an error occurs, displaying clipped text. The text is not selectable nor is the window resizable. Is there a way to view/inspect the window elements so I can see the full message? Or better yet is anyone familiar with the error?Note:Not s... | Could not add GitHub account to Xcode; Clipped Error: GitHubHostBuiltInExtension.XCSo |
Helm is a good fit for the solution.
However, since we were already using Kustomize & migration to Helm would have needed time, we solved the problem using namePrefix & label modifiers in Kustomize. | I am currently using Kustomize. We are have multiple deployments and services. These have the samespecbut different names. Is it possible to store thespecin individual files & refer them across all the deployments files? | Using same spec across different deployment in argocd |
21
The documentation isn't particularly clear on this, but given that the Markdown rendering is done by Jekyll, I believe you need what they call "YAML front matter" for it to compile the page. So try putting this at the top of your file:
---
title: Document Center
---
Th... |
Since the GitHub wiki does not support directories, I want to put my md files into GitHub pages. However when I open them I found they are not interpreted at all. GitHub just gives me the raw file. See http://greenlaw110.github.com/Rythm/en/index.md. Any idea?
| Can I use a Markdown file in a GitHub page? |
Why not to route all requests to the index.php with mod_rewrite and use PHP to write the routing logic, which seems way more reliable way than writing distinct rewrite rules?As simple .htaccess as this oneRewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRul... | Currently I have a url like thishttp://<client_name>.website.com/index.php?function_name&cat=32I want to set things up so that our Marketing people can publish url's likehttp://<client_name>.website.com/<parent_category>/<category>The "cat=XX" will be generated of the last<category>only. But marketing wants to use the... | SEO Friendly URL to Dynamic URL using PHP |
OpenGL (and D3D. And Metal. And Mantle. And Vulkan) doesn't support this because hardware doesn't support this. Hardware doesn't support this because, for the vast majority of mesh data, this would not help. This is primarily useful for meshes that are predominantly not smooth (vertices sharing positions but not norma... |
Why does OpenGL not support multiple index buffers for vertex attributes (yet)?
To me it seems very useful, since you could reuse attributes and you would have a lot more control over the rendering of your geometry.
Is there a reason why all attribute arrays have to take the same index or could this feature be availab... | Why does OpenGL not support multiple index buffering? |
That could be an environment problem, which could include bad paths, etc. You can compare your ENV from the command-line to the environment when launched by crontab.Try:ruby -rpp -e 'pp ENV' > /tmp/crontab_env.outfrom crontab, then:ruby -rpp -e 'pp ENV' > /tmp/cmd_env.outfrom the command-line, then:vimdiff /tmp/*env.ou... | OS: Amazon LinuxI have a Ruby script that connects to a site, then it searches with an XPath request for adivblock where is the stats counter I want to parse.Then it compares the number from the site with the current value in the database, if the number has increased it sends me an email.The problem is that, then I run... | Ruby script extracts wrong value when executed with crontab |
Essentially, the functions you defined behave as the following ones:fibMemo n = let m = map fib' [0..] in m !! n
fibMemo' = let m = map fib' [0..] in (m !!)Why isfibMmemo'more efficient? Well, we can rewrite it asfibMemo' = let m = map fib' [0..] in \n -> m !! nwhich makes it more clear that the single listmgets crea... | I have the following code:memoize f = (map f [0 ..] !!)
fib' 0 = 1
fib' 1 = 1
fib' n = fib' (n - 1) + fib' (n - 2)
fibMemo n = memoize fib' n
fibMemo' = memoize fib'(I am aware of that fibonacci implementation has exponential time complexity and does not use the cache)The first time I executefibmemo' 30it takes 3 se... | What functions are cached in Haskell? |
1
Try this
userListArray.forEach(function (userListObject) {
var options = {
url: "https://api.github.com/users/" + userListObject + "/repos",
headers: {
'User-Agent': 'my node app'
}
};
https.request(options, function (res) {
res.setEncoding('utf8');
... |
Im trying to achieve the following things in application created from scratch using nodeJs.
Read the list of users from a file in my solution.
Get all the public repositories of those users.
Below is my code
const express = require("express");
const app = express();
const request = require('request');
const fs = req... | Get the list of repositories of users from GitHub |
This blog post should give you a good starting point. This one here goes a little deeper in detail. Note: I used these to get nginx running on my local development machine (OSX 10.7) and to host different rails apps locally without using Webrick. Probably there is more to take care of on a live / production system.
|
In my local, I am using werbrick application server for my localhost.
I have Ruby version 1.9.2 .and Rails version 3.1.
How to deploy On live,with Rails Project On Nginx Server?
And What will be the application server (like passenger module with apache) can be used with Nginx server for Rails 3.1 application?
| How to deploy Rails project in Nginx server using passenger? |
2
This statement
p=(int *)malloc(sizeof(int) * (i+1));
is redundant. It is better to write
p = NULL;
And in a call of scanf use an object of the type int not the pointer.
There can be redundant memory allocation if for example the first entered value will be negative
In t... |
I am new to pointers so I tried inventing this simple problem. why is it not working? other than saying what mistake I made I'd greatly appreciate if you guys could tell me an alternative to this method
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int *p;
int i, j;
i = 0;
... | read indefinite amount of integers until one is negative and then print them |
Make sure you select multiple AZs for the load balancer as well. You will have to in order for it to work with EC2 instances in multiple AZs anyway. When you do that, multiple ELB instances are created for you behind the scenes, one in each AZ. So the ELB isn't really a "single point of failure".The most common issue y... | The title might be a little too much, but i am unable to find any statements regarding this. I am trying to set up computes in multiple AZ's (in a region) withauto-scaling. i am also trying to see if i can get away with only one ELB to do the load balancing act.In this setup, the ELB is a single point of failure so, I ... | Are Amazon Elastic Load Balancer (ELB) failure proof? |
After updating OS certificates, you typically need to restart the docker service to get it to detect that change. This is usually done with:sudo systemctl restart dockeror for non-systemd environments:sudo service docker restartDocker does have an additional location you can use to trust individual registry server CA. ... | I was trying to pull a docker image from a docker registry but hit the following issue:$ docker pull <docker registry>/<image name>/<tag>
Error response from daemon: Get <docker registry>/v1/_ping: x509: certificate signed by unknown authorityI tried with "curl" and get a similar error message:curl performs SSL certif... | "docker pull" certificate signed by unknown authority |
3
Ingress Object is used to expose application only for HTTP and HTTPS Traffic.
Ingress, added in Kubernetes v1.1, exposes HTTP and HTTPS routes from outside the cluster to services within the cluster. Traffic routing is controlled by rules defined on the Ingress resource... |
I have a service in Kubernetes which I have to expose on multiple ports over HTTP.
I use Nginx-Ingress and was able to expose my service over Port 80 successfully.(http://serviceA.example.com --> service-a:80)
However I am not able to use a diffrent port for Http then Port 80.
How can I tell nginx-ingress to listen on... | How can I expose a service on multiple ports over HTTP in ingress? |
Yes,PerformanceCounterdoesn't have support on IoT Core. If you want to get the CPU usage of the system in console application on Windows IoT Core, you can call the Device Portal API(/api/resourcemanager/processes) to get the system performance data. | I am referring below link to calculate cpu usage on win iot core-Calculate CPU Usage in Percentage UWP Application Windows 10 IOTBut it require Windows.System.Diagnostics to access for below code snippet to get info for running process-var pdis = ProcessDiagnosticInfo.GetForProcesses();But i am not able to find nuget p... | Calculate system CPU usage for console application running on IoT Core |
GitHub Support:
Please do not be alarmed, you have not broken anything on your repository. We introduced a prompt for repository owners and admins to protect their default branches ... the prompt [is] displayed to any admins with more than one branch in a repository.
I've confirmed this, creating branch creates bann... |
After running a bunch of commands trying to create and delete tags and branches, I see the following
What is it, and how should I handle it?
(Edited out content that turned out to be irrelevant)
| Your main branch isn't protected |
It appears your regex expression is invalid. Try this:document.getElementById('validate').addEventListener('click', () =>{
console.log(isCronValid(document.getElementById('freqInput').value));
});
function isCronValid(freq) {
var cronregex = new RegExp(/^(\*|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])|\*\/([0-9]|... | I'm trying to figure out a correct validation for custom cron inputs. Here's what I have.Html<input id="freqInput" type="text" placeholder="Enter CRONJOB" class="form-control" />Javascriptfunction isCronValid(freq) {
var cronregex = new RegExp("/^(\*|((\*\/)?[1-5]?[0-9])) (\*|((\*\/)?[1-5]?[0-9])) (\*|((\*\/)?(1?[0... | Regular Expression for Cron Expression in Javascript |
until I realized I needed to clear my browser cache or open the page in a new browser, or clear the cache. Its works for me.
|
I deployed my application to appharbor, after it show message when i clicked on
(Go to Application)
"Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
"
| Appharbor: "If you see this page, the nginx web server is successfully...." |
1
Just check on which ports are the Apache WebServers Running. You have to add those to your upstreams.
E.g.:
upstream web_backend {
server 35.157.101.5:8080; //assuming that your apache webserver is running on this port on this host
server 35.156.213.23:3... |
I am using NGINX as load balancer for Apache WebServers (WordPress). All servers are made with AWS EC2. My config for NGINX:
cat /etc/nginx/sites-available/default
upstream web_backend {
server 35.157.101.5;
server 35.156.213.23;
}
server {
listen 80;
location / {
pr... | 400 Bad Request load balancer for Apache servers with NGINX |
I think there is no performance (memory leak) differences since ObservableList extends list or map with an observability feature advantage. Take a look here
|
In the JavaFX doc it says:
A list that allows listeners to track changes when they occur.
Since the ObservableList can do more, I'm wondering if there is a noticable diffrence in performance or memory usage between these two? (I'm using JavaFX 8)
| JavaFX: List vs ObservableList performance/memory usage |
Cortex supports data ingestion withPrometheus remote_write API. There is an example Python code that prepares and sends data to remote storage over Prometheus remote_write API - seehttps://gist.github.com/robskillington/fb82ee5c737b79a3bc891df3dce7a9aa.Unfortunately Prometheus remote_write protocol isn't the easiest pr... | Is there any way/client (python) to push metric to Cortex?
We have Prometheus which pushes metrics but in this case i need to set up project from which Prometheus could pull and then push to Cortex.I need to avoid this and push metric directly to Cortex and skip Prometheus. | How to push metric to Cortex directly |
All the fields must of of same type. You cannot mix string with object"Univ Philippines", --> text
{ --> object
"pref": "Y",
"content": "University of the Philippines System"
}"You need to define "Univ Philippines" ... | here are two jsons:json 1:{
"organization": [
"Univ Philippines",
{
"pref": "Y",
"content": "University of the Philippines System"
},
{
"pref": "Y",
"content": "University of the Philippines Diliman"
}
]
}json 2:{
"organization": "Univ Philippines"
}I need index them i... | json array with string and objects inside set mapping in Elasticsearch |
You really are in a mess. You need to restore the S3 bucket or make a new one and point your code at that.
You then need to recreate the state you lost, that or delete every object you created via Terraform and start again. Most objects have the ability to import existing objects via theTerraform importcommand.This cou... | I am creating AWS infrastructure using Terraform, and using S3 backend configuration. Now the issue is, someone deleted the S3 bucket storing the state, and now every time I run terraform it fails saying the resources already exist. The old tfstate is lost, and new has no information about existing resources.Note: I do... | Terraform fails because tfstate (S3 backend) is lost |
Since you have a git bash open, you should make a cd using unix-style path:cd /c/Users/Jonatan/Documents/GitHub/REST-Web-Services
git status
git commit --amend | With the help of the program GitHub Desktop I made a committing project on GitHubhttps://zapodaj.net/394446cec1850.png.html,
but I forgot to add one more sentence to the commita description. I want to edit this commita, but with GitHub Desktop I can't manage, so I want to use git bash. However, I don't know how to conn... | Git bash - connection to the repository and last commit edition |
you can split your model into two submodule.
like this:class MyModel(nn.Module):
def __init__(self, split_gpus):
self.large_submodule1 = ...
self.large_submodule2 = ...
self.split_gpus = split_gpus
if split_gpus:
self.large_submodule1.cuda(0)
self.large_subm... | There is amodeland two GPUs. I put themodelon GPU withmodel.cuda(). If I passed a big image to themodel, it allocated all memory of GPU0 and then it raisedCUDA out of memoryerror without allocating any memory of GPU1.Because there is only one image everyforward(), I can not use suchtorch.nn.DataParallelthings to split ... | Would it possible to use all memory of GPUs with one model? |
It turns out that cygwin didn't like the directory that the Client-SDK was in. Once I reinstalled it to C:/IBM/Informix/Client-SDK everything started working. I am not sure if the problem was the parentheses or the spaces, but getting them out of the path seemed to do the trick. | Not really sure where to go with this one. I have a PHP script that invokes a PERL script that connects to an Informix database. This setup works just fine when I run the script to the Windows cmd prompt, but when I attempt to run it through cron in cygwin it fails on[Informix][Informix ODBC Driver]Unable to load trans... | Informix connection works through Windows, but not through Cygwin |
1) How long a function is has nothing to do with the allocation of memory, independent of stack or heap.
2) When stack is "allocated" depends only on the compiler's way to make the most efficient code. "Efficient" has a wide range of requirements. All compilers have options to modify the optimizer goals for speed & si... |
I'm sorry if this has been asked before, but I didn't find anything...
For a "normal" x86 architecture:
When I call a large function in C++, is the memory then allocated immediately for all stack variables?
Or are there compilers which can (and do) modify the stack size even if the function is not finished.
For exampl... | Can stack memory be allocated within a function automatically? |
You can use the healthcheck command.
You have to activate the ping.
After you have to define a healthcheck section in your docker-compose file.
example:
proxy:
image: traefik:1.6
command: --api --docker --ping
ports:
- "80:80"
- "8080:8080"
# ...
healthcheck:
test: ["CMD", "traefik" ,"healthcheck... |
How can I build a docker-compose file with the healthcheck for the image traefik:1.6 to validate if the container is healthy? Remarks: The image does not have cmd-shell access. I would not like to change the version of the image.
| healthcheck for the image traefik:1.6 |
To make the Docker daemon run at boot on 15.04, you can run:
systemctl enable docker
I guess they will soon update the get.docker.com script when more people complain about this, see also https://github.com/docker/docker/issues/12002#issuecomment-106759295
You can also run systemctl is-enabled docker to see if it's cu... |
I followed the official instructions on how to install Docker on Ubuntu, added my account to the "docker" group and rebooted the computer, and I'm not able to run "docker" (not even as root) as I get the following error:
$ sudo docker info
FATA[0000] Get http:///var/run/docker.sock/v1.18/info: dial unix /var/run/docke... | How to run Docker on Ubuntu 15.04? |
a RollingUpdate is always triggered when the PodTemplateSpec undertemplateis changed.While using the:latesttag is not suggested it can still work when usingimagePullPolicy: Alwaysand a label which is changed with every image adjustment. Sth like this:kubectl patch deployment test -p "{\"spec\":{\"template\":{\"metadata... | apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: test
spec:
replicas: 1
template:
metadata:
labels:
app: test
spec:
containers:
- name: test
image: xxx:latest
ports:
- containerPort: 80
imagePullPolicy: Always
imagePullSecre... | How to rolling update deployment in kubernetes? |
Ohk, its a mistake on my part.. Misunderstood what the documentation says. The documentation mentions:A local analysis uses the same quality profile as the one used on the server for the latest analysis.But here, on the server means not by selecting 'remotely' in sonar eclipse, but by analyzing the same project with so... | I have installed sonar eclipse on helios on Windowx XPSP3. It is working fine when I analyse the project remotely. But when I select to analyse the project locally, it always runs the analysis in 'Sonar Way' profile. Thedocumentationfor sonar eclipse mentions that "A local analysis uses the same quality profile as the ... | Sonar Eclipse not using 'same quality profile as the one used on the server ' |
The ability to configure the web session timeout arrived in SoanrQube 6.x series, seeSONAR-8298.No such capability in v5.6.x , which is anyhow end-of-life since late 2017. (read: perfect opportunity to upgrade to v6.7 LTS !) | We have two versions of sonarqubes with versions 6.7x and 5.6x. we want to timeout a user if a user is idle for 20 min. We were successful configuring this in 6.7x version by addingsonar.web.sessionTimeoutInMinutes=20in _/Sonar_Home/conf/sonar.properties_. But we want to add for 5.6x version also. when I tried to do sa... | User session timeout for sonarqube 5.6 version |
This:different threads actually share the same segment of heap and free list of memory, and new in one thread can allocate the memory first newed and later deleted by another threadPurpose of the threads - share memory space. If you needn't this feature, you better use processes. | In glibc,mallocis implemented with arenas.
So, for example, it is possible that the memory first allocated bymallocand laterfreed in thread A can not be used by another call ofmallocin thread B, since thread A and B may be in different arenas, and different arenas maintain different heaps and free lists of memory.When... | In C++, can new in one thread allocate the memory deleted by another thread? |
$line.Split(',')[3].Split('=')[1] | I have the following code which works but I am looking for a way to do this all inline without the need for creating the unnecessary variables$myArray1and$myArray2:$line = "20190208 10:05:00,Source,Severity,deadlock victim=process0a123b4";
$myArray1 = $line.split(",");
$myArray2 = $myArray1[3].split("=");
$requiredValu... | Create and split an array twice all inline in Powershell |
Issues Fixed :
Inbound rules added only ::/0 in the source for port 80, after remove and add HTTP, source updated like 0.0.0.0/0, ::/0 now all runs fine.
|
I am using node and express, AWS Ec2 Linux and running two web apps in port number 8080 and 8081 using pm2.
added subdomains to my Elastic IP admin.example.com and app.example.com.
My both app running in localhost:8080 and 8081.
/etc/nginx/conf.d/virtual.conf // After Edit
server {
listen admin.example.com:80;... | How to remove port number 8080 from my domain name using nginx v1.14.1? |
I think you need to install grafana on the same server where you installed PMM,
after doing that you can just access the grafana interface using your local brower
( es.http://[ip-address]:3000)https://www.fosslinux.com/8328/how-to-install-and-configure-grafana-on-centos-7.htm | I installed PMM percona tools on a remote server (that I can reach using ipv6) how/where can I run Grafana instance on a local browser so that it is connected with PMM? | i installed PMM server percona package on a remote server, how can i access now the grafana dashboard/interface? |
VM or ML Studio will not give much difference but the feasibility with Azure ML studio in validation of the images and then we are using the deep learning models. Computational power can be scalable in the form of clusters and instances when we use the azure can be increased in the node count.In ML Studio we need to us... | I'm trying to train a deep-learning model for a 512x512 model with TensorFlow. Normally, I would do it with Google Colab or another GPU in the cloud provider. However, due to security reasons, I am going to train the model in Azure which have instances with GPU restricted. My current options are the following:-Request ... | VM or Azure ML for training Deep Learning Algorithms |
Site-to-Site VPN connection logging was announced in August, 2022:https://aws.amazon.com/about-aws/whats-new/2022/08/aws-site-vpn-connection-logs-amazon-cloudwatch/The Terraform aws provider v4.30.0 also added this configuration:https://github.com/hashicorp/terraform-provider-aws/pull/26637If you’ve created a VPN but t... | Is it possible to access logs of a Site-to-Site VPN connection IPsec tunnel establishment? If the tunnel establishment is failing, there's no visibility on the AWS side of what is the reason.If accessing the logs is not possible, is it possible to inspect packets at the Site-to-Site VPN endpoint on the AWS side? I trie... | How to debug a Site-to-Site VPN tunnel IPSec on AWS? |
Try this code :RewriteEngine On
RewriteRule ^blog$ /category/blog [L]
RewriteRule ^blog/(.*)$ /category/blog/$1 [L] | I AM trying to change url in wordpress root .htaccessThe URL ishttp://www.demoain/category/blogAnd i want to rewrite url from this onehttp://www.demoain/blogPlease help me out | WordPress rewrite url (remove category) |
From our side we used:
sudo docker system prune -a -f
Which saved me 3Go!
We also used the famous commands:
sudo docker rm -v $(sudo docker ps -a -q -f status=exited)
sudo docker rmi -f $(sudo docker images -f "dangling=true" -q)
docker volume ls -qf dangling=true | xargs -r docker volume rm
We put that on cron to ... |
I'm running docker via CoreOS and AWS's ECS. I had a failing image that got restarted many times, and the containers are still around- they filled my drive partition. Specifically, /var/lib/docker/overlay/ contains a large number of files/directories.
I know that docker-cleanup-volumes is a thing, but it cleans the /v... | how to clean up docker overlay directory? |
I dont know how it works but when i put this lines in windows hosts file it works fine127.0.0.1 dock.test
::1 dock.test | I have win 10 and wsl2.
I have docker-compose like this:nginx:
image: nginx:latest
container_name: nginx
ports:
- 80:80
volumes:
- ./nginx/conf:/etc/nginx/conf.d
- ./nginx/www:/var/www
- ./nginx/logs:/var/log/nginx
domainname:
dock.test
links:
- php
- db
networks:
my:
aliases:
- dock.testIn c... | Docker inside wsl2 and Docker desktop differences |
+ name + reposeems strange.Considerthis implementationfor instancedef deleteRepository(self,name,username):
response = requests.delete(self.api_url+'/repos/' + username + '/'+name+'?access_token='+self.token)
print(response.status_code)Note the'/repos/' + username + '/'+name+'part: separators are import... | I do not coding a this situation.I can create a repository in python using arequest.post(), but I can not delete a this repository.Here is the code:def deleteRepository(self, repo, name):
headers = {'Accept': 'application/vnd.github.v3+json',
'Authorization': 'token {}'.format(self.token)}
respo... | Python deleting a repo from github with request module |
Something like the following should do the trick, if I understand you correctly.
for name in $(dscl /Local/Default -list /Users UniqueID | awk '$2 >= 500 { print $1; }')
do
cp -r /Users/$name /Volumes/Backup/$name-$(date +%d.%m.%y)
done
I assume you used \ to split directories by accident, don't you? Additionally... |
I am currently managing a fleet of Macs that are being recycled so we need to figure out a way to automate a onetime backup of a user's folder (excluding any superfluous accounts like Shared or root) on the system to a network share using rsync.
I would like to capture the output of the result of each user using the ... | Capture Output of dscl Command for Backup Script |
Fortunatly,i found a soulution to resolve this problem.
add codes as below to public void DoFiddler() in myfiddler.cs:CONFIG.bCaptureCONNECT = true;
CONFIG.IgnoreServerCertErrors = false;
if (!CertMaker.rootCertExists())
{
if (!CertMaker.createRootCert())
{
throw new Exception("U... | I developed an wpf application based on fiddlerCore,witchhelp me capture https resources.then i found a question.It's also alert a window that notice to install certificate(DO_NOT_TRUST_FiddlerRoot).i want hide this window.enter image description hereinstall certificate method just as below:public static bool InstallCe... | How could i hide the window which one notice to install certificate(DO_NOT_TRUST_FiddlerRoot)? |
Open the Chrome developer tools and select the Network tab. Refresh your page, and click the first resource on the list. The right pane will transform into a tabbed view, with the selected tab being "Headers", and the first information displayed, Request URL.Now, cycle through these until you find resources that were l... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionI've installed a SSL certificate on my websitehttp://core-electronics.com.au/eCommerceWhen I visit it in Chrome it says there... | Full SSL security [closed] |
"Retired" means that a reserved instance purchase is no longer in effect.Usually this would be because the term expired (1 year, 3 years, etc). However, according tothis thread, it looks like it could also mean that there was a problem processing payment.Either way, retired instances are no longer usable. | I can see from billing that we purchased 4 reserved EC2 instances in 2 batches of 2 earlier this year.We are currently using 2 EC2 instances.In the list of purchased reserved instances, I can see 2 listed as active, and 2 listed as retired. Can you tell me what "retired" means and if they are still usable?Thanks | Amazon EC2 reserved and retired instances |
I didn't realise I needed to create a local repository first in order to properly set up ZS with EGit.I Followed the tutorial on theEGit gettting started page, and then went back to the instructions onEGit with GitHub instructions. This made Nils Werner's comment make sense where you simply choose the connection method... | I followed directions fromthispage. Everyting seems to work.
So in short what I did.Created a repository in GitHub called 'myrepository'
Imported the repository successfully into Zend framework.
In Zend Studio went topreferences->general->network connections->ssh2->key management->Generate SSH key. I then copied and p... | Zend Studio & GitHub can pull from repository but not push |
1
Read this out:
How to move HEAD back to a previous location? (Detached head)
The best way wil be to use git reflog and then checkout the last good point,
or
to rename the current branch and check it out again.
Git reflog
Using the git reflog you can view all your git h... |
In the project we have a main repo with master branch MAINREPO/master (upstream). My team has a fork MYTEAM (origin). We aggried that we use MYTEAM/masteronly synchronize with MAINREPO/master:
1. git checkout master
2. git fetch upstream
3. git rebase upstream/master
4. git push
But of course, somebody broke this ... | Accidental commits to master - how to fix it |
You can use"cluster-autoscaler.kubernetes.io/safe-to-evict": "false"...
template:
metadata:
labels:
app: jenkins
annotations:
"cluster-autoscaler.kubernetes.io/safe-to-evict": "false"
spec:
nodeSelector:
failure-domain.beta.kubernetes.io/zone: us-west-2b
... | I am running a Kubernetes cluster(AWS EKS one) withAutoscalerpod So that Cluster will autoscale according to the resource request within the cluster.Also, cluster will shrink no of nodes when the load is reduced. As I observed, Autosclaer can delete any node in this process.I want to control this behavior such as askin... | How to make sure Kubernetes autoscaler not deleting the nodes which runs specific pod |
If you have control over thestatusObjyou should check the relevant code where data is being parsed into the object and try to get the input ascleanas possible.You want to make sure your string is decoded to unicode before you try to encode it.If not you can try:# try to get the string into unicode
screen_name = unicode... | As many hopefully can relate, this encoding problem is driving memental. I would really appreciate some light on this!End goal is to be able to run the same script.py from both terminal and cron, and from cron with> stdout.txt. And needless to say, I'm having serious encoding troubles.My script.py runs fine from termin... | Python script encoding trouble when run in CRON job |
String[] command = new String[]{"mysql", Constants.DB_NAME, "-u" + Constants.DB_USER, "-p" + Constants.DB_PASSWORD, "-e", " source "+FileName };
try {
Process runtimeProcess = Runtime.getRuntime().exec(command);
int processComplete = runtimeProcess.waitFor();
if (processComplete... | String[] executeCmd = new String[] { "mysql", "-u",DB_USER,"-p"+DB_PASSWORD,DB_NAME, " < ", "\""+FileName+"\"" };
Process runtimeProcess = Runtime.getRuntime().exec(executeCmd);
int processComplete = runtimeProcess.waitFor();
System.out.println("processComplete: " + processComplete);This is the code I have worked with... | MySql backup is not working |
You won't be blocked but you can get stale data if the object already exists and has been recently replaced or deleted.S3 provides read-after-write consistency for PUTS of new objects.S3 provides eventual consistency for overwrite PUTS and DELETES. What this means is that user2 could get a stale version of the JSON eve... | So I'm new to amazon s3 and was wondering if somebody could help answer this questions.I have a set of static API / JSON files that are used to power a mobile app, while the JSON data for the most part is static an update can be triggerd at any time, causing the data to be updated and the JSON file as such updated as w... | How does aws s3 handle overwriting a file and access? |
Since the Prometheus server'sonlysource of truth for the metrics isGETting the target endpoints, and you assert that the metrics forip2when browsed directly are correct, the evidence suggests that you're incorrectly queryingip2's metrics from within Prometheus.Please add to your question the evidence that the metric va... | I have Prometheus 2.28.1 version and I installed Node Exporter to few my machines, so myprometheus.ymlis:scrape_configs:
- job_name: 'node-exporter'
scrape_interval: 60s
static_configs:
- targets: ['ip1:9100', 'ip2:9100']ip1andip2have absolutely different hardware, but all metrics inside prometheus fori... | prometheus incorrect values for few targets |
Someone has, fortunately done the hardwork for you, on how to deploy a django application on dotcloud.
|
I am new to django development and overall web app development, but I am a programmer.
I want to know what are the steps to deploying a django app on DotCloud that will run on an apache server with mod_wsgi. Nginx will be used to serve media files, and Postgresql will be used for the database. This will all be used al... | Deploy Django app with apache + mod_wsgi + postgresql + nginx + memchache using DotCloud |
The problem is that the body contents is being expected to be base 64 encoded, try base64 encoding the body before passing it to the invoke statement.ShareFollowansweredMay 24, 2020 at 10:09Chris WilliamsChris Williams33.5k44 gold badges3434 silver badges7171 bronze badges1Hmm, so the response should have a body attrib... | I am new to Amazon SageMaker and I am closely following this tutorialhttps://aws.amazon.com/blogs/machine-learning/creating-a-machine-learning-powered-rest-api-with-amazon-api-gateway-mapping-templates-and-amazon-sagemaker/to create a machine learning-powered REST API with Amazon API Gateway mapping templates and Amazo... | Invalid base64: "{"instances": [{"in0":[863],"in1":[882]}]}" when testing Amazon SageMaker model endpoint using the AWS CLI |
THOUGH DEFINITELYit does not the answer your question, but I want to post a solution for whom have the same problem butbecause of different reason.For Forecomers having the issueI had the same issue(just reached this question by googling), and I remembered disabling the javascript of my browser. Why don't you enable th... | While I was editing README.md in one of my repositories, the process blocked somehow.
Since then, when I access that repository, status stays in 'Fetching latest commit… ' and I am not able to upload any files or edit them on the web.
The other repositories work. I do not have this repository on my computer (i have the... | github web Repository blocks with : Fetching latest commit… |
A simple solution that works:Just close the file being editedClick "File->Reopen Last Item" to re-open itThis is an issue with Atom, it does not detect the tag when it auto completes, it works fine in VSCode, so it's not really a problem with your code, it's the IDEenter image description here | Here in the image you see the code is greyed out. Before I put in the<script>tag everything was not greyed out. Once I put in the tag is greys out the rest of the code. I might be missing a file needed to run the script tags?I have been working with code for a while, but I am still a little stuck on how to get the c... | How to add script tags to html |
The metrics provided bylogstash in the APIare not enough for a consistent alerting.The alternatives can be:usemtailfor parsing the logs and increment a counter whenever you get this specific error.use ablackbox exporterfor checking the availability of ESfind a way to detect a flatline in your log ingestion (logstash re... | I am using logtash 6.6.2 to send logs to elasticsearch. When logstash is unable to send a log record to elasticsearch , elasticsearch output plugin log an error in the logstash container. I am wondering if there is a way to raise an alert in prometheus with some metrics provide by logstash to be aknowledge to that erro... | Raise an alert in prometheus when logstash's elasticsearch output plugin log an error |
The problem here is that your main container is not finding the folder you create. When your initial container completes running, the folder gets wiped with it. You will need to use a Persistent Volume to be able to share the folder between the two containers:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
nam... |
I am trying to play with init pods. I want to use init container to create file and default container to check if file exist and sleep for a while.
my yaml:
apiVersion: v1
kind: Pod
metadata:
name: init-test-pod
spec:
containers:
- name: myapp-container
image: alpine
command: ['sh', '-c', 'if [ -e /workd... | Kubernetes - Trying to create pod with init container |
It is gone from origin, meaning the main version of your repo, meaning the version that is on GitHub.com. However, someone might have had time to clone the repo and checked out that branch in their clone. Then that branch exist in the clone regardless what you do to origin if that is important. Including your own clon... |
Imagine you just created a new branch, added some commits and noticed you messed up. Can you now just delete the (not merged) branch to undo your changes?
Talking about the regular Github page.
Thanks!
| If I delete a branch without merging, what happens? Can I do that to undo my changes? |
It looks like docker checkpoint may be the thing I'm attempting to accomplish here. There's not much in the docs that describes it as such. In fact, the docs for docker checkpoint say "Manage checkpoints" which is massively unhelpful.
UPDATE: This IS, in fact, what docker checkpoint is supposed to accomplish. When ... |
I like to use Jupyter Notebook. If I run it in a VM in virtualbox, I can save the state of the VM, and then pick up right where I left off the next day. Can I do something similar if I were to run it in a docker container? i.e. dump the "state" of the container to disk, then crank it back up and reload the "state"?... | Is there a way to hibernate a docker container |
Yes you can. The kubernetes API Server, Controller manager, and scheduler are all run as static manifests in minikube.So, in fact, in your example: Any change to the manifest willautomaticallylead to them being restarted instantly.In order to make the modification, just useviinside of /etc/kubernetes/manifests on what... | I have a local minikube installation. I want to change the authentication mechanism for the api-server and restart and test it out. All the documentation I have read lacks this information. | How can the authentication mechanism be changed for api-server in Minikube? |
Fetch the changes from the original project, merge them into your project, and push back to your Github repository.It is not a good idea to automate this, generally. (The upstream changes may result in a merge conflict or worse: a "clean merge" that breaks everything.)ShareFollowansweredDec 27, 2011 at 22:58Dietrich E... | If I fork a project on Github, and that project gets updated, how can I make my fork get updated as the main project is updated? | Update my Forked version of a project on Github |
Thelocation /block is typically the fall-through that matches URIs that did not previously match anotherlocationblock. And use0and1to represent true/false for cleaner config files.Rembember 301 is permanent redirect, 302 is temporaryset $mobile_redirect 0;
if ($http_user_agent ~ "netscape navigator") {
set $mobile_... | hoping for some insight here on this redirection processI am hoping to redirect all URL's EXCEPT ones that match the following.https://www.something.com/about-us/foo/(single page)
ANDhttps://www.something.com/foo/some-arbitrary-segment/(many pages with this structure)These are the only urls in the sitemap containing "f... | Regular expression match NGINX url segments from $request_uri variable |
For anyone who is stumbling on the same behavior, I found the problem for this.
After enabling Prometheus only those metrics are reported, that have been executed at least once.
After pushing a branch to the repo, the metricgitlab.transaction.event_push_branch_totalwas visible as well. | I am relatively new to GitLab and struggle with making use of the metrics provided by GitLab.
I followed the steps described in theGitLab documentationto activate the embedded Prometheus endpoint under/admin/application_settings/metrics_and_profiling.When I curl the/-/metricsendpoint from the GitLab docker container, P... | Not all GitLab Prometheus metrics are working |
Try this:RewriteEngine On
RewriteRule ^directory/pdffile.pdf$ http://domainB.com/wnewpdffile.pdf [R=301,NC,L]
RewriteRule ^(.*)$ http://domainB.com/ [R=301]Where "L" flag tells Apache not to process any more rules if this one is used. | I'm using.htaccessto 301 redirect everything on domain A to the homepage of domain B, but I need it to ignore one specific pdf file URL on domain A, and have that domain A pdf file URL redirect to a URL on domain B.I'm using this currently to redirect just the pdf file -Redirect 301 /directory/pdffile.pdf http://domain... | Redirect everything from domain A to domain B homepage, except redirect one specific pdf file |
In the JSON you provided, password seems to be the only one capitalised « Password ».Shouldn’t it be{
"name": "Test_PG_DB",
"type": "postgres",
"url": "test_works",
"user": "test_works",
"access": "proxy",
"database": "test_works",
"password": "test_not_working",
"basicAuth": false
}Also you could try the secureJsonDat... | I'm working on a group project to measure the efficiency of PGDBs and queries of PGDB data. We are going to have the user run an instance of Grafana locally and send requests to that URL to set up the users PG database. Once setup, we would then setup a dashboard with the information that we want access to and have it ... | Making API Requests to Grafana Local |
Summarizing Jonas's comments:WARNING: There are plans to deprecate vars. For existing users of vars, we recommend migration toreplacementsas early as possible. There is a guide for convering vars to replacements at the bottom of this page under “convert vars to replacements”. For new users, we recommend never using var... | I want to use vars without ConfigMaps or Secrets. Declaring a value would be sufficient for me. But I couldn't see any documentation regarding vars attributes or how I can use. Do you know any docs about this? Thanks!vars:
- name: ROUTE_HOST
objref:
kind: ConfigMap
name: template-vars
apiVersion... | Is there any documentation on how to use vars in kustomize? |
Is it possible to have this logic inside the container, and re-run npm install every time package.json is changed?It is not fully clear to me, if your changes in package.json are done on host or in docker container in /tmp/ directory. I guess you modify a file on host since you have other project files there.If you mod... | I'm trying to set updevelopmentcontainers for a node.js project so that my local source files are shared with the guest (so I candnsmasqwildcard requests to a local domain over port 80, but I guess that's irrelevant to the question). When I make a change locally, the node process in the container is restarted:Dockerfil... | Docker automatically rerun npm install on package.json change |
1
It looks like your .env file isn't tracked by Git and it is a good practice to do that, because local .env may contain sensitive information about your app. The good approch is making your own .env file after cloning the repo by copying .env.example and configure is as ... |
I want to share all of files in laravel framework named by t05 but it have a trouble .env file is not shared. I don't know why.
enter image description here
| I want to share all of files in laravel framework named by t05 on github but it have a trouble .env file is not shared. I don't know why |
If you wish to have identical url's for 3 completely different things, you are forced to use a php page to 'detect' what kind of 'thing' it is and 'route' your request to a specific page.The following (untested) two rules will redirect all listed 'ugly' url's above to a fancy url and the fancy url to a php page that de... | This question already has an answer here:rewrite url with htaccess [closed](1 answer)Closed10 years ago.My problem:
I want to write a .htaccess rule for.www.asdf.com/city.php?city=New-Yorktowww.asdf.com/New-Yorkbut also with that I have other pages such aswww.asdf.com/country.php?country=USAwhich I would like to appear... | url rewriting with htaccess? [duplicate] |
Nevermind, I solved it by creating a configMap and mounting it as a volume.I'm leaving this here for future reference | I have a MySQL database on Kubernetes. What I want to do is to run some SQL scripts to set up the database. I have tried to mount a host drectory on/docker-entrypoint-initdb.d, but when I try to see the contents of that directory it appears empty. My deployment file is the following:apiVersion: apps/v1
kind: Deployment... | MySQL Init SQL files don't get mounted |
The major difference is maintainability and management from your side.If you want more independent management and more control then I would say go for AWS EMR. Where its your responsibility to manage the EMR infrastructure as well as the Apache Flink cluster in it.But if you want less control and more focus on applicat... | I'm executing a Flink Job with this tools.
I think both can do exactly the same with the proper configuration. Does Kinesis Data Analytics do something that EMR can not do or vice versa?Amazon Kinesis Data Analyticsis the easiest way to analyze streaming data, gain actionable insights, and respond to your business and ... | What is the difference between AWS Elastic MapReduce and AWS Kinesis Data Analytics? |
Answering my own answer:It seems like the problem has been fixed but it is not clear to my what was the actual fix. I'm currently using:Windows 10 Pro, Os Build 19041.685.Docker for windows Version 3.3.0 (62916) with WSL2Engine 20.10.5Xubuntu 18.04 on the guest machine.Virtual Box 6.1.18 with the guest additions instal... | I tried to clone multiple github repos (e.g Node.js repo) via HTTPS using Xubuntu and Lubuntu VMs as guests on Windows 10 to no avail since it fails with a data stream error:fatal: pack has bad object at offset 610504: inflate returned -3
fatal: index-pack failedThe error changes across multiple runs of the same comman... | Git clone fails over HTTPS on Linux VM (Inflate: Data Stream Error) |
GLibhas a good and well-documented collection of data structures implemented in C, give a look at it.ShareFollowansweredJul 28, 2011 at 20:20akappaakappa10.3k33 gold badges4040 silver badges5858 bronze badgesAdd a comment| | I've got a series of structs (audio data) which I need to hold onto but I can only hold onto a limited amount due to memory constraints. I think the best way to do this is with a queue. If I were do this based on my fuzzy memories of my college classes I would create a linked list with pointers. I would push new items ... | What is the best way to manage a queue of structs in C? |
There isn't a way to dynamically add file to a pod specification when instantiating it in Kubernetes.Here are a couple of alternatives (that may solve your problem):Build the configuration file into your container (using the docker ADD command). This has the advantage that it works in the way which you are already fami... | i am trying to pass a configuration file(which is located on master) on nginx container at the time of replication controller creation through kubernetes.. ex. as we are using ADD command in Dockerfile... | how to pass a configuration file thought yaml on kubernetes to create new replication controller |
Accdording tothis documentation page,the address of a block returned by malloc or realloc in the GNU system is always a multiple of eight (or sixteen on 64-bit systems).In general,mallocimplementations are system-specific. All of them keep some memory for their own bookkeeping (e.g. the actual length of the allocated b... | I came across the following code:int main()
{
char *A=(char *)malloc(20);
char *B=(char *)malloc(10);
char *C=(char *)malloc(10);
printf("\n%d",A);
printf("\t%d",B);
printf("\t%d\n",C);
return 0;
}
//output-- 152928264 152928288 152928304I want to know how the allocation and paddi... | Which guarantees does malloc make about memory alignment? |
The only suggestion I would make is to make your exception handling a little more specific. You don't want to accidentally delete the fcntl import one day and hide the NameError that results. Always try to catch the most specific exception you want to handle. In this case, I suggest something like:
import errno
tr... |
I need to run a python script (job.py) every minute. This script must not be started if it is already running. Its execution time can be between 10 seconds and several hours.
So I put into my crontab:
* * * * * root cd /home/lorenzo/cron && python -u job.py 1>> /var/log/job/log 2>> /var/log/job/err
To avoid starting ... | Running python script with cron only if not running |
I'm not a docker expert.To the best of my knowledge Nvidia puts a lot of effort to ship GPU-optimized containers such that running GPU pytorch on Nvidia GPU with Nvidia container should have best possible performance.Therefore, if you are using Nvidia hardware you should expect better performance using NGC containers. ... | What are the differences betweenthe official PyTorch image on Docker Hubandthe PyTorch image on NVIDIA NGC?The NGC page is more documented than the Docker Hub page, which has no description. But the NGC image is also heavier by a few gigabytes, and it seems to require a CUDA 10.2-compatible driver.Is there any advantag... | PyTorch: NVIDIA NGC image or Docker Hub image? |
You can use the following rules :RewriteEngine on
#1--Redirect from "?search=foobar&cat=cat" to "/s/foobar/cat" --#
RewriteCond %{THE_REQUEST} /\?search=([^&]+)&cat=([^\s]+) [NC]
RewriteRule ^ /s/%1/%/%2? [NC,L,R]
#2--Redirect from "/?search=foobar" to "/s/foobar" --#
RewriteCond %{THE_REQUEST} /\?search=([^/\s]+) [NC... | Here is my htaccess code:RewriteEngine On
RewriteRule ^s/(.*)/(.*) /index.php?search=$1&category=$2 [L,QSA]
RewriteCond %{QUERY_STRING} ^search=([A-Za-z0-9\+]+)$
RewriteRule ^(.*)$ /s/%1/? [R=301,L]
RewriteCond %{QUERY_STRING} ^search=([A-Za-z0-9\+]+)&category=([A-Za-z0-9\+]+)$
RewriteRule ^(.*)$ /s/%1/%2/? [R=301,L]... | htaccess mod_rewrite - Trailing Slash and loop of redirects |
Ups - just realized, that the repos I see when looking at my repos, are my repos, and not an organization's repos - makes sense somehow… | I am cleaning my GitHub repositories which are not in an organisatgion, i.e. moving them to appropriate organisations, archiving them, etc.My question: How can I easily see which repositories arenotin an organisation (the organisations, I will tackle later)? | How can I see all my repositories on github which are NOT in an organisation? |
You can't change the cron jobs to run on a different version then the default.Depending on how much time your cron job takes to run you could change your cron job script to to do a URLFetch to "http://latest.appname.appspot.com/cron_job_endpoint".If you're cron job takes longer then 10 minutes to run, then I would desi... | Recently I've started using limited staging on my Google App Engine project. The data is still shared between all versions, but behaviour (especially user facing behaviour) is different.Naturally when I implement something incredibly new it only runs on the latest version of my code and I don't feel like it should be b... | How to run GAE cron jobs as specific app version? |
It's not "lost" but you're correct that it's never observed.Almost all measurements suffer from errors from this necessary approximation ordown sampling.A consequence is that any measurement calculation isalmostalways only as good as the data that was captured.The problem is exacerbated when sampled data is further "sa... | How does prometheus collect CPU information during intervals it dont scrape ? For e.g. i have myscrape_interval: 15sand a CPU spikes up to 90% during the 15 seconds that prometheus did not scrape ... Will i loose this important information being aggregated into average CPU used my process metricsrate(process_cpu_sy... | what happens to application metrics e.g. CPU used by process that are not scraped in scrape interval prometheus |
Submodules
When you clone a submodule into your repository, it will have its own .git/config file and its own notion of origin. Assuming that the submodule is yours (e.g. there is no third-party repository upstream of your remote) then you don't need to worry about creating an upstream remote for the submodule.
If you... |
I'm quite new to this Git thing and need a little help.
I recently created a new repo on GitHub and cloned it on my desktop. Let's call it myProject. I also have a fork in my GitHub account which I included in myProject as a submodule. Let's call this myForkOfOtherProject, which is a fork of otherProject.
So, this is ... | Setting upstream to a submodule (or how to include a GitHub fork as a submodule) |
3
in case some people are still wondering you can achieve this using a map:
stream {
upstream staging1 {
server 1.2.3.4:8000;
}
upstream staging2 {
server 1.2.3.44:8000;
}
map $remote_addr $backend_svr {
4.5.6.7 "staging2";
default "staging1";
... |
I have configured nginx as a reverse proxy for a TCP (non-http) stream.
I'd like to apply different routing for a particular source IP address - can this be done, and how? I'm aware of recomendations for the http module using the if directive, but that doesn't seem to work for these streams.
Existing configuration:
st... | Nginx TCP stream routing based on source IP |
This is because even though the vm type is r5.12xlarge, the cpu of each vm won't necessarily be identical on each vm. In the case above there were two different cpus:Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHzIntel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHzPOD_NAME=foo
NS=bar
kubectl exec -it $POD_NAME -n $NS -- /bin/c... | We have the following pods all processing identical workloads but one pod is showing less cpu usage than the others:We are deploying the pods on AWS. Pods are deployed across several worker nodes, and each of the worker node types are r5.12xlarge. | Why are pods showing different cpu loads for identical workloads? |
If you are using Cassandra 1.2 or greater, you can useBATCHto wrap up multipleINSERT/UPDATEstatements.For example:BEGIN BATCH
INSERT INTO users (userid, password, name)
VALUES ('user2', 'ch@ngem3b', 'second user');
UPDATE users SET password = 'ps22dhds' WHERE userid = 'user3';
INSERT INTO users (userid, pas... | I am working on an application, where I need to send multiple requests to the cassandra server. The individual requests are kind of a write/read requests, with short interval of execution. I am observing a major bottleneck in round trip time.Can I pipeline the requests to the cassandra to avoid RTT, just like pipelinin... | Cassandra : How to send multiple write/read requests in a single client request? |
Yes, there is a way. Even though it's a little bit tricky.Basically when a container is removed, its entire filesystem is erased. So you need to find some way to persist the command history file.First, find the history file used by shell in the container. For me, I am running a busybox container. I find out the history... | Every time I build a Docker container, the command history (CTRL+Rin Ubuntu) is lost. Is there a way to prevent it from resetting the history after each build ? | Docker: preserve command history |
Here are a few suggestions to avoid OOM in ViewPager.If the bitmap sizes for the image views in your view pager are very big, then dynamically resize the bitmap based on the screen size.Call bitmap.recycle() in thedestroyItemmethod of view pager adapter to free up memory (ginger bread devices). If you have not implemen... | Each and everytime I use swipe option to swipe b/w Images I always getOutOfMemoryError. Either I am usingViewPagerorActivitySwipeDetectorevery time this error occured. I am usingandroid:largeHeap="true"its work on API level 11 and above. But what to do if we are using minimum API level 8. And what guidelines we have to... | How to overcome from OutOfMemoryError in android |
0
https://github.com/blog/1436-moving-and-renaming-files-on-github
simply prefix the filename (in the input field) with .., the path prefixing the input field will reduce one directory.
Share
Improve this answer
Follow
... |
Using only the web interface I moved a file into a new directory by renaming the file in the filename input field.
That was a mistake, now I need to move it back down a directory...
how to do this?
| Howto move a file back down the directory tree on Github Web |
For those using apache. You will need toEnsure you have .htaccess in root path of the site you are hosting. Example /var/wwwUpdate the /etc/apache2/sites-available/defaultFrom<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
... | I've been searching for hours but haven't found anything that seems to be able to solves this issue.Here's the scenario:I'm making a wp theme based on the "Twenty Eleven" theme. Everything went fine til I decided to change the urls to permalinks. The only page being displayed is the static page that I have defined earl... | Permalinks in Wordpress - Page not found |
There is a way of configuring phpadmin on you local machine or server to connect straight to your amazon database, but this would require you to have the connection string for your amazon database. look around the settings for your amazon database server and get the IP/URL, db_name, user_name and password. After gettin... | I am new to Amazon web services and I have no knowledge of operate this service. I recently created a mysql database using Amazon RDS and now want to access phpmyadmin to import an existing database to Amazon RDS.What's the solution? | How to get phpmyadmin access on Amazon RDS Database |
You can use SSH to connect to Github. They have anSSH keyguide in case you haven't added your public key to your Github account yet, and then all you have to do is use the SSH repo URL instead of the HTTPS repo URL to clone your repository.You can find the SSH url by clicking the button next to where the repo URL is li... | I setuppassword caching, but it's odd in that I thought that I'd already done that. From an e-mail to github, it seems that they changed things a bit:Hello Thufir,What you are seeing is that all newly created repos are now using
Smart HTTP instead of SSH by default. We have a help article here that
explains how to... | github uses Smart HTTP |
UsingGitHub Pages:Upload all files to GitHub repository. Name the homepageindex.htmlIn the top horizontal bar, clickSettingsClick onPagesin the sidebarUnderBranch, click the dropdown which currently saysNone ▼and clickmainormasterClickSaveYour site is now published atusername.github.io/repo.UsingVercel's free planwhich... | I am trying to host my website on GitHub.It consists of multiple HTML files (homepage.html,projectpage.html,imagesfolder etc.) and a CSS file. However, when I publish it, only the README is shown and not my HTML web pages.How do I host my website on GitHub? | How do I host my portfolio website on GitHub? |
I figured out by myself.
All I have to do is to apply some SQL.ALTER TABLE (table name) CONVERT TO CHARACTER SET UTF8Sorry for bothering. | I'm using RDS on ElasticbeansTalk of AWS.
As I noticed Japanese character on RDS, I tried to change settings on RDS parameter group like this.And thisEven though I modified some settings, the configuration didn't still work.No matter what I import csv data including Japanese character, the table is getting like this.Ho... | How to apply utf-8 to RDS |
They use unmanaged APIs which provide access to the profiler.ICorProfilerCallbackandICorProfilerCallback2are the main ones. These are the the interfaces that .NET profilers use. There are some more references likethis.You can use the methods for class loads (ClassLoadFinished()) and unloads (ClassUnloadFinished()) to t... | .NET profilers can show reference count to managed objects. How do they count them? | How can I get reference count for a managed object? |
Here is one way you could accomplish this outside of Kustomize.Secrets can be consumed as environment variables in the Pod spec using thevalueFromkeyword. Documentation about this is athttps://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-environment-variables.Knowing this, you could modify your sc... | I have a number of secret "environment variables" I want to get into a kubernetes cluster. Currently, I have a directory of these secrets where each var has a corresponding file named the same way as the variable it is supposed to be assigned to. Usingdocker-compose, this gives me a script likefor secret in .secrets/*;... | Create per-file Kubernetes secrets from a directory of text files in Kustomize |
When a context is destroyed, all objects created within the context are automatically deleted. This behavior is defined in the ES 2.0 spec in appendix C under "Object Deletion Behavior":
Once the last context on the share list is destroyed, all shared objects, and all other resources allocated for that context or sha... |
I saw this: Android SurfaceView doc. Under the Context lost it says:
There are situations where the EGL rendering context will be lost. This typically happens when device wakes up after going to sleep. When the EGL context is lost, all OpenGL resources (such as textures) that are associated with that context will be ... | No need to do opengl delete functions in android? |
It's not possible to set backend protocol per rule in a single ingress. To achieve what you want you can create two different ingress one for service1 and another one for service2 and annotate the ingress for service1 with http and ingress for service2 with https.
|
I have a kubernetes cluster setup with two services set up.
Service1 links to Deployment1 and Service2 links to Deployment2.
Deployment1 serves pods which can only be connected to using http.
Deployment2 serves pods which can only be connected to using https.
Using kubectl port-forward and exec'ing into pods I know th... | Can you set backend-protocol per rule in k8s nginx ingress? |
Use thenginx map directiveto set the$maintenancevalue according to the$remote_addr:map $remote_addr $maintenance {
default on;
127.0.0.1 off;
10.1.1.10 off;
10.*.1.* off;
}
server {
server_name doamin.tld;
if ($maintenance = on) {
return 503;
}
# ... your cod... | I have this server block:server {
server_name doamin.tld;
set $maintenance on;
if ($remote_addr ~ (127.0.0.1|10.1.1.10)) {
set $maintenance off;
}
if ($maintenance = on) {
return 503;
}
error_page 503 @maintenance;
location @maintenance {
root /var/www/html/glob... | How can I set a range of remote IP addresses without passing a list? |
+25The issue comes from the mapping between the host user/group IDs and the ones inside the container. One of the solutions is to use a named volume and avoid all this hassle, but you can also do the following:Adduser: ${UID}:${GID}to your service inside the docker-compose file.RunUID=${id -u} GID=${id -g} docker-compo... | I stumbled across a problem with docker volumes while starting docker containers with a docker compose file (MariaDB, RabbitMQ, Maven). I start them simply withdocker-compose up -d(WITHOUT SUDO)My volumes are definied like this:...
volumes:
- ./production/mysql:/var/lib/mysql:z
...Everything is working fine and the./... | Docker volume mariadb has root permission |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.