The ArcGIS Desktop tools  and  read from [Shape] column and write the shape XY properties to new X and Y columns. I need to go the other direction, from X and Y columns to the [Shape] XY properties. It is a point feature class already, not a bare table.   isn't applicable because creates a new feature class.
I have changed the coordinates of couple points in the attribute table and I want to update the location. I have found the script that is working in field calculator.   Does anybody know how to write it using a Python script in ArcGIS Desktop (not in Field Calculator)?  def XYsetVALUE( shape, X_value, Y_value):    point = shape.getPart(0)    point.X = X_value    point.Y = Y_value    return point  __esri_field_calculator_splitter__ XYsetVALUE ( !SHAPE!, !X_COORD!, !Y_COORD! )   COORDINATE FIELD TYPE ------ STRING !!!!
What species of insect is this? I saw this insect near a beach in Corsica France: Change edit approval threshold to (# approve − # reject ≥ N) Currently, the threshold for approving or rejecting a suggested edit is , whichever is reached first.  This means that, when  or just  edits get approved, it's often with a vote count of something like 1 reject / 2 approve (or 2 reject / 3 approve on SO).  Typically, these edits manage to get one or two very quick approve votes from, um, , after which it's very hard for the slower and more careful reviewers to accumulate enough votes to catch up before the edit is approved.  Conversely, when a valid edit gets wrongly rejected, this very rarely happens unanimously either.  More often, you'll see something like 3 votes to reject / 2 to approve, but that single last vote, no matter how well or poorly considered, is enough to tip the scales.  So I'd like to propose a simple change to the approval / rejection threshold:        Suggested edits should be approved when S = (# of approve votes &minus; # or reject votes) &ge; N, where N = 3 on SO and N = 2 on other sites.   Similarly, suggested edits should be rejected when S &le; &minus;N.      No, this change is not going to magically fix all the problems with suggested edit review.  But I believe that it would be a simple and conservative improvement over the current behavior:   For obviously good or bad edits that get approved / rejected unanimously, this suggestion would not change the current behavior in any way. For edits that get one mistaken or careless reject / approve vote (as happens pretty often), an extra approve / reject vote would be required to balance it.  This would slightly slow the review process for such edits, but not excessively so.  Further, I would argue that these are precisely the kind of edits that deserve that little bit of extra attention to make sure the eventual decision will be correct. Edits that are truly controversial, and for which the reviewer community is nearly exactly 50&ndash;50 split between voting to approve and reject, might stay in the review queue significantly longer (maybe twice as long on average) than under the current system.  However, this is a trade-off for the increased likelihood that the eventual decision will actually reflect the majority opinion among reviewers, rather than mere random chance.  In any case, even if reviewers are exactly 50&ndash;50 split, the  under the proposed scheme is only N&sup2;, i.e. 4 votes for other sites and 9 votes for SO.  Even a slight bias in the voting will further reduce this.  Besides, the longer the suggestion remains in the queue, the more likely it gets that someone will short-circuit the process by casting a binding vote (mod / post owner) or by choosing to improve the edit.     Ps. If it is felt that there's an issue with , a simple further chance to address that could be to make each reject vote count as, say, &minus;2 rather than just &minus;1 approval votes (and change the rejection threshold to S &le; &minus;2 &times; N to compensate).  This still wouldn't help with bad edits getting unanimously approved (which isn't really something that can be fixed, except maybe by slugster's cattle prod), but it would mean that each reject vote would now effectively cancel out two approve votes, titlting the balance for disputed edit suggestions in favor of rejection and making it easier for more careful reviewers to counter the "robo-approvers". Proof a $2^n$ by $2^n$ board can be filled using L shaped trominoes and 1 monomino Suppose we have an $2^n\times 2^n$ board. Prove you can use any rotation of L shaped trominoes and a monomino to fill the board completely.  You can mix different rotations in the same tililng. Emacs: Symbol's value as variable is void Variablity in cv.glmnet results I am using cv.glmnet to find predictors. The setup I use is as follows:  lassoResults&lt;-cv.glmnet(x=countDiffs,y=responseDiffs,alpha=1,nfolds=cvfold) bestlambda&lt;-lassoResults$lambda.min  results&lt;-predict(lassoResults,s=bestlambda,type="coefficients")  choicePred&lt;-rownames(results)[which(results !=0)]   To make sure the results are reproducible I set.seed(1). The results are highly variable. I ran the exact same code 100 times to see how variable the results were. In the 98/100 runs had one particular predictor always selected (sometimes just on its own); other predictors were selected (co-efficient was non-zero) usually 50/100 times.  So it tells me that each time the cross-validation is running it's going to probably select a different best lambda, because of the initial randomization of the folds matter. Others have seen this problem () but there isn't a suggested solution.  I am thinking that maybe that one which shows up 98/100 is probably pretty highly correlated to all the others? The results do stabilize if I just run LOOCV ($\text{fold-size} = n$), but I am curious why they are so variable when $\text{nfold} &lt; n$. How can we rewrite this optimization problem in standard form? Consider the following problem $$ \begin{array}{crl} &amp;\underset{y}{\max} &amp; f(y)\\ s.t. &amp; y_{1}A_{1}+y_{2}A_{2}+S_{1}&amp;=C_{1},\\  &amp; y_{3}A_{3}+y_{2}A_{4}+y_{5}A_{5}+S_{2}&amp;=C_{2},\\  &amp; y_{3}A_{6}+y_{4}A_{7}+S_{3}&amp;=C_{3},\\  &amp; S_{1},S_{2},S_{3}\succeq0, \end{array} $$ where $y_{i}$ are scalar variables and the matrices $A_{i}$ are symmetric real. How can we rewrite this optimzation problem in the following form  $$ \begin{array}{crl} &amp;\underset{y}{\max} &amp; f(y)\\ s.t. &amp; \sum_{i=1}^{m}y_{i}A_{i}+S&amp;=C,\\   &amp;S&amp;\succeq0, \end{array} $$ where $x_{i}$ are scalar variables and the matrices $B_{i}$ are symmetric real. please? Thanks. I need to be able to compare some month names I have in an array.  It would be nice if there were some direct way like:  Month.toInt("January") &gt; Month.toInt("May")   My Google searching seems to suggest the only way is to write your own method, but this seems like a common enough problem that I would think it would have been already implemented in .Net, anyone done this before? ꕺ (U+A57A Vai Syllable Kpoo) is allowed in character names as the last character I believe this should be changed so ꕺ can not be the last character of a name at minimum. This could be a bug in my opinion because it provides confusion with diamond mods.  Although other symbols are blocked from what I understand but this does technically look different.  I have changed my name to such to demonstrate the confusion at least temporarily.  They say imitation is the greatest form of flattery so maybe this should be accepted because to anyone who is familiar with SO I doubt this would cause an issue. MacOS dmg file question Not entirely sure if this is where to ask this, but I can't find another place to...  I've recently switched from Windows to Mac and I am trying to understand more in depth what I'm working with.  My question is: are .dmg files the equivalent of .zip files in Windows? I came to this theory when downloading a .dmg and when I opened it, it contained a .app and and text file read me. To me, this seems like a compressed file.   Is this correct? Why can a discontinuous function not be differentiable? Peltier Unit Not Working My Ubuntu is running fsck on every bootup On every bootup it's the same:  /dev/sda1: clean, 908443/38690816 files, 44176803/154733312 blocks   Is it some kind of option Ubuntu uses to ensure filesystem consistency or is there something wrong with my HDD? fsck takes up to 30s while booting and so about triples the time needed otherwise.  Full output (partly in German):  Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. fsck von util-linux 2.20.1 /dev/sda1: sauber, 908443/38690816 Dateien, 44176803/154733312 Blöcke udevd[623]: unknown key 'SYSFS{idVendor}' in /lib/udev/rules.d/45-libticables.rules:6  udevd[623]: invalid rule '/lib/udev/rules.d/45-libticables.rules:6'   * Starting mDNS/DNS-SD daemon                                                 [ OK ]  * Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated                                                                   [ OK ]  * Starting configure network device security                                  [ OK ]  * Starting bluetooth daemon                                                   [ OK ]  ####* Starting all other stuff Shorten title on each beamer slide In a beamer presentation the title is long but ok for the first slide. The problem is that when the title appears below on each slide it is very long and I would like to use here some sort of running or shorter title, how can this be done? I keep hearing about tandem breakers, and how they won't work with 240V loads and how they should never be used for a multi-wire branch circuit.  Aside from those issues...  What is a tandem breaker?     (note: they can be thrown independently). I have a data frame in python where I need to find all categorical variables. Checking the type of the column doesn't always work because int type can also be categorical.   So I seek help in finding the right hypothesis test method to identify if a column is categorical or not.   I was trying below chi-square test but I am not sure if this is good enough  import numpy as np data = np.random.randint(0,5,100) import scipy.stats as ss ss.chisquare(data)   Please advise. Is there a way to exclude other particle systems from the effects of a Wind effect? I have a scene with a number of particle systems. I'd like to have a separate wind effect for my main scene and another for an extra: an emitter + wind-effect to blow leaves into my scene. I can't find any way to exclude, so here I am. At the very worst, I can just render the main scene and then render the wind effect and composite it, but I figured I'd check first. What is the most accurate way to retrieve a user's correct IP address in PHP? No sound (speakers/jack) + microphone's dead after spilling water Sadly, yesterday I've spilled some water on my MacBook Pro (El Capitan). Before you yell at me - it was closed, turned off and it wasn't a lot of water, the laptop was wet only on the top and under - not inside.  Today I've turned him on. At first battery wasn't recharging for some reason, but SMC reset fixed the problem.  At the first booting speaker was like talking to me, hard to explain but it was weird. Also only right speaker was "talking", despite the fact that only left side of the laptop was watered. Then there was no sound at all, not from the speakers, nor from the headphones. Also microphone's not working. USB ports are okay. The water was spilled from the left side of the laptop. I know this is hardware issue, and something's broken, but I want to be 100% sure. No it's not muted. I've also tried NVRAM reset a few times, but it doesn't fix the problem :(  There might be one factor, before spilling, my laptop "died" for the first time (battery energy ran off), but I doubt it's the case. (but hey, every info matters, right?)  It wouldn't be weird for me, if only left speaker wouldn't work, but built-in microphone not working is kinda weird in this case, isn't it?  I just want to ask you guys, what else can I check, before I'll be 100% sure it's dead inside?  I've plugged in external microphone - it's not working too. How does the tester screwdriver work? How does the tester screwdriver work? If I put the tester screwdriver inside the "hot wire" of an electrical socket, it lits up if I press my finger against the metal cap on top of the screwdriver. This happens also if I stand on a surface of isolating material, such as wood. I read elsewhere that this happens due to stray capacitance formed by the "hot wire", the human body, and the ground. One has  $$ Z = R + \dfrac{1}{j \omega C}  $$  for the impedance, so if C  is high enough, the impedance should be close to r , the "effective resistance" of the formed circuit. Here I get lost; why r  is small enough to cause a current in the range of mA  even if I stand on an isolating surface?  So really what I am asking is how one may represent the system hot wire - screwdriver - human body - wooden floor - building - ground as an electrical circuit, and which parts of the physical system contribute to the resistance, capacitance (and inductance?) and in which proportion, even very approximately. Are there any XSLT processing command line tools?