Money transfer from US to Israel

Question: My boyfriend from Israel was planning on moving to the states to live with me. He brought about $10,000 here last time he came. He is now back in Israel and we decided he was not going to move here. How do I send him his money? Will it bring up red flags with the IRS if I wire it to his bank from mine?
Comment: The IRS won't care; that really isn't a very large amount of money, and the tax issue would be his, not yours. Other agencies may be more interested, but as long as you've got a paper trail on this it really shouldn't be a problem.
Answer: Bank-to-Bank wire transfer would be the best option. Dollar is going up nowadays, so if he brought the money not so long ago he might even earn the cost of the transfers back through the difference of the exchange rates.
Re the IRS - they don't care. Same goes to the Israeli Tax Authority. What you and your friend need to show, if asked, is the paper trail. I.e.: if he brought you the $10K in cash - that may be an issue unless he kept all the receipts for getting it. But for such a low amount you can always resort to claiming it is a gift from you, in this case.

Money transfer from US to Israel


Insert filepath from FZF window in buffer

Question: In the fzf plugin you can define mappings for the fzf window to open the selected file in a vertical split, etc. How can I make fzf mapping to insert the path of the selected file as a string into the current buffer? I want to use this mapping inside the fzf-window opend by :FZF and similar commands.
Answer: Add FZF setup:
    func! s:insert_file_name(lines)
        let @@ = fnamemodify(a:lines[0], ":p")
        normal! p
    endfunc
    let g:fzf_action = { 'ctrl-r': function('s:insert_file_name')}

Then open :Files select a file and press <c-r>.
See :h fzf-examples.
Comment: If you change ":p" to ":f" it will give you the relative path
Answer: You will need to run the underlying FZF functions to do so.
Say you intend to adapt Files to do so.
:Files probably calls fzf#run at some point. Find that call.
The sink argument of fzf#run (and grep and others) would be a function that says what to do with the selected string.
I have the following code:
:call fzf#run({'source': uniq(reverse(b:inserts)),'sink':function('PInsert'),'options': '-m'})

The source is the list of lines to select from. And PInsert would insert the selection to the buffer.
function! PInsert(item)
    let @z=a:item
    norm "zp
endfunction

So you just need to create a custom command and use PInsert as the sink argument.
Good luck.
Comment: Instead of clobbering the z register, do `put =a:item`
Comment: See :h fzf ................
Comment: It is a bit different since put works linewise.
Answer: You could always yank it and put it. I dont know how to create fzf mappings but the right hand side would basically be something like
normal! yaW<C-w>pp

Or in "pure" Ex commands, which work linewise:
yank | wincmd p | put

Depending on how much you want to yank.
Comment: You cannot (as far as I know) use normal mode command when selecting files in the fzf promt. I have tried to clarify my question.
Comment: @Andreas see edita


Fourier transform as exponential of Hermitian operator

Question: The Fourier transform
$$F: L^2\rightarrow L^2 \qquad \hat{f}(\omega) \equiv (Ff)(\omega) \equiv \frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty}f(t)e^{-i\omega t}dt$$
can be viewed as a unitary operator with inverse (and hence, adjoint)
$$(F^{-1}Ff)(t) = (F^\dagger F f)(t) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{\infty}\hat{f}(\omega)e^{i\omega t}d\omega \, .$$
All unitary operators $U$ can be written as the exponential of a Hermitian operator $H$, i.e. $U = \exp(iH)$.
What is the Hermitian operator $H$ that satisfies $F = \exp(iH)$, and does it have any physical significance or uses?
Comment: Would [math.se] be a better home for this question?
Comment: Dang. This is one of the neatest questions I've ever seen on Phys.SE! I sort of wish it stayed over there.
Comment: You are asking about the logarithm of the Fourier transform operator. You must first generalize to continuous rotations in phase-space, thus [Fractional Fourier transforms](https://en.wikipedia.org/wiki/Fractional_Fourier_transform) first explored by Condon in the 1930s in the context of canonical transformations of quantum mechanics.
Comment: This hermitian generator is simply the Hamiltonian of harmonic oscillator $H=\frac{1}{2}(x^2+p^2)$.
Comment: Not all unitary operators are a single exponential. In some cases you might need to take a product of many exponentials, hence many self-adjoint operators.
Comment: Condon's classic [1937 paper](http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1076889/pdf/pnas01779-0028.pdf).
Comment: *Strongly continuous unitary groups of operators* are in one-to-one correspondence with self-adjoint operators. This is Stone's theorem. The Cayley transform instead relates self-adjoint operators and unitary operators, but the interpretation is not of an exponential.
Comment: @knzhou A trip to the MIT library would net you the magnificent grand-daddy of this picture of rigid rotations in phase space generated by the Hamiltonian, Norbert Wiener's, "Hermitian Polynomials and Fourier Analysis", J. Mathematics and Physics 8 (1929) 70-73. Note this precedes Wigner's 1932 paper where he (E.W.) identified the oscillator as the generator of rigid phase-space rotations.
Answer: I found that question quite interesting and found a very nice paper on the arXiv: Classical Structures in Quantum Mechanics and
Applications. It deals with the Fourier transform in the framework of quantum mechanics (QM). In QM the Fourier transform is used frequently to transform from position to momentum space:
$$\hat F|q(x)\rangle=|p(x)\rangle,$$
where $|q(x)\rangle$ and $|p(x)\rangle$ are quantum eigenkets of the position and momentum observables and $\hat F$ is the operator of the Fourier transform. $\hat F$ can be defined elegantly as
$$\hat F=\int^\infty_{-\infty}dx|p(x)\rangle\langle q(x)|.$$
$\hat F$ is unitary and therefore can be expressed via the exponential of a hermitan operator. For the Fourier transform in this setting this hermitian generator is the number operator defined with the ladder operators: $ \hat N=\hat a^\dagger \hat a$:$$\hat F=\exp(i(\pi/2)\hat N).$$
This implies a nice bridge between second quantisation: ladder operators, number operator,.. and the canonical represantaion in position or momentum states.
For a more detailed explanation of this, the consequences and possible generalisations I highly recommend reading that paper. Some points coming up in that paper related are "Weyl-Wigner Formalism" and "Quantum Symplectic Group".
Comment: Could you show *why* the number operator is the right thing to exponentiate? It's not even clear what $a$ and $a^\dagger$ mean in this context. I guess they take each energy eigentstate to the next one?
Comment: @DanielSank Yeah, it's not clear from the context, but that's the number operator from the harmonic oscillator, $N=a^\dagger a$ for $a=x+ip$ (essentially). The connection to the harmonic oscillator is not obvious but it becomes apparent once you recall that the HO time evolution is simply a rigid rotation of phase space - hence running it for a quarter period will interchange the $x$ and $p$ axes. It would be good if M.J. can include this information in his/her answer, though - it's not at all obvious from the get-go.
Comment: This also shows that the inverse is completely nonunique; any $(2k+\frac12)\pi\hat N$ for integer $k$ will also do essentially the same.
Comment: I gave a brief summary of the expressions given in the paper: Yes of course it is not clear if you do not put in some time to read it and maybe even look at their references if some points remain unclear. Maybe the answer is lacking a bit content but once you start fleshing those expressions out: where do I stop? If you look in the paper they should become clear or at least clear enough to search for specific unclear points. I am no expert on the subject and just found the paper and read some passages briefly.
Answer: This hermitian generator is simply the Hamiltonian of harmonic oscillator $H=\frac{1}{2}(x^2+p^2)$. This is simple to understand. In Heisenberg picture evolution with this Hamiltonian is just rotations in $x,p$ plane. Fourier transform is transformation which maps $x \to p$ and $p \to -x$ so it is a particular rotation with angle $\frac{\pi}{2}$. Hence $\mathcal F = \exp (-i \frac{\pi H}{2})$.
Comment: Shouldn't you have an $i$ in the exponential (as the Hamiltonian is self-adjoint)?
Comment: Thank you, of course you are right.


Is there a way to reverse a windows update?

Question: The most recent Windows update has caused some issues with my system.   When I start up Starcraft, I get a BSOD (Blue Screen of Death).  I'd like to reverse the changes that Microsoft pushed out.  Is there a way to do this?
Answer: Control Panel > Uninstall a Program > View Installed Updates
You can uninstall whatever updates you want from there.
Answer: Another alternative that may be easier is just to use System Restore to rollback the system to the state that it was in before your update was installed.
Comment: i wouldn't call a system restore "easier". I would actually call it more work and possibly more problematic of a way to rollback a system update.
Comment: +1 Rex use the control panel update uninstall.  In the future always use Custom update and look at the crap M.S. is putting on your system, some you don't need and others will cause problems like this.  If you do need the updates try them again and then check back after to see if there are others.  Also clean your system: Ccleaner (Reg)/ Disk/ Defrag ect and always back-up.


Reduce navbar height when using bootstrap+ Flat UI

Question: I'm using designmodo's Flat UI, and I have a top bar navigation, I don't even populate it with links yet:
<code><body>
  <nav class="navbar">
  </nav>
</body>
</code>
<code>.navbar{
  height:18px;
  background:red;
}
</code>
I want to have a really thin topbar, like 18px. However I cannot reduce it more than 50px. What is the CSS property that I have to override?
I also tried editing manually with Chrome's DOM editor, but once I change the value, it goes back to 50ish px.
Answer: .navbar has a minimum height on it. You need to cancel it. Add the following rule to your css
<code>.navbar {
   min-height:0;
</code>


SOAP error when publishing Infopath 2010 form to Sharepoint

Question: I am working in a list which contains around 300 different fields.  I have also added another list as second data connection.     Everything is perfect at this stage and i am able to publish successfully.  After that i have given a action rule as Set Field Value to copy fields from the second data connection to Main data connection.   Now i am not able to save the form and publish the same.   I am getting "SOAP error when publishing Infopath form to Sharepoint" without any further description.    If i disable the rule, then its published successfully.  Since the above rule is necessary to copy data, i cannot disable the rule.    Kindly help me to fix this issue.
Answer: 300 Fields means you have created 300 columns in the Sharepoint list. That's pretty extreme for a sharepoint list. Especially since data will populate those fields. SOAP errors in infopath are generally a timeout with communicating between Infopath and the Sharepoint server, which means when you click publish it goes through each field in infopath and writes it in sharepoint. I have similar issues with a 250 field infopath form and I have begun to sacrifice lesser needed fields. If you have access to the farm you can try extending the timeout which I believe is defaulted at 5 minutes. Also from my experience Infopath takes especially long with calculated sharepoint fields, for me more than 3 is a deal breaker.
Comment: Researching the same thing a little more for my own issues, I came across several posts that pointed to one blog. It refers to changing the execution timeout. This was the exact issue we were dealing with. http://sharepointshah.blogspot.com.au/2012/11/soap-message-cannot-be-parsed-error.html
Answer: One possible problem maybe, the "Main Connection" is a receive data connection and so you are not able to change the values of this data.
Though you can create data connections that submit data to a list which you could use, you would just need to create another data connection that submits data to the same list as the "Main Connection".
Hope this helps!


Jesus' Brothers (Matthew 12:46)

Question: What exactly did Matthew mean when he is talking about Jesus' brothers in Matthew 12:46? From Matthew 12:49, its clear that he didn't mean Jesus' disciples as his brothers. So who are the Jesus' brothers mentioned there?
Answer: In Protestant Christianity, it is understood that Mary was a virgin until the birth of Jesus, but not after.

24 When Joseph woke from sleep, he did as the angel of the Lord
  commanded him: he took his wife, 25 but knew her not until she had
  given birth to a son. And he called his name Jesus.  Matthew 1:24-25
  ESV

After the birth of Jesus, then, Joseph and Mary were like any other married couple and would have likely had other children.
Paul refers to someone named "James" whom he refers to as "the Lord's brother".

But I saw none of the other apostles except James the Lord's brother.  Galatians 1:19 ESV

Later in Matthew, Jesus arrives in Nazareth, and he is rejected there because that is where he grew up, and people refused to believe he was anything special.  They specifically say that we know his father (who was actually only his stepfather), his mother Mary, and four named brothers.

Is not this the carpenter's son? Is not his mother called Mary? And
  are not his brothers James and Joseph and Simon and Judas? And are not all his sisters with us? Where then did this man get all these things? Matthew 13:55-56 ESV

So, Jesus appears to have had four brothers, namely James, Joseph, Simon and Judas.  It also indicates that Jesus had sisters, but it does not give a specific number.
Comment: Now I feel that the word "Brother" is totally ambiguous as far as The Bible is concerned.
Comment: +1 but better to expand e quite..."aren't his brothers James, Joseph, Simon and Judas? Aren't all his sisters with us?"
Comment: @Mike Thanks. How did I miss that?
Answer:
I have composed this answer from an answer on this site which was posted for some other question:
When Catholic Church call Mary the 'Blessed Vigin', they mean she remained a virgin throughout her life and there were no brothers to Jesus. The basis for this is:

Firstly because in Aramaic and Hebrew language there is no word for "Cousin" and as such they were either called brothers or with circumlocution. In Septuagint, the Hebrew word that included both brothers and cousins was translated as "adelphos" which in Greek has same narrow meaning like in English "brother" has. Even though the Greek has a separate word for cousin, the translators of Septuagint used the word Adelphos even for true cousins and the same usage was employed by writers of New Testament.
Secondly, when Jesus is found in temple at the age of 12, the context suggest that he was the only son of Mary (Luke 2:41-51). In Mark 6:3 Jesus is referred as "the son of Mary" and not "a son".

Mark 6:3 Isn't this the carpenter, the son of Mary and brother of James, Joses, Judas, and Simon?

Also others in Gospels are never referred as sons of Mary, not even when they are called Jesus' brothers, which is strange in case they were indeed his brothers.
Thirdly, in ancient eastern societies the younger siblings seldom gave advice to older. But we find these Jesus' brethren giving him advice on couple of occasions like John 7:3-4 and in Mark 3:21-where they sought to restrain him. This also eliminates them being his brethren since, if they were not his brethren then why they were referred as Brethren of Jesus?
Lastly, of all the four brethren named in Bible, consider only James, for similar reasoning can be applied to others also. "James the younger's" mother is Mary. Bible describes the scene at the foot of Jesus' cross in following verses:

Matt. 27:56 Among them were Mary Magdalene, Mary the mother of James and Joseph, and the mother of the sons of Zebedee.
Mark 15:40 There were also women, watching from a distance. Among them were Mary Magdalene, and Mary the mother of James the younger and of Joses, and Salome.

And

John 19:25 Now standing beside Jesus' cross were his mother, his mother's sister, Mary the wife of Clopas, and Mary Magdalene.

From above we can say that the mother of James and Joseph must be the wife of Clopas. As James is described as son of Alphaeus also at other place in Bible, Clopas and Alphaeus are probably the same person, since Aramaic name for Alphaeus could be rendered in Greek either as Alphaeus or Clopas. So probably James the younger is the son of Mary and Clopas and who is taken as brother of Joseph the Husband of Mary.

Another view on this verse is that, if Jesus had brothers from Mother Mary, then we find something awkward or amiss with this verse. Here all those who were closest to Jesus were there at the foot of the cross except his purportedly-existing brothers. This is something unimaginable by any count of imagination. If Jesus had brothers then they would have been definitely standing here.  [I cannot imagine myself to be not there as a brother of Jesus(In case if I were one) especially when my mother and even distantly related women were standing there unafraid of  Jews].
John in his gospel gives us another clue that Jesus had no brothers.

John 20:17 Jesus replied, "Do not touch me, for I have not yet ascended to my Father. Go to my brothers and tell them, 'I am ascending to my Father and your Father, to my God and your God.'" 20:18 Mary Magdalene came and informed the disciples, "I have seen the Lord!" And she told them what Jesus had said to her.

Here as per John's account in his gospel, Jesus tells Mary Magdalene to go and tell His brothers and she tells this to Jesus' disciples. If Jesus had brothers Mary would have gone and delivered this message to them and not to disciples.
Comment: Mark 6:3 does say "the son of Mary", but this does not indicate that Jesus was her only son.  In John 1:42, Jesus say "You are Simon the son of John".  However, we know Simon had a brother.  So, this expression is not supporting evidence to the eternal virginity of Mary.
Comment: @jayyeshu James and John are the sons of Zebedee--not Simon and Andrew.  The point is that you don't have to be an only child to be referred to as "THE son of" someone, as is made clear in the case of Simon.  Even if Jesus were the ONLY son of Mary, that would not in any way indicate that He were the ONLY child, as He could have had many sisters.  So if we use good hermeneutics, the Mark 6:3 passage is not something that should be cited as evidence of Mary's eternal virginity.
Comment: There is so much more to this than hermeneutics. There is The "Protoevangelium of James" written in 120 AD while the memories of the apostles were fresh.  There is the NEED, in the protestant community to rebel against the idea that God set Mary apart for her role in salvation.  This is a rebelion against the teachings of Catholism a continuing war against "The Woman"  who dedicated not partially, but in whole her life to Jesus Christ, loving him when all others fell away. This knowledge has been preserved, dogmatized when challenged by revolters but organiclly understood in the early Church.
Answer: The "brothers" mentioned in that context could be referencing to his cousin brothers. The word "brothers" in the Gospels is ambiguous. The Bible does not explicitly state that Jesus had brothers(in the absolute sense).

Jesus' Brothers (Matthew 12:46)


Truffle deployment/migration error with Infura - contract got deployed once but could not be deployed again

Question: I am stuck when deploying a Smart Contract to rinkeby testnet by running (on macOS 12.1) this:
sudo truffle migrate --reset --network rinkeby

The contract compiles and I can deploy it locally, but migration to testnet fails, returning this error:
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at createHash (/Users/mac/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/Users/gnidan/src/work/truffle/node_modules/hdkey/lib/hdkey.js:238:1)
    at f.hash160 (/Users/mac/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/Users/gnidan/src/work/truffle/node_modules/hdkey/lib/hdkey.js:39:1)
    at Function.privateKey [as fromMasterSeed] (/Users/mac/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/Users/gnidan/src/work/truffle/node_modules/hdkey/lib/hdkey.js:183:1)
    at Function.fromMasterSeed (/Users/mac/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/Users/gnidan/src/work/truffle/node_modules/ethereumjs-wallet/hdkey.js:18:1)
    at fromMasterSeed (/Users/mac/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/src/index.js:57:1)
    at new checkBIP39Mnemonic (/Users/mac/node_modules/truffle-hdwallet-provider/dist/webpack:/truffle-hdwallet-provider/src/index.js:90:1)
    at Object.provider (/Users/mac/learning/Blockchain/TestToken1/truffle-config.js:21:16)
    at Object.getProvider (/usr/local/lib/node_modules/truffle/build/webpack:/packages/provider/index.js:20:1)
    at Object.create (/usr/local/lib/node_modules/truffle/build/webpack:/packages/provider/index.js:13:1)
    at TruffleConfig.get [as provider] (/usr/local/lib/node_modules/truffle/build/webpack:/packages/config/dist/configDefaults.js:249:1)
    at Object.detect (/usr/local/lib/node_modules/truffle/build/webpack:/packages/environment/environment.js:19:1)
    at Object.module.exports [as run] (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate/run.js:22:1)
    at Command.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:189:1)
Truffle v5.4.26 (core: 5.4.26)
Node v17.1.0

Line 10 of this error message points to my truffle-config.js file, in particular to
return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/'+infuraKey)

I am using Metamask seed phrase and Infura.
In truffle-config.js, I set up rinkeby connection as follows:
rinkeby: {
  provider: function () {
    return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/'+infuraKey);
  },
    network_id: 4,       // rinkeby's id
    gas: 600000000,        // rinkeby has a lower block limit than mainnet
    gasPrice: 10000000000
},

I have tried:

setting an env. variable export NODE_OPTIONS=--openssl-legacy-provider,
tripple-checking MNEMONIC and Infura key,
Trying multiple Infura projects, to make sure the same contract is not created for the same ID,
Increasing gas fees.

Nothing worked so far and suspect the issue is in the sequence of steps I execute the commands.
I suspect the issue is in the sequence I do when setting up the project. I do the following:

Run mkdir project_id,
Run cd project_id,
Run truffle init to initialize a truffle project,
Run npm install --save truffle-hdwallet-provider,
Run npm install openzeppelin-solidity,
Set up contract and migration files, and truffle-config.js,
Run truffle compile
Run truffle migrate --reset
Run truffle migrate --reset --network rinkeby

Initially I thought this could be a Node version issue, but then I managed to run the code successfully once.
Strange results when running the same code
At one moment, I tried to deploy a simpler contract in a different project to test everything works. After returning to the main project and repeating the same Compile->Migrate commands, the contract actually was deployed - I checked this at etherscan. Unfortunately, I noticed a bug afterwards and had to re-run the Compile->Migrate commands. Then, the error shown above the screenshot appeared again.
I tried subsequently to repeat the sequence again, but was not able to successfully migrate the contract.
Question
Anyone knows how to fix this?
Answer: So I figured out the work-around - I changed the Node version to the latest stable version (v16) and everything worked like a charm. For those who need to change the version, here is a good tutorial.


Change view rotation command

Question: Does anyone know how to change the rotate view command?
The scroll on my mouse is a bit buggy and I can't find it on the keymap.
Comment: Please show your efforts in a screen capture. There is a hand and an axis on the 3D screen so you might able to use this in addition to your mouse scroll.  Edit User Preferences list the keyboard mappings and others can talk about this. I use the on screen axis for view rotation and I enjoy it more than I thought I would. I have some mouse issues as well with ambidextrous mouse. If you can click and drag ... then with the onscreen axis your can rotate view. You can zoom with the hand. You can Pan. Orthogonal Perspective.
Comment: There may be tutorials for the 3D View controls.  Maybe experimentation is enough.
Answer: You can use the Numpad 4 and Numpad 6 keys to rotate horizontally, and Numpad 8 and Numpad 2 to rotate vertically.
Also, if you enable "Emulate 3 Button Mouse" in the preferences > Input > mouse section, you can use Left click while holding the Alt key and drag the mouse to rotate the viewport.
Answer:
Menu Edit User Preferences.  Then Keymap on left side.
Name Search  text ... rotate.
3D View will show the match.

Change view rotation command


How to export attribute tables to Excel?

Question:
Possible Duplicate:
How do I export an attribute table in ArcGIS version 9.3.1 to Excel?

We are running 10.0 and are trying to simply export an attribute table to Excel other than exporting to dbf and opening straight away in excel.
The problem is our GIS Manager does not trust everything that is exported as far as formatting etc..changed info from database to excel.
In other words..when we view the attribute table they want the same identical view in excel!
Comment: I am not realy sure what is the eact problem, but csv format is much faster than the dbf format.
Comment: I suspect your GIS manager has no problem reading dbf files in excel as a terminal process, although does not want to see spatial data edited in excel and brought back into ArcGIS.
Comment: There are many questions of this kind on this site already, example: http://gis.stackexchange.com/questions/28308/how-do-i-export-an-attribute-table-in-arcgis-version-9-3-1-to-excel
Answer: You can select all records in the attribute table using the grab handle (left most column) and by holding the Shift key (then choose 'Copy Selected'). Then simply open Excel and paste the values.
This is much quicker than exporting to .dbf (unless of course you need to edit the attribute table data, in which case, it's preferable to do this in ArcMap using the Field Calculator and/or Editor utilities).
Comment: right click on grab handle (left most column) opens the dialog too
Comment: There is no 'Copy Selected' in 10.2.2, what other options are there?
Comment: There certainly is in my version (also 10.2.2, version 3552), are you sure that you're looking in the attribute table?
Answer: One of the table export options is Text, which is really in CSV format, so it can be easily opened in Excel without concern of truncated field names (and other DBF issues).
Alternately, there is an add-on that allows export to Excel.
Answer: The Xtools Pro extension will do this, it will also let you choose the fields you want to include in the export, which can make things go faster if you have a table with dozens of fields and you only need a few of them. It's a paid extension but only some of its features require paid registration, most of them (including the Export to Excel one) are free to use indefinitely.
Answer: These tools (which work in 10/10.1) convert to Excel.
Download from ArcGIS.com


Replace the system font family on Nokia

Question: Is possible to replace the system font (Roboto) to San Fransisco font without rooting my Nokia 6.1+?
for example:
Roboto-Regular.ttf to SF-Regular.ttf
Roboto-Bold.ttf to SF-Bold.ttf
Roboto-Heavy.ttf to SF-Heavy.ttf
and so on...
I have done it successfully on rooted devices
Answer: You will naturally need root to replace a system font. Because without root, you cannot write to the partitions where the fonts are stored and loaded from.
So, in order to answer your question - No, it is not possible.
That said, we do hear that Android Q will have support for font changes. If the feature makes its way to the final Q builds, you will be able to do font modifications when it hits your device in the coming months.
Comment: Btw, is it replace the Font Family or just a single font style?

Replace the system font family on Nokia


Create a Google Maps route of a specific distance

Question: I'm wondering if there is a method using Google Maps API that will create a route of a specified distance.  An example would be if I wanted to walk 2 miles starting at my house and returning to my house.  The desired result set would would include route options within a certain tolerance (slightly greater than or less than 2 miles).
Answer: There are no methods in the Google Maps API for doing what you suggest. The Directions API (https://developers.google.com/maps/documentation/directions/) requires that you specify a start and destination address. It's A-to-B rather than A-to-anywhere-within-x-distance.
To do something like what you're suggesting, you would probably need to write your own algorithm to do it, based off of some open mapping data such as Open Street Map (http://www.openstreetmap.org/)


2014 VW Touran 1.6TDI 1T3 UK Windscreen Washer Motor Fuse

Question: I'm trying to find the fuse for my windscreen washer pump motor on my right-hand-drive, but the manual states that the fuse schedule is not available at time of print.  The Haynes manual shows only the fuses for the left-hand-drive, and neither the mirror image or the number map.
Answer: A quick search for "2014 VW Touran fuse location" provided a rather comprehensive link. All photos from linked site:
There's a photo of the fuse box under the left side of the dash:

A diagram of the fuse numbering:

and a listing indicating that a fifteen amp fuse belongs in location F32 for the windscreen washers.
Yeah, the fuse numbering image is lacking, but I'd expect to see something on the cover to be a bit easier to read.
Comment: Thanks, but according to that site, it would be F32 or F53, but both those number are blanks on my car.
Answer: On closer inspection of the Haynes manual, when I found the correct table for my vehicle year, although the fuse layout is paritally mirroed on my UK car, going by the numbers, it's a 20A fuse at F29.
Comment: The washer pump may be wired to run from the windshield wiper circuit. If wipers run, find the washer pump and wiring. Examine it for damage and/or corrosion to the electrical connections. Disconnect wiring to the pump and measure it for 12vdc; with ignition ON engine OFF and someone activating the washer pump. If the wipers run in wash mode, see if wipers can be lifted off the windshield and stay upright. Either power is measured on one pin and/or ground is corroded/damaged/missing. The pump should run as it tends to last beyond the life of most vehicles. Either wiring or pump failed.
Comment: I was hoping that the circumstances allowed for mirroring.


Can bitcoin pools set a different difficulty value other than the network difficulty

Question: I would like to know if bitcoin pools can give a different difficulty value other than the network difficulty or is the network difficulty the same for everybody
Comment: at any given time if overall difficulty is at a certain number do pools respect that same difficulty number or can they go below the expected difficulty?
Comment: I have reworded my question, I do hope for some feed back
Answer: First of all, please be careful with using the terminology "network difficulty." Network difficulty is the difficulty at which a hash is accepted by the network (as opposed to the pool). Technically speaking, if d is the network difficulty, then your probability of finding a valid hash is 1/(d*2^32). If your question is interpreted literally, then the answer is trivially yes, since no pool would do such a thing. If everyone submits shares at the network difficulty, then the only share submitted is the one that solves the block, which means that the block finder gets the entire block reward, negating the reason people use pools (to reduce variance).
I guessing you're actually asking the following: Can mining pools give everyone a different difficulty?
The answer is yes. Basically, I might be mining at a difficulty of 16, and you could be mining at a difficulty of 32. If we have the same hashrate, then I would be finding shares twice as often as you, but your shares are worth twice as much. In the end, it all evens out. Mining at a lower difficulty reduces variance, but for miners with a large hashrate, their variance is already low enough that they can afford to mine at a higher difficulty, and they generally do so to reduce the stratum load (since they must communicate with the pool every time they submit a share).
There are several ways a pool could implement different difficulties. One is to have a setting on the pool website that you can adjust on your workers page. Another is to have multiple strata, each with a different difficulty. Yet another (which could be used in combination with the previous technique) is called vardiff, where the pool adjusts the difficulty to an optimal level in response to its estimate of your hashrate. Note that adjustment of share difficulty must be done at the pool level; there is no way to tell cgminer to choose a certain difficulty. (Even if you could, trying to submit a share at a difficulty lower than the pool wants will end up getting rejected, and only submitting those shares at a difficulty higher than the pool specifies will not get any bonus points for the extra difficulty.)


How do you remove N/A from radio button groups?

Question: I have added a radio button to my content type and I have found that N/A was automatically put in as a selection.  How do I get rid of this?
Comment: I guess make it a required field.
Comment: ... that seams to work.  wow.  That seems too easy, yet obscure.  Did I miss a note or something?
Comment: Good to hear! that you got it workout.
Answer: If you make a list field mandatory, the N/A option automatically goes away
Also, if you allow multiple values, the radio dot elements automatically becomes checkboxes.
Answer: I strive to reduce complexity in the systems I build.  Following is a CSS only solution.  Replace the example field machine names with yours.
<code>#edit-field-history-of-prematurity-und > div:nth-child(1),
#edit-field-diagnosed-und > option:nth-child(1),
#edit-field-history-of-hypoxia-und > div:nth-child(1),
#edit-field-ekg-und > div:nth-child(1) {
    display: none;
}
</code>


Could electromagnetic forces theoretically move any type of particle?

Question: I know electromagnetic forces (not specific on the source) can affect matter particles of various types, but can they exert effective force on any type of matter particle? For example, say they came out with a type of device that could emit and direct a strong electromagnetic force to varying degrees. Could they hypothetically use it to move objects that aren't exactly conductive?
Comment: It depends on how strong your "any" is when you say "_any_ type of matter particle". Neutrinos might be matter particles (we don't know exactly whether they have zero or nonzero mass), and they most certainly won't be affected by electro-magnetism.
Answer: Electromagnetic forces only act on particles with electric charge. In the standard model these are

Quarks
Charged leptons (electrons, muons, tauons)
W bosons

and their associated antiparticles. Some combinations of quarks, like neutrons, have an overall electric charge of zero. However, because they still have a magnetic moment they can experience a force in a magnetic field.
Particles in the standard model that do not carry electric charge are:

Neutrinos
The photon and Z boson
Gluons
The Higgs boson

Dark matter, as far as we are aware, is also unaffected by electromagnetic fields.
Comment: I think your answer is what I'm looking for. To give some context on the conversation that sparked this question, a guy and I at work were discussing the possibility of weapons of the distant future, most specifically a device that could make objects move from a distance with precision. We then started talking about the forces of nature that the weapon would have to use. Nuclear (weak and strong) were of topic, but then the topic of electromagnetism came up, and with neither of us being adept in physics, we didn't really know what it could affect.
Answer: Yes, this has been done for a variety of objects including small frogs:
https://www.ru.nl/hfml/research/levitation/diamagnetic-levitation/
Comment: Could this work for even less conductive entities that exist in our world?
Comment: Less than what? A frog? A tomato? Everything is made up of a combination of positive and negatively charged particles. I can't say to what degree of "less" you are trying to specify, or if that for some items it may or may not take more energy than our universe has to offer. The paper outlines that the magnetic force on the object must overcome gravity, so mass is also a factor. But given enough energy, this should theoretically be possible for anything. Tis the nature of electrons.
Comment: If you read the section titled "Why does the frog fly", it does a very good job of explaining why this is possible.
Comment: I don't think this answers the question — providing one example of something experiencing a force in an EM field doesn't show that any type of particle can be moved by one.
Comment: My comment wasn't what "answered the question", it was the paper referenced.


Barcode generation in sharepoint

Question: I'm using the sharepoint bar code generation feature and I was wondering if someone knows which field does it uses to generate the bar code pattern/image, or does it generates that "unique string" on execution time?
Thanks
Answer: Take a look at the BarcodeGenerator Class members. There is a GetBarcodeImage and GetBarcodeValueAndImage. According to the class documentation: "This member is reserved for internal use and is not intended to be used directly from your code." You can call the BarcodeGenerator constructor to create a new instance. Other than that, the majority of the members and properties of the BarcodeGenerator class are reserved for internal use and not for direct use in your code.
There is a ECM starter kit, that has a sample barcode generator. This is MOSS 2007 version. But, it might give you some insight into how the barcode is generated.
This tutorial will help you as well.
The barcode feature has been removed in SP 2013 (beta 2) and most likely in the final release. If you plan to implement this feature in SP 2010, be warned that once you upgrade to SP 2013 your feature using barcode will not work. The reason this feature was dropped in SP 2013 is because of low adoption. For a list of features discontinued in SP 2013, see: this page.
Comment: "Insert Barcode command is no longer available on the ribbon. The functionality of requiring SharePoint generated barcodes to be embedded in a Microsoft Word document has been discontinued."

Workaround:

"Write a custom Open XML application that takes the server side barcode and injects into the Word document."

According to this the barcode information policy will still work, but the barcode insertion into office documents won't work.

Thats ok since I have a custom office template - fields combine functionality (and I think I can insert the image on the office template combination).
Comment: Then you are fine. Use the BarcodeGenerator class.
Comment: Still I was wondering if you (or anybody else) knows how the out string used for the barcode generation is built/generated. I have a custom Document Id provider functionality working and it keeps giving me random strings (the barcode, not the doc id generator, that works awesomely fine!) and I need the barcode to be generated according to my custom doc id, not that random string. Anyways I think the only workaround is to write another custom provider for the barcode generation

Barcode generation in sharepoint


Should I put database and CMS files on a separate EBS or S3?

Question: Is is possible, or even advisable to use and EBS instance that remains at Instance Termination, to store database/website files, and reattach to a new Amazon instance in case of failure? OR should I backup a volume-bundle to S3? Also, I need an application to accelerate terminal window functions intelligently.  Can you tell I'm a linux NOob?
Comment: Please clarify your question, it's very difficult to read. What you're trying to do?
Answer: We do this with our Nexus installation - the data is stored on a separate EBS instance that's regularly snapshotted but the root disk isn't (since we can use Puppet to create a working Nexus instance using the latest base AMI, Java, Tomcat and Nexus versions). The one drawback of this approach (vs your other approach of backing up to S3) is that you can't retrieve it outside of AWS if needed - if that is an important use case I'd recommend either uploading a volume bundle or a .tar.gz backup to S3.
However, in your case if you have a single EBS-backed EC2 instance which is your CMS server you could run it with a large root volume and keep that regularly backed up (either using EBS Snapshots or backing up a .tar.gz to S3) - if you're not particularly familiar with Linux that'll likely be the easiest way to make sure all your data is backed up (and if you need to extract the data only you can always do this by attaching that volume (or an instantiation of a snapshot of it) to another machine - you'd also have access to all the config files which may be of use...
Bear in mind that if you only want to run your server some of the time you can always Stop the instance rather than Terminate it - the EBS Instances will remain. Once you take a snapshot your data is safe - if part of an EBS Instance fails but it hasn't been modified since the last snapshot then AWS will transparently restore it with the EBS Snapshot data.


How do I evade the stream of bullets from a Kerberonyx

Question: I'm having a bit of a hard time with one particular enemy type, I'm pretty sure it's the Kerberonyx. Big, orange and spews a long stream of red bullets.
I find evading their attacks to be particularly difficult. Dashing through it doesn't seem to work reliably, the stream of bullets lasts long enough that it'll usually hit me after dashing while the dash is still on cooldown. Just sprinting sideways also isn't fast enough when they sweep with their attack. The only thing that works somewhat for me is hiding behind pillars, but that isn't always possible.
Any tips on how to deal with this enemy type?
Answer: I didn't find a way to dodge these except hiding behind something. But simply rushing them and using melee attacks does work well against them. The melee attack stuns them for a bit, so this is reasonably safe unless there are too many other attackers close. This of course requires that you have unlocked the melee attack.


Probability density in Quantum mechanics and mass of particle

Question: Is there any relationship between the probability density in QM given by \begin{equation}
 P\left(t\right) = \int\limits_{V} \psi^{*}(\mathbf{x},t)\psi(\mathbf{x},t)\mathrm{d}^{3}\mathbf{x}
\end{equation}
and the mass $m$ of the particle?  $\psi\left(\mathbf{x},t\right)$ is the wave function of the particle.
Comment: Be **very** careful when using $r$ as variable: if you integrate over the radius (and not $x,y,z$) then you must have the Jacobian of the transformation in the integral $r^2 dr$.
Answer: In general, no. However if you assume particular dynamics/Hamiltonian (e.g. a free particle), then you can just solve for the eigenfunctions directly and get a formula that involves your boundary condition and the mass.
Also, if you integrate this quantity over all of space, it must be one by normalization.
Answer: Your integral is not the probability density. Depending on the limits of the volume, it is the probability of the particle being in that volume. If you integrate over all space, $P(t)=1$. If you integrate over some other volume, $P(t)\le 1$.
The probability density is $\psi ^*(\vec{r},t),\psi (\vec{r},t)d^3 r$, the integrand of that integral. Because $\psi(\vec{r},t)$ for a particular potential may depend on the particle mass, the probability density may, too, although probably in some non-linear way.
Consider the one-dimensional infinite square well of width $a$ bounded at $x=0$ and $x=a$. The time-dependent eigenfunctions are
$$\psi_n(x,t)=\sqrt{\frac{2}{a}}\sin\left(\frac{n\pi x}{a}\right)e^{(-iE_n t/\hbar)}$$
where $$E_n=\frac{n^2\pi^2\hbar^2}{2ma^2},$$ and $n$ is some positive integer.
If the particle is in a pure eigenstate, then the probability density will be independent of the mass. If the particle is in a mixed state,
$$\psi(x,t)=\sum_{n=1}^{\infty} C_n\psi_n(x,t)$$ $$ \sum |C_n|^2=1$$ the probability density will have the mass in the product of the exponentials. If the boundaries of the integral are not $0\to a$, then the mass will appear in the probability calculation, otherwise it vanishes.
For the quantum harmonic oscillator, the mass of the particle appears in several terms of $\psi$, including the normalization constant (to the 1/4 power), so the mass will affect the probability density in a complicated, nonlinear fashion.


"So much of X" or "So much X"

Question: When I was speaking, I said, "There is so much of administration to do." Someone said to me that I have to say it as "There is so much administration to do." Is she correct? Why can't I say, "so much of". I've always been saying that and so do many people.
Comment: We generally use *of* after **so much**, if the noun phrase comes after **so much** have a determiner (e.g. *a, an, the*) or pronoun (e.g. *my*) before the head. Example - **so much *of* a work**. When there is no determiner or pronoun, we need not use *of*.
Comment: @Araucaria thanks for clarifying. I was just thinking what was wrong with *much of an administration*, but according to the grammar it is correct :)
Comment: @Man_From_India you mean *so much of an administration* is correct?
Comment: @MaulikV I think so...
Comment: @Man_From_India, Maulik It is grammatically correct, but quite unusual. However, we could have the sentence: ***It's not so much of an administration as a government in waiting***. The reason that *an administration* wouldn't work in the OP's question is because they are using the non-countable sense of the word *administration*, and this usage cannot take an indefinite article (we only use an indefinitie article with singular countable nouns) :-)
Answer: Determiners are words like: a, the, this, that, my, your, no, one, two, many, much.
If a noun already has a determiner, we can't also use the determiners much or many with that noun:

*much the work, *much our water, *much which water (ungrammatical)
*many the people, *many my friends, *many these people (ungrammatical)

We also cannot use much or many with pronouns:

*many them,*many us, *much it (ungrammatical)

When we want to use much or many with these phrases, we need to use a preposition phrase with the preposition of:

much of the work, much of our water, much of that paper
many of the people, many of my friends, many of these animals
many of them, many of us, much of it

If the noun doesn't already have a determiner, we do not need to use the preposition of when we use the determiners much or many:

much time, much water, much effort, much paper
many people, many friends, many animals

The Original Poster's example
In the Original Poster's example they use the uncountable noun administration without another determiner apart from much. Because of this the OP doesn't need to use the preposition of:

There is so much administration to do.
*There is so much of administration to do. (ungrammatical)

However, if they wanted to use another determiner with the noun administration, then they would have to use much of. Here are some examples with the determiner this:

*There is so much this administration to do. (ungrammatical)
There is so much of this administration to do.

Hope this is helpful!
Answer: The only two examples I can think of when it's correct to say 'so much of' instead of 'so much' is either when you're specifying who the paperwork (or administration in your example) belongs to:

There is so much paperwork to do
There is so much of his paperwork to do
There is so much of my paperwork to do
There is so much of their paperwork to do

Or the term 'so much' isn't immediately followed by the thing you're talking about:

Look at all this paperwork I have, I have so much of it!

"So much of X" or "So much X"


Good GUI for R suitable for a beginner wanting to learn  programming in R?

Question: Is there any GUI for R that makes it easier for a beginner to start learning and programming in that language?
Comment: I use Emacs + ESS so I guess I would not be of much help here. However, for your information, there will be a [special issue](http://www.jstatsoft.org/misc/CFP-JSS_SV-GUIs_in_R.pdf) on R GUIs (expected for mid 2011).
Comment: While a frequently asked question, note that the scripting is an essential part of R's "flavor". If you prefer GUIs, R is not the way to go.
Comment: @JohnRos: I couldn't disagree more. I spend most of my working time in R, and I can't stand not having a GUI - just look at a feature list of any GUI to know what you are missing out on.
Comment: List available [here](http://sciviews.org/_rgui/).
Comment: Is there a semantic confusion happening here? I understood the OP to be asking for an Integrated Development Environment.
Comment: Using GUI to learn programming language is a contradiction because if you have GUI you do not need to know the language... (I am not talking about IDE)
Answer: You can also try the brand-new RStudio.  Reasonably full-featured IDE with easy set-up.  I played with it yesterday and it seems nice.
Update
I now like RStudio even more.  They actively implement feature requests, and it shows in the little things getting better and better.  It also includes Git support (including remote syncing so Github integration is seamless).
A bunch of big names just joined so hopefully things will continue getting even better.
Update again
And indeed things have only gotten better, in rapid fashion.  Package build-check cycles are now point-and-click, and the little stuff continues to improve as well. It now comes with an integrated debugging environment, too.
Comment: After a couple of revs, it will be the best thing going. Its first beta release is already eminently usable and beats most other options IMO.
Comment: I recomend RStudio... Yes, it's not a GUI. Yes, it's more like an IDE... but after all, is a nice piece of software to use. Interactive console, script editor, plots, and all the features you need to work efficiently with R. Considering that R is just a CLI, RStudio is a nice way to simplify your work
Comment: I liked it too. It is for more advanced users that basically just need a better shell that RGui. Emacs+ESS yet has much more features but not everybody likes Emacs. RStudio seems to be simple but very effective at what it wants to do. I look forward to see how it evolves over time.
Comment: I deeply love RStudio. It is very easy to set up and run and handles Sweave and Tex files. I will probably switch to Emacs one day but for a beginner who wants to write code RStudio is definitely the way to go.
Comment: @EpiGrad One of the advantage of RStudio (from what I've seen as I am more versed into Emacs/ESS or the console) is that it doesn't break the interactive R workflow: R is a *statistical programming language*; no GUI will ever offer that flexibility.
Comment: @nico: it has autocompletion and much more (autocompletion of function's arguments)
Comment: @RockScience: I didn't even remember writing that comment! I don't know if I was using an old version or what... anyway I agree, it definitely has autocompletion and much more now. The only minor thing is that for the autocomplete to work you'll have to run the code at least once, which sometimes is a bit annoying.
Comment: They added brace matching and some other things in the [new release](http://blog.rstudio.org/2011/06/14/rstudio-beta-3-v0-94/).  Now it's pretty perfect.
Comment: I've been playing with R-Studio today, as I had some data to analyze. It's very nice and easy to use. I only wish it had autocomplete for variable names.
Comment: I like RStudio but in using it I've found that the release quality is particularly uneven.  I also miss the spell checking ability I had in my Eclipse IDE, so I went back to it.  Moreover, it isn't particularly "beginner" friendly I wouldn't say.  It definitely is an IDE, not a GUI like SPSS or Rcmdr has by any means.
Comment: RStudio to me exists in a weird place. It's not a GUI, so I can't turn my brain off and just point and click, but as an IDE it's...less than stellar. I head over to something like Komodo and wish I could use it for R.
Comment: @chl Indeed. I confess I consider RStudio to be more of an IDE than a GUI, but yes, if one must use a GUI setup, it's probably the one I'd prefer to use to preserve R's benefits. IF I wanted point and click, I'd use JMP.
Answer: I would second @Shane's recommendation for Deducer, and would also recommend the R Commander by John Fox.  The CRAN package is here.  It's called the R "Commander" because it returns the R commands associated with the point-and-click menu selections, which can be saved and run later from the command prompt.
In this way, if you don't know how to do something then you can find it in the menus and get an immediate response for the proper way to do something with R code. It looks like Deducer operates similarly, though I haven't played with Deducer for a while.
The base R Commander is designed for beginner-minded tasks, but there are plugins available for some more sophisticated analyses (Deducer has plugins, too). Bear in mind, however, that no GUI can do everything, and at some point the user will need to wean him/herself from pointing-and-clicking.  Some people (myself included) think that is a good thing.
Comment: +1 for Rcmdr. It's nice for when one is just learning R, and offers more of a gateway to a good statistics package than SPSS or Minitab, but the code it writes is needlessly verbose, often. A scatterplot produced in Rcmdr: scatterplot(tab~pct, reg.line=FALSE, smooth=FALSE, spread=FALSE,
  boxplots=FALSE, span=0.5, data=senate.race), when most of those parameters were defaults to begin with. It writes some very wordy code.
Comment: This is true. Another advantage to this is allowing beginners to see what parameters a function takes without using the ? command. Using FALSE instead of F is a great point. I once saw a program give an incorrect output because the programmer had earlier set the result of an ANOVA to a variable called "F".
Comment: I don't know if something has changed, but last time I checked Rcmdr didn't run out of the box on the Mac (some limitation with installing the Tcl/Tk libraries).  As such, though I like it, I've avoid suggesting it for new users.  Did this change?
Comment: @Christopher I agree with you; sometimes the code is wordy.  It comes from Tcl/Tk and how Rcmdr is currently written: it would take a substantial rewrite to put in checks for whether the default is selected (and return an abbrev. version in that case).  But, yes, it would be an improvement.  A redeeming feature is that it's *good* code, in that it encourages good practice (FALSE instead of F, etc.).  This is important for beginners.
Comment: @drknexus As far as I know, you are exactly right: Rcmdr takes additional work for Mac (because of Tcl/Tk).  The audience I serve almost entirely use Windows (sigh!), so I ask the one or two people per semester with Macs to see me if they have trouble which hasn't been much of a problem.  But, yes, you are right.
Answer: This has been answered several times on StackOverflow.  The top selections on there seem to consistently be Eclipse with StatET or Emacs with ESS.
I wouldn't say that there are any good gui's to make it easier to learn the language.  The closest thing would be deducer from Ian Fellows.  But there are plenty of other resources (books, papers, blogs, packages, etc.) available for learning.
Comment: Well done! The purpose of a GUI is not to learn the language, but to make learning the language unnecessary. (edit:) I didn't know that some GUI's had the features described by G. Kay Kerns. I suppose that would help you in the early stages of learning the language.
Answer: I think that the command line is the best interface, and especially for the beginners. The sooner you'll start with console, the sooner you'll find out that this is the fastest, the most comfortable and what's most important the only fully non-limiting way of using R.
Comment: Honestly, I don't agree. Scripting is much more powerful.
Comment: It is important to stress to new users that they should almost always use a script window and `ctrl-R` rather the direct command line, both for when things do not work and need to be changed, and for when they do work and are worth saving for later use.
Comment: The main thing I find annoying about the standard Windows RGui is the lack of a feature to show matching brackets. I tend to waste a non-negligible amount of time trying to find missing or extra brackets, and this one thing has motivated me to start looking for another interface to use.
Comment: @drknexus People are afraid of command line almost only because they have been grown in sugar GUI world. If you take this prior out, I can bet that the command line is even easier to learn -- GUIs are just full of unclear options and steps, are usually buggy (testing such interface is a nightmare and is never done 100% well) and tend to introduce "magic" automation which is more an enemy than a friend. Go and ask any GUI user about her/his experience and you will hear a bible of a small cargo cult -- it is never the case when using a console app.
Comment: @drknexus Forcing users to think about it too much, rather than just "run their test" might very well be considered a feature, not a bug. My experience suggests that a language that forces the user to explicitly lay out what they want to do tends to result in greater understanding.
Comment: When will R come with multi-touch capabilities?
Comment: +1 I agree completely.  Either command line or standard windows gui.  Learn the language, and leave all the bells and whistles for later.
Comment: @fRed Scripting in included in my operational definition of command line interface (-;
Comment: I think the main thing R-evangelists forget is that most people do not feel comfortable with the command line, nor are the likely to.  They want to run a their test and they don't want to think about it too much.  Those users do not have patience for a learning curve.  Rcmdr (like SPSS's paste-syntax) is a reasonable sort of 'starting point' for many users.  Hide the console until they seek it... then make it as easy to learn as possible.
Comment: @Henry I'm not sure I agree. I tend to bounce frequently back and forth between the script window and the command line. I find the ability to tinker, test, and otherwise do some iterative experimentation, then incorporate what I like into a main script, to be just as productive a workflow.
Comment: mbq and @EpiGrad: Let me first say that while I am disposed (at least in some ways) to agree with you it doesn't change the ground level reality of getting new users into R.  GUIs exist and persist because they frequently provide the interface the user needs.  Command lines continue to exist because any all inclusive GUI would be a nightmare to use.
Comment: Moreover, sadly, for many users of statistics... statistics are magic. Wishing that people wouldn't approach statistics that way isn't going to change things one iota.  However, there is an argument to make about the advantages of teaching R and statistics (generally) using the console.  Regardless, those looking for a GUI or something "easier" can not be easily mollified by pointing them back to a command line they find daunting.
Comment: Stepping back from the statement that GUIs provide "the interface the user needs", one can at least say that by and large they provide the interface the user thinks they need.  I'd argue that this isn't a by-product of being raised in a sugar GUI world.  I think the inverse argument is far more likely.  Personal computing is a prevalent tool because users are shielded from the harsh console light.  Ask yourself this... what is the earliest age at which someone might be able to use any GUI effectively?  The earliest age at which some might be able to use a console with the same effectiveness?
Answer: At least on linux, RKWard offers the best functionality. The new RStudio appears quite promising as well.
Comment: Seconded. RKward is excellent, as it presents a reasonably clean, functional interface, with most of the basic functionality users will need (it's young, more will come later, I'm sure), **with** code. Everything that you request R to do through the UI is presented in code form just below, so you can actually see what's going on behind the scenes. It also has a command line console, which means you can jump straight in and tinker. The dataframe editing interface makes it nice and easy to do all those annoying manual manipulations of data that are a pain on the command line.
Answer: Personally ESS, but as stated above i have found Rcmdr very easy to use.
Answer: I used Rattle to both learn how to use R and for quick and dirty data mining tasks.
Answer: GUI  != Programming
Asking which GUI will help you learn programming is like asking which grocery store will help you learn how to hunt for your own food.  Using a GUI is not a way to learn programming.
The power of R is that it's not GUI driven, it uses scripts which fundamentally allow for more more reproducible results.
GUIs to demonstrate specific topics / Brief backpedaling
That having been said, I do think it's useful to use a GUI to demonstrate a single specific topic.

The latticist package is awesome for creating lattice graphs and learning lattice syntax.
The PBSmodelling package has some wonderful examples of GUIs that allow you to run specific models, such as MCMV models.
The TeachingDemos package is also seems to have some good demos of specific topics.

Roll your own GUI
The PBSmodelling package also has tools that allow you to make your own GUIs.  This includes some amazing tools for project organization and documentation.  Thank you Pacific Biological Station!
Also, by using Rook and Apache you can also make powerful web-based GUI applications.
Making your own GUI is not appropriate for beginners or the direct answer to your question.  However, if you're an advanced user then you might want to consider making a GUI to demonstrate a particular topic.
The installed "R" is a GUI (technically)
It's worth noting that the installed version of R is a shortcut to Rgui.exe.
I know that you're asking for a GUI that let's you access all of the base functionality of R by pointing and clicking, not a glorified wrapper for the command line.
However, it's important to realize that a GUI wrapper for the command line is a GUI, and it's a valid answer to your question.  The command line is the only way that you can get access to the rapidly evolving functionality of the power of R and the freshly packages authored daily.
So...
Again, the best GUI is R Studio
The best interface for R is definitely R Studio.
For some people the StatET / Eclipse interface is important for it's powerful features, but R Studio is rapidly overtaking those features and adding new ones.
Revolution R (the commercial version) also has a GUI, but it's not so great unless you are deeply passionate about the design of MS Visual Studio.  However, you can access Revolution's build of R though R Studio or Eclipse, so that's a pretty neat trick too.
Answer: I used JGR for a short while, until it became apparent it would quickly consume all the memory on my system. I have not used it since, and recommend you do not use it.
Answer: I recommend Tinn-R (Which is the acronym for Tinn is not Notepad)
Comment: I tried TinnR and didn't like it much, it seemed unpolished and clumsy.
Comment: True, I actually changed to Eclipse with Statet. Much better.
Comment: Tinn-R has been buggy for a long time.  I recommend against using it.
Answer: Despite all of the good recommendations, I've not found anything radically better than the default Mac GUI. R-Studio shows promise, but it's not currently that much more customizable or featureful than R and, say, BBEdit to edit.
Comment: +1. I usually bounce between the default R GUI and TextWrangler in OS X.
Answer: I would recommend having a look at AirXcell. It's an online (Web 2.0) calculation software based on R which provides a quite usable R GUI with a command line interface (The R console) a code editor, and various other things (data frame editor, etc.), all online from within the web browser.
See Use AirXcell as an online R console.
Answer: Having worked with the

(Base) R
RStudio
Revolution R Enterprise

in Windows environment, I strongly suggest "Revolution R Enterprise".
I accept that its installing takes little longer (it is 600-700MB) if compared with BaseR and RStudio, but anyway, the Object Browser of Revo R, the easiness of package installation procedure, management of variables, etc. etc. there are many things that - according to me - makes Revo R the best one (acc. to  me).
That said, Revo R being purchased by Microsoft is - to me- one of its drawbacks since MS is eventually profit-oriented firm and may change its free nature sooner or later.
Answer: Quadstat is a free browser-based front-end to R and also an open-source statistical web application framework. After submitting a computing query, the user is presented with output from the request and also the R commands used. Prior to submission, the R help file is clearly displayed so that the user may understand some of the internals of R. I am the project maintainer and hope you find the software useful.
https://quadstat.com
https://www.drupal.org/project/quadstat
Answer: If you don't want to code R, but want graphical user interface like SPSS, there is a new cloud based software, Number Analytics (). It is based on cloud so you don't need to install the program. It is freemium model starting free. It is for beginners who don't have much knowledge about statistics. The biggest selling point is that it does interpret the statistical results. Color table, and built-in graphs also helps.
Comment: I believe you may be collecting downvotes because there is a strong suspicion you are connected with this company and have not disclosed that.  Please see http://stats.stackexchange.com/help/promotion.  People also are wondering exactly how this post responds to the question: is this software an `R` GUI? The hype on that web page doesn't look like that at all.


How to control sexual desires? (need motivation)

Question: As salam alaikum
PLZ HELP AND PRAY 4 ME
How to control sexual desires if aiming for the highest Heaven (jannat e firdous), made an oath to Allah to never repeat it and a teenager therefore unable to marry or fast due to worldy and educational obligations?
Jazakallah
Allah Alam
Answer: Marriage is the best avenue for those with high sexual desire as our prophet(sallallahu alayhi wa sallam) recommended this(below hadith)
Prophet (peace and blessings of Allaah be upon him) when he said: "O young men, whoever among you can afford to, let him get married, for it is more effective in lowering the gaze and in guarding one's chastity. Whoever cannot afford it, then let him fast, for it will be a shield for him."
Lowering your gaze not just when you see opposite genders face to face but also when you watch movies and pictures in magazine.
And tell the believing women to lower their gaze (from looking at forbidden things), and protect their private parts (from illegal sexual acts)"
[al-Noor 24:31]
Stop thinking and daydreaming about opposite genders and sexual nature.  Keep yourself busy with halal activities so you have less time to waste for sexual desire.  Be patience and ask Allah Most Great for help.
And Allah Knows Best.
Answer: You should fast as many days possible to lower your sexual desires until you can get married.
Answer: I second the fast.
You need to weaken your body in order to weaken the desires.
I don't know if it's allowed or effective, but I heard about chaste-berry? (vitex).
Nowadays it's mainly about regulating women hormones, but in old times monks were using it to tame their urges.
Answer: There is type of foods that reduces the sexual desires and other types increases it. Fill your time with useful things, read books, go to the gym, do push ups. Something that helped me while I was a teenager is the statement " who ever leave for Allah sake Allah will reward him/her with something better" من ترك شيئا لله عوضه الله خيرا منه
And the reward is bigger when you leave a stronger desire for Allah sake!
Think about that if you have someone who is very dear to you ( someone you love too much ) and asked you to do/ donot something I believe you will listen to him/her right? Then how about the one who gave you all good things in your life the one who creates you.
May Allah helps you and guide you
Answer: Repeat YA-KHABIR  it is the name of Allah, if someone is a victim of selfish desire or bad habits andhe/she want to get rid of bad habits then ones must repeat this beautiful name of Allah AL-KHABIR which means THE AWARE!


WordPress not refreshing nonce token on the server

Question: I have a form in my plugin similar to this:

<form>
   <?php wp_nonce_field('my_form','_my_token'); ?>

</form>

it generates those two fields:
<input type="hidden" id="_my_token" name="_my_token" value="abcdefghij" />
<input type="hidden" name="_wp_http_referer" value="/wp-admin/tools.php?page=my-plugin%2Fplugin.php" />

When I submit this form, I validate it like this:
//Server's side check
if(!wp_verify_nonce($_POST['_my_token'],'my_form')){
   echo 'Invalid token! Expected token: '. wp_create_nonce( 'my_form');
   exit;
}

The problem is that on the server, token never changes, it's always the same, and validation always fails in this step. If I log out from WordPress and then log in again, on the client token has changed, but on the server it's the same.
I've tested this locally and when I log in again it always changes token on both sides, but on my production environment it only changes on the client side.
It looks like it's cached somehow, but not sure what exactly could be. I've used WP Super Cache plugin, but it's now disabled and this issue persisted. I have multisite feature enabled on my production site, but I don't believe that's related to it. Any ideas?
Comment: Have you tried physically deleting the cache?
Comment: I've checked, there's no cache folder under wp-content, after clearing cache from the WP SC plugin. I've removed it eventually and nothing has changed.
Comment: Another idea - maybe your nonce worked and it's in your DB now. And because it's there and you keep trying to send the same one, it rejects the request. Try looking at your DB in a text editor, delete the nonce manually and push that DB up to prod sans cache.
Comment: I believe that as you stated, that is a cache issue. maybe you got cache on your DNS? something like a CDN that would affect only when accessing your site via the domain. That would make sense since it doesn't happen locally.
Answer: What is the time frame on which you are expecting your nonce to change?
On successive refreshes with no other changes the nonce may be identical between page loads. Basically, if you sit there and hit F5 you're going to get the same nonce.
This is by design. Idempotent creation of nonces within a short time frame is required in order to use them for validation.
Once again, basically, if this didn't work this way you'd never be able to verify your nonce. When you created it, the value would be one thing and when you went to re-create it to verify it the value would be another. Validation would always fail.
wp_verify_nonce() may accept a nonce (all else equal) for up to 24 hours (see the WP Codex page). You may need to wait a longer time than that to receive a different nonce.
Other system events that can occur can cause a new nonce to be generated. I have never needed to do this myself but it appears that you may use wp_nonce_tick() to jog this process.
It is possible that either or both wp_create_nonce() (used directly by wp_nonce_field()) and wp_verify_nonce() may have been re-written by some plugin as they are both defined in pluggable.php and intended to be available for override. A well-written WP-aware CDN or other cache solution may do exactly that to persist sessions. I do not know if Super Cache does this or not.
Alternately, and if your system configuration doesn't do so already, you may choose to rewrite those functions yourself. This would be security code and be careful writing security code: the greatest saving grace of open source security code is that it is peer-reviewed and your (new) code will not likely be the same.


How to fix "Test suite failed to run" when running a test with jest

Question: I'm learning how to write tests with jest and I'm getting this huge log exit when I run them.
Since it's a tiny code, I see no problem in posting it entirely.
describe('First test', async () => {
  const OLD_ENV = process.env;

  beforeEach(() => {
    jest.resetModules();
    process.env = { MONGO_CLUSTER_URI: <<<hidden for security reasons>>>' };
  })

  afterEach(() => {
    process.env = OLD_ENV;
  })

  test('Should pass', async () => {
    console.log('Testing...');
    const response = await index.handler({ event: 'input' }, { });
    console.log(response);
    expect(response).toBe(true);
  })
})

I don't know if it's supposed get me such a big output, but i think it's not since it looks like it's throwing some kind of error. I'm posting the output below so you guys can help me.
tvrsky@pc:~/lambda-testes-jest/functions/cf_post_processing$ lerna run test --scope cf_post_processing
info cli using local version of lerna
lerna notice cli v3.16.4
lerna info versioning independent
lerna info filter [ 'cf_post_processing' ]
lerna info Executing command in 1 package: "npm run test"
lerna ERR! npm run test exited 1 in 'cf_post_processing'
lerna ERR! npm run test stdout:

> email@example.com test /home/tvrsky/lambda-testes-jest/functions/cf_post_processing
> jest *.test.js

  console.log node_modules/jest-jasmine2/build/jasmine/Env.js:502
      ● Test suite failed to run

        Returning a Promise from "describe" is not supported. Tests must be defined synchronously.
        Returning a value from "describe" will fail the test in a future version of Jest.

          1 | const index = require('./index');
          2 |
        > 3 | describe('First test', async () => {
            | ^
          4 |   const OLD_ENV = process.env;
          5 |
          6 |   beforeEach(() => {

          at addSpecsToSuite (node_modules/jest-jasmine2/build/jasmine/Env.js:504:17)
          at Object.describe (index.test.js:3:1)

  console.log index.test.js:16
    Testing...

  console.log index.js:22
    undefined

  console.log index.test.js:18
    { statusCode: 500,
      body: { message: 'db.collection is not a function' } }

lerna ERR! npm run test stderr:
FAIL ./index.test.js (9.7s)
  First test
    ✕ Should pass (137ms)

  ● First test › Should pass

    expect(received).toBe(expected) // Object.is equality

    Expected: true
    Received: {"body": {"message": "db.collection is not a function"}, "statusCode": 500}

      17 |     const response = await index.handler({ event: 'input' }, { });
      18 |     console.log(response);
    > 19 |     expect(response).toBe(true);
         |                      ^
      20 |   })
      21 | })
      22 |

      at Object.toBe (index.test.js:19:22)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        16.901s
Ran all test suites matching /index.test.js/i.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! email@example.com test: `jest *.test.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the email@example.com test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tvrsky/.npm/_logs/2019-09-18T18_27_53_742Z-debug.log

lerna ERR! npm run test exited 1 in 'cf_post_processing'

Answer: The first line of your test should be
describe('First test', () => {

The error is telling you what the issue is. Basically, describe shouldn't be asynchronous, because multiple describes or tests within them will run concurrently.


How do I fight multiple enemies surrounding me?

Question: When I go up against a group of bad guys, I try and keep them in front of me so I can keep myself guarded with a shield, but if they surround me, I die every time. How do I stop this/combat this?
Comment: You're clearly not doing a good job at keeping them in front of you if they're able to surround you. Frankly you just need to do a better job at avoiding them, and possibly skip them all together. If you're dying that easily to any group of enemies, you clearly do not have strong enough weapons/armor to deal with them.
Comment: Bug out is always an option
Comment: I'm not going to create a whole new answer for just one suggestion, but I'm surprised no one else has mentioned it: use Urbosa's Fury! It does 500 damage to everything in the area of effect - that's enough to kill most low level mobs in one shot. And any monster that isn't instantly killed is paralyzed for a few seconds - plenty of time to walk over and slice them up.
Comment: Where are you usually fighting?  I've always managed to back up against a wall or edge of a cliff.  The cliffs are nice because then you can hit some enemies off the side and not worry about needing to finish them off.  You could also get yourself a [spring-loaded hammer](https://www.youtube.com/watch?v=Jd4eJvsPPZ8)
Comment: I don't have Urbosas Fury yet
Comment: @ChubyPenguin if you get it then that is a great way of fighting multiple enemies surrounding you.
Answer: If you're struggling with groups of enemies then there are a number of options:

Don't be afraid to ignore the combat completely. There are very few encounters that are actually necessary, most can be avoided by sneaking around them or taking an alternative path. Worst case scenario just run straight through them, monsters only tend to follow for a short time, particularly if you can break line of sight.
Pick them off one by one if possible. This can be tricky as many groups will alert other members, so you have to kill them quickly. Bombs and arrows can both do a lot of damage with out actually making enemies aware of your presence. I have killed many enemies by raining bombs down on them from a height (be aware though that even non bow armed enemies have ranged attacks and will throw rocks at you if they do spot you)
Edit: As mentioned by Batophobia in the comments you should also make sure to use the environment to good effect. Puddles of water can be exploited with Lightning Arrows, grass can be set fire to, boulders can be pushed on to enemies and metal objects can be swung around.
SGR's tip is a good one for group combat. Get a good two handed weapon and start charging an attack as the enemies run towards you, if you time it right you should be swinging your weapon around wildly by the time they reach you and you can decimate a group pretty quickly.
Alternatively get a good spear and back away while using the spears reach to take out the closest enemies until the group has been thinned a little.
Always watch out for archers. Two or more archers plus some melee enemies can cause you a lot of trouble. If you can sneak in and kill any archers first (or make a beeline for them and take them out first) this can really improve your chances.
Do some more Shrines and get some more heart containers. Try and find some better weapons or improve your armour. I struggled a bit with combat at first but with better armour and weapons and a little practice I rarely get in trouble at all.
Make use of cooking to create food and elixirs. You can always eat from the menu, so if you are reduced to low health you can eat to heal yourself (as long as you have prepared items, some raw foods heal but not as much as cooked foods). You can also cook food to provide many different bonuses, like extra attack or defence. As Batophobia mentioned in the comments a bonus hearts meal is particularly useful because it also fully heals you.
Comment: Conserve arrows; kill archers first.
Comment: Addition to point 2: The environment can also be used in many cases.  Throw magnetic items at them, roll boulders onto them, etc.  Also, if you upgrade your stasis, remember that you can freeze an enemy with it.
Comment: +1 I like to cook a hearty radish, which is a full heal plus one heart. Toting around a handful of +1 bonus heart items beats carrying around dishes that just restore "some" hearts. A 15 heart dish is wickedly more expensive than a single hearty radish, plus it's either too much or not enough.
Comment: Addition to 6: Cook items that give additional hearts.  These always come with a "Full Restore", which completely heals you while padding on more hearts.
Comment: Upgrading your armor at a fairy fountain can vastly reduce damage.  Each increase of 2 defense points is equivalent to reducing half a heart of incoming damage.  For a full set of armor, that's a heart and a half per upgrade which can make a big difference in the long run.
Comment: Cooking triple armor foods helps survivability immensely against all but the heftiest hitters. Armoranth regularly spawns at one of the fairy fountains and with an ironshroom or two it's easy to make lots of armor food.
Answer: One last ditch method, provided you can buy enough time to pull it off, is to use the special attack of a Two-handed weapon (not a spear).
Simply hold down the attack button while having a two handed weapon equipped and Link will start spinning. Two handed weapons have a greater chance of knocking an enemy back or otherwise stunning them, and the special attack causes you to attack all 360 degrees around you. This should hopefully knock down a couple of smaller enemies and stagger bigger ones, allowing you to get away.
Answer: If you encounter a bigger group of bad guys it is usually a good idea to keep them all the time in front of you. You can do so by focussing one and jump backwards until everyone is in front of you. Then you could use a weapon with higher range (like a spear or a two-handed sword) an attack them.
But keep in mind: Are you already prepared for those enemies? Do you have enough hearts? Is your armour high and your weapon strong enough?
It is also a good idea to use a shield. It is also easier if you already unlocked Daruk's Protection. Maybe you should practice the counter-attack?
You could also use some of your bombs. Try to get some distance to the group and throw one. This separates them and knocks them down.
Answer: Having never played the game (sadface) I can't give any specific advice. However, I can give some more general advice on how to deal with a large group of enemies:

"Pulling": Depending on the AI of the enemies, this is a possibility. It also depends on the range of your bow. Essentially, stand outside the range of your enemies aggro range, and shoot at one enemy. This will either do 1 of 3 things:

Optimally, you want them to be attracted (or aggro'd) by the damage, and come at you on their own, so you can deal with them 1-on-1.
They won't react at all. This allows you to simply pelt them with arrows, with no harm to yourself.
It will attract them all. This is, clearly, what you don't want.

"Thin the Herd": If pulling doesn't work, you can instead use other tactics to reduce the overall numbers in the group. Bombs work well for this purpose, if you have them. Any kind of AoE attack, really.
"Hit and Run": If the first two options are off the table, your only real options are to hit them once, then run away. Once they're behind you again, go for another swing, then run away. Rinse and repeat until they're all dead. This is similar to...
"Kiting": This method basically means running away, until you have a single-file of enemies chasing you, giving you a 1-on-1 fight. This does require a lot of moving around, so be prepared.

Once you've found a way to deal with the majority of the group, you can then re-engage them in a more aggressive manner, dealing with them head on.
Comment: @Phil - not _entirely_ true -- bomb arrows do a sizeable amount of AoE damage, and if you use lightning arrows in rain or on water, they damage everything in a radius.
Comment: Well thats not an answer that explains the possibilities in Breath of the Wild. It's very universal an doesn't come up with the 'special' options you have.
Comment: @Phil, I did specify that at the beginning of the answer. And yes, it does rely on the way that the AI react, which I don't know about
Comment: So if there is information in here that is irrelevant, let me know, so I can edit the answer
Comment: There are some mistakes. You should play the game and answer afterwards. In BotW are no 'spells'. The only AoE you can do are the bombs or if you do a Jump Attack. Usually you can't pull single enemies. They alert each other. Hit and run is also hard because you have limited endurance and they will follow you a long way.
Comment: @Phil yeah, I understand answering blind like this has it's issues, but there is still some value in it. And yes, some of these tactics are *difficult*, but that doesn't make them *irrelevant*. I have removed the "Pulling tactic however, since that just doesn't work.
Comment: All these techniques are completely applicable to BotW. The only enemies that distinctly alert eachother are those who are unarmed (and must fetch their weapons from the common "rack) and bow-wielding guards. Sprint buffering makes Hit and Run very viable too, as long as you don't charge-attack. You can even outmaneuver mounted enemies due to the faster change-of-direction speed due to being on foot to Kite those enemies. The only "wrong" part is "spells", but that's very minor.
Answer: Obviously having more health, doing more damage and taking less damage are going to make fights easier. However, that's a long term investment in finding and completing shrines, gathering materials to upgrade armour, etc.
Some approaches I've taken to large groups while playing the game:

Take out the weakest enemies first. The aim is to reduce the size of the group as quickly as possible, so kill the enemies that only need a few hits first, then you can focus on the stronger enemies without worrying about being surrounded. If you're not using the Champion's Tunic to see enemy health, the enemies are colour-coded so you can tell which are the weakest ones (off the top of my head I believe it's brown, blue, black and silver, in ascending order of strength).1
Start the fight from as far away as possible. This generally gives you the most time to take out enemies with your bow before they reach you. You can also throw down bombs ahead of you and detonate those when the group starts to get close to give you even more time.
Use terrain as much as possible. If you're in a location they can't reach then you only have to worry about ranged attacks, which are usually more telegraphed and easier to dodge. This can require a large supply of arrows, though.
Make your hits count. If you're starting from range, aim for the head; hitting enemies in the head with an arrow will do double damage as well as stunning them.
Freeze enemies in place. The upgraded Stasis+ power will allow you to stop time on an enemy, in addition to objects. However, it generally has a very short duration so may not help too much. Freezing enemies with ice arrows has a much longer duration, so you can freeze a group and then pick them off a few at a time (this is one of the tips from the loading screen).
Use stealth. You can obviously avoid the fight entirely in a lot of situations, but if you do want to engage, taking a stealthy approach to begin with can make your life easier. At night, enemies will sleep; you can sneak up on them and benefit from sneak attacks which do vastly increased damage.
Take their weapons away. Enemies will often also leave their weapons and shields lying around, rather than holding them, so you can sneak up and steal them. Knocking an enemy back with a large two-handed weapon or shooting them with a lightning arrow will often cause them to drop whatever they're holding - if you have inventory slots free, grab their weapon(s) so they can't use them against you.

1 There seems to be an element of enemy scaling based on how far through the game you are, so if you're just starting out you may not have encountered many of the higher level enemies yet.
Answer: Some suggestions:

Before you do anything else, always snipe sentries on towers. If you head shot them it's almost always a one hit kill
Can't believe no one has mentioned this but Ice weapons. I've gathered a number of ice weapons so I've adopted a strategy that involves freezing everyone then going after them one at a time, stopping to freeze them again if necessary. This works better with weapons like the frost spear or frost blade than the ice rod honestly, unless you can get everyone tightly packed in front of you. Typically I'll run in, hit everyone one time with the frost weapon, then switch to different weapon and go to town on the enemies one at a time (if it's a really dangerous enemy, you can maximize your freeze time by alternating your hits between your frost weapon and your standard weapon). Of course once you find a blizzard rod this becomes much easier as you can freeze a much larger area at once.
Don't be afraid to use your elixirs and meals. If you use the strategy in #2 I recommend attack up boosts, but otherwise I prefer armor up boosts.
Go after archers first. They can really mess you up if you leave them alone while attacking other enemies. And Mipha help you if they are firing anything but regular arrows.
Use environment to your advantage. If it's raining, take advantage of the bonus to sneaking, if there's thunder, equip widen weapons and let them carry the metal ones around while you wait for the lightning to kill them for you, if there's a cliff hit them from above
Fight on your terms not theirs. Don't fight the electric Lizafold during a thunder storm, on a small platform in the middle of a bog. Just don't. Run away if you have to and make them meet you where you want to fight them
Have fun. Seriously the game engine very open ended and you can do all kinds of hilarious (if not very effective) things. Hide behind a corner and use Magnesis to hit them with a metal cube. Status lock explosive barrels and hit them sending them flying into enemies. Glide in and abuse the time slow feature to head shot every one before they even see you.
Wolf Link can kill some enemies hilariously fast. Really this belongs with the previous one but it's so fun to watch that I'm separating it.


ASP.Net Core how to get the user role in EF Core and Identity

Question: Hi I'm building a API using Identity with a custom user class,and EF Core.
I want to get the name of the role that belongs to an user.
The diagram of the tables is the following(ignore userclaims and userlogins):

As you can see the Roles and Users is N to N so internally Identity made a junction table named UserRoles, my contoller looks like this:
Route ("api/[controller]")]
    public class UserController : Controller {
        private readonly DBContext _db;
        private readonly UserManager<Usuario> _userManager;
        public UserController (DBContext db, UserManager<Usuario> userManager) {
            this._db = db;
        }
        [HttpGet ("GetUserById/{id}", Name = "GetUserById")]
        public async Task<IActionResult> GetUserById (string id) {
            try {

                var user = await this._db.Users.Where (x => x.Id == id).Include (x => x.Roles).FirstOrDefaultAsync ();
                if (user == null) {
                    return NotFound ();
                }
                return Ok (user);
            } catch (Exception e) {
                Console.WriteLine (e.Message);
                return BadRequest ();
            }
        }

When I called it in Postman I get the following response:

As you can see in the roles part all I get is:
"roles": [
        {
            "userId": "d88b0c2d-25c5-4da9-ad05-45f69dec67ff",
            "roleId": "a83a60ca-f011-43ce-be3d-8b71403aa86e"
        }
    ]

That data belongs to the junction table not the Role table itself, I dont want that.
What I really want is the "real" Role table data, Any idea how can I achieve that?
In sql it would be something like :
select *
    from AspNetUsers as a,AspNetUserRoles as b,AspNetRoles as c
    where a.Id = b.UserId and b.RoleId= c.Id

Comment: A solution to this is also explained in official microsoft docs: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/customize-identity-model?view=aspnetcore-3.1#add-navigation-properties
Answer: var user = await _userManager.FindByIdAsync(UserId);
var roles = await _userManager.GetRolesAsync(user);

return OK(new { User = user, Roles = roles });

This produces role names, either way the only way to get this back to your api call is to return a ViewModel or other option as Chris points out it isn't possible to directly call.. Its so round about to achieve something so small.
At any rate this is a second option to get the "Role" names without having to touch your db context.
If you want the Id's pull that from RoleManager<IdentityRole> or tap your dbcontext.
Callings it Roles in what ever you do might cause interference since roles[] will already exist in the return of the User.
Answer: Unfortunately, there's not navigation properties on UserRole, so it's a manual affair. You'd need to do something like:
var userRoleIds = user.Roles.Select(r => r.RoleId);
var roles = db.Roles.Where(r => userRoleIds.Contains(r.Id));

Then, you can map those on to the user via a view model. For example:
public class UserViewModel
{
    ...
    public List<string> Roles { get; set; }
}

Then:
var model = new UserViewModel
{
    ...
    Roles = roles.Select(r => r.Name).ToList()
}

Comment: Here you could find the details of such `UserRole` configuration https://github.com/aspnet/Identity/issues/1361#issuecomment-348863959


Domain field not showing up in Feature Class properties

Question: I am working on a project where I made domains for my feature classes, and I need to connect the domain to the actual feature class. When I go to the Feature Class properties, the domain field is not showing up. I have attached a screenshot of the issue.
I am using ArcMap 10.5.
The second screenshot in the image is from the project instructions.
Comment: Your field is a **short integer** your domain is a **long integer**, they don't match so your domain wont show up; because you have no short integer domains in your database the domain box will not appear for your short integer field, there's nothing to put into it. If you were to create your field with a long integer type you will see your domain box and be able to select the amenity_types domain for that field.
Answer: As commented by Michael Stimson your field types don't match between your Domain and your Feature Class Field.
In your project instructions it has said to create a Short Integer field, but your domain you have created as a Long Integer (the Default).

You have several options here.

Delete your domain and create it again using the correct Field Type.  Note that you will be unable to do this if you have successfully linked your domain to a field elsewhere in your geodatabase.
Delete and recreate the field in your feature class to match the field type in the domain.  Note that if you already have data in this field you will lose it.
If neither of these are satisfactory, you could just create a new domain with a new name (using the correct field type of course) and leave the existing domain there.  Link your field to that new domain
Comment: Is there a different way than doing this? http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/remove-domain-from-field.htm
Comment: Yes, in the fields dialog you have in your pictures, select the domain box associated with the field, it will drop down, then select the empty space to unset your fields' domain. If it's being surly there's probably a schema lock.. close ALL Esri products, including python scripts, open just ArcCatalog and try again.. it should be more obliging now.