Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Heroku doesn't support Git LFS: git lfs is not supported, and using it might cause pushes to fail. Do these files have to be in your repository? Storing them on Amazon S3 or similar should make Heroku happy. Maybe that needs to be part of your deployment strategy.
I have a simple static app deployed to Heroku with a repo in GitHub. The static app essentially is an HTML page with some JavaScript that uses Three.js to render some very large .obj files to the HTML page. Given these are very large .obj files, I'm using GitHub LFS to store the files in the repo. I've validated that...
Accessing static .obj files stored in GitHub LFS
According to the Quartz tutorial,SimpleTriggeris intended to be used "if you need to have a job execute exactly once at a specific moment in time". There is also an example for this use case athttp://www.quartz-scheduler.org/documentation/quartz-2.2.x/tutorials/tutorial-lesson-05:SimpleTrigger trigger = (SimpleTrigger)...
I need to build a Cron Expression to execute a Job now.I tried using the following :private String generateCronExpressionNow(final String seconds,final String minutes, final String hours, final String dayOfMonth, final String month, final String dayOfWeek, final String year) { return String.format("%1$s %2$s %...
cron expression to execute a at current date time once
Since you noticed that curl works, try adding a user agent to your request to mimic curl. <?php $url = "https://query1.finance.yahoo.com/v8/finance/chart/nvda"; $options = [ 'http' => [ 'method' => "GET", 'header' => "User-Agent: curl/7.68.0\r\n" ] ]; $context = stream_context_create($option...
I am using Yahoo Finance's API at https://query1.finance.yahoo.com/v8/finance/chart/Ticker with php's file_get_contents and getting "failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests" but when I use curl to the same URL from the command line of the server I get an actual response! I verified t...
Yahoo Finance API file_get_contents 429 Too Many Requests
If you're running GATE through the Gate.init(), then you can easily load two Controller objects:CorpusController pipeline1 = (CorpusController) PersistenceManager.loadObjectFromFile(new File("savedState.xgapp")); CorpusController pipeline2 = (CorpusController) PersistenceManager.loadObjectFromFile(new File("another.xg...
I want to start GATE from an external system managed by a U/I. I'm not in charge of the U/I development. I need to know if GATE can be started/initialized externally with TWO PIPELINES. Can this be done? And if so, how?I suppose using the "Gate.init();" command to initialize/start GATE, but then how do I start two sepa...
Starting GATE with two pipelines
The problem is now solved. There were following issue to the code: The end point was not correct, There should be a correct end point. There was not enough permission given to the bucket. A list of complete permission should be taken before using the bucket in AWS SDK. Below is the correct code AWSCredentials creden...
I am trying to access a bucket and all its object using AWS SDK but while running the code i am getting an error as Exception in thread "main" com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: X), S3 Extended Request ID: Y= Kin...
AWS S3 Java SDK - Access Denied
AWS added this feature on January 24th, 2018: Use the BucketEncryption property to specify default encryption for a bucket using server-side encryption with Amazon S3-managed keys SSE-S3 or AWS KMS-managed Keys (SSE-KMS) bucket. JSON { "Resources": { "MyBucket": { "Type" : "AWS::S3::Bucket", "Prope...
I'm trying to use a CloudFormation Template to spin up an S3 Bucket in AWS. One of the requirements for this project is that the bucket be encrypted in place. I've been trying to find a way to set that up via CloudFormation Template (I've read all the documentation I can get my hands on for SSE-S3, KMS, CFT and S3s....
How do you set SSE-S3 or SSE-KMS encryption on S3 buckets using Cloud Formation Template?
This is a simple regex indeed:^(.*)$Let's break it up:^- begging of a string(and)- capture group, used to match part of a string.- any character.*- any charactery any number of times$- end of a stringSo, putting it all together, it means: "match any number of any characters". Later this matched part (part in parenthese...
I am developing a Symfony2 PHP application. In my Wamp server, the application is stored inwww/mySite/and my index.php iswww/mySite/web/app_dev.php. Because/ of that, I have URL like127.0.0.1/mySite/web/app_dev.phpI wanted to change the path so I acces my index file just by typing 127.0.0.1. After some research, I figu...
Understanding a simple regex
You are instantiating Threads left right and centre. This is likely you problem. You want to replace the new Thread(LoadTest).Start(); with Task.Run(LoadTest); This will run your LoadTest on a Thread in the ThreadPool, instead of using resources to create a new Thread each time. HOWEVER. This will then expose a dif...
I'm creating a tool to load test (sends http: GETs) and it runs fine but eventually dies because of an out of memory error. ASK: How can I reset the threads so this loop can continually run and not err? static void Main(string[] args) { System.Net.ServicePointManager.DefaultConnectionLimit = 200; ...
Out of Memory Threading - Perf Test Tool
Try to do $ git pull --rebase To pull remote changes before yours, and then commit. And see if it works. If this does not work, try this instead: $ git stash $ git pull --rebase $ git stash pop To save your changes on the stash, apply remote commits inside your work-repository, and then apply your changes (saved int...
I am trying to push new changes, but I have a conflicted file. After trying to push, I get the following error: Merge the remote changes (e.g. 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details. Ok, so we need to use git pull. I try to use git pull and then ...
Git telling me to pull, then commit, then pull?
You have to recreate your default ssh key and use an empty passphrase. Then upload the public part again to the git server. Without specific products you use on client and server it is a bit difficult to be more specific. An alternative is to use ssh-agent, but I have no clue if this also works on Windows or if someth...
Can someone point me in the direction I need look so I can configure my GIT client with the password needed for my private key? Every time I push and pull from my repository it asks me for the password for my key. I use command line and have the windows GIT client installed to use ssh. Thanks for any pointers.
How do I store a password for my key so I can commit and pull from repository when using git on windows?
To log the pulls made on a local repository:Every time you pull or merge a set of commits, git will make a merge commit. Therefore, this will work:$ git log --mergesTo find out which users have pulled from a Github repository:$ # Wait a minute, this is impossible.However, if you host the repository on one of your own s...
Is there a way we can view the history of the pulls that were made on a local repository?We use a shared system and wanted to have a log of the pulls that would have been made by different users. I have searched for this on the net, but no significant luck. Does anyone have an idea about it?
Check history of the git pulls made on a local repository from a remote branch
You can try joining based on less then condition and then group the results and find needed data from the grouping:WITH x AS (SELECT * FROM (VALUES (1, 100),(3, 300),(4, 400)) AS t(id, val)), y AS (SELECT * FROM (VALUES 1,2,3,4) AS t(id)) SELECT y.id as yId, max(x.id) as xId, max_by(x.val, x.id) as val FROM y...
Consider tablexid,val 1,100 3,300And tableyid 1 2 3For each row ofyI want thevalfromxwhere theidfrom y is equal or is the closest before theidfromxlike that:id,val 1,100 2,100 3,300I tried to find the closest id with correlated subquery:WITH x AS (SELECT * FROM (VALUES (1, 100),(3, 300)) AS t(id, val)), y AS (SELECT *...
SQL Presto: correlated subquery is not supported
5 I was able to accomplish this utilizing a plugin called serverless-plugin-canary-deployments: https://github.com/davidgf/serverless-plugin-canary-deployments I found it from this blog post: https://www.serverless.com/blog/manage-canary-deployments-lambda-functions-serve...
Is possible to use a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) with the Serverless Framework? If so, does anyone have an example of how that is done? Update: I have found it within SAM: AutoPublishAlias: By adding this property and specifying an alias name, AWS SA...
Lambda Function Aliases with the Serverless Framework?
API Gateway service proxy is for proxying the AWS API, not the Redis API, so that's not going to work for you. You will have to create a Lambda function and use API Gateway Lambda integration.
I need to communicate elasticache(Redis engine) using AWS API gateway. I successfully connected the ElastiCache from lambda function in the same VPC. I cant connect from outside VPC. So I tried to create an API gateway, and select integration type as AWS Service Proxy and AWS Service as ElastiCache. This is the scree...
Connect to ElastiCache cluster using Api Gateway
Node scripts exit by themselves only when nothing listens for events any more.With your scripts you probably know when nothing needs to be done after the main purpose of your script is achieved. For example, when the purpose of your script is to execute a certain code, print a summary etc. then you can addprocess.exit(...
I am building Node.js scripts that will be ran as CRON jobs. (full terminal scripts). These scripts fetch data from all around using APIs and MongoDB (native driver) is used. I don't didn't usedb.close()statement and because of that script will never end by itself (or at least it looks like that way from the terminal),...
Will running Node.js scripts as CRON jobs without closing database connection eventually kill all the RAM?
You can do this using the default Ad-Hoc distribution. You get the UDID's from the devices, add them to your Apple developer portal, and then generate the new provisioning file once you've gotten all the devices you want. Testflight isn't needed, you can do this all on your own quite easily.
I am working on an in-house enterprise application. the idea is to restrict a specific user to install/run the application on X number of devices.What is the best possible way to do that? The only way I can think of is using some kind of certificates ( the ones that you testflight or hockeyapp installs to uniquely iden...
iOS - How to restrict application installs on different devices for a specific user
If you want to contribute to a project that uses Git, then yes, you should clone the repository, commit your changes to the clone, and then push the changes back.
Until now I have only used git packages with gem:gem install <package>Haven't contributed to correcting things to git-hub.I wonder how you all do it?Eg. when I have installed the gem package, should I manually create a folder where I do:git clone <repo>Then when I find the gem package behaving strangely, I just correct...
The process for contribution to git packages?
When you add an object to array, array stores the variable address, so you can freely use your temporary variable(obj1) to create another object - the value in the array won't be destroyed. But since array retains its elements for proper memory management you need to release obj1 after pushing it to array. So you ne...
NSMutableArray *myArray = [[NSMutableArray alloc] init]; MyClass *obj1 = [[MyClass alloc] init]; [myArray addObject: obj1]; How to clean the old obj1 reference here, if I want to reuse the variable name. Without destroying anything in the array. obj1 = nil OR [obj1 release]; // What is the differences? obj1 = [[M...
iphone - change pointer reference to a new object and clean old
Specifying a variable would not solve all the problems with changing a data source for the existing dashboard - there will be still some metadata pointing to the old one, which will result in failures. The only thing that worked for me was to go to dashboard setting and copy aside the JSON model, careful find+replace a...
I've got a new datasource I would like an existing dashboard to use.How can I change it over? Is there a quicker way than exporting / importing the dashboard?
How can I change the datasource for a Grafana dashboard?
If you've enabled HTTPS decryption in Fiddler (Tools > Fiddler Options > HTTPS), then being able to see the credentials is expected. If youhaven'tenabled HTTPS decryption in Fiddler, then you are not using HTTPS properly.
I am able to run Grails application on tomcat using SSL but I am not sure how to verify that it is running properly with SSL.I am able to do following things (I am using grails security)...Created Self Signed SSL certificationAble to configure same certification with tomcat(updated server.xml)Able to run application us...
How to verify SSL in Grails application running on tomcat?
delete[] is always paired with a new[]. delete is always paired with a new. So yes, in your case, you need to call delete[] matrix; to release the array of float* pointers. Don't use free unless that pointer has been obtained with a call to malloc &c., which would be unusual in C++. Although, if you want to model a ma...
Here's how I allocate it: float** matrix = new float*[size]; for (int i = 0; i < size; i++) { matrix[i] = new float[size]; } And here's how I deallocate: if (matrix != nullptr) { for (int i = 0; i < size; i++) { delete[] matrix[i]; } } free(matrix); Is this correct or should I also delete[] the o...
How to properly deallocate memory for a 2d array in C++?
2 So my Question is, is there a way to Cache my Data so i can get it even if my Application restarted? Yes. If you use CacheItemPriority.NotRemovable, the cache will survive even if the application restarts. ObjectCache cache = System.Runtime.Caching.MemoryCache.Default; ...
Im trying to cache data that i get from a SQL Service, i tried using the Memory Cache Class from System.Runtime.Caching but it seems like the Cache is being emptied whenever i exit the Application. So my Question is, is there a way to Cache my Data so i can get it even if my Application restarted? Im Working with a S...
Cache data outside of Application
I figured out the problem. Issue was in new version of puppet we have to run enable the puppet server. Only starting the puppet server & services will not work we have to enable the server as well. Following command is for starting the server :puppet resource service puppetserver ensure=runningThis command is to enabl...
I am new to puppet, I am configuring connecting between puppet master "puppet" I have edited the host file on agent & client as well as I have edited the puppet.conf on agent node to resolve the master. I can ping in between both servers.I checked on master for cert list but there were no requests.But still I am gettin...
Can't request for certificate form agent using ' puppet agent --test '
There is an experimental docker plugin that you can enable. It allows you to directly create a Docker device and Kit that compiles and runs your project in a docker container. It's very experimental right now though. The next major update (8.0) will bring significant improvements to it.
I would like to know if someone already succeed to build (and debug) a qtcreator project using docker? I am developping a linux application on MacOS. For now, I'm programming using QtCreator on MacOS then I compile and test in a docker shell (I am sharing the project source between MacOs and the docker container with d...
Building qtcreator project using docker
That's because when you ran letsencrypt in virtualmin on the right side you had a bunch of other subdomains on the list. Such as webmail.mydomain.com, admin.mydomain.com, mail.maydomain.com and ofcourse mydomain.com andwww.mydomain.com(By default mail, webmail, admin subdomains are added. But they are not pointing to y...
Get following error:Web-based validation failed : Domain: qa.abcd.in Type: unauthorized Detail: Invalid response from http://qa.abcd.in/.well-known/acme-challenge/qZopOPsOP6owwosX0W4t7qtDm7UTkOkBz6Ur2VsUi60 [serverip]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not...
Get Error when trying to request SSL certificate for a sub-domain in Virtual Min
Unfortunately, no. Domain appspot.com is specific for GAE and some other fully managed GCloud services but not for GKE. In GKE you have to do everything yourself - create domain, expose your app on load balancer, create record and all that stuff. But domains are so cheap, why not buy one?
A pod with a web application that is in GKE, can have a subdomain appspot.com ?, just like in GAE.I have a cluster in GKE, and within this I have some services, including a web application that uses a ngnix ingress. Currently I do not want to acquire a paid domain, but I would like to expose my web application in a sub...
A pod with a web application that is in GKE, can have a subdomain appspot.com?
Just taking a step back to highlight the top level constructs and how they "usually" fit together. 1 At a certain level of abstraction we can view a "postfix server" as a server with a mail queue where your sent emails are stored pending being sent down the Port 25 SMTP (email) pipe. 2 We can send emails easily via ...
I'm creating a service in a spring boot application to send email using postfix server , the problem is that postfix is not installed in my machine, to get into postfix i should connect to remote server via ssh and then use the postfix ( the postfix is inside a Docker container in the remote server) so inside the remo...
Access to a Server that contain postfix and use it to send mail from spring boot application
There is an option about the compute capability after./configure(view sample configuration session fromhttps://www.tensorflow.org/install/source?hl=en#configure_the_build):Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at...
I see--copt=cudafor building TensorFlow on a GPU. I would like to know if there is any way to specify a compute compatibility number? For example, I want to build for SM_50.I didn't find a clear answer for that in the documents. Any idea?
Builing TensorFlow for specific GPU architecture
Trying agit clone -c core.sshCommand='ssh -Tv' clone -b "$GITHUB_PAGES_BRANCH" "[email protected]:$GITHUB_PAGES_REPO.git"would hep seeing what is going on.Seethis actionas an example of an actual SSH clone workingrun: | mkdir -p ~/.ssh/ echo "$GIT_SSH_RSA_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa ...
I am running a script in the ubuntu vm and I am trying to clone from my private repo.I added keygen in my script for ssh clone but I get an error. This is what my script looks like and the errorecho ">> Checking out $GITHUB_PAGES_BRANCH branch from $GITHUB_PAGES_REPO" cd /tmp/helm/publish mkdir -p "$HOME/.ssh" ssh-keys...
Cloning a git repo in a vm via ssh
I think it should be:"... /usr/bin/php -q -f /HDDLogs/HDDProcess.php..."or".../usr/bin/php -q < /HDDLogs/HDDProcess.php...".
Gurus,I have coded for my client a PHP script that performs some extensive data munging on text files he creates.Code is complete and I have now to automate the script. Problem is that it seems toonlyrun manually. I won't run as CRON job.This is what I have tried with "#!/usr/bin/php -q" in the header of my script:00 1...
PHP script won't run as CRON job
successThreshold: Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1.Must be 1 for liveness and startup Probes. Minimum value is 1.Asserted fromhere, you can't patchsuccessThresholdto other value beside setting it to 1 forlivenessProbe.ShareFollowansweredMar 11, 2...
I try to run this commandkubectl patch deployment w-app-kuku-com -n stage -p '{"spec":{"template":{"spec":{"containers":[{"livenessProbe":{"successThreshold": "5"}}]}}}}'And get this errorError from server: map: map[livenessProbe:map[successThreshold:5]] does not contain declared merge key: nameI try to change live...
How i can patched deployment manifest
1 You'll need to expose the port from docker on which your application is running. Let's say your application is running on port 8080 inside docker, here's how you can expose that specific port: EXPOSE 8080 Then you'll need to map the port exposed by docker tthato your l...
I have built a docker-compose file for my node js application that has been dockerized, But I don't know how to make the API call to that node js app which is running as a docker container, Please help me with this concern. My DockerFile: FROM node:10.15-slim ENV NODE_ENV=production WORKDIR /app COPY package.json ...
how to access node api which is running as docker container
You can dox = x * 10 y = x.astype(cp.int_) return yThe problem iscp.int_isnp.int_, so calling that would invoke a host function to operate on a GPU array, which is not allowed.
Using python3.8 with cupy-cuda111creating a cupy array and trying to cast to cp.int_ causes cupy assume an implicit conversion to numpy arrayimport cupy as cp def test_function(x): y = cp.int_(x * 10) return(y) x = cp.array([0.1, 0.2, 0.3, 0.4, 0.5]) y = test_function(x) print(y)This I assumed would multiply...
Attempting numpy conversion when not needed in cupy
Should I clear the contents of this folder on each app exit ? Why would you want to do that? Admob does this to provide better and speedy ad serving. And I'm sure the amount it is caching is within tolerable limits. Clearing that much space on the user's storage will not make him much happy. But you'll lose on reven...
I have integrated AdMob in my Android app. I noticed the app taking up more and more storage space in a folder called app_webview generated by AdMob inside the app data folder. Should I clear the contents of this folder on each app exit ?
Is it good practice to clear the cache files generated by AdMob in Android?
The issue was caused by oldHelmversion. Problem was resolved after upgrading to the newHelm v3.There is helpfulguideon how to migrateHelm v2tov3.
I am a Kubernetes novice. I am trying to install a csi driver to a Kubernetes Namespace in a kubernetes cluster version 1.16.15.I am using helm 2.16 version to do the install using below command :.\helm install --name csi-secrets-store secrets-store-csi-driver/secrets-store-csi-driver --namespace csi --debug[debug] Cre...
Error in installing csi driver to a Kubernetes cluster v1.16
Trying to trick the api container into connecting to sqs by telling it that it's actually connecting to localhost isn't going to work. You need to make sqs available to api under a name that doesn't already have a special meaning, like: links: - sqs:original-name or even: links: - sqs which makes sqs access...
Using docker-compose, I'm trying to run my API on a publicly available port 8080 and an sqs service on a privately available port 9324. The API needs to be able to communicate with the sqs service. In order to do so, I have set up the following docker-compose.yml: version: '2' services: api: image: api ports...
Docker Compose - container receiving connection refused
Only one pod can be created for each job at mostThe requested parallelism (.spec.parallelism) can be set to any non-negative value. If it is unspecified, it defaults to 1. If it is specified as 0, then the Job is effectively paused until it is increased.For Cronjobs could be helpfulsuccessfulJobsHistoryLimit: 0, failed...
I'm trying to create Kubernetes job with the following requirements:Only one pod can be created for each job at mostIf the pod failed - the job will failMax run time of the pod will be 1 hourIf the job finished successfully - delete the jobI tried the following configurations:apiVersion: batch/v1 kind: Job metadata: ...
Creating Kubernetes Pod per Kubernetes Job and Cleanup
I have got an answer from AWS support. I will need to sign the wss URL. So instead of setting request headers in a HTTP request, the signature information will be passed to the url in the query string parameters. A signed wss URL looks like:wss://API_ID.execute-api.region.amazonaws.com/dev?X-Amz-Algorithm=AWS4-HMAC-SHA...
I've set up an API Gateway using WebSocket protocol. On the '$connect' route request setting, I selected 'AWS_IAM' as the authorization method. The web app needs to make a connection to this WebSocket API after a user logged in via Cognito. How do I then authorize the WebSocket API request from the JavaScript on the we...
Authorise Request to AWS WebSocket API Gateway using AWS_IAM
You should: apply a filter-branch (as in here) changing both the author and committer. That will avoid seeing "authored by X, committed by Y" git push --force at the end, in order to overwrite the remote repo history (make sure to warn any collaborator on that repo first)
I noticed something which might be beneficial to me, but i was not sure what was going on with my version. How to change the commit author for one specific commit? So, I saw a great 1-liner which would say, start at the first commit, and ammend all authors to XXX. I thought it was going to work, but when I pushed, i...
Tried to update some commit authors in a repo but says authored by X, commited by Y
Wow, turns out I just had a typo in the remote origin url ('gihub' vs 'github'). Fixing that fixed the issue.
I am trying to connect my first git repository to github. I followed the commands given from within my repository: git remote add origin https://github.com/[username]/git_practice.git git push -u origin master ... and got the following error: fatal: unable to access 'https://gihub.com/[username]/git_practice.git/...
"fatal unable access [path] Failed connect gihub.com port 443 Connection refused" Trying to connect github repository - NOT using a proxy
Promoting between pipelines will only move the generated slug (the compiled runnable version of your application).It will not change the GIT repository's content. Therefore, you cannot use git pull to get the latest changes.You need to pull changes from the app you pushed to, or your GitHub repository if you're using G...
I have on Heroku 2 apps (forked) inside a pipeline. When I push and deploy the staging app and promote it to production, it works perfectly but I do not see it in my remote git repository (in Sourcetree when I fetch, the production remote is not changed).How do I get the changes in the repository?Thanks
Heroku pipeline promote - pull to repository
After I add the following line to the top of the crontab screen, the problem has solved. I don't know the technical answer but It just worked for me.PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
I have a Debian built server and i need to run automated tests via crontab or anything else that fulfils the daily job.I use Selenium WebDriver 2.45.0 Java Libraries.With command line i can execute the script with :export DISPLAY=:0; xvfb-run --auto-servernum --server-num=0 nohup java -jar test.jar;But when i add the...
Selenium FirefoxDriver how to execute automated tests with Crontab
If you are using replicaset, daemonset, deployment, statefulset etc for which there is a controller that is always trying to converge the state of your workload pods to the desired state there will be new pods created automatically. You will experience a brief downtime until new pods are spawned. But if you are running...
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, ...
What is the impact of restarting docker on the k8s cluster [closed]
Saving container (docker commit) with volumes is for now a closed (unresolved) issue (6999). See also issue 7583, which points to PR 13987 Update the man page for 'docker commit' to make explicit the fact that 'commit' does not save data in volumes. You would need to save your /var/lib/docker/volumes/<right_volume...
I am using and existing mongodb image to create a docker container. Then I create some databases and collections in that container. However, when I create and image from that container, mongodb does not show my databases and collections. I guess its something to do with data volumes not copied over to image. Is there ...
database and collections created in docker container cant be found in committed docker image
-1According to your description, I suggest you could firstly clear all the chrome's cache and update the chrome to the newest version. About how to troubleshoot google chrome's performance issue, you could refer to thisarticle.If this doesn't solve your issue, I suggest you could try to use chrome F12 develop tool to ...
I have a .NET C# program rendering on IIS web server. After adding SSL certificate to the server the program takes up to 5 minutes to respond to my request, only in Google Chrome. If I use the old HTTP URL everything is normal and the page is loaded after 33 sec. Does anyone have a suggestion on what causes this slow r...
Slow rendering of data in Google Chrome after intalling SSL certificate on server
First one is easy.12 9 * * 1-5 <full_path>/job1.phpSecond one is tricky. I split that into 3 entries.15-59 9 * * 1-5 <full_path>/job2.php * 10-14 * * 1-5 <full_path>/job2.php 0-30 15 * * 1-5 <full_path>/job2.phpCron Syntax* * * * * command to be executed ┬ ┬ ┬ ┬ ┬ │ │ │ │ │ │ │...
I have to run two cron jobs for the following scenarios.job1.php Should run once in a day at 9:12 AM on Monday to Friday. (five days in a week)job2.php Should run in each minutes from 9:15 AM to 3:30 PM on Monday to Friday. (five days in a week)I have another 4 cron jobs which needs to be implemented in my project. But...
cron job to run each minutes from monday to friday from 9:15AM to 3:30PM
2 It's your GPU memory which is not getting freed. Get the process id $ nvidia-smi and then $ kill -9 <process id> Share Improve this answer Follow edited Mar 2, 2016 at 13:35 ans...
I have a python job that runs a caffe net for image processing on nvidia GPUs. The job takes images from a rabbitmq queue, processes it and then writes the result in another queue. When I restart this job, the processes are getting killed but memory is not getting reclaimed. So after certain number of restarts the mac...
Memory not getting reclaimed on restart of a process
You are doingfoo.getKey(). Iffoois null that will throw a NullPointerException but you aren't declaring thatfoomust not be null.Null checkfoobefore you use it.if (foo != null) { return foo.getKey().equals(o); } else { return null; }
I have written this predicate and sonar is complaining about it. I am not sure how to fix this violation. Please help:import com.google.common.base.Predicate; import java.util.Map; public final class FooPredicate { private FooPredicate(){} public static Predicate<Map.Entry<Long,Long>> isFirstElement(final Lo...
Sonar issue - parameter must be nonnull but is marked as nullable
+50Client side hooks are not reliable IMO (the client could always pass in --no-verify, or just remove the hook completely). You'd want to use a server side hook that would reject any pushes that had commits with bad email addresses, and then print out recovery instructions for the end user on how to redo their commit...
I'm looking for possibilities to confirm whether the email address of the committer is lower case to avoid issues likethis.I'm thinking to implement a client side pre-commit hook script which would either convert the upper case into lower case characters in the username and email or just warns the user to change in git...
How to force users to use email address in lowercase in GIT
That configuration should work correctly - the only change I would make is to serve both www and no-www via nginx: server { listen 80; server_name danielcw.info www.danielcw.info; root /root/public/danielcw.info/public; access_log /root/public/danielcw.info/log/access.log; error_log /root/publi...
Been working with Nginx and passenger. I have successfully got one app / domain to work correctly. But with my server I have 2+ domains I plan to server from nginx to their respective root directory where each rails app will live. I have tried numerous techniques, but none work. All domains take the first root setu...
Nginx + passenger: Multiple domains need to point to different root
Mod_dir will automatically redirect any request for a directory that doesn't end with a trailing slash. This is because there's a security loophole that allows anyone to see the contents of a directory byleaving the trailing slash off. You can, of course, turn off this feature, but then you'd need to ensure you prevent...
I decided to use wordpress to power my blog section. I created a folder under my root directory of my site titled blog. Now when I visithttp://trekeffect.dev/blogI get redirected tohttp://trekeffect.dev/blog/with the trailing slash. How can I remove the trailing slash?.htaccess inside blog folder is# BEGIN WordPress <I...
Remove trailing slash in wordpress blog URL
The rule S2118 is a special case since issues are not reported on files. They used to be reported on folders, but with recent versions of SonarQube we removed the ability to report issues on folders so those issues will be reported at project level.In any case (old or new behavior) it is not possible to use issue exclu...
I would like to exclude the necessity of havingpackage-infofiles in every of our packages. My defined path is ignored, so probably it is wrong. Please what is the correct expression for matching all packages undercom.*?<sonar.issue.ignore.multicriteria.e11.ruleKey>squid:S1228</sonar.issue.ignore.multicriteria.e11.ruleK...
What is the maven matcher for all packages?
Sorry, I haven't noticed your post earlier. Tryhttp://scheduler.codeeffects.com,http://www.webbasedcron.comorhttp://www.webcron.org
Hey folks, I am looking for something to manage and schedule the execution of rake tasks, like database backups or running reports; something that has a nice web interface so I don't have to use cron. I'm looking at hudson, but it seems this is more geared toward CI builds. Rather than roll my own, does anyone have any...
Interactive task scheduler recommendations?
Try using the "whenever" gem. Allows you to define your cronjobs in ruby being able to specify rails runner, rake, or other custom wrappers and it handles writing the crontab for you. Makes life much simpler.Just add:gem 'whenever', :require => falseto your gemfilehttps://github.com/javan/wheneverhttp://railscasts.com...
Recently I came across the following tutorial of running cron job without using any Gemshttp://www.ameravant.com/posts/recurring-tasks-in-ruby-on-rails-using-runner-and-cron-jobsI create one file in /app/delete_old_posts.rbclass DeleteOldPosts < ActiveRecord::Base # This script deletes all posts that are ...
rails-3 cron job not working with rails runner
You can know specify custom address ranges with the default-address-pool property since Docker 18.06. See also the associated Pull Request.
When I was trying to deploy my application with docker-compose I got back the following error: Creating network "<myapplicationnamehere_mycustomnetwork>" with the default driver could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network Now I researched a bit here and...
Docker: Could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
I went ahead and reproduced your use case.Assuming the installation of nginx ingress controller though helm went smoothly and when listing resources everything seems to be fine, you need to specify the paths in the ingress yaml file, as follows:apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-reso...
Running on Google Cloud platform / Container Engine - How do I set it up to point to this Ingress in the following?I have installed Nginx-ingress on Kubernetes with Helm and it works for thedefault backend - 404.I want to be able to use different http uri path, like/v1,/v2and others.For my own Chart that I want to use ...
Nginx-ingress setting annotations to work with Kubernetes Helm install values.yaml
Ok. Elysia Cron only works with modules, so you CAN'T run a callback function with ELysia cron. What you can do is create a module and insert that function into the module. And rename the function to MODULENAME_cron.*Note: MODULENAME will be the name of your module. So if your module_name is test_module, then rename t...
function docusign_get_return($accountId, $apiClient){ $getAllDocs = db_query("SELECT * FROM {my_docs} WHERE status = :status_text", array(':status_text' => 'sent'))->fetchAll(); foreach($getAllDocs as $docs) { $get_status = 'completed'; if($docs->status !== $get_status) { $update_doc_s...
callbacks function in drupal 7 elysia cron
Images are immutable, so any change you make results in a new image being created. Since your compose file specifies the build command, it will rerun the build command when you start the containers. If any files you are including with a COPY or ADD change, then the existing image cache is no longer used and it will bu...
I am new to Docker and find that there are numerous images that are getting created (as seen in sudo docker images) and found somewhere in stackoverflow to periodically run sudo docker rmi $(sudo docker images -q) to remove all images. Why so many images get created? is there something wrong in my configuration? docke...
Docker creating multiple images
Thanks LazyOne, this maybe working, but for me it often ended up in "mydomain.com/redirect:/app/webroot/index.php" which was really strange. But maybe this is due to the"{REQUEST_URI}"because I had to change myRewriteRule ^(.*)$ index.php?url=$1 [QSA,L]toRewriteRule ^(.*)$ index.php [QSA,L]due to strange problems with ...
I know the topic "How to force HTTPS + WWW" is often discussed and solved, and in general it works for me.But as I now got a specific predefined .htaccess from CakePHP I do not know how to include it..htaccess for CakePHP:RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRu...
force SSL+WWW in CakePHP .htaccess
After further research, it seems that PHP will always see the original URL in$_SERVER['REQUEST_URI']and not the target of the RewriteRule. (authoritative source needed here).By the way, the target of a RewriteRule is usuallya filethat will process the request, except if we use a [R] redirection flag, then in this case ...
With this.htaccess:RewriteEngine On RewriteRule foo/(.*) /foo-$1 # here I tried [L], [PT], [C], etc. RewriteRule . index.php [L]I've tried all possible flags for the first RewriteRule, but always, this PHP code:<?php echo $_SERVER['REQUEST_URI']; ?>always echoes/foo/barinstead of/foo-bar, when accessinghttp://e...
How to use RewriteRule such that $_SERVER['REQUEST_URI'] is modified too for PHP?
There is a better way to perform SSH commands in a EC2:name: CI on: [push, pull_request] jobs: # test: # ... deploy: name: "Deploy to staging" runs-on: ubuntu-latest if: github.event_name == 'push' && github.ref == 'refs/heads/master' # needs: test steps: - name: Configure SSH ...
I am trying to set up CI for my nodejs server. I would like to use github actions to ssh into my ec2 instance, where I can then git clone/pull my updated repo.I can ssh into my ec2 instance on my local machine w no issues. I just do something like: "ssh -i keypar.pem[email protected]" and it connects. However, I can't ...
Github Workflow Actions And EC2: Error Loading Key Invalid Format
AFAIK, there is no possibility to add labels to your alerts based on condition without rewriting all rules.Best solution for your exact question is to create separate alerts for all environments/teams/conditions and just add static labels.Something along the lines of- alert: many_restarts_data expr: increase(kube_p...
I'm working with Prometheus alerts, and I would like to dynamically add a 'team' label to all of my alerts based on a regex pattern. I have an example alert:expr: label_replace(label_replace(increase(kube_pod_container_status_restarts_total{job="kube-state-metrics",namespace=~".*",pod!~"app-test-.*"}[30m]) > 2, "team",...
Dynamically Adding 'team' Label to Alerts in Prometheus Using Regex
I use Helmfile for my projects. While I don't use the--concurrencyflag, because my charts are specifically ordered, helmfile is VERY powerful. It seems from the githubs people usebases:in helmfile to establish their parallel charts, and everything that is ordered in the releases.Also if your individual charts have depe...
I'm currently using Ansible to template out Helm values files and deploy Helm charts to Kubernetes. However, this happens in sequence and generally takes a long time to deploy because of the number of Helm charts needed to deploy. I'm looking for a way to deploy Helm charts in parallel.A few of my Helm charts depend on...
Deploy Helm Charts in parallel with conditionals and dependencies
Why would you use weak references here? They won't help, and are not designed for such scenario.Instead set up an iterator (an object that responds toeach) that loads the data in chunks.ShareFollowansweredNov 9, 2010 at 19:56glebmglebm20.6k88 gold badges5252 silver badges6767 bronze badges2Loading data in chunks will s...
I am wondering what it the overhead of usingWeakRefprocessing large data set?The task I want to perform is something like this:huge = get_array_of_weak_refs # 100000000 entries or more :) result = huge.length * huge.inject(0) { |accum, it| accum += it.total } # much more complicated, just a sampleAssuming thatget_array...
What is the cost of WeakRef in Ruby?
InUrlManagerthere arerules, you can define your own rules. your UrlManager may look like this.'urlManager' => array( 'urlFormat' => 'path', 'rules' => array( 'gii' => 'gii/index', 'gii/<controller:\w+>/<action:[\w-]+>' => 'gii/<controller>/<action>', '<controller:\w+>/<id:\d+>' => '<controll...
I have url like this:www.studyenglish/index.php?r=site/lesson&act=read&id=1I would like change to be:www.studyenglish/site/lesson/readI have added this script in url manager config/main.php'urlManager'=>array( .... 'showScriptName'=>false, .... ),and add this script in .htaccessOptions +Follow...
Url manager and Htaccess in Yii1
Actually it could be one script which is triggered with different options to reflect first section and second section. Serialization of the data into a file at a temporary space would be the option for data exchange between both calls.I've written informal code for you, i have not checked if it is working or correct, j...
I have a python script which has two sections:a first section where it calls an api query (i want to run this two times a day)the second section where it makes other functions given the results of the first call (i want to run this every minute)I want to call the api request only two times a day because the results won...
Python schedule different part of code with different times
@oc11c pointed out that git clone --bare would only fetch the .git folder and not any source code which is what we're looking for.
We're looking at analyzing our git patterns and found "git log" has everything we need in it. We pull it down initially to do the analysis but would like to discard the source code afterwards. For future updates is there a way to git fetch or pull from the last timestamp or commit so we don't have to either1) keep th...
Get git log events without keeping a clone locally?
You said "we want to separate base image(centos or rhel) and application images and link them during run time." That is essentially whatFROM rheldoes, thanks to the layered file systems used by Docker.That is, theFROMimage does not become part of your image -- it remains in a separate layer. Your new image points to th...
Can we create a docker image using docker file with out source image (OS) i.eFROM rhelWe don't want base image(centos or rhel) in all our application docker images. we want to separate base image(centos or rhel) and application images and link them during run time. Is it possible?When I am building docker imagewithoutF...
Create docker image without source image (OS)
kubectl get svc --all-namespaces -o go-template='{{range .items}}{{range.spec.ports}}{{if .nodePort}}{{.nodePort}}{{"\n"}}{{end}}{{end}}{{end}}'This gets all services in all namespaces, and does basically: "for each service, for each port, if nodePort is defined, print nodePort".
I have exposed a service on an external port on all nodes in a kubernetes cluster from:kubectl create -f nginx-service.yamlYou have exposed your service on an external port on all nodes in your cluster. If you want to expose this service to the external internet, you may need to set up firewall rules for the service p...
Is there anyway to get the external ports of the kubernetes cluster
You can add.patchto the end of the URL. An example Compare page:https://github.com/github/linguist/compare/9693336...1bbcfa5and its formatted patch:https://github.com/github/linguist/compare/9693336...1bbcfa5.patchShareFollowansweredFeb 22, 2018 at 18:52Ry-♦Ry-221k5555 gold badges480480 silver badges485485 bronze badge...
Github has a compare feature that can be used to compare changes across different forks. e.g.How can I diff two branches in GitHub?Question: how can I download the result of such a compare as a patch file?Thanks,
How to download a github "Compare Changes" result as a patch?
Usebash(or your preferred shell if notbash) in the entrypoint:ENTRYPOINT [ "bash", "-c", "./entrypoint.sh" ]This will run the entrypoint script even if you haven't set the script as executable (which I see you have)You an also use this similarly with other scripts, for example with Python:ENTRYPOINT [ "python", "./entr...
I have amultistagedockerfilewhich I'm deploying in k8s with script asENTRYPOINT ["./entrypoint.sh"].Deployment is done though helm and env is Azure. While creating the container it errors out"./entrypoint.sh": permission denied: unknownWarning Failed 14s (x3 over 31s) kubelet Error: failed to create co...
Permission denied while executing script entrypoint.sh from dockerfile in Kubernetes
This is a known issue:https://jira.sonarsource.com/browse/SONARGITUB-35with unfortunately no workaround.
We're getting an odd error on one of our new github projects when we attempt to run a sonar analysis. We get the following error message and it appears to be because org.kohsuke.github.GHCommitStatus["id"] gets a "Numeric value (4275691320) out of range of int" error.[ERROR] Failed to execute goal org.codehaus.mojo:son...
sonar-maven-plugin getting "out of range of int" error
You are probably using a version of ioncube that doesn't match your php version. Connect to your server using SSH and run this:cd /usr/local/directadmin/custombuild ./build update ./build clean ./build set ioncube yes ./build ioncube service httpd restart
I am using cron jobs in DirectAdmin, but I encountered this error:Failed loading /usr/local/lib/ioncube_loader_lin_5.2.so: /usr/local/lib/ioncube_loader_lin_5.2.so: undefined symbol: php_body_write
How to resolve this error in DirectAdmin
Here is a list of four good books on the subject (SSL/TLS):SSL and TLS: Theory and PracticeSSL and TLS: Designing and Building Secure SystemsSSL & TLS: Essentials Securing the WebNetwork Security with OpenSSLHere are some good books on PKI:Understanding PKI: Concepts, Standards, and Deployment ConsiderationsPlanning fo...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened,visit the help ...
What books will help me learn everything I can about SSL/PKI? [closed]
Your config is almost right (for what you're trying to achieve). Since I don't have the full config, I'll guess a solution: location ^~ /assets/ { alias /absolute/path/to/assets/; gzip_static on; expires max; add_header Cache-Control public; } Notice the alias directive (as well as the trailing slash ...
I was wondering if there is a better way to define assets path in nginx. For example, I want nginx to serve assets in subfolders. For now, I use this technique which does not look very dry to me. location ^~ /assets/ { gzip_static on; expires max; add_header Cache-Control public; } location ^~ /assets/dow...
nginx assets in subfolders
9 jmap and jhat are the core tools with command line interface. VisualVM is a visual workbench integrating command line tools to manage things more easily without having to work through the command line options. If you know and free comfortable working with command line too...
I understand that jmap is used to create heap dumps and the same can be analysed by Jhat. jVisualVM also can be used to analyze the heap dumps (and can do much more tasks such as profiling etc). But what is the difference between analyzing heap dumps using jHat and visualVM (other than one if using Web and second is d...
jmap/jhat vs jVisualVM
As someone answered early, add these 2 lines tosonar-project.propertieswill close this rule globally.sonar.javascript.jsx.lint.props-should-not-use-functions.severity=none sonar.javascript.jsx.lint.props-should-not-use-arrow-functions.severity=none
I want to disable this rule for the sonar cloud, where can I configure it? I have looked up the sonarqube doc. Unfortunately, I didn't find the rule.https://rules.sonarsource.com/javascript/tag/react
How to close specific rule in sonar?
I noticed that for branches, the templates instantiations are also used. So what I have to do is to create test cases for all these different types, and not just double.
My question regards strange (to me) code coverage reports in SonarQube (sonar cloud). Let's take this file:https://sonarcloud.io/component_measures?branch=develop&id=org.sonarqube%3Aaudio-tk&metric=coverage&selected=org.sonarqube%3Aaudio-tk%3AATK%2FDelay%2FFeedbackDelayNetworkFilter.hxxIt is very partially covered, but...
How Sonarqube understands branch coverage
If you look at theBIO_do_handshakeexample, you are safe to call ssl_get_verify_result / ssl_get_peer_certificate after the call to BIO_do_handshake.You can customize the verification process withSSL_CTX_set_verifyin which you can provide a callback verification function. This allow you to provide your own validation r...
Is certificate verification performed during aBIO_do_connectcall?I am trying to understand when to usessl_get_verify_result(). The documentation says this function should be used in conjunction withssl_get_peer_certificate. But some of the examples (IBM'sfor instance) don't, saying that OpenSSL does the verification f...
Certificate verification with BIO_do_connect()
That code appears to be from one of my answers :)Replace your code with this:Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ## don't touch /forum URIs RewriteRule ^forums/ - [L,NC] ## hide .php extension snippet # To externally redirect /dir/foo.php?id=123 to /dir/foo Rewrit...
I have a problem with redirect URL in .htaccess. I want to remove .php & question marks from the URL.For Example:www.example.com/test.php?id=12towww.example.com/test/12need like this format.I tried using this code in my .htaccessOptions +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / #...
I want to remove question mark & .php extension from the url using .htaccess
There is no spot instance launched if the request is still active, so there is no question of terminating your spot instances. Yourrequest will expireonce theValidUntiltime is reached. You didn't specify the type of this spot request:Type='one-time'|'persistent'By default, the value isone-time. In that case, the reques...
I'm using boto3 to deploy spot instances. My request is expired after period of time (as I defined). When the request expires, I'm expecting that the machine will terminate. In order to create the spot request I used this script:client = boto3.client('ec2', region_name=regions[idx][:-1]) client.request_spot_instanc...
Terminate spot instances when the request expires
You should try and separateauthentication(using client certs) from account management, meaningauthorization.A good approach might be to use client certificates only to identify the user accessing your application (with exactly 1 certificate for each user). Then setup an n:m mapping to determine that user'sgroups, which...
Background infoDeveloped a web app that uses IIS8. Currently using IIS to perform client authentication. Server self-signs a certificate and the certificate is imported on specific PCs.User access site from browser and browser prompts for SSL cert. (Cert is imported to Personal Folder).For PCs with single accounts ther...
SSL imported across all computer accounts
go getsupports most git, mercurial, bazaar & svn repos, so your own Git server, Bitbucket, GitLab, etc are all acceptable. This is touched on in the docs here:https://golang.org/doc/code.html#PackagePathsSimilarly, you can just create a$GOPATH/src/yourname/yourpkgdir, but you will have a harder time sharing your code w...
Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be about programming within the scope defined in thehelp center.Closed8 years ago.Improve this questionI'm just getting started with Go. I use subversion for most of my development, but th...
Does Go development require a paid Github account for private development? [closed]
Since you're mapping the port 5432 on the container to the same port on host with-p 5432:5432in yourdocker runstatement, try connecting pgadmin to port 5432 on the host instead of the container.
related posts: 1)docker postgres pgadmin local connection2)https://coderwall.com/p/qsr3yq/postgresql-with-docker-on-os-x(in the example "Name" entry is not filled in)there are two ways to complete this task, I use official postgresMETHOD 1:and runs it withsudo docker run --name some-postgres -e POSTGRES_PASSWORD=mysecr...
Can not connect to Postgres Container from pgAdmin
This doesn't look like it's that easy or even possible.https://serverfault.com/questions/1/how-to-exclude-indexes-from-backups-in-sql-server-2008Never tried it myself but seems an odd request from your hosting provider.
Good day!My new hosting provider doen't support restoring MS SQL backups with full-text indexes\catalogs inside.I can't found any way to create a backup without full-text capabilities inside. One way is to drop fulltext catalog and indexes, do a backup and then revert changes back, but if there any better way?Thanks in...
Create backup of MS SQL 2005 DB without full-text indexes and catalogs
0 Yes. If you select a repository, chose 'Changes' from the menu and write your comment in "Commit summary" with additional information in the "Extended description" field. When you commit, the "Commit summary" is your 'comment'. Share Improve this answer ...
I very much like the ability to comment on commit diffs which are viewable on github. Is there any way I can do this using github for mac?
is it possible to comment using github for mac?
+200It could be due to the Docker userland proxy. If you are running a recent version of Docker, try running the daemon with the--userland-proxy=falseoption. This will make Docker handle port forwarding with just iptables and there is less overhead.
We have a node.js web server that makes some outgoing http requests to an external API. It's running in docker usingdokku.After some time of load (30req/s) these outgoing requests aren't getting responses anymore.Here's a graph I made while testing with constant req/s:incomingandoutgoingis the amount of concurrent requ...
Docker blocking outgoing connections on high load?
You cannot simply require dependencies with dev stability, you'd have to allow them in the root package.Also, you should rethink depending on branches. This will hurt you in the long run because you will have a very hard time rolling back to a known working state - and with more than one package being used with a branc...
My primary goal is to change a dependency version in theslackrepo.In my project, I need to useslack-laravelwhich is depended onslack.What I did:forked bothslackandslack-laravelchanged the required dependency version inslackand pushed it to a branch calledguzzle-patchchanged the originalslackdependency inslack-laravelto...
Composer require a fork of a fork
You do not need a proxy but a reverse-proxy. Therefore, yes a load balancer is a way to comply to your need. Do not forget to configure the DNS with the IPv4andIPv6 addresses of the load balancer.But when you sayI have an ios app that needs an API to works [...] support IPv6. If what you are saying is based on the fact...
I have an ios app that needs an API to works yet this API is deployed using Kubernetes thatdoesn't support IPv6 for now.I am intending to create proxy server that do the redirection of packets to the actual api. How could be done using google compute engine? A load balancer?
Creating a IPv6 to IPv4 proxy server in Google compute engine
Yes, we have this as well and it's not linked to the email, it's linked to S3 firing multiple events for a single upload. Like a lot of messaging systems, Amazon does not guarantee "once only delivery" of event notifications from S3, so your Lambda function will need to handle this itself.Not the greatest, but doable.S...
I'm using an AWS Lambda function (written in python) to send an email whenever an object is uploaded into a preset S3 bucket. The object is uploaded via the AWS PHP SDK into the S3 bucket and is using a multipart upload. Whenever I test out my code (within the Lambda code editor page) it seems to work fine and I only g...
AWS Lambda function firing twice
Usepydocto pipe your docstring to a.mdfile and upload that to your Github repo wiki:Example for thesyslibrary:Windows CMDpython -m pydoc sys > sys.mdLinux/WSL/OS Xpydoc sys > sys.md
I have a python project that contains docstrings for every function, method and class. How can I automatically display it in a user friendly way into the repository's wiki, or some other dedicated place in the repository? (I don't know what place is typically used for such things)Note: the question is about python docs...
How to display docstrings into a repository's Wiki?
- this is true of NVIDIA gpus.2 - this is a constraint of the hardware design.3 - compilation is done on the CPU, so you could compile your program much like you could cross-compile for PPC on an x86.If you want to run gpu programs on an ATI card, I suggest you look at OpenCL or AMD Stream.
i am doing a research about GPU programming and want to learn more about CUDA. I've already read a lot about it (from Wikipedia, Nvidia and other references) but I still have some questions:Is the following description of the architecture accurate?: a GPU has multiprocessors, every multiprocessor have streaming process...
Questions about cuda
Try using toJSON to do the quoting payload: | { "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": ${{ toJSON(github.event.pull_request.title) }} } } ] }
I'm trying to write a slack notification bot to trigger off of GitHub pull requests, but I'm running into a sanitization issue I have an action defined as follows name: slack-notification on: pull_request: types: [closed] jobs: slack-notifications: runs-on: ubuntu-latest steps: -...
Sanitize GitHub context in GitHub actions
Your wording is a bit confusing. It says that you want to "start" an instance (which suggests that the instance already exists), but then it says that it wants to "terminate" an instance (which would permanently remove it). I am going to assume that you actually intend to "stop" the instance so that it can be used agai...
I have a python script which takes video and converts it to a series of small panoramas. Now, theres an S3 bucket where a video will be uploaded (mp4). I need this file to be sent to the ec2 instance whenever it is uploaded. This is the flow:Upload video file to S3.This should trigger EC2 instance to start.Once it is r...
How to start an ec2 instance using sqs and trigger a python script inside the instance
JavaScript has automatic memory management and garbage collection. If you get rid of all references to a piece of data, the memory will be reclaimed (and there is nothing else you can do about it).delete data.arrayis roughly the same asdata.array = null(it just also removes the property itself, not only its value).dele...
I have been processing some client side data which may be up to 100MB in total. I have been using a global variable to store the data and the variable is declared at the top of my JS file:var data = null;Followed by the definition, there are some functions that load data to this variable, such as:data = new Object(); d...
How to release memory of JavaScript variables correctly?
The^xxx.xxx.x.xx$portion of yourRewriteCondis simply a regular expression. You can easily use groups to add more IP addresses:^(xxx\.xxx\.x\.xx|yyy\.yy\.y\.yy)$You will notice I have escaped all the.s with a backslash - this is because.has a special meaning in a regular expression, and it needs to be escaped if you wan...
Hi i should only allow the particular ip address(which is HTTP:X-FORWARDED-FOR adresses) to access the files. I have done it by the followingOptions +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP:X-FORWARDED-FOR} !^xxx.xxx.x.xx$ RewriteRule ^$ http://xxx.xxx.x.xx/access_denie.php [R=301,L]Now i have...
Allow access in htaccess based on the HTTP:X-FORWARDED-FOR
You can add this rule to redirect actual URL to pretty onebefore your earlier rule:RewriteCond %{THE_REQUEST} \s/+detail_new\?location=([^\s&]+)&id=([^\s&]+)&name=([^\s&]+) [NC] RewriteRule ^ /%1/%2/%3? [R=302,L,NE] RewriteRule ^([^/.]+)/([^/.]+)/([^/.]+)/?$ /detail_new?location=$1&id=$2&name=$3 [L,QSA]ShareFollowedit...
I Have a rule in my htaccess as belowRewriteRule ^([^/.]+)/([^/.]+)/([^/.]+)/?$ /detail_new? location=$1&id=$2&name=$3 [L,QSA]And it is working pretty fine as when i type URL ashttp://example.com/location/id/nameBut when i typehttp://example.com/detail_new.php?location=Panchkula&id=123&name=ABCthen also page opens up.B...
Redirect 301 Dynamic URLs htaccess
I'm afraid it won't work that way. Iterating over every pixel in AS3 will probably be painfully slow (which is why pixel bender was originally made), even more so on mobile which have puny CPUs (compared to desktops).I would suggest you look in to Stage3D which leverages graphic card to do the heavy lifting (pretty muc...
I'm writing an android app using AIR + AS3. Since pixel bender files arenot supportedin GPU mode, I'm trying to convert this chroma key filter to pure AS3. Any suggestions, tools or help will be appreciated:<languageVersion : 1.0;> kernel DifferenceKey < namespace : "com.quasimondo"; vendor : "Quasimondo"; ...
Converting pixel bender to AS3
With your shown samples, could you please try following. Please make sure you clear your cache before testing your URLs.RewriteEngine ON RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(nos-prestations|pour-les-entreprises|arbre-de-noel-entreprises|le-foot-en-salle|news|contact|kidooland-le-parc|kidoola...
My Wordpress has been hacked and cleaned, but now tens of thousands pages return 404 http code from Googlebot and other search engine witch saturate my hosting and SEO is a disaster.My web site have only ten pages and i would like send an 410 http code for every urls exept my ten pages (and other stuff like images)Here...
return 410 gone for all pages with exceptions
You can use the-MaxMessageSizeInKilobytesparameter for theSet-AzServiceBusQueueCmdLet to specify a maximum message size in a ServiceBus Queue.Set-AzServiceBusQueue -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myQueue -MaxMessageSizeInKilobytes 100Seethe docsfor details.
I have a custom task in an Azure DevOps release pipeline that creates topics and queues. It works but giving the PowerShell script a list of the queues or topics to be made, that the script then uses to set everything up on an existing Azure Service Bus.I recently had to set up a Service Bus with queues that could hand...
Is it possible to set the max size of individual messages when creating a Service Bus queue through PowerShell?