I'm not sure if this is possible given the looseness of KML files, but I have a couple thousand KML files that I would like to convert to SHP files. They are almost exclusively line or point data. I believe it is mostly possible to convert kmls via a GUI functionality in QGIS or ArcGIS but I would hopefully be able to do them all at once via command line.
My users are sending me point data that were digitized using Google Earth. How can I convert their KML to a shapefile and vice versa?
I stumbled upon a question given like:  Let $m$ and $n$ be two integers such that $m \geq n \geq 1$.   Count the number of functions $$f: \{1, 2, · · · , n\} \to \{1, 2, · · · , m\}$$ of the following two types:  (a) strictly increasing; i.e., whenever $x &lt; y, f(x) &lt; f(y)$, and  (b) non-decreasing; i.e., whenever $x &lt; y, f(x) \leq f(y)$.  I tried in the following way.  For (a). We can say $f(n)&gt;f(n-1)$ AND $f(n)&gt;f(n-2) \ldots f(n)&gt;f(1)$ (total $n-1$ elements)  Similarly for $f(n-1)&gt;f(n-2), f(n-1)&gt;f(n-3) \ldots f(n-1)&gt;f(1)$ (total $n-2$ elements)...  and $f(2)&gt;1$  Like this $$(n-1) + (n-2) + \ldots + (1) = \frac{n(n-1)}{2}$$  Is this correct?  For (b). Since there's equality, it will be $$n + (n-1) + ... (1) = \frac{n(n+1)}{2}$$  Is my approach correct? Any help is appreciated. Thanks in advance. I just bought a controller because I am tired of not to being able to do any tricks with keyboard controls. The problem is I am can't configure controls as FIFA 13 PC version  doesn't consider a controller in their settings.  Does anyone know how to do this? How do I add a Pokestop to an area that has none? It is an area where there are tons of businesses but unless I drive about a mile from my work area there are no Pokestops.   I want to add one since we have 1000's of people in the work area, a lot of them play Pokemon Go, and we all can't leave work to drive a mile away to get to a Pokestop area.   Plus it would be nice to be able to capture Pokemon on our breaks. Setting nautilus-open-terminal to launch Terminator rather than gnome-terminal What is the most elegant way to solve this:   open a file for reading, but only if it is not already opened for writing open a file for writing, but only if it is not already opened for reading or writing   The built-in functions work like this  &gt;&gt;&gt; path = r"c:\scr.txt" &gt;&gt;&gt; file1 = open(path, "w") &gt;&gt;&gt; print file1 &lt;open file 'c:\scr.txt', mode 'w' at 0x019F88D8&gt; &gt;&gt;&gt; file2 = open(path, "w") &gt;&gt;&gt; print file2 &lt;open file 'c:\scr.txt', mode 'w' at 0x02332188&gt; &gt;&gt;&gt; file1.write("111") &gt;&gt;&gt; file2.write("222") &gt;&gt;&gt; file1.close()   scr.txt now contains '111'.  &gt;&gt;&gt; file2.close()   scr.txt was overwritten and now contains '222' (on Windows, Python 2.4).  The solution should work inside the same process (like in the example above) as well as when another process has opened the file. It is preferred, if a crashing program will not keep the lock open. What can you say about $f$ and $g$ in the case that $fg$ is 1) Injective, 2) Surjective - Cohn - Classic Algebra Page 15 Question: Are my proofs below valid?   In both cases we are using: $f:A\to B, g: B\to C$  Notation of your type converted: $(g\circ f)(x)=g(f(x))=xfg$    If $fg$ is injective what can be said about $f$ and $g$?  If $fg$ is injective then $f$ is injective:  Proof:  $(x_1fg = x_2fg \implies x_1=x_2)$  $x_1fg=x_2fg$ is clearly true when $x_1f=x_2f$  Which requires $x_1=x_2$, hence $f$ is injective.  If $f$ were not injective, then $x_1fg\ne x_2fg$  $\blacksquare$    If $fg$ is surjective what can be said about $f$ and $g$?  If $fg$ is surjective then $g$ is surjective:  Proof:  $(\forall c\in C)(\exists a\in A) |( a(fg))=c$  This means for $g$ every element must have had been mapped to. How can this be proved Mathematically?  well $(af)g=c$ is surjective, hence $(af)=(b\in B)$ and $bg=c$  $(\forall c\in g)(\exists b\in B)|(bg=c)$  Hence $g$ is surjective.  $\blacksquare$ Let X be a T1 space, and show that X is normal if and only if each neighbourhood of a closed set F contains the closure of some neighbourhood of F Let $X$ be a $T_1$-space, and show that $X$ is normal if and only if each neighbourhood of a closed set $F$ contains the closure of some neighbourhood of $F$.  I saw this statement in the book Introduction to topology and modern analysis by Simmons. I tried to prove it but I did not get any where. How may it be proved? How and why do accelerating charges radiate electromagnetic radiation? Let's consider it case by case:  Case 1: Charged particle is at rest. It has an electric field around it. No problem. That is its property.  Case 2: Charged particle started moving (it's accelerating). We were told that it starts radiating EM radiation. Why? What happened to it? What made it do this?  Follow up question: Suppose a charged particle is placed in uniform electric field. It accelerates because of electric force it experiences. Then work done by the electric field should not be equal to change in its kinetic energy, right? It should be equal to change in K.E + energy it has radiated in the form of EM Waves. But then, why don't we take energy radiated into consideration when solving problems? (I'm tutoring grade 12 students. I never encountered a problem in which energy radiated is considered.) My last name is not the same on ticket as on passport; rest of details are same I'm traveling from JED Saudi Arabia to Singapore by Saudi airlines. My last name doesn't match the passport. But all other details are same, e.g. passport no., DOB, etc. Is it legal to use car manufacturers' names in a game? Is it legal to use car manufacturers' names in a game?   For example:   to describe Audi's quattro drive system? to display a rendering of an Audi? to include a photo (to which I have rights) of an Audi? Placing however at the start of a sentence vs placing it in the middle of a sentence? Basically, what's the difference between this:     However, it didn't mean that I didn't have the potential to become a   rock star.   and this?     It didn't mean, however, that I didn't have the potential to become a   rock star.   Or does it mean exactly the same thing? Why does $x$ divided by zero not equal $x$? For bash script, I can use "$@" to access arguments. What's the equivalent when I use an alias? Can gravity be interpreted as the acceleration of spacetime towards an object? Greetings StackExchange!  We were having a conversation with a peer about stupid ways of interpreting theories. We would go to and fro with an interpretations, but we would always find a way to disprove them. There was one, however, that we couldn't refute:  Gravity on a plane in a bidimensional space can be interpreted as the acceleration of spacetime towards an object.   We tried to invalidate in saying that the inertial mass and gravitational mass would be different, thus violating GR, but after some thought this couldn't be. The gravitational mass would accelerate spacetime towards it. If that object we were to be pushed, the pulling of spacetime would make it difficult for it to move.   We know for a fact this can't be true, and we would greatly appreciate any refutation of this thought. I can clarify if needed, or do a sketch. I apologise in advance as I'm not a native speaker. The cardinality of the set of all finite subsets of an infinite set I recently read a lot about neural networks using GRU or LSTM units. There are many easy to use frameworks like tensorflow that do not even require high knowledge about programming. Unfortunately, I never really found good information on how the training of those networks work. Simple backpropagation might probably not work for gated recurrent networks or is just too inefficient for networks with such a high number of variables to learn.  So my question is:  What are the state-of-the-art algorithms used for the initialization and training of neural networks with GRU or LSTM units? I am not looking for frameworks to use, but for initialization and update equations for the internal parameters. Having recently switched to Google Chrome, I was wondering what files and directories I should be including in my backups to make sure that bookmarks and history are included.  Along the same lines, is there a process to restore these settings on a new install?  This is on Windows Vista. \textcite macro produces "Author (year)" correctly but colours first paren with hyperref I am using a custom \textcite macro that I found somewhere. It works nicely except that it makes the opening paren of "Author (year)" part of the link (also colouring it blue) which is not desired.  This is likely just a minor change to the definition of the macro, but the solution eludes me (I don't get where the opening paren is added at all).    Opening paranthesis should not be part of link and should not be coloured.  (M)WE:  \documentclass{scrartcl}  \usepackage{csquotes}  \usepackage[backend=biber,             bibencoding=utf8,             hyperref=true,             natbib=true,             minnames=1,     %% prevent truncation to year-only             backref=true, %% TODO REMOVE before final             bibstyle=apa,             citestyle=authoryear,             ]{biblatex} \DeclareLanguageMapping{english}{english-apa} \addbibresource{bib.bib}   \DeclareCiteCommand{\textcite}   {\boolfalse{cbx:parens}}   {\usebibmacro{citeindex}%    \printtext[bibhyperref]{\usebibmacro{textcite}}}   {\ifbool{cbx:parens}      {\bibcloseparen\global\boolfalse{cbx:parens}}      {}%    \multicitedelim}   {\usebibmacro{textcite:postnote}}   \usepackage[table,svgnames]{xcolor}  \definecolor{solblue}{HTML}{268BD2}  \usepackage[pdftex]{hyperref}  \hypersetup{    pdfhighlight = /P,    colorlinks=true,    urlcolor=solblue,    filecolor=solblue,    linkcolor=solblue,    citecolor=solblue,    raiselinks=true,    breaklinks,    unicode }   \begin{document}  foobar \textcite{thesis_pockrandt} foobar  \end{document}   bib.bib:  @phdthesis{thesis_pockrandt,     author = {Christopher Maximilian Pockrandt},     title = {{Approximate String Matching: Improving Data Structures and Algorithms}},     year = {2019} } How do I add VBA in MS Office? How do I get evolution items like King's Rock?