Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
If you chooseVCS checkout mode:Automatically on agent (if supported by VCS roots)in theVersion Control Settingsof your project you will be able to run git command inside your build.So in the last build step you can just add agit push origin your_branchand TeamCity will push the changes inside your VCS root. | As the title says,I am currently running a build in Team City where the VCS root is pointing to a github repo. I would like to run this build where it also updates property files within my github repo. I have only found ways to publish artifacts to Team City, but has anyone been able to commit and push from Team City t... | Is it possible to push changes to a VCS root in Team City? |
1
The usual way to handle large files in C# is to use a FileStream and process small chunks at a time. But it depends on your library if it can handle FileStreams if you can use it or not.
Share
Improve this answer
Follow
... |
I want to work with a large .ISO file in C#. I want to manipulate it, adding and deleting files from it, and create a new iso from it. Ive tried the DiscUtils library but it seems I cant get it to work. When I load it (using standard C# functions) I always get a OutOfMemoryException. This is a 600MB ISO (more or less)... | How can I work with a large file in C#? |
I suggest you to go through official docs to understand how git works to avoid these kind of fears. Let me list out a couple of commands which will help in keeping your git repo clean.git branch -lwill list all your local branches which are created or checkedout from remote branches.git branch -d branchnamewill delete ... | During a session of work, I took a look twice at a colleague branch updates usinggit fetch originandgit checkout origin/branchname. After looking at the branch the second time, I noticed that the branch is now part of my list of my local branches when i typegit branchand i no longer see it among the other colleagues li... | how to remove a colleague branch from your list of local branches in GITHUB |
location /cdn-directory/ {
location ~* \.(js|css|swf|eot|ttf|otf|woff|woff2)$ {
add_header 'Cache-Control' 'public';
add_header 'X-Frame-Options' 'ALLOW-FROM *';
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Meth... | I have created a folder that will be used for serving static files (CSS, images, fonts and JS etc) I will eventually CNAME the folder into a subdomain for usage on a CDN to work with my Magento 2 setup.I want to allow ALL domains ALL access via CORS - Cross Origin Policy and I want to cache the data too. This is what I... | How to add CORS (cross origin policy) to all domains in NGINX? |
I don't know if there's a syscall to retrieve this information.
Absolute worst case you could parse /proc/<pid>/maps.
|
I am using mmap for allocation memory and mark some pages as PROT_READ and few as PROT_NONE using mprotect. my implementation has logic based on the memory permission. Currently I have the memory location info, how do I get its current protection state? (PROT_READ/PROT_NONE)
| Getting memory permission details in Linux |
I've found out that the include/exclude commands get "stronger" the more left they appear in the command.In my case, the imports and exports and the source would look like this:--exclude /var/tmp --exclude /var/run --exclude /var/lock --exclude /home/*/.thumbnails --exclude /home/*/.cache --exclude /home/*/.local/share... | I would like to backup the following folders with duplicity/home
/etc
/usr/local
/root
/var
/bootand exclude/var/tmp
/var/run
/var/lock
/home/*/.thumbnails
/home/*/.cache
/home/*/.local/share/Trash
/root/.thumbnails
/root/.cache
/root/.local/share/TrashI already learned that I have to specifyonesource directory to save... | Backup multiple folders with duplicity (including/excluding) |
First, offloading DB away from your main Website instance has it advantages. You can benchmark separate entities and decide which one to scale.
for 24x7 services, use RDS for your DB. You can create automatic fail-over recovery easily (though still need a bit of intervention) in the future. And you can create a DB sn... |
I am new to AWS and I have a growing website that is connected to many APIs and I have a growing database and I just don't want to reach a point where my system crashes.
So I have:
Website
Inside the website, there is an application which connects to a large database, it sorts the information first and then redirect... | Put database on EC2 or RDS? |
Don't forget to optimize your code and improve your algorithms. Perhaps consider someMonte Carlo method...(studying the underlying mathematics is definitely going to be useful; you might make a PhD on your topic)LearnOpenCLorCUDAand code your physics code with it (it would take you several weeks, and is platform specif... | Closed. This question needs to be morefocused. It is not currently accepting answers.Want to improve this question?Update the question so it focuses on one problem only byediting this post.Closed8 years ago.Improve this questioncurrently bullet physics solution runs on CPU.In this case,collision is very slow.I want to ... | How to run bullet physics solution on GPU [closed] |
If you created the issuer correctly, then you need to create a Certificate, so the issuer can issue the certificate using the information you have in the Certificate resource, and populate the secret:apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: certname
spec:
secretName: secretName
issue... | From thecert-managerdoc: adding the annotationcert-manager.io/cluster-issuer: acme-issuerto anIngressobject should trigger the shim, request a certificate to this issuer, and store the certificate (without any namespace ?) (with which name?).I tried this and it does nothing. Adding atls:section to the yaml definition o... | Is the annotation cert-manager.io/cluster-issuer: acme-issuer enough to generate a TLS certificate? |
You can enable some logging to have more information about what is really happening.Go to "Manage Jenkins" -> "System Log" -> "Add new log recorder" and give it a name then add the 3 following loggers:com.cloudbees.jenkins.GitHubPushTriggerorg.jenkinsci.plugins.github.webhook.WebhookManagercom.cloudbees.jenkins.GitHubW... | I want to setup a Github webhook trigger to start the pipeline as soon as the commit is triggered.I've done the usual and set up webhook tohttp://Jenkins URL:port/github-webhook/but it doesn't seem to work.I've also added the repo in Github repo field in the configuration part of the pipeline job.What other settings do... | How to set up Jenkins Pipeline trigger on commit to Github SCM private repo? |
No.You can add multiple hostnames to the hostfile, for example:
1.2.3.4 hostname1 hostname2But every time you look up a name or address, youll just get the whole line back. Or was that what you wanted? | I know how to resolve a hostname to an IP address using my hosts file eg1.2.3.4 example.combut is it possible to resolve a hostname to anotherexample.com example1.comwith a hosts file? Reason being, Im testing a new site, hosting uses Virtual hosts, so there are multiple domains on the IP address. ServerAlias in Apache... | Resolve one hostname to another, using hosts file |
After hours of debugging, I've found that changingimport * as AWS from 'aws-sdk';toimport {DynamoDB} from 'aws-sdk';(or{CloudFront}or whatever you actually use) made the timeout issue disappear. Mind you, the time to actually connect to DynamoDB was never an issue for me, it was always theimportline where the timeout h... | I'm trying to query a DynamoDB table from a Lambda function (for an Alexa skill), but when I send the intent that callsrequire('aws-sdk'), the skill seems to hang and timeout. The Alexa test page just says "There was a problem with the requested skill's response", and I don't see any errors in the CloudWatch logs. I ha... | AWS Lambda function times out when I require aws-sdk module |
In fact Docker documentation offers you how to set up a swarm cluster 'manually' without using docker-machine: Create a swarm for development
|
Currently I have a bunch of RHEL7 VMs running on RackSpace and want to deploy docker swarm for testing purpose. The Docker Docs only describes the method to deploy docker swarm by using docker machine.
Question:
Since VirtualBox cannot be used in VMs, are any other ways such that I can directly deploy docker swarm on... | Deploying docker swarm without using docker machine |
If you want your container (that has Tensorflow already preinstalled, since it is running from the Tensorflow image) to access your script, you need to mount that script from your host onto a local path in your container.docker run -v /path/to/your/script:/path/to/scriptSee "Mount a host file as a data volume".The-vfl... | Imagine I manage to install Tensorflow on Windows, using Docker as in these two links, for example:TensorFlow on WindowsHow to install and run TensorFlow on a Windows PCIn both links, they're able to use Tensorflow on a shell python (don't know exactly what version, I have Anaconda installed).But what if I want to run ... | How do I run a python script with Tensorflow running in a Docker on Windows? |
Have you looked into:
http://blogs.msdn.com/b/sql-bi-sap-cloud-crm_all_in_one_place/archive/2013/07/24/sql-azure-automated-database-export.aspx ?
Under the hood it does the exact same steps.
|
How can I schedule backups for my SQL Azure DBs. I suspect I need to schedule:
1) Create Database [DBCopy] as copy of [DBlive]
2) Export [DBCopy] to Azure Storage.
The frequency would likely be once a day.
I cannot find an Azure Scheduler to help me with this.
Thanks in advance.
| How to Schedule backups in SQL Azure |
It's a bit late to post the answer but mainly you need to runcrontab -ewhich would open a crontab file. You can then add all your jobs as follows:* * * * * /path/to/your/commandThe 5*means every minute forever so you need to configure it accordingly. You can check thisguideas well. | I have deployed my laravel project on AWS Elasticbeanstalk and I have a cronjob task. How do I configure it to run? I have seen multiple answers but either they are no longer valid, too complex or not described well. Any sort of guide/steps I can follow to do that?In many deployment services there's the cpanel where I ... | How to configure and run cronjob on AWS ElasticBeanStalk? |
You may try this rule:RewriteCond %{HTTP_HOST} ^(?:www\.)?example-page\.com [NC]
RewriteCond %{THE_REQUEST} !\s/countdown [NC]
RewriteRule ^ https://www.example-page.com/countdown [L,R=301]Make sure to test if after clearing your browser cache. | I try to force a user which is coming via a specific domainexample-page.comto always get redirected to/countdownMy approach was the the following:RewriteCond %{HTTP_HOST} ^example-page\.com [NC, OR]
RewriteCond %{HTTP_HOST} ^www.example-page\.com [NC]
RewriteCond %{REQUEST_URI} !^/countdown
RewriteRule ^(.*)$ https://w... | Force user to a single site when visiting over a specific domain via htaccess |
I do the following to force users to use HTTPS:protected override void OnPreInit(EventArgs e)
{
if (string.Compare(Request.ServerVariables["HTTPS"], "OFF", true) == 0)
{
StringBuilder builder = new StringBuilder("https://");
builder.Append(Request.ServerVariables["SERVER_NAME"]);
builder... | Is there a way to intercept a call made by WebBrowser to SSL (within in an asp.net application)? I need to pass parameters to http-headers at runtime before the request is made.Example: if I type "http://test.com", the browser communicates with the server and returns "https://test1.com" as the secured url. I should be ... | Intercept Http call to SSL certificate |
Confirm you are clicking the "active" checkbox on the form where you entered the API token in Github.This hangs me up almost every time. I'd post a screenshot but need more reputation. | I have updated my pivotal token on the github service hooks.But the commits are not retrieving on my pivotal tracker page | Integration of pivotal on github not works |
It looks like this line might be overwriting yournode_modulesdirectory:# Bundle app source
COPY . .If you rannpm installon your host machine before runningdocker buildto create the image, you have anode_modulesdirectory on your host machine that is being copied into your container.What I like to do to address this prob... | I am building a set of connected node services using docker-compose and can't figure out the best way to handle node modules. Here's what should happen in a perfect world:Full install of node_modules in each container happens on initial build via each service's DockerfileNode modules are cached after the initial load ... | Handling node modules with docker-compose |
You caninsert this rule just belowRewriteBaseline:# send any request containing multiple / to 404
RewriteCond %{THE_REQUEST} //
RewriteRule ^ - [L,R=404] | This is my URL structurehttp://example.com/filename-.html.htaccessRewriteEngine on
RewriteBase /
RewriteRule ^filename-([0-9]+)\.html$ filename.php?id=$1 [L]
RewriteRule ^(.*)\.html$ $1.php [L]
ErrorDocument 404 /404.htmlissue is that if there is a wrong url it doesn't go to 404 error pageExample wrong urlshttp:///ex... | .htaccess show 404 error if url has extra slashes |
Setting an instance variable directly, as mipadi says, does not release the object it refers to. What you're doing here is different, though: you're setting the value of object's property. Depending on how that property is declared, that may indeed be releasing the value it refers to. A property declaredretainorcopy, r... | In my root view controller, in my didReceiveMemoryWarning method, I go through a couple data structures (which I keep in a global singleton called DataManager), and ditch the heaviest things I've got--one or maybe two images associated with possibly twenty or thirty or more data records.Right now I'm going through and ... | release vs setting-to-nil to free memory |
16
(Answer added on behalf of the OP).
Just click on the project and select the other settings from the left hand panel at the bottom. (Note: the usual settings available on the right top corner of the page will not be visible since the project is broken due to a bug in imp... |
I was importing a Gitlab project from another repository to this new one, but for three days I see a message "Import in progress" and it never ends. I am not able to find any options to delete this repo as well. Has anyone come across a similar situation and knows how to delete this repo?
| A Gitlab "import in progress" never ends |
The LTS version of SonarQube comes with the versions of the analyzers that were current when the base version was released.In your case, that means that your download of 5.6.6 included SonarJava 3.13.1, which was the current version when 5.6 was released. Analyzer versions are not bumped up with point releases because ... | I freshly installed the newest version of Sonarqube and ran the inspection. I got warnings regarding squid:S2095 (closing of streams) which are false positives and which should be fixed with version 3.14 of SonarJava (seehttps://jira.sonarsource.com/browse/SONARJAVA-1478). | Still facing squid:S2095 in Sonar / How to upgrade SonarJava in Sonarqube |
Double-click on your Tomcat service under the Servers tab, and click on the "Open launch configuration" to open the Tomcat launch configuration window. Then, in their change your VM args (different from default VM args).
EDIT: If you are running a JAR from a Junit Test, you will need to change the VM Arguments in the ... |
I have a library (vraptor-test) that does unit testing at my webservices in my maven project. In onder to run these tests, this library starts an embedded Tomcat.
Tomcat tomcat = new Tomcat();
I have checked the dependency tree, and the list below representss tomcat related jars added to my project by the test library... | OutOfMemoryError: PermGen space when starting an embedded Tomcat |
So that it might assist others in future, I am publishing my finding(s) here:1) This 504 0 HTTP errors were mainly because of logrotate reloading apache instead of graceful restart.
The current AWS config does the following/sbin/service httpd reload > /dev/null 2>/dev/null || trueso replace the service command with eit... | I have a service which is deployed on Amazon Web Services (AWS), specifically 2 instances behind an Elastic Load Balancer (ELB). Availability zones are selected as all three us-west-2a,b,c
but only 2 of the above 3 zones have instances running in it.The issues is that even though the traffic/load is not too high but I... | HTTP 504 errors returned by ELB even when hosts are healthy and able to serve request |
Another thing to note is that the choice of output terminal can have a tremendous effect on the memory consumption: interactive windows or vector formats will consume much more (I guess because these formats keep track of every single data-point, even though, as stressed by Peaceful, you probably don't need all those ... |
I am working on drawing graphs with Gnuplot.
The thing is as it works on, due to high memeory usage, it does not work properly, or be killed in a few minutes.
My laptops memory is 4GB. And the file size if around 1GB to 1.5 GB.
Actually, I am a beginner of C language and gnuplotting. What I cannot understand is that w... | Gnuplot out of memory |
For completeness, a better way might be to avoid the loop and make use of .replaces ability to take a callback function:
var data = {
star: "https://assets-cdn.github.com/images/icons/emoji/unicode/2b50.png?v7"
};
var pattern = new RegExp(Object.keys(data).join('|'), 'g');
var x = string.replace(pattern, function(m... |
I'm working on Emoji system based on JavaScript & Github Emoji icons , I use a function to trigger typing event, that's my code
function myFunction() {
var y = document.getElementById("myInput").value;
var x = y.replace(/plus/g,'<img width="25" src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f... | Access object property name with for loop |
First, what GitHub shows is only an interface, and it is not Git's interface. So please try this:git fetchand now just saygit log --oneline --graph --decorateand see what actually happened.Ifnowyou see that there really is only one parent of this commit, that shows that this was never a merge commit to begin with: GitH... | I am curious about how merging is done to the git repository on GitHub. When I visit the commits page, I only see the "first-parent" commit as you would see usinggit log --first-parent.Where as on my own repo, which I perform the merge withgit merge --log --no-ff branch_namealways show both the merge commit and the com... | How to achieve "first-parent" merge in git? |
You don't need to explicitly set environment variable with pod name, its already present inside pod as an environment variable calledHOSTNAME.For example$ kubectl run nginx --image=nginx
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectlrun --generator=run-pod/... | I know that I can define something like this to get the pod name in my containers:env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.nameBut when I run:$kubectl get podsI have a different result, something like:uipod-5d6795db87-cxxkgwhich corresponds to<replicatset name>-cxxkg.Is it possible t... | Kubernetes get the full pod name as environment variable |
It appears you are victim ofthis Jenkins bug: when using a JRE installed at a path that includes parentheses, Jenkins (on Windows) tries to execute an invalid command.Workaround: install the JDK elsewhere, and use that one in your Job configuration (or Jenkins itself). | I followed the SonarQube Jenkins integration tutorial from SonarQube official website. I am getting an error after building my project.[RetailerWebsite_releaseTestCodeDx] $ "C:\Program Files (x86)\Jenkins2\tools\hudson.plugins.sonar.SonarRunnerInstallation\My_scanner\bin\sonar-scanner.bat" "SonarQube Scanner" -e -Dsona... | Getting an error while integrating SonarQube with Jenkins |
After a long wait, the issue got resolved. There is nothing to do with the EAR. The SSL encryption was enabled in SQL server settings. Just disable the settings did let me establish connection from application to the SQL server.ShareFolloweditedOct 11, 2016 at 21:10answeredOct 5, 2016 at 19:59MKPMKP6755 bronze badgesAd... | My requirement is simple: I have an appserver - WAS 6.1 connecting to Microsoft SQL Server 2008 R2.I have configured data source for the SQL server using the installation scripts in linux.When I deployed EAR and try to hit application url, I get the below error while connecting to SQL Server.com.ibm.websphere.ce.cm.Sta... | SQL Server Exception |
1
It seems like you are giving absolute path to the model folder (starting with '/') rather than relative path.
Why don't you try
download_model_binary.py models/bvlc_reference_caffenet
BTW, this should download AlexNet and not GoogLeNet.
Share
... |
I am trying to download via command line the Caffe implementation of AlexNet (found here: https://github.com/BVLC/caffe/tree/master/models/bvlc_alexnet) using the following script:
python /scripts/download_model_binary.py /models/bvlc_reference_caffenet/
but I get the error:
download_model_binary.py: error: argumen... | Download BAIR-trained Caffe Model Using Script |
I had same issue, it was because of "dark mode extension" on google chrome. It was ok on firefox, but chrome not. I suggest to disable dark mode extension on chrome when using jenkins.ShareFollowansweredMar 1, 2022 at 14:30AdemAdem2144 bronze badgesAdd a comment| | I was using Jenkins for a while and everything was working perfectly fine. But two or three days back i need to change some configuration for one of my project and when i hit apply button after performing those change. This error screen appears. Even i don't change anything and click apply button same error screen pops... | Jenkins apply button pops up blank error page |
Use user-data scripts, which work on a lot of public images including Amazon's. You could have it download puppet manifests/templates/files and run directly. Search for master less puppet.
|
I have realized that I have to make Image from EBS Volume everytime when I change my code
and following autoscaling configuration everytime (this is really bad).
I have heard that some people try to load their newest code from github or some similar sort of doing.
So that they can let server to have newest code automa... | Amazon EC2 Auto Scaling in production |
CI variables should be available in gitlab-runner(machine or container) as environment variables, they are either predefined and populated by Gitlab like the list of predefined variableshere, or added by you in the settings of the repository or the gitlab groupSettings > CI/CD > Add Variable.After adding variables you ... | I'm quite new to CI/CD and basically I'm trying to add this job to Gitlab CI/CD that will run through the repo looking for secret leaks. It requires some API key to be passed there. I was able to directly insert this key into .gitlab-ci.yml and it worked as it was supposed to - failing the job and showing that this hap... | Can I pass a variable from .env file into .gitlab-ci.yml |
You can make a snapshot of your memory with_CrtMemCheckpoint()at any point, then you can compare two snapshots with_CrtMemDifference().
Please seehttps://learn.microsoft.com/en-us/visualstudio/debugger/finding-memory-leaks-using-the-crt-library?view=vs-2019for details.ShareFollowansweredNov 14, 2019 at 19:10Vlad Feinst... | I'm working on an Application in this Environment: Windows, Native, 32 Bit, Built with Visual Studio C++ and MFC, several Com-Dlls, ActiveX-Controls, libs.
When My App is running I see in the Windows-Taskmanager that its slowly but constantly consuming memory (about 10Kb per minute or about 1K per 10 "working-cycles" o... | How to find memory consumption of VC++/MFC-App |
1
Another way to do it is via CloudFlare, which will provide a free HTTPS proxying layer in front of your website. You don't need to set up certificates locally, CloudFlare will automatically obtain them for your domain.
Share
Follow
... |
I simply code a node server with koa, I can start it with npm start and visit it through localhost:3000 for example.
Now I want to visit it through https://www.test.com. I use Nginx for reverse proxy, and now I can visit it through www.test.com. But how can I visit it through https://www.test.com?
Please give me som... | How can I visit my node server via https? |
Yes, ClientRequest Latency metric is on node level. The reason you only have 100 writes per second there means that this node is getting very few client requests.The table level is for all nodes in the cluster, meaning all your nodes together are doing 5000 writes to this table.You find out if you have any hotspots (me... | We are attempting to use Prometheus to manage Cassandra cluster (v2.1.x) in my organization. I have a question related to Read or Write latency metrics.For a node level read or write latency, the metric that I am using is -
org.apache.cassandra.metrics<type=(ClientRequest), scope=(Read|Write), name=(Latency)><>(OneMin... | Cassandra Read or Write latency JMX metric |
I've used the cron/wget solution and it's actually a reasonable way to solve the problem. Your system administrators will appreciate being able to control it.Another solution is to use a JVM system property to indicate which of your instances is the one that runs the jobs. For example:-DschedulerEnabled=true. Only s... | We are hosting our website in AWS. We currently have 3 EC2 instances in one cluster, using the AWS load balancer.The servers have linux, apache, java, mysql, and tomcat 6.0.We are making a decision on how to set up a task to run every hour. The obvious place to do this is in the Java code, but there is one problem.The ... | How to set up a CRON Task to only run once per set of instances? |
1
You can do it like this:
String path = "/yourFolder";
String[] chmod = { "su", "-c","chmod 777 "+path };
try {
Runtime.getRuntime().exec(chmod);
} catch (IOException e) {
e.printStackTrace();
}
Share
Improve this answer
Foll... |
I make an application to backup & restore app and data with roottools.
I backup folder data/data/com.example.anotherapp to sdcard. Now, I uninstall/reinstall and copy folder com.example.anotherapp to data/data/ but app can't run.
How to chmod folder com.example.anotherapp?
public static boolean restoreDatabase(Con... | How to chmod folder data/data/com.example.anotherapp |
In short,yes. IE doesn't obey normally caching rules, but jQuery can add this parameter automatically for you as well, just usethecache: falseoptionlike this:$.ajax({
type: "GET",
url: url,
cache: false,
data: {
sort_by:$('#componentSortOrder input:hidden').val(),
... | Please see the jQuery code below, it used to paginate some search resultspaginate: function() {
$("#wishlistPage .results").html("<div id='snakeSpinner'><img src='"+BASE_URL+"images/snake.gif' title='Loading' alt='...'/></div>");
var url = BASE_URL+"wishlist/wishlist_paginated/";
$.ajax({
... | Does jquery require timestamp on GET Calls in IE7? |
compile 'com.github.castorflex.smoothprogressbar:library:x.x.x'It works because this library is published inCentral Maven.compile 'github.com:myprojects:myrepo'This obviously isn't how it works though since I get "Failed to resolve >com.github:myprojects:myrepoIt is not enough to push on github.
You have to publish you... | Let's pretend that I have a github repository at github.com/myprojects/myrepoLet's also pretend that I have a project in IntelliJ with a build.gradle file that contains the following:dependencies {
// android
compile 'com.android.support:appcompat-v7:21.0.0'
// google play services
compile 'com.google.a... | How to compile from a github repository from Intellij in the build.gradle file? |
You probably mean the peering connection id. Once you know it you can modify the routing tables.
In typescript, you get it this way
import ec2 = require("@aws-cdk/aws-ec2");
....
const vpc_peering = new ec2.CfnVPCPeeringConnection (...)
const vpc_peering_id = vpc_peering.ref
|
I created 2 VPCs using aws-cdk. cdk is creating route tables dynamically when cloudformation stack is created. I created a peering connection between the two VPCs I created using CfnVPCPeeringConnection but I am not sure how to add route to vpc peering connection as I do not know what would be the RouteTableId.
| VPC Peering via aws-cdk |
3
Add a new service
dep:
image: elgalu/selenium
command: echo 0
restart: "no" # ensures it does not get recreated
Add this to Zalenium
depends_on:
- selenium
- dep # ensures pull/launch order
Share
Follow
... |
I have the following docker-compose.yml file. When I run this I get the message "Please run 'docker pull elgalu/selenium', or use your own compatible image via --seleniumImageName". If I pull the image, my tests run fine. how can I pull the image automatically when I run the compose file, instead of manually pulling t... | Automatically pull dependent image when running Zalenium from docker-compose.yml |
If you are executing the same file and getting different output via shell and your browser, it's most likely you have different versions of PHP installed. Which is why you are gettingundefined function mysql_connect()because, you are referencingphp 5.5.0+to run your cronjob.The solution is to first check where php is i... | I want set up a cronjob for php script for every 2minutes in my ubuntu machine for this i have found the below link for reference but i am getting following error and i am not getting it how to resolve this error.Link for reference to set cronjobhttps://askubuntu.com/questions/177971/how-can-i-set-up-a-php-script-to-ru... | How to set cron job for php script in ubuntu |
<div class="s-prose js-post-body" itemprop="text">
<p>The main purpose of Docker Compose is to spin up a set of Docker containers, which will then function as independent entities. By default, all containers will have a virtual network connection to all others, though you can change that if you wish; you will get that ... | <div class="s-prose js-post-body" itemprop="text">
<p>The Dockerfile of my spring-boot app:</p>
<pre><code>FROM openjdk:8-jdk-alpine
VOLUME /tmp
COPY target/media-0.0.1-SNAPSHOT.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
</code></pre>
<p><code>application.yml</code></p>
<pre><code>spring:
datasource:
url... | Spring Docker container cannot access Postgres Docker container |
Place this rule in yourGallery2/.htaccessbefore any other rewrite ruleRewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule ^v/South/Actress/Ritu\+Kaur\+Actress\+Photos/?$ http://www.indiancinemagallery.com/gallery/ritu-kaur.html [R=301,L,NC] | I would like to 301 redirect the following URLwww.domain.com/Gallery2/v/South/Actress/Ritu+Kaur+Actress+Photostowww.domain.com/gallery/ritu-kaur.htmlI tried the following, but not worked,RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^Gallery2\/v\/South\/Actress\/Rit... | 301 Redirect Not Working with "+" Sign |
you can start another container to backup the folders first.Suppose the ldap container namedldap, it has two volumes:/var/lib/ldap & /etc/ldap, with below command, you can backup them easily.docker run --volumes-from ldap -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /var/lib/ldap /etc/ldapIf you need input som... | I want to have a LDAP server on a docker container, I already useddinkel/openldap,osixia/openldapandmuzili/ldapdocker images and so far connection and first configuration is ok.My problem is: although I mounted container's /var/lib/ldap & /etc/ldap, there is always a backup needed before stoping, killing or removing(sa... | How to load LDAP docker container data on startup |
that's not possible using.htaccess, you should use one of web programing languages likephpto achieve what you want! | I know, i should have been setting it up differently, but over the past year ive been creating posts on my blog and direct linking to an affiliate site with my affiliate link.Now the site isnt converting as great and I want to try and change the destination to another program without having to manually go through each ... | How can I redirect direct linked affiliate links on my site? |
The metrics are indeed reported from two sources, once from the request sender and another time from the request receiver. This is a bit redundant, but in some situations the values differ and especially for requests duration: from request sender (reporter=source), the duration stands for the whole request latency (ser... | I have deployed the Istio Bookinfo application in a Kubernetes cluster. Following the documentation, I'm trying to measure the average request duration using the following query:rate(istio_request_duration_milliseconds_sum[1m]) / rate(istio_request_duration_milliseconds_count[1m])This query returns me "doubled" results... | Average request duration using Prometheus |
V2 accounts of Now.sh doesn't support Docker deployments.ShareFollowansweredAug 3, 2019 at 11:58FisfatFisfat1111 bronze badgeAdd a comment| | I'm trying to build and deploy a project from GitHub (thefollowing) using ZEIT Now hosting service usingdocker.I followed the instructions in thereadme.mdof the GitHub project and as soon as i get to the fourth step:now --public --docker (you might need to login once)I get the following error:"> Error! Unknown or unexp... | How to fix the error unknown unexpected option: --docker? |
I would first validate if you can pull assets that are not on your server and then cache them? I am thinking you might be blurring the lines between browser caching and HTML 5 application caching?I would also make sure you are not using Internet Explorer as it doesn't support offline Caching.The Cache manifest should a... | Im using HTML5 offline storageMy Index.html page<!DOCTYPE html>
<html lang="en" manifest="/offline-cache.manifest">
<head>
<meta charset="utf-8">
<title>HTML5 offline code demo</title>
</head>
<body>
<div id="content">
<img src="http://increaserss.com/wp-content/uploads/flickr-rss.jpg" alt="im... | HTML5 offline data storage |
Your idea of a large amount of ESI blocks is not a very good one with varnish. The reason is that ESI requests are never issued in parallel. It's a coming feature and I think the release of 4.0 made it a lot closer, but it's not there.A better solution would probably be to tag your pages according to the user user ids ... | We have a lot of very small blocks that we want to include with an ESI in an Symfony2 application. To be concrete, it is about rating stars that get displayed in a list of products and about an user avatar and rank which gets displayed in a list of comments.
So we talk about very small pieces of information for list i... | Is caching using Edge Side Includes a good practice for a lot of small blocks? |
You must use the full path to your .htpasswd file.Create a .php file in the same folder, containing the following code :<?php
echo dirname(__FILE__) . '/.htpasswd';
?>Then access it via your browser and it should display the full path you'll need to put in your .htaccess file. | My .htpasswd file is in 'www' folder in wamp. My .htaccess file is also in same 'www' folder.I want to set path for .htpasswd in .htaccess file. How to set path in AuthUserFileAuthName "Restricted Area"
AuthType Basic
AuthUserFile www/.htpasswd **path incorrect
AuthGroupFile /dev/null
require valid-user | .htpasswd path in .htaccess file |
You are instantiating as CarAds objects as your $array_with_items item count. Each one allocate memory.
After the save() method you should deallocate the object with the unset() function:
// Saves to the database
$obj_car->save;
// Unset unneeded object
unset($obj_car);
You can check your memory consumption with the... |
I'm developing a PHP script that loops/iterates more that 10,000 times:
foreach ($array_with_items as $item) {
// Instantiate the object
$obj_car = new CarAds($puk, 'ENG', '5');
$obj_car->detail1 = "Info about detail1";
$obj_car->detail2 = "Info about detail2";
$obj_car->detail3 = "Info about det... | Why does a foreach loop which iterates more than 10,000 times run out of memory? |
First thing if you are using Beanstalk your Route 53 will be pointing to your Beanstalk Url only. You can change even force it your Loadblancer also but it doesn't make any change.As your HTTPS (Port 443) is not working, just check theSecurity GroupofEC2 instanceandELB (Elastic Load Balancer). Sometimes it happens Secu... | I am really struggling to get my basic website (literally just a template without any changes, just running ASP.NET) to work with HTTPS. I am using an Elastic Beanstalk environment to host the site, and the site EC2 virtual machine is behind a load balancer (classic).I have followed the guidehereAnd believe I have ever... | How to get HTTPS to work on a website - specifically an Elastic Beanstalk site in AWS |
Well, I've solved my problem, but it's hard to say if this fix was actually the problem in the first place.
In the read method, I changed the follow:
return $rel->fetch(PDO::FETCH_ASSOC)['session_data'];
to
$data $rel->fetch(PDO::FETCH_ASSOC)['session_data'];
return $data;
After this the session was writing $sessi... |
I'm creating my own custom SessionHandler to store my session information in a postgresql 9.3 database and I'm having a problem where the session data passed to the write() method isn't being written to the database, but the session name is??
Things that I know for a fact
My custom class is handling the sessions when... | Custom PHP SessionHandler class Write issue |
Depending on media usage frequency you can useS3 life cyclesto transfer files into low cost storage. For example, you can initially use S3 standard to serve files and then transfer them into S3 IA storage class followed by transferring to Glacier (Files which will not being used regularly). And if you are using reprodu... | I am in the process of building a web based application (Django, Angular on AWS). The application will be media heavy as in users will be uploading lots of images, videos and recordings.Currently we are storing these in S3. Any thoughts on the best approach to
1. Minimize storage
2. Reduce data transfer
3. Not drastic... | Media optimisation - AWS web app |
4
With 4 KB pages, the last 12 bits are the offset into the page. That leaves 20 bits for a 32 bit address. These 20 bits are used as an index into the page tables, not an offset. By splitting them evenly between the 2 levels, the tables are both the same size. The first ta... |
Hi,
In order to use large size page table hierarichal paging is done .
In case of two level page table scheme . for :
logical address space - 32bit - 2^32
page size - 4kb i.e 2^12
In one level :
page number - 20bit calculated as (32 - 12)
page offset - 12 bit
Now, In two level :
again, page number - 20bit i... | How is the logical address divided in case of multilevel page table |
Is it really thesavingof the file that is the problem? I find it hard to imagine, seeing as that isn't Apache's jurisdiction at atll. Isn't it rather the query being in a query string that is causing trouble?You might be able to circumventthate.g. by base64 encoding the query (if the 33% size increase doesn't test the ... | I get a 500 Internal Server Error when trying to save a file with some text that may resemble an sql query. So ModSecurity is blocking it:[client xxx.xxx.xxx.xxx] ModSecurity: Access denied with code 500 (phase 2). Pattern match "(insert[[:space:]]+into.+values|select.*from.+[a-z|A-Z|0-9]|select.+from|bulk[[:space:]]+i... | Removing modsecurity rule via .htaccess |
You can setup acustom clock processon heroku. The docs are pretty terrible, here's a rough guide.Create aclock.jsfile and set it up as you would your cron file. Thecronnpm package is nice.Create aProcfileand just add the lineclock: node clock.jsto it, nothing else.Deploy your app to heroku.On your app dashboard, change... | I have a node app running on Heroku. I want my dyno to be active one day a month (all the day).
I have read the Heroku scheduler doc but it does not seems to allow that kind of job.Is there a way to let my paid dyno active only one day a month automatically ? (first day of the month)Thanks you | Limit Heroku dyno one day a month |
Using node label you can start the container in matching nodes. for this first you need set the node label and update the deployment file and apply it.Here is the sample yml file I used for blue green deployment, see this help.web server running on node labeled webapiVersion: extensions/v1beta1
kind: Deployment
metadat... | So, I am writing a custom auto-rescheduler for my clusters and I am using Python Client library to do so. As the rescheduler is still in proposal and nothing has been done for it, the only known way is to delete the pod from overused node and let the replication controller and scheduler take care of the rest (make a ne... | Re Scheduling pods from one node to another |
I'll try the 'soft-upgrade' way described in the documentation but do you think this will work?
I don't know enough about GEOS to say for sure, but it sounds like a good thing to try. From the docs you linked to:
If a soft upgrade is not possible the script will abort and you will be warned about HARD UPGRADE being... |
Current situation:
Ubuntu 8.04 server edition (live server)
Postgresql 8.3.7 (from standard repositories)
Postgis 1.3.3 (from standard repositories)
GEOS 2.3.4 (from standard repositories)
Problem:
GEOS contains bugs which are fixed in the 3.0 release.
I have encountered these and need to upgrade GEOS/Postgis to... | postgresql/postgis backup strategy to restore after geos/postgis recompile? |
inname = "serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"you want to define 3 groups, that are separated by dots:serviceAccount->annotations->eks.amazonaws.com/role-arnSince your third group happens to contain dots, you successfully found out that you must escape the dot characters in order to preserve prop... | Currently struggling writing a Terraform module to deploy a Helm chart, I was getting:│ Error: YAML parse error on external-dns/templates/serviceaccount.yaml: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal object into Go struct field .metadata.annotations of type stringwith a resource definition l... | Why are the double slash in this parameter definition on Terraform required? |
Nginx open source version supports thehashdirective that may work similarly (not exactly the same though) to the sticky session mechanism provided by commercial version:The generic hash method: the server to which a request is sent is
determined from a user-defined key which may be a text, variable, or
their combin... | I'm currently running two back end servers on my network and load balancing with Nginx on Windows.I am load testing the system at the moment however all of my traffic is directed at one server. This is because the ip_hash algorithm sorts traffics by the first 3 octets i.e. 111.222.333.XXXThis is a problem because all o... | Patching Nginx to ip_hash 4 octets instead of 3 |
I'm not surecronis suitable for this kind of job. But basically you can achieve the same behavior with a basic while loop and a promise to await.function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function BotVote() {
await new Promise(r => setTimeout(() => {
console.log("votin... | I have to run an async function written with Puppeteer (it's a bot) and I want to run that function every 60 seconds. The issue is that the async function (bot) runs for 2 min and so node cron automatically executes another async function which leads to 2 bot and 5s later it will launch another instance of this functio... | Async Functions with Node Cron |
2
If none of the steps proposed in Codex helped, then it is very likely that there's some kind of locking happening. These locks may appear when installing/upgrading is not done in the proposed manner. Restarting Apache and MySQL should delete these locks.
If the problem ... |
For some reason my Wordpress installation has just started saying "Error - connection timed out" recently and I can't get a single page to load. At first I thought it was my local MAMP server that was having problems, but now I'm starting to think it is a problem with my Wordpress installation.
I tried the three most ... | Wordpress won't load (connection timed out) |
This has been answered for the general casehereIn summary, python's file object is already a generator and defined as a memory efficient way of reading a file line by line (seehere):f_out = open(r"C:\Users\jarze\out_file.csv","w")
with open(r"C:\Users\jarze\in_file.csv", "r") as f_in:
'''
As Tomerikoo indicat... | I am a beginner and have problem with MemoryError on my code. The csv file is big (1,5gb) and I want to find and replace every"char with blank space. Code is working on smaller file but on this its return MemoryError. I found here that I could use Garbage Colector and was trying to make it but failed. How can i solve t... | How to deal with MemoryError when trying to make find and replace on a big csv file? |
Assuming you're working in <dir1>:
Clone the repository in another directory:
cd ../
git clone <url> <dir2>
Move the .git directory to where you were working on and then clean up the cloned copy:
mv <dir2>/.git <dir1>
rm -rf <dir2>
Any changes you have made will show up with git status.
|
I accidentally started working upon a downloaded archive of my repository instead of the Git clone and I realised this only after already making changes.
How can I commit these changes to my original repository?
| Github : Accidentally started working upon the `Downloaded` zip of the repository instead of the `clone` |
From CreatePolicy documentation:
Description: A friendly description of the policy.
The policy description is immutable. After a value is assigned, it cannot be changed.
Therefore, you'll need to delete it and recreate it to modify the Description.
|
I have a custom policy in AWS IAM. I would like to change its description, not its name. How can I do that?
I've tried editing the policy, but that only changes how it works (e.g., assigning privileges). I don't see how to change the description.
| How to change the description of custom AWS IAM policy? |
They are taken from memory, since the web.config is read only once when the application starts.However, ASP.NET monitors the web.config file to detect and load changesIt is important to realize that the entire section is read, parsed, and cached the first time we retrieve a setting value. From that point forward, all ... | I am using ConfigurationManager.AppSettings collection to retreive configuration values from a Web.config file in an ASP.NET application. Does anyone know if values in AppSettings get cached in memory somehow or if a file read of Web.config occurs every time when retrieving a setting?string someValue = ConfigurationMan... | ASP.NET Web.Config ConfigurationManager.AppSettings File Caching |
Before this checkout the branch what your colleagues use
git checkout [branch]
If all of you use master branch, skip this step.
And pull only one branch (and merge vith your local branch) Use this:
git pull [repo] [branch]
For example:
git pull origin master
If you want only download the changes and after want ... |
I am working on a local branch, and a team member has made made some changes to that branch. How do I "pull/fetch" their changes, to my local branch?
I do not want to pull the entire repo, just this branch.
| Pulling from a remote branch to a local branch |
I ended up figuring it out. So it turns out to be a configuration error with nginx. I configured my EC2 instance usingthis guide. In order to fix nginx, I first logged into my cluster and opened this file:sudo vi /etc/nginx/sites-available/defaultI then added theproxy_buffer_size 8k;line to theserverblock of the config... | I am using meteor with theBrowerPolicypackage andMeteor Upwith theabernix/meteord:basedocker imageto deploy my app to a EC2 instance. I use HTTPS using nginx all on the same server. The trouble comes when I allow connections to an AWS S3 bucket using the following line:BrowserPolicy.content.allowOriginForAll('*.s3-us-w... | 502 gateway error with meteor, browser policy, HTTP connecting to S3 |
I don't know the internals of Apple's code but I would guess NSData's initWithContents of URL uses NSURLConnection internally. Memory usage differences will be negligible.
Using the asynchronous apis of NSURLConnection would allow you to be more memory efficient by handling data as it came in but (without knowing what... |
I want to get an NSData object's contents from a URL. What is the more efficient way of doing this in terms of memory usage dataWithContentsOfURL (or initWithContentsOfURL) or using NSURLConnection?
Should I use
NSData *data = [[NSData alloc] initWithContentsOfURL:myURL]
or
NSData *data = [NSURLConnection sendSynchro... | NSData - Which is better in terms of memory usage: initWithContentsOfURL or NSURLConnection |
git pullThis is the equivalent of svn checkout, not to be confused with git checkout. Typegit helpto get a list of git commands and an explanation in the shell. | I have commit code from my desktop computer and now I am in another city and want to update my code in my laptop. What is the command to update a code. I was using svn and it is very easy to update a code like right click on svn local repo and click update but in github I don't know the proper command.Regards, | update code from github |
I found a solution, use this commandscreen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/ttyNow, edit the/etc/hostsin the Docker VM.To exitscreen, useCtrl + a + d. | When I use docker before, I can usedocker-machine ssh defaultto set hosts in docker's machine/etc/hosts, but indocker for macI can't access it's VM because of it don't have it.
So, the problem ishow to set hosts in docker for mac?
My secondary domain wants to point the other ip. | How to set hosts in docker for mac |
I can't comment on the specifics of the AzureDevOps URL.If your intention is to have an exact copy of the old repository, including any remote tracking branches, that looks correct. That's called a "mirror".It can be written more succinctly as...git clone --mirror https://<AzureDevOps_OrgName>@dev.azure.com/<AzureDevOp... | I am working on copying a repository from a source project to destination project in Azure DevOps Services. We will not use the Source repository any more. Going forward all development changes will be done in destination repository .The Git Version I am using isC:\>git --version
git version 2.39.2.windows.1I use the f... | Azure DevOps Git - Copy A Repository From One Project To Another Project |
Since you know the final name and destinations of your certificates, you can generate a self signed certificate, to get nginx going and then run certbot and replace the self-signed to a proper one. The ACME challenge should be resolved over HTTP.
Code to generate a self-signed certificate. Do not worry about much, exc... |
I use letsencrypt/certbot to manage certs for nginx's use. I find that, when setting up servers, I get into a chicken and egg situation: nginx must work to supply the .well-known/acme-challenge directory, but nginx refuses to start if configured ssl certificates don't exist yet.
So far I've gotten around that by manua... | How can I cleanly handle the first use of letsencrypt on an nginx server? |
The problem is that you're listening on the wrong network interface.127.0.0.1indicates that a daemon should listen on theloopbacknetwork interface, which does exactly what it sounds like - when traffic is sent to it, it will "loop back" to the same computer instead of being sent over the network. Because you're listeni... | I'm currently running on Centos 7. The command netstat -tulpen shows this:I have run gulp based on the tutorial in mean.io. I run curlhttp://localhost:3000/which works fine. Everything is displayed in the localhost. But when i try to access it via external ip, it is not showing anything. Eg.http://192.168.0.127:3000/. ... | mean.io 127.0.0.1:3000 can't access via external ip |
This is usually caused by another repository pushing hint: to the same ref
If there's already some content at origin/master different from your local version's history, force push by using the --force, -f flag
# caution: this cannot be reverted.
git push origin master -f -u
|
After git cloning my heroku repository, it says I' am on master branch but for some reason I cannot push any changes to github. Usually I would just enter 'git push -u origin master', and that command would push everything to my github private repository for my website.
I recently just cloned my heroku app on my ubunt... | Why can't i push to github after cloning heroku repository |
An ENI (Elastic Network Interface) isnever detachedwhen an instance is Stopped.Every Amazon EC2 instance has aprimary ENIoneth0. This ENI cannot be detached from the instance.It is also possible to createsecondary ENIsand attach them to instances. These stay attached during a Stop and Start, but you can choose to detac... | Does ENI gets detached when we stop and start the EC2 instance which is connected to the VPC in AWS? | Is the ENI detached from an Amazon EC2 instance when it is stopped and started? |
The key to this is theNin CDN,Content Delivery Network.The advantage of a CDN (a good one, at least) is that it'sgeographically distributed. What the big CDN providers do (the ones you mentioned along with others) is have hundreds or thousands of servers in facilities all over the world. This lets what ever resource th... | My understanding of a CDN (like Akamai or Limelight) is that they are heavy-duty caching services.I also understand that they are very expensive. So I'm wondering why I can't just create my own cluster of replicated caching servers (using, say, EhCache or Memcached) for all my web app's caching needs (images, URL hits/... | CDN vs Homegrown Caching |
Have a look at Yahoo! tips: https://developer.yahoo.com/performance/rules.html#expires.
There are also tips by Google: https://developers.google.com/speed/docs/insights/LeverageBrowserCaching
|
Which is the best method to make the browser use cached versions of js files (from the serverside)?
| caching JavaScript files |
I found out that weave needs to be configured usingNO_MASQ_LOCAL=1to respect the externalTrafficPolicy property | Our Kubernetes cluster includes an nginx load balancer that forwards the requests to other pods.However, the nginx sees local source IPs and therefore cannot set the correct X-Real-IP header. I tried setting the externalTrafficPolicy value of nginx to "Local" but the IP does not change.Section of the nginx service conf... | Kubernetes gives an internal source IP although externalTrafficPolicy is set to Local |
Per GitHub's documentation,
GitHub limits the size of files allowed in repositories. To track
files beyond this limit, you can use Git Large File Storage.
You can see in the link above, that the maximum file size is limited based on your GitHub plan.
Furthermore, per this documentation, you are limited to file sizes... |
Im new to github
I have tried uploading small projects to the repo
I used direct drag and drop to upload files and it worked
But when it comes to huge files it just shows up errors
How can i add huge files that is more than 100MB
Can we add a single folder with huge files together at once?(it also contains subfolders... | How to upload a complete Pycharm project folder that contains more than 100MB files |
if your branch can be rewritten on the remote, you could do it like this:
git checkout my-branch
git reset --soft my-branch~4 # set branch pointer 4 revisions behind... put all differences between the 4 revisions on index
git commit -m "The messsage I want"
# if you like the result
git push the-remote my-branch
And t... |
For example i have 10 commit in my current branch, now i want to to turn last 4 commit into one commit... I have pushed all the commit to my remote branch.. now can i make my last 4 commit message into new commit message?
I want to do it, coz, my last 4 commit message was meaningless...
I tried like this:
git rebase -... | Turning some recent git commit into one commit |
I think the most scalable method for you to achieve this is using AWS Elastic Map Reduce and Data pipeline.
The architecture is this way:
You will use Data pipeline to configure S3 as an input data node, then EC2 with pig/hive scripts to do the required processing to send the data to SFTP. Pig is extendable to have a... |
I have a s3 bucket with about 100 gb of small files (in folders).
I have been requested to back this up to a local NAS on a weekly basis.
I have access to a an EC2 instance that is attached to the S3 storage.
My Nas allows me to run an sFTP server.
I also have access to a local server in which I can run a cron job ... | Script to take a S3 bucket, Compress it, push the compressed file to an SFTP server |
6
Amazon lately announced user pools that work as a fully managed authentication provider.
They take care of all the basic logic like user sign up, email verification, password reset, ect. and also provide some more advanced features like multi factor authentication or ph... |
In the course of building an android application I've run into the heavy issue of user management.
I see all over the place services that allow for users to register in my app using google, facebook, amazon, twitter, etc. (Amazon Cognito, Janrain, Google Identity Toolkit).
Ideally I would like to make use of Amazon W... | Simple user registration with Amazon Cognito |
The error means that the AMI's CPU architecture you're using is 64-bit(x86) but you selected 64-bit(Arm) for converting.You can search arm64 type instances in Console -> EC2 -> Instance type. | I am trying to convert t3a.medium to t4g.medium instance getting below error.'t4g.medium' is not a valid instance type for instance 'i-xxxxxxxxxxxxxxxx' of architecture 'x86_64'Is there any way to find the right instance type? I did some research but not found anything related, no reply from the AWS support form.I want... | Converting t3a.medium to t4g.medium EC2 Instance |
It seems that script withtype="module"does not fetch the javascript file with the required credentials data to authenticate the user by the server.Therefore you getHTTP/1.1 401 Authorization RequiredTo solve this issue, You can addcrossoriginattribute to the script tag:<script type="module" crossorigin src="./js/mymodu... | When I run the following JavasScript, I can successfully log in but not access the modules. How can I pass the authentication to them?Sample Code<DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script type="module">
import * as mymodule from "./js/mymodule.js";
mymodule.ru... | Javascript ES6 modules not passing along .htaccess basic authentication |
1
Just change your web url to local path url...
Try this code...
NSBundle *bundle = [NSBundle mainBundle];
NSString *moviePath = [bundle pathForResource:@"Movie" ofType:@"m4v"];
NSURL *movieURL = [[NSURL fileURLWithPath:moviePath] retain];
MPMoviePlayerController *theMo... |
I am developing an iPhone application in which I will store stream video from URL directly to cache in local, now I need to play video in movie-player while it was in downloading in cache. I followed this http://lists.apple.com/archives/cocoa-dev/2011/Jun/msg00844.html, but I couldn't do exact. I am able to download v... | Play video from cache in iphone programmatically |
Have this rule in yourDOCUMENT_ROOT/.htaccess:RewriteEngine On
RewriteRule ^$ /wordpress/ [L,R=301] | When I use the following url "http://www.tuto3d.netai.net/wordpress/" in my navigator I access normally my wordpress site but when I usehttp://www.tuto3d.netai.net/I get the index of folder instead and a link to wordpress folder. I want to redirect in my .htaccess thehttp://www.tuto3d.netai.net/to the "http://www.tuto3... | Index of folder in wordpress .htaccess |
EBS devices are block devices.
This means the service does not know how much data you actually store on them -- it only knows how much storage space you allocated. So, the results of df -h don't matter. The actual size of the volume is all that matters -- that's the basis for billing. The rest of the space (that sp... |
I am fairly new with AWS(just have a free AWS EC2 instance to test out AWS stuff) so the question might sound silly.
Today I got a mail that my Amazon Elastic Block Storeage has reached 85% usage on my free AWS account which is about 25 GB of the allocated 30 GB.
From what I read today, Amazon EBS is a persistent stor... | Amazon Elastic Block Store and EC2 drive |
You can't. The ClusterIP Service address is inside the Kubernetes private network, the address is inaccessible from outside the cluster, and the specific address is automatically assigned. (None of this is specific to EKS, this is true of pretty much all Kubernetes installations.)Correspondingly, any environment wher... | On EKS, I can see the kubernetes service exposing the following address:NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 172.20.0.1 10.19.2.227,10.19.1.145I want to find ... | Changing EKS cluster k8s API private endpoint |
I don't believe there is any limitation that would prevent you from sending the message to the deal-letter-queue by yourself.So just read the message from the Q, if you know it needs to go to the DLQ directly, send it to the DLQ and remove it from the regular Q. | So I am building a small application that uses SQS. I have a simple handler process that determines if a given message is considered processed, marked for retry (to be re-queued) or is not able to be processed (should be sent to dead letter).However based on the docs it would appear the only way to truly send a message... | AWS SQS Boto3 sending messages to dead letter manually |
After trying to solve it from within IntelliJ a few times by removing the Github account and adding it again (with an access token), I finally found a way to make it work. This solution only applies to Mac OSx.Remove the Github account from IntelliJ Preferences.Open the Keychain Access system app.Select "All items" and... | When trying to push to Github from IntelliJ, it keeps saying that password authentication was removed on august 13 2021, and that I should use an access token.I have added an access token by going to Preferences / Version Control / Github, but it still keeps giving me the same error. It's as if IntelliJ stored a passwo... | Can't push to Github from IntelliJ, even after adding access token |
32
In general this is not possible, Github (pages) serves only static content (ex: HTML, CSS, JS). If you want python to run (ex generate dynamic content) you need a web server capable of running python (your browser were the contents of GitHub Pages get downloaded and run ... |
I want to run a python file in the web I have in a GitHub repository. Is it possible to do this?
And by running in the web, I mean putting #!/usr/bin/python and print 'Content-type:text/html\n in the first two lines.
| Is it possible to run python in the web with github.io? |
Thetimevalue should be given as mentioned below:-"time": {
ComparisonOperator: aws.String("BETWEEN"),
AttributeValueList: []*dynamodb.AttributeValue{
{
N: aws.String("10"),
},
{
N: aws... | I am using aws-sdk-go for dynamodb. I need to collect some items from my DB. The filtering conditions aredeviceid: xyz, time >= 10andtime <= 20.timeis the sort key for my db anddeviceidis the primary key. I understand I have to useBETWEENfor achieving my goal. My Implementations are not successful and as follows:var q... | How to use "BETWEEN" in aws-sdk-go Dynamodb QueryInput? |
The purpose of that security property is to speed up tomcat startup. By default the library used to generate random number in JVM on Unix systems relies on /dev/random. On docker containers there isn't enough entropy to support /dev/random. See Not enough entropy to support /dev/random in docker containers running in ... |
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
The above Dockerfile sample is from the official Spring Boot guide for docker. I would like to know what the security property is used for since I don't usually s... | What exactly does "-Djava.security.egd=file:/dev/./urandom" do when containerizing a Spring Boot application |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.