How to obtain the current base URL dynamically?
how to get the base url from jsp request object?
youtube-dl failed to extract signature I am wondering if there is anything in Marvel comic book canon or in the MCU that says that the Infinity Gauntlet has the power to make someone fall in love with the person wearing the Infinity Gauntlet, or that the wearer of the Infinity Gauntlet can use the Infinity Gauntlet to make two strangers fall in love with each other? Perhaps the combined power of the Mind Stone and the Soul Stone would make two people fall in love. fleqn document class option, long text lines, and hyperref package When the fleqn option is used, the vertical spacing before an equation placed right after a "long" text line (exactly \linewidth I would say) is improperly set up. See below:    From the mathmode user guide, this could probably be fixed through the \topsep length. Is it the right way to proceed? The problem is reproduced by the code below:  \documentclass[12pt,fleqn]{book} \usepackage{amsmath} \usepackage{hyperref} \begin{document} \chapter{plo} \section{plo} eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùaeoiuaem oeiu eoiu eoiu oeee. eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùaeoiuaemm \begin{equation} \cos\pi=-1 \end{equation} eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùaeoiuaem oeiu eoiu eoiu oeee. eoiu oieu oeiuoe ueoi ueoi ueoiu eoiu oeu oe iupaêio umùae \begin{equation} \cos\pi=-1 \end{equation} \end{document}   There is something wrong involving hyperref, amsmath, and fleqn. Removing one of those removes the problem. For macro photography, how do I choose between a compact camera or a mirrorless interchangeable-lens camera (without considering a lens)?   What indicator(s) should I look for when making the choice? Suppress black box at end of line Under TeX, when I write a line too long, it prints a fat black box at the end of the line.  That is probably a feature, but I dislike it.  How to turn that OFF? Is there a command-line option or something else?   I usually use LaTeX, but I have a complicated file which happens to be plain TeX. Clipping Rasters with a mask layer error I've got a NDVI layer that I'm trying to clip with a vector file but when I try and use GDAL Tools clipper I get an error.  That shows up like this:  What am I doing wrong?  This is before I even pick the mask layer!  Traceback (most recent call last):   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\widgetPluginBase.py", line 28, in someValueChanged     self.emit(SIGNAL("valuesChanged(const QStringList &amp;)"), self.getArguments())   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\doClipper.py", line 105, in getArguments     return self.getArgsModeMask()   File "C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins\GdalTools\tools\doClipper.py", line 143, in getArgsModeMask     if self.alphaBandCheck.isChecked(): TypeError: 'sip.methoddescriptor' object is not callable  Python version: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]  QGIS version: 1.7.3-Wroclaw Wroclaw, 00624b3  Python path: ['C:\Users\dean.walker\.qgis\python\plugins\GeoCoding', 'C:\Users\dean.walker\.qgis\python\plugins\GeoCoding', 'C:/PROGRA~1/QUANTU~1/apps/qgis/./python', 'C:/Users/dean.walker/.qgis/python', 'C:/Users/dean.walker/.qgis/python/plugins', 'C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\QUANTU~1\bin\python25.zip', 'C:\PROGRA~1\QUANTU~1\apps\Python25\DLLs', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\plat-win', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\lib-tk', 'C:\PROGRA~1\QUANTU~1\apps\qgis\bin', 'C:\PROGRA~1\QUANTU~1\apps\Python25', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\win32', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\win32\lib', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\Pythonwin', 'C:\PROGRA~1\QUANTU~1\apps\Python25\lib\site-packages\wx-2.8-msw-unicode', '/usr/share/qgis/python', 'C:\PROGRA~1\QUANTU~1\apps\qgis\python\plugins\fTools\tools'] Run a command in a shell and keep running the command when you close the session I am using Putty to connect to a remote server. What I want to know is if there is any way to write my commands and allow them to keep running after I close the session with Putty. The reason for this is that I do not want to keep the computer ON all the time. Is there any way to do this?.  Update with the solution  For my question as it is presented the best solution is use one of the commands provided such as nohup, because you do not have to install any additional software. But if you are in the same problem use screen, install it and use it. It is amazing.  I have selected the answer of Norman Ramsey as favourite because propose several solutions using commands and screen. But please check the other answers specially the one of PEZ, then you get an insight of what screen is able todo. How can I get the list of files in a directory using C or C++? How can I determine the list of files in a directory from inside my C or C++ code?  I'm not allowed to execute the ls command and parse the results from within my program. Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not. Why are the even and odd Regge trajectories degenerate? This is an old classic which I don't think ever got a clear answer. The Gribov-Froissart projection that gives the relativistic version of Regge trajectories treats even angular momentum differently from odd angular momentum. The trajectory functions in general are separate for even and odd angular momentum.  But in QCD, the odd trajectories interpolate the even trajectories in every case--- the two trajectories are degenerate. Is there a way of understanding why the even-odd trajectories are degenerate? Is is a symmetry argument? Can you find a natural system where they are not degenerate?  A quick google search revealed this reference, which doesn't answer the question, but gives an experimental signature for the degeneracy:  , There is probably excellent data by now on this. How to view recently opened media files? In windows we have an option to view recently opened media files as my recent documents, I was  wondering does there exists something like that in Ubuntu?  via terminal or via GUI? What is the relationship between ISO, aperture, and shutter speed? I know digital cameras have ISO options, and that ISO is the camera's sensitivity to light, but if you set  higher ISO then you can get a noisy image. I also know there are two other camera options, shutter speed and aperture.   What is the relationship of between them? Is there any equation, or something like that?  For example, if I set the ISO to 640, then how should I set the shutter speed and aperture? No Dialect mapping for JDBC type: -9 Names of some months don't make sense I'm not a native English speaker but I'm always trying to do my best. Unfortunately I have a real problem with dates for some odd reason, I couldn't learn when was my birthday until I was 12 years old.  Anyway, as I was learning names of the months on English, and since I know some Latin from high school I noticed that English months don't match up with their Latin numeral counterparts. For example:  September - 9. month October - 10. month November - 11. month December - 12. month  While on latin septem, octo, novem and decem are words for 7, 8, 9 and 10.  So, does anyone know why is that. At first I thought it had something to do with switch from Julian to Gregorian calendar but I figured it's too small of a difference.  Anyone? :) Why with two classes, LDA gives only one dimension? I am working with dimensionality reduction algorithms. Linear Discriminant Analysis (LDA) is a supervised algorithm that takes into account the class label (which is not the case of PCA for example). I am using Python to do a comparative study between some algorithms.  Why with two classes (k = 2), regardless of the data dimensionality, LDA gives one dimension, i.e. the new subspace is composed of only one dimension? For example if I try to project my dataset (of 100 attributes and 2 classes) to 10-dimensional space by using LDA(n_components=10) I only obtain 1 dimension?  For k&gt;2 I can obtain the number of discriminant vectors that I specified as n_components. How can I get n_components dimensions for k=2? What antivirus programs are available for Ubuntu?  We previously used Symantec Endpoint Protection but it does not work in Ubuntu. How to Implement Page Object and Page Factory Pattern in Selenium Webdriver? 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. Display top tags & percentiles from additional Stack Exchange sites on Careers Are the "top tags &amp; percentiles" from Stack Exchange sites other than Stack Overflow displayed in the Careers site?  If not can they be added?  If they are, then what are the requirements for them being displayed in the Careers site? You know, some of us read right to left...  Certain sites like  and  have an obvious need for this, as Arabic and Hebrew are Right To Left (RTL) languages. Many answers on those sites cite the Torah and the Quran respectively. Directly quoting these sources properly requires RTL text. Today I saw a sentence:  She surely can do it.  What does that mean? How does it differ from:  She certainly can do it. Surely she can do it.  This slight difference in meaning of those sentences I am not able to notice. Could you please help me? Thanks in advance!