Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
I'm not sure I understand the question, but most web services receive connections on one of:80 (http)443 (https)8080 (http)Most firewalls client should be configured to allow outbound connections to these.Server firewall MUST be configured to allow inbound connections on one of these (or some other pre-arranged non-sta...
Due to a virus in the system, one of our clients have made access to internet restricted in their server. We use two web services data on this server (both use a SOAP API).The client company is asking me for the ports on the firewall they should leave open so we could be able to use those web services only. I'm not goo...
What is my web service ports to be allowed in the firewall?
3 I observed similar issue. Following steps helped me: Open VirtualBox GUI. Remove boot2docker-vm virtual machine. Start Boot2Docker Start --- it will recreate boot2docker-vm virtual machine. Share Improve this answer Follow ...
I've installed docker and followed the directions here: https://docs.docker.com/installation/windows/#installation but when I run boot2docker start this happens: Trying to get IP one more time exit status 255 Docker client does not run on Windows for now. Please use "boot2docker" ssh to SSH into the VM inst...
docker does not run on windows error
It's not a complete file section! server { } is missing. Use this one but use this one between server { } and should work location ~ \.php$ { try_files $uri =404; fastcgi_pass 127.0.0.1:9000; # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_para...
I changed my permalinks structure to use the postname I restarted Nginx to clear the cache, but even if I can display my homepage, when I hit any oage link , I get a 404 page not found ... Using Nginx , I don't have to update the .htaccess file , but should I update my site Nginx conf file ... here is the location se...
wordpress - 404 page not found after updating permalinks w Nginx
OS X and iOS both use tagged pointer objects in 64-bit code. Neither currently uses any tagged pointer objects in 32-bit code, though in principle it's not impossible. The specific set of optimized classes and optimized values changes frequently. Open-source objc4/runtime/objc-internal.h describes this set of classes t...
Whileanswering this questionI noted that modern Objective-C runtime uses tagged pointers. Thearticle by Mike Ash and its commentsnote that they are used for someNSNumberandNSDateinstances.Which got me thinking about the complete table of scenarios for different platforms:Where does OSX/iOS 32/64-bit Objective-C runtime...
Tagged pointers in Objective-C
# 480 weeks <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "max-age=290304000, public" </FilesMatch> # 2 DAYS <FilesMatch "\.(xml|txt)$"> Header set Cache-Control "max-age=172800, public, must-revalidate" </FilesMatch> # 2 HOURS <FilesMatch "\.(html|htm)$"> Header set Cache-Cont...
Can someone provide me with an optimized .htaccess configuration that handles compression, browser caching, proxy caching, etc. for a typical website? Aside from my visitors, I'm also trying to make Google PageSpeed happy. I wanna use caching and gzip compression through .htaccess please help me with its code! I want ...
Caching and gzip compression by htaccess
In your question, you write that, after you createdmybranch, youmade certain changes to it and pushed to remote.But did you actually stage your changes and create a commit before attempting to push? It seems that you didn't because, inoneof your comments, you also writeif I rungit diff, I see the changes made.Thegit di...
I created a local branch by usinggit checkout -b mybranchThen I made certain changes to it and pushed to remote withgit push origin mybranchHowever, I cannot see my local changes in the remotemybranch. Therefore, I tried to push again:git push origin mybranch:mybranchNow I get message that everything is up-to-date, but...
Git pushing a branch to remote not working
If you do have gcc installed, the problem stems from /tmp being mounted as noexec. The error doesn't exactly help, but if you remount /tmp as exec you can install passenger properly.mount -o remount,rw,exec,nosuid /tmp
I'm trying to install Passenger and Nginx on my VPS.I followedthese instructionsand replaced all links of all sources to the current version.But when i ran the Phusion Passenger installer for Nginx, something with gcc compiler went wrong:Compiling and installing Nginx... # sh ./configure --prefix='/opt/nginx' --with-ht...
C compiler gcc not found while installing passenger and nginx
You should be using "Lazy loading" of data on all your views. For example, if you are displaying a list of data on a table view, you should release the data when your view controller receives a didReceiveMemoryWarning and set the data pointer to nil. Most of the Apple sample code emphasizes on this lazy loading techni...
What is the difference between applicationDidReceiveMemoryWarning and didReceiveMemoryWarning? What is the best way to handle those warnings?
What is the difference between applicationDidReceiveMemoryWarning , didReceiveMemoryWarning?
You can use dynamic service injection in the component. In that case it will have one parameter and you can inject as many service as you want.import { Component, Injector } from '@angular/core'; import { MyService } from './my.service'; @Component({ selector: 'my-app', templateUrl: './app.component.html', style...
My angular app showing above error message when it pass thought sonar scan. Is there any way to fixed it.I want to pass 8 or 9 dependency but sonar lint not allowing. Is there any alternate way to make it possible?
Angular - Sonar - Constructor has too many parameters (8). Maximum allowed is 7
try adding ssh repo and not http repo as such git remote rm sample_app git remote add [email protected]/user/sample_app.git
I tried to push my code to github by using the following commands: git remote add https://github.com/user/sample_app.git git push origin master And got the following error: error: failed to push some refs to 'https://github.com/user/sample_app.git' To prevent you from losing history, non-fast-forward updates were r...
Unable to push code to github
If you are not using explicit transactions, SQLite will automatically use a transaction around each SQL statement. To ensure that the database files cannot be accessed by another database connection while you are doing the backup, open an exclusive transaction around the backup.
I am trying to implement a service to backup the SQLite database of my Android app. I am planning to both schedule this service for frequent backups (every day for example), and add an option to launch it immediately. My problem is that the service might start while the application is running, or the user might start ...
Locking SQLite database file during backup
You can also accessdgraph-ratelfrom outside the cluster in case you use cloud environment.Obtain External IP fordgraph-ratel-publicservice:kubectl get svc dgraph-ratel-public -o wideAnd you can reachdgraph-ratelon the address:http://<External IP>:8000
I've installed a highly available dgraph cluster using kubernetes. Now I want to know how to access the dgraph ratel UI. I cannot access it by using master's-ip:8000. In simple words, I need the dgraph-ratel's URL.
how to access dgraph ratel
Theatcommandand associatedatddaemon can schedule things to be executed at an arbitrary time in the future. You would likely have to write a specialized php script to pass toat. You can pass extra arguments to it in order to know which user submitted the form, etc. This code would, of course, be executed on the server. ...
I want to call a function exactly 30 mins after a user submits a form. I was using javascript setTimeOut() function but that clears of the timer at page refresh or browser close. No matter what (whether the browser is closed or refreshed), I want to call the function exactly after 30 mins & I also want to display the r...
Running scheduled jobs
You may try implementing aVaryByCustomrule that will distinguish between anonymous and authenticated users. Here'san examplethat should put you on the right track.
My website have a home page, and I would like to cache that page for anonymous users, and set it as "private" for authenticated users (so they save it on their computers, nowhere else).So, if the user is anonymous I want to save the page in the server cache, and also in the browser cache usingCache-control:public, max-...
Cache home page for non-authenticated users in ASP.NET MVC 3
Finally I was able to consistently get under 40 seconds of response time. I feel this is some what consistent and better compared to > 2 minutes, > 90 seconds response time.I added the below to my ~/.config/gcloud/configurations/config-xxx files and then generated the kubectl config[container] cluster = dev // replace ...
when ever I run a kubectl command, it takes a lot of time to execute, mostly > 1 minute and some time between 40seconds to 1 minute. However, during this execution time, the entire system freeze if I use keyboard to switch between applications (clicking with trackpad has no impact luckily) and I cannot perform any othe...
kubectl commands takes lot of time execute and freezing entire system
Let me answer this with my understanding of your question. i think you want your node name value set as env variable in your container. If this is true you can use below code for that- name: Node_Name valueFrom: fieldRef: fieldPath: spec.nodeNameIf you want some other information about pod or co...
I'd like to get the instance ID (e.g. AWS EC2 instance ID like i-19a9fa9s8df9a8, not the private dns node name) of where my pod is running from within my k8s config file, but couldn't find any documentation on how to do that. Anybody know how to use thereportingInstancefield inhttps://kubernetes.io/docs/reference/gener...
How to use the instance ID in Daemonset config file in Kubernetes?
Your ssh config settings are only used when you specify github.com-james or github.com-john as the host names. Testing with ssh -T github.com-james should work (no need to specify the git username again either) In order for this to be used with git, you need to make sure the remote uses this host as well, as in your ...
I am facing issues while attempting to push code to repositories hosted under two different GitHub accounts, namely James and John. Initially, I was working only with repositories under the James account, and now I am trying to add the John account as well. Despite following the steps below to configure SSH keys for b...
Pushing Code to Repositories Under Multiple GitHub Accounts with SSH Configuration Issue
If the dataisstableduring the life of the applicationmust always be availableand must not be purgedbetter store it inHttpApplicationState.If the datanot necessarily is needed for the life of the applicationchangesfrequentlycan be purged if needed (for example low system memory)can be discarded if seldom usedshould be i...
BothPage.CacheandPage.Applicationcan store an application's "global" data, shared among requests and threads.How should one storage area be chosen over the other considering scenarios of data synchronization in the multi-threaded ASP.NET environment?Looking for best practice and experienced recommendation.
ASP.NET Page.Cache versus Page.Application storage for data synchronization?
what happens to the Form pointer upon an implicit copy attempt? What happens is that the pointer data member is copied, which means both the original and the copy point to the same object, which in turn means that both of them will attempt to delete it when their life comes to an end. Only one of these deletes can s...
I have a class, Agent, with a member attribute pointer to an object of another class, Form: Agent.h ...//snip includes class Agent{ private: Form* mvForm_ptr; ... public: Agent(); ~Agent(); ...//snip additional functionality, but no copy-constructor }; Agent.cpp #include "Agent.h" Agent::Agent(){ mvForm_p...
vector::push_back on an object without a copy-constructor -- are pointer values lost?
There is no Managed MongoDB Service provided by AWS.However, there are managed MongoDB services which provides hosting on AWS (in addition to Azure, GCP etc. MongoDB Atlas is an example.MongoDB Atlas provides managed mongoDB service with options to host on AWS and you may opt to use that. You can choose the region of y...
Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si...
is there any managed mongo DB service that AWS provide? [closed]
1 Answering for posterity, since I encountered this same problem running my app in a jupyter notebook inside of docker. Some of this may be self evident, but why not be thorough? 1. Publish your container port with docker Make sure that docker is publishing out your conta...
Is it possible to run a Shiny app from inside a Jupyter notebook that's running in a container? Here's some basic code. If I run this by using Visual Studio Code and remoting into the container it works: I can navigate to the displayed URL in the browser and see the app. library(shiny) runExample("01_hello") However,...
Running Shiny from JupyterLab in a container
My psychic debugging powers tell me that thecreate-shapshots.shscriptwasrun, but it failed because of an environment variable problem (possiblyPATH). Cron normally runs commands with a cleaned-out environment, with much less stuff than what you normally have at a shell prompt.ShareFollowansweredSep 17, 2012 at 5:15Greg...
I opened my crontab file withcrontab -e. Then I added this to my crontab:SHELL=/bin/bash @hourly /home/ec2-user/utilities/create-snapshots.shThen I saved the file. After about an hour, the cron logs displayed:CROND[1876]: (ec2-user) CMD (/home/ec2-user/utilities/create-snapshots.sh) CROND[1877]: (root) CMD (/usr/lib64...
Hourly cron job did not run
No. The garbage collector doesn't count references to know is an object is collectable or not. An object is collectable if it's not reachable any more through a chain of strong references from any root (static variable, or running thread).
So lets say there are two classes: public class A { B reference = new B(this) //B isn't garbage collected because A references it } public class B { A reference // A isn't garbage collected because B references it public B(A ref) { reference = ref; } } And then a third class creates a new A obj...
Can objects make each other 'undeletable' by referencing each other?
I used the IP of the connection.docker network lsdocker inspect network_nameUse the IPAM.Config.Gateway for the Host.
I am trying to connect my Metabase docker container to my containers database containers.docker psMetabase container created such as the docs:docker run -d -p 3000:3000 --name metabase metabase/metabaseThis are my networks:mongodb container and mysql container are also connected to the control-panel-back, but I don't t...
Connecting Metabase with Docker SQL or Docker MongoDB container
Your understanding may be correct, but the statements are wrong:A pointer to objectmhas been allocated on the stack.mis thepointer. It is on the stack. Perhaps you meantpointer to aMemberobject.The objectmitself (the data that it carries, as well as access to its methods) has been allocated on the heap.Correct would be...
I am trying to understand the difference between thestackandheapmemory, andthis questionon SO as well asthis explanationdid a pretty good job explaining the basics.In the second explanation however, I came across an example to which I have a specific question, the example is this:It is explained that the objectmis allo...
Where are pointers in C++ stored, on the stack or in the heap?
I would advocate that you avoid aiming for a GitHub-specific solution. Instead, You could do your code review withtraditionaltools. The most reliable one is command-line git. Fetch the remote branch to your local machine and then:> git log -p -n 1 COMMIT_ID -- INTERESTING_FILE(s)Ex:> git log -p -n 1 abcdef -- foo.txt b...
On a project that I work on, we have a major feature branch which is nearing a merge into the main branch. There are a lot of commits which shouldn't reviewed individually, so I created a PR for the branch and looked at the per-file diffhttps://github.com/haskell/cabal/pull/2952/filesHowever, there are a few new files...
GitHub: How to do code review on new file with more than 1500 lines
Image on its own lineAdd two spaces at the end of the paragraph before and at the end of the image syntax to place the image on its own line (seehard line break):Lorem ipsum dolor ![alt text](/path/to/image.png) Donec vulputate neque ...^ Note the two spaces at the end of line 1 and line 2 in the snippet above.This...
I'm trying to embed images of my site into README.MD, and I want each image to be on its own line. But for images that aren't very wide, it's showing them on the same line. And it also wraps all text around the images that aren't wide enough to fill a line.I've tried adding<br />tags, addingdisplay="block"to the<a>tag ...
GitHub Markdown: How can I get rid of text wrap?
Hosts deny will not block every socket connection, only on apps that rely on hosts.deny which is ssh, inetd, and a few others. To block all connections you need to useiptables.It varies from distro to distro but the command line is something like:iptables -A INPUT -s 117.25.128.0/24 -j DROPYou'll need to useCIDRnotatio...
I'm being trolled by China, and don't know why I can't block their request to my server.//host.denyALL: item.taobao.com ALL: 117.25.128.*But when I watch the error log on my webservertail -f /var/log/apache2/error.logthe requests are still being allowed through.Question:Why isn't my host.deny config working?
Editing my /etc/host.deny
You can use web hooks assuming that you have a reachable endpoint. I prefer building new docker images when your repo is updated but going with your approach you can consider something like:Let's call your containers A, B, and C.Setup a new container W that exposes the web hook, and mounts volumes for A, B, and C. Your...
Let's say that I have several Docker containers. Each is serving code that was originally pulled from a remote Git repository when the container was started. However, now some of the containers are serving code that is behind the remote master branch. I want to get all of them up-to-date.I realize that I could probably...
Keeping Docker Containers Current
It would be easier to: git fetch (the brings everything locally) git cherry-pick <SHA1 of the right commit> Once the fetch is done, you can cherry-pick the commit which fixes the error (it should be part of git log origin/xxx, with xxx being the branch where the bug fix was committed on the GitHub side) Once the bug...
Someone fixed an error in a program on Github, but it hasn't been added to the master branch. I want to just pull this one commit, but everything I've tried gives an error saying bad object.
How Do I Pull a Single Commit In Git?
0 My assumption is that you're using postgres as database and you are missing libpq-dev in your image. I don't use passenger when deploying rails apps with docker, but I think you should check if the lib is installed. You could just try to add: RUN apt-get install -y libpq...
I'm trying to create a docker image with a rails app and passenger. I have read this article : https://intercityup.com/blog/how-i-build-a-docker-image-for-my-rails-app.html It works good, gems are well installed, but when I call the app, I have this error : Message from application: libruby.so.2.1: cannot open share...
How to create a docker image with passenger?
I am using quartz 1.8.6, so I just review www.quartz-scheduler.org and get some information for you.First of all, quartz support jdbc store of course. Quartz offers JDBC-JobStoreTX to store data in DB. Configuration Reference ishere.Also, You can download quartz 2.2.3 from www.quartz-scheduler.org/downloads/ . Afte...
So I managed to use the quartz scheduler in my JSF web application. Right now the expressions for the triggers are in a quartz_data.xml file like:<schedule> <job> <name>myCronjob</name> <job-class>ch.scheduler.myCronjob</job-class> </job> <trigger> <cron> <name>myCronjo...
Is it possible to store quartz cronjob config in database (mongoDB)?
There are much more complicated solutions, but a very easy, simple one is just to add a random query string to your CSS include. Such as src="/css/styles.css?v={random number/string}" If you're using php or another server-side language, you can do this automatically with time(). So it would be styles.css?v=<?=time();...
I'm currently editing a .css file inside of Visual Studio 2012 (in debug mode). I'm using Chrome as my browser. When I make changes to my application's .css file inside of Visual Studio and save, refreshing the page will not load with the updated change in my .css file. I think the .css file is still cached. I have tr...
How to force Chrome browser to reload .css file while debugging in Visual Studio?
The permissions are incorrect on the wp-content/uploads directory. I had the same error and in my case the upload folder's permissions and user/group where set wrong and also some folders inside were set to root. But that's probably because I imported a backup. To fix the upload you can add the following two commands ...
Error: The uploaded file could not be moved to wp-content/uploads/.../.... Environment: Wordpress Docker image is created from a base Wordpress image then the files are mapped in and out, for development: version: '3' services: wordpress: restart: always environment: WORDPRESS_DB_NAME: ... WORDP...
Docker & Wordpress - The uploaded file could not be moved to wp-content/uploads/.../
I suggest that you use the following tools and tricks:Useasdfto manage multiplekubectlversionsSet theKUBECONFIGenv var to change between multiplekubeconfigfilesUsekube-ps1to keep track of your current context/namespaceUsekubectxandkubensto change fast between clusters/namespacesUse aliases to combine them all togetherT...
I am working with multiple Kubernetes clusters at Azure, so I need to change quickly from one cluster to another without having various files at my pathC:\Users\username\.kube, because I have to rename or replace the file when I wish to change to other.
How to have multiple kubernetes config and change quicky between them
The symbol this is always a local reference, so there's no need to "cache" it for performance reasons. There may be other reasons to preserve its value in another local variable however. When there's a local function that needs access to the this value from its containing function, then the containing function must ma...
It's recommended to cache globals locally for better performance like so: function showWindowSize() { var w = window; var width = w.innerWidth; var height = w.innerHeight; alert("width: " + width + " height: " + height); } Is the same true when using the "this" keyword, or is it cached already? Exampl...
Is "this" cached locally?
You are using nextcloud:fpm image which is only a php fpm instance without a web server. Your nginx proxy config is fine but it won't work because you will need nginx fastcgi_proxy for this to proxy request to a backend php instance. Here's a simple illustration: nginx(fastcgi) <-> php-fpm(nextcloud) <-> db 1st sol...
I am running an Nginx Webserver on my Raspberry Pi 4. I am trying to configure a reverse proxy on subdomain to a Nextcloud Docker container. However I am getting a 502 Bad Gateway error when I try to visit this container in my browser. I have made sure to generate an SSL certificate for the subdomain I am trying to s...
502 Bad Gateway Error on Nextcloud Docker Container proxied through Subdomain on Nginx Webserver
EachHGETALLreturns it's own series of values, which need to be converted to strings, and the pipeline is returning a series of those. Use the genericredis.Valuesto break down this outer structure first then you can parse the inner slices.// Execute the Pipeline pipe_prox, err := redis.Values(client.Do("EXEC")) if err ...
I managed to Pipeline multipleHGETALLcommands, but I can't manage to convert them to strings.My sample code is this:// Initialize Redis (Redigo) client on port 6379 // and default address 127.0.0.1/localhost client, err := redis.Dial("tcp", ":6379") if err != nil { panic(err) } defer client.Close() // Initialize...
Convert Redigo Pipeline result to strings
Just remove the portion that says that it should serve directories:RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L]Now it will serve files (with size > 0) and symbolic links directly, but send directory references an...
I have such situation. I'm developing application in Zend Framework and htaccess pointing every request to index.php. If some file or directory exists on the request path then htaccess allow access to this files like css, js, images etc...Now I have for example such link:example.com/profile/martin-slicker-i231With Zend...
htaccess block access to directory but allow access to files
I have found the soltuion, add this :.onQualifiers(Qualifiers.PROJECT)
I have a plugin with some properties defined with Property class but I want to reorder them so I used PropertyDefinition class. The problem is that in the Property class there is a "project" field but not in PropertyDefinition. And when I run it with PropertyDefinition, there are 0 settings. Here is the previous code:@...
Add a property on sonarqube using PropertyDefinition
It cache the result of the previous steps of the Flux/Mono until the cache() method is called, check the output of this code to see it in action: import reactor.core.publisher.Mono; public class CacheExample { public static void main(String[] args) { var mono = Mono.fromCallable(() -> { Syste...
I'm a beginner of spring webflux. While researching I found some code like: Mono result = someMethodThatReturnMono().cache(); The name "cache" tell me about caching something, but where is the cache and how to retrieve cached things? Is it something like caffeine?
How to use "cache" method of Mono
The particular behavior you're asking about comes about because the ruleRewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]is a 301 redirect; it instructs the browser to initiate a completely new HTTP request. TheLonly causes (can only cause) it to be the last rule executed forthat request; the new request comes in...
My .htaccess file is as follows:Options -Multiviews RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.phpIt works, but I'm wondering how it works. For example, if I t...
How does this mod_rewrite code resolve properly?
Istio deploys a envoy sidecar along with your pod and since all traffic goes through the envoy proxy you can get metrics and observability from envoy. You can follow Istiodocson how to collect metrics. Alsoenvoy access logscan provide details of all http requests inside your mesh.
Hello I have got a question about Istio Network Policies .I created a network policy shown as below and tested it . It works .apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: api-policy namespace: point-1 spec: podSelector: matchLabels: run: api ingress: - ports: - protocol: ...
Istio Network Policy Logging
0 It works for me: server { listen 80; server_name *.domain.org; root /var/www/html/domain.org/public; index index.php index.html index.htm; location ~* \.(css|js|png|woff2|woff|ttf|jpg|jpeg|gif|ico)$ {} location / { index login.p...
Trying to get login.php or /login to be the index page when going to a subdomain but all I get is a blank page. Config below: server { listen 80; server_name *.domain.org; root /var/www/html/domain.org/public; index login login.php index.php index.html index.htm; location ~* \.(css|js|pn...
nginx alternative index not working
Oban jobs are just modules. You can useiex -S mixto test them locally:YourWorker.perform(%Oban.Job{args: %{"id" => 1}})If you want to test the queue itself, use:%{id: 1} |> YourWorker.new() |> Oban.insert()Oban also supportsExUnitwithOban.Testing.
How can I run Oban jobs (I am using a Cron job plugin with Oban) on localhost so that I can see it is working?My Oban's just run a query and then create a file at a location. I want to be able to test this on localhost or which ever correct method there is for testing this.defmodule ObanJobOne do def job(_) do ...
How to run Oban jobs locally?
This happens because your Dockerfile has exceeded the 125 layers limit for docker images.If you add the Dockerfile to the question I can help you to simplify it. As a first suggestion, try to group commands in only one RUN
Step 115/172 :RUN Invoke-Sqlcmd -ServerInstance localhost -Database MY_DB -InputFile 'c:\tmp\sql_scripts\dbo.usp_InsertUpdateSSearchDateTimeFilter.sql' ---> Running in 977b55fecdfcError:Max depth exceeded
I am getting max depth exceeded while building the docker image for Microsoft SQL stored procedure
You can add anexclude ruleby using-QUALIFIER:q=user:bradsk88+extension:js+array+-path:lib
I'm using theGitHub Code Search APIin a tool I'm building for my organization.I'd like to provide search functionality throughout our repos so you can search for a word (E.g. "array") and find it in any of the.mdfiles inside any of the repos in our organization. (The use-case for this tool prevents us from using the i...
Is it possible to exclude paths in a GitHub Search API request?
So, after going back in forth in the comments I found the solution based on guidance fromCBroe. In short, Let's Encrypt doesn't automatically include theSSLCertificateChainFilein the "standard" Apache configuration it performs, so it needs to be added manually. Once I did that, the links started sharing as expected on ...
I have a single "share to facebook" link on my site using Django Social Share. The issue is that the link being posted to Facebook isn't being scraped - the image, the description, and the title are not populating. All OG meta tags are present and correct, so I checked theFacebook Sharing Debuggerand it shows the follo...
Facebook Link Sharing Issue
Grafana has time ranges that start from the beginning of a time period, such ranges are names<Something> so far(e.g.Today so far), see thedocs. To make use of it in Prometheus query you need to replace[1h]with[$__range]. With[$__range]the effective time range for the panel will be converted to seconds before querying.P...
This is my query to get metrics from prometheus in Grafana:sum(increase(metricName{job="service"}[1h]))What I want, is that, for example if it is 14:23 now, the query to return only any metric with hour of 14 for today. I do not know how to achieve this. Because intervals and time-ranges are relative. For example, ther...
Grafana getting the metrics of current hour from Prometheus
Kubernetes does not itself support this feature at the moment and there is feature in the works (https://github.com/kubernetes/kubernetes/issues/22368).You can use custom solution available to achieve the same and one of the popular ones includeReloader.The doc you linked describes that the secret values inside the mou...
We are creating secrets for DB and mounting them as volume to POD, but when we update pod is not refreshing to pick up the new changes. but document says it does refresh automaticallyhttps://kubernetes.io/docs/concepts/configuration/secret/are we missing anything here? does it require any specific logic from Code side...
Refreshing PODs automatically when mounted secrets gets updated, but it looks not happening
The user who accesses the EC2 has different role from the machine itself.The role and access of the machine to secrets manager are defined by eitherUser Role (upon creation of EC2 in AWS Console), or./aws/credentials and ./aws/configurationIn my code, I used boto.utils.get_instance_identity() to get the region. Then ge...
I have a Python program running on a linux EC2 instance, I am trying to get a value from secrets manager but I keep getting a permissions errorAn error occurred (AccessDeniedException) when calling the GetSecretValue operation: User: arn:aws:sts::user_id_here:assumed-role/AmazonSSMRoleForInstancesQuickSetup/somestring ...
Permission error when accessing AWS secrets manager from an EC2 instance
Sonar Sever will not work with root account as it uses elastic search. Therefore, the service will stop as you as you run the start command. You can go to logs and see the error.Log files shows the root cause for the errorCreate a normal user to start sonar server. If you are using ubuntu, you can use ubuntu user or cr...
I have setup Sonarqube in my Ec2 earlier using java version 1.8 and it was running fine. Now also I am using java 1.8 for this. I have configured sonarqube by making a user in root in ec2 and inside opt folder I have configured everything for it. Now its not working. I am using ./sonar.sh start for starting the sonarqu...
sonar stops immediately after starting in AWS Ec2
I moved the /etc/mysql and /var/lib/mysql directories to my EBS and created symlinks in their previous locations.That way I didn't have to modify configuration files or worry about something not finding the files.The reason I also moved /etc/mysql was so that the configuration files and maintenance script would not be ...
I have a production server whose MYSQL may not be backed up. The instance in question has an EBS backed root device (/dev/sda1), which is persistently storing files. It's not clear to me whether it is naturally storing my MYSQL data and binary log files persistently.Should it do so if it's mounted at root? I would th...
Running MySQL on Amazon EC2 with EBS
You should configure your<Location>directive for the URLs that represent your Tomcat application directly in yourhttpd.confconfiguration file -- or a corresponding file that is included in a manner that fits in with your distribution (or local environment) configuration. (Look for theincludelinesin your main Apache con...
My Spring app deployed to prod server (shared tomcat 5.5) would respond to all URL calls with 404 error (except /). After 3 days of hard work, I found that:The problem is that in the production environment tomcat is being fronted by an apache httpd which does not forward requests to tomcat for urls of the form /foo...
configure apache to send all requests to tomcat
Mat's right, you're not supposed to instantiate a new PGraphics each frame. You could simply do something like this:PGraphics img; void setup() { size(500, 500); img = createGraphics(width, height, JAVA2D); // this is here just for the testcase because else I get a // NullPointerException too (probably a harm...
This produces an OutOfMemory exception after running for a few seconds. Any ideas?PGraphics img; void setup() { size(500, 500); img = createGraphics(width, height, JAVA2D); // this is here just for the testcase because else I get a // NullPointerException too (probably a harmless Processing bug) img.beginDr...
OutOfMemory when manipulating images
here is a basic nginx config for the case you are going withunicorn/thinsolution:upstream rack_upstream { server 127.0.0.1:9292; } server { listen 80; server_name domain.tld; charset UTF-8; location / { proxy_pass http://rack_upstream; proxy_redirect off; proxy_set_header Host ...
I want to deploy a simple Ruby Rack service with NGINX. I read various things on the internet, none of which were helpful enough. Lets say I have this (in reality it's a bit more complex but still < 200 lines of code service):require 'rack' class HelloWorld def call(env) [200, {"Content-Type" => "text/plain"}, [...
How to deploy Ruby Rack app with NGINX
Use StreamWriter instead to directly insert the content into your file:using (System.IO.StreamWriter sw = new System.IO.StreamWriter(filePath)) { for (int i = 0; i<=Content.Length;i++) { sw.WriteAsync("this is an example"); } }This is just a snippet but if your file doesn't ...
I am trying to upload a large file (500MB) with Web API post call, but I m getting error,Exception of type 'System.OutOfMemoryException' was thrown.I am getting exception at below line of code,var X= HttpClient.PostAsync(http://localhost/API/Post, Content = {byte[524288000]})The APIPOSTmethod also not called and befor...
Web API large File Post OutOfMemoryException error
It's not entirely clear what you are doing here, but I assume you are trying to adjust the write pointer in your output buffer according to the number of characters taken by the sprintf calls.sprintf returns the number of characters actually written into the output buffer, so instead of incrementing your pointer by a g...
I am writing to a pointer using C'ssprintffunction.I write blank characters (spaces), commas, and integers to this pointer. The pointer has an allocation of 4096 bytes.I increment the pointer manually as I write however I am running into issues when I format.Here is the code:sprintf(result, "%d ", number); memory += 3;...
Manually Incrementing Pointers
That might be because those files are already tracked (making the.gitignoredirective moot)Try and remove them from the indexgit rm --cached -r *.xcodeproj/ git rm --cached -r DerivedData/ git rm --cached -r *.pbxproj git rm --cached -r *xcworkspaceThe--cachedoption will make sure you keep those files on the disk (and...
I have been working on a C project using Xcode9. I don't want to push my .xcodeproj directory into the GitHub. I use the source control menu inside the Xcode to sync with GitHub.I have added the following line into my .gitignore file:*.xcodeproj/ DerivedData/ *.pbxproj *xcworkspacebut it won't work. When I commit, Xcod...
How can I make Xcode ignore xcodeproj in Xcode 9?
2 Run loop in iOS wait for some events to occur and acts upon it. A run loop is an event processing loop that you use to schedule work and coordinate the receipt of incoming events. The purpose of a run loop is to keep your thread busy when there is work to do and put your ...
-(void)returnString { NSString *str=[[NSString alloc]init]; return [str autorelease]; } -(void)getString { NSString *p=[self returnString]; } Here What is the lifetime of string str. When will the retainCount of str will become zero. I know that its retain count will become zero at the end of a ru...
LifeTime of an autoreleased object
As mentioned in my latest comment my primary issue was related to SSL HandshakeException (No appropraite protocol found). And I was working with JDK 1.8.Later I realized it was cipher filter "SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256" was not supported with jdk 8. Once I changed to "TSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256" ...
Camel Spring Boot application version 2.20.1How to load the application.properties values to spring config xml parameter on start up ?For eg: few parameters are defined as follows :-eas.ssl.key-store-type = JKS eas.ssl.key-store-password = ***** eas.ssl.key-store = filelocationNow the same need to be configured in Spri...
How to load spring config xml ${ } values from spring boot application properties
git automatically spawns your preferred $EDITOR to prompt for a commit message when you run git commit. So it may be as simple as leaving -m off of your git commit command If git launches the wrong editor, or fails to launch an editor, try setting the EDITOR environment variable to your preferred editor: export EDITOR...
I just read Writing good commit messages and liked it a lot. The problem is, I prefer the command line (plain ole' git). How can I add newlines and tabs to commit messages, so as to have a "summary line" and message body (which may consist of several paragraphs)? Does GitHub support markdown in their commit messages?...
Formatting GitHub commit messages from shell
server{ listen 80; listen [::]:80; server_name example.com *.example.com; #for certbot challenges (renewal process) location ~ ^/.well-known/acme-challenge { allow all; root /data/letsencrypt; } location / { return 301 https://$host$request_uri ; } }Should ...
I can successfully route traffic from port 80 to HTTPS, and I can also get the Let's Encrypt SSL certificate successfully. But my problem starts when I want to doboth.Whenever my certs are expiring I have to adjust the config to pass the Let's Encrypt challenges. And that's no good.Here is the config that is passing th...
NGINX redirect to HTTPS, while still maintaining HTTP route for Let's Encrypt Challenges
Solved this issue by runningnpm i --package-lock-onlycommand.if it throwsnpm WARN config global `--global`, `--local` are deprecated. Use `--location=global` insteaderror then runnpm i --package-lock-only --location=globalShareFollowansweredJun 21, 2022 at 12:24JyothiJyothi2944 bronze badgesAdd a comment|
I'm getting above mentioned error and it says to address all issues (including breaking changes), run audit fix --forcewhen i run npm audit command, it gives following detailsnpm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. npm ERR! code ENOLOCK npm ERR! audit This command r...
high severity vulnarebilities npx create-react-app
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch venv" Please remember this rewrite the entire history of the branch so you have to force-push the branch and notify all users so that they force-pull it.
When I started working on one of my Python projects, I forgot to add my venv virtual environment directory to my .gitignore. Now, my GitHub repository is showing the additions and deletions from that commit and does not give me a good sense of when I made major changes (the venv directory had 100,000+ lines of code). ...
Remove virtualenv files from all previous commits after removing from repository
Depending on whether themetrics-serveris installed in your cluster, you can use:kubectl top pod kubectl top node
I've got some deployment on a basic k8s cluster withouth defining requests and limits. Is there any way to check how much the pod is asking for memory and cpu?
Check pod resources consumption
Writing a custom bash script for transferring backups of file with versioning is a bit of a hazzle. Have you looked at thebackupgem? It has tons of customization options and is well tested. Combine that with thewhenevergem and you have all the features you are looking for and more.We use this setup on our production sy...
I want to create a bash script to be run in a daily cron tab. Goal is to backup a tar file generated by gitlab backup from a server to another.The filename will look like 1393513186_gitlab_backup.tar, where 1393513186 is a timestamp.Everyday, a cron tab will check for the file, I need to retrieve the name from the late...
Gitlab rake backup timestamp to something else
You are right, SonarLint for Visual Studio cannot hide issues that are acknowledged or marked in SonarQube, yet. We do have this feature in our plans, but I cannot commit to a specific date when it will be delivered.
In our Project we excluded some issues from our project using SonarQube webapication. But after refreshing the setting in VisualStudio2017, and reanalysing the code, the errors still remains. Is this behaviour as designed and/or cann i do some settings to aply the issue-exclusions also in Lint?
On SonarQube 6.4.0.25310 - Server excluded Issues are not excluded in Sonar Lint
You need to expose your java application to0.0.0.0to listen to all interfaces. Not just localhost.If your on windows look hereDocker port mapping is not working on windows 10
I created docker image form my spring boot application.My Dockerfile looks like this :FROM java:8 EXPOSE 8080 COPY ./sample-app-3.2.1.war sample-app-3.2.1.war CMD ["java","-jar", "sample-app-3.2.1.war"]I am able to create and run the docker image on server with below command:to build image: sudo docker build -f Dockerf...
Docker: Not able to access running server api
You should not need ssh, considering theserver-side hookwill already execute on the (Git Gogs) server.Make sure to put your script as an executable post-receive file, in one of yourGogs repositories bare repos.And in that hook, do:#!/bin/bash echo "pull from non-bare repo" unset GIT_DIR cd /path/to/checkedout/repo git ...
I need to run the script on my server, when callinggit pushfrom the local repository to the git gogs repository#!/bin/sh git pull origin test source env/bin/activate pip install --upgrade pip pip install -r requirements.txt python manage.py migrate python manage.py collectstatic --noinput sudo systemctl restart guni...
How to call a script from the server, when 'git push' to the git Gogs repository?
Spring Boot apps run nicely on Elastic Beanstalk. However, you do need to set some variables. For example, have you set server-port variable to 5000?And as you stated, to successfully use a Service Client, you can set environment variables for your creds. Here is an end to end walkthrough that shows how to successfully...
I finally reached the point where my Elastic Beanstalk Instance / Environment got launched. (Java Corretto 11 Platform) Now it fails starting up the provided.jarfile.In theeb-engine.logfile, I am not able to find any more error than this:2021/05/27 11:36:25.889735 [INFO] Executing instruction: StageJavaApplication 2021...
Elastic Beanstalk fails creating
4 It seems to me like there is no workaround. http://github.com does not currently have follow buttons for organizations. I'm assuming that following an organization was a bug that has been recently fixed. Share Improve this answer Follo...
Is there any workaround to follow organization in github? The old trick $.post("https://github.com/users/follow?target=organizationName"); doesn't work anymore.
Follow organization on github
That error message is a DNS error which indicates that the IP address for the domain cannot be found. It is not related to SSL, as browser has not connected to the site to begin SSL negotiation.If the site opens fine for some and not others, then it could be a DNS propagation issue.Review your DNS settings. You also ca...
after installing paid ssl certification the web site sometime give some visitorsthis wired errori'm using laravel 6 the host is aws light sail Ubuntu 18my laravel conifg in Apache2<VirtualHost *:80> Redirect permanent "/" https://www.sitename.com/ </virtualHost> <VirtualHost *:443> ServerAdmin webmaster@loca...
after installing ssl getting wired error DNS_PROBE_FINISHED_NXDOMAIN
I found a solution,hope it may help someone: nginx.ingress.kubernetes.io/http-snippet: | map $ssl_client_s_dn $ssl_client_s_dn_cn { default ""; ~CN=(?<CN>[^/,\"]+) $CN; }; nginx.ingress.kubernetes.io/location-snippet: | proxy_set_header REMOTE-USER $ssl_client_s_dn_cn;
I'm using kubernetes/ingress-nginx. Task is to extract CN field from client's certificate using nginx ingress. I was searching for a while and found a solution: map $ssl_client_s_dn $ssl_client_s_dn_cn { default ""; ~CN=(?<CN>[^/,\"]+) $CN; } But I can't adapt this code for nginx ingress.That's what I...
extract CN from client's certificate on nginx-ingress
ec2 = boto3.resource('ec2') instances = ec2.instances.filter() for instance in instances: print(instance.id, instance.instance_type) all_sg_ids = [sg['GroupId'] for sg in instance.security_groups] # Get a list of ids of all securify groups attached to the instance if sg_id in all_sg_ids: ...
How can I go about disassociating a particular security group from all EC2 instances and then associate it with a new EC2 instance, withboto3?I'm trying something like:ec2 = boto3.resource('ec2') instances = ec2.instances.filter() for instance in instances: print(instance.id, instance.instance_type) for sg in i...
Attach / Detach Security Group from EC2 instance using boto3
1 "when and where" is fairly simple: for any operation that would require .capacity() to grow. Note that .capacity() >= .size(), so things like .resize() are also covered. This is a hard requirement: as BoP noted in the comments, implementations may do this if and only if c...
Excuse me for the badly-formatted question, to give context , i'm trying to re-implement vector container and following this quote from the reference: ... vector containers may allocate some extra storage to accommodate for possible growth, and thus the container may have an actual capacity greater than the storage s...
Is there a standard for when and where the vector should allocate the (N*K)?
Have you checked php7.0-fpm log?I found same problem when using fresh install of Laravel 5.5 and found this on the log:WARNING: [pool www] child 5319 exited on signal 11 (SIGSEGV - core dumped) after 312.990977 seconds from startThere might be a problem with one of your php extension, disabling newrelic worked for me. ...
I created a file other than thedefaultto configure my laravel APP. The file name is "laravel".The laravel file:server { listen 80; listen [::]:80; root /home/user/var/www/laravel-blog/public; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?query_string; } locatio...
Laravel 5.5 and nGinx: 404 Not Found on all routes except home
You can useGit submodulesotherlinkthat is more superficial
We have a base solution developed in C#. Many times, we make customer specific changes. For such "customizations", we make a copy of the base solution folder, name it as per the client, and do the code changes. The base solution and client specific solution are about 90% identical.How should we maintain this solution i...
Git - How to maintain a C# solution as GitHub repo with variations for specific customers
You didn't check out the repository on the second job. Each job runs on a different instance, so you have to checkout it separately for each one of them.
I'm trying to set-up and run a GitHub action in a nested folder of the repo. I thought I could use working-directory, but if I write this: jobs: test-working-directory: runs-on: ubuntu-latest name: Test defaults: run: working-directory: my_folder steps: - run: echo test I get an ...
How to use working-directory in GitHub actions?
You have asked a good question. The command's order in the Dockerfile really matters. Put first the things that don't change frequently, and later those that are most likely to change in every build: FROM golang:1.8 RUN go get -d -v ./... RUN go install -v ./... COPY . /go/src/github.com/codeblooded/test1 WORKDIR /g...
This may be a stupid question, but I'm new to using Docker-compose. So far, I love it... but I'm having some long build times. I have a project with several dependencies, and I need to obviously rebuild the source every time I make a change. Right now, I'm calling docker-compose build to rebuild the container, followe...
How to rebuild go project efficiently while using Docker Compose?
Onhttps://docs.gitlab.com/ee/api/projects.html#edit-projectthere are several parameters to configure the pull mirroring:> mirror > mirror_user_id > mirror_trigger_builds > only_mirror_protected_branches > mirror_overwrites_diverged_branchesNote: If your HTTP repository is not publicly accessible, add authentication i...
I want to change the Gitlab mirroring settings for each of my repositories. Is it possible to do this over the Gitlab API?The options the Gitlab WebUi allows, are the following:How can I change them via the API?Remark: This is not the same question as"How can I tell Gitlab to mirror my Github repositories over the API?...
How can I change the mirroring settings in Gitlab over the API?
def main(): filename=open(sys.argv[1])that would work withpython cron.py /etc/crontab.But instead, you have no arguments, and feeding input usingstdinChange to:filename = sys.stdin(and don't close it)Aside:filenameis ill-chosen, since it's a file handle. That adds to the confusion between input stream and input fil...
With this method:import croniter import datetime import re import time from sys import argv now=datetime.datetime.now() def main(): filename=open(sys.argv[1]) f1 = filename.readlines() for x in f1: if not re.match('^[0-9*]', x): continue a = re.split(r'\s+', x) cron = ...
IndexError: list index out of range - Opening file from cli - argv[1]
As you can see inConfigMapPropertySource.java, only one ConfigMap will be used by this property source.However, usingenvFrom, all entries in a ConfigMap can be provided as environment variables to the container andSpring Boot can also read environment variables, so maybe this will help you.
As per the documentation at -https://github.com/spring-cloud-incubator/spring-cloud-kubernetes/#configmap-propertysource, it is possible to make ConfigMaps available during application bootstrapping through addingspring.cloud.kubernetes.config.nameto thebootstrap.yaml/properties.Is it possible to consume multiple Confi...
Kubernetes Spring Cloud Multiple Config Maps being used
<div class="s-prose js-post-body" itemprop="text"> <p>You <em>can</em> certainly copy data directly into <code>/var/lib/docker/volumes/my-jenkins-volume/_data</code>, but by doing this you are:</p> <ul> <li><p>Relying on physical access to the docker host. This technique won't work if you're interacting with a remote ...
<div class="s-prose js-post-body" itemprop="text"> <p>I was using Docker in the old way, with a volume container:</p> <pre><code>docker run -d --name jenkins-data jenkins:tag echo "data-only container for Jenkins" </code></pre> <p>But now I changed to the new way by creating a named volume:</p> <pre><code> docker volum...
What is the right way to add data to an existing named volume in Docker?
The ~-suffixed file is a backup copy of the file, with the state it had before you started editing. You can disable such automatic backing up. You can also control various aspects of such backing up, including where backup files are to be stored -- see the Emacs manual, node Backup and its subnodes. You can also remo...
Sorry, I have a problem when I try to learn emacs in terminal, when I try to edit 1 file (file.txt) and I try to save this file with C-x C-s. I get 2 files with the same name (file.txt and file. txt~). how to handle duplicate file after save file with emacs on mac osx?
how to handle duplicate file(.txt and .txt~) after save file with emacs
Just to follow up on my question, it was very simple to implement in the end. I uploaded multiple certificates against my cloud service and the code then worked as before.
I have a single .NET website that is currently running under a traditional hosting account. I am using a multi-domain (5 domain) SSL certificate to handle domains for different regions i.e.https://www.mywebsite.comhttps://www.mywebsite.nethttps://www.mywebsite.dehttps://www.mywebsite.athttps://www.mywebsite.co.ukAt a c...
Multi-domain SSL Certificate and Windows Azure
You can set this via UserTSConf for each user or user group:options.clearCache.all = 1 options.clearCache.system = 1ShareFolloweditedAug 14, 2018 at 8:19Mateng3,74655 gold badges3838 silver badges6464 bronze badgesansweredNov 17, 2016 at 13:40jokumerjokumer2,2491212 silver badges2323 bronze badgesAdd a comment|
I have created two new users in TYPO3 backend, role not like admin but i want those users to allow cache clear options for "Frontend cache" and "general cache" near "Logout" button in backend.
Allow clear cache options for BE_USERS TYPO3?
I needed to runapt-get install nginx-naxsi(in order to replace nginx-core) for this thing to iron itself out. It worked!ShareFollowansweredFeb 4, 2016 at 2:29Hassan BaigHassan Baig15.5k2828 gold badges105105 silver badges212212 bronze badgesAdd a comment|
While activatingnaxsifor my set up that uses nginx as reverse proxy with gunicorn, I've run into a misbehaving piece of code. Can someone help?For now, I'm trying to turn naxsi on inLearningMode. I've added the following in thehttpsection of mynginx.conf:include /etc/nginx/naxsi_core.rules;Also, I've changedDeniedURLva...
Correctly setting up naxsi in LearningMode in Nginx
Cannot caststringtofunc()type. Instead useswitchormapto find the actual function.for k, v := range masterJobDetails { var jobFunc func() switch v.JobName { case "job1": jobFunc = job1 case "job2": jobFunc = job2 } c.AddFunc(v.CronExpression, jobFunc) }
I am trying to schedule few jobs dynamically by reading configuration from file like belowimport ( "github.com/robfig/cron" "fmt" ) masterJobDetails :=// this is array of job from file c := cron.New() for k, v := range masterJobDetails { fmt.Println(k, v.JobName) c.AddFu...
How to add function to cron using Go reflect?
Once your GitLab account created, you should be able to create aPAT (Personal Access Token)docker login -u gitlab-token -p gitlab-token registry.gitlab.comAs noted inissue 21309, when running from GitLAb-CI, that would bedocker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.comShareFolloweditedAug 8, 2023 ...
I've just created a GitLab account with my GitHub account.How do I sign in to my GitLab registry using my GitHub account?docker loginwith my GitHub password doesn't work.
docker login to gitlab registry with github account
I found where I am doing wrong.It is the declaration of thefolderand therewrite base.number firstnames arenotallowed. so insted of3G_adminI replace it intoG_adminand it works like a charm.naming convention and proper ruling was the problemShareFollowansweredApr 7, 2016 at 1:34Lee BalinoLee Balino49022 silver badges1212...
I wanted to remove theindex.phpon my URL like this. I use XAMPP.localhost/3g_admin/homeFirst I used this.htaccesson my version of codeigniter 3.0.0 and it works fine.RewriteEngine on RewriteBase /3G_admin RewriteCond $1 !^(index.php|resources|robots.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAM...
remove index.php codeigniter 3.0.6
Your liveness probe command should return status different from 0 to indicate unhealthy container condition. Please seeConfigure Liveness, Readiness and Startup Probes.If possible, I'd also recommend for better maintainability and readability to use the tool calledjq- command-line JSON processor.With it your probe shou...
I am running a rest service based on Eclipse Microprofile. My service provides a health check. The result of such a health check (which is providing a lot of information) looks for example like this:http://localhost:9990/health HTTP=OK { "status":"UP", "checks":[ {"name":"imixs-workflow", "status":"UP", ...
How to configure a livenessProbe in Kubernetes based Eclipse Microprofile
I updated POI version from 3.17 from "Sep, 2017" to 5.0.0 from "Jan, 2021". And also commons-compress from 1.4.1 to 1.20.<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-compress</artifactId> <version>1.20</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <...
I'm facing OutOfMemoryError when I try to read, format and write a line from a xlsx file with 23MB. I have a requirement to format only the header of the file.I've tried with InputStream, File and OPCPackage:1) InputStream inp = new FileInputStream(path); XSSFWorkbook wb = (XSSFWorkbook) WorkbookFactory.create(inp); 2...
Apache POI - java.lang.OutOfMemoryError - Read and Write
You deleted commit in your local branch. You must send this change to the upstream branch(to github). git push --force
I am new to github commands and I am a bit confused about what I am doing. I want to delete the "MegaMan Game" commit, revert all changes, and make it dissapear from github history. Following this other stack overflow question Delete commits from a branch in Git, I ran the git reset --hard HEAD ~1 command. The commi...
Github Site shows deleted commit in the commit tab
2 If you cloned the remote repo back into your workspace, you have a local repo once more. And you can always create new branches for your wild changes instead of working directly on the master branch. Share Improve this answer Follow ...
For some mysterious reasons, I ended up deleting my local repository. I now cloned my remote repo back into my Eclipse workspace and it shows that I am working on the master branch of my Android project rather than the local repo and it makes sense. The reason why I started using Git is so that I can make wild chang...
Git for version controlling Android project
Pre-requisite:Installation kernal setupfollowhttps://docs.m3db.io/operational_guide/kernel_configuration/to set the parameters, likesysctl -w vm.max_map_count=3000000sysctl -w vm.swappiness=1sysctl -w fs.file-max=3000000sysctl -w fs.nr_open=3000000ulimit -n 3000000Installation and run:docker pull quay.io/m3db/m3dbnode:...
i am trying to integrate graphite with m3db database and for that i am using m3db docker image but is getting some errors while starting the docker. i ran the following commands :docker pull quay.io/m3db/m3dbnode:latest docker run -p 7201:7201 -p 7203:7203 -p 9000:9000 -p 9001:9001 -p 9002:9002 -p 9003:9003 -p 9004:90...
integrating m3db with graphite
I just went through this today with my AWS team. (I'm an iOS developer so forgive me if I don't use the correct AWS terminology. Hopefully it's close enough.)The new certificate CAN be used for both Sandbox and Production. However, an AWS SNS endpoint (ARN?) has to be created foreach one. As you stated if you check the...
Maybe this is not supported by AWS, however, when creating a certification on Apple Developer Console I chose "Apple Push Notification service SSL (Sandbox & Production)". I used this certification to set up an SNS. If I check the "Used for development in sandbox" checkbox, the notifications will work when compiling th...
Fail to setup one AWS SNS to serve both development (APNS_SANDBOX) and production (APNS)
I would not keep the installation file, instead better back-up the installation directory including theandroid sdkandandroid ndkinstallation directory (check where those directories were created).Furthermore there is the~/.gradledirectory in your home directory which contains all the gradle related cached files.Regardi...
When Android studio is installed in Linux, there are several supporting files which are downloaded by Android studio. I wish to keep a backup of the entire Android studio installation media or installed files in such a way, so that every time I have to install it in any Linux computer, I can do it offline. The main And...
Android Studio Files Backup on Linux
You are right, this is not exactly well-documented by scikit-learn. (Zero reference to it in the class docstring.)If you use a pipeline as the estimator in a grid search, you need to use a special syntax when specifying the parameter grid. Specifically, you need to use thestep namefollowed by a double underscore, fol...
I am trying to perform scaling using StandardScaler and define a KNeighborsClassifier(Create pipeline of scaler and estimator)Finally, I want to create a Grid Search cross validator for the above where param_grid will be a dictionary containing n_neighbors as hyperparameter and k_vals as values.def kNearest(k_vals): ...
Error when using scikit-learn to use pipelines
Configure Cron to run your script every e.g. 1 hour and in script add code to check is RSS modified.EDIT:1. You can configure Cron to run your script every e.g. 1 hour.2. To the script, add the code to test whether the RSS has been modified.3. To check whether the feed was changed use the tag. You can save the tag co...
I have a script that sends out a push notification to users based on whats in a PHP file. This is that file ...the parts that matter ...$doc = new DOMDocument(); $doc->load('RandomXML Url location here '); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( ...
Run a PHP script when RSS feed updates (cron jobs?)