Using a manifest file as input in a webapplication
How do I read the manifest file for a webapp running in apache tomcat?
Combining multirow and multicolumn Could the Horcruxes be destroyed with Avada Kedavra? In The Deathly Hallows Hermione says this about destroying Horcruxes:     “It doesn’t have to be a basilisk fang,” said Hermione patiently.   “It has to be something so destructive that the Horcrux can’t repair   itself. Basilisk venom only has one antidote, and it’s incredibly   rare—"      "That’s a problem we’re going to have to solve though, because ripping, smashing, or  crushing a Horcrux won’t do the trick. You’ve got to put it beyond magical repair.”   Mad-Eye Moody from The Goblet of Fire tells us this about Avada Kedavra,     ...there's no countercurse. There's no blocking it.   but also that,      Avada Kedavra's a curse that needs a powerful bit of magic behind it - you could   all get your wands out now and point them at me and say the words, and I doubt   I'd get so much as a nosebleed.    Harry is also seen once attempting to use Crucio on Bellatrix Lestrange in The Order of the Phoenix out of anger at the death of Sirius, but he fails. She tells him,     "You need to mean [Unforgivable Curses], Potter! You need to really want to cause pain - to enjoy it - righteous anger won't hurt me for long - I'll show you how it is done, shall I? I'll give you a lesson -"   Even if Harry and company are not powerful enough to perform the curse themselves, they know several powerful wizards (Kingsley, Lupin, et al.) who could likely perform the curse.  Lastly we know that Voldemort himself destroyed the last bit of his soul that was inside Harry with Avada Kedavra.  Could the Horcruxes be destroyed with Avada Kedavra as well? Setting the correct encoding when piping stdout in Python When piping the output of a Python program, the Python interpreter gets confused about encoding and sets it to None. This means a program like this:  # -*- coding: utf-8 -*- print u"åäö"   will work fine when run normally, but fail with:     UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)   when used in a pipe sequence.  What is the best way to make this work when piping? Can I just tell it to use whatever encoding the shell/filesystem/whatever is using?   The suggestions I have seen thus far is to modify your site.py directly, or hardcoding the defaultencoding using this hack:  # -*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8') print u"åäö"   Is there a better way to make piping work? How do I control Macbook volume when a DP display is connected? When I plug my Mac  into a DisplayPort monitor that has loudspeakers, the Mac's volume controls become disabled.    Is Apple assuming that if I have external speakers I am so much better using their own volume control that I have to be forced to do it?   That is annoying because the monitor's volume controls are buried in terrible menus accessed by terrible buttons on the back of the monitor.  Also, if I am inside an app where I can select the audio device and I select the Mac's internal speakers, the volume controls are STILL disabled.  Is there no way to control the volume of an app when an external speaker is connected even if the app is not using the external speaker?????  Some additional info: It's a Macbook Pro 13" 2018 version.  Using a Thunderbolt to Displayport cable, plugging in to a Dell monitor with speakers.    In another location I use the same cable to plug in to Dell monitors with Displayport but without built in speakers in the monitors.   At that location the volume controls remain active and they control the internal speaker in the laptop as they should. Can independent variables with low correlation with dependent variable be significant predictors? I have eight independent variables and one dependent.  I have run a correlation matrix, and 5 of them have a low correlation with the DV.  I have then run a stepwise multiple regression to see whether any/all of the IVs can predict the DV.  The regression showed that only two IVs can predict the DV (can only account for about 20% of the variance though), and SPSS removed the rest from the model.  My supervisor reckons that I have not run the regression correctly, as due to the strength of the correlations, I should have found more predictors in the regression model. But the correlations were tiny, so my question is: if IVs and the DV hardly correlate, can IVs still be good predictors of the DV? Is there a word for describing people who know many things but superficially? Is there an appropriate word for the antonym of "full-stack", as in programming? Someone who knows a lot of things just as a full-stack programmer, but without mastering them. Beryllium Vacuum Sphere Boat/Aircraft Is it possible to make a solid rigid evacuated "balloon" out of Beryllium or other elements or alloys?  The critical buckling pressure at which an evacuated sphere is given as $$ P_1=\frac{2E\cdot\left(h/R\right)^2}{\sqrt{3\left(1-\nu^2\right)}} $$ where $E$ is , $h$ the shell's thickness, $R$ the radius to the midsurface shell, and $\nu$ is .  Of course this is theoretical and experimental and literature values for submersibles hover around 1/4 of the theoretical pressure.  Beryllium has the following properties:   Density=1.85 g/cm$^3$ Young's Modulus=287*10$^9$ Pa Poisson Ratio=0.032   Calculating the upward force, buoyancy at 101.3 kPa atmospheric pressure and Radius of 10m gives 4.24*10$^8$ N. The weight of this sphere with shell thickness 1mm has 2.32*10$^7$ N downward force of Beryllium material, so it will theoretically float at ground level.   Calculating the critical buckling stress of this beryllium sphere is 331.57 kPa, which is 3.27 times the atmospheric pressure of 101.3 kPa, so theoretically it won't buckle. But in experimentation done in earlier experiments as stated before, due to construction/material non-ideal situations, the critical buckling formula predicts about 4 times stronger than actual, so it would need about 400 kPa, not 331 kPa as Beryllium sphere with this specification would hold. Increasing the strength capability also increases weight and therefore lowers it's ability to float, but Beryllium is the closest element with this situation I have calculated that could work if ideal (I have only been using periodic table elements and household materials)  Is it possible with an alloy of elements? Using the equations for buckling and buoyancy, the following is needed. What alloys/materials come to your mind?  Material considerations:   Material with larger Poisson ratio Material with larger Young's Modulus Less dense material Construction (is it possible)   Material considerations affect on lift   Thickness can be larger, increases strength by the squared. But also increases weight. If a material with lower density with similar structural properties as Beryllium is used, it would help. Radius can be lower for same reason, but also lowers buoyancy (volume)   My other designs (don't worry about these just yet, just if you are curious is a vacuum sphere with a pressurized "outer tube" with spokes in tension (carbon fiber nanotubes maybe) to keep the 2 spheres in position. Another is a spherical truss out of carbon fiber nanotubes with a light membrane around. The truss prevents the outer membrane from collapsing due to the atmospheric pressure  The "point" of this if you ask, as to why not use a traditional balloon is it can be used as a boat by filling the sphere with air, and then used as a aircraft at will by evacuating the sphere. An alternative mode of transportation for sea vessels etc. Difference between $(this) and event.target? Short Story about interminable rain on Venus In bibliography, how to print the page in my text where I cited certain paper? How to get, for instance,  [19] S. Roth and M. J. Black. Fields of experts: A framework for learning image priors. In IEEE Conf. on Computer Vision and Pattern Recognition, 2005. 1, 2, 7, 8  where the last numbers (1, 2, 7, 8) are the pages where I cited the paper in MY TEXT?  This would be like a reversed reference, or a index for bibliography. I currently have a setup where I send a char using a Tx of 434MHz and an Uno to a Mega with a Rx. The Mega counts how many times it receives the char and then if it falls below a certain number it triggers an alarm. Is this a viable way to measure the distance between two microcontrollers while indoors or is there a better way.  Transmitter (Mega)  #include &lt;SoftwareSerial.h&gt;  int rxPin=2; //Goes to the Receiver Pin int txPin=5; //Make sure it is set to pin 5 going to input of receiver  SoftwareSerial txSerial = SoftwareSerial(rxPin, txPin); SoftwareSerial rxSerial = SoftwareSerial(txPin, rxPin); char sendChar ='H';  void setup() {   pinMode(rxPin, INPUT);   pinMode(txPin,OUTPUT);   txSerial.begin(2400);   rxSerial.begin(2400); }  void loop() {   txSerial.println(sendChar);   Serial.print(sendChar); }   Receiver  #include &lt;SoftwareSerial.h&gt;  //Make sure it is set to pin 5 going to the data input of the transmitter int rxPin=5;  int txPin=3; //Don't need to make connections int LED=13; int BUZZ=9; int t=0;  char incomingChar = 0; int counter = 0;  SoftwareSerial rxSerial = SoftwareSerial(rxPin, txPin);  void setup() {   pinMode(rxPin, INPUT); //initilize rxpin as input   pinMode(BUZZ, OUTPUT); //initilize buzz for output   pinMode(LED, OUTPUT); //initilize led for output   rxSerial.begin(2400); //set baud rate for transmission   Serial.begin(2400); //see above }  void loop() {   for(int i=0; i&lt;200; i++) {     incomingChar = rxSerial.read(); //read incoming msg from tx      if (incomingChar =='H') {       counter++; //if we get bit "h" count it       }     delay(5); //delay of 10 secs   }   Serial.println(incomingChar);   Serial.println(counter); //prints the the bits we recieved    if(counter&lt;55) {     //if we receive less than 100 bits than print out of range triggers alarm     Serial.println("out of range");      tone(BUZZ,5000,500);digitalWrite(LED,HIGH);   }   else {     noTone(BUZZ);digitalWrite(LED, LOW);     //if we get more than 100 bits than we are within range turn off alarm     Serial.println("in range");    }    counter = 0;   incomingChar=0; } Dropout: scaling the activation versus inverting the dropout When applying dropout in artificial neural networks, one needs to compensate for the fact that at training time a portion of the neurons were deactivated. To do so, there exist two common strategies:   scaling the activation at test time inverting the dropout during the training phase   The two strategies are summarized in the  below, taken from .  Which strategy is preferable, and why?    Scaling the activation at test time:    Inverting the dropout during the training phase: How to pass a list of columns to data.table where some are predetermined Nonlinear function continuous but not bounded I would like an example of a map $f:H\rightarrow R$, where $H$ is a (infinite dimensional) Hilbert space, and $R$ is the real numbers, such that $f$ is continuous, but $f$ is not bounded on the close unit ball $\{ x\in H : \|x\| \leq 1\}$.  Actually, $H$ could be replaced by any Banach space (but not just a normed space-- that's too easy).  My motivation is that if $f$ is linear, this is impossible; but I have next to no intuition about non-linear functions.  Edit: Here's an example for $c_0$ which is even differentiable (disclaimer: I found it here: ).  Define $f:c_0\rightarrow F$ (where F is your field, real or complex) by $$ f(x) = \sum_{n=1}^\infty x_n^n \qquad (x=(x_n)). $$  You can estimate the sum by a geometric progression, so it does converge.  A bit of checking shows that f is Frechet differentible (so certainly continuous).  But $f(1,1,\cdots,1,0,\cdots)=n$ (if there are $n$ ones) so $f$ is not bounded on the closed unit ball.  What I don't immediately see is how to adapt this to $\ell^2$, say. My foreign school book is not clearest at this point, what is really needed with this? What does it mean that "assign definite integral for $\lim_{n\rightarrow \infty}\sum_{k=1}^{n} \frac{1}{n+k}$"? I am not sure, whether I should assign it like this $\lim_{n\rightarrow \infty} \int_{1}^{n} \frac{1}{n+x} dx$ and noticing that it is continuous then trying to find borders so that $F(a) - F(b)$?  (the book messes up all kind of Leibniz stuff at this point, a bit messy -- and just stating $\int f(x)\,dx= F(a)-F(b)$, but not even paying attention to different borders. As far as I know, it is important to specify whether borders depend on the integration factor) What TV movie had lost space cadets who piloted yellow tripod robots, and a squid bad guy? A message may be accompanied with a digital signature, a MAC or a message hash, as a proof of some kind.  Which assurances does each primitive provide to the recipient?  What kind of keys are needed? Is it unreasonable to assign a MySQL database to each user on my site? I'm creating a user-based website. For each user, I'll need a few MySQL tables to store different types of information (that is, userInfo, quotesSubmitted, and ratesSubmitted).  Is it a better idea to:  a) Create one database for the site (that is, "mySite") and then hundreds or thousands of tables inside this (that is, "userInfo_bob", "quotessubmitted_bob", "userInfo_shelly", and"quotesSubmitted_shelly")  or  b) Create hundreds or thousands of databases (that is, "Bob", "Shelly", etc.) and only a couple tables per database (that is, Inside of "Bob": userInfo, quotesSubmitted, ratesSubmitted, etc.)  Should I use one database, and many tables in that database, or many databases and few tables per database?    Edit:  The problem is that I need to keep track of who has rated what.  That means if a user has rated 300 quotes, I need to be able to know exactly which quotes the user has rated.  Maybe I should do this?  One table for quotes. One table to list users. One table to document ALL ratings that have been made (that is, Three columns: User, Quote, rating).  That seems reasonable. Is there any problem with that? Why is the light in an airplane turned off during take off and landing? Text not very readable on different image backgrounds I've come here seeking for a bit of design help or advice on how I could possibly improve the following:  Like the title says, I'm having a website banner with multiple text displayed on different images as backgrounds. Now, since most of the images are dark, I've set the font color as white. But even then, some of the text is not very readable on a couple of images like:    Since I'm working with CSS, I've tried different options such as:  Adding Text Shadows:    CSS:  text-shadow: 3px 3px 0px #000;  Also tried, creating a semi-transparent box around the text:      I feel the box one looks out of place.  I've created a  for anyone who knows CSS. If not, please feel free to advice me based on your imagination alone.  PS: You could also advice on using a different font if that would help it stand out better.