Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
In your<VirtualHost *:80>Redirect permanent / https://ampletrails.comshould beRedirect permanent / https://ampletrails.com/ | http link of pagewhen redirect removes the / after the .comhttps link of page but without / after .comI am using VPS with apache and have following code in my .htaccess file.RewriteEngine On
# This will enable the Rewrite capabilities
RewriteCond %{HTTPS} !=on
# This checks to make sure the connection is not already H... | Redirect of http to https remove slash after .com apache |
7
Try Electric Fence. Its effect is global to your process' heap, but if your program accesses memory correctly it should not have any (unwanted) ill effect.
Share
Improve this answer
Follow
edited Nov 1, 2... |
Is it possible to overload the new operator to allocate a bigger buffer with read-only memory on both sides to detect memory overflow, and how could I make that memory read-only?
linux + gcc
| How to lock a buffer which needs to be write-only? |
Solution-1:
Since the process.env expose all environment variables, so you can run
export MYCUSTOMENV=foo && npm run build
and the use process.env.MYCUSTOMENV in anywhere you want.
From vue doc: Only variables that start with VUE_APP_ will be statically embedded into the client bundle.
Solution-2
Use process.argv ... |
Goal:
Pass an argument to be used during build time, to be able to use it in my .env.production file (or something that lets me use it as an environment variable if that's not possible).
.env.production file:
VUE_APP_CLIENT_ID=00-should-be-using-what-was-passed-by-command-00
Docker file:
#Inside my docker file
RUN ... | Pass an argument (command line) to be used by an .env.[mode] file, during build in Vue.js |
In the dusty corners of standard library, long forgotten by everyone, sits a class called valarray. Look it up and see if it suits your needs.
From manual page at cppreference.com:
std::valarray is the class for representing and manipulating arrays of values. It supports element-wise mathematical operations and vario... |
Is there a preexisting library that will let me create array-like objects which have the following properties:
Run time size specification (chosen at instantition, not grown or shrunk afterwards)
Operators overloaded to perform element wise operations (i.e. c=a+b will result in a vector c with c[i]=a[i]+b[i] for all ... | Element-wise operations in C++ |
You’re starting Sinatra in the development environment. When running in developmentSinatra only listens to requests from the local machine.There a few ways to change this, the simplest is probably to run in theproduction environment, e.g.:$ ruby myapp.rb -e productionYou could also explicitly set the bind variable if y... | I am trying to deploy a Ruby Sinatra api onto port 4567 of an EC2 micro instance.I have created a Security Group with the following rules (and created the instance with said security group):--------------------------------
| Ports | Protocol | Source |
--------------------------------
| 22 | tcp | 0.0.0.0/0 ... | Sinatra EC2 Deployment Security Group Error |
its probably because the python process is doing something on exit thats eating ram. As a work around you can change grafana to a average ram usage across a time range to smooth out that spikeShareFollowansweredNov 19, 2021 at 13:54testfiletestfile2,29422 gold badges1313 silver badges3333 bronze badgesAdd a comment| | We have thispythonimage running a Sanic server with a simple entrypoint:ENTRYPOINT ["python3.9", "entrypoint.py"]All of our orchestration is managed by Kubernetes.Whenever a pod is deleted, the pod exits with a spike in memory usage, alerting our Grafana dashboardsHow can I debug this? | Pod exiting from Kubernetes causes spike in Pod memory usage |
You can use the below template"DNS": {
"Type": "AWS::Route53::RecordSet",
"Properties": {
"HostedZoneId": "Z058101PST6709",
"Name": {
"Ref": "AlternateDomainNames"
},
"ResourceRecords": [{ "Fn::GetAtt": ["myDistribution", "DomainName"] }],
"TTL": "900",
... | "DNS": {
"Type": "AWS::Route53::RecordSet",
"Properties": {
"HostedZoneId" : "Z058101PST6709",
"RecordSets" : [{
"Name" : {
"Ref": "AlternateDomainNames"
},
"Type" : "CNAME",
... | Use Route53 template in cloudformation with Cloudfront |
just trying to clarify some things in your question :)Are you submitting a pull request to the upstream repo that you forked from, and wanting the upstream repo's Travis integration to build your code?If so, it may be that the upstream repo's maintainer doesn't have the "Build PR" setting turned on in Travis for their ... | i've a repo withmasterandbranch1. I'm writing test inbranch1with mocha / chai and i've changed the package json (forked a repo and maded some changes to it), but Travis seems to build still the old one, even if i changed my package.json. I've just forked and replaced the version in the package.json with the name of the... | CI - Using the right package.json while in other branch |
Websockets is not currently supported, we are working on adding it and I will update here when it is available.Thank youEdit: Websocket support is available in all regions, the annotation for it is:annotations:
ingress.bluemix.net/websocket-services: service-name | When the client tries to connect our ingress defined endpoint via awss://request, the app returns 400 bad request, which according to socket.io docs is due to missing headers removed by load balancing proxies like nginx.apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: my-ingress
annotations:
nginx.o... | How to add websocket support to an ingress resource in Kubernetes on IBM Bluemix? |
You can use a workaround like this:Create a Service with typeExternalNamein your namespace when you want to create an ingress:apiVersion: v1
kind: Service
metadata:
name: service-1
namespace: unversioned
spec:
type: ExternalName
externalName: service-1.service-1-ns.svc.cluster.local
ports:
- name: http
... | Using Traefik as an ingress controller (on a kube cluster in GCP).
Is it possible to create an ingress rule that uses a backend service from a different namespace?We have a namespace for each of our "major" versions of code.1-service.com -> 1-service.com ingress in the 1-service ns -> 1-service svc in the same ns2-ser... | Route traffic to a service in a different namespace with Traefik and Kubernetes |
There was some security updates. You need to use TLS 1.2 for the sandbox (updates will need to be applied at a later date for Paypal in Live mode too).https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1766&viewlocale=en_USHere's the roadmap and the different dates :Jan 14, 2016 After ... | I am using paypal sandbox account for my java application and hosting using centos 6.7. While I am running the application I am getting error for communicating with paypal account.I am getting the error as followed,javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at sun.security.ssl.Alerts... | Getting ssl handshake error while communicating with paypal server in my java application |
In my particular case, I was working with Docker for Windows from Edge channel. So I just uninstalled it and installed the latest release from Stable channelhttps://docs.docker.com/docker-for-windows/install/#download-docker-for-windows. It worked out and the problem went away. | I have trying to execute a newly asp net core project from inside visual studio 2017, but always get this error:Build path either does not exists, is not accesible, or is not a valid
URLAny idea what the problem is? | Visual studio 2017 docker error running app |
Yes, they should have the same password. | I'll preface this with the statement that I hate using these Amazon servers.Ok what I need to know is how to find the password for a specific Amazon RDS instance. I have a live instance running my store and working on setting up a development copy. So I lauched a copy of the DB but can't seem to find the password for... | Amazon RDS Instance Password? |
3
Git branch names are ephemeral. You can delete the branch name and it's gone. (The commits themselves are a different question as they are independent of the branch name.)
GitHub Pull Requests are permanent. They are not in Git, they are in GitHub. They are stored in ... |
I mistakenly named a branch and pushed it to Github, even opened the pull request.
Now I want to rename the branch like this, But if I do, it will delete the old branch and create a new one with the correct name. The issue is, that I don't want the owner of the repo to see that I have deleted a branch. I completely wa... | How do I modify a GitHub pull request so that the pull request cannot be seen? |
A kmem_cache consists of 1 or more slabs.
A slab consists of 1 or more contiguous pages.
So when you call kmem_cache_alloc, it returns you a piece of memory in a slab which consists of 1 or more contiguous pages.
But if you call kmem_cache_alloc twice, the 2 pieces of memory you get may not contiguous.
And kmem_cach... |
Am I right assuming that a memory slab created and allocated with kmem_cache_create and kmem_cache_alloc is contiguous?
| kmem_cache_* creates contiguous memory? |
There is very nice project which I found and now I can solved my problem.I used dockprom which created by stefan you can visit thisgithub link.These are streps that I used:I use one server as a master (I deploy dockprom project on this server).There are two ways to monitor another server by using this project;You can o... | I am new in prometheus.I want to monitor all docker containers inside many servers.
The case is like this:I have 3 servers -> server A, B, and C (all running with Ubuntu).Each server has many docker containers for difference project.I will add one server (server D) and I want to install Prometheus on
this server.My qu... | Prometheus for monitoring docker containers on multi servers |
From the documentation to setup a custom domain:
Warning: Project pages subpaths like
http://username.github.io/projectname will not be redirected to a
project's custom domain.
This means that due to the relative paths you can either have the assets on your username.github.io/project-name or on your custom domai... |
I have created a website and am trying to host it on git hub pages. My site is available at -
http://<username>.github.io/<project name>/
But the static files for my site are available at the following path -
http://<username>.github.io/css/site.css
http://<username>.github.io/script/main.js
The above path omits t... | Static resources not loading on GitHub Pages |
You probably need to specify path to CUDA:
export C_INCLUDE_PATH=${CUDA_HOME}/include:${C_INCLUDE_PATH}
export LIBRARY_PATH=${CUDA_HOME}/lib64:$LIBRARY_PATH
Please make sure that echo ${CUDA_HOME} does provide some sensible output.
|
when I install pycuda by this instruction:
pip install pycuda
but there is an error:
src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory
but I have installed the cuda toolkit.this is the result of nvcc -V
[root@localhost include]# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-20... | src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory |
I askedandymccurdy, the author of redis-py, on github andthe answeris as below:If you're using redis-py<=2.9.1, socket_timeout is both the timeout
for socket connection and the timeout for reading/writing to the
socket. I pushed a change recently (465e74d) that introduces a new
option, socket_connect_timeout.... | In the code below, is the pipeline timeout 2 seconds?client = redis.StrictRedis(host=host, port=port, db=0, socket_timeout=2)
pipe = client.pipeline(transaction=False)
for name in namelist:
key = "%s-%s-%s-%s" % (key_sub1, key_sub2, name, key_sub3)
pipe.smembers(key)
pipe.execute()In the redis, there are a lot ... | How to set the redis timeout waiting for the response with pipeline in redis-py? |
The error message indicates that there is another container relying on the same image. It could be that a separate docker container provisioned outside of terraform and using the same nginx docker image in the tutorial. Check your docker ps -a to see if there is such container if so just run docker rm -f <container_na... |
I was following a tutorial on terraform.io that has me provision a docker image and container using terraform, and then destroy the terraform stack. However, I get the following error:
Error: Unable to remove Docker image:
Error response from daemon: conflict: unable to delete 540a289bab6c (must be forced) -
image i... | How to force delete Docker image with terraform destroy |
Using the full path is defintely better then first using cd. To get the result of the cronjob, you could just output to file like this:59 * * * * /home/sansal/Scripts/usbreset /dev/bus/usb/002/003 &>> /home/sansal/usbreset.log | I need to run a task every hour . I first change directory to the path where script is and then operate that script. So I try to use a cron job as :59 * * * * cd /home/sansal/Scripts && sudo ./usbreset /dev/bus/usb/002/003I added that line to crontab. But I cant make sure if it is true. And I dont see any output in ter... | Run two commands in cron |
Grafana is a visualization tool that can be set on top of a datastore such as Prometheus / ADX etc. You have first enable collection of these metrics into such a datastore.Here is one such examplehttps://github.com/wizenoze/storm-metrics-reporter-prometheusOnce this is done , any metrics that are reported from the code... | I am collecting data in JSON format that I process in real time with apache storm. I would now like to use grafana to be able to perform real time visualizations on this processed data. Is there a way to connect storm to grafana?
I haven't found much information on the topic, any help would be appreciated | How to connect apache storm with grafana? |
add to to your docker fileRUN \
apt-get update && \
apt-get install -y software-properties-common && \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java9... | I currently have a docker container with an Ubuntu(17.10) image installed with other packages included. However, I'm currently having difficulty trying to install Java onto this container in addition to the current image.Current Dockerfile :FROM cityofzion/neo-privatenet
ADD files/ files/
ENTRYPOINT [ "/bin/bash" ]When... | How do I put Java onto a Ubuntu docker container? |
When you changed your username, the URL to the repository changed as well. When you now try to push, it is pushing to a repository that does not exist anymore.The way to fix this is to point your local repository to the correct remote one:git remote rename origin origin-backup
git remote add origin <[email protected]/n... | When I changed my username on github my git bash can't recognize that it is my account so when I try to push changes to my remote repos on github it gives me error that I do not have rights to edit them. Please help I need to get the files in the remote repo into the git bash. | Git can't have access rights to edit the remote repository |
From the command line, you can usegit pullto get any changes made in another repository. There are GUI tools to do the same thing, but I'm not familiar with many of them. If you are developing in an IDE, it will have either built-in support for this and many other git commands or a plugin which you can install.To get t... | On one of my pull request, I clicked the 'update branch' button. Now this made a new merge master to branch commit on github and not on local. How can I get that commit from my PR so that I can squash it? | How can I retrieve a commit made on github to my local repo? |
It sounds fine. You have a singleton object, meaning that once created it will persist for the lifetime of the app. To accompany it, you have a timer that will also persist for the lifetime of the app. So once you have ensured their persistence (i.e. they are both retained), there is no memory to manage. They will both... | Say I have an object that should exist as a singleton for the whole life of the app. Is it okay for this object to contain, say, a strong reference to anNSTimerwith itself as the timer's target? This will be a retain cycle, but I don't see any downside. When the OS tries to free memory, it doesn't necessary calldealloc... | Are retain cycles okay sometimes? |
We faced a similar issue with a client who needed our IP address to be whitelisted. We solved the issue by:Spinning up a Compute Engine with a static IP address. This is the IP address we gave to our clientInstalled Squid on the compute engine (https://help.ubuntu.com/lts/serverguide/squid.html)We then redirected all c... | I have a Java web app on Google App Engine which makes requests to an external API. The API recently requires the whitelisting of IP addresses in order to access its services. Because GAE does not offer static IPs, I understand that one solution is to set up GCE instance (with a static IP) and use it as a proxy for ext... | Using Google Compute Engine as a proxy for a Google App Engine web app |
Although my user has Administrator privileges, I don't need to use an elevated PowerShell to run docker.
You can try making the connection via TCP. In Power Shell type:
$env:DOCKER_HOST="tcp://0.0.0.0:2375"
docker ps
Or
$env:DOCKER_HOST="tcp://localhost:2375"
docker ps
Since version 17.03.1-ce-win12 (12058) you must... |
I have installed docker for Windows 10 (Anniversary) as per MSDN
I can execute docker.exe commands in an elevated powershell environment, but not in a regular powershell.
I have updated the docker configuration file to contain:
{
"group": "Power Users"
}
And have obviously added the user to power users, the user ... | Docker for Windows 10 //./pipe/docker_engine: access is denied |
Well, the easiest way is for sure :Correct what Sonar is saying:)but let's assume that it's false positive.Here are the list of possible method to fix this issue :Since November 2014 :tag support// NOSONAR
the code who display Sonar erroris now fully supported by the JavaScript check (thanks @RPallas)When you don't con... | I am currently running Sonar for the static analysis of my code. When I was analyzing java files and wanted to suppress a certain warning, I used the @SuppressWarnings(nameOfTheWarningOnSonar) annotation. I wanted to know if there was a simple equivalent in Javascript to suppress specific warnings on Sonar. | Javascript equivalent of @SuppressWarnings? |
The following two things are possible:A. May be given client already disconnected from KafkaB. May be this metric is not present on broker. It might be visible in the JVM application which is running the consumer code. I am not sure but here is how you can check:Restart your consumer application with JMX enabledUse vi... | I try to export Kafka metrics per JMX to Prometheus and display them with Grafana, but I´m struggling to get the Consumer metrics (to be more precise this one:kafka.consumer:type=ConsumerFetcherManager,name=MaxLag,clientId=([-.\w]+) )Everytime I try to fetch this Mbean, it doesn´t even show up. I read all the time that... | Monitor Kafka Consumer Metrics with JMX |
Your website's HTML is trying to access a url that is not /test/** but /platform/images/leaves.png this means that NGINX won't try to use the reverse proxy.
This part of your NGINX configuration is not getting used at all for anything but /test/**, and NGINX is searching on the local disk of the webserver for the file... |
I've configured a reverse proxy, and while the http loads, the css/images of the login page don't load. It is trying to load them from the localhost and not the upstream server
I've tried multiple proxy_redirects and rewrites (although I'm fairly new at this) and can't seem to get it working.
server {
listen 80;
... | Can't get nginx reverse proxy to load css/images of web application |
Like Amazon EMR Documentation says, you can create a cluster to run some script my_script.sh on the master instance in a step:
aws emr create-cluster --name "Test cluster" --ami-version 3.11 --use-default-roles
--ec2-attributes KeyName=myKey --instance-type m3.xlarge --instance count 3
--steps Type=CUSTOM_JAR,... |
Amazon EMR Documentation to add steps to cluster says that a single Elastic MapReduce step can submit several jobs to Hadoop. However, Amazon EMR Documentation for Step configuration suggests that a single step can accommodate just one execution of hadoop-streaming.jar (that is, HadoopJarStep is a HadoopJarStepConfig ... | How do I submit more than one job to Hadoop in a step using the Elastic MapReduce API? |
The virtual memory address space of each process is divided into virtual memory areas (VMAs) where all the memory in one VMA is contiguous and shares certain properties such as permissions. For example, a process might have one VMA for its code, one VMA for each type of data, one VMA for each distinct memory mapping ... |
What is the difference between objects VMA (Virtual Memory Area: struct vm_area_struct, with which operates the kernel Linux) and PTE (Page Table Entry, with which operates MMU), and why we require VMA and not enough PTE?
| What is the difference between objects VMA (Virtual Memory Area:) and PTE (Page Table Entry)? |
: Make sure first that you have certificates installed on your Debian in/etc/ssl/certs.If not, reinstall them:sudo apt-get install --reinstall ca-certificatesSince thatpackage does not includerootcertificates, add:sudo mkdir /usr/local/share/ca-certificates/cacert.org
sudo wget -P /usr/local/share/ca-certificates/cacer... | I just created a github account and a repository therein, but when trying to create a local working copy using the recommende url viagit clone https://github.com/<user>/<project>.gitI get an error likefatal: unable to access 'https://github.com/<user>/<project>.git': server certificate verification failed. CAfile: /hom... | github: server certificate verification failed |
Have you looked at BasicAWSCredentials?BasicAWSCredentials credentials = new BasicAWSCredentials(accessKeyId, secretKey);
AmazonSimpleDB mDB = new AmazonSimpleDBClient(credentials);You can load accessKeyId and secretKey through the use of Properties.ShareFollowansweredFeb 8, 2011 at 22:57RyanRyan39222 silver badges111... | I'm using Java.
Instead of usingAmazonSimpleDB sdb = new AmazonSimpleDBClient(new PropertiesCredentials(
new File("/AwsCredentials.properties")));is there anyway to store the credential information (the accesskey and secretkey) in the program; something likeAmazonSimpleDB sdb = new AmazonSimple... | Simple DB accessing |
The error message seems to be self-explanatory. Self-signed SSL certificates always cause security warnings/errors. You will either need to add your self-signed SSL as an exception or add the self-signed CA to OS trusted certificates pool.You may also try using something identical to--insecureoption incurl.ShareFollowa... | I'm trying to send aGET requestto a host with (supposedly) correct certificates.It's a university task, and they gave me these certificates. (which are only valid for 30 seconds)But the code below gives me the error thatcertificate verify failed: self signed certificateThe package I got from the host in response says t... | Can't send GET to HTTPS service with cert, error: certificate verify failed: self signed certificate |
Get an answer here :https://community.sonarsource.com/t/sonarqube-configure-pull-request-decoration-with-parameters/18999No, this is not possible to define this from the scanner. Thoses are
project-level parameters, they won’t change from one analysis to the
next one, so better not pollute your scanner with static ... | I'm using SonarQube 8.1 (Developer Edition) and Jenkins to analyse Maven projects which source code is hosted on Bitbucket.I'm using the "Pull Request Decoration" functionality and it's working well. However, to configure this functionality, I had to set these parametersmanually(through the GUI, in project page :Admini... | SonarQube - Configure Pull Request decoration with parameters |
I believe but have not confirmed or tested that you can use the session library methodgc($maxlifetime)to accomplish your goal. Every driver for the CI session class must define this method so it doesn't matter if you're using files, database, or any of the other flavors."gc" stands for Garbage Collector and it will del... | I have a CodeIgniter platform where I want to log out users via cron daily due to inactivityBackground:I want to do this via Cron, because I'm assuming that if it's just AJAX or php then it might not work as a request would need to be made in order to trigger the log out.I only want to do a logout every day.I've been t... | CodeIgniter: Looping through Users to Log-out Inactive Users Based on Session via Cron |
RewriteRule ^site/second/files/(.*)$ http://example-two.com/media1/$1 [L] | Anyone here knows how to do this on .htaccess? I need to replace the part of URL that is inside the "[]".Here is the URL:[http://example.com/site/second/files/]2012/08/Image.jpgwith this new URL:[http://example-two.com/media1/]2012/08/Image.jpgThanks in advance! | .htaccess replace part of URL |
By default, DescribeInstanceStatus only captures instances that are running. You can set the propertyIncludeAllInstancesin the request to true to change this. From the documentation:IncludeAllInstancesWhen true, includes the health status for all instances. When false,
includes the health status for running instances... | In the AWS console, you can see what instances are online, what are shutting down, and what are shut down. I'm trying to replicate this functionality in my application, but EC2 api doesn't seem to cooperate.Here's what I'm doing:DescribeInstanceStatusRequest rr=new DescribeInstanceStatusRequest();
rr.Instan... | How to use EC2 api to tell instance status? |
You should look at thewaitFormethod, where you need to pass the job id and you can set event callback like thisvar params = {
Id: 'STRING_VALUE' /* required */
};
elastictranscoder.waitFor('jobComplete', params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(... | I'm doing a CMS site with node.js, for handle the user posted video, I decided to employ the amazon's Elastic Transcoder service.
I already figured out how to create a job and transcode the video with aws-sdk for node.js, but one issue still stucking me.My site also handle user posted pictures, after received their pos... | How to get notified of aws transcoder job status |
Cron processes only run for a short time and then stop, they do not run continuously. If your cron process updates the file correctly, then it ran correctly. | I've setup my project and a cron file inside an openshift box, the project runs ok, but for some reason I can't manage cron running processes, I can't even list them, if I connect via ssh and exec 'ps aux' the cron process doesnt even appear.I write a little test:<?php
file_put_contents('../../b.log','pid: '.getmyp... | Openshift: manage cron processes |
A recent update of PAM broke cron. Try restarting your computer (or restarting cron withsudo /etc/init.d/cron restart) | I have a python script "start.py" that executes well from the command line. There is only one statement in it (print "hello"). EDIT: start.py contains also a working interpreter directive in the first line.As soon as I run the script from a cron job, every time it fires there is a message in syslog:Jun 7 02:57:01 mit ... | python script does not run from cron |
This is a kind of generic error message from grpc which can have multiple causes.
In my experience, it can be one of the following things:Your server isn't running (either you forgot to callgrpc::ServerBuilder::BuildAndStartor you didn't start your server application all along).When running the server for the first tim... | I am trying to implement gRPC server/ client for the first time using Windows Subsystem for Linux kernel and CLion as the IDE (on Windows). My code does not have any other bugs/ issues except this communication failure.The following lines of codeif(status.ok()) {
cv::imshow("Rotated image", decrypt_img);
} ... | gRPC C++ Error code 14 : failed to connect to all addresses |
keytool:generateKeyPaircould be used to create a keystore that is valid for Tomcat to run an SSL connector. | there is a maven-keytool plugin that could be used to generate ssl certificate during the build, but it requires java 7 to generate it:http://mojo.codehaus.org/keytool/keytool-maven-plugin/generateCertificate-mojo.htmlAre there any alternatives that could be used with java 6?
Thanks! | Generate self-signed ssl certificate as a part of maven build |
IMHO you shouldn't unless youreallyneed the new functionality. Because by merging e.g.masterback intofunctionality1you make it dependend upon the other feature branch. A good read is thegitworkflows(7)man-page.ShareFolloweditedJan 28, 2013 at 13:14CharlesB88k2828 gold badges197197 silver badges222222 bronze badgesanswe... | This is the first time I am using Git Hub. So please co-operate with me.I am working on an iOS project with another developer. Now since we are working on 2 different functionalities, I thought making separate branches for each developer is good way. So my plan in to follow below stepsCreate a local branches namedfunct... | Steps for Git branching & merging for 2 developers |
Note that by default, spark slave tries to use all the resources of the node it is in - so your question is mainly about how to reduce the priority of other processes in your nodes.
An automatic solution is to use the nice Linux command - but it might be too simplified depends on your cluster configuration (give spark... |
We have a small cluster running Spark to execute jobs from a public-facing web application. The goal of using Spark here is to have an efficient latency for the web app, so when a job is submitted, it needs a response from the cluster as soon as possible.
However much of the time it is idle. So when it's needed, Spa... | How to configure priorities for Spark and OpenMPI to coexist on a cluster? |
You need to follow these steps to clone your WordPress website from production to staging server -1. First export database of production server WordPress website and open SQL file in an text editor.
2. Then find your domain name(domain.com) and replace it at all places with your domain name/test like domain.com/test.
3... | I am trying to make a clone of a Wordpress site into a subdirectory. So, I will have two installations, one in the root of the domain, and one in /test. My problem is that, even though I have changed the values for siteurl and home uri in database, my links will redirect to root. So, a page like domain.com/test/contact... | Wordpress clone in subdirectory |
Alright, failed to get the currentNAMESPACEinside a pod, but I find another way to reach the point -- retrieve the whole host domain fromsearch domianinresolv.conf.Here's the detail:keep the Dockerfile unmodifiedadd acommanditem to deployment.yamlimage: squid:3.5.20
command: ["/bin/sh","-c"]
args: [ "echo append_domain... | I deployed a squid proxy in each namespace cause I want to access the services from external via the squid proxy, thus I need to add the line below to the squid.conf so that I can access services just using service names:append_domain .${namespace}.svc.cluster.localHere is my problem:I can get${namespace}viametadata.na... | kubernetes how to get cluster domain (such as svc.cluster.local) inside pod? |
If you're running MySQL on AWS EC2 as an RDS instance, yourdatabase_urlwill be the RDS instance name (followed by :port of course).Seehttp://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.htmlfor more info, but this is normally of the formmyinstance.123456789012.us-east-1.rds.amazonaws.com(whereu... | I would like to import gtfs files into mysql by using a tool from github, runing the follwoing command:gtfsdb-load --database_url <db url> <gtfs file | url>How can I get thedatabase_urlof mysql located in AWS EC2? | How do I get the database url of AWS EC2 MySQL? |
You cannot use a CNAME record at the apex or domain root with standard DNS services. I suggest you try using a hostname for your endpoint and using the CNAME there egapi.example.com.Alternatively, you can move your DNS to Route 53. The Route 53 system does support aliases at the root domain level, using the Alias reco... | I'm trying to set up a custom domain (say,myapi.com) for my API Gateway but am running into problems. The domain is currently registered on GoDaddy. So far, I've followedthistutorial and done the following:Obtained a certificate formyapi.comand*.myapi.comfrom the AWS Certificate Manager.Mapped the domainmyapi.com(not*.... | Unable to map custom domain to API Gateway (from Godaddy) |
0
I've experienced this problem. I've been using Chromium ever since. Chromium solved all my problems. You can get it in the Software Center.
Share
Follow
answered Apr 2, 2014 at 21:50
Rob va... |
Since github using webfront for icons, every time I open github website that tab will crash. But other websites are not crash.
I did everything I can, like disable all extensions, clean all cache, even create a new user profile, still not working.
I'm using Ubuntu linux 12.04, last stable google chrome browser, always... | Chrome crash every time open github on Ubuntu linux |
31
I'm the developer who put this in. Here's why I added this to the system gitconfig, it's pretty useful!
## Because of this change, git fetch knows about PRs
git fetch
## Now, I can merge PRs by number
git merge origin/pr/24
## See changes from PR #53
git diff master...... |
I installed Git for Windows, although I am using the shell not the Windows interface.
If I do a git init, and then try and do a
git remote add origin [email protected]:someuser/testme.git
I get the following error
fatal: remote origin already exists.
So I do a
git remote -v
and it returns the following
origin
... | Git: says origin already exists on "NEW" (init) repository, using shell but installed Github for Windows |
You have got the versions the other way around?
The change was introduced in 1.7.8:
When populating a new submodule directory with "git submodule
init", the $GIT_DIR metainformation directory for submodules is
created inside $GIT_DIR/modules// directory of the
superproject and referenced via the gitfil... |
In one version of git, we have (git version 1.7.4.4):
ProjectRoot/.git/modules/SubmoduleX/config
However in another computer we have (git version 1.7.12.4 (Apple Git-37)):
ProjectRoot/SubmoduleX/.git/config
Why the discrepancy? When was this change done?
| .git folder for Submodules |
You should use prometheus to gather metrics from individual backends and then use aggregation in query or pre-aggregate data (using prometheus recording rules).
Prometheus has a number of service discovery mechanism built-in and they can be used to automatically find and use all endpoints your app runs on.For a taste o... | Initially we had single node application and we used Prometheus where we set metrics path url to our single node application like this:- job_name: 'spring-actuator'
metrics_path: '/prometheus'
scrape_interval: 5sFor now we switched to the cloud application and if we set load balancer path - it will use differen... | How to monitor cluster using Promeheus? |
You are correct -- theAuto Scaling Termination Policydetermines which instance(s) will be terminated when an Auto Scaling groupscales-in(removes an instance).Therefore, the best way to refresh your total fleet is:Scale-outbyincreasingtheMinimumsize of the Auto Scaling groupWait for everything to launch and stabilizeSca... | I'm trying to automate the deploy to instances in an auto scaling group.Unfortunately I can't consider CodeDeploy or other AWS services, so I'm trying to do this only with EC2 tools.This is my approach:
i wrote a script that creates an AMI from a "master" instance (the only one I'm deploying to), then creates a new lau... | Auto renew EC2 instances in an Auto Scaling Group when a new launch config is found |
Don't you see the difference of case in the 'toolbox' (vs. 'Toolbox') folder name? Windows is case insensitive but git is not.So I would guess that the folders where tracked with different cases.Try this (or from lower to Upper if it's what you need) on a case-sensitive system:git mv Toolbox/* toolbox
git commit --mess... | This is an android studio project, and a while back i had some package naming issues when i created a new Library module. Somehow github split my library source code paths, yet my local repo shows everything as it should be:As you can see in the screenshot of my local repo, all code related to my Toolbox library is wit... | Why is github separating my library files from their original directory? |
Eclipse SonarQube plugin 3.4 is definitely compatible with Eclipse Mars.Unfortunately, you cannot install it from the Eclipse Marketplace - probably because we need to update the compatibility information there. As mentionned by Freddy in his comment,SONARCLIPS-446was created for this purpose.Meanwhile, please follow t... | I cannot install SonarQube plugins in Eclipse Mars (tested with Java, RCP and Modeling versions).When I search for SonarQube in 'Help' / 'Eclipse Marketplace' then the result list isempty. I can click at the link 'Browse for more solutions' which opens the marketplace site on the internet. There, I see SonarQube with t... | Is the Eclipse SonarQube plugin compatible with Eclipse Mars? |
set $request_url $request_uri;
if ($request_uri ~ ^/example(.*)$ ) {
set $request_url /module/controller/action;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9090;
#include fastcgi.conf;
fastcgi_param REQUEST_URI $request_url;
#fastcgi_param REQUEST_URI $request_uri;
} | We get information from$_SERVER['REQUEST_URI']not from$_GETor$_POST.I want to define$request_urito change/exampleto/module/controller/action. Please note that I do not want to trigger a redirect.I tried the code below to do this, but it doesn't work.location /example {
rewrite /module/controller/action;
} | How to change $request_uri in nginx? |
Here's a goodwrite-upthat may be related to your problems, also checkthisone out by Weaveworks.Basically there have been a number of issues during the last year created at the GitHubKubernetes issue trackerthat has to do with various DNS latencies/problems from within a cluster.Worth mentioning, although not a fix to e... | I have a kubernetes cluster setup on AWS. When i make call to elasticsearch-client.default.svc.cluster.local from a pod, i get unknown host exception occasionaly. It must have something to do with the name resolution, coz hitting the service IP directly works fine.Note : I already have kube-dns autoscaler enabled. I ma... | Occasional Unknownhost Exception from for a service within kubernetes |
Usually, when you want more granularity than 1 minute, you have to write a daemon.I advise you to try, now it's not so hard as it was some years ago. Just start with a simple loop inside a CLI command:while (true) {
doPeriodicStuff();
sleep(1);
}One important thing: run the daemon viasupervisord. You can take ... | I have a project that needs to send notifications via WebSockets continuously. It should connect to a device that returns the overall status in string format. The system processes it and then sends notifications based on various conditions.Since the scheduler can repeat a task as early as a minute, I need to find a way... | Laravel schedular: execute a command every second |
I also faced the same issue. To get this to "work" I had to sadly remove the phone number requirement which also meant I had to make a new user pool. | According toScopes for Google SignIn, there is no 'phone' scope, the only scopes are openid, email, profile.My Cognito User Pool has a phone user attribute, and it is required.For users who sign-up directly with the user pool, they enter their phone number in Amazon's hosted UI which displays a phone field in the sign ... | How to map phone number with Cognito User Pool Federated to Google |
You can usesys.exit(is_word_found). But remember you use sys module (import sys).Like this:import sys
word = "test"
def check():
with open("tex.txt", "r") as file:
for line_number, line in enumerate(file, start=1):
if word in line:
return 0
return 1
is_word_found = chec... | I have a python file that opens and checks for a word. The program returns 0 if pass and 1 if fails.import sys
word = "test"
def check():
with open("tex.txt", "r") as file:
for line_number, line in enumerate(file, start=1):
if word in line:
return 0
retur... | How to fail a gitlab CI pipeline if the python script throws error code 1? |
Eduardo Molteni had a great answer:SQL Server Automated BackupsUsing Windows Scheduled Tasks:In the batch file"C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -S
(local)\SQLExpress -i D:\dbbackups\SQLExpressBackups.sqlIn SQLExpressBackups.sqlBACKUP DATABASE MyDataBase1 TO DISK = N'D:\DBbackups\MyData... | This question already has answers here:SQL Server Automated Backups [closed](3 answers)Closed6 years ago.I'm running a small web application with SQL server express (2005) as backend. I can create a backup with a SQL script, however, I'd like to schedule this on a daily basis. As extra option (should-have) I'd like to... | How can I schedule a daily backup with SQL Server Express? [duplicate] |
My first question should be, why are you setting it at all? The server JVM sets the maximum to 1/4 of the main memory size and this is reasonable for most applications. You could change this by building you own JVM or you could create an alias like
alias java="java -Xmx30g"
What you can do is check the memory usag... |
We can use JVM arguments to limit the memory allocated for JVM heap etc.
I would like to know whether we can hard coded these values inside the java program during the development time, instead of adding JVM arguments in the command line when we run the program. Is it possible?
| Can we limit the memory of java application from inside the java application? |
When you choose theNodePortservice type, besides having a Cluster IP, kubernetes will expose the service on a port on each node of the cluster (the same port on each node). So choosing NodePort gets you both: the ClusterIP and the port on each node.
As saidin the docsNote that this Service will be visible as both :spec... | I have 2 pods running on minikube. Pod A has toexpose 2 ports8081 and 9092 to both Pod Binside the k8 clusterand alsooutside k8 clusterso that pod B can reach them and also outside the cluster my consumer can reach them.So my question isshouldI have2 servicescreated for each port?
One to expose as cluster ip and one fo... | Can I have a single service created to expose as both cluster IP and NodePort? |
Restarting docker worked for me. | I run commanddocker system pruneyesterday, it took some time and then my SSH session was disconnected from different reason.Unfortunately I am getting now:Error response from daemon: a prune operation is already running.Obviously there is a lock and prune command is not running anymore.Does anybody know how remove the ... | Docker prune stuck in "a prune operation is already running" |
To run the app locally, specify both.yamlfiles todev_appserver.py:dev_appserver.py -A your-app-id application.yaml worker.yaml | I am having trouble loading my GAE module.My cron.yaml:cron:
- description: call frontend instance to call module
url: /callLoadAndProcess
schedule: every day 01:00
timezone: America/New_YorkThen the relevant part of my app.yaml:- url: /callLoadAndProcess
script: callLoadAndProcess.application
secure: always
... | How to load a basic module from a cron job |
Please go through this long tutorial on memory management. It may require some time to read whole, but it explains the basic things nicely.
EDIT : About copy -
When you are using retain then you are just increasing the retain count of the object. But when you use copy, a separate copy (shallow copy) of the object is ... |
This might seem a simple question, but I don't really get the idea of when should I use alloc, retain or copy.
| What is the difference between alloc, retain and copy |
It's easy in Kubernetes too. You can do it as follow,Put yourinit.sqlfile into aKubernetes volume.Mount this volume into/docker-entrypoint-initdb.ddirectory of your mysql pod.Here, is an sample yaml file:mysql-init-demo.yamlYou can also use aninit-containerto downloadinit.sqlfile into a Kubernetes volume that is mounte... | I have a pod in my AWS EKS Cluster that runs MySQL:5.7. I have an SQL file that initializes and populates the data for it. in a normal docker-compose, I will use a mount point for it in my docker-compose file:volumes:
- ./<path-to-my-config-directory>:/etc/mysql/conf.d
- ./<path-to-my-persistence-directory>:/var/li... | Initializing a MySQL database deployed in an AWS EKS |
You can use aGenymotionemulator as an alternative of an Android Studio emulator. The Genymotion emulator works correctly even through the VPN. | I have searched everywhere for this question and couldn't find it anywhere.So I'm working on an app for a project and the authentication only works within the university's internet.I configured a VPN on my pc and everything works fine but the actual android device emulator doesn't connect to my VPN (although I have con... | How to use my PC's VPN on Android Studio emulator? |
0
below code is causing high memory usage :
array_push($resultfile,$row);
oci_fetch_array is unbuffered meaning it will fetch rows one by one until no rows exists. I would suggest not to push row into another array. instead write your logic inside while loop itself.
... |
Im am running a query and retrieving with OCI_FETCH_ARRAY and I am getting a fatal error, out of memory after I hit a certain volume of records. The result array is 100k rows and about 60 columns.
I have my memory_limit in php.ini set to 2 gigs.
memory_limit = 2056M
It seems to happen when I have more than one perso... | PHP oci_fetch_array causing out of memory error |
So this did seem to be the solution (in my note above).If using my example from above, you want this to look like:stream {
server {
listen 11016 udp;
proxy_pass juniper_close_stream_backend;
proxy_responses 0;
}
}This tells nginx not to expect a response, which it shouldn't need fr... | I have a main syslog server that is receiving syslog from several sources, and I want to send those logs to a Graylog cluster. To help the cluster keep up (on some slow VMs), I need to be able to load balance the messages to Graylog, as sometimes they come in massive chunks from the endpoints (some send 5k logs in bur... | UDP forwarding with nginx |
Look at the Upsource from jetbrainshttps://www.jetbrains.com/upsource/ | On doing some research wrt to code review tools, I found the working ofGerritwithGIT. Developers push their changes which then resides on Gerrit repository for review. Once review is approved, the changes are finally pushed to git repo.I am usingsvnin my project withsonarQubeas the code review tool. But, usually we run... | Creating a code review automated workflow |
Close. You would have to use delete[] because you allocated each of them with new[]:
delete[] ppint[0];
delete[] ppint[1];
delete[] ppint[2];
delete[] ppint[3];
But of course, you should use a loop:
for(int i = 0; i < 4; i++ ) {
delete[] ppint[i];
}
And then don't forget to delete[] ppint itself:
delete[] ppint;
... |
So, I have this code, and I am trying to deallocate the array ppint at the end. I have tried using leaks with Xcode to figure out if it is working, but I don't quite understand it. Will doing this work?
delete ppint[0];
delete ppint[1];
delete ppint[2];
delete ppint[3];
Or is there something else that must be done?
#... | De-allcoating dynamically allocated multidimensional arrays. |
7
You really don't want to do this if you can help it - the best thing you can do if you can't get away from linked lists is to emulate them via arrays and use array indices rather than pointers for your links.
Share
Follow
... |
Is it possible to create a linked list on a GPU using CUDA?
I am trying to do this and I am encoutering some difficulties.
If I can't allocate dynamic memory in a CUDA kernel, then how can I create a new node and add it to the linked list?
| Creating a linked list using CUDA |
-2Kubernetes (kubectl) does not offer an equivalent command. Ideally you should not be using this command at all outside your local development environment (which is docker)The best practice is to start containers with readonly root filesystem, so that you avoid storing any important state in containers. Kubernetes can... | I am using docker diff in my application in order to find all changed files in a container. Now, my application manages containers through Kubernetes and don't have a direct access to them. I found Kubernetes implementations for several docker commands (like kubectl logs), bit docker diff is missed.Is there a way to ex... | how to execute docker diff command using kubernetes |
All interactions with the AWS APIs (including via SDK, like boto3) require credentials, you can find more info on how boto3 manages credentials here.
Since you're running this on an EC2 instance, best practices recommend to manage credentials via Instance Profile. Assuming that you have already assigned an IAM Role to... |
I am using python3
I am trying to read data from aws athena using awswrangler package.
Below is the code
import boto3
import awswrangler as wr
import pandas as pd
df_dynamic=wr.athena.read_sql_query("select * from test",database="tst")
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <modul... | aws read data from athena error using aws wrangler |
It would be best to:install Git on Godaddy (as in thisblog post)setup a bare repo on the upstream side (ie, the GoDady side, the one where you would push your code)add a post-receive hook on that upstream repo in order for a non-bare repo to update itself: see links in the "Is--bareoption equal tocore.bareconfig in Git... | I develop front-end and back-end of many websites hosted on godaddy. I was looking for a way to synchronize the godaddy file manager with my local repository so as to prevent me from uploading the edited files each time. I push my code to github directly, but is there a way to push the code directly to godaddy account ... | Synchronize github with godaddy account |
Although Node.js runs the main application code in a single thread, the Node.js runtime is multi-threaded. Node.js has an internalworker poolthat is used to run background tasks, including I/O and certain CPU-intensive processing like crypto functions. In addition, if you use theworker_threadsfacility (not to be conf... | We are running a single NodeJS instance in a Pod with a request of 1 CPU, and no limit. Upon load testing, we observed the following:NAME CPU(cores) MEMORY(bytes)
backend-deployment-5d6d4c978-5qvsh 3346m 103Mi
backend-deployment-5d6d4c978-94d2z ... | Kubernetes NodeJS consuming more than 1 CPU? |
So just as a reference.Istio configures prometheus with a 'kubernetes-pods' job. At least while using the 'demo' profile. In this prometheus job config, there is arelabel_configs:
...
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)Which gets the pod labels.EnablingmeshConfig.enablePrometheusMerge=trueon t... | I am using istio 1.6.3I would like to add a simple dimension to the metrics exported by istio to prometheus.
More specifically, if my Pod has a labelbranch=master, I'd like to add abranchdimension with themastervalue to theistio_requests_totalmetric.(I tried adding this label on the service level, without avail)My goal... | Istio - How to add custom label-based metrics? |
Found the problem, when I created the API token I selected "Viewer" permissions, I was thinking its enough to just make a get request on alerts, but apparently it is not, made a new API token with "Admin" permissions and it works. | I am trying to use the grafana api (doc herehttp://docs.grafana.org/http_api/alerting/) to get the list of all the alerts in grafana.
Here's what I tried:uri = URI("http://example:3000")
headers = {
'Authorization'=>'Bearer test',
'Content-Type' =>'application/json',
'Accept'=>'application/json'
}
http = Ne... | How to get grafana alerts in ruby |
I'm not test this solution in facebook app but on wild web you can use this<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>as proof :)http://paulirish.com/2010/the-protocol-relative-url/With this all resources loaded with page protocol, so user don't see confirmation about unsecured elemen... | In our app (https://apps.facebook.com/testedenivel), we explicitly reference the page css in a https link like this:<link rel="stylesheet" href="https://d2asm4nez8zghw.cloudfront.net/content/app-teste-de-nivel.css?v=0.96.02" type="text/css" media="screen">But strangely, Facebook is preloading this this css file as a HT... | Why is Facebook inserting a preload script for my app's css in HTTP when my page's reference is in HTTPS? |
npm config set proxy "your proxy"
npm config set https-proxy "your proxy"To show setupnpm config list | How to configure the corporate proxy url for GIT & NPM package in Windows 10. There is no .gitconfig or .npmrc file created in Users folder. | Proxy configuration for GIT and NPM in Windows10 |
1
Try replacing the backslashes (\) with forward slashes (/):
and try this
cd /c/Users/prakh/OneDrive/Desktop/github/my-github/src/app
Also
The /c/ at the beginning of the path is used in Git Bash to specify the C:\ drive in Windows.
Also, ensure that the directory app exi... |
error coming by cd filename
prakh@Prakhar11 MINGW64 ~ (main)
$ cd C:\Users\prakh\OneDrive\Desktop\github\my-github\src\app
bash: cd: C:UsersprakhOneDriveDesktopgithubmy-githubsrcapp: No such file or directory
trying to add file in github and push it
| No such file or directory found - git bash |
Youcan't get valid SSLcertificate fortest-lb-123456.ap-southeast-1.elb.amazonaws.com. This is because this domain belongs to AWS. To get HTTPS on your ALB, you needyour own domain. You can buy it from Route53 or any external domain registrar.Once you have yourowndomain, you can get a free SSL certificate for it using A... | I am currently trying tosetup httpsfor my backend program (Spring Boot). My first step was to deploy my Backend program using AWS Fargate which gives a public IP inhttp.Then I setted up an AWS Application Load Balancer for the AWS Fargateusing http only.
This process was successful and I am able to call my BE program t... | Trouble when adding https listener to AWS Application Load Balancer |
-1After merging the repo the last merge-commit can be removed by simply restoring the Repo's state to the last commit from the parent repo.Use command:git log --format="%H" -n 1---> To get the last commit id from the parent repogit reset --hard fb62ef635b07afaf719ba15841579ed12e1224b0bring back the state of Repo to pre... | I was able to sync files from oneRepoAtoRepoBusing 'fetch' and 'checkout' to my master and handling the conflicts (if any). but this approach caused me to make a 'merge-commit' on RepoB.Is there any way to do itwithoutthat commit id being generated?
I wanted toscheduleall the commits and then sync then on a regular bas... | How to sync two different Git repos without making a commit? |
8
Bare repositories don't have working copies so you won't "see" any files. Try doing a git log, you can see the commits. Clone from the bare repo and you'll get files.
Share
Improve this answer
Follow
... |
I have my local dev repo (origin) and a remote repo which I created using git init --bare as recommended here. I also ran git --bare update-server-info
git config --bool core.bare true
Git remote -v shows
origin http://staging.websitename.com (fetch)
origin http://staging.websitename.com (push)
remote ssh://[ema... | Why don't I see files after push to Bare git repo |
Yes, yes and more yes. Here are some good things to google/hunt down on SO and SF--ec2 command line tools,--making your own AMI's from running instances (to save tedious and time consuming startup gumf),--route53 APIs for doing DNS magic,--ubunutu cloud-init for startup scripts,--32bit micro instances are your friend f... | I'm still cheap.I have a software development environment which is a bog-standard Ubuntu 11.04 plus a pile of updates from Canonical. I would like to set it up such that I can use an Amazon EC2 instance for the 2 hours per week when I need to do full system testing on a server "in the wild".Is there a way to set up an ... | Using Amazon AWS as a development server. |
I finally found the configuration forawswrangler:import awswrangler as wr
wr.config.s3_endpoint_url = 'https://custom.endpoint'ShareFollowansweredMar 25, 2021 at 2:27David ParksDavid Parks31.1k4747 gold badges191191 silver badges340340 bronze badgesAdd a comment| | I'm attempting to use the python packageawswranglerto access a non-AWS S3 service.TheAWS Data Wranger docsstate that you need to create aboto3.Session()object.The problem is that theboto3.client()supports setting theendpoint_url, butboto3.Session()does not(docs here).In my previous uses ofboto3I've always used theclien... | How to get python package `awswranger` to accept a custom `endpoint_url` |
Thx for the link Chad. But actually, if you read on:
If local_work_size is specified, the
values specified in global_work_size[0], … global_work_size[work_dim - 1] must be evenly
divisible by the corresponding values specified in local_work_size[0], …
local_work_size[work_dim – 1].
So YES, the local work size ... |
Hello: Does Global Work Size (Dimensions) Need to be Multiple of Work Group Size (Dimensions) in OpenCL?
If so, is there a standard way of handling matrices not a multiple of the work group dimensions? I can think of two possibilities:
Dynamically set the size of the work group dimensions to a factor of the global wor... | Does Global Work Size Need to be Multiple of Work Group Size in OpenCL? |
I found the problem. The cert was trying to be invoked within an IIS Express context while running a .NET MVC project within visual studio. Somehow that was causing the cert to mis-identify itself. When I published the project and ran it under true IIS, and set the IIS bindings to look at my new cert, everything worked... | My self-signed localhost cert (aliased tonate-pc-ultimate.com) is being rejected by the browser:You can see that I created the self-signed cert and placed it inCertificates -> Trusted Root Certification Authorities:I created the cert fornate-pc-ultimate.comand notlocalhostbecause I am making API calls against a system ... | IIS self-signed aliased localhost cert rejected by browser |
It's not great, but it won't get your app rejected unless it causes a crash in front of a reviewer. The size is less important than how often it occurs. If it only occurs once every time the app is run, that's not a big deal. If it happens every time the user does something, then that's more of a problem.
LLVM's st... |
I am new to Objective-C (coming from Java) and I think I am getting a pretty good understanding of memory management.
But when my app loads, I get a extremely small memory leak, that only occurs when the game is loading (we are talking about 32 to about 512 bytes).
It's random when it leaks, and it doesn't seem like ... | Is any memory leak in iOS accepted at all? |
Use include directive for such factorization:includeCreate file in the nginx config folder like
/etc/nginx/conf.d/location_php.cnf (not .conf to avoid auto-loading by nginx)location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm-client2.sock;
... | I have to configure multi https website with a dedicated certificate for each website. It works fine like that.server {
listen 443;
server_name client1.localhost.eu;
ssl on;
ssl_certificate ...;
ssl_certificate_key ...;
root /var/www/client1;
location ~ \.p... | A same "Location" rule for multi "Server" block |
If you're looking for a way to haveIssuesshow up like WorkItems in your task list in visual studio, I don't think there is a solution for this to date.You can however assign developers to issues within GitHub:Create or Edit an IssueClick thegearnext to "No one is assigned".Select a member from yourorganizationto assign... | I have started to use Cloud9 IDE recently and have to say I really like it as an individual. I use VS 2010 at work and TFS 2010 too. This made me think about the TFS equivalent for Cloud9. GitHub is something I have always been aware of but never really used.I have done my research and read docs etc, what I really need... | Explaining GitHub to a TFS user |
0
It sounds like you never CREATEd the columnfamilies in the new keyspace.
Share
Improve this answer
Follow
answered Oct 9, 2012 at 17:28
jbellisjbellis
19.4k22 gold badges3838 silver badg... |
I need to copy data from one KS to another KS. Keyspaces has different names.
I've made a snapshot of one keyspace and do all as said in datastax:
http://www.datastax.com/docs/1.1/operations/backup_restore
After start cassandra see old column families and doesn't see new column families in another KS.
What i am doing ... | Cassandra db doesnt see new column families after backup restore |
According to the error you get, a field calledls.Usage.UserUsageof type float contains the value'NaN'which is not a float.What you could do is to modify your mapping to set theignore_malformedsettingto true so that this value is ignored, but it won't prevent the document from being indexed.The other option is to make s... | I read my services logs using filebeat ,then filebeat sends the logs to logstash for parsing. logstash sends the parsed logs to elasticsearch to be indexed.
But today this error happens in logstash and no logs is indexed in elasticsearch.[2021-11-02T11:35:36,774][WARN ][logstash.outputs.elasticsearch] Could
not index e... | logstash output error in sending logs to elasticsearch |
Many people will browse the history after having locally cloned the repository. All commands like git log and git show display the precise date.
When you're browsing online, just hover the date :
|
I browsed around Github but I cannot find a way to view what hour someone submitted a commit, say 3 months ago.
Is there a way to do this online on the GitHub site?
| Can people see the hours and minutes on my commits on Github? |
I had the same issue and resolved by updating policies for the Role as described here:https://docs.aws.amazon.com/step-functions/latest/dg/cw-logs.htmlNormally PutLogEvents, CreateLogStream should be enough for resources like Lambda but apprantly Step Function need other log policies as well. | I am running into Some permissions issue i am not able to figure out.The step function deployment fails because of error:Error: AccessDeniedException: The state machine IAM Role is not authorized to access the Log Destination
10:12:19 status code: 400, request id: ff46f8c0-fcc8-4190-ba6a-13f5ab617c78
10:12:19
10:1... | Aws step function deployment log access issue |
You can add label to nodes that you want to run pod on and add nodeSelector to pod configuration. The process is described here:http://kubernetes.io/docs/user-guide/node-selection/So basically you want tokubectl label nodes A node_type=foo
kubectl label nodes B node_type=fooAnd you want to have this nodeSelector in you... | How can I configure a specific pod to run on a multi-node kubernetes cluster so that it would restrict the containers of the POD to a subset of the nodes.E.g. let's say I have A, B, C three nodes running mu kubernetes cluster.How to limit a Pod to run its containers only on A & B, and not on C? | How to specify pod to node affinity in kubernetes |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.