Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
You need to set your local repo to push upstream to your github repo. from:https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-lineYour next steps would be:# create repo via github ui or github cli # add github as the origin git remote add origin remote_repository_URL # push change...
I found some similar questions like this. But I can't find a solution.I add a folder with files and sub-folders to my local repository using:git add .And then with:git commit -m "comment"I get:On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory cleanThe problem is, that...
git: Can't add files to github
5 Insert -d before docker run to run your container in Detached mode. try to run: docker run -d --name my-app5 -p 8000:8000 python-fastapi:1.5 Share Improve this answer Follow edited May 30, 2022 at 12:02 ...
I am able to run python FastAPI locally(connecting to local host http://127.0.0.1:8000/), but when I am trying to run through container, not getting any response on browser. No error message either. content of main.py from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root...
I am to run python FastAPI locally, but when trying to run through container, not getting any response on browser. No error as well
You can useevent.identity.usernameexports.handler = async (event, _, callback) => { try { console.log('event', event); console.log('event.identity.username', event.identity.username); const userId = event.identity.username; console.log('userId', userId); callback(null, true);...
I use AWS Lambda + Cognito (User Pool + Federated Identity) + API Gateway. Users authenticate in WEB application withamazon-cognito-identity-jsand invokes API withaws-api-gateway-client. API Gateway methods have AWS_IAM authorizer. How to get username (from User Pool) in Lambda function?
How to get current user username in AWS Lambda?
There are two ways to look at it (that I'm aware of):The first is that your CI/CD pipeline builds and deploysyourapplication, so unless you add malware to your application (possibly inadvertently by depending on a compromised version of a library), it won't deploy malware.The second is that you absolutely can add autom...
I do have a CI/CD Pipeline to deploy my spring boot application to PCF. It does have a Job to call a shell script to deploy to the PCF environment. How can i ensure that it doesn't install a malware so that hacker cannot mess it up. Any ideas/suggestions are welcome.
How to secure CI/CD pipeline
Fromput-metric-alarm — AWS CLI Command Reference:When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.Therefore, it seems that you will need to specifyallthe parameters, rather than just the parameter you wish to modify.
How can I modify an existing AWS alarm without figuring out all the parameters? Say if I just want to change a single property.I tried getting its properties withaws cloudwatch describe-alarms --alarm-names my-alarm, then modifying the json, and passing it with:aws cloudwatch put-metric-alarm --alarm-name my-alarm --cl...
Modify existing AWS alarm with AWS-CLI
You can try adding this to your code - $.ajaxSetup({ cache: true }); This will ensure that no cache-busting strategy is used by jQuery.
In my application I'm using the overlay effect of jquerytools. I'm opening an external page inside the overlay as explained in this demo. In my external page I'm using some javascripts to do validation and so on. My application is using the Struts2 framework. The problem I have is concerning the performances of the ov...
Caching of JS resources with AJAX call in JQuery tools
You are wrapping the match with', which is not required. Also, remember that the.is a special value in a regular expression.if ($http_origin ~* (localhost|www\.app-staging\.com|www\.app\.com|api\.app\.com|app\.com)) { set $cors 'true'; }Remember to restart the server or reload the configuration after the change.
I'm have an Rails application with Angular. I'm using nginx and passenger as a server. The idea is that angular makes requests to the api.app.com. When I try to do this I get this error.XMLHttpRequest cannot loadhttps://api.app.com/api/some_resource. Response to preflight request doesn't pass access control check: No '...
Configuring CORS for nginx and passenger
16 Starting with @Isaac Fife's example, stripping it down to identify what's required vs not, and to include imports and such to make it a full reproducible example: (the only change you need to make is to use your own bucket name) import base64 import hashlib import boto...
I have tried to upload an XML File to S3 using boto3. As recommended by Amazon, I would like to send a Base64 Encoded MD5-128 Bit Digest(Content-MD5) of the data. https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Obj...
Howto put object to s3 with Content-MD5
Answering my own question: The mount point must exist in the Read-Only volume, even if it won't be used. Docker was trying to create the uploads directory in the RO volume before mounting it. When I created an empty directory at /dev/workspace/wp-content/uploads, the error disappeared and everything worked as expecte...
I'm trying to mount a writable Docker volume as a child of a read-only volume, but I get this error: ERROR: for wordpress rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: mkdir /mnt/sda1/var/lib /docker/aufs/mnt/.../var/www/html/wp-content/uploads: read-only file system" ...
Can I have a writable Docker volume mounted under a read-only volume?
Project gevent-socketio (the dependency of Flask-SocketIO that handles the Socket.IO protocol) starts a secondary web server used for the Flash transport. This server listens on the same host as your main server, but at port 10843. Clearly that logic fails when the main server listens on a unix socket. Do you need to ...
I create site on Flask. All communication with server is going through WebSockets. When i use gunicorn with TCP/IP: gunicorn --worker-class socketio.sgunicorn.GeventSocketIOWorker chat:app --bind=127.0.0.1:8800 Everything works fine. But when i use Unix socket file: gunicorn --worker-class socketio.sgunicorn.GeventSo...
flask-socketio + gunicorn + nginx through unix socket file [Errno -2]
People automatically become participants when they interact with the PR (or you interact on their behalf, in this case), and I don't think they can be removed. However, Brian can unsubscribe from notifications in the PR's sidebar, and then his participation is purely historical.
I've created a pull request and assigned it to one of my co-workers ("Brian") to review. He's since told me he's not available, so I've reassigned it to a different co-worker ("Geoff"). I now have a pull request with 3 listed participants: myself, Brian and Geoff.How can I remove the original assignee (Brian) from the ...
How can I remove a participant from a GitHub pull request?
You should alter the cron expression like0 41 */1 ? * *
I am trying to get Next Execution Date based on a Start Date and a Cron Expression using Quartz Cron Expression utility in Java. (org.quartz.CronExpression)Following is my code to getnext execution dateCronExpression exp = new CronExpression(cronExpression); Date nextExecutionDate = exp.getNextValidTimeAfter(startDate)...
Get Next Execution Date from given date with Quartz Cron Expression
According tothis, the public AMI for all runtime envs. isamzn-ami-hvm-2016.03.3.x86_64-gp2. You should be able to work with this.Also make sure the library you are trying to compile is not available out there already, for exampleat this repo. Finally you may wantcheck this outto find out more tips about how to avoid co...
I'm a little confused about this. If I try to create a new python lambda in the aws console I see this:Now I want to use python 3.6 and I also want to package up some binaries with a virtualenv (I'll have to do this to run the cryptography module).I'm following this doc:http://docs.aws.amazon.com/lambda/latest/dg/with-...
AWS lambda says it supports python 2.7 and 3.6 but 3.6 isn't in the amazon linux ami's repos
What was missing: python manage.py migrate w I tested this a couple times pushing it and pulling it from my PC and laptop. I'm going to push the Django project onto our repository in a bit so we can start working on stuff. I'm still learning all this so this might not be entirely correct—do correct me if I'm wrong—bu...
Having trouble creating a Django repository on Github that everyone can use? I tried pushing the entire virtual environment at first, found out that it doesn't work like that, then I tried just pushing the Django folder, but even the manage.py is looking for a path that only exists on my PC. How can I push the Django ...
How to create a sharable Django repository on Github
If you can reproduce the OOM error in development environment then you can use Logcat to see GC messages and maybe log events in your app. There are also many tools available from DDMS Eclipse view to help you track allocations and see exactly which objects are taking up memory.There are a ton of information available ...
Is there any way to get statistics about Out of Memory events that occurred, even if its only how many ?Primarily I am concerned with the count of events and when they occurred. It is needed in an app I am building.Is there some API support or do I need to parse some file ?
Android Out of Memory Events
How about having two .htaccess files. One called .htaccess.maintenance and the other .htacces.standard.Whenever you want to switch to maintenance mode copy the one you need over the existing .htaccess.Donotwrite a script that touches the .htaccess directly if you don't absolutely have to!
The solution to a previous question (How to implement “Maintenance Mode” on already established website), was to use a modified .htaccess to deny IP addresses.What is the best way to use a web interface to modify an .htaccess file? What I want is a way for an admin to log in to the admin area and switch Maintenance Mo...
Use web interface to modify htaccess file
localhostcan only be used to address the group of containers running in a single Pod.Pod to Pod communications should go via aService.The following example service will forward traffic to any Pods labelled withapp: grpc-appapiVersion: v1 kind: Service metadata: name: grpc-service spec: selector: app: grpc-app ...
I have implemented a gRPC client server in Go. I have now set them up in Kubernetes as client and server pods where the client connects to the server. I've set this cluster up using vagrant (centos/7) on my PC. My issue is that the client wants to hit the port 8090 (sever serves on this port) and send a message to the ...
How to make one pod communicate with the other pod's localhost
In regard to the private repos I thinkgithubonly supports private repositories for paying users. If you want free private repositories, you could take a look at bitbucket which supports both Mercurial and Git repositories.
I often find myself writing my R code in Rstudio and manually copying/pasting the code to a gist atgist.github.com.I think Rstudio is great and they recently incorporated version control capabilities. I haven't quite graduated to this level just yet, but I am hoping that I could link my github account and manage my gi...
Download, Revise, Upload Github Gists with R
You have 2 options here:First:sudo kill -HUP pid (nginx pid)Second:/usr/sbin/nginx -s reloadRead herehttp://nginx.org/en/docs/control.htmlfor more details.
My nginx configuration file is constantly making changes that need to be reloaded.I have tried the following, nothing but force-reload (which takes the server down temporarily) seems to work.sudo /etc/init.d/nginx reload sudo service nginx reloadWhy are these not working? I get no errors.
NGINX Not Reloading Configuration File
UseContainer Lifecycle Hooksof K8sPreStop:This hook is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention and others.
I am working on a spring boot application and we deploy through kubernetes. My requirement is to run some logic in case the pod crashes or pod gets removed or pod is intentionally shut down. Currently I am using @PreDestroyto run my logics on exit.@Component public class EngineShutDownHook{ private static final Logger...
Best way to run exit logic on accidental pod shutdown
2 The reference to the ivar inside the Block is implicitly viewController->ivar, and the Block makes a strong reference to the ivar's owner. It will not be deallocated before the Block is. It looks like you actually have a retain cycle because the owner of the Block is th...
Let's say you have something like this: ivarOutsideOfBlock = @"foo"; [doSomethingThatTakesAwhile start:^(NSError *error) { if(!error){ ivarOutsideOfBlock = @"somethingElse"; // Might crash because iVarOutsideOfBlock may no longer exist } }]; At this point, let's say the r...
What's the best way to manage memory when a ivar inside a block might be released?
When they click on a different item just use:$("#tabs .ui-tabs-nav a").removeData("cache.tabs");That will remove the cache for all the tabs and it will recache when they click on items.
I have a set of JQuery UI tabs on a given page and have set the cache property to true for them to reduce the number of requests that are issued. I also have a select list outside of the tabs which is used to provide a parameter to the requests that are made to load the tabs.Problem: If the user clicks all the tabs an...
JQuery UI Tabs - Clear Cached Tab
Does your application work with xsp (xsp4 if you are using .net 4.0)? You'll want to make sure that is working before you try configuring the connection to another web server.Does nginx know where to find mono? You most likely have a parallel install and it won't be in the default paths.I use apache, but you may still ...
I am trying to setup ASP.Net MVC 2 application on Linux environment. I've installed Ubuntu 10.10 on VirtualBox, then installed Mono 2.8 from sources. After that I have installed nginx and configure it as recommendedhere. Unfortunately, FastCGI shows me standard error 500 page:No Application Found Unable to find a matc...
ASP.Net MVC 2 on nginx/mono 2.8
No, and the documentation says so quite clearly:The returned C string is guaranteed to be valid only until either the receiver is freed, or until the current autorelease pool is emptied, whichever occurs first. You should copy the C string or usegetCString:maxLength:encoding:if it needs to store the C string beyond thi...
If I'm calling[NSString cStringUsingEncoding:], should Ifree()it once I'm done using it?
Should I free the string returned by cStringUsingEncoding?
I've found my error: I called new wrong: new NoMemory(); The correct way to do is new NoMemory; (without the parentheses) Now it works like a charm, like this: #include <iostream> #include <cstdlib> #include <new> // bad_alloc definition using namespace std; int count = 0; class NoMemory { int array[100000]; publi...
I found this interesting exercise in Bruce Eckel's Thinking in C++, 2nd ed., Vol.1 in Chapter 13: /*13. Modify NoMemory.cpp so that it contains an array of int and so that it actually allocates memory instead of throwing bad_alloc. In main( ), set up a while loop like the one in NewHandler.cpp to run out of memory and...
operator new doesn't return 0 when running out of memory
You need to use the lock statement whenever you are accessing or updating your static cache. The lock statement will block other threads from from executing until it is finished. If you don't do this you might have one thread attempting to loop through the collection at the same time as another thread is removing a ro...
I have a static Cache that at a set time updates a generic list of Objects from a database. It is just a simple static List: private static List<myObject> _myObject; public List<myObject> FillMyObject() { if(_myObject == null || myTimer) _myObject = getfromDataBase(); } I have 2 methods to update my obje...
Static Cache Error
Are you looking for event schedulers in mysql. If yes please look at the following linkhttp://dev.mysql.com/doc/refman/5.1/en/events.html
I'm curious if there's a mysql built-in mechanism for scheduling queries to run at given intervals or if I'm stuck having to use (tried and true) cron for this? If I AM stuck, what's the command for having the command line execute the contents of a sql file? as in...//created file containing some sql query and put it i...
Is it possible to schedule cron tasks in mysql?
I believe there are two problems to be solved and one doesn’t mean you don’t need the other.You can use dbt to go from raw data to relations ready for DS. At that point you can switch to tools and libraries suited for DS and ML.Finally, you will need to deploy that ML model and you will need tools for ML Ops.The reason...
I am building a open source data stack for a large-scale batch pipeline. The data is later to be used in a ML model that is updated quarterly.I want to use Airbyte for ingestion and Airflow for generel orchestration.In general, I want to use modern open source software but I ran into some issues in regards to what to c...
open source data stack - Airbyte, Airflow, ?,?
The{{ template "test.template" }}action executes"test.template"template but does not pass any parameters to it. So insidetest.templatethe pipeline will be<nil>and so.Valuesis invalid.Quoting fromtext/template:{{template "name"}} The template with the specified name is executed with nil data. {{template "name" pipeli...
I'm trying to use a template to pull values from values.yaml, concatenate them into a CSV list. Here's an example of my solution.values.yaml:testValue1: "string1" testValue2: "String2" credentials: - c1: "string3" - c2: "string4"_helpers.tpl:{{- define "test.template" -}} {{- $value1 := .Values.testValue1 -}} {{- $val...
Helm template variables are nil
0 I am not an expert but, from what I read here and there, there's no way to know whether a page is used for DMA or not. Like you said, in the page struct there is the flags field which is an unsigned long. In this flags field, there is the locked bit which tells to Linux t...
I want to track the pages that are/may be used for DMA. I only know a page for DMA is "locked" and its physical position is not allowed to change in the main memory. But how can I tell whether a page is "locked" or not? (using flags in struct page, I guess) Or are there better ways to know whether a page is used for D...
How to know whether a page is/may be used for DMA?
This is possible to do on Kubernetes, but I doubt that this can be easily done on Google Cloud Run. Your game-pod is essentiallystatefulworkload and does not fit well on Google Cloud Run, but you can run this on Kubernetes asStatefulSet.Essentially I would need a custom load balancer and scaling logic.Yes. For this you...
I'm making a realtime multiplayer game and I have an idea on how to structure the backend, but I don't even know if its possible, let alone how to build and deploy it. Basically I want to deploy my backend as a container to cloud run but instead of syncing data through a database common to all instances I want to store...
Custom Container scaling implementation
It sounds like you want to change the git repository remote connections. When cloning on github to your local machine the remote connection in your local git-repo is the "origin" remote. You need to point that to Stash instead of GitHub. Other than that you should be fine.git remote set-url origin "git://your.stash.rep...
There are a lot of Questions on here and the web about Multiple "GitHub" accounts...But I have an issue where I need to use two Git solutions;I need to be working on a GitHub account, already setup and working.We are migrating across to Atlassian Stash, another Git provider, so for the time being I need to work on both...
Git - GitHub account and Atlassian Stash account on a PC
UseSeries.astype:df = pd.DataFrame({'col':[1.456, 53.2368]}) print (df) col 0 1.4560 1 53.2368 df['col'] = df['col'].astype(np.float16)Or:df['col'] = df['col'].astype('float16')print (df.dtypes) col float16 dtype: object
I have a pandas column of float32 numbers, I would like to convert them to float16 to save memory.I tried looking "pandas convert column of float32 to float16" but most of my results were mostly about numpy.
In pandas, how to convert a column of float32 values to float16 values?
Not sure what about gitlab CI, but cron syntax is minute, hour, day of month, month, day of week, meaning job which should run every week day from 6am is0 6 * * 1-5
I was wondering if anyone knew how to create a cron job that runs from monday to friday at 6am.I am using gitlab CI, quickly looked at the example syntax and am not exactly sure how to limit it to occur from monday to friday.
Cron job for every weekday at 6 am
main()should end afterutil.run_wsgi_app(application). The rest of that belongs in your handler class.
I'm in need of setting up a cron job using Google AppEngine which will use urllib2 to execute a web page hosted on another server of mine.I know that the script is executing (checked the logs) but my logging inside my python script never seems to be outputted.#!/usr/bin/env python from google.appengine.ext import webap...
Google AppEngine Python Cron job urllib
Yes, of course APC cache will boost up your cakephp powered application performanceSo let's check your settings from my following instructions and let me know after following the instruction do a benchmark test and tell me the result. You can cache whole your HTML view file in cache with APC cache engine in CakePHP. Ca...
My problem:I am making Apache Benchmark test to see if CakePHP APC engine works. However, if I setup Cake's caching configuration to use APC engine, the cache files with serialized cached data are still being created in tmp folder, which make me think that file caching is being used.I also get no performance benefit: u...
CakePHP: caching with APC still creates cache files, no performance benefit
While VPA itself is a daemon, the pods it controls are just API objects as far it knows and can be anything on any platform. As for compiling a VPA container for Windows, I wouldn't expect any problems, you'll just need to build it yourself since we don't provide one.
I have a Windows Server 2019 (v1809) machine with Kubernetes (bundled with Docker Desktop for Windows). I want to enable Vertical Pod Autoscaling for the cluster I have created.However, all the documentation I can find is either for acloud serviceor aLinux-based system. Is it possible to implement VPA for the Docker De...
How do I implement Vertical Pod Autoscaling in Windows Server 2019?
Twilio developer evangelist here.The Twilio API is available at https://*.twilio.com. There are a few subdomains in use right now, but if you only need SMS messages then the base URLhttps://api.twilio.comshould do you. This is over port 443 as all Twilio API calls are made over SSL.Let me know if that helps!ShareFollow...
We are using the C# Twiliorestful Client for outgoing SMS messages using a C# application. What port/web address to configure for firewall access? Our network only allows specific url/ports to be accessed from the servers.
Twiliorestful API service for outgoing SMS, with restrictive firewall
1 Try using overlay2 as a driver to see if it makes any change. It shouldn't have a restriction on size limit. If your default driver is devicemapper, there seem to be a 10 gb size limit If you are stuck with the devicemapper driver, you can alter the value of the dm.bases...
I encounter an issue with docker. I want to restore a big database in a postgres container but, when I try to restore my sql i have this : ERROR: could not extend file "base/16384/16481": wrote only 4096 of 8192 bytes at block 7873 db_1 | HINT: Check free disk space. Is there a way to increase my container di...
not enough space into docker container when i restore database (postgres)
Fixed my issue by adding in SonarQube, not only the squid:S00119 but also the what file pattern to search for. I only added squid:S00119 and that is why it wasn't enough. You need also to specify what file.
I keep receiving this issue (Build failure) when I add a random exclude in SonarQube.I don't know why this occurs and it still throws a build failure irrespective of what what I exclude.This used to work before I upgraded SonarQube from 7.4 to 7.5.[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-mav...
SonarQube - Unable to load component class
No... though it probably will on most platformsThere's absolutely no guarantee that your code will yield 5. What you have is undefined behaviour, which may result in your program craching. Never rely on undefined behaviour, full stop.
Let's say I'm writing a C program which has: int a = 1; int b = 5; int *p = &a; Will: int k = *(p+1); always give k = 5? Formally: Is this "continuous" property of the variables' address on the stack implementation-dependant? If not, is anything guaranteed (for example &a < &b < &p)? (This simple test using gcc on ...
Does the stack (memory segment) always save variables continuously?
0 This is because in Maven 3.3.1, the mvn.bat file is replaced with mvn.cmd. Please refer to Bug 251213 - new maven command line extension for windows change from .bat to .cmd. So please change mvn.bat to mvn.cmd in your command accordingly. Share Improve this a...
Hi i am new to this Area i did lot of work on this unable to resolve this i am integrating my selenium project i stored in git hub and i want to schedule it from localhost jenkins First i wrote a sample maven project and pushed to git i am configuring jenkins to fetch it from git hub and build on local machine but ...
Jenkins maven git hub integration mvn.bat' is not recognized as an internal or external command
2 As per releases page the newest version is NGINX Ingress Controller 1.8.1 with NGINX version to 1.19.2 on board. On the NGINX Ingress Controller Technical Specifications you can find info that current NGINX Ingress Controller release has been verified to run on the follow...
I'm using Kubernetes 1.17.9 on bare metal, try to install Nginx Ingress Controller. I've checked Kubernetes doc, Github doc, and Nginx doc, haven't find any information about which version of Nginx Ingress Controller should been use for which version of Kubernetes. Is there any pages for that?
Which version of Nginx Ingress Controller is recommend for Kubernetes 1.17
You can kill the gradle proccess stucked:sudo kill -9 <Owner PID>In your case:sudo kill -9 7366
> Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal(). > Timeout waiting to lock journal cache (/Users/mark/.gradle/caches/journal-1). It is currently in use by another Gradle instance. Owner PID: ...
Timeout waiting to lock journal cache with gradle?
It should be the date of the latest docker build run by the image owner, as defined in the image/image.go file, which can be found in the container once the image has been run. You can inspect low-level image info to see its exact value with: docker inspect -f '{{.Created}}' hello-world where 'hello-world' is the nam...
What is the CREATED time exactly when you give this command? docker images It gives the time like 3 months ago, or 9 days ago. Is it the time it was uploaded to docker hub? Even for the locally created images, it shows like 15 minutes ago, while I had created just a minute ago.
What is the created time in docker images command?
client_max_body_sizedefault value is 1 MB.RTM
When I'm trying to upload a file on my server I get this error:413 Request Entity Too LargeWhich ofcourse means my file is too large. So i've done a quick google search and came accross this:open:/etc/nginx/nginx.confEdit:# set client body size to 2M # client_max_body_size 2M;However I don't have that code in my nginx....
nginx / 413 Request Entity Too Large
now I created new repo still i am unable to commitFirst, your error is when you want to push your commits to the remote GitHub repo, not when you commit.You are able to commit: it is a local operation which does not care about the remote repo.But try:cd /path/to/local/repo git remote set-url origin https://github.com/4...
I am using Gitbash to commit my project but I am getting the below error and the repository which I am getting in fatal error is not the remote repository to which I am doing a commit. I want to change this repo$ git push -u origin master Fatal: HttpRequestException encountered. Username for 'https:...
Unable to commit my project to github
You can useRewriteCondlike this:RewriteEngine on # ?debug=1 is present RewriteCond %{QUERY_STRING} (^|&)debug=1\b [NC] RewriteRule (.*) app/webroot/$1 [L] # ?debug=1 is not present RewriteCond %{QUERY_STRING} !(^|&)debug=1\b [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{RE...
Is there a way to make different rewrite rules in.htacessif a certainGETparameter was passed?For example, if query string is:htttp://domain.com/?debug=1, than.htaccessshould look like:<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModu...
Different .htaccess rewrite rules depending on a $_GET param
That means "cast a void* pointer into a int* pointer" - malloc() returns void* and you ask the compiler to treat that void* as if it was int*. This construct around malloc() is only needed in C++ code, and is totally unneeded and even evil in C because it can cause rather subtle yet devastating errors.
what does the (int *) do in the following code? int *ptr = (int *) malloc(10 * sizeof (int)); i'm new to C and i've seen the above code with and without the (int *) so im wondering what it does.
what does (int *) before malloc mean?
The idea behind a Distributed Version Control System (DVCS) like git is to allow check-in/checkout of code from a variety of places. This makes the decision on branching solely one of practicality and not on operating system or other architecture (unless of course your branchesarefor separate architectures or operating...
I'm learning Ruby on Rails and originally was editing and pushing to Github via Windows through the Rails Terminal.I’ve now switched to Fedora and am wondering what the correct method of cloning the original repository is? I’ve readthisarticle which discusses duplicating a repository from Github, but I’m curious if I s...
Git repository on different OS's
It may be a stretch but... There may be.classfiles which IntelliJ compiled from your.javasource code.For example:{main IDEA project DIR}/untitled/out/production/untitled/Main.classWhere "untitled" would be your project name (this is an example with a directory structure under Linux: you'll probably need to adapt for Wi...
My machine crashed while I was developing on IntelliJ IDEA and when I loaded the project again, the main.java file was empty. When I opened the file in notepad++, there were only "NUL NUL NUL NUL NUL" characters. Like this: " "
Is there a way to retrieve a java source file?
Please checkhttp://jenkins_server_ip:8080/configureSecurity/[TCP port for JNLP slave agents]shouldNOTbe [Disable]
root@k8s:/opt/k8s/kubernetes/cluster/ubuntu/binaries# ./kubectl logs jnlp-slave-1c45182a61Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: jnlp-slave-1c45182a61 Aug 16, 2016 6:56:38 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Aug...
jenkins kubernetes jenkins slave node is offline
0 When the back button is clicked, the page is returned to the original state stored in the browser history. Ajax tends to "break" the back button. You could save some a flag in your session to say what content you loaded via ajax on the last view. When the page reloads you...
I am using Jquery Ajax to load more content to my page when user scroll to the bottom of page, like this: $(window).scroll(function(){ if($(window).scrollTop() == $(document).height() - $(window).height()){ $.ajax({ url: /* my url goes here */, cache: true, success: function(html){ /*a...
Caching page after ajax loading
var is 100% syntactic sugar in the C# compiler. When the actual IL is generated, the type is explicitly defined. var-declared variables do not behave any differently from their explicitly-defined counterparts. The dearth of information you're seeing is coming from the fact that var is simpler than you're assuming. The...
Ok, I've been reading everything I can find on var, and I'm pretty sure I've got a handle on their basic behaviors and type inference. I've always been a big proponent of explicit types, so var makes me a little edgy when I'm reading code. So I have a couple of questions regarding its memory usage and the behavior of ...
In C#, how do inferred variables using var behave with respect to memory and lifecycle?
You can use a rule like this:RewriteEngine On RewriteBase / # reucrsion based rule to convert /n1/v1/n2/v2 to /?n2=v2&n1=v1 RewriteRule "([^/]+)/([^/]*)(/.*)?$" $3?$1=$2 [L,QSA]This rewrites a URI like/movies/medium/1/genre/3&age/17/sort/alphabet/page/15to:/?page=15&sort=alphabet&3&age=17&1=genre&movies=medium
I need friendly urls on my webpage and I'm using the htaccess file for that purpose. Actually it's pretty easy, but there are some pages where the url can have multiple optional parameters in no particular order and I can't image how the rewrite rule shpuld look like for those pages.For example, a page to display a hug...
htaccess RewriteRule - Multiple optional parameters in no particular order
My question is...How do I (push?) my corrections to the auth branch and merge it with the master branch? Can I just (merge?) the edited auth branch with the master locally?You push your corrections to the auth branch with this following command (let's pretend the name of your remote repository is "banana"):git push...
I'm very nooby to using git branches with other users so I was hoping for some help regarding a project. My project has 3 branches(master, auth, and dev1). I am the user of the master branch and I recently cloned the auth branch to a local folder and edited it.My question is...How do I (push?) my corrections to the a...
Git Clone Branch, Edit, then Merge with Master
Thank you for your suggestion Val.Thank you Val for your suggestion.The solution was:Resolution with a user having the rights to modify a system index:
Hello,I wanted to upgrade an Elasticsearch/Kibana cluster from version 8.8.0 to 8.8.1.During the update I got an error because the node was 86% full.After enlarging the disk space, the update resumed and completed without error.However, since then I've been getting this error in the kibana logs:cause\":{\"type\":\"clus...
ELK - cluster_block_exception error while upgrading from version 8.8.0 to 8.8.1
Check your migration file, maybe you are usingSchema::table, like this:Schema::table('table_name', function ($table) { // ... });If you want to create a new table you must useSchema::create:Schema::create('table_name', function ($table) { // ... });See theLaravel migration documentationfor more information.If...
while runningphp artisan eventnotification:mailin command, it throws below error"SQLSTATE[42S02]: Base table or view not found: 1146 Table "My appserviceprovider.phppublic function boot() { $rolesList = $this->getRolesList(); View::share("rolesListArr", $rolesList); }My cron job:protected function schedule(Sche...
Base table or view not found laravel - Running scheduler cron
When you request the URI/,nginxwill process two requests.The first request (for the URI/) is processed by thelocation = /block, because that has highest precedence. The function of that block is to change the request to/index.htmland restart the search for a matchinglocationblock.The second request (for the URI/index.h...
When I study about the nginx location configuration, I have some questions.Here is my example.the files structure is like this: test1/index.html test2/index.htmland the nginx.conf location part is like below:location = / { root test1; index index.html; # deny all; } location /...
About priority of nginx location / {} and location = {}
In this case you need hotfix v1.0, but you can't just merge that hotfix to master, because that will commit the hotfix to after tag v1.1. Correct: production2, from now on, must run the hotfix1.0 branch, and you can tag v1.0.1 there (in the hotfix1.0 branch). master only reference major releases, it can't reference ...
Most git branch models are based on the develop/release/master/hotfix model from nvie: http://nvie.com/posts/a-successful-git-branching-model This model assumes you have only one production release, and there's no need to hotfix a previous production version. However, what if you have two productions, one as live, ano...
What git branch model can be used for two productions environment
The answer might be a bit late but:RewriteCond %{REMOTE_HOST} !(123\.456\.789\.101|123\.456\.789\.102|123\.456\.789\.103)works well.
I currently have a wordpress site that is being upgraded and I have a maintenence redirect setup in the .htaccess file.I can allow my own IP access the site and admin but how can I allow multiple IPs access for the other editors to also have access.I'm currently using :RewriteEngine on RewriteCond %{REMOTE_HOST} !...
Allow multiple IPs to access Wordpress Site Admin via .htaccess
you should be running one of the below commandmaster $ kubectl get statefulsets NAME DESIRED CURRENT AGE web 4 4 2m master $ master $ kubectl get sts NAME DESIRED CURRENT AGE web 4 4 2m number of running pods --------------------- master $ kubectl describe...
I am trying to autoscale my StatefulSet on Kubernetes. In order to do so, I need to get the current number of pods.When dealing with deployments:kubectl describe deployments [deployment-name] | grep desired | awk '{print $2}' | head -n1This outputs a number, which is the amount of current deployments.However, when you ...
How to get number of replicas of StatefulSet Kubernetes
Just replacing raw pointers with smart pointers typically doesn't solve anything. You have to design the software to use either effectively. It sounds to me like the library wasn't designed at all, which means that there's probably no way to make it work correctly short of rewriting it completely. If the library obj...
I'm trying to correct memory leaks in a "library" and am unsure how to go about it. Should I use C++11's unique_ptr? shared_ptr? weak_ptr? Foo& bar() { Foo* ptr = some_pointer; ptr = new Foo(); return *ptr; } I've looked up the differences between them but am still unsure which I should use, or whether or...
Should I convert a library with memory leaks to C++11's smart pointers?
What you are doing should work, but I think you're running into this known bug:https://github.com/istio/issues/issues/37
I'm trying to use Istio in a K8s 1.6 cluster on AWS.I have a Kafka pod/service running the old fashion way, with a "kafka-zk-broker-kafka.dev" service without IP, so the kafka-zk-broker-kafka.dev service (I'm in the dev namespace) resolve to the internal name of my 3 Kafka pods. This is working great.~ # nslookup kafka...
K8s istio enabled pod can't reach regular services
A workaround would be to create a public repo, composed of:empty commits (git commit --allow-empty)each commit taggedeach tag with a releaseeach release with the deliveries (the binaries of your private app)That way, you have a visible repo dedicated for release hosting, and a private repos for source development.
I have an application which is in a private github repo, and am wondering if the releases could be made public so that the app can auto-update itself from github instead of us having to host it.Additionally I'm wondering if it's possible to use the github api from the deployed app to check for new updates.
Can I make releases public from a private github repo?
Finally, could solve it... rewrite ^([A-Za-z0-9-]+)/?$ ir.php?id=$1 last; To rewrite ^/([A-Za-z0-9-]+)/?$ /ir.php?id=$1 last;ShareFollowansweredDec 22, 2013 at 1:30bachobacho7911 silver badge66 bronze badgesAdd a comment|
This is the Htacces rule:RewriteEngine on RewriteRule ^([A-Za-z0-9-]+)/?$ ir.php?id=$1how should I pass it to a Nginx compliant rewrite rule... i read the doc and did this:rewrite ^([A-Za-z0-9-]+)/?$ ir.php?id=$1 last;But didnt work. and another question: Is there any equivalent of .htaccess to Nginx (per directory rul...
How do i convert this Mod_rewrite rule to nginx
In order to query fields of elements within an array, you would need toUNNESTit first. Assuming that structurearray<struct<expand:string,id:string,name:string>>corresponds to columnmembers, you would need to doSELECT * FROM people_s3_buckets, UNNEST(members) as t(member) WHERE member.name = 'rick'Note, ...
I crawled data using aws glue to import json data from an s3 folder that contains data where the root braces is an array like this:[{id: '1', name: 'rick'},{id: '2', name: 'morty'}]This ends up resulting in a schema like this:array<struct<expand:string,id:string,name:string>>How do I query bynamein Athena?If I try thi...
AWS Athena: Querying by an attributes of a struct with an array
Track all remote git branches as local branchesfor i in `git branch -a | grep remote | grep -v HEAD | grep -v master`; do git branch --track ${i#remotes/origin/} $i; doneIt's wrong terminology. It's tracking remote branches as local.
What would be a reason forgit fetchgot fetching remote branches?How do I check out a remote Git branch?All I do is rungit fetch- I then seeC:\site\blog>git fetch *masterI expect to see something like:C:\site\blog>git fetch *master origin/branch1 origin/branch2git fetch doesn't fetch all branchesI run the command in...
git fetch not fetching remote branches - how to fetch all remotes
Make sureAlways ONis enable on your function app if you are not on consumption plan.ShareFollowansweredJan 31, 2019 at 10:41KetanKetan1,55088 silver badges1616 bronze badges3Pardon me for my lack of knowledge. Where can I find this "Always ON" setting ?–KumarJan 31, 2019 at 14:341(Dedicated hosting plan only) In your F...
As per Function configuration, it has to fire every 5 minutes but the function is not triggered at all.It does trigger if I change it to seconds configuration 0/45 * * * * *.@FunctionName("TestFunction") public void TestFunction( @TimerTrigger(name = "req", schedule = "0 */5 * * * *") String timerInfo, Ex...
Time Triggered Java Azure Function is not working for CRON in minutes 0 */5 * * * * or other step minutes
was also running into this issue. Turns out my authorizer had caching enabled which meant it would reuse the same policy previously generated. The TTL of the cache defaults to 5 minutes. On the dashboard, you can access the authorizers and disable the caching to stop this from happening or change the policy being gene...
I'm new to AWS API Gateway and Lambda and I am wondering if anyone could help? I generate an access token using Auth0 and it works on postman returning all of the correct JSON data for the first lambda function call When I call the second lambda function on postman it says that the user is not Authorised for this ...
AWS User is not authorized to access this resource
The problem was related to the server I was pointing to. Bottom line, my bad.
I am unable to get a successful connection to my GitHub repository from my TeamCity configuration. When I perform a "Test Connection", I get the message; Test connection failed in ***** :: Pull-Build-Test. List remote refs failed: com.jcraft.jsch.JSchException: session is down. From the teamcity-server.log I get: W...
TeamCity to GitHub Connection Error: session is down
Unless you forced a pull you should have been asked by git to commit or stash any changes, so you should be able to revert back to that commit, or unstash what you stashed. If you forced a pull or rebase with uncommited and changes not push to remote branch you are not using git correctly and I suggest reading through...
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 last year. Improve this...
Is there a way to revert changes that git made to my local files? [closed]
After some searches I found a working solution.I have to add the following lines to my/etc/nginx/nginx.conf:http { ... fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; ... }Dont forget to edit with root rights withsudosudo nano /etc/nginx/nginx.confAnd then restart nginxsudo /etc/init.d/nginx restartSour...
My Homestead Vagrant virtual machine is returning me a502 Bad Gatewayinstead of a Laravel Whoops error for some PHP errors (like class not found, some kind of parse errors etc ...).Does someone have the solution for briging Whoops for all PHP errors ?I could get the error reading manually/var/log/nginx/.app-error.logli...
Homestead 502 Bad Gateway instead of Whoops for PHP errors
2 Looks like this just took time to propagate. I tried again +- 24 hours later and the dropdowns now seem to be properly poplated. Share Improve this answer Follow answered Jul 26, 2019 at 7:06...
I'm trying to set up GitHub deployments for an ASP.NET Core web application in Azure App Service Deployment Center. I'm stuck at the step where I'm supposed to select my GitHub organization - the dropdown is empty: The help says to check Azure App Service permissions on GitHub. However everything looks fine in my Git...
Unable to select GitHub organization in Azure App Service Deployment Center
I'm assuming 'Oauth2 Server' in your question means the thing that validates tokens. You don't state if your app is actually issuing tokens, or what type of tokens are issued.Best option is probably subjective, but my preference has always been to use Custom Authorizers, as this is then a re-usable component for other ...
I’m planning on building a user management Java API and deploy it in Wildfly. The API specification will be done using Swagger.Then I will create a Docker image with the Wildfly + application and then create a container from that image on AWS ECS (EC2 Container Service).The next step is to import the API’s Swagger spec...
AWS API Gateway + AWS ECS + OAuth2 Password Grant
It not supported; only one k8sm scheduler should talk to mesos master. One option is to use Marathon to manage k8sm-xxx daemons, it will re-start k8sm master for failover.
EnvironmentMesos: 0.26 Kubernetes: 1.3.0Anyone out there using Kubernetes-Mesos framework?Kubernetes-Mesos Question: Does current Kubernetes-Mesos support Kubernetes in HA configuration ? Having multiple Kubernetes masters talking to leader.mesos ? I tried to use it but I've got the following error on my secondary kube...
Kubernetes-Mesos in HA Configuraiton
I was getting the same but when I ran the following the metadata showed up:gcloud beta container node-pools create [NODEPOOL_NAME] \ --cluster=[CLUSTER_NAME] \ --workload-metadata-from-node=EXPOSEDHowever, you will only getcluster-namefrom the metadada. For example,root@workload-identity-test:/# curl "http://metada...
I'm setting up a new K8S Cluster (1.13.7-gke.8) on GKE and I want the Google cloud logging API to report properly namespace and instance names.This is executed in a new GKE cluster with workload-identity enabled.I started workload container to test the access to metadata service and these are the results:kubectl run -i...
Instance attributes are not available in metadata
I think ssh-agent can only handle one ssh key per session, so it is necessary to run ssh-add -D to drop all the keys first, and then add the key you want to use with: ssh-add ~/.ssh/<rsa-key-file> If your ~/.ssh/config looks like the following: # personal Host github.com HostName github.com-personal User git ...
Now I am trying to use my personal account to push code to my personal repo. However, my current laptop also has set up my company git account. That's why I tried to set up different account in terminal. However, after trying various video, including this one https://www.youtube.com/watch?v=fnSRBRiQIU8. I still get th...
Remote: Permission to repo denied at github
Git will not make a merge if it does not have to. If you merge two branches, but only one has changed, Git will "fast-forward". Instead of merging, it will just move the branch label. For example, let's say you worked on a branch but did not work on master. A - B [master] \ C - D [feature] Now you git chec...
Q1) If in future I want to check from which branch the commits changes (that branch deleted not present), How can I check ? Q3) I have one more problem that problem is when I merged branch to master that content merged, commits also there but that commits from merged branch that now showing for some merged branch , Wh...
How can I check which commits from which branch after merging to master and from where merged that was deleted?
You can add a delay to the evaluation of the function by adding single quotes around it.i.e. yourPROMPTshould be likePROMPT='%{$fg[white]%}$(kube_prompt) ${git_info}'This will delay updating of the variable long enough so that effect of the command that you run is captured.This is how I have configured it in my.zshrc:k...
I have this function in my zsh configuration :local kube_prompt() { kubectl_current_context=$(kubectl config current-context) kubectl_cluster=$(echo $kubectl_current_context | cut -d '_' -f 4) kubectl_prompt="⎈ ($kubectl_cluster)" echo $kubectl_prompt }And I call it by this way :%{$fg[white]%}$(kube_prompt...
How to show cmd at each ZSH shell line?
Go to Manage Jenkins->Manage Nodes. You can chose one of these nodes as your agent. Take the string from the column "name". If the name of one of your nodes is for example "master" you can write: pipeline { agent { label 'master' } ... }
I am trying to run a Jenkins pipeline and I just keep getting the error: Jenkins doesn't have label 'linux' Any idea why this is happening? Is it a plugin I am missing? pipeline { agent{ label 'linux' } stages { stage('Checkout Code') { steps { checkout scm ...
Jenkins doesn't have label Linux
You can use the "sonar.inclusions" property, like describedin the documentation.For instance:sonar-runner -Dsonar.inclusions=src/main/java/com/foo/MyClass.java
Is there any way to scan a single java file using sonar runner.By default all the java files in thescr. I do not want to exclude all the other files by writing a exclusion. Rather I would like to include only a single file for analysis.
Scanning a single file using sonar runner
You can map local volumes to docker -v local_path:container_path. If you gonna use kubernetes you can use ConfigMap as well.
I'm working on a dotnet core docker container (not aspnet), I'd like to specify configuration options for it through appsettings.json. These values will eventually be filled in through environment variables in kubernetes. However, for local development, how do we easily pass in these settings without storing them in t...
How do I pass in configuration settings to a docker image for local development?
+50According tohttps://code.visualstudio.com/docs/setup/network, the solution is to edit the system certificate store:Since Chromium uses the OS's certificate trust infrastructure, the preferred option is to add your proxy's certificate to your OS's trust chain.This means that your answer is OS-dependent:Windows: Power...
Currently, the only way to use VSCode get around a corporate firewall that requires company CA certificates is to set "http.proxyStrictSSL = false" in the config. This is a no-go for me at work. I know that VSCode uses the Chromium networking stack, so there is a way to modify the certificate store when building VSCode...
Is there a way to modify the VSCode certificate store to add certificates?
You can put this code in your htaccess (in root folder)RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.tld$ [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
I want this:domain.tld to www.domain.tldAnd other subdomains: sub.domain.tld without redirect to www.sub.domain.tld
htaccess: non-www to www but only when no subdomain is set
As the IP address is in the first line of /etc/hosts, you can do in a container the awk command that prints the first word of the first line of /etc/hosts$ awk 'END{print $1}' /etc/hosts 172.17.0.14
How to get container ip address inside this container?'docker inspect $hostname ...' not suitable, because I don't share /var/run/docker.sock host file to container.
Can I get ip address inside my docker container?
mod_rewritedoes not match the querystring in the first parameter of aRewriteRule. You will need aRewriteCondinstead. Also, when using rewrite rules in.htaccessthe leading/is not present when matching in theRewriteRule.RewriteCond %{QUERY_STRING} id=([^&]*) RewriteRule ^cat/subcat/$ /cat/subcat/%1 [L,R=301]The%1is the...
I have a problem i can`t seem to solve. I need to redirect (change/make seo friendly) ,using my htacces file, the following urlfrom:http://www.domain.com/cat/subcat/?id=textto:http://www.domain.com/cat/subcat/textCould you please help met with this as noting seems to work.
htacces redirect question
I need internet facing load balancer (with instances in public subnets) as the origin for a CloudFront distribution.Part of this is incorrect.CloudFrontdoesrequire that the origin server be internet accessible, so that part is correct.But an Internet-facing load balancerdoes notrequire that the instances behind the bal...
I am hosting one web application on the private subnet instances as the application is for the organisation's internal users across different geo location. This application needs AWS CloudFront support for delivering static contents more efficiently. Problem is - I need internet facing load balancer (with instances in ...
AWS Cloudfront for internal elastic load balancer origin
If you want to share an RDS instance between multiple applications, the best thing to do is set that up independent of your beanstalk application.Set up privs for each application and configure each application to use the RDS instance.You will probably have to manually configure your application security group to acces...
When creating an application in Amazon Elastic Beanstalk, you have the option of creating a new Amazon RDS database instance. Is it possible to associate an existing RDS database instance with an Elastic Beanstalk application?
Amazon Elastic Beanstalk: Can multiple applications share a single Amazon RDS database instance?
4 There are a couple of ways you could do this. Firstly you could create a common abstract base class that inherits from models.Model and overrides save to do the cache clear, then make all your models inherit from that. Another way might be to use signals - the pre and pos...
Hopefully somebody knows a simple way to do this. Is it possible to run the cache.clear() function on every save to any model? I know Django docs show you how to implement per model, and overhead isn't an issue. I would like to clear the cache each and every time a change is made.
Adding cache.clear() to global save in Django
The official docs: Organization.create_repo You can set private parameter to True repo = user.create_repo(folderName, private=True)
I figured out how to create repository on Github using PyGIthub by this method: import sys from github import Github g = Github('AryanshMahato', 'GITHUB_PASSWORD') user = g.get_user() repo = user.create_repo(folderName) But in this case PyGithub creates a public repository. How can I create a private repository usi...
How to create private repository in Github using PyGithub
Windows could change that drive letter assigned to your USB drive. The correct way to do this backup is mounting the USB drive in an empty directory. Not only does it add some consistency to swapped storage, it also allows for a persistent shortcut on a Windows desktop. That's how to: Run "diskmgmt.msc" from Windows'...
I am writing a PowerShell script that will back up several folders from my Vista drive to an external USB drive, using robocopy. Windows does not guarantee that it will always assign the same drive letter to the external drive. What is the best way to get around this problem? How do I code the destination paths? Thank...
External Drive Letter - Backup
All the information including the pod metadata is stored inetcd. etcd is a strongly consistent, distributed key-value store that provides a reliable way to store data. So that means you are supposed to have strong consistency.
In k8s, users can modify pod description information or meta through http api. In the case of high concurrency, whether the update of Pod description information can ensure global consistency?
whether the update of Pod description information can ensure global consistency?
Do you want to version control your files or just have access to the same files in both places? It is a good idea to use version control as a developer, whether you're writing code or designing websites. But, to do so, you have to have a commitment to learning how version control systems work, since they all have som...
I work mainly on a desktop Mac but also have a laptop Mac that I use when away from the office. I want to access and work on my latest html, css, php and python files from either computer. I thought Github was the way to do this but am having a problem understanding the "flow" and I've RTFM! I don't understand whether...
How do I use Github to access the same project files from different computers?
I'd think changingwww-datas userid to your host-user's id is a good solution, as permissions for the host user are fairly easy to setup.#change www-data`s UID inside a Dockerfile RUN usermod -u [USERID] www-datauser id 1000 is the default for most linux systems afaik... 501 on macyou can runid -uon the host system to f...
I have a symfony setup for docker with docker-compose which is working well except when i runcache:clearfrom console, the webserver cant access the files.I can circumvent the permission problem by uncommentingumask(0000);in console and web/app_dev.php but i would like to run symfony as recommended.What i do is spin up ...
symfony docker permission problems for cache files
Ay,As what I know you can't. Your containerized application write logs to stdout and/or stderr. These are then catched by Kubernetes.It's the application responsibility to produce logs with info, error, etc... informations and format them to allow them being usable by an external logs tools like StackDriver (it's an ex...
when i givekubectl logs <pod-name>it give logs of the pod whose level is set toinfohow can i change this log level(both before Deployment and after deployment)?
How to change the log level of a kubernetes pod?
This isn't actually being caused by differing heap implementations - the MSVC std::string implementation doesn't use dynamically allocated memory for strings that small (it uses the small string optimization). The CRTs do need to match, but that isn't what bit you this time.What's happening is that you're invoking unde...
I have some trouble figuring out why the following crashes (MSVC9)://// the following compiles to A.dll with release runtime linked dynamically //A.h class A { __declspec(dllexport) std::string getString(); }; //A.cpp #include "A.h" std::string A::getString() { return "I am a string."; } //// the following compil...
Why does this program crash: passing of std::string between DLLs
You could use variables in your POM and pass them when calling maven. You should store the credentials in jenkins credentials managere.g.:... ${DOCKER_REGISTRY}/${project.artifactId}:${project.version} ... org.springframework.boot spring-boot-maven-plugin ${DOCKER_IMAGE_NAME} true ${DOCKER_REGISTRY_USER} ${DO...
I want to create docker images with CI/CD (Jenkins) of my spring boot application and push the image to a private nexus docker registry. How to avoid adding my docker credentials to POM file and have them in GIT? Where should I pass/place the credentials instead?Or should I just push the image manually in jenkins withd...
Remove private docker registry credentials from Spring Boot POM file
Running Grafana or any of it’s components in another React/Angular/... application is not officially supported. One common way to accomplish it is to embed an existing Grafana instance in an iframe. You’d then be able to set up a dashboard to use streaming.But you can make you custom component and trigger DB. For make ...
I’m new in grafana,I build a dashboard with grafana and I would like to know if I can embed my grafana dashboard into my angular application. I will really appreciate if someone can share with me any tutorial that explains how to do it. thank you in advance.
Embedding Secure Grafana Dashboard to Angular Component
As documented athttp://docs.sonarqube.org/display/SONAR/Deprecated+Plugins, the switchoff and quality-index plugins are deprecated since SonarQube 4.0. They should be uninstalled. To avoid such errors, it's recommended to browse the administration page named "Update Center" before upgrading plugins and SonarQube.
SonarQube upgrade from 4.3.2 to 5.1 fails withINFO web[o.s.j.s.AbstractDatabaseConnector] Initializing Hibernate ERROR web[o.s.s.ui.JRubyFacade] Fail to upgrade database org/sonar/api/rules/ViolationFilterList of pluginssonar-findbugs-plugin-3.2.jar sonar-python-plugin-1.5.jar sonar-build-breaker-plugin-1.1.jar...
SonarQube upgrade 4.3.2 -> 5.1 fails