I have 10 lines and i want to generate points per 10 and 100 meters for each one of them. In ArcGis there is the tool construct points(COGO) but is not scriptable. Is there any suggestion? Also i don't want to be saved in memory but in Hard disc, also i don't have the points i want to create them, with a loop, for several lines (10).
I have start point and end point of a polyline. How can I get a point on that polyline from end points specified by the given distance.    How can I get this by using arcpy provided that this script should work on ArcView without importing any modules (). I'm trying not to hard code values.  Related Question:
How to implement a progress bar using the MVVM pattern How to modify itemize vertical spacing within blocks in beamer? I have noticed that when I have "itemize" environments defined within blocks in beamer, that they introduce more vertical spacing between the top and the bottom of the blocks, than vertical text. Since I have a slide with some text filled blocks and directly after, a slide with only "itemize" holding blocks, I would like the spacing between the itemized text and the block to be the same as for regular text.   On  I have read about "squeeze" option, but it doesn't seem to work...   Additional info:  The problem is in the additional vertical space that is included by the "\itemize" environment. I have found  on how to remove vertical spacing from the itemize list, and I am using this approach. However, it is a brute force approach. What I would like to know if it is possible to have the same vertical space between the end of the itemize list and the bottom of a block, as the one set between the normal text and the bottom of the block.   MWE:   \documentclass[10pt]{beamer} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{exscale} \usepackage{epsfig} \usepackage{fancybox} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{overpic}  \usepackage{multimedia}  \usetheme{default} \usecolortheme{crane}  % -- Modifications that enable the footline and set black color for the fonts  \setbeamertemplate{footline}{%     \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,right, rightskip=1mm, leftskip=1mm]{titlelike}         \textcolor{black}{             %\inserttitle\hfill\insertauthor\hfill\insertframenumber%             Something\hfill Something Else \hfill\insertframenumber%         }     \end{beamercolorbox} }  \setbeamertemplate{itemize items}[square]  \setbeamercolor{item}{fg=black} \setbeamercolor{frametitle}{fg=black} \setbeamercolor{block title}{fg=black} \setbeamercolor{title}{fg=black} \setbeamercolor{block body}{bg=white}  % END Modifications  \begin{document}   \begin{frame}   \frametitle{text blocks}     \begin{block}{block}         block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   blockk     \end{block}{block}      \begin{block}         block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block     \end{block}     \begin{block}{block}         block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block     \end{block} \end{frame}  \begin{frame}   \frametitle{itemize blocks}     \begin{block}{item}         \begin{itemize}             \item item              \item item              \item item         \end{itemize}     \end{block}     \begin{block}{item}         \begin{itemize}             \item item              \item item              \item item         \end{itemize}     \end{block}     \begin{block}{item}         \begin{itemize}             \item item              \item item              \item item         \end{itemize}     \end{block}   \end{frame}  \end{document} AWS S3, Paperclip missing required :bucket option Let $(G,.)$ be a group and $m,n \in\mathbb Z$ such that $\gcd(m,n)=1$. Assume that $$ \forall a,b \in G, \,a^mb^m=b^ma^m,$$ $$\forall a,b \in G, \, a^nb^n=b^na^n.$$  Then how prove $G$ is an abelian group?  Some context: Some of these commutation relations often imply that $G$ is abelian, for example , or . This looks like another example of this phenomenon, but the same techniques do not apply. Delete commits from a branch in Git What is a good way to catch the Mysterious Stranger? When ever I hear the music to indicate the Mysterious Stranger has arrived, I can never find him. It is almost like he is not in the vault.  What is a good way to catch the Mysterious Stranger? Where does he usually show up? Doubt related to a theorem in congruences of Chapter 5 of Apostol Introduction to analytic number theory I am self studying number theory from Introduction to Analytic number theory by Apostol.   I have a doubt in one argument of proof of Theorem 5.14 and I am posting its image.      My doubt is in 2nd line of 2 nd paragraph how Apostol writes - If y is a solution of (5) then ay $\equiv $ at ( mod m) . How does y being a solution of (5) implies that?       Can someone please help I just read on wikipedia that the the complex projective line is homeomorphic to the riemann sphere. How do I prove this? But, before that I have an extremely silly doubt that has been eating me. In the complex projective line, antipodal points are identified, but in the Riemann sphere they are clearly distinct. Then how can the two be homeomorphic.   I found out the following map from the complex projective line to $S^2$. But how do I prove this is a homeomorphism? Finding the inverse of this functions seems complicated, and then how do I prove that the inverse map of a open subset is a open subset, and vice versa?  $f:\mathbb{C}\mathbb{P}^1 \to S^2 = [z:w] \to \frac{(2Re(w\bar{z}), 2Im(w\bar{z}),|w|^2-|z|^2)}{(|w|^2+|z|^2)} $ How long can I stay in the UK during a 1-year period? I am a Chinese citizen holding a HK SAR passport. How long am I able to visit the UK within a 365-day period?  My stamp is for 6 months. Could I leave within 6 months but re-enter again a couple of weeks for another 6 months? If shuffle-playing playlist &times;100 resulted in [10 13 10  3  2  2] different songs being repeated [1 2 3 4 5 6] times, what is the estimate for the total number of songs? (assuming shuffle play was completely random)  Update: (R code)  k &lt;- 50 # k number of songs on the disk indexed 1:k n &lt;- 100 # n number of random song selections m &lt;- 20 # m number of repeat experiments colnum &lt;- 10 mat &lt;- matrix(data=NA,nrow=m,ncol=colnum) df &lt;- as.data.frame(mat) for(i in 1:m){   played &lt;- 1+floor(k*runif(n)) # actual song indices (1:k) selected    freq &lt;- sapply(1:k,function(x){sum(played==x)})   # = number of times song with index x is being played   histo &lt;- sapply(1:colnum,function(x){sum(freq==x)});   for(j in 1:colnum){    df[i,j] &lt;- histo[j]   } } df   Resulting in: e.g. 20 distributions (V1=number of single plays, V2=number of double plays, etc):     V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 1  15 13 11  1  2  2  0  0  0   0 2  15 12 10  1  4  0  1  0  0   0 3  12 14  7  6  3  0  0  0  0   0 4  17 16  6  4  2  0  1  0  0   0 5  17 10 12  5  0  0  1  0  0   0 6  13 15 11  6  0  0  0  0  0   0 7  10 14  9  3  2  1  1  0  0   0 8  12 17  5  6  3  0  0  0  0   0 9   9 19  8  3  1  2  0  0  0   0 10 13  9 11  6  1  0  1  0  0   0 11 16  9 12  5  2  0  0  0  0   0 12 15  9 11  6  2  0  0  0  0   0 13 19  9  7  4  4  1  0  0  0   0 14 17 11  4  7  3  1  0  0  0   0 15 11 20  8  1  3  1  0  0  0   0 16 14 12 10  5  0  2  0  0  0   0 17  9 12  8  7  3  0  0  0  0   0 18 10 15  9  4  2  0  1  0  0   0 19 14 11 12  7  0  0  0  0  0   0 20 16 14 11  3  1  1  0  0  0   0   Now I need to get from here to the Poisson modelling--my R is a bit rusty (?lmer)...--Any help would be appreciated...  Attempted Poisson modelling: disappointing fit?!  plot(1:colnum,df[1,1:colnum],ylim=c(0,30),    type="l",xlab="repeats",ylab="count") for(i in 1:m){   clr &lt;- rainbow(m)[i]   lines(1:colnum,df[i,1:colnum],type="l",col=clr)   points(1:colnum,df[i,1:colnum],col=clr) }  df.lambda=data.frame(lambda=seq(1,5,0.1),ssq=c(NA));df.lambda for(ii in 1:dim(df.lambda)[1]){   l &lt;- df.lambda$lambda[ii]       ssq &lt;- 0       for(i in 1:20){         for(j in 1:10){           ssq &lt;- ssq + (df[i,j] - n*dpois(j,l))^2         }       }       print(ssq)       df.lambda$lambda[ii] &lt;- l   df.lambda$ssq[ii] &lt;- ssq     }     df.lambda     lambda.est &lt;- df.lambda$lambda[which.min(df.lambda$ssq)] lambda.est # 2.4 points(x &lt;- 1:10, n*dpois(1:10,lambda.est),type="l",lwd=2)  100*dpois(1:10,3) n/lambda.est   the estimated lambda stays around 2.3, with an n estimate of around 43; the fitted curve seems very discrepant, and seems to worsen with rising n !?  Doesn't this have to do with the fact, that our repeats are different from the 'classical' Poisson distributions: it's not just ONE event that repeats itself x number of times, but the sum of repeats of different items (songs)?! Can a textbox be enabled after a certain value from a picklist is selected Why doesn't the mirror modifier work with object groups? Why doesn't the mirror modifier work with object groups? I have a group made of four objects to which I want to apply a mirror modifier. For me, it's not working. What are the steps to make apply a mirror modifier to a group of objects? I have noticed there is a Stack Overflow in language differs from English which is global and mostly used by programmers.  I think there is no need for a site in other languages. Otherwise we will end up with 127 StackOverflow sites. I am afraid that we will lose the amount of people sharing data. Where can I ask Android related questions in Stack Exchange? I would like to know where I can ask Android apps and other mobile related questions. Is there a Stack Exchange site for such questions? I can't install VMwarePlayer 4.0.3 on Ubuntu 12.04 64Bit. For Version 4.0.2, I found a script that I have to run to patch VMware Player for it to work on my system to properly, and after that I could install 4.0.2.  Is there an similar solution for Version 4.0.3? How do I programmatically log in a user with a POST request? Set keyboard caret position in html textbox Does anybody know how to move the keyboard caret in a textbox to a particular position?  For example, if a text-box (e.g. input element, not text-area) has 50 characters in it and I want to position the caret before character 20, how would I go about it?  This is in differentiation from this question:  , which requires jQuery. Error: 'else' without 'if' How do I programmatically create a new content type? I'm building a module (my_module) in Drupal 7. It has some functionality and also will create a new content type. In my_module.install, I implemented hook_install() (my_module_install()).    Can I use more hook_install() to create a new content type (my_module_install()) in this module? If the answer is yes, how should I do this? Otherwise, should I do this in another module? How to deserialize a JSON String to Apex