How to get the HTML source of a webpage in Ruby
Equivalent of cURL for Ruby?
Do things use apostrophe for indicating possessive? Possible Duplicate:          If someone owns something I would say: Mom's car.  But if the owner is not a person, does it actually own it according to English rules or common usage? Which phrase is right?         The house windows.   The house's windows.   The windows of the house. (Or something like that.)      (Feel free to modify this question so it would be clear for other people.) Disable flagging on old chat messages In response to the effect  is referring, I am proposing one of two possible scenarios:   Disallow flags on chat messages older than X hours, or Remove old flagged posts from the transcript, but no suspension occurs (as in the aforementioned question). How can I tell if an ETF is expensive? For stocks, I can easily look at the price/earnings ratio, and, according to The Intelligent Investor, stand clear of those with a ratio higher than 20.  How can I tell if the current price of an ETF is a good price to buy it? Are there such simple metrics? The space $C^0([0;1],\mathbb{R})$ of all continuous, real-valued functions on $[0,1]$ is not reflexive. Why must $\mathbb{Q}[\sqrt{2}, \sqrt{3}]$ -- the set of all polynomials in $\sqrt{2}$ and $\sqrt{3}$ with rational coefficients  -- contain multiplicative inverses?   I have gathered that every element of $\mathbb{Q}[\sqrt{2}, \sqrt{3}]$ takes form $a + b\sqrt{2} + c\sqrt{3} + d\sqrt{2}\sqrt{3}$ for some $a,b,c,d \in \mathbb{Q}$, and I have shown that $\mathbb{Q}[\sqrt{2}]$ and $\mathbb{Q}[\sqrt{3}]$ are both fields, but it's not clear to me why this allows for general multiplicative inverses to exist in $\mathbb{Q}[\sqrt{2}, \sqrt{3}]$. Dual Canadian and British citizen - healthcare coverage in the UK? Why is this CW post saying 36% unknown? Looking at         it says "36% unknown". No user by the name of 'unknown' appears in the  ()  What madness is this? Who is this 'unknown' you speak of? Should OK button be on left of Cancel button or vice versa?   Are there any studies suggesting either of the solutions? Are there any add-ons that will cause a browser to automatically refresh a page when a particular file changes on disk? What is the command to open the shutdown dialog? I would like to use a gesture to shutdown/restart my computer and I need to know the command that launches the shutdown dialog: Working in Cycles.  Say I have a "disco ball" with a glossy shader. I'm pointing a spot light to it, and I'm trying to have the reflections of that light illuminate the diffuse material on the walls with the patterns from the ball.    I get this:    but I'd like to get something like:    For the illustration I placed a point light inside the ball an removed faces. But what I'd like to do is move the light around the ball so that the light reflected from it changes like it would do in real life.   Is that possible at this point?  EDIT:  Just for the record here's the image rendered in LuxRender (yet another program to learn...) Which is correct, and why?     some days we went on adventures — him maneuvering our scooter, me resting my chin …   or     some days we went on adventures — he maneuvering our scooter, I resting my chin … Where can I find my .emacs file for Emacs running on Windows? I tried looking for the .emacs file for my Windows installation for Emacs, but I could not find it. Does it have the same filename under Windows as in Unix?  Do I have to create it myself? If so, under what specific directory does it go? Fantasy Short Story that appeared in an anthology about 1968-1971 I read this short story around 1971.  The basic plot is for a steward to lead the king's son to another city state.  Along the way they have a number of interactions with people/subjects that demonstrate the immaturity of the son.  Last one involves the son beating up the suitor of a innkeeper's daughter.  When confronted by the steward, the son displays his contempt and chauvinistic regard of his future subjects and the steward kills him.  Turns out the trip was a test of his suitability to assume the crown and the steward explains to the king that he was not worthy.  Been looking in all the anthologies can seem unable to find it.  Thanks for your help I am having problems starting my Apache server, because port 443 is already in use.  It turns out, the system process (PID 4) uses the port 443. I don't have IIS installed, the services.msc shows (predictably) no Exchange server running, nor WWW-Services, nor IIS. I have no idea how to find out what service uses that port, short of just disabling each service one after the other, and I am not even sure that would help.  I would be grateful if someone could point me towards how I can get my SSL port back, thank you :)  P.S.: Of course "just switch Apache to another port for SSL" would solve the problem of not being able to start Apache. But I'd still like to know what is so insistent about hogging port 443. :)    I by now took the 'hard route' and disabled services one after the other. It turned out that the "Routing and RAS" service was the culprit.  Thank you all for the valuable input and the new tools in the combat against "WTF does my system do now?". Should the eigenkets be weighted in $|P\rangle = \sum\limits_{r}|\xi^r\rangle$? Page 37 of Dirac's book The Principles of Quantum Mechanics, states  The condition for the eigenstates of $\xi$ to form a complete set must thus be formulated, that any ket $|P\rangle$ can be expressed as an integral plus a sum of eigenkets of $\xi$, i.e. $$|P\rangle = \int |\xi'c\rangle\; d\xi' + \sum\limits_{r}|\xi^rd\rangle$$ where the $|\xi'c\rangle$, $|\xi^rd\rangle$ are all eigenkets of $\xi$, the labels c and d being inserted to distinguish them when the eigenvalues $\xi'$ and $\xi^r$ are equal, and where the integral is taken over the whole range of eigenvalues and the sum is taken over any selection of them.  I find it inconsistent that the eigenkets under the integral are weighted by what appears to be a differential eigenvalue $d\xi'$, yet all the eigenkets under the summation are weighted by the value 1. Is this correct? Explicit norm on $\mathcal{C}^0(\mathbb{R},\mathbb{R})$ Do you know an explicit norm on $\mathcal{C}^0(\mathbb{R},\mathbb{R})$? Using the axiom of choice, every vector space admits a norm but have you an explicit formula on  $\mathcal{C}^0(\mathbb{R},\mathbb{R})$?  A related question is: Can we proved that $\mathcal{C}^0(\mathbb{R},\mathbb{R})$ has a norm without the axiom of choice? How to type special/accented letters in LaTeX? the converse of Pythagoras Theorem PyQGIS couldn't import processing with standalone script I have read post on that problem (). The problem is even with a sys.path.append it couldn't import processing. It's very frustrated. Here the code I used:  #!/usr/bin/python  def main():     layer = QgsVectorLayer('/path/to/file.shp', "BAT","ogr")     QgsMapLayerRegistry.instance().addMapLayers([layer])      # Testing processing     try :         Processing.runalg("qgis:creategrid")     except:         print "Processing module has not been loaded"      #Check the QgsMapLayerRegistry for the layers     print QgsMapLayerRegistry.instance().mapLayers()     # Check if they are valid     print layer.isValid()  if __name__=="__main__":     import sys     from PyQt4.QtGui import *     from qgis.core import *     app = QApplication([])     QgsApplication.setPrefixPath("/usr", True)     QgsApplication.initQgis()      sys.path.append('home/qsuser/.qgis2/python/plugins')      # try to load processing     try:         from processing.core.Processing import Processing         Processing.initialize()      except:         print "unable to load processing"      main()      QgsApplication.exitQgis()   I could load QGIS and layer is valid that's ok, but processing resist to me. I am on Ubuntu 14.04 I use Pycharm to do it.  I tried on terminal with the python console, it raised this error:  Traceback (most recent call last):   File "&lt;stdin&gt;", line 1, in &lt;module&gt;   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/__init__.py", line 28, in &lt;module&gt;     from processing.tools.dataobjects import *   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/tools/dataobjects.py", line 35, in &lt;module&gt;     from processing.core.ProcessingConfig import ProcessingConfig   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/core/ProcessingConfig.py", line 30, in &lt;module&gt;     from PyQt4.QtCore import QPyNullVariant, QCoreApplication, QSettings ImportError: cannot import name QPyNullVariant   I don't know what I am missing.   Settings :  Qgis 2.12.1-Lyon Ubuntu 14.04 Trusty IDE : Pycharm 5 community Processing : 2.12.2   -- Edit -- And with the changes suggest by mathias kuhn  #!/usr/bin/python  def main():     layer = QgsVectorLayer('/path/to/file.shp', "BAT","ogr")     QgsMapLayerRegistry.instance().addMapLayers([layer])      # Testing processing     try :         Processing.runalg("qgis:creategrid")     except:         print "Processing module has not been loaded"      #Check the QgsMapLayerRegistry for the layers     print QgsMapLayerRegistry.instance().mapLayers()     # Check if they are valid     print layer.isValid()  if __name__=="__main__":     import sys     from qgis.core import *             from PyQt4.QtGui import *     app = QApplication([])     QgsApplication.setPrefixPath("/usr", True)     QgsApplication.initQgis()      sys.path.append('home/user/.qgis2/python/plugins')      # try to load processing     try:         from processing.core.Processing import Processing         Processing.initialize()      except:         print "unable to load processing"      main()      QgsApplication.exitQgis()