Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The batch filecatalina.bat(or catalina.sh for unix) located atyour/tomcat/directory/binlooks for a batch file (or shell script) namedsetenv.batorsetenv.sh. That is where you place your heap size with the JVM -Xms and -Xmx parametersput this in your setenv.bat (if yourbindoesnt have one):set "JAVA_OPTS=%JAVA_OPTS% -Xms1...
I understand that I can configure this somehow by passing in the java maximum heap and initial heap size arguments;-Xmx256m -Xms128m But I can't find where to put this in the configuration of Tomcat on Windows
Tomcat - How to limit the maximum memory Tomcat will use In WIndows OS
Sometimes users have the issue that all pages get 404 errors when SSL is activated. The cause may be differ from user to user and server to server. I have also faced this issue, try to do the following to get it resolved.1) Re-save the permalinks, Re-saving makes sure the WordPress rewrite rules get flushed. (If you ...
I have an ECS instance on Alibaba using LetsEncrypt for SSL configuration but i have an issue with PHP Video Streaming that is not working when SSL is used where Video Link gives 404 when the streaming begins but It works fine on http.This is the used package for streaming:http://codesamplez.com/programming/php-html5-v...
Video Streaming using SSL on Alibaba ECS
You need an instance profile, a role, and the instance info (or launch configuration) itself. Your instance profile would look like this: "Resources" : { "InstanceProfile" : { "Type" : "AWS::IAM::InstanceProfile", "Properties" : { "Path" : "/", "Roles" : ["MyExistingRole"] } }, "Instance...
How can I use an existing IAM role for an EC2 instance, as opposed to creating a new one in my CloudFormation template? For example, I have created a role in AWS Console and just want to use that.
Associate existing IAM role with EC2 instance in CloudFormation
Disclaimer: I know nothing about git.According tothis, the best practice is to userebase. As I am not familiar with git, I can't tell you how to setuprebaseon Jenkins.There is another poster here that also has issues with git and "Legacy code started this job" triggering extra builds:Legacy code started this job. No ca...
The idea is:all devs work on their feature branches and push them to githubjenkins starts builds (triggered by "push on github") on jobtestto run unit tests on those feature branchesOnce they pass the test, manager goes to github to do code review.If code review is fine, then this build is promoted(promote build plugin...
How to deal with promoted conflicting branches on jenkins
I finally figured it out. If I do the requests from the Next API hitting 'localhost' instead of the public IP of my Amazon EC2 Instance i don't have any problems. Even when the 3000 port is completely closed.ShareFollowansweredJun 26, 2023 at 13:32Matías LeandroMatías Leandro5977 bronze badgesAdd a comment|
I have the following dilemma. I have an Amazon EC2 instance running Ubuntu with only the 3001 port open to incoming requests. I have a Nextjs app running in that port and don't have any problem with accessing it through a browser, and an Express Webserver runing in the 3000 port.As you would notice, the server is not o...
Can't reach server running in blocked port through backend in Amazon EC2
I will help you resolve this.I have checked the directory and am sure libmxnet.dll exists. I feel like I am missing something obvious.if libmxnet.dll exists, and yet we get the missing module error, it means one or more DLLs on which libmxnet.dll depends is missing.Can you please download Process Monitor from "https:...
I've spent all day trying to figure out how to work mxnet GPU in R on windows. The package installs fine, but on library(mxnet) I get an error:Error: package or namespace load failed for ‘mxnet’: .onLoad failed in loadNamespace() for 'mxnet', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: u...
Cannot successfully run mxnet in R on windows
Click this button as shown on the screenshot:
I am running a Django Project in PyCharm and deploying it to EC2 in AWS. The guide tells me to use nginx I have to create a file callednginx_someName.confhowever no matter how much I try I can't get create a.conffile and write in it. I tried to download Scala to Pycharm using the question belowIntelliJ IDEA plugin to f...
How to add .conf files to Pycharm
10 The docs now clearly state that you can add up to 50 recipients per message. So you can divide up your sender list in batches; for 200k recipients you would have to make 4k API calls. Not terribly convenient for bulk mails; I would guess Amazon is not orienting their s...
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions see...
Amazon SES (Simple Email Service) for bulk e-mail, NOT for transactional e-mails? [closed]
Have you checked the import settings of your import. Under theConfigure Advanced Settingstab, there is a checkboxIncrease speed by disabling do_action calls in wp_insert_post during import.Uncheck the checkbox and it should work automatically during import.
I am having a bit of trouble with a function I am trying to write.The idea behind it:I am using WP All Import to import a CSV file on my server, this runs each day as a cron job and works as should.I have set the logic of my function to 'get_post_meta' of a custom field inside my custom post type 'Listings', and if thi...
All Import Plugin - Update all posts after cron import
I think specifying this would solve your problemImports: Brobdingnag (>= 1.2.8) Remotes: RobinHankin/Brobdingnag@HEAD
I'm need to fix the Description file for an R package and I need to specify a specific version of imported package (i.e. Brobdingnag (>= 1.2-8) ).But that version is not on Cran already (Cran has only up to 1.2-7) but is on github.so I tried :Imports: Brobdingnag (>= 1.2-8) Remotes: RobinHankin/BrobdingnagBu...
R package - How to specify a dependency version that is only available on github (AKA dev version)
RewriteRule ^(.*?)/(.*?)/?$ $1.php?name=$2 [NC,L]ShareFolloweditedAug 28, 2015 at 9:16answeredJul 23, 2015 at 9:55Marcello MönkemeyerMarcello Mönkemeyer65055 silver badges3030 bronze badges7Yes But schooldetails in not a contsant it may chnage to collegedetails or events or anything. I need to remove only .php?name=–J...
I have dynamic url likehttp://epathasala.com/schooldetails.php?name=john-paul-higher-secondary-school http://epathasala.com/universitydetails.php?name=demo-university http://epathasala.com/schooldetails.php?name=tagore-international-schoolI need to remove all the query string and change the url like belowhttp://epathas...
How to Remove Query String in Dynamic url in PHP
The defaultHttpFirewallisStrictHttpFirewallwhich will by default reject header value that containsISO control charactersand character that are notdefined:You can try to configure theHttpFirewallto accept more relax header values by setting the corresponding predicate that satisfy your need by:public class Config extend...
I got the following error with my Spring Boot application:org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the header value "Mozilla/5.0 (Windows NT 10.0; ГўВЂВ¦) Gecko/20100101 Firefox/73.0" is not allowed. at org.springframework.security.web.firewall.StrictHttpF...
Spring Boot security RequestRejectedException
Yes, a lock file is the simplest solution.ShareFollowansweredMay 23, 2012 at 21:12Diego WoitasenDiego Woitasen33.8k11 gold badge1818 silver badges2020 bronze badgesAdd a comment|
What different practices exist for preventing a cron job from running again if it exited unsuccessfully after its last run?Is using a lockfile appropriate?
How to stop a cron job from subsequent runs after an error
It is possible to route to host a static website without using S3.Go to your S3 console and select your bucket.Select the "Properties" tab, then select "Static web hosting".Once this is setup you should see an endpoint url. Similar to this: "Endpoint :http://xxxx.yyy.s3-website.xxxx.amazonaws.com"Copy this url then cre...
I want to host a static website on Amazon S3. Created the relevant buckets - testing them ok. Now I have a domain name i've registered with EuroDNS - www.gopropel.io - I can't find how to connect it to my AWS S3 bucket. Do I need to create a route 53 hosted zone? Went over the AWS documentation and they all assume you...
Connecting external domain name to AWS S3 website
While I was not able to find a "dump heap on Exception" option, I did find get_defined_vars() which is basically a heap dump if called from a global scope. Using this I was able to see that there where hundreds (actually thousands) of still referenced database rows hanging around in my memory. This was due to a not fr...
I am currently debugging a script that constantly runs into OutOfMemory exceptions. It is run as a cronjob and usually runs fine, but when the cronjob wasn't run for a while (for whatever reason) the script has to handle to many elements that queued up and will run into a OutOfMemory exception. From examining the code...
Have PHP dump heap on OutOfMemory exception
I'm on a pretty similar setup, though I'm still runing on py2.5, django-nonrel. 1) I usually use 'git status' or 'git gui' to see if I forgot to check in files. 2) I personally don't check in my datastore. Are you familiar with .gitignore? It's a text file in which you list files for git to ignore when you run 'git ...
Here is my current setup: GitHub repository, a branch for dev. myappdev.appspot.com (not real url) myapp.appspot.com (not real url) App written on GAE Python 2.7, using django-nonrel Development is performed on a local dev server. When I'm ready to release to dev, I increment the version, commit, and run "manage.py ...
Google App Engine Development and Production Environment Setup
Cannot rewrite branches: Your index contains uncommitted changes. You have uncommitted changes in your working directory i.e changes staged for a commit (check git status output) . Either commit those changes if you wish to or preserve those uncommitted changes by using stash and apply them once you have executed th...
This is a follow up to my previous post here. I'm trying to remove a large file that I committed to git. Based on the suggestion given in my previous post, I tried git filter-branch --force --index-filter "git rm --cached --ignore-unmatch folder/Unconfirmed 866711.crdownload" --prune-empty --tag-name-filter cat -- --a...
Removing large files from git
The following build.sbt settings worked for me:dockerBaseImage := "java:8-jre" packageName in Docker := "you-gcloud-project-id/api" maintainer in Docker := "Maintainer" packageSummary := "Package summary" packageDescription := "Package description" dockerRepository := Some("us.gcr.io")StepsSubstitute your Google Cloud ...
I am experimenting with dockerizing my Scala/Akka app: I'm using sbt-native-packager and would like to deploy to GKE. It seems I could do that by setting the right values in mybuild.sbtfile and then launch it viasbt docker:publish.I am not sure what the values should be in the build.sbt file. For instance, thedockerRe...
How to publish from sbt-native-packager to Google Container Engine?
It might have not been the case when the question was asked, but now aaws_amplify_appis available as a resource type in the standard AWS provider for Terraform.You can use:resource "aws_amplify_app" "example" { name = "example" repository = "https://github.com/example/app" }For details consultthe docs foraws_...
Is it possible to create an AWS Amplify project containing auth and storage resources using Terraform?The goal is to link an Android client project with Amplify resources created using a Terraform template.For example: I want toamplify pullfrom my Android Studio terminal to link the project to AWS (where the Amplify pr...
Create AWS Amplify Resources with Terraform
Short answer is you can’t see historical data for updates unless you already had some auditing system in place at the time change happened.What you can do is to try reading transaction log using some third party tool likeApexSQL Logand checking if there is info like this written somewhere in t. log.I know there is a lo...
I am trying to find out who is the person who did a specific change on the Microsoft SQL 2008 R@ database structure (I have a procedure which was altered).. given I have a DBO access, would that be possible? Any kind of logs to show me the SQL/Windows logon usernames of the people who did changes, when they did them, a...
Can I find the user who did specific change on database structure/procedures?
3 This will disable all php and py script execution inside media directory. Like this you can disable any other script. location /media/ { location ~ .*\.(php)?$ { deny all; } location ~ .*\.(py)?$ { deny all; } } Share...
I have a media folder on URL example.com/media/ and I want to deny users running scripts in my server. My server app is nginx and in How to deny script execution inside writable directories I couldn't find anything special about specific URL. This is my nginx server config: # sites-avalaible/default server { l...
Deny running scripts in nginx for specific url
0 This is the best I could create.. int readbytes = 0; long bytesToRead = (CDataEnd - CDataStart); using (CryptoStream cryptoStremFromBase64 = new CryptoStream(context.OutStream, new FromBase64Transform(FromBase64TransformMode.IgnoreWhite...
I got a very large XML (>1GB) with CDATA content that contans a base64 with 76 characters and CRLF and the last content padded with "=" and no CRLF. The most natural way to get base64 decode is to use XmlReader reader.ReadElementContentAsBase64(...) but thay stops working at 100Mb. (=OOM) I found this after searching ...
C# Decode Large/Huge XML / CDATA context in Base64
Back reference fromRewriteCondis%1,%2etc. You can use:RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} ^(.+?)\.(vincentjob\.com)$ [NC] RewriteRule ^ http://www.%2/search.php?location=%1&co=us [L,P]Assumingmod_proxyis setup and running.ShareFolloweditedDec 18, 2014 at 17:49answeredDec 18, 2014 at 16:40anub...
I have this url:http://www.example.com/search.php?&location=ca&co=usI would like rewrite so:ca.example.comIn htaccess I placed this code but not working:RewriteCond %{HTTP_HOST} ^([^/]*)\.example\.com$ [NC] RewriteRule (.+)$ /search.php?location=$1&co=us [L,P]I dont understand where Im wrong.
.htaccess rewrite dynamic url in subdomain
You'll need to pass in the necessary environment variables in crontab.Add these lines at the top of your crontab (crontab -e)(obviously you'll modify the values of the variables to represent those in your environment)(in this case I'm using RVM)PATH=/home/deploy/.rvm/gems/ruby-2.0.0-p247/bin:/home/deploy/.rvm/gems/ruby...
I set up a rails project to use the Whenever gem. Now I deploy my project with Capistrano and the tasks are nicely added to crontab list. But when I see only one line:/bin/bash: bundle: command not foundSo I read a couple of articles online so I added this on top of my schedule.rb fileenv 'PATH', ENV['PATH']So you shou...
Whenever gem is not executing task
Maybe these will help.https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/about-identity-and-access-management-with-saml-single-sign-on#about-saml-ssoNote:SAML SSO does not replace the normal sign-in process for GitHub. Unless you use Enterprise Managed Us...
I wanted to integrate GitHub saml sso for the project. I have a custom IDP and from the SP initiated saml flow, like getting to thehttps://github.com/orgs/ORG-NAME/ssoand then sso getting successful, but then GitHub asks for the password with prefilled username in it. Is there any way to direct log in without asking fo...
GitHub SAML SSO ( cloud enterprise)
You can clear all execution plans from a single database usingDBCC FLUSHPROCINDB(<db_id>). I'm not aware of any similar command to clear specific pages from the buffer cache.However, youcanset the database offline momentarily and then back online to clear both plan and buffer caches for a database if the situation allo...
from what i know, if i execute 'DBCC FREEPROCCACHE' and 'DBCC DROPCLEANBUFFERS', the buffer of entire server will be cleanup. i wonder if there's anyway to cleanup buffer of specified database only. therefore, query for other databases will not be affected.
can i cleanup buffer for some specified database instead of the entire sql server
Figured it out. Apparently the SDK uses "lambda:GetFunctionConfiguration" as well. Once I included that it all worked.{ "Version": "2012-10-17", "Statement": [ { "Action": [ "lambda:GetFunction", "lambda:GetFunctionConfiguration" ], "...
When I have my IAM Policy for my lambda execution role set to:{ "Version": "2012-10-17", "Statement": [ { "Action": [ "lambda:GetFunction" ], "Resource": [ "*" ], "Effect": "Allow" } ] }I get this err...
AWS IAM Lambda "is not authorized to perform: lambda:GetFunction"
How it works:Extractuserfromhttp://user.domain.com/and save a backreference to it with aRewriteCondition.The hostname of the request is stored in aServer-Variable.Figure : The back-reference flow through a rule. In this example, a request for/test/1234would be transformed into/admin.foo?page=test&id=1234&host=admin.e...
I have a mod rewrite that currently redirectsdomain.com/folder/usertodomain.com/folder.php?username=userusing:RewriteRule ^folder/(.+)$ folder.php?username=$1 [QSA,L]What I need done however is redirecthttp://user.domain.com/tohttp://www.domain.com/folder.php?username=user. And if possible, I could exclude certain subd...
subdomain to url redirect with mod_rewrite and htaccess?
I believe you're looking for credential helpers. Check out the git documentation here:https://www.kernel.org/pub/software/scm/git/docs/v1.7.9/gitcredentials.htmlMy guess is thatgit config --global credential.helper cachewill do the trick.If you're on a mac and installed git using homebrew you can use this:git config -...
I have an SSH key set up and added to Git servers. Even then, while using Git from my command line, it still uses username and password for authentication. Is there are any command to change my authentication mechanism.
Switching Git to use SSH
7 In case anyone is looking for the answer, here it is: var googleapis = require('googleapis'), OAuth2 = googleapis.auth.OAuth2, ytdapi = googleapis.youtube('v3'), AWS = require('aws-sdk'), s3 = new AWS.S3; var s3data = { Bucket: 'BUCKET_NAME', ...
Uploading a file from S3 to youtube, using this code: s3.setBucket('MyBucket'); s3.get('MyBucket/5/' + filename, null, 'stream', function(err, response) { googleapis.discover('youtube', 'v3').execute(function(err, client) { var metadata = { snippet: { title: title, description: description},...
Upload a file from S3 to Youtube using node.js
The reason behind requiring a reverse proxy in front of Artifactory is related to a Docker client limitation - you cannot use a context path when providing the registry path, e.g sdpvvrwm812.ib.tor.company.com:8081/artifactory/api/docker/docker-imagesis not valid.The Docker client assumes you are working with one big r...
I tried to set up artifactory as docker registry as shown in this video:http://www.jfrog.com/video/artifactory-docker-integration/However, I don't have SSL installed in artifactory so I'm using the --insecure-registry flag. (as shown inerror in docker build publish pluginandRemote access to a private docker-registry)An...
artifactory as docker registry
13,19 * * * /usr/bin/php path/myphp.phpshould work, check your log / user mail for errors.
I'd like to set my Cron job to work at specific hour. Particularly, I'd like to set it at 1PM and 7PM every day of the year. How can I do? I wrote two line like those below:0 13 * * * /usr/bin/php path/myphp.php 0 19 * * * /usr/bin/php path/myphp.phpbut nothing works fine! Can someone help me?
How can I set Crontab for a specific hour?
You should not try to recreate aGaugeevery time but you should update the value of theGauge. Please read the docs first:https://micrometer.io/docs/concepts#_gaugesPlease also check the MultiGauge:https://micrometer.io/docs/concepts#_multi_gaugein your ctor:MultiGauge jobs = MultiGauge.builder("jobs") .tag("failed",...
I have this block of Java code that uses micrometer library to report metrics regarding failed jobs in each tenant. It reports failed jobs for each tenant correctly because I verified it on my Grafana, but the problem is that when the number of failed jobs for a tenant increases or decreases, the update is not getting ...
Micrometer Gauge with Spring boot - value not updating
0 Create a div that get generated on the server: <div runat="server" id="myDiv"></div> In the code behind: myDiv.InnerHtml = totalStringBuilderHtml.ToString(); Share Improve this answer Follow ...
I have a project that generates reports in html string format. Then I attach this string to a label or literal and works great. The problem is.. when the report is too big, around (27k records), I get the System.OutofMemoryException and this error occurs exactly in the last line: Label1.text = totalStringBuilderHtml....
How to attach a big Html string in asp.net when Label.text can't handle the size (OutofMemory)
Yes, it is possible, however it's not straight forward. There is a rather long blog post in the AWS Security Blog explaining how to be able to use the CLI as SAML-federated user: https://aws.amazon.com/de/blogs/security/how-to-implement-federated-api-and-cli-access-using-saml-2-0-and-ad-fs/
I login to AWS with my Active Directory account in my company. We are using federated login, as described here: Federated Users and Roles Federated users don't have permanent identities in your AWS account the way that IAM users do. To assign permissions to federated users, you can create an entity referred to as a r...
Can AWS CLI be used with a federated login?
It turns out that @Brandan's blog post actually leaves out one important directive: upload_state_store /tmp; I added that and now everything works as expected.
I am using the nginx upload module to accept large uploads for a PHP application. I have configured nginx following this blog post (modified for my needs). Here is (the applicable portion of) my nginx configuration: server { # [ ... ] location /upload { set $upload_field_name "file"; upload_...
Blank POST with nginx upload module and chunked upload
You can easily avoid this kind of problem by using a vector instead. class CSample { std::vector<char> m_pChar; std::vector<double> m_pDouble; CSample():m_pChar(1000), m_pDouble(1000000) { } }; Generally speaking, you should aim to write classes that do not require a destructor. This makes them trivia...
I have the following class class CSample { char* m_pChar; double* m_pDouble; CSample():m_pChar(new char[1000]), m_pDouble(new Double[1000000]) { } ~CSample() { if(m_pChar != NULL) delete [] m_pchar; if(m_pDouble != NULL) delete [] m_pDouble; } }; and in my main() function i'm trying to create object of ...
Memory leak in class Constructor of c++
Try this .htaccess:RewriteEngine On RewriteBase /f/ RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?p=$1 [QSA,L]Equivalent PHP code forhttp->https:if(isset($_SER...
My htaccess file looks like this:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L] </IfModule>I would like to add a rule to have users who access the site use https. I add this code (right before th...
How to forward to https with htaccess without redirect loops
I have this issue as well, if you find a way to set it up on Google CDN please let me know.Here is my Workaround:ChooseUse origin settings based on Cache-Control headersSince most browsers cache static JS assets, I reduce myCache-Controlheader for.htmlto be reasonably low or normal, like 5-60 minutes, whereas the javas...
My frontend runs on nginx, and I'm serving a bunch of.chunk.jsfiles that are built from react.Every time I update my frontend, I rebuild the docker image and update the kubernetes deployment. However,some users might still be trying to fetch the old js files.I wouldlikeGoogle Cloud CDN to serve the stale, cached versio...
Getting Google Cloud CDN to serve stale file on 404
Actually, that's not a filename.That's a python module path.The relevant file is actuallymysite/wsgi.py(but to import it in a python interpreter, you'd have toimport mysite.wsgi, hence the name used in command line).
I am following this tutorialhttp://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.htmlto setup django with nginx and uwsgi. But I am confused about this line:uwsgi --http :8000 --module mysite.wsgiIn the tutorial there's nothing about mysite.wsgi file. What should be the content of this file?
How to create mysite.wsgi file?
This setting was added inSPARK-25515. It sadly isn't available for the currently released version but it should be made available in Spark 3.0.0
I'm running some jobs using Spark on K8S and sometimes my executors will die mid-job. Whenever that happens the driver immediately deletes the failed pod and spawns a new one.Is there a way to stop Spark from deleting terminated executor pods? It would make debugging the failure a lot easier.Right now I'm already colle...
Spark on Kubernetes executor cleanup
Follow the steps:-docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 dockernet docker run -p 8082:8080 --network dockernet -d 6ab907c973d2 in your project set connection string : jdbc:mysql://host.docker.internal:3306/....And then deploy.
I have a war file that uses the MySQL database in the backend. I have deployed my war file in a docker container and I am able to ping this from my browser. I want to connect my app with the MySQL database. This database exists on my host machine'slocalhost:3306As I am unable to connect this from inside container's loc...
How to connect docker container with host machine's localhost mysql database?
13 There's multiple hostmananger URLs that Elastic Beanstalk needs to access besides the health check. Grepping /var/log/httpd/elasticbeanstalk-access_log, I see requests to /_hostmanager/tasks and /_hostmanager/healthcheck. Here are the rules that I added to /etc/httpd/s...
This question already has answers here: How to force https on elastic beanstalk? (23 answers) Closed 6 years ago. I have configured my Elastic Beanstalk environment to redirect all...
How to force https on amazon elastic beanstalk without failing the health check [duplicate]
So after all it work this.https://grafana.com/docs/grafana/latest/datasources/mysql/U need to create user with permissions only for select.CREATE USER 'grafanaReader' IDENTIFIED BY 'password'; GRANT SELECT ON mydatabase.mytable TO 'grafanaReader';
I'm trying to connect Grafana with MySQL.I pulled grafana to docker and ran it. MySQL is not in container.I created user with all privileges, created database and table. Set from 127.0.0.1 to 0.0.0.0.When i trying to connect to MySQL in Grafana, it showquery failed - please inspect Grafana server log for detailsI don't...
Connecting Grafana to MySQL show query failed, why?
This is because your your uses up all the heap space allocated to your jvm.You can use argument while running the program to specify the heap size that you would like to allocate.This is an example:java -Xmx256m MyClassHere a maximum of 256 MB of heap space will be allocated
When i run the below program i got the exception when for loop begins its execution at i=1031521. How to over come memory usage of this type?class wwww { public static void main(String args[]) { String abc[]=new String[4194304]; String wwf=""; int s_count=524286; ...
java heap memory usage exception when using FOR lOOP
Your pecl install is asking you this question: whether to enable response content type guessing; specify libmagic directory [no] : And yes "\n" isn't doing what you think it is - it's actually outputting: \n \n \n \n \n \n So because you're saying \n in response to the above question, the installer thinks you're t...
I am attempting to install pecl_http inside a docker container. Currently my Dockerfile looks something like this: FROM fun:5000/apache-php:0.1.0 # Install dependencies ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && \ apt-get -y install \ php5-dev \ libcurl4-openssl-dev && \ yes "\n...
Silently Installing pecl modules (e.g. pecl_http) Inside a Docker Container?
You can try using {{ github.event.pull_request.head.sha }} and comparing it to ${{ github.sha }}
In the context ofgithub-actions, how do I get sha of the last commit in the PR before it was merged?I want to get this sha in the context ofpushworkflow, i.e.on: push: branches: - masterIf push was not triggered by a PR merge, then I need a way to ignore the action.
How to get last commit sha from pull_request in push action?
If your using a setup that is basically 1 git repository per solution then I see 2 real options. Unless you want to refactor things and make a separate solution for those shared components and then consume it as a nuget package.Include the shared code in an existing repository and force a specific directory structure ...
Hi I have a git repository which is linked to my solution in visual studioI have added some code to my solution that is outside of my repository as the code is shared across multiple solutions. I have added the code as add existing item add as Link.How do I go about adding this code to git. It needs to be shared across...
Github Shared as Link in visual studio
Before one can run a git diff between one's own local repo and the upstream, one must first fetch the upstream repo. The comparison is then made locally. git fetch upstream This does not affect the working branch of your repo but it does add a whole other bunch of "remote" branches, which you can see with git branch ...
I want to compare the local clone of a repository I have forked with the original/upstream repository to see if further commits have been made requiring me to pull/merge. I'd like to do this from the command line. I added the original repository to my list of remotes with this command: git remote add upstream <origina...
How can I compare my local forked repository with changes that may have been made to the original?
Try:* * * * * /usr/bin/curl -s -H 'Header-foobar: x' -H 'Header-base:y' http://domain.tld/pathor if it'sbasic auth* * * * * /usr/bin/curl -s -u user:password http://domain.tld/path(run curl every minutes)ShareFollowansweredFeb 20, 2018 at 18:35Gilles QuénotGilles Quénot180k4242 gold badges228228 silver badges227227 bro...
I want to create a cron job in centos 7 to hit http get url with some authorization header in it.i preferring to create it as a curl command. any inputs will be appreciated.
create a cron job in centos to hit http get url with authorization header
Run the following, if you haven't: git config user.name = "YOUR NEW USERNAME" git config user.email = "YOUR NEW EMAIL" Also, make sure your are working in the correct master/branch.
I have a github account for work. I can't figure out how to create a project/repo outside of the company repo. So, I create another github account and try to push a prototype project, which is not work relative, to the new repo. Now, when I want to push a work project to the work repo, I get remote: Invalid username ...
Can't pull after having a second github account
It should be, for example, the PingCap TiDB operatorhas an option to enable/disable the admission controllerfor the StatefulSet it manages.I'm not really sure what behavior you are seeing? It's not allowing you to create a StatefulSet? If yes, you can start you with '*' values and work your way down. For example, allow...
I created an admission webhook in Kubernetes including resources for deployments and StatefulSet.The mutation webhook works on Deployments but not in StatefulSets.I tried searching in documentations, but the example is only on deployments and ReplicaSets.Are admission controllers supported in StatefulSets in Kubernetes...
Kubernetes Admission webhook for Statefulset
In my case the problem was that somehow context was changed. Checked it bykubectl config current-contextand then changed it back to the correct one bykubectl config use-context docker-desktopShareFolloweditedFeb 8, 2023 at 18:23CodeWizard134k2222 gold badges154154 silver badges174174 bronze badgesansweredFeb 8, 2023 at...
I've enabled Kubernetes on Docker Desktop (on a Mac) - and when I runkubectl apply -f deployment.ymlI get -"error: You must be logged in to the server (Unauthorized)"Any help appreciated
Getting "You must be logged in to the server (Unauthorized)" when trying to use Kubernetes on Docker desktop
Your problem is well documented and a solution can be taken from:jQuery version 1.5 - ajax - <script> tag timestamp problemThe solution involves using thecacheoption in the jQuery AJAX call.
On pages that have been loaded using jquery's load function, all javascript files included have an argument '_' with a value equal to the current unix timestamp plus 3 extra numbers when they are loaded.E.g., If I include "file.js", the actual file that gets included will be "file.js?_=1378360893522".It is preventing t...
Unwanted underscore and unix timestamp appearing after javascript include
A Role can be used by an EC2 instance only if it has an associated Instance Profile, as explained in https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html When creating a role using the web console, you need to specify at the start that it will be used for an EC2 instance...
I have the following demo role created for AWS: with the following trust relationship: Now, I am trying to modify the role of an EC2 instance to be DemoRoleForEC2, but the role is not appearing in the dropdown list: According to this answer here: IAM Role not showing in aws console in Modify IAM role page , it shou...
IAM Role does not show in role list of EC2, even though I have the trust relationship set up correctly
if you like to keep it pure html + php, i suggest you look into the iframe tag from html. it is basically a browser window within your current browser window. Set the iframe to cover up 100% of your current browser window and set it's url to mydomain.com/subdomain.what you'll see is that it's displaying content from my...
Currently I have subdomain.mydomain.com, which redirects to mydomain.com/subdomain(I am using a PHP - codeigniter framework).But all I want is after redirection url should remain subdomain.mydomain.com instead of mydomain.com/subdomain.Is there any way to achieve this?
After redirect I want my url as it was typed
You can do this:git clone https://github.com/sferik/sign-in-with-twitter.git signin # or git clone[email protected]:sferik/sign-in-with-twitter.git signinrefer to the manual hereShareFolloweditedJan 30 at 18:53hippietrail16.4k1919 gold badges102102 silver badges166166 bronze badgesansweredDec 20, 2011 at 4:04MLNMLN14...
When I clone something from Github, it creates a folder with the same name as the app on my computer. Is there a way to change the name?For example, doing this clone creates a long "sign-in-with-twitter" folder:git clone https://github.com/sferik/sign-in-with-twitter.gitI know I can rename the folder after, but I'm won...
Change name of folder when cloning from GitHub?
Thisshould cover how to set the startup parameters for NetBeansIf your problem is related to the the JVM heap being too small, the simple answer is that you must increase it until there's enough, and you don't have any problems.-Xmx1024m or even -Xmx2048m should be little problem if you have 8GB ram - even if it sounds...
I am having memory problems by running a NetBeans project with 15000 lines of code and multiple arrays. I believe that increasing the heap size should help since NetBeans is having problems scanning the project and having "errors" when adding more code.I am using a 64 bit computer with 8 GB on RAM. Should I use-Xmx512m...
What is the right value to solve heap memory?
Git will not allow you to push changes to a branch unless they can be resolved as a "fast-forward," which means that the tip commit you are trying to push is a direct descendant of the tip commit in the remote repository.Who made each set of changes is irrelevant-- you just can't do it.1In that respect, you are safe fr...
Is any thing to take into account when using the same remote repo, same user and two different computers? for instance, desktop and laptop.I guess, if I push before I pull last changes, because is the same user, will this changes be overwirtten? Or is git checking datestamps or something like that and it won't allow me...
Same github user two computers
I found the answer from another site which Wordfence had hidden for me.<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^/?wp\-content/+debug\.log$ RewriteRule .* - [F,L,NC] </IfModule> <IfModule !mod_rewrite.c> <Files "debug.log"> <IfModule mod_authz_core.c> ...
How do I hide Wordpress debug.log from search bots using .htaccess?i.e:/wp-content/debug.logThanks.
how to hide Wordpress debug.log from bots using .htaccess
The answer to your question lies into the fact that UTF-16 is a superset of UTF-8 and that is why you can't change charset to UTF-8 in SQL server.Seethis questionand its answers for a more detailed explanation of this.
According to documentation for SonarQube database backend set up, database must be set to utf-8. Our DBA has done some research and does not see an option to change this for particular DBs. Currently it is UTF-16 by default. Is the UTF-8 setting a "must have" for SonarQube? How does one change encoding for particular s...
Using a SQL Server Database and Character Sets
As illustrated inthis issue, this is generally linked to an incorrect address:incorrect username (or correct one, but with a wrong case)incorrect reponame (or correct one, but with a wrong case)
I'm trying to clone some code I have in a private repository using the following command:git clone https://github.com/username/repo_name.gitWhen I do this I get the error in the following format:fatal:https://github.com/username/repo_name.git/info/refs?service=git-upload-packnot found: did you run it update-server-info...
Git Clone issue
GKE has the same limitation as vanilla Kubernetes on GCP per se. The Kubernetes limits for the largest public cloud providers are documentedhereYou can also change those limits using theKUBE_MAX_PD_VOLSon thekube-scheduler(After restarting). Unfortunately, you won't be able to change this on GKE yet, because GKE doesn'...
Is it possible to attach ~30 persistent disks to single k8s node (e.g. n1-standard-4)?According to the documentation 2-4 core node can support up to 64 attached disks in Beta:Link.Is it supported by GKE? Is there any limit in GKE Kubernetes?
GKE How many Persistent Disks could be attached to a single node?
3 The memory management hardware on x86 systems has a granularity of 4096 bytes. This means: It is not possible to find out which bytes of a 4096-byte page are really changed and which ones are unchanged. Theoretically the disk driver system could check if bytes have been c...
I have a question regarding the writeback of the dirty pages. If a portion of page data is modified, will the writeback write the whole page to the disk, or only the partial page with modified data?
writeback of dirty pages in linux
Make a grep command that will take uncut lines and filter by 13th field, likegrep -E '(\S+\s+){12}A\s'and then pipe it tocut -f 6and so on.
I wrote the following pipeline:for i in `ls c*.txt | sort -V`; do echo $i; grep -v '#' ${i%???}_c_new.txt | grep -v 'seq-name' | cut -f 6 | grep -o '[0-9]*' | awk '{s+=$1} END {print s}'; doneNow, I want to take 6th column (cut -f 6 and later code) of only those lines, which match certain grep in 13th column.These:cut ...
How to filter pipeline data according to column?
Based on the comments.The issue was caused because the CloudFront distribution in question did not have Alternate Domain Name set witch matches the record in Route53. Fromdocs:The distributionmust include an alternate domain name that matches the domain namethat you want to use for your URLs instead of the domain name ...
I'm creating an A record in my Route 53 hosted zone for a subdomain. When I select "Alias to Cloudfront distribution", only US East zone shows in the list, containing an undesired distribution:However I want to point to another distribution which is not showing in the list. Any idea why it's not showing? The distributi...
Route 53 - cloudfront distribution not showing when creating A record
You can attach a IPv6 Ip to a GCLB and have the same type of routing globally as you would with IPv4.One strategy would be to configure the GCLB with an IPv6 address to handle all IPv6 traffic. Just create an additional forwarding rule with the IPv6 address.Then you can associate both IPv6 and IPv4 with the same load b...
I'm using GKE 1.10.2-gke.3 and would like to know how I can configure both IPv4 and IPv6 connectivity with my Google Load Balancer Ingress yaml.I can configure IPv4 or IPv6 but not both. My yaml file is below. Assume I have reserved static IPv4 and IPv6 addresses called app-static-ipv4 and app-static-ipv6 respectively....
How can I configure Google Load Balancer to have an IPv4 and IPv6 frontend in my Kubernetes yaml?
Yes. Invalues.yamlyou need to give it an array instead of a space delimited string.cat values.yaml ... arguments: ['--arg3', 'value3', '--arg2', 'value2'] ...orcat values.yaml ... arguments: - --arg3 - value3 - --arg2 - value2 ...and then you like you mentioned in the template should do it:args: {{ ran...
I'd like to allow our developers to pass dynamic arguments to a helm template (Kubernetes job). Currently my arguments in the helm template are somewhat static (apart from certain values) and look like thisArgs: --arg1 value1 --arg2 value2 --sql-cmd select * from dbIf I w...
How to pass dynamic arguments to a helm chart that runs a job
answered here- query strings are not supported by rewritematch. Use mod_rewrite instead.ShareFolloweditedMay 23, 2017 at 12:05CommunityBot111 silver badgeansweredJun 13, 2015 at 23:48Alexander BalabinAlexander Balabin2,0751111 silver badges1313 bronze badgesAdd a comment|
I have a url like this:http://mydomain.es/foro.php?topic=9And I want to redirect it to:http://mydomain.es/foro/9/But I can't get it to work, I have tried something like:redirectMatch 302 ^/foro.php\?topic=([0-9]+)$ /foro/$1/But it don't work, the problem is the character ?, if i remove it in the url (and use a redirec...
htaccess url redirect (character "?")
There is no$_SERVER["DOCUMENT_ROOT"]present when you call the script from the command line.That variable (along with many others likeREQUEST_URI,SCRIPT_NAME,HTTP_HOST....) is set by Apache, which is not running in your case.You need to set the root directory manually.To find out whether you are running in the context o...
I have no idea whats going on. But I have a script that looks like this. Cron job refuses to run it:include_once 'class_lib/mime_mail/mimeDecode.php'; include_once 'class_lib/Mail/IMAPv2.php'; include_once 'inc-functions.php'; include_once "$_SERVER[DOCUMENT_ROOT]/class_lib/DbFuctioneer.php"; $dbFuctioneer = new DbFuc...
What is my Cronjobs problem?
As a workaround, you can create your own CloudFront distribution, enable IPv6 there, and then point it to API Gateway -- which you will want to deploy using a Regional Endpoint (which avoids having API Gateway creating its own CloudFront distribution) instead of an Edge-Optimized Endpoint (which creates a "hidden" Clou...
I'm using Lambda and API Gateway for building the APIs. And, I read that AWS CloudFront has IPv6 support. I want to use custom domain and I created certificates with ACM as required by the API Gateway.But, when I test if the AAAA records are found for the CloudFront URL usinghttp://ready.chair6.net, the AAAA records ar...
Enable API Gateway IPv6 on AWS?
Prometheus can handle only numeric values (float64 internally). (seehere). You need to encode the boolean value into 0 and 1.ShareFollowansweredMar 8, 2021 at 11:43Jens BaitingerJens Baitinger2,2801515 silver badges3434 bronze badgesAdd a comment|
I want to track the operation status in boolean in Prometheus likePrometheus.NewGaugeVec(). I couldn't find an example for doing so.Does there exist any type where I can push boolean status likeWithLabelValues("name", "label").Set(true/false)?
monitoring health status in boolean using prometheus
1 You'll want to use a .gitignore file to specify which files you don't want to store in GitHub. Here is how to create the file, and here's what should go in that .gitignore file. Share Improve this answer Follow ...
I'm new to Xcode and just found out that it stores a bunch of user information and other stuff in the project directory that I don't really need in version control or want to put up on Github. This is what an Xcode project basically looks like: 1 AppName/ 2 ├── AppName 3 │   ├── Base.lproj 4 │   │   ├── LaunchScre...
What files of an Xcode project should I store in version control?
You can use this:0 0/1 * * * ?According to thedocEither Day-of-Week or Day-of-Month must be "?", or you will get an error since support by the underlying library is not complete. So you can't specify both fields, nor leave both as the all values wildcard "*"; this is a departure from the unix crontab specificatio...
I'm using Quartz plugin for Grails for a synchronized job minute by minute, but I'm unable to use the0 * * * * *definition and is throwing some exception:Error loading plugin manager: Unable to locate constructor with Class parameter for class grails.plugins.quartz.DefaultGrailsJobClass (NOTE: Stack trace has been filt...
What is the cron definition for each minute for a job in grails?
The JSON must be in a single line, as mentioned in this page of the AWS Athena documentation. You can have multiple JSON objects on separate lines, but each complete object must only span one line. Example (this could all be in one S3 object): {"devId": "a1", "type": "b1", "status": "c1"} {"devId": "a2", "type": "b2",...
I create a table in Athena with below structure CREATE EXTERNAL TABLE s3_json_objects ( devId string, type string, status string ) ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' WITH SERDEPROPERTIES ( 'ignore.malformed.json' = 'true') LOCATION 's3://mybucket/folder1/data/athena_test/'; S3 bucket o...
Amazon athena can't read S3 JSON Object files and Athena select query returns empty result sets for JSON key columns
As suggested by @bzu, the answerheresolved my problem.I did have to manually create the$SPARK_HOME/conffolder andspark-defaults.conffile, though, as they did not exist. Also, I changed the setting tospark.driver.memory 32gShareFollowansweredAug 16, 2022 at 10:33RayneRayne14.5k1717 gold badges4747 silver badges6060 bron...
I have a pandas dataframe consisting of 180M rows and 4 columns (all integers). I saved it as a pickle file and the file is 5.8GB. I'm trying to convert the pandas dataframe to pyspark dataframe usingspark_X = spark.createDataFrame(X), but keep getting a "out of memory" error.The error snippet isPy4JJavaError: An error...
Out of memory error when converting pandas dataframe to pyspark dataframe
Solved. Finally I moved the blog files to the root apache directory. Then I removed the virtualhost and I created a redirection rule: mydomain/ -> mydomain/index.phpAnd it works.
I have a wordpress blog in a local server: /var/www/html/blog (In the root dir '/var/www/html' there are other pages i shouldn't move, so I cant't put the wordpress blog in the root)I bought a domain name and I've assigned it to this blog with a virtualhost. Then I activated the permalinks in the wordpress blog.The pro...
Wordpress permalinks fails with virtualhost
Use below htaccess rule to redirect http to https:RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}Source:htaccess redirect
Need to redirecthttp:// www.old-url.com/any/other/url/segmenttohttps:/ /www.new-url.com/any/other/url/segmentCurrently Im doing something like this:RewriteEngine On RewriteCond %{HTTP_HOST} !http://www.old-url.com/1$ [NC] RewriteRule ^(.*)$ https://www.new-url.com/$1 [L,R=301]this results:http:// www.old-url.com/any/ot...
.htaccess redirect a url to another (keep the url segments)
The advantage of using second case are as follows:You can use load balancer in the future and deploy multiple django apps which connect to central DB.You don't need to worry if any developer does any docker file mishap, because your django app would only be hampered not the databaseUpgrading database server would not h...
This question already has answers here:What would be a good docker webdev workflow?(4 answers)Closed5 years ago.case 1 : django+postgresql (container)case 2 : django(container)<-connect->postgresql(container)(these cases are on one server)What are the advantages of separating ? or performance?
advantages of separated DB in docker? [duplicate]
46 should set POSTGRES_DB and POSTGRES_USER in healthcheck healthcheck: test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ] Share Follow answered Apr 24, 2022 at 7:51 ...
I am running docker-compose in Github-Action. docker-compose.yml has following service definition for postgres postgres: container_name: postgres image: postgres:12 restart: always volumes: - ./test/data/init.sql:/docker-entrypoint-initdb.d/init.sql environment: POSTGRES_DB: "pgdb" ...
postgres docker : role "root" does not exist
Is the GC happening in the Client(SpringBoot application) or Server node?GC error will be logged to the log of the node which suffers problems.What will be that impact of long GC pause?Such pauses decreases overall performance. Also if pause will be longer than failureDetectionTimeout node will be disconnected from clu...
I have a setup of Apache Ignite server and having SpringBoot application as client in a Kubernetes cluster.During performance test, I start to notice that the below log showing up frequently in SpringBoot application:org.apache.ignite.internal.IgniteKernal: Possible too long JVM pause: 714 millisecondsAccording tothis ...
Apache Ignite: Possible too long JVM pause: 714 milliseconds
GitHub has removed the API rate limits,composercan now be used with--prefer-distand the zip files can be cached. Here is an example of configuration in.travis.yml:cache: directories: - $HOME/.composer/cache # … install: - composer update --prefer-distHere is the announce:Hi Niels and Jordi,We've spent some ti...
I work on several Symfony bundles hosted on GitHub and tested automatically with Travis CI.The longest part of the tests is the installation of the requirements by Composer.Iconfigured Travis CIto install packages withcomposer update --prefer-distand cache the$HOME/.composer/cachedirectory. Tests took a total time of18...
Cache git repositories installed with Composer from source on Travis CI (and other CI tools)?
NO, you CANNOT set expiration for each item in a LIST. You can only set an expiration for the entire LIST. In order to achieve what you want, you need to have a key for each item: SET user1:item1 value EX 86400 SET uesr1:iter2 value EX 86400 SET user2:item1 value EX 86400 To get all items of a specified user, you can...
I'm looking for a way to store a list of items for a user, that will expire within 24 hours. Is there a way to accomplish this using Redis? I was thinking of just using the list and setting an expiration for each individual item, is there a better way?
Redis list with expiring entries?
6 It took a lot of time for me to find out but docker doesn't do much. I dived into docker-ce source files and saw that it uses a function RequestPortInRange which simply gives the next available port. Now, when you run docker run -d -P nginx command, docker gives you the...
When I run docker command docker run -d -P nginx docker will run and auto allocate port for nginx's port 80. If I stop the image and start it again, a new port will be allocated to nginx (normally next one available). As I found out, the range for port allocation is based on ephemeral port range , in docker case defa...
how does docker auto allocate and recycle ports for containers
to declare multiple php_value's on nginx, you should combine the values inside a singlefastcgi_param PHP_VALUEdirective like below. otherwise, only the last one is passed to php-fpm process.location ~ \.php$ { [...] fastcgi_param PHP_VALUE " post_max_size=15M upload_max_filesize=5M "; ...
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionI know, this is not a question directly relating to a programming issue, but i understand it to match the rulesoftware tools ...
Reading PHP_VALUE from within php script using init_get() on Nginx server always returning php.ini default [closed]
50 Step 1 Click on your bucket name, and under the permissions tab, make sure that Block new public bucket policies is unchecked Step 2 Then you can apply your bucket policy Hope that helps Share Improve this answer Follow ...
I am trying to give myself permission to download existing files in an S3 bucket. I've modified the Bucket Policy, as follows: { "Sid": "someSID", "Action": "s3:*", "Effect": "Allow", "Resource": "arn:aws:s3:::bucketname/AWSLogs/123123123123/*", "Principal": { ...
AWS S3 Bucket Permissions - Access Denied
3 Here is my steps to make Redis work in Strapi 4: install packages: strapi-plugin-redis, strapi-plugin-rest-cache, strapi-provider-rest-cache-redis Create Redis host and add it to env, or directly to a config. You can use redislabs for tests Update config with new props (...
Set up strapi-plugin-rest-cache with redis. Connection to the redis passes, debug shows that everything works. Entities appear in the redis. But requests are executed with the same time, both with cache and without cache. What else can be seen? "rest-cache": { config: { provider: { name: "redis", ...
How to enable rest cache in strapi?
You have two problems here: You should connect to localhost:3301 instead of 192.168.99.100:3301 You have to use connection.connect() before connection.ping() or connection.eval() Here is the working code: const TarantoolConnection = require('tarantool-driver'); let connection = new TarantoolConnection({port: 3301}...
I want to connect to the tarantool cotainer using this code: import TarantoolConnection from 'tarantool-driver' let connection = new TarantoolConnection('192.168.99.100:3301'); connection.ping().then((res) => { console.log(res); }); Before that i started container: docker run -p 3301:3301 -d tarantool/tarantool:1....
Can't connect to Tarantool container inside Docker through Nodejs
0 An official answer from Cloudera has been posted here : I read through what docker is, yesterday. I do not think this has been tested, there are a number of platform virtualization projects in progress, but I did not see this on the list. Lookt at its intent, it mig...
Recently my org is considering Docker. Our group is using cloudera CDH 5.1.2. 1) Does cloudera compatable with Docker container? 2) Is there any known issue related to docker and cloudera combination? I could not find any topic on docker in this forum. Any pointer would be helpful. Thanks, Amit
Cloudera support for docker container or Docker support for CM 5 image
There are a few ways you can accomplish goal number one. The best way would either be a preg_replace like Trendee suggests or even breaking the string into an array and then searching for instances of words you'd like to replace. The array version is cool because you can easily shuffle stuff around.As for the second go...
I'm working on website with lyrics from all kind of bands, much like Lyrics.com I guess. What I have right now is a page that echo's the name of the band, the title of the song and the text itself from the database. I would like to properly categorize this.Take for example "Strawberry Fields Forever" by "The Beatles".I...
Cleaning up text? "The Beatles" to "Beatles, The"
Looks like you broke this instructions: Keep your master branch clean. This means you can easily pull changes made to this repository into yours. Create a new branch for each new feature or set of related bug fixes. Never merge from your local branches into your master branch. Only update that by pulling from ...
I feel that I may have bricked things bad enough that I should just nuke everything and redo it, I don't recall what I've done to brick it. I have a remote repo forked from someone else. I did a pull request from their repo onto my own so that I could update it. (I think this was my mistake.). I am trying to pull from...
Trouble updating local master with upstream repository
When I did delete [ ] temp; was the memory deallocated Yes it was. Using the memory after deletion causes undefined behavior, i.e. anything can happen, including but not limited to: code compiles, code crashes, code runs as expected, … if i do a loop to populate elements of temp I will still let me populate it ev...
If I create 2 pointers: int *pointer; int *temp; and I allocate memory for one of them in this case temp: temp = new int [ size ]; //size = 6 I then point my second pointer pointer to the same memory location: pointer = temp; If I want to deallocate temp: delete [ ] temp; it won’t let me… And I say it won’t let m...
Deleting memory allocated with pointers (dynamic array)
Base onthis answer:docker inspect db_dev \ -f '{{range $k, $v := .NetworkSettings.Networks}}{{print $k}}{{end}}'You might want to useprintf "%s\n" $kif there are multiple networks otherwise they will be concatenated without separator.From therangedocumentation:If arangeaction initializes a variable, the variable is s...
I am trying to get the network name of containers. I tried:docker inspect db_dev -f "{{index .NetworkSettings.Networks }}"returns:map[mynet_default:0xc0005dc000]How do I return the string "mynet_default" ?
docker inspect, return field key as string
You can try my library that I wrote to stabilize some puppeteer functions (and also - screenshots).Example:https://github.com/wix-incubator/bubanai/blob/main/src/element/baseDrivers/elementBaseDriver.ts#L230C1-L230C1You can try this codeimport { waitForElementPositionToBeStale } from 'bubanai-ng'; let components = awa...
Using the puppeeteer to compare the image between origin and new one.using the selector.env is github action. take a screen shot and compare it with origin images. using the puppeteer version : 19.`await puppeteer.launch({ args: [ '--disable-gpu', '--disable-gpu-compositing', '--disable-gpu-rasterization', '--single-pr...
puppeteer screen shot is broken on github action
There is no Git command to do this because GitHub pull requests are not a feature of Git. There is a command-line interface for GitHub, it has a command gh pr list which is supposed to list the pull requests based on different criteria. Currently the documentation lists these options: -a, --assignee string Filter ...
I can list the number of PRs for the year made in git in the github PR web page by adding the filter as below is:pr created:>2020-01-01 How can I do that in the command line?
Whats the git command line that counts PR made for a period of time?
You may be able to get the contents of the hs_err_pidx.log into the logs of your container. I.e. settingErrorFileproperty to/proc/1/fd/1.You can set it directly via command parameter:-XX:ErrorFile=/proc/1/fd/1'... or via an environment variable. E.g.:_JAVA_OPTIONS='-XX:ErrorFile=/proc/1/fd/1'For me this worked in a con...
When i run my jar application, the jvm is getting crash with the error# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000000003fd6, pid=7, tid=0x00007ff273404b38 # # JRE version: OpenJDK Runtime Environment (Zulu 8.60.0.22-SA-linux-musl-x64) (8.0_322-b06) (build 1.8.0...
How do I capture hs_err_pid.log in container environments
You'd probably need to deploy Kubernetes with Heat and use autoscale in your template. Example:http://superuser.openstack.org/articles/simple-auto-scaling-environment-with-heatand a template for Kubernetes to build on:https://github.com/metral/corekube/blob/master/corekube-openstack.yaml
Is it possible to enable autoscaling of nodes (minions) in Kubernetes running on CoreOS in OpenStack?I only read about AWS and GCE.
Horizontal autoscaling of nodes (minions) in Kubernetes on OpenStack
2 GaussianProcessClassifier() has the following parameter as stated in the docs: copy_X_train : bool, optional (default: True) if you set it to false it will save you a lot of memory. However, GaussianProcessClassifier consumes a lot of memory even for fairly small datasets...
If I run this code, I get a memory error. Does anyone know what I can improve? Code: import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn.gaussian_process import GaussianProcessClassifier from sklearn.gaussian_process.kernels import RBF import cv2 input = "testProbe.jpg" # load...
MemoryError when doing RBF fitting with Scikit-learn
Try running git rebase --interactive master and then you can pick your commits only and have the rest of them ignored or squashed.
I am working on a feature branch, and it's based off the master branch. I require changes from someone else's feature branch, hence I directly take his branch into mine instead of waiting for it to come via the master branch as a PR merge. Now, when I commit my branch, and create the PR, I can see his commits too, as ...
Rebasing an existing Pull Request to show only your commits
There is no support for mongoDB at the moment.ShareFollowansweredSep 23, 2017 at 12:37Carl BergquistCarl Bergquist3,92222 gold badges2626 silver badges4242 bronze badges2Hi Carl, I see that you are a Grafana developer. Are there any plans to support it in the future? I think the only requirement is that each document s...
Does grafana support MongoDB as a data source (given that all the MongoDB documents are structured and have a time field)?
Grafana with MongoDB as data source