Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Yes, you can use GPU module in OpenCV, but unfortunately only in C++. There is no wrapper for Python. Solutions: Use C++ cuda API Use different library for GPU computing in Python e.g. Pillow SIMD
So, i got from my university a python related task. we need to get s a set of images (from a folder), and then resize them as fast as possible. so i manage to do it using cv2 resize option. but, apparently we can do it a lot faster using the GPU. but unfortenally i was unable to find the best way to do it with the ope...
Is it possible to process images using GPU in OpenCV
No, you cannot analyze Java code inside JSP files.
We have implemented automated code review in our project using SonarQube. We have some legacy application where all the coding was done on JSP pages. We will eventually migrate them to MVC design using Spring, but for now we have to do a code review for the existing java code inside JSP pages.My question is: can we run...
Can we run Java code review rules on scriptlets in jsp pages?
1 I've implemented simplified talloc api with overhead 32-49 bytes on 64 bit system. Overhead depends on features, that you want to use. talloc pool will be implemented in future release. UPD Pool is implemented in new 0.7 release Share Improve this answer ...
What is the memory overhead when using the talloc API instead of malloc and friends? And what is the memory overhead when allocating from a talloc pool? Intuitively, one would think that the overhead for a normal talloc allocation is quite high because a header must contain a pointer to a parent/children, tags etc. Bu...
What is the memory overhead of talloc allocations - from pools?
Fromdeveloper.android.comprivate Bitmap setPic() { // Get the dimensions of the View int targetW = size.x; int targetH = size.y; int size = ((screenWidth + screenHeight) / 2) / 3; // Get the dimensions of the bitmap BitmapFactory.Options bmOptions = new BitmapFactory.Options(); bmOptions.i...
I need scale my bitmap to screenSizeAverage / 3. When I do it like this, I have sometimes OutOfMemory error.screenWidth = size.x; screenHeight = size.y; screenSizeAverage = (screenWidth + screenHeight) / 2; Bitmap b2 = BitmapFactory.decodeResource(getResources(), R.drawable.logoqrtz); logoqrtz = Bitmap.createScaledBit...
Android drawing scaled Bitmap without OutOfMemory error
I think you have an issue on how you set up the params for your object to upload. Try:const s3Config= { localDir: './dist', deleteRemoved: false, s3Params: { Bucket: 'cdn', Prefix: 'dist/', CacheControl: 'max-age=31536000', Expires: oneYearLater(new Date()) } }ShareFollow...
I'm using an npm package callednode-s3-clientwhich is a high-level wrapper for theaws-sdkfor Node.js, to upload a local project directory to an S3 bucket.Using that package, I'm passing some metadata to my files, namely key value pairs forExpiresandCache-Control. I'm uploading an entire directory which consists of HTML...
Setting Expires and Cache-Control headers for images that are being uploaded to AWS S3
If you're on GKE, you should already have dynamic provisioning setup.storageClassName: do-block-storage accessModes: - ReadWriteOnce"do-block-storage"? Were you running on Digital Ocean previously? You should be able remove thestorageClassNameline and use the default provisioner Google provides.For example, here'...
Hi i'm trying to create a persistent volume for my mongoDB on kubernetes on google cloud platform and i'm stuck in pendingHere you have my manifest :apiVersion: apps/v1 kind: StatefulSet metadata: name: account-mongo-depl labels: app: account-mongo spec: replicas: 1 serviceName: 'account-mongo' selector: ...
Kubernetes PersistentVolume issues in GCP ( Deployment stuck in pending )
Gatling doesn't really send to influxDB the response time of each operation. If gatling sent complete information about the operations, it would significantly reduce the performance of gatling and influxDB. You would not have enough RAM for a test with a load intensity of even 100 transactions per second. Instead, gatl...
I read gatling official blog and understood that we cannot get 95th,99th percentile "All aggregations will result in computing averages on percentiles and will inherently be broken". I dint understand one thing why we are not getting simple response time series in gatling which we can customized through our queries to ...
Getting Wrong Percentile response time for Gatling Graphite Integration
In order to set the path forgit-syncto clone where you want to you need to useGIT_SYNC_DESTenv variable:the name of (a symlink to) a directory in which to check-out files under--root(defaults to the leaf dir of--repo)Remember thatGIT_SYNC_DESTneeds to be a subdirectory under theGIT_SYNC_ROOTdirectory.For example:- name...
My git-sync container for kubernetes is up and running. When I$ cdinto the directory they appear like this:deployment-apps/ - mygit_sync_repo.git/ - app1/My question: Can I set git-sync to pull files so app1 is inside the same directory as mygit_sync_repo.git. I want for deployment-apps/ to consume app1 dire...
git-sync for kubernetes, Can I control the target directory?
For just a few additional files, a branch is a good approach, and will allow:to isolate the development effort from the main developmentto merge it back to the main branch eventually, if the experiment is deemed successfulto discard it if the experiment fails.The other approach would be to fork the repository (GitHub),...
I have a project with around 20 class files already. The client is asking for an experimental feature, which itself is as big as a project around 4-5 class files or even more. I don't want to connect the feature with the original project in the beginning.But later when I am sure, it works.What is the right approach to ...
How to manage a new feature in a separate branch? Feature itself being a size of project
At least, try agit push --progress, which ismore precise since Git 2.10.For even more details:GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push --progressThen, make sure your large files listed in the .gitignore are not yet in the index:git rm --cached -- alargeFile
I'm attempting to push a commit ('master') to a remote ('origin/master'). The commit contains changes to 5 python scripts, each under 1000 lines of code. When I push, it goes very slowly as if it were pushing a very large file, then eventually times out when the status bar is at about 90%.Is there a way to check what...
Track status of GitHub push?
I would like to specify the location of the maintenance.html relative to the root without having to include the domain. So I have a single .htaccess file I can drop into any project without having to change itPerhaps, just use theHTTP_HOSTvariable so you don't have a hardcoded domain.RewriteEngine On RewriteBase / ...
I am using the following in my.htaccessto place my site in maintenance mode:################################################## RewriteEngine On RewriteBase / RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.111 RewriteCond %{REQUEST_URI} !^/maintenance\.html$ RewriteRule ^(.*)$ http://domain.com/maintenance.html [R=307,L] ##...
htaccess maintenance mode with relative url
The subdomain is specified via flag--cluster-domaintokubelet, such thatkubeletcan use it as the search domain in the file/etc/resolve.confof containers. When searching a Service name in a Pod, the FQDN is auto-completed by settings in the file/etc/resolve.conf.Forkube-dns, it includes 3 containers. One of them is named...
I work on a variety of different Kubernetes clusters in a variety of different clouds. My problem here is that it's difficult to discover what the FQDN for a kubernetes Service is as different clusters have different configurations.Is there a way viakubectlto get the FQDN for a service? I don't see it when I usekubectl...
Discover Kubernetes Service DNS Record
In general, you want to do it on the CPU. However, DirectX 9 has the concept of "preshaders", which means that this multiplication will be done on the CPU up-front. This has been removed for newer APIs, but it might be very well relevant for the examples you're looking at. Moreover, modern GPUs are extremely fast when...
I am new to directx, but have been surprised that most examples I have seen the world matrix and view matrix are multiplied as part of the vertex shader, rather than being multiplied by the CPU and the result being passed to the shader. For rigid objects this means you multiply the same two matrices once for every si...
DirectX world view matrix multiplications - GPU or CPU the place
It actually works. I mean: the actual behaviour / final result.Despite the fact that it showsxdebug.mode => developthe actual features are ALL turned OFF:Feature => Enabled/Disabled Development Aids => ✘ disabled Coverage => ✘ disabled GC Stats => ✘ disabled Profiler => ✘ disabled Step Debugger => ✘ disabled Tracing =>...
I’m trying to configXdebug 3in PHP container, and setXDEBUG_MODEenv variable tooffaccording with documentationhttps://xdebug.org/docs/all_settings#modebutxdebug_info()shows thatmode=develop. How to fix?Dockerfile:FROM php:7.4.11-fpm … ENV XDEBUG_MODE=off ENV XDEBUG_CONFIG="" RUN pecl install xdebug \ && docker-php...
Docker PHP with Xdebug 3 env XDEBUG_MODE doesn't work
2 I had the same issue too, inside a loop - setting the layer contents to nil worked for me: Releasing renderInContext result within a loop Share Follow edited May 23, 2017 at 12:04 CommunityBot 111 sil...
I have a problem. When I use the "renderInContext" in the iPad, the used memory is never released and accumulates until the application closes with "Memory Warning" Level=1 and Level=2 My code: CGRect mediaBox = CGRectMake(0, 0, 16.54 * 72.0, 24.02 * 72.0); CGContextRef ctx = CGPDFContextCreateWithURL((CFU...
renderInContext / Memory problem
9 Solution: Remember to link the mysql container to the wordpress container: links: - db:mysql Like this: version: '2' services: wordpress: image: wordpress ports: - "8080:80" links: - db:mysql environment: WORDPRESS_DB_PASSWORD: exam...
This is my docker-compose.yml version: '2' services: wordpress: image: wordpress ports: - "8080:80" environment: WORDPRESS_DB_PASSWORD: example db: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: example the services run normally, but, a few seconds later, the wordpress c...
Wordpress on docker-compose no run
location ~* ^/matches any URI that begins with/- which isany URIthat hasn't already matched an earlier regular expression location rule.To match only the URI/and nothing else, use the$operator:location ~* ^/$ { ... }Or even better, and exact match location block:location = / { ... }Seethis documentfor more.
I want redirecthttps://dev.abc.com/ to https://uat.abc.com/ https://dev.abc.com/first to https://uat.abc.com/first https://dev.abc.com/second to https://uat.abc.com/ https://dev.abc.com/third/ to https://dev.abc.com/third/ (Point the same)I have tried with following config and achieved first three. But last one also...
Rewrite all url to another url except one in nginx
It has been confirmed to be a known issue (link), and might be fixed in later releases.Currently there is no workaround so you have to keep using the default generated file name.
I have created a Static Web App with GitHub in Azure. The app and the API work well, the URL is something likehttps://[random-name].azurestaticapps.net, and the source is themainbranch in GitHub. My problem is that I want to change the name of GitHub's workflow file in the Static Web App configuration fromazure-static-...
How can I change the workflow's yml file in an Azure Static Web App?
2 Git is caching your login credentials. Use this to disable it: git config --system --unset credential.helper The git config user data is only used as an identity for commits, although Github uses the email to determine which user authored the commit. And the correct conf...
I was using an account in Github to push my projects to my repositories. Things were going well until I had the idea to create another account to put some projects that I believe are not important. Also I want to avoid having my main account bloated with projects that are not priority at the moment. As I tried to push...
Github repository not found. fatal error remote repository not found, after supposedly swtiching accounts
Is you iterate over each record, you could force the GC to start: Products.where(images: nil).each_with_index do |image, index| if index % 100 == 0 GC.start end end
I have a rake task that I need to run on Heroku in the background as a one off task. However the tasks is pretty large and I run into a 'Error R14 (Memory Quota Exceeded)` and was hoping I could get some tips on how I can avoid this. Essentially the task looks at the Products table and find products that have no image...
How to clear memory for a long running rake task to prevent exceeding Heroku's memory quota?
Any machine you can reach via ssh you can clone or pull from and clone or push to. Mercurial imposes no extra restrictions, so if you can get a shell you can do transport.My guess is you've just botched your URL syntax, but unless you providethe full textof your inputs and outputs there's not much we can do to help. ...
I'm on a local com, not accessible from external network. However, I can SSH to a remote server and transfer through SFTP.I tried to do a hg clone from my local repo to the remote following this instructions:How to clone repository to a remote server/repository with MercurialIt did create a repo on the remote server, h...
hg behind a local com through ssh?
How about something like this : set fromField to text 7 thru -1 of (do shell script "cat /test.eml | grep From:") set dateField to text 7 thru -1 of (do shell script "cat test.eml | grep Date:") set toField to text 5 thru -1 of (do shell script "cat /test.eml | grep To:") set subjectField to text 10 thru -1 of (do she...
I write an AppleScript to backup all my emails. A lot of emails I have already saved as .eml files on my local hard drive and deleted them from the server. Is there a way to load the .eml files with AppleScript as message to get the date sent, subject etc. of them?
AppleScript - Get information of .eml file
Short answer is — Don't worry about it-100Mb isn't a lot. The main thing you need to know here is that 'Real' or Resident RAM is not at all the same thing as allocated RAM. They can become linked if you allocate a lot of RAM, but you didn't. Why aren't they the same? De-allocated (or garbage collected) RAM is often ...
I'm i little bit lost. I'm writing a little app whichs load in the first step a bunch of data and put these into the database. For every entry in the database i create a new object which hopefully get released from the arc :-). The instrument tools shows me that my app has actually 5-6 mb living allocations. But the ...
Real/Resident memory larger than allocations reported by XCode Instruments
This worked for me:Create a 'master' child-branch in Github since the default branch is the 'main' one. The 'master' branch is intended to be the link between WatsonS and Github.If you try to publish a notebook from WatsonS to github, a window will pop-up with the following bullets:Target pad.Commit messageCell content...
I have been trying to publish my project Notebook created in IBM Watson Studio onto my GitHub account.I have performed all the steps as per the instructions tocreated personal access token in GitHub and pasted it in integration tab in Watson Studio (Profile and Setting page)linked the GitHub repository path in setting ...
Unable to publish Jupyter Notebook from IBM Watson Studio to Github repository
finally after 4 hours of searching i finally come into this issue https://github.com/k3s-io/k3s/issues/1802 Because i'm using k3s for cluster setup it's using crictl instead of docker, so the daemon.json doesn't apply which bring me to this documentation https://rancher.com/docs/k3s/latest/en/installation/private-regi...
I'm using k3s to deploy my cluster, in my worker node I already setup insecure registries in /etc/docker/daemon.json for an internal network private registry { "insecure-registries": ["192.168.30.87:7111"] } and I have restarted both my docker and my machine. I can see the settings from docker info when I ran docker...
K3S kubernetes Insecure Registries in daemon.json doesn't work
Does using the final keyword in the first example affect it at all? In terms of memory no. But final guarantees that throughout execution reference can't be pointed to some other object in case you are dealing with objects (if primitive types, final guarantees that value for that variable not going to change through...
Is there any difference between these two code snippets in terms of memory usage and performance/overhead? final float xPos = (CAMERA_WIDTH / 2) - (mSprite.getWidth() / 2); final float yPos = (CAMERA_HEIGHT / 2) - (mSprite.getHeight() / 2); mSprite.setPosition(xPos, yPos); and the other case: mSprite.setPosition(((CA...
Storing Data in a Variable vs Inline Arithmetic
Using some scripting you can use this command to get the output that you are looking for:find . -type f | egrep -v "(git)" | xargs -I {} git log -1 --pretty=format:'%H {}' {}This finds all the files in your folder, filters out the git directory and then callsgit logwith the format that you are looking for (though this ...
I want to know the commit when each file in my repo (or subdirectory of my repo) was most recently changed.git log -p some_file.txtwill show me the commit history for a single file.However, I want just the commit hash in which it changed along with the filename (ideally on one line). In addition, I want to do this for ...
Find out in which commit each file changed last?
Try and useBFG Repo-Cleaner, but make sure your current working tree has no change in progress (add and commit first)cd /path/to/your/local/repo java -jar bfg.jar --strip-blobs-bigger-than 100M some-big-repo.git git reflog expire --expire=now --all && git gc --prune=now --aggressiveThen push the new history (force push...
I tried to publish a file which was over 100MBI then looked it up and realised GitHub has a limit.Whilst it looks like I can make changes to use larger fileGit lfs - "this exceeds GitHub's file size limit of 100.00 MB"that's not my goal. Instead, I edited the file and it's now under around 80MBThe issue is, when I try ...
GIT error - this exceeds GitHubs file size limit - but the file has already been removed
Check out the VaryByParam property of the OutputCache attribute.[OutputCache(Duration=int.MaxValue, VaryByParam="id")] public ActionResult Details(int id) { }For each unique id value, a unique cache instance will be created.Edit:If your caching needs go beyond simple VaryByParam scenarios then take a look at VaryByCust...
i want to use output caching to avoid hitting my db over and over with the same static query but my controllers have parameters that uniquely define the post.How can i factor in my parameters and still support output caching in asp.net-mvc?
can you use output caching in asp.net-mvc based on the parameters of your controller action
The wonders of virtual memory. Until you actually initialize it somehow, memory doesn't need to take up any RAM. You'll get a far different result from #include <stdio.h> #include <stdlib.h> int main(void) { unsigned num_blocks = 0; for (char *p; ( p = malloc(1<<30) ); ) { memset(p, 0, 1<<30); // <---...
I was curious to understand how much memory can I allocate on my laptop, therefore I ran the minimalist program: #include<stdio.h> #include<stdlib.h> int main() { int Gb = 0; while ( malloc(1<<30) ){ ++Gb; printf("Now allocated %d Gb in total\n", Gb); } } It should allocate 1Gb of...
How does this program manage to allocate so much memory?
Yes, you cannot handle said scenario. You would have to update Party B each time Party C decides to change cert of Party A.related question:Dynamic certificate pinning
Correct me if I'm wrong, SSL cert pinning on mobile simply means that backend(Party A) has a cert and this cert we are included in our mobile apps(Party B), and whenever we want to firing network request, the request and response will be encrypted and decrypted by both parties on the agreed cert.Now the funny thing is,...
Possible dynamic SSL Cert Pinning?
Yes it is good till you are in development. Below is the reference fromIdentityServer4Creates temporary key material at startup time. This is for dev only scenarios when you don’t have a certificate to use.
This may be related to my other questionherehowever because of that it is hard to know.I am hosting IdentityServer4 and it seems to be working perfectly if all requests are coming from localhost. Anything else it is rejecting however I can log in fine through the web interface.I am still in development and I am just te...
IdentityServer4 only authenticates localhost
Quite contrary, itcannotbe done by rewriting url.You need to set upDNS server (to direct all subdomains to your server)and web-server (to accept them).Yet you don't need no query stringnor rewriting, as you can always easily have your domain fromHTTP_HOSTvariable.
If I enter the following link in the browser.http://sub.domain.comthen it will open http:/domain.com/page.php?c=sub and in the browser address bar visitors will seehttp://sub.domain.com.I know it can be done by rewrite url. Can anyone please tell me the htaccess codes?
From subdomain to query string, htaccess code
The timeout is currentlyhardcoded to 60s. Feel free to submit a pull request to make it configurable. But still I think that spending more than 1 min to blame a single file probably reveal a performance issue.
When running the SonarQube Maven plugin to get blame information from an RTC project I am hitting a timeout. I tried changing therepository.timeoutproperty in.jazz-scm/preferences.propertiesto900but the timeout still shows as 60000ms.At this point I'm not sure whether this islscmtiming out or Sonar itself.The error:[ER...
SonarQube Maven plugin: Jazz annotate Timeout exceeded
I found out there was an entry in my .gitconfig which was replacing ssh with https. [url "https"] insteadOf = git I might have accidentally added this entry while using some tool. So the clone command was actually using the url [email protected]:<some-org>/<repo>.git After removing the above entry from .gitconfi...
I came across a weird issue while cloning a git repository using ssh. I have the ssh setup: ssh -T [email protected] Hi yusufali2205! You've successfully authenticated, but GitHub does not provide shell access. I am using the right clone url and have access to the repo I want to clone. But getting error: ➤ git clone ...
Github SSH works but clone using ssh fails
Yes, your understanding of the first two scenarios is correct. To throw more light on this, Amazon Cognito has two concepts when dealing with multiple providers: Linking and Merging. Linking is when on a single device you are logged in with provider A and already have an identityId and you login with provider B. In thi...
I've been having some issues understanding the Amazon AWS Cognito Workflow for adding multiple login providers, here is some psedu code to demonstrate my questions:{Code to get CognitoCachingProvider} Device Cognito ID = A {Code to get Google Token} withLogin(Google Token) if(Identity is changed) identityListener(...
Android Amazon AWS Cognito Workflow confirmation
Update from my Github issue: https://github.com/moby/moby/issues/33656 It seems like the DeepSecurity agent (ds_agent) running on a container with Docker can cause this issue invariably. A number of other users reported this problem, causing me to investigate. I previously installed ds_agent on these boxes, before rep...
Can anyone help me make sense of the below error and others like it? I've Googled around, but nothing makes sense for my context. I download my Docker Image, but the container refuses to start. The namespace referenced is not always 26, but could be anything from 20-29. I am launching my Docker container onto an EC2 i...
Docker image fails to create netlink handle
Have a look at theannotation overview, it seems thatwhitelist-source-rangeis not supported byistio:whitelist-source-range: Comma-separate list of IP addresses to enable access to.nginx, haproxy, trafficserver
I'm trying to whitelist an IP to access a deployment inside my Kubernetes cluster.I looked for some documentation online about this, but I only found theingress.kubernetes.io/whitelist-source-rangefor ingress to grant access to certain IP range. But still, I couldn't manage to isolate the deployment.Here is the ingress...
Whitelist an IP to access deployment with Kubernetes ingress Istio
location ~ ^/[0-9\.]+(/.*) { try_files $1 $1/; }ShareFolloweditedJun 27, 2013 at 8:35answeredJun 26, 2013 at 8:21Mohammad AbuShadyMohammad AbuShady41.6k1111 gold badges7979 silver badges8989 bronze badges4A single segment like 1.3.4 or 5.6.7. Above rule did not help.–AnkitJun 26, 2013 at 10:25do you want a redirect...
Need some help with Nginx write rule such that:All urls of type:-/1.1.1/xyz/abc/z.js /2.2.2/xyz/def/c.cssare re-directed to/xyz/abc/z.js /xyz/def/c.cssWant to exclude the numeric part which comes at the beginning of URL.
nginx rewrite rule exclude numbers
It doesn't.docker psonly shows running containers,docker-compose psshows all containers related to the current compose file, running and stopped.docker-compose killjust force stops the container and it can be restarted withdocker-compose start, it will therefore be visible when runningdocker-compose psbut notdocker ps....
Why does docker compose create containers that are only accecible from docker-compose ps and that persist after killing running container ?
Why is docker-compose ps different from docker ps?
It sounds like he doesn't allow you to override safe mode. Which makes sense because what would be the point in running a shared server in safe mode if anyone could disable it as they saw fit. You're probably going to need to relocate to a server without safe mode as the only options for changing that value are not goi...
I'm on a server with safe mode on. Now the server allows .htaccess files. I have one in my public_html folder with settings of Wordpress. Now in a sub-domain i want to insert an.htaccessfile that dsiables safe mode.i Tried theese:php_value safe_mode 0 php_flag safe_mode 0 php_value safe_mode off php_flag safe_mode offb...
Setting safe mode to OFF in .htaccess file does not work
If permission error, you need add --privileged
I'm trying to do the following within a Docker container: docker run -it <image> bash root$ dd if=/dev/zero of=file.fs bs=1024 count=1024 root$ mkfs.ext4 file.fs root$ mkdir tmp root$ mount -t ext4 file.fs tmp **mount: tmp/: mount failed: Unknown error -1** root$ dmesg dmesg: read kernel buffer failed: Operation not p...
Cannot use mount within a Docker container
If a property is set to retain, then these 3 are equivalent: [self setProperty:nil]; self.property = nil; [property release]; property = nil; In each case, the object will be released, and then set to nil so that all access to the object from then on will not be allowed. "nilling" the instance variable is handy sin...
I've people who use [variable release] and some other times variable = nil to clean up memory? When do you use each one? and what are the differences?
Objective-C memory management: when do you use `[variable release]` vs `variable = nil` to clean up memory?
Nginx has some web server functionality (e.g., serving static pages; SSL handling) that gunicorn does not, whereas gunicorn implements WSGI (which nginx does not).... Wait, why do we need two servers? Think of Gunicorn as the application web server that will be running behind nginx – the front- facing web server. Gunic...
This question already has answers here:Are a WSGI server and HTTP server required to serve a Flask app?(3 answers)Closed5 years ago.I want to use gunicorn for a REST API application with Flask/Python. What is the purpose of adding nginx here to gunicorn? The gunicorn site recommends using gunicorn with nginx.
What is the purpose of using nginx with gunicorn? [duplicate]
That's correct. The Nameserver records are list of IP addresses for the servers that store the mapping of your domain name to your backend IP Address. or your cloudfront domain (in case you are using cloudfront). Once you register the nameserver records you get from Route53 hosted zone with your domain name registrar ,...
I have a domain name registered at a registrar other thanAWS Route 53. To be precise, at namecheap.com.Now, I want to use some of the Amazon AWS services and I find it's better to use AWS Route 53 as the DNS service for my domain. But I don't want to transfer my domain name from the original registrar to AWS Route 53.W...
How to use AWS Route 53 as the DNS service for a domain name without transferring that domain from the original registrar to Route 53 service?
Actually solution is easier then you think although it also took me some time to figure it out. I will place here an example for some unspecified shop data grouped over countries - you just need to change it for your task. Example was tested on Grafana 5.0.3PostgreSQL query for metricsSELECT $__time( partition_date )...
I need to create a dashboard to be used in a control room, where a bunch of operators will need to monitor the number of tasks assigned to other employees (among other aspects).Source data will be coming from a RDBMs (PostgreSQL, in this case). We havepeoplewithassigned and numbered tasksthat also have astatus, and the...
Create histograms in Grafana with alphabetical values as x-axis
didn't find one so developed my own basic version:http://code.google.com/p/amazon-mws-python/
Is there a Python library for interacting withAmazon MWS? I foundRuby,Perl,PHP,C#, andJavaversions, but not Python.
Python library for Amazon MWS
You can try:kubectl get pods --field-selector=status.phase!=Succeeded,status.Phase!=FailedIf you look at thePod Phasesyou can see that this covers all possible pods where all containers are terminated (either failed or succeeded)If you specifically want the count you could use a bit ofjqand use:kubectl get pods --field...
I need to find the number of pods currently NOT terminated (can be available, terminating, etc.) in order to prevent deployment from starting if there are still some pods not terminated.UPDATE: If there are no pods available, I should get "0". Is it possible ?
How to get number of pods (available or terminating) in kubernetes?
According to these rules, you only have SSH access from the some local networks. Everything else is forbidden, including ICMP, which is used by ping. With the following command you will open access to your machine "/sbin/iptables -I INPUT -j ACCEPT" , but these restrictions are there with a reason so better consult y...
I have this iptables configuration, it supposed to let me do ssh from remote machine in the same subnetwork, but I can't even do ping. What's happening?Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere state RELATED...
iptables rules I can't do nothing
There is probably an issue with your firewall. Check the firewall rules if they are blocking access from outside to that port.Also you should access the service from the NodePort of the service you created while deploying the ingress controller.Also edit your ingress and add the tls and hosts property with a self signe...
I have a cluster of 3 vm on which I install kubernetes and deployed some pods and services that I would like to be accessible from outside (my local pc for exemple)I followed this tutorialhttps://kubernetes.github.io/ingress-nginx/deploy/#bare-metalto install my ingress controller. I have created a service of type Node...
Ingress controller NodePort not reachable from outside
RewriteEngine On RewriteRule ^user/([A-Za-z0-9-]+)$ user/index?username=$1; # for particular user details RewriteRule ^user/$ user/index; # for all logged in user listFor Eg. your url isuser/index?username=testuserafter rewrite apply it look likeuser/testuserit is for particular user details for all user list you ju...
I have a page which currently displays user information based on values passed through$_GET['username']What I currently have Is when a user goes tourl.com/user/index?username=username(for example) it will display username's page. If the variable is not set however likeurl.com/user/index, it will display the logged in u...
htaccess rename file to $_GET php variable
You will need to capture the BRANCH using a regular expression server_name statement. See this document for more. The root is constructed by appending /public to the captured VERSION, which requires a regular expression location and an alias statement. See this document for more. For example: server { ... serv...
I have a Lumen api project with multiple git tags for api versioning. So I have to deploy multiple checkouts of the project. The folder structure on the server looks like this: var www api-staging master v1 public index.php ... v2 public ...
How can I serve nested projects in Nginx
You can run the following:git reset --soft HEAD~1--softensures that those files aren't deleted from your hard drive.~1refers to the latest commit.You can also do the same for the lastncommits by usingHEAD~nIf you don't want those files to ever be pushed to your remote repository, consider creating a.gitignoreand adding...
This question already has answers here:Remove file from latest commit(38 answers)Closed3 years ago.I added some new files to a local copy of a Github repo and accidentally rangit add *andgit commit, but notgit push.I think the new files should only be on my local copy of the repo. How do I safelyremovethose files from ...
How to remove new files from git repo safely [duplicate]
on:pushcurrently only receivespath,branchandtag(include corresponding-ignoreversion).SeeWorkflow syntax for GitHub ActionsThere are other alternative (but not perfect) approaches:Add a step to perform datetime calculation (usebashor other tools), and useif:condition the following steps.on: push: branches: [master...
something like this :i want to trigger it only on Saturday if any Push happens on Master branchon: push: branches: - 'master' schedule: - cron: '0 0 * * SAT'
can we have cron schedule inside on:push block in github actions?
oh sorry i got my answer. forgot to add app.set("trust proxy",1) on my frontend code this happened because I was not using nginx for static files but another nodejs server
Good day people i have a node js appplication which i use nginx as reverse proxy. whenever i set cookie it works but the httpOnly and secure flag is not ticked, please i need solution this is an image of the problemthe cookie when set on browser my nginx configuration app.set("trust proxy", 1); app.use(helmet()); app....
http only cookie not working on express js with reverse proxy
13 You should update httr package to latest version (now it's 0.3 - available in CRAN). I found the relevant example from httr (version 0.3) demos: library(httr) # 1. Find OAuth settings for github: # http://developer.github.com/v3/oauth/ oauth_endpoints("github") # ...
I am using the httr v0.2 package to use the github api as well now. But I am struggling to get past the oauth2.0(...) part in which I get to the browser page for my app, click on 'Allow' and then get redirected to the callback URL page. The httr github demo suggests using the callback URL as http://localhost:1410 but...
httr github-API callback URL issues
35 Direct renaming of S3 objects is not possible Rename objects by copying them and deleting the original ones You can copy and delete using e.g. CopyObjectRequest copyObjRequest = new CopyObjectRequest(bucketName, keyName, bucketName, destinationKeyName); ...
This question already has answers here: How to rename files and folder in Amazon S3? (22 answers) Closed 3 years ago. I am trying to rename a file in S3 Bucket. Here is a code sni...
How to rename a file in Amazon S3 Bucket? [duplicate]
This should do it:<configuration> <system.net> <settings> <servicePointManager checkCertificateName="false" checkCertificateRevocationList="false" /> </settings> </system.net> </configuration>If you don't have section in your web.config, simply add it.
I know you can ignore certificate errors by using following line in your code:ServicePointManager.ServerCertificateValidationCallback += ( sender, cert, chain, sslPolicyErrors ) => true;However, I am wondering if there is a way to do that via web.config file. Reason for that is b/c we can specify proxy server in web.co...
C# ignore certificate errors via config file
Given that your branch is public and shared, you probably shouldnotdo a hard reset to actually remove the top 2 commits. Instead, usegit revert:git revert master~2..masteror maybegit revert --no-commit HEAD~2..This will add a new commit on top of theHEADof yourmasterbranch, which will functionally undo the current top...
I have committed and pushed the branch. Now I decided to revert the last two commit, I know I can dogit reset --hard HEAD~2, and I just did it. Now in my local branch, the commits are two steps back. But how can I push this to remote branch? I mean how can I make remote branch also be 2 commits back?The reason why I as...
make remote branch 5 commits back
) when a Pod is shutting down it's state is changed toTerminatingand it is not considered by the LoadBalancer - as described in thePod terminationdocs2) Yes - you might want to look at thepod.Spec.TerminationGracePeriodSecondsconfiguration to gain some control. You'll find details in theAPI documentation3) No - the Rep...
We have an application with 4 pods running with a load balancer! We want to try the rolling update, but we are not sure what happens when a pod goes down! The documentation is unclear! Particularly this quote fromTermination Of Pods:Pod is removed from endpoints list for service, and are no longer considered part of th...
Graceful termination of kubernetes pods
found in theGithub CLI Docs:after you rungh auth loginthen run this commandgh auth setup-git
I have followed the explanationherefor setting up auto authentication of github on my CLI (on Linux, Ubuntu). In particular, I executed the command givenhere:gh auth loginAnd then I answered Github.com, yes, HTTPS, and my authentication token to the prompts.This seems to work: It states "Configured git protocol" and "L...
github auto authentication with personal access tokens doesn't work
Try this, it works for me: 'use strict' let fs = require("fs"); let path = require("path"); exports.handler = (event, context, callback) => { // To debug your problem console.log(path.resolve("./readme.txt")); // Solution is to use absolute path using `__dirname` fs.readFile(__dirnam...
I have a very simple node lambda function which reads the contents of packaged file in it. I upload the code as zip file. The directory structure is as follows. index.js readme.txt Then have in my index.js file: fs.readFile('/var/task/readme.txt', function (err, data) { if (err) throw err; }); I keep getting the fo...
reading a packaged file in aws lambda package
FromUIPasteboard Class Reference:A pasteboard is anamed region of memorywhere data can be shared. There are two system pasteboards: the General pasteboard (UIPasteboardNameGeneral) and the Find pasteboard (UIPasteboardNameFind. You can use the General pasteboard for copy-paste operations involving any kind of d...
Where are the contents of an app-specific UIPasteboard physically stored on a device?Is this something which is backed-up when iTunes backs up the device?So, in terms of security, would one want to encrypt data sent to the UIPasteboard?
Where is UIPasteboard physically located?
0 For the first part, whatever is once malloc'ed stays mallaoc'ed. The reason is the way malloc() gets its memory from the OS, namely increasing the heap max address. So to release it again you have to be sure there are no more references to any address there or you get a s...
I'v a mixed mode application which is x32. So there only 2G of memory available. The application processes some large data and allocates about 1.5G in unmanaged heap. Then it releases allocated unmanaged memory without leaks. But the next step is to process about 1.5G in managed mode. And the application crashed when ...
Memory management in C++ mixed mode application
This is an updated answer, since the url's have changed slightly for Github... I ran into this issue and figured it out for present day. Hopefully this helps people out finding this post recently. Example for Bootstrap Slate theme from Bootswatch:Raw file url:https://raw2.github.com/thomaspark/bootswatch/gh-pages/slate...
Is there a possibility tomisusegrab files from a github repo as external resources in jsFiddle?
Reference GitHub file in jsFiddle
Seems like a network problem from the container, can you curl www.google.com or ping it?ShareFollowansweredAug 28, 2018 at 21:38night-goldnight-gold2,30033 gold badges2222 silver badges3838 bronze badges1Yes, I can ping everything–Tudor RavoiuAug 30, 2018 at 6:47Add a comment|
I have a digitalocean droplet where i've installed docker. After pulling the ubuntu:18.04 image like thisdocker run -it ubuntu:18.04 bashi've tried to do a curl call on one of my subdomains (i can provide it via a message).The call looks like this:curl -vvv -4 api.example.comThe command hangs with the following output:...
cURL request hangs in docker ubuntu/alpine container
I was providing a certificate file, wheareas the program needs akeystoreand its password. Creating a keystore and providing its path solved the problem. Here is a link on how to create and put ur certificate into the keystore:http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.htmlShareFollowan...
I am new to ftps.I am using the zehon library to transfer files using FTPS protocol. I have a verisigned certificate. Here is my code snippet:FTPsClient ftpClient = new FTPsClient(host, port,username ,password ,false,keyStorePath,keyStorePass); // should it be true or false?? i.e. the isImplicit method int status = ft...
Invalid Keystore Format while transferring files through FTPS protocol using java(zehon)
If you need to push a local branch to both remotes, then do so via:git push origin master git push gitlab master ^^^ specify the remote to be used hereI don't think in general that pushing to two remotes at the same time is desirable. What should happen if one push succeeds and the other fails? This is not...
Short: If you have linked more than one remote repository to your local files, is there a way to push to both of them?Long: Due to work reasons, I have to use gitlab and github remotes for my code. So as soon as I make some local changes I would like to update both repositories.My .git/config file looks like this[core]...
Git: Push to multiple remotes
+50The reason for your problem is that the kernel treats a process with PID 1 specially, and does not, by default, kill the process when receiving theSIGTERMorSIGINTsignals.You have two options:Add--initflag todocker runcommand. By that a special process with PID 1 will be created, which will be a parent for your proce...
I'm using WSL2 on Windows 10 using an Ubuntu image, and Docker for Desktop Windows (2.2.2.0) with the WSL integration.I have a Rust TCP server. When I run it withcargo run(or the binary aftercargo install), it does the right thing, and I can sendCtrl-Cto it to terminate. I don't do any explicit signal handling in the c...
Unable to stop my Docker container with Ctrl-C
RewriteEngine On RewriteRule ^proyecto/([^/]*)/([^/]*)$ /proyecto.php?id=$1&title=$2 [L]and add the following at the bottomRewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([^\.]+)$ $1.php [NC,L]
I 'm fighting with htaccess XD, but I can not find the fault, because i don´t know much about htaccess, i have set the correct settings in the phpinfo file.My no seo link:<a href="proyecto?id=<?php echo $id_proyecto . '&title=' . $url; ?>">Examples browser: mydomain.com/proyecto.php?id=1&title=diseno-desarrollo-webMy q...
seo friendly url in php using htaccess
From https://pages.github.com: Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub. If the first part of the repository doesn’t exactly match your username, it won’t work, so make sure to get it right.
I want to set up a personal website on Github. I followed this video to create a repository containing a file index.html. I read online that in order to obtain an url <myname>.github.io for this html page, you need to name the respository <myname>.github.io. But when I do this, the html page gets published to <account...
How to have myname.github.io as url of a personal website on GitHub?
What about you to use oc patch as follows ? For instance, you want to update new secret as mysecret in test buildconfig. oc patch bc/test \ -p '{"spec": {"triggers": [{"type": "GitHub","github": {"secretReference": {"name": "mysecret"}}}]}}' I hope it help you.
AS defined here, i linked the secret that i created to webhook secret with web portal and changing the yaml file directly.like; type: "GitHub" github: secretReference: name: "mysecret" Is there a way to do this over cli using oc?
How can i change github webhook secret in openshift with cli
Looking at theOther Pluginssection of the documentation, looks like there is a plugin for this:https://github.com/mibexsoftware/sonar-bitbucket-pluginHowever, this plugin relies on a deprecated feature of SonarQube (the "preview/issues" mode) - which will be removed in future versions.Note that SonarSource is currently...
Is there something similar tohttps://docs.sonarqube.org/display/PLUG/GitHub+Pluginbut for Bitbucket cloud?I would like to run it from Jenkins with gradle.
Sonarqube plugin for Bitbucket as for GitHub
This is typically a use case whereTRAMPwould be useful.Instead of connecting to the server using SSH and opening Emacs there with X forwarding, run Emacs on your box and open your files remotely using TRAMP. For example:C-xC-f/ssh:user@host:/remote/path/to/the/fileRETThis way, your Emacs process runs locally, but all f...
I have a large repository of C++ code on a remote cluster (linux OS). When I need to work on this code from my home computer (Ubuntu OS), I try to access these codes through emacs on X windows. However the X window connection is very slow making the editing a painful process. So I sometimes move files manually between ...
Automatic backup of emacs file edit on a server
One way to get the output you're looking for is to change:... organizations: - 'foo' - 'bar' ...To:organizations: | [ 'foo', 'bar']So helm treats it as a single string. We happen to know that it contains array content but helm just thinks it's a string. Then we can set that string directly in the configmap:organi...
Ultimately i'm trying to get an array of strings e.g.['foo', 'bar']in my js app from my helm config../vars/dev/organizations.yaml... organizations: - 'foo' - 'bar' ..../templates/configmap.yaml... data: organizations.yaml: | organizations: "{{ toYaml .Values.organizations | indent 4 }}" ..../templates/deploym...
Get array of strings from helm config
Depending on where you are deriving your context for deploy and publish, normally deploy means redeploying your lambda with new code whereas publish is increasing your lambda version (not redeploying code).
In AWS Lambda function, what is the difference between deploy and publish? When we only deploy, do the consuming services get to use the updated function (assuming they are pointing to latest function version)? When we only publish, does it get auto deployed?
In AWS Lambda function, what is the difference between deploy and publish?
28 Instead of merging you want to rebase. You can do this manually, or automatically when pulling. git pull --rebase upstream master git push --force origin master Once you've started doing merges though this will get hard to do, you'll need to reset the branch back to bef...
I forked a project on Github. Let the remote upstream be upstream and my remote repository be origin. My local master branch is set to track the remote master branch. Then I added some stuff in local master, and I merged with the upstream every now and then. Not until today when I want to issue a pull request did I fi...
Avoid unwanted merge commits and other commits when doing pull request on GitHub
In my ubuntu server I had to perform:chown -R 200:200 path/to/directoryNot only 200, but200:200ShareFollowansweredApr 11, 2018 at 16:354lberto4lberto52566 silver badges1414 bronze badges11After upgrading 3.37 to 3.41 I had the same problem. Until that it was working with root group. This solved my problem.–Mert ÜlkgünA...
I am using the following command to run my containerdocker run -d -p 9001:8081 --name nexus -v /Users/user.name/dockerVolume/nexus:/nexus-data sonatype/nexus3Container starts and fail immediately. with the following logsmkdir: cannot create directory '../sonatype-work/nexus3/log': Permission deniedmkdir: cannot creat...
Error while mounting host directory in Nexus Docker
If you're trying to target the cluster for deployment, you need a self-hosted agent that has a network route to your cluster.The other capabilities exposed by the environment feature of Azure DevOps (i.e. monitoring the state of the cluster via the environment view) will not work -- they require a public-facing Kuberne...
I am currently using EKS private cluster with a public API server endpoint in order to use Azure DevOps environments(with Kubernetes service connection).I have a requirement to make everything private in EKS.Once EKS becomes private, it breaks everything in Azure DevOps as it is not able to reach the API server.Any sug...
Azure DevOps environment with private EKS cluster
Yes, it is possible: see "Lab 6: Docker Networking".The key part of an overlay network is the discovery service, like for instanceConsul.An overlay network requires a key-value store.The store maintains information about the network state which includes discovery, networks, endpoints, ip-addresses, and more. Engine sup...
I have followed through the example atgetting started overlayand i have a simple query. Is it possible to use multi-host networking feature using overlay without creating aswarm cluster? I don't want to use third party plugins like weave etc. I want to use docker native networking support for this.I have3.16+ kernelrun...
Is swarm required for using multi-host networking feature using overlay in docker
1 I know this is an 8 months old question, but this might help others: I ran into the same issue and noticed that if I edit my index file (index.php) of the previous release, the symlink is magically refreshed. After deploying, I simply run: touch /path/to/releases/[previ...
I have this weird issue that was not happening before. I am running a Ubuntu Box on Digital Ocean that uses NGINX and PHP-FPM. I also use PHP Deployer to deploy code between Stage and Prod. Deployer uses symlinks to tell the server where the files are in this case /var/www/mydommain.com/current would be the symlink t...
NGINX Caching Symlinked Web Site Location
The packsize limit does not affect git protocol commands (your push).Fromgit-configunderpack.packSizeLimit:The maximum size of a pack. This setting only affects packing to a file when repacking,i.e. the git:// protocol is unaffected.When executing a push git will always create exactly one pack no matter the size!To fix...
I am new to Git and have a fairly large project that I want to push to a remote repo (Repo B) on Github. The original project was on Github as well but from a different repo (Repo A). I have to make some changes to files from Repo A before I can setup the project up on Repo B. I have setup the remotes, ssh keys etc. an...
Github remote push pack size exceeded
If we are using data frame to do some operations on data from hdfs, we are technically using memory not the disk space. So the limiting factor will be memory(RAM) not the available disk space in any working directory and changing working directory wont make too much sense. You don't need to copy the file from hdfs to ...
I need to create some data frames from very large data sets in R. Is there a way to change my working directory so that R objects that I create are saved into hdfs? I don't have enough space under /home to save these large data frames, but I need to use a few data frame functions that require a data frame as input.
R- set working directory to hdfs
Non-master branches of GitHub wikis are not available through the web interface: Once you have cloned the wiki, you can add new files, edit existing ones, and commit your changes. You and your collaborators can create branches when working on wikis, but only changes pushed to the master branch will be made live and a...
I am able to access Github Wiki pages directly using the below URL: https://raw.githubusercontent.com/wiki/Siminov/android-core/Preface.md But if I create a branch of master Github Wiki then how to access those pages?
How to access Github Wiki Branches
Here's my idea,Match anything that isn't a dot, three times, from the end of the line using the$anchor.The last match from the end of the string should be optional to allow for.com.auor.co.nztype of domains.Both the last and second last matches will only match 2-3 characters, so that it doesn't confuse it with a second...
How can I extract only top-level and second-level domain from a URL using regex? I want to skip all lower level domains. Any ideas?
Extracting top-level and second-level domain from a URL using regex
Use theCacheable()extension method on your Queryable before callingToList().ShareFollowansweredJan 27, 2011 at 13:36Diego MijelshonDiego Mijelshon52.6k1616 gold badges117117 silver badges157157 bronze badges1I don't think there's any official documentation yet... I started updating the existing docs a few months ago, b...
I've just started using LINQ with NHibernate in NHibernate 3, after previously using ICriteria.Here's an example query:ISession session = NHibernateSessionManager.Instance.GetSession(); var results = from project in session.Query<Project>() where project.ProjectState == ProjectState.Archive ...
NHibernate 3 Linq query caching
Enter some junk value into your.htaccesse.g.foo bar,sakjnaskljdnasany keyword not recognized by htaccess and visit your URL. If it is working, you should get a500 Internal Server ErrorInternal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request....I suggest y...
I have aRewriteRulein a.htaccessfile that isn't doing anything. How do I troubleshoot this?How can I verify if the.htaccessfile is even being read and obeyed by Apache? Can I write an echo "it is working" message, if I do write it, where would that line be echoed out?If the.htaccessfile isn't being used, how can I make...
How to debug .htaccess RewriteRule not working
+50As someone commented on your question you can't do so because are two separate virtual machines runnign in your network. Also the SQL Server image for docker is linux based so it would make it more complex. What i'd do (and my team is alredy doing) is to have a sa SQL account and:1.- In docker-compose.yml:sqlserver:...
I have an ASP.NET Core app connecting to a database usingIntegrated Security=Truein the connection string, so that the credentials of the user running the app are used to connect to the database and so that I don't have to add a username and passwordUser Id=username;Password=passwordin the connection string.How can I r...
Run ASP.NET Core App in Docker Running as Custom User
@Autowired private AmazonS3 amazonS3; ObjectMetadata meta = new ObjectMetadata(); meta.setContentType(file.getContentType()); meta.setContentLength(file.getSize()); meta.setHeader("filename", fileName); ByteArrayInputStream bis = new ByteArra...
So my problem's that when I open the URL of the uploaded file, it downloads it. I did some research and the problem's that I should somehow specify to S3 that its an image. Currently this's the function that handles the upload but I don't know how could I set the type there. Or is there a built in function that recogn...
Spring AWS S3: How to upload an image and get a URL which shows it rather than downloads it?
As mentioned in "Mount a shared-storage volume as a data volume"In addition to mounting a host directory in your container, someDocker volume pluginsallow you to provision and mount shared storage, such as iSCSI, NFS, or FC.Since docker 1.9, this is done withdocker volume create(and then you mount those volumes in thei...
I am trying to benchmark the overall system performance of running Docker using the Phoronix Test Suite 6.4.0 Milestone 2 running inside a fedora:23 image based container.One thing that must be considered is, that Docker uses a proprietary UnionFS to store data. However, when running a real-world application (like Apac...
Eliminating the impact of UnionFS on results when benchmarking inside Docker
I found the answer to my problem. I think I made an error when adding the lib directory to my build path.Here's the right way to do it:Right click Project -> select Properties -> Java Build Path -> Libraries and click Add JARs. Then select the JARs added to the lib directory. Thanks.
I'm setting up an Android-based Amazon AWS SimpleDB client in Eclipse (just started). I'm getting an error on the line:import com.amazonaws.services.simpledb.AmazonSimpleDBClient;that says "The import com.amazonaws cannot be resolved."I've already installed the AWS SimpleDB jar file in the lib directory of my project,...
import com.amazonaws cannot be resolved
2 Bitbucket has an academic plan that should suit your needs. From https://bitbucket.org/product/pricing?tab=host-in-the-cloud : Do you offer free community or academic subscriptions? Yes! Community or academic subscriptions include unlimited private repositories for unlim...
I'm a university professor teaching a programming class. There will be a group assignment for this class and I'd like to monitor each group's progress, therefore I thought of using GitHub or Bitbucket to host the assignments. Each group will be composed of at most 4 students, and of course I will need to be able to se...
Bitbucket private repository limits for free plan
You do not need to release it because you never init'd it.[NSArray arrayWithObjects:...]returns an autoreleased object. You are not responsible to release it, because it has had the autorelease message sent to it when it returned from the method. You only have to release what you init! (If you had used[[NSArray alloc] ...
I'm using the iPhone SDK 3.0, but I think this is a general misunderstanding of how things work w/ c & memory management.I've overridden the viewWillAppear method like this@implementation MyViewController - (void)viewWillAppear:(BOOL)animated { NSArray *items = [NSArray arrayWithOjbects:self.searchButton, self.trashC...
pointer memory management misunderstanding w/ objective-c
I'd suggest usingjQuery Sparklines. You'll need to create two separate graphs and position them on top of one another (one for the blue bars, another for the gray bars). You'll also need to make the dotted line/legend an image, but github also uses an image for that.Here are some decent values to get you started:EDIT: ...
Has anyone seen an open-source library that produces charts similar to Github.com's commit timeline charts? Check outthis profile(picked one at random) and note the bar graphs below each project.I've been trying to dominate Flot into behaving correctly but it just doesn't have the flexibility of formatting options to c...
Timeline Charts like Github.com
Use Yaml files to define your resources, if your pods are stateless no problem to recreate your namespace, your PV volumes, your data is no-namespaced, so you dont loose it.
I am learning Kubernetes and I deleted a namespace and it automatically deleted resources assigned to it, what happens if someone deletes it by accident. Is there control over this, except for changing permissions?
if I delete a namespace will it automatically delete the resources in the cluster?
I wrote an article on how to deploy a Nuxt Application on Amplifyhere.In a nutshell:Go to App Settings -> Rewrites and redirectsClick on Edit and remove the existing ruleAdd the following new rule:Source Address:</^[^.]+$|\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>Target Address:/index.htmlType:...
I have deployed my Nuxtjs app as SPA on AWS using AWS Amplify console. Now my website has some dynamic routes which redirects to 404 page when reloaded or opened in a new tab. I know that when we generate a static site usingnuxt generatethe routes should be using routes() in nuxt.config.js. But in SPA mode it should be...
Nuxtjs dynamic routes doesn't work on page reload after deploying as a SPA on AWS Amplify console
No, there isn't.I do pretty much the same from cron via a script used on a few machines which hasPOSTCMD="cd /var/local/backup/${HOSTNAME} && \ rsync --password-file /root/.rsyncd.passwd \ --archive \ --delete-after . ${NASSERVER}::backup/${HOSTNAME}"
I have a set of folders on my local nix box and 3 nfs mounts from my NAS. All my permissions seems set to be able to write to my NAS. I also have a mirror of the folder structure on my NAS.I want to use rsync as a cronjob so that anything new in a folder or subfolder is synced to my NAS with an 'ignore-existing' flag. ...
Rsync from local folder to NAS and delete contents after
Adding this into the allowed IPs box on WHM will solve the issue. Do not add this directly into the CSF file.ShareFollowansweredMay 26, 2012 at 13:14Jay TeeJay Tee1333 bronze badgesAdd a comment|
I edit my CSF file in vi, but the ConfigServer Security&Firewall will not load in the web-browser after saving, so I have to revert. I assume because of invalid syntax?I have these ports permitted (CSF works fine and displays in WHM):# Allow incoming TCP ports TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995" ...
csf.conf file. Allow MySQL Access From External IP Address - not working,
If you want to import your notebook from Github, You can follow steps to create a notebook and provide GitHub URL to import it into Watson Studio.See instructions provided here:https://github.com/mamoonraja/analyze-call-center-calls-with-watson#watson-studio(You can skip step 3 if you don't need spark).
I want to run github project in IBM Watson Studio. Is there any way I can do it directly? Or I have to write the code from scratch in Jupyter notebook?I have already linked github repository with IBM Watson Project for publishing code but I want to know if there is any way to import code?There is an option to import a ...
Link github to IBM watson
Addressing the warning about the dynamic port worked for me. I think the issue is that minio serves the API on port 9000, but tries to redirect you to the console when that address visited in the browser (e.g. localhost:9000). The console is on a dynamic port that isn't exposed by docker.Instead, we can specify the con...
I have installed minio in docker. It installed successfully and below are logs of the minio server:I think all is well but when I invoke localhost:9000 url in browser it redirects to localhost:40793 with error messagesite can't be reached.I don't know the issue. Can anyone help ? Thanks in advance.
minio local dashboard is not opening