I have a HTTP long polling endpoint that anyone can connect to for updates. The nature of the application requires the solution to be open, it cannot sit behind any form of authentication. The server accepts a maximum of 1000 connections, but currently there is nothing stoping one person from spamming all 1000 connections.   Is there any nginx configuration options that can be used to attempt to limit one connection per user?
I am investigating the vulnerability to  and I think I understand how and why this sort of attack works.  What I don't understand is why Lighttpd and NginX are not affected (according to the same article as linked above). What do they make so different?
All I want to see are the specs Is there a way to see the processor and speed of a Cisco UCS B230 Blade Server without the enclosure that runs it? The enclosure that we have does not power on and all I need is to see what cpu and processor speed is in it. Why Doesn't a Bootable USB Boot What is the most CPU efficient way to ensure that NumLock is on? Situation: I have a script watching over NumLock status, well not really watching, but turning it On every 1 second. The script is running in the background.  Reasoning: I often accidentally turn off NumLock. And I have no indicator of NumLock status on the keyboard.  OS, DE, DM, WM, xmodmap:  :  $ lsb_release -a  No LSB modules are available. Distributor ID: LinuxMint Description:    Linux Mint 18 Sarah Release:    18 Codename:   sarah   :  echo $DESKTOP_SESSION  cinnamon   :  cat /etc/X11/default-display-manager  /usr/sbin/mdm   :  wmctrl -m | head -n 1  Name: Mutter (Muffin)   :  xmodmap -pm  xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):  shift       Shift_L (0x32),  Shift_R (0x3e) lock        Caps_Lock (0x42) control     Control_L (0x25),  Control_R (0x69) mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd) mod2        Num_Lock (0x4d) mod3       mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf) mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)   My original Bash script follows:  #!/bin/bash  while true do    numlockx on    sleep 1s  done   As you can see, the script does not care about current status of NumLock. It just keeps turning it on.  Goal: I would like to make the script at least somewhat CPU efficient.  Question: What is the most CPU efficient way to ensure that NumLock is On in Linux (Mint 18)? How do I edit/access Chrome app properties on GNOME? I looking for help with proving the following inequality. Any relevant logarithmic identities would be great. Tried differentiating and taking limits and I'm lost as to how to approach this.   $$\frac 1{x+1}&lt;\ln\left(\frac{x+1}x\right)&lt;0.5\left(\frac 1x+\frac 1{x+1}\right)$$ What are the pros and cons of adding a vapor barrier behind shower backer board? Find the value of $P(1)$ Let $P (x) = x^2 + bx + c$, where $b$ and $c$ are integer.       If $P(x)$ is a factor of both $x^4 + 6x^2 + 25$ and $3x^4 + 4x^2 + 28x  + 5$, find the value of $P(1)$.   I am not being able to solve this.Some hints/suggestions?  Tell me if I can edit to improve this question.I could'nt try much.Got stuck. Find duplicate records in MySQL What is the difference between "likelihood" and "probability"? The  claims that likelihood and probability are distinct concepts.     In non-technical parlance, "likelihood" is usually a synonym for "probability," but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes.    Can someone give a more down-to-earth description of what this means?  In addition, some examples of how "probability" and "likelihood" disagree would be nice. Power series of a function I am wondering if there are any functions $f(x)$ such that it cannot be expressed as a power series of $x$? This might turn out to be a silly question, but I can't think of one at the moment.   Thanks! When does $\,n\mid q^3 \Rightarrow n\mid q\,$? I think this is true because of prime factorisations, i.e.  If $3$ a factor of the prime factorisation of $q^3$, then $3$ is a factor of the prime factorisation of $q$.  Therefore If $3$ divides $q^3$, then $3$ divides $q$.  Or for a general case, if $n$ divides $q^3$; then $n$ divides $q$. Is this correct? I just installed Ubuntu alongside to Windows 7, and now Windows 7 will not boot.  When the system starts, it shows me entry for Windows 7 in the boot menu, when I click on the Windows 7 option in the boot menu, after few seconds it will show me the boot menu again and Windows will not boot. It shows me no error message. Windows 7 option is available in the boot menu but it just does not boot.  Here are my boot info results   update - 30/01/2012 I tried windows recovery - fix startup issues - that showed no problems but issues were not resolved  Then I tried the widnows recovery console and run following commands  bootrec /fixboot bootrec/ fixmbr bootrec /RebuildBCD   But that does not help, Now neither ubuntu nor windows will boot. When I boot from windows CD it shows me a valid windows installation in c:\ drive.  update After a lot of help I got from #ubuntu channel and trying out different things, ultimately I can now boot both windows and ubuntu, still, the issue is not completely resolved though.  Here's what made it work  Boot using ubuntu live CD and then run the testdisk utility as steps mentioned  Restart system and I was able to see the boot menu and boot into Ubuntu, then put the following code in boot/grub/custom.cfg. Restart and now I can see one more entry to boot win7, clicking on it boots windows.  menuentry "Windows 7 (loader) with grub ntldr workaround" --class windows --class os   {     insmod part_msdos     insmod ntfs     set root='(hd0,msdos1)'     search --no-floppy --fs-uuid --set=root FAF0F57DF0F54085     ntldr /bootmgr }   It will make windows boot probably but now windows have a dependency on Ubuntu and I can not remove Ubuntu or else windows will stop working.  Credit goes to 'Jordan_U' on #ubuntu channel.   update Here are the win7 boot details I got from EasyBCD  Windows Boot Manager -------------------- identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795} device                  partition=C: path                    \bootmgr description             Windows Boot Manager locale                  en-US default                 {04fe8f95-4b17-11e1-a45c-909d3d25f938} displayorder            {04fe8f95-4b17-11e1-a45c-909d3d25f938} timeout                 30  Windows Boot Loader ------------------- identifier              {04fe8f95-4b17-11e1-a45c-909d3d25f938} device                  partition=C: path                    \Windows\system32\winload.exe description             Windows 7 Home Premium locale                  en-US osdevice                partition=C: systemroot              \Windows resumeobject            {8d25a443-4b0a-11e1-a835-806e6f6e6963}   Note Still, I am looking for how can I have everything clean and how can I boot windows without having a dependency on Ubuntu. so that if ever I have to remove ubuntu, windows will keep booting file without ubuntu. A word to describe "work that is ready to be done" Finding my house in minecraft Encopresis: how can we encourage our child to clean himself or ask for help immediately instead of ignoring the dirty underwear? How to sum up values of each two rows across their line in linux If $\gcd(a,b)=1$, $\gcd(a,y)=1$ and $\gcd(b,x)=1$ then prove that $ax+by$ is prime to $ab$ If $\gcd(a,b)=1$, $\gcd(a,y)=1$ and $\gcd(b,x)=1$ then prove that $ax+by$ is prime to $ab$.  I tried assuming Diophantine Equations for all the relations and representing everything in terms of $a$, but that didn't lead me anywhere. There must be an intuitive and elegant approach right? Implementing auto correct/complete on Stack Overflow I have a project where I have a few layers (State of Texas, cities, roads, etc.). They are all resaved and projected to NAD83 / UTM zone 14N EPSG: 26914. The project CRS is also NAD83 / UTM zone 14N EPSG: 26914 and on the fly projection is enabled. I added a text delimited file and cannot get them to line up. I checked the attribute table of the delimited file and the coordinates are correct. I cross-checked this with a point close to where a few of the points from the delimited file are and they are very close so in theory they should be lining up. I tried to save the delimited file and save it with the same projection and add the shp file back in and that did not work. Anyone have any ideas? I can't think of anything else to try. I am in trouble with polarization and entanglement. Let's consider three cases : Case 1) : Statistical mixture of $|H\rangle$ and $|V\rangle$ polarized photons Case 2) : Photons in a superposition state $1/\sqrt{2}(|H\rangle+|V\rangle)$ Case 3) : Photons which are entangled with twin ones in $1/\sqrt{2}(|H,H\rangle+|V,V\rangle)$ state Which experiments can be conducted to differentiate the case  statistical mixture from the case  superposition state ?   Which experiments can be conducted to differentiate the case  statistical mixture from the case  entangled photons in superposition state ?   Using a $45^\circ$ polarizer I think you can differentiate case 1/case 2 but not case 1/case 3 I don't know how to differentiate case 1/case 3 except maybe using quantic tomography and Wigner function. Is it true ? Is there any other simpler way ? Thanks a lot for your answer and sorry for this maybe dummy question...