i would like to know if there is an adequate python alternative for my beloved C Makro 'Exp1 ? Exp2 : Exp3'.  I already tried to google but can't seem to find anything.   Example:  x = 0.5 (x &gt; 0) ? 1 : 0    if(type == "release"):         release = True else:         release = False
If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?
Supremum of a product measurable function... How does the British-Irish Visa Scheme (BIVS) work? I am an Indian citizen and have applied for the Standard Visitor visa to the UK, and wish to travel to Ireland by using the BIVS scheme.    Do I need to fill up a separate application for BIVS endorsement or is it handed out automatically?  Also, If I enter the UK, and then travel to Ireland, can I re-enter the UK again? Pacf lag axe , is not an integer I'm trying to use ARIMA process to predict the behaviour of a time series, the probleme I face is that I can't get the order of each component of ARIMA, the lag is between 0 and 1, same goes for the acf. The time series has no tendency, and I guess no seasonality.     My question is : Does this mean that ARIMA orders are all 0s, and if so, is the HoltWinters a good (or the best) solution for modelling this kind of TS ? Upgrade High-Trust Addin/App from 2013 to 2016 I have a SharePoint 2013 environment with several High-Trust Addins. This must now be upgraded to SharePoint 2016.  My Questions:   I was unable to find any documentation on the required steps. Links are welcome. Do i have to migrate App-Management Service and Subscription Settings Service?  don't even mention them.   say yes, but linked background is no longer available.  , i had to create a New-SPTrustedSecurityTokenIssuer. In this step, a RegisteredIssuerName had to be specified. This IssuerName consists of the Realm and the .   I think IssuerID can and should be migrated to SharePoint 2016, as it it also defined inside the High-Trust app. What about the Realm? This is by default the same value as FarmID. If i migrate this value, i have to change the Realm in SharePoint 2016. Or should i create the TST with a new Realm and existing IssuerID? Compare given date with today Showing that $G$ is a group under an alternative operation. How do you square an ideal? For some of you, this question is going to seem extremely basic.  I think I understand what an ideal is. Such as $\langle 2, 1 + \sqrt{-5} \rangle$, it consists of all numbers in this ring of the form $2a + (1 + \sqrt{-5})b$.  But then what is $\langle 2, 1 + \sqrt{-5} \rangle^2$? My first thought was $\langle 4, -4 + 2 \sqrt{-5} \rangle$, but that seems wrong somehow. I also had something in the back of my mind saying $\langle 2 \rangle$, but I'm not sure about that one either.  Then I thought about trying to figure out $\langle 2, 1 + \sqrt{-5} \rangle \langle 2, 1 + \sqrt{-5} \rangle$ when I realized I don't actually understand how to multiply ideals to begin with.  I'm only using $\langle 2, 1 + \sqrt{-5} \rangle$ as an example (though that does draw in one question identified as similar that looks much more relevant than all the questions identified as "Questions that may already have your answer"). In a principal ideal domain, would it be correct to think that $\langle a \rangle \langle b \rangle = \langle ab \rangle$?  Any help would be much appreciated. How well does T-Mobile's (US) Simple Choice plan work when in Europe? Which way is up? (electric outlet) Fermi's golden rule and infinite probablity? I am slightly confused about the application of . Which during standard derivations indicates a probability of transitioning from the state $|i \rangle$ to the state $|f\rangle$ of: $$P=\frac{2\pi t}{\hbar^2} | \langle f | \hat V | i \rangle|^2 \delta(E_f-E_i-\hbar \omega)$$ This holds for large values of $t$ but for arbitrarily large values of $t$: $$P&gt;1$$ Which (to me anyway) makes no physical sense since there can't be a probability greater then 1 of been in the final state. If my interpretation is right then how is this problem resolved/allowable? and if it is wrong what part of what I have said is wrong? Properties vs Methods Quick question: When do you decide to use properties (in C#) and when do you decide to use methods?  We are busy having this debate and have found some areas where it is debatable whether we should use a property or a method. One example is this:  public void SetLabel(string text) {     Label.Text = text; }   In the example, Label is a control on a ASPX page. Is there a principle that can govern the decision (in this case) whether to make this a method or a property.  I'll accept the answer that is most general and comprehensive, but that also touches on the example that I have given. No input file specified How do I install the latest stable version of Thunderbird? "X Department" versus "Department of X" I would like to know whether these phrases "English Department" and "Department of English" have the same meaning. Thanks! Multiples of an irrational number forming a dense subset How do I programmatically set the value of a select box element using JavaScript? Why an R-module is an R/I-module precisely when it is annihilated by I? Let $I$ be an ideal of $R$ and let $M$ be an $R$-module. Prove that the formula $(r + I) \cdot m = r \cdot m$ for $r + I \in R/I$, and $m \in M$ makes $M$ into an $R/I$-module if and only if $i \cdot m = 0$ for all $i \in I, m \in M$.   I don't quite understand why we must have $i \cdot m = 0$ instead of $I \cdot m \in M$. This is for proving the only if part. Can one introduce magnetic monopoles without Dirac strings? To introduce magnetic monopoles in Maxwell equations, Dirac uses special strings, that are singularities in space, allowing potentials to be gauge potentials. A consequence of this is the quantization of charge.  Okay, it looks great. But is this the only way to introduce magnetic monopoles? Set the default permission when creating a file Clipping Rasters with a mask layer error I've got a NDVI layer that I'm trying to clip with a vector file but when I try and use GDAL Tools clipper I get an error.  That shows up like this:  What am I doing wrong?  This is before I even pick the mask layer!  Traceback (most recent call last):   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\widgetPluginBase.py", line 28, in someValueChanged     self.emit(SIGNAL("valuesChanged(const QStringList &amp;)"), self.getArguments())   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\doClipper.py", line 105, in getArguments     return self.getArgsModeMask()   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\doClipper.py", line 143, in getArgsModeMask     if self.alphaBandCheck.isChecked(): TypeError: 'sip.methoddescriptor' object is not callable  Python version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]  QGIS version: 1.7.3-Wroclaw Wroclaw, 00624b3  Python path: ['C:\Users\dean.walker\.qgis\python\plugins\GeoCoding', 'C:\Users\dean.walker\.qgis\python\plugins\GeoCoding', 'C:/PROGRA~1/QUANTU~1/apps/qgis/./python', 'C:/Users/dean.walker/.qgis/python', 'C:/Users/dean.walker/.qgis/python/plugins', 'C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\QUANTU~1\bin\python25.zip', 'C:\PROGRA~1\QUANTU~1\apps\Python25\DLLs', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\plat-win', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\lib-tk', 'C:\PROGRA~1\QUANTU~1\apps\qgis\bin', 'C:\PROGRA~1\QUANTU~1\apps\Python25', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\win32', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\win32\lib', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\Pythonwin', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\wx-2.8-msw-unicode', '/usr/share/qgis/python', 'C:\PROGRA~1\QUANTU~1\apps\qgis\python\plugins\fTools\tools']