Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
2 The amortized memory used by a process can be calculated from the Pss. See http://lwn.net/Articles/230975/ for more info about Pss. For the total memory used by a group of process, in this case the nginx master process and all slave processes, we can use following script ...
We are using nginx for proxy service. We customized it a lot and it uses lots of memory. On startup, nginx master uses 1.5GB memory and the master forks lots of workers. So each worker in the beginning uses 1.5GB memory inherited from master process. When handling requests a worker may modify these inherited memory an...
How to calculate total physical memory used by processes forked from same parent?
3 You can get Free memory from Performance Counter "\Memory\Free & Zero Page List Bytes". Besides, I uploaded a sample project on https://github.com/stjeong/DotNetSamples/tree/master/WinConsole/MemoryPartOfTaskManagerAndResourceMonitor With this in place, you can get all of...
i'm having some problem with a multithread software wrote on vb .net, i need to get not only the available free memory (got with PerformanceCounter) but also cache and, better, the free memory on the system. How may i do that? Thanks a lot :-)
How to get free memory on system with vb .net
Whoops, new GitHub UI made me overlook this button. Also: Duplicate
This question already has an answer here: How to send pull request from my fork to another fork? (1 answer) Closed 9 years ago. When I clone a repository and commit some changes, i...
How can I submit a Pull Request into another fork? [duplicate]
ProblemTo put things in perspective, what you're doing in your entry point script is actually being executed in theshshell. The commands you want to run should be executed inside amysqlshell.SolutionYour entrypoint should have the following command instead to run themysqlcommands:mysql -u root -p [root-password] -e "up...
When I trydocker-compose -f docker-compose-now.yml upI get this messageerror: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL clientNow, I did read this solution:use mysql; update user set authentication_string=password(''), plugin='mysql_native_...
Docker build: error: ER_NOT_SUPPORTED_AUTH_MODE: MySQL client
18 GitHub Flavored Markdown allows you to use html tags. So you can use details html block to hide your long code. <details> <summary> summary </summary> details </details> It looks like this collapsed: and expanded: Share ...
I'm dealing with one issue on GitHub and for that, the moderator is requesting me to share the output of certain bash commands in the comments. I'm sharing the output of requested commands in the form of code blocks and I know how to insert code block in Markdown: The output of the command . . . However, the problem ...
How can I have a code block with a vertical scrolling feature in the Markdown on GitHub?
This is not currently possible with Helm 2, but will be doable in Helm 3 more directly via chart scripts.My eventual solution was to fork thejenkinschart and cut it down to only the parts I needed.
I'm working on a Jenkins deployment using a wrapper for the standard chart (stable/jenkins). The chart includes a value flag to allow you totally replace the configmap with your own as long as you match the format of the original. But I'm running in to a problem because the checksum annotation in the deployment is base...
Helm and configmap checksum annotations
You can analyze as many language as you want.You want Multi-language Project.When you download the plugin for a particular language, you will see profile for every language. You can view those profiles under "Quality profiles" link like "Java profile" , "Xml profile", "c profiles" etc.Every profile will have a same nam...
Sonar newbie here. I am setting SonarQube up on my project. I have files in about 10 languages, but i'm interested in C# and C++ analyzis only. I know that you can analyze files in one language or every language, but is there a way to do it for exactly two languages? Any help or example would be appreciated as I really...
Sonar analyze for two languages
I assume value oftransformedValueis"true", so I recommend changing:assertEquals(true, transformedValue);toassertEquals(true, new Boolean(transformedValue.toString()));for getting the same type.EditYou can also create custom function:public void myAssertEquals(boolean bool, Object obj) { assertEquals(bool, new Boolean...
I have a java program with a line of code like this in the corresponding test file:val transformedValue = engine.eval(script, bindings); assertEquals(true, transformedValue);We are using theLombok::valhere but SonarQube Report says this is a bug.Change the assertion arguments to not compare dissimilar types.Is there a ...
SonarQube recognize Lombok Val as Bug
Sure you can, either by deploying it as a war via the Tomcat platform, or run it as a fat jar via the Java SE platform.
Normally, I build a Java web app using Tomcat or Glassfish into a WAR (web app archive file). This file can easily be deployed into AWS through Elastic Beanstalk with a few clicks. The integration is simple because Elastic Beanstalk allows us to deploy a web app on Tomcat/Glassfish/Java. I recently started using a lig...
How to install/run Spark Java Framework on AWS Elastic Beanstalk?
You need to use some kind of queue to accumulate and rotate enough previous pipeline items:function Window { param($Size) begin { $Queue = [Collections.Queue]::new($Size) } process { $Queue.Enqueue($_) if($Queue.Count -eq $Size) { @( ,$Queue.ToArray() ...
I was looking for a "window" function like F#'sSeq.windowedor the Reactive extensionsWindow. It looks like it would be provided by the likes ofSelect-Object(which already has take / skip functionality), but it is not.If nothing is readily available, any ideas on implementing "window" without unnecessary procedural loop...
Does PowerShell have a "window" function?
I think SonarQube is spot on here: there's no parameter namedUserCode, so you shouldn't be specifying it as an argument to theArgumentNullExceptionconstructor. I would avoid usingArgumentNullExceptionat all here, as theargumentisn't null - otherwise it would be throwing aNullReferenceExceptionatcommand.UserCode.Instead...
Our SonarQube often raises the following issue (Code Smell) on our code: "Parameter names used into ArgumentException should match an existing one".Hereis the rule that triggers this issue.An example of this issue being triggered can be the following:private void Validate(SaveCommand command) { if(string.IsNullOrEm...
Using a parameter's property in an ArgumentException
To get the labels (and anything from the remote API), you could pass the socket into the container and use curl >= 7.40 (it's the minimum version that supports--unix-socketflag) from within the container to access the remote API via the socket:Dockerfile:FROM ubuntu:16.04 RUN apt-get update \ && apt-get install cu...
I am trying to understand whether it is possible to read the metadata (Labels, in particular) properties of a container using a bash script.For instance, if there is a Dockerfile like:FROM busybox LABEL abc = abc_value1And, if I build and run an image based on the file above, like so:docker build . -t image1 docker run...
How to access the metadata of a docker container from a script running inside the container?
There are two different backends for docker build. The "classic" backend works exactly the way you describe: it runs through the entire Dockerfile until it reaches the final stage, so even if a stage is unused it will still be executed. The newer BuildKit backend can do some dependency analysis and determine that a ...
I need to build 2 stages based on a common one $ ls Dockerfile dev other prod $ cat Dockerfile FROM scratch as dev COPY dev / FROM scratch as other COPY other / FROM scratch as prod COPY --from=dev /env / COPY prod / As you can see prod stage does not depend on other stage, however it builds it anyway $ docker ...
Why docker needs to build all the previous stages?
Preface PHP is module that runs top of Apache [HTTPD Server] this involves linking the php interpreter against a library of hooks published by the webserver Cause Now it can exhaust due to scripts running allocating memory [RAM] & reach its threshold & get such errors. Example big loops running & saving lots of data...
I have 2 servers Both server's have the same php memory_limit of 128M of data. My Dev Server runs a script just fine, while on my prod server I am receiving a Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in ... My question is what are other reasons I would be running out o...
PHP Memory Allocation Limit Causes
HAProxy Ingress follows “Ingress v1 spec”, so any Ingress spec configuration should work as stated by the Kubernetes documentation.As per the kubernetes documentation, the supported path types areImplementationSpecific, Exact and Prefix. Paths that do not include an explicit pathType will fail validation. Here the path...
I'm migrating an architecture to kubernetes and I'd like to use the Haproxy ingress controller that I'm installling with helm, according the documentation (version 1.3).Thing is, when I'm defining path rules through an ingress file, I can't defineRegexorBegingpath types as seen on documentation here :https://haproxy-in...
Haproxy ingress and regex pathType
You have multiple things to make sure what exactly is your problem. Check whether odoo service is working by enteringsystemctl status odoo-serverThis should show whether your service is started (and enabled) or not. Check this then reply back.Also, while accessing your odoo server, use http request instead of https.Sha...
I am fairly new to both google compute engine and Odoo. I have recently started a google compute engine with Ubuntu-16 installed. I have successfully followed instructions on Odoo website to install and start Odoo server. When I try to access my Odoo instance from another computer by going toIP-address-of-server:8069I ...
Odoo on Google compute engine - refused to connect
The environment variables contain the ':' characters. As documented here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-2.2#environment-variables-configuration-provider ... it's recommended to use double-underscore '__' instead of ':' in enviroment variable names in asp.net ...
I downloaded and setup the newly released Visual Studio 2019 Professional and opened a solution I have been working on in Visual Studio 2017 Professional. This solution contains 3 ASP.NET Core projects and 1 docker-compose project. When starting debug session in 2019 I get a null reference exception on one line where ...
Environment variables null in new Visual Studio 2019 but not Visual Studio 2017
You need acron job(not sure if Yii has functionality to make this easier).PHPBasically you need to write a PHP script that re-counts the votes, and puts them in a separate table, and you need that script to run every hour or, how often you want it.The cron command would be something like:php updateRatings.phpMySQLYou c...
I am working on a website, which has 10 star rating system. All ratings are stored in tbl_rating and have attributes:id heading description rating (number of stars, 1 to 10) shop_id (each rating belongs to a shop - my site is a catalog of shops)My question is, how is it the best way to count average rating for a shop (...
Average rating value counting
Do you see an error or an empty page? Can you check canyouseeme.org from the computer behind the firewall that the port is really open? Can you check with tools like sysinternals tcpview that the connection attempt reaches this computer and not just the router?
I'm just getting into WCF programming. I've set up a self-hosted test web service on my work computer, which is behind a firewall; it's athttp://localhost:8000/MyTestService. I can access the service page through the browser; all working fine.Now I want to access that service from my home computer, which is on a diff...
WCF Service behind firewall – How to set up port forwarding?
Use absolute filename path in gcovr report solved for me.sonar config file:sonar-project.propertiessonar.projectKey=xxx sonar.sources=src sonar.host.url=http://xxx:xxx sonar.login=xxx sonar.language=c++ sonar.cxx.includeDirectories=xxx sonar.exclusions=xxx sonar.cxx.coverage.reportPath=gcovr_report.xml sonar.cxx.covera...
Our Sonar Build Environment details as follows:SonarQube Server Version - 5.6.6 (64-Bit). Sonar Client Build Operating System – Ubuntu 14.04.5 LTS (64-Bit). Sonar-scanner- Version - 3.0.3.778. sonar-cxx-plugin-0.9.7.jar Source Code Language: C++Description:-I have .gcov coverage report. Want to know is it possible to i...
Gcov report import in Sonarqube-5.6.6(LTS) using CXX Community Plug-in
Sure - Create a new branch off the required SHA1 commit ID (latest master HEAD, for example), i.e: git branch [new_branch_name] [SHA1] Add required changes, commit, test and push. Make sure push is to the new branch, not master. Create a Pull Request.
I have forked a repo, made some edits, and want to make a pull request. However, I have added several features at once in the same branch and not been careful with keeping commits separate. I have also made some of those edits to my master branch (due to inexperience). So to make it easier for the original developer,...
Making a branch that is reverted to original repo
How long API requests are taking to run. Whole thing, from when it starts the HTTP handler to when it returns a response.
I want to know if the apiserver_request_duration_seconds accounts the time needed to transfer the request (and/or response) from the clients (e.g. kubelets) to the server (and vice-versa) or it is just the time needed to process the request internally (apiserver + etcd) and no communication time is accounted for ?As a ...
What does apiserver_request_duration_seconds prometheus metric in Kubernetes mean?
EDIT: improved to allow calling of wrapped member functions through operator-> Expanding on Manuel's answer to make it more complete, try this: #include <iostream> #define USE_STACK template <class T> class HeapWrapper { #ifdef USE_STACK T obj_; #else T *obj_; #endif public: #ifdef USE_STACK HeapWrapper(...
Is there a way to define a macro (or something similar) that would allow objects to be allocated on the stack or on the heap, cleanly? eg. Current code: A a; a.someFunc(); The simplest suggestion might be the following, but as you can see below, it's not very clean to maintain 2 sets of code. #ifdef USE_STACK A a;...
C/C++ pattern to USE_HEAP or USE_STACK
This is not a github problem but a git problem. You can't make a non-fast-forward push without merging/rebasing. Please check the corresponding parts of the documentation. This site is a great help for understanding the problem! So you basically either have to git pull or git pull --rebase.
I'm using sourceTree. How can I push an existing local project (branch) to a remote Gitbug repository I won? I try and get this error: git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream memPic master:master Pushing to https://github.com/elad2109/memPic.git To https://github.com/ela...
how to push an existing local branch to remote at gitHub?
From yourkubectl describe pod <podname>Warning FailedScheduling 2m19s (x136 over 158m) default-scheduler 0/2 nodes are available: 2 Too many pods.When you see this, it means that your nodes in AWS EKS is full.To solve this, you need to add more (or bigger) nodes.You can also investigate your nodes, e.g. list your n...
Github repo:https://github.com/oussamabouchikhi/udagram-microservicesAfter I configured the kubectl with the AWS EKS cluster, I deployed the services using these commandskubectl apply -f env-configmap.yaml kubectl apply -f env-secret.yaml kubectl apply -f aws-secret.yaml # this is repeated for all services kubectl app...
AWS EKS Kubernetes pods taking a lot of time to get READY
Very layman concept: Front cache is a class that calls backend classes to implement cache types that you have setup in magento like APC, Memcache or File System. So if you are using Memecache , so those zend classes will be called by Frontend object to implement Memecache.
I use Magento Cache but I do not understand why Magento use Frontend and Backend cache. I don't know why backend is set inside frontend, and what is the difference between them?
What is different between Backend vs Frontend Cache of Magento
You would need to make a query (as in "Embedding Github's bug tracker within a website for the users to report directly from within the website"). Then you would generate the html section of your website page which would display the result of that query. That would use the GitHub API on Issues GET /user/issues Use yo...
Does anyone know of an easy way to embed the list of issues with a specific tag from github onto a website? This is to embed a list of open bugs on a project website.
possible to embed Github list of issues (with specific tag) on website?
It depends what you mean withmapping. JSHint has a list of built-in rules, some of which your developers will have enabled.For each of the rules they have enabled, they'll need tofind the equivalent in theSonarQube list of rules. (I'd suggest making a shared spreadsheet, so this lookup only needs to happen once.)Should...
Some of our dev groups are using JSHint for code quality and we are looking to adopt SonarQube for greater transparency. Sonar explained they want to maintain their own rules list here:The SonarwayIs there a way to easily map existing JSHint rules into the "Sonarway" equivalents? We'd like to maintain 1 set of rules ...
Convert JSHint rules to Sonar
Sending a message to nil is valid in Objective-C. Sending a message to a deallocated object is not. Sending a message to a deallocated object: id obj = [[MyClass alloc] init]; [obj release]; [obj doSomething]; // Crash! Sending a message to nil: id obj = [[MyClass alloc] init]; [obj release], obj = nil; [obj doSometh...
I have started to study Three20 and I have a simple question about TT_RELEASE_SAFELY Up till now I like to write code in this way: UILabel *lab = [[UILabel alloc] initWithFrame:rect]; [self.view addSubview:lab]; [lab release]; Here I think the main pool is responsible to free the memory of lab. Now I have found TT_RE...
Setting object to nil after release -- TT_RELEASE_SAFELY
0 It looks like you need to install the libffi and the its' developing packages,which the pygit2 depends on Share Improve this answer Follow answered Jan 30, 2015 at 1:41 Cui HengCui Heng ...
I have to install pygit2 library on my ubuntu machine. I get the below error when I try "pip install pygit2". cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pygi...
Error while installing pygit2
-1 You need a web frontend for git. Have a look at https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools#Web_Interfaces for an overview Share Improve this answer Follow answered Jul 1...
I was looking for manual how to set up git on server with nginx and I haven't found it. I've logged in to server by ssh with root user, installed git-core and created a bare repo. Whats next? How to make this special http link to this repo to connect to repo from many computers and make clone to start working?
Git on server with nginx
The difference between signing keys and authentication keys is that signing keys can be used to sign Git commits and authentication keys can be used to access repositories. If you add a key as only one type, then it can be used only for that purpose, but the same key may be added for both.If you just want to access re...
Github allows users to add SSH keys in order to access the repositories but it doesn't do a great job of explaining what the difference is between an "Authentication Key" and a "Signing Key" Specific questions I would like to know are:Do I need both Types of keys in order to access the repository?If I only add one key ...
Do I need authentication as well as signing keys on Github?
What version of SSRS are you using? It is possible to install multiple instances of SSRS on the same machine. They may not have access to the same sets of reports, but I'm not sure if that would even be an issue for you. The configuration you are attempting seems a bit messy. Personally I would try to get all of th...
I have developed a website which runs at SSL (https). I want to open some SSRS reports at the website in an iframe. But it is not opened since browsers say that "Blocked loading mixed active content" in the browser's console.If I hit report's URL in another tab or another browsers window then it opens.Also if I run my ...
open ssrs report in an iframe
On AppVeyor you must add a pre-build step for restoring the nuget packages. Use the "Before Build script", Build tab, and add a "Nuget restore" command there. See details in the "Restoring NuGet packages before build" section onAppVeyor nuget docsVisual Studio default setup is to allow "Allow Nuget to download missin...
I am attempting to contribute to a project on Github (First time). I added a new Project to the solution and added NUnit and AutoFixture (via Nuget), now when I clone that repo it's missing all of the references to NUnit and AutoFixture.Now when I did a pull request (before I knew it was missing the references) it kick...
Github and Nuget packages
I'm not sure if this is the best way to do this, but it works for me, mostly. I put in StackOverflow's IP addresses (69.59.196.211) and it gave me backstackoverflow.com, but I put in one of Google's IP addresses (210.55.180.158) and it gave me backcache.googlevideo.com(for all results, not just the first one).int error...
I am able to get the current IP address of my device/machine that I am using - byusing this question's answer.I have gone throughthis question. Java allows to get the IP address from a domain name. Is it possible in Objective C? How?The second question is How to get the name of device/machine by using its IP address. S...
How to get Domain Name of IP address and IP address from Domain Name in Objective C?
Most likely your worker process is configured to be 32 bit (x86). In this case you will hit OOM at very least at about 2GB of allocated objects, but most likely much earlier. If you really need to load more than let's say 1GB of object in memory consider running your code in 64bit process. Note: above assuming you act...
I have a simple asp.net website which reads a large text file into memory and does some processing. Below is the code that raises OOM exception. After reading about 350k lines, I get this error. Each line has an average of 1k characters. Is there some memory limit with IIS or ASP.Net websites? My server still has plen...
what causes asp.net out of memory exception
I think this is what you are looking for:
I have a recurring task where I need to clone an existing EMR cluster (except with a different name). I have been doing this in the AWS Console (basically, finding the EMR cluster in the console, click "Clone", change the name, then "Create cluster"). Is there a way to do this in command line so that I can automate it?...
How to clone an AWS EMR cluster in command line?
The following is an example on how you can modify/update your current script to add a kind of local database file to keep track of the processed files:#!/bin/bash savedir=".originals" PROCESSED_FILES=.processed # This would create the file for the first time if it # doesn't exists, thus avoiding "file not found prob...
I have a script that watermarks my images using imagemagick. I have setup my script as a bash job, but it watermarks every picture all the time. I wish to exclude pictures already watermarked, but I dont have the options to move all my watermarked pictures out of a certain folder. Folder A contains orginal images. Scri...
BASH SCRIPT - for image in *** do (Only once - not all pictures all the time) CRON job
I think you havent set the config in config/filesystems.php because the your-region, your-bucket etc is the default value. Change at this section and make sure the key, secret, region and bucket are filled up. 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], ...
Error executing "ListObjects" on "https://s3.your-region.amazonaws.com/your-bucket?prefix=abc%2F1468895496.jpg%2F&max-keys=1&encoding-type=url"; AWS HTTP error: cURL error 6: Could not resolve host: s3.your-region.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) <?php namespace App\Http\...
Laravel AWS S3 Upload photo error (Region error?)
There is another solution that is generic and can work with all exporters.relabel_map_configis a configuration option that can be set inside the prometheus config file. As specified in the documentation:One use for this is to blacklist time series that are too expensive to ingest.Thus you can drop or keep metrics tha...
The Prometheusnode exporterdoes not have a simple way to disable all default metrics without passing 20 flags to the process. In thedocumentationit looks like there might be an easier way to fetch only the relevant metrics:Filtering enabled collectors...For advanced use the node_exporter can be passed an optional list ...
Filtering Enabled Collectors
I must figure out how to free them if they are. Don't. Really- don't. That's the user's problem- and he can supply a smart pointer if he wants this behaviour. After all, what if I want to map non-owning pointers? Or need a custom deleter? Also, your code does not work because you compile the dead code if branches any...
I have a template class (Node is an inner class within a BST). It's now time to free up the memory; Given that either the key or the value (or both) may be pointers, I must figure out how to free them if they are. See an example: ~Node( void ) { if ( is_pointer< TValue >( Value ) ) { delete Value; ...
How to delete a pointer if it is a template value?
fixed with this commithttps://github.com/IPvSean/workshops/commit/17f52069a9f7ae5582b1202092dc75e140400058basically this was original[![japan](../../../images/japan.png) 日本語](README.ja).and this is what will work![japan](../../../images/japan.png) [日本語](README.ja).trying to do something fancy like linking the image as ...
I have the problem with relative links to a specific file not working at all both on gh-pages and on jekyll locally. Here is my setup->i have a directory like this:/ README.md README.ja.mdand I do a link like[english](README.md)and[japanese](README.ja.md)both links work on github.com (where they render the README belo...
Relative links to a specific file in Jekyll [myfile](blah.md) does not work (also does not work on gh-pages)
Ultimately they are intended to achieve the same end. Originally Kubernetes had no such concept and so in OpenShift the concept of aRoutewas developed, along with the bits for providing a load balancing proxy etc. In time it was seen as being useful to have something like this in Kubernetes, so usingRoutefrom OpenShift...
I'm new to openshift and k8s. I'm not sure what's the difference between these two terms, openshift route vs k8s ingress ?
what's the difference between openshift route and k8s ingress?
You have to adjust IstioVirtualServiceby changinghoststo the value"*"as per @Vadim Eisenberg suggestion.apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: grafana spec: hosts: - "*" gateways: - grafana-gateway #- mesh http: - route: - destination: host: "grafana.is...
I have deployed istio on GKE using the command :helm template istio-1.0.2/install/kubernetes/helm/istio --name istio --namespace istio-system --set global.mtls.enabled=true --set tracing.enabled=true --set servicegraph.enabled=true --set grafana.enabled=true --set telemetry-gateway.grafanaEnabled=true > istio.yamlBut I...
Istio 1.0.2 access grafana on Browser
Please refer to the Microsoft documentation:https://msdn.microsoft.com/en-us/library/system.web.httpcookie.shareable(v=vs.110).aspxIf a givenHttpResponsecontains one or more outbound cookies withShareableis set to false (the default value), output caching will be suppressed for the response. This prevents cookies that ...
I'm trying to cache an ActionResult. In a particular ActionResult I'm writing some data to cookies. The output cache is not working in that action result. Its working fine with all other actions where I'm not using Response.Cookies. Please help me to resolve this issue.I'm using ASP.NET MVC 4Edit(Code included)[OutputC...
OutputCache not working when using Reponse.Cookies
Check out theAPI docs for flash.display3D.Texture- there are 3 methods:uploadCompressedTextureFromByteArray(data:ByteArray, byteArrayOffset:uint, async:Boolean = false):void Uploads a compressed texture in Adobe Texture Format (ATF) from a ByteArray object. uploadFromBitmapData(source:BitmapData, miplevel:uint = 0):vo...
This is more an "implementation" of technology kind of question.In old times, when I worked with C language, you could specify to use VGA memory or ram memory for allocation of bitmaps structures, then you could work with them a lot faster.Now we are in 2013, I create bitmap in AS3, and it is allocated in ram (I've see...
Allocate memory in GPU, flash/air
I figured out what the issue was. The .ebextensions folder was hidden in my file system and was not being included in my deployment ZIP when I published to AWS.
I am trying to deploy a Node-based web service to elastic beanstalk but running into problems when posting too much data. The issue seems to be at the nginx layer, not the Node / express layer. The message I get is: 413 Request Entity Too Large 413 Request Entity Too Large nginx/1.6.2 Based on other answers on StackO...
AWS Elastic Beanstalk - Request Entity Too Large (413)
Your code does not make sure that each setup of the matrix is matched by exactly one tear down. For example, viewDidUnload is not guaranteed to be called. Also, you have no guards against duplicate setup or tear down. If you really need the C array of arrays, a better approach would be to create it in the initializer ...
I have as property in a view, an array of array like this: @interface MyView : UIView @property (nonatomic) CGPoint **matrix; @end in the controller that own this view I have load the data in the -viewDidLoad and free memory in the -viewDidUnload like this: - (void)viewDidLoad { self.myView.matrix = malloc(siz...
Objective-C malloc with c array of array
This is a 2014 article which might not be inline with the current wiki management at GitHub.A wiki likethe one for moby (docker)can be cloned withhttps://github.com/moby/moby.wiki.git, but has no direct web representation like a regular repository.
I'm reading this article:applying-git-to-github-wikisIn the article there's this screenshot that seems to show the files and folders of the wiki on github.com:But when you go to the wiki tab in github, it renders the wiki. And the wiki is a seperate respository from the github respository that it is a wiki for. So I'm ...
How to get to folder view in github wiki
Amazon does not give you SUPER privileges on an RDS instance (to prevent you from breaking things like replication accidentally). To configure group_concat_max_len, use an RDS parameter group, which allows you to configure a group of settings to apply to an instance.
I am using Amazon RDS for mysql db. I want to run some SET commands for eg: SET GLOBAL group_concat_max_len =18446744073709551615 But when I run this command I get this error ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privilege(s) for this operation When I try to add privileges, it does...
Amazon RDS unable to execute SET GLOBAL command
2 You can use a named location as the last parameter of a try_files statement to perform an internal rewrite to climb up the directory tree. Nginx will limit this to about 10 iterations before declaring a redirection loop. For example: root /path/to/root; index index.html; ...
We have a development server with lots of single page apps that also handle routing in the frontend. Normally for a single page app I would assume you need to configure something like: location /some/path { try_files $uri $uri/ /index.html?$args; } Now on our development server it is quite a lot of work to re-confi...
NGINX – Serving multiple SPA’s on a single server
Minikube and kubeadm are two unrelated tools. Minikube builds a (usually) single node cluster in a local VM for development and learning. Kubeadm is part of how you install Kubernetes in production environments (sometimes, not all installers use it but it's designed to be a reusable core engine).
I have created ak8sclusterby installing "kubelet kubeadm kubectl". Now i'm trying to Deploy microservice application asdocker build -t demoserver:1.0 . =>image created successfullykubectl run demoserver --image=demoserver --port=8000 --image-pull-policy=Never =>POD STATUS: ErrImageNeverPullI tried " eval $(minikube doc...
Deployment issue in k8s cluster using docker file without minikube, but my is pod not running
Each step of the Dockerfile is run in it's own container that is discarded when that step is done, and volumes are discarded when the last (in this case only) container that uses them is deleted after it's command finishes.This makes volumes poorly suited to use in Dockerfilesbecause they loose their contents half way ...
Please consider the following Dockerfile:FROM phusion/baseimage VOLUME ["/data"] RUN touch /data/HELLO RUN ls -ls /dataProblem: "/data" directory does not contain "HELLO" file. Moreover, any other attempts to write to volume directory (via echo, mv, cp, ...) are unsuccessful - the directory is always empty. No error me...
Writing to docker volume from Dockerfile does not work
s3_input_train = sagemaker.input.TrainingInput(s3_data='s3://{}/{}/train'.format(bucket_name, prefix), content_type='csv')did not work for me, buts3_input_train = sagemaker.TrainingInput(s3_data='s3://{}/{}/train'.format(bucket_name, prefix), content_type='csv')did.Instead of input, usesagemaker.inputs.TrainingInput(pa...
I'm running the code cell below, on SageMaker Notebook instance.pd.concat([train_data['y_yes'], train_data.drop(['y_no', 'y_yes'], axis=1)], axis=1).to_csv('train.csv', index=False, header=False) boto3.Session().resource('s3').Bucket(bucket_name).Object(os.path.join(prefix, 'train/train.csv')).upload_file('train.csv') ...
SyntaxError (amazon-sagemaker-object-has-no-attribute)
Hi guys! If you run in the same problem I was able to find the answerhere. So I am just copying and pasting what stephenb explained there.You can reconfigure your deployment by Scaling Vertically or Adding More nodes or Both from the Elastic Cloud ConsoleThere are a few constraints though.If you are in a single zone......
I have to create new node on an Azure deployed Elastic Search and am trying to figure out how to do it in the current cluster.My settings env look like that:We are using the integration between Azure and Elastic.If you know how to add a new node please share. I found how to do add new nodes if using it installed in cen...
How to add more nodes to an Elastic Search hosted with Azure
So, I found a way to check that:coalesce(array_length(ARRAY[$X],1),0) = 1This works for postgreSQL. If you know the above functions, it is pretty self-explanatory.
I have a dashboard where I have a variableXfor which one or more values can be selected. The data source is postgresql. I have a panel where I make a query to show some trends usingX. Up till this point everything is working.Now, I need to check if the the user has select only one value of the variableX. if the user ha...
Grafana: How to check in a query if a single variable is selected or more?
2 Due to some limitations, the app can not be deployed on cloud run and kubernetes. It has to be on instance group. The reasons why might help generate better answers. How can I deploy the instance group with a new template, every time a code is pushed to a certain bra...
I am setting up a python app on GCP's instance group. Due to some limitations , the app can not be deployed on cloud run and kubernetes. It has to be on instance group. How can I deploy the instance group with a new template , every time a code is pushed to a certain branch on github. Can I achieve that using cloud b...
Pull code from git repo , in the startup script of a template of instance group
You should not use the generated plugin-key.kdb as the key store supplied with theKeyFiledirective. It is generated for outbound connectivity in the WAS plugin, not for incoming requests to IHS.If you want a useable frontend certificate, create a new KDB file with $IHSROOT/bin/gskcapicmd, create a certifcate request in...
I have set up a Liberty cluster comprising of the following:node 1- 10.11.12.201 server1node 2- 10.11.12.202 - server2, controller server, IHS load balancer with HTTPS enabled.Have enabled dynamic routing feature at the load balancer level following ibm docs. Deployed my app on the server and tried accessing it follows...
Certificate issues when accessing app deployed on WebSphere Liberty cluster
replacement: "blackbox_exporter:9115"This is the line what specifies the blackbox exporter to talk to, so you can change that to 192.169.1.10:9115.
Just getting started with prometheus and I figured it could be used to monitor whether it can monitor service availability over a VPN connection.So I have the prometheus server itself on box A. Now I need to monitor whether IP 172.20.40.40 on port 9000 is available. That's the box on the other side of the VPN. We will ...
How to monitor a third party service using prometheus having blackbox exporter on a different server
If the ApsScheduler requires threads, you should enable them with --enable-threads in uWSGI
I wrote an app using webpy (webpy.org). Part of this web app is recurring background tasks for statistical functions. I usedAPSchedulerpython library to perform cron style schedules. Becauseapp.run()let webpy run in standalone mode during development. This setup worked out fine.However, when it's deployed, I discovered...
uwsgi web app with cron tasks?
1 You can use the mkdocs-exlclude plugin and setup the configuration inside the mkdocs.yml file as: plugins: - exclude: glob: - lsy/README.md Share Follow answered May 6, 2022 at 1...
Today I want to add a new page to my Github page. My repo worked well before. But when I add a new directory lsy/README.md to docs. Error shows. It just says Error reading page 'lsy/README.md': no such group. I cannot understand why. I added some config to mkdocs.yml. In fact, even I don't add the config to mkdocs.ym...
Publish docs via GitHub Pages failed
6 you can access a script parameter name in nginx through the $arg_name variable rewriting the url with the script parameters to an seo-friendly url then becomes a simple rewrite like so: location /script/script.php { rewrite ^ /script/$arg_title/$arg_desc/$arg_file/$arg_...
I am trying to rewrite the following URL via Nginx: http://www.domain.com/script.php?title=LONGSTRING&desc=LONGSTRING&file=LONGSTRING&id=THREELETTERS into something like this: http://www.domain.com/script/LONGSTRING/LONGSTRING/LONGSTRING/LONGSTRING/THREELETTERS.html All I have been able to find so far is how to incl...
Nginx URL Rewrite with Multiple Parameters
If you're on Apache 2.4.10 or later, you can useexpr=asHeader set Pragma "public" "expr=%{CONTENT_TYPE} =~ m#text/html#" Header set Cache-Control "public, must-revalidate, proxy-revalidate" "expr=%{CONTENT_TYPE} =~ m#text/html#"See the documentation and examples onmod_headersandexpr.
I know I can useFilesMatch "\.html$"like this:<FilesMatch "\.html$"> Header set Pragma "public" Header set Cache-Control "public, must-revalidate, proxy-revalidate" </FilesMatch>But this won't help if the html is delivered as a SEO friendly URL (like wordpress does), right?I there a way to match on content-type...
Matching on content-type in htaccess
Have a look atthe latter partofJaka Hudoklin/offlinehacker's NixCon '15 presentation about Kubernetes on NixOS at GateHub. It has an example configuration that configures docker to use a bridge interface. You can then use openvswitch to link the networks together.
On NixOS is is easy to set up Kubernetes by a single line of config:services.kubernetes.roles = ["master" "node"];This installs both the master and node components on the local system and therefore creates a nice little working local kubernetes "cluster".If I want to set up a "real" cluster I need to install it over mu...
Setting up Kubernetes on NixOS
This was an issue with a double call. Ooops. should've known.The first request came in as / and then re-written to /www/.The index was then applied, so the it then became /www/index.php, but the php handler was re-calling the rewrite rules, so the final url became: /www/www/index.phpShareFollowansweredApr 16, 2010 at...
I'm trying a simple internal rewrite with nginx to navigate to a sub-directory depending on the user_agent -- mobile browsers go to /mobile, otherwise they go to /wwwhowever it seems that when I rewrite these urls, the index directive is processed before the rewrites, so I end up getting 403 forbidden.# TEST FOR INDEX ...
nginx - how do I get rewrite directives to execute before index directives?
UPDATE(2021-05-04)Please note that this answer is now ~7 years old, so it's validity can no longer be ensured. In addition it is using Python2The way to access your Scrapy settings (as defined insettings.py) from withinyour_spider.pyis simple. All other answers are way too complicated. The reason for this is the very p...
How do I access the scrapy settings in settings.py from the item pipeline. The documentation mentions it can be accessed through the crawler in extensions, but I don't see how to access the crawler in the pipelines.
How to access scrapy settings from item Pipeline
It appears to be hidden on the developer portal, however there is a data export API, which is available to paid networks. You will need to use API credentials from a verified admin account to execute the API. Normal user accounts are unable to execute the data export endpoint.
How can I export all threads - including attachment - from a yammer-network ? Background we have used the free version of yammer for a while - and it has now been decided to use a paid version. Because of that I need to backup all post/images/etc on our existing network. But so far I have been unable to find a suitabl...
Export content from a yammer network
It is possible only if the deployment doesn't rely on specific image (use content of specific image). For example, use the following yaml. But I don't think there's such scenarios in practice.apiVersion: apps/v1 kind: Deployment metadata: name: my-demo labels: app: demo spec: selector: matchLabels: ...
Suppose my deployment is having mysql:5.6 image . Is it possible (does kubernetes support) to do rolling update for my deployment with image nginx:1.14.0?
Kubernetes rolling update with different image
Usedeltafeature, it is recent. E.g.:create table T1 ( id long GENERATED ALWAYS AS IDENTITY, c1 string, ... )If you have small sets of data to run, by running more frequently, then there should be no issue withROW_NUMBER().You do not state if re-state or incremental, but here is an approach:How to impleme...
I am developing some transformations in an ETL (using Spark SQL) where one of them, in particular, creates a row_number in a certain dataframe like this:ROW_NUMBER() OVER (order by column_x)This first issues the following warning:WARN WindowExec: No Partition Defined for Window operation! Moving all data to a single p...
How to avoid OutOfMemory in Apache Spark when creating a row_number column
Git and GitHub are two different things. The former is a version control system which does not know anything about “issues” or “tickets”, while the latter is a project platform with source hosting and issue management. So the GitHub issues arevery specificto GitHub. NoGitcommand will be able to give you GitHub issues.T...
There is a way to get all the issues from a git repository? I need to populate a mysql database with the issues of a specific project with the issues status, reporter, priority, etc... Thanks!
How to get github issues(tickets) from terminal?
No. You can't separate allocation from initialization, at least not for arrays.What, exactly, are you trying to benchmark?The reason that I ask is that there are a lot of variables within a running JVM that will affect any object allocation timing, ranging from the size of the object (which determines where it's alloca...
Is there a way to allocate an uninitialized block of memory, such as an array that contains whatever garbage happened to be left behind, in Java? I want to do so to benchmark how fast Java's memory allocator/garbage collector can allocate/free blocks of memory.
Java: Allocate uninitialized block of memory?
This is the command to check the docker container logs(info level by default) live:docker logs -f CONTAINER_IDNot really,docker logs CONTAINER_IDdoesn't cope with verbosity level.It simply output the container STDOUT and STDERR.But what if I want to check the live debug logs which I have logged in my code at debug leve...
This is the command to check the docker container logs(info level by default) live:docker logs -f CONTAINER_IDBut what if I want to check the live debug logs which I have logged in my code at debug level?
How to see the live debug logs of docker container
As of October 2017, it is possible to only suppress upload progress with aws s3 cp, aws s3 sync and aws s3 mv by using the --no-progress option: --no-progress (boolean) File transfer progress is not displayed. This flag is only applied when the quiet and only-show-errors flags are not provided. Example: aws s3 sync ...
Is there any way to disable the Completed 1 of 12 part(s) with 11 file(s) remaining... progress output with the aws s3 sync command (from the aws cli tools). I know there is a --quiet option but I don't want to use it because I still want the Upload... details in my logfile. Not a big issue, but creates mess in the l...
Disable progress output aws s3 sync without disabling all output
If you pass the output of the<COMMAND>to a loop, you could evaluate it one line at a time:<COMMAND> | while read text; do ipaddr=`echo $text | grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])'` if [ $? -eq 0 ]; then (echo "exit" | nc $ipaddr 23 -w 5 if [ $? -eq 0 ];...
I want to know how I can usestdoutfrom piped command and then use it in nc connection:<COMMAND> | \ grep -oE '((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])' | \ (echo "exit" | nc <IP-HERE> 23 -w 5 \ if [ "$?" -eq "0" ]; then ( <SomeCommandsHERE> ) | nc <IP-HERE> 23 1>>$file 2>&1 )Questio...
Using stdout from piped command in nc connection and commands in parentheses
Let's see if this works:RewriteEngine On # Check if the host name contains a . (localhost won't) # Check if the host name starts with www # Check if the host name ends with .com # Check if the connection is secure RewriteCond %{HTTP_HOST} \. RewriteCond %{HTTP_HOST} !=svn.myDomain.com RewriteCond %{HTTP_HOST} !^www ...
I have the following bunch of domains:myDomain.demyDomain.commyDomain.co.zamyDomain.orgmyDomain.commyDomain.com.naWhat is the shortest way to write in the htaccess, to make ALL domains...Redirect tohttps://www.myDomain.com. I.e. Regardless of the domain that is entered, it will add www AND redirect to https, andStill w...
HTACCESS RewriteCond without messing up localhost
In SonarQube, project administrators have the right to delete the projects. So if you want to delegate deletion of projects to users, you must make sure that those users are granted Admin rights on the relevant projects.As you are using an LDAP, you can do the following:At global level, create one group per project cal...
Is it possible to delegate the deletion of projects in sonar to users ? Knowing that the authentication of my sonar is managed by an ldap directory.Thanks.
Delegate the deletion of projects in sonar to users
After setting up Amplify Auth and configuring your social provider, you also have to set up linking so that your app can handle the callback from the web browser back to your app: Note the value that you entered for the 'redirect signin uri' when you ran amplify add auth (such as myapp:\\). For apps made using react-...
I'm trying to implement Google auth in a React native app using AWS Amplify. I've installed Amplify in my app and also installed Auth. I have this client in Google apis: Authorised javascript origin: https://inventory053721f5-053721f5-develop.auth.eu-west-1.amazoncognito.com Authorised redirect uri: https://inventory...
AWS Amplify Google auth user not redirected back
After looking at theDockerfilefor the Container I'm using I found out, that the right option to use is-v gradle_cache:/home/gradle/.gradle.What made me think that the files were cached in/root/.gradleis that the Dockerfile also sets that up as a symlink from/home/gradle/.gradle:ln -s /home/gradle/.gradle /root/.gradleS...
I'm trying to cache things that my gradle build download each time currently. For that I try to mount a volume with the -v option like-v gradle_cache:/root/.gradleThe thing is each time I rerun the build with the exat same command it still downloads everything again. The full command I use to run the image issudo docke...
How can you cache gradle inside docker?
It probably could be done, but adding another special rule just to save typing is not effective and not the philosophy of c++, what if someone were to come up with a better shared_ptr, if std::shared_ptr is a template then just make a better_shared template and you done. If it gets into the core language though its th...
I understand: shared_ptr<X> x = make_shared<X>(); is more efficient than: shared_ptr<X> x(new X()); and I understand the advantages. However, I do not understand why the compiler could not have a rule like "if I see new() in the same line as a shared_ptr declaration, use make_shared" So what is it which stops co...
What stops compilers from automatically deducing to use make_shared?
in your serverless.yml file, you should add a new role- Effect: Allow Action: - dynamodb:DescribeTable - dynamodb:Query - dynamodb:Scan - dynamodb:GetItem - dynamodb:PutItem - dynamodb:UpdateItem - dynamodb:DeleteItem - dynamodb:BatchWriteItem Resource: "arn:aws:dynamodb:${self:custo...
I am using nodejs, serverless and aws dynamodb. I am trying to create a lambda where I am calling an API, getting the data (1000 records) and now, I want to insert this data into my dynamodb.I am using batchWrite for this and using it by creating buckets of 25 json objects each. But I am getting an error:AccessDeniedEx...
AccessDeniedException: User is not authorized to perform dynamodb BatchWriteItem on resource: table
Based on the information I was able to find and many hours of debugging, I ended up using a workaround in which I ran thegolangcommands in aCmdLine@2task, instead. Due to howGoTool@0sets up the pipeline and environment, this is possible.Thus, the code snippet below worked for my purposes.steps: - task: GoTool@0 inpu...
I am currently migrating some build components toAzure Pipelinesand am attempting to set some environment variables for all Golang related processes. I wish to execute the following command within the pipeline:CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build [...]When utilizing the providedGolangintegrations, it is easy ...
Injection of Golang environment variables into Azure Pipeline
I think the easiest way is to solve the problem through the console.git init # if you haven't already git remote add origin ssh://[email protected]:..... git push -u origin masterreference question:How to add eclipse project to existing git repo?Then you can first commit and then push your changes via eclipseRightclick...
I am new to github. I have created java project in eclipse (eg:- DateTester). And I have created a github repository (eg:- SampleProject).How can I add the DateTester project to github repository (SampleProject)
How to add a java Project created in eclipse to github repository>
Answering the first part of the question:not doable.First, after the downgrade, docker would run into the same C API compatibility issues on the host itself (the docker would be only usable inside Jenkins containers). Second, there are no installation candidates for such a deep downgrade. In other words, supported dock...
After migrating our build server's OS to the latest Ubuntu LTS (ubuntu:jammy) I quickly run into GLIBC incompatibility issue with the latest Debian (debian:bullseye) used in the latest official pre-built Jenkins containers (jenkins/jenkins:jdk17), a problem already describedhere. This is expected, because that would re...
Downgrading Docker on the host to match container's older GLIBC: doable / good idea?
1 GitHub Pages doesn't support BrowserRouter: https://create-react-app.dev/docs/deployment/#notes-on-client-side-routing So you will need to explore alternatives. Here is a helpful answer about using HashRouter instead: https://stackoverflow.com/a/52024739 Share ...
I have small react project with react-router-dom library. This is my fragment with Browser Router <BrowserRouter history={history}> <Main /> </BrowserRouter > And here is fragment of my main component <Switch> {!user ? ( <> <Route path="/login" exact component={() =>...
React project with react-router-dom problem with routes on gh-pages
If files areRedmeans files are not added to Git.To Add files to git follow below stepsSteps for Add files to git:Select File which is need to add,next write click on file -> Git->AddPlease refer below screenshot for adding files to git:-After follow these steps now you can commit and push the files to git.Steps for Com...
how to fix the red class to green can be pushed on github, every time I go to github, I don't go to push because it's still red, after editing it's usually green
how to fix the red class to green can be pushed on github
There is an abstract on the topic here: http://microsoft.cs.msu.su/Projects/Documents/ILShaders/ilshaders.pdf -- [[dead link]] But I've yet to find a link to source. Here is the Google translated project page: http://translate.google.co.uk/translate?hl=en&sl=ru&u=http://microsoft.cs.msu.su/Projects/Pages/ILShaders.as...
Maybe a crazy question but is it possible to run threads on the GPU? Reason I ask is I have some quite complicated computation to execute (it's mostly maths and arrays) and would like to see if I can get any improvement in speed using the GPU. Oh and I'd like to do this in C# or F# :) Thanks
Running MSIL on GPU
SSL3 is not supported on Azure Containers
We are running windows 2019 Server Core OS image in our container. By default my container supports all the following protocolsTLS TLS1.1 TLS1.2My application is using ssl3 for some request. I want to enable ssl3 on the containerI tried editing the registry on container, but it requires a restart for windows to recogni...
Is SSL3 protocol supported in Azure Kubernetes Service
As @RyanDowson and @siloko mentioned, you should use Service, Ingress or Helm Charts for these purposes.Additional information you can find onService,IngressandHelm Chartspages.
I am trying to deploy a MySQL Docker Image to Kubernetes. I mostly managed all tasks, Docker Image up and running in Docker, one final thing is missing from Kubernetes deployment.MySQL has one configuration which is stating which user can log on from which Host 'MYSQL_ROOT_HOST' to configure that for Docker is no probl...
MySQL with Docker/Kubernetes
Now that I go to my repo, I see some files that exist on the repo but not locally.The files are stored in your git repositorybutthey are not part of your recent code (workdir).If you want to totally remove them from git (from history) you will have tocleanthe repository and delete them.To do it you can usefilter-branch...
I've been working with my repo on bitbucket for awhile and there's a few files that I work with locally. I've removed some files (just used rm from linux), committed with -am "message", and pushed to master.Now that I go to my repo, I see some files that exist on the repo but not locally.How can I tell my git repositor...
Removed file without git remove. Now it's in repo, and not local. How to remove from repo?
64 This worked with me sudo chown -R $(whoami) .git/ Share Improve this answer Follow answered Oct 11, 2019 at 12:49 Pablo PapalardoPablo Papalardo 1,2521111 silver badges99 bronze badges...
I have CentOs. I make git and made owner's .git folders group "gitdevelopers". In group "gitdevelopers" add User1 and User2. Now i make git-push and git-pull change from user1 and user2. But users in your computers not work with error: git.exe pull -v --no-rebase --progress "origin" error: cannot open .git/FETCH_H...
git cannot open .git/FETCH_HEAD
You can just run:docker-machine stop <name-of-your-docker-machine>which is usually:docker-machine stop defaultnext option:docker-machine kill defaultDid you check that yourdocker machineis running:docker-machine lsBrute force approach:kill -9 `ps -Af | grep -v grep | grep VBoxHeadless | awk '{print $2}'`
I am using Docker Toolbox on Mac.docker pushis hanging. How do I hard restart the daemon or docker-machine VM to get this unhung in a bad manner. It is taking too long to wait for it.
Docker Toolbox - hang on `docker push`
You can use a Selector/Affinity mechanisms andbeta.kubernetes.io/archlabelof the node which automatically assigned to each of them.You can callkubectl describe node $nodenameand check that label. On X86 it will bebeta.kubernetes.io/arch=amd64, on ARM it will be different.So, for X86 payload you can add node selector:no...
I have a raspberry pie cluster( ARM-based CPU ) and a couple of virtual machines that run on an X86 based laptop, I was able to establish a K8S cluster atop my raspberry pie cluster and the other X86-based virtual machines .I want to run a K8S deployment in this cluster with pods running the ARM-based docker image in ...
Running a K8S Deployment with pods scheduled in ARM-based and X68-based nodes
Check the page with Facebook URL Linter, it seems to reload the thumbnails images in the cache.http://developers.facebook.com/tools/lint
How long is Facebook caching the sharing thumbnails? I've added a custom thumbnail for my page using:<meta property="og:image" content="/path/to/my/image" />But on pages my previous image is displayed => it is cached somewhere on FB servers.Any ideas how to flush that cache or how long does it take once FB loads a new ...
How long is Facebook caching the sharing thumbnails?
I'm not quite sure what your hosting company means by their comment but you won't be able to run BOTH Apache and Nginx on port 80. Once one is bound to port 80 the other will be unable to bind to it.Probably the best configuration in your current situation would be to put Nginx on port 80 and Apache on 8000 or similar....
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened,visit the help ...
Apache and Nginx both on port 80 [closed]
Your regular expression only matches URLs that contain a single digit, for example "5.html".To fix it change[0-9]to[0-9]+. Theplusmeans "one or more of the previous token".
RewriteEngine on RewriteRule ^([a-zA-Z0-9]{1,3})\/([0-9])\.html$ thread.php?board=$1&thread=$2Here is my .htaccess file. Let me explain you how it should work:website.com/vg/1337.html => website.com/thread.php?board=vg&thread=1337in the other words:website.com/x/y.html => website.com/thread.php?board=x&thread=y x - 1...
.htaccess regex issue
The problem is that you do not allocate the memory for help variable.Changechar* help=" ";tochar help[512]="";this way help points to a string literal (constant stored in memory block, which is not allowed to be changed.
I would like to fill an array of strings using two functions: the first, if I have n strings to allocate, will allocate n memory spaces; the second will allocate memory for each string readHere is the first function:char** allocate(int n) { char** t; t=(char**)malloc(n*sizeof(char*)); if(!t) exit(-1); r...
allocating memory to an array of string
See here:https://github.com/M66B/NetGuard/blob/master/FAQ.md#FAQ19"(19) Why does application XYZ still have internet access? If you block internet access for an application, there is no way around it. However, applications could access the internet through other (system) applications. For example, Google Play services ...
I am getting 'Notifications' on Samsung S7 edge phone in the notifications bar with "titles" about current events but I have Netguard firewall basically blocking Internet "completely" so either it is able to "escape" Netguard firewall somehow and receive new data over internet/4G or somehow it is getting SMS packets to...
How does the bundled Android Briefing news app avoid Netguard firewall internet block?
Yes, use the Debug Heap hooks in the CRT. You can hook malloc to breakpoint when you allocate a large block, using _CrtSetAllocHook and _CrtDbgBreak. Or if your problem is lots of small blocks, you can set a breakpoint on the 10,000th allocation (for example) using _CrtSetBreakAlloc. CRT Debug Heap: http://msdn.micro...
I have to debug program that rapidly allocates memory sometimes (Not by design.) and when it happens my whole computer just stop responding because physical memory goes 100% (I have 4GB ram), then I have to press the restarting button everytime with no way to know why did it happen. Is there a way to limit new's or ma...
How I can limit the heap's size so when I allocate a lot it won't get the machine stuck?
Please Check this out !TransferManager tm = new TransferManager(myCredentials); ObjectMetadataProvider metadataProvider = new ObjectMetadataProvider() { void provideObjectMetadata(File file, ObjectMetadata metadata) { // If this file is a JPEG, then parse some additional info // fro...
Actually i need to upload multiple image same time in amazon s3 server. Here is my Single File upload code here::TransferObserver transferObserver = transferUtility.upload( "selfiesharedev", /* The bucket to upload to */ mini_image_path, /* The key for the uploaded object */ ...
how to upload multiple image in amazon webservice s3 (Android) same time?
Arrays.copyOf does a shallow copy.It just copies the references and not the actual values. The following code will print alltruewhich proves the factString [] str1 = {"1","2","3"}; String [] str2 = Arrays.copyOf(str1, str1.length); for (int i=0;i<str1.length;i++) { System.out.println(str1[i] == str2[i]...
I have refered :Security - Array is stored directly.My code is aspublic IndexBlockAdapter(String[] itemStr) { if(itemStr == null) { this.itemStr = new String[0]; } else { this.itemStr = Arrays.copyOf(itemStr, itemStr.length); } }But Sonar still picks it up and complains about "Array is s...
The user-supplied array is stored directly