Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
First, try using version 4.5.7 of SonarQube, as it is the current Long Term Support (LTS) version.Then, have a look at the SonarQube documentation onwriting custom rules in Java. Thejava-custom-rulesmaven project will then be a good starting point to write your own rules. It's an example project with some sampled rules...
I'm just a beginner towards static code analysis and I have adopted SonarQube for the purpose. Right now I'm stuck at the point to begin customization. I need to know theprocess or step by step guide to customize SonarQube i.e integrating my own rules for the language.I'm currently runningSonarQube 4.2 Sonar-Scanner 2....
Beginners guide in Writing own Custom Rules for Java in SonarQube
Hi this seems to be a bug in deprecation link as the rule is numbered S864 (without the zeros) see :http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS864This one is already fixed (seehttps://github.com/SonarSource/sonar-findbugs/blob/master/src/main/resources/org/sonar/l10n/findbugs/rules/findbugs/IM_MULTIPLYING...
On SonarQube 5.2 (after successive upgrade, not test on fresh now install) I managed my quatlity profile by removing all deprecated rules and replace them by suggested one.But for ruleCorrectness - Integer multiply of result of integer remainder, findbugs:IM_MULTIPLYING_RESULT_OF_IREM, the suggested one isS00864. But t...
SonarQube deprecated rule suggestions missing
That seems about right for a small Java process - remember, Java isn't really an ideal choice if you are looking for a really small memory footprint. You should remember that the JVM is a Stack-based machine, where each thread gets its own Stack. The size of the stack differs depending on what type of JVM you are runn...
I have a proxy server program which listens on a socket and creates a thread pool to process connections which come in spawning new threads if necessary to handle any additional overhead. When I start up the program on java 1.5 its memory footprint is 90M while if I use a java 1.6 jvm, it has a 60M footprint, this see...
Is it normal for a java program to run at 60M or 90M?
Some products are just missing from their PA database.If it doesn't show up here:https://asintool.com/asin-lookup.php?text=B001F7AHOG&ip=1you can bet its just not in the database.I had read somewhere this week that there was a reason for apple products specifically having this problem, but I can't find it now.PS: Make ...
When I'm trying to do a lookup against B001F7AHOG, an Apple Ipod, I'm getting the error:This item is not accessible through the Product Advertising API.Why is this, and is there a workaround?
Amazon Product Advertising API - Item Not Accessible
Judging by your other question, which it seems might be a duplicate, I would suggest that you follow these steps carefully:https://devcenter.heroku.com/articles/django-app-configuration#the-basicsSpecifically, you need to include a procfile + the right apps in requirements.txt, installing them first usingpip installand...
This question already has an answer here:I got an error while using "heroku open" command(1 answer)Closed7 years ago.I created a project inPython-Djangoframework.I deploy the project inheroku.When I'm trying to useheroku opencommand on terminal, I gotApplication Error An error occurred in the application and your page...
How to solve "Application Error" in Heroku (Python) [duplicate]
You cannot get the whole application memory usage via code. At least for iOS devices. cocos2d only allows you to see how much memory is consumed with loaded textures. If you want to see how much memory your application consumes, use Instruments tool. It is the part of XCode bundle. If you just want to see how much mem...
I think it would be very handy to see how much memory is used and is still available in a cocos2d app. I found this link: (http://www.learn-cocos2d.com/2010/07/coding-cocos/) that describes how to do this for cocos2d v1 but in cocos2d 2 this "showFPS function" is done in a completely different way. So can anybody exp...
How to show memory usage in cocos2D 2
You have to fork angular using the fork button on the top right cornerYou will have a new repo atyourusername/angular, work and push on it.Then, you'll be able to submit a pull request
I discovered a minor bug in Angular's code, opened an issue on GitHub (https://github.com/angular/angular/issues/19078) and now I am asked to submit a pull request but I'm not a "git pro" and however I try it doesn't work out.What I did:I read the guidelines:https://github.com/angular/angular/blob/master/CONTRIBUTING.m...
Cannot submit a pull request in angular/angular
You can also specify these in your lambda handlers (Python example): return { 'statusCode': status_code, 'headers': { 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*' }, 'body': status_message if status_code == 200 else 'Failure' }
I've created a few Lambda functions that get triggered by API-Gateway events. Now I want to enable CORS for these endpoints, but it doesn't seem to work. In the last few versions of AWS SAM the CORS functionality was added or updated, but I still can't get it to work. This is what I tried: Gobals: Api: Cors: "'...
Using CORS with AWS SAM
I ran into the same issue under the same conditions (deployed via CDK, next.js app).For me, the solution was to go toAmplify -> Amplify App -> Domain Management -> Manage subdomains -> Click Update. I didn't change any settings, but this seems to trigger the permission to be updated correctly. It might also take a few ...
I used the AWS CDK to deploy the aws-amplify and everything seems to be deployed correctly. Once it got deployed, I triggered the build in the AWS amplify via console. It got built with the branch I configured and deployed and gave me a public URL to access the site. I was able to access my site with that URL without a...
cdk -aws amplify domain management - throws access denied
the answer depends whether your workers lifetime is long or shortif a worker lives to execute a single task and then quits push gateway is the correct way to send metrics from the worker to Prometheus.if a worker lives for at least two Prometheus scrape periods (which is configurable) you can definitely open a port on ...
I want to use prometheus to scrape metrics from my distributed web service. I have four kind of services setup with docker-compose or kubernetes.Flask: 5000 Redis-Queue: 6379 Prometheus Workers: Horizontally scaled based on system load. They get their working instructions over the redis Queue.It is strait forward how t...
Prometheus: Scrape logs from horizontal scaled microservices
"fatal: repository not found" can mean: you don't have the right to clone it (wrong credentials, as mentioned, you can at least include your GitHub username in the url) or it doesn't exist (wrong case, like github.com/Company/Repository.git instead of github.com/company/repository.git) Double-check those two element...
So I set up a private repo on Github about 10 minutes ago and I'm now trying to pull my README file, then push my files that I have now to it, but I seem unable to do so. It keeps giving me a "fatal: repository not found" error when I try to do anything with it - I know the repository exists (because I just created i...
Cannot push (or pull) from own private repo?
Take a look atgithub-email-explorerlooks like it does what you're trying to do.First line from the README:For people who want to create an email marketing plan for particular group on GitHub, github-email-explorer can collect addresses from a repository you want, and then send email content to those email addresses.
I am looking to send out a one time email to the followers of a Github repo to announce the first release.This is answer is pretty good:https://www.quora.com/Is-there-a-way-to-send-a-message-or-email-to-all-the-followers-of-GitHub-Repo/answer/PoAn-Baron-Chen-1?srid=Xt2oThe Github API has a way to get the followers of a...
Get email addresses of followers of a Github repo
To do this using command-linegit,Typegit clone https://github.com/akinhwan/akinhwan.github.ioto download a local copy of the repository, thencd akinhwan.github.ioto go into that directory.Make a directory calledimgby runningmkdir img.Create extra directories in this way as necessary if you need to reorganize any other ...
I am moving my website to Github Pages, but have made a mistake in not keeping the same folder names. Instead I just uploaded every file to the main repository. My repository is here :https://github.com/akinhwan/akinhwan.github.ioI am aware of how to change the file directories of text files, by clicking the edit icon ...
Moving image files in Github to folder
docker service update --imagedoes the trick.Check thedocker service updatedocs.
I have a swarm cluster wherein different technology dockers are deployed. (Zookeeper, Kafka, Elastic, Storm and custom web application)Web application goes under tremendous changes and have to update the stack everytime web docker changes. Once in a while there will be updates to Elasticsearch image.When i run docker s...
How to update docker stack without restarting all services
Using Prometheus pluginInstall PrometheusInstall GrafanaEnable Prometheus Plugin in KongAccess Prometheus in your browser say at localhost:9090Access Grafana in your browser say at localhost:3000Set Up Port Forwards:If Kong proxy port is now your localhost 8000 port, Eg: If you are using plain-text HTTP proxy for this ...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
How to get metrics of kong cluster behind load balancer [closed]
First, why bother backgrounding things that you immediatelywaitfor?Second, within thecrawlersfunction, you're onlywaiting on half the calls; the other half could still be running.Usewaitwithout arguments to wait for all currently active children to exit. This would be a better version:#!/bin/bash crawlers(){ nohup...
here is my shell script#!/bin/bash crawlers(){ nohup scrapy crawl a & nohup scrapy crawl b & wait $! nohup scrapy crawl f & nohup scrapy crawl g & wait $! nohup scrapy crawl h & nohup scrapy crawl i & wait $! nohup scrapy crawl i & nohup scrapy crawl j & nohup scrapy cra...
shell script on linux
You can read and create anonymous gists, but you cannot edit them. If you want to create, read, update and delete, use authentication. In the Authentication section, it says: You can read public gists and create them for anonymous users without a token; however, to read or write gists on a user's behalf the gist OAut...
I am creating anonymous Gists using Postman. The Gists get created successfully but when I try to patch them, I get: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3/gists/#edit-a-gist" } The URL I am using is: https://api.github.com/gists/14694f43065a32ec28ad If I do a GET, i...
GitHub Gist API patch doesn't work?
The method described in theNitrous.io blog postcan actually be used with a local Ruby/Rails environment, which removes some of the complexity. There's an evenmore convenient Rakefile setup from David Ensingerthat implements thedeployment steps proposed by Randy Morris.Essentially, these Rakefiles are just conveniences ...
GitHub pages does not supportplugins, but plugins are clearly very useful (e.g.jekyll-scholar).Nitrous.iosupports adding plugins to your GH pages site, but this seems a little involved. Is there any simply way to get plugins working on my githubsite, or should I just make _site/ the root, as the jekyll-scholar dev.reco...
Simplest way to get (jekyll-scholar) plugins on gh-pages
You don't have to check if the VPC exists. AWS checks it when it is being created using the second argument as the identifier. If there is a VPC with the same ID already, it updates it (if there are changes). If there is no VPC with the given id, it is created. So, in the end, you just create the state you want and AWS...
I am doing a CDK script and to use the default VPC, I has this code:vpc = ec2.Vpc.fromLookup(this, "UseDefaultVPC", { isDefault: true });To use a existing VPC (not default), I has this code (will search by existing tags):vpc = ec2.Vpc.fromLookup(this, "UseCustomVPCAlreadyCreated", { tags: { environment: project...
How to check if a custom VPC already exist using AWS CDK?
The browser always checks forfavicon.icoin the root.The only way of telling the browser to use another file is by putting<link rel="shortcut icon" href="/otherfavicon.ico">inside html. So this will only work for html documents.So when a picture is openedfavicon.icois shown, but when a webpage is openedotherfavicon.icoi...
I have a site that simply opens images in a browser with no page code:www.mysite.com/images/pic.jpgI want to add a different favicon when the pictures are opened in the browser window.I tried putting the following inside the /images folder but no luck:RewriteEngine On RewriteRule ^favicon\.ico$ /images/favicon2.icoAny ...
Displaying different favicon when opening images in browser window
Do you mean Fork a repo? Basically you copy the entire project to your github, so you freely can make changes. Read:https://help.github.com/articles/fork-a-repo/Go to the project gihub link and locate the Fork :
I want to create a new my own project from an existing project such as EXOplayer of Android:https://github.com/google/ExoPlayerWhat should I do for this purpose? Is there any concern to directly copy all from the repository and upload to become a new project?I am a rookie for it so have no idea about what should I star...
Github : Create a new project from existing project for EXOplayer
Hey actually something like that happened to me once with the Github for Windows. Well at least for what I understand is that the file doesn't get added to the remote git repo. I would start the git shell: Open the repo you're working on >> Tools and Options (Button) >> Open a shell here There try this to see if file ...
I'm using the GitHub application for windows to transfer my code between my local and the server. I've made two ASP.net services thus far, which work fine- however my latest c# service's .exe and related files aren't picked up by the GitHub app, meaning when I pull from the server, the .exe of the service isn't availa...
ASP.NET Service.exe isn't picked up by GitHub
1 FOR /F "usebackq tokens=3" %%s IN (`DIR C:\ /-C /-O /W`) DO ( SET FREE=%%s ) ECHO %FREE% Remember to change C:\ to the external drives letter. Share Improve this answer Follow answered Jun 28...
I'm busy automating backups with bat scripts. Can I compare the available space on the external to the size of the backup data? Want to make sure there is enough space for data that needs to back up and if there isn't I need it to send me a mail. ( i know how to send emails and stuff, just need to know how to check th...
Check if drive has enough space for backup
The quick and dirty way would be to fire-off a Task from Application_Start But I've found that it's nice to wrap this functionality into a bit of infrastructure so that you can create an ~/Admin/CacheInfo page to let you monitor the progress, state, and exceptions that may be in the process of loading up the cache.
I have an ASP.NET MVC 3 / .NET Web Application, which is heavily data-driven, mainly around the concept of "Locations" (New York, California, etc). Anyway, we have some pretty busy database queries, which get cached after they are finished. E.g: public ICollection<Location> FindXForX(string x) { var result = _cache...
Strategies for "Pre-Warming" an ASP.NET Cache
5 Yes, the total cap of TCP connections will be capped by the Docker host. However, there are three very different limits: total cap of open connections (regardless of the source/destination IP address), which is related to the maximum number of file descriptors, and can b...
Under a REALLY heavy load, a server doesn't seem to "recycle" the TCP connections quickly enough. I'm looking into using Docker to deal with a higher than usual number of requests per second to an API by creating multiple instances of a node server on one machine vs using multiple machines. If the following sysctl se...
How will a server running multiple Docker virtual machines handle the TCP limitation?
You can achieveAuthorizationHeader parsed tomd['authorization']for you if you useJSON-to-GRPC Gatewayas a middleware betweenistio ingressandgrpc service.JSON-to-GRPC Gatewaysource-code linewhereHTTP HeaderAuthorizationis parsed and appended topairsthat will become metadatas:for key, vals := range req.Header { for _...
I would like to set up anauth policyon a GRPC service through Istio.Currently, it's possible to add the policy on regular HTTP services, as you can use theAuthorizationheader to pass the JWT token to the service. I'm a bit lost as it doesn't seem to be a similar policy for GRPC services (where you could include the tok...
Istio End User Authentication with JWT on a GRPC service
Drop the file name from the destination:COPY php5-cgi.conf /etc/apache2/conf-enabled/The destination is anabsolute path(not filename), or a path relative to the work directory, into which the source will be copied inside the destination container.
I have to overwrite a file through Dockerfile. In particular on an Ubuntu container with Apache and PHP and I have to overwrite the file php5-cgi.conf. I tried to use the following command:COPY php5-cgi.conf /etc/apache2/conf-enabled/php5-cgi.confbut I had the error:File already existsI have also tried to use the follo...
How can I overwrite a file through Dockerfile in docker container?
The new update URL is:http://downloads.sonarsource.com/eclipse/eclipse/This will be updated on the Eclipse Marketplace.
Codehausis shutting down its services, including the Eclipse Plugin of SonarQube. Does anyone know whether there is already a replacement for the P2 repositoryhttp://dist.sonar-ide.codehaus.org/eclipse/?Thanks
SonarQube P2 repository has gone forever
You can keep each job in a different file and use the "file_sd_configs" clause to "include" them in the Prometheus config file, like in the following example.prometheus.yaml- job_name: blackbox metrics_path: /probe file_sd_configs: - files: - blackbox.yaml - job_name: node scheme: http ...
Can we keep the job section into a separate file and is it possible to include it in prometheus.yml.We have multiple infrastructures to monitor,r so it would be helpful to aggregate with jobs and keep them in separate files. Pls help
Can we keep job section into a seperate file and is it possible to include prometheus.yml
One must change the default GPU acceleration to disabled.Go to: chrome://flags/ Then, look for the GPU acceleration flag and set it to false.
I cannot use Chrome through an RDP session. When connected without RDP, chrome works fine. However, when used within and RDP session, Chrome times out on every attempt to load a web page.
Cannot use Chrome through an RDP session
Use can useCPDDuplicate code can be hard to find, especially in a large project. But PMD’s Copy/Paste Detector (CPD) can find it for youFor example:Minimum required options: Just give it the minimum duplicate size and the source directory:$ ./run.sh cpd --minimum-tokens 100 --files /usr/local/java/src/java
Is there a plugin or feature dedicated to find duplicated code from within eclipse?The SDD plugin seems to be outdated and dead. SonarLint does not show duplicated code.i want to see duplicated code and not other noise as pmd would introduce (i think)
Current Eclipse plugin for duplicated code
According toGrafana docs:Dashboard snapshotA dashboard snapshot is an instant way to share an interactive dashboard publicly. When created, we strip sensitive data like queries (metric, template and annotation) and panel links, leaving only the visible metric data and series names embedded into your dashboard. Dashboar...
We want to use Grafana to show measuring data. Now, our measuring setup creates a huge amount of data that is saved in files. We keep the files as-is and do post-processing on them directly with Spark ("Data Lake" approach).We now want to create some visualization and I thought of setting up Cassandra on the cluster ru...
Grafana snapshots - is the needed data stored or fetched from the source?
$testText = "cron(0 20 * * ? *)" $cron = $testText.split(' ').split('(').split(')') 'cron(' + $cron[1] + ' ' + (([datetime]::Today).AddHours($cron[2] -1).Hour) + ' ' + $cron[3] + ' ' + $cron[4] + ' ' + $cron[5] + ' ' + $cron[6] + ')'or perhaps a little easier$testText = "cron(0 20 * * ? *)" $cron = $testText....
Am sure I'm way off here & there's probably an easier way to do this, but I have to change some cron text schedules & change the hour in which they run..The cron itself is in a text file so I was thinking of using powershell to get the content, update it & save it.. but I'm not very good with regex etc with this. -I'v...
Powershell replacing 2nd item in cron schedule?
Please use/api/plugins/install?key=java, it will automatically installSonarJavaplugins.
I have a SonarQube service and API deployed in containers as part of my build pipeline. The SonarQube service needs to have the SonarJava plugin installed to understand my code rules.As it's not an option to manually install this plugin, I'd like to do it through the API.I saw this post:How to install or uninstall Sona...
Installing a SonarQube Plugin Programmatically
The github project contains only Django apps. Not whole project. You need to integrate this in your Django project. You can run it by following below steps.Create New Django ProjectClonegithubrepo in your project. Run following commands in your project directory.git clonehttps://github.com/tomwalker/django_quiz.gitmv d...
New to Django, I am trying to view the website with its associated functionality generated by the project files here:https://github.com/tomwalker/django_quizWhen I use the usual: manage.py runserver on the command prompt, it says that there is no manage.py file, and there isn't.Worryingly, I followed the instructions f...
How to runserver and see website for github project files
From 5.3.4/7When the value of the expression in a direct-new-declarator is zero, the allocation function is called to allocate an array with no elements.From 3.7.3.1/2The effect of dereferencing a pointer returned as a request for zero size is undefined.AlsoEven if the size of the space requested [by new] is zero, the ...
A simple test app:cout << new int[0] << endl;outputs:0x876c0b8So it looks like it works. What does the standard say about this? Is it always legal to "allocate" empty block of memory?
C++ new int[0] -- will it allocate memory?
The answers for all your questions are a big tasks. What I recommend is get right the concepts of every piece of the puzzle you want to put together. The csv files apparently have flexibility, which you will not get in Redshift, it is because the columns aren't really typed, it is just text... and it is very slow. I w...
I'm developing ETL pipeline using AWS Glue. So I have a csv file that is transformed in many ways using PySpark, such as duplicate column, change data types, add new columns, etc. I ran a crawler with the data stores in S3 location, so it created Glue Table according to the given csv file. I mean when I add a new colu...
How to create a Redshift table using Glue Data Catalog
You could useCeleryfor this, and there are ways to hook in a database update to a Celery scheduled task, but it may be overkill for such a simple situation as showing or not showing expired posts.Here is a simple example of setting a calculated property. Just reference the calculate propertyactiveto decide whether to ...
I have project in which the user decides for how long a Post will be active, so after certain time the post will change the state.To solve this, as for running async tasks and for performance, I think the best choice is to use Celery.I haven't use Celery yet, I've only read the documentation about ETA (estimated time o...
Using Celery for cron jobs time based on users time decision
It sounds like your .htaccess file and the error.php that you want to reference are in the same directory. If so, you could try...<files ./error.php> Header add X-HeaderName "Header Value" </files>To tell the htaccess to use the file in the current directory, which is represented by the ./I have no means to test this...
In parent directory i have htaccess<files error.php> Header add X-HeaderName "Header Value" </files>Parent folder has a file callederror.phpand a child folder which also contains a file callederror.php.How to create a rule that will apply only to the file in the parent directory?
Set path from DOCUMENT_ROOT in <file>
UIImage *myImage = [UIImage imageNamed:@"image.png"]; imageView.image = myImage; [myImage release];You made a double release. [UIImage imageNamed] is autoreleased so you don't need to explicitly release the object. Your app probably crashed because of double releases and not because of unreleased objects.Read the simp...
Okay, so if I written quite a lot of code without ever allocating any objects, where is the memory going?For example, rather than havingUIImage *myImage = [UIImage imageNamed:@"image.png"]; imageView.image = myImage; [myImage release];I hadimageView.image = [UIImage imageNamed:@"image.png"];throughout all my code. I do...
How to manage memory with images
That seems docker-compose configuration issue, use belowdocker-composefile, it will create a network and then you can use the same network in the docker-compose file.version: '3.5' services: webapp1: image: nginx:latest container_name: my_container ports: - "8080:80" networks: - my_networ...
I am having below error while running the docker-compose file. I have created a bridge network with name my_networkUnsupported config option for services.networks: 'my_network'docker-compose.ymlversion: '3.3' services: webapp1: image: nginx:latest container_name: my_container ports: - "8080:8080" ...
Unsupported config option for services.networks: 'my_network'
There is no hard limit, either within a single project or across the instance. However, depending on your infrastructure (e.g. disk space available for the DB) you may run into practical limits.
I'm about to use SonarQube on big projects and have been searching for info about LOC limit for analysis and there is no related information on their website. Is there? if it is, what's the limit?
SonarQube LOC analysis limit
Just go and look for a CNAME file in your portfolio repo. That file will contain your custom domain details, So delete that file and commit - push again, This will republish your website back with github.io domain.
A couple years ago I was experimenting with github pages to launch a portfolio site of mine. While doing so, I at one point acquired a domain calleddanielforhire.com. I don't remember how I did so but while attempting to deploy a new portfolio resume project to github pages, it seems that I somehow configured github to...
How to reset my github.io git hub page domain back to its default?
I know it is an old question but for anybody coming here, the solution, at least on Linux, is to allow incoming network packets to host from docker bridge network by modifying the iptables of the host as following: sudo iptables -I INPUT -i docker0 -j ACCEPT It translates to accept all incoming network packets on hos...
I've got a docker container on host 183.83.83.83 The A record of a subdomain mycontainer.example.com points to this IP. A curl to 183.83.83.83 or mycontainer.example.com gives HTTP status 200 and the correct website. However the same curl from inside every container on that host (to both the IP or hostname above) fail...
Host unreachable inside Docker container
Since SonarQube 4.0 (or if you have an older version, using the Switch Off Violations plugin), you candefine a patternto ignore this rule on classes ending inTest:Connect to SonarQube with a global administrator accountGo to: Administration > Configuration > General Settings > Analysis ScopeFind section: Issues > Ignor...
I agree that it's generally a bad idea to declare "throws Exception" in normal Java code.However, I think it is a good idea to do this in unit tests. It simplifies the test method, but still results in any unexpected exceptions causing the test to fail.I'd like to see if it's practical or possible to make Sonar only r...
Make Sonar override "don't declare 'throws Exception'" only in unit test classes
1 I wanted to answer my own question because of the length of the code. I managed to get things working except for excluding directories i wanted to be excluded... Here i am getting source and destination from user input: SET /p source="Hostname : " SET /p dest="Destinati...
This is my first question on StackOverflow, so please be kind ;); I have several computers to backup at different times, each computer has from 2 to 30 users, I want to backup Desktop, Documents and Favorites folders of a specific computer in the network. Originally, I tried to use XCOPY, but due to the length of fol...
Use Robocopy to backup specific users folders
2 Rosetta was used to run Docker itself but according to the release notes, since version 4.3.0: Docker Desktop on Apple silicon no longer requires Rosetta 2. There is two exceptions in the known issues: Some command line tools do not work when Rosetta 2 is not installed...
When installing Docker Desktop for Apple Silicon, the official instructions says: You must install Rosetta 2 as some binaries are still Darwin/AMD64. However, if I understand correctly, Intel-based containers actually use QEMU for emulation rather than Rosetta: However, attempts to run Intel-based containers on App...
Why does Docker Desktop on M1 require Rosetta if it uses QEMU for emulation?
-1You can use thetasklistand pipe thefindto search a specific program, like so:tasklist /v | findstr "photoshop.exe"You can read more about tasklisthere.ShareFollowansweredJan 25, 2021 at 22:30Omer TalOmer Tal37622 silver badges88 bronze badges11How exactly does this code check a firewall rule?–SquashmanJan 25, 2021 at...
I have a batch file which checks if a rule exists searching by name, but I need to search using the program's name, is it possible?
How can I check if a firewall rule exists for a specific program? (Using CMD)
1 If someone, such as you, has a local copy of this repo, you can give your copy two remotes, representing the two GitHub repos, and just keep them in sync manually by fetching from one and pushing to the other. This actually is no different from how you keep a fork in sync...
I have a repo inside a GitHub organization. It has its code which depends on some credentials. It will basically look for a file called as environment.properties, which will contain a key-value pair like env=pps, and will then go on to read a file called as pps-credentials.properties. We want to have another repo in t...
Keep two repos in sync without forking
Using the standalone and cross-platform "GCM" (Git Credential Manager) indirectly solved this problem for me (on a Windows 1O platform)I installed it from this resource :https://github.com/microsoft/Git-Credential-Manager-Core/releases/tag/v2.0.498(https://github.com/microsoft/Git-Credential-Manager-Core)Once it is ins...
I have 2FA (two-Factor Authentication) enabled on github, and I can'tpushto repository (I have Gitbash for Windows). I have PAT (Public Access Token) forpublic accessand repository where I'm trying topushispublic. I tried to update gitbash, as suggested here:Logon failed use ctr + c to cancel..., but now when I trygit ...
Error 403 when trying authentication with PAT in github
Maybe removehttp://because it is a TCP connection (not a HTTP connection) and addso_keepalive=ontolisten 5432;so the connection stays open.Maybe you have to usestreaminstead ofhttpblock:https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/
I have a PostgreSQL server started at a remote machine on the port15432. I want to configure NGINX to make the database available remotely by hostdb.domain.myand port5432. The configuration I tried is:server { listen 5432; server_name db.domain.my; location / { proxy_pass http://127.0.0.1:15432/; ...
How do I configure proxy_pass on NGINX for PostgreSQL?
You are not using a Redis Cluster, just a single master and a replica. That being the case, your app should just use the singleinstance class, which I assume is something like this:const db = new Redis([{ host: "redis", port: 6379 }])
I am trying to setup Redis cluster. The configuration is the bare minimum setup of the cluster. I am using docker-compose to run my application. But it always throwing the following error. However, when I connect Redis to an external tool it gets connected successfully.ClusterAllFailedError: Failed to refresh slots cac...
Not able to connect to redis cluster from docker container
For cookies I added following in my wp-config.php and it worked like a charm:define('COOKIEPATH', '/'); define('COOKIE_DOMAIN', 'lootlo.pk');For urls issue after lots of searching and not getting any proper solution I changed the urls in my themes header file and also added a 301 redirection code to redirect to subdoma...
I have a wordpress site with woocommerce installed on it. I want to rewrite its login, register and my account urls to subdomains.E.g.main site: example.comlogin url: account.example.com/loginregister url: account.example.com/registermy account url: account.example.com/my_accountI have mapped the subdomain and currentl...
Rewrite woocommerce my account, login and register url to subdomain
You can use@Value("${abc.services.keystore.credentials.file-data:}") private String keyStoreFile;Which will avoid above error and assign "" if not defined e.g. your dev env. You can perform an empty check on the variable keyStoreFile to define a noop SSL check which will not actually check for SSL.ShareFollowansweredM...
I have multiple environments like dev, sit, uat. In dev there is no SSL cert configuration but in sit and uat there is a cert configuration. In my code there is SSL related class is there, that class is declared with@Configuration. In sit and uat this code will work as is because there is ssl cert configuration is ther...
restrict execution of a class using a variable
I just fixed, let add stdin_open: true to docker-compose to fix it.link info:https://github.com/facebook/create-react-app/issues/8688ShareFollowansweredMay 1, 2020 at 7:53dwthiendwthien9611 bronze badge2Okay, Thank you. So what exactly should I do ?–SebNikMay 1, 2020 at 9:27What I mean by this, what should I change in ...
I am building an React Javascript App with npm and want to deploy it on docker.When I run the App locally with:npm startIt all works just fine. But then when I build a Docker Image and test it I get follwing error:$ docker run react-app >[email protected]start / > react-scripts start ℹ 「wds」: Project is running at ht...
Docker React App: 404s will fallback to /
You can use following codes for do that.RewriteEngine On RewriteRule ^\?$ http://www.example.com/ [L,R=301]You define the rule as starts with ? and ends with that sign.ShareFollowansweredApr 21, 2015 at 20:42HuseyinHuseyin1,49922 gold badges2525 silver badges3939 bronze badges31RewriteEngine On RewriteCond %{REQU...
I have a lot of websites on my web server.I just want to redirect all my websites when the url is exactly/?For example:www.example1.com/?www.example2.com/?but not likewww.example.com/x.php?,www.example.com/or anything else.I've tried many things but failed:RewriteCond %{QUERY_STRING} ^$ RewriteRule ^ %{REQUEST_URI}?_te...
Redirect exactly null query string
You have to add sanitizer flags like-fsanitize=fuzzerto yourCFLAGSandyourLDFLAGS.If they aren't passed to the linker but just to the compiler you get tons of undefined symbol errors for sanitizer runtime library functions (like the one you quoted in your question).Note that when using-fsanitizer=fuzzerit makes sense to...
I can successfully compile Nginx with the following variables in the makefileCC = clang-6.0CFLAGS = -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -gWhen attempting to use -fsanitize=fuzzer or -fsanitize=fuzzer-no-link and changing my Makefile to:CFLAGS = -pipe -f...
Clang libFuzzer Undefined Reference to `__sanitizer_cov_trace_const_cmp8'
Your PHP application pod/container would need to be deployed to the same namespace as yourmicroinquilino-serviceservice. If they live in different namespaces, your PHP app won't find that service.The service would need to be defined as:apiVersion: v1 kind: Service metadata: name: microinquilino-service namespace: ...
I am having some troubles understanding and getting this to work.So basically I have created an API Gateway that receives flow from the outside world, this one created with Lumen (PHP) and inside a kubernetes cluster, and I want to access another micro service that is inside the same kubernetes cluster, also a Lumen an...
Accessing a micro service created inside a kubernetes cluster (Laravel/Lumen PHP)
1 You can run git fsck in your new clone to confirm that all is there. The very fact that the checkout of the last commit worked without error in your fresh clone is already a proof that all files mentioned in the commit are also stored in the repo. Share Improve...
This question already has an answer here: Is git push atomic? (1 answer) Closed 3 years ago. I was working on a project today and and pushed a commit inside my terminal window of p...
git ensure that commit is fully pushed [duplicate]
The # Bytes in all Heaps is only updated when the garbage collection is executed, while the Private Bytes is available at much faster update rate. (I'm not sure where that number comes from, internally, and how often it's updated.) The amount of Private Bytes increases just after 17:42:45. This amount does seem to mat...
OK, all you ASP.NET Experts: I have used reflector to look into ASP.NET Cache implementation (which sits on HttpRuntime.Cache and HttpContext.Current.Cache) uses a Hashtable internally to keep the cache. However, the data gets stored in unmanaged memory. This is very strange since I could not see anywhere data getting...
Why (and how) ASP.NET Cache gets stored in Unmanaged Memory?
I usually version a build wrapper script used by the user for launching the build (in the current or in a new shell window)That way, the environment variables arealwaysset at each build.Furthermore, by versioning that build.sh/build.bat wrapper script, you keep the knowledge of which options/environment variable your p...
In my GIT based project, I need to set several environmental variables which is required by build scripts and many other ant targets.For now I have a shell script which will export variables but each time a user opens a new bash window, he will need to repeat the steps by executing the shell script in order to set the ...
GIT : Setting application environmental variables
You would have to be a bit more specific.One possible answer: There is a .gitignore file (hidden file) that prevents the client folder from being pushed.Another: You simply didn't stage the client folder. Trygit add ./clientand then commit and push again.
I wanted to upload a project on github repository so I can send it to my instructor and it’s my first time. All the folders’ content got uploaded except client folder and its icon looks different. Why did that happen?I used these commands in the terminal$ git add . $ git commit -m "First commit" $ git remote add origin...
Why didn't the client folder from my project get uploaded on gitHub?
You could usecadvisor, which provides container users an understanding of the resource usage and performance characteristics of their running containers.Avery good articleabout setting upPrometheusto monitorDockeris using this architecture:Briefly, the idea is to collect information about containers usingcAdvisorand pu...
I want to usePrometheusto monitor mydockercontainers. I can runPrometheuswithGrafanabut I do not know how to instruct it to monitor other docker containers. If possible I would like to see some example. For instance I haveUbuntucontainer running on my host as well asGentoocontainer. How can I tell Prometheus to monitor...
Prometheus - how to monitor other docker containers
2 If you serve files from local disk, you should not worry about Last-Modified header - nginx will add it automatically. If you are proxying files from backend - it's a backend business to generate all necessary headers. Not nginx, definitely. If you have strange demand to ...
I am using nginx. I have a few static files. When one of these files is modified, I would like to get that information. I was hoping to use the Last-Modified header like this. add_header Last-Modified $time_stamp_of_uri or something like that. But I cannot find a variable for $time_stamp_of_uri I already looked at th...
How can I get the file timestamp to add to Last-Modified in nginx config?
7 Quoting Hibernate documentation: 3.4.6. Hibernate statistics If you enable hibernate.generate_statistics, Hibernate exposes a number of metrics that are useful when tuning a running system via SessionFactory.getStatistics(). Hibernate can even be configured t...
Is there any tool which would allow for monitoring Hibernate 2nd level cache usage? I know that I could use Hibernate API for retrieving such information. But what should I do when I have application which doesn't read the information itself, and I can't modify it? Is there any way to read cache statistics from the ou...
Tool for monitoring Hibernate cache usage
0 Yes. It's called git commit. It's a list of changes to one or multiple files, as an atomic operation. It also contains metadata, like committer, date, time, parent commit(s). Share Improve this answer Follow ...
I am a beginner for Git/Github. My company has an internal version control tool developed by themselves. In this tool, there is a conception "package". If you make code change in single/many source files when working on one task, you must package them into a changelist (package, looks like "shelve" in TFS). Developer...
How to package code change in multiply src files using Git
Yep, we all got that email from Heroku. Since your site was versioned with git before, you can undo the last commit by following these steps. However, I am not sure whether you really need to do the above. You just need to make sure that your heroku app runs on rails 3.2.11 - it is a pretty serious security issue, may...
My site is currently dead therefore I can't explain how urgent for me this is. Situation: A few days ago I received an e-mail from Heroku "ACTION REQUIRED: Rails Security Vulnerability " advising me to update rails to version '3.2.11'. After I followed all the steps in the e-mail I tried to open my web site. I was ext...
Site dead. "ACTION REQUIRED: Rails Security Vulnerability "
You would need two repos:one private for Root, including yourimlfilesone public for your Java sources, referenced by the first one as asubmodule.That way, you only clone you first private repo (and get your Root folder), andthat will clone the submodule as well(in a "src" subfolder for instance)cd /my/private/repo git ...
I have a public repository on Github. In this repository I am sharing single file java applications structured as follows:Root Folder1 JavaApp1.java JavaApp2.java Folder2 JavaApp3.javaIn the other hand I am compiling these java applications within IntellijIdea. The problem is, I don't want to share*.iml...
How can I hide some files from public but also version them in Github repository
I have found the reason why the verification did not work. UsingX509Chain chain = new X509Chain(); X509Certificate2 certificate2 = new X509Certificate2(certificate); var chainBuilt = chain.Build(certificate2); LogEvent("Val", 0, "Chain building status: " + chainBuilt); if (chainBuilt == false) { foreach (X509...
I'm currently trying to connect to a LDAPS Server using the following VB.NET Code, which should set the right parameters and use the function seen below to verify the certificate when the Bind function is called.The value of LdapHost is the IP, 10.100.11.10, and the value for LdapPort is 7636.connection = new LdapConne...
Trying to verify a LDAP over SSL certificate, Server cannot be reached
Thanks for Anas Atef, I had to roll the sleeves up. Here is what one needs in the situation like mine:New-NetFirewallRule -DisplayName "Disabling Port 1521" -Action Block -Direction Outbound -Profile Any -Protocol tcp -RemotePort 1521 Set-NetFirewallRule -DisplayName "Disabling Port 1521" -Action Allow Set-NetFirewallR...
I want to simulate Oracle disconnect for my app. I need to enable/disable outgoing traffic to port 1521 quickly.I think the best way is to add/remove a rule into the Windows Firewall.Is there a CMD or PowerShell scrip I can use? Or WMI in C#?(Note: I cannot disable networking as a whole because there are different conn...
Windows 10 script to enable/disable TCP port
https://grafana.com/docs/grafana/latest/datasources/prometheus/Range- Query returning a Range vector, a set of time series containing a range of data points over time for each time series.Instant- Perform an “instant” query to return only the latest value that Prometheus has scraped for the requested time series. Insta...
I have reviewed the Prometheus documentation and understand the difference between an instant and range vector. In PromQL, you can define an expression as a range vector by adding a [5m] range at the end (as a example).I therefore am a bit confused when using Grafana to construct a query. Besides for the prometheus exp...
Understanding Grafana Options on explore page
4 I'm not aware of Protractor and it's workflow, but if you need a browser inside a container, did you see this article? I'll take the liberty for quoting this: $ docker run -it \ --net host \ # may as well YOLO --cpuset 0 \ # control the cpu --memory 512mb \ # ...
I want to dockerize my entire node.js app and run everything inside a docker container, including tests. It sounds easy if you're using PhantomJS and I actually tried that and it worked. One thing I like though about running tests in Chrome - easy debugging. You could start Karma server, open devtools, set a breakpoin...
Running and debugging tests in a Docker container
Apparently, your Gradle project group or name contains a whitespace. This value becomes part of the default value for the Sonar project key, which must not contain whitespace. To fix the problem, you can either reconfigure the Gradle project group or name (it's safer not to have a whitespace in there anyway), or reconf...
I am trying to set up SonarQube with a gradle project.I have started a local Sonar process:C:\Dev\Sonar\sonar-3.7\bin\windows-x86-64>StartSonar.bat wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-200...
org.sonar.api.utils.SonarException: Validation of project reactor failed
I think what you are really asking is "How to health check a uWSGI application". There are some example tools to do this. Particularly:https://github.com/andreif/uwsgi-toolshttps://github.com/che0/uwpinghttps://github.com/m-messiah/uwgetTheuwsgi-toolsproject seems to have the most complete example athttps://github.com/...
I have a flask app with uwsgi and gevent.Here is myapp.iniHow could I write readinessProbe and livenessProbe on kubernetes to check to flask app?[uwsgi] socket = /tmp/uwsgi.sock chdir = /usr/src/app/ chmod-socket = 666 module = flasky callable = app master = false processes = 1 vacuum = true die-on-term = true gevent =...
How to check uwsgi with gevent at socket file in k8s readinessProbe and livenessProbe
You are loading the alert_rules.yml file using the "rule_file" clause in the Prometheus configuration file, right?If yes, seethis answer.
Below is the yam file i am currently using.groups: - name: alertname rules: - alert: InstanceDown expr: up == 0 for: 1mBelow is the error I got after passing it through the prom tool in Prometheus.Checking alert_rules.yml FAILED: unknown fields in config: groupsI am unable to find any solution to it ...
What should be the correct rule to specify in alert_rules.yml file in prometheus
Cron triggers are useful when you care about something running at specific times on the clock or calendar (a specific time each hour, minute, day, week, etc.).When you care more about how much time passes between jobs (45 minutes), you should use aSimpleTrigger. You can just tell it to repeat every 45 minutes.
I have followingcronTriggerExpression in my .NET Application to fire this job every 45 minutes...0 0/45 * * * ?However its firing every 15 and then 45 minutes...for example it fires as below2:15 pm 3:00 pm 3:15 pm 4:00 pm 4:15 pm 5:00 pmI only want it to fire @2:15, 3:00, 3:45, 4:30etc.Thanks
Quartz Job not firing as expected
You could use liveness usingexeccommand.Hereis an example:apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-exec spec: containers: - name: liveness image: k8s.gcr.io/busybox args: - /bin/sh - -c - touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600 liv...
What is an appropriate KuberneteslivenessProbecommand for a background process?We have a NodeJS process that consumes messages off an SQS queue. Since it's a background job we don't expose any HTTP endpoints and so a liveness command seems to be the more appropriate way to do the liveness check. What would a "good enou...
LivenessProbe command for a background process
Unfortunately you can't use an SSL certificate with your custom domain with S3. You can use the S3 domain with the Amazon SSL certificate like: https://my-example-bucket.s3-website-us-east-1.amazonaws.com. If you want to use a custom domain with SSL, and you can't use CloudFront, then you will need to look into placin...
We currently want to start hosting all our assets through AWS S3 and we also want to server everything over https. I understand I can use the Amazon Certificate Manager (ACM) with Cloudfront to server assets over https. The problem is that we are in the medical industry and we are legally prohibited to host anything o...
https on S3 WITHOUT cloudfront possible?
3 If the pings fail consistently during Endpoint creation, we will treat the container as unhealthy and fail the Endpoint with an error message: "ClientError: The primary container for production variant [xxx] did not pass the ping health check. Please check CloudWatch lo...
My sagemaker endpoint has a /ping and according to AWS Cloudwatch it gets pinged about every 5 seconds: 10.32.0.1 - - [01/Feb/2018:08:08:35 +0000] "GET /ping HTTP/1.1" 200 1 "-" "AHC/2.0" However, I don't see what would happen if this ping would fail. Where can I configure the health check?
How can I add a health check to a Sagemaker Endpoint?
If you qualify for the AWS Free Tier, you can use Amazon EC2 t2.micro instance for up to 750 hours per month and pay no additional charges for the Amazon EC2 instance (during the 12 months). After 12 month you are not eligible for free usagePlease find the pricing modelhereafter the free tier usage
I am a bit confused with the wording of Amazon EC2 T2 micro instances when it comes to pricing. They say you get 750 hours free each month.Micro instances are eligible for the AWS free usage tier. For the first 12 months following your AWS sign-up date, you get up to 750 hours of micro instances each month. When yo...
Is Amazon EC2 t2.micro free for life?
In theaws_iam_roledocumentation page there is no example that shows how to load a policy from a JSON file but this works for me:resource "aws_iam_role" "my_role" { name = "my_role" assume_role_policy = file("${path.module}/my/path/my_policy.json") }
I'd like to provision for an AWS IAM Role itsAssume Role Policyusing Terraform. I already have the policy declare as a JSON file.From documentation I understand that the moduleaws_iam_roleis what provisions an IAM Role but as I read from the note:The assume_role_policy is very similar to but slightly different than a s...
How to declare an AWS IAM Assume Role Policy in Terraform from a JSON file?
This is a very common problem you are facing. You must have change the network from which you are accessing the admin panel. This is because nowadays, the hosting providers blocks the IP address from which the WordPress sites admin panels are accessed frequently. The same thing happens here too. As such, change the ne...
Here is the message which i get when Accessing the Wordpress Admin panel after enter the user name and Passowrd:Forbiddeni've tried every thing to get out of it like, changing the .htaccess file and adding this piece of code<Files wp-login.php> Order Deny,Allow Deny from all Allow from all </Files>this one ...
Forbidden when accessing the wordpress admin panel
As per my understanding log output is generated by as a default behavior if you do any tests with lambda function. However, the logs are stored in CloudWatch log group only if your lambda role has permission to write to CloudWatch.
Is there any possible way to disable CloudWatch to log Lambda Function's events? If possible, then what are the steps to do this.
Disable CloudWatch to monitor logs for Lambda function
<div class="s-prose js-post-body" itemprop="text"> <p>You should be able to use a <a href="http://wiki.nginx.org/HttpRewriteModule#rewrite" rel="nofollow">rewrite rule</a> in your <code>server</code> section, something like the following (untested):</p> <pre><code>server_name site.com; rewrite ^/([^/]+\.css)$ http://ne...
<div class="s-prose js-post-body" itemprop="text"> <p>Given the following config: </p> <pre><code>server { listen 80; server_name site.com; location /proxy { proxy_pass http://newsite.com/; } } </code></pre> <p>The page hosted on site.com uses relative path <code>(/main.css)</code> for a...
Nginx Relative URL to Absolute Rewrite Rule?
Here's something I just Googled, might be helpful as a starting point:An O(ND) Difference Algorithm for C#
I want to create my own incremental backup solution using C#. How can I obtain the difference between two files (version 1 and version 2 of ABC.TXT) and then update ABC.TXT version 1 with the difference? Would appreciate some hints! Thank you!
C# Get the difference between two files and use it for incremental backup
1 You will not lose discussions by squashing - PRs and comments are not a part of Git proper, but instead they're kept in GitHub's database(s). As long as GitHub and that particular repo and that particular PR are available, then your discussions will be too. (Similar deal ...
I have a PR for an open-source repository on GitHub. I want to rebase the master branch onto my branch to keep it passing the action checks, and I was also suggested to squash all of the changes I've made because I've made a lot of commits. I have had a lot of discussion across multiple commits, however. If I rebase a...
Squashing commit history on a PR branch and retaining discussion information
Every overload foroperator new()(andoperator delete()) is implicitly and automatically declaredstatic. This is a special rule in C++.Therefore, you should design your class such that theconstructorcan also remember how it was allocated, if you need to retain that information:Foo * p = new (true) Foo(true);That is, your...
I don't understand why I am getting compiler errors when trying to compile this:void* MemoryManagedObject::operator new(size_t size, bool UseMemPool) { Engine* engine = Engine::GetEngine(); void* alloc; alloc = engine->GetMemoryManager()->Allocate(size, UseMemPool); if (alloc && UseMemPool) mA...
Compiler error when overriding operator new
2 A URL like [email protected]:username/repo.git uses the SSH protocol for authentication. You need to create a SSH key and upload the public key to GitHub. The GitHub docs explain how to do this in detail. Share Follow ...
I was working on our lab server and Github kept asking my username and password every time I tried to push or pull. After done some searching, I tried this command git remote set-url origin [email protected]:username/repo.git where username is replaced by my email address. Now I seemed now able to push to my repo. Any...
Github trying to avoid being asked for credentials every time
If you want to use thespring bootactuator/healthas adocker healthcheck, you have to add it like this on yourdocker-compose file:healthcheck: test: "curl --fail --silent localhost:8081/actuator/health | grep UP || exit 1" interval: 20s timeout: 5s retries: 5 start_period: 40sEdit:here the p...
I am running a Spring Boot application within a Docker container, using the Docker file to start the application within the container. How can I check the health of the Spring Boot application within the container?If the container stops or the application is not running, I need to restart the container or application ...
How to do a health check of a Spring Boot application running in a Docker Container?
You've run into this:https://jira.sonarsource.com/browse/SONARJAVA-1179As a workaround, you can enable or disable rules in Sonar via the rules administration UI. You can also set up company or project specific rule sets and assign them to your projects.
I am using SonarQube 4.5.4 and it works quite well for certain rules. However there are some rules that show a rule violation where there should not be one. namelyUnused private method should be removed. I have some private methods that are defined in a class. These methods are called from an .fxml file as FX object.Is...
How to handle certain SonarQube wrongly recognize rules?
You can useReadiness commandinstead of HTTP request. This will give you complete control over the check, including the certificate exchange.So, instead of:readinessProbe: httpGet: path: /eh/heartbeat port: 2347 scheme: HTTPS, you would have something like:readinessProbe: exec: command: -...
I'm using readinessProbe on my container and configured it work on HTTPS with scheme attribute. My server expects the get the certificates. how can I configure the readiness probe to support HTTPS with certificates exchange? I don't want it to skip the certificatesreadinessProbe: httpGet: path: /eh/he...
How to verify certificates for Liveness probe configured to https?
How to Exclude a Directory from CakePHP Routing:I ran into the same problem as you. I struggled, but finally found something that worked.(I'm replying because the answer above didn't work for me, but this did).My directory structure:root/public_html/app/ root/public_html/lib/ root/public_html/plugins/ root/public_html/...
I have a CakePHP installation in a sub folder in my server, I want to install another application inside that subfolder:root/public_html/subfolder/cake/ root/public_html/subfolder/app/etc. now I need a custom application installed there:root/public_html/subfolder/my_custom_application/I have something like this in my ....
CakePHP .htaccess mod_rewrite configuration to exclude a particular folder/url
This is because an In Memory cache doesn't add any serialization overhead and just stores your object instances in memory. Whereas when you use any of the other Caching Providers your values are serialized first then sent to the remote Caching Provider then when it's retrieved it's deserialized back so it's never reus...
I have a service that pulls statistics for a sales region. The service computes the stats for ALL regions and then caches that collection, then returns only the region requested. public object Any(RegionTotals request) { string cacheKey = "urn:RegionTotals"; //make sure master list is in the cache... ...
MemoryCacheClient works differently than others - reference retained
If you look at the comments under the documentation forWin32_NetworkAdapterConfigurationyou'll see a reference toWin32_NetworkAdapterwhen dealing with Vista.'Vista only code??? Set colAdapters = objWMIService.Execquery ("SELECT * FROM Win32_NetworkAdapter WHERE NetEnabled = True") For Each nic in colAdapters msg = ...
How can we enumerate all the network connections in order to extract the IP address of the VPN connection using WMI? On XP, Win32_NetworkAdapterConfiguration works fine but on Vista it only seems to enumerate the physical connections...
Get VPN IP address via WMI on Vista
The 3.8 compose version was added in docker-compose 1.25.5 (ref:https://github.com/docker/compose/releases/tag/1.25.5)Docker Desktop 2.3 include the new version of compose but it's on the edge channel for now.If you can/doesn't want to use the Edge Channel, you can download the latest version of docker-compose manually...
I'm trying to use the latest docker compose version 3.8 but I keep getting "Version in ".\docker-compose.yml" is unsupported." error.I'm using the latest version of Docker engine, 19.03.8 and Docker desktop, 2.2.0.5.EDIT: Here is my docker compose version: docker-compose version 1.25.4, build 8d51620aHere is my docker ...
when using docker compose 3.8 getting 'version is unsupported' error
Ifnginxviews the file system from the root, then therootshould be set to/mnt/q/app/client/public, and not either of the two values you are using.The last element of thetry_filesdirective can be a default action (e.g./index.html), a named location or a response code. You have a named location in the penultimate element ...
I always seem to have problems with nginx configurations. My SPA is located at /mnt/q/app (pushstate is enabled) and the frontend root is located at client/public. Everything should be mapped to index.html, where the app picks up the route and decides what to do.Full path to the index is/mnt/q/app/client/public/index.h...
nginx config with spa and subdirectory root
You are using Grafana Elasticsearch datasource, but your are connecting to Kibana (typical port 5601) and not to Elasticsearch. Kibana is similar to Grafana - both are "user interfaces" for Elasticsearch. Connect datasource directly to Elasticsearch.
Issue: Not able to get data flow from Elasticsearch to Grafana.I can able to connect to ES Kibana from browser to URL with basic auth (user id & password).When I hit save and test in Grafana Datasource, I don't see any errors. But, I don't see any data showing up in my grafana panel.Datasource properties:URL : http://e...
elastic search as grafana datasource
It turns out I was misunderstanding the purpose of the "Logging" attribute. I thought it referred to an host folder, but it's actually supposed to be a container folder.I just had to change the value to be..."Logging": "/var/log/apache2/"and remove the entry from the Volumes array.ShareFollowansweredAug 12, 2016 at 7:0...
I have a Apache2 perl application running in a docker container in Elastic Beanstalk, and I'm having problems getting at the Apache2 logs.This is my Dockerrun.aws.json file...{ "AWSEBDockerrunVersion": "1", "Ports": [ { "ContainerPort": "80" } ], "Volumes": [ { "HostDirectory": "/contain...
Elastic Beanstalk Docker - How to get container logs
3 This is generally the quickest way to install IPython from GitHub: pip install -e git+https://github.com/ipython/ipython#egg=ipython The same goes for pretty much any Python package on GitHub. Share Improve this answer Follow ...
I have opened an enhanced console on my C: derive and pulled IPython from GitHub. The nice python developer at my work had to shoot off on holiday before the install completed and left one line of commands as an instruction. Unfortunately when i type them into the Enhanced Console I get an error. Command and error be...
IPython install from GitHub
You need to either set your RewriteBase correctly or use the full path in your RewriteRule (seeherefor RewriteBase documentation).RewriteBase /brigandze/mannen/ RewriteEngine on RewriteRule ^([0-9]+)/?$ index.php?p=$1 [NC,L]orRewriteEngine on RewriteRule ^brigandze/mannen/([0-9]+)/?$ brigandze/mannen/index.php?p=$1 ...
I read some tutorials about getting clean urls. I tried some of the codes they gave in the tutorials but I can't get a simple example to run...I would like to change:http://domain.com/brigandze/mannen/index.php?p=0To:http://domain.com/brigandze/mannen/0/I used this code and put it in the directorydomain.com/brigandze/m...
Clean url with rewrite rule does not work