after a loop runs and populates a data table I want to calculate the totals of the columns and display them on the last row.  This is my code to populate the table...I need to build the last row:  &lt;table class="data_table"&gt;   &lt;tr&gt;     &lt;th&gt;Source Of Issues&lt;/th&gt;     &lt;th&gt;First Issues&lt;/th&gt;     &lt;th&gt;second Issues&lt;/th&gt;     &lt;th&gt;Changes&lt;/th&gt;   &lt;/tr&gt;    &lt;c:forEach var="bean" items="${beans}" varStatus="loopCount"&gt;     &lt;tr&gt;       &lt;td&gt;&lt;a href="foobar"&gt;${bean.sorCode}&lt;/a&gt;&lt;/td&gt;       &lt;td class="right"&gt;&lt;fmt:formatNumber value='${bean.firstissue}'                              type="currency" groupingUsed='true' /&gt;&lt;/td&gt;       &lt;td class="right"&gt;&lt;fmt:formatNumber value='${bean.secondissue}'                              type="currency" groupingUsed='true' /&gt;&lt;/td&gt;       &lt;td class="right"&gt;&lt;fmt:formatNumber value='${bean.changes}'                              type="currency" groupingUsed='true' /&gt;&lt;/td&gt;     &lt;/tr&gt;   &lt;/c:forEach&gt;   &lt;/table&gt;
I have a Java bean like this:  class Person {   int age;   String name; }   I'd like to iterate over a collection of these beans in a JSP, showing each person in a HTML table row, and in the last row of the table I'd like to show the total of all the ages.  The code to generate the table rows will look something like this:  &lt;c:forEach var="person" items="${personList}"&gt;   &lt;tr&gt;&lt;td&gt;${person.name}&lt;td&gt;&lt;td&gt;${person.age}&lt;/td&gt;&lt;/tr&gt; &lt;/c:forEach&gt;   However, I'm struggling to find a way to calculate the age total that will be shown in the final row without resorting to scriptlet code, any suggestions?
I live in a town where fresh or whole milk is not readily available. I was wondering if I could make cheese from UHT Milk. If so, what kind of cheese and what method I should use? Or rather, Should I? I'm playing as a khajit in skyrim, going to assassinate Beitlid in Dawnstar. Now, the first time I did it on her porch and just killed her with the Blade of Woe. I got caught somehow, whatever, so I loaded a previous save because mid-jailbreak the guards decided to just attack instead of attempt an arrest.  Then I tried sniping her... and now my arrows have FED, Flight Erectile Dysfunction. They fly... like two feet before suddenly dropping off. It's weird. It doesn't matter how long I hold the trigger, it just droops. I thought it was by Heinlein or Brown, but if it was I can't locate it online.    The plot was aboard a spaceship, or maybe a space station, when an accident sends the astronauts spinning out of control towards certain doom.  One part of the story I remember distinctly was the one of the guys started screaming inconsolably and the noise was driving everyone crazy.  One of the astronauts made his way over to the guy and smashed his helmet so the screaming stopped.  As I recall, the story ends with the narrator turning off his comm link so he can ponder the beauty of the universe in silence.  Sound familiar to anyone? Practical way to implement prevention of IP Spoofing I am an undergraduate Computer Science student and was hoping to gain some knowledge of ways to help prevent IP spoofing but all the resources I have tried out elaborate this concept in a theoretical way. I want to try out my hands at one of the techniques like:      How do I simulate this whole situation in my own system were I myself am the attacker and I myself have to defend it? And once I have gained an understanding of it, then how do I start translating that into programming terms? Different results for integration using Mathematica and MATLAB Generalizing the case $p=2$ we would like to know if the statement below is true.  Let $p$ the smallest prime dividing the order of $G$. If $H$ is a subgroup of $G$ with index $p$ then $H$ is normal. Double-checked locking in .NET I came across  article discussing why the double-check locking paradigm is broken in Java. Is the paradigm valid for .NET (in particular, C#), if variables are declared volatile? url completion in cartoDB info windows How do I install the ubuntu-restricted-extras package? Installed 14.04 on a non-PAE (Pentium-M), but now I can't update ("This kernel does not support a non-PAE CPU.") Here is what I'm looking at. This isn't my computer. I repair PC's and I had an end user with this low powered laptop running XP so I decided to let him try out lubuntu. The install went smoothly with the non-PAE boot switch, but now I can't update anything. I'd rather not have to format and start over since he's spent time configuring his system. Any tips would be appreciated. I tried sudo apt-get clean, sudo apt-get install -f, sudo apt-get update. No go.  Also his touchpad stopped working, the wireless stopped working, the keyboard works in firefox but not chrome, and in firefox the address bar sometimes turns black and gray for some reason. I was hoping the update would help address some of this stuff.  Here's the message I get trying to update:  Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-proposed/main linux-image-3.13.0-26-generic i386 3.13.0-26.48 [14.6 MB] Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-24-generic i386 3.13.0-24.47 [14.6 MB] Fetched 29.2 MB in 2min 19s (208 kB/s)                                          (Reading database ... 169286 files and directories currently installed.) Preparing to unpack .../linux-image-3.13.0-26-generic_3.13.0-26.48_i386.deb ... This kernel does not support a non-PAE CPU. dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-26-generic_3.13.0-26.48_i386.deb (--unpack):  subprocess new pre-installation script returned error exit status 1 Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-26-generic /boot/vmlinuz-3.13.0-26-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-26-generic /boot/vmlinuz-3.13.0-26-generic Preparing to unpack .../linux-image-3.13.0-24-generic_3.13.0-24.47_i386.deb ... This kernel does not support a non-PAE CPU. dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-24-generic_3.13.0-24.47_i386.deb (--unpack):  subprocess new pre-installation script returned error exit status 1 Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic Errors were encountered while processing:  /var/cache/apt/archives/linux-image-3.13.0-26-generic_3.13.0-26.48_i386.deb  /var/cache/apt/archives/linux-image-3.13.0-24-generic_3.13.0-24.47_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Importing QGIS3 processing tools in standalone script Inspired by , but for QGIS 3 (and therefore Python 3), I would like to use the QGIS processing algorithms in a standalone Python script without a GUI, with a standard installation of Ubuntu Linux. A simple import processing is insufficient: import processing processing.run(    &quot;qgis:rasterlayerstatistics&quot;,    {        'INPUT': .'/somefile.tif',        'BAND': 1,        'OUTPUT_HTML_FILE': './result.html'    } )  Results in: Traceback (most recent call last):   File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; ModuleNotFoundError: No module named 'processing'  How do you get access to the QGIS processing module to use the QGIS processing algorithms in a standalone Python script (not the QGIS interpreter)? How do I install drivers for the Atheros AR8161 Ethernet controller? Why can't Inuzuka clan's dogs use human language? Normal ubuntu desktop will update ubuntu-desktop package and it's dependencies on release upgrade. Will Ubuntu minimal cd install ubuntu-desktop on release upgrade or just installed packages? What is the limit of:  $$\lim_{n\to \infty} \frac{n^1+\dots+n^n}{1^n+\dots+n^n} = ?$$  I did some computation with big numbers, I guess it is in the interval $\left(\frac{1}{2},1\right)$. Why does the mirror modifier sometimes give me an overlapping mesh? Tabular with p type columns to fill page width In Bash, when to alias, when to script, and when to write a function? It's taken me almost 10 years of Linux usage to ask this question. It was all trial and error and random late-night internet surfing.  But people shouldn't need 10 years for this. If I were just starting out with Linux, I'd want to know: When to alias, when to script, and when to write a function?  Where aliases are concerned, I use aliases for very simple operations that don't take arguments.   alias houston='cd /home/username/.scripts/'   That seems obvious. But some people do this:  alias command="bash bashscriptname"   (and add it to the .bashrc file)   Is there a good reason to do that? I'm trying really hard, but I genuinely can't think of any circumstances in which I'd want to do that. So, if there is an edge case where that would make a difference, please answer below.  Because that's where I would just put something in my PATH and chmod +x it, which is another thing that came after years of Linux trial-and-error.  Which brings me to the next topic. For instance, I added a hidden folder (.scripts/) in the home directory to my PATH by just adding a line to my .bashrc (PATH=$PATH:/home/username/.scripts/), so anything executable in there automagically autocompletes.  If I needed to.  I don't really need that, though, do I? I would only use that for languages that are not the shell, like Python.  If it's the shell, I can just write a function inside the very same .bashrc:  funcname () {   somecommand -someARGS "$@" }   As I stated, I found a lot of this out through trial and error. And I only truly saw the beauty of functions when my computer died and I was forced to use the computers of the people around me when they weren't using them.   Instead of moving a whole directory of scripts from computer to computer, I ended up just replacing everyone else's .bashrc with my own, since they had never even made a single modification.  But did I miss anything?   So, what would you tell a beginning Linux user about when to alias, when to script, and when to write a function?   If it's not obvious, I'm assuming the people who answer this will make use of all three options. If you only use aliases, or only use scripts, or only use functions—or if you only use aliases and scripts or aliases and functions or scripts and functions—this question isn't really aimed at you. Continuously copy all file changes from one folder to another on change (Windows) I'm working on a massive Java web application which is kept under centralized version control, but the source files are used to build and run the actual server, which then copies all the files I work on into a random temporary directory while it's running.  My problem is that I need to either rebuild this huge application to see any changes to my files, or keep track of all my changes and copy over the files I've changed back to their source location before committing them back to source control.  My question is: is there a command line script I can run that will monitor any changes in the source folder and automatically copy changed files across to temporary folder X?  The idea is to remove the human point of failure in having to manually mitigate the two-locations problem. We, as high school students have been taught that-because Bohr's model of an atom assigns specific orbits for electrons-that it is better than Rutherford's model. But what Rutherford failed to explain was why electrons don't emit EM waves &amp; fall into the nucleus. I don't see how the introduction of 'atomic orbitals' overcame this defect. Can't it still radiate EM waves?