Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
I deleted the lambda function, IAM role, custom authorizer from API Gateway.
Recreated all the above with the same settings and published the API. It started working and logging as expected. I do not know what was preventing earlier to log to cloud watch logs. Weird!! | How do get logging from custom authorizer lambda function in API Gateway?
I do not want to enable logging for API. I need logging from authorizer lambda function. I use a python lambda function and have prints in the code. I want to view the prints inCloud Watchlogs. But logs are not seen in cloud watch. I do not get e... | AWS API Gateway Custom Authorizer log |
This error is stating that everything is running correctly, however in order to access the replica sets you need to first authenticate (you told it to use auth in your--setvalues withauth.enabled=true). To authenticate you need to tell mongo to use admin privileges and log in with the username and password you set up:u... | I created a cluster in google cloud, deployed mongodb using help:helm install my-release \
--set auth.rootPassword=password,auth.databases[0]="database",auth.usernames[0]="root",architecture=replicaset,auth.replicaSetKey="keykfjhewq",auth.enabled=true \
bitnami/mongodbAll is up, but when I exec into the pods an... | deploy mongodb with helm : " command replSetGetStatus requires authentication"? |
8
+25
Your question has two parts:
First, the API Gateway using Cognito to authenticate your client;
Second, assuming you are using an EC2 running Node.JS with Socket.IO using API Gateway as an endpoint for your clients.
For the First p... |
I want to map an API Gateway endpoint with a Socket.io server endpoint, in order to authenticate users through Cognito and, if successful, redirect to the Socket.io server and establish a socket with optional namespace and rooms.
Is that makes sense? I didn't found any example, and API Gateway has only recently enabl... | AWS API Gateway integration with Socket.io |
I don't think so. One trick would be to do this work in an AppDomain. You could create a new AppDomain, do all of your work, report your results, then unload the AppDomain. Not a trivial task and fairly slow but it is the only way to effectively unload assemblies or reflection related caches (that I know of).
|
Per MSDN, calling Type.GetMethods() stores reflected method information in a MemberInfo cache so the expensive operation doesn't have to be performed again.
I have an application that scans assemblies/types, looking for methods that match a given specification. The problem is that memory consumption increases signifi... | Can the .NET MethodInfo cache be cleared or disabled? |
Right click on the file, go to "Git", and click "+ add". | I am currently coding a project in Android Studio and uploading all my code to GitHub via Android Studio. However, I am having trouble adding an xml file to the commit. When I commit and push, the file does not get pushed. It is glowing red in the file sidebar. How can I commit this file so I can push it to GitHub? | Android Studio adding a file to GitHub |
GitHub as whole guide devoted toworking with forks.In short:you define a new remote repository that points to the original,you fetch and merge from that "upstream" remote repository to keep your repository in sync. | I use Vundle as plug-in manager in Vim and it happens that I want to make modifications to some plug-in to correct bugs or to implement personal changes.What I do in general isfork the original repoedit the.vimrcfile and change the linePlugin 'original-repo'toPlugin 'my-fork', run:so %and then:PluginInstallmake changes... | Manage own fork of Vim plugins with Vundle |
This is currently being resolved by the jquery team. It appears to be a CDN provider issue.https://github.com/jquery/codeorigin.jquery.com/issues/34 | I have a project, that uses jQuery CDN, but now I seeNET::ERR_CERT_COMMON_NAME_INVALIDin Chrome.Trying to get the jquery file using curl I see a strange domain in error message:curl https://code.jquery.com/jquery-3.1.1.js
curl: (51) SSL: certificate subject name (*.ssl.hwcdn.net) does not match target host name 'code.j... | jQuery ssl issues - why do I see hwcdn.net in the response? |
I did find a solution, my problem was with php.ini setting, how lame of me to overlook it.
I fixed it by adding these to the docker entry file.sed -i -e "s/upload_max_filesize = 2M/upload_max_filesize = 64M/g" $PHP_INI_DIR/php.ini
sed -i -e "s/post_max_size = 8M/post_max_size = 64M/g" $PHP_INI_DIR/php.ini
sed -i -e "s/... | I am using laravel + twill inside docker containers with php7.4.3-fpm + nginx. Everything works fine appart from when I am trying to upload images of high resolution. If I upload image of 3000x3000px there are no problem as soon as I try to do the same with higher resolution (4500x4500px) I get the following error,mess... | High resolution image upload fails stream_copy_to_stream(): read of 8192 bytes |
As noted in another answer, hard coding the ARN works. So intuitively, you might think something like this would work:
authorizer:
arn:
Fn::GetAtt: [UserPool, Arn]
Sadly, it does not. It looks like Serverless bumps your arn up against a couple of regular expressions to determine whether you're poi... |
In my serverless.yml, I have a Lambda function and I want to set it's authorizer to a Cognito User Pool that I have declared in the Resources section down below. I've seen examples where the authorizer is set to aws_iam but that seems wrong. Any help would be amazing :)
I'm thinking I need to set the authorizer's ARN ... | Using Serverless, how do you set a Lambda function's authorizer to a Cognito User Pool from the Resources? |
After some time asking on github and travis-ci forums I found that it is a travis-ci issue. To solve it I ended up doing a “hard reset”: revocking all authorizations from GitHub to Travis, then adding them again: GitHub > Settings > Applications > Authorized OAuth Apps revoke Travis CI for Open Source. Then I visited m... | I'm working on a simple app and got a problem with travis builds. I created a branch and a new pull-request with one commit and my build was failed as expected. When I fixed issues, I tried to push more commits and found that travis doesn't react on it. Then I push more commits with the same results - no travis reactio... | Github doesn't display new travis builds near the commits |
1
You need to select Content type: application/json in your webhook in GitHub. Then you would be able to access any variable from the payload GitHub sends as follows: $. pull_request.url for pr url, for example.
Share
Follow
... |
I have configured a Github web hook with the below settings:
Payload URL: https:///github-webhook/
Content Type: application/x-www-form-urlencoded
Events : Pushes, Pull Requests
The Jenkins job that I have, is a pipeline job that has the below enabled:
Build Trigger: GitHub hook trigger for GITScm polling
With the abo... | Unable to get the payload from GitHub web hook trigger in jenkins pipeline |
Having just tried it myself, it does seem you can set up a network load balancer to load balance your databases. My production setup usespatronito manage failover, and patroni provides an HTTP API for health checks. The master returns a 200 response, while the replicas return a 503. This works fine for my use case, ... | We have an application that has multiple postgres databases (that are guaranteed to be in sync) installed on AWS EC2 instances in different availability zones. I would like to abstract them behind a single DNS so that, if one of the EC2 instances crashes, the clients can still access the db. I am wondering if I can use... | load balancing postgres instances via aws network balancer possible? |
All cron files for all users are located at /var/spool/cron. Each user has its own file. Although, editing those files manually will work - its recommended that you will use 'crontab -e' to edit those. | I can't seem to find clear instructions on how crontab works on CentOS. When I (as root) edit my crontab using:crontab -eI see a list of cronjobs. However, when I edit /etc/crontab, nothing is listed there.What is the difference? | CentOS cronjobs location |
First you would need to perform this command :git initthen :git remote add origin REPO_LINKREPO_LINK being the link to your repository.So this command will, "link" your folder to the repository, so when you will commit any changes, it will push the code from the remote (the folder you added the remote to) to the reposi... | Please note that I read most of the suggestion othispage, but there are too many suggestions and I cannot find a proper way for my problem.I created a new repository calleddemo-projecton GitHub and I want to pushdemo-projectthat already on my local disk onD:\projectsfolder. I cloned the repo toD:\projectsdirectory (fir... | Setting user for private GitHub repository without using SSL? |
2
Immutability of the class String has absolutely nothing to do with OutOfMemoryError. Immutability means that it cannot ever change, only that.
If you run out of memory, it is simply because the garbage collector was unable to find any garbage to collect.
In practice, it i... |
I have written a simple Java program that reads a million rows from the Database and writes them to a File.
The max memory that this program can use is 512M.
I frequently notice that this program runs Out Of Memory for more than 500K rows.
Since the program is a very simple program it is easy to find out that this do... | Does Immutability of Strings in Java cause Out Of Memory |
In answer to your second question,Jenkinsis a robost and extensible continuous integration tool that can be integrated tightly with GitHub usinga plug-in(or loosely using standard Git support). It also supportsCMake via a plug-in. Whether it has disadvantages that will make it less useful for you depends on your organi... | We are looking for a software to run our test cases automatically.We want a software which will run on our server (or a commercial), which automatically gets the newest commit on github. Then compiles the commit of the project with CMake and run Ctest on our test cases. The results should then be visualized on a nice w... | Continous- integration software for cmake project hosted on github |
Did you try turning on debugging mode?You do that inwp-config.php.Locatedefine('WP_DEBUG', false);and set it to true.Another thing I would try is to make some simple php file and test that if it is working. Something like:<?php
echo "test";
?>UPDATE:Since you probably have problem with php itself, check this question... | I have a Wordpress blog which was working fine until I updated my PHP 5.3 to 5.5. Now the whole blog is blank. I cannot view the admin page or even the log in page. I have tried to fix it after searching a lot on Google, but it is still not working.I have gone through these solutions:http://www.hongkiat.com/blog/common... | Getting a blank page on Wordpress blog |
Excel is a binary file format. Use io.BytesIO(export) instead
|
In my effort to export Excel file in my private Github repository to Pandas data frame using the source code below:
username= 'xxx'
token = 'yyyy'
github_session = requests.Session()
github_session.auth = (username, token)
url = 'correct path to raw file'
export = requests.get(url).content
df = pd.read_excel(io.Stri... | Import Excel file to pandas from Github repository |
You need a centralized logging solution. There are some common solutions out there. One of them is the ELK Stack (now named Elastic stack).It has 3 main components:Elasticsearch:To store the logs, index them, make them searchable etc.Logstash:To collect the logs from various sources (containers in your case), parse/fil... | I am looking for a way to collect Java exceptions thrown by containers. I know the function from the logging system of GKE/GCP and would like to implement a similar logging system in our self-hosted cluster.I am using Prometheus and Grafana for monitoring metrics. | How do I collect Java exceptions from Kubernetes pods? |
1) What docker is all about from a 10000 ft bird's eye point of view?From the website:Docker is an open-source engine that automates the deployment of any application as a lightweight, portable, self-sufficient container that will run virtually anywhere.Drill down a little bit more and a thorough explanation of the wha... | I am just one day old to docker , so it is relatively very new to me .I read the docker.io but could not get the answers to few basic questions . Here is what it is:Docker is basically a tool which allows you to make use of the images and spin up your own customised images by installing softwares so that you can use to... | Understanding docker from a layman point of view |
a strange password request showed upThat means the SSH keys proposed by your local SSH client do not match the public key registered in your GitHub account.You can see what is used withssh -Tv[email protected](asLeGECsuggests inthe comments).Try, for testing, to generate one without passphrase:ssh-keygen -t rsa -P "" -... | On a linux ubuntu server, I have set up git/github already with ssh key-pair authorization. It was working before last week. However, suddenly when I usegit pullorgit push, or simplyssh -T[email protected], a strange password request showed up>git push[email protected]'s password:
Permission denied, please try again.
.... | Git keeps requiring password but none of my password/tokens/passphrase works |
You should revert your SQL change, delete the directory data/es then delete the user through the standard way (administration console or web service). If you don't know what was the exact change, then a database backup should be restored. | Can someone explain to me how users are stored SonarQube's database (mysql)? I did a wrong query that corrupted a new user's account. I am trying to fix it but I can't get the user to show up again on the /users page so something must still not be quite right even though everything look correct in the "users" table. Is... | How does SonarQube users table work? |
The best approach is to call the connect_xxx method once when your application starts and rely on boto to manage the connection from then on. The only exception to that rule is if you are using multiple threads. In that case, each thread should create it's own connection since boto uses httplib which is not threadsaf... | If I call boto.connect_xxx, where xxx is some service (dynamodb, s3, etc) multiple times, does it create a new connection pool each time? What I'd like to do is something like this (example in Flask):@app.before_request
def before_request():
g.db = connect_dynamodb()to make sure I always connect, but I don't want t... | Boto connect_xxx method and connection pools |
Instead of using WinSCP for your changes, you should do the following :Install a web server on your laptop (check for WAMP on Windows)Clone your Github repository on your laptop (inC:/wamp/wwwif you are on Windows)Now, you can make changes on your laptop (andlessthem) and see them onhttp://localhost/When you are satisf... | I am having a problem dealing with a website and trying to make changes to it.First of all, let's say that my website is www.example.com. I downloaded Putty, went to the session, and used the host name (or IP address) to be www.example.com and used the connection type to be SSH. I logged into my account with my usernam... | Making changes to website |
Maybe not a real answer, but a point of view on the subject.The difference with the limit on CPU and Memory is what happens when the limit is reached. In case of the CPU, the container keeps running but the CPU usage is limited. If memory limit is reached, container gets killed and restarted.In my use case, I often set... | I understand the use case of setting CPU request less than limit - it allows for CPU bursts in each container if the instances has free CPU hence resulting in max CPU utilization.
However, I cannot really find the use case for doing the same with memory. Most application don't release memory after allocating it, so ef... | What is the use case of setting memory request less than limit in . K8s |
Use modify_attribute. See the documentation.
import boto3
ec2 = boto3.resource('ec2')
instances = ec2.instances.filter(
Filters=[{'Name': 'instance-state-name', 'Values': ['stopped']}])
for instance in instances:
print(instance.id)
# after choosing the instances to terminate:
ids = ['id1', 'id2']
for id in ... |
I want to teminate many AWS ec2 instance,then i use boto3 like this:
#!/usr/bin/env python
#coding=utf8
import boto3
ec2 = boto3.resource(
'ec2',
aws_access_key_id="<AK>",
aws_secret_access_key="<SK>",
region_name='eu-central-1'
)
instances = ec2.instances.filter(
Filters=[{'Name': 'instance-sta... | How to change termination protection by boto3 |
Unfortunately you cannot load agpuArraystored in a.matfile on a machine that cannot itself create agpuArray. (MATLAB requires that objects loaded from.matfiles become instances of the original class that they were saved as). Your best bet is to callgatheron yourgpuArrays beforesaveing them.(One reason why MATLAB suppor... | I have a.matfile that was saved after some GPU functions (e.g.gpuArray) withsave(['foo.mat'], 'foo', '-v7.3');.Now, I am trying to load this.matfile, and I do not have a GPU. I get the following error:FATAL: Error inserting nvidia (/lib/modules/2.6.32-504.16.2.el6.x86_64/kernel/drivers/video/nvidia.ko): No such device
... | loading .mat file written by GPU |
1
If you insist on using git submodules, then note that it works on a repository basis, i.e. you can only attach the full repository tree as a subfolder of another repository. You can't filter it, i.e. you get the full repository from the root folder with all the files and ... |
I have two github repository similar to the below structure as an example:
repo1:
[folder_X]
fileA
fileB
fileC
fileD
[folder_Y]
fileE
fileF
repo2:
[folder_M]
fileB
fileC
fileK
[folder_N]
fileO
fileP
as you see in both repository we have some common files in folder_X and folder_M which are fileB and fileC. I need to h... | using git-submodule without repository structure modification |
There is no recommended minimum size for kubernetes. The defaults are good for most cases but is you are creating e.g. many of empty files you might eventually run out of inodes. If you need more you need to manually adjust its number. | Is there a recommended minimum size (or minimum number of inodes) for the/tmpfile system (partition) on Kubernetes cluster nodes?What I am experiencing (on a bare-metal Kubernetes 1.16.3 cluster) is that cluster nodes hit 100% inodes used (according todf -i). This has some negative effects (as one would expect; e.g.kub... | Kubernetes cluster nodes running out of inodes in /tmp |
I've just faced with it.
Just generate token and use inplace of password.ShareFollowansweredAug 18, 2021 at 18:01djdancedjdance3,1602727 silver badges3333 bronze badgesAdd a comment| | I am using netbeans 8.2 to push to github but now get messages sayingYou recently used a password to access the repository at XXX with git using JGit/3.6.2.201501210735-r.Basic authentication using a password to Git is deprecated and will soon no longer work. Visit >https://github.blog/2020-12-15-token-authentication-r... | Netbeans JGit github password authentication deprecated,. how to reset? |
You already had the components of a correct solution. Use the scheme and hostname, together with the capture to construct the destination URL:rewrite ^/(.*)/$ https://$host/$1 permanent; | I want to redirect http to https and remove trailing slashes in nginx with one single redirect. The solution I have today is the following:server {
listen 80;
server_name www.example.com
rewrite ^/(.*)/$ /$1 permanent;
return 301 https://$host$request_uri;
}The problem with this solution is that it will... | Nginx redirect http to https and remove trailing slashes with one single redirect |
"Everything in this design sound doable, but also sounds like I "inventing the wheel" instead of using an existing solution that allow those option"Microsoft's ownDataFlowbasically provides this functionality with very convenient options to parallelize steps etc.Let's break it down:Solve an equationThat sounds like a j... | BackgroundI have set of tools\solution that can be combined together into a one single data processing\action flow.Each unit on my flow do a calculation or do an action.Example:Solve equation->send emailIn this example, theSolve equationunit is a type of calculation unit. While thesend emailunit is action.The point tha... | Designing pipeline system |
The Github API uses pagination to deal with large numbers of responses. You can request pages other than the first page by appending page=<n> to your request url. For example:
page = 1
while True:
response = requests.get(
f"https://api.github.com/repos/{user}/{repo}/releases?per_page=100&page={page}",
... |
I believe the PyGitHub libary can do this, but for the purposes of my project, I am calling the GitHub API directly with the requests library as I am caching the results of my API call with the requests-cache library.
According to the documentation for the per_page parameter, the maximum number of releases you can ret... | Is there a way to get a list of all the releases in a GitHub repository? |
Unless you want to store the data persistently I'd say you should probably just use an Array. Databases are more for persistent storage (i.e. stuff you'll need over multiple runs of your app). That said, if you arrays start getting reeeeeeeeeealy* big, then yea you're going to want to move them onto disk (in which cas... |
So, I am developing an app that at some point needs to choose random types of words. For example, a button will be pressed and it needs to retrieve maybe two adjectives, a noun, and three verbs, randomly. I have started looking at how to set-up a SQ LITE database, but I'm starting to wonder, would it take up more memo... | Which would use more memory? Array vs SQLite (Android) |
PodAntiAffinity has more to do with other pods than nodes specifically. That is, PodAntiAffinity specifies which nodes to exclude based on what pods are already scheduled on that node. And even here you can make it a requirement vs. just a preference. To directly pick the node on which a pod is/is not scheduled, you wa... | I have added podAntiAffinity to my DeploymentConfig template.However, pods are being scheduled on nodes that I expected would be excluded by the rules.How can I view logs of the kubernetes scheduler to understand why it chose the node it did for a given pod? | How do I debug kubernetes scheduling? |
You are not able to do this via service and have to use ingress controller, but look atTenzer workaround. I t contains good solution with an explanation how to preporly configure both service and nginx-configuration configmap.Alternativelly you can use your approach withhttps://kubernetes-sigs.github.io/aws-alb-ingres... | Frankly am not quite sure of the difference between an EKS Service and an IngressController. I have this service:apiVersion: v1
kind: Service
metadata:
namespace: entity-tools-integration
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-west-2:913xxx371:certificate/d98d8d07
... | Use aws-load-balancer to redirect to 301 - or do I need an ingress-controller |
You're right about the service accounts, this way your users don't need to login to check out files. The service account will act on the user's behalf depending on the API called. Do note that files accessed will be from the service account's set email.More information about Service Accounts can be found on the Drive's... | Hi my company needs to create an iOS app that sends secure data to our own cloud services, such as our Google Drive or some REST web services. What is the best practice that does not require user login?I came upon some technical articles mentioning about client certificate for authentication of the service account. Or ... | Best practice for Service Account accessing Cloud Services from iOS app without user login? |
Unfortunately, latest Mac OS have put additional layer of security and can't be bypassed.But I found following workaround. Since I am not changing system, so following solution works for me.I have to give full access to program via:System Preferences -> Security & Privacy -> Privacy -> Full Disk Access -> Add Program. | I am trying to automate crontab addition in Mac Catalina 10.15.5 via command:echo -e "* * * * * \run.sh"|crontab -this command replicatescrontab -ecommand and adds the required crontab in the system.But it asks for permission which is not removable via automation.a. Sudo command requires user to enter password, which i... | "Terminal" would like to administer your computer. Administration can include passwords |
tiangolo/uvicorn-gunicorn-fastapi is based on uvicorn-gunicorn-docker image, which by defaults creates multiple workers. Excerpt from gunicorn_conf.py:
default_web_concurrency = workers_per_core * cores
Thus, the described situation arises because the request is processed by different workers (processes). Each of whic... |
I have a simple fastApi demo app which achieve a function:
get different response json by calling a post api named changeResponse.
The changeResponse api just changed a global variable, another api return different response through the same global variable.On local env,it works correctly, but the response always chang... | python global variable in fastApi not working as normal |
Your link is so-calledS3 presigned URLand their expirationcan't be disabled. But you can make it longer. Themaximumexpiration time is7 daysprovided the URL is created using IAM user. If you use IAM role or instance role to make the URLs the max times are 36 and 6 hours respectively.If these times are not satisfactory, ... | I use S3 for media file storage on my Django project.DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'From my iOS project I receive image URLs from Django likehttps://my-bucket.s3.amazonaws.com/image-name.jpg?AWSAccessKeyId=<AccesKey>&Signature=<Signiture>It seems the image URLs are expired after a whil... | Image URL django media file using AWS S3 expires after a while |
Before you share logs which is critical you have misconfiguration:
Nginx worker_connections 3000
Reason: keep it 2-3x more than actual active connections number
Nginx worker_rlimit_nofile 20000.
Reason: each single connection requires 2 file descriptors for serving request via proxying
Nginx absence of locati... |
Some requests to my site are failed with "Server unexpectedly dropped the connection" and there is no errors in error logs.
RPM is 1-1.2k.
Do you have any ideas?
Here is configs of haproxy, nginx and unicorn:
https://gist.github.com/releu/59b7f1d649c681856320
| Dropped connections to server. Haproxy + Nginx + Unicorn |
Meanwhile, I resolved the issue.The zmq interface in host A was trying to connect to Host B. And above error is observed in Host A.And this issue started occuring once after restarting HostB. And I could notice, there is an ip6table rule got added in HostB as part of its restart. This rule was doing "reject with admin ... | I am using zmqPUSHandPULLsockets. And recently started observing SIGABRT crash, inzmq_poll()operation.The error/exit log is "Permission denied (src/tcp_connecter.cpp:361)"(gdb) bt
#0 0x00007ffff76d053f in raise () from /lib64/libc.so.6
#1 0x00007ffff76ba895 in abort () from /lib64/libc.so.6
#2 0x00007ffff7f59ace in zmq... | Why a SIGABRT permission denied error appeared during a zmq_poll()? |
I think a good approach is to use different strategies for different environments:nocompression fordevelopment(for developing & debugging)runtimecompression fortest environment(flexible, not performance-critical)buildtimecompression forstaging and production(tested, performance-critical)I have some experience using the... | I have to come up with a solution to compress, version (for caching purposes) and potentially combine our JS and CSS files and I've seen two dominant approaches so far:1) At build time: As an MSBuild task or similar.
2) Dynamically at run time: As a custom HTTPHandler (we are ASP.NET btw) for .js and .css files, with s... | CSS compression & combining / js minification - Better to do at runtime or at build time? |
Rate limiting works first, on request phase.
Caching works later, on content phase (guess).
So, when limiter works, there is no information about cache status yet.
|
I want to impose a request limit for uncached content on my NGINX reverse proxy. I have multiple locations defined and content can get cached or won't get cached due to other rules. So I can not set a request limit just for a location, I have to handle this differently.
According to the documentation in https://www.ng... | nginx - request limits for uncached content not working, weird behavior |
You should pass the HTTP request OutputStream as an argument and write to it directly inside your read loop, instead of buffering the entire request as a StringBuilder in memory.
|
I have .zip file which I have to Base64 encode before uploading to the server. Given file can be up to 20 mb, which causes OutOfMemory exception.
I use this code:
public String encodeZipToBase64(File zip) {
StringBuffer sb = new StringBuffer();
byte fileContent[] = new byte[1024];
try
{
Fi... | Base64 encode file and OutOfMemory error |
3
If your goal is to push data from AWS Lambda into Amazon Redshift, you could use the AWS Lambda Redshift Loader.
See:
A Zero-Administration Amazon Redshift Database Loader
Share
Improve this answer
Follow
... |
I am trying to create a Lambda function which will connect to RedShift :
var pg = require('pg');
var conString = 'postgresql://username:Password@JDBC-URL';
var client = new pg.Client(conString);
client.connect(function(err) { if(err) {
console.log('could not connect to redshift', err);
}
});
pgClient.e... | Push data from aws lambda to redshift |
1
Two issues pop out:
the spark.shuffle.memoryFraction is set to 1. Why did you choose that instead of leaving the default 0.2 ? That may starve other non shuffle operations
You only have 11G available to 16 cores. With only 11G I would set the number of workers in your j... |
I’m trying to run Spark job on Yarn client. I have two nodes and each node has the following configurations.
I’m getting “ExecutorLostFailure (executor 1 lost)”.
I have tried most of the Spark tuning configuration. I have reduced to one executor lost because initially I got like 6 executor failures.
These are my con... | Spark: Executor Lost Failure (After adding groupBy job) |
Matching everything like.*is very slow as well as using lookaround
regular expressions.To query some field by regex (exemplary query):{
"query": {
"regexp":{
"somefield": "_error_[123]00"
}
}
}https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.ht... | I'm trying to filter out 3 sensu check values for templating.I'm using Elasticsearch as a datasourceQuery: {"find": "terms","field":"check_name.keyword"}
Regex: /.*_error_100.*|.*_error_200.*|.*_error_300.*/Is my regex wrong?Thank you
Devon | How do I grab multiple values in regex? |
15
what works for me in these cases:
sudo systemctl restart docker.socket docker.service
sudo docker image rm -f $(sudo docker image ls -q)
Share
Improve this answer
Follow
answered Nov 7, 2022 ... |
I'm trying to kill a docker container, but I got permission denied. I use Ubuntu 20.04, my docker version for client is 20.10.7 and the one for the server is 20.10.11.
This is the log I got:
Error response from daemon: Cannot kill container: fastapi_server: permission denied
I read that I should use this comand for r... | Error response from daemon: Cannot kill container: permission denied, how to kill docker containers on Ubuntu 20.04? |
Since adata.frameis already a list and you know that each list element is the same length (X), the fastest thing would probably be to just update theclassandrow.namesattributes:set.seed(21)
n <- 1e6
x <- list(x=rnorm(n), y=rnorm(n), z=rnorm(n))
x <- c(x,x,x,x,x,x)
system.time(a <- as.data.frame(x))
system.time(b <- do... | Just had a conversation with coworkers about this, and we thought it'd be worth seeing what people out in SO land had to say. Suppose I had a list with N elements, where each element was a vector of length X. Now suppose I wanted to transform that into a data.frame. As with most things in R, there are multiple ways ... | Most efficient list to data.frame method? |
Mod_JK usages AJP protocol to connect Apache and backend Tomcat server. You can not use SSL connector in between Apache and tomcat, so Apache certificate is not required at the tomcat level. If you want to use mod_jk application in SSL VirtualHost then simply add JKMount in SSL VirtualHost. | I am trying to move my application from HTTP to HTTPS using SSL certificates. I have configured my Apache httpd conf. file to listen to HTTPS port along with the path where my certificates are placed.Now my HTTPD process is running fine. I am trying to connect my tomcat server using mod_jk connector. So should I have t... | SSL certificates configuration query for tomcat APR connector |
If you just want to redirect/%E2%80%A6crabble-word-finderinto/scrabble-word-finder/then you can simply try this.htaccesscode:RewriteEngine on
RewriteRule ^%E2%80%A6crabble-word-finder/?$ /scrabble-word-finder/ [R]Just considered the[R=301]flag with this link:https://stackoverflow.com/a/15999177/2007055 | I have a link in my Google Webmaster Tools that is coming from a big website that posted my link incorrectly. With many attempts to get them to change it I am going to 301 the link to the right page because I want that link. Problem is that in my GWT it is showing the link ashttp://www.otherdomain.com/%E2%80%A6crabble-... | Trying to Redirect 301 %E2%80%A6 in htaccess file |
There are couple of ways:First:Simply go to the respective folder (eg:E:\xampp\htdocs\composerTest) in command prompt and write:composer require "kronusme/dota2-api:*"Which will download the latest versions of dota1-api in the respective path you have provided. And this is probably the easiest way.Second:Save following... | Hi I just want to ask how would i install something i found in github that requires composer installation to cakephp? i already installed composer and (i think) it's working though i havent tested it because i don't know how. But basically my question is how i would use this ..{
"require": {
"kronusme/dota2-api... | GitHub - Composer Installation to Cakephp |
If you refer to yourConfigMapin yourPodthis way:apiVersion: v1
kind: Pod
metadata:
name: mypod
spec:
containers:
- name: myfrontend
image: nginx
volumeMounts:
- mountPath: "/var/www/html"
name: config-volume
volumes:
- name: config-volume
configMap:
name: some-confi... | I created configmap this way.kubectl create configmap some-config --from-literal=key4=value1After that i created pod which looks like this.I connect to this pod this wayk exec -it nginx-configmap -- /bin/shI found the folder/some/pathbut i could get value from key4. | Get value of configMap from mountPath |
Missing Entropy
Docker does not provide a virtual /dev/[u]random devices. If you haven't got enough entropy in the container, you haven't got enough entropy on the host.
Check the contents of /proc/sys/kernel/random/entropy_avail, they should be pretty much the same on both the Docker host and container (if the number... |
I need to dockerize an apt repository. The packages in it need to be signed, which is currently done by
aptly publish snapshot -distribution="stable" -gpg-key="<key id>" my-snapshot
Before that a key needs to be created using gpg --gen-key.
But this way the private key will be crated inside the docker image, which do... | How to use GnuPG inside Docker containers, as it is missing entropy? |
4
Windows do not allow the usage of : or \ in the filename as they are reserved keywords for windows.
In your case : needs to be removed from the file name and it should work fine.
Share
Follow
ans... |
Trying to clone a repo to another local machine, but it keeps failing at a particular point (a folder).
I want to clone a remote repo I have been working on in my other machine (Linux) into my windows machine (I dual boot) because I ran into some microphone problems in linux and the coding challenge is speech to text... | How do I bypass or repair this git clone error? |
One of the major points of release branches is to allow for minor bug fixes. So while the release branch is active, you can make fixes directly on the release branch.
After the release branch is finished, i.e. the release has been made, it is merged to master. After that commits should no longer be added to the releas... |
In our project we are following repo model as per http://nvie.com/posts/a-successful-git-branching-model/ .
I had been adding features into the develop branch until now, however now our project has created a release branch and I need to add a fix on that release branch. From what I have read , adding a hotfix will a... | How to do add a fix in the release branch using git flow / hubflow |
HttpResponse.RemoveOutputCacheItem?
|
Is it possible to clear one action's cache from another action?
Let's say my Index action lists all my Widgets. There are lots of Widgets but new ones are not created very often. So I want to cache my Index action indefinitely but force it to render after a successful Create.
public class WidgetController : Controller... | ASP.NET MVC: Clear an action's cache from another action |
As other people have pointed out, you can't do this in PHP (well, you can create an array of fixed length, but that's not really want you need). What you can do however is increase the amount of memory for the process.
ini_set('memory_limit', '1024M');
Put that at the top of your PHP script and you should be ok. You ... |
How do I pre-allocate memory for an array in PHP? I want to pre-allocate space for 351k longs. The function works when I don't use the array, but if I try to save long values in the array, then it fails. If I try a simple test loop to fill up 351k values with a range(), it works. I suspect that the array is causing me... | How do I pre-allocate memory for an array in PHP? |
The URL is nowhttps://github.com/someuser?tab=overview, and its presentation just changed (August 2018)See "Profile activity overview":A new beta section is available on your GitHub Profile: the “Activity Overview”.The “Activity Overview” provides a summary and graphical representation of your contributions to GitHub o... | Previously, GitHub had a site layout where you could go to a user's profile, e.g.https://github.com/someuser, and then click on an 'Public activity' tab in the top right. This would send you to a URL of the formhttps://github.com/someuser?tab=activityto see their recent activity.However, GitHub has recently revamped th... | How to see a user's recent activity with the new GitHub website? |
You need to include the header definingclass Innerinto the file whereCont::~Cont()implementation is located. This way you still have a forward declaration in teh header definingclass Contand the compiler seesclass Innerdefinition and can call the destructor.//Cont.h
class Inner; // is defined in Inner.h
class Cont
{
... | I have a class like this:class Inner;
class Cont
{
public:
Cont();
virtual ~Cont();
private:
Inner* m_inner;
};in the .cpp, the constructor creates an instance ofInnerwithnewand the destructordeletes it. This is working pretty well.Now I want to change this code to useauto_ptrso I write:class Inner;
class... | C++: auto_ptr + forward declaration? |
4
There are two potential solutions.
Change the environment file by replacing all double quotes with
single quotes and by wrapping these environment variables with a
double quote (example - works with V2 as well as V1.x)
Disable Docker Compose V2 in Docker Preferences > Ge... |
Docker Compose V2 has breaking changes due to which it throws an error (example given below), while parsing environment file.
Example - Apache Druid
Druid's docker compose fails with the below error when using the sample environment file.
unexpected character "\"" in variable name near "\"druid-datasketches\"
| Docker Compose V2 breaking changes - environment file handling issue |
Not super easy, but you can do it by formatting the output fromdocker inspect. For a container started with this command:> docker run -d -v ~:/home -p 8080:80 -e NEW_VAR=x --name web3 nginx:alpine sleep 10mYou can pull out the volumes, port mapping, environment variables, container name, image name and command with:> d... | What's the best way to reconstructdocker runcommand parameters from existing docker container? I could usedocker inspectand use the info found there. Is there any better way? | Reconstruct docker run command parameters from container |
It turn out that the answer was in one of the comments from , but it was not clear that this was my issue.
As the author of the comment stated is due to the iptables policies from Docker versions > 1.13.
To solve it, execute the following on both nodes:
sudo iptables -A FORWARD -i cni0 -j ACCEPT
sudo iptables -A FORWA... |
I deploy a kubernetes cluster following the guide: https://blog.hypriot.com/post/setup-kubernetes-raspberry-pi-cluster/. It basically uses hypriotOS and kubernetes from the debian repository.
After the deployment, all the pods were running and no faults were shown. However, the dns server was not working properly on t... | kube-dns not working on kubernetes arm |
I can't speak for CUDArt, but here is what finalize means in Julia: when the garbage collector detects that the program can no longer access the object, then it will run the finalizer, and then collect (free) the object. Note that the garbage collector can still access the object, even though the program cannot.
Here ... |
I am currently working with the CUDArt package. The GitHub documentation includes the following snippet of code when loading a ptx module containing a custom CUDA C kernel:
md = CuModule("mycudamodule.ptx", false) # false means it will not be automatically finalized
(comment in original)
I am trying to understand w... | What does it mean to "finalize" in Julia? |
It depends on the repository's community workflow and maintainers. Some may ask that you rebase onto or merge with a more recent commit, some may handle it themselves, etc. But if you submit the pull request, this conversation should take place anyways, along with any other necessary modifications.
So, to answer you... |
I am working on a repo that sees a lot of action on a daily basis. What I am working on will require me to spend a few weeks on. Also the changes I'm introducing will in no way interfere with what's already in the repo - this will be a whole separate folder on the base level.
I've created a branch and worked on my stu... | Github push changes that do not affect current repo status |
Like FakeRainBrigand suggested, you can just save the html. However, one neat thing about react is that every component is represented with state/props. This means if you suitably represent your UI with those fields, you should be able to reproduce your page given the same state/props.This could possibly mean that if y... | Is there any open source code or examples that try to do caching of rendered React components on memcached or something simillar?
Anyone that has already dealt with this? | React caching rendered components |
This becomes because the script hasn't run from git repository root, you need to specify correct git repository path, directly inphpcode:<?php
shell_exec('git --work-tree=/full/path/to/git/repo --git-dir=/full/path/to/git/repo/.git pull');
?>NOTE:for bare repository you shell to pass only--git-dirkey value. | I'm configuring a github web hook to call the below page:github.php:<?php
shell_exec('git pull');
?>I havechmod 777the file and evenchmod +xit. When I callphp github.phpfrom the server everything is good:remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reus... | "git pull" not working from the outside world |
0
I have this code below and the leaks application is saying 100% of the leak is from this line of code.
It doesn't mean the leak is there mate.
Share
Improve this answer
Follow
edited Jul 26, 2011 at 16... |
I have this code below and the leaks application is saying 100% of the leak is from this line of code.
const unsigned char *value = sqlite3_column_text(statement, number);
if(value)
return [NSString stringWithUTF8String:(char *)value]; //100%
return nil;
Can someone offer some insight on how to fix this.
| IOS memory leak from NSString |
I am getting same errors on Pro M1.
My app ruby version is 3.1.2, default MAC system verison is 2.6.8
I have add to~/.bash_profilefile this content:export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fiAnd then run. ~/.bash_profile.Add t... | I wanted to set a cron tab which would execute a task located in my Rails app. In my config/schedule.rb:every 2.minutes do
#do something
endDespite putting this task successfully into my cron jobs list it never gets executed. When I try to manually launch the script saved in my cron jobs list, that is:/bin/bash -l -c... | Cron tabs cannot find proper Ruby version via Whenever gem |
Each repository is owned by a single individual or organization account. If you store your repository under your personal account, you would be the owner and your colleague can be made a collaborator. In this case, like you mention, the repository would be listed only in your account's repository list. To give equal "c... | I created a repository and added a contributor, and this was our mutual work. In my GitHub account it appears as a repository and in his account is does not.We want that his account will have this exact same repository as shown in my repos.How can we do it? :) | GitHub repository as contributor |
Define the path relative to the auto-prepend file itsef.init.phpdefine('WEBROOT', __DIR__);You should then be able to useWEBROOTwherever in your application. Or if you want to stick to your current approach:$_SERVER['WEB_ROOT'] = __DIR__;Just curious. Why not just use$_SERVER['DOCUMENT_ROOT']. Doesn't that refer to yo... | I would like to prepend a PHP script automatically using.htaccess. I know that there is a directive to do this. I have the following in my.htaccessfile in the web root directory:php_value auto_prepend_file "./init.php"The contents of theinit.phpfile include:<?php
$_SERVER['WEB_ROOT']=
str_replace($_SERVER['... | PHP & .htaccess: prepend file for Multiple Directories |
It is worded a little confusingly butMaximumBatchingWindowInSecondsis not compatible with FIFO queues.FIFO max batch size is 10 and the sentence that references theMaximumBatchingWindowInSecondssetting talks about batch sizes >10 which do not apply to FIFO queues.Just remove theMaximumBatchingWindowInSecondsand it sho... | Documentation says maximumBatchingWindowInSeconds is now supported and that:For a FIFO queue the maximum is 10. For a batch size over 10, you must also set the MaximumBatchingWindowInSeconds parameter to at least 1 second.However, I'm getting: "Invalid request provided: Batching window is not supported for FIFO queues"... | AWS SQS FIFO Queue event source, is maximumBatchingWindowInSeconds supported? |
Your question is a bit hard to understand. So here are two answers:You want onlydomain1to end up in the template variable:label_values(my_metric{my_label="domain1"}, my_label)I cannot imagine a reason why you would want this. So I assume you actually want to filter your dashboard / panels for this specific domain.You w... | So I have agrafanadashboard and I need to filter out some labels. So I am usinglabel_valuesfunction.My data source isprometheusSo, to thislabel_valuesfunction, i am passing a variabledomain_nameand it produces 3 results as:domain1
domain2
domain3But I need to only filter and get thedomain1, sodomain2anddomain3are remov... | How to filter using Grafana queries |
If you want to automate the process, use AWS SDK.Like in following case use AWS PHP SDK:use Aws\Common\Aws;
$aws = Aws::factory('/path/to/your/config.php');
$s3 = $aws->get('S3');
$s3->putObject(array(
'Bucket' => 'your-bucket-name',
'Key' => 'your-object-key',
'SourceFile' => '/path/to/your/fi... | I have about 15 gigs of data in 5 files that I need to transfer to an Amazon S3 bucket, they are currently hosted on a remote server that I have no scripting or shell access to - I can only download them VIA an httpd link.How can I transfer these files to my Amazon S3 bucket without first having to download them to my ... | How to transfer files from a remote server to my Amazon S3 instance? |
I had the same problem, that "some other IP" is the IP your machine has been assigned connecting with your VPN connection. If you set your Tomcat server to host applications from that IP which is the "Host name" under the Tomcat general information section (double clicking on the server in Eclipse displays this info) e... | Whenever I get connected to VPN, I have observed that my localhost becomes in-accessible.I have a local tomcat server and I want to execute my web application on this tomcat server, while being connected with VPN.However, doing so, the browser redirects the localhost to some other IP.Please help | Localhost not accessible with VPN |
27
The only way I could fix this was by opening a powershell and switching daemons:
& 'C:\Program Files\Docker\Docker\DockerCLI.exe' -SwitchDaemon
Share
Follow
answered Apr 14, 2021 at 12:36
... |
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... | Docker for windows hangs while trying to see settings [closed] |
Answer to the first part of the question is Yes. Chromecast uses a PKI to secure communication.
When Chromecast receiver app makes a secure http request (HTTPS/TLS), it is encrypted with a chromecast specific private key certificate (Which leads to Google). A server can use google's public key to decrypt the message an... | As I need to restrict webserver content to chromecast devices, I was hoping that chromecast devices have a certificate bundle, which can be used for authentication. The Chromecast documentation does not really state anything with regards to certificates.So , my questions is does Chromecast come with a certificate bundl... | Does Chromecast come with a certificate bundle allowing simple webserver authentication/verification? |
So apparently I missed an important restriction of the appcache.
As mentioned inhttps://www.w3.org/TR/2011/WD-html5-20110525/offline.html:If the manifest's is https: or another scheme intended for encrypted data transfer, then all URLs in explicit sections must have the same origin as the manifest itself. | I have been trying to get my HTML5 offline cache manifest to work nicely in Safari when accessing the site with HTTPS.I have the following setup:index.html:<!doctype html>
<html lang="en" dir="ltr" manifest="app.appcache">
<head>
<base href="https://www.example.com">
<link rel="stylesheet" href="//some.cdn.com/styl... | Cache manifest not working in safari using cross-domain refs and SSL |
Just figure out a way of boosting the queries:Before I was trying:import pandas as pd
from pyathena import connect
conn = connect(s3_staging_dir=STAGIN_DIR,
region_name=REGION)
pd.read_sql(QUERY, conn)
# takes 160sFigured out that using aPandasCursorinstead of aconnectionis way fasterimport pandas as pd
p... | I run a query from AWSAthena consoleand takes 10s.
The same query run fromSagemakerusingPyAthenatakes 155s.
Is PyAthena slowing it down or is the data transfer from Athena to sagemaker so time consuming?What could I do to speed this up? | Pyathena is super slow compared to querying from Athena |
The simplest way isstd::aligned_storage, which takes alignment as a second parameter.If you don't have it yet, you might want to checkBoost's version.Then you can build your union:union vector {
__m128 simd;
std::aligned_storage<16, 16> alignment_only;
}Finally, if it does not work, you can always create your own l... | I am attempting to re-write a raytracer using Streaming SIMD Extensions. My original raytracer used inline assembly andmovupsinstructions to load data into the xmm registers. I have read that compiler intrinsics are not significantly slower than inline assembly (I suspect I may even gain speed by avoiding unaligned m... | G++ SSE memory alignment on the stack |
You need to make sure that the certificate is installed under the%JAVA_HOME%\lib\security\cacertsof the JVM that maven uses. If it is not there you need to import it.Command for checking whether the certificate is installed:keytool -list -keystore "%JAVA_HOME%/jre/lib/security/cacertscommand to importkeytool -import -n... | I set up repository for maven artefacts that allows only https/ssl access. When running a maven build I naturally get this exception:sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requeste... | Maven: SunCertPathException when accessing self-signed repository |
The main reason for SYCL 1.2 to require OpenCL 1.2 is because the Khronos intermediate representationSPIR 1.2 requiresit. Without SPIR, or any other intermediate representation, a SYCL implementation cannot compile C++ code into device binaries, and would need to convert C++ to OpenCL C, which is quite problematic. | I am a student. My question may be very silly but I want to clear it. I have a device with Vivante GPU with openCL 1.1 version. I want to run tensorflow sample code with SYCL support on GPU. But before trying Tensorflow sample code, I want to try SYCL sample code with openCL 1.1 on GPU.I have seen several SYCL implemen... | Why SYCL supports openCL 1.2 or above? |
Damien_The_Unbeliever in the comments posted what inevitably was the best solution. I apologize for not posting this sooner, in case anyone else has faced this issue. The idea is to use memory mapped files to make a block of memory visible outside of your application. Essentially, you create a block of memory and give... |
So I have two applications that work together. One is written in native c++ using a custom memory manager. This memory manager manages a contiguous block of bytes from a start address through startAddress + size. I also have a WPF application that reads text files (which are just the bytes from the memory manager pour... | .NET View Other Application's Memory |
After reviewing your repository your commits are being made under the username "Administrator". So GitHub doesn't know who's who. You want to follow these tutorials on github1)Setup your username in git-scm2)Setup your email in git-scm | So I made a fork of a friends package and made edits and then requested a pull.
The changes were made however I did not get listed on the contributors because its a pull from my fork. In the end I just ended up making a manual edit to his read me and i got listed as just a readme editor.I am wondering is there a way to... | GIT Fork and Contributions |
One of the core concepts behind signed URLs is that they are not vulnerable to tampering -- you can't change a signed URL and have it remain valid.CloudFront uses the public key to validate the signature and confirm that the URL hasn't been tampered with. If the signature is invalid, the request is rejected....Signed C... | I would like to add a query string parameter to my Cloudfront Url to be able to get some additional info into the Cloudfront log. I have two distributions, one is signed and one is not signed, pointing to two different S3 buckets (one with audio, one with images).
Access to both distributions works fine without added q... | How to add a query string parameter to Cloudfront? |
4
It looks like this has gone stale, nevertheless, I was wondering whether by simply doing a python3.7 -m pip install --upgrade pip
FROM ubuntu:18.04
# ...
RUN apt-get update && apt-get install -y \
software-properties-common
RUN add-apt-repository ppa:deadsnake... |
I have to install Python3.7 and pip3 for Python3.7 on my Docker Ubuntu18.04. I can install the 3.7, but I cannot get rid of pip3 for Python3.6:
FROM ubuntu:18.04
# ...
RUN apt-get update && apt-get install -y \
software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update && a... | Install PIP3 and PYTHON3.7 on Docker Ubuntu 18.04 |
You can use thetokenizerattribute to tell theCountVectorizerto each list as a single document and turn thelowercaseoption toFalselike thistext_clf = Pipeline([('vect', CountVectorizer(tokenizer=lambda single_doc: single_doc,stop_words='english',lowercase=False)),
('tfidf', TfidfTransformer(use_idf=True)),
('clf', SGD... | I am trying to create a classifier using Python and Sklearn. I currently have all my data imported successfully. I have been trying to follow a tutorial fromhere, changing it a bit as I go. Later into the project I realized that their training and testing data was much different then mine. If I understand it right they... | Python Sklearn Pipeline with array |
I solved the issue. Actually Tensowflow version was requiring a lot of memory so I changed the Keras backend to Theano and that solved the issue there is nothing to do with VGG here I guess.
Switching can be done in the .keras folder in keras.json file and change the backend to theano. | Resource exhausted: OOM when allocating tensor with shape[256,128,3,3] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfcHere I am trying to use vgg for learning concepts of deep learning using Fast.ai course. When I am trying to read a small data of 4 images also it shows the error g... | GPUs out of memory even in reading small data? Using "Quadro m1000m 4GB GPU" |
The certificate is issued to busybox.net, which is the root cause of your error.The simple solution is to just drop the https:// and use http://, as the URL is available athttp://git.buildroot.net/buildroot/info/refsShareFollowansweredAug 11, 2014 at 12:28Burhan KhalidBurhan Khalid172k1919 gold badges247247 silver badg... | While trying to clone from GIT repository as part of the ONL (open network Linux) build process, I receive the following error. Does anyone have an insight over this? This is on Ubuntu 13.10 box.error: gnutls_handshake() failed: A TLS warning alert has been received while
accessing https://git.buildroot.net/buildro... | TLS error while cloning from git repository |
I ended up using SmartGIT. Its a very cool GIT interface: if any files in your source code tree are updated/moved/renamed, it lets you know, so you can always be sure that GIT has all the source code you need to compile your project.ShareFolloweditedMay 22, 2011 at 11:22answeredMay 22, 2011 at 0:05ContangoContango78.1k... | I've heard that with GIT, you can make it automatically track filename changes (i.e. if you change a filename, it automatically notices that the checksum is very similar, and updates the filename in the repository automatically).Does anyone have an example of how this is done? | How do I do automatic tracking of filename changes with GIT? |
Adding a random parameter to your request will not sabotage your php in any way:
loader = new URLLoader();
var request:URLRequest =
new URLRequest(
"http://www.mySite.com/getTime.php?action=getTime&bogus="+(Math.random() * 10000));
loader.load(request);
Your php code will GET the action parameter, and will ig... |
Good Day,
I’ve encountered problems with the cache of the UrlLoader in Actionscript 3.
I make a UrlRequest to a php site to get a timestamp.
When I call initiate the class (which contains the function) a second time, the result is the same.
I have to close the application and restart it to get a new request.
I have tr... | AS3 Resetting UrlLoader Cache |
Docker-Compose is wrong at this place, when you're using ECS.You can configure multiple containers within a task definition, as seen here in theCloudFormation docs:ContainerDefinitionsis a property of theAWS::ECS::TaskDefinitionresource that describes the configuration of an Amazon EC2 Container Service (Amazon ECS) co... | I have created a Docker containers using docker-compose. In my local environment, i am able to bring up my application without any issues.Now i wanted to deploy all my docker containers to the AWS EC2 (ECS). After going over the ECS documentation, i found out that we can make use of the same docker-compose to deploy in... | Deploying multiple docker containers to AWS ECS |
Attempting to simulate actions occurring within the samenanosecondis difficult and impractical in general, and I'm just going to make a blanket statement that it's simply impossible in either PHP or mySQLseparately, let alone in tandem.You can't insert two rows into a table simultaneously. Not ever. You can have two th... | I want to run this php script multiple times concurrently.$db = new mysqli('localhost', 'me', 'pw', 'test');
$time = time();
$sql = " INSERT INTO test ( `test_created` ) VALUES( ". $time .") ";
$result = $db->query($sql);I am doing this because I want to replicate a scenario in which many users submit database... | Testing concurrent mysql insert operations in php |
You are trying to runbash, an interactive shell that requires a tty in order to operate. It doesn't really make sense to run this in "detached" mode with-d, but you can do this by adding-itto the command line, which ensures that the container has a valid tty associated with it and thatstdinremains connected:docker run... | I created the container with the following command:docker run -d -p 52022:22 basickarl/docker-git-testHere are the commands:root@basickarl:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root@basickarl:~# docker ps -a
CONTAINER I... | Docker container not starting (docker start) |
I think you need to type it as "| pattern" instead of "|~ pattern"ShareFollowansweredOct 14, 2022 at 5:14MCVL1911MCVL1911111 bronze badge1This does not provide an answer to the question. Once you have sufficientreputationyou will be able tocomment on any post; instead,provide answers that don't require clarification fr... | try to parse with pattern usingGrafana + Lokii am using{pod=~"backend-deployment-.*"} |~ pattern `<_> - - <_> "<method> <path> <_>" <status> <_> "<_>" "<_>" <_> <duration> [<service>] [<_>] <_> <_> <_> <_> <_>`to parse this log10.110.1.132 - - [27/Aug/2021:02:37:06 +0000] "GET /main.d8e010115d6aba1bd049.js.map HTTP/2.0... | Grafana Loki pattern syntax error: unexpected IDENTIFIER |
Since its made in Visual Studio does that mean I need to include:
Solution file and .vcxproj file?
Yes, you'll need to include solution and project files. You can see which files you can ignore at gitignore.io. Or, you can use cmake.
I'd much prefer to throw them all into their respective folder, but if
someone... |
For example: I'm making an SFML game and I want to store my project on GitHub so my team members can have access to it. Since its made in Visual Studio does that mean I need to include: Solution file and .vcxproj file?
Also, I've seen projects on GitHub have a "src" folder to organize their repository, since mine was ... | How does Visual Studio and Github work together? |
When youreceivemessages from the queue, they are marked as "in flight." After you successfully process them, you send a call to the queue todeletethem. This call will include IDs of each of the messages.When the queue is empty, the next read will have an emptyMessagesarray.Usually when I do this I wrap my call to rea... | I want to get all the messages in the queue to process them. However the property for MaxNumberOfMessages is 10 (based on documentation)https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.htmlHow can I read in all messages so I can process them? Or how would I know when queue is emp... | AWS SQS Receive Messages -- How to Know when Queue is Empty |
Azure Devops Pipeline: Second parameter dependent on the first parameterI am afraid there is no such out of way to resolve this question at this moment.That because theconditionsdoes not support for parameters at present. We could not add condition to the second parameter to set the value based on the first parameter.A... | Is it possible in azure devops that the choice of the first parameter by the user, determines the second parameter (type, displayName etc.)?For example:parameters:
- name: parametr1
displayName: example1
type: string
default: first
values:
- first
- second
- thirdAnd if the user selects "first" when start... | Azure Devops Pipeline: Second parameter dependent on the first parameter |
0
As far as I'm aware, this isn't possible.
Even if you make a comments from a normal GitHub user account, and then convert that user account to a GitHub Organization account, all of your existing comments/commits will no longer be associated with that account:
Any commit... |
Any idea is it possible to open Issues and submit PRs in GitHub on behalf of organization.
I would like to open an Issue and PR that would say opened by <orgname>.
Currently it says opened by <person>.
| Open GitHub Issues and Pull Request on behalf of organization |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.