Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
There is no memory that needs to be released, PtrToStringChars() returns an interior pointer that directly points at the System::String buffer. The garbage collector knows how to find it back and update it when the buffer is moved. You do indeed need to pin that pointer so the GC cannot move the buffer while the NewS...
I'm using PtrToStringChars method to get a pointer to character array held by a managed string. I'm then converting that character array to jstring and returning it to the calling function. Before doing this, how do I free up the memory occupied by the character array? This is my code. System::String *result=L"Checkin...
PtrToStringChars, how to free memory?
25 As stated in the documentation: Content-Type Must always be 'application/x-www-form-urlencoded'. Source: https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html Share Improve this answer Follow ...
I'm using AWS Cognito UI for login using authorization code grant flow and successfully getting the authorization code. But getting an 405 method not allowed error when post request is made to oauth2/token endpoint via postman The app client is setup in Cognito User Pool with app secret passing appclientid:appclientse...
405 method not allowed error in AWS Cognito oauth2/token endpoint
Take a look at your branch's git log and try to find anything out of the ordinary. One comment mentioned using git log, but you can also use git log --graph --oneline to get a visual representation of your branch's commit history. If your branch was rebased correctly, you would see something along the lines of: * 5ecc...
So I started with a pull request that was a few commits ahead of develop, let's call this branch feature. feature had 1 merge conflict with develop. So I decided to rebase it and resolve the conflict. git checkout develop git pull git checkout feature git pull git rebase develop Merge conflict fixed - New commit adde...
Why does a pull request show extra commits after a rebase?
Have you checked that the file is executable?Have you added a line like:touch /tmp/proof_that_i_am_runningto the top of the script to check whether it's starting, and just dropping out for some other reason, like an incomplete environment setup?Have you received mail fromcroncontaining the output/error?Have you checked...
I want to create a cron task in my debian system.I do thissudo crontab -eand add a line10 17 * * * /home/userdir/cron/meiwei-slide-shoot.shAnd I do this at 17:00 and hope the script run at 17:10. But it doesnt work.I have tried the script. It works well. But why not it run by cron?
Why not the cron run?
You need to use:nginx -g "daemon off;", with the option quoted.
I'm currently trying to execute a bash script inside my Nginx container and then keeping it alive of course.So, my idea was to do what I need to in the bash script and as the last command, the command found with adocker-compose ps. But the container keeps shutting down. Here is a summary of what I currently haveThe Doc...
Keep an Nginx alive after a bash script
If your host is telling you that there have been too many connection then it will most likely mean 1 of the following 3:You site has reached the maximum monthly bandwidth allowanceYour site has too much traffic for your current host and might need to be moved to a VPS server or something more powerfulYou host is plain ...
I have a Joomla 1.5.26 site which I have had since Aug 2012. It has been in a stable condition since Aug, with no changes to components etc. It is firewalled with RS Firewall and all the other security precautions have been taken.During the past few weeks the site has started to be blocked by the hosting company that h...
Joomla 1.5 site keeps getting blocked by host
Use Nodeport:apiVersion: v1 kind: Service metadata: name: my-frontend-service spec: selector: app: MyApp type: NodePort ports: - protocol: TCP port: 8000 targetPort: 4200 nodePort: 30001then you can access the service on nodeport 30001 on any node of the cluster.For example the machine name ...
My objective: To expose a pod's(running angular image)portso that I canaccess it from the host machine's browser.service.yml:apiVersion: v1 kind: Service metadata: name: my-frontend-service spec: selector: app: MyApp ports: - protocol: TCP port: 8000 targetPort: 4200Pod's yml:apiVersion: v1 kind: ...
cannot expose port using kubernetes service
Clone repository is probably not working because there is nothing to clone. The github repository is empty. As in, not even a single commit.HEAD refers to the last commit. It means that it cannot clone it because there isn't any commit in the master branch.You can simplyinitializea new repository on your local machine....
I'm new in the forum and also new in git, github and all the other git-things. Another person and I are using for our degree project git and github, but as I'm not a good friend of the terminal it's really driving me crazy.Let me tell you what I've done until now:Mac OS X Lion 10.7.4Eclipse Indigo with EGit plugin ins...
Don't know how to configure git repository - Git, GitHub, GitBox, EGit, Eclipse Indigo and many other problems
Yes, you can import existing models to SageMaker.For scikit-learn, you would use the SKLearnModel() object to load to model from S3 and create it in SageMaker. Then, you could deploy it as usual.https://sagemaker.readthedocs.io/en/latest/sagemaker.sklearn.htmlHere's a full example based on MXNet that will point you in ...
I'm trying to avoid migrating an existing model training process to SageMaker and avoid creating a custom Docker container to host our trained model.My hope was to inject our existing, trained model into the pre-built scikit learn container that AWS provides via thesagemaker-python-sdk. All of the examples that I have ...
With AWS SageMaker, is it possible to deploy a pre-trained model using the sagemaker SDK?
Strictly speaking, mem=256M is a kernel parameter, not an environment variable. This parameter only tells the kernel to use so much memory, but it does not make the system completely blind to the physical chip installed in the machine. It can be used to simulate a system with less physical memory than is actually avail...
I've inherited supporting some linux kernel drivers (in which my experience is very limited). My question is as follows. It's an embedded environment and the hardware has 512MB of physical memory. However, the boot parameters that are passed to the kernel limits the memory to 256MB by using the variable linuxMem=mem=...
Limiting how much physical memory the kernel can manage with the "mem" environment variable
There could be one of many things wrong here. But essentially your ingress cannot get to your backend.If your backend up and running?Check backend pods are "Running"kubectl get podsCheck backend deployment has all replicas upkubectl get deployConnect to the app pod and run a localhost:80 requestkubectl exec -it <pod-na...
Getting error msg when I trying to access with public IP:"{"message":"failure to get a peer from the ring-balancer"}"Looks like Kong is unable to the upstream services.I am using voting appingress.yamlapiVersion: extensions/v1beta1 kind: Ingress metadata: name: telehealth-ingress namespace: kong annotations: ...
Error {"message":"failure to get a peer from the ring-balancer"} using kong ingress
0 According to this discussion you can disable CSP headers for ngws-worker.js file. Any non safe content can't pass webpage to reach worker. Share Improve this answer Follow answered Jul 3, 2019 ...
I'm using Angular 7 with the famous ngws-worker.js. I deployed a new release of my project, and see after refresh an error due to a CSP too restrictive. I update it on my server (nginx), but I cannot update the result on client side... If I disabled the service worker, all is OK, new headers are received. But it seems...
Angular service worker refresh on server headers update
Status: 'Enabled'Status should be string value as stated in thedocumentationHere is a working example of LifecycleConfiguration:LifecycleConfiguration: Rules: - Id: DeleteContentAfter1Day Status: 'Enabled' ExpirationInDays: 1ShareFolloweditedJun 2, 2019 at 11:03BDL21.6k2626 gold badges5353 sil...
I'm trying to set a Life cycle configuration for my S3 buckets to expire after 90 days. However, I'm getting an error saying "Property Status cannot be empty" when pushing my CFT stack.I tried setting a lifestyle config, and putting the expiration in days onto that, but it seems to be failing.AWSTemplateFormatVersion: ...
Setting Lifecycle configuration for S3 Buckets in YAML file
To create the mirror:git clone --mirror git://github.com/user/project.gitTo update:cd project.git git remote updateTo update without changing the current directory:git --git-dir project.git remote update
What is the best way to create a local backup of a git repository hosted on GitHub, given the following requirements?:The local backup should be a bare repo.The backup should include all branches.It should be easy to (incrementally) update the backup.Basically, I want a perfect mirror, with the possibility to update ea...
Backup a GitHub repository
You could be like to use the location directive on the each part of url: t/m/l. location ( ~ ^/t/ ) { set $w 182; set $h 114; root /; image_filter crop $w $h; }
I store static on S3 and use nginx as front-end. For fetch from S3 I use this construction: location / { try_files $uri @s3; } location @s3 { root /var/www/static.dev; proxy_pass https://bucket.s3-eu-west-1.amazonaws.com; proxy_store off; # for test purposes proxy_store_access all:rw; proxy_te...
Nginx image_filter
When it is merged into master, you can safely delete it.ShareFollowansweredFeb 15, 2013 at 21:25KingCrunchKingCrunch130k2121 gold badges152152 silver badges173173 bronze badgesAdd a comment|
I created a branch"newbranch"from the master, and then pushed back to the origin. I then created a pull request which was accepted and merged into master.At this point should I delete"newbranch"from my local and re pull from master to begin working on something new?What is the proper flow, after a branch has been acce...
Changing branches and delete branch in Git after successful pull request
The code that you are using in your onDestroy method is not needed there. If destroy is called your acitivity will be removed from the stack and is free for gc anyway with all the resources in it that are only referenced by the activity. OnDestroy doesn't always get called that's why your method may not be called at a...
I have an activity that uses recyclerView and for each item's view there is an Image. I have used Garbage Collector GC() on Destroy as follows recyclerView= null; adapter=null; Runtime.getRuntime().gc(); But the following thing happens while releasing memory And When I start anoth...
How to release all memory allocated by an activity?
You can’t use Amazons ACM certificates on EC2 instances. You‘ll have to provide your own certificate. e.g. a wildcard certificate which is valid for *.example.com. Then you assign subdomains to your instances in Route53 and save those in your Redis database.I don‘t recommend to use custom machine images which will caus...
How can you setup HTTPS for each individual EC2 instance in an Auto Scaling group?Usually a load balancer in front of the group would handle this by holding an SSL/TLS certificate, but in my architecture there is no load balancer; instead clients query a directory service which provides them the IP address of an instan...
HTTPS for each EC2 instance in an Auto Scaling group
Don't worry about it. This process is an implementation detail of QuickTime X and so it's not your responsibility to clean it up. Your code is correct. QuickTime assumes that you will need the services of this process again and keeps it around. It's probably much less expensive to keep this process around doing nothin...
I have a simple block of code in which I read a movie's size to get the width. BOOL isHD; if ([[NSFileManager defaultManager] fileExistsAtPath: filePath]) { QTMovie *movie = [QTMovie movieWithFile: filePath error: nil]; NSValue *movieSize = [movie attributeForKey:QTMovieNaturalSizeAttribute]; int width = [...
QTKitServer remaining in Activity Monitor
Kibana provides visualization capabilities on top of the content indexed on an Elasticsearch cluster. Users can create bar, line and scatter plots, or pie charts and maps on top of large volumes of data.To push log data into Elasticsearch, mostly people uses logstash/fluentd(log/data collectors)Checkout below links for...
I have a testing Kubernetes cluster and I created elasticsearch on AWS which include Kibana for the log management.Endpoint:https://search-this-is-my-es-wuktx5la4txs7avvo6ypuuyri.ca-central-1.es.amazonaws.comAs far as I googled, I have to send logs from fluentd. Then I tried to implement DaemonSet using thisarticle. No...
Send Kubernetes cluster logs to AWS Elasticsearch
1 Note that your simple addition using the "VSS" is counting alot of memory pages multiple times. When shared libraries are loaded into a process, the memory for those libraries is not duplicated across every process - if 10 processes load the same library only 1 copy of th...
I've got a very strange problem on our servers: the total used memory is way more than the sum of the used memory of all processes. And 'way more' is 28 gigabytes! The server has 128Gb memory. It works as a KVM virtualization host. There are several qemu processes with the sum of memory allocations (-m switch) of 1167...
Unexplainable +28Gb memory overuse in linux
I would like to thank @Florian Schlag for helping me reach the answer and giving me the correct answer. I have pasted my file below for reference. Please note that I had to change some files around but these can be deduced from output npm errors.#!/bin/bash PATH=$PATH:/home/<user>/bin/ NPM="`which npm`" if [ "x" == "x...
I have a cron job that runs a shell script every minute. However I keep getting/usr/bin/env: node: No such file or directory restarting nohup: failed to run command ‘npm’: No such file or directoryas an output.I have tried installing pm2 globally but this doesnt work.This is my Shell file:#!/bin/bash PATH=$PATH: /home/...
Shell node: No such file or directory
I suppose you enabled a git credential helper and stored the credentials. You have to delete them manually using the windows credential manager, see https://stackoverflow.com/a/31782500/3906760. After that you will be asked again and can use a different account.
I am going to change GitHub account on TortoiseGit because the current account doesn't have the permission to push. error:[remote:Permission to (repository) denied to (GitHub account)] Can any methods change the GitHub account on TortoiseGit?
How to change GitHub account on TortoiseGit
This is probably a real bug in Google Chrome. I createdhttp://crbug.com/65570to track it, but please add any additional information you can think of to the bug so we're sure we understand your problem correctly.It sounds as though the only work-around besides closing Chrome is unplugging the network cable and then plu...
Chrome caches DNS records and tends to ignore changes to the hosts file after it has successfully connected to my site (barring a restart). With DNS pre-fetching enabled, it is even more pronounced.Are there any page headers that will instruct Chrome not to cache a site's DNS? LikeCache-Controlor a response status like...
Prevent Chrome from caching a site's DNS records
From your question I guess you have edited youURL Rewritelike thisRequest Path: blog.html Target Path: blogPlease follow thistutorialto create a new customURL RewritewithRequest Path: blog Target Path: catalog/category/view/id/{blog category id}And keep original URL Rewrite of Blog category as it is. Then since our cu...
I have a blog MODULE installed on my Magento and it's URL is /blog.I have a Blog CATEGORY in the nav bar with the URL /blog-away.htmlI tried the URL Custom Rewrite and it works, until you re-index the site, then it reverts back to the category URL of /blog-away.html. I want the category to stay redirected to /blog.Obse...
Magento custom URL Rewrite always matches category page after re-index
2 This will work. version: 0.0 os: linux files: - source: / destination: /var/www/html/ file_exists_behavior: OVERWRITE Share Follow answered Aug 24, 2021 at 8:42 Ravi Kumar CHRavi K...
I tried it for 2 cases Using github as repository Fresh deployment using codepipeline to desired location multiple time : files are overwritten automatically in this case by code deploy agent. When files are manually created at install location(/var/www/html) then codedeploy throws error "The deployment failed becau...
AWS code deploy fails with error : specified file already exists at this
Docker doesnotuse LXC (notsince Docker 0.9) but libcontainer (nowrunc), a built-in execution driver which manipulates namespaces, control groups, capabilities, apparmor profiles, network interfaces and firewalling rules – all in a consistent and predictable way, and without depending on LXC or any other userland packag...
As I understand, a Docker image (and consequently, a container) can be instantiated from different Linux distributions, such as Ubuntu, CentOS and others.Let's say my Docker host is running standard Ubuntu 14.04.What happens if I use container that is not based on the same Linux distribution?Not 14.04?Not Ubuntu (or an...
How happens when Linux distributions are different between the docker host and the docker image?
Let's take an example URI/abc:Your first regex:^([^/]+)/?$Matches/abcand rewrites it to:/index.php?ToDo=abcNowmod_rewriteengine runs again and matches the regex^([^/]+)/?$again for URI/index.phpand rewrites it to:/index.php?ToDo=index.phpYour 2nd regex:^([^/.]+)/?$works fine because it doesn't match/index.phpURI.Best w...
In my .htaccess file I have:RewriteEngine On RewriteBase / RewriteRule ^([^/]+)/?$ index.php?ToDo=$1 [L,QSA]When doing a print_r($_GET), it outputsArray ( [ToDo] => index.php )however, when I change the Rewrite Rule to^([^/.]+)/?$ index.php?ToDo=$1 [L,QSA]print_r then outputs that $_GET is an empty array. Can someone e...
Why does $_GET = index.php
After getting online with amazon web services support, I was guided to finish my task following way.Launch EC2 instance, from one ofthis AMI'sConnect my S3 to EC2 and configure Adobe FMS 4.5 to pull content from S3.(How To)Use the EC2 instance as a source for a CloudFront download distribution.
I store my videos in Amazon S3 bucket and stream them to my website using Cloudfront. Everything works fine but now I also have an iPad app for my website and I want to stream the same videos to my iPad app.The only documentation I could found is:http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/LiveStr...
Stream videos from amazon to iOS devices
6 Since Amazon can (and does) run modified versions of database server software, nothing technically prevents them from accessing all of you data. In-place and in-transit encryption does not matter as the data has to be decrypted on the server for SQL processing. The only...
I created a new DB instance on AWS RDS. It created a default database as RDSADMIN. I created another DB for my project. But my question is: can Amazon directly access my new DB data technically?
If RDSADMIN is created by AWS, can Amazon actually access our database and data?
The Circle cache is shared among all branches so it wouldn't be possible to have separate caches. If you need the cache wiped though you can contact Circle support at[email protected]
We changed our default branch from master to develop. it seems that circleci uses still the cache from master for new branches. Is there a posibility to force circleci to use another default branch?
How can i force circleci to use a new github default branch?
This shouldn't be possible as the browser must receive the css file in order to render the site properly. And if the browser can read it, so can the user.Maybe consider either some minification or obfuscation to disguise the code a little bit, or require a user to authenticate before viewing the site.
I want to prevent the viewing of a CSS file from the browser. Meaning that i want to hide the css from prying eyes. I used this for example:<Files somefile.css"> Require valid-user </Files>But when i use this particular bit for example, the website breaks. Essentially what i want to do is to:prevent the viewing of a...
how to prevent viewing of css file on browser using .htaccess
Depending on your use case, what you could do, instead of passing a user to thepsqlcommand is to define theenvironment variablePGUSERto the container at boot time.This way, it will be the default user for PostgreSQL, if you do not specify any, so you won't even have to specify it in order to connect:$ docker run --name...
I have multiple Environment Variables defined on my Postgres container, such as POSTGRES_USER. The container is running and I want to connect to Postgres from the command line using exec.I'm unable to connect with the following:docker exec -it psql -U $POSTGRES_USER -d I understand that the variable is defined on the ...
Docker exec - cannot call postgres with environment variables
Documenting the solution as an answer. It sounds like you got everything correct except hooking up the hosted zone Name Servers to the domain name. This is done via NS Records. When you create a new hosted zone, it automatically assigns you Name Servers. To link the two together, you need to enter the NS records under...
I have registered a domain name with Amazon Route53 and I'm trying to link it to an EC2 instance. I'm unable to do this successfully. I have read documentation many times over, I have looked at many tutorials online, I have read many stack overflow answers. I still haven't been able t figure it out. Help will be great...
Linking Amazon Route 53 Domain Name to EC2 instance
You could use thesystem(...)call to pass arguments throughcommandArgs(...)# script1.R val <- commandArgs(trailingOnly=TRUE) writeLines(val, "out1.txt") # script2.R val <- commandArgs(trailingOnly=TRUE) writeLines(val, "out2.txt")Define thearglistExec <- c("script1.R", "script2.R") dopar_output <- foreach(x=listExec, ....
I am taking over a script made just to run other scripts. The code used to do so is the following :cl <- makeCluster(detectCores() - 1) registerDoParallel(cl, cores = detectCores() - 1) dopar_output <- foreach(x=listExec, .errorhandling = "pass") %dopar% { source(x) }listExec being a vector with various script path....
R : foreach, %dopar%, and source
5 server location: location ~ ^/(apple-touch-icon|browserconfig|favicon|mstile)(.*)\.(png|xml|ico)$ { root /home/user/project/static/images/favs; } on favs dir: $ ls -1 static/images/favs/ apple-touch-icon-114x114.png apple-touch-icon-120x120.png apple-touch-icon-144x1...
i'm trying to alias the location of some pics in the website using the following syntax : location ~/^apple-touch-icon(.*)\.png$ { alias /opt/web_alpha/img/$1; } is that right or I missied something else in access.log of nginx I got this message : "GET /apple-touch-icon.png HTTP/1.1" 404 142 but in the browser ...
nginx alias syntax
Theurlline for theoriginremote appears to be missing a username. The reason why you are getting Permission Denied is because SSH is defaulting to your local system username, since none was specified. Unless your local username happens to be identical to the remote username, it will reject the login as your public key i...
I have registered the ssh key for my machine on github and verified that it works by typingssh[email protected]and receiving a response indicating successful authentication.However, when I try and push my source code on the machine to my git repository I receivePermission denied (publickey). fatal: The remote end hung ...
"Permission denied (publickey)." Git error
I would disagree with you regarding Redis. Redis is a very powerful key-value store that can easily be used for what you want. It is designed to have stuff dumped in it and taken out again. In your situation, you can easy cache the API response by saving it into Redis with the query as the key (if this is a REST API y...
I am using node.js to write a web service, it calls an API for some data but I am limited by the API to a number of calls per month, so I wish to cache the data I retrieve from the API so I can serve it up with the cached data, and re-fetch the data from the API at a timed interval. Is this a good approach for this p...
Proper way to cache data from API call with nodejs
This may be a local file encoding issue. You can try being explicit with the URL encoding:Redirect 301 /fr/cours /fr/cours-apprendre-le-grec-%C3%A0-ath%C3%A8nesSpecifically,%E0is the Windows-1252 version of theàcharacter and%C3%A0is the UTF-8 version. The htaccess file may be interpreted to be Windows-1252 charset so a...
.htaccessdirection issue....Redirect 301 /fr/cours /fr/cours-apprendre-le-grec-à-athènesdoes not seem to work. I guess it's that using aphostrophes? like à that messes things up. How could I get the direction to work?It's supposed to redirect tohttp://www.lexi-logos.gr/fr/cours-apprendre-le-grec-%C3%A0-ath%C3%A8neswhen...
htaccess redirection issue with greek characters
It looks like a certificate mismatch issue.In snapshot, it shows that the certificate is ok but still you are receiving the error.I suggest you try to clear all data for the site and again try to access the site to see whether it resolve the issue.If the issue persists and if you think that site is safe for access then...
I'm debugging a website on my machine. I use a Mac and Parallels Desktop where Windows is installed as virtual machine.I can launch the website under Mac.localhostor127.0.0.1works well under Mac;10.211.55.2in IE under Windows points well to the website too. But I got anThis site is not secureerror. If I click onGo on t...
Make IE trust the website launched from Mac
1 rbind.ffdf is available through package ffbase. If you are not working with ffdf objects instead of ff_matrix objects, you can just rbind ffdf objects. library(ffbase) ff1 <- as.ffdf(data.frame(matrix(rnorm(10*10),ncol=10))) ff2 <- ff1 x <- rbind(ff1, ff1) class(x) [1] ...
Suppose I have two ff_matrix, how do I column and row bind them? require(ff);require(ffbase) a <- ffbase:::as.ff_matrix.ffdf(as.ffdf(data.frame(rnorm(10)))) b <- ffbase:::as.ff_matrix.ffdf(as.ffdf(data.frame(rnorm(10)))) Nothing I've tried works (including cbind etc)
How to column and row bind two ff_matrix
Yes, you'd have to push the subtree to the remote using precisely what you were using. This is how the whole submodule/subtree approach works in general - you commit changes to your main repo but you'd have to manually push those changes up to the remote for the subtree.We designed subtree support so you could just rig...
I'm looking to use git subtree to use a framework repo that I own in my project repo. This should look like this:projectSome stuffSome stuffframeworkUsing Sourcetree app for windows I made the following:Clone projectAdd Subtree framework in a folder named frameworkAdd test.txt in frameworkThat leads me to something lik...
Can't push subtree using sourcetree
As mentioned inhostinger/example-app, you can only specify the GitHub repo and URL.If possible you could consider then usingtwoGitHub repos:one for your main projectone with the necessary codeAnd you would reference the second inside the first with agit submodule add.That way:cloning the first repo would still get the ...
I have a project which have directory structure like below and i am hosting the application on Hostinger.The problem is I don't want to deploy the complete code to the server. I want to deploy only the build folder which contains required code only.There is only option to give the GitHub project URL. How can I deploy ...
How can i deploy from github build folder to hostinger server?
You should use thecache manifest fileinstead of localStorage
I would like to know if it's possible to do the following: Store CSS and/or JavaScript files using HTML5 local storage, and when a page is accessed again use the files stored locally instead of downloading them once again from the web.This can be usefull for webApps running on 3G, to reduce the amount of data to downlo...
HTML5 local storage - Store and load CSS that has been downloaded once
Sinse 1.13 there is an "escape=none" parameter that turns off data escaping.http://nginx.org/en/docs/http/ngx_http_log_module.html#log_formatlog_format api_request_log escape=none '[$time_local] $request \n$request_body';
I am trying to log the request body of requests to my api and nginx is turning all quotes (and some other characters like spaces and tabs) into hexadecimal characters.Here is my log formatlog_format postdata '{"ts": "$time_iso8601", "status": $status, "req": "$uri", "meth": "$request_method", "body": "$request_body"}';...
nginx logging $request_body as hexadecimal
You apparently made your whole workspace into a git repoDelete/backup your repo (the workspace/.git folder)Go to github and create a new repo - say you name itmy-projectInstallmsysgit. Youwillhave to work with it sooner or laterRight click on yourprojectfolder and choose Git Bash hereIssue$ git init $ echo bin/ >> .git...
I have an Android project set up in my Eclipse workspace. What I would like would be if this individual project could be set up in its own Git repository. I tried to do this previously but I ended up having a huge file because all of my workspace projects ended up on this one repo. This caused problems when I uploaded ...
How can I upload my Eclipse Android project to GitHub?
Your code constructs a wrong URL:.url("https://api.github.com/user/emails" + userName)According tothe docs, thehttps://api.github.com/user/emailsURL (without the userName at the end, which in your code is not even separated by a slash) will give you the email addresses ofthe currently authenticated useronly, not any ot...
I have developed an github app which listens to merge event and provide analytics to the organization. App have user:read permission. To map git users with my app users we need an email id. I tried calling below API but it always gives email as null (may be these users don't have their email as public.) . How can we a...
Github Apps identification of users
No, it won't, because the deallocation does not have the power to change the pointer. It could only do this is you passed a pointer to the pointer. If you want to ensure it's set to nil, you have to do it yourself. Some consider this good practice, some consider it a waste of time since your code should be structured ...
Will the pointer to an object go to nil when its count goes to 0 or when dealloc is called? Why or why not?
Memory management in Objective-C and setting pointers to nil
Information to be put on the certificate is verified by the trusted Certificate Authority (CA) on which almost all the browsers trust.To get a certificate from a trusted CA, you need to submit a certificate signing request. After verification, CA will issue a certificate.And it is the browser or client of SSL who actua...
When i use openssl to create a certificate for my website,who must verify my certificate? E.g : when you want login to yahoomail , your certificate verifies by DigiCert .
Who verify certificate in openSSL
If there is no common pattern, it is worth using three different lines:0 0 7 12 * your_awesome_script 0 0 14 1 * your_awesome_script 0 0 21 2 * your_awesome_scriptYou could try to get a complex syntax taking advantage of the day of the week, etc, but it would get quite difficult to understand.Remember the format:+--...
I would like to know if this is correct.I want to schedule a cron job for multiple dates such as:7 Dec 201614 Jan 201721 Feb 201730 9 7,14,21 12,1,2 * my_awesome_script...While I could wait for the next date to see if it works...I just don't want to :)
How do you schedule cron jobs for multiple dates?
A canonical solution would be to have a cronjob running every X minutes that looks up your db for tasks to be executed and launch a celery task for each (so the task execution is async). You'll have to be careful about race conditions though so the same tasks is not executed twice concurrently (the celery task should c...
I have django-project with some tasks, which are saved in db. I need that tasks are executed in certain time. I thiink about cron or celery, but I see only function like repeated actions, but I need to do in time which is saved in my db. How can I do this?
How to implement to do tasks by schedule?
I'm looking at the latest API docs here, and it looks like only AWSLambdaAsyncClient.invokeAsyncAsync() is deprecated. The AWSLambdaAsyncClient.invokeAsync() method is not marked as deprecated. It looks like they are just doing some code cleanup by removing the need for the InvokeAsyncRequest and InvokeAsyncResult cla...
Does anyone know the current and correct way to invoke Amazon AWS Lambda functions asynchronously instead of synchronously? The InvokeAsync API in the AWS Java SDK is still available but marked as deprecated and they suggest you use use the Invoke API. I can't figure out why they would be forcing us to using sync. I h...
How to invoke an AWS Lambda function asynchronously
Run Job is 3pm everyday. You use expression: 0 0 15 * * ?
I tried below two:CronSchedule("0 15 * * *") CronSchedule("0 0 15 ? * MON-SUN")Both triggers the process again after sometime.
How to run quartz scheduler everyday once at 3 PM
If you want to stick with Lambda's default binding behavior, this approach looks promising. Is there a way to change the http status codes returned by Amazon API Gateway? Also Lambda will ignore the second parameter if the first error parameter is non-null. Here's some cases how Lambda works. Case 1: The first paramet...
I am trying to figure out how to map a Response from Lambda in the API Gateway to different status codes and at the same time receive a JSON object from my Lambda-function. I have the following in Lambda: context.done('Not Found:',jsonObject); And in my API Gateway, in integration response I have a Lambda error regex...
Return JSON with Lambda through API Gateway with mapping
From thedocumentation:Context: server config, virtual hostso the answer is "no", I'm afraid.
How can i use RewriteMap directive in htaccess file? When i put it there i get "RewriteMap not allowed here" error.I know this error will disappear when put it in httpd.conf or virtualhost configuration file. But i want to know is it possible to put it in htaccess or not?
use RewriteMap in htaccess file
0 Similar problem I faced earlier, This is the problem of bower not docker container, bower doesn't work great with root privileges you need to install all the dependencies with the node install command. Merge Node and Angular dependencies into one package.json and trigger ...
I recently moved my nodejs application into a docker container. Everything works fine, except static files (e.g. bower components) won't get loaded (404). Whats wrong? In my node app: app.use('/static', express.static(__dirname + '/../public')); My .bowerrc { "directory": "public/lib" } Bower downloads and install...
Dockerized node app not serving static content
There is! Open up your command line and typegit config --global --editEnter[user] name = yourname email = yourEmail pass = yourPassword password = yourPasswordand finally save it and restart atom.
I useAtomas my editor and, since I useGithub, Icloned my repo with github desktopand thenlinked Atom to thatwith my account's token.The problem is that every single time I interact with the repo through atom (push, pull, fetch...)it asks me for my login information, even if it has my token.I looked this issue on the in...
Atom Github Plugin permanent login request
For just uploading/syncing git repo via ftp you can usegit-ftpIt is pretty easy to use ... all you do to upload once you areconfiguredis :git-ftp pushbut the fastest way to do so will always be via ssh using rsync with exclude .git.[dev@dev_server website_repo]$ rsync -avz --exclude ".git" * dev@production_server:/var/...
Let me preface this by saying I am extremely new to git but have a basic understanding of Source Controls.Here's my situation. I currently use a regular shared hosting account with a basic hosting provider similar to hostgator and use ftp/cpanel. I use ftp to upload/download files from the server.I have recently instal...
git/ftp workflow logic
It is not possible to co-own a repo. There are however some steps you can take to ensure it is clear you are working together. You can pin the repo to his profile and add him as a collaborator. Repositories-> Click on the repository you want to add collaborators-> Click on Settings -> on your left, click on 'Collabora...
Context : Me and my friend are working on a project, and It's under my account. But he wants it to be shown as his Repo too, Currently, If I created the Repo, technically, I own it, but we both are working equally on this project, hence it should be displayed on his github account too. I looked for forking, which is g...
Can two people put same Repo on Github?
-1 Have you tried to see you have a internet connection in your VM ? how do you connect to VM via SSH/public IP or UI ? I would say try to curl to github first and see if that goes through , it seems like your VM does not have internet access and you need to configure clo...
I have been trying to make an application live for some time now using GCP , For some reason , I am not able to clone my repository over SSH, I have tried doing it with making the repo public and using https and then it works but this is annoying me a lot since its a private repo. SSH over public repo's also doesn't w...
GCP VM Terminal gets stuck when I try to clone a git repo
No there is no way to do that when using the HEADER option, because Redshift does not have case sensitive column names. All identifiers (table names, column names etc.) are always stored inlower casein the Redshift metadata.You can optionally set a parameter so that column names are all returned as upper casein the res...
Previously, unload command did not create header row. This functionality is now available with "HEADER" option. However, it does not preserve the case of the headers.The following statement creates a file with header "my column header 1"...UNLOAD ('SELECT col1 "My Column Header 1", col2 "My Column Header 2" FROM mytabl...
Redshift Unload with case-sensitive headers
I finally found how to do! 😅 Here is the code: sfn.Chain.start(OtherTaskWeDoNotCareHere) .next(task1) .next( new sfn.Choice(this, "task2") .when( sfn.Condition.booleanEquals("$.isFinished", false), task3.next(task1) ) .otherwise(new sfn.Succeed(this, "Done")) );
I'm trying to migrate a Step function that I created with the AWS interface and I encountered an issue with reproducing the following behavior: Based on a condition, I want my task 2 to either execute task 3 and come back to the task 1 or to end the step function. My issue is the red path on the image Here is the cod...
CDK Step Functions - How to create a loop
Using Akeeba Backup (https://www.akeebabackup.com/products/akeeba-backup.html) is indeed a good idea. You can schedule a command line task to run every day and create a backup of this site. To restore such a backup you can use Akeeba Kickstart (https://www.akeebabackup.com/products/akeeba-kickstart.html). Very easy, ve...
I am a new web developer. I have been using Joomla with a 3rd party template, developing it on a local MAMP server. The template is sort of unstable and breaks easily. I would like to Backup my work on a daily basis.I'm assuming all the files and the database need to be backed-up? Is there a best practice for this?Than...
how to backup Joomla website when developing on MAMP?
This is not real scheduling, but you can fake it in certain situations if you don't need the scheduling to be totally accurate, i.e. in your case run the job once a day:class WeatherJob < ApplicationJob def perform reschedule_job do_work end def do_work # ... end def reschedule_job self.cla...
I'm doing a weather API which will get, process and save data from another API. In order to get the daily updates (request URL info, get the JSON/XML data, construct my data and save it to my database) I think the most proper way is to use an ActiveJob.I want to schedule the job to run periodically. I would like someth...
Schedule an ActiveJob in Rails
1 I am assuming that the fixes were made to the same merging branch that was earlier merged into master. If that is the case, you must first revert the commit that rolled back that merge (i.e. revert the revert), then merge the merging branch back in. The first action undoe...
I created a pr and merged it to master, but it had to be rolled back and the merged branch was recovered. Now I fixed the error and I want to make the merge again, but now master branch is overriding the changes in the merging branch, which means that all changes are lost with the merge. It seems git is taking master ...
git pr merge rolled back can't be done again properly
When you can't resort to rewrite your repo history, you can alwaysrevertcommits.Reverting a given commit doesnotalter history, it creates a new commit on the currently checked-out tip of the tree, containing the exact opposite of changes introduced in the original faulty commit to be reverted.After creating this commit...
Our repo is locked down to allow only code reviewed Pull Requests to modify master (be merged to master).We had to rollback a deployment of master branch that had a bug. I need to make the GitHub repo, master branch, be equivalent code to the commit to which we rolled back. However I cannot simply do agit reset ---hard...
Rollback master branch using only pull requests (no reset, no push directly to master etc.)
Since you want everything, you just need to reduce the number of restrictions you are asking for.so:openssl pkcs12 -in ./GoDaddy.pfx -out ./GoDaddy.pemIf you read thedocumentationyou will see what you are asking for:-nocertsNo certificates at all will be output.-clcertsOnly output client certificates (not CA certificat...
I have a PFX that I want to convert to a CRT and Key or PEM and Key to install on an NGINX endpoint. When I import the pfx to my cert store on my windows machine it creates the certificate, the intermediate chain, and the root CA.If I take that PFX and run the following openssl commands I and bind it to the endpoint, I...
Convert PFX to PEM with Key INCLUDING INTERMEDIATE certificates
Afaik, you can preview the .mediawiki straight on github: either in it's wiki service (all pages have the “preview” button in the bottom and it have mediawiki as one of its formats), or in the online file editor, it have the “preview” tab near the “code” one.
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...
mediawiki online wysiwyg editor or preview tool [closed]
Inglext.h.GL_API GLsync glFenceSyncAPPLE(GLenum condition, GLbitfield flags) __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_6_0);I am pretty sure this is what you want. Anyway available only on iOS 6.0 or later.
I see thatglFenceSyncdoes not exist in OpenGL ES 2.0, it was added only in OpenGL ES 3.0.Does OpenGL ES 2.0 offer any alternative of syncing between CPU and GPU, aside from the brutal forceglFinish?
glFenceSync alternative in OpenGL ES 2.0
It looks like the canonical source for the completion scripts is located here:https://github.com/docker/cli/tree/master/contrib/completionThere's abash/dockerscript in that tree. So if load that in shell startup (or set it up in ~/.bash_completion.d/) it's reasonable to expect success.ShareFollowansweredFeb 23 at 22:2...
According tothis blogI've triedcurl https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker -o /etc/bash_completion.d/docker.shButdocker compose -f <tab>will becomedocker compose -f y yml yamlinstead of giving suggestions from file system.Documentation only gives guide ...
How to add auto completion for docker compose V2 in bash
This is a pretty old question, but I got myself on the same situation and trying to figure a reason for this. I could find another answer on stackoverflow about the same topic, which goes deeper on the implication of this. You (and anybody that might have the same question in mind) can find it here:Github resolving con...
We use feature/develop/master branches for our development. When a feature is done (Let's call it feature/123) we send a pull request to merge to the develop. Sometimes this merge has conflicts so we use Github to resolve the conflict.My question is why would github merge the entire develop branch into feature/123 afte...
Why does github merge base into feature branch after conflict
Here's how I solved it: My /logout action where the users session is destroyed in the backend redirects to /exit which has an id attribute of exitPage. In my JavaScript I have asked jQuery Mobile to trigger when that page is about to be created. I then empty the DOM and redirects to the front page. /exit: <div data-ro...
When users logout from my mobile app, how can I make sure the cache is cleared? What I'm thinking about is to redirect /logout to a specific page that clears the cache and redirects to the front page, but how do I clear everything from the cache? I'm using jQuery Mobile 1.0b2pre.
jQuery clear cache on logout
There is a better way than overriding the default command - using/docker-entrypoint-initdb.d:When a container is started for the first time it will execute files with extensions.shand.jsthat are found in/docker-entrypoint-initdb.d. Files will be executed in alphabetical order..jsfiles will be executed by mongo using th...
I'm trying to set up a container running MongoDB that gets populated with data using mongorestore when it starts up. The idea is to quickly set up a dummy database for testing and mocking.My Dockerfile looks like this:FROM mongo:bionic COPY ./db-dump/mydatabase/* /db-dump/and docker-compose.yml looks like this:version:...
Running mongorestore on Docker once the container starts
So I figured it out that to set the proxy for particular containers, set the env variable in Dockerfile.ENV HTTP_PROXY http://10.x.x.x:PORTShareFollowansweredNov 9, 2018 at 18:46Meta-CoderMeta-Coder33111 gold badge44 silver badges1212 bronze badgesAdd a comment|
I have setup a Kubernetes cluster which somehow cannot have internet connectivity because of organizaion policies. Now there are some services which I need to communicate via internet. To resolve this I have setup a forward proxy (Squid) which is outside of K8s cluster. All the nodes of my K8s cluster can access "googl...
How to set proxy settings (http_proxy variables) for kubernetes (v1.11.2) cluster?
Seems to be as easy as this:FROM centos RUN yum install -y \ java-1.8.0-openjdk \ java-1.8.0-openjdk-devel ENV JAVA_HOME /etc/alternatives/jre . .
Assuming that there is a CentOS Dockerfile:FROM centosWhat is the right way of adding OpenJDK 8 for it ?I have tried to use similar approach as for Fedorahttps://github.com/projectatomic/docker-fedora-images/blob/master/java-openjdk-8/DockerfileBut when I run the image java version is"1.7.0_111", even though it is expe...
How to define OpenJDK 8 in CentOS based Dockerfile?
You could do this in logstash using atranslatefilter, which requires a two-column CSV file (or YML, or JSON). You could trytranslate { source => "[fieldWithIP]" dictionary_path => "/path/to/mapping.csv" target => "[fieldForHostname]" }this would add a new field called [fieldForHostname] if the value of [fie...
Trying to figure out how to enrich the data being ingested (Network Data) Zeek/Suricata. I would like to either show Hostname vice IP, or more preferably add another field for hostname based off the IP address.Have a file with IP -> Hostnames (CSV) currently could be anything other format if required. Unable to get I...
Logstash (ELK): Enrich IP with hostname (based off a file). - (No direct connect w/ DNS/AD)
Trydocker cp.Toputfilesona container:docker cp file.pdf container:/file.pdfTogetfilesfroma docker container:docker cp container:/file.pdf file.pdf
This question already has answers here:How to copy files from host to Docker container?(52 answers)Closed6 years ago.Is it possible to add files from local file system to a running docker container? Or I need to stop the container and add the files using cp command and run the container again?
Add files from local file system to running Docker container [duplicate]
This is more a problem of visibility: If you mount an empty volume at a specific path, you won't be able to see, what was placed there in the container image.From your question I assume that you want to be able to rollout updates by the means of a new container image, but at the same time retain variable data, that was...
I have a pod that reads from an image that contains data withinvar/www/html. I want this data to be stored in a persistent volume. This is my deployment yaml:apiVersion: apps/v1 kind: Deployment metadata: name: app spec: replicas: 1 selector: matchLabels: container: app template: ...
Kubernetes Persistant Volume overwrites image data
[UPDATE] Today I realized that entering amplify, an update was proposed to me for "improvements and performance using nextjs 12". I did that and it actually got much faster... It messed up my backend environment though... AWS Amplify Performance Boost with NextJS 12 - Unexpected Backend Environment Switch
My Nextjs SSR App on AWS Amplify is too slow: The same app on local pc started with commands yarn build && yarn start it is fast enough but on aws: First page load: 10.43 Sec When click on a link in the page: 9.5 Sec The getServerSideProps() doesn't call 999 API but just retrieve user data from cognito : export asyn...
NextJS SSR AWS Amplify - Production env is slow on load
Your new rewrite rule should come before the last one since it matches/nametoo.RewriteEngine on # if a file then stop processing RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ - [L] RewriteRule ^([^/]+)$ /index.php?a=profile&u=$1 [L] RewriteRule ^(([^/]*)+)(/([^/]{0,32})(/.+)?)?$ /index.php?a=$1&q=$3 [L]Your lastRe...
I have a problem with htaccess. I tried to set the links fromhttp://website.tld/index.php?a=profile&u=nametohttp://website.tld/nameThe htaccess file already had this:RewriteEngine on RewriteCond %{request_filename} -f RewriteRule ^(.*) $1 [L] RewriteRule ^(([^/]*)+)(/([^/]{0,32})(/.+)?)?$ index.php?a=$1&q=$3 [L]I a...
Htaccess rewrite rule code
0 You can include secrets from your repo into the workflows directly by specifying their name. Let's say you have a secret named URL then you can simply use it like: env: URL: ${{ secrets.URL }} Now your URL is fetched and you can use it in other commands like this ...
We have a repository named recent-activity which hosts a GitHub action and is available for use to all GitHub users. We want to add a URL on which we can send http requests when the action is run (by any user). However, we don't want to disclose the URL publicly. Is there any way this can be done?
How to get GitHub secrets of host repository as input in github action?
use this:wget --spiderhttp://www.stackoverflow.com> /dev/null 2>&1This command calls the url but doesnt download the output and redirect stderr and stdout to /dev/null
how can i call some url like stackoverflow.com from cron without getting return data from page?
how create cron command
In Python 3.x, you can use os.makedirs(path, exist_ok=True), which will not raise any exception if such directory exists. It will raise FileExistsError: [Errno 17] if a file exists with the same name as the requested directory (path). Verify it with: import os parent = os.path.dirname(__file__) target = os.path.join...
I have a urllib2 caching module, which sporadically crashes because of the following code: if not os.path.exists(self.cache_location): os.mkdir(self.cache_location) The problem is, by the time the second line is being executed, the folder may exist, and will error: File ".../cache.py", line 103, in __init__ ...
Race-condition creating folder in Python
I dont know of an sqs pause button, and I don't see any sqs API calls that seem promising.You could remove access from the iam policies allowing the readers to read.You could remove access to sqs public ips at a network level.But I hate those solutions; they blur failure scenarios with success and aren't really any mor...
I have an SQS queue (standard, not FIFO) I'm using as a task queue for multiple workers on a long-running process.I'm trying to add a 'kill switch' that'll temporarily stop my workers from being able to receive/process any messages.I don't want to delete the messages or stop any new messages from entering the queue, ju...
How can I freeze an SQS queue against any reads?
20 Tilde expansion for COPY is not supported. From The COPY docs: The dest is an absolute path, or a path relative to WORKDIR, into which the source will be copied inside the destination container. Example: COPY test relativeDir/ # adds "test" to `WORKDIR`/relativeDir/...
I have a Dockerfile with the following line: COPY *.zip ~user1 The user user1 already exists and has a home directory (i.e. /home/user1). The goal, of course, is to copy the zip file into that user's home dir, however the result of the above is that the zip file is copied to a file named literally /~user1 in the imag...
Tilde Expansion Doesn't Work in Docker COPY Command
The contributions are not accounted by the ssh-key used but by the email you set in thegit-configand that is stored in the header of a commit messages:git config --global user.email "[email protected]"If you previously configuredgitwith your old email, update the config as above. If you will need to "rebrand" commit me...
So, I created a Github SSH Key for my Win10 PC. I used my e-mail that's linked to my Github account when creating my SSH key. However, the key is linked to some old account that I made that is linked to a different email and that I've never used. I even created a new SSH key with a different E-mail. Why is it contribut...
GitHub Issue with SSH Keys
In general, you should make the pull request sooner rather than later. One exception would be if you feel the other pull request were made in error, e.g. your peer were working on the wrong task, or he grossly misunderstood some requirement.Git was designed to tolerate having multiple extant branches, each of which ma...
I've forked a project on GitHub and I've made some change. I want to do a pull-request of my changes.I've seen in the main project that there is an existing pull request, and I've noticed that my changes are in conflicts with that one (we change same lines of code).What I should do in this case? I should wait the appro...
Send a pull-request that is in conflict with another pending one
The "method POST required" error message comes fromorg/jenkinsci/plugins/github/webhook/RequirePostWithGHHookPayload.java, which is from theJenkins GitHub plugin.There is noobvious issue involving "POST required"in Jenkins or in theGitHu repo.Double-check the configuration of that plugin, and make sure the repo isn't a...
I was setup github webhook to connect with github.I haved an error (i was install github plugin).How can I avoid that error message?
Error when setup github webhook
Finally this solution worked for me. It seems like, it is mandatory to have the localhost assigned to 127.0.0.1 in our hosts file(location is /etc/hosts). The following line should be there in /etc/hosts 127.0.0.1 localhost And do the following. At the end, assign variables as the console shows. boot2docker init...
Installed boot2docker on OSX, as per instructions of http://boot2docker.io/. After that started the application. In a terminal, boot2docker shellinit command started and ended up in throwing this error "Error requesting socket: exit status 255". Tried boot2docker stop--->delete--->download--->init--->up . It didn't he...
boot2docker shellinit command ended up in error "Error requesting socket: exit status 255"
You can create another container that wait for the the rabbitmq to expose its REST API and then perform the actions you want (Sending the HTTP POST in your case)Here is an example of the docker-compose fileconnect: build: kafka-connect links: - kafka ports: - "8083:8083" environment: ...
I have a docker container that is part of a big project configured and launched bydocker-compose. This container needs configuration when it is started by sending it an HTTP POST request to its REST API.Basically what I do now is that I rundocker-compose upand wait a bit so that everything seems to have started, and pa...
Docker - how to automatically POST a request on a REST container after launch?
Per WebAPI documentation (embedded in your own SonarQube server, linked at the footer):api/resources/indexis deprecated since 5.4 (i.e. a super long time ago).The documentation even provides some guidance:if you need one component with measures:api/measures/componentThat will get you the measures you need for a given p...
I was using "http://sonarserver:9000/api/resources?metrics=ncloc,bugs,vulnerabilities" to get the details of all the projects for sonar 6.0.After upgrading to 6.4 this url does not work and I am not able to find the alternative for this under the web_api changes page.Please let me know if anyone knows about an alternat...
SonarQube Web Api Changes from 6.0 to 6.4
As of this writing,Postis only supported in declarative pipelines.You could have a look at theirdeclarative exampleif you absolutely must usepost.pipeline { agent { kubernetes { //cloud 'kubernetes' label 'mypod' containerTemplate { name 'maven' image 'maven:3.3.9-jdk-8-alpine' ...
I try to use the post steps with the Jenkins kubernetes plugin. Does anyone has an idea?java.lang.NoSuchMethodError: No such DSL method 'post' found among stepsMy pipeline:podTemplate( label: 'jenkins-pipeline', cloud: 'minikube', volumes: [ hostPathVolume(mountPath: '/var/run/do...
How can I use post step in Jenkins pipeline with kubernetes plugin
from https://github.com/oracle/docker-images/tree/master/OracleDatabase -v /opt/oracle/oradata The data volume to use for the database. Has to be writable by the Unix "oracle" (uid: 54321) user inside the container! If omitted the database will not be persisted over container...
I created volume for storing my application database data - docker volume create dbvolume. Then I launched my docker container with Oracle XE 11g database image and data volume. docker run --name=OracleXE --shm-size=1g -p 1521:1521 -p 8080:8080 -e ORACLE_PWD=weblogic1 -v dbvolume:/opt/oracle/oradata oracle/database:11...
Persisting data in docker's volume for Oracle database
Is the --rebase ok to do given that I have already made commits and pushed them? Maybe. If other people have checked out your branch (and perhaps even made their own local commits), rebasing has the potential to cause a nightmare of merge conflicts. However, rebasing is often regarded as good housekeeping on project...
I've read a number of articles and questions regarding git pull --rebase, but I'm not sure how it applies to my situation - especially regarding shared/public branches Initial Setup: create a feature branch off master, push it to the remote make changes, commit locally push my commits to remote feature branch Remote...
`git pull --rebase` on feature branch to merge in origin/master changes
1 There are many files that do not need to be checked into Github. Your biggest directory is probably node_modules. This directory does not need to be check in to Github because these are your project dependencies which are downloaded with the command nom install when you c...
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago. Improve th...
So many time to push an react native to git [closed]
Goto the user you have created for terraform from iamadmin then check the Policies . I have found that "AWSCompromisedKeyQuarantineV2" policy was Attached directly . The description of the policy is :Policy ARN arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineV2 Description Denies access to certain actions, applied b...
I am trying to lunch EC2 instance by using Terraform and I am getting the following error:Error launching source instance: UnauthorizedOperation: You are not authorized to perform this operation.I have applied AdministratorAccess policy to my IAM account so I guess there should not be IAM restriction issue.Also I have ...
Error launching source instance: UnauthorizedOperation: You are not authorized to perform this operation
Transfer ownership, then change the name. Or change the name, then transfer ownership.Both transferring ownership and renaming provide redirections from the old locations.When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name... In ad...
I have a repository "foo" under organisation "aa". I created a new organisation "bb" and i want to transfer my repository "foo" to "bb" but also modify the name. Something like github.com/aa/foo.git -> github.com/newaa/newfoo.gitReadingtransfer repositoryassumes that repository name remains without changes in the new o...
GitHub transfer repository - to new organisation and change repository name
Functions in JavaScript are considered as objects, and as such, they are of reference type. We can tell by doing a simple test like this: const a = () => {}; const b = () => {}; const c = a; console.log(a === b); // false console.log(a === c); // true Whenever a new connection is created in your case, a reference of...
So i'm trying to know how javascript handles function. if i have a code like this: io.on("connection", function(socket) { socket.on("hi", function(data) { socket.emit("emit", "hey") }) }) What's in my mind is that each new connection, javascript will create another function for the "hi" event. So what I'm cur...
Best way to add an event listener on socket.io to save resources
Use this in your root .htaccess:RewriteEngine On RewriteCond %{THE_REQUEST} \s/+(file)\.php[\s?] [NC] RewriteRule ^ /%1/ [R=301,L,NE] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}/$1\.php -f [NC] RewriteRule ^(.+?)/?$ /$1.php [L]Changefile.phpto whatever your file name is.
I am trying to make a PHP file look like a folder via Mod_Rewrite... but I have no idea how to do it.I used to do it like this:<files store> ForceType application/x-httpd-php </files> DirectoryIndex storeWhich was the simplest way to do it... but I changed servers and "ForceType" is not allowed...I need t...
Extensionless PHP File via Mod_Rewrite
4 With --socket option you have to use uwsgi module in nginx instead of proxy. Share Improve this answer Follow answered Sep 12, 2016 at 15:53 VBartVBart 14.9k44 gold badges4646 silver bad...
I was reading the tutorial provided in http://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html This very tutorial is a great tutorial. I have been able to configure django server on my raspberry pi raspbian system, on my Ubuntu Desktop too. Now I am trying to do the same on a Virtual Machine, Ubun...
invalid request block size 21573