general topology – How to use universal quotient property to construct homeomorphism

enter image description here

I was trying to figure out how to construct homeomorphisms using the universal quotient property, which I didn’t know about until now. And this nicely gives the criteria for doing this. However is there any way I can substitute numbers $(3)$ and $(4)$ given below by either showing the function $f$ is surjective or $g$ is injective and surjective, instead of finding an inverse function which seems difficult?

node.js – Cannot add property to mongoose document with findOneAndUpdate

My express app tries to record the log in time of the user using Mongoose’s findOneAndUpdate.

router.post('/login', passport.authenticate('local', {
    failureFlash: true,
    failureRedirect: '/'
}), async(req, res, next) => {
    // if we're at this point in the code, the user has already logged in successfully.
    console.log("successful login")
    // save login time to database
    const result = await User.findOneAndUpdate({ username: req.body.username }, { loginTime: Date.now() }, { new: true });
    console.log(result);
    return res.redirect('/battle');
})```

The user document does not start out with a loginTime property. I'm expecting this code to insert that property for me.

The actual result is, the console shows the user document being printed out, but without any added loginTime property. How can I fix this so a loginTime property is inserted into the document? Is the only way to do it by defining a loginTime property in the original mongoose schema? And if so, doesn't that nullify the supposed advantage of nosql vs sql in that it's supposed to allow new unexpected property types into your collections and documents?

google analytics – changing GA property after changing domain?

google analytics – changing GA property after changing domain? – Webmasters Stack Exchange

inheritance – Reading data from multiple different resource bundle property files in Java

I have class structure to read the data from resource bundle (property files).

import java.util.Locale;
import java.util.Objects;
import java.util.ResourceBundle;

/**
 * The class will be used to read the resource bundle to achieve localization
 * and internationalization
 *
 */
public class ResourceBundleReader {

  private String resourceBundle = null;

  /**
   * Constructor of the class
   *
   * @param resourceBundle
   * @throws NullPointerException
   *           if resourceBundle is null
   */
  public ResourceBundleReader(final String resourceBundle) {

    Objects.requireNonNull(resourceBundle);

    this.resourceBundle = resourceBundle;
  }

  /**
   * Return message by input key for default locale
   *
   * @param key
   * @return
   */
  public String getMessage(final String key) {

    return getMessage(key, Locale.getDefault());
  }

  /**
   * Return message by input key for input locale locale
   *
   * @param key
   * @return
   */
  public String getMessage(final String key, final Locale locale) {
    final ResourceBundle mybundle = ResourceBundle.getBundle(resourceBundle, locale);
    return mybundle.getString(key);
  }
}

As there are multiple type of resource bundles, I have created individual implementation for that. For example below two:

Exception Message:

public final class ExceptionMessageResolver {

  private static final String EXCEPTION_MESSAGES_RESOURCE = "exceptionmessages"; //$NON-NLS-1$

  private static final ResourceBundleReader RESOURCE_BUNDLE_READER = new ResourceBundleReader(
      EXCEPTION_MESSAGES_RESOURCE);

  /**
   * Private constructor to prevent instantiation Constructor of the class
   */
  private ExceptionMessageResolver() {
    super();
  }

  /**
   * return exception message by default locale
   *
   * @param key
   * @return
   */
  public static String getMessage(final String key) {

    return getMessage(key, Locale.getDefault());
  }

  /**
   * Return exception message for input locale
   *
   * @param key
   * @param locale
   * @return
   */
  public static String getMessage(final String key, final Locale locale) {
    return RESOURCE_BUNDLE_READER.getMessage(key, locale);
  }

}

Label Messages:

public final class ResourceLabelResolver {

  private static final String LABEL_RESOURCE = "resourcelabels"; //$NON-NLS-1$

  private static final ResourceBundleReader RESOURCE_BUNDLE_READER = new ResourceBundleReader(LABEL_RESOURCE);

  /**
   * Private constructor to prevent instantiation Constructor of the class
   */
  private ResourceLabelResolver() {
    super();
  }

  /**
   * return label message by default locale
   *
   * @param key
   * @return
   */
  public static String getMessage(final String key) {

    return getMessage(key, Locale.getDefault());
  }

  /**
   * Return label message for input locale
   *
   * @param key
   * @param locale
   * @return
   */
  public static String getMessage(final String key, final Locale locale) {
    return RESOURCE_BUNDLE_READER.getMessage(key, locale);
  }

}

Is there any more elegant way for this? Or any way to create abase class for my two readers to prevent duplicate methods in code?

c# – Binding Context Menu MenuItem.IsChecked to custom class bool property programmatically

I’m having trouble binding MenuItem.IsChecked to a boolean outside of XAML.

My intention is this:

MenuItem leftside = new MenuItem
{
    Header = "Left Side", 
    IsCheckable = true,
    IsChecked = "{Binding leftSide}"
};

And for the bool:

public bool leftSide
{
    get
    {
        return shape.LeftSideShown;
    }
    set
    {
        shape.LeftSideShown = value;
        RaisePropertyChangedEvent("leftSide");
    }
}

I’ve tried variations of leftside.SetBinding(), but all I can get is a check/uncheck without triggering a change of the boolean. What does a programmatic binding to boolean look like?

typescript – Angular – Property Binding for Dynamically Added Control

Angular supports one/two way binding in HTML (One way: <button (disabled)="buttionDisabledProperty" />, Two way: <input ((value))="inputValueProperty" />).

How do we achieve this if the control is being added from TypeScript?

{
    label: 'Approve',
    icon: 'icon-tlbr-approve',
    disabled: this.isApproveDisabled()
}

In this case, the function isApproveDisabled() is called only once, and Angular doesn’t watch for change in return value of this function. As a result, the disabled state is never changed.

How do we add the control via TypeScript code ensuring disabled property is one-way bound to return value of isApproveDisabled() (the same way it can be bound in HTML using (disabled)="isApproveDisabled()")?

How do I set Foot IK property by code?

I would like to set Foot IK to enable by code, but I don’t find how.

Which part is "Foot IK" a part of?

Thank you!

enter image description here

Merging every two objects into single single object making group by a property C# LINQ

I have a object list like below. I want to join every two rows into single row based on column B. It is sure that only two rows would be there for every single column B value.

Input

enter image description here

Output

enter image description here

However, my solution works. but I am looking for more better solution. I am not much happy with my solution.

My solution:

var groupByItems = items.GroupBy(x => x.ColumnB).Select(x => new MappingClass
    {
        ColumnA= x.FirstOrDefault().ColumnA,
        ColumnB= x.FirstOrDefault().ColumnB,
        ColumnC= x.Where(r=> !string.IsNullOrEmpty(r.ColumnC)).Select(r=>r.ColumnC).FirstOrDefault(),
        ColumnD= x.Where(r => !string.IsNullOrEmpty(r.ColumnD)).Select(r => r.ColumnD).FirstOrDefault(),
    }).ToList();

Now groupByItems object returns me two rows as expected.

sharepoint server – Search is not working with custom managed property

The crawled property which you should be looking for mapping will look like ows_q_DATE_DocumentDate Here ‘DocumentDate’ is my custom field.

Also, please check what managed property you have mapped to this and use this as the prefix to your Search keyword.

Alternatively, You can Map your crawled property of date to some RefinableDate00 and give it an alias say “ContosoAlias”. then perform a search with a query as – “ContosoAlias: your_search_keyward” It will surely work for you.

Edit– Steps

  1. Go to Site Settings -> Schema (under Search section)

  2. Type refinabledate in searchbox to get managed property

  3. Select ‘RefinableDate00’ and click on Edit
  4. Provide an Alias name eg. ContosoAlias
  5. Click Add mapping to look for your respective crawled property and clik OK
  6. Go to your Search Box and write a query like ContosoAlias: 6/14/2018

Done !!

PS: You can use the managed property to refine your results as well.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123