python – How to properly use the if else statement in my code?

I used conditional statement but here only other statement working in if statement does not work. Why and how to solve it?

import csv

entry = input (& # 39; Enter the name: & # 39;)
with open (& # 39; file.csv & # 39; r & # 39; r) like csv_file:
csv_reader = csv.reader (csv_file)
for the line in csv_reader:
if online entry[0]:
print ('The name is already present in the collection. & # 39;)
if the entry is not online[0]:
print (This name is new to the collection.)

Ubuntu 16.04 – Is my CAFFE properly installed?

I have a problem with NVIDIA DIGITS, so I check first if CAFFE works (here is the link to the DIGITS error). I'm trying to check if my computer is properly installed.

when I run do a test I receive
CXX src / caffe / test / test_hdf5data_layer.cpp
src / caffe / test / test_hdf5data_layer.cpp: 4: 18: fatal error: hdf5.h: No such file or directory
compilation completed.
Makefile: 583: the recipe for the target .build_release / src / caffe / test / test_hdf5data_layer.o & # 39; has failed
make: *** [.build_release/src/caffe/test/test_hdf5data_layer.o] Error 1

when I run test I receive CXX src / caffe / test / test_hdf5data_layer.cpp
src / caffe / test / test_hdf5data_layer.cpp: 4: 18: fatal error: hdf5.h: No such file or directory
compilation completed.
Makefile: 583: the recipe for the target .build_release / src / caffe / test / test_hdf5data_layer.o & # 39; has failed
make: *** [.build_release/src/caffe/test/test_hdf5data_layer.o] Error 1

I've reinstalled this by sudo apt-get install libgflags-dev then repeat does everything and received

    CXX src / caffe / solvers / sgd_solver.cpp
In the included file from ./include/caffe/common.hpp:19:0, & # 39;
of ./include/caffe/blob.hpp:8,
of ./include/caffe/net.hpp:10,
of ./include/caffe/solver.hpp:7,
of ./include/caffe/sgd_solvers.hpp:7,
from src / caffe / solvers / sgd_solver.cpp: 4:
./include/caffe/util/device_alternate.hpp:34:23: fatal error: cublas_v2.h: no such file or directory
compilation completed.
Makefile: 583: Recipe failure for target .build_release / src / caffe / solvers / sgd_solver.o & # 39;
make: *** [.build_release/src/caffe/solvers/sgd_solver.o] Error 1

java – Is there a way to properly use without incurring abstract class error

I am an Android developer tutorial on sending a simple HTTP request:

I receive an error: "Auditor is abstract; can not be instantiated & # 39;

I've checked

Which describes the answer class and the listening interface. There is no mention of an abstract class. I should be able to instantiate a new Listener as long as the required methods are included. Correct?

Protected void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.activity_main);

Button getQuoteBtn = (Button) findViewById (;
getQuoteBtn.setOnClickListener (new View.OnClickListener () {
public void onClick (View view) {
RequestQueue quoteQue = new Volley.newRequestQue (this);
String quoteUrl = "";
StringRequest stringRequest = new StringRequest (Request.Method.GET, quoteUrl, new Response.Listener()) {
public void onResponse (Chain Response) {


The line in question is:
new Response.Listener ())

is highlighted in red with the error message: the listener is abstract, it can not be instantiated.

There is no mention of this in the Android tutorial afformentionné.

transformation – Why does my custom skin skin mesh implementation not work properly?

I create my own scripted implementation of a mesh mesh in unit for collision detection. But I have encountered some problems every time I update the vertex positions using the update frame function to match the white model, the blue wire model that is my custom implementation matches its white counterpart and is correctly positioned. Updating the frame several times without changing the rotation of the model will change the orientation of the wireframe.

Here is an example.

[![enter image description here][1]][1]

I do not know if my formula in UpdateArmature for calculating vertex positions is incorrect, nor my rendering method, or both.

    using System.Collections;
using System.Collections.Generic;
use UnityEditor;
using UnityEngine;

Public class MeshArmature: MonoBehaviour

public SkinnedMeshRenderer skinnedMesh;
public network;
Public BoneWeight[] weight;

Public transformation[] bones;
public Transform rootBone;

DynamicMeshCollider meshCollider;

bool ManualVolumes;

public transformation player;

// Use this for initialization
public void Start ()
public void Setup ()
skinnedMesh = GetComponentInChildren();
mesh = new Mesh ();
skinnedMesh.BakeMesh (mesh); =;
os = skinnedMesh.bones;
rootBone = skinnedMesh.rootBone;
weight = skinnedMesh.sharedMesh.boneWeights;

meshCollider = GetComponent();
meshCollider.mesh = mesh;
meshCollider.Setup ();


public void UpdateArmature ()
listing green = new list();
mesh.GetVertices (green);

for (int i = 0; i <mesh.vertices.Length; i ++)
Vector3 green = new Vector4 (green[i].x, green[i].y green[i].z);
Matrix4x4 trs = Matrix4x4.TRS (bones[weight[weights[poids[weights[i].boneIndex0].position, bone[weight[weights[poids[weights[i].boneIndex0].rotation, bones[weight[weights[poids[weights[i].boneIndex0].localScale);
green = trs.MultiplyPoint (green) * weight[i].weight0;
green[i] = green;


meshCollider.mesh.SetVertices (green);



// rendering code for the blue mesh

Public class DMAGizmoDrawer
         [DrawGizmo(GizmoType.Selected | GizmoType.Active)]
         DrawGizmo static vacuum (MeshArmature arm, type GizmoType)
Gizmos.color =;
if (arm.mesh)
Gizmos.DrawWireMesh (arm.mesh, arm.transform.position);



image quality – How to properly use 2 household torches to take pictures indoors?

I have 2 lights in my room but their light is not enough. So, I suppose them as ambient light.

I do not have enough money to buy something expensive, like in the studio. I have 2 torches similar to this. I have to click on the picture of my work, which I can fix on the wall or place on a table.

I know that I can place them at an angle of 45 but the problem is that their light is clear on the drawing, it is uneven. Is it possible to make it better or it's not easy to use them as light for photography? If possible, I would like to know how I can do it.

Moreover, if I hold the torch in my hand, instead of fixing it somewhere, would the trembling of the light affect the quality of the photos?

event observ – When I use "echo" in vendor methods – Products do not display, but work properly without this one.

I have the following code:

                public function getProductCollection ()
if (isset ($ this -> _ productCollections[$this->getCurrentCategory()->getId()])) {
$ collection = $ this -> _ productCollections[$this->getCurrentCategory()->getId()];
} other {
$ collection = $ this-> collectionProvider-> getCollection ($ this-> getCurrentCategory ());
$ this-> prepareProductCollection ($ collection);
$ this -> _ productCollections[$this->getCurrentCategory()->getId()] = $ collection;

echo "Number of collections". $ collection-> count ();

return $ collection;

When I tried to echo the number of collections – it is still equal to 0, but when I delete this string – everything is fine, the number is equal to 16. How?

Custom fields do not work properly

I want to add custom fields, a phone number and an address at the beginning of my website.

I've read this question: How to add a field in the users profile? For example, country, age, etc.

I typed this code in my function.php


<type of entry = "text" name = "address" id = "address" value = ""ID, 'address', true)); ?> "class =" regular text "/>
<type of entry = "such" name = "such" id = "such" value = ""ID, & quot; true & quot;); ?> "class =" regular text "/>
<? php} add_action (& # 39; personal_options_update & # 39 ;, save_extra_user_profile_fields & # 39;); add_action (& # 39; edit_user_profile_update & # 39 ;, save_extra_user_profile_fields & # 39;); function save_extra_user_profile_fields ($ user_id) { if (! current_user_can (& # 39; edit_user & # 39 ;, user_id)) { returns false; } update_user_meta ($ user_id, & # 39; address, $ _POST['address'] ) update_user_meta ($ user_id, & # 39; tel, $ _POST['tel'] ) }

It works, I can edit and save these fields in the profile page of my back office.
However, when I use the following code (function-based) in my page to view and edit this information, the address field works correctly, but not the phone's one.

ID, & # 39; address & # 39; true); ?>

ID, & quot; true & quot; ?>

<type of entry = "text" name = "address" id = "address" value = ""ID, 'address', true)); ?> "class =" regular text "/>
<type of entry = "text" name = "such" id = "such" value = ""ID, & quot; true & quot;); ?> "class =" "/>

I do not know why the address field has the correct behavior and not the phone.
By the way, I defended the function, am I not supposed to use only do_action (& # 39; function name & # 39;);
to do this ?

Thank you

Will a CDMA iPhone work properly in most countries?

According to Apple, the A1660 and A1661 can not use LTE technology in most countries. My experience suggests that many functions are unpleasantly slow or impossible without LTE. But I have not been able to find an A1784 or A1778 in Oregon or on the Apple website.

Contacted Apple and got an "expert" who insisted that the A1661 works all over the world and seemed to think that the webpage was inaccurate.

Online descriptions of LTE technology suggest that there is no indeterminate number to describe its bit rate.

If I receive a CDMA iPhone 7, is there a reliable description of what will not work in Mexico City, Toronto, Madrid, Seoul or elsewhere?

jquery – Javascipt dynamic computation does not work properly

I want something like when the user enters 1 then he should give 1 * 1.2 - 1 = 0.20
where 1.2 is constant but it gives 1 * 1.2 - 1 = 0.19999999999999996

I've also tried another function like tofixed and math.round


Price of initial purchase of the barrel (*)

VAT due on the purchase price


color management – How to properly calibrate a monitor

Here are the ones I've seen so far that could affect the color display:

  1. GPU and Windows Settings – I'm using an Nvidia GTX 1060
  2. Monitor calibrators – I have a Spyder5Elite
  3. The monitor settings – I have an ASUS PA279Q monitor that has its own settings.
  4. The application itself – Photoshop for example.

I use the configuration of my computer to edit photos, mainly. My goal is to get colors as accurate as possible. So I have to calibrate my monitor to achieve it.

My problem is that with so many things that could affect the color, as mentioned above, I'm not sure which I should focus on or should I change the 4?

In addition, in the Nvidia Control Panel there is an option to use Nvidia or default color settings. What is the defect alluding to?