I'm unsurprisingly confused:  If I exercise ISOs in Jan 2017 and sell them in Feb 2018, how is income reported for AMT purposes and profit reported for cap gain purposes -- are BOTH reported on my 2017 return, even if the shares were sold in 2018 (but before April 15)?  Or, must I report for AMT purposes in 2017, and on my 2018 return, will I report some kind of adjustment due to the fact that the shares were sold at a different FMV than when they were exercised?
So I have some ISO stock options (yeah) and three kids in college (boo) so I'm trying figure out the best tax strategy. I was hoping someone help me through the following scenario  Strike Price: $10, 2014 exercise price: $20, 2015 price: $25, 2016 price $30   Lets' assume that all of this happens 2+ years after the grant date and that my "normal" tax bill is right on the brink of the AMT threshold, that the AMT tax rate is 28% and the long term capital gains tax is 15%.   Now I want to run the following scenario  2014: exercise 1000 options 2015: exercise 1000 options, sell the previous years' option after "one year and one day" 2016: sell the 2015 options after "one year and a day"    Tax wise that would look like this  2014: AMT on $10000 of bargain element so $2800 AMT 2015: AMT on $15000 bargain element $4200, long term gain tax on $15000 = $2250 2016: long term gain tax on $20000 = $3000    What's the overall tax liability in each year? I can't figure out how the AMT carries forward when the options are finally sold.   Any good pointers to modeling software, spreadsheets or decent papers would also be appreciated.
Why would someone use WHERE 1=1 AND &lt;conditions&gt; in a SQL clause (Either SQL obtained through concatenated strings, either view definition)  I've seen somewhere that this would be used to protect against SQL Injection, but it seems very weird.  If there is injection WHERE 1 = 1 AND injected OR 1=1 would have the same result as injected OR 1=1.  Later edit: What about the usage in a view definition?    Thank you for your answers.  Still, I don't understand why would someone use this construction for defining a view, or use it inside a stored procedure.  Take this for example:  CREATE VIEW vTest AS SELECT FROM Table WHERE 1=1 AND table.Field=Value Does it make sense to interact 2 dummy variables? How do I dynamically create the variable name in a PHP loop? How to use st_buffer? I would like to calculate a buffer of 5km around country polygons. However, I somehow always get a warning and an error. Here is a reproducible example code.   library(sp) library(sf) library(tmap)  library(rnaturalearth) countries_sp &lt;- ne_countries(scale = 10)  countries_sp &lt;- countries_sp[(countries_sp@data$geounit %in% "France"), ]  proj4string(countries_sp) &lt;- CRS("+init=epsg:4326")   countries_for_buff &lt;- st_as_sf(countries_sp, crs ="+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs ")  countries_buff_5km &lt;- st_buffer( countries_for_buff, 5000)   here the warning:  dist is assumed to be in decimal degrees (arc_degrees). Warning message: In st_buffer.sfc(st_geometry(x), dist, nQuadSegs, endCapStyle = endCapStyle,  : st_buffer does not correctly buffer longitude/latitude data   Then   tm_shape(countries_sp) +   tm_polygons() + tm_shape(countries_buff_5km) +   tm_polygons()   gives the error   Error in if (all(tiny) &amp;&amp; show.messages) warning("all relative area sizes are below thres.poly",  :     missing value where TRUE/FALSE needed   What am I doing wrong? I guess there is something about the projection that does not quite work out the way it should. Rename all the files within a folder with prefix “Unix_” Rename all the files within a folder with prefix “Unix_” i.e. suppose a folder has two files a.txt and b.pdf than they both should be renamed from a single command to Unix_a.txt and Unix_b.pdf How can I use JavaScript on the client side to detect if the page was encrypted? Is it possible to detect, on the client side, whether the user is using an encrypted page or not?  Put another way -- I want to know if the URL of the current page starts with http or https. Insert data only if record does not exist Mathematical notation around the world Using wp_query is it possible to orderby taxonomy? My question is simple, I'm using WP_Query to retrieve some custom type posts filtering by a taxonomy using tax_query.  Now my problem is I would like to orderby the taxonomy, but from documentation and searching on the web I can't find a solution.  The orderby in WP_Query lets you order by a bunch of fields even custom meta fields but it doesn't seem to support taxonomy.  Any pointers in the right direction?  Thank you all. What should be done with questions that have been resolved as a comment instead of an answer? I'm trying to go through and provide answers to every unanswered question (search &quot;closed:0 answers:0&quot;), somewhat following the spirit that was blogged about at  .  However, I'm finding this much more difficult than it needs to be, as many of the questions have already been answered without the use of an &quot;answer&quot; - but instead, in the form of a comment by either the OP or another poster. I wouldn't mind reading through and skipping these, as long as there was some appropriate action I could take to at least assist with preventing these questions from being seen again from the same query - either by myself or another SO member.  Is there such an appropriate action?  Should we vote to close?  If so, using what reason? Even if I vote to close, what are the chances that 4 other users will also view the question and also vote to close?  (i.e., will my individual vote even do any good?  Is there any report to show recent close votes, so that others may also review and contribute supporting close votes?) Should we post some sort of an answer - even just something to the effect of &quot;this was already answered by the OP's own comment to his answer (above)&quot;? Would something like this be appropriate to flag for moderator attention, and let the moderators deal with it?  (Or would this be considered too trivial?) Should we rename the question title to something standard that can be used in a search exclusion?  (Maybe &quot;SOLVED:&quot;?)  Basically, how can I help to denote questions as &quot;This question is no longer in active search of an answer - though better answers may still be appreciated.&quot;? I've already reviewed , which was closed as a duplicate of  - but this requires effort on part of a user who may very likely no longer be active. Otherwise, is there something I should be doing to improve my search to filter out these types of questions? I've run across this many times, so I don't consider it to be a rare issue.  However, the last question like this I just ran across, prompting this question, was .  In this case, the question was self-answered by the OP in the form of a comment, this question is the OP's only question, the OP has no other visible activity on SO, and the OP hasn't been seen on SO since he registered and posted the question 5 months ago. Another one I just ran across is .  However, here the &quot;answer&quot; comment was posted by a reputable and recently active SO member.  Should I leave a comment directed at him, asking him to re-post his comment as an answer, or should I post my own answer echoing his comment?  (Or something else?) Yet another is .  Interestingly, the OP actually self-edited the question to include the &quot;SOLVED:&quot; prefix on to the question, instead of posting his resolving comment as an answer (and ideally accepting it) as he was asked to do by another comment.  This brings up another good idea - is there a &quot;standard&quot; we should use to rename the titles on these &quot;resolved but unanswered&quot; posts that could be used as a search exclusion?  (Also added to the above list.) I have the string   a.b.c.d   I want to count the occurrences of '.' in an idiomatic way, preferably a one-liner.  (Previously I had expressed this constraint as "without a loop", in case you're wondering why everyone's trying to answer without using a loop). Why can two (or more) electric field lines never cross? The the title is self explanatory, I guess.  Why can two (or more) electric  never cross? So I decided to install my copy of Ableton (v9.1) on my computer now that I've upgraded to a machine that isn't ancient. HOWEVER Despite WineHQ reporting that Ableton is platinum-certified, I can't get the dern thing to open.  It crashes out just as the splash screen pops up.  Sometimes I see it, sometimes not.  It tells me that some catastrophic error has occurred, and it needs to close.  I've tried this on two different systems running two different versions of wine  (One runs the up-to-date public distro 1.6.2, while the machine I actually want to install it on is running the 1.7.19)  I don't know what to do.  I'd really just like to get this working, as my friends really like the look and feel of Ableton, and I really don't like LMMS (Linux-y free Audio Software).  Any idea what's going on here? I've found a couple of other people who seem to be having the same problem as me, but no dice on any solutions.  None provided, really.  Specs: Ubuntu 14.04 LTS  8 Gig ram  i7-2670QM CPU @ 2.20GHz × 8  Lots of free space... yadda yadda yadda   Error message: Earlier today, I was talking with my friend about some "cool" infinite series and the value they converge to like the Basel problem, Madhava-Leibniz formula for $\pi/4, \log 2$ and similar alternating series etc.  One series that popped into our discussion was $\sum\limits_{n=1}^{\infty} \frac{1}{n^n}$.  Proving the convergence of this series is trivial but finding the value to which converges has defied me so far. Mathematica says this series converges to $\approx 1.29129$.  I tried Googling about this series and found very little information about this series (which is actually surprising since the series looks cool enough to arise in some context).  We were joking that it should have something to do with $\pi,e,\phi,\gamma$ or at the least it must be a transcendental number :-).  My questions are:   What does this series converge to? Does this series arise in any context and are there interesting trivia to be known about this series?   I am actually slightly puzzled that I have not been able to find much about this series on the Internet. (At least my Google search did not yield any interesting results). I've just set up a new machine with Ubuntu Oneiric 11.10 and then run  apt-get update apt-get upgrade apt-get install git   Now if I run git --version it tells me I have git version 1.7.5.4 but on my local machine I have the much newer git version 1.7.9.2  I know I can install from source to get the newest version, but I thought that it was a good idea to use the package manager as much as possible to keep everything standardized.  So is it possible to use apt-get to get a newer version of git, and what is the right way to do it? Config files for assemblies in GAC Confused About Trigonometric Substitution Apologies for this possibly too vague question, but are there some general guidelines to follow when rendering artificial 3D meshes together with an imported 2D image as the background?  In the attached Blender file (or rendered image), the cube looks so out-of-the-scene. Some reflection from the green background onto the cube should make the cube more realistic in the scene? I don't know how to put it in professional terms -- any suggestions are welcomed! Making 3 points stick on a plane / flag with wind I have a flag I want to waft in the wind. I imported the shape as an SVG from Adobe Illustrator.  I converted the mesh to a curve.  It wouldn't let me make some subdivisons but it still seems to work with the cloth property.    When I press play, you can see the structure of the flag stops.  How can I make those last 3 points intact? Also the fill colour seems to have disappeared, do you know why and how I can bring it back?    Thanks  Steve  File here: Where can I find the teleport? I need to get the chocolate bars in the hole, but I can't get out of there. Where can I find the pogo stick or teleport?