I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript.  EDIT: for clarity  I have already created a custom basemap that the answer  describes. The issue is that I would like to create a  but with my own basemap, not ArcGIS's. I hope this makes a little more sense now.
I'm trying to make a map using the Javascript API.  I want to use my own basemap, but I can't find the most simple code to do this.  I always see something like this:    function init() {     map = new esri.Map("mapDiv", {       basemap: "satellite",       center: [-97.395, 37.537],       zoom: 11     });   But I don't want to use the ArcGIS online basemaps.  What is the code to make a map service I am hosting my basemap?
Problem:  Ajax suggest-search on [n] ingredients in recipes. That is: match recipes against multiple ingredients.  For instance: SELECT Recipes using "flower", "salt" would produce: "Pizza", "Bread", "Saltwater" and so forth.  Tables:  Ingredients [     IngredientsID INT [PK],     IngredientsName VARCHAR ]  Recipes [     RecipesID INT [PK],     RecipesName VARCHAR ]  IngredientsRecipes [     IngredientsRecipesID INT [PK],     IngredientsID INT,     RecipesID INT ]   Query:  SELECT     Recipes.RecipesID,     Recipes.RecipesName,     Ingredients.IngredientsID,     Ingredients.IngredientsName FROM     IngredientsRecipes      INNER JOIN Ingredients     ON IngredientsRecipes.IngredientsID = Ingredients.IngredientsID      INNER JOIN Recipes     ON IngredientsRecipes.RecipesID = Recipes.RecipesID WHERE     Ingredients.IngredientsName IN ('salt', 'water', 'flower')   I am currently constructing my query using ASP.NET C# because of the dynamic nature of the WHERE clause.  I bites that I have to construct the query in my code-layer instead of using a stored procedure/pure SQL, which in theory should be much faster.  Have you guys got any thoughts on how I would move all of the logic from my code-layer to pure SQL, or at least how I can optimize the performance of what I'm doing?  I am thinking along the lines of temporary tables:  Step one: SELECT IngredientsID FROM Ingredients and INSERT INTO temp-table  Step two: SELECT RecipesName FROM Recipes joined with IngredientsRecipes joined with temp-table.IngredientsID I know that to better balance paragon and epic level players against similar level monsters, WotC changed the math used for monsters for MM3, and I believe that they changed some of the types of powers they gave monsters.   If I want to update monsters from MM1 or MM2 to be in line with MM3 era monsters, what changes should I make? MariaDB won't start on Ubuntu: Can't lock aria control file Is there a way to format a UTC time into any arbitrary string format I want in java?  Basically I was thinking of having some class take the timestamp and I pass it is string telling it how I want it formated, and it returns the formatted string for me.  Is there a way to do this? How to run Visual Studio post-build events for debug build only How can I limit my post-build events to running only for one type of build?  I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode. Solve for $f(x)$ if $f(f(x))=6x-f(x)$ If $f: [0,\infty) \rightarrow [0,\infty)$ and   $f(f(x))=6x-f(x)$ $f(x)&gt;0$ $  \forall x \in (0,\infty) $   Find f(x) How to find all graph isomorphisms in FindGraphIsomorphism Find all files that are NOT of a specific type/extension in folder? macOS Catalina: "App is damaged and can't be opened. You should move it to the trash." Experiencing a problem with several apps after installing macOS Catalina.  When the app is downloaded from the internet I get the error:     "APP NAME" is damaged and can't be opened. You should move it to the trash.   Any workarounds to bypass macOS gatekeeper for specific apps? "May I go to the bathroom?" and "I asked if I might go to the bathroom."   The modal auxiliary 'may/might' is used to ask permission.     "He may not have understood your question." and "He might not have understood your question."   The same modal auxiliary is used for uncertainty.  Why? What can a soldier requisition and for how long? In the military rank feature it says the soldier can "requisition simple equipment or a horse for temporary use". What qualifies as simple equipment, any simple weapon or something less complex than a catapult?  Additionally, which part of the sentence is the "for temporary use referring to, the simple equipment and the horse or just the simple equipment? Does anyone know of a program or way to log all network activity to a specific program on one's computer (program and/or service)?  I know I can see this "live" in Resource Monitor, but I'm wondering if anyone knows of a program or way to track and log all network activity to/from a specific process and/or service.  I'm finding a lot of "live"-type monitors, like Windows Resource Monitor, but nothing that can log. I'm writing a sports management simulation game. Like most sport management games, it makes heavy use of statistics. I would like to use real players, teams and league names.  i) Am I running the risk of getting into legal battles if I should use the real names? ii) Also what about team colours and emblems etc?    Update Much thanks for all the input! Why is the spoken German in many US films and TV shows so inaccurate? Is there a reason why in so many English-language movies and TV series, whenever someone is speaking "German", they (actors, writers etc.) just don't care about if what they say is right or wrong? This can range from:    just minor grammatical errors e.g. "Schieß dem Fenster" in "Die Hard":                                rambling some made-up words and claiming them to be German e.g. "Lebenslangeschicksalssatz" in "How I met your mother"                                wrong German paired with a bad accent e.g. in "Scrubs"                                up to native German speakers talking complete nonsense e.g. Heidi Klum in HIMYM                                  I don't know if this is the same with other languages (for example there is a scene in Scrubs where the cast speaks Spanish, but there might be similar mistakes:                                 Do the creators and actors just not want to speak correct German and at least use correct German words, or is there simply no money in a $100,000,000 movie production to ask a native speaker to look over your script and maybe correct some of the lines? Prove that if W is a subspace of a finite dimensional vector space V, then dim(W) ≤ dim(V). My attempt at a solution:  Proof  Given a vector space $V$, let $S={v_1,...,v_n}$ be a basis for $V$. Consequently $\dim(V)=n$. Now given $W$, a subspace of $V$, it will be shown that $\dim(W)\le \dim V$   First, consider the case where $W=${0}. Then $dim(W)=0 \le\ n$,   Subsequently, consider the case for $W=V$. Then it follows that $dim(W)=dim(V)=n$.  Finally, consider the case where $W \subset V$ and without loss of generality assume $v_n \notin W$. Let $T={v_1,...,v_k}$ where $k\lt n$ be a basis for the subspace W. Now, since S is a basis for V, for every $v_i \in S$,  $c_1v_1+...+c_nv_n=0$ has only the trivial solution, thus none of the vectors in S can be expressed as linear combinations of the other vectors in S. It follows that the set T is not a basis for V as $v_n$ cannot be generated from T. The $dim(W)$ is given by the number of vectors in the basis. Therefore, $dim(W)=k \lt n$  Therefore, it has been shown that if $W \subseteq V$ then $dim(W) \le dim(V)$ How far do you go with const?  Do you just make functions const when necessary or do you go the whole hog and use it everywhere?  For example, imagine a simple mutator that takes a single boolean parameter:  void SetValue(const bool b) { my_val_ = b; }   Is that const actually useful?  Personally I opt to use it extensively, including parameters, but in this case I wonder if it's worthwhile?  I was also surprised to learn that you can omit const from parameters in a function declaration but can include it in the function definition, e.g.:  .h file  void func(int n, long l);   .cpp file  void func(const int n, const long l)   Is there a reason for this? It seems a little unusual to me. Is the empty set a group? I know that a set G with a binary operation $*$ is a group, if:   $a*b\in G$, for all $a, b \in G$. $*$ is associative:   $$(a*b)*c=a*(b*c) \\ \text{for all }a, b, c\in G.$$   An identity element $e \in G$ exists, such that   $$a*e = e*a = a\\ \text{for all }a\in G.$$   For all elements $a \in G$, there exists an $a^{-1} \in G$, such that:   $$a*a^{-1} = a^{-1}*a=e.$$  Can I use that to show that the empty set is a group? keep duplicates out of $PATH on source I have the following code that's source-d by my .shellrc  PATH="${PATH}:${HOME}/perl5/bin" PATH="${PATH}:${HOME}/.bin" export PATH   but if I make changes to other code and then source this file, my path continues to get longer and longer with each source, each time appending these when they're already there. What can I do to prevent this? Record a macro of windows commands Using Windows 7, is there an in-built or third-party method of recording windows commands and being able to play them back?  As a very basic example of what I would like to be able to do, imagine having two desktop themes that you like to alternate between. The Windows commands would be something like   Open personalisation applet select second theme ok   (I'm calling this a macro because of the equivalent capability in Word.) I have just finished my undergraduate studies. During last two semesters I've taken two subjects dealing with manifolds:   Analysis on manifolds, containing: definition of manifold, tangent space (as derivations and classes of curves), vector fields, vector bundles, flows, Lie derivatives, integration on manifolds (Stokes theorem), forms, Hodge decomposition theorem Introduction to differential geometry (for me it should be called introduction to Riemannian manifolds) containing: tensor calculus introduction, Riemannian manifold definition, connections, curvatures, geodesic, normal coordinates, geodesic completness theorem, classification throught curvature, jacobi fields, harmonic maps.    Now, for me differential geometry was/is a theory about manifolds, so anything dealing with manifolds is branch of differential geometry. On the other hand I am preparing for taking part in local conference called: "algebraic and differential topology".  I have read: ,  ,  , yet I still don't really know if differential topology is subtheory of differential geometry or is it seperate theory and how is it located between differential geometry and algebraic topology. For example I expect that studies on Riemmanian manifolds are part of differential geometry but would problem of classification manifolds up to diffeomorphism be a part of differential topology or geometry ?  Request: I would be grateful for your characterisation of differential topology and differential geometry possibly with examples of problems, theorems present at them.