design patterns – Best practices: removing the keyboard and displaying buttons in mobile apps

We have iOS and Android apps with forms in multiple locations and we are looking for an appropriate UX template to continue once the form is complete.

Example: On the login screen, the user must type in a user name and password, and then trigger the login action.

1) Should the connection button "float" above the keyboard? Only when the last field is active?
2) Should the keyboard be turned off every time you type outside of it?
3) Should the "back" button on the keyboard say "continue" when the first field is active and "connect" when the last field is active?

This sounds like such a standard use case that the behavior should be set and standard for iOS and Android platforms, but I have a hard time finding it documented anywhere!

pandas – Adding and removing grouped values

I have the following problem. I have a dataframe with the fields "Unique ID", "Name", "Item" and "Value". Whenever the Item field has codes other than 240 and 245, the corresponding sales charges in the "Value" field are calculated (summed). If the item is 352, the commission amount in the "Value" field is subtracted. The result should be grouped by employee registration. And a filter should be applied to know which employees, at the end of this process, have earned more than 30,000. The code you have tried is below:

`f0219_grouped = f0219[~f0219['Código Rubrica'].isin (['240','245'])].groupby (['Identificação Única', 'Nome','Código Rubrica'])['Valor'].sum (). reset_index ()
f0219_grouped['Valor2']= (f0219_grouped['Valor'] - (f0219_grouped['Valor'].where (f0219_grouped['Código Rubrica']= 352)) fillna (0))
f0219_grouped[f0219_grouped["Valor"]> 30000]``

Apparently, the code is correct. But for some reason, I do not know it yet, it does not add all the 240 and 245 headings, although I've inserted this rule group by group, that is to say ['valor'].sum (). When executed, it returns the first value of the "Value" field, but does not sum with some values ​​below (of which the Item is neither 240,245 nor 352). I do not know what could be wrong. The example of dataframe is in the figure below:

insert the description of the image here

Amazon Web Services – Removing and then reinstalling Anaconda on an AWS Ubuntu Deep Learning EC2 instance and unable to enter in-depth learning environments

I just set up an Ubuntu Deep Learning AMI EC2 instance. I am a beginner on AWS / Packet Processing.

My goal is to use the instance to run a Python deep learning script. This script uses a variety of packages.

When installing some of these packages with conda, an error has occurred indicating inconsistencies in the environment for more than 100 packages. After several attempts to solve this problem, I thought that removing Anaconda and reinstalling it could do the trick. After that, I realized that I had perhaps further spoiled my instance. I can no longer use the predefined deep learning environments for which the AMI has been configured because they have been accessed using conda commands, which seems to have been removed (IMO).

I've tried repeating the commands, but I get an error stating that these environments no longer exist. A tutorial using these commands is mentioned here:
https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-conda.html

active source tensorflow_p36

I was expecting the above to enter the tensorflow_p36 environment. A sin:

(tensorflow_p36) ubuntu @ ip-172-31-45-96: ~ / scripts

However, this gives an error message:

impossible to find the environment: tensorflow_p36

I realize that the uninstallation of conda was a major rookie error that seems to have totally disabled my instance. If anyone has any ideas to get it back, it would be very appreciated!

thank you so much

filesystems – Force ZFS to ignore checksum errors without removing the offending disk

I'm using a pool with USB drives on a non-critical server with non-critical data, and I do not care to know if it's corrupt. I'm trying to configure it so that ZFS does not forcefully remove USB sticks when they encounter checksum errors (like how ext4 or FAT handle this scenario by not noticing data loss).

Warning:

For readers who arrive here via Google trying to repair their ZFS pool, do not try anything that is described in this question or its answers, you will lose your data!

Because the ZFS font loves to shout against USB key users
or have any other non-standard configuration: in the interest of this discussion,
let's assume that these are cat videos that I've saved in 32 other physically
remote locations on 128 redundant SSDs. I fully recognize that I will probably lose 100% of
my unrecoverable data on this pool (multiple times) if i try to do it.
I'm asking this question to people who are curious about
just what a bad an environment that ZFS is able to execute (people
who like to push the systems to their breaking points and beyond, just for
fun). Address this question with a sense of humor!

So here is the configuration:

  • HP EliteDesk Server under FreeNAS-11.2-U5
  • 2x 8 TB WD Elements discs connected via USB 3.0
  • Unreliable power environment, the server and drives are often forced to reboot / disconnect without warning. (yes I have an inverter, no I do not want to use it, I want to break this server, have not you read the warning?)
  • a mirror pool Hard disk with both readers (with failmode = continue together)
  • a drive is stable, even after several reboots and forced disconnections, it never seems to report checksum errors or other problems in ZFS
  • a reader is not reliable, with occasional checksum errors during normal operation (even if it is not disconnected unexpectedly), the errors seem to be not related to the bad environment of As they will function properly for more than 10 hours and will be suddenly ejected from the pool. because of the checksum's failures

I have confirmed that the unreliable drive is due to a software or hardware problem with the USB bus on the server, and not an unreliable cable or a physical problem related to the drive. The way I confirmed this is to plug it into my MacBook with USB ports in good condition, then to zero, then write random data to the entire drive and to check them (done 3 times, 100% success each time). The disk is almost new, no other SMART indicator is less than 100% health. However, even if the player failed progressively and lost a few bits here and there, I agree with that.

Here is the problem:

Whenever the failed drive has checksum errors, ZFS removes it from the pool. Unfortunately, FreeNAS does not allow me to add it to the pool without having to physically reboot or unplug and reconnect the USB cable. and the player's power supply. This means that I can not script the process of re-adding or remotely doing it without restarting the entire server, I should be physically present to unplug things or have an Arduino connected to the Internet and a wired relay in both cables.

Possible solutions

I've already done quite a bit of research to find out if this sort of thing is possible, and it's difficult because whenever I find a relevant thread, the font of data integrity intervenes and convinces the applicant to abandon his unreliable configuration instead of ignoring mistakes or working around them. I resort to the request here because I have not been able to find documentation or other answers on how to accomplish that.

  • disable checksums entirely with zfs set checksum = off hddI have not done it yet because I would ideally like to keep checksums so that I know if the player is working badly, I just want to ignore the failures.
  • an indicator that retains the checksum but ignores checksum errors / attempts to repair them without removing the drive from the pool
  • a ZFS flag that raises the maximum checksum error limit allowed before removing the drive (currently, the drive is started after about 13 errors)
  • a FreeBSD / FreeNAS command that allows me to force the device online after it's been removed, without having to restart the entire server
  • a FreeBSD / FreeNAS kernel option to force this drive to never be allowed to be deleted
  • a FreeBSD sysctl option that magically solves the problem of the USB bus causing errors / delays on this drive only (unlikely)

I'm really trying to avoid having to resort to ext4 or some other file system that does not necessarily delete drives after USB errors, because I want to use all the other ZFS features, such as snapshots, datasets, shipments / recordings, etc. just try to disable the verification of data integrity.

Relevant journals

This is the dmesg output whenever the reader misbehaves and is deleted

7 Jul 04:10:35 freenas-lemon ZFS: vdev state changed, pool_guid = 13427464797767151426 vdev_guid = 11823196300981694957
July 7 04:10:35 freenas-lemon ugen0.8:  at usbus0 (offline)
7 July 04:10:35 freenas-lemon umass4: at uhub2, port 20, addr 7 (offline)
July 7 04:10:35 freenas-lemon da4 on the bus umass-sim4 4 target scbus7 0 mon 0
July 7 04:10:35 freenas-lemon da4:  s / n 5641474A4D56574C detached
7 July 04:10:35 freenas-lemon (da4: umass-sim4: 4: 0: 0): a destroyed periphery
7 Jul 04:10:35 freenas-lemon umass4: detached
7 July 04:10:46 freenas-lemon usbd_req_re_enumerate: addr = 9, the address definition failed! (USB_ERR_IOERROR, ignored)
7 July 04:10:52 freenas-lemon usbd_setup_device_desc: getting device descriptor to adr 9 failed, USB_ERR_TIMEOUT
7 July 04:10:52 freenas-lemon usbd_req_re_enumerate: addr = 9, the address definition failed! (USB_ERR_IOERROR, ignored)
7 July 04:10:58 freenas-lemon usbd_setup_device_desc: getting device descriptor to adr 9 failed, USB_ERR_TIMEOUT
7 July 04:10:58 freenas-lemon usb_alloc_device: failure to select the configuration index 0: USB_ERR_TIMEOUT, port 20, addr 9 (ignored)
July 7 04:10:58 freenas-lemon ugen0.8:  at usbus0
July 7 04:10:58 freenas-lemon ugen0.8:  at usbus0 (offline)

What is the best software for recovering or removing passwords from PDF files?

If you are looking for a tool that unlocks PDF files, download PDF unlocking tool Unlock PDF passwords and remove restrictions from PDF documents This tool removes PDF copy, edit and print restrictions, and allows you to copy, edit and print PDFs. PDF documents. You can also delete PDF passwords and reset a new password on PDF documents. For more information; https://www.toolsground.com/pdf-unlock-tool/

magento 1.9 – Adding or removing option in a quote item

I had to create a controller that added or removed an option from a quote item.

I succeeded but I did not convince the solution. It seems strange to me to have to manage the correct filling of the option: "option_ids". Can someone of experience tell me if there is a better solution?




// Add optional o remove.
$ optionId = 1234; // Optional Id.
$ optionData = $ product-> getOptionByid ($ optionId);
foreach ($ optionData-> getValues ​​() as $ v) {
$ optionId = $ v-> getOptionId ();
$ optionCode = "option _". $ optionId;
$ itemOptionIds = $ quoteItem-> getOptionByCode (& # 39; option_ids & # 39;);

if ($ status) {
$ quoteItem-> addOption (new Varien_Object ([
          'product' => $quoteItem->getProduct(),
          'code' => $optionCode,
          'value' => $v->getOptionTypeId()
          ])
)

if ($ itemOptionIds) {
$ optionIds = explode (& # 39 ;, $ itemOptionIds-> getValue ());
$ optionIds[] = $ optionId;
$ quoteItem-> getOptionByCode (& # 39; option_ids & # 39;) -> setValue (implode (& # 39 ;, $ optionIds));
} other {
$ quoteItem-> addOption (new Varien_Object ([
                'product' => $quoteItem->getProduct(),
                'code' => 'option_ids',
                'value' => $optionId
              ])
)
}
} other {
$ optionIds = [];
if ($ itemOptionIds) {
foreach (explode (& # 39 ;, $ itemOptionIds-> getValue ()) as $ itemOptionId) {
if ($ optionId === $ itemOptionId) {
$ quoteItem-> removeOption (<option _ $ optionId);
} other {
$ optionIds[] = $ itemOptionId;
}
}

if (! empty ($ optionIds)) {
$ quoteItem-> getOptionByCode (& # 39; option_ids & # 39;) -> setValue (implode (& # 39 ;, $ optionIds));
} other {
$ quoteItem-> removeOption (& # 39; option_ids & # 39;);
}
}
}

$ quoteItem-> setDataChanges (true);
$ quoteItem-> save ();
}

// Save the cart.
$ this -> _ getCart () -> save ();

Event after removing the Magento2 client

How to create a client event remove (by admin), what is the name of the event?
I need after deleting the client, delete the data on this client from my custom table

macos – Removing the vicious history of Terminal Remote Connection

When you press CMD + Shift + K on the terminal, a Remote Connection A window will appear allowing you to save and manage your connections.
enter the description of the image here

When I tried to add the good ssh command, I had several unsuccessful attempts. But Remote Connection has saved all my bad orders. It's now very confusing in the drop-down menu as there are tons of false indications.

Is there a way to remove unwanted tips from the drop-down menu?

Information on my Mac

MacOS High Sierra, version 10.13.6

MacBook Pro (13 ports, 2018, four Thunderbolt 3 ports)

19.04 – Can not connect after removing Flatpak

I had installed flatpak to run an application. As it did not really work, I removed using

sudo apt remove flatpak

at reboot, I get the error. There is an OK button, but I can not press it or access the desktop. The mouse does not work and the keyboard does not work either.

I am under Ubuntu 19.04

Error found while loading / etc / profile:

/etc/profile.d/flatpak.sh: line25: flatpak: command not found

As a result, the session will not be configured correctly.
You should solve the problem as soon as possible.

dnd 3.5e – Do thieves become rank 3 by removing restrictions on underhanded attacks?

Probably not.

A well-prepared thief can already bypass many of these restrictions …basstracks, golemstrike, and vinestrike of Compendium of spells can be put in the chambers of the magic wand, penetrating strike ACF Dungeonscape can be reduced by half the stealth attack damage against everything, and Magic of the dragonThe Dragon Fire Strike operation may allow you to bypass most of these immunities. All these elements represent a significant amount of optimization (which means that, for a fair comparison, you must also imagine the T3 class while also optimizing a significant amount), but in the end, none of this is huge. . So the change may not be as important as you think.

And really, the fact is that thieves never reach the barbaric damage potential – the bonuses of two-handed weapons are too big, and while the thief embarks on the fine-arms fight and the fight two weapons just for activate In their fighting style, the barbarian may have combat reflexes and an improved journey, or a power attack and an improved bull rush for the purpose of Shock Trooper, or mounted combat and spiritual charge. And that's not even assuming that Full Champion Totem ACF lion spirit that gets the barbarian rebound.

The thief, of course, has the right to claim solid consolation awards in the form of skills, but hey … the skills are underpowered. Almost all of them are completely replaced by low-level spells, and few of them are so often useful that spelling slots are an important limitation for medium-to-low spells. The best – hiding, moving silently, rocking and using a magic device – are certainly things for which the thief will be good, and these are good things for which it is good to be, but they do not really allow the kind of versatility that really impresses and gets a better ranking by levels. Of course, the use of Magic Device comes closest, but apart from having it in class, thieves really have nothing to do with this skill – they can not claim unique skills like a craftsman or a warlock. Thieves do not even have much reason to pump Charsima – especially if they have to sneak up and fight and so desperately need all the dexterity and build they can get.

And finally, these are four skills. A lot characters can handle four skills. The fact that the thief has another Four to six skill points per level are not important.

What is the way you have to look at classes: what do they get in addition to what everyone can do? Class features provide exceptions to basic rules – custom shapes, sanctioned Cheating. When you look at a class, you have to look at what rules they have to bend or break. And that's where the thief really falls: his cheats are traps, escape, mysterious dodge and some special skills. The stealth attack is kind of a cheat, I guess, but when the two-player standard players do more damage, well … Anyway, half of these features are not even specific to thieves , and the detection of traps is almost downright written: rogue needs Something this makes someone want to play one ", but unfortunately the way the wizards chose to write was to punish all the others rather than really give the thief something impressive to do.

At first, the thief's abilities can be quite exceptional. The skills are more relevant, the damage difference is narrower, and so on. But the levels of additional thugs give little and less with time.

So, of course, open a sneak attack: it's a good change. There is certainly no reason to balance these limitations, since the thief can be massively damaged by untapped people. But the real The problem with the thief is not a sneak attack, nor a damage, but a versatility. The ability to really do things that others can not do. The thief has just very limited options for doing something unique. It takes more to be T3.