Why does manual focus not work on my Nikon D7200 and AF-S 300mm 1: 4 ED?

I finally got a D7200 (2.017 & 1.04 firmware) and a 300mm f4 / D AF-S (not VR version). The serial number of my lens is 33xxxx.

AF works, but manual focus does not work.
I have tried the settings M / AF (Body) and M / A or M (Lens), but still nothing happens. If I switch the lens to MF, I can turn the focus ring, but the display / indicator on the lens is still mute.

Could something be due to the camera or the lens?

The command python-az webapp up_name sampleFlaskApp does not work in Azure

I am new in the azure blue. I follow a sample tutorial to provide a bottle app on Azure. I came across a command az webapp up - name sampleFlaskApp the error message as below raises.

msrest.exceptions.ValidationError: The parameter & # 39; resource_group_name & # 39; must match the following pattern: & # 39; ^[-w._()]+ $ & # 39;

Javascript – Does AOS Library not work while scrolling?

Very good for everyone.
I recently found an animation library in the scroll of a page called AOS – Animate on Scroll Library,

The case is that I try to implement it in my HTML page, and the next one happens to me. It works only by zooming on the page, not by scrolling. I leave some code for you to get an idea:

.text-center {
Align text: center;


.parentcolumnecom {
Overflow: hidden;
Margin: 50px 50px 20px 50px;
Display: -webkit-flex;
Display: -ms-flexbox;
Display: Flex;

.columnecom, .columnecom1, .columnecom2 {
Width: 33.33%;
flex: 1;
Upholstery: 30px;
Boundary radius: 20px;
Background color: # 929FB1;
Position: relative;
Swimmer: left;
Right edge: 10px;
Display: grid;
Raster Template Lines: Repeat (1,1fr);
Grid template areas:

.columnecom {
Swimmer: left;
Right edge: 10px;

.columnecom1 {
Right edge: 10px;
Edge left: 10px;


.columnecom2 {
Swimmer: right;
Edge left: 10px;

.title-sect {
Text transformation: uppercase letters;
Background color: white;
Boundary radius: 10px;

Advantages {
Edge up: car;
Edge down: car;
Padding: 10px;
Background color: white;
Boundary radius: 20px;
bottom: 0px;
Net area: b;
Align elements: End;

  Delete an Andorra




Operating modalities and safety.

ClearONE offers the three operating modalities defined for Electronic Commerce:

Not safe trade

It's the easiest way to work with e-commerce.

It offers no security to the trade, since only the basic data of the card in the purchase process are required (PAN + Expiration + CVV).

Main advantage:

For the user, the purchase process is faster and easier.

Main drawback:

As this is an uncertain trade, the bank transfers the risk of fraud to trading. When a customer claims a transaction ("chargeback"), the bank always gives the customer a reason that the transaction does not cover the amount of the transaction. (No hi! has a way to avoid transactions with a stolen card)

Safe trade

This method is equivalent to using the PIN in face-to-face trading.

To complete the transactions in this method, you need the PIN or password known only to the owner, so that a "chargeback" with the argument "I did not complete this purchase" is not accepted. 3D Secure ". At the time the payment is processed, the order will be forwarded to the holder's bank, which may proceed according to the procedure established by its bank. The owner enters the code, the bank confirms it and the purchase process ends.

Main advantage:

The transactions have a high degree of security because the owner has "signed" the transactions. It is much more difficult to call "chargebacks" as the risk is transferred to the bank.

Main drawback:

The purchase process is more expensive for the owner.

Dynamic operation (not safe + secure)

It is a hybrid of the two types mentioned above.

It is generally used as follows:

The first purchase of a new customer requires safe trading, and from there, subsequent purchases use the use of non-secure trading.

Other rules may be used because, for example, a successive purchase involving a higher amount of the established one will execute the safe trade even if the customer has already identified.

Main advantage:

The transactions have a high degree of security because the owner has "signed" the transactions.

Main drawback:

The first purchase or purchase according to a certain criterion is a bit more complicated for the owner.

Implementing here works perfectly, but if I want to see the whole page (in Chrome), it only works if I zoom in or out.

I do not know if there's a conflict between all the libraries I have, or if I really have something with the code.

Thanks in advance.

postgresql – How does postgres host-based authentication work?

This is a duplicate of:


(I was asked to move this query to DBA.Stackexchange.)

I install DSPACE, which needs postgresql.

Please see this link: -DSPACE INSTALL

It says :

Then increase security by editing pg_hba.conf and adding this line: host dspace dspace md5.

I read on the internet how the above line works. It requires a connection type, followed by database name / username, followed by the IP address and the authentication scheme.

My question is: Should not it be a local connection (instead of a host) because the dspace user is running locally?

Can someone show me, step by step, what happens when a request is received?
Where are the instructions the dspace user requests with md5?

Javascript – $ resource no work $ save error: $ resource: badcfg with PHP backend

My API backend is in PHP, for each method a Json result is printed (GET, POST, PUT and DELETE).


/ api / Download GET Print the Json result for all
/ api / Download POST Prints the result of a new document
/ api / Download / id GET Prints the result of a document from a document
/ api / Download / id PUT Prints the json result
/ api / Download / id DELETE Delete json result deleted

All methods are successful in PostMan or Restlet. The only method that works in AngularJs is Query()

The results in API php:

header (& # 39; Content-Type: application / json & # 39;);
echo json_encode ($ result);

My code AngularJS:

app.factory (& # 39; download & # 39 ;, function ($ resource) {
Return $ resource (& # 39; / api / Download /: id & # 39 ;, {id: & # 39; @ id & # 39;}, {
& # 39; get & # 39 ;: {method: & # 39; GET & # 39;},
'Save': {method: & # 39; POST & # 39;},
& # 39; update & # 39 ;: {method: & # 39; PUT & # 39;},
# Query: # method: & # 39 ;, GET & # 39 ;, isArray: true},
& # 39; delete & # 39 ;: {method: & # 39; DELETE & # 39;}

My controller:

app.controller (& # 39; ProductoController & # 39 ;, Function ($ scope, $ http, Download) {
var d = new download ({
Version: 123,
comentario: "test test"
d. $ save ();

The error in $ save () is:

Error: $ resource: badcfg
Answer does not match the configured parameter

MousePicking in LWJGL – How does it work?

I was working on a mouse picker for a scene in 3D for a client and had problems implementing a proper mouse click. Its application does not use a camera, and I try to get the beam from the flat display.

What should happen: Right-click with the mouse, selected, creates rays from the mouse point to the back of the display.

/ *
private Vector3f currentRay = new Vector3f () ;;

private matrix4f projection matrix;
private matrix4f viewMatrix;
private camera camera;

private Vector3f currentWorldPoint;

public picker (camera, matrix4f projection)
this.cam = cam;
Projection matrix = projection;
viewMatrix = Camera.createViewMatrix (this.cam);

public Vector3f getMousePosition () {
return currentWorldPoint;

// Returns the current value
public Vector3f getCurrentRay () {
return currentRay;

public invalid update (camera cam) {
viewMatrix = Camera.createViewMatrix (Nock);
currentRay = calculateMouseRay ();

// Takes the X Y of the mouse POS and changes it from Normalize> Clip> Eye> World coordinates of the screen.
// Returns the world coordinates of the ray
private Vector3f computeMouseRay () {
float mouseX = Mouse.getX ();
float mouseY = Mouse.getY ();
Vector2f normalizedCoords = getNormalizedDeviceCoords (mouseX, mouseY);
Vector4f clipCoords = new Vector4f (normalizedCoords.x, normalizedCoords.y, -1.0f, 1.0f);
Vector4f eyeCoords = toEyeCoords (clipCoords);
Vector3f worldRay = toWorldCoords (eyeCoords);
back WeltRay;

// records the flow movements of the X Y of the mouse and returns the X Y according to the normalized coordinates.
private Vector2f getNormalizedDeviceCoords (Float-MouseX, Float-MouseY) {
float x = (2f * mouseX) / Display.getWidth () - 1;
float y = (2f * mouseY) / Display.getHeight () - 1f;
Return new Vector2f (x, y);

// Records the eye coordinates of the mouse position and returns the world coordinates.
private Vector3f toWorldCoords (Vector4f eyeCoords) {
Matrix4f invertedView = Matrix4f.invert (viewMatrix, null);
Vector4f rayWorld = Matrix4f.transform (invertedView, eyeCoords, null);
Vector3f mouseRay = new Vector3f (rayWorld.x, rayWorld.y, rayWorld.z);
mouseRay.normalise ();
return mouseRay;

// Accepts the clip coordinates of the mouse and returns them in eye coordinates
private Vector4f toEyeCoords (Vector4f clipCoords) {
Matrix4f invertedProjection = Matrix4f.invert (projectionMatrix, null);
Vector4f eyeCoords = Matrix4f.transform (invertedProjection, clipCoords, null);
Return new Vector4f (eyeCoords.x, eyeCoords.y, -1f, 0f);

private Vector3f getPointOnRay (Vector3f ray, float distance) {
Vector3f camPos = cam.getPosition ();
Vector3f start = new Vector3f (camPos.x, camPos.y, camPos.z);
Vector3f scaledRay = new Vector3f (ray.z * distance, ray.y * distance, ray.z * distance);
return Vector3f.add (start, scaledRay, null);
* /

static Vector3f startRay;
static Vector3f EndRay;

public picker () {
startRay = new Vector3f ();
endRay = new Vector3f ();

private static Vector2f getMouseCoords () {
float x = (2f * Mouse.getX ()) / Display.getWidth () - 1;
float y = (2f * Mouse.getY ()) / Display.getHeight () - 1f;
Return new Vector2f (x, y);

private Vector3f computeMouseRay () {
float mouseX = Mouse.getX ();
float mouseY = Mouse.getY ();
Vector2f normalizedCoords = getMouseCoords ();
Vector4f clipCoords = new Vector4f (normalizedCoords.x, normalizedCoords.y, -1.0f, 1.0f);
Vector4f eyeCoords = toEyeCoords (clipCoords);
Vector3f worldRay = toWorldCoords (eyeCoords);
back WeltRay;

public static String getRayStr () {
float x = (2f * Mouse.getX ()) / Display.getWidth () - 1;
float y = (2f * Mouse.getY ()) / Display.getHeight () - 1f;
String str = "mouse X:" + x + "mouse Y:" + y;
str + = " nStart X:" + startRay.x + "Start Y:" + startRay.y + "Start Z:" + startRay.z;
str + = " nEnd X:" + endRay.x + "End Y:" + endRay.y + "End Z:" + endRay.z;
return str;

public static void setStartRay () {
Vector2f mousePos = getMouseCoords ();
Vector3f tempStartPos = new Vector3f ();
tempStartPos.x = mousePos.x;
tempStartPos.y = mousePos.y;
tempStartPos.z = 0;

startRay = tempStartPos;

public static void setEndRay () {
Vector2f mousePos = getMouseCoords ();
Vector3f tempEndPos = new Vector3f ();
tempEndPos.x = mousePos.x;
tempEndPos.y = mousePos.y;
tempEndPos.z = -1;

endRay = tempEndPos;

public static Vector3f getStartRay () {
return startRay;

public static Vector3f getEndRay () {
return endRay;

Database – Why do not my foreign key restrictions work?

I have my database user_message and what happened is mine Foreign key constraints They do not work, I give the example I made:

I tried to insert a message to a user who did not exist and left me Since I should not the BD, and I do not really, because it does not work the restrictions I have asked.

Then I leave mine BD :

CREATE DATABASE users_message;
USE message_user;


Last name VARCHAR (50),
Password VARCHAR (50) NOT NULL,



CREATE TABLE messages (

Content VARCHAR (2000) NOT NULL,
Creator VARCHAR (50) NOT NULL,

Primary key (ID),




CREATE TABLE tags_in_messages (
message_id INT (50) NOT NULL,

Primary key (ID),
FOREIGN KEY (id_message) REFERENCES messages (id),
FOREIGN KEY (tag_id) REFERENCES tags (id),