Player getting frustrated because he’s dropping to 0 HP frequently – what to do?

Kinda a parallel to this question.

Setup

My players’ party has the following composition of level 2 characters: Ranger, Cleric, Paladin, Barbarian, Warlock and Druid. Not all of them are present every session. In particular, the Barbarian was absent in the last two. If that’s relevant, we’re playing Lost Mine of Phandelver.

Problem

The Cleric and the Paladin usually are the front-liners. I usually split the attacks between both roughly equally, either round-based (i.e. one round the NPCs attack one character, another round the other character) or number-based (4 NPCs total, 2 attack each one). Even if I didn’t, I don’t feel like focus firing is unfair, as the party is constantly applying this tactic and is actually better than splitting fire randomly in almost every situation.

The Cleric is getting to 0 HP quite frequently, though, due to burst damage caused by all the NPCs attacking at the same time (as stated in the other question) or simply being unlucky. The Paladin got to low HPs (1~3) quite frequently as well, but not being dropped unconscious is clearly way less frustrating, so the Paladin is fine. The fact that the Cleric is getting unconscious while the Paladin doesn’t, though, seems to be making the Cleric feel like I’m targetting only him.

I don’t think they are playing (too) poorly, in terms of tactics – the cleric has a decently high AC (18) and HP (19 IIRC), so he can be the front line (although maybe he shouldn’t, especially if he’s getting frustrated by dropping down). The encounters are also not hard – even the ones I rebalanced for more PCs (as the adventure assumes 4 PCs and we have 5-6 sometimes) were, at worst, barely deadly and done while the party was at full resources. Other than that, these were normal/hard encounters.

Most of these encounters had melee enemies (e.g. Redbrands, which use sword attacks, bugbears and the Nothic – which was mostly using the double claw attack) and the party got to them in front-to-front combats, so actually moving through the front line, taking opportunity attacks, to reach the ranged backline would make even less sense than random targetting for me.

While “stop focusing him” seems a solution, it seems a really bad solution – both from the RP perspective of my NPCs (forcing them to be dumber than usual) and from a challenge perspective.

I have tried to explain to him that I’m not focusing him at all, even recording the attacks I had made and showing that in average I have targetted the Paladin more than him, but he said “Yeah, you attacked the Paladin after I was dropped to 0 HP” – ignoring that he got up and the Nothic kept attacking the Paladin for two more rounds after that.

I’m not sure I should simply play differently or try to talk to him, or to the whole party, or what. I don’t want to sound rude saying “Welp, if you are going to complain about being focused, don’t be the front line” or something along these lines, but currently I feel like this is the best solution – although I don’t even know how to say it without him thinking it is even more personal, when it isn’t.

Unable to resize the partition because the disk was locked in Ubuntu 18.X

I tried to resize the partition using GParted, and it didnt work because it’s being used by system.

enter image description here

Someone said that i need to do the GParted in a live CD, so i made a Ubuntu Installer into a USB using rufus. I also changed the boot priority in BIOS to boot the USB stick first. But i am unable to enter the live CD installer. It just keep appear the grub menu which show which OS should i use, Ubuntu or Windows.

How could i resize the ubuntu partition in proper way ?

I cannot add Text(installedApps[index][“app_name”]) because ‘index’ is not defined. How can I add this Text?

I am building a flutter app. I have built a class with a constructor in it. I made the constructor so I could customize my ListTile.

Like so:

class AppList extends StatefulWidget {    @override     AppListState createState() => AppListState();      AppList({Key key, this.child}) : super(key: key);      final Widget child;  }  class AppListState extends State<AppList> {    Widget child;    List<Map<String, String>> _installedApps;    @override     void initState() {       super.initState();     }    getApps() {     setState(() {       installedApps = _installedApps;       getApp();     });   }    @override     Widget build(BuildContext context) {        if (installedApps == null)         getApps();        return ListView.builder(          itemCount: installedApps == null ? 0 : installedApps.length,         itemBuilder: (context, index) {           return child; //This is where the ListTile will go.          },       );     }  }  //Just in case you were confused, I used a plugin for some of the features 

After I built this class, I put it in my Example class.

Example class:

class Example extends StatefulWidget {    @override      ExampleState createState() => ExampleState();  }  class ExampleState extends State<Example> {    @override     Widget build(BuildContext context) {       return MaterialApp (         debugShowCheckedModeBanner: false,         home: Scaffold (           body: Container (             color: Colors.black,             child: AppList (               child: ListTile (                  title: Text(installedApps[index]["app_name"]) //this is the text               ),             )           )           ),       );     }  }  

Then after, I added a ListTile and a text inside of it. But as I was writing the text I realized that I could not put the text I wanted. It was because ‘index’ was not defined in the Example class.

Is there a good way to put this text in my Example class?

Can’t Merge Facebook Page because “Merge is Pending”

I am in the process of merging some duplicate Facebook pages but I am encountering the following issue of quite a few pages:

When I ask for a merge, I get an error message saying that the merge cannot be done because a merge is currently pending.

However, I’m pretty sure that it’s the first merge request (at least for some of the pages) and when I look into the Page Settings > Page Support Inbox , I don’t see any merge request pending.

I see that quite a lot of people have encountered this situation but I could not find any reason why, or a way to fix this. Do you have any insight?

ZFS zpool create fail because device is part of an active md

I am trying to install ZFS on a new machine that I got. I am new to ZFS, but I have it running on another server, where I have it on a whole disk. On the current machine that I received there is a more complex setup with two disks in a raid with mdadm.

I am getting this error

# zpool create zdata md2p2 cannot open '/dev/md2p2': Device or resource busy cannot create 'zdata': one or more vdevs refer to the same device, or one of the devices is part of an active md or lvm device 

lsblk:

# lsblk NAME        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT sda           8:0    0   1.8T  0 disk ├─sda1        8:1    0    32G  0 part │ └─md0       9:0    0    32G  0 raid1 [SWAP] ├─sda2        8:2    0   512M  0 part │ └─md1       9:1    0 511.4M  0 raid1 /boot └─sda3        8:3    0   1.8T  0 part   └─md2       9:2    0   1.8T  0 raid1 /     ├─md2p1 259:0    0  19.1G  0 md     └─md2p2 259:1    0   1.8T  0 md sdb           8:16   0   1.8T  0 disk ├─sdb1        8:17   0    32G  0 part │ └─md0       9:0    0    32G  0 raid1 [SWAP] ├─sdb2        8:18   0   512M  0 part │ └─md1       9:1    0 511.4M  0 raid1 /boot └─sdb3        8:19   0   1.8T  0 part   └─md2       9:2    0   1.8T  0 raid1 /     ├─md2p1 259:0    0  19.1G  0 md     └─md2p2 259:1    0   1.8T  0 md 

mount:

# mount | grep md /dev/md2 on / type ext4 (rw,relatime,data=ordered) /dev/md1 on /boot type ext3 (rw,relatime,stripe=4,data=ordered) 

fdisk:

# fdisk -l Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x28a866e7  Device     Boot    Start        End    Sectors  Size Id Type /dev/sda1           2048   67110911   67108864   32G fd Linux raid autodetect /dev/sda2       67110912   68159487    1048576  512M fd Linux raid autodetect /dev/sda3       68159488 3907027119 3838867632  1.8T fd Linux raid autodetect   Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0xcd73e68c  Device     Boot    Start        End    Sectors  Size Id Type /dev/sdb1           2048   67110911   67108864   32G fd Linux raid autodetect /dev/sdb2       67110912   68159487    1048576  512M fd Linux raid autodetect /dev/sdb3       68159488 3907027119 3838867632  1.8T fd Linux raid autodetect   Disk /dev/md1: 511.4 MiB, 536281088 bytes, 1047424 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes   Disk /dev/md2: 1.8 TiB, 1965365985280 bytes, 3838605440 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x946b7bbf  Device     Boot    Start        End    Sectors  Size Id Type /dev/md2p1          2048   40000000   39997953 19.1G 83 Linux /dev/md2p2      40001536 3838605439 3798603904  1.8T 83 Linux   Disk /dev/md0: 32 GiB, 34326183936 bytes, 67043328 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes 

mdadm

# mdadm --detail /dev/md2 /dev/md2:            Version : 1.2      Creation Time : Sun Dec 30 15:41:04 2018         Raid Level : raid1         Array Size : 1919302720 (1830.39 GiB 1965.37 GB)      Used Dev Size : 1919302720 (1830.39 GiB 1965.37 GB)       Raid Devices : 2      Total Devices : 2        Persistence : Superblock is persistent       Intent Bitmap : Internal         Update Time : Sun Dec 30 16:57:49 2018              State : clean, resyncing     Active Devices : 2    Working Devices : 2     Failed Devices : 0      Spare Devices : 0  Consistency Policy : bitmap       Resync Status : 30% complete                Name : rescue:2               UUID : 55c6b3c1:32148042:cb720149:39004511             Events : 8538      Number   Major   Minor   RaidDevice State        0       8        3        0      active sync   /dev/sda3        1       8       19        1      active sync   /dev/sdb3 

The goal is to create the ZFS pool on the md2p2 partition. How to do it?

ASV scan failing because of Session ID in URL

We’re on a Magento 1.9.3.7 and our Aperia ASV scan is failing because of Session ID in URL.

One example would be the following https://mystore.com/category.html?SID=rmdfi0m0gibepot9eom7egj384
Payload: N/A
matched: Session ID found in the URL.

A session ID is present in the URL. Passing the session ID in the URL is insecure as it may aid an attacker to obtain a valid session ID of a victim or to session fixation exploits.

They’re asking for official Magento documentation about the SID param in the URL but I can not find any.

How can I resolve this vulnerability?

Android, app with several checkbox areas. App laging because of heavy xml or code

My app is several checkboxes areas. On some event data from all checkboxes will be saved/sended/etc.

All worked, but this Activity loading about 7 seconds because my code is bad. So i need help in refactoring and optimize it.

How it looks in app:

img1

enter image description here

img2

enter image description here

So, i have 10(!) forms with ~ 100 checkboxes summary. To draw it, i’m using 10 recyclers with 10 adaptes. Every adapter initialize with his own list and have own layout manager.

How to make this code good?

I can’t pass all code, it’s too large, so i give it apart.

To drow one recycler i use it(variable names changed):

//toolbar and questform ... <RelativeLayout android:id="@+id/rv_wrapper1"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:padding="@dimen/padding_default">                  <TextView                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:layout_alignParentStart="true"                     android:layout_alignParentLeft="true"                     android:text="@string/title1"                     android:textSize="@dimen/text_size_big" />                  <ImageView                     android:id="@+id/img_arrow_1"                     android:layout_width="@dimen/image_size_small"                     android:layout_height="@dimen/image_size_small"                     android:layout_alignParentRight="true"                     android:layout_marginEnd="@dimen/margin_default"                     android:layout_marginRight="@dimen/margin_default"                     android:src="@drawable/ic_expand" />                   <com.github.chuross.library.ExpandableLayout                     android:id="@+id/rv_expaner1"                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:layout_below="@id/img_arrow_1"                     app:exl_duration="1000">                      <android.support.v7.widget.RecyclerView                         android:id="@+id/rv_1"                         android:layout_width="match_parent"                         android:layout_height="wrap_content"                         android:layout_marginTop="@dimen/padding_small">                     </android.support.v7.widget.RecyclerView>                 </com.github.chuross.library.ExpandableLayout>             </RelativeLayout>             ///another recycles 

and i duplicate it 9 times on xml.

Activity

RecyclerView rv1 = findViewById(R.id.rv1); RecyclerView rv2 = findViewById(R.id.rv2); //another 8 RV. ...  rv1Adapter = new RVAdapter(this, initializList1(this)); rv2Adapter = new RVAdapter(this, initializList2(this)); //another 8 adapters ...  rv1.setAdapter(rv1Adapter); rv2.setAdapter(rv2Adapter); ... //another 8 setters  RecyclerView.LayoutManager layoutManagerForRv1 = new GridLayoutManager(this, 3); RecyclerView.LayoutManager layoutManagerForRv2 = new GridLayoutManager(this, 3); ... //another 8 managers  rv1.setLayoutManager(layoutManagerForRv1); rv2.setLayoutManager(layoutManagerForRv2); ... //another 8 setters for managers  RelativeLayout rv1Expander = findViewById(R.id.rv_expander1); RelativeLayout rv2Expander = findViewById(R.id.rv_expander2); ... //another 8 RL  rv1Expander.setOnClickListener(new ExpanderLayoutHelper(R.id.rv_expander1)); rv2Expander.setOnClickListener(new ExpanderLayoutHelper(R.id.rv_expander2));  ... //another 8 listeners 

ExpanderLayoutHelper – using for expand/collaps animation of RV.

public class ExpanderLayoutHelper implements View.OnClickListener {         RelativeLayout expandWrapper;         ImageView arrow;         ExpandableLayout expandableLayout;          ExpanderLayoutHelper(int relativeLayoutId) {             this.expandWrapper = findViewById(relativeLayoutId);             this.arrow = (ImageView) expandWrapper.getChildAt(1);             this.expandableLayout = (ExpandableLayout) expandWrapper.getChildAt(2);         }          @Override         public void onClick(View v) {             if (expandableLayout.isCollapsed()) {                 expandableLayout.expand();                 expandWrapper.getChildAt(1).animate().rotation(90f).setDuration(1000);             } else {                 expandableLayout.collapse();                 arrow.animate().rotation(0).setDuration(1000);             }         }     } 

Another points will be here if i remember something important.

1) initializeList() is just 1-20 list.add("something") operation. For every form i have uniq list, so i have 10 initialize methods now.

2) When i draw 10 recyclers without adapters lists initialization, app is not lagging. So, lags about lines adapter = new RVAdapter(this, initialize(this)); I know i can try to solve it with multithread, but bad code and xml is not gone.

I had to set up a backup email because I couldn’t get in my original on hoe can I log in the new on and have everything synced [duplicate]

This question already has an answer here:

  • How do I recover my Google account (or Gmail) password or username? 2 answers

I need help in a way of getting all my important work msgs and numbers from my email and I am locked out of it

Force NDSolve to include three BC constraints to a second order ODE because generic NDSolve choses wrong intial slope

The following is an ODE that represents a numerical solution for the radial part of the heat equation corrected to first order for a spatially varying thermal conductivity in spherical coordinates. This computes the temperature distribution near the tip of a self-cooled electrode / ablation catheter. Since the heat equation is second order, NDSolve requires two BCs, but faults when three are specified. The problem requires the specification of temperatures at an initial and final spatial point {r0,large} respectively. In order to specify a power input, the temperature slope must be specified at the initial position (tt'[r0]). There is an extreme temperature point (max/min) at an intermediate point between initial and final temperature locations.(See graphic below.) The generic NDSolve chooses the wrong sign for the initial temperature slope because the curve length between initial temperature, (tt[r0]) and final temperature, (tt[large]) is shorter when (tt'[r0]<0) versus curve length when (tt'[r0]>0). The question is how do I specify the value of (tt'[r0] = pwr/(thermalConductivity * r0)) ? NOTE: As I have stated before, I am only a dumb engineer who only infrequently uses Mathematica when I need a solution that could have been solved by a Mathematician and is free of the errors and inconsistencies of Matlab. I would appreciate it if one of the “monitors” would transfer the code and graphic to traditional “people readable” format here. Thanks!!

<< VectorAnalysis` SetCoordinates[Spherical[r, theta , phi]] de = \!\(TraditionalForm\`Div[\((1 + \((dkc/kc0)\)*tt[r])\)*   Grad[tt[r]]] - \((pwr/\((\((kc0 - dkc*tt[r])\)*r)\)\ *\ \((r0^3/     r^5)\)\ )\)\);   ss = Simplify[de]; kc0z = 1.0; dkcz = 0.01; r0z = 0.1; largez = 20.0; pwrz = 40.0; tbodz = 37.0; tzeroz = 25.0;  ppp = NDSolve[{{ss == 0, tt[r0] == tzero, tt[large] == tbod}},  tt[r], {r, r0, large}] /. {kc0 -> kc0z, dkc -> dkcz, r0 -> r0z,  large -> largez, pwr -> pwrz, tbod -> tbodz, tzero -> tzeroz } rmax = 0.5; Plot[Evaluate[tt[r] /. ppp], {r, r0z, rmax}, Frame -> True,  GridLines -> Automatic, PlotRange -> {{r0z, rmax}, {0, 50}}] 

Temprature plot from r0 to "large"

502 bad gateway because of Undefined Index?

In my site I get a 502 bad gateway after implementing the following configuration:

server {  51         listen 443 ssl http2;  52         listen [::]:443 ssl http2;  53         server_name microurb.club;  54         return 301 https://www.microurb.club;  55         include ssl/ssl_general.conf;  56         include ssl/ssl_microurb.com.conf;  57 }  58  59 server {  60         listen 443 ssl http2;  61         listen [::]:443 ssl http2;  62         server_name www.microurb.club;  63  64         include ssl/ssl_general.conf;  65         include ssl/ssl_microurb.com.conf;  66  67         root /var/www/microurb.com/public_html;  68  69         # Add index.php to the list if you are using PHP  70         index index.html index.php;  71  72         location ~ \.php$   {  73           include snippets/fastcgi-php.conf;  74           fastcgi_pass unix:/var/run/php7.0-fpm.sock;  75         }  76  77         include custom_config_files/x_protection.conf;  78 }  79 

I did a:

sudo tail -30 /var/log/nginx/error.log 

And received the following errors, but I do not know what they mean:

PHP message: PHP Notice:  Undefined index: success in /var/www/microurb.com/public_html/index.php on line 295" while reading upstream, client: 24.55.9.54, server: www.microurb.club, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "www.microurb.club" 2018/12/25 20:07:05 [crit] 18408#18408: *40 connect() to unix:/var/run/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 24.55.9.54, server: www.microurb.club, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7.0-fpm.sock:", host: "www.microurb.club" 2018/12/25 20:07:06 [error] 18408#18408: *40 open() "/var/www/microurb.com/public_html/favicon.ico" failed (2: No such file or directory), client: 24.55.9.54, server: www.microurb.club, request: "GET /favicon.ico HTTP/2.0", host: "www.microurb.club", referrer: "https://www.microurb.club/" 2018/12/25 20:07:10 [crit] 18408#18408: *40 connect() to unix:/var/run/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 24.55.9.54, server: www.microurb.club, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7.0-fpm.sock:", host: "www.microurb.club" 2018/12/25 20:07:20 [crit] 18408#18408: *40 connect() to unix:/var/run/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 24.55.9.54, server: www.microurb.club, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7.0-fpm.sock:", host: "www.microurb.club"