Does "Notice" and "warnings" slow down a PHP script without reporting bugs?

Does "Notice" and "warnings" slow down a PHP script without reporting bugs?

I tested this once and the difference in execution time was negligible.
I'm still curious.

If error_reporting is set to zero and "Notice" errors are generated, is that important?

For example, this code generates NOTICE errors:

255, 'green'=>200, 'blue'=>100 );
echo $a(red).'
'; //Notice error echo $a('green').'
'; //notice error echo $a("blue").'
'; //no error ?>

Code (surcharge):

gitlab – How do I report bugs on gnome-specific gnome disks?

I found a bug in the latest Gnome Disk utility and just spent more than an hour of my life figuring out how to report it.

There is a "git-lab" page for gnomes, here:

They want you to sign up before you can do something, and that's the catch. I have tried everything that comes to mind and nothing works. They do not provide "login procedures" that I could find. … Is there ANOTHER portal through which errors can be reported?

(By the way, I've even created an account on gitlab – that's a royal pain because of their stupid bot, which requires you to do what is equivalent to a human capcha review – I do not know how many minutes it costs – it were 33 steps, I think ?! – but this account only lets me talk about gitlab and NOT about gnome, so it does not work either.)

Useful way to report bugs from cron jobs

I have several jobs running every night. Generally they work, but from time to time they will fail. How can you best report bugs?

The way that seems obvious to me is sending emails. I have multiple Google Accounts and I want to use one for this purpose.

However, I can not determine how this works after several attempts while keeping my Google Account secure. I guess I have to use OAuth2, which I understand at the design level, but I can not figure out the implementation details.

  • I can not find a simple command-line utility that allows it, for example

    send Recipient e-mail address –Object Error in the night job –Attachment logfile

  • I would like to create my own command line program, preferably with C ++ and Qt, but I can not figure out the details.

Under these circumstances, it usually turns out that I can not figure out how to do what I want to do because I'm trying to do something stupid.

Suggestions would be immensely grateful.

[Sorry, I'm not sure I mark it correctly, because I think it's more about bug reporting than treatment, but … Please tag it again if there's a better day I miss have.]

Tips and bugs for cryptocurrency trading that you should avoid in Bitmex for long-term profits! – Advertising, offers

You can visit our group and check all the statistics of the Bitmex Premium Bot –

If you are a Bitmex dealer, we are your "ultimate goal" for profit. Our Bitmex signal success rate is great, as our loss and profit calculations are excellent. You win more without risk.

We are really UNIQUE because we also offer premium BOT for Bitmex. What is Premium BOT doing on Bitmex? Check this out:

It detects the premium signals from Telegram and runs on Bitmex with the desired leverage and size.

It also makes all the following independent trades:
a] daily business
b] guerrilla trade
c] swing trading
d] Counter-trade

Get the most powerful premium BOT for Bitmex and improve your Bitmex trading.

infopath – Bugs: Binding a non-repeating control to a repeating field or group is not supported in SharePoint list forms

I'm creating a sign-up list for a corporate site and want to see the number of certain court types already registered. Details:

I have two lists: Potluck Signup List and Dish Type Lookup List.

The search for crockery types has three columns: crockery type, number of crockery types, and total crockery type. The list contains 3 records with the available types of crockery (main course, side dish, dessert).

The login list includes a search for dish type that includes a drop-down list of items from the Dish Type column of the search list. In the lookup list, the number of court types is a look back at the signup list, which shows the number of related items. The number of items selected in the enrollment list for each type of crockery is displayed (ie 3 for main course or 2 for dessert).

Dish Type Total is just a number field that I use because lookup fields can not be used for some things. I have a workflow that successfully updates this value.

I have created an InfoPath form for the registration list. I have a problem with a label (Computed Value field) indicating the number of people who have already logged in to bring the type of court selected by the user of the form. Suppose I log in to bring a supplement. I would like to show on the form that 2 other people have already registered to bring supplements.

I have two data connections in the InfoPath form: Main (Login List) and Secondary (Lookup List).

I added the Calculated Value box and set the dish type sum to be retrieved from the lookup list. By default, only the value of the first line is displayed, so I wanted to add a filter. My filter is:

Dish Type (Secondary) = Type of dish (Main)

However, when I try to publish, the error appears in the question title. The full mistake is:

Binding controls are not supported: Binding a non-repeating control to a repeating field or group is not supported in SharePoint list forms. To resolve this issue, remove the control or replace it with a repeating control, such as a repeating section or a table.

When I try to add a table, insert the Computed Value field and bind to Dish Type Total (Secondary), the following error message appears:

A repeating table must be bound to a field or group that repeats. In addition, the field or group must contain other fields.

I have the feeling that I am now running in circles and working on them for hours. Web searches have proven unsuccessful. How can I get the current value of Dish Type Total from the lookup list to display in a field on my InfoPath form based on the value of the Dish Type dropdown list?

Thank you in advance. If I can clarify something, please let me know!

Lighthouse give browser bugs using Google Ads script

I want to test my website with Lighthouse, the report reads:

Browser errors were logged in the console
js / adsbygoogle.js ( Description N

How I understand my problem is evident in my Google Ads script divas you have it

As a solution, I'm ready, but I do not know how to implement it …

Can someone please help me and explain in simple terms how to solve this problem .. thank you very much!

Bugs – GeoListPlot – Workaround for Unique Category Coloring – Improvement?

GeoListPlot supports multiple site lists, but once the number of lists exceeds 3, the color function for the categories starts to recycle the colors. For example, if you add a list to the documentation example, the following map will be created

data= {{Entity("Country", "Bulgaria"), Entity("Country", "Greece")}, {Entity("Country", "Albania"), Entity("Country", "Romania")},{Entity("Country", "Turkey"), Entity("Country", "Lebanon")}, {Entity("Country", "Israel"), Entity("Country", "Syria")}}; 


GeoListPlot with 4 categories

This was reported to Tungsten some time ago (CASE: 41535576), but it is still a problem in version 12.

My current task is to define a list of colors and to use the directive function. An example:

colors = Table(
   ColorData("SunsetColors")(i), {i, 0, 1, 1/((Length@data - 1))}); 
plotStylesDef = Directive(#, Opacity(0.6)) & /@ colors; 
GeoListPlot(data, GeoLabels -> None, PlotLegends -> Automatic, 
 PlotStyle -> plotStylesDef)

Enter image description here

My question is: how can this workaround be improved? (Tough, overload the original function, better selection of ColorData ..)

Is this builder pattern "good" or does it have very serious bugs?

We're sorry if there's a "code check" that matches this StackExchange … but for a specific question: is there a particular obvious flaw in the following implementation of a builder pattern?

Background: I am just beginning to work on the idea of ‚Äč‚Äčseparating the domain model from the persistence layer (after Uncle Bob), the service layer / IoC / the separation of concerns / dependency injection, with some aspects of the DDD (possibly aggregates ?), Force invariants (eg all private setters have down) … And I try to find some patterns that support those goals – which the rest of the team can follow and adapt to … I make several leaps of understanding and do not want to twist my ankle when I land.

One result of my effort is this large object builder pattern (many fields), which implements a floating API and tries to allow subclasses (that required some general gymnastics). My idea is that a subclass of the domain model object will become an EF Core entity with persistence specific properties and methods in the subclass, but the core business logic can still be (and can be) tested in the core domain model objects.

Some notes:

  • Classes and business logic are clearly incomplete.
  • The nested classes are used because they allow the builder to access private / protected members.
  • Accept that Id is a business-specific property and is not needed for other use cases.
  • The Builder Property on the Event object is mainly intended as syntactic sugar to allow customers to say something Event.Builder instead of new Event.EventBuilder(),
  • And if anyone wonders, I will not wrap the entire EF Core into a repository / UoW pattern (at the moment, I'm buying the arguments from DbContext is a UOW and DbSet is a repository) … although I'll put a repository wrapper around some specific entities (like audit events) that I might want to implement with a different type of storage.

So, here is a base Event Class, a domain model class with an inner EventBuilder Class:

using System;
using System.Collections.Generic;

namespace App.Core
    public class Event
        public String Title { get; private set; }
        public DateTimeOffset Start { get; private set; }
        public DateTimeOffset End { get; private set; }
        // Lots more properties omitted here...
        protected Event() { }

        public static EventBuilder Builder => new Event.EventBuilder();
        public class EventBuilder where T : Event
            protected virtual T Result { get; set; } = Activator.CreateInstance(typeof(T), true) as T;
            public EventBuilder WithTitle(String title)
                Result.Title = title;
                return this;

            public EventBuilder WithStartAndEnd(DateTimeOffset start, DateTimeOffset end)
                if (start == null)
                    throw new ArgumentNullException(nameof(start));
                if (end == null)
                    throw new ArgumentNullException(nameof(start));
                if (end < start)
                    throw new ArgumentOutOfRangeException(nameof(end), end, "End date must be on or after the start date.");
                this.Result.Start = start;
                this.Result.End = end;
                return this;
            public virtual T Create()
                // Last chance validation here!
                return this.Result; 

And here is a subclass with persistence-specific functions:

namespace App.Repository.Entities
    public class Event : App.Core.Event
        public int Id { get; private set; }

        public new static EventBuilder Builder => new Event.EventBuilder();

        public new class EventBuilder : App.Core.Event.EventBuilder where T : Event
            //protected new T _result = Activator.CreateInstance();
            //protected new T _result = Activator.CreateInstance(typeof(T), true) as T;
            public EventBuilder WithId(int id)
                this.Result.Id = id;
                return this;

            public override T Create()
                // Last chance validation for subclass here!
                // This is safe because we know it's operating on a subclass this.Result:
                var result = base.Create() as T;
                return result;

And here's a naive client code that uses the subclass:

using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using App.Repository.Entities; // <-- Note this namespace

namespace App.Web.Controllers
    public class EventsController : ControllerBase
        // GET: api/Event
        public ActionResult> Get()
            return new Event() {
                    .WithTitle("The Apocalypse")
                        new DateTimeOffset(2012, 12, 21, 6, 12, 0, new TimeSpan(-4,0,0)), 
                        new DateTimeOffset(2012, 12, 21, 6, 12, 1, new TimeSpan(-4,0,0))
        // Other REST methods omitted...

Do you see anything particularly stupid about the above that will annoy me when I try to actually apply the approach? The above is certainly a bit naive, and I would appreciate any further comments / suggestions, but a good answer will point to a mistake that will cause me to fundamentally change design or throw it away altogether.