Does including a Konami-code triggered Easter Egg negatively impact keyboard accessibility?

On an open-source project I’m involved in, one of our devs added a mini-game for April Fools Day, which could be opened and played by pressing the Konami Code sequence on your keyboard (up, up, down, down, left, right, left, right, B, A, enter).

In a GitHub issue, we received a complaint about the game, which included this line:

… but I hope the Codidact team would have the decency to acknowledge that such “easter eggs” can be disastrous to users with mobility impairments who use the keyboard to control the mouse, and promise to not allow such “easter eggs” in the future.

A couple years ago I spent some time using the keyboard and not my mouse, and personally never had a problem with accidentally triggering something with the Konami Code, because it’s not a sequence that – in my experience – is likely to be typed accidentally. It’s hard to get such a specific sequence if you’re not trying.

However, since I’m not an expert on this topic, I figured it’d be worth it to confirm one way or the other: Is having a Konami Code Easter Egg an accessibility problem, from a keyboard-user standpoint?

Easter Egg Hunt | Forum Promotion

dnd 5e – How to best survive the explosive egg from a Magic Beans magic item?

The magic item Bag o Beans gives permanent ability bonuses about 10% of the time – specifically with this (random) result:

A nest of 1d4 + 3 eggs springs up. Any creature that eats an egg must make a DC 20 Constitution saving throw. On a successful save, a creature permanently increases its lowest ability score by 1, randomly choosing among equally low scores. On a failed save, the creature takes 10d6 force damage from an internal magical explosion.

The point? One could gain up to 30 in any / all scores pending enough successful Con-saves. That said, simple & easy constitution saving throws are hard to come by. Given vast time, energy, money &/or magical resources (dragons, vampires, elf lords, etc.), how would they prepare? The 35 damage (approx.) is not the issue – a failed save appears to give no ability bonus.


Basic Question: How can one improve &/or guarantee successful constitution saving throws given infinite time, money, support &/or magic to prepare?

All tricks are welcome / hook or crook: be that by advantage, use of luck, rare feat, class or race skill, potent-portent class features, advance preparation, or stacking spells. Even the stress wish counts. Anything.

Note / FYI: This is of great interest to ├╝ltrapowerful creatures that have one ‘flaw’ ability. Take most ancient dragons (lacking dexterity), Beholders (low strength and dexterity), giants (often low dex) – or even some demon lords (Yeenoghu is a bit stupid, relatively speaking).

c# – How should I work around a particular “chicken and egg” problem with entity construction?

I’m struggling to think of a concise way to phrase the question, but assume you were developing an application that managed employees at various company branches. You could potentially model this part of the application like this:

branch and employees example

It’s stipulated that every employee must belong to exactly one branch. To enforce this, you’d pass the branch the employee operates at to the Employee constructor and make the corresponding property immutable:

class Employee {

    public Employee(int id, string name, Branch operatesAt)
    {
        Id = id;
        Name = name;
        OperatesAt = operatesAt;
    }

    public int Id { get; }
    public string Name { get; }
    public Branch OperatesAt { get; }
}

You might then choose to model the Branch class like this:

class Branch {

    private readonly List<Employee> _employees;

    public Branch(int id, string name, ICollection<Employee> employees)
    {
        Id = id;
        Name = name;
        _employees = employees.ToList();
    }

    public int Id { get; }
    public string Name { get; }
    public IReadOnlyCollection<Employee> Employees => _employees.AsReadOnly();
}

In my application I’m using EF Core, and something similar to these models would work fine. I’m following Microsoft’s architectural recommendations for ASP.NET Core development, and as such I’m trying to use a domain-driven approach to modelling the entities that EF Core operates with. This is why I’m trying to use constructors to ensure my entities can only ever exist in a valid state and prevent mutation of these entities except through methods that represent domain-relevant operations.

However, trying to manually setup a new branch with employees (for example, in tests) exposes a chicken and the egg problem:

var branch = new Branch(id: 1, name: "Example branch", employees: new()
{
    new ProductConsultant(id: 12345, name: "John Smith", operatesAt: um...)
});

Is this a common issue to run into, and if so is there a well-defined solution to it? Someone I discussed this with mentioned the builder pattern could work. An alternative that I’m thinking of going with is to define a factory method on the principal entity that constructs, registers and returns an instance of the dependent entity:

class Branch {

    private readonly List<Employee> _employees;

    public Branch(int id, string name)
    {
        Id = id;
        Name = name;
        _employees = new List<Employee>();    
    }

    public int Id { get; }
    public string Name { get; }
    public IReadOnlyCollection<Employee> Employees => _employees.AsReadOnly();

    public Employee RegisterNewEmployee(int id, string name)
    {
        var employee = new Employee(id, name, this);
        _employees.Add(employee);
        return employee;
    }
}

Is this a suitable approach, or is there something more appropriate that can be done here?

javascript – Egg size Prompt Box

So I am currently doing an Assignment where I have to make a code that when someone opens the page, they input the weight of an egg and it comes back with what “size” it is.

I got the code working and I sent it to my teacher for feedback. However, she came back with telling me I should make the code more “Elegant and Efficient”. But she did not instruct me how to do so. Any help on this topic will be greatly appreciated. Code is below

<script>
    var eggWeight = prompt("Please enter an egg weight in grams: ");
    parseInt(eggWeight);
    while (isNaN(eggWeight)) {
            eggWeight = prompt("This is not a valid number. Please an enter egg weight in grams: ");
            parseInt(eggWeight);
        }
    if (eggWeight > 69)
        alert('Jumbo');
    else if (eggWeight > 63 && eggWeight <= 69)
        alert('Extra Large');
    else if (eggWeight > 55 && eggWeight <= 63)
        alert('Large');
    else if (eggWeight > 48 && eggWeight <= 55)
        alert('Medium');
    else if (eggWeight > 42 && eggWeight <= 48)
        alert('Small');
    else
        alert('Peewee');
</script>

Egg golden hours limited – Egggoldenhours.com

IPB image

I'm not an administrator here!

QUOTE

Egg Golden Hours is a network of miners, blockchain developers and financial analysts.
Our company is passionate about developing sustainable blockchain technologies that help make the Egg Golden Hours network the best alternative investment solution for growing your online investment portfolio.
Our company is passionate about developing sustainable blockchain technologies that help make Agneyfarm the best alternative investment solution for growing your online investment portfolio

IPB image

9% – 15% hourly for 12 hours
Plan deposit amount hourly profit (%)
Plan 1 $ 1.00 – $ 250.00 9.00
Plan 2 $ 251.00 – $ 500.00 10.00
Plan 3 $ 501.00 – $ 1000.00 12.00
Plan 4 $ 1001.00 – $ 2000.00 14.00
Plan 5 $ 2001.00 – $ 2500.00 15.00

5% – 10% hourly for 24 hours
Plan deposit amount hourly profit (%)
Plan 1 $ 1.00 – $ 500.00 5.00
Plan 2 $ 501.00 – $ 1000.00 6.00
Plan 3 $ 1001.00 – $ 2000.00 8.00
Plan 4 $ 2001.00 – $ 2500.00 9.00
Plan 5 $ 2501.00 – $ 5000.00 10.00

10% hourly for 11 hours
Plan deposit amount hourly profit (%)
Plan 1 $ 200.00 – $ 5000.00 10.00

25% hourly for 5 hours
Plan deposit amount hourly profit (%)
Plan 1 $ 1000.00 – $ 10000.00 25.00

QUOTE

SSL encryption
DDos protection
Licensed script
Registrar NAMECHEAP INC
Created on 2020-02-02
Expires on 2021-02-02
Updated on 0000-12-31
NS DNS1.REGISTRAR-SERVERS.COM DNS2.REGISTRAR-SERVERS.COM
DNS1.REGISTRAR-SERVERS.COM DNS2.REGISTRAR-SERVERS.COM

Accept: PM, Payer, Bitcoin, Litecoin, Dogecoin, ETH, BCH, DASH, …

Join here: https://egggoldenhours.com/

Reduced size image

My deposit:

QUOTE

The amount of $ 100 has been debited from your account.
Accounts: U4603107-> U14165247. Note: Cart payment.
Deposit on egggoldenhours.com user hyiptank ..
Date: 10:15 am 03.03.20. Batch: 305638341.

How do I recruit egg donors …?

We are in high demand with Asian egg donors and South Asian egg donors, but I have found that egg donation is a very sensitive issue in Asia. Can anyone give me ideas for how to run ads?

Chinese, Japanese, Korean, Vietnamese, Filipino, Indian, Pakistani, Persian, Thai, Malaysian, Indonesian, Cambodian and Asian / Caucasian mixed egg donors required!

EGG Golden Hours Limited – Eiergoldenhours.com

banner_350.gif "data-src =" https://egggoldenhours.com/images/banner_350.gif "src =" https://topgoldforum.com/applications/core/interface/js/spacer.png "/>


	
	I'm not an administrator here!
	</p>
<blockquote class=

Egg Golden Hours is a network of miners, blockchain developers and financial analysts.

Our company is passionate about developing sustainable blockchain technologies that help make the Egg Golden Hours network the best alternative investment solution for growing your online investment portfolio.
Our company is passionate about developing sustainable blockchain technologies that make Agneyfarm the best alternative investment solution for growing your online investment portfolio

154.gif "data-src =" https://egggoldenhours.com/images/154.gif "src =" https://topgoldforum.com/applications/core/interface/js/spacer.png "/>


	<strong>9% – 15% hourly for 12 hours</strong></p>
<p>	Plan deposit amount hourly profit (%)<br />
	Plan 1 $ 1.00 – $ 250.00 9.00<br />
	Plan 2 $ 251.00 – $ 500.00 10.00<br />
	Plan 3 $ 501.00 – $ 1000.00 12.00<br />
	Plan 4 $ 1001.00 – $ 2000.00 14.00<br />
	Plan 5 $ 2001.00 – $ 2500.00 15.00</p>
<p>	<strong>5% – 10% hourly for 24 hours</strong></p>
<p>	Plan deposit amount hourly profit (%)<br />
	Plan 1 $ 1.00 – $ 500.00 5.00<br />
	Plan 2 $ 501.00 – $ 1000.00 6.00<br />
	Plan 3 $ 1001.00 – $ 2000.00 8.00<br />
	Plan 4 $ 2001.00 – $ 2500.00 9.00<br />
	Plan 5 $ 2501.00 – $ 5000.00 10.00</p>
<p>	<strong>10% hourly for 11 hours</strong></p>
<p>	Plan deposit amount hourly profit (%)<br />
	Plan 1 $ 200.00 – $ 5000.00 10.00</p>
<p>	<strong>25% hourly for 5 hours</strong></p>
<p>	Plan deposit amount hourly profit (%)<br />
	Plan 1 $ 1000.00 – $ 10000.00 25.00</p>
	</div><!-- .entry-content -->

	<footer class= Posted on Categories ArticlesTags , , , ,