Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
4 Only the first git aws.push is full. All the others are incremental. However, it poses an interesting question. Here are a few ideas: Host your own CI/CD service, like Jenkins or Drone (FWIW, I wrote the Jenkins AWSEB Deployment Plugin Use a cloud service. I recommend...
How do I deploy my latest bits (in this case a nodejs app) from Bitbucket to the AWS Elastic Beanstalk. I want to avoid doing a git aws.push from my local system since that pushes the entire repo which can be painfully slow in low bandwidth scenarios. What I would like is to be able to commit my changes locally then p...
deploy directly from Bitbucket to AWS Elastic Beanstalk
In other words, do we just need to make sure that Offset is a multiple of RequiredAlignment? for alignment that is nearly sufficient. in vkBindbufferMemory one of the valid usage requirements is: memoryOffset must be an integer multiple of the alignment member of the VkMemoryRequirements structure returned from a...
I'm implementing a naive memory manager for Vulkan device memory, and would like to make sure that I understand the alignment requirements for memory and how to satisfy them. So, assuming that I've allocated a 'pool' of memory using vkAllocateMemory and wish to sub-allocate blocks of memory in this pool to individual ...
Vulkan memory alignment requirements
The closest I can think of is this command:docker-compose up --build --force-recreateIn my opinion, wrapping docker-compose in a shell script isn't a bad approach, but shouldn't be necessary in the situation you are describing.
I found myself doing these three operations over and over again when modifying running Docker containers:docker-compose builddocker-compose downdocker-compose upIs there a command in docker-compose that would do exactly these three things?Of course a simple workaround would be to write a short shell script to the abov...
Shortcut command for docker-compose build + down + up
The CronJobs are a possibility,but they are not meant to be used in your scenario, but when you want to run a command with a certain frequency over the time.ABash Builtin commandthat suits better your needs isdisown. First, run your process/script in the background (using&, or stopping it with^Zand then restarting with...
I am new at using Cron Jobs on Google Cloud: I was wondering if it is possible to launch a job on an instance and have it run continuously without interruption even after I shut down my local (Laptop). Is it possible to have a job running without any ssh connection?
How do we avoid Cron jobs interruption?
Thanks for your sample code, Alex Chan. I needed this functionality too, so I decided to write more completeS3FileUploadFieldandS3ImageUploadFieldclasses, based on your code and various other snippets.You can find my code at:https://github.com/Jaza/flask-admin-s3-uploadAlso up on pypi, so you can install with:pip insta...
I am using Flask-Admin and is very happy with it. However, the sample in Flask-Admin only provides to upload the image to static folder. Is it possible to upload it to S3 directly with Flask-Admin? Thanks.Regards Alex
Upload Image to Amazon S3 with Flask-admin
GitHub offers two different authentication methods for read/write access. The first, which you appear to be using, is the HTTPS method and requires username/password authentication. The other way is via SSH which uses public/private key pairs to authenticate rather than a username/password combination.To change the URL...
When I try to push my project on Github, I have to sign in every time with my Github account before the push. And I don't understand why, on certain projects I don't need to do this, only on one project.MacBook-Pro-Firstname:ProjectName firstname$ git push origin master Username for 'https://github.com':[email protecte...
Github sign in before a push
-2It looks like your server is returning an empty certificate. You should check, for example, with your browser if there really is a certificate behind this URL you are calling (click on the lock near just next to the URL in the address bar). You say you tried all solutions, but you're not telling which ones. You can r...
This question already has answers here:Error - trustAnchors parameter must be non-empty(46 answers)Closed6 years ago.I am trying toretrieve an SSL certificateand to call a soap webservice via that but getting stuck due to below issueI tried all the solutions provided over stack overflow but it's not working at all..Ple...
the trustAnchors parameter must be non-empty [duplicate]
+500Update:I solved itmountingGCS bucket in Cloud Run andread/writeof object with the following changes:Dockerfile:# https://github.com/chiaen/docker-gcsfuse FROM golang:1.17.5-alpine as gcsfuse RUN apk add --no-cache git ENV GOPATH /go RUN go get -u github.com/googlecloudplatform/gcsfuse FROM composer:2 as vendor COP...
With the second generation runtime of Google Cloud Run, it's now possible to mount Google Storage Buckets using gcsfuse.https://cloud.google.com/run/docs/tutorials/network-filesystems-fuseThe python3 example is working fine. Unfortunately, I keep getting this error with my Dockerfile:bin/fusermount: failed to open /dev...
Unable to mount bucket with gcsfuse on Cloud Run
You can create a "keep warm" trigger on cloudwatch that calls your lambda every 5-15 minutes to keep it warm. You get a million free calls every month on lambda so it shouldn't really affect you too much. This is how libraries like zappa keep your APIs warm so it is a well established practice.You can read morehere.
I've got a Lambda that uses the AWS Java SDK.In this lambda's handler, I've got code that looks like this:AmazonSQS sqs = AmazonSQSClientBuilder.defaultClient(); sqs.sendMessage( ... )I'd expect the above lines to be pretty fast, and for most cases, this is what I'm observing.However on cold starts, this code is taking...
AWS SQS operations in lambda takes too long on cold start
It seemshttps://htmlpreview.github.io/doesn't load all the JS scripts from your page. I think the easiest way to serve your file is to activate the Github Pages on your repo:Go to settings :Select master branch in your case, click Save and go to :https://kaiyungtan.github.io/challenge-data-analysis/Visualisation/averag...
I have saved a folium created map as html and put it on GitHub. But when I want to view it on the GitHub , it doesn't show the map but only show as below.I tried to usehttps://htmlpreview.github.io/and pastedhttps://raw.githubusercontent.com/kaiyungtan/challenge-data-analysis/master/Visualisation/average_price_per_sqm_...
How to view folium saved html on GitHub?
Try the following code (from http://php.net/manual/en/function.imagecolorallocate.php) instead of your direct colour assignment: function createcolor($pic,$c1,$c2,$c3) { $color = imagecolorexact($pic, $c1, $c2, $c3); if($color==-1) { if(imagecolorstotal($pic)>=1000) { $color = imagecolorclosest($p...
This code executes in 0.8seconds and takes up 22Mb of memory on my machine. $x=500; $y=500; $im = imagecreatetruecolor($x,$y); $ia=array(); for ($i = 0; $i < $x; $i++) { for ($j = 0; $j < $y; $j++) { $r=rand(0,96); $g=rand(0,128); $b=rand(0,255); $ia[$i][$j]=ImageCol...
Code take too long to process and has a big memory footprint
There's a component package@loopback/metricsmade by LoopBack that implements Prometheus. TheMetrics collection for Prometheusdocumentation page explains how to set it up in the application.
How can I use theprometheuswithin a LoopBack 4 applicationhere is a piece of code from the application.ts fileexport class BackendV4Application extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {constructor(options?: ApplicationConfig) {options = { ...options, rest: { requestBodyParser: { json: { limit:...
loopback 4 use middleware prometheus-api-metrics
This is a low-level detail, subject to change when your build environment upgrades. As such, I would look to general principles instead of specific implementations. In this case, I would add a hypothesis to the general principles. Hypothesis: If the order of freeing memory makes a difference for performance, the build...
Given something like: char *a = malloc(m); char *b = malloc(n); char *c = malloc(o); Once you have finished with the blocks of memory, this is correct: free(a); free(b); free(c); And so is this: free(c); free(b); free(a); Yet one or other order must be used, and it is more satisfying to have a basis for choosing on...
Which order should allocated memory blocks be freed in?
Based on aprevious question, the approach that I took for handling large arrays that could grow and shrink with reasonable efficiency was to write a container similar to a deque that broke the array down into multiple pages of smaller arrays. So for example, say we have an array of n elements, we select a page size p, ...
How would I efficiently resize an array allocated using some standards-conforming C++ allocator? I know thatno facilities for reallocation are providedin the C++ alloctor interface, but did the C++11 revision enable us to work with them more easily? Suppose that I have a classvecwith a copy-assignment operatorfoo& oper...
Efficient Array Reallocation in C++
I can think of two options that would work for you -- which is the best entirely depends on your application. The first is to use WeakReference or SoftReference. Now keep in mind that as of Android 2.3 the VM has become much more agressive so collecting VM may collect these type of references more frequently. Personal...
I am having OOM issues with java.util HashMap so I am looking for memory friendly HashMap alternatives to standard Java Hashmap. I tried Trove and it improved a little but still ends up with OOM from time to time. I can accommodate some speed loss if memory is efficient. I am not looking for a DB. File-based HashMap ...
HashMap Alternatives for Android Application
My working solution to do a task every to minutes with various functions and conditions in this task: just do a normal loop as usual and add a time sleep at the end, ( ex: time.sleep(120) .Then wrap the all code in a function / main and use Schedule library on it if you still need it ....ShareFollowansweredAug 20, 2...
I want to repeat a function very 2 minutes on a list and move every time one element further of the list. I use the 'schedule' to do the task. The script is the following:if __name__ == '__main__': machines_queue=[[...],[...],...] # list of the sublists global counter counter= 0 def job(sub_list): ...
Python Cron Job with Schedule not working
1 The message states that there is a pending merge, so you should isse the command git merge --continue, then retry with git pull origin {{branchname}}. Is that your case? Share Follow answered May...
I'm trying to take pull of my master branch that is denoted by branch name in below command. when I run git pull origin branch name I 'm getting following message: [------ server path]$ git pull origin branchname error: You have not concluded your merge (MERGE_HEAD exists). hint: Please, commit your changes before me...
Unable to take pull master branch on server
I've foundjqto be the most flexible method for working with the AWS CLI.The following takes input fromdescribe-instancesand pipes it intojq.jqextracts the bits you're interested in and outputs it in the CSV format you specified.CLIaws ec2 describe-instances |jq -r '.Reservations[].Instances[]| . as $i | [($i.Tags|from...
I'm trying to pull a list of all of our instances formatted like so:Tag:Name.Value instance-id private-ip-addressThis is the command I'm using:aws ec2 describe-instances --query 'Reservations[*].Instances[*].[Tags[?Key==`Name`].Value[],InstanceId,PrivateIpAddress]' --output textAnd this is what I'm getting as output:in...
AWS CLI: How to achieve certain output format for describe-instances?
Find the sha by agit reflog(the last commit on the branch) and dogit checkout -b <branch> <sha>on a command line prompt.
I am trying to restore a branch that was deleted about a week ago from the remote server. Since that time I completely blew away my local repo for that project so there is no local version of that branch either. I tried "git fsck" but didn't see anything related to my branch there.
Git restore branch that was deleted both locally and on the server
There is no such automation possible with globalprotect VPN client
Hi I am trying to connect to a VPN network using GlobalProtect VPN client. I can do that using the UI but I would like this to be automated. In another project where I was using Sonicwall Netextender, I created a batch file which I was calling from my C# code so I would connect to a VPN by calling the batch file, do so...
Globalprotect VPN batch file or C# code
I believe forincrease()to work properly it needs at least two values within provided range-vector. So minimum range specified could be30sfor you case, and then you shouldn't have any overlapping. (Basicallyprovisioning_document_duration_seconds_max - provisioning_document_duration_seconds_max offset 15s)On the other ha...
I have got a simple Kotlin + Spring Boot web application and I'm trying to measure the duration time of operation.Here is the code of my micrometer timer metrics:fun recordOrderCreateDuration(duration: Long) { Timer .builder("my.custom.metrics") .tag("application", "order-manager") ...
Why my metrics is displayed within multiple scrapes?
7 The --network flag specifies which Network mode is used for the RUN commands during build. From the documentation Sets the networking mode for the run commands during build. Supported standard values are: bridge, host, none, and container:<name|id>. Any other value is ta...
What does the option --network host actually do indocker build --network host .? What behaves differently for having the option set vice the default?
What does docker build --network host actually do?
2 If you wish to protect some central repo you can use pre-commit hooks (see here) for such task. As you can see from here hooks can be client- and server-side. They are in git for a long time and were used in many such situations e.g. in gerrit toolkit. So probably it will...
I have a main branch and if someone wants to create new branch then it must start with feature/*, bugfix/*, release/*. I tried using branch protection rules, but I couldn't find any settings that prevent the creation of these branches which do not match the pattern. Is there a way to implement this?
Is there a way to restrict branch creation pattern in github?
In kubernetes you can't stop a service, then to start it again (like in docker). Once a pod is killed, it will need to be re-created.Now, if you delete a deployment, then you can re-create the same deployment, with the same name, with no problems.If you are concerned about the state of the application, you can either u...
How can one start a service or deployment just by using name of the service or deployment from kubernetes java sdk? Suppose we have started and stopped the service or deployment once, so whether this can be achieved to just use the same name by which we have done the deployment or deployed the service. For eg :start a ...
start deployment or service by using name from kubernetes java client
Containers aren't complete virtual machines. Some kernel resources will still appear as they do on the host. In this case, --cpuset-cpus=0 modifies the resources the container cgroup has access to which is available in /sys/fs/cgroup/cpuset/cpuset.cpus. Not what the VM and container have in /proc/cpuinfo. One way to v...
I have been working with Docker for a while now, I have installed docker and launched a container using docker run -it --cpuset-cpus=0 ubuntu When I log into the docker console and run grep processor /proc/cpuinfo | wc -l It shows 3 which are the number of cores I have on my host machine. Any idea on how to restri...
How to check the number of cores used by docker container?
I took a look at your pipeline above and it seems yourrun-on-windows-and-macjob is missingactions/checkoutaction step. This is whyspark.exeexecution fails. It cannot findtest.sparkfile used as an argument (it is in the repo but was not checked out to the runner executing the run). Just add theactions/checkoutstep befor...
I have a Github Actions workflow which has two jobs:Compile code to a .exe file and upload as artifactJob that runs on Windows/Mac which downloads the .exe file and uses it. However, all of my pipelines have failed, either because a job was for some reason canceled or because there was an error. For reference, here is ...
GitHub Actions uploading and downloading artifacts
To get data from just a few tables:pg_dump myDatabase --inserts -a -t table1 -t table2 > backup.sql;pg_dump myDatabase --inserts -a -t seq1 -t seq2 > backupSequences.sql;Parameters descriptions:-a, --data-only dump only the data, not the schema-t, --table=TABLE dump the named table(s) only--insert...
I want to dump a database.I have three tables:table1 table2 table3From table1 i want the schema plus data.From table2 and table3 i just want the schema.How do i do that?
How to backup some tables with data and some tables only schema PostgreSQL
Have you tried putting the full path in the fopen function instead of just the filename?
So, I set up a cronjob to run the following command:php /var/www/path/to/cron/do-stuff.phpThe path is correct. The directory is owned bywww-data.The script does the following:chdir( getcwd() ); echo shell_exec('whoami'); $handle = fopen(uniqid('TEST_') . '.tst'); fwrite($handle, 'foo'); fclose($handle);This is the out...
PHP Cronjob -- permission denied?
Unfortunately it's not possible to achieve what you described in Kubernetes Dashboard even on the most recent version.To list all Roles on your cluster, you need to use the command line tool (kubectl):kubectl get rolebindings,clusterrolebindings --all-namespaces -o custom-columns='KIND:kind,NAMESPACE:metadata.namespace...
I am using kubernetes dasboard in version: v1.10.1When I go to "Roles" tab I can see a list of ClusterRoles and Roles.I would like to see more details about a particular role from the list, but I do not see any "details" button. I want to see information about the role in the dashboard widget or even in yaml format. Am...
How to view Roles and ClusterRoles details in kubernetes dashboard
You need to configurenetwork policies. For that to work you also need to use anetwork addonthat supports policies.
I have 2 namespaces and 1 pod, 1 service running in each.ExampleNamespace 1: default Pod: pod1 Service: pod1service Namespace 2: test Pod: pod1 Service: pod1serviceI can actually make HTTP request from namespace2 pod to namespace1 pod.curl -H "Content-Type: application/json" -X GET http://pod1service.default.svc.clust...
How to disable cross communicate between pods which are in 2 different namespaces in kubernetes
You have to specify the namespace when deleting it:kubectl delete serviceaccount -n kube-system kubernetes-dashboard
By mistake I created a service account to give admin permission for dashboard. But now I am unable to delete it.The reason I want to get rid of that service account is if I follow the steps herehttps://github.com/kubernetes/dashboard. When I jump to the URL it doesn't ask for config/token anymore.$ kubectl get servicea...
How to delete a service account in kubernetes?
1 check this docs about github api pulls example command curl \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/octocat/hello-world/pulls if the status is 200 then you will get a json response with metadata: [ { "url": "https://api.gith...
My goal is to automatically pull from a private github repository every time a change is pushed to the master branch, but I'm not sure how I should go about this.
How to automate pulling from a repository with GitHub Rest API in Python?
That can happen if your docker build sequence does not got all the way, meaning it stops on error at some point in the Dockerfile.The result of that interrupted process is the last intermediate image built by the Dockerfile line that succeeded, just before the Dockerfile line that fail to execute properly.Other reasons...
I am new here trying to learn docker, I started this tutorialhttps://docs.docker.com/engine/examples/nodejs_web_app/Building your image$ docker build -t mlotfi/centos-node-hello .mlotfiis my username inhttps://hub.docker.com/when I diddocker images, I got:REPOSITORY TAG IMAGE ID CRE...
REPOSITORY <none> TAG <none>
It's a bit deceptive but I'm pretty sure they mean that they ship a Ubuntu distro you can install on an unformated (no-OS) computer. Having said that the instructions I found assume you will find and install the OS yourself:https://docs.docker.com/engine/installation/linux/ubuntu/It could also simply mean that you don'...
On the Docker website I see mention of Docker on "bare metal". Does this mean that you can run Docker on hardware with no underlying OS?If so, how would one install/implement it?
Docker on bare metal?
Sometimes this section <VirtualHost _default_:443> prevents your real SSL certificate from being used. If this is the case either comment VirtualHost default or move the SSLCertificate* attributes to it, ie. <VirtualHost _default_:443> SSLCertificateKeyFile /etc/ssl/mydomain_com.key SSLCertificateFile /etc/ssl/my...
I'm having hard time trying to setup an SSL certificate (it's a Comodo PositiveSSL purshased from NameCheap) on my EC2 micro instance (I'm using Amazon Linux AMI 2012.3, which is based on CentOS if I'm not mistaken). Here's what I did: I installed mod_ssl & OpenSSL I enabled port 443 on my EC2's instance security gro...
Setup an SSL certificate on an EC2 instance
Our IT department finally pinpointed this to some sort of issue with IPv6 in Ubuntu 18.x, somehow connected to this systemd issue udevd: Could not generate persistent MAC address for $name: No such file or directory #3374 and exists up to systemd version 247, for which there is no update for Ubuntu 18.x In the end, up...
Edit: I've managed to realize that the issue is with bridge networking, as network functionality seems fine with --net=host. docker run -it --net=host busybox ping -c 1 8.8.8.8 works consistently. Looking at this thread on reddit Docker network problem. Only works with --net=host the OP's issue was resolved by uninsta...
Docker networking only works with --net=host
1 We use docker-compose to include our plugin in Jira for testing purposes. You have to map volume from your local plugin file, to Jira's plugins directory, so when it starts, it will automatically pick up your plugin. It looks more or less like this: version: "3.5" service...
I'm looking for a way to run jira inside a docker container and ship (start) all needed plugins with it. My Jira gets restarted quite often so I don't want to install all plugins manually over and over again. Also I would like to avoid using some kind of pipeline after jira is started. As far a I know, Jira plugins ca...
Jira with plugins in 1 docker image
So I finally managed to solve it. I have no idea why COPYing the cron file wasn't working. I still don't know why. (maybe someone smarter than me can explain it). But I solved it very simply by appending my commands to the/etc/crontabfile and now it works.P.S.crontab file requires a new line character at the end so usi...
I am using thephp:7.4-fpmDocker image and I'm trying to set up cron to run but it's not running.Here is my Dockerfile:FROM php:7.4-fpm # Set working directory WORKDIR /var/www # Install dependencies RUN apt-get update && apt-get install -y \ cron \ build-essential \ libpng-dev \ libjpeg62-turbo-dev \ ...
Cron does not run in a PHP Docker container
The config was correct, the issue was because of silly mistake of deploying istio-gateway in default namespace then that of the service app
I have a requirement to configure stickiness, with istio-ingress and following documentation, I have defined my gateway, virtual service and destination rules like belowapiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: app-http-gateway spec: selector: istio: ingressgateway # use istio defau...
Not Able to configure session Affinity via istio-ingress
GitHub associates commits with your account based on the email address in the commit. If the email address in the commit doesn't match any account, then GitHub doesn't associate it with any account and displays the name in the commits, which is what you're seeing here.You should look in the GitHub settings to see what...
I have checked out one of my GitHub repositories with Visual Studio and pushed some changes. It works fine but my username does not register properly with GitHub so the commits show up without my account icon and more annoyingly I can't click on the username to quickly get to the list of commits in a browser window.Her...
How do I register my user name properly with GitHub from Visual Studio
Insert will overwrite an existing cached value with the same Key; Add fails (does nothing) if there is an existing cached value with the same key. So there's a case for saying you should always use Insert since the first time the code runs it will put your object into the cache and when it runs subsequently it will up...
What is the difference between the Cache.Add() and Cache.Insert() methods? In which situations should I use each one?
ASP.NET cache add vs insert
This is the expected behavior. The default plugins packaged with the distribution are installed only the first time, when database is fresh. When connecting to an existing database, the plugins stored in the directory extensions/plugins/ are loaded. In your case this directory is empty. You should be careful that this ...
We have SonarQube 5.3 installed in AWS as a single instance auto scaling group pointed at a Postgres RDS database. When the instance gets destroyed a new instance is automatically stood up and Sonar is installed on the new instance pointed at the database and started back up.When this happens the rules are missing (Ru...
When running SonarQube 5.3 in AWS missing rules after reprovisioning pointing to same Postgres RDS instance
I had the similar issue as I was using Github pages from a different repository (than the parent github.io repo).By changing thebase hrefto the current directory solved the issue.Earlier<base href="/">Change to<base href="./">I referred tohttps://github.com/angular/angular/issues/30835until I arrived at this solution.
I just deployed an Angular 8 project to my Github repository but nothing gets displayed on the Github page but I see an error on the browser console.On Firefox the error says:Loading module from “https://theotherspace.illiteratibooksandcoffee.com/theotherspace/runtime-es2015.27965c48d77c449cb93c.js” was blocked because...
Disallowed MIME type (“text/html”) error - Angular Github pages
I encountered the exact same problem yesterday. I searched a lot and tried a lot, and seem the following strategy works for my case (I'm not 100% sure but it's not reporting the error any longer).1) Downloadhttp://curl.haxx.se/ca/cacert.pemwget http://curl.haxx.se/ca/cacert.pem2) Go to your Python httplib2 dir. Mine is...
I'm trying to make a userless request to the Foursquare API using Mike Lewis' Python wrapper -https://github.com/mLewisLogic/foursquare:client = foursquare.Foursquare(client_id=Client_ID, client_secret=Client_Secret) categs = client.venues.categories()Intermittently, I get a "Error connecting to Foursquare API" msg. R...
python foursquare - SSL3 certificate verify failed
A 502 Bad Gateway error means that your request successfully sent a message to a proxy of some sort, but the server behind it was unable to be reached or sent an invalid response. Like other 5xx errors, it indicates a server-side problem that the client cannot fix independently.I believe GitLab, like many web apps, us...
I was uploading code to my gitlabs repo and I'm receiving this errorCounting objects: 29295, done. Delta compression using up to 4 threads. Compressing objects: 100% (21490/21490), done. Writing objects: 100% (29295/29295), 31.10 MiB | 167.62 MiB/s, done. Total 29295 (delta 6225), reused 29295 (delta 6225) error: RPC f...
error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway fatal
You can create 8 BPP image file data in a memory stream, then load images from that stream. Both BMP, GIF and PNG formatsare supportedon the platform, I think BMP will be the easiest for you to implement. To reduce memory manager stress, reuse the memory stream across frames, just overwrite the image data with the new ...
I'm porting an old DOS game to WP8.1. The DOS game rendered all it's graphics in VGA, which is an 8 bit per pixel graphics mode. A palette maps each of the 256 colors to a specific RGB-triple. Right now I'm manually converting all pixels per frame (60 FPS) via look up table to 32bpp (RGBA), becauseWriteableBitmaponly a...
How can I blit 8bpp paletted (Indexed8) graphics HW-accelerated in WP8.1/WinRT/XAML?
The best way is to usetheEC2.Waiter.InstanceTerminatedwaiter.It pollsEC2.Client.describe_instances()every 15 seconds until a successful state is reached. An error is returned after 40 failed checks.import boto3 client = boto3.client('ec2') waiter = client.get_waiter('instance_terminated') client.terminate_instances(I...
I use the following code to terminate an aws EC2 instance. What is the proper way to check whether the termination is successful?s = boto3.Session(profile_name='dev') ec2 = s.resource('ec2', region_name='us-east-1') ins = ec2.Instance(instance_id) res = ins.terminate()Should I check whetherres['TerminatingInstances'][0...
what's the proper way to check if terminating AWS EC2 instance is successful using boto3?
With your shown samples, please try following. Please keep your .htaccess file inside your root folder.Please make sure to clear your browser cache before testing your URLs.RewriteEngine ON RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^word/(.*)$ word.php?word=$1 [QSA,NC,L] Rewri...
I am trying to rewrite different URLs. The first three lines work, but lower ones do not. I get a 500 Internal Server Error. A snippet of my htaccess file:RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^word/(.*)$ word.php?word=$1 [QSA] RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond ...
Rewriting mulitple URLS
Your problem is cases byserver sideimage caching by GitHub.Add?to the end of image URL - for example:![ETL Diagram](http://www.massstreet.net/documentation-images/etl-framework/ETLDiagram.png?)It willevictthe cache. You may try to remove?once the problem is fixed.
I have a mark down document in GitHub with some images that are hosted on my webserver. I've redone some of the images but the changes aren't reflecting on the page. I have sequence diagram that points to:http://www.massstreet.net/documentation-images/etl-framework/DimensionLoadSequenceDiagram.pngThat's the correct im...
Why is GitHub displaying a non existent image?
Manually run theExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.confstep on the command line and look at the errors. systemd tends to hide useful information in noise.Run this manually:/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.confand fix the configuration errors reported by lighttpd.My guess is t...
Tried starting Lighttpd after editing it:@raspberrypi:/etc/lighttpd/ssl $ systemctl status lighttpd.service ● lighttpd.service - Lighttpd Daemon Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2023-01-10 14:36:35 CET; 11s ago ...
Failed to start Lighttpd Daemon
The error you described is the error you get when you try tofetch/push/pushwithout the right keys.In your case it looks like your key wasrevoke- become inactive.I could not find any documentation about it ingithuband according to their docs there is no way torevokethe key manually.The solution you followed is the right...
I have two github accounts and i hadn't used one of them for a while.Today i decided to add some refs to it, but in my github settings, ssh key became grey for some reason, so i couldn't push successfully.I had to create new ssh key because of that.How do i avoid this problem in the future?ERROR was: Permission to one-...
Why one of my ssh keys on github became grey(it was green) and doesn't work anymore?
You could use printf(..) but only for cc2.x or higher.You could read more about this in the CUDA programming guide Appendix B.16.
My matrix addition example:__global__ void matrix_add(float *a, float*b, float *c, int N) { int index; int Row = blockIdx.y * blockDim.y + threadIdx.y; int Col = blockIdx.x * blockDim.x + threadIdx.x; int index = Row * N + Col; // N is the order of the square matrix cd[index]= ad[index] + bd[...
Can we use printf or any other similar function in a CUDA Kernel?
Amazon Lambda functions are not available to the public without authorization. Invoking Lambda requires AWS credentials. Unauthenticated users cannot directly access Lambda. The exception is if you are using API Gateway in front of your Lambda functions.Access to AWS Lambda requires credentials that AWS can use to auth...
I would like to secure apublic lambdaonmy website. The users willnot be authenticatedwhen they access it. Any ideas how to do this ?Jim
How to secure a publicly available lambda function?
I had the same error, I've got rid of it providing my AWS credentials for programmatic access (AWS Access Key ID, AWS Secret Access Key):$ aws configureNext time I usedeksctlit just didn't try to authenticate on its own and command passed.
Unable to create AWS EKS cluster with eksctl from Windows 10 PC. Here is the command which I'm executingeksctl create cluster --name revit --version 1.17 --region ap-southeast-2 --fargateVersion of eksctl: 0.25.0AWS CLI Version: aws-cli/2.0.38 Python/3.7.7 Windows/10 exe/AMD64Error on executing create cluster command20...
Unable to create AWS EKS cluster with eksctl
We had the same problem on an AWS Linux box. We corrected it by assigning aelastic IPto the instance and then we could access it via the Elastic IP.Before doing that, you can do one more test for configuration issue by trying the public DNS for the instance: ec2-{IP}.compute-1.amazonaws.com:8080/geoserver/web/Hope this...
I'm running GeoServer 2.7.2 on Windows 2012 server in Amazon EC2 instance. I can't connect to public ip address usinghttp://x.x.x.x:8080/geoserver/web/.I can remote into the server using RDP and connect usinghttp://localhost:8080/geoserver/web/just fine. But it will not connect using the public ip address.I added port ...
Public connection to GeoServer blocked on Amazon EC2 Instance
The reason to go with custom database cache are:More control on how and when the cache expireThe data are too many (more than 10Mg) *Need to keep them for too much time (days or months) *Access to the cache data on code behind (for any reason)In your case, you only need to expire it soon, I think the data are small (le...
I'm going to cache some RSS data from other websites to my server and update caches every 10 minutes. Should I use Asp.net system.web.caching or cache in database or file?P.S: when a user requests a feed on my client application, my server downloads it from server. And in the next 10 minutes, if another user requests ...
Asp.net cache or manual caching
In order to show how I managed to solve my issue with the hope of helping others, Here I post it as an answer to my own question:I got around the problem by usingsystem-wide crontab(/etc/crontab) instead ofper user crontab(crontab -e).To clarify this,/etc/crontabis thesystem-widecrontab:# m h dom mon dow user comm...
I'm new to Linux and I've been struggling with this issue for a while in my Raspberry Pi and had no success.First I wrote a simple script in/home/myfile.shlike this:#!/bin/bash clear echo "hi"Then I did thesudo chmod 755 /home/myfile.shto grant the permissions.And finally I modified thecrontabusingcrontab -e:# some com...
Crontab in Raspberry pi doesn't run a very simple script
The directives of the rewrite module are executed in order, so the entire process can be accomplished with rewrite and return directives alone, without wrapping them within location blocks. For example: server { ... rewrite ^/old-path/ https://www.newdomain.com/newpath/ permanent; rewrite ^/... https...
I have thousands of pages to 301 redirect in nginx. I can achieve this using return 301 https://www.newdomain.com$request_uri; However, there is approximately 6 pages that I would like to redirect to a changed slug/path on the new domain, eg location /old-path/ { rewrite ^ https://www.newdomain.com/newpath/ per...
301 Redirect Specific Pages in Nginx BEFORE Redirecting Entire Domain/Catch All
Send the contents of id_rsa.pub or the file id_rsa.pub itself. Either way. (Also: Remember never to send your private key.)
I just set up Github and generated my ssh keys. I need to give my public rsa to somebody so they can allow me access to their git repo. Do I send them a) my entire .pub file, b) the contents of the .pub file, or c) the key that i see if i log in to Github and go to ssh keys(looks like: id_rsa (22:ac:74:6b:a7:d9:14:...
how to send somebody my (already generated) github public rsa key(send the key or the .pub file?)
You can try catchingclient.exceptions.ParameterNotFound:client = get_boto3_client('ssm', 'us-east-1') try: response = client.get_parameter(Name='my_param_name',WithDecryption=True) except client.exceptions.ParameterNotFound: logging.error("not found")
I am using a simple boto3 script to retrieve a parameter from SSM param store in my aws account. The python script looks like below:client = get_boto3_client('ssm', 'us-east-1') try: response = client.get_parameter(Name='my_param_name',WithDecryption=True) except Exception as e: logging.error("retrieve param er...
Boto3 AWS API error responses for SSM
You can ignore the transaction log files for all intents and purposes, if you don't want to use them for log shipping or as part of your backup strategy.Transaction log files serve two purposes, and by far the most important is to maintain data integrity in the event of a crash (and for short term transaction managemen...
How critical are transaction logs after a full backup of a SQL2005 database?Example: I have a database calledTestand I don't care about point in time recovery using transaction logs except that I might want to revert back to the database version taken at the time of the last FULL backup.Now, in the backups directory I ...
How critical are transaction logs after a full backup of a SQL2005 database?
You're missing a question mark. It's?<path>not<path>ShareFollowansweredSep 8, 2022 at 19:02palindromeotter33palindromeotter3315633 bronze badgesAdd a comment|
I am attempting to convert all traffic to its "matching" internal equivalent, and proxy the traffic via this new internal URL.For example,http://external.com/image/blue.pngwill map tohttp://image.internal.com/blue.pngI have followed the guidehereto attempt to set this up via nginx, however I am receiving the following ...
Dynamically proxy to subdomain according to path with nginx?
by looking at your output, I think your containers are crashing. first pod crashed 993 times and the second one crashed 87 times. You can check logs of the containers/events of the podskubectl logs {{podname}}: for pod logskubectl describe pod {{podname}}for detailed description.As suggested by @mdaniel in comment chec...
My goal is to list environment variables in my wordpress podkubectl get pods wordpress-77f45f895-lxh5t 1/1 Running 993 92d wordpress-mysql-7d4fc77fdc-x4bfm 1/1 Running 87 92dAlthough the pod is runningkubectl exec wordpress-77f45f895-lxh5t env error: unable t...
error: unable to upgrade connection: container not found ("wordpress")
You are disallowing anonymous access by settinganonymous: false, that is why the access_control will not go into effect. The simplest solution is probably to just change that setting toanonymous: ~, since your fallback access control for^/someareawill ensure that no anonymous user is allowed.Another solution would be t...
I want to protect by the firewall and so by login / session an application area in Symfony 3:security: firewalls: seller: pattern: ^/somearea form_login: login_path: /somearea/login check_path: /somearea/login logout: pat...
Symfony 3 firewall protected area confusion
So if SQL Server has it's own cache, what is the benefit of an external Memcached (or similar) server? Yes SQL Server has its own cache but he caches only: - Query plans - pages from the database files but he does NOT cache: - results from a query e.g. you have a complex query which uses some aggregation on a lot ...
I've been reading a lot of articles that suggest putting a Memcached (or Velocity, etc) in front of a database is more efficient than hitting the database directly. It will reduce the number of hits on the database by looking up the data in a memory cache, which is faster than hitting the database. However, SQL Serve...
Memcached vs SQL Server cache
clusterip will change if pod restart or recreate it's better to use service name.Kubernetes Services :https://kubernetes.io/docs/concepts/services-networking/service/you can check mysql running example :https://kubernetes.io/docs/tasks/run-application/run-single-instance-stateful-application/example service yaml:apiVer...
i have a Kubernetes cluster on Azure, in that i have created MySQL pod and Django pod. I have exposed MySQL pod as service and trying to connect from Django. I have given service name in settings.py file in Django and tried to run "runserver" then i am getting below error.OperationalError: (2003, "Can't connect to MySQ...
Django not able to connect to MySQL pod over both cluster IP and Nodeport in AKS cluster
The problem has to do with the multiarray.so file which was complied on my local computer's architecture. Spin up an ec2 instance and create your virtualenv with the necessary dependencies. This will cause it to compile with the correct architecture as used by Aws lambda. Then download your virtualenv from the ec2 ins...
Using aws lambda I am receiving the following error when the script is run with the numpy module: Unable to import module 'process': /var/task/numpy/core/multiarray.so: invalid ELF header Is this problem related to numpy itself or numpy specifically on aws lambda. What is an invalid ELF header? Edit: I believe thi...
aws - "Unable to import module 'process': /var/task/numpy/core/multiarray.so: invalid ELF header"
First, Sonar is using Cobertura by default (JaCoCo will be the default one in Sonar 3.2 that will ship during summer 2012).Then, what makes you think that on the 1rst line you get 75% of coverage while you would have nothing on the 2nd line?
I have a question forCode coveragewith Sonar.In this example :public static void apply(Person person) { if (person != null) { callApply(person); } }In my SonarCode coverage, i have the following result :if (person != null) => hit=(10) % = (75%) callApply(person); => hit(10) % =()I don't ...
Code coverage with Sonar : % code coverage not coherent
I'm not familiar enough with ruby to give a proper answer but it sounds like there's some kind of environment variable set in your bash shell login that is not getting set during cron execution.You can set environment variables above your cronjob likePATH="/path/to/gems;$PATH" 0,2 * * * * /bin/bash -l -c ' ..... '
I am running a docker image (with cron already installed) with rails. Everything is running fine, except I'm trying to add a cron job which works as a command, but is giving me an error when adding to crontab.The following command is:0,2 * * * * /bin/bash -l -c 'cd /app && bin/rails runner -e production '\''Statistic.c...
Command works on bash but not on cron
1 I received an answer form forums.docker.com: https://forums.docker.com/t/how-can-i-run-docker-containers-in-detached-mode-within-a-committed-image/255 My commited image still have the apache pid on the FS which introduce the log "https (pid 1) already running". I should m...
I have pulled an image called php:5.6-apache, run it, touch a file in /var/www/html, then commit it. Then I try to run the new image in detached mode: # docker run --name test -d staraple/php:v1 But the container exited immediately after started. IMAGE COMMAND CREATED STATU...
how can I run docker containers in detached mode within a committed image
Yes, definitely use $this. A new jQuery object must be constructed each time you use $(this), while $this keeps the same object for reuse. A performance test shows that $(this) is significantly slower than $this. However, as both are performing millions of operations a second, it is unlikely either will have any real...
Assume I have the following example: Example One $('.my_Selector_Selected_More_Than_One_Element').each(function() { $(this).stuff(); $(this).moreStuff(); $(this).otherStuff(); $(this).herStuff(); $(this).myStuff(); $(this).theirStuff(); $(this).children().each(function(){ howMuchStu...
Does using $this instead of $(this) provide a performance enhancement?
I have a use case for Rabbit MQ that holds the last valid status of a system. When a new client of that system connects it receives the current status. It is so simple to do! You must use the Last Value Cache custom exchange https://github.com/simonmacmullen/rabbitmq-lvc-plugin Once installed you send all your status...
I am wondering if MQ can be used as a state cache for monitoring? And is this a good idea or not? In theory you can have many sources (monitoring agents) that detect problem states and distribute them to subscribers via an MQ system such as RabbitMQ. But has anyone heard of using MQ systems to cache the state, so when...
MQ Cache? good or bad idea?
This has been answered by me in this question, here's the gist: object = Aws::S3::Object.new(bucket_name: 'target-bucket', key: 'target-key') object.upload_stream do |write_stream| IO.copy_stream(URI.open('http://example.com/file.ext'), write_stream) end This is no 'direct' pull-from-S3, though. At least this doesn...
We need to move our video file storage to AWS S3. The old location is a cdn, so I only have url for each file (1000+ files, > 1TB total file size). Running an upload tool directly on the storage server is not an option. I already created a tool that downloads the file, uploads file to S3 bucket and updates the DB reco...
Upload files to S3 Bucket directly from a url
Got It!I needed to add AllowOverride in httpd-vhosts.conf:<Directory "C:\Site\Root\Path"> AllowOverride All Order Deny,Allow Allow from all </Directory>A gagillion thanks and a 6-pack of beer goes to @parhamr for helping me out of this pickle.
I have WAMP v2.2 installed on my Windows 7 machine, with virtual hosts enabled.I've successfully installed ExpressionEngine for one of my local sites, and everything works great except when I try to removeindex.phpfrom the URL using theapproved.htaccessmethod. I still get a 404 error ifindex.phpis not present, but the ...
Unable to Remove index.php on ExpressionEngine WAMP Installation
You can use rsync to create backup copy of your repo on another machine if you don't need history of backups. rsync works in incremental mode, so bandwidth will be consumed only for sending changed files.I don't think that you need full history of backups as VCS provides its own history management and you need backups ...
Some of our projects are still on cvs. We currently use tar to backup the repository nightly.Here's the question: best practice for backing up a cvs repository?Context: We're combining a several servers across the country onto one central server. The combined repsitory size is 14gb. (yes this is high, most likely due...
best practice for backing up cvs repository?
You can filter your pull requests based on the commit SHA - seehereIf you know the specific SHA hash of a commit, you can use it to search for pull requests that contain that SHA. Note that the SHA syntax must be at least seven characters.For example:e1109abMatches pull requests with a commit SHA that starts withe1109a...
I'm trying to find a past pull request to see which comments / actions were made on a particular issue.I know the file and the change, so I can get to the commit that introduced it by looking at the blame view. However I can't find a way to look at the pull request that pushed that commit to the branch for the first ti...
GitHub - Find the pull request associated with a commit
5 +50 The issue that you are facing is Memory leak What is it? In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in such a way that memory which is...
When application is in use for few minutes then it slowly increases the Used memory value and decreases Free memory value. Application get very slow after few minutes. Why isn't it releasing the memory. System configuration : CPU : Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz (No. of processors : 4 / No. of cpu core...
Memory usages high - Slow application response : Used memory value not decreasing + Free memory value not increasing
This is a classic issue:(picture fromLuis Tubes'sblog post)The usual fix is to convert those files yourself, withdos2unixorSwiss File Knife.I have always preferred tokeepcore.autocrlftofalse, which means:git config --global core.autocrlf false
I'm using Ubuntu 13.10 x64, and I am working on a project that some developers are using Windows , I recently changed the git configcore.eolto "lf" andcore.autocrlfto "input" andcore.safecrlfto "true". Since then, when I try to commit file into my local repository, I get this error:fatal: CRLF would be replaced by LF i...
What is the effect of 'fatal: LF would be replaced by CRLF' in my source code? [duplicate]
Try putting rdiff-backup.exe into C:\Windows\SysWOW64. You are experiencing Windows on Windows which causes path redirection for 32-bit processes running on a 64-bit OS.
I'm trying to run rdiff-backup under Windows 8 x64 which is written in python and apparently uses py2exe to create a Windows executable. It's written at their website that the Visual C++ 2008 redistributable is required which I installed (x86 and x64). Now, when running rdiff-backup.exe -V from any directory, it gives...
py2exe in C:\Windows\System32 on 64-bit Windows
The awscli supports two groups of S3 actions: s3 and s3api. You can use aws s3api put-object-acl to set the ACL permissions on an existing object. The logic behind there being two sets of actions is as follows: s3: high-level abstractions with file system-like features such as ls, cp, sync s3api: one-to-one with the ...
I am new to the aws cli and I've spent a fair amount of time in the documentation but I can't figure out how to set permissions on files after I've uploaded them. So if I uploaded a file with: aws s3 cp assets/js/d3-4.3.0.js s3://example.example.com/assets/js/ and didn't set access permissions, I need a way to set the...
How do I use the aws cli to set permissions on files in an S3 bucket?
It sounds to me like your load balancer is working correctly. When traffic comes into a LB the LB will automatically direct traffic to the first available node. The fact that you can shutdown your POD and traffic is rerouted is what would be expected.This is a good article which helps explain how the LB workshttps://bl...
I have a service configured as a LoadBalancer running on a five-node cluster running 1.9.11. The LoadBalancer sits in front of three pods running an ASP.NET Core web application (that in turn talks to a NATS message queue from which a listener retrieves messages and saves them to an Azure SQL database). All pods have r...
AKS LoadBalancer only sends traffic to one pod
78 I know this is old questions but since I too have the same problem just now and found out the answer, thought I might share it. The problem was due to configuration at pool.d/ directory. Open /etc/php5/fpm/pool.d/www.conf find listen = 127.0.0.1:9000 change to listen...
I'm running Wordpress with: Nginx + PHP-FPM + APC + W3 Total Cache + PageSpeed. After 3 days researching and configuring, I succeeded to make it work. I configured PHP-FPM to run via 127.0.0.1:9000. But now I want to configure via Socket. The problem is that I can't find the socket path in my server. I just found /va...
How to find my php-fpm.sock?
TheSpring Boot documentation on setting propertiesnotes that the "spelling" of environment variables must beEnvironment Variables: Upper case format with underscore as the delimiter.So you should be able to setenvironment: COM_SOMESITE_APIKEY: 98798709089
I need to set environment variable with name likecom.somesite.apikey. I was trying these variants im mydoccker-compose.ymlenvironment: com.somesite.apikey: 98989897979 com_somesite_apikey: 98798709089But methodSystem.getProperty("com.somesite.apikey")returns empty. Can anyone help me with this issue?
How to set property name with dot from docker compose?
Currently the output ofwhois stagesz.comis clearly showing the old NS records. This is because creating a Route 53 hosted zone doesn't automatically change the domain registration settings.Based on your whois data and your question, you are using Amazon itself as your registrar. In that case, you need to change the NS ...
I recently purchased a new domain (stagesz.com) in AWS route53 and deleted the original hosted zone then created a new one and now when I check the ns records at a service likehttps://www.websitepulse.com/tools/ns-records-lookup-test#it shows a different group of records than what's listed in the route53 hosted zone.DN...
NS records in Route53 not updating
The directory/var/lib/containerd/io.containerd.snapshotter.v1.overlayfsis where the various container and image layers are persisted by containerd. These layers are downloaded based on the containers running on the node. If we start running out of space, the kubelet has the ability to garbage collected unused images - ...
Today I found the host kubernetes(v1.21.3) folderio.containerd.snapshotter.v1.overlayfstakes too much spaces:[root@k8smasterone kubernetes.io~nfs]# pwd /var/lib/kubelet/pods/8aafe99f-53c1-4bec-8cb8-abd09af1448f/volumes/kubernetes.io~nfs [root@k8smasterone kubernetes.io~nfs]# duc ls -Fg /var/lib/containerd/io.containerd...
is it possible to shrink the spaces of io.containerd.snapshotter.v1.overlayfs folder in kubernetes
Sanjay's answer is correct however if it doesn't solve the problem I would guess you have a recursion somewhere in your code leading to a stack overflow. Many J2ME VM's fail in triggering the stack overflow exception and instead throw an out of memory error.Just use a debugger and walk over the code to see the recursio...
I am developing an app in Java ME using Netbeans IDE, where I'm creating 3 Forms which containsButton,Command(OK and back) andImagein the 1stForm.Using OKCommandI can transfer the control to the 2nd form. This worksIn 2ndFormI have 2CommandOK and Back. On click of OK it should go to the 3rdForm. On click of back it sho...
LWUIT- out of memory exception in JavaME
standard ssl certs are JUST as secure, cryptographically, as the premium ones. The same algorithms/keys are used. The premiums just cost more because, supposedly, the certificate authority has spent a few extra microseconds pretending that they've verified your identity. It's mostly just a marketing ploy to suck extra ...
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed12 years ago.Improve this questionMy web application most definately needs an SSL certificateI was looking into godaddy's:http://www.godaddy.com/ssl/ssl-certif...
Comparison of SSL Certificates [closed]
As their name suggest, kernel threads work in kernel mode, so its stack is referenced by a CPU register (i.e: ss, ebp). Open files references (as any other process) are kept in the process descriptor field struct files_struct *files. They have nothing to do with memory descriptors. For regular process, the fields mm a...
I read that linux kernel threads don't have their own address space, their mm field is set to NULL. I know that all kernel threads share address space, but still, they have their own stack right? They need to somehow describe that field, and without mm, how to they do that? and other lists like open files, where do th...
Linux kernel thread address space
I had the exact same problem and it was driving me crazy!Put all your hosts file entries for localhost into one line like so:127.0.0.1 localhost myproject.dev myotherproject.dev ::1 localhost fe80::1%lo0 localhostWorked like a charm for me. Seems like a bug in Lion.
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly.If I leave it untouched for a couple of minute...
How can I eliminate slow resolving/loading of localhost/virtualhost (a 2-3 second lag) on Mac OS X Lion?
0 1) I run "chkdsk /F" 2) reboot my computer 3) run "C:\MariaDB\bin mysql.exe -uroot -p < full_db_backup.sql" Now, it works. My speculation is that is something related to hardware. ErrorCode 22 might not be an MariaDB error code at all. It is some OS errorcode passed to M...
I run the following to dump full database C:\MariaDB\bin mysqldump.exe -uroot -p --single-transaction --flush-logs --master-data=2 --all-databases > full_db_backup.sql on one computer. Then, on another machine, I reinstall a fresh new MariaDB 10.1.22. And populate this new database instance with the following: C:\Ma...
restoring mariadb using sqldump generated sql file throw errorcode 22
2 If you use wincred for credential.helper, git is storing your credentials in standard windows Credential Manager: Share Improve this answer Follow edited Jul 7, 2016 at 13:18 ByteWelder 5,54411 gol...
I'm using a new Github account with a new username. I have generated the SSH keys for the new acccount on my computer. https://help.github.com/articles/generating-ssh-keys/ When I try to push to a repo in the new account I get remote: Permission to "user name on new account"/repo.git denied to "user name on old a...
Change git accounts - permission denied with old account
By default, they all use std::allocator, which uses standard memory routines to get free heap blocks. There is no pooling involved on this layer. (However, most heap implementations use a dedicated low-fragmentation heap to serve small allocations, and strings are most likely to fall into this category. But this is i...
One thing I've always wondered about is if the instances of std::string that I use in my C++ code use the same allocator or do they have their own separate memory pools? Obviously sharing a single memory pool across multiple, frequently created and destroyed strings is more efficient. Can anyone confirm or deny this f...
Do individual instances of C++ std::string use the same allocator?
I found the solution$encode = hash_hmac('sha1', utf8_encode($string_to_sign), $secret_key);is replaced by$encode = hash_hmac('sha1', utf8_encode($string_to_sign), $secret_key, true );Final script to simulate the example is :$access_key = "AKIAIOSFODNN7EXAMPLE"; $secret_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"...
BackgroundI am trying to create a signed url to fetch a resource from AWS S3. There areseveral examples in aws s3 documentation, and as a first step I am trying to replicate the last example on that page.My code is :$access_key = "AKIAIOSFODNN7EXAMPLE"; $secret_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"; $string_...
AWS S3 QueryString Authorization
You don't have your ssh key set up properly (or at all). You'll need to copy your ssh private key from your old Mac to your new Mac. Everything you need will be in a directory at~/.ssh.One way to copy the folder:http://www.techkaki.com/migrate-ssh-keys-from-one-mac-computer-to-another/If a new ssh key needed, follow th...
I got a new mac, so I copied a file from old mac and pasted into new mac then made some change then enter command "git push" and I get this error message[email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository ...
I get this error[email protected]: Permission denied (publickey), when I git push on new mac
You can check your current public ip by browsing to www.whatismyip.com. then you can configure the webhook to your public ip. since this address is not really you ip address, but instead the router address - you will have to configure port forwarding on that router back to your Jenkins host. The main problem is that yo...
I have aJenkinsinstance on an in-house server. There is no public IP or domain name for the server at this time. Can I still configure a webhook? I don't see how GitHub would ever be able to see and send any kind of message to this server. Do I need to set up a port forward on my top-level router? Is there a secur...
How to configure GitHub Web Hook for Jenkins for inhouse server?
mmapa special file, like/dev/zero(or use MAP_ANONYMOUS) asPROT_NONE, later usemprotectto commit.
Windows has VirtualAlloc, which allows you to reserve a contiguous region of address space, but not actually use any physical memory. Later when you want to use it (or part of it) you call VirtualAlloc again to commit the region of previously reserved pages.This is actually really useful, but I want to eventually port ...
Any way to reserve but not commit memory in linux?
When accessing services outside the kubernetes cluster the source IP will be the regular IP of the node, the application is running on. So there is no difference if you run the application directly on the node ("metal") or inside a container. Kubernetes will select an appropriate node to schedule the container (pod) to...
I have a confusion. When i try to access the services like mysql that are externally hosted or outside the cluster, what will be the source address of the packet that are sent to mysql. To make it simple while creating user in mysql for the api to access it, how do i create it?For example: CREATE USER 'newuser'@'IP or ...
Confusion about kubernetes Networking with external world
The task at hand seems pretty simple and can be daunting but here's the steps:First, go ahead and run the commandgit log --pretty=oneline --abbrev-commitwhich will print out a pretty log of your git commit history, find the ones you want to delete.Run the follow command,git rebase -i HEAD~Xbut replaceXwith the number o...
This question already has answers here:Remove old git commits(6 answers)Closed5 years ago.I already how to reset hard the commits to the exact commit I want, but that is not what I am trying to do here.I'm hoping to delete the 2 bad commits.dfc736cbd4150eWhat is the proper way to do that ?
How to remove old bad commits of the project? [duplicate]
Can you checkmeta-selinuxis included inbblayers.conf. Check yourbuild-***/conf/bblayers.conf. Then include theauditpackage inbuild-***/conf/local.conf.IMAGE_INSTALL_append = " audit"Then buildauditpackage and check its built successfully. Then build the core-image-sato and flash the image.
I have includedmeta-selinuxlayer in my project source code. Asauditis already present inmeta-selinux/recipes-security/audit, have added this audit recipe to my yocto image byIMAGE_INSTALL_append = " audit"in machine specific conf file, but when I compile image(core-image-sato) and flash it on device, I do not see any ...
"audit" doesn't get included in Yocto final image
When you create a cluster you have two options to choose fromA. Release channel [Rapid/Regular/Stable]B. Static version1.How to downgrade GKE master version.Fromdocumentation, it mentions that if you are in release channel [Rapid/Regular/Stable], downgrading is not possible.With static version it is possible to downgra...
I didn't notice my GKE cluster is in Rapid channel. Until today I want to add Node Pool.It showsNode version "1.17.5-gke.6" is unsupported.https://cloud.google.com/kubernetes-engine/docs/release-notes-rapid#may_27_2020My questions are:How to downgrade GKE master versionHow to update a GKE cluster don't use rapid channe...
How can I downgrade GKE master and exit Rapid channel