utility – Intuition for proper monotne functions

While reading documents about utility theory, I came across a definition of a suitable monotonous function, which is a function with $ u & # 39;> 0 $, $ u & # 39; & # 39; <0 $, $ u & # 39; & # 39; & # 39;> 0 $ and so.
The first conditions are clear: more is better than less and marginal utility decreases. I am not sure how to interpret the higher order conditions and, in general, what is "appropriate" about this function?

Any intuition is appreciated.

How to take the MySQL SHELL utility output in the file

I'm running util.checkForServerUpgrade() It works in JS mode in the MySQL Shell utility. I need the output of the function mentioned in the file instead of the command line.

Here is the exact syntax I am using:

util.checkForServerUpgrade('root@localhost:3306', {"password":"abc", "targetVersion":"8.0.11", "outputFormat":"JSON", "configPath":"C:ProgramDataMySQLMySQL Server 5.7my.ini"})

I tried to add > output.json and many more but it doesn't work for me.

dnd 5e – Does a spell storage ring have utility if it encounters 0 spells?

The spell ring stores states:

While using this ring, you can cast any spell stored in it. The spell uses the slot level, the DC spell save, the spell attack bonus and the ability to cast spells from the original caster, but otherwise it is treated as if you cast the spell. The spell cast from the ring is no longer stored in it, freeing up space for a spell by spending any remaining spell space, of course.
This ring stores spells cast on it, keeping them until the tuned user uses them.

You must specify which spell spaces are being removed from you and place in the Ring so that those spell spaces are used when using the ring as an action.

It's the end of the day and you discovered that you used too many cantrips (there is no such thing if you are still alive) and you have some spell slots going around. Why waste them? Save them and take them forward through The Ring of Storing.

Just clarifying that filling the ring would in fact still cost the caster a spell space. The ring effectively steals one of your spell slots so you can use it at another given time.

This is the opposite of an Artificier in LvL 11, for example, that can store spells in a weapon or cast a focus after a long rest. It does not affect your daily spell spaces.

Disk utility – How to increase the size of the system partition (container) in Catalina?

This is on a Macbook Pro with a 250 GB disk that was originally divided into two partitions, approximately 90 (Macintosh HD) and 160 GB (disk2). The machine is now in Catalina with the first APFS partition and the second HFS. There is not enough space in the first partition and I am trying to add more space from the second to the first by following this guide:

After dividing the second partition into 2 with Disk Utility, I have an empty 20 GB partition that I convert to empty space by making

sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0sX

as shown in the guide (in my system X is 5, not 3 as in the guide, but this should not make any difference). Then, when I try to change the size of the APFS container as shown in the guide by doing

diskutil apfs resizeContainer disk0s2 0

it gives me

APFS operation started.
Error: -69519: The destination disk is too small for this operation, or a space is required on your partition map that is missing or also
small, which is often caused by an attempt to grow a partition beyond
the beginning of another partition or beyond the end of the partition map
usable space

disk0s2 seems to be the correct disk as shown in diskutil list

 2:                 Apple_APFS Container disk1         89.5 GB    disk0s2

Any idea if what I am trying to achieve is even possible and, if so, how to do it?

Disk Utility: The external hard drive was accidentally turned off and will not display any files

I recently bought a hard drive and when I connected it to my laptop, the partition option was not available in Disk Utility. So I searched the Apple forums and found a solution, which included running the following in Terminal:

diskutil erasedisk hfs+ External GPT /dev/disk2

I also had my previous hard drive connected to my laptop (it has 5 partitions). I right-clicked and ejected all those 5 partitions from my hard drive and then ran the following in Terminal on my laptop:

diskutil erasedisk hfs+ External GPT /dev/disk2

I completely forgot to disconnect my previous hard drive from my laptop. As I intended this to be for my newest hard drive. But then I heard a sound on my previous hard drive, panicked and disconnected the switch from that unit.

Did I lose everything on my previous hard drive by doing this?

I tried to find a solution, but nothing seems to work.

I see that my previous disk appears in Disk Utility as a disk as "disk2s2" instead of the names I gave to my 5 Partitions and is grayed out.
When I run

diskutil list

In Terminal, I see "disk2s2" in the list.

The disk was disassembled and successfully ejected using

diskutil unmountDisk /dev/disk2


diskutil eject /dev/disk2

But it won't be mounted using

diskutil mountDisk /dev/disk2

Come back with

One or more volume(s) failed to mount

I also tried to run First Aid in Disk Utility but it gives me this message:

Repairing file system.
Volume is already unmounted.
Performing fsck_hfs -fy -x /dev/rdisk2s2
File system check exit code is 8.
Restoring the original state found as unmounted.
File system verify or repair failed.
Operation failed…

This is how it is shown in Disk Utility.

What else can I try to get my information?

Any help would be highly appreciated. Thank you.

android: Recommended framework for the development of multiplatform gamified utility applications?

What type of framework should I use to make a gamified utility application?

I need something with cross platform support.

My goal is to create a lightweight utility application that works similarly to habitica.com

You must be able to handle a large number of users who are online at the same time.

It has to be light, fast and compatible with Android, iOS, web.

Is there a framework that works best for this?

They recommended me flutter and told me that Unity will be too "heavy" for the useful application.

Any other options?

ios – Suggestions for frame-work / engine / SDK for the development of multi-platform gamified utility applications?

What type of framework should I use to make a gamified utility application? Something like habitica.com

I need something with cross platform support (iOS, Android, web, maybe Windows).

It has to be lightweight and capable of handling a large number of simultaneous users online.

Is there a framework that works best for this?

They recommended me flutter and told me that Unity will be too "heavy" for the creation of a lightweight utility application. On the other hand, visually, it MUST look like a game (although very simple).

Looking for more recommendations of what is the best approach for this. I understand that programming it natively would be the best, but we currently do not have access to such a large device, so would we prefer to use a single framework / engine / SDK?

hexdump (): a memory design utility to help debug / understand / optimize the C ++ memory model

It seems useful, although you could achieve something similar with a debugger, which in the end is much more powerful. See this post on how to make GDB give a similar output.

Because the code would be much cleaner if you could use std::format(). You can make it compatible with previous versions by detecting if there is compatibility with C ++ 20, otherwise resort to fmtlib.

I think it would be much cleaner if hd() It took a reference and has the default size for the type size:

hd(const T &buf, std::size_t bufsz = sizeof(T)): buffer{...}, bufsize{...} {}

And then you could use it as:

auto d1 = Dummy{};
std::cout << hd(d1) << 'n';

Of course, it becomes a bit more difficult to use if you want to dump arbitrary memory, but it is a trade off. I think it would benefit beginners, who may not know the size of the types, or can easily make mistakes like writing hd(some_pointer, sizeof(some_pointer)). You may have two different classes, or have a version that only takes a reference and does not have size, and one that takes an empty pointer and a size.

I think it's better if you throw unsigned char * as soon as possible (in hd& # 39; s builder), and stick with it. This avoids some releases in other parts of your code. The only time you want to issue it again is when you print the value of a pointer in print_ptr().

Even better, use std::byte *, and only converts a std::byte to char when you need to print it as a character directly.

The function hex_dump() It is a bit messy It would be better if it were divided into more functions, delegating more work to print_*() functions in particular have print_bytes() it takes a length to print a range of bytes at once. Add a print_ascii() which prints a range of bytes as printable ASCII characters.

You can move the handling of the area before and after the buffer to the print_*() functions, avoiding the special housing in hex_dump() itself. For example:

constexpr std::size_t linesize{16};
auto buf{buffer};
size_t pre = reinterpret_cast(buffer) % maxline; // Size of pre-buffer area
buf -= pre; // Align buf and bufsize to start of pre-buffer area
bufsize += pre;

while (bufsize) {
    // Calculate the length of the post-buffer area on this line
    size_t post = bufsize < linesize ? linesize - bufsize : 0;

    // Print the line
    print_ptr(os, buf);
    os << ": ";
    print_bytes(os, buf, linesize, pre, post);
    os << " | ";
    print_ascii(os, buf, linesize, pre, post);
    os << "n";

    buf += linesize;
    bufsize -= linesize - post; // Advance to next line, avoiding wrapping
    pre = 0;                    // No pre-buffer area after first line

I can think of use cases in which I would like to see pointers as decimal values, possibly even displacements from the beginning of the data instead of absolute values. Maybe this could be made configurable?

Macos: I installed a new SSD on MacBook Air and I didn't get any disk to install, and I can't erase / reformat the disk utility

My MacBook Air 2014 had Ubuntu previously. I decided that I wanted to put macOS back in it, so I bought and installed a new SSD.

My problem is that when trying to install the operating system through Internet recovery, no disks appear when prompted, "Select the disk where you want to install OS X".

I have read that this means that I need to erase (reformat) the disk from the disk utility, but all the erase options for both disk0 and "OS X base system" are disabled. Those are the only two volumes that are displayed in the disk utility.

I'm not sure how to proceed, since this is the only MacBook I have and I need to start this machine.

How can I get macOS in this new SSD?

Pathfinder 1e: Does the combination of the Tracking Shot infusion and the wild talent of the Kinetic Dual Control with Telekinetic Blast utility utilize a total of 4 shells?

Thank you for contributing a response to Role-playing Games Stack Exchange!

  • Please make sure answer the question. Provide details and share your research!

But avoid

  • Ask for help, clarifications or respond to other answers.
  • Make statements based on opinion; Support them with references or personal experience.

Use MathJax to format equations. Reference MathJax.

For more information, see our tips on how to write excellent answers.