Contact form 7 to api + Basic auth

I am using a WordPress version of 5.0.3, I installed the Contact form 7 to api + Basic auth plugin for the purpose of passing the JSON data to our API.

I referred the API URL and passed the JSON data in the Contact form 7 to api + Basic auth plugin. Once contact form has been submitted, we cannot pass the form data to the API.

Please suggest your ideas, how to call our API and pass the form data.

Also, Please share the suggestion, how can we use the Basic Auth in the API Integration.

enter image description here

Autopilot Basic Token Income

Hi Guys,

Basic Income

Finally everyone in the world can make Basic Income…Sign Up For Free To Start Making 100 FREE Basic Income Tokens Everyday On Autopilot

http://basicincome.network/kalmike

get as many as possible to signup for Basic Income Network
with your referral linkn You get 500 tokens/referral…

and this will start to build your wealth, when each basic income
token gets converted to a cryptocurrency……

1 Basic Income Token = $1 or more 

2) money LOVES discipline 

be consistent with your efforts! and systematically increase
the number of people you refer every single day. 

start with 3-5 people/day. pump more traffic,
do more marketing, daily! 

Team Basic Income Network

Autopilot Basic Token Income

Hi Guys,

Finally everyone in the world can make Basic Income…Sign Up For Free To Start Making 100 FREE Basic Income Tokens Everyday On Autopilot

http://basicincome.network/kalmike

get as many as possible to signup for Basic Income Network
with your referral linkn You get 500 tokens/referral…

and this will start to build your wealth, when each basic income
token gets converted to a cryptocurrency……

1 Basic Income Token = $1 or more 

2) money LOVES discipline 

be consistent with your efforts! and systematically increase
the number of people you refer every single day. 

start with 3-5 people/day. pump more traffic,
do more marketing, daily! 

Team Basic Income Network

Autopilot Basic Token Income

Hi Guys,

Finally everyone in the world can make Basic Income…Sign Up For Free To Start Making 100 FREE Basic Income Tokens Everyday On Autopilot

http://basicincome.network/kalmike

get as many as possible to signup for Basic Income Network
with your referral linkn You get 500 tokens/referral…

and this will start to build your wealth, when each basic income
token gets converted to a cryptocurrency……

1 Basic Income Token = $1 or more 

2) money LOVES discipline 

be consistent with your efforts! and systematically increase
the number of people you refer every single day. 

start with 3-5 people/day. pump more traffic,
do more marketing, daily! 

Team Basic Income Network

Some basic questions on crystalline cohomology

Let $ X_0$ be a smooth projective variety over $ \mathbf{F}_q$ and $ {X}$ its base change to an algebraic closure $ k$ of $ \mathbf{F}_q$ .

Crystalline cohomology $ H^*_{\rm cris}(X) := H^*((X/W(k))_{\rm cris},\mathcal{O}_{(X/W)_{\rm cris}})[1/p]$ is known to be a Weil cohomology.

It is also known to be computed as the Zariski hypercohomology of the de Rham-Witt complex $ W\Omega^*_X$ , and the Hodge to de Rham spectral sequence:

$ $ E_2^{i,j} := H^i(X_{\rm Zar},W\Omega^j_X)[1/p]\Rightarrow H^{i+j}_{\rm cris}(X)$ $

degenerates at the second page.

  • Do we therefore have a “Hodge decomposition” $ $ \bigoplus_{i+j=n}H^i(X_{\rm Zar},W\Omega^j_X)[1/p]=H^n_{\rm cris}(X)\ \ ?$ $
  • When $ n$ is even and $ i=j=n/2$ , does the geometric Frobenius act on $ H^i(X_{\rm Zar},W\Omega^i_X)$ by multiplication by $ q^i$ ?
  • Are the Frobenius eigenvalues on $ H^i(X_{\rm Zar},W\Omega^j_X)[1/p]$ (base changed to an algebraic closure of $ \text{Frac}(W)$ ) not integers when $ i\neq j$ ?
  • And on a more naive level, where do we crucially use that $ k$ is algebraically closed? We know there is no Weil cohomology with coefficients in $ \mathbf{Q}_p$ , so when $ p = q$ we know crystalline cohomology with $ W(\mathbf{F}_p)[1/p]$ coefficients can’t work. Where do the proofs of the axioms break down when $ k$ is not algebraically closed?

Basic orbiting planets in P5.js

I started studying Javascript about a week ago and I would like some opinions and advice on my code. This program just creates a canvas and instantiates 5 planets that orbit around a sun, giving them each a different speed, color, and size.

It uses the p5.js library, the code can be run in the p5.js web editor. (You might want to expand the preview panel on the right after pasting the code, before you run the script.)

The code is is different files(class Orbiter, extra math functions and main code) but I’ll put it here in one go:

// Converts from degrees to radians. Math.radians = function(degrees) {     return degrees * Math.PI / 180;   };  // Converts from radians to degrees. Math.degrees = function(radians) {     return radians * 180 / Math.PI;   };   class Orbiter {      constructor(rad, orbitAlt, x = 0, y = 0, orbitAngle = 0, orbitAngleMod = 1, colorR=255, colorG=255, colorB=255, colorA=255){         this.orbitAngle = orbitAngle; // Angle formed by the radius of the orbit and the x plane.         this.orbitAngleMod = orbitAngleMod; // Increment/decrement of  orbitAngle         this.rad = rad; // Radius         this.orbitAlt = orbitAlt; // Distance to the orbited object's position (Alt for altitude)          // Position         this.x = x;         this.y = y;          // Color variables         this.colorR = colorR;         this.colorG = colorG;         this.colorB = colorB;         this.colorA = colorA;     }      orbit(object){         this.x = object.x + this.orbitAlt * cos(Math.radians(this.orbitAngle));         this.y = object.y + this.orbitAlt * sin(Math.radians(this.orbitAngle));         this.orbitAngle = this.orbitAngle + this.orbitAngleMod;          // Reset the angle to 0 after a complete revolution to avoid an ever increasing value.         if(this.orbitAngle >= 360){             this.orbitAngle = 0;         }     }      display(){         noStroke();         fill(this.colorR, this.colorG, this.colorB, this.colorA);         return ellipse(this.x, this.y, this.rad, this.rad);     }   }  let planets = []; let sun = new Orbiter(100, 0);  function setup(){     createCanvas(windowWidth-3, windowHeight-3);     frameRate(144);      // Set up the Sun's colors and coordinates     sun.colorR = 255;         sun.colorG = 200;         sun.colorB = 0;     sun.x = windowWidth/2;     sun.y = windowHeight/2;      // Instantiate 5 planets     for(i = 0; i < 5; i++){         planets[i] = new Orbiter(5 + i * 15, 110 + i*70);         planets[i].orbitAngleMod= 1.4 - i/7;         planets[i].orbitAngle= i*5;          planets[i].colorR = i * 50 + 5;         planets[i].colorG = 255 - planets[i].colorR;         planets[i].colorB = 255 - planets[i].colorR;     } }  function draw(){     background(0, 10, 40);      for(planet of planets){         planet.orbit(sun);         planet.display();     sun.display()     }  } 

I’d be really grateful if you could give me some feedback on the structure of my code, whether it’s in line with Javascript best practices, or in general if there’s anything you see in there that you think is just wrong or should be written in a different way. Anything that you think could help me write better code: I don’t know what I don’t know!

Use colorbox node from a jquery command on a basic page?

I’m trying to open up a node via the Drupal 7 Colorbox Node module on a basic page using jQuery and hooks from a map. I can get colorbox to put up a HTML pop-up using this code:

 <script type="text/javascript">   simplemaps_worldmap.hooks.click_state = function(id){      if (id == "USTX") {          jQuery.colorbox({width:"40%", height:"40%", html:'<h3>Distributors for Texas</h3><br /><p><a target="_blank" href="./content/distr-1">Distributor 1</a><br /><a target="_blank" href="./content/dist-2"}>Distributor 2</a><br /><a target="_blank" href="./content/dist-3"}>Distributor 3</a></p><p><br />Click on the Distributor for more information</p>'});   }   </script> 

But what I would like to do is set up a content type for state and add the info there. Then use the colorbox node module to display that content when the state is clicked. The closest I can come is to open a pop-up with a link that can be clicked that then opens the colorbox node page.

  <script type="text/javascript">    simplemaps_worldmap.hooks.click_state = function(id){       if (id == "USTX") {           jQuery.colorbox({href:'<a class="colorbox-node" href="./content/TX?width=600&height=600">TEXAS</a>' });   }    </script> 

Any suggestions would be greatly appreciated.

Thanks.

unique_ptr basic implementation for single objects

This is an implementation to simulate the basic functionality of unique_ptr.
This doesn’t provide features like custom deleter and make_unique().

I would really appreciate any feedback to improve the below code, any other api’s that I should be providing etc.

my_unique_ptr.h

#ifndef MY_UNIQUE_PTR_H_ #define MY_UNIQUE_PTR_H_  #include <utility>  namespace kapil {   template <typename T>   class unique_ptr final {     private:       T* ptr_;       unique_ptr(const unique_ptr&) = delete;               // Make unique_ptr non copy constructible       unique_ptr& operator = (const unique_ptr&) = delete;  // Make unique_ptr non copy assignable      public:       explicit unique_ptr (T* ptr = nullptr) noexcept         : ptr_{ptr} { }        unique_ptr(unique_ptr<T>&& rval) noexcept               // Move constructor         : ptr_{rval.ptr_} {         rval.ptr_ = nullptr;       }        unique_ptr& operator = (unique_ptr&& rhs) noexcept {   // Move assignment         delete ptr_;         ptr_ = rhs.ptr_;         rhs.ptr_ = nullptr;         return *this;       }        ~unique_ptr() noexcept {         delete ptr_;       }         T* release() noexcept {         T* old_ptr = ptr_;         ptr_ = nullptr;         return old_ptr;       }        void reset(T* ptr = nullptr) noexcept {         delete ptr_;         ptr_ = ptr;       }        void swap(unique_ptr& rhs) noexcept {         std::swap(ptr_, rhs.ptr_);       }        T* get() const noexcept {         return ptr_;       }        explicit operator bool() const noexcept {         return (ptr_ != nullptr);       }        T& operator * () const {         return *ptr_;       }        T* operator -> () const noexcept {         return ptr_;       }        friend bool operator == (const unique_ptr& lhs, const unique_ptr& rhs) {         return lhs.get() == rhs.get();       }        friend bool operator != (const unique_ptr& lhs, const unique_ptr& rhs) {         return !(lhs == rhs);       }   };    template <typename T>   void swap(unique_ptr<T>& lhs, unique_ptr<T>& rhs) {     lhs.swap(rhs);   } } //kapil  #endif 

About the location block on apache server for gogs with basic authentication

I use apache Apache/2.4.25. I use its reverse proxy for gogs which is a git repository docker container image.

The important is that I use basic authentication. I am able to visit web site and to use git clone. The only one I can’t make git push work.

The reason is that there is only one time credential asking. Yes. It is only one time. In addition, I have no way to make gogs container to handle this matter.

So, I wonder a possibility on Apache to handle this matter if ” block” is able to skip the basic authentication asking via regex. => QUESTION

Here I analyze the query via GIT_CURL_VERBOSE=1 git push. I see there is a url with arguments(those parameters after question mark).

GET /username/repo.git/info/refs?service=git-upload-pack

Is Apache able to write a regex for matching the above query and make the basic authentication stop to ask credentials?

Here it’s apache configuration.

<VirtualHost *:80>   ServerAdmin admin@localhost   DocumentRoot /var/www/docker-gogs/data/gogs   ServerName myserver.org   ServerAlias myserver.org   <Proxy *>     Options +FollowSymLinks +Multiviews +Indexes     AllowOverride None     AuthType basic     AuthName "private"     AuthUserFile /etc/apache2/.htpasswd     Require valid-user     AllowOverride All     Order allow,deny     allow from all   </Proxy>   ProxyRequests off   ProxyPass / http://127.0.0.1:3001/   ProxyPassReverse / http://127.0.0.1:3001/   ErrorLog /var/log/apache2/gogs-error_log   CustomLog /var/log/apache2/gogs-access_log common </VirtualHost>