While writing , I noticed an annoying issue with the way the StackExchange software formats in-line code snippets (&lt;code&gt;...&lt;/code&gt; or &#96;...&#96;) &mdash; any groups of consecutive whitespace are collapsed into a single space when the markup is displayed.  For example, if I write this:  To put two spaces between each element, use `array.join("  ")`.   It will be rendered like this:     To put two spaces between each element, use array.join("  ").   Notice that there appears to be only one space between the quotes in the rendered version.  Worse yet, even if you cut and paste the code snippet directly into a program, you'll most likely end up with only one space.  (At least, that's how it works in Firefox, and probably in most other browsers too.)  In posts this isn't so bad, because we can always use full code blocks if we have to, but this problem makes posting white-space sensitive code snippets in comments very difficult.  However, there is a very simple fix for this problem: just add the following CSS rule to the site style sheets:  code { white-space: pre-wrap; }   This will  of preventing browsers from collapsing consecutive spaces into one in code snippets.  Long lines will still wrap normally, so this change won't affect the appearance of most existing code snippets (and, where it does, I suspect the change will be an improvement at least as often as not).  As a minor side effect, this change makes browsers honor line breaks inside in-line code snippets.  I suspect at least some users (myself included) would consider this a useful feature.  If this is not desired for some reason, a simple work-around would be to strip line breaks from code snippets during Markdown parsing.  I've tested the effect of this change in Firefox using a local style sheet, and it seems to work fine.  The white-space: pre-wrap declaration is  (IE7 and older), but in those browsers, the code snippets should simply continue to look as they do currently.    Edit: In the comments below, Dennis describes a workaround using non-breaking spaces (&amp;nbsp;, U+00A0).  This is somewhat inconvenient in comments (or using the backtick syntax in posts), since the non-breaking spaces need to be typed in literally, but it does provide a way to display several consecutive spaces in in-line code snippets if one really needs to.  Still, the existence of this workaround doesn't eliminate the reasons for this feature request stated above.
Code is supposed to be exact and "as-is". Sometimes, showing two spaces is important. In a comment, it is not possible to show code with  multiple   spaces. This became apparent in  (see comments).  EDIT: apparently this bug is larger then I thought: multiple    spaces   here are neither preserved in normal question text. Pity (though I couldn't find this reported before, I'd assume it is).  Workaround: use Alt+0160 (windows), or U+00A0 (Unicode NBSP), as I did in the example above.
How do I calculate the power consumed by a lightbulb? I'm studying a lightbulb and its variable resistance, given by the expression:  $R(T) = Ro[1 + α(T-T_0)]$, where $R_0$ is the resistance of the lamp at $T_0$.  In this case, $R$ is not given by Ohm's law ($V=Ri$). So, which expression can I use to calculate the power consumed by a lightbulb?   $P = R\cdot i^2$ $P = \frac{V^2}{R}$ $P = V\cdot i$ (I don't think I can use this one)   I have measured the current and the e.p.d. at the bulb using instruments. It  to disable internet search results in start menu searches before the Windows 10 Creators Update, but I've just clean installed a new Windows 10 Pro image and that setting is gone. Is there some way to disable it through editing the registry/etc? How do you check if a JavaScript Object is a DOM Object? I'm trying to get:  document.createElement('div')  //=&gt; true {tagName: 'foobar something'}  //=&gt; false   In my own scripts, I used to just use this since I never needed tagName as a property:  if (!object.tagName) throw ...;   So for the second object, I came up with the following as a quick solution -- which mostly works. ;)  The problem is, it depends on browsers enforcing read-only properties, which not all do.  function isDOM(obj) {   var tag = obj.tagName;   try {     obj.tagName = '';  // Read-only for DOM, should throw exception     obj.tagName = tag; // Restore for normal objects     return false;   } catch (e) {     return true;   } }   Is there a good substitute? How does electricity propagate in a conductor? What's wrong with this query: INSERT INTO Users( weight, desiredWeight ) VALUES ( 160, 145 ) WHERE id = 1;  It works without the WHERE clause. I've seemed to have forgot my SQL. Possible Duplicate:          Here is my sync script:  ssh user@remote.host /etc/init.d/some_service stop scp user@remote.host:/var/some_service/events ./events scp ./new_data user@remote.host:/var/some_service/new_data ssh user@remote.host /etc/init.d/some_service start   As You can see, it stops service, perform some copies with scp and starts service back.  The problem: it "costs" 4 "similar" ssh connections in a row.  Is there any way to make all the work, using one physical ssh connection? I know as a fact that I've gotten liquids larger than 3 ounces through the TSA scanner systems (such as sunscreen). I was scolded one time for bringing a shampoo container, but I was still ultimately allowed to bring that container through.  In any case, how often are liquids larger than 3 ounces ultimately confisticated, if I put them in a ziploc bag where they can be clearly seen? ASCII art generator so I've recently installed my first Ubuntu, to be precise, a daily build of 16.04, on my new laptop since the hardware was to new for 15.10. Now I'm in the process of setting it up and I want to install php5 and some extensions.  When I execute sudo apt-get install libapache2-mod-php5 I get the error message that there is no installation package available for php5 and libapache2.  The error message is in german, so I doubt that this would help, but anyways here it is. :-) E: For package »libapache2-mod-php5« existiert kein Installationskandidat.  Do I need to add a apt-get repository? Or what am I doing wrong? Parsing domain from a URL How do I resolve slow and choppy performance in virtualbox? Ubuntu runs very slowly inside of VirtualBox.  How do I run Ubuntu with unity or enabled transparency smoothly with VirtualBox? How do I run a program with commandline arguments using GDB within a Bash script? Why does the reputation need to be publicly displayed? How to find a Java Memory Leak How do you find a memory leak in Java (using, for example, JHat)? I have tried to load the heap dump up in JHat to take a basic look. However, I do not understand how I am supposed to be able to find the root reference () or whatever it is called. Basically, I can tell that there are several hundred megabytes of hash table entries ([java.util.HashMap$Entry or something like that), but maps are used all over the place... Is there some way to search for large maps, or perhaps find general roots of large object trees?  [Edit] Ok, I've read the answers so far but let's just say I am a cheap bastard (meaning I am more interested in learning how to use JHat than to pay for JProfiler). Also, JHat is always available since it is part of the JDK. Unless of course there is no way with JHat but brute force, but I can't believe that can be the case.  Also, I do not think I will be able to actually modify (adding logging of all map sizes) and run it for long enough for me to notice the leak. How do I find a point a given distance from another point along a line? Which is more correct:     Apropos of your earlier comment, I decided to....   or      Apropos your earlier comment, I decided to...   Actually, apropos is so fancy a word, even I, a word maven if I do say so myself, am not entirely sure when to use it.  If I may add to my preposition question, are there any constructions where it would be appropriate to use something like with regard to and not apropos? Getting "System program problem detected" pops up regularly after upgrade This started to happen immediately after I had rebooted the first time after doing a system upgrade. It first starts with a dialogue that says "System program problem detected". Then when I try to hit 'report problem' not much happens. I am led through a dialogue that always ends up the problem cannot be solved.  I am aware this is not a lot of information, however I'm not sure which information I need to publish and how should I obtain it to debug this problem.  Here's a screenshot! I am learning basics of the category theory (CT).  I do understand that CT is a modern powerful framework to describe various branches of mathematics in a unified way.  I do admit that category's definition tells a lot about the whole thing and focuses on the most important properties, shadowing unnecessary details. However, the more I go forward, the more it feels like it should explicitly require a notion of morphisms equality (like it does with morphism composition). It feels so because equality or inequality of morphisms arises everywhere, since the very beginning: any commutative diagram eventually reduces to an equality of two different paths and many other things involve equality as well. Even composition is defined grounding upon an (implicit) equality!  I'll try to give an example of my concern. Consider $\mathbb{SET}$. Its objects are sets and morphisms are functions. Now, let's recall that functions are sets as well - to be more precise, a function $f : A \mapsto B$ is a subset of a $A \times B$ obeying certain properties, which I omit. Thus, one could argue that $f$ is both a morphism between objects $A, B \in Obj(\mathbb{SET})$ and an object defined as a set of pairs $\{ (a_1 \in A, b_1 \in B), ..., (a_n \in A, b_n \in B) \}$ and those are equal because both are essentially exactly the same thing.  I hope my concern is clear and I need some kind of "conceptual insight" from knowledgeable people to move forward. Please give me the right perspective. How to test API integration in marketing cloud? I have created a API package under Setup -> Installed Packages.   I have created API Integration component for the package .I have the below basic details for the component.   Client Id Client Secret Authentication Base URI REST Base URI   I want to test the created API package using any tool( Postman or other API testing tools).  I was able to find API integration testing links for SFDC but not for the Marketing Cloud.   What is the redirect URL to be used in the API package? I have created an API integration package of Integration type ( Web APP)   In web app properties, what is the redirect URL to be provided? Print leading zeros with C++ output operator?