Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Is the security group being referenced by RDS or something in S3? If that is the case, you'll have to delete the dependency in either RDS or S3. The error message is saying something outside of your environment is still using the security group and it can't be deleted for this reason.
I have a problem with AWS Elastic Beanstalk. I tried to delete an environment. It started the process, but after a few minutes the environment "health bar" went to grey and gave me the following errors: "Deleting security group named: XXXXX failed Reason: resource YYYYY has a dependent object" "Stack deletion failed: ...
Amazon Web Service can't delete an Elastic Beanstalk environment
This link gave me the answer: link I thought I would update my question to let others know what the solution was. Pretty simple: from github import Github # using username and password g = Github("Username", "Password") org = g.get_organization('orgName') repo = org.create_repo("test name")
How can I create a new repository in an organization with PyGithub on Github? In particular I like to know how to use the create_repo method? My question is identical to this question, but I would like the created repository to appear in an organization. The solution to creating a repo without the organization level i...
How to create a new repository in an organization with PyGithub
7 You must have a VPC created before hand that have subnet in atleast two different regions. After this go and create a "subnet group" for RDS and add two existing subnet in that. Next take a snapshot of your RDS instance and start a new RDS instance from snapshot in VPC...
We have couple of RDS that are not added under VPC, so we need to bring them under VPC. Please let me know the steps and downtime expected. Also let me know if there need to be any changes in the webservers, so that everything works fine after RDS is under VPC.
AWS - moving RDS to VPC
Configuring functions defined as container imagesYou cannot convert an existing .zip file archive function to use a container image. You must create a new function.
I have a lambda which was created and deployed with CloudFormation. The lambda, as of now, uses the supported .NET Core 3.1 runtime but I want to use the "unsupported" .Net Core 5 so I have created a Docker imagewhich the lambda can run.The problem I have is that CloudFormation can't seem to change the lambda from runn...
Change lambda from supported runtime to docker image
0 .git in .git sound like a use for Git submodules, which works well for tracking. Git Tools - Submodules GitLab: Configure the .gitmodules file Share Improve this answer Follow answered Sep 6, 2...
I and my colleagues have interest in developing a common vscode dev container and having it as part of our gitlab, in order to make the development more consistent as well as help with onboarding. Note, this is for ros development, for what difference it makes. So for this we have our vscode_workspace container repo, ...
VSCode tracking git repos in subdirectories of dev container
I recently ported the Quartz compatiblecron-expression-descriptorfrom C# to JavaScript and named itcRonstrue. This JavaScript library is able to convert a Quartz cron expression into a human readable string like this:cronstrue.toString("0 23 ? * MON-FRI"); > "At 11:00 PM, Monday through Friday"
I used below Javascript API to create Quartz compatible UI to provide cron expression to server side quartz sevices.https://github.com/felixruponen/jquery-cronDo we have any API , which we can use to convert cron expressions into human readable strings in Java Script.Thanks
JavaScript API that converts cron expressions into human readable strings
I've created a simple console app that does a daily backup of tables in a SQL Server database. The output is then zipped and uploaded to Amazon S3 storage. This app can be deployed as an AppHarbor background worker. No local SQL server required!See notes in the readme file for instructions and limitations. This doe...
I've seen a few posts on this, but I just want to make sure I'm not missing something.I'm seriously considering moving from Azure to App Harbor, but I'm a bit dismayed that there doesn't seem to be a way to maintain daily SQL Server database backups.I understand that App Harbor maintains daily file system snapshots. T...
How can I maintain daily SQL Server backups in App Harbor / Sequelizer
If you do:http.ListenAndServe("localhost:8081", nil)this will listen to connections from the loopback interface. When running within a container, this will only accept connections coming from within that container (or if you're running this in a k8s pod, within the same pod). So:http.ListenAndServe(":8081", nil)This wi...
I am trying to run a Go app binary in a docker container. The app has some gRPC request being listen and server on:http.ListenAndServe("localhost:8081", nil)In my docker-compose.yaml. I have a service of the app mapped to 8081:golangAPP: build: context: . dockerfile: ./docker/golangAPP/Dockerfile de...
Docker port expose issue, Recv failure: Connection reset by peer
Within Azure go to Domain Mappings and make an entry for sitename.com in addition to www.sitename.com ! that worked for me.. I remember trying to do that earlier, but Azure did not allow the entry without a www. originally (about a month back) but now it accepted and started working immediately.
we have a site that we recently moved to Azure, did the DNS mapping for www.sitename.com and also for sitename.com however when I access the site without any www prefix, it throws up an error. when I provide www. prefix it works fine.what could I be missing ?
domain without www not working, but with www is working on Azure
Probably there's a misunderstanding.Let's have a look atpublic void someMethod(SomeType<?> param) { ... }This method accepts a parameterparamwhich has to be of the parameterized typeSomeTypebut the method doesn't mind the type parameter (put casually). That is, you can call this method with any parameter of typeSomeTyp...
Sonar saysGeneric wildcard types should not be used in return typesNow I have to use an API that accepts anIterable<SomeType<?>>as parameter. How should I create this parameter without violating the Sonar rule if I want to create it in a separate method - so not inline likeList<SomeType<?>> param = new ArrayList();Some...
Generic wildcards in return types - how to avoid?
Please rundocker loginat first time when you run any other docker commands.You can log into any public or private repository for which you have credentials. When you log in, the command stores encoded credentials in$HOME/.docker/config.jsonon Linux or%USERPROFILE%/.docker/config.jsonon Windows.
I'm just getting started with docker. I'm following the instructions specified herehttps://docs.docker.com/windows/step_one/I installed docker (1.10.2) on windows 10 & randocker run hello-world. But, I'm getting an authentication error while the tutorial doesn't mentioned anything about it.Here's the message I received...
Docker hello-world: authentication error
If you want to change your local directory:git remote set-url [--add] [--push] <name> <newurl>Obviously, --add will add a url, and --push will push to it.If you want to change the repository as it is on github, you'll have to create a new one and copy your repository across.
I'm transitioning source control from VSS to GIT using github. I've toyed with it a little, made a repo, loaded some code. Now I'm ready to really start setting it up for our codebase and I want to change the directory that the repo points to. I basically want to start over. How can I go about doing this?
changing directory related to a github repo
For a DB, 10K rows is nothing. You're not seeing much difference because the actual calculation time is minimal, with most of it consumed by other, constant, overhead. It's difficult to predict when you'd start noticing a difference, but it would probably be at around a million rows. If you've already set up caching ...
We have about 10K rows in a table. We want to have a form where we have a select drop down that contains distinct values of a given column in this table. We have an index on the column in question. To increase performance I created a little cache table that contains the distinct values so we didn't need to do a se...
DB Index speed vs caching
7 Yes, Glue can send to an RDS datastore. If you are using the job wizard it will give you a target option of "JDBC". If you select JDBC you can setup a connection to your rds instance. JDBC connection window RDS option window Share Fo...
Does AWS Glue provide ability to move data from S3 bucket to RDS database? I'm trying to setup serverless app that picks up dynamic data uploaded to S3 and migrates it to RDS. Glue provides Crawlers service that determines schema. Glue also provides ETL Jobs, but this seems to be where target source is only another S3...
Moving data from S3 -> RDS using AWS Glue
After getting no answers here, I askedagain on Github issuesand got this answer from Marc Gravell:Yes, butright nowthe only way to do that is viaCommandDefinition, for example:var cmdDef = new CommandDefinition("select ... blah ...", new { a, b }, commandType: CommandType.Text, flags: CommandFlags.NoCache);the impo...
As mentionedin Dapper docs, Dapper uses aConcurrentDictionaryto store its own caches with information about the queries being executed.Dapper caches information about every query it runs, this allows it to materialize objects quickly and process parameters quickly. The current implementation caches this information in ...
How to execute a SQL query without any Dapper caching?
For me, I had mybuildSpec>artifacts>filesset to '*' and not '**/*' so any files not in the baseDirectory would result in a 403.Updatingfilesto '**/*' resolved the issue.artifacts: baseDirectory: dist/ files: - '**/*'https://github.com/aws-amplify/amplify-hosting/issues/1403#issueco...
I have a site hosted with AWS Amplify, and every URL that has alocationquery parameter returns something like:403 Forbidden <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>THSG05EH8EYB1E7N</RequestId> <HostId>n6Ycon+6kmnmIMiH47lLxNiXhXduG4QzJstmzNeEfBYy3AV19PisdKfXHN99LIAE2cZgvLJ1FBQ=</Ho...
AWS Amplify is returning 403 error only when a "location" query param is specified
You need to do the following:default: - step: name: 'mirror repo' script: - git clone --mirror "${BITBUCKET_GIT_SSH_ORIGIN}" ./mirrored; - cd ./mirrored; - git fetch -p --tags origin; - git push --mirror "[email protected]:you/target-repo.git"ShareFollowanswer...
I'm following this guide to setup a mirror from my private Bitbucket repo to a private Github repo.https://medium.com/@dmitryshaposhnik/sync-bitbucket-repo-to-github-669458ea9a5eBasically the guide involves setting up a bitbucket pipeline as follows:clone: depth: full pipelines: default: - step: name: ...
Error mirroring a git repo from Bitbucket to Github
on some sever we have to do a little modified to the htaccess not just remove .txt and add . in front of it.In my case, I need to add . in to the line "RewriteBase /" => "RewriteBase /."
Hi I want to remove the index.php in my url. I tried alot of methods but none of them work. All of them reponse 500 error or could not find folder. any one can help me please. I just use normal joomla page dont have any thing special but removing index.php seem impossible to meThis is link to my websitehttp://www.websi...
Remove index.php in joomla
-2Virtually there is no folder in the DynamoDB, Your AWS will have it per account. But you create tables in different regions.If You are planning to use DynamoDB for multiple applicationsCreate new account (Advantage of this approach is you will get free tier for both the app if account is new)Create tables in differen...
I am a new user to Amazon DynamoDB, when I use DynamoDB, I found that I can only create tables, but not databases (Like the databases in MySQL).Is there any folder or database like hierarchy system in Amazon DynamoDB, so that I can put a set of tables into one folder (or databases) in order to make the DynamoDB well or...
Is there any folder like hierarchy in Amazon DynamoDB
I found the fix. I apparently wasn't using the root/, so it looked likestyles/index.cssinstead of/styles/index.css
I have a web host on GitHub Pages (http://evancase54.github.io), and I'm trying to link to an external CSS file, which is one folder from the root.Trying it in this way and it does not work:<link rel="stylesheet" type="text/css" href="styles/index.css">and I'm not sure how I am supposed to do it.index.cssis located in ...
External CSS not working with Github Pages
You have to push your commits from your local repository to the remote repository: $ git commit -m "your commit message" $ git push origin <branch_name> Substitute <branch_name> with the remote branch you are pushing to (i.e. master branch would be $ git push origin master). Without pushing your commit, you should s...
I just installed rails on an Ubuntu machine. I set up git and made an ssh key to link to my account. I made a repository to commit to, and made a sample project to test with called first_app. When I make commits it says it was all committed, but I go to github and it isn't there. I want to put my project up there, but...
Says it commits, but in GitHub it doesn't show up
For mission critical application, go for customised blue-green deployments.First deploy new version deployment with new selector and when all POD replicas are UP and ready to serve traffic, switch the service selector to point to new version deployment.After this send the kill switch to older version which gracefully h...
I am trying to achieve 0 downtime during rolling update with EKS (AWS K8s service).I have one WebSocket server and I want to ensure during the rolling update of this server, existing connections will be kept until the WebSockets are closed after the work is done.I thought K8s rolling update feature would help me with t...
Kubernetes doesn't wait for all websocket connections to close before terminating during rolling update
1 A large amount of virtual memory usage is not necessarily a problem. The default malloc implementation will allocate large amounts of storage per thread in order to avoid contention issues. This happens particularly on 64-bit implementations which are pretty common nowa...
I'm trying to investigate memory use of a large multi-threaded server. According to mallinfo(), I get arena=350M and fordblks=290M, which suggests most of the space is actually wasted inside malloc(). The malloc_info() function gives a nice XML data structure that is supposed to be self-explanatory. Still, can some...
GNU malloc_info(): get really allocated memory?
I guess I found a solution.Create a disk on gcloud via:gcloud compute disks create --size=10GB postgres-disk gcloud compute disks create --size=[SIZE] [NAME]Delete any StorageClasses, PV, PVCConfigure deployment file:apiVersion: apps/v1beta2 kind: StatefulSet metadata: name: postgres spec: serviceName: postgres s...
I am trying to cut the costs of running the kubernetes cluster on Google Cloud Platform.I moved my node-pool to preemptible VM instances. I have 1 pod for Postgres and 4 nodes for web apps. For Postgres, I've created StorageClass to make data persistent.Surprisingly, maybe not, all storage data was erased after a day.H...
How to save SQL storage data in running preemtible instance?
1 ptr_map and ptr_vector own their elements. The program is incorrect. Inserting the same elements in two containers at once leads to double deletion. The behaviour of delete on an already-deleted pointer is undefined. Anything can happen. See Undefined Behaviour Use a tool...
I was testing out boost ptr_containers and wrote a small program as below: class Test { public: ~Test() { cout << "Test Destructor called" << endl; } }; int main(int argc, char** argv) { boost::ptr_map<int, Test> TestContainer; boost::ptr_vector<Test> TestVector; for (i...
Why does double free or corruption error not happen at run time for boost ptr_container?
Generally the easiest way to keep files for just 7 days is just to name them .mon, .tue, etc. Then you just overwrite the previous week's file every Monday, Tuesday, etc.
i got a bash script from internet, its look good. its already backup, upload FTP, delete old backups older than 7 days. but its not delete old backup older than 7 days in remote FTP #!/bin/sh Mdate="$(date +"%d-%m-%Y")" mysqldump -uroot -pPassword asia stats | gzip > /home/backup/asia_$Mdate.$ cd /home/backup/ ftpse...
Bash script to delete files from remote FTP older than 7 days
As java 11 (10+) can automatically detect the container's memory you can set memory limit on your container and it should WAI: docker run -m 512 .... As for the choice of JDK, you can either use oracle JDK which is licensed or open source OpenJDK. More details in this article: https://www.docker.com/blog/improve...
What is the process to set memory limit for Java 11 inside Docker? Which JDK to use for production environment? Thanks
How to set memory limit for Java 11 inside Docker?
Bitnami puts the systems under it's control into a non-standard location. They can be found under/opt/bitnami. I'd recommend checking out theirDocumenation on the configuration of Apache.Common differences:Configuration is stored in/opt/bitnami/apps/myapp/conf/Base folders like/var/wwware application specific like/opt/...
I am trying follow the guide here:http://www.servermom.org/how-to-add-new-site-into-your-apache-based-ubuntu-server/to host a few PHP files on the web. Everything works until the second to last step: the command in the title. The console message I get is below:bitnami@ip-*not important*:~$ sudo service apache2 restart ...
Amazon Lightsail: Bitnami LAMP server website hosting: sudo service apache2 restart
add this config toapplicaton.propertiesuse ip address:spring.cloud.consul.discovery.prefer-ip-address= true
I want to registry my java spring boot microservice into consul in kubernetes cluster, first step I add the consul dependencies using gradle:implementation "org.springframework.cloud:spring-cloud-starter-consul-discovery"now I define the consul config like this inapplication.properties:# registry center spring.cloud.co...
how to define the microservice self registry address to consul in kubernetes
As given in thislink, thecreate_namespaced_pod_evictioncall returnsV1Beta1Evictionobject. It hasObjectMetaobject, that contains thedeletion_timestampfield. Perhaps you can use that to determine if the pod is already deleted. Or probably polling the pod status might give the same ObjectMeta.
Using the python client, I've written a function to evict all pods on a node. How can i monitor/watch for all pods to be fully evicted?I'm using the create_namespaced_pod_eviction method to evict all pods on a single node. While this works, it doesn't wait for the process to finish before continuing. I need the evictio...
How to watch/verify pod eviction call is complete with python client?
You might want to use AJAX as a method for accomplishing what you want. Are you familiar with AJAX? If you post more details about your specifics and desired outcome, perhaps we can help you further.Reviewthese simple AJAX examples, and seethis video resource.
I'm trying to figure out a way to load a template php file AS a requested url/filename:I have a directory with hundreds of pages, and would like to be able dynamically generate them from a template file rather than have hundreds of files containing the same code. Ideally there would be one php file that loads content f...
.htaccess to open php template file as requested URL
I ran into the same problem getting my application container to talk to my postgres container. I fixed this with three steps:define the network ip address range for the docker network# +----------------------+ # | docker-compose.yml | # +----------------------+ networks: my_docker_network: driver: bridge ip...
I have a Docker image for DB (postgres is installed) and I try to run it but I get the following:db | 2018-11-27 08:29:28.849 UTC [2808] FATAL: no pg_hba.conf entry for host "172.x.x.x", user "postgres", database "postgres", SSL offI tried the following:To change the IP and put my current machine's ipW...
Docker postgres image: no pg_hba.conf entry for host
The answer to this question is alreadyhere. Check out this stack overflow answer, which worked for me.
I have tried multiple file paths in my HTML head to get the CSS to load in GitHub pages but it won't. It loads locally but not on pages.I tried<link rel="stylesheet" type="text/css" href="css/components/style.css"><link rel="stylesheet" type="text/css" href="/css/components/style.css"> <link rel="stylesheet" href="css...
What path do I need to write to get css to work in GitHub pages?
It's currently not possible to have more than one docker tag name by build. Duplicating the build is the only solution.
I'm using Docker Hub's automated build system to build a docker image. That image comes in two flavors (Debian jessie and wheezy based). I like to have speaking tags for both of those (:jessie and :wheezy) but would also like to have a :latest tag pointing to the :jessie flavor. For now I simply duplicated the jessie ...
DockerHub set tag alias in automated build
0 I couldn't find answers for this today so i spent a while messign about with it. And i figured it out. set the CNAME records to all point to your .github.io page link change the custom domains to somethign else and back so it will refresh the certificates. enable https o...
I have a naked domain (sebsartlist.com) hosted on one server (carrd.io), but want to host a subdomain pro.sebsartlist.com on Git hub pages. I have managed to host the subdomain on GitHub pages but can't seems to get it to "Enforce HTTPS". I use cloudflare for DNS settings and used the CNAME method to point pro.sebsart...
How do I enable HTTPS on subdomain hosted on GitHub pages?
1 I'd try using the .sectionname location syntax instead of . = location .section. And if this does not help, defining separate memory regions with MEMORY and making sections go there should definitely stop this behavior. Share Improve this answer ...
this is my problem: I have created a linker script that divides my code in different regions. That's the linker script: OUTPUT_ARCH(arm) SECTIONS { . = 0x400000; .stack1 : { __stack_start1 = . ; } . = 0x800000; .stack2 : { __stack_start2 = . ; } . = 0x19900000; .vectors1 : { *(.resetvector1) } . = 0x1...
No memory fill using a ld linker script
New answer that works in 2022Do not use:git filter-branchThis command might not change the remote repository after pushing. If you clone after using it, you will see that nothing has changed and the repository still has a large size. It seems this command is old now. For example, if you use the steps inhttps://github.c...
I accidentally dropped a DVD-rip into a website project, carelesslygit commit -a -m ..., and, zap, the repository was bloated by 2.2 GB. Next time I made some edits, deleted the video file, and committed everything, but the compressed file was still there in the repository, in history.I know I can start branches from t...
Git not allowing commits, complains a file that doesn't exist is too large [duplicate]
Let's forget everything about git and code for a moment. What prevents a user with access from private material from republishing it anywhere at all? Answer: nothing. If a user can download the material, republishing it in a public forum is trivial. The Digitial Rights Management (DRM) effort has been trying to sto...
I have a doubt the security of private repository protection. How is the scenario: A. I have access to the company’s private repository and I can clone the repository to my private laptop. I can work with repo without problem, then I have the necessary access to work. B. I have another git account, my account. With th...
Git clone private repo and push it like public using another git account
You have no choice but to re-run an analysis if you want your quality gate to be updated.Just as a side note: it looks like you are trying to hack SonarQube features, I would not recommend to go into that way because you will for sure face problems. Instead, I highly encourage you to read"Water Leak Changes the Game fo...
I recently used sonarqube api to create a dynamic quality gate, it increases or decreases the acceptable number for the project, according to the number of lines of code, but I'm having some problems ...It works like this, after the analysis I use the number of lines and calculate the quality gate to increase or lower ...
Updating project status under a change in quality gate
Try this in a markdown cell :<div align="center"><b> Centered Text </b></div>ShareFollowansweredMar 14, 2021 at 20:28user9329768user9329768Add a comment|
I uploaded a jupyter notebook to github. There was a line of text in a cell that I had centered in the jupyter notebook. But on uploading to github, the line appeared with html tags. Here is the code:<p style='text-align:center';> <b> text </b> </p>the line showed up as it is with"<p style='text-align:center';>"on uplo...
Github, Jupyter - Align text at center in jupyter notebook uploaded to github
1 The cd $DIR seems strange; if the first entry found by /home/company_folder/company_applications/* is a directory it will change to that directory; if it is a file (or company_applications is empty) it will get an error. Perhaps everything is running correctly except that...
Name of a script - backup_script.sh Location of a script on server - /home/company_folder/company_site_backups Line added to the cron file: @monthly /home/company_folder/company_site_backups/backup_script.sh #!/bin/bash DIR="/home/company_folder/company_applications/*" BACKUPDIR="/home/company_folder/company_site...
Server shell backup script (bash)
ERROR: type should be string, got "\nhttps://github.com/MyName would be the URL for an account, not a repo. For instance, jQuery (the company) has an account at https://github.com/jquery. If I try to clone from that URL, I get a clone error:\ngit clone https://github.com/jquery\n>>> Cloning into 'jquery'...\n>>> fatal: repository 'https://github.com/jquery' not found\n\nWhich makes sense - that URL isn't of a repository.\nMeanwhile, if I actually clone the project, https://github.com/jquery/jquery, it works:\ngit clone https://github.com/jquery/jquery.git\n>>> Cloning into 'jquery'...\n>>> remote: Counting objects: 36035, done.\n>>> remote: Compressing objects: 100% (91/91), done.\n>>> remote: Total 36035 (delta 60), reused 0 (delta 0), pack-reused 35944\n>>> Receiving objects: 100% (36035/36035), 21.72 MiB | 2.77 MiB/s, done.\n>>> Resolving deltas: 100% (25434/25434), done.\n>>> Checking connectivity... done.\n\nIf you want to clone all the repos under a username, there isn't a native way to do that. However, clone-all or github-clone seem to fit the bill as tools that'll do this for you.\nThe general procedure that you would need to do (by hand or with a tool) would be:\n\nGet a list of URLS containing all repos for an org/user.\nClone each of theme using git clone.\n\n"
I am trying to clone my entire github repo onto a new machine. On the website, the url looks something like this: https://github.com/MyName However, when I do this: git clone https://github.com/MyName C:/Users/MyName/Documents/GitHub/ I get >Cloning into GitHub 'C:/Users/MyName/Documents/GitHub/' >fatal: repository '...
What is the url for a full github repo?
Yeah you can pull the changes from the original repo into your fork. Add a remote to it ( since origin will be your fork ) and pull. This from GitHub help: First up, add a remote to the original repo. Help here: http://help.github.com/remotes/ Then you can pull in updates to the original repo. Quote from http://help....
A few weeks ago i forked a public project on GitHub. Today, I wish to try some stuff on it BUT i want to make sure the copy I use is the most recent. Can I update my fork, first? And what happens if there's changes to the fork AFTER i've started my changes. Can i update my fork again, while leaving my changes in ther...
Can I update a forked project, on git, to the original/master copy?
You could just copy the CouchDB database file. Read more about thishere.
We're looking to create regular backups of a couchdb database, to ship offsite. What's the least intrusive way to obtain these - ideally without interrupting or significantly slowing down performance on the existing database server?
What's the least intrusive method for creating a backup of a couchdb database?
I useccze. as @aimless said,grcis the great utility also. It easy to install bysudo apt install cczefor debian/ubuntu-like OSBut if you want to colorize stderr, you need to redirect stderr output to stdout. For example:docker logs -f my-app 2>&1 | ccze -m ansiarg-m ansihelps if you want to scroll output normallyUPD: cc...
I have container which in logs sometimes write key word which is for me important, and I want to highlight this word in color in my terminal, but also important is still see all content logs in real time (--follow). I just tried commanddocker logs -f my_app --tail=100 | grep --color -E '^myWord'but not working.So exist...
How to colorize logs for docker container
This isworking for me, edit it to your requirements</VirtualHost> <Directory /var/www/html/example.com/public_html> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FIL...
I'm having this error, and i can't solve it. I typetail -f /usr/local/apache/logs/error_logon cpanel terminal and I receive the following error:[authz_core:error] [pid 10250]here's my .htaccess code:<IfModule authz_core_module> Require all granted </IfModule> <IfModule !authz_core_module> Require all denied </I...
AH01630: client denied by server configuration .htaccess
select tasks.time , tasks.c , (@cumSum := @cumSum + tasks.c) as cumSum FROM (SELECT @cumSum := 0) params JOIN ( SELECT $__timeGroupAlias(modified,'1M') , count(name) as c FROM tabTask WHERE modified > now() - INTERVAL 1 YEAR AND status NOT LIKE '%completed%' group by time order by time) as tasks
This is the query, it works -- no errors. But it retrieves idetnical values as if the cumSum value is always reset to zero!Tried OVER(PARTITION ...) but it gives sytax error! Replacing COUNT() with Value also gives syntax error.Any tips?SELECT COUNT(*) as Value, $__timeGroupAlias(modified,'1M'), (@cumSum := @cumSum + C...
Grafana + MySql: Calculate Cum Sum over COUNT(*) -- Not Working
0 Docker creates an image for each command in dockerfile, it creates image layers and stores it in the cache, So whenever your dockerfile execution is interrupted the image remains in the cache. Hence you see the memory consumption. Try the following command which will remo...
I am trying to create a docker image from Dockerfile on Windows 10. Being new to it, it crashed multiple times due to one or more syntax errors in the Dockerfile. I tried to clear all the images by using docker system prune --all. I got some disk space cleared up (If I am right, the system here means HDD rather than R...
Docker uses memory without any image
You can just block all.txtfiles using:RewriteEngine on RewriteRule \.txt$ - [F,NC] RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !\.(css|js|jpg|jpeg|JPG|gif|png|PNG|ico|pdf|swf|xml|pem)$ [NC] RewriteRule ^(.*)$ index.php?url=$1 [...
I have custom MVC framework and my .htaccess file rewrites rules to send all requests via index.php which then routes the requests.RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !\.(css|js|jpg|jpeg|JPG|gif|png|PNG|i...
Dont allow access to txt files in root via .htaccess
Outside of doinggroup byInfluxDB will alway merge the data for each series queried.
I have a measurement with a tag of host. For grafana, I would like to return several series to grafana so I can plot a line for each host. If I do mean(value), influxdb merges all of host's series into one.I used to have several measurements, one for each host, and it worked with a wildcard. I would like the option o...
Is there a way to get influxdb (0.12) to not merge series?
As long as the connection is established by the client, the server can push messages (in the end, the websocket is a TCP connection).The only problem you might have is if the client cannot connect using websockets due to some proxy/firewall, in which case you can try secured websockets (wss). These are usually let thro...
I'm wondering whether my server can access the devices behind firewall using web sockets, once the connection is established by that device (as the server is accessible by that devices)?I've readthis answer, that has mentioned this same scenario, but from the answer it's not clear that whether the server can access the...
Can websocket access devices behind firewall/router once connection is setup?
so as David Maze suggested and as it's been discussedin this answerandthis issueit's best that we don't change the default registry. I ended up using a parameter inside my helm chart'svalues.yamlfile. just an example of how it could be done :#values.yaml docker_registry: my.local.registry/ image_name: my_image_nameand ...
according to docs forpullingfrom andpushingto a local registry, you have to tag an image like this :docker image tag rhel-httpd:latest registry-host:5000/myadmin/rhel-httpd:latest docker image push registry-host:5000/myadmin/rhel-httpd:latestright now I have a lot of deployments and helm charts in my on-prem k8s cluste...
local docker registry without tagging for push/pull
maybe this helps: Docker: "no matching manifest for windows/amd64 in the manifest list entries" Most likely you are running in Windows Container Mode and must switch to Linux Container Mode. Just right click on the Docker Tray Icon in the Taskbar and open the Docker Menu. There should be an entry to do this. (Just as ...
I have the Dockerfile FROM node:latest RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY . . RUN npm install EXPOSE 3000 CMD [ "node", "server.js" ] When I try to build I get this error $ docker build . Sending build context to Docker daemon 2.228MB Step 1/7 : FROM node:latest latest: Pulling from library/node no ...
How do I build a node container with Docker on Windows?
update I copy the file from my old device and upload it to GitHub here. I encounter the same problem. I solved it by this: Download lsof-arm7-iOS4.2. Backup the old lsof to lsof-backup. Copy the downloaded the lsof-arm7-iOS4.2 to iDevice. Rename the lsof-arm7-iOS4.2 to lsof Then chmod +x lsof Reference: http://modm...
My intent is to check for TCP and UDP being opened by a specific process. lsof -p $1 | grep -E "TCP|UDP" (this works well on Mac OS) I installed lsof binary on a jailbroken iPad, from cydia. When i execute lsof on iOS device (terminal), it just gives me errors saying: information error: Cannot allocate memory I tried...
lsof gives "information error: Cannot allocate memory" in iOS
I guess what you want to achive is done like this.List<Response> responses = new ArrayList<>(); Pipeline p = jedis.pipelined(); for (int id: ids) { responses .add(p.get(id)); } p.sync(); for(Reponse response : responses){ Object o = response.get(); }
I have a list of ids that I want to use to retrieve hashes from a Redis server using the java client jedis. As mentioned in the documentation, Jedis provides a way to use the pipeline by declaring Response objects and then sync the pipeline to get values:Pipeline p = jedis.pipelined(); p.set("fool", "bar"); p.zadd("fo...
Getting values with jedis pipeline
Machine code is rarely fully position-independent. If you have some code that's been compiled to work when located at address 0x10000 (logical/virtual) and you move it to address 0x70000 (logical/virtual), it won't work at the new location. Page tables can't help with this. What can is code/data addressing modes relat...
In "Operating Systems Concepts" book of Silberchatz , it says "Shared code must appear in same location in the logical address space of all processes" , Why does it have to appear in same location ? I thought that for each process we have a separate Page table , which makes it possible to have share code address in ...
Shared code logical address in process address space
So my friend figured it out. When I type "echo $PATH", I get this:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesI added "echo $PATH" to the crontab and the result was:/usr/bin:/binSo the paths are not the same. So I had to use/usr/local/bin/dbb create_dirinstead ofdbb create_dir
I have a really simple code with docopt which creates a directory. The program works perfectly like this:dbb create_dirI need to run this using crontab in ubuntu 12.04. I usedcrontab -eand added this line:0 14 * * * dbb create_dirwhich should run the code on 2pm every day. My problem is this doesn't work. I checked0 14...
Cronjob with docopt
The method[UIImage imageNamed:@""]caches the image. The UIImageView doesn't. I had a problem in an app with a lot of images that was crashing due to low memory. To fix if I changed to[UIImage imageWithContentsOfFile:@""]that does not caches the image.To pre-cache the image you can simply call[UIImage imageNamed:@""]for...
Probably I'm gonna ask the same question which was asked by other person (But it has no responses):Speed up first UIImageView animation (force cache the images)But, My short question is:I have 60 images in resources, in timeinterval loop I'm gonna animate that images, each time setting toUIImageView.imagethen'thimage f...
Does UIImageView cache images?
It's safe to ignore, or you can safely delete the xcuserdata directories. It basically contains personal settings like breakpoints, user interface layout, open files, automatic snapshots configuration and so on。
Is it safe to add xcuserdata to gitignore file if you are working in team? It creates a lot of problem while pulling the other developer's branch.
Is it safe to ignore xcuserdata?
+50This isn't a kubernetes process. This is a result of installing docker and how it configures itself toenableyou to run kubernetes locally. The string "kubernetes" is coming from yourhostsfile even though you might not have turned on the feature to use k8s.If you openC:\Windows\System32\drivers\etc\hosts, you'll see ...
I have no clue how it got installed and why it got installed. I do have docker installed but i don't have Kubernetes installed via docker. I was assuming it was due to killer intelligence but i got no idea how to verify or check that.
I have a lot of Kubernetes processes installed when i haven't installed it (what do i do and how do i delete it)
10 instead of docker exec -it [containerid] /bin/sh try to use docker exec -it [containerid] //bin//sh Share Improve this answer Follow answered Mar 30, 2021 at 7:52 nish8690nish8690 111...
I'm having trouble with running `docker `exec -t sandbox /bin/sh -c 'echo "127.0.0.1 sandbox" >> /etc/hosts' in windows docker. I keep getting the following error: "The system cannot find the path specified" Does anyone know why I am getting the error?
Docker exec in docker windows
11 This might be caused by the ambiguous server name indeed. Try using the following: server { server_name example.com www.example.com; listen 80; listen 443 ssl; # Listen for SSL at port 443 as well # ... other config - certificates and such # If a u...
Type: https://example.com => ssl ok But type: www.example.com and example.com is http no redirect https. (www redirect to non-www). WordPress Address (URL) and Site Address (URL): https//example.com /etc/nginx/conf.d/example.com.conf server { listen 80; server_name example.com www.example.com; return 301 https://$ser...
Redirect HTTP to HTTPS from Nginx is not working
0 call these two method in your app it will delete all cache of images from android data and ur app will not crashed from memory issue //this is for clear cache folder in android -> data folder which generate by gallry lazy loading public static void trimCache(C...
I am beginner to Android development. There are several screens in my app and I can navigate back and forth between these screen using "backstack" feature. As I traverse through the app in depth, the memory usage of app is increasing. Sometimes it reaches up to 100 MB..!! It causes app to restart. As I understand, bel...
Android, memory overuse issue
These rewrite rules made the scripts work:rewrite ^/foo/([^?]*)(?:\?(.*))? /bar/index.php?title=$1&$2; rewrite ^/foo /bar/index.php;
I'm looking to convert the followingmod_rewriterule to theNginx equivalent:RewriteRule ^foo/(.*)$ /bar/index.php?title=$1 [PT,L,QSA] RewriteRule ^foo/*$ /bar/index.php [L,QSA]So far I have:rewrite ^foo/(.*)$ /bar/index.php?title=$1&$query_string last; rewrite ^foo/?$ /bar/index.php?$query_string break;The problem is (I...
How do I convert mod_rewrite (QSA option) to Nginx equivalent?
I guess you have some old data indbdatafolder and they are causing a problem. If you don't need old DB, then just delete the content of this folder and start mysql container from the scratch. Another problem is a port. You are publishing MySQL on the port 33061, so Laravel should be configured withDB_PORT=33061.
So I’m having troubles getting my Laravel app to connect to my MySQL container. With the following docker-compose I get the error:Connection refused (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations)database: image: mysql:5.7 volumes: - dbdata:/var/lib/...
Docker mysql connection fail with laravel
1 Did you try to clear your browser cache? And may you need to wait some time while your project was updated by GitHub Share Follow answered Mar 20, 2021 at 10:36 fmanfman 2111 bronze badge ...
Trying to upload a complete new project to github pages. When I completely deleted the old code, and uploaded my new dist folder to the repository, I still see my old page. I visited https://<name>.github.io/index.html, and back to https://<name>.github.io/ I deleted the repo, created a new one with the same name. Upl...
github pages showing old project in new repo
16 Go is garbage collected language. You do not have to deallocate memory. Articles on memory allocation and deallocation in Go. Garbage collection Heap and stack allocation Discussion on allocation optimization Variable allocation Share Improve this answer ...
I have a structure: type xyz struct { x int y string } func f(){ x := new(xyz) //allocating memory } But I cannot find any method to deallocate it in go. Is it not needed to deallocate it in golang? Is there any useful document for how memory allocation/deallocation happens in go?
How to deallocate memory in go?
Yes, very yes. Eviction takes time. If the kernel has no memory, oomkiller activates immediately. Also if you set aresources.limits.memorythen if you exceed that you get an OOM.ShareFollowansweredApr 16, 2020 at 2:20coderangercoderanger53.1k44 gold badges5454 silver badges7777 bronze badgesAdd a comment|
I know that k8s has default Hard Eviction Threshold memory.available<100Mi. So k8s should evict pods if thresholds exceed. In these conditions can pod provoke SYSTEM OOM? When I talk about SYSTEM OOM I mean such situation when Linux starts to kill processes randomly (or not almost randomly, doesn't matter). Lets suppos...
Can pod provoke SYSTEM OOM before k8s kill it?
RFC 7234is a good reference for the precise meaning of the headers.no-cache and no-store mean different things and cannot be obeyed at the same time for example.They absolutely can. The directives are redundant, but not contradictory.no-cache:indicates that a cache MUST NOT use a stored response to satisfy the request ...
I've read about single cache-control header value. To test what I learned, I opened facebook and inspect. This is the Cache-Control response header I get:cache-control:private, no-cache, no-store, must-revalidateI am confused what this header actually tells, because it contains 4 values at once. So what happens with th...
meaning of multiple values in cache-control header
I usethis.htaccessconfig and it works fine for me. You need only one.htaccessfile in your site root directory, and set frontend / backend configuration as described. Maybe this will work for you too.ShareFolloweditedJul 5, 2015 at 13:30arogachev33.3k77 gold badges117117 silver badges118118 bronze badgesansweredJul 5, 2...
I managed to hidefrontend/webandbackend/web/using .htaccess file. But the urlManager unable to understand that. I'm trying to create url likesite/indexand it should be something like this:example.com/site/indexbut it createsexample.com/frontend/web/site/index.How do I solve this problem withUrlManager?Update: .htaccess...
Yii2: Hiding frontend/web and backend/web from UrlManger
Themalloclisted in thecallgrindoutput will be the implementation ofmallocprovided by the glibc function__libc_mallocin the fileglibc/malloc/malloc.c.This function calls another function, intended for internal use only, named_int_malloc, which does most of the hard work.As writing standard libraries is very difficult, t...
I am amazed that I can't find any document stating the difference between_int_mallocandmallocin the output of Valgrind'scallgrindtool.Could anybody explain what's their difference?Furthermore, I actually write C++ code, so I am using exclusivelynewnotmalloc, but in the callgrind output only mallocs are showing up.
What's the difference between _int_malloc and malloc (in Valgrind)
First things first: Is there a way this can be achieved by moving/copying the folders and creating a repo on the fly? No. git is not cvs. The structure of git fundamentally doesn't support what you're asking for. Commits - the objects that trace out the history - are made up of snapshots of the entire project. N...
I have a huge git repo which has multiple active feature branches and contains many folders inside it.Below is a structure of my Git. BigRepo/ .git F1 F2 F3 I want to split each of the above folders F1/F2/F3 as a separate individual git repos and retain all the live branches related to them and his...
How to split a large Git repository into multiple small independent repos without cloning the large repo
In this case you will need to use thewebhook receiver, and implement a daemon that can take in the webhook notifications and convert them to a format that your custom application can handle.ShareFollowansweredOct 24, 2018 at 10:03brian-brazilbrian-brazil32.8k66 gold badges9797 silver badges8888 bronze badgesAdd a comme...
I'm currently trying to setup Prometheus and Alertmanager, the issue I have come to and haven't found solution yet, is that I want alert to be send to our custom application with oauth2 authorization.Is there any way how to build/configure own reciever ?Let's assume that alerts have to be sent to urlhttps://reciever.co...
Prometheus alertmanager custom receiver
Update (on 2022-12-31)As an update from@Marcelo Trylesinski, fromuvicornv 0.19.0, the--debugflag was removed (Ref#1640).No, there is no difference.The commadline run method (uvicorn app.main:app) and executing the app.py using python command (python app.py) are the same. Both methods are calling theuvicorn.main.run(......
I am running a fast api and when i was developing i had the following piece of code in my app.py filecode in app.py:import uvicorn if __name__=="__main__": uvicorn.run("app.app:app",host='0.0.0.0', port=4557, reload=True, debug=True, workers=3)so i was about to runCMD ["python3","app.py"]in my Dockerfile.on the f...
is there a difference between running fastapi from uvicorn command in dockerfile and from pythonfile?
56 Auth.currentSession().then(res=>{ let accessToken = res.getAccessToken() let jwt = accessToken.getJwtToken() //You can print them to see the full objects console.log(`myAccessToken: ${JSON.stringify(accessToken)}`) console.log(`myJwt: ${jwt}`) }) ...
I'm trying to figure out how to access the accessToken, refreshToken, and idToken that I receive back from aws-amplify using the Auth library. example in docs: https://aws.github.io/aws-amplify/media/authentication_guide.html example of my usage: const user = await Auth.signIn(email, password); user has a bunch of pr...
aws-amplify Authentication...how to access tokens on successful Auth.signIn?
One factor is that if you need to go through the same results over and over, be sure to cache them in memory. This becomes an issue when you're using linq-to-sql or Entity Framework—ORMs that support deferred execution.So if you have anIQueryable<SomeType>that you need to go through multiple times, make sure you mater...
We're working on an online system right now, and I'm confused about when to use in-memory search and when to use database search. Can someone please help me figure out the factors to be considered when it comes to searching records?
which is better... in-memory search or database access?
I am able to resolve the issue byyarn config set "strict-ssl" false -gornpm config set "strict-ssl" false -gSetting the strict-ssl to false resolved my issue.ShareFolloweditedMar 6, 2021 at 14:06jonrsharpe118k2727 gold badges247247 silver badges446446 bronze badgesansweredMar 6, 2021 at 12:01SURYANARAYAN RATHSURYANARAY...
I tried reinstalling yarn, npm,Triednpm cache cleanandyarn cache clean.Still facing the same problem whilenpx create-react-app my-appInstalling packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template... yarn add v1.22.4 [1/4] Resolving packages... error An unexpe...
Getting following error while performing npx create-react-app
Make use of theAWS Instance Metadata endpointin your userdata script to get each instance's IP address and put it into a config file. Here is a Powershell example of a userdata script:<powershell> $HostIp = (Invoke-RestMethod -URI 'http://169.254.169.254/latest/meta-data/local-ipv4' -UseBasicParsing) Add-Content "C:\in...
I am trying to spin 2ec2instances usingterraform. Something like thisresource "aws_instance" "example" { count = "${var.number_of_instances}" ami = "${var.ami_name}" associate_public_ip_address = "${var.associate_public_ip_address}" instance_type = "${...
generate user_data including "IP Address" while creating ec2 instance using terraform
25 Well, in my case, when I checked my app, it hadn't the /tmp folder. Then I created the structure (/tmp/cache/models, /tmp/cache/persistent) and all worked well. This happened to me maybe git ignore empty folders, so they weren't created. Share Improve this answ...
I'm using CakePHP 2.0 RC-1. After checking out the project from SVN, the application is starting to complain that it can't write cache files to the tmp/cache directory. Since this is local, I know the directory is writeable and I can CLEARLY see that the directories are even filled with files, so the error is a bit st...
CakePHP 2.0 - Cake was unable to write to File cache
This is flag specific for azure.Here is a quote from kubernetes CHANGELOG page:Added a config-mode flag in azure auth module to enable getting AAD token without spn: prefix in audience claim.When it's not specified, the default behavior doesn't change.(#87630, @weinong) [SIG API Machinery, Auth, CLI and Cloud Provider]...
I see there is a field "config-mode" in Kubernetes configuration file (kubeconfig).users: - name: myuser user: auth-provider: config: access-token: xxxxx apiserver-id: xxxxx client-id: xxxxx config-mode: "1" environment: PublicCloud expires-in: "xxxx" ...
what is config-mode in kubeconfig file?
2 After hours and hours of digging around, I finally fixed the issue. Maybe this is obvious to some people, but hopefully I can help noobs like me by posting my solution. When I first ran my docker, I didn't specify a hostname to use for my container, so it was assigned a r...
I am running a Hadoop Docker container on a Windows 10 machine. I am trying to write a Python program using this library to access my HDFS. I am able to list folder contents with my client configured with "http://localhost:50070" (50070 is the webHDFS port). However, when I try to read the content of a file, I get an ...
HTTP Call to Docker Container redirects IP to Docker ID
Take a look atthis answerDNS could provide information about servce port when you makeDNS SRVrequest. It's not compatible with most of clients so you need to manually. Mesos DNS haswhole section dedicate to SRV recordsBelow is an example from docs:SRV RecordsAn SRV record associates a service name to a hostname and an ...
How client can access a deployed microservicewithoutspecifing the host agent ip-address and the related mapping port.If we add Mesos-DNS as the client resolver, we can only obtain agent ip-addresses but it doesn't return the list of microservices instances and their related ports.Supposed we have three instannces of w...
Accessing microservices deployed on apache mesos agents
Azure function with timer trigger will only run one job at a time. If a job takes longer then next one is delayed. Quoting from Wiki If your function execution takes longer than the timer interval, another execution won't be triggered until after the current invocation completes. The next execution is scheduled ...
I was wondering if anybody knows what happens if you have a Cron setting on an Azure Function to run every 5 minutes if its task takes more than 5 minutes to execute. Does it back up? Or should I implement a locking feature that would prevent something, say in a loop, from handling data already being processed by a pr...
Azure Functions Timer Trigger thread safety
You copied the contents of the .git folder into the /dist directory, not the .git folder itself. If you want to copy the folder, specify the target as the folder you want to create:COPY .git/ ./.git/
We have got a node.js/typescript project and now I am supposed to provide data to our sonarqube analysis.We are using a docker container to run our tests in and after the tests are finished, we are running the sonarqube analysis so we can use the code coverage report from the tests for it.The only problem is, that the ...
Why can't I copy my .git folder into my docker container
Here is what you could do. Create twocronjobs:file_splitter.sh-> splits the file and stores them in a particular directoryfile_processer.sh-> picks up one file at a time from the directory above, does a read loop, and callsdata.sh. Removes the file after successful processing.Schedulefile_splitter.shto run ahead offi...
I have a shell script saydata.sh. For this script to execute I will pass a single argument say Table_1.I have a test file which I will get as a result of a different script.Now in a test file I have more than 1000 arguments to pass to the script.The file looks like below:Table_1 Table_2 Table_3 Table_4 and..so..onNow I...
Distributing payload to multiple cron jobs
Runningkubectl logs -pwill fetch logs from existing resources at API level. This means that terminated pods' logs will be unavailable using this command.As mentioned in other answers, the best way is to have your logs centralized vialogging agents or directly pushing these logs into an external service.Alternatively an...
I am running selenium hubs and my pods are getting terminated frequently. I would like to look at the logs of the pods which are terminated. How to do it?NAME READY STATUS RESTARTS AGE chrome-75-0-0e5d3b3d-3580-49d1-bc25-3296fdb52666 0/2 Terminati...
How to see logs of terminated pods
Is it possible to copy the changes of PR1 to another PR towards repo "B" programattically?In theory, yes:you can add A as a remote for Bgit remote add A /url/to/Ayou can A andits PR branch, assumingPR1was created fromA/masteryou can rebase only commits from that PR onto a new local branchgit checkout -b newPR git rebas...
There is a repository say "A". Now I am creating a new repository by manually moving the code from "A" with some minor modifications and calling it "B". Now, whenever there is a PR from any developers to repo "A" which might be applicable to "B" as well, we need a similar PR to "B". Instead of creating a PR by manually...
How to generate a Pull request to an independent (unforked) repository from another pull request programmatically
There's no way to export a variable from a script to a child image. As a general rule, environment variables travel down, never up to a parent. ENV will persist in the build environment and to child images and containers. Dockerfile FROM busybox ENV PLATFORM_HOME test RUN echo $PLATFORM_HOME Dockerfile.child FROM me...
I've search some of the questions already like docker ENV vs RUN export, which explains differences between those commands, but didn't help in solving my problem. For example I have a script called myscript: #!/bin/bash export PLATFORM_HOME="$(pwd)" And have following lines in Dockerfile: ... COPY myscript.sh / RUN ....
docker run script which exports env variables
If I understand you correctly you have made some changes to the already existing node packagereact-native-push-notificationand you would rather use your own version of it than the original.You have a couple of options:Inpackage.jsonchangereact-native-push-notificationto point to your git repo (e.g. your fork on github)...
I have a node packagereact-native-push-notificationfor which i have made some changes in the packages to fulfil my requirement. But every time i do anpm installthe new (original package without my changes) package overlaps with my current package.Is there any way i can restrictnpm installto ignore my modified package? ...
Ignore a specific package while installing dependencies using 'npm install'
No, the CLR (C# is "just" a CLR language) does not have a permanent generation, see Fundamentals of Garbage Collection. Btw, future versions of the JVM - currently expected at the latest for Java 8 - won't have permgen either (see Oracle discusses Java 7 & 8 new features on video) (basically as a result of "merging" t...
So I've got a pretty standard spring, hibernate, tomcat environment.. yet I'm getting permgens locally and on CI. I know there is a TEMPORARY fix (i.e. increasing the memory assigned to permgen) but this still is only temporary. I'd rather not imagine what a production environment looks like given what I'm seeing. (a...
Does .NET have something like Java's permgen?
Create an htaccess file in yourSHOW-STRdirectory with this:Order Allow,Deny Allow from all
I'm trying to "exclude" a directory (and all it's folder) from the rules in .htaccess file...Not sure if that's possible?The .htaccess file is like this:Order Allow,Deny Deny from all <Files ~ "\.(css|jpe?g|png|ico|gif|js)$"> Allow from all </Files> <Files "show.php"> allow from 127.0.0.1 </files>Now, I want to exclude...
Rule to allow folder in .htaccess file
No need to recreate the pods. When you create a Role/RoleBinding or ClusterRole/ClusterRoleBinding, the entities automatically get these permissions right away.One prove used to be Helm itself. When you fresh install Helm, you get this error from Tiller saying has no access to the cluster to do anything, but then you g...
For example, I change role verbsapiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: provisioning-role rules: - apiGroups: ["apps"] resources: ["deployments"] verbs: ["get", "list", "watch"]and run a Helmupgrade. Should the pods bound to those roles be restarted/replaced? (Those pods may be ...
Do Role/ClusterRole changes require the restart/replacement of the pods that are bound to those roles?
"docker-compose down": stop and remove the container with all the networks (but not volumes), you should add -v option to do that. "docker-compose rm": remove stopped only containers, but not running containers, you should add option -s to be able to remove running containers Now, the diffrence between "docker-compo...
The docs for docker-compose down, docker-compose rm, and docker rm all read very similarly. What's the difference? And when would you use one over the others?
What's the difference between 'down' and 'rm' in docker/docker-compose?
The recommendation here would be to use the thin-client. The .net thin-client does have the data streamer API.There is no straight-forward way to connect a thick-client node from outside Kubernetes to a cluster inside it.
Is there a way to connect C# Thick Client running in the Windows Machine outside of the Kubernetes with Apache Ignite Cluster nodes are present in the Kubernetes.Below specified article says it is not possible but this article was written in 2020. We are looking for Scenario-3 from below articlehttps://dzone.com/articl...
Ignite cluster runs within Kubernetes, but applications are outside of it
You can't assign IAM role to IAM user or group, see the notes from this AWS official doc :- https://aws.amazon.com/iam/faqs/ Q: What are IAM roles and how do they work? AWS Identity and Access Management (IAM) roles provide a way to access AWS by relying on temporary security credentials. Each role has a set of permi...
I know how to create user, group and role in AWS IAM. I can also attach policies to each of them. For example, after selecting a group, you can go to permissions tab, and attach some policies to it. However, I don't know how to attach a role to a user or group. I looked on documentation and forums, but did not find a...
How to assign IAM role to users or groups
If you want to use git submodules, then you need to group by service, not by env and src: my-project/ |__ service-1/ | |__ env/ | |__ src/ | |__ Dockerfile |__ override/ | |__ usecase-1.yml |__ service-2/ | |__ env/ | |__ src/ | |__ Dockerfile |__docker-compose.yml # default .yml, containing service-1 an...
When I see git projects which use Docker, then docker is just added to the git project which contains the source code one application. But what if I want to use docker-compose to orchestrate multiple of my git-projects, because they work together (backend, frontend, ...)? For now, I use the source code from two other ...
Docker project structure with git submodules
Glue can do decompression. But it wouldn't be optimal. As gzip format is not splittable (that mean only one executor will work with it). More info about that here. You can try to decompression by lambda and invoke glue crawler for new folder.
I have a compressed gzip file in an S3 bucket. The files will be uploaded to the S3 bucket daily by the client. The gzip when uncompressed will contain 10 files in CSV format, but with the same schema only. I need to uncompress the gzip file, and using Glue->Data crawler, need to create a schema before running a ETL s...
Decompress a zip file in AWS Glue
I faced the same problem withper-viewcaching. User info of the first cached user shows for all users. And I can't useTemplate cachingas it is slow.Best approach is to cache the final result of the view usinglow-level cache API. If the data is dynamic then usedjango-signalsto clear the stale cached data. Tweak the below...
I trying to use Django Cache to make better my views. Works great, 400ms to 8ms is perfect. But when user access page for the first time, Django cache page with user info in header and when I try log out, page continue with user info.I try use cache in template too, but isn't good, my problem come from view, so continu...
How use Django Cache in view without cache all page
That commit is not reachable from any branch or tag. For that reason, when you clone the repo from GitHub (which Bundler does under the hood), your local copy will not have that commit.Thus, you can't use it.On GitHub, you can see that this commit is not reachable as it doesn't list any branch or tag that contains it:C...
I have really simpleGemfile:source 'https://rubygems.org' ...
Installing a gem using a commit's hash
I have resolved the issue got help from this URL.[http://billpatrianakos.me/blog/2014/04/04/installing-comodo-positive-ssl-certs-on-apache-and-openssl/][1]
I have deployed COMODO SSL on Apached CentOS but does not work on Android Older Versions.I think I am missing something. I configured as below.SSLCertificateFile /etc/pki/tls/certs/my_domain_com.crt SSLCertificateKeyFile /etc/pki/tls/private/my_domain_com.key SSLCertificateChainFile /etc/pki/tls/certs/COMODORSADomainVa...
COMODO SSL Certificate on apache CentOS