Dynamic database table display using Jstl
Show JDBC ResultSet in HTML in JSP page using MVC and DAO pattern
How do I move Ubuntu dock to bottom on Ubuntu 17.10 and later? Just upgraded from Ubuntu 17.04 to Ubuntu 17.10.  Please help me to shift the side bar (aka Ubuntu Dock) to bottom.   I tried running the following command which used to work with older Ubuntu releases   gsettings set com.canonical.Unity.Launcher launcher-position Bottom   but it's not working. Squares in arithmetic progression It is easy to find 3 squares (of integers) in arithmetic progression. For example, $1^2,5^2,7^2$.  I've been told Fermat proved that there are no progressions of length 4 in the squares. Do you know of a proof of this result?   (Additionally, are there similar results for cubes, 4th powers, etc? If so, what would be a good reference for this type of material?)    Edit, March 30, 2012: The following  in MO is related and may be useful to people interested in the question I posted here. Let $(X, Y)$ be distributed as a multivariate normal with parameters  $$ \mu = \begin{bmatrix} \mu_X \\ \mu_Y \end{bmatrix} \qquad \Sigma = \begin{bmatrix} \sigma_X^2 &amp; \sigma_{XY} \\ \sigma_{XY} &amp; \sigma_Y^2 \end{bmatrix}. $$   I would like to calculate $E(X | y_1 &lt; Y &lt; y_2)$, where $y_1$ and $y_2$ are constants.  From , I have managed to work out that $$ E(X | Y &gt; y_1) = \mu_X + \frac{\sigma_{XY}}{\sigma_Y} \left[\frac{\phi\left(\frac{y_1 - \mu_y}{\sigma_Y}\right)}{1 - \Phi\left(\frac{y_1 - \mu_y}{\sigma_Y}\right)}\right]\\ E(X | Y &lt; y_2) = \mu_X - \frac{\sigma_{XY}}{\sigma_Y} \left[\frac{\phi\left(\frac{y_2 - \mu_y}{\sigma_Y}\right)}{\Phi\left(\frac{y_2 - \mu_y}{\sigma_Y}\right)}\right] ,$$ where $\phi(\cdot)$ and $\Phi(\cdot)$ are, respectively, the p.d.f. and the c.d.f. of the Normal distribution. I could not figure out how to calculate $E(X | y_1 &lt; Y &lt; y_2)$, though.  I have searched for an answer in similar posts from the Stack Exchange network, but I couldn't get a clue from them that would solve this issue. For the record, here are some of them: When one wants to list various cases/classes/categories/types of objects in a string of conjunctions, is it preferable (or even mandatory) to keep on using (the same) preposition in front of each one them?  Moreover, does singular or plural form of the word "case", "class", "category" make any difference in the previous question?  Examples:   In the present article, we study the case of X, of Y and of Z objects. (in this example, as in most of the ones I have in mind, it is the preposition "of" which is relevant to my question). We study the cases/classes of X and of Y objects. vs. We study the cases/classes of X and Y objects.   Although it is rather clear that, in the singular case, the absence of "of" in later conjuncts may lead to a logical confusion (e.g., mistakenly taken as the one class/case of objects which are both X and Y), when it comes to plural of the words "case", "class", etc., this might not be an issue. Still, there might anyway be a rule in the plural setting as well. I've made a drush install of drupal 7.28 on my AWS server. I can confirm that the memory is set to 128M, all green on the reports -> site status page. The website will function normally and sporadically return no data, looking at the logs a tremendous amount of memory is trying to be allocated (assuming an infinite loop somewhere). Given that this is a basic install, no modules have yet been added what might be causing this?  PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 140008587493184 bytes) in Unknown on line 0 Need Help Fixing Grub after Installing Ubuntu 13.04 x64 Alongside Windows 8 on a Lenovo IdeaPad Y400 with UEFI I have a Lenovo IdeaPad Y400 that came pre-installed with Windows 8. I would like to run Ubuntu alongside it in a dual-boot configuration. I've spent the past week fiddling around, re-installing both Windows and Linux in various configurations, and I've come awfully close to success, but seem to have hit a snag with Grub.  For my most recent attempt, I took the following steps:   Disabled Secure Boot Re-imaged Windows 8 from a hidden recovery partition, effectively restoring the machine to factory state Activated an option called Legacy Support in the BIOS (or is it UEFI now?) Booted Ubuntu 13.04 x64 from a USB stick, chose "install alongside Windows" and accepted all default options After a restart, found that I could boot Ubuntu, but could not boot Windows Once into Ubuntu, I ran Boot Repair with recommended settings and accepted all defaults. When Boot Repair finished, I was presented with the following message:      The boot files of [The OS now in use - Ubuntu 13.04] are far from the   start of the disk. Your BIOS may not detect them. You may want to   retry after creating a /boot partition (EXT4, >200MB, start of the   disk). This can be performed via tools such as gParted. Then select   this partition via the [Separate /boot partition:] option of [Boot   Repair]. ()    I followed the instructions at the url in the message, creating a 1GB EXT 4 partition near the start of the drive  when I tried to run Boot Repair again, the "Separate /boot partition" option on the "Grub Location" tab was disabled.  The new partition is /dev/sda11 and has the label GRUB. On restart, I get the following error message:      error: file '/boot/grub/i386-pc/normal.mod' not found.    grub rescue>    However, if I manually choose the boot partition by hitting F12, I can boot into Windows no problems. Selecting Ubuntu from the boot device menu gives me a Grub menu with the following options:      Ubuntu      Advanced options for Ubuntu       Windows UEFI recovery bootmgfw.efi      Windows Boot UEFI recovery       Windows UEFI recovery LrsBootmgr.efi      Windows Boot UEFI recovery bkpbootx64.efi       Windows Recovery Environment (loader) (on /dev/sda3)       Windows 8 (loader) (on /dev/sda5) System setup    Selecting Ubuntu from this menu allows me to get to my Ubuntu desktop. I haven't tried the other options yet for fear of losing the progress that I've made.   So it looks like I have successfully dual-booted the machine, but that Grub is broken for some reason or another.   My current partition scheme can be seen at:   Thanks in advance - Jonathan The repository 'http://ppa.launchpad.net/mdeguzis/libregeek/ubuntu focal Release' does not have a Release file Calculate $ \int_{-2}^{0} \frac{x}{\sqrt{e^x+(x+2)^2}} dx $ $ \int_{-2}^{0} \frac{x}{\sqrt{e^x+(x+2)^2}} dx $ = -$  2.887270... $  The function has no antiderivate and there's no symmetry here to help, if you solve this I would be thankful if you would for a highschooler ^^ Does the PHB+1 character-building limit in Adventurers League include spells? I’m thinking of trying out a Hexblade Warlock in Adventurers League, which limits players to PHB+1 for character-building.  The problem I have with this is that the Hexblade is from Xanathar's Guide to Everything, but I really want the booming blade cantrip as well from the Sword Coast Adventurer's Guide. Is this legal in Adventurers League play? How can I disable cloud-init? I have a fully-configured instance and an image from that for an autoscaling group. When autoscaling new instances from this image, it calls cloud-init. cloud-init changes the hostname and breaks fstab.  I want to prevent cloud-init from starting on instance launch. The Equation $11^x + 13^x + 17^x =19^x  $  Has    No Real Roots Only One Real Roots Exactly Two Real Roots  More than Two Real Roots    What I have done is   The function $f(x)=11^x + 13^x + 17^x -19^x  $ is strictly increasing and being always positive it have no roots sit on the beach vs. sit at the beach I'm interested in Gaussian blur layer that blurring all inside of some figure located on this layer.  I mean, blurred background of some exact area. And in case of I move this area, blurred image must be updated. If I move some object in background - blur must be updated. etc. List all commands that a shell knows What can I type at my shell (which happens to be bash) that will list all the commands that are recognized?  Also, does this differ by shell? Or do all shells just have a "directory" of commands they recognize?  Secondly, different question, but how can I override any of those? In other words how can I write my own view command to replace the one existing on my Ubuntu system, which appears to just load vim. Is it possible to paginate posts correctly that are random ordered? I found this problem on Wordpress Support and the topic unfortunately is now closed.  I have this same issue... (read below)    We have created a site where members can recommend things like favourite books, movie, songs, etc. For this problem I will use the Movies page as an example.  The "Movies" page is ultimately a custom page template that asks wordpress to display a random list of ALL posts that have been given the category "movies" (category 31). It displays the title of these movies in random order using the code below.  &lt;?php  $rand = new WP_Query("cat=31&amp;showposts=-1&amp;orderby=rand");  while($rand-&gt;have_posts()) : $rand-&gt;the_post(); ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt; &lt;?php endwhile; ?&gt;   Problem is the list is getting rather long and I would like to split it up into two or more pages of about 10 movies each. To achieve this, I have used the code below.  &lt;?php  $page = (get_query_var('paged')) ? get_query_var('paged') : 1;  query_posts("cat=31&amp;orderby=rand&amp;showposts=10&amp;paged=$page");  while ( have_posts() ) : the_post()  ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt; &lt;?php endwhile; ?&gt;   But there is a problem because although it splits up the data into pages of 10 posts each (paginates), it fails to include a new set of 10 posts on page 2 and so forth. In other words, because it is listing things in a random order, it just goes out and gets another 10 random posts (or in this case movie titles). As a result, we have some repeated movie title posts instead of a new set of 10 random movie titles on page 2, etc.  My question is - what can I add to this code to get wordpress to "remember" which random 10 posts it included on page 1, and then have it get a new set of 10 posts to put on pages 2, 3, etc. until all posts are displayed. I would like there to be only one occurrence of a post per page when sorted randomly in sets of 10. X,Y are independent exponentially distributed then what is the distribution of X/(X+Y) Been crushing my head with this exercise. I know how to get the distribution of a ratio of exponential variables and of the sum of them, but i can't piece everything together.  The exercise goes as this:  If X,Y are independent exponentially distributed with beta = 1 (parameter of the exponential distribution = 1) then what is the distribution of X/(X+Y)  Any ideas?  Thanks a lot. I have a simple circuit:    The max rating (current) of the LED is 30mA.  How can I work out what the resistance of the resistor needs to be? By using ohm's law I found it to be \$3V/0.03A = 100 \Omega\$. However using software called , and trial and error I got the minimum possible resistance to be 36&Omega;. However, if I use a 35&Omega; resistor, then the LED breaks. Is the software wrong, or (more likely) am I doing something wrong? Why can't I do foreach (var Item in DataTable.Rows)? Best practices for storing UI settings? Why do I always hear remote train horn at night? This is definitely not an illusion, as many people have the same experience. I have usually lived in places miles away from train stations, which makes it unlikely to hear any train horns during the day. However at night, occasionally train horns can be heard. I hope if any one can explain the physics of this effect, like possibly sound travels faster at low temperature.