markov chains – Asymmetric Transition Probability Matrix with uniform stationary distribution

I am solving a discrete Markov chain problem. For this I need a Markov chain whose stationary distribution is uniform(or near to uniform distribution) and transition probability matrix is asymmetric.

( Markov chains like Metropolis hasting has uniform stationary distribution but transition probability matrix is symmetric )

unity – Transition to self using conditions

I have set up a relatively simple example scene with one enemy.

If he’s hit by my hero character, then I set a certain variable in the animator.
The animator then changes according to a condition.

For example, if I shot the enemy in the stomach, then I set the condition to 2:

_animator.SetInteger("AnimState", (int)eAnimState.StomachHit); //"StomachHit" is "2"

Then the animator transitions to the stomach hit animation:

enter image description here

I have drawn a red rectangle around the condition.

This works fine.

However, I’m often confronted with a situation where the hero shoots the enemy in the stomach again while the enemy is still playing the “stomach hit” situation.
In this case, I would like to transition to the beginning of the stomach hit animation.

However, I wonder how I should do that.

Just calling

_animator.SetInteger("AnimState", (int)eAnimState.StomachHit); //"StomachHit" is "2"

again doesn’t do anything of course, because the condition is still “2”, so the animator doesn’t change anything and just keeps playing the stomachhit animation.

I tried to quickly change to idle like this to restart the stomach hit animation:

_animator.SetInteger("AnimState", (int)eAnimState.Idle); //"Idle" is "0"
_animator.SetInteger("AnimState", (int)eAnimState.StomachHit); //"StomachHit" is "2"

But this didn’t work, it wasn’t reliable. I then created difficult solutions to change when Idle had actually been started, but it became really complicated.

Is there any easier solution?

Thank you!

html – Efeito CSS Transition no Link – Pseudo Active

Como posso deixar o efeito de transição fixo utilizando a pseudo de classe “active” a:active{…}, ou seja, quando o link foi clicado (ativado) o efeito permanece. Exemplo abaixo:

CSS:

body{
  margin: 0;
  padding: 0;
  font-family: arial; sans-serif;
  font-size: 14px;
}
h1{
  background: #333;
  float: left;
  margin: 20px;
  padding: 20px 30px;
}
a {
  position: relative;
  color: #fff;
  text-decoration: none;  
}

a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

HTML

<h1>
  <a href="#">
    Passe o Mouse
  </a>
</h1>

swift – simple state transition table

I implement a function and have created an operation for each step. Operations are asynchronous.
How can I implement a coordinator to logically switch from one operation to the next upon completion?

At the moment I am simply saving and sending a notification of the last successful operation.
This notifies the coordinator from whom the next operation should be called transitionTable Mapping and executing.

This appears to be a code smell and a simplified version of a state machine / transition table. If so, how could I adequately represent / implement transitions?

Operating codes

public enum OpCode: UInt8 {
    case Start                                   = 0x01
    case GetStatus                               = 0x02
    case EstablishSession                        = 0x03
    case GetAccessToken                          = 0x03
    case GetPackage                              = 0x04
    case InstallPackage                          = 0x05
    case Complete                                = 0x06
}

coordinator

class OperationCoordinator {


private let transitionTable: (OpCode: OpCode) = (
    .Start:                      .GetStatus,
    .GetStatus:                  .EstablishSession,
    .EstablishSession:           .GetAccessToken,
    .GetAccessToken:             .GetPackage,
    .GetPackage:                 .InstallPackage,
    .IntallPackage:              .Complete
)

func startOperation(_ notification: Notification) {
    guard let dict = notification.userInfo as NSDictionary? else {
        return
    }
    guard let code = dict("opCode") as? UInt8 else {
        return
    }
    guard let opCode = OpCode(rawValue: code) else {
        return
    }
    guard let nextOp = nextOperation(opCode: opCode) else {
        return
    }

    self.currentOperation = nextOp
    nextOp.execute()
}

private func nextOperation(opCode:OpCode) -> Operation? {

    let nextOpCode = transitionTable(opCode)

    switch nextOpCode {

    case .GetStatus:
        return GetStatusOperation()

    case .EstablishSession:
        return EstablishSessionOperation()

    case .GetAccessToken:
        return GetAccessTokenOperation(config: config)

    case .GetPackage:
        return GetPackageOperation(config: config)

    case .InstallPackage:
        return InstallPackageOperation(config: config)

    default:
        return nil
    }
}
}

Operation object

class GetStatus: NetworkOperation {

var code: OpCode {
    return .GetStatus
}

var request: URLRequest {
    var req = URLRequest(url: URL(string:"url")!)
    req.httpMethod = "GET"
    return req
}

func execute() {
    // network request
    URLSession.shared.dataTask(with: request) { (data, _, error) in
        if let err = error {
            print("error : (err)")
            return
        }

        if (self.parse(data: data) {
              // this is temp. plan to store opCode in realm database. which will update a rx `publisher` with opCode in stream to perform next operation. 
              NotificationCenter.default.post(name:.didFinishOperation, object: nil, userInfo:("opCode":OpCode.GetStatus.rawValue))
          }
    }.resume()
}

}}

2013 – SP2013: After the transition from http to https, no results are shown in the search

I switched from http to https using certificates, alternative access mapping AND IIS module "URL Rewrite" (via these links: Configure SSL for SP2013 and IIS URL Rewrite).
But since then my search application has had some problems.

What do I have

On my sandbox site I try to get some documents like test.xlsx or titled "XXX_Test" by typing "test" in the search bar.
It redirects me to "https://myWebApplication.MyDomain.com/sites/MySiteCollection/_layouts/15/osssearchresults.aspx?u="https% 3A% 2F% 2FmyWebApplication% 2MyDomain% 2Ecom% 2Fsites% 2FMySiteCollection & k = test "

And I have no results with the message "No items match your search. Suggestions: Try a different orthograph, etc.".

What have I done :

Before that, I took some measures to redirect from http to https. My alternate access mappings are well redirected to https. Only the search is not possible.

What have I tried:

  1. First, determine if the search services are OK:

To check if the search services are working and running, I did the following: Go to Central Administration (what remains in http) > Application Management> Manage Service Application> Find Service Application, then I click on "Result Sources" and "Add Result Source" and then only on "Start Query Builder".
When I'm on it, I just replace {searchTerm} with "test" and hit the "test the query" button. My query returns all documents named test_Smtg.doc / xlsx etc. and all documents and folders whose title contains "test".

  1. Try something in the url:
    I previously said that the search bar was sent to "https://myWebApplication.MyDomain.com/sites/MySiteCollection/_layouts/15/osssearchresults.aspx?u="https% 3A% 2F% 2FmyWebApplication% 2MyDomain% 2Ecom% 2Fsites% 2FMySiteCollection & k = test "

here i think that https is essential. I tried to remove the s from the url parameter. as follows:
"https://myWebApplication.MyDomain.com/sites/MySiteCollection/_layouts/15/osssearchresults.aspx?u=http% 3A% 2F% 2FmyWebApplication% 2MyDomain% 2Ecom% 2Fsites% 2FMySiteCollection & k = test "

And … I got the right results.

  1. Check in to CA:

So I thought maybe my problem came from the content source!
I go back to Central Administration to check if my https site is included in the content source for on-premises SharePoint sites:
Content Sources> SharePoint Local Sites> Starting Addresses:

It is good !

So I don't know what to do to make my search work …

What do i ask you

Do you have any ideas on how I could change my search settings to accommodate SSL? ?

I'm pretty confused because I have to push https in the production environment very soon and I don't know if everything will be fine by then.

(TL; DR) : After changing several settings (IIS bindings, alternate SP access mappings and IIS URL rewriting) to redirect all my WebApps from http to https, my search does not work when searching httpS website collections. However, it works on http.

Thank you for your time and patience!

ux designer – transition from UX personas to functional documentation for development

I was recently familiar with the world of UX / UI and ID. I criticized the practice of spending too much time on documentation compared to development. However, now I have realized that these things are very, very important for an effective product and that my understanding was completely wrong. I can't solve the puzzle and I feel that something is missing, so I'm looking for help here.

What I've already done

After reading the About Face book, I decided on a project and started planning it. Since the book focuses on the targeted design approach, I follow it. I did my research, interviewed people and did personas.

What I need help with

Since I have all personas ready, my questions are as follows

  1. How can I translate the persona into software function documentation?
  2. How do you define product characteristics based on goals because user goals are not product features?
  3. What steps or processes do you take to turn features into development plans or milestones once you have a feature list?

Thanks a lot

Statistics – Number of classes of the $ D $ th power of the transition matrix of an irreducible Markov chain with the period $ D $

Suppose a Markov chain has a transition matrix $ P $is irreducible and recurs positively with the period $ D $ (greater than $ 1 $). Consider a new Markov chain with a transition matrix $ P ^ D $. Can't that be reduced?

I think there will be exactly that $ D $ Classes communicate so that it is not irreducible. We can split up our original Markov chain $ D $ puts, $ T_i $ to the $ i = 0, 1, 2, …, D – 1 $ so every state in $ T_i $ must go to $ T_ {i + 1} $ and $ T_D = T_0 $. For our new Markov chain, these are our classes (not sure how to prove it). But at least $ T_0 $ and $ T_1 $ are not in the same class because things are in $ T_0 $ can only go in to things $ T_0 $ in a multiple of $ D $ Steps. Is that correct? How is it that we don't use the positive recurring criterion?

I also forgot the construction needed for this cyclical disassembly. So it would be nice if someone could link a proof.