Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Here example for adding image-pull-secrets in command linekubectl run hello-world -it --restart=Never --image=nginx:1.7.1 --image-pull-secrets=regcredFor overriding, you can use :kubectl run <name> -it --restart=Never --image=<private image> --overrides='{ "apiVersion": "v1", "spec": {"imagePullSecrets": [{"name": "<se...
I am using kubernetes imperative way instead of declarative. As there are many parameters changing regularly and can't update the yaml file every time.For creating a deployment, we use thiskubectl create deployment nginx --image=nginx:1.7.1This is fine for public images. But for provate images, we need to pass credenti...
How to pass imagePullSecrets from commandline
You can cat the .crt and the .ca-bundle file together. That's what we wound up doing using a service called OpDemand, which is backed by AWS. cat certfile.crt bundle.ca-bundle >> chain.crt chain.crt should be the file you're looking for. Also, the order is important. The certificate.crt file has to be first.
I'm using Amazon Load Balancer with SSL configuration. everything when fine except on Firefox that show the exception page. It looks not self to user. This article suggest to put the Certificate Chain to the configuration section. My SSL provider is Comodo (InstantSSL). They provide two files .crt and .ca-bundle on...
How to generate the Certificate Chain for AWS load balancer?
This was because docker was using the net_prio and net_cls controllers which overwrite data used for cgroup2 matching. From here While userland may start using net_prio or net_cls at any time, once either is used, cgroup2 matching no longer works. My solution was to disable these controllers with the boot flag: cgro...
I have written the following eBPF program to count packets: #include <linux/version.h> #include <uapi/linux/bpf.h> #include "include/bpf_map.h" #include "include/bpf_helpers.h" struct bpf_map_def SEC("maps/count") count_map = { .type = BPF_MAP_TYPE_ARRAY, .key_size = sizeof(int), .value_size = sizeof(__u...
Why does my BPF_PROG_TYPE_CGROUP_SKB program not work in a container?
What you are looking for areartisan commands.You would start by creating a command:php artisan make:command FetchDataThis creates aFetchDataclass. In this class you can edit thehandlefunction.public function handle() { //fetch your data here }You also need to edit the$signaturevariable.protected $signature = 'fetch...
I'm looking for a sustainable solution to fetch data everyxseconds (let's say 20) and store it in a relational database using PHP. After doing some research I found a few options:1) Cronjobs (with shell scripts)Seehttps://askubuntu.com/questions/800/how-to-run-scripts-every-5-secondsfor more information. This basically...
Fetching near-realtime data from external API
I'd print thejava.library.pathvariable. The only thing I can think of is that the jpam lib is in the wrong place or there is an issue with permissions. (Did you check the SonarQube user can actually read that file?)UPDATECheckjava.library.pathin Settings->System Info pageMove jpam lib to one of those paths
I'm unable to use PAM plugin on SonarQube 5.1 on Debian 8 (64bit).I did setup according tohttps://github.com/SonarCommunity/sonar-pamand still getting following error during login:Java::JavaLang::UnsatisfiedLinkError (no jpam in java.library.path): java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) java.lang....
SonarQube 5.1 PAM - no jpam in java.library.path
if you do want to find package on GitHub and not on CRAN, I suggest you can filter the languages and add key word 'package' after your key words, hope it useful.
How can I find R packages easily on GitHub? Like on CRAN withhttps://www.r-pkg.org/I would like to find R packages for optimization on GitHub.I've tried this:
Find an R package on GitHub easily
Running git remote add... just labels a remote URL. It doesn't "connect" anything. In particular, it doesn't make any association between your local branches and the remote branches. This only happens on a per-branch basis (that is, it makes no sense to say that your repository is connected to another repository; ...
Creating a new GitHub repo is super simple. On the command line: git init git add . git commit -m "Initial commit" Then you go into GitHub and create your repo, which creates a Git URL for it, say, https://github.com/<myuser>/<myRepo>.git, etc. Then you go back to the command line: git remote add origin https://githu...
Why can't I just do git push after creating remote repo?
You may need to add a setting to explicitly pass the Authorization header in the response from the proxied server. For example: location / { proxy_pass http://127.0.0.1:8080/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; prox...
I have set up an nginx reverse proxy server on my web server, which is receiving SSL traffic, and reverse proxying it to port 8080 on my web server, which is an exposed port running the nextcloud docker image. I am able to log in from a desktop web browser, but I am not able to log in from my iPhone. When I log in fro...
Configure NextCloud & Nginx Reverse Port Forward - Login Authentication Error
You need to configure your web server (inside the docker application) to enable HTTPS.Open SSL port (443) on dockerYou can consider using NGINX as a reverse proxy to your webserver and configure SSL in nginxOn a side, you can look at letsencrypt to get a free SSL certificate for your domain if this is a public site.
Currently, I run a simple docker container by using the following files.DockerFileFROM microsoft/aspnet:4.7.1 WORKDIR /inetpub/wwwroot EXPOSE 80 COPY index.html .docker-compose.ymlversion: '3.4' services: testapp: image: mytestapp:${TAG:-latest} build: context: . dockerfile: Dockerfiledocker-compose.override.ym...
Run docker service on HTTPS
In your public repo this will remap HEAD from master to BRANCH_NAMEgit symbolic-ref HEAD refs/heads/BRANCH_NAMEShareFollowansweredSep 6, 2019 at 16:46EncryptedWatermelonEncryptedWatermelon5,04811 gold badge1414 silver badges2929 bronze badges1what i'm hoping to do is change the default branch in the settings->Branch op...
This question already has answers here:Set GitHub default branch through API call(4 answers)Closed4 years ago.I'm trying to figure out how to change the default git branch from the command line (I know how to do this via the web page, but don't want to automate it using selenium).The reason I want to do this is because...
How to change the default GIT branch from cmd [duplicate]
You may need to use an organization to gain a finer grain of access controll, see https://help.github.com/categories/setting-up-and-managing-organizations-and-teams/ specially https://help.github.com/articles/permission-levels-for-an-organization-repository/ for details on permissons
I need to make a private repository, let contributors fork his own copy of the main repository (so I have to add them as contributors in GitHub), but I do not want them to be able to work directly in the main repository (origin). Is it possible?
Let contributors fork private repository, but not contribute to master
All the objects in our databases are maintained in code - tables, view, triggers, stored procedures, everything - if we expect to find it in the database then it should be in DDL in code that we can run. Actual schema changes are versioned - so there's a table in the database that says this is schema version "n" and i...
We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we're developing on the most recent data. We, however, want to ensure that any fn, sp, etc that we're currently working on in the development environment doesn't get overwritten by the backup process. W...
SQL Server 2008 Auto Backup
As explained earlier in comments and previous answers, you cannot copy files which are outside of the build context. So you either need to change the context up the directory path or to move the needed files inside the current context.Looking at your layout, I would go for the first solution and by default use your bas...
I created a docker file.FROM node:13.6.0-alpine3.10 WORKDIR /src RUN apk add --no-cache bash COPY ./package.json . COPY ./package-lock.json . RUN npm install COPY . . EXPOSE 8081 CMD npm run start:devStructure of my project.. └── my-app └── docker-compose.yml └── ... └── server └── docker ...
Docker does not search for a file in a directory
Had the same issue. I added IP of EC2 instance to the RDS PostgreSQL security group inbound rule with All Traffic. It worked for me.
I'm aware of similar topics. After applying the solution that has worked for many I'm still stuck with the same error.My RDS db instance with open port 5432:EC2 instance in which the db instance resides. Please note inbound rules applied:The error I'm getting when SSHing into EC2 instance and trying to access database ...
Is the server running on host accepting TCP/IP connections on port 5432?
+50sure, but how does this apply on github?It does apply on GitHub in that the README will be stored, as seen inrrousselGit/river_pod/packages/riverpod/README.mdas a symlink: with the relative path in it:../../README.mdAnd it will have a special type in the index (120000, similar toLinux file mode)ShareFollowansweredMa...
given a structure like/ my_mono_repo .. readme.md .. / packages .. / .. / package_blue .. / .. /.. readme.md .. / .. / package_red .. / .. /.. readme.mdI would like to have a singlereadme.mdin the rootand just a link for the single packagessomething likethis(I cloned it to peak the solution, but with no success)can som...
how to set up a symbolic link for README.md in a monorepo on github
Since you're using Lambda Proxy integration for your method, you'll need to:(1) provide theAccess-Control-Allow-Originheader as part of the Lambda response. For example:callback(null, { statusCode: 200, headers: {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"}, body: JSON.stringify({...
I created REST API using AWS API Gateway & AWS Lambda and when I configured CORS I faced with such issue - I was able to configure CORS response headers for OPTIONS method, but didn't for GET method.I made it accordingAmazon documentation, but when I called GET method I didn't see required headers (Access-Control-Allow...
How to Enable CORS for an AWS API Gateway Resource
I figured out the issue. In theCreate your clustersection I missed a critical step.The step I missed was:Please ensure that you have configured kubectl to use the cluster you just created.The configured part is a link to how to do this:The steps are as follows:gcloud config set project PROJECT gcloud config set compute...
I am following the hellonode tutorial on kubernetes.iohttp://kubernetes.io/docs/hellonode/I am getting an error when trying to do the 'Create your pod' section.When I run this command (replacing PROJECT_ID with the one I created) I get the following:$ kubectl run hello-node --image=gcr.io/PROJECT_ID/hello-node:v1 --por...
kubectl run command is failing with a connection refused error
Most probably the limits are per IP. So, your local machine ip still have "free" pulls. The problem is that (most probably) the IP of your cluster is "shared" between multiple (virtual) machines, so they are all limited per 100 pulls/6h. You can increase your limit by authenticating, seehttps://www.docker.com/increase-...
I'm getting this issue all the time when I try pulling image to my EKS cluster, it says pull rate limit is reached, but when I try pulling it to my local computer it works.Failed to pull image "myrepo/postgres:12-alpine": rpc error: code = Unknown desc = Error response from daemon: toomanyrequests: You have reached you...
Continuous Failing to pull Docker Image
If you have enabledauditingof all requests to Kubernetes API Server on the kubernetes cluster then you could find out who submitted the delete request to delete the namespace and when.Audting is a recommended best practice to find out this kind of information in a production cluster.
A namespace is deleted and all containers in the namespace are lost. I run commandhistory | grep delete, but didn't get any namespace delete history.Could anyone help find the delete reason? Thanks!
How to find k8s namespace delete history
6 The only way to track changes in a git submodule is by recording a revision that is accessible from a remote. But what you are trying to do is make changes to the git module, and record those changes in the parent (i.e. main project git repository). This is not possible, ...
First I have a main project and a submodule inside. What I want to do is: Make changes on the code of submodule Commit to the main project git repository to let the changes can be tracked by the main project Changes with not be committed to git repository of the submodule In fact I have no authority to push comm...
How to commit changes in submodule to my main project repository?
You just need to provide thedockerfileargument:clients.images.build( path="../../../.", dockerfile="path_to_my_dockerfile/Dockerfile", tag="mytag" )Note that thedockerfileshould be relative topath, not your current working directory.If you have dockerfile and context relative to your current working directo...
I am trying to emulate the following CLI command using the docker python-sdk:docker build -t mytag -f path_to_my_dockerfile/Dockerfile ../../../.So in this case I want it to build the Dockerfile using the build context../../../.. I tried using the python-sdk for docker but it seems each time the build context is not th...
Docker: provide custom context in python-sdk
The technique from thisAWS Rekognition JS SDK Invalid image encoding errorthread worked.Convert the base64 image encoding to aArrayBuffer:function getBinary(base64Image) { var binaryImg = atob(base64Image); var length = binaryImg.length; var ab = new ArrayBuffer(length); var ua = new Uint8Array(ab); for (var ...
TheAWS Rekognition Javascript APIstates that forrekognition.compareFaces(params,...)method, theSourceImageandTargetImagecan takeBytesorS3Object. I want to use theByteswhich can be"Bytes — (Buffer, Typed Array, Blob,String)"Blob of image bytes up to 5 MBs.When I pass theBase64encoded string of the images, the JS SDK is ...
AWS Rekognition JavaScript SDK using Bytes
2 LRU Cache policy : Evict the least recently used. How do we achieve this? Well this depends on the actual algorithm but the bottomline is this. Every node/key has an age bit. When you access a key x, either get or put, you reset its age to 0. Why? Because x was the most...
Below are two recursive functions that use memoization. cache_fibonacci uses a cache dictionary while lru_cache_fibonacci uses Python's lru_cache decorator. Why is latter so slow? from functools import lru_cache cache=dict() def cache_fibonacci(n): return helper_fibonacci(n) def helper_fibonacci(n): if n...
Why is the lru_cache slower than cache implemented as a dictionary for the following fibonacci calculator?
Yes, i end up with same error. once i changed the service type to "ClusterIP", it worked fine for me.
FYI:I run Kubernetes on docker desktop for macThe website based on Nginx imageI run 2 simple website deployments on Kubetesetes and use the NodePort service. Then I want to make routing to the website using ingress. When I open the browser and access the website, I get an error 503 like images below. So, how do I fix t...
How to fix "503 Service Temporarily Unavailable"
Most of all, it smells like premature optimization. If we're talking about a small number of matrices, it doesn't matter either way. If we're talkiing about a large number of matrices, you're not likely to make use of unpacking. Having said that, the second option involves creating a larger underlying storage, while t...
import numpy as np Preface: Skip preface if you get bored reading because you know this already. I've recently come across a problem while debugging. I wrote `A = B = C = np.zeros([3,3]) and I thought I've just defined three new matrices. What I did was in fact different. I defined one new matrix (filled with zeros) ...
Python: Memory optimised way of defining matrices in numpy
Try it like this,RewriteCond %{QUERY_STRING} ^option=com_neorecruit&task=offer_view&id=82&Itemid=9$ RewriteRule ^ http://www.example.nl/ [R=301,L]
I have searched and tried various topics regarding redirecting URLs with PHP parameters to URLs without, but can't get it to work.I have the following URL:http://www.example.nl/?option=com_neorecruit&task=offer_view&id=82&Itemid=9Which needs to be redirected to simplyhttp://www.example.nl/The snippets I found so far le...
Redirect URL with PHP parameters
1 Which integers and strings that get automatically interned in Python is implementation specific, and has changed between versions. Here are some principles and limits that seem to hold at least for my current installation (CPython 3.10.7): All integers in the range [-5, 2...
Referring to the following output from the python: >>> x=254 >>> y=254 >>> id(x) 2039624591696 --> same as that of y >>> id(y) 2039624591696 --> same as that of x >>> x=300 >>> y=300 >>> id(x) 2039667477936 ---> different than y when value exceeds a limit of 256 >>> id(y) 2039667477968 ----> >>> str7='g'*4096 >>> ...
Memory optimization / Interning in python
Just separate your individual classes by comma.property "sonar.exclusions","**/*pxxxx.java, **/*Axxxx.java, **/*Bxxxx.java"
I tried to include sonar exclusion but is working on a single class I have 5 classes to exclude all are in different packages of gradle project.Build. gradlesonarqube{ properties{ property"sonar.sourceEncoding","Utf-8" property "sonar.ProjectName","ixxxx" property "sonar.projectKey"...
How to include sonar exclusion for gradle project
Try this rule withQSAflag:RewriteEngine on RewriteBase /bade_dir/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+?)/?$ index.php?req[]=$1 [L,QSA]
I am trying to get via PHP some variables in$_REQUESTfrom a rewritten URL.The rewritten URLs will look like this:http://localhost/base_folder/dir1/dir2/dir3?lang=en&type=1or justhttp://localhost/base_folder/dir1?lang=en&type=1What I would like to have in my$_REQUESTvariable is something like this:Array( [req] = Arr...
Apache mod_rewrite: get rewritten directories as array and maintain the query string
A.cerfile is a certificate file. It contains a certificate either in DER format (binary) or PEM format (the same DER formatted binary, base 64 encoded, with header and footer). Usually there is no difference between.cerand.crt: they represent the same (X.509v3) certificate.Generallyyoucreate the key pair, then a certif...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ...
how can I get the *.crt and *.key from *.cer file? [closed]
You can create anExternalName-type Service for services deployed out of the cluster and forward traffic to the Service in the Ingress. SeeType ExternalName.
I am using Traefik as ingress controller for my Kubernetes cluster. It is working fine, and as expected for all of the use-cases except one.I have few services/applications, all serving on the same URL/Host, but on a different path.Till now all the applications were deployed on EC2-VMs, behind an ALB, and routing rules...
Routing traffic to outside Kubernetes using Traefik Ingress Controller
Note: You must be using Google Maps for Work (paid) in order to host maps on a website that is behind a firewall. Otherwise you are in breach of the terms of service.As for configuring your firewall, Google will provide you with all of the settings that are needed. You don't need to make constant changes to keep it wor...
We are calling Google api viahttps://www.googleapis.comfor social login on our website. Everything works fine upto staging , however on Live server due to firewall restriction api calls are throwing socket exception.What is the best way to configure our live server to allow connectivity to Google.Is there a list of ip ...
Google API : live server firewall ip address ranges
If the code that changes is the content of the functions, then it might be possible to useautoreload:import importlib importlib.reload(process_asset_defaults) # if this is the function that needs updatingSeeblogordocsfor some further details.
I have the Dask code below that submits N workers, where each worker is implemented in a Docker container:default_sums = client.map(process_asset_defaults, build_worker_args(req, numWorkers)) future_total_sum = client.submit(sum, default_sums) total_defaults_sum = future_total_sum.result()whereprocess_asset_defaultsis ...
Reload Dask worker containers automatically on code change
You Can create Local task schedule script on own computer. OnCpanelserver hascron jobsoption. Here you can set command for particular urls and alsoemailnotify.for eg.: /usr/bin/php /home/user/public_html/cron.php(filename)More details link description hereShareFollowansweredAug 18, 2019 at 12:14user9968800user9968800Ad...
I want to schedule a python script to run everyday for 1 week(7 days non stop) and then run once every week( 1 time in 1 week).I have this in my crontab -e48 10 * * ? * /path-to-python-fileThis runs the script at 10:48 am everyday.I want it to run it as per the the schedule explained before. How can I do that with cro...
How to Schedule Cron to Run Python script on varying intervals
Try adding an X-Forwarded-Proto header: proxy_set_header X-Forwarded-Proto $scheme; This is how express-session determines if the connection to nginx was secure.
I use express-session module with redis connection and nginx proxy. If I use it with secure: false the sid cookie is set. But if I set it to secure it does not. I am set a other cookie directly with express and secure: true and it works. Express-Session config in Express: //proxy configuration app.set('trust proxy', ...
use nodejs module express-session with secure does not work
If protocol is rsync you can use:rsync -a --password-file=/path/to/secret rsync://[email protected]/root /backupIf rsync over ssh used, you should setup public key ssh auth. On local host runssh-keygen -t rsa -b 1024then add content of ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys on remote host.
In a shell script how to usersync --password-fileoptionrsync -a[email protected]:/root /backup
shell script rsync password file option
One thing you can do with$rootScope.$watchis give it a function with no "listener" (so call it with just one function that doesn't return anything). This effectively allows you to be notified via your supplied function when a digest happens.$rootScope.$watch(function() { // a digest is happening. });Per cycle this ...
I find myself requiring quite often to cache data per digest cycle, for example, a map/reduce function, or deeply nested accessor. For this it would be useful to set a digest callback, to clear the cached values before/after the digest loop. Is there a "angular way" to achieve this?
AngularJS digest callback
6 Soooo..... Ages ago... I made an AWS account, it will not let me log in to normal amazon.com with that account telling me every time my password is incorrect which it is not.... attempting to create a new account with same email asks me if i want to disable my old accou...
I am a longtime Amazon.com customer, and now I am interested in using Amazon Web Services (AWS). So I have a question on creating an AWS account. Do I have an option to create an AWS account that's completely separate from my Amazon.com account (with different email addresses)? What would happen if I use the same ema...
AWS account vs Amazon consumer account
1 This his how you'd do it with Visual Studio 2017. The Team Explorer tab is where you'll manage much of this. 1) In the Solution Explorer tab right-click and Add Solution to Source Control... 2) Now it will show up in the list of Local Git Repositories on the Team Explorer...
I was planning to use TFS for my personal software projects I work on, with Visual Studio Team Services, however Microsoft some time ago changed Team Services to use DevOps instead of TFS, I wanted something where I could publish Visual Studio solutions to source control that is publicly viewable on the Internet, for ...
Cannot figure out how to add an existing ASP.NET Solution to Github
You cannot do that with cron expressions.Your best bet is to use theWithCalendarIntervalSchedule()method to specify the intervals in weeks you want the trigger to happen:ITrigger trigger = TriggerBuilder.Create() .WithIdentity("trigger1", "group1") .StartNow() .WithCalendarIntervalSc...
I am trying to create weekly cron expression which will execute every week on selected days like Mon,Tue. Along with this I have to implement repeat every functionality with it. So that trigger would be fired after repeat every interval.eg. I have to execute job every Monday and alternate week in case when interval val...
Generate cron expression for weekly and repeat every n weeks
docker-compose allows to use environment variables from the environment running the compose command.See documentation athttps://docs.docker.com/compose/compose-file/#variable-substitutionAssuming you can create a wrapper script, like @balver suggested, you can set an environment variable calledEXTERNAL_IPthat will incl...
I want to create adocker-composefile that is able to run on different servers.For that I have to be able to specify the host-ip or hostname of the server (where all the containers are running) in several places in thedocker-compose.yml.E.g. for a consul container where I want to define how the server can be found by fe...
Using the host ip in docker-compose
You could try import logging logging.getLogger('boto').setLevel(logging.CRITICAL) which will suppress all (other than CRITICAL) errors. Boto uses logging configuration files (e.g. /etc/boto.cfg, ~/.boto) so see if you can configure it to your needs that way. The set_file_logger call simply adds a user-defined file to...
I am using the Boto library to talk to AWS. I want to disable logging. (Or redirect to /dev/null or other file). I can't find an obvious way to do this. I tried this, but that doesn't seem to help: import boto boto.set_file_logger('boto', 'logs/boto.log') This says it is possible, http://developer.amazonwebservices.c...
Disable boto logging without modifying the boto files
When you use commands likephp artisan optimizephp artisan route:cacheyour route files(under routes/) are being parsed and cached. Now, next requests will be routed from cached routes, not from routes/*.php.If you have used above commands, after making changes to route php files, you should re-cache them, or usephp arti...
When I develop a Laravel application I used to clear cache after making any changes toroutes\web.phporroutes\api.php. Recently I was working on a project for a fellow and found out that the project does not need clearing cache every time I make a change in any of the files I have mentioned.So I want to know what is the...
Laravel routing cache
Maximum occupancy depends on your block size, number of registers needed by the kernel function per thread, and the amount of shared memory needed per block. Your could compute it yourself based on the device-specific limits, which you can query. If you're using a reasonably recent version of CUDA, thedriver APIas well...
How can I find that how many thread blocks will be potentially active at the same time on my 40kB Shared memory of gtx780? how can I check the maximum occupancy per SM?
Thread blocks active per SM
Clicking the AJAX button, the following request is sent to nginx. POST /index.php HTTP/1.1 Host: localhost:8080 Connection: keep-alive Content-Length: 222 Pragma: no-cache Cache-Control: no-cache Accept: */* Origin: http://localhost:8080 X-Requested-With: XMLHttpRequest User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS...
I am using the latest version of OpenResty to perform some manipulations on POST request data using Nginx Lua. My test Lua script, being called via a rewrite_by_lua_file call is simple ngx.req.read_body(); local args = ngx.req.get_post_args(); ngx.say(args["a"]); To test it I have a simple HTML document <html> <head...
POST request Form data manipulation with Nginx Lua
Is this possible?Yes, it's possible.Note thatallDRAM activity flows through the L2 cache, which cannot be disabled (atomics are a special case, but presumably not in view here.) This includescudaMemcpytraffic as well.Therefore, if I transfer from host to device a "small" data set that fits entirely in L2 cache, and th...
I am experimenting a simple matrix multiplication CUDA program. I found if the matrix size is small (512*512 or smaller), the L2 cache hit rate is always 100%. The profiled DRAM read transactions is not stable, sometimes the value is even 0. Is this possible? Because there should always be some cold misses in L2 cache ...
GPU L2 cache hit is 100% and DRAM load transactions sometimes is 0
The GUI will no doubt complain about this, but you can just add the SSL bindings in the applicationHost.config manually*:443:hostname.comand usenetshto add the ssl certificate to the IP:Port directly.See this article for both theappcmdandnetshcommands:How to assign a SSL Certificate to IIS7 Site from Command PromptWher...
We have a server running Windows 2008 IIS 7.We have a client that wants to launch 10 microsites, all of which have different domain names and all require SSL.I have spoken with Thawte and they have suggested a Web Server SSL certification which allows for a single certificate to cover up to 20 domain names using a sing...
IIS and Web Server SSL Cert
You mention running through multiple simulations via aforloop; I assume this is not within anyjit-compiled function, but rather at the top level.If that is the case, then you may be running into the effects of JAX'sAsynchronous dispatch. Briefly, suppose your code looks something like thisinputs: list[jax.Array] = get_...
I am currently trying to prepare hundreds of simulations of different molecules of various sizes by jitting the functions used to run the simulations on a single GPU withJAX. I essentially do this iteratively in aforloop. In doing so, the memory exhibits jumps at seemingly random pointswhere each update represents each...
Memory jumps on GPU when jitting functions in JAX
3 By default, most distributions configure php-fpm to listen to TCP socket on port 9000. Make sure your fpm is actually configured to listen to a file socket listen = /var/run/php5-fpm.sock Or configure nginx to fcgi_pass 127.0.0.1:9000 Here's a full guide https://support...
I just installed nginx along with php-fpm when I encountered a 403 error when trying to view one of my sites. When I checked the nginx error logs, I saw a few things like permission denied, but I also noticed this: /var/run/php5-fpm.sock failed (2: no such file or directory) But I installed php-fpm, why would it be l...
Error with php5-fpm
Open file /system/library/url.phpFind the following codeif (!$js) { return str_replace('&', '&amp;', $url); } else { return $url; }Replace with the following code:if (!$js) { return str_replace('en-gb/', '', str_replace('&', '&amp;', $url)); } else { return str_replace('en-gb/', '',$url); }
I've installed 4.0.1.1 version from OC website. I'm setting the shop to be available in only one country - UK and only one language English.I wanted to removeen-gbfrom the URL.For example:example.com/en-gb/catalog/booksshould beexample.com/catalog/booksI've done some searching and as suggested I've removed all zones an...
Opencart - How to remove "en-gb" from url
3 For the benefit of others running into this thread I am reproducing the configuration that eventually worked for me location ^~ /piwik/ { proxy_pass https://nn.nn.nn.nn/piwik/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy...
I have the following setup https://example.net (my website running on Nginx) nn.nn.nn.nn (my Piwik server which is only accessible via its IP address) On my web pages I have the usual Piwik snippet var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://e...
Configuring Piwik accessed via an Nginx reverse proxy
15 For now, I found this command line solution, runinng aws glue batch-delete-partition iteratively for batches of 25 partitions using xargs (here I am assuming there are max 1000 partitions): aws glue get-partitions --database-name=<my-database> --table-name=<my-table> |...
I defined several tables in AWS glue. Over the past few weeks, I've had different issues with the table definition which I had to fix manually - I want to change column names, or types, or change the serialization lib. However, If i already have partitions created, the repairing of table doesn't change them, and so I ...
AWS glue delete all partitions
3 You can certainly use git without github. Placing the origin repo on a shared drive is one option, but it has some disadvantages. (To avoid confusion, by the way, its a good idea to refer to the source repository as origin; in git terminology, master is the default branc...
I am trying to set up a version control system at work to manage python code among multiple collaborators (ideally, the VCS would be integrated into IntelliJ PyCharm). I am familiar with GitHub, which I have played around with. But I am leery of putting the intellectual property (code) of the company on GitHub servers...
Using a Version Control System on a Shared Network Drive at Work
Use that link in your browser:https://console.cloud.google.com/storage/browser/kubernetes-release
I'm currently using this line in a user_data.sh filehttps://storage.googleapis.com/kubernetes-release/release/v1.21.5/bin/linux/amd64/kubectlI've tried to puthttps://storage.googleapis.com/kubernetes-release/in a browser to see which other versions are available but it doesn't work. If I look for a release number in gi...
How to see different Kubernetes versions to download from https://storage.googleapis.com?
+300It doesn't seem possible ATM to bind an App Engine application on aGoogle Apps Secondary Domain(sounds like a bug).But it works fine onGoogle Apps Domain Alias.Go tohttps://www.google.com/a/cpanel/yourprimarydomain.com/DomainSettingsDomainsClickAdd a domain alias or a domainSelectAdd a domain alias of yourprimarydo...
Here is the situation:I own a Google Apps for Business account.I have two domain names registered :mycompany.com which is the principal domainmyapp.com which is another domainNote: both domains are validated and active.I'm working on a Google App Engine web application and I want it to be accessible viamyapp.comorwww.m...
Google App Engine and domain name
1 nginx load balancing allows you to determine the algorithm ... if you just need each server to be equally loaded use this upstream myproject { server 127.0.0.1:8081; server 127.0.0.1:8082; server 127.0.0.1:8083; server 127.0.0.1:8084...
I'm working on setting up a load balancer for my website. I want to do it manually so that I have full control over how the requests are rerouted. Im using AWS EBS to load balance between 2 ec2 instances, and that works fine. Each ec2 instance uses nginx as a reverse proxy for nodejs. Currently, I only have 1 node app...
make nginx redirect to random port
You cannot mix various differential periods in a Quality Gate since SonarQube 5.4. As perupgrade notes:In SonarQube 5.4, quality gate conditions can now only check absolute values or differential values for the Leak periodSo while you may still customise theLeak Periodat a project level (seethis question), all Quality ...
I've got an issue with my Quality Gate defines. For a single gate I have multiple rules for checking against other results. There are for example some rules comparing new issues of several certainities to the last analysis and some rules against the last project version.In Differential View setup I can define multiple ...
Sonarqube 5.4 Leak Configuration issue
Yes, absolutely. You only have to define that there is reliable auditing only for non-superusers.There is no way in PostgreSQL to reliably protect information from the superuser. The superuser has full access to all information that PostgreSQL can read or write.To protect your auditing system from tampering by a superu...
I just added an audit table to a project. The db (postgresql) superuser still has all its privileges on that table. This means the data in the audit table could be edited, ergo corrupted, at any point by the superuser.The question is, is this a theoretically/legally acceptable audit log?
Do I have to revoke privileges from the superuser on an audit log table?
On last version Grafana : go to Transform (near query in snapshoot) / and regex rename funtion
I am using Grafana to display logs from Elastic Stack. I have a requirement which involves renaming a column's values.I need to rename the values of thelog.source.addresscolumn such that to only keep the ip address. For example,172.29.42.31:45031would become172.29.42.31. I tried the "Rename by Regex" transformation wit...
Grafana rename query result
280 With the latest aws-cli python command line tools, to recursively delete all the files under a folder in a bucket is just: aws s3 rm --recursive s3://your_bucket_name/foo/ Or delete everything under the bucket: aws s3 rm --recursive s3://your_bucket_name If what you...
I have the following folder structure in S3. Is there a way to recursively remove all files under a certain folder (say foo/bar1 or foo or foo/bar2/1 ..) foo/bar1/1/.. foo/bar1/2/.. foo/bar1/3/.. foo/bar2/1/.. foo/bar2/2/.. foo/bar2/3/..
How to delete files recursively from an S3 bucket
Following are the steps to add header search path for external 3rd party libraries :Select build settings of project Select Header Search Paths property from settings Add header directory, dont forget last /and surrounding quotes
This question already has an answer here:header search path in XCode 4(1 answer)Closed10 years ago.I'm developing an app, and there is a function that allow user to share my app on Facebook. Therefore I used this library:Simple-Share for iOS. I follow their instruction and I can run their example.But the problem is I w...
How to use Library on Github in IOS? [duplicate]
Your GPU memory is not getting freed. This happens when the previous process is stopped but not terminated. See my answer here.
I am trying to run a neural network with pycaffe on gpu. This works when I call the script for the first time. When I run the same script for the second time, CUDA throws the error in the title. Batch size is 1, image size at this moment is 243x322, the gpu has 8gb RAM. I guess I am missing a command that resets the m...
Check failed: error == cudaSuccess (2 vs. 0) out of memory
My ultimate goal is just to be able to have the folder in file explorer that I can edit directly not through terminal and then when im done just do "git push origin main"That should be possible through a text editor like VSCode which lets you add, commit and push from its Git view.Note that any GitHub repository can be...
I have a github repository created. I've done this before but somehow I have forgotten and have no clue of doing this, nothing seems to work.The example name of the repo: Ex1I do the following(the reccomended) in Admin/Desktop:echo "# Ex1" >> README.md git init git add README.md git commit -m "first commit" git branch ...
How to find git repository in file explorer from github
×1300 pixels make 10 MiB (each pixel takes 4 bytes). That is quite a lot, especially low-level phones can have constraints as little as 16 MiB per application. You need tomake it more efficient.
Ok first of all it's the first time I'm asking a question on stack so if I did something not "legal" don't hesitate to tell me...Ok so now my real problem...I'm trying to load to the memory some png files. Everything went really well my game works and all. But then I decided to change the resolution of my game because ...
java.lang.OutOfMemoryError but with 70Kb of png image
The hard and fast way to clean this up is to delete the TFS bindings in the solution file. Open the solution file in a text editor (notepad, notepad++, or the like) and look for the GlobalSection entitiled GlobalSection(TeamFoundationVersionControl). Delete this entire section - i.e. everything from GlobalSection(Team...
I moved my project from tfs to github using git-tfs and now when I open the project it gives a message stating it is under TFS Server Version Control. The message Says Team Foundation Server Version Control The solution you are opening is bound to source control on the following Team Foundation Server: http://tfs:80...
Moving ASP.NET project from TFS to GITHUB. Opening project says it is bound to source control on tfs server:
Could you please try following Rules, written based on your shown samples. We need to useRewriteCondhere to check from which domain(host) name request is coming from and then accordingly redirecting request from bal.... to thelasdancer domain.RewriteEngine ON RewriteCond %{HTTP_HOST} balletforadults\.com [NC] RewriteR...
I am trying to permanently redirect an entire site, where approx. 130 links remain the same except for the new domain, and then approx. 20 links have to be redirected by file name. I cannot get code to do both.I have this beginning on the first line of my htaccess page:RewriteEngine on RewriteRule ^resources$ http://ww...
Can I use .htaccess rules using wildcard for site, followed by rewrites for specific pages?
As far as I know, the notifications are sent to all the people who are watching your repo. Also if you are in your organization repo, it will be notified to all the users of your organization.
I am working with a project on a private GitHub repository. I'm looking to bundle up source code (based on a given tag) plus some binary objects as a release.My question is what does it truly mean to "publish" a release? Thedocsonly tell me that publishing a release will "publicize" it:If you're ready to publicize your...
What is the visibility when you "publish" a release of a private repository on GitHub?
I've considered the same thing, and I think it's theoretically possible. The main issue is that there's no call available in IAM that determines if a particular call is allowed (SimulateCustomPolicy may work, but that doesn't seem to be its purpose so I'm not sure it would have the throughput to handle high volumes).As...
Can AWS IAM be used to control access for custom applications? I heavily rely on IAM for controlling access to AWS resources. I have a custom Python app that I would like to extend to work with IAM, but I can't find any references to this being done by anyone.
Creating custom AWS IAM actions
2 If "User" is Reference Type When you create object referenceCount incremented on 1 when you set user in Dictionary by "userId" referenceCount incremented on 1 and referenceCount == 2 after user = nil, you remove 1 reference referenceCount == 1 and stay 1 strong refer...
This question already has an answer here: How to call deinit in Swift [duplicate] (1 answer) Closed 6 years ago. Sorry, I have a question about memory management. I create a "user"...
How to deinit class object in swift? [duplicate]
UNIX Cron expressions and Quartz ones are differents. Simply,In Unix(minute, hour, day, month, day_of_week, year)In Quartz(second, minute, hour, day, month, day_of_week, year)You can usethisto know if a Cron expression is correct.EDIT : Look atCronExpression.ValidateExpressionmethod.ShareFolloweditedOct 10, 2014 at 7:0...
I would like to have user-defined cron expressions in my program. Are there are validators for cron expressions so that the user cannot insert an invalid cron code?N.B.I think the cron expression on Quartz.Net has a slight different format than the one used in UNIX. I would like to the Quartz version of it.
Cron expression validator
Most likely it is environment variable issue. First thing to check is whether cron user has php in its path?Cron jobs don't have access to all the env variables set in user's profile. Better to redirect stdout and stderr to a file in your cron command like this:*/15 * * * * php /var/www/download.php > $HOME/cron.out 2>...
I have verified that my php script runs from the command line, but it has not been executed from the crontab (yet, I guess). Does it take a while for it to start working?this is the crontab line:00,15,30,45 * * * * php /var/www/download.phpI want it to execute everyday, every fifteen minutes starting at the top of the ...
crontab, php: php script runs from command line, but not from crontab
Extracting individual query parameters is possible by using a regular expression on the $args or $request_uri variable. For example: location = / { if ($args ~ "^(.*&)?t=([^&]+)(?:&(.*))?$") { return 302 /$2?$1$3; } } In the above example, the regular expression consists of: ^ beginning of s...
Is it possible in nginx to rewrite a url like mysite.com?t=TVALUE&foo=bar&bar=bazz to mysite.com/TVALUE?foo=bar&bar=bazz ? All my attempts resulted in infinity redirects or no redirects at all..
rewrite specific query parameter
In order to get it worked I ended up going to Tools -> Options -> SSH Client and changing it to OpenSSH. I generated and uploaded several different types of keys trying to get it work as well but I think this is what finally did it.
I was able to create a key and connect to github following these instructions via the command prompt successfully: https://help.github.com/articles/generating-ssh-keys However, when I try to connect via Sourcetree and putty I cannot. I've tried: generating a new key with the putty key generator (SSH-2 RSA) entering ...
unable to get SSH keys working between sourcetree and github
In meantime i was able to solve the problem, but looks like a strange solution. If you end up having thecontainer running just fine in Debug but not in release, i advice you to:Don't use .Net Standard projects with .net core dependencies (in our case we end up using a GlobalExceptionFilter in a .NET Standard project)....
We have been starting to convert our Microservices to containers and we have been successful with the help of visual studio 2017. The process as straight as it can be, using the dockerfile generated from the add docker support feature(I answer a question about thishere). Then we can obviously debug and run itfrom visu...
Save and Run Container created from visual Studio Docker Support
Do not know, how much relevance this will bring to the OP.But we can get lambda function configuration at runtime.lambda_client = boto3.client('lambda') role_response = (lambda_client.get_function_configuration( FunctionName = os.environ['AWS_LAMBDA_FUNCTION_NAME']) ) print(role_response) role_arn = role_response['...
I'm having issues with a lambda that does not seem have the permissions to perform an action and want to get some troubleshooting information.I can do this to get the current user:print("Current user: " + boto3.resource('iam').CurrentUser().arn)Is there a way to get the execution role at runtime? Better yet, is there a...
How to get the current execution role in a lambda?
yarn add react-native-fast-imageRef:https://github.com/DylanVann/react-native-fast-imageimport FastImage from 'react-native-fast-image' <FastImage style={{ width: 200, height: 200 }} source={{ uri: 'https://unsplash.it/400/400?image=1' }} resizeMode={FastImage.resizeMode.stretch} />ShareFolloweditedNov 1...
Is there a good library or maybe some default react native components that cache the image from a url? I've triedreact-native-cache-imagebut there are a lot of issues withreact-native-fsand react-native-sqlite-storage and as I am new to react native I dont know how to fix them properly.
Cache image on react native
I found out that Hyper Backup can save snapshots in time, so I'm using it instead of Snapshot Replication
I have data on several machines that I want to backup in away that I can restore to certain points in time. From what I read Snapshot Replication achieves this (as opossed to back-up that clobbers previous results). The main motivation is that if the data files are ransacked, and encoded, then if I just back-up I can ...
How to implement Snapshot Replication
The proper links for those two notions have been fixed inPR 14307:Under the hood, Docker is built on the following components:Thecgroupsandnamespacescapabilities of the Linux kernelWith:cgroup: Control Groups provide a mechanism for aggregating/partitioning sets of tasks, and all their future children, into hierarchica...
I recently started learning docker and it seems that most of the heavy lifting is done by the Linux kernel, using namespaces and cgroups.A few things which I am finding confusing are:What is the difference between a namespace and a cgroup? What are the different use cases they address?What has docker implemented on top...
difference between cgroups and namespaces
I think you need to use Resource Quotas Policy in Kubernetes.Refer to this link -Resource QuotesShareFollowansweredMay 16, 2019 at 5:11AravindAravind54411 gold badge66 silver badges1818 bronze badges1Resource quotas restrict access to an entire namespace. So, I would need to create a namespace for each role and then ap...
I am currently setting up a cluster for a team. I've setup a hierarchial role based authentication. I've used the Kuberentes role API to define the roles. However, you can only restrict the CRUD operations for the roles.How can I limit resources like cpu or memory based on roles?EDIT: Seems like there is no way to do t...
How to limit resources for specific roles Kubernetes?
Signing Android apps requires a certificate that needs to be valid for at least 25 (IIRC) years or more. Practically no CA out there will issue one, because their own validity is typically less than that. So you pretty much need to use a self-signed one for Android. Also make sure that you back up your keystore, becaus...
I'm working on releasing my first app and I have been using a self signed certificate. With a mass release was thinking I should have one from say verisign, etc. I see certificates for websites but im not sure that will work for apps. It would be great to be able to sign my iOS, adobe air and android apps with the same...
Where to get SSL certificate for Android/Air/iOS apps and type
I'm assuming that you're testing on the device, not the simulator - the simulator produces incorrect results. The total memory used by your app is fairly meaningless as a measure of memory leaks - the iPhone will try to cache as much data as it can while there is free memory - it will load libraries and leave them in ...
I've some memory issues with a view controller that contains a text field. Brief summary: Clicking on a button my application modally presents a UIViewController (that I will call "VC1"). From VC1 the user can optionally open (using pushViewController) a UITableViewController ("VC2") and turn back. From VC1 the user ...
Memory issues in releasing a UIViewController with UITextField
You should be able to do this using the combination of mod_env and theSatisfy anydirective. You can useSetEnvIfto check against theRequest_URI, even if it's not a physical path. You can then check if the variable is set in anAllowstatement. So either you need to log in with password, or theAllowlets you in without pass...
The site is on shared hosting. I need to password protect a single URL.http://www.example.com/pretty/urlObviously that's not a physical file path I'm trying to protect, it's just that particular URL.Any quick solution with .htaccess?
Password protect a specific URL
You can't. This is an OS level function not PHP level. Best bet is to email your host and ask them if it's possible to setup a cron for you.
I want to create a cron job which has to execute a file every 30 minutes or regular interval. I don't have a cpanel or any front-end to do that.How do I do it?
Creating a cron job in php
What is your handle prefix? It can be found in your dspace.cfg file.https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace/config/dspace.cfg#L249You should use that value for the command.You should also be able to find it in your database using the following queryselect * from handle where handle like '%/0';
I'm attempting to migrate a full DSpace installation (4.x) to a new 6.1. I'm performing[dspace]/bin/dspace packager -d -a -t AIP -e[email protected]-i OURHANDLE/0 sitewide-aip.zipto export the entire site, without any special issues. The output are many .zip files including thesitewide-aip.zip.The problem is when tryin...
Exception thrown when restoring full site AIP backup in DSpace
My understanding (and observations while using SQS) is different that yours. Just because you have set a MaxMessages to 10, doesn't mean you will always get 10, you will get upto 10, but could be less.The WaitTimeInSeconds is how long it will wait before it will return with no messages, but since it is finding messages...
This question already has answers here:Amazon SQS Long Polling not returning all messages(4 answers)Closed7 years ago.I am using the AWS SDK in PHP to communicate with an SQS queue. At the moment the queue just has simple test messages contained within it. I am attempting to read the next 10 messages from the queue. ...
AWS SQS not honouring WaitTimeSeconds [duplicate]
Hm, it should work as you described. Maybe the default route is not configured correctly. This is what I did:SERV=$(docker run -i --privileged -d -t debian:7.4 /bin/bash) CLI=$(docker run --privileged -i -d -t debian:7.4 /bin/bash) docker exec -ti $CLI ping google.de # Internet up docker exec -ti $CLI ip link set et...
I am setting up two docker containerscontainer1 container2 | | | eth0 eth1 | | | eth1 docker0 docker1<---------------- | | internetdocker0 and docker1 are the bridges.I have ip forwardi...
Setting up docker containers with nat
Update: First cURL command in my above is working nowGROUP_ID=xxxxxxxxxx SNYK_TOKEN=xxxxxxxxxx curl \ -X 'GET' \ -H "Authorization: Token $SNYK_TOKEN" \ -H "Accept: application/vnd.api+json" \ -H "Content-Type: application/json" \ "https://api.snyk.io/rest/groups/${GROUP_ID}/audit_logs/search?version=2023-05-02%7Ebeta...
Task: Perform audit of all user-initiated activity within a Snyk org/groupSteps that I followed: I referred this document:https://docs.snyk.io/snyk-admin/manage-users-in-organizations-and-groups/retrieve-audit-logs-of-user-initiated-activity-by-api-for-an-org-or-groupand tried below cURL commands but encountered errors...
Audit of all user-initiated activity within a Snyk org/group
Turns out robertklep in the comments to my question was correct: the issue was trying to explicitly pass the IP of the server into app.js. That's the way the app was configured to work just by itself with Node, but that can't be done with Docker. The only code change needed was removing config_json.app_host from app.l...
With the following app, I am able to start it manually via npm install / node app.js. The issue is with trying to run the app via a Docker container. Apart from what the rest of the app is (which doesn't matter because running the Docker container doesn't even get that far), the Dockerfile pulls the code from GitHub, ...
EADDRNOTAVAIL when Dockerizing Node.js app
When you run something using cron you'll encounter issues with the environment variables being different or simply not set as compared to your own variables when you manually execute. Often things like the PATH aren't set properly when cron executes something, so it's important to supply full paths to executables withi...
I've inherited someone else's monster of a BASH script. The script was written in such a way that it uses a ridiculous amount of memory (around 1GB). I can run it from a shell with out issue, but if I run it from cron I crashes with a sig fault.Apart from digging into the poorly commented behemoth, is there a way to ...
Task run manually works, running from cron I get a sigfault
If you don't know the hash for the latest rev, you might be out of luck for recovering it. Perhaps the best you can do is simply push the master branch that you have back up to github. Since the revisions are already in the repository, it will be a quick network operation.If you have ssh access to the machine hosting...
Our remote master branch was deleted. I have a local copy of the master repo but it is a few revs out of date. I'm able to see the branch in github by plugging the last known commit hash into the URL, but have been unsuccessful at restoring it. I've tried several steps to recover it:git reset --hard 16deddc05cb53dfaa2d...
How to recover a deleted remote branch
Delete the package from GOPATH and go get it again. Your package is modified and git is refusing to pull from upstream.
go version go1.5.1 windows/amd64 git version 1.9.5.msysgit.1I have been trying to get some Go libraries. They are downloaded fine, when accessed on golang.org but github.com or google.golang.org packages give an error.There is no tracking information for the current branch. Please specify which branch you want to merge...
"go get" git error on all sources but golang.org
In the first example, you try to pass a list of 1,000,000,000 integers to the generator expression. You computer runs out of memory trying to create that list. In Python 3, I suspect this would work, since range itself produces a generator instead of an explicit list. In the second example, I suspect range requires a ...
It seems that both exceptions are raised in similar situation. What is the difference and what happens behind the scenes in each of these two code lines? >>> (i for i in range(1000000000)) # 10^9 Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError >>> (i for i in range(10000000000)) # ...
In python, what is the difference between MemoryError and OverflowError?
The main risk would be isolation. If your OpenVZ is properly configured and warranty the isolation, you are good to go. Docker does not do any modification to the file system. At runtime, it mounts itself as .dockerinit. We use this in order to setup the user/group and network once the container is started. In future ...
I have recently discovered Docker, and I think it's a great tool for managing my runtime environments. However, I also have some OpenVZ VPS'es that don't support LXC, so I'm thinking about using docker export to export the filesystem of an image, extract the resulting tarball to a directory in the VPS, and then chroot...
Is it safe to extract the root filesystem of a Docker.io image and use it in a chroot?
I'm going to make a big assumption here and assume you're not hanging onto your index searchers in-between calls to query the index.If that's true, then you should definitely share index searchers for all queries to your index. As the index becomes larger (and it doesn't really have to get very large for this to becom...
I've usedLucene.netto implement search functionality (for both database content and uploaded documents) on several small websites with no problem. Now I've got a site where I'm indexing 5000+ documents (mainly PDFs) and the querying is becoming a bit slow.I'm assuming the best way to speed it up would be to implement c...
Caching Lucene.net search results
5 While cezar's recommendation of django-extensions is valid to run a server with https, neither runserver or runserver_plus should ever be used in a production setting. Quoting Django's documentation: DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through...
./manage.py runserver 0.0.0.0:8000 I am using the line above as part of the code I borrowed from github (https://github.com/ribeiroit/boh-puppet) to run bag of holding installation. So far so good on http but not https. How do I modify the line above to incorporate https? I have already obtained ssl certificate from C...
./manage.py runserver with https
You could use Microsoft's Accelerator library. It gives you access to the GPU through .NET. After looking into the work required more, this is a pretty non-trivial thing to do (unless you like re-writing AES algorithms). It is possible however. There may be other C# API's out there, but one I came across was Bouncy C...
Interesting paper from Trinity College of Dublin: AES Encryption Implementation and Analysis on Commodity Graphics Processing Units Their technique uses openGL to enlist the GPU to do the numeric transforms required by AES. How difficult would it be to expose this capability - performing stream encryption - via a man...
Can I exploit GPU to do AES encryption from .NET? If so, how?
1 git stash pop does not just reset your working tree to the stashed index. It reapplies the stashed changes to your working tree. So, before popping the stash, you have to do a hard reset to the commit that the stashed changes were based on. This is, of course, possible. B...
I am mid-branch work but I am thinking to temporarily save my changes I can use git stash save --keep-index. This will stash the changes and leave my local copy unchanged, so just incase something happens to my local copy I can git stash pop and restore the changes to any branch. I am asking because I didn't want to...
Using git stash save --keep-index
If your URL (git remote -v) is indeed [email protected]:/ you should not need to use SSH over the HTTPS port a git ls-remote [email protected]:<you>/<yourRepo> should work. If not, check the case of the URL (it is case sensitive). And try an HTTPS URL just for testing: git ls-remote https://github.com/<you>/<yourRep...
My server was working fine until yesterday it was pulling fine. today I run the command >> git pull origin <branch> I get a response: remote: Repository not found. I run command >> ssh -T [email protected] I get response: Hi! You've successfully authenticated, but GitHub does not provide shell access. >> I added ss...
Trying to pull from github i get error remote: Repository not found
12 In you Dockerfile, you are running npm install after copying your package*json files. A node_modules directory gets correctly created in /usr/src/app and you're good to go. When you mount your local directory on /usr/src/app, though, the contents of that directory inside...
I'm trying to use nodemon inside docker container: Dockerfile FROM node:carbon RUN npm install -g nodemon WORKDIR /usr/src/app COPY package*.json ./ RUN npm install COPY . . EXPOSE 8080 CMD [ "nodemon" ] Build/Run command docker build -t tag/apt . docker run -p 49160:8080 -v /local/path/to/apt:/usr/src/app -d tag/apt...
Nodemon inside docker container
It is generally a bad security practice to have multiple independent apps on a single domain.However, I believe what you're facing here is the peculiarity of the way thattry_filesworks -- according tohttp://nginx.org/r/try_files,If none of the files were found, an internal redirect to the uri specified in the last para...
I'm serving multipleangularapps from the sameserverblock inNginx. So in order to let the user browse directly to certain customAngularroutes I've declared without having to go through the home page (and avoid the 404 page), I'm forwarding these routes from nginx to each angular app'sindex.html, I've added atry_filesto ...
Serve multiple Angular apps from the same server with Nginx