Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Allocatable is the amount of resources available to the pods to consume, 940m cpu in your example.The allocated limit is the sum of all the pod limits defined in pods running on the node. The allocatable and the resource requested are more useful
When I dokubectl describe node <node-name> | grep cpuon my Google Kubernetes Cluster I do getcpu: 1 cpu: 940m cpu 709m (75%) 2156m (229%)My question is about the difference of the last number in line two (940m) and the last number in line three (215...
What is the difference between "allocatable cpu" and "allocated cpu limit" on a GKE cluster node
In my case, the best i could think of was to change from forward to tail plugin with structured logging (in json).
Hey i have a question.Im using logback-more-appenders(fluency plugin) to send logs to EFK stack (fluent-bit) which is working in kubernetes cluster, but it lacks kubernetes metadata ( like node/pod names).I know i can use<additionalField></additionalField>in logbck.xml to add Service name (because this is static), but ...
Fluency with forward plugin: how to add kubernetes metadata to logs
You would need webhook only if those projects (you want to mirror) are themselves on GitHub.If they are on their own private server (like a self-hosted one), apost-receive hookwould be enough to push what has just been received to a GitHub mirror repo.If those server are self-hosted GitLab ones,you can configure them t...
I have a collection of projects from different people in different personal repositories I want to upload into to a college GitHub organisation. Ideally, the organisation will be read only and will directly mirror the personal repos.While, creating 2 push URLs for a repo is an option, I feel this approach will have pro...
How do I setup GitLab like mirroring in GitHub?
To understand Virtualizers you can read "Large File Support" section of Jasper Reports Ultimate Guide (available here:http://community.jaspersoft.com/documentation).Example of JRSwapFileVirtualizer usage can be found here:how to select and configure a JasperReports virtualizer?.If you're still running out of memory, yo...
I want to handle huge data in creating PDF, I know there is a thing called Virtualizers in Jasper Reports, but i don't know how to handle the out of memory exception that is fired when i retrieve the data from the DAOs, I don't know how to implement pagination in Jasper reports datasources.
Handle Huge Data in Jasper Reports - pagining
It means that the chart you want to install doesn't exist in the repository. Try to list all the charts . Tryhelm repo listto get the list of all existing charts.I've just triedhelm install incubator/vdfgdfgdfgfdg --dry-run --debugto simulate the install of some non-existing chart and got the same error:helm install in...
How do I download the latest chart of package which already has different versions to it?I tried adding the incubator repo usinghelm repo add <repo-name> <repo-url>and then did ahelm repo update. And when I tried to download/install the latest chart using the below command:helm install helm-name repo/chart-nameIt throw...
Helm : how do I Install the latest helm chart from repo
Quotinghttps://hub.docker.com/_/php/How to install more PHP extensionsWe provide the helper scriptsdocker-php-ext-configure,docker-php-ext-install, anddocker-php-ext-enableto more easily install PHP extensions.To install PHP with iconv, mcrypt and GD, they provide the following example:FROM php:7.0-fpm RUN apt-get upda...
I am using the officialphp:fpmdocker image as base for my application container, so theDockerfilestarts like so:FROM php:fpmLater in the file I would like to have something like that:RUN apt-get install -y \ php7.0-gdBut that tells me:E: Unable to locate package php7.0-gd E: Couldn't find any package by regex 'php7...
Docker php:fpm—install php extensions
try the following on the slave node and try to get the status again on master.> sudo swapoff -a > exitShareFollowansweredSep 22, 2019 at 10:35user473445user47344543311 gold badge55 silver badges99 bronze badges1This is incomplete advice because, while doing so will disable Swap, it will not prevent it from being mount...
I am comparatively new to kubernetes but i have successfully created many clusters before. Now i am facing an issue where i tried to add a node to an already existing cluster. At first kubeadm join seems to be successful but even after initializing the pod network only the master became into Ready.root@master# kubectl ...
Kubernetes worker node is in Not Ready state
Ok, if your repo is fubar, then here's steps to recover: $ git remote update # make sure origin and upstream are up to date $ git checkout master $ git branch my_changes # just to make sure my stuff isn't lost $ git reset --hard upstream/master $ git status # On branch master # Your branch is behind 'origin/mast...
I'm in a bit of a pickle. I started development on a fork of a repo a few months ago. I made some changes. I was about to push my code back to the master as a pull request, but I realized there were quite a few changes in the meantime... So, following the instructions at Github under "Pull in Upstream Changes" I tri...
What is the correct way to merge upstream without losing changes?
GitHub comments, wikis, README.md etc. useGFM, essentially CommonMark with some extensions. There it's not possible. (Follow the link to see whether anything has changed, but don't hold your breath because nothing has in the last decade.)However,GitHub Pagesuses Jekyll and by extensionkramdown where you can use:`x = 4`...
GitHub-flavored markdown supportssyntax highlighting in codeblocks. This is done by adding the name of the language next to the triple-grave codeblock markers:```ruby require 'redcarpet' markdown = Redcarpet.new("Hello World!") puts markdown.to_html ```Standard markdown also supports inline codeblocks by wrapping text ...
Inline code syntax highlighting in GitHub markdown?
There are two options. The first one requires less changes to your code and it involves creating new certificates for your development servers instead of reusing the production ones. You don't have to buy them, they can be self signed. I recommend you create a new TrustStore with just the development certificates, and ...
We have certificates from VeriSign for our domains. However, I am trying to do some testing on our development environment and keep getting certificate errors (since the development IPs don't match production IP's, which we registered the certificate with) and is causing me quite the headache. I can't seem to pinpoint...
How to get around Certificate errors in a dev environment?
Check out:http://www.dnsstuff.com/; you may also tryipconfig /flushdns.
Pretty vague title, but basically I can only get "my site" to load from one computer. I've purchased hosting and a domain name, set it all up, and there's nothing there yet, but the default directory browser thing shows up when I go to the url on my work computer, but from my home computer and a virtual machine it does...
Why won't my site load from one computer, but it will another?
You can make variable A of type ImmutableList and it should not raise an issue.
We return an immutable list and get the critical Sonar warning "Mutable members should not be stored or returned directly"public List<A> getA() { return A; }A is initialized as an ImmutableList.copyOf(B) in the constructor. Is it possible to take these immutable implementations into account?
Mutable members should not be stored or returned directly - com.google.common.collect.ImmutableList - "false positive"
We can use context to read sonar properties.Optional<String> result = context.config().get(sonar.directory);
I have defined below properties in sonar-project.propertiessonar.directory=project/fileIn my java application when I tried to read it gives null value any suggestion on how to read the property value ?public class MySensor implements Sensor { public static String FOLDER = "sonar.directory"; public MySensor(FileSyste...
Java : Read sonar-project.properties
Usecrontab's-uoption. Theman pagesays:-uAppends the name of the user whose crontab is to be modified. If this option is not used, crontab examines "your" crontab, i.e., the crontab of the person executing the command. Note that su(8) may confuse crontab, thus, when execu...
I am attempting to run a script through crontab that is required to run as anoracleuser. I have tried creating a crontab for that user by:su -u oracle crontab -ewhich has allowed me to create one. I edited the file to run a perl script:0 5 * * * /usr/bin/perl /path/master.pl > /tmp/debug.logHowever when the time pass...
Creating crontab for non-root user
Check the TFS build summary report as described on page 32 of the ALM Rangers guide, in particular that the build succeed and the "SonarQube Analysis Summary" section exists. If it does then it means the MSBuild.Runner integration pieces have been executed so it's likely the setup of the agent machine is correct.There ...
I have the following scenario with 3 different servers: - SonarQube server - TFS server - TFS build serverI followed ALM Rangers guide to install Sonarqube with the only difference that build agent is in different machine. Manual run of sonar using sonar-runner works on the build machine but when I try to launch a buil...
Sonarqube integration with MSBuild not working
The problem had no relation to the browser or rails cache, but was due to server side caching from Nginx. Apparently, a hard refresh (ctrl+F5) will some how tell Nginx to not use cache. Nginx, under a hard refresh request, will actually request the page contents from rails and then serve up the new content, instead o...
I'm using a rather vanilla implementation of Active Admin. After the user updates a record using the Active Admin interface the changes are not reflected in the browser until the user performs a hard refresh (ctrl+F5). This behavior is not observed in development or testing, but is seen in production. I believe it's ...
Active Admin requires a force refresh after records are updated
Laravel scheduler works with commands, not with controller methods: create command: php artisan make:command PurchasePodcast edit command: namespace App\Console\Commands; use Illuminate\Console\Command; class PurchasePodcast extends Command { protected $name = 'purchase:podcast'; public function fire()...
My laravel version is 5.0.28, I build on cloud9, and I added this command to my cron: #!/bin/bash PATH=/usr/bin * * * * * php /home/ubuntu/workspace/app/artisan scheduled:run 1>> /dev/null 2>&1 I added this code on my Kernel.php. I referenced this site: https://laravel-news.com/2014/11/laravel-5-scheduler/ <?php name...
Laravel 5 schedule not working
3 The standard library has A string is a contiguous sequence of characters terminated by and including the first null character. With char str[5] = "check";, str[] is not a string as it lacks a null character. str[] could be called an array of char. After a few iteratio...
I know that this question had been asked a million times, but I still get confused. I intentionally make my string size equal to the char number in it: int main() { int i = 0; char str[5] = "check"; while((str[i] != '\0') && (i != 10)){ // (i != 10) aborts the func printf("str[i] = %c\n", *(str+i))...
How does the compiler add a null-terminator when there is no more space?
I accomplish this on my server in the following way:server { listen 80; server_name example.com; rewrite ^/(.*) https://example.com/$1 permanent; }At a glance your configuration looks OK, but thereturndirective documentationdoes note some limitations for older versions of nginx that would be encountered wit...
I'm trying to get my site to use HTTPS only. I've looked all over stackoverflow and tried many of the suggested settings for the nginx settings file for the site, but I still can't get all address combinations to work. What do I need to change in the file to get it to work?These two address combinations don't redirec...
nginx HTTPS Redirect
The angle brackets need to be encoded as character entities so that they are not interpreted as Markdown or HTML.I tested the followingin a gist on GitHuband it works:## &lt;p&gt;It also works as inline Markdown on Stack Overflow (click "edit" to see the Markdown source for my post):<p>ShareFolloweditedSep 20, 2015 at ...
When writing my markdown README.md file I want to have the HTML element tag<p>as the heading using two ## for a h2 look. but it will not display the tag. Is there a certain form of syntax I need to use in order for it to be displayed as text and not interpreted as an HTML element. Can someone link me to a Github repo a...
Markdown Heading with HTML as text on Github
Typically projects on GitHub don't come with a database, but they include code to initialize a database. For example, you can dump the contents of a MySQL database with the mysqldump tool. Seehttps://dev.mysql.com/doc/refman/5.7/en/using-mysqldump.htmlThe project on GitHub has instructions for loading that data into a ...
I'm recently applying for a job and the employers need to see my repositories in GitHub. Since they need a database to function, the database must be exported to GitHub.I've seen a few answers in Stack Overflow but really none of them addresses my issues as they give pretty shallow answers. A comprehensive explanation ...
Uploading a database to GitHub
I faced the same problem. So, I tried with different version.In my case, v2.5.8 works well.
Unable to connect to k8s with telepresence. I using minikube as my util to manage k8s and using telepresence to develop my code with k8s. Sometimes it will work, but sometimes I cann't connect to k8s.The command I used.# start the k8s minikube start # connect telepresence connectFail to connect to k8s withtelepresence ...
telepresence: error: connector.Connect: kubeconfig has no context definition
Kubernetes offers a simple Endpoints API that is updated whenever the set of Pods in a Service changes. For non-native applications, Kubernetes offers a virtual-IP-based bridge to Services which redirects to the backend PodsHere is the detailk8s service & endpointsSo your answer isendpoint Objectkubectl get endpoints,s...
According to some of the tech blogs (e.g.Understanding kubernetes networking: services), k8s service dispatch all the requests through iptable rules.What if one of the upstream pods crashed when a request happened to be routed on that pods.Is there a failover mechanism in kubernetes service?Will the request will be for...
How does the failover mechanism work in kubernetes service?
Automatic clean-up of old analysis cannot be disabled. Still setting high values like 100'000 (days) means that analysis are kept during 274 years. Maybe the ability to disable auto-cleaning will be implemented during this period.
SonarQube is automatically deleting measurement data for files for the older snapshots. When a new snapshot is taken, the old one get deleted. I can see measurement data for files only for the latest snapshot. My db cleaner settings are as as below.What are the maximum allowed values for the keys/constants? Am I using...
Maximum values of SonarQube DB Cleaner's Keys/Constants
You can add a stage for cloning the test branch and then run the build and the test stages in the same tame usingparallel. The following pipeline should work:pipeline { agent any stages { stage ('Clone branchs') { steps { echo 'Cloning cypress-tests' git branch: 'cypress-tests', url:...
I am trying to configure the pipeline to run automated e2e test on each PR to dev branch.For that I am pulling the project, build it and when I want to run my tests I can not do this because when the project runs the pipeline doesn't switch to the second stage.The question is when I build the project in Jenkins and it ...
Run tests in Jenkins pipeline when the build is running
I had similar errorLost connection to MySQL server at ‘reading initial communication packet’, system error: 0In my case i stopped already installed MySQL and that is it!
I've setup 2 separate stacks with each one php + mariadb, via docker-compose. The first one has mariadb listening on 3306 port :ports: - "3306:3306"I use -p flag tobuildandupthe second project so that things don't get mixed-up :docker-compose -p project2 build && docker-compose -p project2 upIn the 2st projectI had t...
ERROR 2013 (HY000): Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 11
You generally want to have the same .gitignore file in all branches. If you want to ignore node_modules in a particular branch, you probably don't want to check it in while on other branches. Since Git only honors the .gitignore file in the working tree and not the ones in other branches, you're seeing that branch 2,...
I don't know if this is a bug or intended, but with Github Desktop the files specified on .gitignore are carried over to any other branch I switch to and it asks me to commit those files. One fix is to have the same .gitignore file on all other branches, but that will clutter up the environment. Eg: Branch 1 has node...
Github Desktop keeps .gitignore files when switching branches
crontabdoesnot* allow for specifying a user to run as...... unless you're in the root crontab.If you check myfavorite linux admin reference, you'll not near the bottom that there are some tricks to running certain chrontab entries as a particular user. However, the best practice, if you wish to do so, would be to edit ...
Which one is the right definition for acrontabjob?With or without theuserbefore the execution path?.---------------- minute (0 - 59) | .------------- hour (0 - 23) | | .---------- day of month (1 - 31) | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | | | | .---- day of week (0 - 6) (Sunday=0 or 7) O...
crontab: which one is the right job definition?
You can useindexfunction fromGo text/templateand Helm'sprintf functionenv: - name: SERVER_ENDPOINT value: {{ (index .Values.server (printf "%s_proxy_endpoint" ( .Values.environment | lower ))) }}
I am setting the following environment variable in Helm Deployment like so.name: SERVER_ENDPOINT value: {{ .Values.server.dev_proxy_endpoint }}But would like to interpolate the environment part (dev) of the value variable, like soname: SERVER_ENDPOINT value: {{ .Values.server. {{ .Values.environment | lower }} _proxy_e...
Helm Interpolation
My advices:There could be any number of master nodes, so I would make this visible somehow on the diagram.kube-proxy and kubelet runs on every node, even on master nodes.docker can be interchanged with rkt as well, I would show it up as well.fluentd is not part of the core architecture.
Thekubernetes documentationdescribes the two types of components that live within a kubernetes cluster: master components and node components. I wasn't able to find diagrams that accurately and completely described the components as described in the docs. Theonly official diagramI found hasn't been updated for 1.5 year...
confusion with kubernetes high level architecture (master and node components)
Yes, .htaccess will need to be in the public web root directory - /var/www in this case. Make sure the file is readable by your web server, too.If this doesn't work: Make sure that the mod_rewrite module is installed and enabled. It should be on Ubuntu 12.04. You can check by listing the contents of /etc/apache2/mods-...
I can't seem to get URL rewriting to work on a Ubuntu 12.04 server with apache2 and when the default page loads (home) it's just plain text without CSS . I'm using Cake 2.3.9 and I get the following message upon a fresh install to /var/www/. So my root directory looks like/var/www/app /var/www/lib /var/www/index.php /v...
CakePHP URL rewriting not working on Ubuntu
When using thedockerexecutor (which you are) the special stepsetup_remote_dockerneeds to be run within the job to enable access to a Docker Engine daemon. In this case, that still won't be enough because even then, mounting volumes won't work. You need to use themachineexecutor.Themachineexecutor on CircleCI will allow...
I have a project repo which contains my project and a docker-compose.yml file.In the docker-compose file it mounts the current it's in ($pwd) and then run a command.I can't seem to find a way of making this work using Circle CI. When I run the docker-compose file it doesn't seem to be mounting the volume. How do I pass...
How do I pass current folder contents to docker image in CircleCI?
If memory usage is a concern, it is often best to re-assign your very large arrays to 0, or to a similar type-safe small matrix, so that the memory can be garbage collected, assuming you are done with those intermediate matrices. After that, you just call Mmap.mmap() on your stored data file, with the type and dimensi...
I have a Julia code, version 1.2, which performs a lot of operations on a 10000 x 10000 Array . Due to OutOfMemory() error when I run the code, I’m exploring other options to run it, such as Memory-mapping. Concerning the use of Mmap.mmap, I’m a bit confused with the use of the Array that I map to my disk, due to litt...
Use of Memory-mapped in Julia
It depends.Whenever is backed by the cron daemon of your system (so if your system has no cron daemon it won't work).Rufus-scheduler is running inside of your Ruby runtime, it's not depending on a cron daemon, but if your Ruby runtime is going down, the schedules will be lost.Please make sure you understand those diffe...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened,visit the help ...
What is the better choose for running background jobs in ROR [closed]
@ceving, you are missing the point. Sure providing a password on the command line is not ideal, but using passwordless private keys is just as bad. The OP is asking on how ansible uri should do this, but it doesn't. And it should be able to, would have been nice if it did. Why? Because you can encrypt it with ansible v...
I have a password protected certificate key that I'm trying to use with the uri module in ansible against a URL that has been configured with 2 way trust.With curl, I would runcurl -s --cert key.pem:password url.In ansible, I can't seem to figure out how to provide the password to theclient_keyoption for theurimodule.
Ansible URI SSL Certificate Passphrase
So, the issue seems to lie in the port mappings of my container settings in the task definition. Before I was using 80 as host and 8080 as container port. I thought I need to use these, but the host port can be any value actually. If you set it to 0 then ECS will assign a port in the range of 32768-61000 and thus it i...
I am using Amazon Web Services EC2 Container Service with an Application Load Balancer for my app. When I deploy a new version, I get 503 Service Temporarily Unavailable for about 2 minutes. It is a bit more than the startup time of my application. This means that I cannot do a zero-downtime deployment now. Is there a...
AWS ECS 503 Service Temporarily Unavailable while deploying
3 When you create a git repository, a hidden ".git" folder is created in the repository folder. If you want to "uninitialize" it, you just have to delete it. Share Improve this answer Follow answ...
After selecting Initialize Repo on a particular folder and letting VSCode do its thing, I realized I had a number of items in the folder that I didn't want Repo'd. Rather than move those items out of the folder, however, what I want to do is create a new folder for the stuff I do want repo'd and initialize that. How d...
Initialized repo on the wrong folder
Apparently I'm not the only one with this problem, and after some research I found that the new OpenNI isn't compatible with the SensorKinect, so in order to fix this I have to download the version that is slightly dated, luckily a site called "ZigFu" has all the necesary plugins built onto one: http://zigfu.com/en/do...
I was recently following a tutorial in a "Kinect Hacking" book that I purchased on Amazon. The first thing I was asked to do, is to check to see if my Kinect plug would fit into my laptop's which it did. I was then asked to download OpenNI from the following link: http://www.openni.org/Downloads/OpenNIModules.aspx Th...
SensorKinect not installing?
Fromhttps://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.htmlCSV must not have headers:Amazon SageMaker requires that a CSV file doesn't have a header record ...Try removing the header row.
I'm trying to run a training job on AWS Sagemaker, but it keeps failing giving the following error:ClientError: Unable to parse csv: rows 1-5000, file /opt/ml/input/data/train/KMeans_data.csvI've selected 'text/csv' as the content type and my CSV file contains 5 columns with numerical content and text headers.Can anyon...
AWS Sagemaker unable to parse csv
"Lasts until" also is a minimum.
Depending on the compiler the following code:int main() { srand( 0 ); if( rand() ) { char buffer[600 * 1024] = {}; printf( buffer ); } else { char buffer[500 * 1024] = {}; printf( buffer ); } return 0; }when ran on a system with maximum stack size equal to 1 megabyte either prints...
What are exact requirements on automatic storage duration?
$connection is a counter, not the total number of used connections right now. So it's intended to grow.Keepalive connections cannot be discarded, so the room is worker_processes * worker_connections - keepalive connections
The nginx documentation saysmax_clients = worker_processes * worker_connectionsbut how does the keepalive factor into this? I have my configuration setup with 2 worker_processes and 8192 worker_connections; that means I can theoretically handle a maximum of 16384 concurrent connections. Pushing out 16384 streams of dat...
In nginx, what is the relationship between worker_connections, keepalive_timeout and $connection
It is possible, you just have to create a service with multiple ports, for example:apiVersion: v1 kind: Service metadata: name: service-name spec: ports: - name: http port: 80 targetPort: 80 - name: https port: 443 targetPort: 443 - name: any other port port: <port-number> targetPort: ...
I have deployed RabbitMQ in Kubernetes using a service with the load balancer type. When creating a service, an external IP is created. Could you please tell me if I can bind another deployment to this IP with other ports? Thanks.
Using the external IP service of the load balancer for different pod Kubernetes
They are really complimentary. Etags/fresh_when etc. help you play nice with downstream caches (like your own Varnish/Squid instances or Rack::Cache or the Browser cache or ISP Proxy Servers…)Page caching saves you from hitting your rails stack entirely because Apache/your webserver serve the file, so no DB lookups are...
What would be some advantages of using etags/stale?/fresh_when? instead of page caching (on a file cache)?Apache automatically handles etags for static files, but even if it didn't, page caching would still be better since the Rails app doesn't even get called.So, in what instances would I use the methods provided by R...
Rails - etags vs. page caching (file cache)
I assume the docker image you are creating is for production. If you create an image which takes the sources and build the war, you will have to embed : The JDK Maven Your sources Each of these are completely useless and take a lot of space in your image for absolutely nothing. So yeah, IMO you only add the war to y...
I'm working on 'dockerizing' a java web application (https://github.com/kermitt2/grobid) which I want to run using jetty. Here the Dockerfile: FROM jetty:9.3-jre8 ADD ./grobid-home/target/grobid-home-0.4.1-SNAPSHOT.zip /opt RUN unzip /opt/grobid-home-0.4.1-SNAPSHOT.zip -d /opt && \ rm /opt/grobid-home-0.4.1-SNA...
Build docker image with jetty - when should I build?
1 You might want to familiarize yourself with the different versions of Processing. You can use Processing.js to deploy Processing to the web, but that's no longer recommended by its developers anymore, just because it hasn't been updated in a few years and is no longer com...
What is the best way to publish a Processing sketch online? I should like users to be able to access the sketch though a webpage. Is it possible to do this with GitHub? Is there a better platform? Many thanks for any help.
Best way to publish Processing sketches online?
This is the doc aboutMetadata syntax for Github Action.As you can seeherethere is noinputsproperty foron.push. Why you want to pass a parameter to theon.push? That property is to allow an action run on specificbranchortag.That property exist for:on.workflow_call.inputson.workflow_dispatch.inputs
I want to have input variables defined in the inputs section of thepushevent.I get this error via my ID:Property inputs is not allowed.yaml-schema: GitHub WorkflowAnd the variable is not passed along to the jobs, just an empty string is placed.The other alternative I think is to use env variables but wanted to know if ...
How to define inputs in a `push` trigger in Github Actions?
Wait. If you're doing this:egrep -r ".*word.*"It won't return because you haven't pointedegrepat a file to grep through. Generally, you use grep like this:egrep "word" filename egrep -r "word" directory/ egrep -r "word" *You can grep the output ofcrontab -llike this:crontab -l | egrep "word"Other notes:the.*word.*is un...
I'm trying to search for a specific word in my cron job, which we'll callwordfor now.The machine is an AWS server, and I've only ever used one username, so I do not think it is an issue of cron jobs being under a different user.So, in the root directory, I doegrep -r ".*word.*". Nothing comes up. I would assume the o...
How to grep lines in a cron job whose crontab appears to be deleted?
According to the github page of your project, it seems you solved your problem.I bet you moved your folders usingmvandgit add-ed the uppercase-version and did not stage the removal of the lowercase-version. You have to "add" the deletion.To move things around,git mvtakes care of everything for you.ShareFollowansweredM...
I have a gitrepositorythat had a directory calledCode. We wanted to remove the capitalization and change the directory name tocode. We made that change locally and pushed it to the repo. Now on GitHub, it appears that the repository has two copies of the directory, one with each capitalization. When you clone the repo,...
GitHub shows directories twice that have been renamed
You can either:use a different account and declare your proxy in your global Git settings.Those are stored in\Path\To\yourAccount\.gitconfig, which means two different settings depending on your workplace.use a script that you launch automatically when you start your OS, which will:detect if a proxy is needed (try acce...
I work at a company and from home too using my laptop running Ubuntu Linux. The code is in a github repo. At company I access the network via a http proxy while at home there is no proxy. How to git push/pull in such cases? How to tell git to use proxy when at company and not to use proxy when at home?This seems differ...
git how switch proxy settings for different networks
Try this ruleright at top, just belowRewriteEngine Online:RewriteCond %{QUERY_STRING} ^page_id=\d+$ [NC] RewriteRule ^/?$ /? [R=301,L]/?will strip off any query string.
It sounds like a relatively simple one but here goes.. I have a wordpress website called example.com It has recently been redeveloped using wordpress however the old sites structure used the following www.example.com/?page_id=22 I want to redirect anything after the domain name that contains /?page_id=[any digit] to th...
Apache HTAccess Remove Query String for redirect
I would suggest You to drop Form approach and use simple json_decode to get array (it's cheaper resource wise compared to Object), then create a bunch of ArrayToEntityTransformer using StrategyPattern. In each strategy You can validate given array before object creation process. If object is valid, use doctrine batch ...
In my Symfony 2.6 project I have API for mobile app that gives a possibility to add and object with lots of data. Main form consists of collection of other forms. Each of child forms have the same things, 4 in total. So the structure looks like this: Master form has Child1 forsm which has Child2 forms which has Child3...
API with hundrets of forms - out of memory
Doc says that you sethostPathwhen creating a PV (the step before creating PVC).apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume labels: type: local spec: storageClassName: manual capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: "/mnt/data"After you cre...
I need to make use of PVC to specify the specs of the PV and I also need to make sure it uses a custom local storage path in the PV.I am unable to figure out how to mention the hostpath in a PVC?This is the PVC config:apiVersion: v1 kind: PersistentVolumeClaim metadata: name: mongo-pvc spec: accessModes: -...
Kubernetes - How do I mention hostPath in PVC?
You probably want to reverse proxy instead. If you have access to the vhost/server config files, you can add lines like this:ProxyPassMatch ^/(.*)\.php$ http://127.0.0.1:88/$1.php ProxyPassReverse / http://127.0.0.1:88/Or if you have mod_proxy turned on, you can do this in the htaccess file using thePflag:RewriteRule ^...
I want the Hip Hop Virtual Machine run php code for only one specific website. All other websites and images will still be served by Apache. I have installed HHVM and it's running on port 88.I guess I need to add a rewrite rule to .htaccess of that website to redirect requests for .php files to port 88. Is this the rig...
Apache htaccess rewrite to HHVM
Assuming you are running an AD CS Enterprise CA, certificate templates are stored in Active Directory, located in the Configuration NC.(As noted byCryptoGuyin the comments, this approach isnot supportedby Microsoft - you really should just be using the Certificate Templates mmc,certtmpl.msc, for this task)To retrieve a...
I'm looking for a way to update the Validity period of an existing CA Template, do you know if this is possible using certutil, any other command or programatically with Powershell or C#.The CA is running on Windows Server 2008 R2.My goal is run a script on a daily basis to update the validity period for a specific tem...
How to update the validity period of an existing CA template programatically or using command-line program
Okay, so the conclusion to this issue was that the String buffer could not be predetermined or properly cleared at these file sizes. In this case the image was pulled from a server as a string, manipulated as a string and finally displayed as an image. Whether displayed as an ImageView or as a Webview, it did not mat...
I am displaying a fairly large image in a webview so that the pinch-to-zoom functions and other conveniences for viewing are already available. It displays correctly the first time. But after leaving the activity and coming back to it, the app crashes on an OutofMemoryError related to the webview thread. I have attemp...
Android clear webview thread, free memory, avoid OutOfMemoryError
Possible duplicate ofExecute python Script on CrontabEDIT:Adding comment here since the comment box mangled my formatting.In your example above it looks like you are just trying to "run" the file. You need to call the python executable, and pass it an argument that points to your file.From the StackOverflow comment men...
I am attempting to run a python 3 script every 1 minute using cron on a raspberrypi 3, for testing, where eventually it will just be run once a day.To start, I made a new cron job using:sudo crontab -e, and typed in the following code for a once a minute job:*/1 * * * * /home/pi/folder/file.pyThen I saved and closed an...
Trouble executing a python 3 script every minute with cron
8 It might be because you have installed a torch package with cuda==10.* (e.g. torch==1.9.0+cu102) . I'd suggest trying: pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html Share Improve...
NVIDIA GeForce RTX 3070 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. So I'm currently trying to train a neural network but I'm getting this issue. It seems that the GPU model I have is not compatibl...
RTX 3070 compatibility with Pytorch
When you create a Kubernetes Service of type LoadBalancer, the AWS cloud provider load balancer controller creates AWS Classic Load Balancers (in-tree) by default.UseAWS Load Balancer Controllerinstead of the AWS cloud provider load balancer controller. The AWS Load Balancer Controller creates ELB NLB. But note that, t...
I have a quick question regarding AWS EKS that whenever I create a K8s service with of type LoadBalancer, it provisions a classic ELB backed the EC2 where services are running. Now whenever I try to hit the Load Balancer ELB from the Internet, it returns ERR_EMPTY_RESPONSE error. If I navigate back to ELB and look at t...
AWS EKS - Create Load Balancer Service throws out of service
Have a look at the cloudyraws.s3package (https://github.com/cloudyr/aws.s3), it might do what you need. Unfortunately (at time of writing), this package is quite early stage & a little unstable.I've had good success simply using R'ssystem()command to make a call to the AWS CLI. This is relatively easy to get started on...
I have set-up R on an EC2 Instance on AWS. I have few csv files uploaded into a S3 bucket. I was wondering if there is a way to access the csv files in the S3 bucket from R.Any help/pointers would be appreciated.
To access S3 bucket from R
Maybe this works:RewriteRule ^($|.*) /webapp/index.php?_path=$1 [L,QSA]Or you may try this in case the .htaccess file is not at root or DirectoryIndex is not set:DirectoryIndex index.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^($|.*) ...
I would like the webapp/index.php loaded whenever any path/page is requested for. Therefore I put the following in my htaccessRewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /webapp/index.php?_path=$1 [L,QSA]This work for any path, although is no page is given...
Htaccess rewrite if not path entered
I was able to set the umask forphp5-fpmservice by editing it'sunit.servicefile as suggestedhereandhere. The complete and working solution for Debian 8 is this:Manually edit/etc/systemd/system/multi-user.target.wants/php5-fpm.servicefile and addUMask=0002line inside[Service]section.Run commandsystemctl daemon-reloadRun ...
I'm runningphp5-fpmwithnginxconnected via port (not socket). It's stock Debian Jessie with all packages installed viaapt-get.I'm trying to change default umask for www-data user thatphp5-fpmis using from0022to0002to allow group write permissions. I've tried:editing/etc/init.d/php5-fpminit script and adding--umask 0002t...
How to set umask for php5-fpm on Debian?
I guess that you are talking about the parameterized plugin:https://wiki.jenkins.io/display/JENKINS/Parameterized+Trigger+PluginThis plugin let you provide data when you trigger the build. This is a great plugin when your builds trigger each others, and you need data from a previous build executed on another slave.If y...
Is there a way to output SonarQube results to 2 different server locations through a Jenkins configuration, using a single Jenkins build for each SonarQube output?I know Jenkins has a concept of parameterized build where the build could be parameterized by the Sonar Server name.
Output sonarqube result to different server locations
I can't really see a way arounda[index]. But instead of a loop that process one line at a time, you can process chunks:chunk = n // 10 # the largest chunk you can fit into memory result = torch.empty((n, ), dtype=a.dtype, device=a.device) from_ = 0 while from_ < n: to_ = min(from_ + chunk, n) result[from_:to_] = (...
I have to calculate this using Pytorch. But it is very slow on GPU, actually not faster than CPU version.# n, k 10000000 ( 1E7 ) # a shape: (n, 100) ( 1E9 ) # index shape: (k, 10) ( 1E8 ) used to select the rows of a # w shape: (k, 10) ( 1E8 ) # result shape...
How to parallelize iterations of a tensor multiplying which requires extra indexing, or vectorize it without more memory?
1 Almost every Amazon document points us to using the CLI or an SDK, however it is possible to make it work with just API calls. There are two main challenges to making direct API calls: Signing AWS API requests As of curl 7.75.0 we have the --aws-sigv4 option to handle ...
The canonical way I've seen to authenticate with an ECR repo (for docker) is to use the aws ecr get-login-password command https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html#registry-auth-token I am in an environment where I'm unable to install the aws cli command. Does anyone know of a way to g...
Authenticate with AWS ECR without aws cli
Add this to a.ebextensions/customize_httpd.configfile:files: "/etc/httpd/conf.d/wsgi_custom.conf": mode: "000644" owner: root group: root content: | WSGIPassAuthorization OnThis is more reliable then trying to concat to a conf file that may or may not exist.
Using AWS console, I changed configuration setting of api key for a third-party service. Then all of a sudden, the following error is popping up on my live server.{"detail":"Authentication credentials were not provided."}It seemsJWT tokenis not being validated(or passed). After hours of googling, I found that the error...
AWS ElasticBeanstalk: JWT token not being validated after configuration change
cudaFree()is synchronous. If you really want it to be asynchronous, you can create your own CPU thread, give it a worker queue, and registercudaFreerequests from your primary thread.That said, asynchronous frees seem like an odd request. Perhaps you could explain why you'd like it to be asynchronous. Do you want the...
My question is just as the title. Actually, I am looking for a way to free device memory asynchronously.Thanks!
Is cudaFree() asynchronous?
you have run git checkout <some-sha> probably, so now git is looking at that commit, but is not on the tip of any branch. If you've done work where you are now, save it with git diff > savefile.tmp and then checkout to the branch you want: git checkout master, and then apply the work you've done: patch -p1 < savefile...
I am using the Git Plugin of Jenkins and have a Job that needs to commit and push some changes. The git repository I am using is hosted on GitHub. Bear with me, I am somewhat new to git. However, when I run git status or git commit it says # Not on any branch. If I tell the plugin to use a 'branch specifier', i.e. ori...
Pushing/committing with the Jenkins git plugin: #Not on any branch (GitHub repo)
Follow the steps to update buffer pool size-Editinnodb_buffer_pool_sizeMySQL Overview / Edit Panel, replace Metrics(mysql_global_variables_innodb_buffer_pool_size{instance="$host"} * 100) / on (instance) node_memory_MemTotal_bytes{instance="$host"}intoavg by (node_name) ((mysql_global_variables_innodb_buffer_pool_size{...
I have installed the prometheusnode_exporterrunning on port9100andmysqld_exporterrunning in port9104and configuredgrafanato useprometheusas the default source.From the grafana explorer, I can query thenode_memory_MemTotal_bytesusing something like:node_memory_MemTotal_bytes{instance="10.0.0.4:9100"}notice port 9100 (no...
InnoDB Buffer Pool Size % of Total RAM - (Buffer Pool Size of Total RAM) returning No Data
Assuming the path toipsetis/usr/sbin/ipset:import os os.system('/usr/sbin/ipset add mylist 45.254.246.0/24')ShareFollowansweredFeb 24, 2023 at 22:28Sean O'DonnellSean O'Donnell1Add a comment|
I have existing ipsetmylist, which I created with this command:ipset create mylist hash:netNow, I would like to be able, from my python script, to add IPs to this list. This is the command I would use to do it manually from the commandline:ipset add mylist 45.254.246.0/24how can I do the same from python script?I found...
'ipset add' from python script
What you have described should work just fine. Given:$ cat Dockerfile FROM socialengine/nginx-spa ENV API_URL localhost:6007 $ docker build -t ui . [...]Consider this:$ docker run -it --rm ui env | grep API_URL API_URL=localhost:6007Compared to:$ docker run -it --rm -e API_URL='production:6007' ui env | grep API_URL A...
I have a Dockerfile and I'd like to make the API configurable with a default value.FROM socialengine/nginx-spaENV API_URL localhost:6007So when I run this image I'd to be able to override the localhost:6007 with something like below:docker run -e API_URL=production.com:6007 uiThis doesn't work and I can't find a clear ...
Dockerfile Overriding ENV variable
I have run into this again years later but now found an adequate solution, assuming the files can be grouped into a fixed set of categories.The answer is basically combining the answers ofDocker COPY files using glob pattern?andhttps://unix.stackexchange.com/questions/59112/preserve-directory-structure-when-moving-file...
Consider the following docker build context:src/ hi there byeand Dockerfile:FROM ubuntu RUN mkdir test COPY src/hi src/there test/This works just fine but I would like to make the list of files to copy anARG, something like:FROM ubuntu ARG files RUN mkdir test COPY ${files} test/Unfortunately calling withdocke...
Specify multiple files in ARG to COPY in Dockerfile
try this:param( [Parameter(Mandatory = $true,ValueFromPipeline = $true)] $Process ) process{ New-Object PSObject -Property @{ Name = $Process.Processname} }Edit:if you need a function:function Get-MoreInfo { param( [Parameter(Mandatory = $true,ValueFromPipeline = $true)] $Process ) process{ New-Object ...
I have an issue running the following script in a pipeline:Get-Process | Get-MoreInfo.ps1The issue is that only the last process of the collection is being displayed. How do I work with all members of the collection in the following script:param( [Parameter(Mandatory = $true,ValueFromPipeline = $true)] $Process...
Powershell pipelining only returns last member of collection
I ran into this problem a while back as well. I'm not sure if the Stable version has the fix added yet, but I believe they fixed it in the Edge version. Either way, you can do it through the Hyper-V Manager. You click the Edit Disk item and you can then expand the disk size there. Make sure you completely shutdown and...
I have a Ubuntu container that has a volume where my postgresql database is stored. My database has run out of space as it has failed over, and I can see disk usage is at 100% when I query disk stats on the Ubuntu container: root@b2b1bc6c247c:/# df -h Filesystem Size Used Avail Use% Mounted on overlay 5...
Disk space issue in Docker for Windows
I tried downgrading but it didn't work. What worked for me is indocker-composefile in the react app sector I added:stdin_open: trueThis solution is also suggested here:issue on github
I am trying to start a Docker container with a react project, the project is created using npm init react-app.This is my docker file# Specify a base image FROM node:alpine WORKDIR /usr/app # Install some depenendencies COPY ./package.json ./ RUN npm install COPY ./ ./ # Default command CMD ["npm", "run", "start"]Doc...
Docker container exiting immediately after starting when using npm init react-app
.How can I keep my local copy of assignmentX in sync with the changes the instructor might make without losing my changes. I tried merging but that has not worked to well for me. Maybe my SVN background is getting in the way.You will need to do apullto get the remote changes in your repository. Either the professor...
I am taking an online class from Coursera. This is my first experience with git (I usually use SVN) and I am having some issues.The programming assignments for the class are in a github repository with structure.class/assignments/assignment1 class/assignments/assignment2 ...The assignmentsX folder contains a skeleton...
using git with readonly repository
PHP-FPM is much better than the old FastCGI handling of PHP. As of PHP 5.3.3 PHP-FPM is in core and the old FastCGI implementation isn’t available anymore.My answer was just down voted (after being online for quite some time) and I understand why, so here is a list why PHP-FPM is actually better than the old FastCGI im...
I am using thistutorialto install nginx, php and mysql on my new web server.The tutorial is using ISPConfig 3 and there is an option to whether use FastCgi or PHP-FPM.I am wondering which is better of the two. In terms of performance and speed, which of the two is the best to use inline with nginx?BTW, I have also memc...
FastCgi vs PHP-FPM using Nginx web server
Not knowing what Winsock2 LSP does, it's difficult to answer your question.You can implement application-layer protocols with the appropriate packet(7) socket. Read the man page for more informationIf you want to do network filtering in userspace, you can use the netfilter_queue facility, typically combined with iptabl...
I'm looking for Linux's OSI equivalent to Windows' winsock2 LSP.In particular I would like to filter application layer protocols and traffic in linux.Any information would greatly be appreciated.
Linux OSI equivalent to Winsock2's LSP
Add the following to your~/.profile:export PATH="$PATH:/home/firefox"Or to~/.bashrc, or~/.bash_profile, if the shell is Bash.SeeShell initialization files
This is naive question but how does one add firefox to the system PATH on a Amazon Web Service Linux instance? I should clarify that I installed firefox to/home/firefoxinstead of/usr/bin. Thanks! I am currently getting the following error when I try to load the firefox webdriver (after importingselenium):>>> driver = w...
How to add firefox to system PATH on Linux instance at Amazon Web Service?
Please add chmod +x filename before calling your script.
I built a github workflow and for some reason it doesn't recognize the dita.bat file as a command. All the files are present in the repo and checkout is performed. Error: ant ant.bat dita dita.bat sudo: ./dita.bat: command not found Error: Process completed with exit code 1. Github workflow step: - name: Build WebHel...
Why Github workflows doesn't recognize command?
You can run your code locally using theserverless-offlinepluginSupply your JDWP agent string via the environment variableJAVA_TOOL_OPTIONS. Be sure to setsuspend=y, to ensure you can connect your debugger before the function finishes executing. There are lots of ways of doing this — I suggest using theserverless-doten...
I am working on a project using the serverless framework with code written in Java and deployed on AWS. I am able to deploy the lambda functions to AWS and I am also able to use the "serverless invoke local" command to run them locally.What I haven't figured out is how to attach to and debug this locally running funct...
debugging java functions via serverless-framework invoke local
Usually you refer to target port by its number. But you can give a specific name to each pod`s port and refer this name in your service specification.This will make your service clearer. Here you have example where you named your ports in pod.apiVersion: v1 kind: Pod metadata: name: test spec: containers: - nam...
In kubernetes, I always see the service's definition like this:--- apiVersion: v1 kind: Service metadata: name: random-exporter labels: app: random-exporter spec: type: ClusterIP selector: app: random-exporter ports: - port: 9800 targetPort: http name: random-portwhose targetPort ishtt...
More default named port in kubernetes?
Yes, the way I achieved this (after much difficulty, the documentation is scattered all over the place and focused on specific use cases that weren't mine) was with localstack. You need docker running, then: pip install localstack Then: localstack start Some documentation I've found suggested that you use http://loc...
I'm looking at running some of our AWS lambdas locally via SAM, including a one that writes to an S3 bucket. Is there a way of getting S3 to run locally, or talk to an S3 bucket in the cloud and write to that while running the lamda locally?
How to run a AWS lambda via SAM local that writes to an S3 bucket?
According to Nginxdocs:This directive is available as part of nginx commercial subscription.
I am new to nginx. I am using -health_check uri=/some/uribut on running the test with this command -sudo /usr/sbin/nginx -t -c /etc/nginx/nginx.confI get the following error -nginx: [emerg] unknown directive "health_check" in /etc/nginx/sites-enabled/abc.conf:121Can someone tell what is wrong here..? I have used apache...
nginx unknown directive health_check
When running Xamarin.iOS in debug mode on the simulator, there is a thread that continuously calls GC.Collect() every few seconds so the garbage collections happens way more often than on real device. This is mostly to help you finding bugs in your code faster (like accessing a managed reference that is already gone)....
When I run xcode instruments and I profile on the emulator, my UiViewControllers Dispose methods are being called instantly after the view is removed. But when I run the app on the device, the dispose methods of all the UiViewController are never being called!. Or are called very slowly and the memory gets too high. I...
the garbage collector in Xamarin Ios it not working on devices
It is an implementation detail.For CPython (the common one...), actually even the5itself doesn't take any additional space!read here(ints from-5to256live in a pre-allocated array).Also in CPython, the identity returned byidis simply the address in memoryof the variable, so it is also doesn't take any additional memory ...
For examplex = 5the value 5 is stored in the memory. Does variable name x, reference and unique identity(id() function) are also stored somewhere in memory. How does it work?
In python does the variable name, reference and unique identity(id() function) also take up space in memory?
if you are using htaccess then you can do like #Initialize mod_rewrite RewriteEngine On <FilesMatch "\.(html|htm|js|css)$"> FileETag None <IfModule mod_headers.c> Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expi...
I put only index.html in /var/www/html. The page doesn't update after I changed the contents of index.html and reload. I already disable cache_module in httpd.conf like this below. # LoadModule cache_module modules/mod_cache.so # LoadModule disk_cache_module modules/mod_disk_cache.so
How to disable cache of Apache?
You can use the reset --hard command but be warned that it will wipe out any uncommitted changes in your working copy. Find the sha1 of the commit you want your branch to point at (I.e. before the last 2 commits) then use:git reset --hard abcdef1234Where abcdef1234 is the sha1 of the commit you want to go back to. Af...
This question already has answers here:How can I remove a commit on GitHub? [duplicate](21 answers)Closed10 years ago.I have local repository setup with 2 branchesmasterandsandbox. I made changes on sandbox: 1. Changes for the working version and, 2. Changes to get the version working on my Windows machine.I committe...
Undo a commit on Github? [duplicate]
For those interested, I managed to solve my issue although not quite sure how or more precisely which of the steps that I used, did help me solve the issue. So basically, I first revoked my tokens and made a new one. Then I logged in to docker like this docker login -u USERNAME -p TOKEN ghcr.io while before I would us...
I am currently trying to run a docker GitHub Action which builds and pushes a docker image to the GitHub Packages but I am receiving an error which I have never seen. For some reason it fails to push the docker image because write_permission is denied but I have a token allowing me to write so I don't understand what ...
GitHub: denied: permission_denied: write_package
You may specify locale as in the following example.public static String getEndDate() { Calendar date = Calendar.getInstance(); date.setTime(new Date()); Format f = new SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH); // Locale date.add(Calendar.YEAR,1); return f.format(date.getTime()); }It is notewor...
Below is my method to set the date in yyyy-MM-dd format code is working as expected but I am getting sonar error - When instantiating a SimpleDateFormat object, specify a Locale. Any Suggestion experts how to resolve this issue ?public String getEndDate() throws ParseException { Calendar date = Calendar.getInst...
Sonar - When instantiating a SimpleDateFormat object, specify a Locale
First of all read the docs ofSonarJava- actually everything you need to know is in there :Dshort outline:you need to generate a report for the coverage with eg. JaCoCo or Coberturayou need to provide a property with a path to those reports eg. for JaCoCosonar.jacoco.reportPaths=<path>you run the analysis and sonar will...
When I run unit tests with the coverage, I can see that lines are covered by unit tests. But when I commit them Sonarqube shows that lines are uncovered. How can i configure sonarqube to measure unit test written with using powermockito?
SonarQube cannot measure unit tests runs with PowerMockito
So, is there a git internal command, which in one way or another would "know" the way the remote URLs are constructed…No, not at all.gitknows Git object database and Git protocol. Web interfaces to the database are properties of Git hostings and they deliberately do things differently from one another to catch users in...
As an example, let's say I check out this small project on GitLab:git clone https://gitlab.com/gitlab-examples/functions.git cd functions git rev-parse --short HEAD # c1fccc0 git branch -l # * masterSo, by default after cloning we're inmasterbranch, at commitc1fccc0.Now, I'd like to get the remote URL showing me the gi...
Get git remote url for webpage tree view at current HEAD hash?
You can try the following:0 7 ? * * *All the times are in GMT, thus you would have to adjust the above to match your time zone.
I am trying to set a schedule using a corn job expression for a lambda function target. The goal is to run the lambda function every day at 7 am IST.My cron job expression is:0 7 * * * ....have set the target to be a lambda function.While configuring the event I get the following error:Event pattern contains an invalid...
Cron job cloud watch event error: "Event pattern contains invalid value (can only be a nonempty array or nonempty object)
I got a second error message and this may explain the reason: The error message says: "These API types may only be associated to REGIONAL domain names": this means that an HTTP API can only be associated with a REGIONAL custom domain so EDGE is not (hopefully yet) supported with EDGE custom domains. You only have the...
I have created a sample API Gateway using "HTTP API". I then add a custom domain and added the relevant CNAME record to the DNS. I then go on Configure API mappings, to add the HTTP API but I get the following error message: Mixing of REST APIs and HTTP APIs on the same domain name can only be accomplished through AP...
API Gateway: Mixing of REST APIs and HTTP APIs on the same domain name can only be accomplished through API Gateway's V2 DomainName interface error
22 You can specify the user as an argument: sudo docker exec -it --user root sql1 "bash" Share Improve this answer Follow edited Mar 28, 2023 at 18:11 Jakob Bagterp 85577 silver badges1616 bronze bad...
I created a MSSQL docker container based on the official image provided by Microsoft (https://hub.docker.com/_/microsoft-mssql-server). I started a bash shell inside the running container and tried to delete some files. sudo docker exec -it sql1 "bash" Inside the container it is using the mssql account (by default). ...
Get root access inside mssql docker container
Currently there is no documentataion. I am forced to use other more-well documented technologies, such as the Google Books API. When Amazon gets some documentation for a working system, I will untag this as the answer and tag the current one.
I have searched high and low to try and get the Product Advertising API to work - I have tried many examples from these forums and from the internet and it does not work. There has been some talk about modifying the WSDL and that does not work either. Here is where I have been: https://affiliate-program.amazon.com/gp/...
Amazon web services working examples
The key phrase "no longer guaranteed". The behaviour is undefined. It might work, or it might not, depending on what your compiler decides to do. You cannot rely on this behaviour. So you should never write code like that.
This question already has answers here: Closed 12 years ago. Possible Duplicate: Can a local variable's memory be accessed outside its scope? i have following question related to memory managment,source from where i am reading this article ...
memory management question [duplicate]
As you are getting over the MAX_PATH length, try moving the whole project to a different location (with shorter path).
I have tried to configure GitHub with Visual Studio 2012 update 4. I get the following error message:An error occurred. Detailed message: An error was raised by libgit2. Category = Os (Error).Could not openC:/Auto/Automation/Automation/DevAutomation/............/........./......../....../...../........./TestSuite/.../O...
Visual Studio 2012 Integration with Git Plugin
Thermcommand doesn't take filenames from standard input. If you want to pipe fromsedtorm, you can usexargs. For example:find /home/mba/Desktop/ -type d -name "logs" | sed 's/$/\/\*/' | xargs rm -rf
I want to pipeline the below commands but the last cmd "rm -rf"is not working i.e. Nothing deleted :find /home/mba/Desktop/ -type d -name "logs" | sed 's/$/\/\*/' | rm -rfNo error is returned.
Why won't rm remove files passed in from find or sed?
We saw the same error messages in our log after upgrading to SonarQube 5.4. Our Sonar instance is running behind an apache server that's acting as a reverse proxy. We're using basic authentication over https to add some additional security.The solution in our case?Add:RequestHeader unset Authorizationin the<VirtualHost...
Why do I get this error message?[o.s.s.ui.JRubyFacade] Fail to render: .... undefined method 'empty?' for nil:NilClass /web/WEB-INF/lib/authenticated_system.rb:132 in 'login_from_basic_auth' org/jruby/RubyProc.java:290 in 'call' org/jruby/RubyProc.java:224 in 'call' ...We have seen this error during rendering of differ...
SonarQube 5.3 log: "Undefined method 'empty?' for nil:NilClass" error messages
Spring is pretty clear about TTL/TTI (Expiration) and Eviction policies as explained in the core Spring Framework Reference Guide here. In other words, the "defaults" depend entirely on the underlying data store (a.k.a. caching provider) used with the Spring Boot app via the Spring Cache Abstraction. While Arpit's so...
I generally use the @Cacheable with a cache config in my spring-boot app and set specific TTL (time to live) for each cache. I recently inherited a spring boot app that uses @Cacheable without explicitly stating a cache manager and ttl. I will be changing it to be explicit. But I am not able to find out what are the d...
Spring @Cacheable default TTL