Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
How should I write path to my crons controller?You shouldnotdo that at all. If not properly protectedanyonecould trigger your controller from the web. Also that's not what a controller is made for.Use a shell(or a shell command through cpanel for crons)Assuming that the CakePHP core is in/home/mysite/public_html/lib/Yo...
I use shared hosting so I can't access to shell.I have CronsController and i want to run index action of controller.From cpanel I add cronjob like this:php -q /home/mysite/public_html/app/cronsBut this doesn't run the crons/index action.How should I write path to my crons controller?
Cron job path for CakePHP
Herehttp://developer.yahoo.com/yui/theater/video.php?v=dahl-nodeNode.js author says that Node.js is still in development and so there may be security issues that NginX simply hides.On the other hand, in case of a heavy traffic NginX will be able to split the job between many Node.js running servers.
From what I understand Node.js doesnt need NginX to work as a http server (or a websockets server or any server for that matter), but I keep reading about how to use NginX instead of Node.js internal server and cant find of a good reason to go that way
What is the benefit of using NginX for Node.js?
Have a look atlocalstack, which is a local AWS cloud stack. It provides implementations of several of AWS services, including AWS Firehose and also S3.
We are currently usingMinioas our solution to S3 for local development and we are looking for a similar Solution for AWS FireHose. Has anyone dealt with this, I can't seem to find any existing solutions for this online? It doesn't need to be extremely fast or handle a lot of data but does need to fit in with AWS client...
Are there any compatible Alternatives to AWS Firehose for local offline Development
SQL Server 2016 onwards you can do this usingTemporal tables:A system-versioned temporal table is a type of user table designed to keep a full history of data changes, allowing easy point-in-time analysis. This type of temporal table is referred to as a system-versioned temporal table because the period of validity for...
What is the best approach to audit the database for:Make a copy of the deleted and updated records.Save the date and user ID of the ones who did the DML which is (the ID) was saved on a session in ASP.NETMy manager told me to add 3 extra columns to each table one for theIDof whom updated the record, one for whom delet...
Auditing with ASP.NET and SQL Server
Write a small PHP script (or similar) that prints the number of records in each table, and install it onto your websites. When you download your backups, load them into a local database and run the same script locally against that database, comparing the results with the ones out on the web.
I have a few remote databases, hosted at my web hosts. For mysql, I use periodic mysqldump and for MSSQL, I use bcp to back them up. How do I validate those backups? How do I make sure that the backup was not partial (its done over the public network).
How to validate database backups
Generally thekubectl logsshows the first process's stdout (pid=1). So you could try put logs to /proc/1/fd/1 in you pod.An example command in pod:echo hello >> /proc/1/fd/1Then you will able to see thishellobykubectl logs.For you scriptrestorebackup.sh, maybe you could trysh restorebackup.sh >> /proc/1/fd/1to redirect ...
I have a mysqldb pod and need to add a log when we run a script restorebackup.sh. The script is inside the pod and i need this log in the general logs of the pod (to access it with kubectl get logs services/mysqldb).There is any way to do this?
how to generate a log in kubectl pod by command line
Looks like you need to configure a root (index) document: http://docs.amazonwebservices.com/AmazonS3/latest/dev/IndexDocumentSupport.html http://aws.typepad.com/aws/2011/02/host-your-static-website-on-amazon-s3.html
I am looking into serving my static site with Amazon S3. I have created a bucket and uploaded my files; under the “Website” tab in the AWS Management Console I have checked “Enabled” and entered index.html in the “Index Document” field. I have the following bucket policy: { "Version": "2008-10-17", "Id": "924...
Why doesn’t Amazon S3 automatically serve /foo/index.html when I ask for /foo or /foo/?
I think you are looking formod_proxyand theProxyPassdirective instead.Something like:ProxyPass /blog http://blog.website.com ProxyPassReverse /blog http://blog.website.comShareFollowansweredApr 13, 2015 at 21:12M. Adam KendallM. Adam Kendall1,25299 silver badges88 bronze badges11thanks! took me a bit to figure out this...
I want to set up a rewrite rule in.htaccesswhich will redirecthttp://website.com/blogtohttp://blog.website.com/, as well as routing any of the path parts to that request (i.e.http://website.com/blog/blog-post-1->http://blog.website.com/blog-post-1)However, when I set up a rewrite rule likeRewriteRule ^blog(.*)$ http://...
.htaccess rewrite rule to external domain
I've managed to fix the issue. The problem was caused by openssl versions. Both my windows 10 pc and ubuntu 18.04 vm run an older version that had no problem connecting to the website. The python docker images contain a newer version of openssl that refused to connect.
I'm trying to setup a python script that uses the requests library to get data from a website. The script works without issues running in a virtual environment on my windows 10 pc or on a azure vm.However, when I try to create a docker container using thepython:3.6-slimimage I get DH_KEY_TOO_SMALL errors. Testing the w...
Docker python requests results in DH KEY TOO SMALL error
Yes,sshhas a "-L" option to create a tunnel. That option takes 3 parameters, separated by colons (:). Local listen port, remote host, remote port.ssh -L 9999:ldapserver:389 user@otherhostWhere 9999 is the local port that the tunnel will be created on. Theldapserver:389bit tells it where to connecttoon the other side.Th...
I got access via SSH (root access) to a Machine that's inside a network at my client's office.I'm programming in my computer a PHP application that needs to integrate to LDAP. The LDAP server is in another server at my client's network andnotaccesible from outside, however I can perfectly access it via the server I can...
Accessing LDAP through SSH tunnel
You can list multiple container to adocker inspect.docker inspect [OPTIONS] CONTAINER|IMAGE [CONTAINER|IMAGE...]But the only way to list those container is through bash$(sudo docker ps -aq).For example:docker inspect --format='{{.Name}}' $(sudo docker ps -aq) docker inspect -f "{{ .NetworkSettings.IPAddress }}" $(sudo ...
In docker I can makedocker inspect -f "{{ .NetworkSettings.IPAddress }}" CONTAINERto run command on a particular container.What I need is to do something likedocker inspect -f "{{ .NetworkSettings.IPAddress }}" allordocker inspect -f "{{ .NetworkSettings.IPAddress }}" *to run a command on all containers, not mentioning...
How to execute Docker query command on all containers?
Check first if the issue persists, because the incident yesterday was about "elevated errors for Web and API requests." Check also if you have 2FA activated (in which case, don't forget to use a personal access token as your password) Finally, try and open Chrome without any plugin activated (start chrome --disable-ex...
I am having an issue with GitHub where when I try to submit certain things on the website it will shoot out the following error: "Your browser did something unexpected. Please contact us if the problem persists." I logged out of GitHub and now when I try and login, I am getting the error and cannot get back in. Note ...
How to resolve the "Your browser did something unexpected" error when logging into GitHub on Chrome
I have no knowledge about using SPIFFE for Vault authentcation, but I agree that it could be interesting (I'm not sure whetherhttps://www.vaultproject.io/docs/auth/certcould help, but I never tried that).As far as I know, the general way of integrating Kubernetes with Hashicorp Vault is described inhttps://www.vaultpro...
I'm new to Hashicorp Vault. I am wondering if there is a way to take advantage of the SPIFFE protocol to automatically authenticate with Vault, so based on a vault client's mTLS certificate, a workload in Kubernetes/Istio can access Vault as a specific user (entity?) or group. The requesting k8s workload would only hav...
Istio and Hashicorp Vault: using SPIFFE to authenticate with Vault
From Wikipedia:The Pirate Bay used to run a tracker, but has since disabled it, although the website remains as a torrent index.Also a quicknslookup tracker.thepiratebay.orgconfirms your problem.
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed12 years ago.Improve this questionI tried pinging "tracker.thepiratebay.org" and for some reason the DNS returns 127.0.0.1 I get 0% packet loss, but, obviously...
DNS redirects tracker.thepiratebay.org to 127.0.0.1 [closed]
When setting the default memory-cache to false (so don't use .cacheInMemory(true)), the cache seems to be keeping itself to the set maximum. The computed cache is probably a combination of the on-disc cache and the memory cache. This does make the "cache" number from the Android OS somewhat less usable, but on the oth...
I'm using the "Android universal image loader library (v 1.9.1)" and I'm trying to limit the amount of (disc) cache being used by using this line in a config builder: .discCache(new TotalSizeLimitedDiscCache(cacheDir, 25 * 1024 * 1024)) I might be doing something really stupid here, but this was supposed to limit my ...
How can I correctly configure limited cache for the android universal image loader?
I know that @MikePR 's comment serves as the answer, but I wanted to provide a more complete answer for the issue I had. I could not getdotnet ef databasecommands to execute evan after using the connection string withTrusted_Connection=false. With the help ofthis article, I was able to use this connection string:"Conne...
I am developing an ASP.Net core MVC application using Visual Studio 2017 on Mac. However, I am facing some problems to connect to an instance of SQL Server that is running on a Docker container.This is the connection string I'm using:"ConnectionStrings": { "myCustomConnString": "Server=localhost;Database=myDataBase...
How to connect ASP.Net Core to a SQL Server Docker container on Mac
+50Try this in.htaccessfile under\var\www\html\myapp:RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.html [L]Inindex.htmlhead section :<base href="/...
It may be the duplicate question. but i have tried so many solutions,no answer work for me. I am using ui-router for angular web app. I am using apache2 server to serve the angular app. I am using Ubuntu. My project code is inside of the folder \var\www\html\myapp heremyappis the my application folder. I have tried t...
How to remove hash from url angular app?
I encounter same timeout problem, the reason is below. AWS document: When you add VPC configuration to a Lambda function, it can only access resources in that VPC. If a Lambda function needs to access both VPC resources and the public Internet, the VPC needs to have a Network Address Translation (NAT) instance inside...
I'm trying to make a http request from my AWS Lambda but it times out. My code looks similiar to this: import requests def lambda_handler(event, context): print('Im making the request') request.get('http://www.google.com') print('I recieved the response') But when I test this, I get a timeout. The outp...
Python request in AWS Lambda timing out
Answered in Slack, need to make sure the labels on the ServiceMonitor object itself match theserviceMonitorSelectoron the Prometheus object.ShareFollowansweredMar 19, 2021 at 20:28coderangercoderanger53.1k44 gold badges5454 silver badges7777 bronze badgesAdd a comment|
It seems that I can't get my target scraped byprometheusneither via the annotation method nor theServiceMonitorworkaround.Here is thespecscetion of myServiceObject exposing the metricsspec: clusterIP: 10.107.228.89 ports: - name: metricsport port: 8282 protocol: TCP targetPort: 8282 selector: ap...
Target does not get scraped by prometheus
Replace the script like this and it should work.*/5 * * * * [ $(( $(date +%s) / 60 % 55 )) -eq 0 ] && export DISPLAY=:0 && /home/user/Documents/script.sh $2>/dev/nullminute-hour-day-month-year* any value , value list separator - range of values / step values
I found a interesting thing during creation of mycrontabsetting.I used this command:crontab -eand fill this line:*/55 * * * * export DISPLAY=:0 && /home/user/Documents/script.sh $2>/dev/nullMy idea was create scheduler, which startscript.shevery 55 minutes.But this script is execute in this times (for example):08:55, 0...
Crontab setting - execute script every 55 minutes
UPDATE: Perhttps://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-jenkins/the desired functionality is now available.What a nice way to waste an evening...According tothisSonar Runner is not meant for Maven projects. It turns out you're supposed to look under "Post-Build Actions" (not "Post-Build Steps") and ...
I am attempting to get Jenkins to run Sonar as a post-build step.Jenkins runs SonarRunner [1] but this fails with:ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: You must define the following mandatory properties for 'Unknown': sonar.projectKey, sonar.projectName, sonar.proje...
SonarRunner can't find sonar.projectKey, sonar.projectName, sonar.projectVersion, sonar.sources
If you want to use a HostPort you should define an Ingress that listens for the incoming connections on ports 80 and 443 for HTTP and HTTPS requests, respectively, and forwards the requests to the hostPortpaths: - backend: serviceName: service-name servicePort: 9090
I have prometheus-rancher-monitoring-prometheus pod running in one of the nodes in the cluster inside the Namespace: cattle-monitoring-system. I can access the prometheus within the cluster through the containerPort 9090.I would like to access this pod from an external node out of cluster. I am trying to add the hostPo...
How to Add HostPort prometheus-rancher-monitoring-prometheus to query from external nodes
I think you wantIndexOptions +SuppressHTMLPreamble.From theApache mod_autoindex docs:If the file specified byHeaderNamecontains the beginnings of an HTML document (<html>,<head>, etc.) then you will probably want to setIndexOptions +SuppressHTMLPreamble, so that these tags are not repeated.
I'm trying to pretty up the default directory view in apache with an htaccess file. I've done pretty much everything I want to do, except change the default verbiage for the title. By default, it says something like:"Index of [folder_name]"and if I use this:# SPECIFY HEADER FILE HeaderName /apache/header.htmlin htacces...
editing the default title for directory views in apache with htaccess
Things which you need to do, crate a directory where you want the project to be set up this.I made a directory calledJuanjors_AndroidMeneameand navigated my git bash there.as shown in the image initialize local git repository.and then pull the data. as shown in the imagegit pull https://github.com/Juanjors/AndroidMene...
I'm working on an Android application and I've pushed it to GitHub from my windows computer, I'm having problems to pull the code from repository in Mac OS, when it downloads it shows like if the project was corrupt or something.It shows this:As you can see the project doesn't download the folder app and all the files ...
Importing GitHub project to AndroidStudio not appearing correctly
I think the "Deny" and "Allow" are from the firewall application LittleSnitch. So the easiest solution would be to turn it off when you're testing your simulator program.ShareFollowansweredNov 6, 2010 at 7:47regulus6633regulus663318.9k55 gold badges4141 silver badges5050 bronze badges3Hmm, I don't have LittleSnitch ins...
I am trying to automate running an ios app in the simulator using Applescript. Whenever the application is first launched I get the firewall pop up asking to Deny or Allow connections to my app and I would like to Allow connections in the same script. Is there any way to do this?
Allow firewall connections using Applescript
I don't think anything past the # symbol in your URL is even visible on the server side. So htaccess, php, etc won't even know the hash is there to begin with. I think in order to pull this off you're going to have to use a client side redirect.window.onload = function(){ // First we use a regex to check for the #!...
I am using ajax to load pages on my website. Each time a page is loaded I change the url in the browser tohttp//www.example.com/old/page/#!/new/page/by setting it through window.loaction using javascriptNow what I want to do is when someone comes to my website by entering the urlhttp//www.example.com/old/page/#!/new/pa...
htaccess redirection for #! in urls
Did you create a repository for your second application on github.com (through web-interface)?
I successfully created my first repository (first_app) from my local machine and pushed the copy of master to github (Account/user shown as xyz). Now I am trying to add a second application and push it out. But I keep getting errors. Here is the log of commands run to create the second application and the messages r...
how to add a second application to github?
<div class="s-prose js-post-body" itemprop="text"> <p>There are multiple ways to achieve what you are trying to do, but the simplest method is to apply your mega regex to a variable that contains the entire URI (including the query string). This would be <code>$request_uri</code></p> <p>The second problem is how to man...
<div class="s-prose js-post-body" itemprop="text"> <p>I am unable to match location with below mentioned pattern, I want to set expires header to 24 hrs. but it is not working. It works if I just use below mentioned regex :</p> <pre><code>location ~* .*abc\.php.* { expires 24h; } </code></pre> <p><strong>Below example ...
Nginx location match regex not working
Try performing the below cmd's :* npm i[email protected]--save and* npm install --save-dev[email protected]
After installing NPM 6 almost every NPM package that I install on an Angular 6 project has vulnerabilities.Should I "npm audit fix" every package each time? Should I reinstall NPM 5? Other solution?This is the terminal sequlize code I used with its vulnerabilities:npm i sequelize --save npm WARN @angular/[email protect...
NPM 6 - Should I audit fix all package vulnerabilities?
Yes, if you do agit rm <filename>and commit & push those changes. The file will disappear from the repository for that changeset and future commits.The file will still be available for the previous revisions.
Is it possible to remove all files in a repository and update it with only the files I have in my local machine? The reason is that, there are certain files that is not necessary in my github and so I want to remove those files. Instead of removing the files one by one, I wanted to see if its possible to just remove al...
How can I remove all files in my git repo and update/push from my local git repo?
I needed to add the runtime privilege SYS_ADMIN because fuse needs permissions to mount/umount. docker run -it --cap-add SYS_ADMIN --device /dev/fuse [IMAGE] bash
I am trying to run riofs inside a docker container, however when I try to run riofs I get the following error: fuse: device not found, try 'modprobe fuse' first ERROR! Failed to mount FUSE partition ! ERROR! Failed to create FUSE fs ! Mount point: /path/to/dir Here is what my DockerFile looks like: FROM ubuntu:16.04 ...
Riofs - fuse device not found
I was able to get it working by renaming the following files.Gallio.Host.Elevated.exe --> Gallio.Host.Elevated.old.exe Gallio.Host.Elevated.x86.exe --> Gallio.Host.Elevated.exeGallio.Host.exe --> Gallio.Host.old.exe Gallio.Host.x86.exe --> Gallio.Host.exeNote: You may want to create another copy of the gallio folder un...
I am trying to run nunit tests with gallio.These tests run with nunit-console-x86.exeWhen I run them with nunit-console.exe, I am getting System.BadImageFormatExceptionRunning with Gallio.Echo.exe (installed the x86 bundle from gallio.org), I am getting the same exception. Is there a way to get gallio to use the nunit-...
running nunit tests (x86) with gallio
Of course, this was a mistake on my part specific to heroku usage. After you push your docker image to heroku, you run heroku container:release web I haven't done that, so I couldn't see my changes. As per documentation, $DATABASE_URL, and $PORT and added to the environment automatically and are available at runtime.
I've created a docker image and published it to heroku. For it to work properly I need the DATABASE_URL env variable. Postgres is provisioned to the app, and I can heroku config:get the db URL just fine. Yet after all is done I heroku ps:exec into my app, type 'env' and there is no $PORT or $DATABASE_URL, meaning my a...
Heroku env variables $DATABASE_URL and $PORT not showing in dyno (heroku ps:exec)
I am afraid that the answers given before experience some lack of relevance. The AWS recommended way of storing this sort of data like connection strings for lambda, is theSystems Manager Parameter Store:AWS Systems Manager provides a centralized store to manage your configuration data, whether plain-text data such a...
The following is how I'm connecting. Is there any way in Lambda to set environmental variables that aren't visible and ideally would cross to several lambdas? Ideally in another AWS service that I could access with the SDK and use across all AWS services?var MYSQL = require('mysql'); var AWS = require('aws-sdk'...
How to hide sql connection strings in aws lambda?
You can implement it yourself by writing apre-receivehook that checks whether the locking condition is true or not for a specific branch and then allows the push or does not. How you set and display the locks is then up to you.Other than that you could search for a Git repository hosting tool that has such a functional...
Is there a way to allow users to temporarily lock a remote branch in the remote repository. The function of is to avoid any merging in GIT that isn't Fast-Forward and to avoid conflicts (the constraint comes from the file type I am using). The method should be easy to lock and unlock, and users should be able to check...
Allow users to temporarily lock a remote branch in a GIT remote repository
I'm new to silex too, so if anyone has better insights please tell/teach us :)I decided to create a project on a separate folder from silex and, what I did was, I created a new index.php requiring silex's autoload.php and a new .htaccess which is basically the same.So, I have this structure:/myproject/silex/ /myproject...
I download Silex because I want to try it in my next project. I'm using mamp under Windows 8.1 64x , I think that this doesn't matter but, anyway, I put Silex into C:\mamp\htdocs\projectfolder\(http://locahost/projectfolder/)This means that I gothttp://locahost/projectfolder/vendorandhttp://locahost/projectfolder/web/I...
Silex Micro Framework: Run from a subfolder
You could find required Azure DevOps pipeline in GitHub - Repo -Settings - Branches-Branches protection rule - Require status checks to pass before merging According to the pipeline name, you could find corresponding YAML file in Azure DevOps Project - Repo. Check if this pipeline locates at the wrong repo of Azure D...
Apparently someone was using another repo in Azure DevOps to build a repo in GitHub. He no longer works here and I have to change this. I do a Pull Request and it builds on another repo. But it does build in the correct repo once I merge the code to master. The reason I need to change it is that it looks like its buil...
GitHub checks change the repo it builds on in Azure DevOps
You need to set up a reverse proxy configuration in Apache. Ensure firstly that mod_proxy is installed and available.Then configure your Apache virtual host like this:ProxyRequests Off <Proxy *> Order deny, allow Allow from all </Proxy> <Location /api> ProxyPass http://127.0.0.1:5001 ProxyPassReverse http://112...
I'm working on theseedproject nowI want to usenodejsasapi serverlistening on port5001,expressas back-end framework,angularjsas front-end framework,andapacheasstatic file server(such as lots of .js file that angular requires) listening on port5000In angular, I have configuration belowapp.config(['$locationProvider', fun...
How to deploy nodejs, angularjs and apache
You couldcreate a forkof the original repo: that would create a new repo directly on GitHub in your account.POST /repos/:owner/:repo/forksThat supposes the original repo isn't already declared in your account.
I am contemplating about the best way to create a new repository that is an exact copy of another repository on GitHub using GitHub API. Downloading and uploading each file seems inefficient.
How do i duplicate a repository using GitHub API?
The boss man had to increase the amount of ram available to the system as most of it was dedicated to sql server. This cleared up the issue.
I have a web service I'm trying to use on one of my sites. When I call the web service (which is created in C#) I get an error on several lines where try to execute an SP, which was created as an assembly. This web service works on our development environment but not on live. Our live and dev environments run on the s...
.Net Web Service Memory Pressure Error
Not sure what documentation you are referring to (no link), but I guess you write aboutcron.yamlwhich is only for worker environments.To setupcronon web environments, you have to create/etc/cron.d/mycron"manually" with proper content and permissions.This procedure is explained in a very recent AWS blog post:How do I c...
I have one instance on elastic Beanstalk. According to thedocumentationfor running the cron on beanstalk environment I would create a file named something like "mycron.config" and place it in the .ebextensions folder.I've done that. The "mycron.config" file read like this:commands: command: "*/5 * * * * /usr/bin/w...
How to run wget cron command on elastic beanstalk config
Generally speaking, with manual reference counting and automatic reference counting, referenceilandswill leak. Reference cycle can be composed by more than just 2 objects.That said I encourage you to test some code in a playground since the example in your question has some syntax and language errors.The code below mig...
Confused about a situation that might be a retain cycle?I understand that ifclass Object-A { var b: Object-B }andclass Object-B { var a: Object-A ]then above is horrible design because if you dovar a = Object-A() var b = Object-B() a.b = b b.a = athen this causes a retain cycle with two strong references pointing...
Retain cycle in Swift when Object A has Object B as a property and Object B has an array property that contains Object A?
It's very easy. Use MonoDevelop IDEhttp://monodevelop.com/.Check this pagehttp://www.integratedwebsystems.com/2011/06/get-mvc3-razor-running-on-mono/ShareFollowansweredAug 5, 2013 at 11:37AndreiAndrei43.5k3737 gold badges158158 silver badges222222 bronze badges1Thank you for the link. However, it didn't help. See the a...
I've found plenty of questions / blog posts about this, but I have not seen a repeatable recipe for getting an MVC site running on Mono. Nor have I been able to, after many hours of attempts, been able to get an MVC site to run on Mono.I can spin up whatever version of whatever distribution is required, and can use eit...
How can I get an ASP.NET MVC site running on Mono?
4 This is addressed in the official AWS blog here: But let’s say you have a background process running when the function finishes – what happens to it if the container is reused? In this case, Lambda will actually “freeze” the process and thaw it out the next time ...
I've got a Java-based AWS Lambda function that starts a background thread. The thread runs a scheduled task that reports metrics to an external service. According to the Lambda docs, a Lambda function will be "frozen" for some period of time after it finishes executing, and can be "thawed" and re-used if the function...
AWS Lambda - If I Start a Thread, what Happens when the Lambda is Frozen/Thawed?
I got a solution! I used shell script file as an ENTRYPOINT and executed go binary in that script file. So process ID of executed go binary was not 1.(shell script process's ID was 1 instead) And docker sent SIGTERM only to PID 1(which is not propagated to it's child processes). So, I had to change my ENTRYPOINT direct...
I am making graceful shutdown feature using go lang when kebernetes doing rolling-update on google container engine. Does anyone know what process signal is sent to the running pods when kubectl rolling-update starts?I've listened to os.Kill, os.Interrupt, syscall.SIGTERM, syscall.SIGKILL, syscall.SIGSTOP signals to be...
What process signal does pod receive when executing `kubectl rolling-update`?
I contacted GitHub support as suggested by bk2204. They responded quite rapidly (thanks!) and suggested turning off the ad-blocker. That did the trick!I guess all the people I asked to look at it also used an ad-blocker. Still strange that it only does it for this one repository.Update: the support person suggested ...
I've found similar questions asked elsewhere, but none seem to address my problem. I created this repo a few days ago:https://github.com/jeanluct/adcellSince then I've been getting a "Cannot retrieve the latest commit at this time", which is preventing the image in my README.md from loading. All other operations work...
GitHub repo error: Cannot retrieve the latest commit at this time
This issue arises when container(s) in a Pod run some process(es) that complete. When its containers exit, the Pod completes. It is more common to have container(s) in a Pod that run continuously.A solution to this completing problem is thus to keep the container running:Run the container in a Pod:kubectl run minio \ -...
I'm trying to run a docker image once to execute a task using a popularS3 client miniothe environment I'm dealing with use Kubernetes.I can get shell access to execute tasks like so:docker run -it minio/mc --restart=Never --rm /bin/shsimilarly, I'm able to run busybox image in my K8S cluster.kubectl run busybox -i --tt...
convert docker run command to kubectl for one time execution
Well, you can replace<branch>with a desired commit<sha-1>. I've just checked it with bpython:$ pip install --upgrade --user git+https://github.com/bpython/bpython.git@f2014dbae31313571cc9c26f51a14f4fda09d138 Collecting git+https://github.com/bpython/bpython.git@f2014dbae31313571cc9c26f51a14f4fda09d138 Cloning https:/...
I need to install with pip from a git hub but wanted the repository from May 4th. Can anyone help me on that?for instance if I want topip installa repo's specific branch I can use below command :pip install https://github.com/user/repo.git@branchbut don't know how get it by date other than branch name?
how to pip install from github for specific date
* * * *basically says "run this at 0th minute of every hour."If you need cron to run your command every minute do* * * * *.
I am new to Linux and Ubuntu and I seldom have to use it. I am trying to make this PHP script to run every minute using cron, but firstly I wanted to make some tests.I created an empty file at/var/www/html/calledtest. I ran on terminal:sudo crontab -eAnd added this line:0 * * * * rm /var/www/html/testThen saved it and ...
Can't make crontab work
As @Carl Norum and @Greg Hewgill say: cache effects. Your certainly experiencing the effects of cached memory. Re-order your tests and compare results. When I tested memcpy() before and after memmove(), the 2nd memcpy() performed like memove() and also was faster than the first memcpy().
Why does memcpy perform slower than memmove on my system? From reading other SO questions such as this or this Gives the impression that memcpy should work faster than memmove, and intuitively, this should be so. After all, there are less checks that memcpy has and the man pages also match what they say. However, when...
Unexpected performance from memcpy and memmove
remote unpack failed:error occurs either your local repository may be corrupted or your Disk space is full in the server hosting.To check your local repository is corrupted or not, First clone your remote repository to a new directory and then push again. If your local repository is corrupted then rungit repackmight he...
I am doing a simple git push from my branch to origin and am getting the below error. This is not with this branch but any branch am not able to push (even the branches that I created).Counting objects: 31, done. Delta compression using up to 8 threads. Compressing objects: 100% (13/13), done. Writing objects: 100% (31...
Why does Git push throw remote unpack failed error even though I have sufficent access
You are using the wrong database.The databasepostgresis normally not used for user data, but for administrative purposes. For example, if you want to drop a database, you have to be connected to a different database in the PostgreSQL database cluster to issue the SQL statementDROP DATABASE. Normally, the databasepostgr...
I can't seem to reset my database while using docker compose. I've tried killing the server, killing just the database, and restarting the machine.Anyone know the best way to clear out the development database?Here's what I tried:docker-compose run web rake db:resetI am getting this error:PG::ObjectInUse: ERROR: canno...
docker-compose rails rake db:reset fails, "cannot drop the currently open database"
Basically what happens is since you do notaddandcommityour changes. When you carry out merge yourdevbranch will be up-to-date since as far asgitsystem is concerned the branch you've created is the same asdevbranch (nothing has changed).In order to get things done properly, what you need to do is do a bit of work on you...
When i work on a git repo to do a quickfix i make a new local branch usinggit checkout -b BRANCH_NAMEwhich makes the new branch i then work on that branch for a while and when im ready i dogit checkout devfollowed bygit merge BRANCH_NAMEto merge with the hotfix branch and i get the messagebranch already up to date.. wh...
Git local branch auto merges
I really wouldn't recommend it, but there's a way via Jenkins Remote API -Jenkins input pipeline step filled via POST with CSRF - howto?curl -X POST -H "Jenkins-Crumb:${JENKINS_CRUMB}" -d json='{"parameter": {"name": "${PARAMETER_NAME}", "value": "${PARAMETER_VALUE}"}}' -d proceed='${SUBMIT_CAPTION}' 'http://j${JENKINS...
I have an upstream pipeline which is calling another downstream pipelinebuild job: "/org/projectA/master", parameters: [[$class: 'StringParameterValue', name: 'variable', value: 'value']], wait: trueIn my downstream pipeline, there is a step to ask for approveinput "Deploy to prod?"Currently the job is paused in th...
How to control downstream pipeline's interactive input in upstream pipeline
I just found the problem, and I was able to narrow it down to a simple test-case.CREATE SCHEMA intranet; CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public; SET search_path = public, pg_catalog; CREATE FUNCTION cyunaccent(character varying) RETURNS character varying LANGUAGE sql IMMUTABLE AS $_$ SELECT ...
I want to restore a particular database under another database name to another server as well. So far, so good.I used this command :pg_dump -U postgres -F c -O -b -f maindb.dump maindbto dump the main database on the production server. The I use this command :pg_restore --verbose -O -l -d restoredb maindb.dumpto restor...
Unaccent issue when restoring a Postgres database
Using Php in your CSS (Cascade Style Sheet) is not "proper",Also, You can use Php in your HTML:<body> <?php if (condition){ ?> <div id="content"> Foo bar </div> <?php } ?> </body>With this code, div block don't appear, (and you don't use it with JavaScript), You can use this for just ...
I am currently hiding a div based on an if statement. The method I use is, useechoout acssstyle ofdisplay: noneHere is what I am doing specifically:<style> #content{ <?php if(condition){ echo 'display:none'; } ?> } </style> <body> <div id="content"> Foo bar </div> </body...
Hiding a Div using php
The error you are getting "Unable to connect to the server: x509: certificate signed by unknown authority" . It seems like you have copied only the ~/.kube/(config) file . see the content of ~/.kube/(config) file and if that file entries of a CA root certificate , Client certificate and key entries then you need to cop...
I installed k3s on a single node. But when i try to connect to it remotly from my machine with kubectl I get the following error:» kubectl version ...
kubectl - error x509 certificate signed by unknown authority
Looking at a similar error in "bundle install error “invalid byte sequence in US-ASCII (ArgumentError)”", one option is to ad to the Dockerfile: export LANG=C.UTF-8 See this Dockerfile for instance. # Install required packages # LANG=C.UTF-8 line is needed for ondrej/php5 repository RUN \ export LANG=C.UTF-8 && \...
I want to use docker to deploy a rails application. I followed the official tutorial to do: https://docs.docker.com/compose/rails/ But it seems I am not lucky. My Dockerfile FROM ruby:2.2.2 RUN apt-get update -qq && apt-get install -y build-essential # for mysql RUN apt-get install -y mysql-client libmysqlclient-dev...
How to run bundle install with a Dockerfile file
Yes, this is absolutely possible. Serving that via HTTP is relatively complex, and you didn't mention anything about how you configured your web server to serve the /git path, so can't specifically advise on that. You probably want to do something akin to http://progit.org/2010/03/04/smart-http.html if you do want t...
Im all aware about services like github and such which provide a really nice system for everything. But what I want to know is, can I use my own webserver? The server is not owned by me, im in a shared host. So this is not my own box I can make modifications to. I dont need a fancy front end, I dont need any extra mu...
Can I host my own bare git repo on my remote server?
If you are currently on local branch1, do -1) git checkout . 2) git pullMake sure your remote upstream is the required branch or you can set the remote upstream bygit branch --set-upstream-to origin/my_branchgit rebase master will update your changes locally after getting the changes from the remote master branch.Note ...
I have my branch called (branch 1) and it has become out of date with the master branch. I want to update branch 1 with the master branch code and I would like to erase any changes that I made on branch 1. I essentially just want to update branch 1 with the most up to date version of the master branch and I don't care ...
How do I update my branch with master branch and override any changes I made on my branch?
You can export the data to theSTDOUTand pipe the result to a file in the client machine:docker exec -it -u database_user_name container_name \ psql -d database_name -c "COPY (SELECT * FROM table) TO STDOUT CSV" > output.csv-ctells psql you to execute a given SQL statement when the connection is established.So your comm...
I'm not sure if this is possible of if I'm doing something wrong since I'm still pretty new to Docker. Basically, I want to export a query result inside PostgreSQL docker container as a csv file to my local machine.This is where I got so far. Firstly, I run my PostgreSQL docker container with this command:sudo docker r...
Export Query Result as CSV file from Docker PostgreSQL container to local machine
With ECS, you can haveREPLICAorDAEMONservice types.DAEMONensures that only one instance of the task is placed oneachinstance in the cluster. In your case, it'd mean having exactly one instance behind the cluster. If this constraint is acceptable, give it a go and see if the problem persists.
I have a backend written in Adonis v4.1 (node.js) that I'm deploying on AWS ECS. Inside the Task Definition of my API I have Adonis and Redis, linked by bridge network.I'm using adonis-scheduler to run a cronjob every 30 minutes. This cronjob makes a db query and for each row it creates a job (with adonis-queue-pro lib...
Is it possible to have a scheduler starting only on one instance?
1 The script /opt/jboss/tools/x509.sh is designed to run only once for a newly created container. If you change/update your certificate and just restart the container or just re-run the x509.sh script, it won't work. You'll have to destroy the container and create a new one...
I am managing a keycloak server that runs as a jboss/keycloak image on a synology nas. The keycloak server is configured to use self-signed ssl certificate (signed with our root certificate). Now, I created a new root certifacte and signed new server certificates (with openssl). I renamed the server certificate and ke...
JBoss/Keycloak Server: Update self-signed Server SSl certificate
Create job:php artisan make:job YourSchedulePut your code that send emails to "\app\Jobs\YourSchedule.php" inside method "handle".Put this code:$schedule->job(new YourSchedule)->dailyAt('18:00');to "\app\Console\Kernel.php" inside method "schedule"Add cron task on your server (every minute):php /home/***/public_html/ar...
i am trying to receive a daily email to show me the new registered users from databasei tried "Task Scheduling" but it didn't work for meis there any tutorial to help me with this?
How to send daily email to show new registered users - Jetstream - Laravel 8
To run WordPress under the /blog prefix, and assuming that it's installed in a directory with the same name, you set root to the directory above. Use the ^~ modifier, and nested location blocks for anything that belongs to WordPress. See this document for details. location ^~ /blog { root /var/www/html; index ...
Is it possible to enable wordpress on /blog of an existing flask application using nginx? Here is the config i've been working with but not getting anywhere with it. I can get either flask or wordpress to work through nginx but 1) not both at the same time 2) not wordpress with /blog option enabled (wordpress works at...
Enabling wordpress with a flask app using nginx
The normal process for overriding dealloc is to release any objects that have been previously retained (or alloc'ed) by this instance. So if somewhere else in the object you have called an alloc or retain method your dealloc would look like: -(void)someOtherMethod { UIImageView *imageView = //da da~ with UIImage ...
Hello Stackoverflow fellow family members! I've got question regarding memory management in iPhone. What I did understand was below method -(void) dealloc { // something else to release whatever // such as Object Created using keyword 'alloc' // but also Object destroy here its retain value reaches iff 0 ...
iPhone Memory Management
There's not one magic solution.But basically, you should execute some code every time you deploy your application that increments the number of deployments by one.One solution would be to create a capistrano task which would increment this.namespace :deploy do desc "Increments the number of deployments" task :i...
I want to add a revision counter to my rails app.Not the number of commits necessary but the number of live pushes/deployments for example.I'm using github as my remote repo.Any suggestions?Thanks
ruby-on-rails: revision counter
Yes, you still get charged for those 'deleted' objects. With versioning enabled, there really is no 'deleting', only hiding. Of course, you can Permanently Remove an object which removes its version.
When deleting an object in s3 , while versioning is enabled , it only adds a "delete marker" on the previous data so that it's hidden.I wanted to know if I still get charged for the hidden data even though I "deleted" it ?
Pricing on "deleted" objects in s3
Try this ones: MemoryMXBean mem = ManagementFactory.getMemoryMXBean(); mem.getHeapMemoryUsage().getUsed(); mem.getNonHeapMemoryUsage().getUsed(); But they only offer snapshot data, not a cummulated value.
I am trying to find out programatically the max permgen and max heap size with which a the JVM for my program has been invoked, not what is currently available to them. Is there a way to do that? I am familiar with the methods in Java Runtime object, but its not clear what they really deliver. Alternatively, is there...
How to get the max sizes of the heap and permgen from the JVM?
Do not stage, butstashthe changes. You can then later apply them again to your working copy:git stash git checkout -b urgent-issue git commit git checkout - git stash pop
How do I keep my staged changes without committing and work on other issue's where these changes are not required ?I have created a branch say b1 and made some changes and staged that changes. Now I had an urgent issue which I need to work on but I don't require the staged changes here. So I switched to branch b2 and f...
Git keep staged changes
Check you GitHub accessibility settings. Since May 2022, there is an option to prevent animated images from playing automatically. Set it to Enable.
Question: How to enable GIF autoplay on GitHub README.md? For a few days, I've noticed README GIF aren't playing auto automatically. It was playing before. Through search, I've found theses, cannot find the solution. add a GIF to a Markdown file? Disable GIF autoplay using JS Minimal—Reproducible example Test markdo...
Enable GIF autoplay on GitHub README
I wouldn't pass two parameters to your function, just treat it like an ID in both cases. You'll need to add a "slug" column to your db if you haven't already and make sure those values are unique just like an id. Then in your controller you can do something like this:public function getCampaignMap($id){ //look for ...
I would like to add niceSlugURL to my Laravbel Project. I currently am using ID numbers.My goal is to continue using Numbers but also to use Slugs for better SEO URL's. So either a Slug or an ID will load the proper page.Below is my currentRoutethat uses an ID number to load a record.// View Campaign Details/Profile/...
How to add slug and ID URL to Laravel 4 Route?
I think the main issue is that your first RewriteRule will always match instead of your second one. Something that matches(.*)/(.*)/(.*)/$will always match(.*)/(.*)/$also, because the latter doesn't care what comes before it.Ideally, you would want to put a^at the beginning to stop this, but if you can't or it doesn't ...
I got this problem. I want to write ALL my php vars to folders. For example:www.mypage.com/en/shows/1/towww.mypage.com/index.php?language=en&section=shows&item=1orwww.mypage.com/en/home/towww.mypage.com/index.php?language=en&section=homeThis is what I got:Options +FollowSymLinks RewriteEngine on RewriteRule (.*)/(.*)/$...
.htaccess, Rewriting ALL PHP Vars to folders
Set some "add/remove file" rules for your team to reduce conflict.The simple one: If you guys are physically near, a team member can always inform others first before adding/removing files.The other one is setting the following rule when "adding files":Before a member wants to add files, she must commit her changes fir...
When I work with somebody on the Qt project we always have conflicts in.profiles.For example there is such project treeHEADERS += \ main.cpp \ a.cppI add new fileb.cppin Qt Creator while somebody addsc.cpp. In the result I have new.profileHEADERS += \ main.cpp \ a.cpp \ b.cppAnd my colleague has fileHEADERS += \ main.c...
Qt .pro file and version control system
.gitignoreonly works on files which are not already part of the remote repository. My guess is thatsimple_ls.owas already being tracked when you added the rule to.gitignore. If you want Git to ignore it, then you first have to remove it from the remote repository via:git rm --cached Workspace/playpen/boost/Debug/simp...
I have a .gitignore file with the following contents.*.o *.exe *Debug/* *.vpb *.vtg *.vpwhistu *.vpwhist *.vtgAfter working on a project (modifying a couple of files) in my working directory, If I dogit statusI get the following outputWorkspace/playpen/boost/Debug/simple_ls.oWhy is this happening despite*Debug/*being i...
.gitignore file not ignoring correctly
Try full path to the python and write the log for investigation:@reboot /usr/bin/python /home/pi/distance2.py > /home/pi/distance2_cronjoblog 2>&1
I have a python script on a Pi3 which sends sensor readings to a mysql database, which I would like to run at boot. I have tried several combinations of @boot within crontab, but the database table never gets any fresh data.The first line of the script is...#!/usr/bin/pythonand the script runs with:./distance2.py@reboo...
crontab python script query
0 I don't use flex, but here are some general rules for all source control: Commit: Human written code Configuration files Referenced 3rd party libraries (that are not typically part of the standard environment) In some cases tools needed to build and run that are not stan...
What to commit and what to ignore when adding a flex project to github? Keep in mind that I want to share it with others and accept pull requests.
Adding my flex project to github
Yes it is possible. You could use a task to invoke with therakecommand. Your task could be something like this:# lib/tasks/cron.rake namespace :cron do desc "Send account emails" task deliver_emails: :environment do accounts_for_delivery = Account.where(condition: true) # ... whatever logic you need ac...
Is it possible to invoke ActionMailer from a cron job? We're using Rails 3.Ideally, a cron job triggers a script to read users from a database, passes these users and some variables to an ActionMailer class to fire off emails.Is this possible in Rails 3.2.12?
Invoke ActionMailer from cron job in Rails 3?
To start puma with socket binding just use/tmpdirectory:bundle exec puma -e development -b unix:///tmp/my_app.sockTo access application through domain name you should use something likenginxand do configuration for it.To installnginxin Ubuntu just run next command:sudo apt-get install nginxRunsudo nano /etc/nginx/sites...
I have followedthis linkto configure nginx with puma but when I start the server withbundle exec puma -e development -b unix:///var/run/my_app.sockit throwsPermission denied - "/var/run/my_app.sock" (Errno::EACCES) error.but when I start the server withbundle exec puma -e developmentit is started withtcp://0.0.0.0:9292...
how to start puma with unix socket
Yep. If you can, do use them. There would be other solutions, like having the first user hitting your site after xx hours run those same scripts but the solutions would be cumbersome and less-than-ideal.Cron is the way to go.
there is a facebook app which I'm writing , Users grant offline_access to the program . I need to collect information about them for example twice a day at 12 am and pm .how should I do this in PHP? should I use cron jobs in linux/windows or what?
scheduling job in php
My reason for believing there may be is because both instructions are still trying to access $gp, and only after reaching for $gp is whatever constant added to reach the updated address. Would this be correct?No, as$gpis not changing in this code sequence.These hazards occur within the processor, and they have to do wi...
Say we have the following set of instructions:1: lw $f6, 20($gp)2: lw $f2, 28($gp)3: mult $f0, $f2, $f44: sw $f3, 32($gp)I can see possibility of there being a WAR hazard between instructions 1 and 4 (likewise for 2 and 4), but am unsure.Basically wereadfrom $gp+20 and write into $f6, then read from $f3 and...
WAR Data hazard in MIPS-like pipeline architecture
You can usesvnsynccommand. It will basically get every revision of a source SVN database and commit them to your backup database. It can be slow the first time you run it as it gets all the changes one at a time, but once the first sync was done it's a nice solution.svnsync in SVN Repository Maintenancesvnsync refere...
I use a hosted subversion service for a number of personal and work development projects. While they keep backups like any hosting company should I'd like to be able to create my own local backups as well just in case. This service allows you to request and download a backup, but they charge money to do this. Is there ...
Can you backup/create a dump of a subversion repository without direct access to the server?
Yes, in order to receive incoming web hooks, you need to make an HTTP endpoint accessible to GitHub. This should only be the webhook URL instead of the complete Jenkins (filtering e.g. through a reverse proxy in front of the installation)."Accessible to GitHub" still gives you the freedom to restrict the IP addresses t...
I have a Jenkins build server, and my repositories are hosted under an organization on Github.com. I would like to trigger automated builds after a push to the repository on GitHub.com. To enable this, I need to provide my Jenkins server details as a webhook in the settings of Github.com. Is it a good practice to open ...
Exposing Jenkins to the outside world to receive GitHub webhook requests
Thetextis astringobject which has a limit.What is the maximum possible length of a .NET string?You can use StringBuilder which can grow beyond it's limit by appending to it.https://msdn.microsoft.com/en-us/library/system.text.stringbuilder.maxcapacity(v=vs.110).aspxAddusing System.Textfirst.StringBuilder sb = new Strin...
I have a code which reads text from 10 files each of the size of approximately 80MB. However, I am unable to do this successfully as (depending on the way I tried) it fails on 3rd-7th iteration. The commented-out lines are the ways that I tried reading it, each of them fails.var lines = new List<string>(); var text = s...
Reading from multiple files causes OutOfMemory exception
There's two ways to do it:Type it inYou can type inp95into the Statistic box (the dropdown won't show you the option, but you can type it in).Note you also can't delete the text elements - typing it in will overwrite it.Making a variableThe other way I found how to do this is to add a custom variable:I included the Max...
We're using the Cloudwatch data source in Grafana. I can see in Cloudwatch we can dynamically type in a pXX value of p95 for instance:But in Grafana I can only see the following: Average, Maximum, Minimum, SampleCount
How do I visualise the p95/p99 for a Cloudwatch data source in Grafana?
For anyone with a similar issue, it was Fuel PHP which was the issue. There is a setting under fuel/app/config/config.php to allow HTTP requests. Uncomment the following line:'allow_x_headers' => true,
I am running a web application is AWS. I have a load balanced environment set up in Elastic Beanstalk and i have attached a certificate to that for HTTPS.When i access the homepage URL, HTTPS works absolutely fine. The issue i have is when i add something to the URL such as /login then HTTPS just refuses to work and on...
Enabling HTTPS in Elastic Beanstalk
Theory I don't know what a detached head is When your git repo in the detached head state it just means that your working tree (the actual files on the hard drive) is not on a branch. That all it means. It's not an error state. what kind of issues I'm going to run into when I eventually pull from main again If you...
I was deploying a change to production this morning, and there was an issue, and the contractor I was working with is unavailable now, despite being available just prior to deployment (eye-roll). on my production server, I did git pull origin main, ran into the issue, and then wanted to try and revert it back. So I fo...
deployment issue and git - revert back to prior version
I see that you have used the .htaccess tag, so assume you have access to an .htaccess file.Try this in .htaccess in the root of your website:RewriteEngine on RewriteCond %{HTTP_HOST} ^mywebsite\.com$ RewriteRule ^facts/(.*)$ http://mywebsite.com/category/test/ [R=permanent,L]Let us know if that works!EDIT: Add a ? to t...
I had old wordpress blog which was under mywebsite.com/wordpressNow I have moved this blog but I would like to redirect the entire wordpress folder to a single category page mywebsite.com/category/testThe problem is that I don't know how to redirect dynamic pages (all at once) such aswordpress/?p=1wordpress/?p=2wordrpe...
How to redirect entire wordpress folder with dynamic URLs to a single page
You can do it. It's a feature of gitlab, mirror another repository.The option for doing it are on project page -> settings -> repository -> mirror a repository. This option allows you both options: pulling from a remote repository, and pushing to it.For doing what are you asking, there's the gitlab help:To set up a mir...
I've recently made a Gitlab account which I want to use as a portfolio. I've created aGithub Pagewith some content in it. Now the problem is, I'm trying to import all my projects I've made in Gitlab to my Github account. I've searched off Google and forums, some suggested I need to make tokens, which I tried but it did...
Import Gitlab projects in Github
The "solution" found is to usehaproxyto split the tcp stream between nginx and NodeJS.It is not optimal because it adds yet-another-program in our stack, but it does the job.It seems to me that nginx websocket support is still far from being production-ready.
As explained onnginx's websiteI've used these settings for my nginx to proxy websockets to a NodeJS server:location /socket.io/ { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }Everything works fine and socket.emit() / s...
nginx as a proxy for NodeJS+socket.io: everything is OK except for big messages
Cloud SQL supports MySQL, Postgres, and SQL Server engines, but not MariaDB.Additionally, you testedtelnet x.y.z.a 5432, but the port for Cloud SQL MySQL instances is 3306. (5432 is the port for Postgres).You should verify which type of Cloud SQL instance you have created, and that you are using the right cli to connec...
I´m experiencing some kind of network issue when connecting to my MariaDB remotely, which is hosted on a CloudSQL instance (nevertheless, I think that this is unrelated).When I'm trying to connect throughmysql.exeormariadb.exefrom my installation ofmariaDB:mysql.exe -h x.y.z.a -u test -p mariadb.exe -h x.y.z.a -u test ...
Error 2002 or 2013 when connecting to my MariaDB database on Cloud SQL
[UIImage imageNamed:] returns an autoreleased instance of a UIImage. That means that the memory will be released as soon as the event loop ends. Yo need to retain those instance either by calling. [[UIImage imageNamed:@"blabl.png"] retain] or (preferred method) by setting up your blue, red, green members as property ...
My app moves 10 UIImageViews randomly around the screen, and once an UIImageView hits the corner, it changes its image. The problem is: after switching between apps and going back to mine, the app crashes. The console gives me this message: "App" exited abnormally with signal 10: Bus error The crash log states this: ...
iPhone App crashes after switching, possibly due to UIImage imageNamed
pmap is not bad, but it only gives you a snapshot, not the maximum.You might want to take a look atgetrusage(). On new-ish kernels (2.6.32; not sure the exact cut-off), the ru_*rss fields are actually populated. (On older kernels, they always get set to zero...)Also try "cat /proc/<pid>/status" and look at VmPeak (wh...
I would like to compare the maximum amount of heap a set of processes dynamically allocate. Is there any system command in Linux or any application that automatically does that? Something like a monitoring tool that runs a process and watches for how much memory is consumed by the process.Unfortunately, thesize(1)comma...
Calculating the maximum free store memory consumed by a process
Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials. No certificate thumbprint or secret provided for the given service principal '***'.Based on the error message, the Connect-AzAccount need to be run before the Get-AzSqlDatabase command.To solve th...
When using the Azure CLI task within an Azure DevOps pipeline to run a powershell script as per the below:$resourceGroupName = "rgname" $serverName = "sqldbname" $databases = Get-AzSqlDatabase -ResourceGroupName $resourceGroupName -ServerName $serverName foreach ($database in $databases) { Write-Host "Deleting da...
Azure DevOps Pipeline not authenticating Az SQL powershell commands
The error solved with adding Redis:// from URL.So connection like that: let statsQueue = new Queue('statistics', 'Redis://<Primary-Endpoint-On-AWS-Redis');
I want to use Redis on AWS. And my development env is depends on Skaffold with Kubernetes.My security group configuration is:And my Redis config like that:I want to connect this Redis on my nodeJS app from Kubernetes pods So, my code snipped like that:let statsQueue = new Queue('statistics', '<Primary-Endpoint-On-AWS-R...
AWS redis connection error on my Kubernetes cluster
Starting with version 4.3,SonarQube no longer runs automated tests. It expects Jenkins/CI system to run the tests, create the JUnit/PMD/Jacoco/Clover etc. reports, and then tell SonarQube where to find them. (In older versions of SonarQube, this behavior could be achieved by setting the "reuseReports" flag to true.)I...
Recently I've upgraded SonarQube from 3.5 to 4.5.4 (LTS) and now there are a few users complaining that there are some reports missing on their project dashboards. The reports/numbers missing widgets are:lines of codeandcomplexity. Unit tests coverage displays nothing. Other widgets (like technical debt, issues, direct...
Reports missing on SonarQube dashboard after upgrade
You could use lower-level commands instead of the high-level push/pull.For example:dogit fetchto download the remote state.do a merge locally.git send-packinstead of push.
Is there any way to merge two branches which are in my remote repo without using push or pull commands?
How to merge two remote branches in Git without using push or pull?
Conceptually, you don't need to have your labels/targets in the pipeline. Yes, you may need to apply LabelEncoder for y_train. But then imagine a situation when after training you want to do prediction.Also the sklearn pipeline is quite often used for hyper parameter tuning. Which also does not applicable to targets.Of...
Generally, Pipelines are used like this: pipe.fit(X_train, y_train). All transformer methds are fitted and transformed on X_train. Y train is only used for fitting the model. How I can construct a pipeline that transforms y_train? I have y which includes valyes ">=50k" and "<50k". I want to use LabelEncoder as transfor...
How to create a Pipeline for preprocessing Y_train?
You should use the%{THE_REQUEST}variable to check if the actual request is for the index file, then redirect accordingly:RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html) RewriteRule ^ http://ic-furniture.com/ [L,R=301]
Ive put an htaccess file on a site with the following<Files ~ "^\.(htaccess|htpasswd)$"> deny from all </Files> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.ic-furniture\.com)(:80)? [NC] RewriteRule ^(.*) http://ic-furniture.com/$1 [R=301,L] order deny,allow redirect 301 /index.php http://ic-furniture.com/ re...
htaccess stuck in endless loop
Your script doesn't launch a long-running process; it tries to start something in the background and then completes. Since the script completes, and it's the container's ENTRYPOINT, the container exits as well. The easy fix is to remove the & from the end of the last line of the script to cause the Python process to ...
I'm using a python script for send websocket notification, as suggested here. The script is _wsdump.py and I have a script script.sh that is: #!/bin/sh set -o allexport . /root/.env set env python3 /utils/_wsdump.py "wss://mywebsocketserver:3000/message" -t "message" & If I try to dockerizing this script with this...
Why a dockerized script have a different behaviour when I docker run or I docker execute it?