I've an url like this: "", and I need to get the url and retreive token_id from it.  I was using something like this to get all the path and then split it:  app.get('/get/token', function (req, res) {      var fullURL = req.protocol + "://" + req.get('host') + req.url;     console.log(fullURL); });   But the result is:  http://domain.com/get/token   Any suggestion in how to retreive the token_id or the possibility to match the url and then split it?
I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. I'm using asp.net.
I did not create a swap partition during Ubuntu installation.  Later, I freed up some space and made a swap partition.  Now after each boot up, I am manually opening gparted to right-click the swap partition to turn on the 'swapon' option.  How can I automatically enable the swap partition at boot?  Also, if I had not created the swap partition, what are my other options? Site choice dropdown cannot be shown on Android app Steps to reproduce:   Ask a question, open the "Ask on which site?" dropdown menu. Press the back button.   Issue: the menu will disappear and you can't bring it back by tapping the arrow or the field. Only typing text or selecting another field then tapping back will return the dropdown menu. Symbol for “such that” (not in set) How to make Portable QGIS 3 Is it possible to make QGIS 3 portable with changed location for Qgis setup parameters folder.  For QGIS 2 it looked like this in qgis.bat file:     qgis --optionspath "X:\qgis" --configpath "X:\qgisini"   For QGIS 3 it doesn't work. Setup parameters are default placed in:      C:\Users\xxx\AppData\Roaming\QGIS Just wondering if someone can give me an explanation for this capacitor layout - what is it's function? The chip to the right is an ADC.  Circled in blue.    I'm guessing it is well known but i don't know how to search for it. How to center text vertically within a textbox in Photoshop Why is ATP the most prevalent form of chemical energy storage and utilization in most cells? Dilemma: Present Perfect Or Perfect Continuous? escaping double quotes and percent signs (%) in cron The following command works from prompt but not from crontab.   grep abc  /var/log/messages | grep "`date '+%B %d'`" | mail -s"abc log of `hostname`" shantanu.oak+`hostname`@gmail.com   I need to add it to daily cron. Reference to undeclared entity exception while working with XML I am trying to set the innerxml of a xmldoc but get the exception: Reference to undeclared entity  XmlDocument xmldoc = new XmlDocument(); string text = "Hello, I am text &amp;alpha; &amp;nbsp; &amp;ndash; &amp;mdash;" xmldoc.InnerXml = "&lt;p&gt;" + text + "&lt;/p&gt;";   This throws the exception:      Reference to undeclared entity 'alpha'. Line 2, position 2..    How would I go about solving this problem? Does potential energy in gravitationall field increase mass? Can md5 be used for encrypting data? I know that md5 shouldn't be used for password hashing because of collisions and possibility of making dictionary attacks e.g. using rainbow tables. But what about other uses? Can I use md5 for encrypting data?  Say, attacker gains access to database where sensitive data was stored using md5. He wants to know just this data that was hashed, not another data that gives this hash. Can he do it?  I know that there are better cryptographic hash functions so don't suggest to use them if md5 is enough. Clicking on tags in global search results is broken If you search for something on "all sites" (using the searchbox at the top of , you'll reach the search results, e.g.  .  If you click directly on a tag on that page, e.g.        You get 404 Page Not Found error, e.g.     Steps to reproduce   Go to  and enter e.g. "keyforge" into the "Search all sites" field. Arrive at  Click on the "keyforge" tag below a search entry. Reach  (404 page not found)   Expected behaviour  Reach   System Info  Happens in both Firefox and Vivaldi browsers on Windows 10. How to restore original size and unboot my bootable USB pendrive I recently made my pen-drive bootable with Ubuntu 14.04. But I need to unboot my pen-drive now. I formatted my pen-drive once,But the size of the pen-drive still shows 2.25 MB. Whereas,this is an 8GB pen-drive. How can I get rid of this problem. I'm still using Windows 7. What and with what was Luthor doing in the ship at the end of the movie? After Doomsday was defeated, a spec-ops team sent to the Kryptionian ship in Metropolis found Luthor submerged in water, in front of a... thing, which "held" three metal cubes. The thing looked up, roars, and dissipates into thin air.    What the hell was that all about? I am really confused. What was that creature and what was Luthor doing with it? Retrieve Voice Memos from device? iOS seems to refuse to allow me to email "long" voice memos, and I'm unaware of any way to extract them from iTunes backups of my phone. How can I retrieve entire voice memos that aren't really short? Given $S \in B(Y^{*}, X^{*})$, does there exist $T\in B(X,Y)$ such that $S=T^{*}$? Derive a formula to find the number of trailing zeroes in $n!$ trying to install Astromenace on my linux mint 14 cinnamon pc so i am following this tutorial as it is the only one i can find and any that i can find are the same as this one:    but when i type in the first command i gives me this  myname@myname-System-Product-Name ~ $ sudo wget -q -O- http://archive.getdeb.net/getdeb-archive.key | apt-key add - [sudo] password for myname: ERROR: This command can only be used by root. The new software center in Ubuntu 16.04 shows no application data found This is the error I get when I open the software center. I've tried rebooting and running sudo apt-get update but I see no improvement. It worked earlier but I don't know what went wrong since then. I'm using Ubuntu 16.04 final release on a Dell Inspiron 15R. Any advice will be appreciated. Thanks in advance.  EDIT: The problem magically solved itself without me doing anything special (or maybe inadvertently doing something, I don't know). So I'd still like to get to the root of this.