Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
This has been asked many times before... The real memory used for a bitmap when loaded isH x W x 4. 800 * 800 * 4 * 15 = 38 MB. You should never load all 15 images at the same time. Since they are about the size of the screen, resampling doesn't make sense in this case, you just have to figure out how to get around not...
I have 15 images in drawable-xhdpi, each is 800x800, in drawable-hdpi I have the same images but 600x600, when I run the application on the device with hdpi resolution the heap size is about 3mb, but when I run it on device with xhdpi resolution the heap size is over 40mb and I get outofmemory? What is wrong? Are image...
android, xhdpi - heap
I added one user in thereaders groupto access the Azure DevOps project, the user was able to view the boards and the Work items like below but was unable to edit it due to reader role :-Now, I visited theProject Settings with my Admin Account > Boards > Team configuration > Areas > Security > View work items in this no...
Is it possible to hide:board names in dropdowns in the Boards menufolder name is the Pipelines menuthe Project settings page from users of a given user group in Azure DevOps?Boards menu dropdownPipelines menu foldersI can hide the pipelines and work items but not the pipeline folders and board names in the dropdowns.
Hide folder names, board names and the project settings page in Azure DevOps from users in a group
Depends on the GPU and driver; a typical graphics card has a number of cores that can run the same codepath on multiple datasets. This is the classicSingle instruction, multiple dataparallelism and the core of the parallelism of openGL.Calling drawArrays twice doesn't help for that as the entire pipeline will be execut...
My question is does OpenGL draw primitives parallel, or only the rastering is done that way? To put it simply if I want to draw the same primitive twice, does it render faster if I copy my vertices into a buffer twice, and just call drawarrays once, or will that result in the same rendering speed as if I only copy my v...
GPU parallelism dilemma
The environment variable CUDA_VISIBLE_DEVICES is your friend. I assume you have as many terminals open as you have GPUs. Let's say your application is called myexe Then in one terminal, you could do: CUDA_VISIBLE_DEVICES="0" ./myexe In the next terminal: CUDA_VISIBLE_DEVICES="1" ./myexe and so on. Then the first i...
Background: I have written a CUDA program that performs processing on a sequence of symbols. The program processes all sequences of symbols in parallel with the stipulation that all sequences are of the same length. I'm sorting my data into groups with each group consisting entirely of sequences of the same length. Th...
Is it possible to execute multiple instances of a CUDA program on a multi-GPU machine?
Based onkubernetes documentationandokdthat's how it's supposed to workKubernetes DNS schedules a DNS Pod and Service on the cluster, and configures the kubelets to tell individual containers to use the DNS Service’s IP to resolve DNS names.What things get DNS names?Every Service defined in the cluster (including the DN...
I've a Servicemy-serviceof type ClusterIP in namespaceAwhich can load balance to a few pods. I want to create another Service of type ExternalName in namespaceBthat points tomy-servicein namespaceA.I create the following YAML:apiVersion: v1 kind: Service metadata: name: my-service namespace: B spec: type: Externa...
ExternalName pointing to service in other namespace doesn't resolve unless given full FQDN
It turned out something was wrong with docker-machine itself. After recreating it, everything worked all right. Hope this will help anyone
I'm learning docker and have started with Official get started Tutorial. My problem is on step 3. Here's my docker-compose.yml file (it's the same as in the tutorial) version: "3" services: web: # replace username/repo:tag with your name and image details image: username/repo:tag deploy: replicas: 5 resources: ...
Docker containers are running but can't access them
Try to print out environment variables from a dummy job* * * * * env > /tmp/env.outputas suggested inhttps://askubuntu.com/questions/23009/reasons-why-crontab-does-not-workAlso check what shell crontab is using. You can set the$SHELLenvironment variable tobashby adding a lineSHELL=/bin/bashat the beginning of the cront...
I have a Python driver and library scripts that are siblings:/home/mydir/pythonProjs/driver.pylib.pyIndriver.pyI have the line:from lib import method1The following is successful from my command line on Linux:python /home/mydir/pythonProjs/driver.pyBut when I try the following in crontab:10 1 * * * export PYTHONPATH=~/m...
python crontab and paths
13 This may not be an answer for every instance but we found in this situation the problem was the person had read privileges to the repository which allowed him to review and comment and even approve but when the approval was processed because he did not have collaborator ...
We have a PR where one approve checkmark is black while the other is green. The green checkmark shows in the "Changes Approved" area at the bottom of the Conversation tab as approved while the black checkmark does not. However, both show checked beside the approver's name. Is there some significance to the colors? An...
Why some Github pull request approval checkmarks have different colors (green, gray)?
In the docker command-vmeans to mount a volume and-emeans to add environment variables, so what you want is probbably this:docker run -p 8081:8080 -e SWAGGER_JSON=/mnt/lp.json -v /Users/abc/Desktop:/mnt swaggerapi/swagger-ui
So, I wanted to run thelocal Swagger UIwith respect to Local Json. And for that I am following the instructions availablehere:Here is the command that is being shared in that documentation:docker run -p 8081:8080 -e SWAGGER_JSON=/foo/swagger.json -v /bar:/foo swaggerapi/swagger-uiHere I understand the-poption but this-...
Swagger running with local json file in Docker Image
It sounds as though what you're looking to do can be done withS3 pre-signed urls.This would require you to:Set bucket/file ACL toprivate, which will prevent anyone with "the right url" from accessing the files.Allow your application to generate short-term links to files, which your users will then be able to use for ac...
I'm working on an application and we'd like to host our users' files to AWS S3.Initial thinking is to create a new bucket for every new user (bucket name could be the user's unique code). How can we control access to the user's bucket files using for example his username or email ? S3 provides different levels of acces...
Control access to AWS S3 files from my application
This is because the amount of CPU your containers are allocated is proportional to the amount of memory you ask for.AWS Lambda allocates CPU power proportional to the memory by using the same ratio as a general purpose Amazon EC2 instance type, such as an M3 type. For example, if you allocate 256 MB memory, your Lambda...
I've got a question and I would love to get an answer.I've a Lambda function that uses Max memory of31 MBand the allocated memory configured is 128MB it would take 2556.68 ms.However, when increasing the allocated memory to max1536 MBit takes only 621.81 ms to be fully executed and the MAX memory used is exactly the sa...
Why a Lambda function is much faster to execute when using 1536 MB?
I still don't have the answer but I was able to resovle this issue by moving all the curl commands in a bash script file and executed it.
I am running an azure devops pipeline to install and configure ELK. So there is a shell script which executes all the commands to install ELK and configure using curl commands. But at the end of the file last 4-5 commands are not executed and I can see truncated scripts in the log.2020-06-12T08:56:10.2856017Z > echo "R...
In Azure pipeline linux commands getting truncated at the end of the script file
You can use a decorator to call the right (cached or not) function checking the desired attribute:def conditional(decorator): def conditional_decorator(fn): dec = decorator(fn) def wrapper(self, *args, **kw): if self.read_only: return dec(self, *args, **kw) ...
I want to cache certain methods of a class - but only if aread_onlyflag is set on the instance of the class.So, in the object below, I want theget()method to be cacheable, but only ifself.readonlyis True.I can't conditionally use the decorator, because it's set when the class is defined, not when it's instantiated.from...
Conditionally disable caching decorator based on instance variable
Sounds like you may have thedefault schedulerconfigured for DaemonSets and your pods are not configured to bepreempted(preemption is disabled) in the kube-scheduler configs:apiVersion: componentconfig/v1alpha1 kind: KubeSchedulerConfiguration algorithmSource: provider: DefaultProvider ... disablePreemption: trueThe...
I would like to schedule a pod on all nodes of a cluster. No exceptions. DaemonSet seems like do the job when there is no shortage of resources. But sometimes other pods get scheduled on certain nodes as such that there are no more resources left for the pod of the DaemonSet to be scheduled.What is the best way to forc...
K8s Scheduling DaemonSets
So.... right now my s3 bucket has a file called discountCards.json - but I need that to be discountCard without the ".json"Save your file discountCard.json as discountCard without .json extension. See the image belowThen on properties under metadata addcontent-typetoapplication/jsonsee image belowAccessing the bucket...
I have a special URL that has been set somewhere else andCANNOT be changed.mydomain.com/discountCardsI need to return a JSON, from my s3 bucket whenever a server sends a fetch call tomydomain.com/discountCardsThe issue is:I'm using a react app on mydomain.com with React-Router. So going to mydomain.com/discountCards di...
How do I return a json file from s3 to a specific url, but only that url
No. You cannot preserve the message id when moving between queues. SQS gives you the id and the timestamp:http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.htmlWhat you can do is in your application you either:have the ability to pick from both queues (and in normal operatio...
Is there a way to move a message from one queue to another? We have a case where messages may end up in the DLQ due to a resource not being available. Once the issue is resolved we'd like to move the message back to the original queue and have it processed again. For our tracking purposes it'd be nice if the original M...
Move SQS Message To Different Queue
Is there some way I can signal that a pod being regularly restarted is not a crash loop, but is happening by design?Not that I know of.Or is the only way to solve this to turn the sidecar container into a daemon that never exits?This would be the my suggested solution.
I was running a cluster in Kubernetes 1.0, and I had a few containers I wanted to run periodically as a sidecar container in a pod--usually things like pushing or pulling backups. I did this by building a pod with the container that had data I wanted to back up, and the sidecar container for backing it up. The sidecar ...
Kubernetes pod in CrashLoopBackOff state after successful completion
First make suressh -T[email protected]does work, meaning you do have the relevant id_rsa(.pub) SSH keys created and registered.Second, check your fullnpm installcommand (ie the parameter you putafternpm install), sincehttps://github.com/node_modules/cordovadoes not exist, andhttps://github.com/node_modulesneither.Try a...
I can't run thenpm installcommand it keeps providing me with this error:Error while executing: /usr/bin/git ls-remote -h -t ssh://[email protected]/node_modules/cordova.git ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository...
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/node_modules/cordova.git
You should be creating a twig extension and adding your filter there.#src/Insolis/Twig/InsolisExtension.php (snippet) <?php namespace Insolis\Twig; class InsolisExtension extends \Twig_Extension { public function getName() { return "insolis"; } public function getFilters() { return array(...
What's the right way to hook up a custom filter to Twig when using Silex, but keep the existingtwig.optionsintact?Here's what I mean. I have the following code:$app->register(new Silex\Provider\TwigServiceProvider(), array( 'twig.path' => dirname(__FILE__).'/view', 'twig.class_path' => dirname(__FILE__).'/vendo...
Twig addFilter using Silex?
Copying files from the image to the host at build-time is not supported.This can easily be achieved during run-time using volumes.However, if you really want to work-around this by all means, you can have a look in thecustom build outputs documentation, that introduced support for this kind of activity.Here is a simple...
During build time, I want to copy a file from the image (from folder/opt/myApp/myFile.xml), to my host folder/opt/tempIn the Dockerfile, I'm using the --mount as follows, trying to mount to my local test folder:RUN --mount=target=/opt/temp,type=bind,source=test cp /opt/myApp/myFile.xml /opt/tempI'm building the image s...
How to copy files from a docker image - dockerfile cmd
So after some trial and error I figured out how to change the location after you have set it up. Apparently it is as easy as just moving the folder that contains the .git. So for example I just moved the website folder into a new directory and the GitHub app was able to track the movement.Edit 1: The move does not alwa...
In the github mac app i am trying to change the default directory of one of my repo's. In the settings screen I only see a place to change the remote repo.Where do I need to go to change the default location? Sorry if it is very obvious.
Github Mac App How To Change Default Storage Directory
The application lives under the following directory/var/app/current/
I have deployed a Python Flask server to AWS EB.I have been able to SSH into the EC2 instance and when I go to the root directory and type in the commandlsI get this;bin boot dev etc home lib lib64 local media mnt opt proc root run sbin srv sys tmp usr varAfter looking around I made the assumption th...
Where does my application code sit on AWS Elastic Beanstalk EC2 Instance?
Open your Visual Studio Code Then look at the bottom left side there will be an Account option Clicking On it after you will see the Sign Out Option is there.
I am using VS Code on Linux mint. I was pushing to a git repo a few weeks ago and since the repo was private, github asked for authentication as it would. A browser window opened and asked if I want to keep this account for VS Code for all future git pushes, so I did that. Now I need to remove my this account from my ...
How to disconnect Github account from Visual Studio Code
You can use the#returndirective inside the request mapping template to return early from the template effectively returning early from the unit resolver.Your request mapping template can look like this:#if ($ctx.source.payday >= $util.time.nowEpochSeconds()) #set($result = "OK") #return($result) #end { "versi...
I have attached an Appsync pipeline resolver to a field calledpaymentStatusin myOrganisationobject. The idea is that if an organisations last pay day has passed, I want to fetch the payment status from an external API using a Lambda function. If the pay day has not passed, I do not want to invoke the function but simpl...
Can I conditionally invoke a lambda function in an AWS Appsync resolver?
All modern AWS accounts are provisioned with a VPC. VPCs can be deleted but the default security group can not. I believe this dates back to the beginning of the EC2 service (i.e. EC2 Classic). In 2013 and earlier, users were able to create instances on a flat network that was shared with other customers and there w...
I saw this today and it seemed odd. In one region I have no VPC, but I apparently have a default security group that can't be deleted because "This is a default security group. Default security groups cannot be deleted." How did this default security group come to exist without a VPC? At one point there must have be...
How can I have a default security group without a VPC?
The solution is to convert the dates into seconds. Also it's better to make a bash script(say runPyAfterDate.sh) with the code below and save it in a suitable directory(I suggestmkdir ~/cronJobs).Contents of runPyAfterDate.sh#!/bin/sh after=$(date -d 20180315 +%s); # 1521052200 curr=$(date +%s); # currently 1521100701...
This question already has answers here:Cron expression to run every day starting from a date(4 answers)Closed6 years ago.I didn't get any idea of running the program daily after the specified date to idefinitely using crontab.I tried below command but it's not working.python3 $(date=$(date +%Y%m%d); if [ $date -gt 2018...
How can I set crontab for run daily after specified date? [duplicate]
As illustrated inGitHub API Commits, you would need to provide some form ofauthenticationto your url when pushing new content.Either a-u "username:PASSWORD"or aaccess_token=OAUTH-TOKENparameter.See also "POST to GitHub v3 API using ajax and JavaScript fails with a HTTP 404" for a full example.
I am trying to implement a PUT edit to a file in my repository, and am running into issues... Here's what I have so far..// GET content from github file $.get('https://api.github.com/repos/redemption23/trackerApp/contents/file.txt', function(data){ var content = atob(data.content); $('#box').append(content); });Thi...
How do I edit github file from web-browser with github API?
[^-]+means match until next-is found or line end. But in your case you're actually matching URL components separated by/.Try this code instead:RewriteEngine On RewriteBase /apitest/ RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ api.php?Key=$1&user=$2&funct=$3&request=$4 [L,QSA]
I would like to create a clean url along these lineshttp://example.com/secretkey/username/apifunction/data_in/and with the following URL Rewrite rule, it appears to work fineRewriteRule ^/?([^-]+)/([^-]+)/([^-]+)/([^-]+)/?$ /api.php?Key=$1&user=$2&funct=$3&request=$4 [L,QSA]as i get the following output confirmation fr...
URL Rewrite not working as expected with multiple parameters
The solution that works for me is to add the directivesproxy_intercept_errorsanderror_pageto thelocation /in NGINX:server { listen 80; ... location / { proxy_pass http://spa-server/; proxy_intercept_errors on; error_page 404 = /index.html; } location /other/ { prox...
I have NGINX set up as a reverse proxy for a virtual network of docker containers running itself as a container. One of these containers serves an Angular 4 based SPA with client-side routing in HTML5 mode.The application is mapped to location / on NGINX, so thathttp://server/brings you to the SPA home screen.server { ...
NGINX, proxy_pass and SPA routing in HTML5 mode
0 May be ticket 51 might help: The installation process of GitNub.app (and nub) is awkward. Instead of having the user install from a zipped folder, we should move nub into GitNub.app/Contents/Resources/nub and offer to install a symlink on the first launch. The dialog sho...
I'm trying to use GitNub, a graphical GUI for Git, and for some reason upon installing the software running the command 'nub' in the terminal doesn't seem to launch anything for me. I am running Mac OS X version 10.6.3 Gitnub version 0.9.1 I have copied the GitNub.app to my applications folder and created a new folder...
Using GitNub with Git
2 Use git show <ref>:<path> to output file content, then redirect it where you want : git show FETCH_HEAD:thefile > otherpath (See here about the specific ref:path syntax.) Share Follow answered M...
Used to get a certain file out of many ones in repo by $ git fetch origin; git checkout FETCH_HEAD -- thefile with that file name overwrite one with its name, now how to get it as another name and untouch thefile ? Thanks
Usage of git checkout FETCH_HEAD -- file
Assuming you are talking about Linux as OS.According tothis issuea client can lead server by up to 2 minor versions. This more or less can make the version you want the developers to run predictable. Once you know the exact version, you can craft a chain of shell commands that can do the rest.sudo curl -Lo /usr/local/b...
TheKubernetes manualhas a two-liner shell command to download the latest ´kubectl´ release, but that is rarely what companies are running. So each time I onboard a new developer I have to go toKubernetes Github releases page, find the latest minor version that works with my cluster, copy-paste it (taking care not to fo...
Is there an easy download URL for a specific version of kubectl?
a[i] = (T**)(buff + (i * y * z)); You are storing some of the pointers inside the buffer itself. I doubt this is intentional. Try this: a[i] = new T*[y]; This one is fine, because it's supposed to point inside the buffer: a[i][j] = (T*)(buff + i*y*z + j*z);
Another question related to this https://stackoverflow.com/a/21213612/1423473 I'm trying to allocate memory for 3d array contiguously T* buff = new T [x * y * z]; for(int i = 0; i < x * y * z; i++) { buff[i] = 2; // 2 for debug purposes } T*** a = new T **[x]; for(int i=0; i<x; ++i) { ...
Allocate multidimensional array contiguously
The problem could be from your indentation method, Try using spaces and not tabs for your indentation. Use 2 spaces for each indentation. Hope this helps.
hope you are doing fine,i got that error :error:error converting YAML to JSON: yaml: line 33: found character that cannot start any tokenwhile trying to deploy this cronjob on my k8s cluster, can you please check and let me know if you have any clues about the reason of having this error ?the file is as follows:--- ap...
k8s: error converting YAML to JSON: yaml: line 33: found character that cannot start any token
Declaring it in main is declaring it in "automatic storage" AKA the stack. Declaring it outside of main, is declaring it in "static storage" AKA global data. You are declaring a ton of data. std::bitset<5000> is 632 bytes on my system with VS2013 (likely an alignment from 5000/8). And you are declaring 5000 of them...
This question already has answers here: Segmentation fault on large array sizes (7 answers) Closed 5 years ago. When I write the following program, it works correctly i.e. the bits...
C++ Difference between global and non-global arrays (Stackoverflow Exception) [duplicate]
it should be like thiskubectl create deployment ngingx --image=nginx -o yaml --dry-run=clientNope therestart: Alwaysdoes not create pod or deplyoment it's about the container restart policy which is used for restarting container if pod crashes it tries restart.
As per anarticleI read, while using the 'kubectl run' command,--restart Always creates a deployment,--restart Never creates a pod--restart OnFailure creates a jobHowever, when I try that on my Minikube installation it is creating a resource of kind: Podk run ngingx --image=nginx -o yaml --dry-run=client --restart Alway...
How to create a Kubernetes Deployment with the 'kubectl run' command?
When using the list API it looks to me like the latest is always the first in the list. So one option might be to request withper_pageset to1so you only get the latest.octokit.actions.listWorkflowRunsForRepo({ owner: owner, repo: repo-name, per_page: 1, });
I'm using theOctokit APIto request a specific workflow run. I can see in thedocumentationthat I can request a specific workflow run by providing a workflow run ID. However I would like to always request thelatestworkflow run. How do I achieve this if I don't know what the ID will be?E.g. the value ofworkflow-run-latest...
Get the latest workflow run from GitHub Actions using the Octokit API
as far as I know you can't issue shell commands from the .emacs file.Sure you can:(shell-command "cp ~/.emacs ~/.emacs-`date +%Y%m%d:%H%M`")
What is a good way to take a backup of my .emacs file each time Emacs starts? I want to keep multiple copies for when I need to get back to a previous version.My first thought is to issue a shell command from within the .emacs file:cp ~/.emacs ~/Backups/.emacs-yyyymmdd:hhmmss... appending the current timestamp to get ...
How to create a backup of .emacs every time Emacs starts
This works for me (18.04):$ sudo systemctl disable docker.service $ sudo systemctl disable docker.socketYou can run:$ systemctl list-unit-files | grep -i dockerTo check the docker services and disable them manually in the same way$sudo systemctl disable <service-name>.
I thought this was pretty straightforward to make docker daemon not to start when I start my machine, but seems not to be the case. I installed docker manually and then used the following simple line post installation:sudo systemctl disable dockerBut to my surprise this did not do much and I could still see the daemon ...
Disable Docker Upon Startup in Ubuntu 20.04
Change your .htaccess to this:RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(mydomain\.com)$ [NC] RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+news\.php [NC] RewriteRule ^ mykeyword [R=301,L] RewriteRule ^mykeyword/?$ news.php [L,NC]
I have the following .htaccess file:RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^mydomain.com RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^mykeyword$ news.php [L,QSA,NC]However, when I open the news.php, the url...
.htaccess doesn't work
Maybe it is because you have not enabled ssh forwarding for digital ocean? To verify, first edit the $HOME/.ssh/config on your local pc: host * ForwardAgent yes Now try to run cap production deploy:initial. If it works without a password now, then you should change the host * to actually match the hostname of your ...
I'm deploying a rails app on digital ocean, following this link. When I followed the exact steps, it worked perfectly. But then I realized the github repository is public. I should have it as private. I create a private repository and changed the remote origin in my local. I put the ssh keys in the new private reposit...
Changing remote of git does not work on digital ocean
I came across similar problem when I did xml parsing in Python (2.7). Finally, it was figured out that it was caused by the inaccurately definedLD_LIBRARY_PATHenvironment variable. Here was my situation: the xml parsing library:libexpat.sowas confused with the MATLAB version (libexpat.so.1.5.0) between the system versi...
I am having some problems running the aws cli on ubuntu 14.04 I keep getting the following errorTraceback (most recent call last): File "/usr/local/bin/aws", line 15, in <module> import awscli.clidriver File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 16, in <module> File "/usr/local/lib/python2....
Pyexpat import error when running aws cli
The virtual memory manager has to map memory by the page, so the extent will in effect be rounded up to the nearest 4kB (or whatever your system page size is).I don't think it's documented whether writes into the same page as mapped data, but beyond the end of the mapping, will be committed back to the file. So don't ...
Please look at this code below.#include <windows.h> void Write(char *pBuffer) { // pBuffer -= 4*sizeof(int); for(int i = 0; i<20; i++) *(pBuffer + sizeof(int)*i) = i+1; } void main() { HANDLE hFile = ::CreateFile("file", GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL)...
Strange behaviour of memory mapped file, some observations and some questions
Check which version of python your default is set too. You can change the preference default if you need to use a newer version of python. You can check your version via your cli:python --versionTo set a user preference you can usealiasalias python='/usr/bin/python3.4' # or whatever your path name is.Once you have don...
I had installed Python and AWSCLI on Windows 10 and it was working fine a while ago. Now when I runaws ssm start-sessioncommands I get the following error:ImportError: No module named awscli.clidriverI know this is because Python cannot find the cli driver and is usually because it is not installed [properly]. In my ca...
ImportError: No module named awscli.clidriver because of wrong path for python?
Straight from the documentation.Remove Sensitive Data
I've triedgit rm --cachedwhich didn't work, I've heard I could possibly do this usinggit rm *but there seems to be some batching issues with that.I have AWS keys in my commit history that I'd like to remove ASAP.If I could remove all of my git commit history and just push up the app in it's current form with no commit ...
How to remove files from git commit history?
As long as thesome_certxis signed by the same SubCA/CA, and if these CA certificates are trusted by the client, you should be good, meaning thesome_certxwill be recognized as trust certificate.How and Why?Clients (eg: browser) that communicate with secured servers see if the server's certificate is signed by a CA that ...
Say I have the following certification chainsome_company |______ some_company_technical |_____________some_cert1some_cert1will be replaced every year. By importing theRoot certificateand theIntermediate certificateinto my client'struststore...keytool -import -trustcacerts -alias some_company...
TrustStore: SSL certificate validation by CA
Thesuggested checksfrom Amazon are as follows:Confirm that the subnet used to run a task has a route to an internet gateway or NAT gateway in a route table. Note: Instead of an internet gateway or NAT gateway, you can use AWS PrivateLink. To avoid errors, be sure to correctly configure AWS PrivateLink or HTTP proxy.If ...
I am trying to launch a task in Amazon ECS but getting the following error:CannotPullContainerError: Error response from daemon, request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).I was able to pull container in my local environment and it works fine but getting this error wh...
Cannot Pull Container Error in Amazon Elastic Container Service
In principle, you can use OpenCL command queues to achieve CKE (Concurrent Kernel Execution). You can launch them from different CPU threads. Here are few links that might help you get started:How do I know if the kernels are executing concurrently?http://devgurus.amd.com/thread/142485I am not sure how would it work wi...
I want to run heterogeneous kernels that execute on a single GPU asynchronously. I think this is possible in Nvidia Kepler K20(Or any device having compute capability 3.5+) by launching each of this kernels to a different stream and the runtime system maps them to different hardware queues based on the resource availab...
HyperQ support in OpenCL
1 If your content pages may differ (i.e. say a user is logged in and it the page contains "welcome John Doe", then that version of the page may be cached, as each request is updating the cached copy (i.e. a logged in person will update the cached version, including their ...
I have a decent website (nginx -> apache -> mod_php/mysql) to tune it a bit, and I find the biggest problem is that search bots used to overload it sending many requests at once. There is a cache in site's core (that is, in PHP), so the site's author reported there should be no problem but in fact the bottleneck is th...
Nginx to cache only for bots
If you're invoking the PHP script from cron viawget, use the--save-cookiesoption; if viacurl, use--cookie-jar. (If you're invoking the PHP script viaphp -f [...]or similar, then you'll first need to invoke it viawgetorcurlinstead.)For example:wget --load-cookies /tmp/cron-session-cookies --save-cookies /tmp/cron-sessio...
Hi is it possible to use sessions in a cronjob?The Script I use is:session_start(); if(empty($_SESSION['startwert'])){$startwert = 0;} else {$startwert = $_SESSION['startwert'];} if(empty($_SESSION['zielwert'])){$zielwert = 10000;} else {$zielwert = $_SESSION['zielwert'];} .... $_SESSION['startwert'] = $zielwert;...
Use Session in Cronjob (Crontab)
1 I just encountered the same issue. Upon further investigation I discovered the following. The line length was exactly the custom dash pattern length. Changing the line length +/- 1 pixel avoided the error. I was using LineCapRound and DashCapRound, switching to LineCap...
I'm using DashStyle.Dash while rendering my hierarchy of objects. My application uses Graphics.Transform extensively and I find that at some scale values (including a scale of 100%) and some angles of rotation, Graphics.DrawLine throws OutOfMemoryException when using a pen with DashStyle.Dash. Using Google I found tha...
GDI+ DashStyle throws OutOfMemoryException in .NET
Since any traffics from outside will go through an ingress in order to reach your HTTP service, you can add a routing to an error page component if the traffics reach the API paths meant for your internal cron usage, which calls the API via the service and not going through the ingress.For example:spec: rules: - ho...
I've recently setup a cron process that will make an internal request inside my K8 instance call my service internally. I'm now faced with the task of securing that endpoint. The simplest solution might be to pass a secret via the Authorization header but that doesn't seem safe or the proper way.What are some correct w...
How to verify that an HTTP request came from an internal cron?
For use on production it is recommended that you always have a nginx proxy between client and meteor server.So the best way to add caching headers to files from the static directory would be to add them in the nginx config.Just take a meteor nginx config like the one David Weldon made:gistThen add the following locatio...
Is it possible to add expiration headers to static assets in meteor? Or a way to configure them?Thanks!
How to add expiration headers to Meteor static assets
No, it's not possible. However, you could have an EC2 instance connect to your RDS instance to do it. I'd probably store a .sql file in S3 and use a cloud-init script on the EC2 instance to download the file and execute it.
I am creating an RDS instance using CloudFormation using this: "Resources": { "myDB": { "Type": "AWS::RDS::DBInstance", "Properties": { "AllocatedStorage": "5", "DBInstanceClass": "db.m1.small", "Engine": "MySQL", "EngineV...
Is there a way to run initial SQL when creating an RDS database instance using CloudFormation?
To do that, you first need to be authenticated and authorized to your Kubernetes namespace/cluster.var config = await KubernetesClientConfiguration.BuildConfigFromConfigFileAsync(new FileInfo("C:\\Path\\To\\Your\\Kubeconfig\\file")); var k8sClient = new Kubernetes(config);Below is how you can get deployment/servicevar ...
As I am new to kubernetes, struggling to get the list of deployments and other details by using the kubernetes client c#.Like for$kubectl get services $kubectl get nodesAny help would be appreciated...
kubernetes client c# kubectl get services
You might be facing a bug on the kubelet that is discussedhereand was fixed in K8s 1.23.6.Failure should be sporadic, so a simple recreation of your Pod might already fix it. More reliably, you could upgrade K8s or disableautomountServiceAccountToken. This stops the CA in question from being mounted into your Pod. Sinc...
I'm just trying to run a simple batch job and getting this error "MountVolume.SetUp failed for volume "kube-api-access-cvwdt" : object "default"/"kube-root-ca.crt" not registered"Here's my logs when running describe pod on that podNormal Scheduled 59s default-scheduler Successfully assigned default...
MountVolume.SetUp failed for volume "kube-api-access-cvwdt" : object "default"/"kube-root-ca.crt" not registered
You should not pay any attention to your memory usage curves with Zombies enabled. With Zombies enabled, memory for Objective-C objects is never freed. (That's how zombies work: instead of deallocating the object, the runtime replaces the dead object with a zombie object that complains if it is ever used.)
I'm now managing the 'memory' of my new app', but i found a difference that i don't understand. Look at this pic : The allocations curves are not similar at all. It's from Zombie mode, and Leaks analyzer. But why is it different because the curves seems to be from allocation ? Thanks !
Difference between Instruments (Zombies and leaks)
bechtoldt's formula requires additional code taken from his GitHub repository to work, formhelper,https://github.com/bechtoldt/salt-modules/blob/master/_modules/formhelper.pyinhttps://github.com/bechtoldt/salt-moduleswhich is his special way to manage pillars that gives him more flexibility to manage versions.It is cer...
Using this formula:https://github.com/bechtoldt/saltstack-prometheus-formula.gitfor provisioning prometheus, I can't achieve convergence.Fails pretty early on:# salt prometheus-master state.apply test=True prometheus-master: Data failed to compile: ---------- No matching sls found for 'prometheus' in env 'base'...
Provisioning prometheus with saltstack
Reason: The role 'xyz' does not have BatchGetImage permission for the image: '520713654638.dkr.ecr.us-east-1.amazonaws.com/sagemaker-tensorflow-serving:1.12-cpu'.This error means that the IAM role "xyz" (you can find this in the IAM console) does not have permission to make theBatchGetImageAPI call in ECR (Elastic Cont...
I am Able to train my modelusing Sagemaker TensorFlow container.Below is the code:model_dir = '/opt/ml/model' train_instance_type = 'ml.c4.xlarge' hyperparameters = {'epochs': 10, 'batch_size': 256, 'learning_rate': 0.001} script_mode_estimator = TensorFlow( entry_point='model.py', train_instance_type=train_in...
Does not have BatchGetImage permission - While deploying model in sagemaker
Using Regex Lookbehind & LookaheadEx:import re s = """-----BEGIN CERTIFICATE----- MIIBuTCCASKgAwIBAgIQNdNhtuV5GbNHYZsf+LvM0zANBgkqhkiG9w0BAQUFADAb MRkwFwYDVQQDExBFZGlkZXYgU21va2VUZXN0MB4XDTA4MTExMjE5NTEzNVoXDTM5 MTIzMTIzNTk1OVowGzEZMBcGA1UEAxMQRWRpZGV2IFNtb2tlVGVzdDCBnzANBgkq hkiG9w0BAQEFAAOBjQAwgYkCgYEAm6zGzqxejwswWTN...
Certificate contain the beginning and end like:-----BEGIN CERTIFICATE----- [Base64 of certificate] -----END CERTIFICATEI need to extract just the [Base64 of certificate] part, i.e., between the "-----BEGIN CERTIFICATE----- " and " -----END CERTIFICATE-----" strings. Can we have a regex for the same inPython.This is my ...
Regular expression to strip beginning and ending from certificate in Python
From thezenodo/zenodozenodo/modules/github/api.pycode, releases are managed by the third-party dependency libraryinveniosoftware/invenio-github.inveniosoftware/invenio-githubinvenio_github/models.py#create()does create a release, which,from this, seems only to consider zip archives.So this is not yet supported.ShareFol...
I maintain a few (Unix) repositories on Github where I autolinked the releases to Zenodo. It turns out that Zenodo only takes the Zip files, not the tar balls. In my case this is bad, since the zip files mess up symbolic links at least with the GUI of MacOS.How can I instruct Zenodo to actually use the tar ball and not...
Include tarball instead of zip file from Github in Zenodo
docker-compose down -vremoves all volumes attached. See thedocs
If I have a docker-compose file like:version: "3" services: postgres: image: postgres:9.4 volumes: - db-data:/var/lib/db volumes: db-data:... then doingdocker-compose upcreates a named volume fordb-data. Is there a way to remove this volume viadocker-compose? If it were an anonymous volume, thendocker...
Remove a named volume with docker-compose?
I found the answer myself. Using cli- aws s3 cp glacier.png s3://my-lambada-example-thumbnails/ --storage-class STANDARD_IA So by using --storage-class we could specify the storage class. Also when uploading from AWS console we get to specify the storage class. Those who are using AWS File Gateway and want to chang...
I want to change the S3 bucket to have default storage class of Infrequent Access. So if I upload file to the bucket, it should directly go to Infrequent Access storage. I don't want to use the Lifecycle
Change S3 Bucket Storage class to S3 Infrequent Access
If you need a jar file itself rather than adding pom.xml click on below link to download jar filehttp://central.maven.org/maven2/org/semanticweb/yars/nxparser-parsers/2.3.3/nxparser-parsers-2.3.3.jarIf you want to create jar file from github follow the below steps,In Linux/Mac1.Clone the repositorygit clone https://git...
I need to use anxParserlibrary to parse myNTriplefiles in eclipse.Apparently, the only source that perfectly works isthis github codebut this is just the source code and I need a built-in jar library.Could anyone help me how can I use a source code as a built-in jar file?
How to download jar file from github source code?
seems ok, maybe a bit much.I'm not exactly sure what your servlet is doing, but to give you an idea, I have an ecommerce application with about 1000 daily users running on 2 small ec2 instances. Tomcat load is distributed via mod_jk.I did not tune the JVM at all and kept the default settings. I'm also using terracotta...
I'm writing a Java servlet that I'm planning to deploy on Amazon AWS using Elastic Beanstalk. My tests show that things run well using a Small EC2 instance using their stock Tomcat AMI that Beanstalk uses.I'm trying to figure out how to properly allocate Java heap space for this configuration. A Small instance has 1.7 ...
Allocating a Java heap for Tomcat on an EC2 instance
You can see Pomodori's only dependency (listed in it's Gemfile), is thehotcococagem:# A sample Gemfile source "http://rubygems.org" gem "hotcocoa"Here is a tutorial for building a simple GUI application withhotcocoa. Hotcocoa, as my fellow posters have pointed out is built on Macruby.I think going directly with Macrub...
I'm learning to code Ruby, starting to get into learning open source code. How do I turn the open source code I see on github to a runnable application? For example how do I turn source code fromPomodori's Githubto the downloadable app fromthis page? I'm interested in being able to manipulate the source code, and then ...
Source Code vs Packaged App in Ruby
This is because you've commented out the line that checks out your code:# - uses: actions/checkout@v1 # Remove the comment from this lineBy default, your code is not checked out in the workflow's directory. As such, you have to use theCheckout GitHub Actionto check out your code.From the README:This action checks-out y...
I want to run a test file when someone sends a pull request. This is myaction.ymlfile.name: "GitHub Actions Test" on: pull_request: branches: - master jobs: test: runs-on: ubuntu-latest steps: # - uses: actions/checkout@v1 - name: 'Install Node' ...
github action: run a test file on pull request
Of course putting dictionary inside a DB would help. Database works MUCH faster due to internal indexing and residing in system memory as a daemon; Searching inflections would also be simpler, faster and more efficient with queries: SELECT * FROM dictionary WHERE word LIKE "devel%" would get you "developing", "devel...
I would like to implement a dictionary for searching words and their inflection. Dictionary size is about 60MB and it is stored in txt file. Currently I'm passing a whole dictionary (60MB) to an variable and then searching for interesting words. I can't resist an impression that is not properer way (to allocate 60MB i...
Dictionary searching words - best performance in PHP and MySQL
It's much better to have the multiple 301s. You don't want your customers to see a 404.There's no SEO penalty (that I'm aware of) for having multiple pages 301 to the same page.
We have updated our site recently; the old one had around 300 pages... the new one about 80 ;)This because in the old structure we had, for every argument, many pages. Instead, now we have just one page with a 'summary'.For example, the old structure about the 'car' argument was:Main page, 'cars'sub-page, 'tires'sub-pa...
Multiple 301 Redirects after restyling a website (SEO)
This is currently not possible to configure for your user pool. They are set to one hour for everyone. Edit: see Mike's comment, this has recently been added.
I can't find any documentation which explains if and how to modify the expiry time of access and identity tokens for AWS Cognito User Pools. The documentation specifies that by default expires 1h after the emission. Is there a way to modify the expiry time?
How to modify expiry time of the access and identity tokens for AWS Cognito User Pools
I still haven't found a perfect solution for this problem. I have the same problem on Firefox (Yosemite).Adding:-webkit-transform-style:preserve-3d; -webkit-filter: opacity(1);to the body 'fixed' it a little. The font doesn't flicker anymore but it does become less 'bold'.EDIT: Adding these to the body fixed the proble...
That's was an issue with safari 7 and it was fixed by the following code-webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -ms-backface-visibility: hidden;Now it's not fixed in Safari 8. It causes text flickerlinkhttp://jsfiddle.net/6x9u11c9/1/
CSS Transform (rotation) causes text flicker in Safari 8 (yosemite)
On success, exec-family functions such asexeclp()replacethe currently running program image with the requested one. They return only on failure to do that. Your functionforks once and performs anexeclp()in both parent and child, thus, yes, if everything succeeds then the original program does not process any more inp...
I am implementing a pipeline in shell i.e: ls|sortthe shell has many commands like DIR, COPY, | - means pipeline, and so on...When I run this command (ls|sort) its worksThe Problem is:the shell exit and doesn't wait for the next commands in the shell after the command in the pipeline function.I think because is somethi...
PipeLine Shell in c when com,mend happen the shell close
I use this query to get how many percent of its CPU limits the pod is using.sum(label_replace(rate(container_cpu_usage_seconds_total{container_name =~ ".+"}[1m]), "pod", "$1", "pod_name", "(.*)")) by (pod, namespace) / sum(kube_pod_container_resource_limits_cpu_cores{}) by (pod, namespace) * 100And for RAM:sum(containe...
I would like to detect using Prometheus (Grafana/alerting) if my containers actual CPU usage is above/under CPU requests and not getting to close to CPU limits?For memory consumption I managed to do it by doing:sum by(container_name, pod_name)(container_memory_usage_bytes{namespace=~"myNamespace",pod_name=~"myPodName",...
Detect with Prometheus if I am not getting to close to Kubernetes container CPU limits
The SonarQube interface is really going to be the best referential for your users. Based on the info in your comment, I'd suggest a simple web form rather than trying to construct a spreadsheet.It may help to know that you can construct the URL to any rule using the repositoryKey and key returned in the XML profile bac...
We are using SonarQube 4.5.1 for our projects and are planning to provide list of rules activation/deactivation to end users.What is best way to export/import within SonarQube in Excel?There is option of backup in Quality Profile but it did not export description. I looked directly in the database with rules table, but...
How to export Quality Profile rules into Excel
path will give you everything except the domain itself. You should be able to get the domain from the Host entry in multiValueHeaders or headers.
I'm trying to read through the docs and looking at the types: export interface APIGatewayProxyEvent { body: string | null; headers: { [name: string]: string }; multiValueHeaders: { [name: string]: string[] }; httpMethod: string; isBase64Encoded: boolean; path: string; pathParameters: { [nam...
In a APIGatewayProxyEvent, what field will give me the URL?
PowerShell doesn't support outputting / passing raw byte streams through - any output from an external program such as docker is parsed line by line, into strings and the strings are then re-encoded on output to a file (if necessary). It is the overhead of parsing, decoding and re-encoding that explains the performanc...
Docker version 18.03.1-ce, build 9ee9f40 I'm using powershell to build a big project on windows. When issuing the command docker save docker.elastic.co/kibana/kibana > deploy/kibana.docker I'm getting an file 1.4Gb. Same command run in CMD produces 799Mb image. Same command run in bash produces 799Mb image. CMD and...
Docker save images twice the size when using powershell - saving raw byte streams
Unless there is some other reference to the parent or child, they both become orphaned. But the retain cycle between the parent and child prevent either from being released and they become wasted memory.A child should never retain a parent. If anything, use a weak reference in the child to maintain a reference to the p...
Lets say we have three objects: a grandparent, parent and child. The grandparent retains the parent, the parent retains the child and the child retains the parent. The grandparent releases the parent.What will happen in this case ?
Understanding retain cycle in depth
The secret key must be copied wherever you use encrypted properties. Here you're using encryption on the scanner side, so you must first copy the key on that machine and setsonar.secretKeyPathaccordingly. As perSettings Encryption documentation:To use an encrypted value on the scanner side,Copy the secret key file to t...
I followed the below link (http://docs.sonarqube.org/display/SONAR/Settings+Encryption) and try to encrypt the sonar jdbc password and I set the password and key path in maven project as below<sonar.jdbc.url>jdbc:h2:tcp://localhost:9093/sonar</sonar.jdbc.url><sonar.jdbc.username>sonar</sonar.jdbc.username> <sonar.jdbc....
Error - while encrypting the jdbc password in sonarqube 4.3.3
Here are 2 possible explanations for this: Both paths exist in the repo, differing only by case. You can check if this is the case (pun intended) using this command. Only the new path (with the desired casing) exists after the merge, but Git was unable to rewrite those paths, perhaps because they were locked at the t...
I am having some issue after I merged the code and the package/folder named are not showing as expected. For example:- in master branch, someone has changed the below package name and pushed the code com.example.mainDirectory => com.example.maindirectory Folder structure src > java >main >com>example>mainDirectory ...
renamed folder not reflecting post git merge
Alright, it was just an inattention mistake. Before it was necessary to have a dedicated branch gh-pages but now the master branch (or any other branch) can be chosen to be the gh-page. Simply have to select it in the repository settings...
First, I apologize for posting this here because I imagine it's not in the right place ...: / Here, I have a git repository on which I have a personal project, I had a little abandoned and then I plunge on it. Until now I had never had a problem but since today I have the following error:Refused to load the image 'http...
Incomprehensible bug in my GitHub-Page
30 Syntax to copy files/folders from Docker container to local filesystem is docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH Ex : docker cp b8ddea5d8fad:/mnt/mydir/ ./localDir Syntax to copy files/folders from local filesystem to docker container is docker cp [OPTIONS] S...
I'm using this Docker Container https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/udacity . I've made few changes and would like to backup files from it to my hard drive. I can't find solution to do so.
How to download file from docker container?
You can define rules in Apache's virtualhost config (one step above .htaccess, you'll have to ask an administrator to edit this):<VirtualHost *:80> ServerName piskvor.example.com ServerAlias *.host2.example.com php_value session.save_path /home/p...
for our project we need to set several PHP values depending on the environment (development/production), most notably session save path and some tracing and profiling settings.We do not want to set them in the PHP script because due to some horrible legacy code which would require a lot of changes and we don't want to ...
.htaccess Set PHP Value depending on Hostname
27 It's basically a three (kind of four) step process. You need to create a Metric Filter from your logs. This will allow you to create a metric whenever there is an "error" in your log (or whatever other condition you want). The name of the metric would typically be som...
I have a lambda that sends to STDERR when a given operation fails, something like: async function handler(event, context) { const success = do() if (success) { return { statusCode: 200 } } console.error('Failed :(') return { statusCode: 400 } } This is very simplified, but you get the idea. Naturally, t...
How to send alert based on log message on CloudWatch
I is very likely that each time you use such a bimap in a different file, it is specialized leading to huge code duplication. If you are using c++11 then you should declare them as extern template, And specialize it in only one file. See using extern template (C++11)
I am using quite a few containers of the form boost::bimap<boost::bimaps::multiset_of<std::string>, boost::bimaps::set_of<AnEnum> > I am defining them in a header file that is included in quite a few cpp files (This is after I limited the exposure of the header file as much as possible). The .a files being created i...
Boost Bimap takes too much memory in debug build
Coming back to this question, I foundanother answerpointing out that there isa specificationfor weak references and finalization whichsome browsers implement. The central component for finalization isFinalizationRegistry.So depending on which browsers you target, this may be possible now. If you need to support browser...
Suppose I have some asm.js code, probably created by emscripten. Suppose it has some kind of rather large heap allocated structure, which gets returned by a asm.js function as a pointer that is picked up by some JavaScript library to be wrapped in a nice JavaScript object. Fine so far.But what happens if that object go...
Finalizers for JavaScript objects
Don't introduce merges inside pull requests. The proper workflow is this:ForkCloneBranch[hardcore coding work][commit(s)]Rebase (to upstream/master), e.g. usinggit pull --rebase upstream masterPushCreate a pull request.That way you avoid merge commits and end up with clean commits in your pull request which are based o...
I recently ran into a situation where my pull request for a bug fix got messed up when I rebase from upstream locally, and then tried to push to my local PR on github. I wonder if I was going the right way, or that my workflow needs to be altered.Basically, I followed this workflow:fork on githubclone on local machine....
Updating a git pull request after a local rebase
You can change default limits for some Loki internal variables. Here is an example of a tested config that works fine on 4 core virtual machine with simple file storage.query_scheduler: max_outstanding_requests_per_tenant: 4096 frontend: max_outstanding_per_tenant: 4096 query_range: parallelise_shardable_queries:...
I am trying to use loki and grafana for generating and visualizing log-based metrics. I have created a Grafana dashboard using the loki filters. While clicking the refresh button, all dashboards fail with the error "too many outstanding requests" and display no data. Refer to the screenshot attached.I deployed grafana ...
Grafana showing "too many outstanding requests" error while querying loki dashboard
A non-static member function (usually) somehow depends on the state of the object it is called in. If this would not be the case, there would not really be a reason to make it a non-static member function. Now you want to call a function that depends on the state of your object before said object is completely constr...
I have today learned the very useful new feature of C++ 11 which allows direct initialization of data members in the class declaration: class file_name { public: file_name(const char *input_file_name); ~file_name(); private: char *file_name=nullptr; //data_member is initialized to nullptr; ch...
Initializing Data Members with a Member Function
There are tools available to create what are known as "sprite sheets" or "texture atlases".This XNA sampledoes this for you as part of a content pipeline extension.Note that the padding of textures only happens on devices that do not support non-power-of-two textures. Windows Phone, for example. Modern GPUs won't waste...
I read somewhere that XNA framework upscales a texture to nearest power of two size and then sends that to VRAM, which, provided it's how it really works, might be not efficient when loading many small (in my case 150×150) textures, which essentially waste memory with unused texture data resulting from upscaling.So is ...
Non power of two textures and memory consumption optimization
From CloudFormation's perspective, SAM is a transform. Meaning: SAM templates are syntactically equivalent, but they allow you to define your serverless app with more brevity. The SAM template eventually gets expanded into full CFN behind the scenes. If you already know CFN, but want to write less YAML code, SAM ma...
I'm finding it hard to understand the difference between SAM template and Cloudformation template. I know that SAM template can be used to define Serverless Applications like Lambda, but how does that make it different from Cloudformation template? Is the syntax different? I can still specify the Lambda definitions in...
Difference between SAM template and Cloudformation template
Redirect http->httpsThis is a simple pattern for redirecting everything to https:server { listen 80 default_server; listen [::]:80 default_server; server_name _; return 301 https://$host$request_uri; }It does not fit to all use-cases, but for most it is the simplest way without strange directives.OrderO...
I am trying to install an SSL certificate on an Ubuntu server with Nginx (my project is on a Flask server). When I try to reach my domain with my current configuration, the site can't be reached and ERR_CONNECTION_TIMED_OUT appears. I'm also trying to redirect all http requests to https. This is my current .conf file:s...
How do I configure an ssl certificate with Nginx on Ubuntu 18.04?
achievable with NLB?Sadlyits not possible. Concepts of url, paths or dns hostnames are only defined forLayer 7 - Applicationof theOSI model. However, NLB operates atlayer 4 - transport. Subsequently, NLB is not able to differentiate between any url domain names or paths.The only distribution of incoming traffic you can...
I have a use case:-where my I have a lot of traffic coming to my webservers so I need greater performs and better latency however there are 2 paths to which traffic is incoming.as per my understanding this is achievable with aws NLB which scales to 1000's request per second and 100 ms sub latency.however I havewww.jati...
is it possible to achieve path based routing behind aws NLB?
I don't think this is an on-topic question for StackOverflow at all, but some information anyway: It's significant and depends on the size of the database. I've had it take an hour or more some times. I've also had creating snapshots, restoring from snapshots, and multi-az creation take around two hours before. It de...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
AWS RDS instance upgrade down time [closed]
These are legacy access control directives. Either portOrder,allow, anddenyto "Require" or load the mod_access_compat module in your (non-htaccess) apache config.
The Apache version that I used in my local machine is 2.4, when I accessed the url of my application in the browser, I got this error./var/www/app/public/.htaccess: Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server configurationThis is the content of my .htaccess file:SetEnvI...
.htaccess: Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server configuration
The tooling around .NET Core is not finalized yet, so the SonarQube Scanner for MsBuild which heavily relies on the build tooling does not support .NET Core yet. Microsoft is moving the .xproj to .csproj, and all build to use MsBuild. We might not even have to change anything in the end to support .NET Core.
I have always this problem.2016-10-20T09:32:52.6982011Z Executing the powershell script: C:\Agents\agent\tasks\SonarQubePostTest\1.0.37\SonarQubePostTest.ps1 2016-10-20T09:32:53.7060658Z SonarQube Scanner for MSBuild 1.1 2016-10-20T09:32:53.7070421Z Default properties file was not found at C:\Agents\agent\tasks\SonarQu...
how to configure sonar in tfs 2015 for .net core project
14 This may occur due the reason that Heroku's Git doesn't understand shallow clone as mentioned here. Workaround is to disable shallow clone before deployment. git fetch --unshallow Share Improve this answer Follow ...
I am trying to push my app on to Heroku, but I am getting this error message. I have looked around, someone mentioned about GitHub recently started redirecting http repository access to https and it appears your git is unhappy about this change. But I am having troubles pushing to heroku, any help will be much appreci...
error: RPC failed; result=22, HTTP code = 400
You should connect to connect via container's name insteaddb: image: mysql:5.7.26 container_name: godockerDB environment: MYSQL_USER: docker MYSQL_ROOT_PASSWORD: password MYSQL_PASSWORD: password MYSQL_DATABASE: godocker ports: - "3306:3306"Then you can conenct via container namefunc dbConne...
I'm trying connect mysql server from docker using golang gin gorm.The build itself has succeeded, but as shown in the title, the following error has been issued.panic: dial tcp 127.0.0.1:3306: connect: connection refusedTrying to connect in this wayfunc dbConnect() *gorm.DB { db, err := gorm.Open("mysql", "docker:p...
panic: dial tcp 127.0.0.1:3306: connect: connection refused
I believe you are referring to certificate based authentication where your application communicates via HTTP/SSL. Correct me if I am incorrect.If your requirement is to test 1000 unique users signed in via certificates then you will need 1000 unique certificates. There is nothing LoadRunner or any tool can do to chan...
I'm pretty new in performance testing. I have an application that uses SSL authentication for user login. The requirement is to load test the application using 1000 users. I do not have so many certificates available & no way it is possible to add certificates in the system. Is there anyway certificates can be simulate...
Load Testing of web application with SSL based authentication using HP Loadrunner
First of all your auditing should be on by setting youraudit_trailparameter to a valid value likeDB,DB_EXTENDED,XML,XML_EXTENDEDorOSwithscope=spfileand restart database.Next, you need to use audit commands for what you want to track, such as :audit drop user by access; audit drop any procedure by access; audit drop any...
I would like to submit a question about creating an audit trail for specific tables on Oracle 11g database. We would like to track user's changes, on some specific tables, that records has been changed from the application (front end) side. Of course the first idea we came up with was to create manually audit tables an...
Oracle 11g audit trail for specific tables
Click on the green circle in the Dag Runs column for the job in question in the web interface. This will bring you to a list of all successful runs.Tick the check mark on the top left in the header of the list to select all instances, then in the menu above it choose "With selected" and then "Delete" in the drop down m...
Backstory: I was running an Airflow job on a daily schedule, with astart_dateof July 1, 2019. The job gathered requested each day's data from a third party, then loaded that data into our database.After running the job successfully for several days, I realized that the third party data source only refreshed their data ...
Airflow: Re-run DAG from beginning with new schedule