Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
5 Elasticsearch 6.6 brings a new technology called Index Lifecycle Manager See here. Each index is assigned a lifecycle policy, which governs how the index transitions through specific stages until they are deleted. For example, if you are indexing metrics data from a fle...
We are using AWS Elasticsearch for logs. The logs are streamed via Logstash continuously. What is the best way to periodically remove the old indexes? I have searched and various approaches recommended are: Use lambda to delete old indexes - https://medium.com/@egonbraun/periodically-cleaning-elasticsearch-indexes-us...
deleting old indexes in amazon elasticsearch
This is fine.The temporary created byGetAHandle()will only be destroyed at the end of that statement, so as long as your copy constructor doesn't retain any handles to the innards of that object, you're fine.(N3337) [class.temporary]/3:[...] Temporary objects are destroyed as the last step in evaluating the full-expr...
I stumbled upon a code similar to this while debugging a crash due to de-referencing a dangling piece of memory.template<typename RaiiObject, typename HandleType> const HandleType& ExtractHandle(const RaiiObject &value){ const HandleType* val = value.get(); // get underlying managed object return static_cast<c...
Copying x-value by value returned by a function
If you are using default instance profile with Elastic Beanstalk, then AWS automatically creates permission to rotate the logs to S3. If you are using custom instance profile, you have to grant Elastic Beanstalk permission to rotate logs to Amazon S3. The logs are rotated every 15 minutes. AWS Elastic Beanstalk: Worki...
I have enabled this option. Problem is: If I don't press snapshot log button log, is not going to s3. Is there any method through which log publish to s3 each day? Or how log file rotation option is working ?
Enable log file rotation to s3
Per thekubernetes Cronjob docs, there does not seem to be a way to cleanly resolve this. Setting the.spec.startingDeadlineSecondsvalue to a large number will re-scheduleallmissed occurrences that fall within the increased window.My solution was just tokubectl delete cronjob x-y-zand recreate it, which worked as desired...
I have a cluster that includes a Cronjob scheduled to run every 5 minutes.We recently experienced an issue that incurred downtime and required manual recovery of the cluster. Although now healthy again, this particular cronjob is failing to run with the following error:Cannot determine if job needs to be started: Too m...
Kubernetes Cronjob: Reset missed start times after cluster recovery
Thank's to @richard Telfor, the solution is text ![Some text here.](pics/myimage.png?raw=true){width=400px} text Be careful: The code does NOT work with pdf, see here
Assume, you have have the following Rmd (see ../Christoph999/Test/blob/master/test.md --- title: "Untitled" author: "Myname" date: "5 April 2019" output: html_document: keep_md: yes number_sections: yes toc: yes toc_depth: 2 pdf_document: number_sections: yes toc: yes toc_depth: '2' ---...
Why is my image embedded in .md not displayed on Github
Change your regex to allow spaces:RewriteRule ^StorageList\.php/([a-z]+)/([0-9]+)/(.+?)/?$ StorageList.php?type=$1&users_id=$2&parts_section=$3 [L,NC,NE,QSA]
I must (want ;) use spaces in URLs. I make "cute" URLs via htaccess:RewriteRule ^StorageList.php/([a-zA-Z]+)/([0-9]+)/([0-9a-zA-Z%+-]+)$ StorageList.php?type=$1&users_id=$2&parts_section=$3 [L]But when I go to StorageList.php/Point/21/Ford Fiesta, my script don't get variable data.
HTACCESS - use spaces in URL
If you want to cache LINQ query results I recommend you try thePete Montgomerysolution. It is applicable in ASP.NET but can be used in desktop apllication if replaceHttpRuntime.CachetoSystem.Runtime.Caching.MemoryCache.Default.
has anyone some experience with caching and EF ?I was looking at the EFProviderWrappershttp://code.msdn.microsoft.com/EFProviderWrappersbut this project seems to be outdated. Does someone used it with success ?Or are there other better solution ?
Caching with Entity Framework
I hit this today too... followingthis answerhelped me. For the error you have, this part specifically helped shift it:export default defineConfig({ resolve: { alias: { 'node-fetch': 'isomorphic-fetch', }, }, })(though in my case I was already using Axios, so used that instead ofisomorphic-fetch).
I'm trying to set up a environment that allows me to interact with github apis in React - Vite using @octokit/core.I'm importing octokit in my file:import { Octokit } from "@octokit/core";And when I start my application using Vite I have an error message in the console:Uncaught TypeError: import_stream.default.Readable...
Uncaught TypeError: import_stream.default.Readable is undefined using package @octokit/core
The author and committer are actually stored as part of the commit object itself, when it is created. So if you want to customize the author and committer names, you need to do it when runninggit commit. According tothe official documentation, you can set both the author and committer information with these four enviro...
I'm creating a web-based PHP client for managing site content with Git. I want to associate commits with the various people that are logged in the admin panel. I know I can do this with:git commit --message="foo" --author="John Doe <[email protected]>"However, you can also push to a remote repository (in my case, hoste...
Is it possible to push as a different user?
The superclass's initializer -initWithRect:spriteManager: doesnotput the object into the autorelease pool. The naming convention is that any -init… method sets up an object which you are responsible for releasing.Xcode provides helpful code completion templates for init and dealloc methods. Just presscontrol-commaand s...
I have a subclass that i use alloc and init to instantiate. In the init method I goself = [self initWithRect:spriteManager.imageRect spriteManager:spriteManager.manager];So the parent constructor is using the autorelease pool. So what happens here? If I try to release the object I get an error. Should I change my i...
Can you alloc an object whose parent class uses the autorelease pool?
Unfortunately according to thedocumentationthe following is stated:Amazon S3 Block Public Access must be disabled on the bucket.This is because it will ignore the bucket policy due to theBlock public and cross-account access to buckets and objects through any public bucket or access point policiesvalue.Unless your buck...
I am trying to setup the S3 buckets I want my CloudFront distribution to access.From my client I use AWS mobile SDK to upload to S3. When clients consume files from S3 I hit CloudFront and things worked until I made this change:When I created the distribution, I had CloudFront update the bucket policy to have the OAI i...
Allow CloudFront to access S3 origin while also having S3 bucket Block all public access?
You couldavoid the retain cycleto begin with by, e.g., aiming the timer at aStatusUpdateobject that holds a non-retained (weak) reference to your controller, or by having aStatusUpdaterthat is initialized with a pointer your controller, holds a weak reference to that, and sets up the timer for you.You couldhave the vie...
Does any one know when is the best time to stop an NSTimer that is held reference inside of a UIViewController to avoid retain cycle between the timer and the controller?Here is the question in more details: I have an NSTimer inside of a UIViewController.During ViewDidLoad of the view controller, I start the timer:stat...
Best time to invalidate NSTimer inside UIViewController to avoid retain cycle
You can add one moreRewriteCondforpreviewparameter:RewriteEngine On RewriteBase / RewriteRule (.*)/wp-admin(.*) - [L,NC] RewriteCond %{QUERY_STRING} preview [NC] RewriteRule ^ index.php [L] RewriteCond %{REQUEST_URI} !/wp-admin [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f R...
I need to hide the site from guest users and show it just ifpreviewvariable is presented or the user is inwp-adminfolder.Now in .htaccess I haveRewriteEngine On RewriteBase / RewriteRule (.*)/wp-admin(.*) - [QSA,L,NC] RewriteCond %{REQUEST_URI} !/wp-admin [NC] RewriteCond %{REQUEST_FILENAME} !-f R...
Use Apache .htaccess to allow request if variable is presented
You can usesort_byget the latest snapshot.aws ec2 describe-snapshots --query "sort_by(Snapshots, &StartTime)[-1].{SnapshotId:SnapshotId,StartTime:StartTime}"output{ "SnapshotId": "snap-123456", "StartTime": "2020-07-07T13:57:05.982Z" }OR if you just looking for owned by you thenMY_ACCOUNT_ID=1234567 aws ec2 d...
I need to get 5 colums reported from awscli. These are, last snapshot taken for instance, the date it was taken, the tag used if any, the name tag of the instance and the instance i.d.The below will list ALL snapshots and the time taken and a 'null' name gets reported...aws ec2 describe-snapshots --query 'Snapshots[*]....
aws cli query to find the last snapshot taken, the date it was taken, the tag used if any, the name tag of the instance and the instance i.d
If you are getting error for only one .css file and it does not belong to the application under test (i.e. it is an external stylesheet) the best thing you could do is just toexclude it from the load testviaURLs must matchsection which lives under "Advanced" tab of theHTTP Request Defaultsconfiguration element.If you n...
I have an application URL. I need to run login test using Jmeter. I recorded the login steps using blazemeter extension of chrome. But when I run it I get below error. I know there have been questions like this, I have tried few and it seems my case is different.I have tried:Added these two lines in jmeter.batset JAVA_...
Jmeter: Response code: Non HTTP response code: javax.net.ssl.SSLHandshakeException
Certificates are stored in Kubernetes secrets. Cert-manager will pick up existing secrets instead of creating new ones, if the secret matches the ingress object.So assuming that the ingress object looks the same on both clusters, and that the same namespace is used, copying the secret is as simple as this:kubectl --con...
I'm in the process of moving web services from one Kubernetes cluster to another. The goal is to do that without service interruption.This is difficult with cert-manager and HTTP challenges, because cert-manager on the new cluster can only retrieve a certificate once the DNS entry points to that cluster. However, if I ...
Move cert-manager certificate to another Kubernetes cluster
4 You're not understanding the format. variable_name => default_value => current_value Share Improve this answer Follow answered Nov 26, 2013 at 21:27 SammitchSammitch 31.5k77 gold badg...
Evening, I am try to run a script that need a lot of memory from the command line. System is Linux LinuxMint 3.2.0-23-generic w/ PHP Version => 5.3.10-1ubuntu3.6 I have memory_limit -1 in php.ini for CLI and am also setting ini_set( 'memory_limit', '-1' ); but if I run phpinfo() via the command line it says: memory_li...
PHP memory_limit Won't Increase on CLI
You don't need to use root for this case. This is happening because your shell script is not permitted to execute or an executable. You need to run the following before you run the shell script:chmod +x /abc.shShareFollowansweredApr 1, 2019 at 18:36cookiedoughcookiedough3,69222 gold badges2727 silver badges5353 bronze ...
I'm getting a case ofCrashLoopBackoffwhile my logs say:"/abc.sh" permission denied.This is myDockerFile:FROM python:3.6.3 COPY abc.sh /abc.sh CMD["/bin/bash","-c","/abc.sh"]The entry point is given in deployment.yml file. After I apply the deployment.yml with the image created by aboveDockerFile, it shows:/abc.sh per...
Kubernetes pods are going into crashloop backoff :Saying permission denied on starting the container
When rewriting to the file in the/articlesdirectory you can check that it exists first (as a file). For example:RewriteCond %{DOCUMENT_ROOT}/articles/$1.php -f RewriteRule ^([a-z0-9-_]+)$ /articles/$1.php [L]I've also removed theNCflag, unless you explicitly need this?Likewise tointernally rewriteto the directory:Rewri...
I use redirections quite a lot but I'm not able to achieve my goal despite searching.What I like to achieve:a request to/aaaaredirected to/articles/aaaa.phpbut only show/aaaain browser (this already works for years)a request to/bbbbwhich is a directory, no file exist with this name, has to be redirected to/products/bbb...
redirect url that matches directory otherwise
Is this really necessary? It is if you're still using manual memory management. Without that retain, returnObject could be deallocated as soon as you remove it from the array. A mutable array retains the objects that it contains and releases them upon removal. Retaining an object before removing it prevents the obje...
While looking for an NSStack or similar I came across this code sample. In the pop method the author explicitly retains returnObject and then returns an autorelease object. Is this really necessary? I'm under the impression that the runtime will destroy the object removed from contents via removeLastObject at the end ...
Objective-C runtime and memory management
With Kinesis Streams you can get your processing times to under a second. In my current streams the latency seems to be 5.5 ms for the Kinesis part and 330 ms for processing the record with a Lambda function. That is with a batch size of 1, which means that the lambda function processes records one by one.Kinesis Strea...
Reading over the documentation of both offerings (Firehose and Streams), it sounds like Firehose is "near" real-time with a potential of 60 seconds delay between producing a message to emitting it, whereas Streams documentation makes no mentioning of this potential delay.Does anyone have any real-world insight into any...
Is there any difference in processing times between AWS Kinesis Firehose and Streams?
This varies with the processor and compiler you're using. Assuming you're using an Intel x86/x64 or compatible (e.g., AMD) processor, the processor provides a number of prefetch instructions, and most compilers include intrinsics to invoke them. With VC++ you use _m_prefetch or _m_prefetchw. With gcc you use __builtin...
I read about cache optimization in C++ and the mechanisms, modern CPUs use to predict what data is needed next, to copy that into cache. But is there a direct way in C++ for the programmers, who know what actually is needed next, to determine what data gets copied into CPU cache?
Can I control what gets copied into CPU cache in C++?
3 You've not provided details of the nginx config, nor the fpm config. I see nothing from the logs There's your next issue. The default (combined) log format does not show any timing information. Try adding $upstream_response_time and $request_time to your log file. Thi...
I deployed NGinx, php-fpm and php 8 on a EC2 / Linux 2 instance (T4g / ARM) to run a php application. As I had done for the previous version of this application and php 7. It runs well, excepted for all first requests. Whatever the actions (clicking a button, submitted a text, etc.), the first request always takes 2.2...
NGinx + PHP-FPM - Response time of 2.2x minutes for the first request
It won't run unless the scripts user is set to always run. Seethis answerfor more details (and for instructions on how to get scripts to run on reboot, generally).
I am new to cloud-init, my final goal is to run an R script each time an EC2 Spot Instance becomes active, but in order to test it I created an on-demand Ubuntu 12.04 instance and created a simple script but nothing happens after reboot. Here are the steps I took:Launched the new Ubunut 12.04 instanceNavigate to/var/li...
Cloud-init per-boot script doing nothing
Verify that the CloudFront distribution's Minimum TTL is set to 0. If it's set to any other value, CloudFront won't respect the no-cache header and will still cache the file for the Minimum TTL. More details about the caching directives can be found here: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGui...
I'm hosting a static website in S3 and using Cloudfront to cache files. I've essentially got 3 files with the following headers: index.html (Cache-Control: no-cache) app.js (Cache-Control: max-age=63072000, public) style.css (Cache-Control: max-age=63072000, public) My html file uses query string parameters that get...
Amazon Cloudfront Cache-Control: no-cache header has no effect after 24 hours
Depends on what you consider "simple". Since it's only a small number of tables, the way I'd do it is like this: dump individual tables with pg_dump -t table_name --column-inserts edit the individual files, change the schema definitions to be compatible with mysql (e.g. using auto_increment instead of serial, etc. : ...
I have a PostgreSQL database with 4-5 tables (some of those have more than 20 million rows). i have to replicate this entire database onto another machine. However, there I have MySQL (and for some reason cannot install PostgreSQL) on that machine. The database is static and is not updated or refreshed. No need to syn...
Duplicating PostgreSQL database on one server to MySQL database on another server
It was replied earlier in another thread:https://stackoverflow.com/a/12904282/2324004Unfortunately, Socket.io wiki lacks of some of information but the clue is to set up resource:Clientvar socket = io.connect('http://localhost:8081', {resource: 'test'});Servervar io = require('socket.io').listen(8081, {resource: '/test...
i want bind nodejs to a url, like this:http://myproject.com/nodejs/Currently, i have node in port 8080.And i have nginx configuration :upstream app { server 127.0.0.1:8080; } server { listen 80; ## listen for ipv4; this line is default and implied root /home/myproject/www; index index.html index....
Nginx set up nodejs in port 80
3 Use git branch -vva to see what references you have: * master 898bfa9 [origin/master] Commit A test a2b238b [origin/test] Commit B remotes/origin/HEAD -> origin/master remotes/origin/master 898bfa9 Commit A remotes/origin/test ...
I am trying to delete the remote branch that i created for testing purpose and this command does the trick: git push origin --delete test However in my git gui I can still see the commit log message for that branch. How can i delete the commit history? There was only one commit made for this branch.
How to remove remote branch and its commit history from git?
by default if binded to a none existent path, docker will create a folder, the solution would be in your case to create the path before running yourdocker-compose
I have a very simpledocker-compose.ymlfile where I usenginxand mounting a file as a volume.But everytime I run the application, it is creating a directory.htpasswdwithout really mounting the.htpasswdfile where I locally.This is thedocker-compose.yml.version: '3' services: reverse: container_name: reverse hos...
docker-compose create a directory instead of mounting the file
I fixed my issue without loosing my data - Deleted the index file manually. After that, I used the command git reset --keep (you may need to delete index.lock file as well) Then used the command git status(it will take some time) magically all my changed files were there for me to commit. Thank you for your time guy...
I was working on a branch and it was working fine. After some work, when I type git status this happens: mac-mini:production_designs jithinraj$ git status error: bad signature fatal: index file corrupt Now I can't commit or do anything on my branch. Any solution for this without losing my data that was not committed?...
Is there any solution for git - error: bad signature without losing (non-committed) data
Yes, so long as you keep the specification that it's a new repository on your PC.
I have been learning git and kind of stuck on the topic "Create a new Repository". I get that git clone copies an existing repository to your PC. Is it right to say that git clone creates a new repository on your PC? Thanks
Is it right to say that "git clone" creates a new repository?
You can run: git branch -a --contains <sha> -a means all branches. If your sha is in no branch, which could happen in some cases, you won't see anything.
I'm setup AWS CodeBuild to build automatically from GitHub. Other CI services provide an environment variable for the branch, but I can't find one for AWS CodeBuild. There is a CODEBUILD_SOURCE_VERSION that is set to either pr/7 where 7 is the pull request number or the git commit sha. Given the commit sha, I've been ...
Get GitHub git branch for AWS CodeBuild
I know that this question is pretty old, but i has faced the same problem with a complex query that uses row_number function. My data has no a primary key, and the row_number partition clausule took only a few fields like criteria in orderby. I solved the problem including all the "key" fields in the orderby clausule ...
When I run exactly the same query multiple times on the same data-set (the very same parquet files on s3), slightly different result sets are returned each time. Sometimes a few lines are missing or aggregated data is slightly off etc. Granted, the query is relatively complex with several nested queries and aggregation...
Athena returns different result sets when exactly the same query is run
Please try the belowHPAconfiguration object.apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: nginx-hpa namespace: default spec: scaleTargetRef: apiVersion: extensions/v1beta1 kind: Deployment name: nginx minReplicas: 2 maxReplicas: 10 metrics: - type: Resource ...
I am running anEKScluster and I have aHorizontalPodAutoscalercreated for autoscaling number of pods based on average CPU utilisation.How to do the same for Average memory utilization?Suppose all of the pods running in an EKS clusters, have used average of 70% of memory they are allocated (usingresources), then the depl...
How to autoscale Kubernetes Pods based on average memory usage in EKS?
We had a slightly different problem but also OOMs due to a high amount of clobs. We solved the problem by freeing the clobs manually with clob.free() We expected them to be closed/freed after closing the resultset. So we stored the them in a list up to the part where the resulset got closed and checked the free variabl...
Goodday everyone.Faced strange OOM after switching from readingvarcharfield toclobfromOracledatabase in java application.(We are using oracle.jdbc.driver with bonecp connection pool + spring jdbctemplate)Heapdump shows(see picture)that memory stays intemporaryLobsfields inside acom.jolbox.bonecp.ConnectionPartition->fr...
Strange memory grow in temporaryLobs while fetching CLOB with oracle jdbc driver in java app
According the book "Kubernetes in action" by Marko Luksa:Why the double dash?The double dash (--) in the command signals the end of command options for kubectl. Everything after the double dash is the command that should be executed inside the pod . Using the double dash isn’t necessary if the command has no arguments ...
If I run the command$ kubectl exec pod-name echo Hello WorldI get a deprecation error message asking me to include the '--' characters.kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.Why was the decision made to require the '--' characters ...
Why does kubectl exec need a --?
Problem solved:In system there were two Mercurial versions installed:/usr/bin/hg == v1.4 /usr/local/bin/hg == v2.2Althoughwhich hgshows/usr/local/bin/hgnginx was using/usr/bin/hg.
There's a lot of questions about bookmarks but none of them answers my question:What should I do to allow for creating bookmarks while pushing to my hgweb server?Here's what I'm getting while trying to push bookmark:$ hg push -B feature1 pushing to http://local_server/hg/Project searching for changes no changes found e...
Creating remote bookmarks while pushing to hgweb server
I have some ideas for debugging.Do avar_dump(file_get_contents('php://input'));instead of an echo. According to thereference:This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. Please read the section on Booleans for more information. Use the === operator for testin...
I'm trying to upload a file using HTTP PUT.After reading a bit it seems the$_FILESarray is only with POST andmultipart/form-data. While with PUT, I'd need to manually readphp://inputto get the data. Both methods don't work.I tried the following options and would appreciate any tips you might have:curl --upload avatar.j...
Curl PUT request with file upload to PHP
Turns out it was easier than I thought. In com.apple.Bluetooth.plist, there's a CoreBluetoothCache key containing a dictionary with some cached services and stuff. The tricky part was editing the cache without blued writing all over it. Anyway, this is the way to go (in Terminal):sudo defaults write /Library/Preference...
I have an iOS app acting as peripheral and an OS X app acting as a central, using the CoreBluetooth framework. The OS X app connects to the iOS app and they bond by reading an encrypted characteristic and entering a random code. Everything works fine, up until the point the iOS app is restarted. From then on, every tim...
Clearing CoreBluetooth GATT cache without removing bond
You can use :#Rewrite /file to /file.php RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [NC,L] # Rewrite any other request to /core.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ /core.php [NC,L]Explaination :RewriteCond %{REQUEST_FILENAME}.php -fThe ...
RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . Core.phpNow I have this above but, would like to know how/if I can mix these into one. I'm new to this .htaccess so if you could give me a link or somewhere to ...
2 Rewrite Rules for 2 Conditions?
It's not simply an entry point in the DLL that the dependent executable needs. The DllMain is simply invoked by the system (PE loader) when the DLL is loaded. The dynamic loader resolves imported addresses in structures like the Import Address Table and at runtime the application can even resolve addresses dynamically...
I have an executable that needs a dll file for dependencies. I wonder if it's possible to actually patch a PE file that needs the dll that would read the entry point from a pointer which is located either in memory or in a resource. If this would be possible how can I do it? Thanks for your help :)
Merge DLL to PE (Patching)
This does in fact work. I erroneously had the papertrail details misconfigured so I was not seeing the logs.
I have the following docker-compose configuration:version: '3' services: worker: image: // image logging: driver: syslog options: syslog-address: "udp://XXX.papertrailapp.com:XXXX" tag: "{{.Name}}/{{.ID}}"When I deploy this to DigitalOcean under Ubuntu, I can successfully run thedo...
docker-compose logging is not working with syslog option
Either should be fine. SHA-2 will break IE6, and all versions of IE on Windows XP prior to SP 3. If you're fine with that, go for it. -Tom Maher Heroku Security Team
My DNS has an option to use SHA-1 or SHA-2 for the ssl certificate. Which one should I choose to be compatible with Heroku SSL Endpoint? Does either work?
Should I use SHA-1 or SHA-2 with Heroku SSL Endpoint?
You may use a redirect rule like this:RewriteCond %{QUERY_STRING} !(^|&)(search|reset)= [NC] RewriteRule ^index\.php/characters/?$ /$0?reset=true [L,R,QSA]Negative conditionRewriteCond %{QUERY_STRING} !(^|&)(search|reset)=will skip the rule if query string has a parameter that starts withsearch=orreset=.
I'm building a website (in Joomla 4, if that's relevant), and I'm trying to use .htaccess to redirect URLs like this:index.php/characters... to URLs like this:index.php/characters?reset=true... but leave URLs like this alone:index.php/characters?search=fredI usedhttps://htaccess.madewithlove.com/to test the following r...
How to prevent .htaccess rule adding endlessly repeated parameter at the end of the URL
I changed the original authorization policy fromapiVersion: security.istio.io/v1beta1 kind: AuthorizationPolicy metadata: name: service-auth-policy namespace: namespace-dev spec: rules: - from: - source: requestPrincipals: ["*"]including the namespace as belowapiVersion: security.istio.io/v1beta...
There are ServiceA and ServiceB services deployed under the same namespace. There is istio enabled for validating request authentication. Any calls to the service needs to have 'Authrization' header with valid jwt token. It get validated withRequestAuthenicationalong withAuthorizationPolicyset. It is working as expecte...
Spring-boot running under istio sidecar proxy throw HTTP 403 Error
You have multiple options to deal with this problem. in case of AWSInstallaws cloud watch log agentStart log-agent with log fileStream cloud watch log to lambdaLamda will push logs to ELKBut I will go with the below approach as it will not need Lambda and log-group and the logs will send to ELK directly.FilebeatLogagen...
I am new to AWS and was experimenting with some of its services. I managed to create a python application running inside an EC2 instance. The application creates a log file with the analysis data. I want to connect this log file with AWS's Elasticsearch and Kibana service to begin running analytics on it. Can someone...
Using AWS ELK stack for capturing logs
In Hibernate 2.x, have you tried usingsaveOrUpdate(Object)? This was the initial workaround provided by Hibernate until they addedmerge()in Hibernate 3.ShareFollowansweredMay 25, 2011 at 20:09Stevi DeterStevi Deter1,6831212 silver badges1717 bronze badgesAdd a comment|
I'm currently trying to perform audit logging of changed properties using anInterceptorin Hibernate 2.x.Problem is, the entity I'm trying to save is a detached object so thepreviousStatearray inonFlushDirtymethod ofInterceptoralways return null. They say that this can be simply solved by callingmergebut that method is ...
Any tips on backporting merge() operation from Hibernate 3 to a custom Hibernate 2 application?
One of these implementations will cause 500 internal error if there are more than 10 underscores to be replaced by hyphen since default value ofLimitInternalRecursionvariable is 10.Here is one way you can make these replacements work for 20 underscores:RewriteEngine On # when there are more than one _ then "recursivel...
I'm trying to redirect all URLs with underscores to the same URL but with underscores replaced by hyphens.I've tried many examples online but these either provide server errors or seem to result in a loop that crashes my server.From what I've read the following should work:RewriteRule ^([^_]*)_([^_]*_.*) $1-$2 [N] Rewr...
Htaccess recursively replace underscores with hyphens
This is a driver issue wherein TF is not being able to detect your GPU .Follow these steps to get it resolved :Install latest Python :sudo apt install python3python3 --versionSet Directory / Continue in the root folder.Instal Latest NVIDIA drivers fromhere(I used Ubuntu LTS)Install Cuda Toolkit (Use NVIDIA account / Yo...
I recently installed Tensorflow-gpu and 2 errors popped up.Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found Ignore above cudart dlerror if you do not have a GPU set up on your machine.Thing is I want to use my GPU so I am not sure if this will affect it.I installed cudnn yet still ...
Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
lcov.info may have incorrect file paths. Other tools like coveralls work fine and sonar expects the relative path. Here is how my lcov.info looked./source/app/simplebind/child.component.ts was incorrect and sonarqube expectedsrc/app/simplebind/child.component.tsTN: SF:/source/app/simplebind/child.component.ts FN:11,(an...
I have karma configured which gives me coverage report perfectly fine.It gives me in lcov format. Referring to thishttp://docs.sonarqube.org/display/PLUG/JavaScript+Coverage+Results+Importlcov report can be uploaded to sonar.I have installed the plugin in sonar. My project builds through ant scripts so i have added<pro...
How to upload karma test report to sonar?
Yes,you can use a GitHub repository directly in DevOps for CI.To achieve this, you only need to select Github as source when create a new build pipeline: Then you can enable continuous integration in Triggers of pipeline.
I don't want to import a repo but use github repo directly. I was disappointed that you can only link to your GitHub repo for Project Management boards. I want to link to Github for Continuous Integration in the Build pipeline..but DevOps is forcing me to Import the repo so it becomes a new repo local to DevOps separa...
Is it possible to use a GitHub repository directly in DevOps for CI
Their are no callback registry in dataflow out of the box.However, you can set custom alert on stackdriver which can alert you once the pipeline is finished.
Is it possible to get a callback after once DataFlow pipline is completed ? After the pipeline is completed I have to make some configuration changes to the system to use new Output generated by the pipeline and some other cleanup too. Now I am actually using thewaitUntilFinish()function to halt the program flow and ...
How to perform a set of action after a Dataflow pipeline is completed?
Having unstaged changes and then comparing them to a branch is inconvenient. You also run the risk of loosing these changes, since these changes are unstanged. You might even mess up the git tree if you poke the PR and then try to save these new changes. All in all, you are limited to the things you can do when working...
I'd like to fetch the proposed changes of a pull request and put them against my current master branch as unstaged changes, so I can do things like callgit diffand see exactly what they are proposing, poke at it, and then decide whether I'd like to accept the pull request.I've seen answers here which talk about pulling...
Github - Fetch a Pull Request as unstaged changes
I don't think you can count pods, but you can count containers. With a constant number of containers inside the replicated Pods and proper filtering, you'll get what you need.While in Stackdriver go to Dashboard -> Create dashboard. Select the following settings:Resource type: GKE Container Metric: Uptime Filter: (that...
I have added severalHorizontal Pod Autoscalers(HPAs) to a Kubernetes cluster. I want to monitor the number of replicas of each pod over time.DoesStackDriverhave an option to monitor the number of replicas of each pod over time? When creating a metric I can't find an option that will allow me to do this.
Is it possible to monitor the number of pod-replicas in a Kubernetes cluster over time with StackDriver?
you don't actually need a rewrite for that in nginx, just use try_files like so:location / { try_files $uri /index.html; }what this does is for all url's:try the exact static filename match, and serve it if presentif 1 didn't serve anything, then server /index.html insteadseehttp://nginx.org/en/docs/http/ngx_http_cor...
I'm trying to work on a single page app - I need to rewrite all urls to index.html but allow existing static files (.css and .js) to be served as they normally would be in a browser.This is the code that I'm trying to use to re-write but it serves my static files to the re-write as wellif (!-e $request_filename) { ...
Nginx rewrites static files to index.html
This issue is tracked onVSTS-135and the fix should be released within a week.
I'm getting an error when installing the sonar-scanner-vsts downloaded from the marketplace and installed in TFS 2017 with the version 4.0:The task.json file was not found in contribution tasks/scanner-cli.Looking over the source at git-hub, looks like folders were added but the manifest JSON was not updated with the n...
sonar-scanner-vsts task fails to install in TFS 2017
There is no such thing as an allocated pointer. char *x = (char *) malloc(12); declares a pointer x. Then it allocates 12 bytes of memory and makes x point to the 12 bytes of memory. free(x); frees the 12 bytes of memory. x still points to the 12 bytes of memory which are now freed. x = (char *) malloc(12); allocates ...
I'm working on a C library and am trying to be very cautious about memory management. I have a function which allocates memory for a pointer, and am trying to cover the case in which the pointer is already allocated. I am wondering if I need to free the pointer before allocating over it. char *x = (char *) malloc(12);...
Is it safe to malloc on an allocated pointer in C?
I found a simple method heremax_over_time({filename="/var/tmp/mylogs/mylog.log"} |= `` | pattern "<_> Val: <myval>" | unwrap myval [1m])I was also able to manipulate it like thismax_over_time({filename="/var/tmp/mylogs/mylog.log"} |= `` | pattern "<_> Val: <myval>" | label_format myval="{{mulf .myval 2}}" | unwrap myva...
I have spent the past 4 hours trying to fiddle with LogQL and cannot figure out for the life how to graph this.I have a file2023-08-04T07:31:02+0000 Val: 0.1 2023-08-04T07:32:02+0000 Val: 0.2 2023-08-04T07:33:02+0000 Val: 0.3 <...more data...> 2023-08-04T51:21:02+0000 Val: 213.123123123in grafana logql I have{filename=...
how to use logql to graph a grafana-loki time series chart with simple log file
Client_secretis now optional for the k8s oidc config, which means that it can support public clients (with or without client_secret) and confidential clients (with client_secret, per kubectl user).This mean that you don't need to use client secret to authentication but as I wrote in answer for your next questionopenid-...
We have a single kubernetes development cluster. We want to give every developer working on this development cluster a namespaced controlled access.We wanted to authenticate it using Google as the OIDC provider which kubernetes API supports.But this requiredclient-secretto be part of~/.kube/configusers: - name:[email p...
Use Google as the OIDC provider without leaking client secret in kubernetes
I think VictoriaMetrics might be a good option for Youhttps://docs.victoriametrics.com/?highlight=Import#how-to-import-csv-dataAlso You might consider its agent for scraping on iot devices.
I have several hundred IOT devices uploading performance metrics in .csv format into an s3 bucket. I need to get those metrics into my already existing prometheus/alertmanager monitoring solution. I'm attempting to use an existing exporter called mtail (https://github.com/google/mtail), but for the life of me I can't f...
Reading metrics in .csv format into prometheus from S3
To verify the right server, you've to pin the certificate. Please have a look athttps://developer.android.com/training/articles/security-ssl.html#Pinningwhereby a tutorial is given herehttp://www.thoughtcrime.org/blog/authenticity-is-broken-in-ssl-but-your-app-ha/ShareFollowansweredJul 9, 2015 at 15:14Tobias STobias S1...
I am new to SSL. I am using the code given athttps://developer.android.com/training/articles/security-ssl.html#HttpsExampleand using it I am able to establish connection with my URL (verified by urlConnection.getResponseCode(), where urlConnection is of type HttpsURLConnection). Now my doubt is using this how do I ensu...
Using SSL in Android
Playing with your rules, I found out thatHTTP_HOSTincludes the port number. So the rules should look likeRewriteCond %{HTTP_HOST} ^sub.website.com:2000$ [NC] RewriteCond %{SERVER_PORT} ^2000$ RewriteRule ^(.*)$ https://123.45.67.891:3000/$1 [L,R=302]If you want to test against server name alone, you could use%{SERVER_N...
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed10 years ago.Improve this questionI am trying to usemod_rewriteto basically port forward a port on a subdomain to another port on another IP.Like this:sub.webs...
Change port and host using .htaccess [closed]
4 In markdown, text surrounded by underscores is processed like emphasis and then surrounded by tags. If you want your underscores to be printed as is, you can escape them with a backslash "\". Document: [https://hub.docker.com/\_/microsoft-mssql-server](https://hub.docker...
Content in markdown GitHub pages, for a real link: https://hub.docker.com/_/microsoft-mssql-server Document: [https://hub.docker.com/_/microsoft-mssql-server](https://hub.docker.com/_/microsoft-mssql-server) Result <p>Document: [https://hub.docker.com/<em>/microsoft-mssql-server](https://hub.docker.com/</em>/microsof...
Markdown error with link has character "_"
kubectl waitdoes not include the functionality towait on a non existent resource yet.For anything complex try and use akube API client. Run awatchon a resource group and you receive a stream of events for it, and continue on when the event criteria has been met.If you are stuck in shell land,kubectldoesn't seem to resp...
I can usekubectl wait --for=condition=complete --timeout=<some time> job/<job-name>to wait for a job in completed state. However, if the job has not yet been created (sometimes, it's due to k8s takes some time to schedule the job), kubectl will exit with error immediately.Is there a way to wait for the job been created...
How to check a job is completed before it's been created using kubectl?
GitHub feedsare for a repository as a whole, or for user activity.There is no feed on a file-by-file basis.You would need to install apush event webhooklistener, asI mention here, in order to pull,get the list of files of that pull, and send you a notification of your file is part of the pull.In short: a manual feed no...
Is there a way to get a feed of updates to a file in a Github repo? Note I don't own the repo, I just wanted to be informed when a file (the release notes) changes and ideally have that in an MS Teams channel.
How to get feed from Github file modifications?
docker: no matching manifest for linux/amd64 in the manifest list entries.means this image can just works on windows platform.Although you works on windows, defaultdocker desktopmay uselinux container, you should switch towindows containerbefore pull this image using next at desktop tray with mouse right click the dock...
FromhereI can't pull or run any windows docker image (from windows or Linux)When trying from Windows cmd:Pull:docker pull mcr.microsoft.com/windows Using default tag: latest Error response from daemon: manifest for mcr.microsoft.com/windows:latest not found: manifest unknown: manifest tagged by "latest" is not foundRun...
Can't run or pull windows docker images
Use the following in the variable definition:Query = label_values(instance)
I need in grafana's dashboard to get a list of the targets (activemq01, activemq02, activemq03) from a specfic job_name (activemq-job).Actually I can get on my dashboard only the job_name but I can't filter by target.Prometheus.yaml- job_name: activemq-job static_configs: - targets: ['activemq01:8060', 'activem...
Grafana & Prometheus: get target from a job_name
https://grafana.com/grafana/plugins/grafana-redshift-datasource/$__timeFrom() outputs the current starting time of the range of the panel with quotes=> Grafana macro is$__timeFrom()and not only$__timeFrom, so correct condition:WHERE first_week >= EXTRACT(YEAR FROM $__timeFrom() AT TIME ZONE 'UTC')As usual: doc is your ...
I am facing with a query done on Redshift from Grafana where on adding a specific where clause, the above mentioned error is coming. Without this where clause, it is doing fine. Also, if we put a direct value say where first_week > 2, then no error is coming.where clause:WHERE first_week >= EXTRACT(YEAR FROM $__timeFro...
Redshift with Grafana - ERROR: This type of correlated subquery pattern is not supported due to internal error
Just in case anyone gets this error for the same reason I did. I had built an image locally and Docker was complaining the image could not be found. It seems the error was happening because I built the image locally, but specified a different platform fordocker run(I had copied the command from somewhere else). Example...
I am trying to run the postgres container and get error as bellow."Unable to find image 'name:latest' locally docker: Error response from daemon: pull access denied for name, repository does not exist or may require 'docker login': denied: requested access to the resource is denied."I have been working on the problem ...
Unable to find image 'name:latest' locally
+25Firstly there is no simple way(yet) to achieve this. One way to is to achieve as below.Part one is to installDEX.Dex is an OpenID Connect provider done by CoreOS. Dex can defer authentication to LDAP servers.The second part is to install and configuregangwayIt is by Hepito it will talk with OIDC provider which is De...
I have created a Kubernetes cluster, and I wish to connect it to my Active Directory, using LDAP, so it'll behave as follows:Anyone who want to runkubectl, will have to authenticate first (and that authentication shall be against my AD). Preferably, there will be single sign-on (SSO), meaning that the authentication sh...
Connect Kubernetes to AD
Since the website redirect is saved in the browser's cache, the redirect will continue even if the redirect is cancelled via the Settings>Pages tab on GitHub; this will automatically cause the CNAME file to be deleted. The way to solve this problem: Remove the previous redirect by going to Settings>Pages on GitHub. R...
I created a web page using GitHub Pages. I added the custom domain by following the Settings>Pages path. The page redirect was successfully performed by creating the CNAME file. I wanted to cancel the page redirect after a while. Therefore I removed the CNAME file and followed all the steps mentioned in the documents...
How do I cancel GitHub Pages redirection?
I find it's either you open your Redshift security group public to all sources, or none. Because a Lambda function isn't running on a fixed address or even a fixed range of IP addresses, which is completely transparent to users (AKA server-less).I just saw Amazon announced the new Lambda feature to support VPC yesterda...
I created an AWS Lambda function that:logs onto Redshift via JDBC URLruns a queryLocally, using Node, I can successfully connect to the Redshift instance via JDBC, and execute a query.var conString = "postgresql://USER_NAME:PASSWORD@JDBC_URL”; var client = new pg.Client(conString); client.connect(function(err) { i...
Conecting AWS Lambda to Redshift - Times out after 60 seconds
You need to add -n option to ssh when run it in background to avoid reading from stdin.
I'm attempting to create a ssh tunnel, when deploying an application to aws beanstalk. I want to put the tunnel as a background process, that is always connected on application deploy. The script is hanging forever on the deployment and I can't see why."/home/ec2-user/eclair-ssh-tunnel.sh": mode: "000500" # u+rx owner:...
ssh tunnel script hangs forever on beanstalk deployment
If the online review is not satisfactory (here because of end of line diff), then a reviewer in your project will have toCheck out pull requests locally.Once checked out, a local diff can be done against the target branch, this time with diff tool able to ignore the difference betweena+banda\n+\nb.That involves:diff op...
My project is in C#, which ignores whitespace, both spaces and in particular newlines.When entering thediffview in Github, I know I can use the?w=1url parameter to ignore whitespace.But it does not completely ignore whitespace. The line:somethingLong + somethingAlsoLongGets transformed like this:somethingLong + somethi...
Ignoring all whitespace, including newlines in GitHub
After hours of searching, I finally came up with the solution.With WinHttpQueryOption, use WINHTTP_OPTION_SERVER_CERT_CONTEXT as the option flag and get the structure pCert(CERT_CONTEXT) . Now get the PCERT_INFO member of the structure to get details about the certificate. In PCERT_INFO use theSubjectPublicKeyInfomembe...
I need to find thePublic keyspecified in certificate details. I have used WinHttpQuery option and provided WINHTTP_OPTION_SERVER_CERT_CONTEXT as the option flag.bRet = WinHttpQueryOption( hRequest, WINHTTP_OPTION_SERVER_CERT_CONTEXT, &pCert, &dwLen);I found the public key encryption type using the structure returned fr...
Get the size of public key using WinHttpQueryOption
git config --global url."https://".insteadOf git://or to handle a specific external site only, try:git config --global url."https://example.com/".insteadOf git://example.com/
Based on an example from the sbt wiki, I've tried aprojects/projects/Build.scalacontaining:import sbt._ object PluginDef extends Build { override lazy val projects = Seq(root) lazy val root = Project("plugins", file(".")) dependsOn( eclipsePlugin ) lazy val eclipsePlugin = uri("git://github.com/typesafehub...
How to make sbt compile a plugin from a git repo, using https to check it out?
In the Dockerfile for the image your container comes from, there is the VOLUME instruction which tells Docker to leave the /var/lib/mysql directory out of the container filesystem. The docker cp can only access the container filesystem and thus won't see the files in mounted volumes. If you need to backup your mysql ...
Tried copying a directory and it doesn't seem to work. Start a MySQL container. docker cp mysql:/var/lib/mysql . cd mysql ls NOTHING. Here's the script to try it yourself. extra info. On Ubuntu 14.04 jc@dev:~/work/jenkins/copy-sql/mysql$ docker -v Docker version 1.2.0, build fa7b24f
docker cp doesn't work for this mysql container
You pay when the instance is in RUNNING state. From docs: If your instance is billed by the second, then you're billed for a minimum of 60 seconds each time a new instance is started—that is, when the instance enters the running state. This is independent of your application on the instance.
I am trying to host an application on AWS. I am comparing hosting it on Lambda and on EC2, and was thinking about "sides costs". Indeed with lambda I am charged for cold starts, and I was wondering if when starting/stopping an EC2 instance you're charged for this time, since my instance will take something between 1 o...
Are EC2 instances charged when starting/stopping?
You can use WinDbg (download) with the SOS.dll extension to look at memory dumps of your application.
My Windows service is eating a lot of private data (yellow in VMMap) I have a Visual Studio with Debugger. How can I find out who is consuming so much memory? I think it must be unmananged C++ new operators. Is it possible to detect without installing commercial third party memory profilers?
How to detect who is creating memory consumption in .NET app?
I see one possible case not covered. The inputvalmight benull. In that case, yourswitchstatement would throw aNullPointerException. To remedy this, you could add null check to the start of the method.private static String mapMyVal(String val) { switch (val) { case "foo": return "FOO_FOO"; ...
When I run coverage on my code below:private static String mapMyVal(String val) { switch (val) { case "foo": return "FOO_FOO"; case "bar": return "BARR"; default: throw new InvalidArgumentException(); } }I see "8 out of 10 conditions covered" when I run my unit tests ...
Condition coverage on switch statement
I would useaveragefunction to calculate MTTR (meantime to resolution):SELECT $__timeGroupAlias(created_on,$__interval), sum(seconds_to_first_ack) AS "seconds_to_first_ack", sum(seconds_to_resolve) AS "seconds_to_first_resolve", count(seconds_to_resolve) AS "COUNT", avg(seconds_to_resolve) AS "MTTR" FROM alert...
Please suggest the MySQL queries for grafana. I have data with I required MTTR from data, I'm getting expected output with add "15" as an integer in the query but not with count queries.from "[with integer][1]" image. sum(seconds_to_resolve) / 15 /60 as "MTTR" ---> value is 25.4Getting different value if mentionedfr...
Grafana mysql query
If master had changes that were not in your working branch, I would expect the merge from master to working_branch_name to contain changes that has nothing to do with the changes you made. Changes that have been done to master since the last time you pulled will be merged in to your branch.If there were no new changes ...
Ipulledto the latest version of master to local.mergedthemasterto myworking branchCheckedthat there are noconflictsmergedtheworking branchback tomasterpushedthemasterto themasterinremoteafter doing so, I checked the last commit on the master branch onGithub, and the commit message said:Merge branch 'master' into 'worki...
master merged to working branch even though I merged the working branch to master
In Amazon DocumentDB, modifying the the tls parameter requires a reboot for the change to take effect. Thus, it is possible to modify the parameter, still have a pending change on the cluster, and still be able to connect without TLS. It is recommended to reboot all the instances in the cluster for the pending changes ...
I am using following commands as aws suggests to download rds-combined-ca-bundle.pem file and to connect to cluster.wgethttps://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pemmongo --ssl --host docdb-2021-03-29-09-23-57.cluster-cqwdgjnpay32.ap-south-1.docdb.amazonaws.com:27017 --sslCAFile rds-combined-ca-bund...
Cannot connect to aws documentdb ssl enabled cluster from mongo shell in ec2 which is in same vpc as of cluster
You can use one rule for both actions:RewriteEngine On RewriteRule ^page/([^/]+)/?$ /index.php/$1 [NC,L]This will internally redirect a url ending with or without a slash to "/index.php/$1"
I would like to rewrite the following url:index.php/variablewhere variable can be any name such about,contact, etc.topage/variable or page/variable/where variable can be any non case-sensitive character.Essentially the user would accesspage/variableorpage/variable/which would rewrite the url of theindex.php/variableI h...
working with htaccess rewrite rule
4 Its work for me.open list.phtml file locate this code line no. notepad++ 133 <img id="product-collection-image-<?php echo $_product->getId(); ?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(236,193); ?>" ...
For all my magento product images i am getting the image from the cache url.How to disable it and make my product images to use the original url? I have tried with the below code in my /public_html/dirname/app/code/core/Mage/Catalog/Helper/image.php file but its not supporting. Mage::getModel('catalog/product_media_co...
How to remove the cache url for product images in magento
1 ngx_http_auth_jwt_module exposes variables that contain claims decoded from the JWT payload, including aud and iss, which will appear in variables $jwt_claim_aud and $jwt_claim_iss correspondingly. You can read more in the documentation under Embedded Variables section. H...
Want NGINX to authenticate incoming requests based on an OAuth2 token INCLUDING validating specific token claims e.g. "aud" audience claim, "iss" issuer claim etc. ngx_http_auth_jwt_module (http://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html) only validates the token to ensure it's signed by an expected party ...
NGINX JWT authentication validating specific JWT Claims (iss, aud etc)
For a general view of connecting to MySQL:Connect to MySQL from external machineIn your case, you are on the same subnet, so you can forget the routers/internet part.ShareFolloweditedOct 3, 2017 at 3:24answeredOct 3, 2017 at 2:43Jacques AmarJacques Amar1,80311 gold badge1111 silver badges1212 bronze badges51Most answer...
I have a web service with mysql running on a Mac OS X VMware Fusion image inside of a Mac OS X host. Both Macs are showing Firewall:Off under Security & Privacy.When I dotelnet localhost 3306ortelnet 127.0.0.1 3306, I am able to connect. However if I dotelnet SERVERDOMAIN 3306, it is not reachable.On the Mac there are ...
Why is my port 3306 closed even though I do not have bind-address and skip-networking line at all?
There is a difference between leaked memory - which is memory you've allocated that you cannot give back to the system because you've lost the pointer to the memory and you can't release it. And then there is poorly using memory - which is where you allocate memory. It's not "leaked" because you can give it back, but ...
I am developing an iOS app and testing its stability. There are no memory leak issues when I check it using XCode Analyze. I simulated on my iPhone 5 and iPad 2 and tried clicking buttons and flipping the UIScrollView continuously as fast as I could. The debug log did show a "received memory warning" message several t...
What could cause an iOS App to quit unexpectedly?
This question was already discussed here: Pass an object to a function without copying it on change Your second approach does not really solve the problem. Here is the test I ran with the results of mem_used() library(pryr) mem_used() #41.3 MB x <- matrix(1:1000000000, ncol=1000) mem_used() #4.04GB f2<- function(x)...
Problem I want to write a function that modifies each column of a big matrix, x: f = function(x){ # do something to x # return x } Because x is very large, I would like to modify it "in place", i.e. without creating a copy. However, my understanding is that in R, functions are "copy on modify." In other words...
Memory efficient way to modify a variable within a function
The man pagefordocker rmispecifies thatdocker rmiis an alias fordocker image rm. I suppose the documentation from docker is a little bit inconsistent in that regard. They write all the details fordocker rmiwhile the documentation fordocker image rmis lackluster.
According to Docker documentations,docker image rm"Remove one or more images" [1].docker rmihas a same description [2], but then it goes on to say "Removes (and un-tags) one or more images from the host node."Dodocker image rm IMAGEanddocker rmi IMAGEhave an identical effect under any scenario?IMAGEis ID of the particu...
Difference between docker rm IMAGE vs docker rmi IMAGE
use dash - to exclude: -author:robotShareFollowansweredNov 3, 2016 at 3:20Will-i-Am-DavidonWill-i-Am-Davidon1,62211 gold badge1515 silver badges1515 bronze badges3Amazing. Works like charm. Is this a new feature?–Haoyuan GeNov 3, 2016 at 6:4911hmm seems to be broken as of May 2021 :-/–vpipktMay 25, 2021 at 20:14Effing ...
I want to filter all issues created by robot like:is:issue is:open author:not:robotHow to get all issues except those created by robot?
How to search issues/pr whose author is NOT somebody in github?
You can see all the API calls kubectl is making by passing--v=8to any kubectl command
Does kubernetes accessible via a REST API? I was looking over at theKubernetes APIpage and it all looks very cryptic / incomplete. They talk about new versions but have not disclosed the API usage or docs anywhere. I just wanted to know if there is a way to access the cluster information in any other way other than usi...
Kubernetes REST API
1 I found the error... It was my fault. I had set the homepage in gitlab to my "home page", not to the gitlab home page. When i wanted to access gitlab, if not logged in, i was redirected to my homepage. not to gitlab. Share Follow ...
i'm experiencing an strange issue with gitlab (hosted by myself). When i want to access gitlab, it redirects me to the root domain. (Gitlab is hostet on an subdomain, root domain host is different from gitlab host). After some search i didn't found a solution, so iam asking the question, how to fix this? Some informat...
Gitlab redirects to root domain
-2 If you have clone the Nodonisko/ionic-cache repo locally, you can apply this pull request, even though it is not yet merged into master. See "How to apply a git patch when given a pull number": git checkout -b mylocalbranch git pull origin pull/43/head But since you use...
I'm using this ionic cache service module, but it as some savior bug. You can see it here (issue 42). I can see a pull request to that bug too. Yet, it is not merged into the main branch. Can you tell me how to use that fix with my Ionic 3 app? Update: I have tried npm i --save Nodonisko/ionic-cache#pull/43/headas me...
Use pull request before it has been merged to the main branch
CI/CD will resolve your problem CI/CD automates your builds, testing, and deployment so you can ship code changes faster and more reliably. If you use github: CI/CD on Github If you use gitlab (): CI/CD on Gitlab
I have a Windows server running a node.js program. Currently, I deploy code to it manually by pushing to github, and then log into the server, and manually run: git pull npm i nodemon app.js How can I make the server monitor remote changes on a certain git branch, auto pull, (and consequently npm install and re-run t...
How to monitor remote git changes and auto pull?
I'd take schema loop out of the function with drops. So lets assume fn_loop plpgsql loops schemas and calls fn_drop. You can commit in batches in plpgsql if you execute fn_drop over dblink. Another way to have commit between schemas, loop in bash, eg: for i in $(psql -c "select nspname form pg_namespaces where bla...
I have a database with a lot (3000+) of schema identical in structure. I'm trying to drop two tables from each schema. So I wrote a function that will loop over the schema and try to drop those tables. When I execute my function I get ERROR: out of shared memory and no tables get dropped. Is there a possibility to f...
PostgreSQL DROP TABLE in a loop fails with ERROR: out of shared memory
I had faced the same issue. After trying different solutions, at the end I re-cloned the project from gitlab and it worked!
Closed.This question needsdebugging details. It is not currently accepting answers.Edit the question to includedesired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.Closed2 years ago.Improve this questionI am trying to push to ...
Gitlab committer's email does "X" does not follow the pattern "Y", but git email config is "X" [closed]
If you mergeAintoBit will be:Branch A is pulled into B.orBranch B is pulled from A.It refers to the branch you're currently at. If you're in branch B and pull from A, that pull will first fetch A and then merge A.ShareFollowansweredMar 20, 2017 at 18:00kelunikkelunik6,75822 gold badges4141 silver badges7171 bronze badg...
On my local repository, I created a branch A from branch B. I did some work on branch A, and pushed A to github.Then I created a pull request on github, in order to merge branch A into branch B, I heard that it is said to be "branch A is pulled from branch B". Is it correct?Doesn't a pull request mean merging branch ...
Are these two meanings of a pull request both correct, and contrary to each other?
This would be the right rule:RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^?#\ ]*)\?[^\ ]*\ HTTP/ [NC] RewriteCond !{QUERY_STRING} id RewriteRule .*$ %{REQUEST_URI}? [R=301,L]Update:# Query rewrite exceptions RewriteCond %{QUERY_STRING} !callback=.*ShareFolloweditedSep 15, 2012 at 20:47answeredDec 27, 2011 at 19:18BinyaminBi...
How to make .htaccess toremove question mark from URL if not?id=(.*)?# Rewrite for ?id=(.*) RewriteCond %{QUERY_STRING} ^id=(.*)$ RewriteRule .*$ %{REQUEST_URI}%1? [R=301,L] # It does not work out on this way RewriteCond %{QUERY_STRING} !="" RewriteCond %{QUERY_STRING} !^id=.* RewriteRule .*$ %{REQUEST_URI}%1? [R=301,...
Apache .htaccess: How to remove question mark from URL if not `?id=(.*)`?
This follows from here Add the following to your dockerfile, and change the python version as needed. When the docker is up, python3.8 will be available in /usr/local/bin/python3.8 # compile python from source - avoid unsupported library problems RUN apt update -y && sudo apt upgrade -y && \ apt-get install -y wge...
I need to install python 3.8.10 in a container running ubuntu 16.04. 16.04 has no support anymore, so I need a way to install it there manually.
How to install python specific version on docker?