Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Despite the fact you're hitting a local endpoint that doesn't require credentials the aws cli tool you're using to interact with the dynamoDB-local still looks for values for the expected AWS credentials to sign your requests with. This is what the final point in https://docs.aws.amazon.com/amazondynamodb/latest/devel...
Im trying to run dynamoDB locally in Ubuntu. I have done everything as here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html If I want to check if my database works locally: aws dynamodb list-tables --endpoint-url http://localhost:8000 Im getting: alexa@alexa-VirtualBox:~/Desktop/D...
DynamoDB locally
I can't find the comments link, so post an answer. As Eugen Constantin Dinca said, pipe or redirect just output to the standard input, so what your program need to do is read from standard input.I don't know what "read line by line" mean as you mentioned, something like ftp interactive mode? If that, there should be a ...
I need to write a program that works with input from either a file or the shell (for pipeline processing). What is the most efficient way to deal with this? I essentially need to read the input line by line, but the input might be the output of another program from shell, or a file.Thanks
pipeline input data
GitHub Actions matrix supports now reusable workflows (since 22.08.22):jobs: ReuseableMatrixJobForDeployment: strategy: matrix: target: [dev, stage, prod] uses: octocat/octo-repo/.github/workflows/deployment.yml@main with: target: ${{ matrix.target }}References:GitHub Actions: Improvem...
I've been rooting through the Github Action documentation around re-useable workflows and am attempting to piece together a chain of matrices.My pseudo workflow looks something like the following steps.Job 1: Figure out files changed under a path & output them as jsonJob 2: Iterate the file list as a matrix and invoke ...
Github Action use matrices with reuse-able workflow
I was able to make it work by running the cppcheck tool independently before sonnar-runner, and placing the generated xml report in the bin folder of sonnar-runner.In the sonar-project.properties file I've specified the xml directly: sonar.cxx.cppcheck.reportPath=cppcheck-result-1.xmlShareFollowansweredJun 10, 2013 at ...
I'm trying to use sonar for static analysis on a c++ code. I've installed sonar and configured my project (it appears on the localhost sonar page, but i do not see any code violation for the respective code). I have the C++ community plugin installed.My sonar-project.properties looks like this:# required metadata sonar...
How to make sonar analysis for C++ work?
Pre Token Generation is currently not available in theUserPool LambdaConfigand hencenot supported by CloudFormation(which serverless framework use). At the moment it can only be configured via console or AWS CLI.
I have a PreTokenGenerator function which adds an additional claim to the id token.In my serverless.yml I have the following definition.functions: issueAuthToken: handler: src/handlers/cognitoPreToken.handler events: - cognitoUserPool: pool: ${self:provider.stage}-user-pool trigger: PreT...
Serverless framework Cognito Userpool Pre Token Generator
The pop up probably saved it in your git configuration. This can be done global or local per repository. To check if it's within the config use the following commands (for global): git config --global user.name git config --global user.password or the following commands (for local): git config user.name git config us...
I recently wrote the wrong username and password to login to my github account through git bash. I originally tried cloning my git branch when it prompted my login with a pop up. After I got my username and/or password login wrong, when I try cloning again it does not give me the option to login again. I now cannot ...
Retyping Username and Password in Git Bash for Github access
a bit late.. but for anyone that comes here:Salesforce docssays that you should find the named credential "DevOps Center GitHub" in Named Credentials setting. Then Under External Data User Authentications, delete the record for the affected user
I have finally set up Salesforce DevOps Center in production and thought that I had mistakenly authed with my personal Github account when I wanted to auth with my organizations Github account. So, I deleted the OAuth App from my personal account thinking that I could re-auth with the companies account. Instead, I run ...
Re-trigger Github OAuth in Salesforce DevOps Center
You need a new redirect rule before this rule:RewriteEngine On RewriteCond $0#%{REQUEST_URI} ^([^#]*)#(.*)\1$ RewriteRule ^.*$ - [E=BASE:%2] RewriteCond %{THE_REQUEST} /index\.php [NC] RewriteRule ^index\.php(?:/(.*))?$ %{ENV:BASE}$1 [L,R=302,NC,NE] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}...
I am building a site using Slim, which suggests the following.htaccesscode for creating pretty URLs:RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]This means that a URL likehttp://example.com/account/loginwillaliasforhttp://example.com/index.php/account/login, which is then processed by my front con...
301 redirect URLs that are also being rewritten
Run the workers withbundle exec sidekiqYou may need to provide the path to the worker module. For example,bundle exec sidekiq -r ./worker.rbSidekiq by itself doesn't support a:schedule:map entry in theSidekiq configuration file.Periodic jobfunctionality is provided in extensions such assidekiq-scheduler.You need to use...
I'm using Rails 5. I would like to create a sidekiq process running locally using the default queue. My worker class looks roughly like the below ...module Accounting::Workers class FileGenerationWorker include Sidekiq::Worker def perform print "starting work ...\n" ...I have set up my config/s...
How do I view my sidekiq console output locally using the default queue?
I like to work with the combination of 2 tools for finding memory problems 1) VisualVM to get an overview 2) MemoryAnalyzer to find memory leaks. You can analyze thread dump, created with VisualVm.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to ...
Can anyone suggest eclipse tool to analyse java memory usage [closed]
There are mechanisms to introduce the SSL certificates for communication, generally by design interpod communication is kept unencrypted only, as clusters are under a VPN itself of the provider.For security perspective there are pod security policies which helps user to mention whether the user is root user or non-ro...
I am new to kuberenetes and cannot find any information about how secure is the communication between pods. Is it encrypted or not? Is there any mechanism that would block a potential attacker from listening in?
What security mechanism does kubernetes provide for inter pods communication
You can use a development version of the normal appsettings.json file, namedappsettings.Development.json. And hide it using .gitignore.You can add connection string inappsettings.Development.json.Tip:Please check if the structure of the appsettings.json and the appsettings.Development.json are the same. It maybe has a ...
Ideally, I would like to keep my repo public, but the connection string contains sensitive information. Is there any way to hide the string?I was thinking I could store the connection string in GitHub Secrets, but that would leave the question of how to access the value from the program.cs file.
Deployed ASP.Net WebApp via public github repo, is there any way to hide the connection string?
Thanks everyone for your efforts, the issue is now resolved. It was an incorrect firewall rule that was causing this. I asked our network engineer how the firewall setting can alter http response body and following is the reply I got:For certain protocols the firewall does deep-level packet inspection, so rather than...
We are facing a peculiar issue at the moment and we have no clue what is causing this.We have a web-service hosted on serverA. When this web-service is invoked from serverB (using the command, curlhttp://serverA:8008/service/getId), we get the required response. (the web service returns an Id which is an integer).When ...
HttpResponse body is being altered
This is hard to do using kubectl only (or I don't know how). What we usually do is to use the kubelet metric-server to export all metric to prometheus. We then use Grafana to calculate those values. The following metrics should allow you to calculate your values:CPU cores:kube_node_status_allocatable_cpu_cores - availa...
I want to know the share of resource - cpu, memory- per kubernetes's pod. And I want to know what the standard of share is
how to calculate kubernetes s pod cpu and memory share rate
Physical memory is the total RAM on that server has You can compare how much memory is SQL Server service is consuming using: sys.dm_os_sys_info system view committed_kb field and sys.dm_os_performance_counters view cntr_value
How is it that the values of these 2 queries disagree between each other: SELECT [server memory] = physical_memory_in_bytes /1024.00/1024.00/1024.00 FROM sys.dm_os_sys_info; SELECT object_name, cntr_value FROM sys.dm_os_performance_counters WHERE counter_name = 'Total Server Memory (KB)'; they should both be showin...
Total server memory - what is the most accurate way to get it through SQL Server?
You rebased your 'y' commits into 1 using the git rebase command. So now you have all these commits created into 1. Then you undo that and the next previous y commits withgit reset --soft HEAD~yThis step takes your commit and the next y-1 commits and removes them from your local branch's history but leaves the patche...
I recently merged last y commits into one through the following codegit rebase -i HEAD~y--> Then I squash all the y commits into (by editing the file) -->Then I did a reset to the Head usinggit reset --soft HEAD~y-->Then I commited everything by usinggit commitNow my git hub shows I am ahead by 1 commit and behind by y...
ahead by x commits behind by y commits after rebase in GitHub
Sorry for necroing this post, but i had considerable trouble figuring this out, and hence am putting it up for anyone else who might run into it. Basically you have to enable incoming packets (NB response packets) coming from port 137/udp of the responding system. In ubuntu 11.04, using ufw, this can be easily done as:...
I'm using Samba and windbindd on my linux boxes. Without a firewall up on the linux box I have no trouble resolving LAN machine names:user@laptop-linux:~$ ping desktopPING desktop (192.168.1.100) 56(84) bytes of data.64 bytes from 192.168.1.100: icmp_seq=1 ttl=128 time=0.878 mswhen I start the firewall I get:user@lapto...
winbindd fails to resolve local network names when firestarter firewall is up on ubuntu
HostPort (nodes running a pod):Similiar to docker, this will open a port on the node on which the pod is running (this allows you to open port 80 on the host). This is pretty easy to setup an run, however:Don’t specify a hostPort for a Pod unless it is absolutely necessary. When you bind a Pod to a hostPort, it limits ...
Rancher 2 provides 4 options in the "Ports" section when deploying a new workload:NodePortHostPortCluster IPLayer-4 Load BalancerWhat are the differences? Especially between NodePort, HostPort and Cluster IP?
Difference between NodePort, HostPort and Cluster IP
This isn't really legal code.foo()is markedrestrict(amp)which means it can only run inside a C++AMP kernel. Functions markedrestrict(amp)can only be called from code running on an acceleration, in other words from within aparallel_for_eachlambda that is alsorestrict(amp)void foo() restrict(amp) { } void main() { ...
I have:void foo() restrict(amp) { }Now if I do:void main() { foo(); }Will it run on accelerator? If no, how to runfoo()in accelerator without usingparallel_for_eachloop?
Can I call restrict(amp) callable explicitly, ensuring it will run on accelerator
find the commit you want to get back to:$ git log --before="2015-12-01" -n1 commit de4406f26ce506944b2b629890bba9e091468e05 Author: some Author<[email protected]> Date: Mon Nov 30 10:46:21 2015 +0100reset your (local) repository pointer to it:git reset --hard <commit-hash>force² push this to your server(² as you have...
I know various permutations of this questions are floating around, but I haven't been able to uncover anything that addresses my specific issue. The thing is this:I've got a repo hosted on GitHub. It's the origin for two remote repos - one is my dev machine and the other is the server. I made a stupid mistake and had a...
How to truncate or reduce a git repo that's on GitHub
1 My solution is to remove the previous version of the image after building the new one. This ensures that cached images are available to speed up the build, but avoids old images piling up and eating your disk space. This method relies on each version of the image having a...
When building docker images in a continuous integration environment, you quickly run out of disk space and need to remove old images. However, you can't remove all the old images, including intermediate images, because that breaks caching. How do you avoid running out of disk space on your build agents, without breaki...
How to remove old docker images in continuous integration to save disk space
thedocker runcommand supports most ofDockerfilecommands, among which theVOLUMETheVOLUMEinstruction creates a mount point with the specified name and marks it as holding externally mounted volumes from native host or other containers.Thedocker runcommand initializes the newly created volume with any data that exists at ...
On this pagehttps://mherman.org/blog/dockerizing-an-angular-app/,At some point in this tutorial there is this command to launch the container:$ docker run -v ${PWD}:/app -v /app/node_modules -p 4201:4200 --rm example:dev.I don't understand the-v /app/node_modulespart. What is the purpose of-vwhen there are no source an...
'docker run' using mount volume option '-v' with single directory as parameter (no source and destination split with colon mark (":"))
If you are not the owner or a collaborator to the repository you want to push from, you need to:forkthe repository firstchange origin in your local cloned repository to your forked repository (that you own)That is:cd /path/to/local/clone git remote rename origin upstream git remote add origin https://github.com/<me>/my...
I cloned and pulled a repository on a branch develop from github to my local repository and when i tried to 'git push origin develop' it to my repository, it brought the error below:remote: Permission to adex001/Fast-Food-Fast.git denied to dlaw-code. fatal: unable to access 'https://github.com/adex001/Fast-Food-Fast....
Unable to push remote repository to my repo
+50You don't need to make any changes since you are not usingSSLcertificate to connect to RDS. your website will continue to work as it is now without making any changes to your config. But you can consider using SSL to connect to your RDS in order to improve security in the future.
I've received an email from Amazon Web Services regarding certificate rotation. I need to know whether I should make any changes to my EC2 orWeb.configto make it support the new database certificate.Rotating your SSL/TLS certificate:https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rot...
Needed Update to Server or Website to support AWS Certificate Rotation
You can check thisblogwhere they have shown various way to export prometheus metrics to Elasticsearch.You can usemetricbeatas well to get data from prometheus as it provide module for same.Also, if you are using latest version of Elasticsearch then you can explore Elastic Agent and Fleet as well, which haveintegration ...
I want to use Prometheus to monitor Spark (using spark driver API) but I also want to use Kibana for better investigation capabilities. So I want to export those metrics from Prometheus also to Elastic Search as records to show on Kibana.Is it somehow possible?
Exporting metrics from Prometheus to Elastics Search for better monitoring capabilities
You will find answer here:Deny all, allow only one IP through htaccessor you can do it byPHPalso:if your own ip is : 10.233.34.12if($_SERVER['SERVER_ADDR'] != '10.233.34.12'){ header("Location: http://example.com/siteUnderMaintenance.php"); die(); }ShareFolloweditedMay 23, 2017 at 12:16CommunityBot111 silver badgean...
This question already has answers here:Deny all, allow only one IP through htaccess(14 answers)Closed8 years ago.for technical reason and test new features on my PHP website I want to disable access usual users to website temporarily and show a message like'Site is Under Maintenance'.However I want to be able to access...
disabling access to website temporary for all visitors Except myself [duplicate]
Try this: location / { rewrite ^/my_dir/filename.php?parameter=(.*)/$ /my_dir/$1/ permanent; } Or: location /my_dir { rewrite ^/filename.php?parameter=(.*)/$ /$1/ permanent; }
I have an NGINX background on my server. I cannot figure out why my rules doesn't work. How can I redirect or rewrite it so I could open URL with the same content, for example: http://www.example.com/my_dir/value/ If I have this URL, for example: http://www.example.com/my_dir/filename.php?parameter=value I tried som...
NGINX URL with argument rewrite to URL without argument
Use c# code to tell you who much the windows service is consuming. private float GetActuratePrivateWorkingSet(Process currentProcess) { // get the physical mem usage for this process var pc = new PerformanceCounter("Process", "Working Set - Private", currentProcess.ProcessName, true); pc.Ne...
I have a windows service that is eventually throwing an "Out of Memory" exception. It is written in C# and running on Windows 7. Yes, I have read existing questions about this in Stack Overflow as well as other places on the internet. If fact, I found a great article by Eric Lippert called "Out Of Memory" Does Not R...
How to monitor memory alocation from code
Here is the framework exactly for this purpose (CalledDexecutor), You can referthisandthisDzone articles for this use case example. For workflow like usecase referthis.Here is how you can do using Dexecutor.DexecutorConfig<String, String> config = new DexecutorConfig<>(executorService, new TaskProvider()); DefaultDexec...
I have a system that has a bunch of activities (around 40). Each of the activities either call a service or perform some computation. This system has been written in Java. Currently all these activities are executed sequentially and the entire process takes about 2 - 3 seconds. I am trying to optimize the system and tr...
Asynchronous open source workflow software in Java
If you have an Azure Load Balancer (so any kubernetes service with typeLoadBalancer) attached to worker nodes - they will use the first IP attached to the Load Balancer. If not - they will use public IP attached to the VM they run on. If the VM doesnt have a public IP (default for AKS), they will use ethereal IP that m...
We are currently migrating from AWS ECS to Azure Kubernetes Service. Our first step is to first migrate the application code and just leave the database in AWS RDS, for now. Our RDS instance is protected by a security group which only allows connection from a set of IP addresses.When connecting to the RDS instance, wha...
Allow AWS RDS connection from an Azure K8S pods
I solved the problem by setting up a reverse proxy nginx so that it redirects requests coming to the server tolocalhost:5601. These two articles helped me, I hope it helps someone else:https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04https://www.digitalocean.com/community/tutorials/h...
I'm trying to set up an ELK stack on a remote Oracle Cloud server, but I can't access kibana from a browser. Installation using deb package. The version of elasticsearch and kibana I'm installing is 8.2 (in this version, security settings are already enabled by default, including settings and generation of security cer...
Can't access Kibana in browser (ELK 8.2)
No, HPA is not looking at limits at all. You can specify target utilization to any value even higher than 100%.
Say we have the following deployment:apiVersion: apps/v1 kind: Deployment metadata: ... spec: replicas: 2 template: spec: containers: - image: ... ... resources: requests: cpu: 100m memory: 50Mi limits: cpu: 50...
Using Horizontal Pod Autoscaling along with resource requests and limits
The lifetime of the temporary (unless bound to a const&) extends to the end of the full expression. In your case the first line in main. The compiler is allowed to reuse the same memory, but whether it does or not is an implementation detail (i.e. quality of implementation) 12.2 [class.temporary] /3 [...] Temporary o...
Consider the following code: class Test() { public: Test() { memset( buffer, 0, sizeof( buffer ) ); } void Process() { printf( buffer ); } private: char buffer[1000]; }; int main() { Test().Process(); char buffer[1000] = {}; print( buffer ); return 0; } ...
What's the requirement for storage duration of temporaries?
2 No, it's not possible to do this. GitHub doesn't even let you access the merge button until the branch is green with the way you have it configured. Furthermore, the way CI tools work with GitHub is by getting notification of pushes to a pull request. Therefore, the o...
Is it possible to prevent merges of branches on GitHub if CI fails, but not to run CI on every commit? Here's a bit more context. We have a protected master branch on GitHub and a number of short-lived feature branches. You can only merge your branch via a pull request and if it's been approved and the CI passes. The ...
Run GitHub Status Check Before Merge But Not On Every Commit
Yes. You'll want to take a look at theGitHub DB API, which should show you how to communicate with the GitHub API for your particular use cases.ShareFollowansweredJul 8, 2013 at 20:23mipadimipadi404k9090 gold badges525525 silver badges482482 bronze badgesAdd a comment|
I want to build a web application to upload program files and save directly on github. Is it possible to upload files with out having local repository(clone)? Is there a developer API I can use?
Using Github with out local repository
This is because SocketIO uses/socket.iopath by default, so you need to configure Nginx so that it will proxy not only/noderequest, but/socket.iotoo:location ~ ^/(node|socket\.io) { #your proxy directives }(By the way, it looks like you have typos: you wroteproxypass, but the correct form isproxy_pass. The same goes...
I've followedthis tutorialto get Node.js working through Nginx on a two Ubuntu 14.04 servers via private networking (Node.js is on myappserver - accessible via private IP myprivatewebserver and publicly via mypublicappserver - and Nginx on mywebserver). Everything works fine til this point - I can access a node.js app...
"Cannot GET" on reverse proxy from Nginx to socket.io on express.js
I noticed that I can still use my old x509certificate to decrypt data encrypted with the new certificate.what kind of data you encrypt and decrypt using SSL certificate? SSL certificate MUST NOT be used in any other scenario except protecting SSL/TLS connections. Data encryption certificate is a different entity/certif...
I have an SSL certificate that is about to expire. I have used the same CSR to apply for a renewal and have been provided with a new SSL certificate containing the public key. I noticed that I can still use my old x509certificate to decrypt data encrypted with the new certificate.Do I need to replace the certificate I ...
Can a x509Certificate still be used for decryption after the NotAfter has elapsed?
In your second instance you are trying to connect to mongo on the wrong port. application.property should be: spring.data.mongodb.uri=mongodb://mongovf:27017/tsp In a docker compose context, you connect directly to containers without going through the docker host. This is why you have to connect directly to the conta...
I have a spring boot application which connects to a Mongo database. I have created a docker-compose file. The spring boot application has two instances. First instance runs on 8080 and 27017, which works perfectly fine. Now the second instance runs on 8083 and 27018. I can easily connect to 27017 and 27018 through Mo...
Exception opening socket exception when trying to connect docker container to mongodb
If you get a reasonable amount of daily visitors you could also let a hit activate a certain script once a month for example: (I use this method to record some info about my site daily at 23h30)
On the code above im able to have an interval until 60 Hours if the script is loaded every minute. In other words, the script above will be loaded by a cronjob every minute.Since the users that will use this may use hosting that do not have rights to set Cronjobs, I need to make this script only with PHP.How can I do i...
Php - Set time interval to run a script
I had this same issue and the cause was a slash '/' at the end of the SonarQube Server URL.Issue:“Sonar Quality Gates Plugin throwing numberFormatException” when adding Quality Gate SonarQube plugin to Post-build Actions.Cause:The SonarQube Server URL in Manage Jenkins >> Configure System >> Quality Gates – SonarQube ...
following the set up as provided inhttps://github.com/jenkinsci/sonar-quality-gates-plugin, while adding the post-build-step with the project key, I am facing the following error:> java.lang.NumberFormatException:For input string: "<!DOCTYPE > html><html lang="en"><head><meta http-equiv="content-type" > content="text/...
Sonar Quality Gates Plugin throwing numberFormatException
Cloning a repo won't duplicate all the remote branches on the local repo: for a large remote repo with a lot of branches, that would pollute your local namespace with tons of branches. I have a one-liner command in order to create local branches tracking all the remote branches of a remote repo, but this is usually no...
I forked a repo from Github. On doing git remote -v it displays: origin https://github.com/myusername/moodle.git (fetch) origin https://github.com/myusername/moodle.git (push) upstream https://github.com/moodle/moodle.git (fetch) upstream https://github.com/moodle/moodle.git (push) The moodle.git has about 10...
Git is not showing all branches on local
3 Github suggests the easiest way is using a program called BFG repo cleaner. Using the BFG The BFG Repo-Cleaner is a faster, simpler alternative to git filter-branch for removing unwanted data. For example, to remove your file with sensitive data and leave your latest...
Say I have sensitive info, such as a corporate IP address in a Git commit, in fact perhaps 100s of commits. Is there a way to remove/replace that token from all commits using a Git command?
Removing sensitive info from all Git commits
Yes and no. What you can't do is execute docker run to run a container within the context of the Lambda call. But you can trigger a task on ECS to be executed. For this to work, you need to have a cluster set up on ECS, which means you need to pay for at least one EC2 instance. Because of that, it might be better to n...
I have a Java standalone application which I have dockerized. I want to run this docker everytime an object is put into S3 storage. On way is to do it via AWS batch which I am trying to avoid. Is there a direct and easy way to call docker run from a lambda?
Is it possible to directly call docker run from AWS lambda
I think, this project fits my need: http://renard.github.com/o-blog/ https://github.com/renard/o-blog
I Love org-mode! I tried to create my personal pages using org-export-html. Org-mode can export latex-math using mathjax very well, and many many other feathers. I love that! I want a tidy and beautiful personal site integrated with wiki and blogs hosting on github. How to configure org-mode to build such a wiki+blog ...
How to create a personal wiki+blog on github using org-mode?
If the transformation can be represented as complex queryset, you could evaluate it in template w/o caching in view. If not, you coulddo the logic in template tag inside cache blockwrap logic and pass it to render, typically in the form of closure or model methodonly do view cache, as long as rendering process is simpl...
I started profiling my app and discovered that there's a piece of code that takes a significantly longer amount of time to complete than others. In the view, I'm retrieving some data from a database and transforming it a little bit. In the template, there's a filter that will take this transformed data and convert into...
Django Caching - How do I set up my code to avoid duplicating cache logic?
You've created a property for cellImage, but you're setting it using the instance variable instead of the setter which has been created for you. Since you're passing in an autoreleased object, there is a possibility that it's been released when you try to reference it next time. Try using this below: [self setCellIm...
I am building a small iPhone only application (iOS SDK 6.0) and I am getting EXC_BAD_ACCESS exception in XCode. The application has UITableView with custom UITableViewCell. I have implemented the UITableViewCell in a subclass (I call it MyCustomCell here) and added another parameter to the constructor: - (id)initWithS...
iOS: UIImage EXC_BAD_ACCESS
SQS is a simple queuing service. It doesn't support many higher level abstractions like message routing, fan-outs, distribution lists etc. It is a queue - a message is produced, and a message is delivered. It is useful when you need a queue with limited backing logic. Amazon MQ is a managed broker service (i.e. Apac...
I am a newbie to AWS. As I understand, both Amazon MQ and Amazon SQS are message queue tools. The only noted difference is that SQS is fully managed. When should we use SQS or MQ?
What is the difference between Amazon MQ and SQS?
Many people try to simplify the way of deploying applications on Kubernetes, that helps developers to achieve better continuous deployment pipelines. These tools normally try to target the most common use cases where most of the applications would fall into, like automatically creating a Deployment, a Service and some ...
Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed2 years ago.Improve this questionTrying to get a sense of whether it makes sense to run something more abstract over kub...
Can you run a PaaS on top of kubernetes? [closed]
0 In my case, reinstalling the GPU driver and reinstalling CUDA solved the issue. Share Improve this answer Follow answered Nov 15, 2021 at 17:34 TidesTides 1111111 bronze badges ...
I installed Cuda 11.2 on a Nvidia Quadro P2000 GPU. The driver version is R460 U5 (461.92). Unfortunately, after executing nvidia-smi, it shows me the following screen: ... +-----------------------------------------------------------------------------+ | Processes: ...
Nvidia-smi shows internal error after 11.2 Cuda installation on P2000 GPU
Instead of: ./vendor/bin/sail up ❌ Use this: bash ./vendor/laravel/sail/bin/sail up ✅
I am following this tutorial, I installed Docker and WSL2(Ubuntu 20.04.4 LTS) on my windows system, as shown in image below, When i am trying to run Laravel project using command, ./vendor/bin/sail up Why i am getting error no such file or directory found?
Laravel error: Laravel Sail no such File or directory found
You ask for a const string&, but pass in a const char*. The compiler thus needs to create a temporary object of the correct type. The fact that "position" is not an std::string but a char const* is more of a historical accident (inherited from C, when there was no string class in C++) than a design decision, but somet...
I have his code: int setAttrib(const string& name, int components){ // here I don't even touch 'name' if(components == 2) return 3; else return 1; } And I call the function this way: setAttrib("position", 3); I'm profiling memory with xcode profiler and in the function call std::string is making an a...
c++ Why is memory allocated when passing a string literal to a function?
The Serverless Framework uses its own syntax, which is different from SAM (althoughcanbe compiled down to SAM or raw CloudFormation).You can find the SAM specificationhere.It's not explicit, but all you need to do is use the{path-name}syntax. AddingRequest/Parametersis not required (or supported).For example:Ratings: ...
How do I add a (path) parameter to lambda function events using cloud formation templates?Strangely using:DeleteItem: Type: Api Properties: Path: /item/{id} Method: delete Request: Parameters: Paths: id: trueworks using aw...
Adding parameters to aws lambda events using templates
Isn't your access_log also defined in a server block ? Have a look at the default config in nginx/sites-enabled/. In this case the value in http block is overwritten by the one in the lower block.
I can't get any changes in the /etc/nginx/nginx.conf http block to be used. I'm starting with the simplest thing - I want to modify the name of access.log to something else (ie a.log). It is a vanilla nginx install (no custom config files yet). Here's what I know:changing a value in the head of nginx.conf does affect ...
Changing Nginx Log File Location
Since Ansible 2.0 you have thecronvarcommand:# modify /etc/cron.d/sweep_for_rebel_code - cronvar: name: MAILTO value:[email protected]cron_file: sweep_for_rebel_codeSee the official documentation athttps://docs.ansible.com/ansible/latest/modules/cronvar_module.htmlShareFolloweditedAug 25, 2020 at 13:02Stijn Die...
I'm using Ansible to create a cron.d file using the cron_file parameter.But how can I add a MAILTO to the file?It seems the env=true is only for crontab, not cron.d files. Am I wrong?
How to add MAILTO to a cron.d cron_file in Ansible?
The difference in the workflows depends on the access to the original repository. In both cases, in order to submit code, you generally still need to clone the repository so you can work on it locally, although you can avoid this if you really want to. To illustrate the differnce, I am a collaborator on the Git LFS r...
I was learning about different GitHub workflows and I ran into this question that I could not find the answer to. What is the reasoning for adding this functionality in GitHub instead of allowing everybody to branch directly from origin and contribute to the project that way?
Why are collaborators allowed to create a branch then make pull requests, while contributors need to fork, clone, then branch to make pull requests?
The only thing that worked for me was changing the .bashrc on my Linux box to have export _JAVA_OPTIONS='-XX:MaxPermSize=512m' Proof that this got detected by gradle when I built was shown with this message: Picked up _JAVA_OPTIONS: -XX:MaxPermSize=512m
I'm getting the following trying to run Cobertura as part of my Gradle build. :cobertura Instrumenting classes for Cobertura Exception in thread "Test worker" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space I've tried bumping up DEFAULT_JVM_OPTS/-XX:MaxPermSize in my gradle wrapper...
Increasing permgen space for Cobertura ant task running from Gradle
There is special headers called X-Accel-.... You need X-Accel-Redirect.
nginx server serves http://server1.com, http://server2.com and http://server3.com. nginx upstreams request process to some ruby code. server1.com, server2.com and server3.com are actually some static files stored on amazon s3. I want to do next: find bucket name for 'server1' host, put in db some logs and notify nginx...
is there a way to fallback nginx proxy_pass if header set
you should have a look atNSURLRequestCachePolicyenum, here 0 mean is NSURLRequestUseProtocolCachePolicy, that means NSURLRequest would not load data from server every time.enum { NSURLRequestUseProtocolCachePolicy = 0, NSURLRequestReloadIgnoringLocalCacheData = 1, NSURLRequestReloadIgnoringLocalAndRemoteCacheD...
I am doing a connection to the NSURL and I need to create a request to bypass all the cache policy. I have seen examples such as :NSURLRequest *request = [NSURLRequest requestWithURL:baseURL cachePolicy:0 timeoutInterval:10]; self.urlConnection = [[[NSURLConnection alloc] initWithRequest:request delegate:self] autorele...
iOS Cache Policy
RESOLVED. I deleted and recloned the directory now that I have collaborator permissions. This was definitely the way to go because it removed the failed ssh keys and all of the different configurations I'd been experimenting with. Once everything was recloned, I re-made my directory, put a blank file in it, git added ...
I have cloned a repository created by a professor on my virtual machine (I'm running Ubuntu 13.10) and we're supposed to create personal folders. I created mine, but I cannot for the life of me commit and push it to make it show up on GitHub. I swear I have tried every answer on here, and things have improved somewhat...
How can I commit and push to someone else's repository on GitHub?
Theaws php client documentationstates:The SDK uses the getenv() function to look for the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN environment variables.=> it usesgetenv()not$_ENV.But the Symfony Dotenv component (by default) just populates$_ENVand doesn't callputenvtherefore your settings in .env...
In a Symfony 4.3 application using symfony/dotenv 4.3.11 and aws/aws-sdk-php 3.173.13:I'd like to authenticate the AWS SDK using credentials provided via environment variables, and I'd like to use the dotenv component to provide those environment variables.This should be possible: Setting the AWS_ACCESS_KEY_ID and AWS_...
Provide the AWS PHP SDK with credentials via Symfony DotEnv
I can explain what's happening and why this works, but I still think this configuration doesn't make sense.The Deployment creates a Pod that runs InfluxDB which listens by default on port 8086. ThecontainerPorthere is purely informational, see the following from thePod spec reference:primarily informational. Not specif...
I have 2 pods created. one is grafana and another is influx pod. I need to configure influx in grafana. I did see the below example. I got bit confused by the way its configured. Below is deployment and service file.apiVersion: extensions/v1beta1 kind: Deployment metadata: name: influxdb labels: app: influxdb s...
Access pod from another pod kubernetes
In a.htaccessfile, you can use this to define a specific file that will be auto-prepended, in a directory :php_value auto_prepend_file "prepend.php"So, I suppose you could use this to de-activate auto-prepending in a directory :php_value auto_prepend_file noneNote I am using the special value "none", as explained in th...
I'm using auto_prepend on my website, however I don't want it to be used in every folder. How can I stop php from auto_prepending a file within certain folders using .htaccess? (It doesn't have to be .htacces, I can use any other method but I thought I'd start with .htaccess)ps - I'm using the auto_prepend in php.ini ...
How can I disable auto_prepend in specific folders using htaccess?
# Enable RewriteEngine to rewrite URL patterns RewriteEngine On # Every URI that not (! operator) ends with one of .php, .css, .js, .gif, .png, .jpg, .jpeg or .pdf RewriteCond %{REQUEST_URI} !\.(php|css|js|gif|png|jpe?g|pdf)$ # Will be redirected to templates/index.php RewriteRule (.*)$ templates/index.php [L] # Sam...
I have some troubles understanding how to dynamically put together simple one language website. I would really appreciate if somebody could explain me in baby language what every part of the code below means:RewriteEngine On RewriteCond %{REQUEST_URI} !\.(php|css|js|gif|png|jpe?g|pdf)$ RewriteRule (.*)$ templates/ind...
Please, explain for total beginner this .htaccess file
I added this code to my htaccess file and re scanned the website and the issues were resolved.<IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" //help protect against XSS Header always append X-Frame-Options SAMEORIGIN //help protect against page-framing and clickjacking Header set X-Content-Type-Opt...
I audited my website on a vulnerability checker and it suggested that I need to add security headers;Missing security header for XSS Protection.Missing security header to prevent Content Type sniffing.Missing Strict-Transport-Security security header.Leaked PHP version. Your site is displaying your PHP version in the ...
How do I implement HTTP headers into my website?
You need to runapt-get updatee.g:RUN apt-get update && apt-get install -y slYou can also tidy up after yourself to save a bit of disk space:RUN apt-get update && apt-get install -y sl && rm -r /var/lib/apt/lists/*
I am trying to install the 'sl' package in my ubuntu:14.04 image. Here's the content of my Dockerfile :FROM ubuntu:14.04 MAINTAINER xyz <[email protected]> RUN echo 'Going to install sl now' RUN apt-get install -y slAnd this is the command I'm using to build the image:sudo docker build -t xyz/ubuntu:14.04 .But I'm gett...
Installing libraries in ubuntu image using Docker
node_filefd_allocatedis the metric you want.Not everything that is listed bylsofuses a file descriptor on Linux, such as dynamically linked libraries.We are running node-exporter from root user.The node exporter does not require root.
We are using node_exporter version 0.18.0In Grafana Node Exporter dashboards, it shows the no of open file descriptors used by the Node Exporter process only, not the FDS used by the OS in that instance.We are running node-exporter from root user.System Stats:Output oflsof | wc -lis446732open files ...
Not able to get correct number of Open File descriptor from node-exporter metrics
Each int is a primitive data type, whose sizes are defined inhttp://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html.The array is an object, which carries some overhead. There is a good discussion on how to find the size of Java objects inhow calculate java array memory usage.
Say if i want a array of 4 int'sex.int[] iA = {32,33,34,35};would this array take up more memory than declaring them as individual Int's?ex.int i0 = 32; int i1 = 33; int i2 = 34; int i3 = 35;
Integer Array or Individual Integers?
This is happening because a category object cant be foundyou should change your code to thisforeach($posts as $post){ $user = User::where("id","=",$post->posted_by)->first(); //check if category id is set if(!$post->category_id) abort(500,'category_id is not set with Post: #'.$post->id); //get...
I have the following code running on my laptop which is running a MAMP server (so apache). On my system it works absolutely fine,however, when I push it to my server it starts throwing "Trying to get property of non-object errors. The databases and migrations are all up to date, and reflect the setup on my laptop. I am...
Laravel 4 Property of non-object on Nginx
I now realize that I was simply running out of memory as soon as I started. When I switched to ssd_mobilenet_v1_coco_2017_11_17 and changed batch_size = 1, it all worked. This still doesn't entirely fix my problem though. I'll have to figure out how to provide more memory for the call.
I am running docker image tensorflow:1.1.0. I have added the tensorflow object detection api github by cloning it locally and giving my docker a connection to the folder. I am trying to recreate their pet example. I believe I have all code and code in the right places. However, when I try to retrain, tensorflow kills...
Tensorflow Object Detection Killed before starting
You can directly provide the label string in theopts.LabelSelector:labelOptions := informers.WithTweakListOptions(func(opts *metav1.ListOptions) { opts.LabelSelector = "app=nats-box" }) factory := informers.NewSharedInformerFactoryWithOptions(clientset, 0, informers.WithNamespace("default") ,labelOptions) informer ...
I want to watch Kubernetes pod events for a certain application.I went with NewSharedInformerFactoryWithOptions. I have added appropriate labels selector, But it is not getting filtered out. As I want to filter it using the label: 'app=nats-box'Here is the code -req, err := labels.NewRequirement("app", selection.Equals...
SharedInformerFactoryWithOptions - Not able to filter based on labels
After contacting GitHub support, they told me that the issue reference will only be seen by the people who have access to that private project. Any other members will not see the comment or message @amitpchigadani amitpchigadani referenced this issue in MyOrganisation/projectName. I was somewhere worried about the pr...
I was trying to refer some issue from public library within my github project issue. What I did is I was commenting on one of the issues listed in my project and I gave the reference to the actual issue listed out in public library. example : https://github.com/public-library/issues/42 And when I click that link it sa...
Remove issue reference in GitHub
There is no direct access to this information in the SDK, and apps are not allowed to mess around with the OS the way you're suggesting. You're in your own little box; Apple expects you to stay there. When you ask questions that include "the system," you are probably outside of your box. That said, there are some tric...
How to display iPhone free memory in a UILabel ? and I would like to ask, how to free up memory using iPhone SDK? FYI, I'm using iPhone SDK 3.1.2 with xcode 3.2.1 (Mac OS X Snow Leopard).
How to display iPhone free memory ? and how to free iPhone memory?
It seems like something has added a hook to your repository. I haven't figured out what software is responsible for this, but command you want to run from your project root is ...mv .git/hooks/pre-push .git/hooks/pre-push.sample
I've been working with the GitHub for Mac client. It has worked perfectly fine for two months. Yesterday, after a successful commit and push, my client closed itself then restarted. Since then I have been unable to push changes to my online repo.In the client I receive the message "The git media pre-push hook is out of...
GitHub push error - 'git media update'
Make sure to escape the dot otherwise it will match any character.Besides just this single rule should work for both cases:RewriteRule ^(/?static/deploy/.+?)\.\d+\.(js|css)$ $1.$2 [L,NC]
I have implemented a cache busting solution on a site where a version number is added to the end of the file name, before the file extension. However I am having an issue with one of the rules not working.Typical requests:/static/deploy/styles/site_78_direct.min.0.css /static/deploy/styles/ie/site_78_direct.0.cssI need...
RewriteRule to remove version number
GKE doesn't support user-provided node images as of April 2020.Recommended optionis to create your ownDaemonSetwith host filesystem writes and/or host services restart to propagate all the required changes.
We tried to harden the gke optimized image (gke-1.15.11) for our cluster. We took an ssh into the node instance and made the cis porposed changes in the/home/kubernetes/kubelet-config.yamlfile and ran kubebench to check if all the conditions have passed around 8 condtions failed these where the exact conditions we chan...
Regarding GKE optimised image hardening
Since I haven't been able to find anything, I have developed a very simple Sonar plugin that does the trick using the API provided by the Sonar server. Turned out to be pretty simple.The plugin is availablehere, but it has been only tested on one Sonar instance.
Is there any way to aggregate metrics over all projects in Sonar ? For instance, is it possible to get the total number of SLOC ?It seems that it should be a basic feature of Sonar.I know about the Views plugin, but I'm looking for something free. And I don't need all the features of this plugin, only aggregates over a...
Sum of metrics over all Sonar projects ?
3 Now that kubectl run creates a deployment, you specify that the type being exposed in a deployment rather than a replication controller: kubectl expose deployment nginx --target-port=80 --type=NodePort Share Improve this answer Foll...
I'm newbie of the Kubernetes while I'm using Google Cloud Container. I just follow the tutorials as belows: https://cloud.google.com/container-engine/docs/tutorials/http-balancer http://kubernetes.io/docs/hellonode/#create-your-pod In these tutorials, I'll get the replicacontroller after I run the "kubectl run" but th...
kubectl run does not create replicacontroller
-1 When you do docker-compose up it will start streaming all logs from all containers that were brought up. This simply looks like server_1 output some stuff, and then view_1 output some stuff, and then server_1 output some more stuff, etc... If you want to see the logs for...
I get the server container twice, and the view container has the server's content. I have no idea what is going on... docker-compose version: '3' services: server: build: ./server view: build: ./view ports: 8080:80 Server Dockerfile FROM node WORKDIR /usr/src/app COPY package.json ...
Docker-compose starting containers twice, running command twice and have same content
2 The https://*.*.*.somecdn.com syntax is wrong, the * in CSP is not acts the same as Wildcard character in computing. Just use https://*.somecdn.com to allow any subdomains. Share Follow answered ...
I am adding Content Security Policy in Nginx for my website as: example: add_header Content-Security-Policy "default-src 'self'; frame-src 'self' https://m.youtube.com https://www.youtube.com; connect-src 'self'; media-src 'self' https://a23-abc-11.somecdn.com;"; Some media assets are being downloaded from CDN as I ha...
Add Content Security Policy in Nginx
The client version is old. The new commad structure is supported with client 1.13. CheckDocker CLI restructured.There was a refactoring for the command line client to have the form:docker <management command> <command>The new command structure still supports the old way. For instance, the olddocker psis an alias fordoc...
Why does my Docker client recognizedocker buildbut notdocker image build? Is the client too old? Does CLI depends on client or server? I believe I got my Docker client and server by installing the latest Docker toolbox.$ docker version Client: Version: 1.12.5 API version: 1.24 Go version: go1.6.4 Git commit: ...
docker image build vs docker build
Try to remove the other bridged network other than the default one and try to pull the image again and it worked for me.> docker network ls NETWORK ID NAME DRIVER SCOPE b139fe9f89e3 bridge bridge local e5dfbbee314v network-1 ...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
Why does Docker give error "connect: no route to host" when trying to connect to external resource? [closed]
I hit the same thing recently, but noted that the JSON code coverage files are generated, the uploader just doesn't know where they are or how to search for them.You can specify them by explicit location, and there's a JSON file that's generated. However, it seems that CodeCov can't deal with the JSON format, so you ne...
IntroductionI have written aSwift Packageand would like to integrateCodecovas a part of my CI (set up withGithub Actions).Here is my.ymlfile:name: Swift on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: macos-latest steps: - uses: actions/checkout@...
Codecov with Swift Package
Figured it out. On inspecting the image, one can find an sha value. Then that sha can be searched for in the docker hub for Superset to find the exact image used. Even a pull can be constructed from there to pull it.
I had earlier installed Superset locally from its docker image by following instructions in https://hub.docker.com/r/apache/superset. Now I want to find what release of Superset was installed. I exported the contents of the docker image. But if I see the contents of the package.json in superset assets folder, it shows...
Identify Superset version from docker image
<KeyPrefixEquals>/</KeyPrefixEquals>There are two problems, here: first, this matches aprefix, meaning there's an implicit*at the end. Thst isn't what you want, here. Also no key in an S3 bucket typically has a prefix of/. The object key starts with the character after the leading slash. Your<ReplaceKeyWith>is igno...
I have an amazon S3 bucket serving a website fromS3bucketurl.com/foo/index.html.I would like to configure aredirection rule, that automatically rewrite the URL as follows:AccessingS3bucketurl.comshould automatically redirect toS3bucketurl.com/foo, and serve theindex.htmlfile contained in the subfolderfoo.I tried to set...
How to redirect from bucket root to subdirectory in AWS S3?
does it sync with DB automatically when there is a change in the data in DBNo, it doesn't.we will have to implement the sync strategy, if yes, what is the best way to do it.This will depend on your particular case. Usually caches are sync'd in two common ways:Data cached with expiration. Once cached data has expired, a...
We are using Oracle db, we would like to use Redis Cache mechanism, We add some subset of DB data to cache, does it sync with DB automatically when there is a change in the data in DB or we will have to implement the sync strategy, if yes, what is the best way to do it.
what is the best strategy to sync data between DB and redis cache
If your build already takes 45 minutes, then I'm not surprised that the SonarQube analysis takes a lot of time as well. 500k LOC is a lot for a single project.Here are some various ways to reduce the time:First make sure that you run SonarQube server on a real DB, not on H2Then, the analysis should occur very close to ...
Even though it seems to point to the enormous number of lines of code (500,000), engineering is unconvinced why it takes 90 mins on a beefy Solaris box with 16GB RAM and dual-CPU to finish one Sonar analysis. Please tell me if 90 mins is too much time for a codebase this size.I am checking out code from Git using Jenk...
SonarQube Analysis takes too much time
With the toolNDependit is immediate (Disclaimer: I am one of the developer of NDepend). You just have to write the code rule://<Name>Forbidden third-party assemblies</Name> warnif count > 0 from a in ThirdParty.Assemblies.WithNameNotIn( "Foo1", "Foo2", "Foo3") select aet voila:
I have a client with a fairly large (> 150 solutions) code base. They have a list of approved third party assemblies their developers can use, and they would like to use Sonar to help identify projects that are using assemblies that are not on the approved list.A simple example:My solution references foo.dllFoo.dll is ...
Monitor 3rd party assembly usage with Sonar
Your regex is not correct and.*is greedy in nature.You can use this redirect rule:RewriteEngine On RewriteRule ^staticword-[^/]*/[^/]*/([^/]+)/?$ /new/$1 [L,R=301,NC,NE]Make sure to use a new browser for testing this change to avoid old browser cache.
Hello I try to achive to rewrite URLs via htacces from old pathhttps://example.com/staticword-randomword/random-words/target.phpto new pathhttps://example.com/new/target.phpI've tried to manage this with this Rewrite command:RewriteRule ^staticword(.*)/(.*)/ new/$1 [L,R=301]Unfortunatelly I'm not very well with these r...
htaccess - Rewrite two random segments with one static
You should do a Robomongo SSH tunnel connection to MongoDB inside docker container. First of all you should install a ssh server inside your docker container.https://docs.docker.com/engine/examples/running_ssh_service/After that you should configure your connection in Robomongo. Inside "Connection Settings" there are c...
I'm running aNodeJSApp withdocker-compose. Everything works fine and I can see all my data by connecting to Mongo inside container. But when I connect toRoboMongoI don't see any data.How can I deal with this problem?
connect robomongo to mongoDB docker container
If you want to remove the files from the history and publish it as-is, then consider usinggit filter-branch, which will let you narrow a project down to just some components of the original complete repository.Putting the code you want them to see into a submodule would be the other way to go, and give them access to j...
I have a repository on Github for which I would like to give access to a freelancer.I can't give them access to the entire codebase for security reasons, but I would like to be able to merge their changes from the sections that I do give them access to.If I create a fork and remove the restricted files then it still ha...
Giving access to parts of a github repository
It seems the log file is not getting created, try to make an empty log file first and re run it try this dockerfile i have tested it with and crons are running succesfully. FROM node:8.9.1 RUN apt update RUN apt-get install cron vim -y RUN mkdir app && touch /var/log/mylog.log WORKDIR /srv/image-server/curre...
I have an issue when I run docker container the cronjob services are running but the cronjob is not executed as per schedule, I want to achieve is without attaching a volume Dockerfile FROM node:8.9.1 RUN apt update && apt-get install -y cron vim RUN mkdir app WORKDIR /srv/image-server/current/ COPY . . RUN ...
cronjob is not running in Docker container throw Dockerfile
2 If you are thinking of providing VM parameters in the MANIFEST file, you cannot do that. That is not a possibility. Rather you can use a executable wrapper which allows you to provide VM arguments and other startup parameters like Launch4j. Share ...
I've read couple of post about the java heap space out of memory error. I'm using Java Swing and getting an error 'java heap space'. Then I tried to run this jar from command prompt using this command: java -Xmx128m -Xms128m -jar jedit.jar The jar runs very well. But now the problem is that how can run this jar file ...
Java Heap Space error in jar file
In C, accessing an array outside its bounds is undefined behavior. That means that anything can happen, including the program behaving as you might expect it to. The C language doesn't require bounds checking on array accesses, and most C compilers don't implement it. For example, suppose you declare: int before; int ...
I'm developing a program in C that uses an array of linked lists (a primitive hash table) as a data type to represent certain date information. The array has twelve elements corresponding to the months of the year, and each month has a linked list that contains nodes of data. I developed the module that used this dat...
Accessing out-of-bounds elements of dynamically allocated arrays / w/o SegFault
You can cherry-pick thelast-commit-hashin yourstablebranch and push to remote.$ git fetch $ git log # copy the last-commit-hash $ git checkout -b stable origin/stable # create local/stable branch from remote/stable $ git cherry-pick <last-commit-hash> # take the last-commit $ git pus...
I see that similar questions have been asked many times, but I still don't understand and I need a practical example for my case.I have a github repo with two branches:masterwhich is my development branch and where I want to push all latest changes and new featuresstablewhere I want to push bug fixings only until new f...
Create a pull request of a single commit on github
Updated to include the solution here, rather than a link:After much effort, I found that I had to create my deployment packagefrom within a python3.6 virtualenv, rather than directly from the host machine. I did the following within a Ubuntu 16.04 docker image. This assumes that you have python3.6, virtualenv and awscl...
I'm looking for a work around to use numpy in AWS lambda. I am not using EC2 just lambda for this so if anyone has a suggestion that'd be appreciated. Currently getting the error:cannot import name 'multiarray'Using grunt lambda to create the zip file and upload the function code. All the modules that I use are install...
Using numpy in AWS Lambda
You can't. Since it is part of the index, the field is protected. What you should do it to delete the item and add it again with the new sort key.Seehttps://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValueUpdate.htmlShareFollowansweredApr 2, 2019 at 12:29StargazerStargazer1,4821212 silver badge...
The table has two keys:filename(partition key) andeventTime(sort key). I want to updateeventTimefor certainfilename. Triedput_item()andupdate_item()sending the samefilenamewith neweventTimebut those functions add a new item instead of update.What should I use for that purpose?
DynamodDB: How to update sort key?
If your page/wp-content/500.phpalso generate an error (so it goes to the ErrorDocument 500, then again, …), it may do an infinite loop.You can check the apache/php errors logs which may gives you additionnal clue.You can also activate the Wordpress Debug mode by adding the following code in yourwp-config.php:define('WP...
I am currently in the process of creating a custom 500 page for a wordpress website. I manually break the site using this in the header:<?php header('location : '); ?>in the .htaccess I have this:ErrorDocument 500 /wp-content/500.phpI had it as /wp-content/500.html in the htaccess and that worked beautifully. But I ac...
Custom 500 php page for wordpress
I Figured it out.It was the request filtering feature. I had to up theMaximum allowed content length (Bytes)SeeLarge File Upload in IIS
I'm setting up a fresh installation of SonarQube Version 7.9.1 (build 27448)It's running behind a reverse-proxy in IIS using URL Rewrite.I can login just fine into SonarQube.It is failing when running analysis for my .Net solution (a big one) using sonar-scanner-msbuild-4.7.1.2311-net46. It failes at the end, after com...
Failed to upload report - HTTP code 413: The page was not displayed because the request entity is too large
If you have the files ready, use theBluemix CLIand upload them:bx app domain-cert-add www.example.com -c cert.pem -k privkey.pem -i chain.pemThen view your certificate:bx app domain-cert www.example.comAlso, there is abluemix-letsencryptPython application that automates the whole process of doing the LetsEncrypt ACME c...
I'm struggling to install a lets encrypt cert on IBM cloud to enable https access. I checked the cert using keytool and it includes all domains, and it seems valid.Right now i have two problems:https is only enabled on the root domain ->https://example.combut not on any of my subdomains includinghttps://www.example.com...
how to install a letsencrypt cert on ibm cloud?
SQL Server does not have access to your firewall config and cannot change any firewall rules at all.You will have to explicitly open the port if you need it open/listening.Also you mentioned Named instance using this port. If you are expecting named instance to use port 1434, you need to explicitly configure your named...
If I do a default install of SQL Server, is the UDP port 1434 (for use with SQL Browser) opened by the installer? Or doI need to to open that up myself?In other words: if UDP port 1434 is open, can I draw the conclusion that a named instance is installed?
Does it mean anything if port 1434 UDP is enabled?