Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
You might try adding the following line in your csproj file:<UseWPF>true</UseWPF>This line instructs the build system to incorporate the WPF targets, which are necessary to create XAML files.I have build the XAML WPF app successfully, Refer below:-My yaml code to build XAML WPF app withdotnet build:-trigger: - main po...
I have an Azure DevOps build for a new class library project which is building correctly (.NET Framework 4.6.2).I have added some XAML files from another project via Visual Studio and it displayed an error "InitializeComponent does not exist in the current context". I found that if I changed the XAML file property Bui...
Azure DevOps build fails for XAML files
When you have anio.vertx.core.http.HttpConnectionyou can write:connection.sslSession().getPeerPrincipal().getName()
I am using Vertx framework for my API and have enabled https on it successfully.For user authentication/authorization, I wan't to use client certificates i.e. who can access which APIs. The flow will:When a client makes a API hit, it presents its certificate to Vertx server. This certificate should contain username as...
extract the user principal from client certificate in vertx
0 Assuming that your slurm.conf file correctly lists RAM as a consumable resource (for example, SelectTypeParameters=CR_CPU_Memory), the issue probably is not Slurm related, and most likely has to do with your OS not wanting to allocate that much memory to a single task. Th...
I'm new to Slurm. Below, I want to execute a Python file, which requires 92.3GiB. I assigned 120GB but my code still returns memory error. submit_venv.sh #/bin/bash #SBATCH --account=melchua #SBATCH --mem=120GB #SBATCH --time=2`:00:00 module load python/3.8.2 python3 1.methylation_data_processing.py Run script usin...
How to allocate memory in SLURM?
On FreeBSD it's in kilobytes, as evidenced by the source in kern_clock.c: /* Update resource usage integrals and maximums. */ MPASS(p->p_vmspace != NULL); vm = p->p_vmspace; ru = &td->td_ru; ru->ru_ixrss += pgtok(vm->vm_tsize) * cnt; ru->ru_idrss += pgtok(vm->vm_dsize) * cnt; ru->ru_isrss += pgtok(vm->vm_ssize) * cnt;...
getrusage returns a struct containing long ru_maxrss; /* max resident set size */ What are the units of ru_maxrss, on BSD operating systems? Is this value in bytes, or in kilobytes? By "BSD", I mean FreeBSD, OpenBSD, but not Mac OS X / Darwin. The FreeBSD man page and OpenBSD man page say the units are in kil...
Units of `ru_maxrss` on BSD?
RawGitserves raw files directly from GitHub with proper Content-Type headers.Or, consider usingGithub Pages
Can I use a styles.css file uploaded on GitHub as styles for multiple projects? I'm trying to define a default style for my projects here:https://raw.githubusercontent.com/GhitaB/default-design/master/styles.cssI prefer to link this file instead of copying it in multiple projects.
Styles from a github css file
The error messages comes from the parsing API that VisualEditor's own PHP backend is sending a request to. There might be something wrong with how the URL is specified (e.g. you are usinglocalhostinstead of the domain which is in the certificate), the web server might be configured incorrectly (you can check with some ...
I upgraded my MediaWiki to 1.35 and want to use the VisualEditor. Problem is the error below, when I click on the edit button:Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OKIt is a private wiki, running behind an apache reverse proxy with an Letsencrypt S...
Get an SSL error when accessing VisualEditor for MediaWiki
After a few attempts and thanks to jitpack support now I can import my library hosted in Github as a Android Gradle dependency.I will provide a a few very useful links:How setup your java libraryhttps://jitpack.io/docs/BUILDING/#gradle-projectsHow check logs of your dependency in jitpackhttps://jitpack.io/com/github/US...
I have aGithub repoand pushed tags on it.This is my gradle file of my main project.apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "dropbox.ric.es.myapplication" minSdkVersion 16 targetSdkVersion 23 ...
jitpack.io failed to resolve github repo
For custom runtimes, you are billed for the init time as well as mentioned in thedocs-"Initialization counts towards billed execution time and timeout. When an execution triggers the initialization of a new instance of your function, you can see the initialization time in the logs and AWS X-Ray trace."548.98 ms (functi...
I am testing applications with two different runtimes: node.js and java native executable (ahead of time compiled with GraalVM).Here are the startup logs.Node.js:Duration: 556.31 ms Billed Duration: 600 ms Memory Size: 128 MB Max Memory Used: 81 MB Init Duration: 365.44 msNative executable:Duration: 548.98 ...
Why AWS lambda billing differ for different runtimes?
You should useRulesDefinitions. If rules are declared in a XML file with the standard SonarQube format (seeRulesDefinitionXmlLoader), then it can be loaded by using :public class MyJsRulesDefinition implements RulesDefinition { private final RulesDefinitionXmlLoader xmlLoader; public MyJsRulesDefinition(RulesDe...
I am building a language plugin for sonarqube version 4.3. Currently I am unabl to add new repository for rules.In previous version there was AnnotationRuleParserto parse the rules. what is in version 4.3 ?please tell me how to create a new repository and add rules to it in sonarqube version 4.3 .Thanks !
How to create rule repository and load it with some checklist rule in sonarqube 4.3?
The domain you're using for this URL is incorrect. Instead ofraw.githubusercontent.com, you're trying to access the domainraw.githubusercontent.com.x.912eb622002e804d2d0bc98027f64e5bb4af.9270fa5c.id.opendns.com, and this is not allowed by GitHub's Content-Security-Policy header.In all likelihood, you're on a network w...
SO Community,I use embedded images (icons, screenshots, etc.) in my GitHub repo READMEs and noticed today that all my images are now broken when they were previously working not that long ago (about a week or so). Some developer friends' repos are showing the same symptoms and browser console errors:Refused to load the...
GitHub README Images Broken - "violates the following Content Security Policy directive: "img-src 'self'"
2 Your Nginx configuration looks correct. You can use sudo nginx -Tto print the currently loaded configuration. Make sure you are reloading the configuration after making changes sudo nginx -s reload You can simply check if your server-block will be reached with this config...
I have a python flask program which is running on my local windows pc perfectly. When I send a request with postman it works fine. Then I published it on my linux server. My application service "systemctl status service" output was like in the below: Then I changed my code. My now it seems fine: But when I send a r...
Nginx 400 Bad Request with Python Flask on Linux Server
memorytype is significant only when you @synthesize your property accessors. Since you are providing your own implementation for both the getter and the setter, the things you put in parentheses after @property are ignored; I usually put readonly or readwrite there, just to remind myself of what kind of access is avai...
This is for an app that allows users to tag things. Tags are just strings. An array of TagHolder objects holds a list of all tags in use in the app, with a boolean telling if the tag is selected, but this is an implementation detail. The external interface calls for two methods, selectedTags, and setSelectedTags: whic...
Memory semantics of a computed array property?
If you didn't push the branch to the remote, you can simple delete it locally: git branch -d my_branch Note: git will refuse to delete the branch if you have not merged it into its upstream or the current branch, to save you from losing the commits in the branch. If you are certain you do not need the commits, you c...
I made a local branch, but then realized that I do not need it. If I delete it from the local repo, will I have to delete from the remote, too? I just made that branch and did not add, commit or pushed anything into it - in short I did not do anything in it.
Deleting a local Git Branch that was never pushed - delete it on the server, too?
RewriteCond %{QUERY_STRING} (.+?)\?.* RewriteRule (.*) /$1?%1 [L,R=301]note (.+?)ShareFollowansweredJul 29, 2011 at 12:32genesisgenesis50.6k2020 gold badges9696 silver badges125125 bronze badges1will do (why cant we just write short comments like this when appropriate :()–Pjn2020Jul 29, 2011 at 12:39Add a comment|
I have this rewrite condion and rule which when a question mark is encountered in the query string removes everything after it. It works well for query strings like this:?route=product​/product&​product_id=158?​ax13g76hit returns this:?route=product​/product&​product_id=158Which is what i want. However if the query str...
Mod_Rewrite - how to modify so that all characters are removed?
2 Newbie? First, make a backup. cp -r your/repo/dir your/repo/dir.bck Use git branch -d branchname to delete the branch with name branchname You can lookup a detailed manual with git branch --help This will say -d, --delete Delete a branch. The branch must be fully merg...
I am new to Git , in my project they are currently using git . So i am not sure on my Name how one more duplicate branch got created , it might be by me that i am not sure . Now I need to remove the duplicate branch which git created which out disturbing the main branch and the sub branch . Any help !!!
How can we remove duplicate branch from GIT
For Handling Merge Conflicts Do This:If you prefer a clean commit history, use rebase:git fetch origin git rebase origin/mainIf you prefer a merge commit, use merge:git fetch origin git merge origin/mainNow push changes to the branch usinggit push origin <your-branch-name>For Managing Pull Request Issues Try This:To ke...
How can developers handle merge conflicts in GitHub when multiple users are working on the same file? How can developers effectively manage and resolve pull request issues on GitHub?I have not found related answers anywhere
How can developers effectively manage and resolve pull request issues on GitHub?
Found the solution:Go to your Route 53 and add an A entry with Alias Target to the ALB. Important: Add a subdomain in the name field: e.g. api.example.eu.That's it :)ShareFollowansweredApr 30, 2020 at 11:26Sam_SteSam_Ste38422 silver badges1616 bronze badgesAdd a comment|
I have the following setup:React.js App on Cloudfront (example.eu) -> Certificate for *.example.eu and example.euFargate Python FastAPI instance on port 5000Load Balancer internet facing http://***.eu-central-1.elb.amazonaws.com/I can visit my websitehttps://example.eujust fineSo in my front-end I defined the Load Bala...
AWS secure Cloudfront to ALB to Fargate communication
You are using Test Invoke feature from console which has a timeout limit of 10 seconds. But, the deployed API's timeout is 30 seconds as mentionedhere. So, that should be good enough to handle Lambda cold start case. Please deploy and then test using the api link. If that times out because your endpoint takes more than...
Since Api Gateway time limit is 10 seconds to execute any request I'm trying to deal with timeout errors, but a haven't found a way to catch and respond a custom message.Context of the problem: I have a function that takes less than 2 seconds to execute, but when the function performs a cold start sometimes it takes mo...
Catching timeout errors in AWS Api Gateway
4 The problem I was running into was related to permissions. The .aws files have very restricted access on my machine, and the default user within the sbt-native-packager image is daemon. This user does not have access to read my files when mounted into the container. I a...
We have some docker images we build with sbt-native-packager that need to interact with AWS services. When running them outside of AWS, we need to explicitly provide credentials. I know we can explicitly pass environment variables containing the AWS credentials. Doing this complicates keeping our credentials secret. ...
Can I provide AWS credentials via mounted directory to local Docker container built by sbt-native-packager
You can try this:map $lang $locale { en en_GB; es es_ES; } server { root /var/www/example.com; index index.html index.htm index.php; server_name example.com; rewrite ^/(?<lang>en|es)(?<suffix>/.*) $suffix?lang=$locale; location ~ \.php$ { include snippets/fastcgi-php.c...
I have recently localized my php webpage with Gettext in a VPS running LEMP Debian 10 (PHP 7.3.27-1~deb10u1). The localized versions of the pages have the following URLs:example.com/index.php?lang=es_ESandexample.com/index.php?lang=en_GBand so on.I am trying get Nginx to rewrite the URL requests to fake folders in the ...
Nginx URL rewrite for language parameters
according to this default log format is: log_format combined '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; so 187 or 0 after the response code is number of bytes sent to client
Hi I got nginx access log file like the follows: 192.168.1.1 - - [06/Nov/2012:22:13:46 +1100] "GET /?i=a HTTP/1.1" 404 187 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1" 192.168.1.2 - - [06/Nov/2012:22:13:50 +1100] "GET /?i=b HTTP/1.1" 200 0 "http://abc.com/545512565475443/" "Mozilla/...
nginx log http status what is 404 187
Yes, since you are using properties so setter method will take care of releasing memory allocation.It will allocate memory as follows: -(void)setValue:(NSString *)strValue { if(string) { [string release]; string = nil; } string = [strValue copy]; }
For some reason I can't use arc, so in my code below.. Foo.h @interface Foo : NSObject @property (nonatomic, copy) NSString * string; @end Foo.m @implementation Foo @synthesize string=_string; - (void) bar { self.string = [NSString stringWithFormat:@"test1"]; self.string = [NSString stringWithFormat:@"tes...
Is only one release is needed in my Objective C code?
I've access the /etc/hosts within the Minikube cluster via minikube ssh and returnsThat may be true, but for the same reason kubernetes does not expose the/etc/hostsof its Nodes, nor will minikube do the same thing. Kubernetes has its own DNS resolver, and thus its own idea of what should be in/etc/hosts(docker does th...
Is there anything wrong with how I am trying to configure my Minikube cluster in a way the pods can access the PostgreSQL instance within the same machine?I've access the/etc/hostswithin the Minikube cluster viaminikube sshand returns:127.0.0.1 localhost 127.0.1.1 minikube 192.168.99.1 host.minikube.inte...
Accessing local PostgreSQL instance inside Minikube
+50As far as I know, you can't fix the mentioned issue with Nginx and Wget, you should write script to modify generated links, maybe sed or python script. I think the better solution is to usesimply-staticplugin.
I have download a full wordpress website with below command:wget -r --convert-links --no-parent website_urlI want to server this site withnginxbut there is a problem.some of files has an invalid names with version likejs_composer_front.min.js?ver=6.0.5andnginxthrow 404. how can I solve this problem?
serve assets file with invaid names with nginx
After beating my head on various combination of wget flags involving either:--post-data; or--user=with and without--pasword=as well as vice versa; or--header="Authorization: token <token>"I looked back at the documentation and found that there are alternative endpoints inreleases API. Looks like firstly I just cannot u...
I have an embedded system where I cannot install anything and the only tool I could potentially use to fetch something is wget. It turns out you cannot do the same things with wget that you can with curl. I cannot cross-compile for this system either, so I need to resort to Python or shell scripts. There pure-Python im...
Downloading a tarball from github without curl
First create custom management command like:class Command(BaseCommand): commands = ['sendreport',] args = '[command]' help = 'Send report' def handle(self, *args, **options): ''' Get completed sessions, send invite to vote ''' reports = Log.objects.filter(date__gt=datetime.today(),date__lt=(datetime...
I want to know how exactly I can schedule a report to be generated and sent out as email of the visitor details log table on a daily basis at a particular time. The visitor details like name, in and out time, purpose of visit needs to be sent out as an email. Using django 1.6.5 on linux.I am aware of cronDjango - Set U...
In django How to schedule a daily report to be sent out as email
Technically, this is allowed byRFC 2818(and others) but is not well supported in practice.For example,openssldoes not support it at all and you are likely to run into issues with both clients and servers.Instead, you should put the list of hosts in the Subject Alternative Name extension.ShareFolloweditedOct 7, 2021 at ...
We have a host where there are multiple websites running : webex1dev webex2dev webex3dev webex4devow we have to create a certificate for all these websites. Will the sites work on ssl if we request a new certificate with CN as webex*dev?
SSL Certificate with wildcard in common name
1 To use --release to have to set up the key store and signingConfigs on android. That was done? I've and app setup with Actions and kind-of-work (it fails because the app is using flutter dev channel and the image of actions use stable). Try first using 'build apk --debu...
I have a flutter project and am trying to automate using github actions. I want to create the apk as soon as I create a new tag and save the apk to it. Can someone help me? on : push name: build and test app jobs: build: name: install dependencies runs-on: ubuntu-latest steps: - uses: actions/checkou...
Automate flutter workflow using github actions
You would definitely have to use a StatefulSet for this, and I don't think you can pull it from the DownwardAPI because the replica count isn't part of the pod spec (it's part of the statefulset spec). You could get the parent object name and then set up a service account to be able to query the API to get the replica ...
My first thought was using thedownward API, but that doesn't seem to expose the scale of a deployment / statefulset. I was hoping to be able to avoid adding it in as a separate environment variable manually, or having to rely on pods all discovering each other to determine the scale if possible.Use-case: Deploying many...
How to expose the scale of a deployment or statefulset to the pods in it?
try this:keras.backend.clear_session()
Sometimes I have to kill my python application which use GPU with Keras or Tensorflow and after that I can't run them anymore. This is probably because GPU is still used by something.How to free GPU by force without machine reboot?I tried the following shell script$ cat ~/bin/nvidia-reset #!/bin/sh sudo rmmod nvidia_u...
How to reset GPU on keras / tensorflow hang?
Enabling the workload identity on the nodepool was the solution. Using terraform the solution looks like this:resource "google_container_node_pool" "google_container_node_pool_name" { workload_metadata_config { mode = "GKE_METADATA" }
I am scheduling jobs using Cloud Composer running tasks in Kubernetes. I have setup a new node pool in the same GKE as composer and using this to run the Kubernetes tasks. In that node pool I'm using the default service account but binding the account to the same service account as the Composer node pool, using an IAM ...
GCP IAM Binding for GKE Node Pool using Workload Identity
You can combine both rules into one usingORcondition clause:RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.domain.com%{REQUEST_URI} [R=301,L,NE]Just replacewww.domain.comwith your actual domain name. Also it is better to test this in a new browser to avoi...
I have two redirect conditions which work independently fine but I want to avoid the case where both conditions are satisfied (which results in two redirect steps instead of one)I must confess I am not good with Apache regex so I got them off the net. Any idea how to combine the two (A or B kinda logic with regex)?Here...
How to combine two Apache htaccess redirect conditions (http to https and non-www to www)
They're specified as CIDR addresses, meaning this:22.22.22.22/32,44.44.44.44/32,77.77.77.77/32ShareFollowansweredAug 29, 2014 at 0:40aecolleyaecolley1,9931111 silver badges1010 bronze badgesAdd a comment|
I'm trying to restrict port access to certain IP addresses on Google Compute Engine. You are instructed to give ranges, but there are not examples shown how to limit access to just 3 IP addresses that are not in a range.So for example, lets say I only want to allow these three ips:22.22.22.22 44.44.44.44 77.77.77.77How...
Google Compute Engine Firewall Rule To Restrict Traffic O Certain Ports To Specific IP Addresses
1 You can publish this module as your own library. may this tutorial help you: Building-your-own-Android-library official android-library doc. publish-an-android-library-by-jitpack(Good Tutorial). Share Improve this answer Follow ...
Background So, I'm working on two Android projects, with a shared module. I don't know how I'd keep this module in sync with the latest changes across the two projects. Assume: projectA : github/android/projectA/shared_module projectB : github/android/projectB/shared_module So whenever I change something at shared_mo...
Git(Github) : How to sync two separate directories and pick the latest changes
For other people facing the same issue, this can be fixed by a workaround proposed by NuGet team: https://github.com/NuGet/Home/issues/130624 Solution: Setting environment variable DOTNET_NUGET_SIGNATURE_VERIFICATION to false fixes the long restore. Explanation: In dotnet 8, the NuGet tool tries to verify all package ...
I have upgraded my docker dotnet image to dotnet/sdk:8.0 to build MAUI projects on my Gitlab CI with docker runners. But now the job takes like 40 minutes to restore the projects (before: 45 seconds): $ dotnet restore --no-cache Restored /builds/**/A.csproj (in 10.11 min). Restored /builds/**/B.csproj (in 14.13 min). ...
Since dotnet/sdk:8.0, dotnet restore takes too long on gitlab ci with docker
2 +25 This specifies the minimum number of application processes that should exist for a given application. You should set this option to a non-zero value if you want to avoid potentially long startup times after a website has been idle for...
Our rails 3.2 app (deployed on passenger/nginx) uses gem ruote. The ruote worker (responsible for writing to database) needs to be kept running all the time for ruote to work. What we did is to keep min one instance running all the time by setting in nginx.conf: passenger_min_instances 1; However after about 5min idl...
PhusionPassenger:Why passenger still kills rails process after set passenger_min_instances = 1?
You could save the content of the dataset to disk (every hour in its own file), clear the in-memory data, run for an hour in-memory, save the data into a separate file and so on. This way your memory consumption should be ok and your performance gets only hit once an hour. Since the files on disk all have the same str...
I have a .net winform c# program. I collect traces on my program, with my own trace system. The trace show information about what the user did and other usefull information. I store each trace in a dataset. An example, I add a row in the dataset every second. The programe dispose the traces only when the program enco...
Memory consumption of a large dataset
First of all, there is no need to run sql proxy in appengine, you can connect directly to your database instance.Anyway, the container exists because every container needs one (and just one) foreground process. Changing the CMD to run any other process in the foreground makes the work:CMD nohup /app/run.sh & sleep infi...
I need to launch a background job (Google SQL Proxy) inside a Docker container (actually an AppEngine image).After some struggle with it I discovered that trying to launch the background job either discards the job the moment I detach from container (see RUN command in script) or the container stops working properly (s...
How to launch and keep a background process inside a Docker container
The "10" or the id, isn't part of the URL:example.com/account/blitzen12So you can't rewrite it into another URL, can't pull it out of thin air. You'll either need to just serve the page without an "id" (and pull it out of the database using the "name") or embed it in the URL without the query string, something like:exa...
this is my first time to try .htaccessthis is what i want.example.com/account/blitzen12 -> example.com/account/index.php?id=10&name=blitzen12i don't want to include the id in rewriting, is it possible?Note: id and name which is 10 and blitzen12 is retrive from the database.so far this is what I've tried but it didn't w...
.htaccess rewrite url with get parameter
The best way I know how to do this is to host it on your own Maven reposiotory - this might help- (http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/), or Maven Central. Then in your build.gradle file reference it:compile 'com.example.app:library:+'Where the '+' is always checking f...
Is there a way to make my library project I host on GitHub to be linked in Android Studio in my new project, so I can easily update linked version to the remote version?Basically I have project A - stored on GitHub. I want to link project A in project B, so every time project A changes it will be updated in project B a...
How to make my library project on GitHub importable via Gradle?
Just got the answer, the problem is the VScode Plugin I use is not supporting Sonarqube 8.Down grade to the version 7 solved the problem.
I am using SonarQube support for Visual Studio Code on my VSCode to connect SonarQube server.Here is my Global config global.json{ "$schema": "https://raw.githubusercontent.com/silverbulleters/sonarqube-inject-vsc/master/schemas/global.json", "servers": [ { "id": "localhost", "u...
VSCode SonarQube support for Visual Studio Code Error 400
You should changesrc="./images/socialX.PNG"either to an absolute path or given that you opt for relative paths and under the assumption that theimagesdirectory is placed inside your website's repository, then its name should be prepended to form the final relative pathsrc="/repo_name/images/socialX.PNG".
I set a tag to a local path it works normally on my computerBUTwhen Ideployit usingGitHub pages servicesthe images don't load at allhere is the code:<ol> <li>Go To Apperance &gt; Menu</li> <li>Create a new menu by clicking on create a new menu</li> <img src="./images/social1.PNG" width="80%" alt="Social Ic...
images don't show up using <img> HTML tag
I am assuming you have aClusterIPtype service with namepostgresinxyznamespace. Then you can access it from another namespace by specifyingpostgres.xyzKubernetes has a DNS systemCoreDNSwhich will resolve the hostnamepostgres.xyzto the POD IP.
I have an application pod running on a namespace named frontend and a database pod running on a different namespace named backend. I need to have communication between both the pods residing in different namespaces. The database container is up and running but while the application container has an error of crashloopba...
Communication between pods on different namespaces
This is a remnant of a submodule which is no longer configured. The output ofgit ls-files --stageshows the mode of thesrcentry as160000which refers to a submodule:[...] 160000 df78a5d08d49f10082d4d5c402bbb1dcf714c20f 0 src 100644 19762936f6c1b0e5274fdebc6ed78fe4b37038e6 0 tailwind.config.js 100644 25ed6eee8f2435e1a...
I'm trying to deploy my react website to Github pages, and I've followed all instructions inthistutorial. The deployment is done well, and the web is already up, but I got a problem here, thesrcfolder seems locked here, and I want to make it accessible for anyone who wants to look at itis there any way to "unlock" this...
Unlock src folder in react deploy github pages
For future searches, It works for me:apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/proxy-body-size: "0" nginx.ingress.kubernetes.io/proxy-read-timeout: "600" nginx.ingress.kubernetes.io/proxy-send-timeout: "600" name: docker-registry namespace: docker-...
on my Cluster, I'm trying to upload a big file but when I try, I get the413 Errorerror parsing HTTP 413 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body>\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><cen...
Nginx Ingress returns 413 Entity Too Large
Create copy of your index.php, and name it cli.php.At the beginning of cli.php add#!/usr/local/bin/php <?php /* we don't need to be limited by...normal limitations */ set_time_limit(0); ini_set('memory_limit', '256M'); /* make sure this isn't being called by a web browser */ if (isset($_SERVER['REMOTE_ADDR'])) die('P...
I have almost successfully setup a Cron job on my server, but I cannot call the correct controller.Job:*/15 * * * * php fullpath/index.php cronresult: I get the HTML output of the default controller and not my Cron controller.job:*/15 * * * * php fullpath/index.php cron indexresult: I get the HTML output of the default...
cron daemon not getting correct controller
Yes you can! You just had not defined the PolicyStore to query - Details below...Just use the following query - It returns thenames of all active policies- For example "Domain"Get-NetFirewallSetting -PolicyStore ActiveStore | Select-Object -ExpandProperty ActiveProfileAdditionally, there is to mention that "ActiveProfi...
I had a problem with servers connecting to the wrong firewall-profile so I am trying to find a solution to track this information.I have already got the powershell commands in my python script:subprocess.getoutput('netsh advfirewall show allprofiles') subprocess.check_output('netsh advfirewall show currentprofile')I ca...
Is there a way to find which firewall-profile is active?
Check first if the issue persists.There was a recentincident with CopilotWe see authentication failures for a small percentage of users.We are investigating the root cause and will update as we learn more.It is resolved, but you might still see some side-effect.
After attempting to sign into GitHub Copilot in VS Code a prompt pops up "The extension 'GitHub Copilot' wants to sign in using GitHub" and it gives me the option "Allow" or "Cancel".After allowing another prompts states "Allow an extension to open this URI?".After clicking "Open" an error message saysGitHub Copilot co...
Issue Signing in to use GitHub Copilot
The changes were committed to your local repository, but because of the error, were not pushed to remote repo (Github server). So, as far as git is concerned, they are "committed". You can try a push, which pushes local commits to remote repo, which should print the errors if it failed. Most likely failure is that ...
I am using Github through eclipse. I commit my changes regularly and they show up in github when I go to the web browser and look up my github account. I did a commit today and there was some kind of error. My new changes are not showing up in github and I cannot commit anything, no changes are registered. I did n...
eclipse and git: commit failed, how do I commit any new changes
It would help if you added your Prometheus query to your question. In order to group metrics by the same fieldMessage_Typein the legend you can do something like the following:count(<your_query>) by (Message_Type)ShareFollowansweredApr 13, 2022 at 19:19qq4qq430444 silver badges1515 bronze badges1This is exactly what I ...
I havePrometheus+Grafanasetup.PrometheuscollectsCounterand gives it two labels:Message_Type - from 1 to 27Provider - one from['A', 'B', 'C', ... , 'I'](length is 9)I imported it intoGrafanaand appliedLabels to fieldstransformation onMessage_Typeandexpected to see 27 lines.What I actually see is 27*9 = 243 entries! I th...
Grafana duplicates labels based on all possible labels permutations
4 There is the clEnqueueMigrateMemObjects function, which is new as of OpenCL 1.2. This function can be used to transfer memory buffers between devices in the same context. Have never tried using this myself, so I don't know if it actually ends up being less expensive tha...
It is time-consuming to transfer data between different GPU devices,because it's likely that this process works like this:GPU1->CPU->GPU2.So is there any better way to transfer data between GPUs?In addition, assume that there are N threads,each of them have to read M elements from the global memory,What conditions sho...
data transfer between GPUs in OpenCL
How about using the gitclonecommand? Like so:$ git clone https://github.com/{my repo}.gitThiscommandwill create a local copy of the remote git repository you specify in the directory git bash is currently on.You mention pulling a "new repo" and you say you have previously "deleted the repo", as you were having trouble ...
This is not similar to posted questions, as I've done my research.I'm trying to pull a new repo created on github and get this error message:$ git pull https://github.com/{my repo}.git From https://github.com/{my repo} * branch HEAD -> FETCH_HEAD fatal: refusing to merge unrelated historiesI've tried ...
git fatal error after deleting repo
I'm not sure that Azure DevOps pipelines is the appropriate place to be running frequent, short-lived processes on a short timer.The documentation even states that there is a limit of about 1000 jobs per week:https://learn.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers?view=azure-devops&tabs=yaml...
I have the following configuration:Azure DevOps Server Version Dev18.M170.8trigger: none # No CI build pr: none # Not for pull requests schedules: - cron: "* * * * *" displayName: Every minute build branches: include: - master always: true jobs: - job: RunMyCustomTask pool: 'DedicatedPoolWith1Agent'...
Azure Devops scheduled pipeline does not trigger
You should call PHP cron jobs with the full path (note, your PHP may be in a different location)0 * * * * /usr/bin/php /path/to/your/script.phpShareFolloweditedApr 24, 2015 at 17:56answeredApr 24, 2015 at 17:53Machavity♦Machavity31.2k2727 gold badges9393 silver badges103103 bronze badges2Typically thecdwill change your...
I have the following commands set in my crontab0 * * * * root cd /home/domain/public_html/webcrawler && php cron1.php 40 * * * * root cd /home/domain/public_html/webcrawler && php cron2.phpThe thing is they are not running. Is there any noticeable errors in the commands I have set? The php scripts run fine when run fro...
Crontab not running PHP scripts properly
See "How Pods manage multiple Containers"Pods are designed to support multiple cooperating processes (as containers) that form a cohesive unit of service.The containers in a Pod are automatically co-located and co-scheduled on the same physical or virtual machine in the cluster.The containers can share resources and de...
Most of my images that I deploy into Kubernetes has the common base (From) image. So, I have multiple applications deployed into multiple pods. How does the Docker layer cache work across multiple pods, as the From image is same for all the pods?
Docker layer across pods
You can do it by posting to agitlab triggerAs they say, you can do it with minimal effort:First, create the Trigger inSettings ➔ CI/CD under Triggers. Add triggerSecond, call your trigger withcurlcurl --request POST \ --form token=TOKEN \ --form ref=master \ https://gitlab.example.com/api/v4/projects/9/trigger/pipel...
I´m trying to run agitlab pipelinefrom command line. I am learning configuring various options provided by gitlabhttps://docs.gitlab.com/ee/ci/yaml/I know I can just specify the branch name and then pushing to the repository. Then, when I push, gitlab executes the jobs defined in the yaml file, but:How can I simulate t...
How to run gitlab yaml project configuration from terminal?
Turns out you cannot specify just the name of the service account in the --as flag.running$ kubectl auth can-i create customresourcedefinition --as=system:serviceaccount:my-namespace:my-userreturnsyesI was also trying to limit the CRD that the service account was allowed to create by using thereosurceNamefield, but app...
I am attempting to create service account that can create a CRD, but when I bind the service account to cluster-admin, kubernetes is telling me that it doesn't have permissionthis is how I bind itapiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: my-role-binding roleRef: apiGroup: rba...
kubernetes cluster-admin cannot create CRD?
If it's Powershell, then use Set-Content Set-Content hello.rb 'puts "Hello, World"'
I have a win7 machine and I use Git Shell (which seems to be Windows Powershell) I am trying to follow the Lab 3 tutorial of GIT IMMERSION (http://gitimmersion.com/lab_03.html). I do not know how to create a file named hello.rb with the contents below. puts "Hello, World" Any help is appreciated. Many thanks!
how to create a file with the cmd?
What you are looking for might be in what you are looking for might be inthis. I'm guessing you didn't add your public key, ~/.ssh/id_rsa, to your github account.
I set a ssh-agent and gave it an id_rsa key, so I don't have problem using git command on a terminal of a linux server to update to github, but when I try to do this by a bash script using qsub to submit the job to the server, I got the following error messages,On branch masternothing to commit, working directory clean...
git push to github in a batch job sumitted to a server using qsub
1 can you try the following config: server { listen 80; index index.php index.html; server_name localhost; error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; root /var/www/html/public; location / { try_files $ur...
I created a new project in Laravel 7 by using docker-compose 3.3 and Nginx 1.17. The enpoints created on Laravel works well, the problem comes when I try to access to whatever static asset in the '/public' folder. I tried with .css and .js files and also with the robots.txt but Laravel returns a 404 not found error. T...
Laravel, Docker and Nginx: 404 for all files in /public folder
Since you lost your repository (sorry for that), you also lost the whole history.All you can do now is start from scratch.create a new repositorycreate the folder structureexport the working copy of the first user to a new folderimport the exported folder into the repositoryall other users now check out a new working c...
We've completely lost our repository and we have 8 developers with uncomitted changes. Restoring from backup is assumed to be not possible.If one person could have access to all the working copies (either file copy or remote share) is it possible to merge changes in our working copies to one working copy? The final w...
Subversion Merge between multiple working copies?
Your Kubernetes configuration will be something like this, You can specify the port number and volume mounts. The important sections for mounting arevolumeMountsandvolumes.apiVersion: apps/v1 kind: Deployment metadata: name: my-prom spec: selector: matchLabels: app: my-prom template: metadata: ...
I want to use thePrometheusimage to deploy a container as part of the local deployment. Usually one has to run the container withvolume and bind-mountto get the configuration file (prometheus.yml) into the container:docker run \ -p 9090:9090 \ -v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml \ prom...
How can I mount a docker config file with Skaffold?
Here's how I've solved it using Nginx. Note that I am using the Headers More module which required me to compile Nginx from source. location / { if ($request_method = 'OPTIONS') { more_set_headers 'Access-Control-Allow-Origin: *'; more_set_headers 'Access-Control-Allow-Methods: POST, OPTIONS'; ...
I am trying to configure Apache to act as a proxy to a remote server, to allow cross-domain AJAX using CORS. To achieve this, I need Apache to respond to 2 HTTP verbs, like so: OPTIONS: Respond to this CORS 'pre-flight' request with some simple HTTP headers. I had in mind that this could be a simple CGI script (optio...
Apache/Nginx: proxy POST requests to remote server, handle OPTIONS requests locally
If you are usingalpine docker imagefor example:FROM alpine:3.6 as alpine RUN apk add -U --no-cache ca-certificates FROM scratch COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/After adding root certificatesca-certificates, it will be working fine.
I've been banging my head against the table with this one for a while now. I'm. I've successfully sent emails locally using an AWS access key and secret that has full access. Once I deploy to my staging environment I get an error using the same access key and secret.RequestError: send request failed\ncaused by: Post ht...
AWS SES Error: x509: certificate signed by unknown authority
6 You can get this information through CloudTrail. In particular, call lookup_events() on the CloudTrail client: events = cloudtrail_client.lookup_events(LookupAttributes=[{'AttributeKey':'EventName', 'AttributeValue':'CreateStack'}]) for event in events['Events']: ...
How do I find who created a CloudFormation stack? I am using boto3 to list the stacks whose status is COMPLETE along with the user who created the stack. I can get all the attributes of the stack but I am unable to find the user information in CloudFormation dashboard or in boto3 CF APIs. Any idea how to get the IAM u...
How do I find who created a CloudFormation stack?
Before starting playing with StatefulSets I advice you to read doc -statefulset-official-doc. Take a look also ondynamics-provisioning. Similary as @SYN said:1.Create create PVCs - specify storage class and size there, even before creating StatefulSet.2.Create aJob/Pod which would mount your volume and either autom...
Right from start: very beginner in kubernetes here.I (think to) know how I can create a volume for myStatefulSetfor persistence. For that, I havevolumeMounts: - name: db mountPath: /var/lib/mydband- metadata: name: db labels: app: myapp spec: accessModes: [ "R...
How to mount an existing file-based DB for a StatefulSet to each kubernetes pod independently?
0 I had the same problem and after I rebuild web, restarted IIS and restarted my redis server - it took in account the setting in the timeout="123". Share Improve this answer Follow answered No...
I'm using RedisSessionStateProvider 1.6 and the following configuration: <sessionState mode="Custom" customProvider="AzureRedisCacheSessionState" timeout="10"> <providers> <add name="AzureRedisCacheSessionState" type="Microsoft.Web.Redis.RedisSessionStateProvider" ... /> </providers> </sessionState> But the '...
Setting session timeout in RedisSessionStateProvider 1.6
Not really.You answered your question earlier... by making thedocs/folder in another branch like "gh-pages" while your "master" won't show those commits to the docs.
The documentation of my repository is in thedocs/folder and is hosted by Github. I know I can place this in another branch, but I prefer it this way. Is there any way I can hide all changes from thedocs/folder in my commits?My builds are setup to regenerate the documentation whenever the code changes, but this results ...
How to hide the changes of a folder on Github?
It is probably because it is not installed inTrusted Root Certification Authorities.Solve this by startingmmc.exe.Then go to:File -> Add or Remove Snap-ins -> Certificates -> Add -> Computer account -> Local computerExpand thePersonalfolder and you will see yourlocalhostcertificate:Copy this intoTrusted Root Certificat...
I run localhost on my Windows 8.1 (Bootcamp on Mac) and need to enable ssl.I have already default server certificates on 127.0.0.1 and localhost. I have the localhost one assigned to my websites on port 443.https still returns security error so I need to work on httpMy websites run on 44300 port (eg. localhost:44300) I...
Enabling SSL on localhost IIS
I hope this answer will solve your problemaws s3 ls s3://your-bucket/ --recursive | sort -k1 | sort -k2 | head -n -30 | awk '{$1=$2=$3=""; print $0}' | sed 's/^[ \t]*//' | while read -r line ; do echo "Removing \"${line}\""; aws s3 rm "s3://you...
I am using S3 bucket to store my web application log files. Now I need to know is there any option available, to keep the latest 20 files only, regardless when they are created. I can't use S3 auto expiry option as I always need the latest 20 files inside my bucket.
How to keep only Latest "N" number of files/objects in S3 bucket periodically using bash script or any other methods
As of symfony 3.2, you can now get the current firewall configuration using the following:public function indexAction(Request $request) { $firewall = $this->container ->get('security.firewall.map') ->getFirewallConfig($request) ->getName(); }Ref:http://symfony.com/blog/new-in-symfony-3-2-fir...
I'd want to use a login page to access different firewalls, so I need to get information about the firewall I'm logging in. In my controller I'd use$this->container->get('security.context')->getToken()->getProviderKey()but as an anonymous user I don't have access to getProviderKey method. I could also parse_security.xx...
symfony2 get firewall name on login page
Try using the latestkubebuilderfromhere. It's likely that the dependencies for the version in the quick start are out of date.It works fine for me withv1.0.3~/go/src/github.com $ kubebuilder init --domain k8s.io --license apache2 --owner "The Kubernetes Authors" Run `dep ensure` to fetch dependencies (Recommended) [y/...
I am usingkubebuilderto create kubernetes operator project. After running the project init command described inquickstart guidekubebuilder init --domain k8s.io --license apache2 --owner "The Kubernetes Authors"dep ensurereturns with error log given below.Solving failure: No versions of k8s.io/client-go met constraints:...
Golang dep unable to resolve dependencies
Basically it's saying that if your Buffer is less than 8KB, it'll try to fit it in to a pre-allocated 8KB chunk of memory. It'll keep putting Buffers in that 8KB chunk until one doesn't fit, then it'll allocate a new 8KB chunk. If the Buffer is larger than 8KB, it'll get its own memory allocation. You can actually s...
I have a situation where I need to take a stream and chunk it up into Buffers. I plan to write an object transform stream which takes regular input data, and outputs Buffer objects (where the buffers are all the same size). That is, if my chunker transform is configured at 8KB, and 4KB is written to it, it will wait...
Optimal buffer size with Node.js?
0 Is your find d1 d2 -print0 including the "." directory in its output from each d1 and d2, meaning it doubles the files? Try adding --no-recursion to the tar. Share Improve this answer Follow an...
I'm trying to back up a bunch of directories with tar and using find to get the files. I've seen this solution elsewhere in an old post but it duplicates every file and directory in the tarball; find itself doesn't duplicate anything find d1 d2 -print0 | tar -czvf backup.tar.gz --null -T - Using Ubuntu 18.04 LTS, Gnu...
Duplicate files with find and tar
Well it does not look great. I have not been able to get any of the methods to work withdocker-composehowever there is a new (at the time of writing this)docker composereplacement from docker. The instructions arehere. I was hoping that the--contextflag would work but it is not found with the new version which leads me...
Via my local I would like to run docker-compose on my remote machine. I have found two ways that should accomplish this but am running into errors.Fist I am running the following versions:me:api$ docker-compose -v docker-compose version 1.29.2, build unknown me:api$ docker -v Docker version 20.10.7, build 20.10.7-0ubu...
docker-compose fails to run on remote host from local
8 I found the solution : https://github.com/sagemintblue/sagemintblue-repositories If you use Sonatype's Nexus repository manager, you may want to add proxy entries to your Nexus configuration for the Sagemintblue repositories. Here are a few notes to keep in mind: Sag...
Nowadays there are a lot of github hosted Maven repositories. ex) https://github.com/nhnopensource/nhnopensource.maven.repo I tried to add those repositories into my Sonatype Nexus repository manager as proxy repository, but failed all the time. But the repositories work fine when I set repository url directly to the...
How to add Github raw repositories to Sonatype Nexus as Proxy repository?
mprotectis still the answer. You need a page-aligned allocation with no allocator control information that may need to be writeable -- so allocate your memory bymmaping anonymous memory.
Is there any API or method to prevent read access on a dynamic allocated memory?char *ptr = malloc(4);` strcpy(ptr, "Hello");`Now, i wish to ptr to have no read access and write-protected. How to accomplish this?I do not wish to usemprotectas it will expectptrto point to mapped memory, and ampping a dynamic memory ever...
Is there any API or method to prevent read access (and write) on a dynamic allocated memory?
You can use theServletRequest.getRemoteAddr()method to verify the client or the last proxy.ShareFollowansweredNov 16, 2012 at 14:49ShyJShyJ4,61011 gold badge2020 silver badges1919 bronze badges3Will this not return end users IP address and not server's ip?–ad-infNov 16, 2012 at 17:32Isn't it what you're asking for byth...
Website is developed on JSF, Servlet. In my website, I accept data submission from few restricted websites using HTTP POST method. We exchange some secure key to ensure that correct source is sending data.But is there any way to ensure that the data is submitted from specific domain / IP address only? In application le...
securing server to server http post
If you're using a HashSet, the underlying implementation actually uses a HashMap anyway, so I suggest you go with a HashMap.
I'm trying to cache a lot of similar values with only set-like requirements. Unfortunately Set<?> allows me only to check whether an element exists inside - it won't give the existing element back to me. What I'd like to do is: Element e = receiveSomeElement(); e = elements.cache(e); // now e is either the original e,...
Caching set-like collection
You can create a button/href link with this URL:<a href="/?desktop=1">Full Desktop Site</a>And then change your rewrite as this:RewriteEngine On RewriteCond %{QUERY_STRING} !(^|&)desktop=1(&|$) [NC] RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos"...
I currently an redirecting to a mobile site based through htaccess as follows:RewriteEngine On RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos" [NC] RewriteRule ^$ http://m.example.com/ [L,R=302]Is there someway to have a full site button on my mob...
Is there a way to have a full site button on a mobile app without javascript?
Depending on the query, if it's SQL related only, consider aMySQL event. But it depends on what it does. If PHP code is required to interact with it... events won't help. If it just does some updates in MySQL(like expired user sessions and removing unconfirmed user accounts)... an event will do.Running every minute is ...
I have a cron job running that executes a PHP file which checks a MySQL database for a change. I have this script running every minute but it's very simply query.Still, is running a cron job like this every minute going to be too hard on the server? Is there a better approach to what I'm doing?
Cron job every minute?
This redirect rule should work for you:RedirectMatch 301 ^/(?:our-products|shop-name)/.+/(\w+-\w+-)(?:.*-)?(\w+-\w+)$ /$1$2Make sure to use a new browser to test this change.
I am in the middle of migrating a site that has some urls that are in need to 301 redirects.We have been looking at the site and trying to fathom the best route to getting the urls that are currently there and making them work with the new site.The issues we face are the fact that a lot of the urls are 3 segments deep ...
Why is a regex pattern not giving me the correct output in the url redirect?
2 For big files/images try to send the data in chunk by chunk basis. create bytearray of the image send small chunk of byte array next time send next chunk and so on. Share Improve this answer Follow ...
i have to send my data using json and have to send image using byte[] in my json. Now I can get the bitmap to convert to bytearray using the following line of codes: selectedImageBitmap.compress(Bitmap.CompressFormat.JPEG, 100,stream); byte[] byteArray = stream.toByteArray(); But I cant put this byte array in Json...
Putting byte[] in JSON on android
Firstly, you are not allocating a "block ofT*". You are allocating a "block ofT".Secondly, if yourThas non-trivial constructor, then until elements are constructed, your block is not really a "block of T", but rather a block of raw memory. There's no point in involvingThere at all (except for calculating size). Avoid *...
I don't want constructor called. I am using placement new.I just want to allocate a block of T.My standard approach is:T* data = malloc(sizeof(T) * num);however, I don't know if (data+i) is T-aligned. Furthermore, I don't know if this is the right "C++" way.How should I allocate a block of T without calling its constru...
C++: allocate block of T without calling constructor
git reset --hard upstream/master This will reset the current branch to the commit of upstream/master.
I have a fork of a project in Github. I accidentally committed and pushed local changes in my master branch to origin/master (Github). The changes were by an automated script so about 180 files have been changed, so cannot manually revert the changes and make a new commit. I found this tutorial on rolling back to an o...
How can I overwrite all files in a GIT branch by another (upstream) branch?
git log --format=format:%s -1(latest commit)git log --format=format:%s -1 ${GIT_COMMIT}(specific commit)git --no-pager show -s --format='%s' ${GIT_COMMIT}
I am using DevOps model, where i have built a pipeline for code build and deploy. In the entire process i want to log the Git commit id and commit message for that specific change commits.@shruthibhaskar shruthibhaskar committed just now 1 parent 51132c4 commit aedd3dc56ab253419194762d72f2376aede66a19and commit messag...
How to use GitHub commit message and commit id inside Jenkins pipeline?
You can, and that won't affect your local or remotemasterbranch.But it is better to createmyBranchlocally (from your currentmaster) and push it to its remote tracking equivalent:git switch -c myBranch git push -u origin myBranchNext time you are committing onmyBranch, a simplegit pushwill be enough to push the localmyB...
Can I usegit push origin master:myBranchto push code I modified in master branch to my branch? Will this affect the master branch?
Can I use git push origin master:myBranch to push code I modified in master branch to my branch?
Once the file is cached, it will not be downloaded again, unless the page specifies a different version of the file than is already present in the cache. As such, minification helps only when the file is downloaded and not thereafter. The minification of the files certainly could (in theory) have an impact on parsing ...
This question already has answers here: Does minified JavaScript code improve performance? (7 answers) Closed 6 years ago. I am well aware that a good practice in web development i...
Does JS/CSS minification help even if the files are cached? [duplicate]
It is not a false positive.IffileInputStream.close()throws an exception,objIn.close()will not be called and theObjectInputStreamwill not be closed.You should separate the twoclosecalls to make sure both streams are closed:finally { try { if (fileInputStream != null) { fileInputStream.close(); ...
For the below java code though resource is closed in a finally block sonar is reporting:Use try-with-resources or close this “ObjectInputStream” in a “finally” clause.FileInputStream fileInputStream = null; ObjectInputStream objIn = null; try { fileInputStream = new FileInputStream(value); objIn = new ObjectInp...
sonarqube: Is try-with-resources or close this "ObjectInputStream" in a "finally" clause for this code false positive?
Looks like there was a pull request that was abandoned:PR 30In related issues, there is debate about not allowing this command:Issue 59
How can I rename adocker-machinemachine? I can't find it usingdocker-machine --helpor in thesubcommand docs.
Rename docker machine
The request is probably getting rewritten twice:/url/http://…→/url.php→/index.php. Exclude that path from the second rule and it should work:RewriteCond $1 !=url.php RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]ShareFollowansweredNov 30, 2010 at 13:59GumboGumbo649k110110 gold badges784784 silver badges846846 bronze badge...
I have this in my .htaccess:RewriteEngine On RewriteBase / RewriteRule ^url/(.*)$ url.php?url=$1 [L] RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]Why doeshttp://mydomain.ext/url/http://www.google.com/not match the first rule, but the second???Edit: it seems to work when I comment out the last line, but of course i cannot...
RewriteRule not matching?
for the permgen space error, maybe cloud you add some jvm options (or CATALINA_OPTS) like this :-XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabledXX:MaxPermSize: permanent space sizeXX:+CMSClassUnloadingEnabled: allow the jvm to unload unused class definitionsi was talking about this error in an old french posthere
I am facing these exceptions regularly, everytime I have to restart the server. The Exceptions are:exception:1-> com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet success fully received from the server was 61,316,033 milliseconds ago. The last packet sent successfully to the server was 61,316,03...
Linux Server | Tomcat 7.0 Exceptions
1 Dynamo , you will have to perform a heap analysis to find out what causes the OOM for your. It is a free tooling that allows you to find out what is causing the issue in the server. May be it is a rogue application that is blocking too much memory or a resource that is le...
We use WebSphere application server for our application and we regularly get out of memory error. To debug this we added log to check used memory at certain places and below is the observation. The used memory is not decreasing until it reaches threshold limit. We use below memory configuration: InitialHeapSize="1024"...
WebSphere out of memory error
It solved.I'm use rbenv for ruby install and setup it in to .bash_profile. Yes environment work but i run ruby in crontab not work.Solution: I copy some config in .bash_profile to my script see below#!/bin/sh#below script from .bash_profilePATH=$PATH:$HOME/bin export PATH export PATH=$HOME/.rbenv/bin:$PATH eval "$(rben...
#!/bin/bash #!/usr/bin/env ruby cd /var/www/project if [ ! -f tmp/pids/delayed_job.pid ]; then echo "File not found!" pwd ./bin/delayed_job start echo "Run script successful!" fiIn my code start normally is work but run with crontab not work.any idea pls.
Why can't run start delayed job command when use crontab
Have an API that serves the config, and retrieve that from angularapp.get("/api/config/default", function(req, res) { res.send({ a: process.env["A_VAR"] }); })Have your back-end generate the angular constantsapp.get("/generated-config.js", function(req, res) { res.send( "angular.module('myApp').constant('M...
I know about the environment.ts files in Angular, but with those I end up comitting sensitive data to my git repo. In Java I can just refer to OS environment variables which I can set on my server.In our company the CI dockers all our applications and pushes them into OpenShift, which means I don't have access to the ...
OS environment variables in Angular
The analysis of generated C# files can be enabled using the SonarQube or SonarCloud UI, in Project > Administration > General Settings > C#, and enabling theAnalyze generated codeoption.ShareFollowansweredNov 4, 2021 at 16:50CViCVi10622 bronze badgesAdd a comment|
I would like to analyze a C# project with SonarQube. Some of my files have*.g.csextension. Sonar C# plugin handles those files as if they are generated files and I get this error:'SomeDirectory/ETitle.g.cs' excluded by org.sonarsource.dotnet.shared.plugins.GeneratedFileFilterHow can I include those files to sonar scan?
How to configure GeneratedFileFilters of SonarC# to allow generated files
You may use this rule:RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([\w-]+)/([\w-]+)/?$ product-page.php?cat=$1&alias=$2 [QSA,L]RewriteCondmake sure to rewrite it only for non-files and non-directoriesBetter to use[\w-]+instead of.*in regex to avoid matching URLs with dot charac...
I am trying to rewrite an url on a webshop so pages don't have file extensions and the url shows the category the product belongs to in the url.I already fixed the category part, so my url now looks like this:http://webshop.nl/douche/douche-2.htmlBut I want it to look like this:http://webshop.nl/douche/douche-2I tried ...
How to only rewrite specific urls without affecting other files
You've changed the port Docker is publishing, and the port Nginx is relaying to PHP-FPM, but you haven't changed the port PHP-FPM is listening on. There's nothing on port 9001 to respond to the Nginx request, hence the502.If you want to do this, alter thelistenoption in yourphp-fpm.conffile:listen = 127.0.0.1:9001But y...
I was trying to change the port number in both nginx.conf and docker-compose.yml to 9001 instead 9000. However, when I run docker-compose up, it shows 502 Bad Gateway. Why is that? am I locked to use port 9000 only?nginx.conflocation /index.php { include fastcgi_params; fastcgi_connect_timeout 10s; f...
docker nginx 502 bad gateway
To run the scriptevery minute you can use cron job:EX:* * * * * python /PATH_TO_SCRIPT/script.py
While working with json in python, I've written this small script to fetch the current price of BTC. This works fine when I run the script in Ubuntu terminal.What I want is to update the variablecurrent_pricefor every minute so that I can use this variable to display a desktop notification for current price.I was looki...
How to fetch updated JSON data continuously using python
I have a pair of scripts that do exactly this. In my situation, doc sources are in.(relative to where the scripts are run, of course), generated documentation is in_build/html, and I issue the commandstouch _build/html/.nojekyll # disable GitHub's Jekyll page generator ./commit-to-gh-pages.sh _build/htmlwherecommit-...
i've got a questionSituation based ongh-pagesMy project uses preprocessors and another difficult staff, so, my project stucture looks as follows:master branch./-| /src /node_modules /public-| /js /css /etc index.html /etc package.json etcall code sources insrcfo...
How to properly commit in repository with Github Pages branch