curl – Why is my collectd curl_json block not working when I change the URL from HTTP to HTTPS and add the name of the certificate file?

I am trying to add a curl_json configuration on a basic collective monitoring server that already uses dbi and mysql. I am trying to access the JSON API of our MediaWiki wikis, which can be done from the command line with curl -s https://hostname/api.php?querystring. With curl I can press http and use -L to handle our Varnish's 301 redirect from http to https, but the collectd curl_json plugin can't handle redirection, so I have to explicitly use https. To do so, I added the CACert parameter but it doesn't connect and I can't tell why. I have used tcpdump and strace extensively. I can see when I use http that collectd will send the HTTP request and fetch 301, but I don't see any request when I use https. If I'm reading the strace output correctly, it looks like it's getting back -1 EAGAIN (Resource temporarily unavailable).

The curl_json.conf block basically looks like this:

LoadPlugin curl_json

  Instance "wiki1"
  CACert "/etc/ssl/certs/ca-certificates.crt"
    Type "wiki_pages"

One difference I can see is that /usr/bin/curl Y /usr/lib/collectd/ use different libcurl libraries:

# ldd /usr/bin/curl | grep curl => /usr/lib/x86_64-linux-gnu/ (0x00007fad8e93f000)

# ldd /usr/lib/collectd/ | grep curl => /usr/lib/x86_64-linux-gnu/ (0x00007fedc337a000)

# dpkg -S /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
libcurl4:amd64: /usr/lib/x86_64-linux-gnu/
libcurl3-gnutls:amd64: /usr/lib/x86_64-linux-gnu/

# dpkg -l | grep libcurl
ii  libcurl3-gnutls:amd64             7.58.0-2ubuntu3.8                   amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
ii  libcurl4:amd64                    7.58.0-2ubuntu3.8                   amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)

Also FWIW wikis are behind an AWS ALB that uses the default security policy, so I don't think it's a protocol issue.

This runs CollectD 5.7.2-2ubuntu1.2 on Ubuntu 18.04.4.

Any ideas what I might be missing?

Disable file creation in Drive from Gmail

Is there a way to disable file creation in Drive when opening a document?

eg I receive a document, open it, automatically create a copy on my personal drive. I am trying to rearrange my drive after bloat times like this and I plan to buy Google One and make it my primary storage.

Or … if you have other services in mind combining a free + paid model, I am open to suggestions.

hard drive – How file operations work

So on disk the storage space is allocated as pages, let's consider the page size disk (SSD / mechanical) in the question is 512 KB. Now I am facing a * .txt from a flash drive to my 2.1 MB size disk, and the file is on 5 pages on disk with 2.5 MB allocated space.

Now I open the file in some file editor, like sublime, and delete a character on line 100, now the physical location of these characters is somewhere on the first page assigned to the file.

Now I am saving the file, how does saving to disk work? (Assuming each character takes 1 Byte), below are my speculations

  1. Is each byte copied to the previous byte location on disk on all pages? Live, the first byte of the second page will move to the last page
  2. Only the bytes on the first page are moved up one place and the operating system inserts an EOP (bottom of page), if so how or when the space will be used
  3. Is the entire file content rewritten to disk on the same pages?
  4. Is the current disk storage freed and new space allocated and is the content of the file written to the new pages of the disk?

I think Options 3 looks cleaner and avoids any possible corruption, but I couldn't find any concrete reading on this.

Is there a different method on how file editing actually works (add, update and delete file content)?
Does this behave differently for SSD / mechanical drives?

OS-We are going to take Ubunu 19.10

notebooks – "Auto-loading" an .m file

I have an .m file (for example, file1.m) with multiple definitions which gets another notebook with the command Needs("file1`"). If file1.m is in ~ / .Mathematica / Paclets / Repository, this works, but if it is in the same directory as the notebook, it doesn't.
My question is as follows: Can I create a directory in ~ / .Mathematica / Paclets / Repository and put the file file1.m there so that “ `Needs (" file1` ")` “ `works (without giving the path file1.m)? Or shouldn't it because Mathematica handles this directory automatically?
Is there another way to avoid it?

Error: mysql disappears when uploading a file in MB

I have a table that stores the contents of the uploaded file. The data type of the column is LONGBLOB.
When I try to upload a 9MB file, the mysql "mysql disappears" error appears.
What I'm doing in my code is using file_get_contents to load the data from the file and save it to the database table.
I think the LONGBLOB data type column doesn't support heavy file data to store.

Import InnoDB tables, how to delete .cfg file?

Hi there:

Excuse me, importing innoDB tables, how to delete .cfg file? It will always exist in the database directory. I use mysql 5.7.29

MySQL document connection

Can I return my Google photos to the original file size?

I have multiple photo files stored in my Google Photo account. I would like to upload these photos to a site that requires high quality images. I shoot with a Canon 7D that is set to "highest quality JPEG". When my images were uploaded to my Google photos, all my images were compressed. I hope I can return these images to the original file size. Thank you very much for your help.

Online sharepoint: Flow creates multiple email notifications every time the file is modified

I'm trying to create a flow that will generate a single email notice when three separate columns in a SharePoint document library are modified. However, I cannot prevent multiple email alerts from being generated each time the file is modified. There is an initial notice when the & # 39; Complete Employee Review & # 39; column is set to & # 39; Yes & # 39; (the employee changes this column). The second warning should be triggered when the administrator changes the column & # 39; Approved by Suzanne & # 39; to & # 39; Yes & # 39 ;. The last warning should be generated when the column & # 39; Will Approved & # 39; is set to & # 39; Yes & # 39 ;. The original email notice is generated with each subsequent notice each time the file is modified.

I'm using the trigger when creating or modifying a file (properties only) for files in the document library. I added a parallel branch to Flow with 3 conditions. In an attempt to stop multiple email notices with each file modification, I added a Finish control to the first condition with a status & # 39; Canceled & # 39 ;. It works great for the first two conditions, the first and second email alerts are generated as expected without duplication. However, the flow ignores the third condition and the last email warning fails. I have tried several approaches to this flow and I am unable to stop repeated email alerts. Thanks in advance for any help or suggestion.

First condition
Second condition
Third condition

How to activate a JavaScript DOM manipulation function in an HTML file after PHP changes a variable between tags in that HTML file?

I am creating a simple client-side web page that can be updated from an admin page. I am using PHP for server side manipulation of client target page.

The configuration seems like an exaggeration to me:

  1. index.html it has some basic html input elements. A button triggers an XML GET request to makeClientPage.php. The PHP script takes a variable generated from the HTML inputs and writes a clientPage.html proceedings.
  2. On the generated client page, I have two JavaScript variables, called new_image, which is assigned to the variable from the administration page and old_image, which has an arbitrary string value.
  3. The generated variable is a directory name for a PNG image. There are over a thousand PNG images that the administrator can choose from. This path is provided to a JavaScript variable (new_image) Between PPD web hosting file |

Hi We are A PPD website.

We will be happy to join you and try our service, just give it a try and leave your comments here.

  • Unlimited upload speed.
  • Share direct links.
  • Unlimited download speed.
  • Very easy payment methods.
  • Minimum payment $ 5.
  • Daily payment option is available.
  • 15% referral benefit for life.
  • Payment methods (PayPal, Payeer, WebMoney, BitCoin)

    Check this page to know more:

You are welcome .