501 Too many syntax or protocol errors – Outlook / Outlook Express

Hello,
I was wondering if you have suffered problems with customers using Outlook for sending emails due to this rule
in CSF firewall that… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1826236&goto=newpost

applications – why does my app crash, even though there are no errors in android studio?

i am new to android studio, and this is my first program. However, before sometime it was working fine, but now when i run the code, it crashes.
here’s my code:)

content_main.xml:

<?xml version="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/pitch"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:ignore="MissingClass">

    <ImageView
        android:id="@+id/box"
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:layout_marginStart="120dp"
        android:layout_marginLeft="120dp"
        android:layout_marginTop="480dp"
        android:src="@drawable/cricketer"
        app:layout_constraintBottom_toTopOf="@+id/text"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:ignore="MissingConstraints"
        tools:srcCompat="@tools:sample/avatars" />

    <FrameLayout
        android:id="@+id/frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:ignore="MissingConstraints"
        tools:layout_editor_absoluteX="-135dp"
        tools:layout_editor_absoluteY="-98dp">

        <TextView
            android:id="@+id/score"
            android:layout_width="485dp"
            android:layout_height="345dp"
            android:text="Score: 0"
            android:textSize="30dp"
            tools:ignore="MissingConstraints" />

        <ImageView
            android:id="@+id/pink"
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:src="@drawable/red_ball"
            tools:ignore="MissingConstraints"
            tools:srcCompat="@tools:sample/avatars" />

    </FrameLayout>

    <ImageView
        android:id="@+id/black"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:src="@drawable/blue_ball"
        tools:ignore="MissingClass,MissingConstraints"
        tools:layout_editor_absoluteX="30dp"
        tools:layout_editor_absoluteY="30dp"
        tools:srcCompat="@tools:sample/avatars" />

    <ImageView
        android:id="@+id/orange"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:src="@drawable/violet_ball"
        tools:ignore="MissingConstraints"
        tools:layout_editor_absoluteX="30dp"
        tools:layout_editor_absoluteY="30dp"
        tools:srcCompat="@tools:sample/avatars" />

    <Button
        android:id="@+id/leftBtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Left"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.061"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.966" />

    <Button
        android:id="@+id/rightBtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Right"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.938"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.963" />

    <TextView
        android:id="@+id/text"
        android:layout_width="146dp"
        android:layout_height="124dp"
        android:text="Tap To Play"
        android:textSize="28dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="1.0"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.667"
        tools:ignore="MissingConstraints" />

</androidx.constraintlayout.widget.ConstraintLayout>

Main_Activity.java:

package com.example.subwaycricketer;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Bundle;
import android.view.Display;
import android.view.MotionEvent;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;

public class MainActivity extends AppCompatActivity implements View.OnTouchListener {
    private int screenHeight;
    private int screenWidth;

    private Button btn;

    private boolean gameover = false;

    private TextView text;

    private ImageView box, pink, black, orange;
    private FrameLayout frame;
    private Drawable imageBoxRight, imageBoxLeft;
    private float boxX, boxY, pinkY, pinkX, blackX, blackY, orangeX, orangeY;
    private boolean start = false;
    private boolean action_left, action_right;

    private Timer timer = new Timer();
    private Handler handler = new Handler();

    Canvas c;
    Paint paint;
    private View view;
    private MotionEvent motionEvent;
    private float frameHeight;
    private float pinkSize, orangeSize, blackSize, boxSize, boxWidth;
    private int score;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        box = findViewById(R.id.box);
        pink = findViewById(R.id.pink);
        orange = findViewById(R.id.orange);
        black = findViewById(R.id.black);
        text = findViewById(R.id.text);

        // pos
        orange.setX(200.0f);
        orange.setY(-80.0f);
        pink.setX(580.0f);
        pink.setY(-80.0f);
        black.setX(460.0f);
        black.setY(-80.0f);

        findViewById(R.id.leftBtn).setOnTouchListener(this);
        findViewById(R.id.rightBtn).setOnTouchListener(this);
    }

    public void changePos() {
        hitcheck();

        boxX = box.getX();
        boxY = box.getY();

        // Left
        if (action_left) {
            boxX -= 20;
        }

        // Right
        if (action_right) {
            boxX += 20;
        }

        if (boxX < -70) boxX = -70;

        if(boxX > 450) {
            boxX = 450;
        }

        box.setX(boxX);
        box.setY(boxY);

        if(start) {
            pinkY += 26;
            orangeY += 10;
            blackY += 6;
        }

        pink.setY(pinkY);
        orange.setY(orangeY);
        black.setY(blackY);

        if(blackY >= 1550) {
            blackY = -20;
        }
    }

    public void hitcheck() {

        // Black
        float blackCenterX = blackX + black.getWidth() / 2.0f;
        float blackCenterY = blackY + black.getHeight() / 2.0f;

        // Black
        float orangeCenterX = orangeX + orange.getWidth() / 2.0f;
        float orangeCenterY = orangeY + orange.getHeight() / 2.0f;

        // Black
        float pinkCenterX = pinkX + pink.getWidth() / 2.0f;
        float pinkCenterY = pinkY + pink.getHeight() / 2.0f;


        if ( blackCenterY >= boxY && blackCenterY >= boxY + boxSize / 2 && blackCenterX <= boxX && blackCenterX >= boxX - boxWidth) {
            start = false;
            action_right = false;
            action_left = false;
        }

    }

    @SuppressLint("ClickableViewAccessibility")
    public boolean onTouch(View view, MotionEvent motionEvent) {
        this.view = view;
        this.motionEvent = motionEvent;
        if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
            switch (view.getId()) {
                case R.id.leftBtn:
                    action_left = true;
                    break;
                case R.id.rightBtn:
                    action_right = true;
                    break;
            }
        } else {
            action_left = false;
            action_right = false;
        }
        return true;
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        if(!start) {
            start = true;
            text.setVisibility(View.INVISIBLE);

            pinkSize = pink.getHeight();
            orangeSize = orange.getHeight();
            blackSize = black.getHeight();
            boxWidth = box.getWidth();

            boxSize = box.getHeight();

            frame = findViewById(R.id.frame);

            timer.schedule(new TimerTask() {
                @Override
                public void run() {
                    handler.post(new Runnable() {
                        @Override
                        public void run() {
                            changePos();
                        }
                    });
                }
            }, 0, 20);
        }
        return super.onTouchEvent(event);
    }
}

any help would be very appreciated:)

cors – WordPress: console errors from web sites I have linked to

On this one page of my site, https://litchfieldmagazine.com/litchfield-county-design-resource-guide/

I have hundreds of console errors that are coming from sites I have linked to in the posts displayed on the page. Security errors, iframe warning, font warnings etc.

I know what to do if these were errors on my site, but why am I getting errors about content that is not even on my site, but is on someone else’s that I have just hyperlinked to?

I have never seen anything like this before.

MacBook Pro 15 slow after reset, Console full with errors

Over the last two weeks, my MacBook decided to stop loading pages with the error “server cannot be contacted”. As it has been some time, I finally decided to reset the whole thing. It is a complete fresh install.

However, again, it is incredible slow, laggy, network is sometimes not working, animations are lagging and stuttering, I am really annoyed. I did a Diagnosis with the diagnosis utilities before resetting but it showed no problems.
I had a look into the console and there are so many errors going on, I do not even know where to start. Could they be the problem?

Some of the errors:

coreduet

Couldn't read values in CFPrefsPlistSource<0x7fa686c08d50> (Domain: kCFPreferencesAnyApplication, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access

com.apple.WebKit.WebContent 

Couldn't write values for keys (NSLinguisticDataAssetsRequestTime
) in CFPrefsPlistSource<0x7fbcd6007940> (Domain: kCFPreferencesAnyApplication, User:
kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting
preferences outside an application's container requires user-preference-write or
file-write-data sandbox access

Unknown class <private> in Interface Builder file at path <private>.

0 is not a valid connection ID.

flock failed to lock maps file: errno = 35

Anyone has any idea what I could/should do?

Contact Form Submitter – Getting Errors

I am using only one deCaptcha service (Death by Captcha) and when I use my site’s contact page as a test, the result is “Failed general/unknown”. I updated the files in Platforms as suggested here (http://scrapeboxfaq.com/contact-form-poster-says-failed) and still nothing.

My site’s current contact page only has “I’m not a robot” captcha.

Am I missing any settings? What am I doing wrong? I tried a few other websites with the same result.

complexity – Why am I getting complex errors even with simple C++ code?

I started to play with C++ recently. One of the difficulties I have quite often is when the compiler tells that there is an issue with the types: more often than not, those compiler errors look extremely cryptic to me. Here’s an example:

Smooth.h:63:15: error: invalid user-defined conversion from ‘Smooth<T, S>::sum(std::size_t) (with T = short unsigned int; long unsigned int S = 20; std::size_t = long unsigned int)::<lambda(short unsigned int, short unsigned int)>’ to ‘short unsigned int (*)(short unsigned int, short unsigned int)

When I worked with C#, I remember there was a way to get quite complicated errors by combining generics, i.e. use generics as parameters of other generics, possibly at more than two levels, but one had to write really WTF code for that, such as:

Action<IEnumerable<Tuple<int?, Func<int?, ICollection<int>, bool>>>

In C++, however, I do have those cryptic errors with code I would consider rather simple itself. So what is happening?

  • Is it a skill to understand the errors given by the compiler?
  • Or I shouldn’t get those complicated errors in the first place, and their presence indicates that I’m doing something wrong?

As requested in the comments, here’s the corresponding source code, at least the relevant part. Context: the code is intended to run on a microcontroller, so STL is not available, which makes it necessary to reinvent the wheel.

template <typename T, size_t S>
class Smooth {
    T sum(size_t of = S) {
        return this->reduce(
            T(),
            ()(T acc, T value) { return acc + value; },
            0,
            of);
    }

    T reduce(
            const T initial,
            T (*acc)(T, T),
            const size_t skip = 0,
            const size_t take = S) {
        ...
    }
};

The actual error was within return acc + value; and happens if T is not an integer, but, for instance, uint16_t. In this case, the lambda result is an integer, while T is expected. The fix consists of replacing the lambda by return static_cast<T>(acc + value);.

this is my code. i want to change swap gravity after pressing the space bar . can u look for errors ? cuz i cannot see any .this is 2d game [closed]

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class gravity : MonoBehaviour
{
    private Rigidbody2D rb;
    {
    void Start()
    {
        rb = GetComponent<Rigidbody2D>;
    }

    void Update
    {
        if(Input.GetKeyDown(KeyCode.Space))
        {
        rb.graityScale *= -1;
        }
    

}
    

c++ – ERROR: [SIM 211-100] CSim failed with errors

soy nuevo en el uso del software Vivado HLS. Para comenzar con él, estoy haciendo uso de unos códigos de prueba para comprobar las diferentes fases como son compilación, síntesis… el problema que tengo es en la fase de arrancar simulador de C (botón de run C simulation) ya que me sale el siguiente problema:

D:/Xilinx/Vivado/2018.3/bin/vivado_hls.bat D:/ejemplo/solution1/csim.tcl
INFO: (HLS 200-10) Running 'D:/Xilinx/Vivado/2018.3/bin/unwrapped/win64.o/vivado_hls.exe'
INFO: (HLS 200-10) For user 'usuario' on host 'user' (Windows NT_amd64 version 6.2) on Sat Oct 10 13:48:35 +0200 2020
INFO: (HLS 200-10) In directory 'D:/'
INFO: (HLS 200-10) Opening project 'D:/ejemplo'.
INFO: (HLS 200-10) Opening solution 'D:/ejemplo/solution1'.
INFO: (SYN 201-201) Setting up clock 'default' with a period of 10ns.
INFO: (HLS 200-10) Setting target device to 'xc7z020clg484-1'
INFO: (SIM 211-2) *************** CSIM start ***************
INFO: (SIM 211-4) CSIM will launch GCC as the compiler.
ERROR: (SIM 211-100) CSim failed with errors.
INFO: (SIM 211-3) *************** CSIM finish ***************
4
    while executing
"source D:/ejemplo/solution1/csim.tcl"
    invoked from within
"hls::main D:/ejemplo/solution1/csim.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 hls::main {*}$args"
    (procedure "hls_proc" line 5)
    invoked from within
"hls_proc $argv"
Finished C simulation.

Mi principal problema yace en el error SIM 211-100 ya que me dice CSim failed with errors sin darme más información. Hay una solución que normalmente funciona que es evitar que la ruta de la solución tenga signos raros o espacios pero sigue generando el mismo error. Estoy usando la versión 2018.3 y no puedo usar otra salvo esta. Además, el S.O. es Windows 10.

Psdta: las etiquetas no puedo poner que es Vivado o Vivado HLS ya que no tengo los requisitos necesarios para poder poner una etiqueta propia así que lo introduzco en C/C++.

themes – Apache errors when retrieving taxonomies

I’m regularly seeing Apache errors when my category-single-page.php is pulling in the categories related to a post:

PHP Warning: array_values() expects parameter 1 to be array, bool given in /wp-content/themes/my-theme/inc/category-single-page.php on line 4

This is the first few lines from the php file (lines numbered for reference only NOT in the actual file)

<?php while ( have_posts() ) : the_post(); ?>
<?php
    $thiscategory = get_the_terms( $post->ID, $taxonomy_name );
    $thiscategory = array_values( $thiscategory );  // This is line 4
    $section = get_post_type( $post->ID );
    $thispost = $post->ID;
?>

The php file doesn’t seem to generate an error all of the time it is called – so I think my code is OK (I could be wrong!) so any thoughts of what could be causing Apache to log the error on occasion, or is it my code at fault?

xampp – Tomcat Started/Stopped with errors, return code: 1

Tengo este error al iniciar tomcat en xampp:
Tomcat Started/Stopped with errors, return code: 1
Make sure you have Java JDK or JRE installed and the required ports are free

Instalé xampp. Luego de varios meses, instalé Eclipse, le adicioné tomcat, me acordé que ya lo tenía así que lo desinstalé, en ambas partes. Luego instalé xampp, pero al iniciar sale el error.

Apache puertos 444, 8181 pids 9456

Estas son las variables del sistema:

Variables de usuario:

JAVA_HOME C:Program FilesJavajdk-11.0.8
JRE_HOME C:Program FilesJavajre-10
CATALINA_HOME C:Program FilesJavajre-10

Variables del sistema:

JAVA_HOME C:Program FilesJavajdk-11.0.8

JRE_HOME C:Program FilesJavajre-10

CATALINA_HOME C:xampptomcat

en path:

C:Program FilesJavajdk-11.0.8bin

C:Program FilesJavajre-10bin

C:xampptomcat