How to load a .osm file as a basemap tiles in openlayers 3? I am working on an app that needs to be used offline so I have downloaded a map in an .osm file, I need to load it as a basemap. I did some research and found this code I used but it shows the map as a vector layer:  new ol.layer.Vector({             source: new ol.source.Vector({                 format: new ol.format.OSMXML(),                 url: 'Maps/Tangier_Medina.osm',                 projection: 'EPSG:4326'             }) })   I thought at first that specifying the format  ol.format.OSMXML()   will be enough but I need it to be a basemap with tiles.  Anyone knows how please ?
Using local OpenStreetMap (*.OSM) map with Openlayers 3? What do I need to load a .OSM map in a client side javascript app? (Imagine an offline webapp).
When the automorphism group is trivial...... If $G$ is a trivial group , obviously $Aut(G)$  is  trivial . Does the converse  hold $?$ .  When  we  are  given  that a  group $G$  has  trivial  automorphism  group , can we  conclude  that the group  will  be  trivial $?$ .  I  guess  not . For  one  thing , we know  that  $$G/Z(G)\cong Inn(G)$$. So , $Aut(G)$ being  trivial  would  imply  that $$G\cong Z(G)$$  i.e.  $G$  is  commutative . But I  see  nothing about $G'$s being trivial .   The problem  is  that  while I cannot  prove  it , I  could  not  find  a  counter example  either , from  among  the  groups  I  am  familiar  with .   What  is  the non-trivial  commutative  group  that  has  trivial  automorphism  group  $?$ iPhone call log / history Make it possible to retract comment flags I misread the content of a comment, and flagged it. Then I realized that the comment wasn't what I had initially thought. Would it be possible to have the ability to retract comment flags, just like we have the ability to retract flags on questions and answers?  I'm aware of this &#32;. But the answer there is just that it's not possible. At the time it was not possible to retract any flags.   This is a separate  which requests that it may become possible to retract comment flags.  If I've realized a flag was a mistake, I think it's unnecessary to keep it in the queue of content the moderators have to look at. Also, it would add an unnecessary "rejected" to the flaggers statistics. Sure, people should think before they flag. But everyone makes mistakes sometimes. If you make a search for something that returns more than 10,000 items in result. For example, search for  return 161,338 results on MSE. But if you select a page where 10,000+ result should be shown:        In the edge case  shows zero results:        But this is actual for any page where per_page * page_number is more than 10,000.  Though this does not happen for Stack Overflow in English. It looks like all other sites are affected.  Related bug report on ruSO.meta: I want to enable gzip compression for acethehimalaya.com. Can anybody please tell me what is the best way of achieving compression in an Apache Webserver? A story about a male protagonist with special eyes that tells him if things are safe or not; green = safe. Can’t remember if it’s a manga or webtoon. It starts with a male protagonist who was dying on a battlefield, the goddess took pity on him, sent his emotions back into his younger self, (not memories). He had eyes that told him what is safe/good and what is dangerous/bad by using colors: green, orange, red. He used this to gamble, his eyes stopped working, borrowed money from his ex-girlfriend (who works in a cafe). Money got stolen while he took a nap by a river, the evil lady who stole his money tried to get him to enter a contract. From his future emotions, he knew he wanted an invitation instead. This leads to a gathering of people in a school gym, their tasks are given. Invited people are given bags with tools. An oni busted out under the floor. People get killed. Stairways with gates, etc. This is considered the tutorial. Points are given after, those points are needed to buy daily necessities. The protagonist had the highest points, given VIP room. Etc. I cannot install any package. It seems the command apt-get update must be run but it throws some errors:  $ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]      Hit:2 http://ve.archive.ubuntu.com/ubuntu xenial InRelease                      Hit:3 http://ve.archive.ubuntu.com/ubuntu xenial-updates InRelease              Hit:4 http://ve.archive.ubuntu.com/ubuntu xenial-backports InRelease            Fetched 102 kB in 23s (4337 B/s)                                                *** Error in `appstreamcli': double free or corruption (fasttop): 0x000000000210f4b0 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fac8d8317e5] [...] Aborted (core dumped) Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success   'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;   then appstreamcli refresh &gt; /dev/null; fi' E: Sub-process returned an error code Efficient unsigned-to-signed cast avoiding implementation-defined behavior ¿Can you help me with axiom of regularity? I understand that if we define a set such that $A=\{A\}$ we have then a contradiction because of regularity axiom, thus, a set can not be a member of itself. My question is; how can it be so, if I define a set $A=\{A,b\}$ ($b$ disjoint from $A$)?  Thanks. Simplify the expression $\binom{n}{0}+\binom{n+1}{1}+\binom{n+2}{2}+\cdots +\binom{n+k}{k}$ Idiomatic phrase for small type words at end of a document Is there a phrase in English that that can be used in the following situation:  You read an article and from the title you understand that this is something positive, but if you read it all, very carefully, you will see that "small words" at the end reveal the reality.  The same situation is when signing contracts, when something negative for the customer is indicated in the end with small letters Justify text in moderncv cover letter I am writing a cover letter and CV using moderncv. Everything works fine so far, but the text in the cover letter is not justified. I think it is good that it is not hyphenated, but it would look much nicer if the text was justified.  Here is a minimal example:  \documentclass{moderncv} \moderncvstyle{classic}  \usepackage{lipsum} % just for dummy text  \firstname{John} \familyname{Doe}  \begin{document} \recipient{Prof.\ Dr.\ Foo Bar}{} \opening{Dear Professor Dr.\ Bar,} \closing{Yours sincerely,} \enclosure[Attached]{curriculum vit\ae}  \makelettertitle \lipsum[1] \makeletterclosing  \clearpage  \makecvtitle  \section{Education} \cventry{2009--present}{PhD Student}{here}{and}{there}{} \end{document} Get the name of an object's type Is there a JavaScript equivalent of Java's class.getName()? Environment variables when run with 'sudo' A concise definition of a frame of reference in Newtonian mechanics? I've read  on frame of reference and also followed all of the references cited in the text (Salençon, Brillouin, Norton, etc) but I'm struggling to find any concise definition in all of that.   I would like a concise definition for a frame of reference in the context of Newtonian mechanics. This definition should not involve any additional qualifiers such as inertial and must be mature enough as to differentiate a frame of reference and a coordinate system. Is there one such definition? maximal ideal not containing some expression Marginal probability derived from joint probability distribution of a poisson process and binomial process I thought I figured out this problem, but my answer is different than the solutions manual. Hoping someone here can stear me in the correct direction:     Assume the number of automobile collisions that occur on a given stretch of highway per year is a Poisson random variable $X$ with $\mu = 20$. The probability is $p=0.05$ that there will be one or more fatalities in each accident; occurrences of fatalities are independent from one collision to the next. If $Y$ is the number of collisions with one or more fatalities on this stretch of road in one year, find the probability law for $Y$.   So as said, X is poisson, so:  $$p_X(x) = \frac{20^x}{x!}e^{-20}$$  The conditional probability of $Y$ given $X=x$ is a Binomial random variable:  $$p_{Y\mid X}(y\mid x) = \binom{x}{y}p^yq^{x-y}$$  where $Y =$ number of fatal traffic accidents and $x =$ given number of accidents (from poisson distribution)  Therefore the joint probability for $X$ and $Y$ is:  $$p_{X,Y}(x,y)= p_{Y\mid X}\cdot p_X(x) = \binom{x}{y}p^yq^{x-y}\frac{20^x}{x!} e^{-20}$$  to find the marginal probability of $Y$, I sum over $P_{X,Y}$ for all $x$:  \begin{align} p_Y(y) &amp; = \sum_{x=y}^\infty{\binom{x}{y}p^yq^{x-y}\frac{20^x}{x!}e^{-20}} = \frac{(20p)^ye^{-20}}{y!} \sum_{x=y}^\infty {20^{x-y}\frac{q^{x-y}}{(x-y)!}} \\[10pt] &amp; = \frac{(20p)^ye^{-20}}{y!} \sum_{x-y=0}^\infty {20^{x-y}\frac{q^{x-y}}{(x-y)!}} = \frac{(20p)^ye^{-20}}{y!}e^{20q} \end{align}  So:   $$p_Y(y) = \frac{(20p)^ye^{-20p}}{y!}$$  however, the correct answer is apparently $p_Y(y)=\dfrac{e^{-1}}{y!}$ I want to merge two shape files in which one is of point geometry type and other is polygon type in order to get a single layer containing both points and polygon in a single map. What should I do when flagging if I don't see the destination site in the list? Sometimes I want to flag a question on Stack Overflow because it belongs to  or , but I don't see those sites on the list provided when you click on:  It doesn't belong here > off topic  I usually see: Prove that $\left (\frac{a^2 + b^2 +c^2}{a+b+c} \right) ^ {(a+b+c)} > a^a b^b c^c$ Prove that $\left (\dfrac{a^2 + b^2 +c^2}{a+b+c} \right) ^ {(a+b+c)} &gt; a^a b^b c^c$ if $a$, $b$ and $c$ are distinct natural numbers.  Is it possible using induction?