Complete AES code?bin C#? [on hold]

I have designed a new encryption routine and am learning to code to write it. If I was able to examine how AES is quite literally written in C# I could probably reduce a month of studying followed by a month of writing to a week of writing code.

Mine is vastly different than AES but on paper it is less processor intensive and encrypts with none of the potential weaknesses of AES (yes I looked and have studied this for a few years), while increasing brute force requirements to a few dozen deviations higher.

Moslty I’m just trying to get a version mad quickly that can do a kilobyte but I need some code to study.

In ASP.NET, is the concept of a Complex Type analogous to a View Model? [on hold]

Is a Complex Type to the Entity Framework, what a View Model is to a View? If I understand, the Complex Type is a type that represents columns and/or fields from real EF entities. A View Model is similar in that is has a class that has types from various sources. Neither of them can exist independently of the underlying real entities, models, and classes.

Granted the Complex Type is Model and one is View, are they analogous for understanding purposes?

Framework recommendation for web admin panels [on hold]

Most of the time I see myself making an admin panel for content management, alongside the Mobile or Web App whose content will be managed (like a e-shop or something else).

For this, I use PHP, HTML5 and JS. I’ve recently added a Babel transpiler to make things easier on the frontend, but if you look at the big picture, it isn’t such a huge leap in development speed.

I’d like to know if there’s something that’s much better, faster and easier to maintain, and less cumbersome (since there is quite a lot of JavaScript) for this kind of development, where there’s a lot of content population (the ‘getters’) and a lot of AJAX requests for saving or deleting. (the ‘setters’).

Method always returning an empty [on hold]

I’m new to C# programming and is trying to make a function that is supposed to convert a database json file into dictionary returning it as a variable I can use. I’m running this in Unity and the Rest Client to desalinize the file. I’ve checked that I am receive the json file, and that the json is being deseralized correctly.

However, whenever I get a return from the function, it’s always a blank empty value. The code are as follows:

public Dictionary<string, LeaderboardUser> GetData() //returns a list of the users and all of their scores as a dictionary.     {         Dictionary<string, LeaderboardUser> users = new Dictionary<string, LeaderboardUser>();          RestClient.Get(databaseURL + ".json").Then(response =>         {             //Debug.Log(response.Text); //checks if json is received from database             users = JsonConvert.DeserializeObject<Dictionary<string, LeaderboardUser>>(response.Text);             Debug.Log("# of users in users: " + users.Count); //checks number of entries in the "users" dictionary.         }         ).Catch(error =>         {          Debug.Log(error); //dumps errors into console if something goes wrong during the data retrieval and processing.                   });         Debug.Log("# of users in users: " + users.Count); //checks number of entries in the "users" dictionary.         return users;     } 

The first debug.log (one without the comment) shows that I have 2 users in the list, which is the correct value and shows that the json is being deserailized, but the second one is showing me a 0, meaning the list is empty. It always returns the empty list. What am I doing wrong?

Thanks in advance. 🙂

Game Theory / Optimal Mixed Strategy [on hold]

Could you help me to solve this out with a bit of simple explanation?

Here is matrix of the winnings of two players: TABLE

How to find the optimal mixed strategy for player A.

After that: Using the data above, how to define the expected win of player A, if he apply the optimal mixed strategy and player B apply the following mixed strategy: – On every strategy, forming Nash equilibrium, he gives 10 points, every maxmin strategy gives 10 points and on every minmax gives 20 points. After that, he distributes probabilities to strategies proportionally to to all strategy points. For example, if one strategy received half of the points, will receive probability of 0.5.

Change an entire google sheets to UPPER case, not with an add-on or onEdit(e) [on hold]

I need to change all the text in Google Sheets to upper case, the problem is it’s filled in by Zapier which doesn’t register as an edit for onEdit functions. It’s also automatically converted to .xlsx and emailed so none of the add-ons will work because they need to manually run. After the email sends a script wipes it and we start over as a daily report. I’ve looked everywhere for a script that will work but haven’t been able to find anything.

I currently have it transferring to other sheets using importrange wrapped in arrayformula(upper, which works but then my xlsx cell contents is all iferror functions.

Do I need to hold an actual copper piece in order to cast Detect Thoughts?

The “Detect Thoughts” spell has as its material component “a copper piece”. (Yet another in the long list of punny material components.) The rules for material components say,

Casting some spells requires particular objects, specified in parentheses in the component entry. A character can use a component pouch or a spellcasting focus (found in “Equipment”) in place of the components specified for a spell. But if a cost is indicated for a component, a character must have that specific component before he or she can cast the spell.

Does requiring “a copper piece” mean that a “cost is indicated” and so it requires one to actually be holding a coin, rather than just using a spellcasting focus or component pouch? Usually a cost being indicated is worded like “something worth at least 25 gp”, so since this isn’t phrased as “a copper piece worth 1 cp” or even “a one-cp coin” I’m not sure that it means that a “cost is indicated”. It seems to more just be describing a random object associated with the spell like other “normal” spell material components. But then again, I can see a good argument that a coin used for currency would be the most straightforward way of indicating a cost that there is.

Obviously in general adventurers won’t usually have a lot of trouble finding a copper piece during their travels, but I could imagine some circumstances where it would be inconvenient for a spellcaster to need to dig a coin out of their pouch while their spellcasting focus is already in hand.