Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
In 'eb init', you can choose an existing application/environment. Choose your existing app/env and it will download the settings from that and stores it in .elasticbeanstalk/config.yml file. You can double check that file and do your future 'eb deploy's.
I am trying to connect to my elastic beanstalk application that I created in the web browser console over CLI but every time I try to do anything it says I have not set up the directory with EB CLI and I must first run 'eb init'. However, I do not want to create a new application I simply want to access the old one ov...
Elastic Beanstalk CLI ERROR: This directory has not been set up with the EB CLI You must first run "eb init"
For hardware accelerated video encoding on macOS use: Format Encoder H.264 -c:v h264_videotoolbox HEVC/H.265 -c:v hevc_videotoolbox Example: ffmpeg -i input.mov -c:v h264_videotoolbox output.mp4 For options specific to these encoders see ffmpeg -h encoder=h264_videotoolbox and ffmpeg -h encoder=hevc_vi...
When I exec ffmpeg command, it use my CPU to render videos, it take long time to do this job, how i can force ffmpeg use my GPU to render? I have a macOS with AMD Radeon R9 M370X 2048 MB Graphic card. What I must install and what command i must use for this work? I use this commands when my script run: $source_decoder...
how to use ffmpeg with gpu support on macos
3 Could you try the command below? EXECUTE 'COPY '|| parameter_for_table ||' FROM '||CHR(39)|| parameter_for_s3_path ||CHR(39)||' IAM_ROLE '||CHR(39)|| parameter_for_iam_role ||CHR(39)||' FORMAT AS PARQUET;'; Please, let me know if you have any more questions, because I ...
I would like to prepare a manifest file using Lambda and then execute the stored procedure providing input parameter manifest_location. Stored procedure signature: CREATE OR REPLACE PROCEDURE stage.sp_stage_user_activity_page_events(manifest_location varchar(256)) and I would like to use this parameter as follows: CO...
Redshift copy from S3 inside stored procedure
Since July 2013 Elastic Beanstalk supports "single-instance" environments that have a single container instance running without a load balancer. Existing environments that are set up using "load balancing environment" can be switched to "single instance" and vice versa. Prior to this it was not possible to remove the ...
I would like to switch off Elastic Load Balancer (ELB) for my Elastic Beanstalk environment. Currently I don't need it and I don't want to pay for it. It is possible to delete the ELB in EC2 managment window but then Elastic Beanstalk health state is switched from GREEN to RED. I just found a information that it's n...
Elastic Beanstalk without Elastic Load Balancer
2 I have the exact same setup as you and mine is working with the below proxy config: location @rails { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirec...
I am running Nginx server with the puma on https. I configured Letsencrypt for SSL verification. The problem is that the server is running fine but when I try to create a user through devise it throws this error "HTTP Origin header (https://example.com) didn't match request.base_url (http://example.com)" I tried to mo...
HTTP Origin header (https://example.com) didn't match request.base_url (http://example.com) rails
0 Just want to add to the discussion that tensorflow may stop seeing a GPU due to CUDA initialization failure, in other words, tensorflow detects the GPU, but can't dispatch any op onto it, so it falls back to CPU. In this case, you should see an error in the log, like this...
I'm running a Python script using GPU-enabled Tensorflow. However, the program doesn't seem to recognize any GPU and starts using CPU straight away. What could be the cause of this?
Tensorflow doesn't see GPU and uses CPU instead, how come?
11 I believe getting the Common Prefixes is what you are possibly looking for. Which can be done using this example: import boto3 client = boto3.client('s3') paginator = client.get_paginator('list_objects') result = paginator.paginate(Bucket='my-bucket', Delimiter='/') f...
Doing something like the following: s3 = boto3.resource('s3') bucket = s3.Bucket('a_dummy_bucket') bucket.objects.all() Will return all the objects under 'a_dummy_bucket' bucket, like: test1/blah/blah/afile45645.zip test1/blah/blah/afile23411.zip test1/blah/blah/afile23411.zip [...] 2500 files test2/blah/blah/afile.z...
How to retrieve bucket prefixes in a filesystem style using boto3
Your regular expression for the first two RewriteRules matches your mobile path as well, sinceuser/(.*)/$just tests to see if the pattern matches at the end of the request path. You should add^to the beginning of your tests so they check that the entire request path matches, as follows:RewriteRule ^user/(.*)/$ /viewer/...
I have been using mod_rewrite for a while and love it. However, I am kinda stumped on what to do. Here's what I want to do:I have a mobile version of the website and I was going to redirecthttp://myflashpics.com/user/flashpicstohttp://myflashpics.com/mobile/user/flashpicsHere's my code:RewriteRule user/(.*)/$ /viewer/i...
Mod_Rewrite help!
This format (replacing the capitalized sections) should work:https://[email protected]/USER/REPO/BRANCH/PATHNote that this appears to block web browsers, you'd have to make a GET request from an HTTP client (like Insomnia) to test it. If this doesn't work in your plugin, please explain what happens, as it may be sendin...
How can I use personal access token to view raw content of files in GitHub? I tried to do it with token@raw..., username:token@raw... etc. but none of them worked.IMPORTANT NOTE:I need to use the token in URL.
Use personal access token to view raw content of files in GitHub
Yes,It works I tried it on scaleway for full backup of elasticsearch without making snapshot.I transferred data of/var/lib/elasticsearch/node/0fromserver 1toserver 2on the same location. On successful restart of elasticsearch, I can see healthy indexes onserver 2
I haveserver 1in recovery mode so it cannot take elastic snapshot.Server 2is having elastic running. Both servers are connected to the internet but not to the cluster.What if I copy data form/var/lib/elasticsearch/ofserver 1(which is in rescue mode) toserver 2?In this case, will elastic ofserver 2be able to recognize d...
Elastic data transfer from server 1 (in recovery mode) to 2
I think you use find_each wrong! Since you have too few users with a lot of paths, try to iterate a user's path with find_each so that not all paths of a user are loaded to memory. User.find_each do |user| points = [] user.paths.find_each { |path| points << [path.latitude, path.longitude, path.id] } end
I've got ten users, each with thousands (the counts are exactly 98956, 6954, 159732, 0, 40176, 541819, 218012, 52380, 93203, and 432) of path items. I need to iterate over each user, and work with their paths. I'm finding that each iteration increases memory usage, and after only a few users I'm using over a gigabyte ...
Why does iterating over data result in massive memory usage?
You probably added the git repository to a project instead of to the solution. The.gitfolder (the local git repository) must be in the same folder as the*.slnfile above all project folders. The solution folder is the parent folder of the project folders.I never made it, but I would suggest the following approach to fix...
I am using visual studios 2019. I have made a solution called VitekSky. In this solution there is an MVC project called VitekSky. After I was finished with the 1st project I decided to make a 2nd project in the same solution called VitekAPI. I was able to sync my first project to github but am unable to do so with my s...
How do push 2 projects in the same solution to my Github repository?
This is a rather broad question, on the verge of being too broad, but I'll give it a shot.If you're logging to regular text files, then they can be secured just like you would any other kind of file on your platform (by restricting user permissions, using filesystem encryption, using filesystem auditing, automatically ...
I am using my logback.xml to log to console and to an external file.I would like to use this as an auditing feature which logs when users perform certain actions i.e. log on/off etc.I was wondering if there is a way to make to log files immutable, since at the moment to log files that are stored are easily changed usin...
Getting logback.xml to log immutable logs
Laravel will not load new crons added in totem unless you do:php artisan cache:clearThat did the trick :DShareFollowansweredAug 12, 2018 at 12:28Ideal BakijaIdeal Bakija62955 silver badges1414 bronze badgesAdd a comment|
My tasks run when I execute them directly on the the dashboard but on when they are scheduled. But the scheduled command on Kernel they are running instead.I am running php 7.2 Laravel 5.6.* Totem 3.2
Laravel Totem no firing tasks.`
Not just godaddy, in my experience with other hosting I had to edit theSchedule.phpfile inIllmuniate\Console\Scheduling.And then I editedLine 49to thisreturn $this->exec("/usr/bin/php -ea_php 70 -q /home/xxxxx/xxxxx/artisan {$command}", $parameters);So basically this will run thequeue:workcommand or any other commands ...
I am running my web app under godaddy shared hosting, and I am trying to run a cron job which will call my schedule task in my laravel app. For some reason the scheduler is not being called. These are the commands in godaddy that I have tried so far:php /path/to/artisan schedule:run >> /dev/null 2>&1home/lulzimf/php /h...
Can't run a task schedule in Laravel using cron job in Godaddy
Is it a firewall issue? The Git protocol listens on port 9418.http://git-scm.com/book/en/Git-on-the-Server-The-Protocols#The-Git-Protocol
I tried to clone or pull repository from GitHub but nothing happened and also no error :(git clone https://github.com/test/test.git testCloning into 'test'...after this message nothing else. Any idea where I can check the error log? because same command is working on different server but not on Amazon EC2 instance.
Trying to clone or pull Git from GitHub but no error
After toying around with Redgate's Profiler API and looking at the CLR Profiler source code, I came to the conclusion that perhaps the easiest solution would be to simply do some UI automation. Using AutoHotKey I can start CLRProfiler on my app, find the correct allocations and dump the stats I need in text files.
I'm building a small simulation/profiling tool for an application that I'll be working on over the next year. The profiling tool is to be used in my build server such that it can generate some metrics of my application's performance as the development progresses. I have previous experience with memory profilers, but t...
Fine-grained memory profiling in C#
1 you just need to hit the ctrl+c and you will be redirected to the local location and than you type clear. Hope done so your question and it will be helpful to you Share Improve this answer Follow edited Ap...
I am using docker on windows with an Ubuntu Image. Everything is just fine on docker itself, but when I run one of those images, whenever I try to clean the screen, the cursor moves to the fist line but all of the others line are still there. The screen looks very weird.. Is there any fix or walkaround?
'clear' doesn't clean the screen when I run docker on Windows Command Prompt
0 To answer the question straight: There is no way in ansible to do something like the above without the usage of the shell module. This comes with all the downsides when using the shell module what shouldn't be used unless there is absolutely no other way around. However, ...
I have setup some VMs on a Hypervisor. Each of which is using a raw LVM Volume as disk. This way I can use LVM Snapshots to prepare a backup. Up to this point that is working and the only missing piece of the puzzle boils down to: How can/should I do something like this with ansible: dd bs=16M if=/dev/h-vg/vm-dev | ss...
how to backup raw- / kvm-device directly over the network
If you runaws eks describe-addon-configurationit will output the json schema for the addon. Ifreplicasis part of the schema, you will be able to set the number of replicas for the addon, otherwise you won't. Seehttps://docs.aws.amazon.com/cli/latest/reference/eks/describe-addon-configuration.html.
I have replaced theebs-csi-controllerinstallation with the AWS providedebs-csiadd-on. Everything is well and good but it creates2pods by default which I can scale it to1after the installation.I want to avoid the need to do this scaling manually and set the replica count to1in the installation phase itself. I couldn't l...
How to set replica count for EKS addon deployments?
if you want to assign the pod on particular instance or node you can use the kubernetes node selectorfor example :apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disktype: ssdhere it will ...
I use Google Cloud Platform for my project.Now, I have a cluster with 4 node pools:- "micro-pool": with minimal machines for managing the cluster- "cpu-pool": with cpu-only machines for processes that don't need a GPU- 2 "gpu-pools": two pools with machines that have GPUs attached.Now, what I need is for my CPU process...
How to prevent a GCE Kubernetes pod from working on a GPU instance?
What is your role in the repo? base ofthis git documentPeople with admin permissions for a repository can manage the forking policy for the repository
I have a repository and I want to create a fork, but there is no option to create a fork, and not only for me, but for another person as well. If I am trying to create a fork from someone else's repository, then I have the option to create a fork.repository -https://github.com/rovh/Noter
I can't create a fork on Github
You can't combine them in one record. The times do not match on any way. Of course if you have more jobs this eventually can be possible (depend on intervals)
Hello I am configuring jobs in GCP following the google cloud guide:https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules?&_ga=2.226390674.-907001748.1582817924#defining_the_job_scheduleI have to configure a job which will be executed once on weekdays at 6am and once on weekends at 5am. I am not pretty...
Configure a cron schedule for different intervals (hour and days)
You can't mount volumes at /, that's the root. Unfortunately you can't set the root device size in OpsWorks. But you could mount a volume somewhere else like /mnt/www and symlink there.
I am sure I am missing something obvious, but I can't find a way to set the default EBS volume size per layer. Every instance I boot on this layer has a 10GB volume by default. In the Layer configuration pane I try to add an EBS volume with the size I need, but it won't let me mount it on "/". I need this extra size ...
AWS OpsWorks: how to set the default EBS volume size per layer?
To backup only files that are tracked by git, you can use git-archive e.g. git archive -o latest.zip HEAD To backup all files (including untracked) you will have to use another utility such as zip or tar
In my git repository, I have few git track file modified and few untrack files modification. Is it possible to make a git patch or zip file that will contain all actual files both track and untrack files. That patch/zip file could be unpacked to view file contains even outside of that git repository. It is mainly to m...
Git make patch or backup file containing actual files
Spring Boot Admin register each application/client based on its name by below property.spring.boot.admin.client.instance.name=${spring.application.name}If all your pods have same name it can register based on individual ips by enablingperfer-ipproperty (which is false by default):spring.boot.admin.client.instance.prefe...
ProblemTrying to use Spring boot admin to do a deep monitoring of spring boot micro services running in Kubernetes.Spring boot admin listing the micro services but pointing to the internal IPs.Spring boot admin application listing page showing the internal IPThe application details page has almost zero infoDetailsKuber...
Spring boot admin listing kubernetes internal urls. Not able to navigate to the application page
You can try this JDK tools for heap analyzis: VisualVM jstat (console tool) RSS mem usage can be found on unix by comman line tools ps or top, or by JDK tool: jcmd <pid> VM.native_memory detail.diff (java process should be run with -XX:NativeMemoryTracking=summary JAVA_OPTS) RSS Peak usage can be found on linux in...
Is there a way to get the peak memory used at any given point during a java program run? So far I've only seen solutions that give total memory consumed.
How to get maximum memory used by java program
Unfortunately, there is no simple way to do that. Here are some related questions.Using env variable and configmap:How to pass command line argument to kubectl create commandUsing Helm:Kubernetes Deployment - Pass arguments
I have deployment yaml file where I am setting up one ARG.args['--country=usa']It runs perfectly and pod will be up with this argument. But for different country name, I need to change this yaml for argument and then runkubectl create -f deploy.yml command again and againIs there any way to pass this arg through create...
Can we pass the argument for Kubectl create command via terminal
You can achieve this by combining kubectl'spatchandapplyfunctions.kubectl patch cm source-cm -p '{"metadata":{ "name":"target-cm"}}' --dry-run=client -o yaml | kubectl apply -f -source-cmandtarget-cmare the config map names
I have a configmapmy-configin a namespace and need to make a copy (part of some temporary experimentation) but with another name so I end up with :my-config my-config-copyI can do this with:kubectl get cm my-config -o yaml > my-config-copy.yamledit the name manually followed by:kubectl create -f my-config-copy.yamlBut ...
Copy a configmap but with another name in the same namespace (kubernetes/kubectl)
While you can set the retention period on a stream as @DominikHelps said, that just deletes the messages; it will not delete the stream itself.You can use the CLI to find the streams for a log group, along with the time they're created:aws logs describe-log-streams --log-group-name Example --output text --query 'logStr...
After some time using AWS I find my cloudwatch is full of obsolete logs, is there a way to delete all log groups and streams by date? So I can clear all previous year logs.
How to delete all cloudwatch log groups and stream by date?
do you access to your service in browser? may be followingthis linkuseful for your problem.this linkso is useful for this problemShareFolloweditedMay 23, 2017 at 10:24CommunityBot111 silver badgeansweredJun 17, 2012 at 19:42hamed ajhamed aj2,00088 gold badges2727 silver badges3838 bronze badgesAdd a comment|
I am getting this issue only on my PC. I am using IIS Express 7.5 to host WCF services on my Local Port. I tried in different PC's its working good.Error:[CrossDomainError] Arguments:https//localhost:44300/ClientSyncService.svcDebugging resource strings are unavailable. Often the key and arguments provide sufficient ...
Silverlight CrossDomainError on IISExpress 7.5
1 You can pass the values in process.env or .env.local before creating the build using react's webpack. Share Improve this answer Follow answered Jun 24, 2020 at 8:22 prisarprisar 3,13922 ...
I have docker container with a react app and it used in docker hub registry, after that my ansible script deploys it to server. I need to pass env variables to react app.
How to access env variables in React with ansible
You should use:-v /etc/environment:/etc/environmentinstead of:-v /etc/environmentThe former maps container volume to the host volume. The latter tries to create a new volume at/etc/environmentand fails since this directory already exists.
I'm trying to build a data container for my application in Docker. I run this command to expose some volumes:docker run --name svenv.nl-data -v /etc/environment -v /etc/ssl/certs -v /var/lib/mysql -d svenv/svenv.nl-dataThe problem is that i get this error from this command:Error response from daemon: cannot mount volum...
Docker - cannot mount volume over existing file, file exists
I wrote to the GitHub team and this is what they had to say. It looks like you're running into an out of memory exception: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. Unfortunately GitHub Desktop does have some edge cases that can cause an OoM -- mainly when working wi...
I am using the latest version of the github desktop app(3.0.4) on a windows 10 machine. Recently, I am not being able to make commits. When trying to commit, the app goes to "committing" mode(loading..) and then nothing happens. It does not work when I try to commit a single file also.
Github commit not working on desktop app
-1This linkhelps you to write a correct expression for Grafana.Example in GrafanaRegex Formats multi-value variable into a regex string. servers = ['test1.', 'test2'] String to interpolate: '${servers:regex}' Interpolation result: '(test1\.|test2)'Based on that, you might want to modify your variables that you are try...
I have queries aliased as:"Temperature $Names1" and "Power $Names1"I would like my legend to read:"Temperature &lt;name&gt;" and "Power &lt;name&gt;"My legend works as expected, but I am trying to set an alias so I can plot the Power data on y-axis2 and set the color.Under visualization in "alias or regex" I have typed...
RegEx with variables in plot (visualization) alias in Grafana
You can configure auto-mtls for istio by configuringvalues.global.mtls.auto=true(ie it uses mtls when possible and falls back for other connectionshttps://istio.io/docs/tasks/security/authentication/auto-mtls/
We have configured the Kubernetes cluster on bare-metal server with v1.15.1 and Istio-1.4.0 (demo) with mTLS enabled. And our mysql server is outside the K8s cluster on Azure VM's. Now when we inject istio-proxy while deploying the application we are unable to connect to mysql server via jdbc and also tried my mysql c...
Unable to connect to mysql in Istio environment
Bundler pulls the source from the master branch and it gets the version of the gemhereShareFollowansweredAug 9, 2012 at 15:19HoaHoa3,18911 gold badge2525 silver badges3434 bronze badges0Add a comment|
This is a pretty basic question about how the bundler looks up gems.While trying to revert to a previous version of a gem I'm using in my Rails application, I get the followingbundle installerror:Could not find gem 'client_side_validations (= 3.2.0.beta.3) ruby' in https://github.com/bcardarella/client_side_validations...
How can I see what gems are available at a particular github url?
7 I've written a script to work around this issue. It can be run as one of the first build steps in TC's build configuration. The script will ask for pull request details from Github, parse the response and inject source and target branch names as TeamCity parameters and ...
I want TeamCity to build all pull requests to specific target branch, e.g. develop. So, I want to build following pull requests: develop...foo_branch develop...bar_branch and skip this: master...foo_branch master...bar_branch In TeamCity I can define branch specification to build all pull requests: +:refs/pull/*/hea...
Build pull requests to specific branch using TeamCity and Github
0 It sounds like you have a couple of different types of issues here with your current setup. 1) I don't have a good answer for this because I don't actually know much about rest clients in .net. You also may also get better results if you change your architecture as mentio...
I want to use Hazelcast in my Java application, but I also have .net applications which need to get/set data to/from the Hazelcast cache. I thought to use the "rest" approach. I have 2 questions: 1) How can I post and get a complex type? If I have a Person object with fields name (String), age (Integer), birthDate (Da...
How to use Hazelcast with restful?
The JSON'results'field is not returned because the requests per Ip that Twitter allows has reached themax quotaof available requests; this explains why from your domestic IP you don't have any problem and you don't get an HTTP 420 response code.Unluckily Google App Engine uses a shared pool of IP addresses*for outgoing...
I have a cron job in python that works on my localhost but when it is deployed to appengine, it no longer works.pl = db.Query(Venue).order("id") list = pl.fetch(limit=0) for p in pl: base_url = 'http://search.twitter.com/search.json?rpp=100&q=4sq.com/' query = p.twitter_ID url_string = b...
Cron works on local host but not when deployed Appengine
Prometheus automatically addsjobandinstancelabels to every collected metric:Thejoblabel is taken from thejob_nameoption, which is set inscrape_config. Thejoblabel is usually used for grouping metrics belonging to a particular application (which can run on multiple hosts).Theinstancelabel usually contains TCP address (e...
there is many apps (include many copies of a app , you know ,for testing them ) should be monitored, but prometheus seems doesnot support a mechanism that separate the data into each app's part, just like namespace.i think that each app use a new prometheus which data are mapped in different folder, or use the lable 'n...
how to do when monitoring many apps use prometheus?
A simple solution I found for graphing 2 values on one line:If your log file looks like thisMyValue1: 0.1, MyValue2: 0.3 MyValue1: 0.14, MyValue2: 0.34 MyValue1: 0.24, MyValue2: 0.39you can get a time series graph of first value using the followingmax_over_time({filename="/var/tmp/mylogs/mylog.log"} |= `` | pattern "My...
In Grafana Cloud, I have a Loki data source with many log lines in an arbitrary format. Let's say they're in the form of:MyValue1: 0.1, MyValue2: 0.3. I want to show the values ofMyValue1andMyValue2on a time-series graph, with each value shown at the corresponding line's time (the time is saved in Loki when the line is...
How to display time series data in Grafana based on Loki log query
Check out the--add-hostflag for thedockercommand:https://docs.docker.com/engine/reference/run/#managing-etchosts$ docker run --add-host="smtp:127.17.0.1" container commandIn Docker,/etc/hostscannot be overwritten or modified at runtime (security feature). You need to use Docker's API, in this case--add-hostto modify th...
how is it possible to resolve names defined in Docker host's /etc/hosts in containers? Containers running in my Docker host can resolve public names (e.g. www.ibm.com) so Docker dns is working fine. I would like to resolve names from Docker hosts's (e.g. 127.17.0.1 smtp) from containers.My final goal is to connect to s...
How to resolve docker host names (/etc/hosts) in containers
This PECL extension is not bundled with PHP, see morehttp://php.net/manual/en/yaml.installation.php. Just addingextension=yaml.soin yourphp.inidoesn't help you. You must install the PECL extenstion properly, e.g. if you use ubuntu image$ sudo apt-get install php-pear libyaml-dev $ sudo pecl install yamL $ sudo ...
I'm trying to addyaml_parse_fileextension on mydockercontainer. On theDockerfileI add this line to add the extension on thephp.inifile:echo 'extension=yaml.so' >> /usr/local/etc/php/php.iniBut when I rundocker-compose buildI get this warning:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php...
Add yaml parse to php.ini file using docker
Yes it is possible. NewAWS Service Cognitoallows you to provide AWS creds specific to the end user. You can use those creds to access different aws services likeDynamoDBor in your caseAWS Lambda.Is it safe to create IAM user that will have only permission to execute this one particular function and hardcode this use...
I have Lambda function that executes in minimum 12 seconds so I can't expose it via AWS API Gateway (because of 10 sec timeout). What I was thinking is to call/execute Lambda function directly from frontend through AWS javascript SDK. Is it safe to create IAM user that will have only permission to execute this one part...
Is it possible/safe to call AWS Lambda function directly from frontend?
One way is to create an upstart job. That way your app will start once Linux loads, will restart automatically if it crashes, and you can start / stop / restart it by sudo start yourapp / sudo stop yourapp / sudo restart yourapp. Here are beginning steps: 1) Install upstart utility (may be pre-installed if you use a s...
Is there a brief guide to explain how to start up a application when the instance starts up and running? If it were one of the services installed through yum then I guess I can use /sbin/chkconfig to add it to the service. (To make it sure, is it correct?) However, I just want to run the program which was not installe...
How can I automatically start a node.js application in Amazon Linux AMI on aws?
A simple, non-Celery way to approach things would be to create custom django-admin commands to perform your asynchronous or scheduled tasks. Then, on Windows, you use the at command to schedule these tasks. On Linux, you use cron. I'd also strongly recommend ditching Windows if you can for a development environment. ...
Something I've had interest in is regularly running a certain set of actions at regular time intervals. Obviously, this is a task for cron, right? Unfortunately, the Internet seems to be in a bit of disagreement there. Let me elaborate a little about my setup. First, my development environment is in Windows, while my ...
Scheduling a regular event: Cron/Cron alternatives (including Celery)
To answer your questionMohamed ShehataIs it possible to buy wildcard app service certificate with the same name (*.domain1.com) under multiple different subscriptionsAs per the below screenshot conversation we can have wildcard app service with the same domain or we can even have same app service in different subdomain...
Is it possible to buy wildcard app service certificate with the same name (*.domain1.com) under multiple different subscriptions?Would that cause any issues? may be invalidate existing certificates in other subscription?Thank you.
App service certificate - possibility of purchasing wildcard certificate with same domain name in different subscription
+100Yes, its a bit of a pain. There's an online envoyconfig checkerthat helps a bit in determining exactly which versions ditch backwards compatability.You have correctly switched from the legacyconfigtotyped_configdata.However, it looks like you inadvertently included a tab in your latest config (line 15) which causes...
I am following thistutorial, in order to have a gRPC service transcoded to HTTP. However, it is not up to date, since it uses envoy API v2, but this is not anymore available (I am getting an error saying this), they are now using the v3. Therefore, the syntax is slightly different.For the v2, this snippet has no syntax...
Illegal map value with envoy v3 about typed_config http connection manager
found it I don't know why URL Rewrite module was adding URL ashttp://http://localhost:9000/{R:1}I manually changed it tohttp://localhost:9000/{R:1}and it worked
I am trying to setup SonarQube with SSL on Windows Server 2019. I can access the SonarQube server locally on the server usinghttp://localhost:9000.I followed the exact steps asoutlined hereto setup reverse proxy in IIS using URL Rewrite module. I see the Re-Write URL set tohttp://http://localhost:9000/{R:1}However whe...
Setting SonarQube for SSL using IIS and Reverse Proxy throws 502 error
Store the query in a variable. Then use theOLE DB Sourcecomponent in the Data Flow Task and set the 'data access mode' tosql command from variable.ShareFollowansweredJul 5, 2022 at 8:48Mostafa NZMostafa NZ38211 silver badge66 bronze badgesAdd a comment|
I am a newbie to SSIS and currently struggling with executing SQL task saving the result in a result set and exporting each table to a respective CSV using a data flow task.There are 15.sqlfiles stored in a folder which I am creating a variable calledFolderPathpointing towards them. Then I create a for each container t...
Export a folder of SQL queries into CSV in SSIS
I would expect you are on Apache 2.4<FilesMatch "\.(txt|pm)$"> deny from all </FilesMatch>Denyis an Apache 2.2 (and earlier) directive and is formerly deprecated on Apache 2.4 and moved (from abasemodule) to mod_access_compat (an optional extension). This module is probably not enabled, hence the error.You should be us...
i'm trying to set up this:https://github.com/oprel/emanonBut everytime i try to run post.cgi i receive this error on the error log:[Sat Jul 02 13:03:13.380647 2022] /fs5d/9kun/public/board/.htaccess: Invalid command 'Deny', perhaps misspelled or defined by a module not included in the server configurationThe 'Invalid ...
.htaccess cgi perl - Invalid command 'Deny', perhaps misspelled or defined by a module not included in the server configuration
2 There's no way we could possibly know, since we don't know what you're trying to do. But the basic answer is: If the collection logically owns the things in it, you are doing it all wrong. Never use ordinary collections of ordinary pointers for this purpose. Things will ...
I want to know that should i explicitly deallocate the pointers which are erase from a vector by myvector.erase(); . For example; Class Sample1{ public: removeSample2(Sample2 * a) { if(// if i find that a is in my sampleList1 vector with index i ){ // should i call ...
pointers,deallocation and vector in c++
1 You could look in the module vcsrepo/lib/puppet/provider/vcsrepo/git.rb near the bottom of the file at: def git_with_identity(*args) add the following just under the above line: if @resource.value(:http_proxy) ENV['http_proxy'] = @resource.value(:http_proxy) ENV[...
Trying to use vcsrepo module from puppet to install a GIT repository for devstack. Using https://github.com/... But am behind a firewall. There is a proxy server available for http, https, and FTP access to the Internet. Is there a way to include the proxy, when using this module? I didn't find anything in the vcsrep...
Puppet vcsrepo behind firewall?
Credit to @Hans Kilian:Addextra_hoststo docker-compose fileChange URL to usehost.docker.internalinstead oflocalhostChange service to serve on0.0.0.0instead oflocalhost
I have an API running on my host machine on port 8000. Meanwhile, I have a docker compose cluster with one container that's supposed to connect said API. To get the url for the request, I use "host.docker.internal:8000" on my windows machine and it works wonderfully. However, I have a linux deployment server and in the...
Connection Refused from Request Inside Docker Compose
It won't fail unless you've run out of memory (which would happen with any other allocator as well) - but your code will usually run much quicker if you manage to estimate the required storage upfront.Often it's better to do an extra loop run solely to determine the storage requirements.I wouldn't say thatreallocis a n...
I am usingreallocin every iteration of aforloop that iterates more that 10000 times.Is this a good practice? Willrealloccause an error if it was called a lot of times?
How much overhead do realloc calls introduce?
See the page ofCUDA in Wikipedia, there is a valid specification to all devices. it will be inCompute capability (version) section.But here is a photo about it:
Recently, I am reading the book 'Programming Massively Parallel processors'. One of the reading exercise in chapter 3 ask me to detect which assignment for SM is possible. The problem looks like belowIndicate which of the following assignments per multiprocessor is possible:8 blocks with 128 threads each on a device wi...
CUDA: What is the thread block limitation of devices whose compute capability is 1.0?
Take a look ap4 triggercommand. It is synonymous withgit hooksand lets you run a script that pushes the assets to your github repo every time they change.
I have a set of files in a Perforce project that get updated by users from time to time. I have a copy of those set of files in a directory in a separate Github project. I want to be able to automatically sync those files in my Github repo or my local copy in my workstation any time there is a change made to those file...
How do you sync files between perforce and git repos
Your understanding of heaps is wrong. In general, modern heaps do not rely on allocating a large chunk of data and then parcelling it up with each allocation as you assume (although they may use this as one of their strategies). This means there is no well defined 'start' or 'end' of a heap. As an example, by default,...
I'm creating a memory management system and i need a way to find in which heap an allocation I make is. for example i use HeapAlloc and use the heap returned by GetProcessHeap() as the heap to allocate to I would expect it to allocate to that heap, but appears as though it doesn't. When I use GetProcessHeaps to run th...
Find which heap an address belongs to?
12 You can try with docker.for.mac.localhost Share Improve this answer Follow edited Feb 13, 2019 at 3:01 Bhargav Rao 51.1k2828 gold badges124124 silver badges141141 bronze badges ...
I am using latest Docker for mac. I am running into this strange issue. I can access my webapp via http://127.0.0.1/ but not http://localhost/ however I can access https://localhost/ (self signed cert). So, I am not sure what is wrong here. This is my docker compose. version: "3" services: php: build: cont...
localhost not working in docker for mac
You can add multiple containers to the same pod, but that's only recommended if the services are tightly coupled, like if they need to communicate. For example, if you have a web server and a sql database, you would likely want them in the same pod.If the services are distinct, you would likely want to put them in diff...
I am new to kubernetes, just wanted to know if my question is valid.I had a question if a single POD can host 2 or more services.And If it can host multiple services, how can it differentiate the traffic between the services.Does it do a PORT mapping.Please, let me know.
Kubernetes: Can a single K8s POD host 2 or more K8s services
1 Normally, you should be able to clone it the same way as a normal repository. Share Improve this answer Follow answered Nov 12, 2019 at 17:45 LocknaLockna 74111 gold badge88 silver badge...
I am using github3.py library for my remaining code modules. So if possible can we use github3.py lib for cloning a repo or any other python library is also good.
Clone a Githubenterprise Repo using python libraries
You can simply overwrite therequireof your root-.htaccesswith the following require-setting in the.htaccessof your subdirectory:Require all deniedAlso see:https://httpd.apache.org/docs/current/upgrading.htmlIf you'd like to do this file by file, use:<Files "important.json"> Require all denied </Files>
I'd like to use settings in my.htaccess-file to exclude certain files from being displayed.For some files (heredata/important.json) I want that even authenticated users are exceluded from viewing the content those files.For other files (hereshowerror.php) I'd like to give access to everyone.The .htaccess-file in my roo...
Hiding files even from authenticated users using .htaccess
Potentially you can provide a token via SSL, and pass that token in your UDP packets. But this is useless without encryption: an attacker can intercept the UDP packet, grab the token and quickly do the attack using stolen token.Another option would be to exchange symmetric keys via SSL and use those keys to encrypt UDP...
I chose SSL for registration in my game client. The client communicates with the game server which stores a salted/hashed password.If I use SSL to authenticate users on login, but the game does all of it's communication with UDP packets, how does the server know that the UDP packets it's receiving is from the authentic...
How do SSL authenticated users prove authenticity through UDP packets?
You are approaching this problem from the wrong side. The solution is to never put confidential information into Git or any other VCS. Don't hardcode the username and password. The whole reason why you have it in a variable is because these details should be variable and come from outside the file. There are two gen...
This question already has answers here: Committing Machine Specific Configuration Files (10 answers) Closed 3 years ago. Consider from the view point of wev developer, a public run...
Saving server credentials on repo on GitHub : Recommendations [duplicate]
-1You can add this link into your header with proper file location<link href="<?php echo get_template_directory_uri(); ?>/css/style.css" rel="stylesheet" type="text/css" />get_template_directory_uri() will go upto your theme go to header.php add<link href="http://example.com/wp-content/themes/MyTheme/extra.css" rel="st...
I inherited a Wordpress project.I added a CSS file to theme (e.g.extra.css).But if I try to load it in the browser like so:http://example.com/wp-content/themes/MyTheme/extra.cssI get a 'page not found' error. The file IS on the server in that directory.If I create a new folder in the theme folder and try the URL, like...
CSS files "not found" with default Wordpress .htaccess settings
You can put this code in your htaccess (which has to be in root folder)Options -MultiViews RewriteEngine On RewriteCond %{THE_REQUEST} \s/read\.php\?id=([0-9]+)\s [NC] RewriteRule . /read/%1? [R=301,L] RewriteRule ^read/([0-9]+)$ /read.php?id=$1 [L]
I am trying to convert this:site/read.php?id=6tosite/read/6I have tried a couple of solutions found on SO, with the last one being (to output:site/read/id/6):RewriteRule ^(.*?\.php)/([^/]*)/([^/]*)(/.+)? $1$4?$2=$3 [NC,N,QSA]When I try the second link, it will hang, and apache crashes (LOL).Not sure if it has a problem...
URL Rewriting returns 500 internal server error
The<meta http-equiv>tags are only used when the HTML file in question is been opened from a non-HTTP resource such as local disk file system (viafile://URI) and not when the HTML file in question is been opened from a real HTTP resource (viahttp://URI). Instead, the real HTTP response headers as set viaHttpServletResp...
i have this code here on a page:<!-- no cache headers --> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <!-- end no cache headers -->when i go to other page and hit back button of browser (back ...
is meta http-equiv value cache control is not supported?
It's been 4 months since I tried a fix, and I did not experienced the bug again. Still, I don't have the exact explanation for the bug, but here is what I tried and it seems to work: My guess was that having the same .NET CLR Assembly in each of our 5000+ databases might be the problem and increased memory usage for ....
First of all, here is our setup: SQL Server 2014 SP2 Standard Edition 64-bit 128GB of RAM (maximum allowed by Standard Edition), of which 120GB is allocated to SQL Server The server currently hosts ~5000 databases which are all similar (same tables, stored proc, etc.) for a total of 690GB of data (mdf files only) No...
How to definitely fix this error: .NET Framework execution was aborted by escalation policy because of out of memory?
Add the following line at the bottom of your config/environment.rb Redmine::Utils::relative_url_root = "/redmine" Start the thin server with --prefix /redmine, in my case: thin start --prefix "/redmine" -s1 --socket /tmp/thin.sock Change your nginx configuration to: location /redmine { proxy_pass http://redmine/...
I installed redmine with thin and nginx on my raspberry pi. I am able to access my redmine installation using http://raspberrypi/. However I want it to be http://raspberrypi/redmine. My current (working) nginx site config looks like this: upstream redmine { server unix:/var/run/thin/redmine.0.sock; } server { lis...
Nginx with redmine as sub uri doesn't work
When using GP2 volumes, you have to consider two concepts:Baseline performance - represents the performance level without IO credits, proportional to the size of the volume and capped at 16000 IOPS.Burst balance credits - provides higher IO rates above baseline performance for a limited amount of time, up to 3000 IOPS....
As I understand it General Purpose SSD's on an RDS instance have an IOPS limit based on the disk size until you get to 1TB when you can infinitely burst at 3000 IOPS.Once you have a 1TB disk you can burst continuously at 3000 but I can't find any information on how this is capped or limited, could you in theory use 200...
RDS IOPS limits
Unfortunately, there is no such option in GitHub Web UI at this moment.
Bitbucket's web interface provides a nice 'Sync' option for branches. It actually merges master-branch in any selected branch from the UI. I have not found, is there a similar option in Github web interface?
Bitbucket Sync branch equivalent in Github
I recommend using SSH key authentication, so you do not need to type in your login and password everytime you connect to GitHub. First follow the documentation tosetup SSH authentication.Then use the clone command with SSH link to your repo and it should work.[user@BC-01 gitTEST]$ git clone[email protected]:<username>/...
I would like to clone a private already existing repo to my local server. I've tried a series of commands to no avail.[user@BC-01 gitTEST]$ git clone https://github.com/*****/Clinical.git Initialized empty Git repository in /home/dir/gitTEST/Clinical/.git/ error: The requested URL returned error: 403 Forbidden while ac...
Would like to clone private repo to local computer. (first time using command line git.)
You can mount a host directory into your docker container using-vflag.For details see this answer:https://stackoverflow.com/a/23455537/7695859.docker run -v /host/directory:/container/directory -other -options image_name command_to_runFor more details understanding see these official docs.Use volumesManage data in Dock...
I'm trying to test a Django app managed by Docker. Since it's a development project only used by me, I'm using a sqlite3 database backend. However, because I'll be populating this test database with a lot of generated data, and because I don't fully trust Docker, I want to store this sqlite3 db file outside of the cont...
Giving Docker access to db file outside container
Two functions you might find useful are:GC.GetTotalMemory(); Process.PagedMemorySize64();My experience has been that GC.GetTotalMemory() is not terribly reliable. It often reports memory usage that is much smaller than the actual memory usage. I've seen it report that I'm using only 8 gigabytes when my program runs...
I have an app that, while running, needs to poll its own memory usage. It would be ideal if it could list out the memory usage for each object instantiated. I know this can be achieved by WMI, but I was hoping for something that doesn't rely on WMI.
Poll C# app's memory usage at runtime?
Found it! The way to keep the other ones is to have an extra rule to catch them, like so:<match kubernetes.var.log.containers.kong**> @type rewrite_tag_filter <rule> key log pattern /HTTP/ tag access.log </rule> <rule> key log pattern /.*/ tag app.log </rule> </match>
I have a Kong container in my k8s cluster which outputs all logs to stdout, so I have in stdout all logs mixed. Is there a way to tag the access logs based on a regex without excluding the other ones?I've used:<match kubernetes.var.log.containers.kong**> @type rewrite_tag_filter <rule> key log pattern /.*HT...
Separate access logs from application logs with FluentD
I found out what the problem was...it was not related to upgrading Android Studio. I refactored and change the name of one of my classes, only changing it to lowercase from uppercase. But looks like GIT has problem with that:Git case-sensitivity error -- renaming and committing from Android StudioSo it basically delete...
I upgraded myASfrom'1.2'to'1.3', and now I want to commit the changes I made and I get this error:Error:pathspec 'app/src/main/java/com/blahblah' did not match any file(s) known to git.Can anyone save me?
Can't Commit After Upgrading Android Studio
Yes, I've seen this before after a developer accidentally checked in a SQL dump into the repo. GitHub for Windows doesn't do well with large repositories. Instead, fire up GitGUI and do the clone yourself withgit clone REPOSITORY_URL. (As a bonus, you'll get a progress bar).ShareFollowansweredFeb 28, 2014 at 1:27Som...
I am running GitHub gui on Windows 7, added a repository with an existing site (about 600mb) and when I click on 'open repository' I see 'loading changes' with the loader but after about 2 min the loader stops and the program hangs until the point windows asks if I would like to restart or close the program.Anyone else...
Windows 7 GitHub hangs while loading changes from large repository
Useerrbackalong with callback:Request(url, callback=your_callback, errback=your_errorback)anderrback:def your_errorback(self, response): //your logic will be here
I am looking to handle a DNS error when scraping domains Scrapy.Here's the error that I am seeing:ERROR: Error downloading <GET http://domain.com>: DNS lookup failed: address 'domain.com' not found [Errno 8] nodename nor servname provided, or not known.How could I be notified when I get an error like this, so that I ca...
how to scrapy handle dns lookup failed
Tornado 4.0 introduced an, on by default, same origin check. This checks that the origin header set by the browser is the same as the host headerThecode looks like:def check_origin(self, origin): """Override to enable support for allowing alternate origins. The ``origin`` argument is the value of the ``Origin`...
I have an older tornado server that handles vanilla WebSocket connections. I proxy these connections, via Nginx, from wss://info.mydomain.com to wss://mydomain.com:8080 in order to get around customer proxies that block non standard ports.After the recent upgrade to Tornado 4.0 all connections get refused with a 403. W...
Under tornado v4+ WebSocket connections get refused with 403
Alpine is built using theMUSLC library. You cannot run binaries that have been compiled for glibc in this environment. You would need to find agobinary built explicitly for the Alpine platform (e.g. by runningapk add go).
I'm trying to write a dockerfile that uses alpine and takes advantage of a precompiled golang.docker run -it alpine:latestwget https://dl.google.com/go/go1.12.9.linux-amd64.tar.gz --no-check-certificate tar -C /usr/local/ -xzf go1*.tar.gzI'm getting /bin/sh/: ./go: not foundcd /usr/local/go/bin/ ./goIt works fine on m...
precompiled golang on alpine
i have checkout a particular commitThat is adetached HEAD: you need to create a new branch where you are. It will start from the 8th commit and you can add your work in progress in it.git checkout -b newBranch git add . git commit -m "new branch" git push -u origin newBranch
I have agitwithbranch. In thisbranchi havecheckouta particular commit to separate folder.Now I have added some of files to this particular branch id with changes. now my time to save this togit.But I am wondering, if I commit andpushmay it impact on other commits sits on top of this commit ID.How to handle this scenari...
How to commit to particular branch ID without losing the top other commits?
The C standard does not require memory for variables to be allocated contiguously. In fact, memory might not even be allocated at all if the compiler decides it can optimize by keeping a value in a register instead. If you declare a struct, the contents of the struct will be ordered the way you declare them, but you ...
I writing a simple program, after declaring a variables I am checking the addresses of variables but memory is not allocated contiguously there are gaps in between. here is my program. why is leaving gaps i am not understanding #include < stdio.h > #include < stdint.h > int main() { char char_one,char_two; ...
gcc compiler is not allocating memory contigously
The standard process is to run the following command:$ sudo /opt/bitnami/apps/wordpress/updateip --appurl /This command changes the following options:Check the /opt/bitnami/apps/wordpress/conf/wordpress.conf file. It should be similar to this:# App url moved to root DocumentRoot "/opt/bitnami/apps/wordpress/htdocs" #Al...
I created a server on Bitnami hosting and installed Wordpress on my EC2 instance. I am facing two issues now:I am able to access my wordpress website usinghttp://<my_domain>/wordpressbut I want it to be accessed directly by visitinghttp://<my_domain>. I know there are many ways that are listed on your website but none ...
Having problems changing the default URL to root in wordpress
You may want to ensure, that in the Cloudfront distributionBehaviorsettings, optionQuery String Forwarding and Cachingisnotset toNone (Improves Caching)You can find more info regarding that option in thedocumentation.
Short Overview.I host an Angular Application on an S3 Bucket. I also got an Cloudfront distribution to handle HTTPS and Redirects.I try to form an querystring parameter depending on which URL the user is connecting to.2 examplestest.example.com --> example.com?id=test hello.example.com --> example.com?id?helloSo far i ...
AWS Lambda@Edge append querystring to response
Git LFS handles files of nearly arbitrary size just fine (although hashing them can be expensive). However, GitHub has a 2 GiB file limitation for individual and free accounts; the limit is 4 GiB for team and 5 GiB for enterprise accounts.If you have an individual or free account, you'll need to store this data elsewh...
I am trying to upload a json file of 2.3GB to GitHub repository but it raises an error as the maximum size for GitHub with Git LFS seems to be 2GB. What can I do to upload it? I am deploying an app and I need all the files together in the same repo.
Upload a file of over 2GB to GitHub repository
With OpenShift 4.x, you can find the unique Cluster ID for each cluster in theclusterversionCRD:$ oc get clusterversion -o jsonpath='{.items[].spec.clusterID}{"\n"}'Theclusterversionobject looks like this:$ oc get clusterversion version -o yaml apiVersion: config.openshift.io/v1 kind: ClusterVersion metadata: name: ...
I'm looking for a way to uniquely identify a cluster:Something that can't be moved to another cluster such as a secretSomething that can be accessed by the application (e.g. an environment variable or stored in an object that can populate env varsSomething that is unlikely to change over time for a given cluster.What w...
How to get a unique id from a Kubernetes or Openshift cluster?
Base64 has a 30% overhead, and strings have a 100% overhead (as acharis 16 bits). That makes a 160% overhead (1.3 * 2.0 = 2.6) for keeping the data as a base64 string in memory.You are keeping all the data in theDataSetin memory, along with theStringBuilder, along with the final string, along with the final result. Tha...
My software has a feature that allows users to upload files which are stored as byte strings in my database.The code works like this:The number of bytes in the file is calculated, and a byte array is created that has that length. The file is then read into the byte array. From here, the file is split into pieces and ...
Why can I upload a file, but not download it without getting an Out of Memory Exception?
3 Modulo operations are reasonably expensive: I am reasonably sure adding in the modulo would use more time than just having a single instruction that only 1 thread executes. Your single branching statement, an if with no else, will only hang the other threads while that if...
Most of the time a branch is required in a CUDA or OpenCL program, like: for (int i=0; i<width; i++) { if( i % threadIdx.x == 0) quantity += i*i; } the code can always (or at least, most of the time) be rewritten in non-branching style: for (int i=0; i<width; i++) { quantity += i*i* (i % threadIdx.x != 0);...
CUDA /openCL; rewriting branches as non-branching expression
Options such as--imagemust typically be separated byeitherspace or an equals sign from their value. So--image="$image"and--image "$image"will probably both work. "Typically" and "probably" because there's nothing stopping someone from writing some really crazy argument handling to actually support the way it's run here...
I am preparing shell(.sh) scripts to use my kubernetes and pks command line in kubernetes command we have flags like --image and i am not able to pass the arguments in iti have tried the convential way of passing the arguments like image=$1echo $imagethe echo statement prints the value well and good $ name is also pa...
passing values to a flag in bash script
chownchanges the owner,chgrpchanges the group. Because you have user and group both namedmaster16ghaving1000as UID and GID respectively, this is why you see the user name and the group name on the list.chownaccepts UID as parameter as well as username, this is well documented in the manual.chgrpalso accepts GID and gro...
I am reading a blog to integrate EFK(a log system) into k8s in centos 7.4. There are following instructions:# mkdir ~/es_data # chmod g+rwx es_data # chgrp 1000 es_data # chown 1000 -R es_data # ls -l /root/es_data/ total 8 drwxrwxr-x 2 1000 1000 4096 Jun 8 09:50 ./ drwx------ 8 root root 4096 Jun 8 09:50 ../I log i...
What does 1000 mean in chgrp and chown?
I'm guessing you're using Ruby 1.8.7. It seems that the syntax shown in the Sinatra docs, where the last entry in an array is converted to a hash, was introduced in Ruby 1.9 and isn't in 1.8.7.Try explicitly wrapping the hash entries with braces{}:set :static_cache_control, [:public, {:max_age => 300}](Or upgrade Ruby....
I'm not sure why but when I set this setting it can't compileset :static_cache_control, [:public, :max_age => 300]This is what I getsyntax error, unexpected tASSOC, expecting ']' (SyntaxError) set :static_cache_control, [:public, :max_age => 300] ^I just want to set "...
Sinatra set cache_control to static files in public folder compile error
Your Laravel server needs to add awebhooklistener, for listening to aGitHub push event, and deploy the app from the latest pushed commit.See for instanceantonioribeiro/deeployerThis package is intended to be used for those that are hosting their websites in VPS (dedicated server or any other hosting provider that doesn...
There is this project in which I have priviledge to, and periodically I would need to update the content of the site.It is built with laravel 5.3, hosted on linode plus laravel forge.I made few commits to the remote, it shows the changes on GitHub but the changes does not reflect on the live web app.Just wondering wher...
Laravel 5.2 Web app not showing changes after committing with github desktop
First of all, this is not how you handle an exception of a given type. Instead, you catch that type: try … catch ex as OutOfMemoryException … end try Secondly, you generally don’t handle OutOfMemoryException. You can’t, because you already ran out of memory and in most situations there is nothing you can do a...
Seems like a relatively easy question, but i have tried a few things and could not figure out how to catch an exception of type out of memory. Here are a couple things that i have tried: try catch ex as exception if ex = outOfMemoryException then ' do something here end if end try try catch ex as exception d...
How to catch an out of memory exception vb.net
1 This is different than what worked for the OP (hopefully they put their solution in an answer here). I was able to solve this problem by installing an external SSH client (like PuTTY for Windows) and then SSH into my website using its IP address. Then I followed these ste...
I have a shared host and they don't give me ssh or terminal for it. I've tried to clone my private repos from git by Git™ Version Control so I am using ssh link because they need permission. I don't know how to make ssh key on cpanel so I can make it from my mac and upload to cpanel and also add to Github. But when r...
How to clone github private repository in cpanel (shared host without terminal or ssh)?
In a kubernetes cluster, a pod could be scheduled in any node in the cluster. The another pod which wants to access it should not ideally know where this pod is running or its POD IP address. Kubernetes provides a basic service discovery mechanism by providing DNS names to the kubernetes services (which are associated ...
If I'm running processes in 2 pods that communicate with each other over tcp (addressing each other through Kubernetes services) and the pods are scheduled to the same node will the communication take place over the network or will Kubernetes know to use the loopback device?
How do pods on the same node communicate with each other?
You need to push a branch named gh-pages in order to view it as a website. Create a new branch and then move the file into the root folder of the branch, upload it to the gh-pages and you set to go. Check this out: https://github.com/nirgeier/JimVliet.github.io/tree/gh-pages This is how your file should be inside your...
So I made a Typescript project with Visual Studio. It works fine when I launch it with Visual Studio, but if I try to push it to my GitHub Pages site, it will put the index.html in a subfolder and I get a 404 error when I try to load my website. Even if I try to reference the index.html in the website url it doesn't ...
How do you publish a typescript website to GitHub Pages using Visual Studio?
No, you should not do this. When youallocthe arrays, you need to release them. The containing array will handle memory management for its objects (retaining them when they're added, releasing when they're removed), but that is beside the responsibility of the object that created to the arrays to properly release them. ...
NSArray *tLines = [[NSArray alloc] initWithObjects: [[NSArray alloc] initWithObjects:@"Matt", @"David", nil], [[NSArray alloc] initWithObjects:@"Bob", @"Ken", nil], nil]; self.lines = tLines; [tLines release];I'mallocingNSArrays within anNSArray, will the nested arrays get released...
Will this Objective-C, nested NSArray cause a memory leak on iPhone?
Check in yourVirtualHosts (and thenhttpd.conf) configuration files for theAllowOverridedirective.Set it to allow all declaration inside an.htaccessfile:AllowOverride All
I'm building a URL friendly system. Host is a local machine, Ubuntu 15.10.The software was working, but i made a mistake and removed an apache2 directory. So i purged apache withsudo apt-get purge apache2 php5 mysql-server, then i reinstalled all:sudo apt-get install apache2 php5 mysql-server.After reinstalled i tested...
mod_rewrite already enabled but still get 404
You can catch it like any other exception:try { foo(); } catch (const std::bad_alloc&) { return -1; }Quite what you can usefully do from this point is up to you, but it's definitely feasible technically.
There is a method calledfoothat sometimes returns the following error:terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc AbortIs there a way that I can use atry-catchblock to stop this error from terminating my program (all I want to do is return-1)?If so, what is the syntax for i...
How to deal with bad_alloc in C++?