pathfinder 1e – Why is the mass of the assistant kit smaller than the sum of its parts?

I read PZO1123 Ultimate Equipment and find the following:

The assistant kit weighs 21 pounds. It contains a backpack (2 lbs), a duvet (5 lbs), flashlights (10 × 1 lb each), trail rations (5 × 1 lb each) and some other things … but that's 22 lbs! Why is it so I'm assuming the start kits aren't magic.

How many mass shootings were stopped by a person with a hidden firearm?

There was a recent example in White Settlement, Texas, where a man with a gun stopped a shooter after only killing two people. The "good guy with a gun" was a former law enforcement officer and ran a gun security program for citizens. In other words, he was very well trained to use his weapon.

If all gun owners need this type of training, there is much more support for widespread gun ownership.

swift – iOS Body Mass Index (BMI) app

It's a "homework" from a Swift course that I'm doing.

A model and the images are provided by the instructor. We should create the layout and write a suitable code.

App View

Here is the code of my ViewController:

import UIKit

class ViewController: UIViewController {
  // MARK: Outlets
  @IBOutlet weak
  var nameText: UITextField!
    @IBOutlet weak
  var sizeText: UITextField!
    @IBOutlet weak
  var weightText: UITextField!

    @IBAction func clickHereButton(_ sender: UIButton) {
      let name = nameText.text!
      let size = Double(sizeText.text!) !
      let weight = Double(weightText.text!) !

      let bmi = weight / pow(size, 2)
      let bmiRounded = (round(bmi * 10) / 10)
      let uac = UIAlertController(title: "BMI for (name)", message: "Your Body-Mass-Index is (bmiRounded)", preferredStyle: .alert)
      uac.addAction(UIAlertAction(title: "Okay", style: .default))
      self.present(uac, animated: true, completion: nil)

What do you think of my implementation?

What would you have done differently and why?

We look forward to your answers and comments.

usa – travel to a country known for mass surveillance. How can I protect my data / privacy?

Next year I will probably travel to China, the United States and a few other countries. It is known that both China and the United States sometimes take your electronics with you when they arrive and search them, possibly even installing things on them.

This is a good example of what I am talking about.

Neither me nor my friends (as far as I know) do anything shady or have extremist views (luckily, these views are a rarity here in Central / Western Europe), but it is very likely that my friends or I said something (non-threatening) or two about Hong Kong or Trump. In China, there is a real danger that someone has said something for Hong Kong that they are not happy about and that could refuse me entry, while in both cases I fear for my privacy.

I don't like my devices to be compromised, and although I don't have confidential personal information in the traditional sense, it can contain sensitive company information and be connected to my online presence. That means accounts, passwords, bank accounts, access to company data and accounts, basically everything.

How can I protect my (and my company) data, information and privacy if I cannot guarantee that my devices will not be compromised? I'm thinking of a burner phone and a notebook, but if something is installed (e.g. government malware), it means that every login can be tracked, the account information can be retrieved and used against me.

It sounds a bit paranoid, but supposedly this is already happening (see news article at the beginning) and is only getting worse.

8 – How can I remove the remains of the Mass Contact module that have not been uninstalled properly?

This problem has already been fixed for the 8.x-1.x branch because the field mass_contact_opt_out should be removed during the deinstallation.

The code added to the uninstall hook is as follows.


If you have installed Drush, you can write these two lines in a file (e.g. fix-module.php) and execute them with drush php-script fix.module.php, You can also insert the following code into a file next to the authorize.php file supplied with Drupal Core and access this file via the browser.

use DrupalCoreDrupalKernel;
use DrupalCoreConfigConfigFactoryInterface;
use SymfonyComponentHttpKernelExceptionHttpExceptionInterface;
use SymfonyComponentHttpFoundationRequest;
use SymfonyComponentHttpFoundationResponse;

// Change the directory to the Drupal root.
$autoloader = (require_once 'autoload.php');

try {
  $request = Request::createFromGlobals();
  $kernel = DrupalKernel::createFromRequest($request, $autoloader, 'prod');
} catch (HttpExceptionInterface $e) {
  $response = new Response('', $e->getStatusCode());

Rewriting URLs – script (no plugin) for wordpress to rewrite permalinks of the mass media gallery with title tag value?

Stack Exchange network

The Stack Exchange network consists of 175 Q & A communities, including Stack Overflow, the largest and most trusted online community where developers can learn, share, and build a career.

Visit Stack Exchange

E-Mails – Alternative to mass contact for Drupal 8?

In my previous Drupal 6 site, I used the Mass Contact module to send mass emails, and it worked just fine for my needs.
I am migrating to Drupal 8 and there is only one beta version of this module (released June 21, 2017).
My first tests of this version are not very promising: I found bugs, the user interface is less nice than in D6, and so on.
What would you suggest as a D8 alternative?

Magento2: Mass update of custom table state through the UI component grid

I have a UI component grid in Admin that displays data from the custom table multivendor_product in which id is the primary key of the table and another field product_id is the product ID catalog_product_entity.entity_id, Here's the massaction tag in the XML file of the UI component:



Now when I select the records and one of the actions, I go to the controller Custom/Marketplace/Controller/Adminhtml/Product/massStatus.phpbut I can not refresh the table.
I would like to update the table with the new status and also if the disapprove Action is selected, disable the product as well.

Could someone help me with that?
thank you in advance