How to skip lines in lstlisting with dots?
lstlisting - line number gaps
How do I run 32-bit programs on a 64-bit Debian/Ubuntu? I have a 64-bit (amd64 a.k.a. x86_64) Debian or Ubuntu installation. I need to run 32-bit (i386/i686) programs occasionally, or to compile programs for a 32-bit system. How can I do this with a minimum of fuss?  Bonus: what if I want to run or test with an older or newer release of the distribution? Let's say I'm running a simple server and have accept()ed a connection from a client.  What is the best way to tell when the client has disconnected? Normally, a client is supposed to send a close command, but what if it disconnects manually or loses network connection altogether? How can the server detect or handle this? I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial?    Kindly help me explain it with detailed explanation. Updating entities in response to collisions - should this be in the collision-detection class or in the entity-updater class? ¿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. How to reverse the direction of the y axes Show that $\int_{0}^{\pi} xf(\sin(x))\text{d}x = \frac{\pi}{2}\int_{0}^{\pi}f(\sin(x))\text{d}x$ Show that   $$\int_{0}^{\pi} xf(\sin(x))\text{d}x = \frac{\pi}{2}\int_{0}^{\pi}f(\sin(x))\text{d}x$$  this is so confusing. i have no idea how to even start. im thinking integration by parts but that doesnt seem right.  hope you guys can help!! How to get the Duke O' Death? I was watching some videos on YouTube showing how to get the Duke O' Death in GTA 5, however what I have seen is sort of unclear.  Some people say you must be a returning player on GTA 5 to get it (what does this mean too BTW?), some people don't say that. Some people say you have to be Trevor, some people don't. Some say the time of day matters, some don't. And apparently you can buy it from Warstock website (I can't).   Can someone please tell me how to get it?! GTA 5 came with my PS4 (I didn't play it on PS3) if that helps. What is the easiest way to encode a PHP string for output to a JavaScript variable?  I have a PHP string which includes quotes and newlines.  I need the contents of this string to be put into a JavaScript variable.  Normally, I would just construct my JavaScript in a PHP file, à la:  &lt;script&gt;   var myvar = "&lt;?php echo $myVarValue;?&gt;"; &lt;/script&gt;   However, this doesn't work when $myVarValue contains quotes or newlines. How to mix three different shaders on the same material? Equivalence principle question I understand the  as "The physics in a freely-falling small laboratory is that of special relativity (SR)." But I'm not quite sure why this is equivalent to "One cannot tell whether a laboratory on Earth is not actually in a rocket accelerating at 1 g". Given a command that changes its behaviour when its output is going to a terminal (e.g. produce coloured output), how can that output be redirected in a pipeline while preserving the changed behaviour?  There must be a utility for that, which I am not aware of.  Some commands, like grep --color=always, have option flags to force the behaviour, but the question is how to work around programs that rely solely on testing their output file descriptor.  If it matters, my shell is bash on Linux. Product Snippets with JSON-LD + Schema.org - Are there any live examples in Google index? ** EDIT Feb 2016 - Finally JSON-LD seems to be working now in SERPS, with extremely fast changes-to-index time, assuming you have everything with Google merchant center feeds syncd and linked. Make sure the price, stock, and identifier are the same on your JSON-LD as it is on the Google shopping feed. New organization-&gt;localbusiness types are live, organization reviews are live... however JSON-LD feed alt= endpoints still do not exist, the homepage schema defining custom site name is not active, and G support for schema itemList/dateModified is still questionable. You can still get pagination results and date modified snippets by using literal text strings in your view/template Showing 1-28 of 8977 Results (321 Pages)and Last updated on February 3rd 2016. To proceed to a deeper exploration of JSON-LD support, see these:       Original Post Below: Google seems to be flip flopping JSON-LD -&gt; Schema.org product [or other types of] snippets. The snippets verify without error in both the testing tool and long term (10+ months) across 5 properties in GWT search console. The snippets have been applied to index, removed, applied, and removed again, seemingly not being applied again in regards to various facets. Since they worked in the past via microdata, and were applied long term, I assume it's due to the switch to JSON-LD. I have not found any official docs nor examples that say &quot;Google will support and render products snippets that use JSON-LD&quot;. Same thing with breadcrumb snippets and review looping. All I see is a handful of Google examples for events, movies, recipes, very basic [incomplete] organization etc. This seems strange to me considering the sheer amount of ecom pages using product snippets trumps the amount of movies, recipes, and events combined. So the question is, does Google officially support, index, and render product markup using JSON-LD? If so, can anyone point me to a live example to verify this? ** This question is not intended to be &quot;opinion/recommendation based&quot;....im looking for a specific link and subsequent SERP result [evidence] showing that JSON-LD products/etc are indeed rendered within Google.com realm as of late August 2015. ** EDIT Nov 16 2015 - Another annoying caveat has been found. Google merchant center validates certain shopping feed fields such as condition, stock, and price against live microdata. However, it seems to not recognize JSON-LD.... although, as stated above, it's recommended to use in all the G examples, and it validates the snippet test. So due to this, your merchant center account could be suspended because of &quot;differences in presentation data&quot; How to get the current time in Python Statistical Entropy and Information theory MySQL: How to retrieve a random row or multiple random rows? What does the comma operator , do? What is the difference between public, protected, package-private and private in Java? How to find a good topic for a PhD research proposal? In many countries an application for a PhD position includes a written research proposal, so my questions is what are some advises/strategies to come up with a good topic/idea for a PhD research proposal and how can one assess the quality/fruitfulness of an idea? As an undergraduate student one just doesn't have the experience to foresee which ideas might have promising research results and which probably won't have. (And I doubt that potential supervisors have the time to comment on every idea of every potential applicant in cases where it is possible to establish some kind of contact before the actual application.) Is there any way to generalise this problem?