Using IntelliJ I just created a new Maven project and added the following to the pom file  and the following to a Main.java file   Now if I run the code all works well, but how do I make this as a "fat jar" that will contain all the dependencies in the pom file and that I'll be able to run by just java -jar my.jar ? Like you are able to do with a Spring Boot app.
I want to package my project in a single executable JAR for distribution.  How can I make a Maven project package all dependency JARs into my output JAR?
Facebook must have changed something again because I cannot find out how to view the list of subscribers.  In Googling for this, I came upon this question:    However, it doesn't take me to my list os subscribers.  Where do I view this list now?  Please include a screenshot and highlight the link I need to click on.  This way, when Facebook changes their layout again, your screenshot will at least clue future inquirers in on this fact so they know they're not going crazy.  Edit  Here's what I see when I log into Facebook: 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)? Getting video dimension / resolution / width x height from ffmpeg In what format does piped output get sent and received from one command/program to another? How to understand the LaTeX warning “there were undefined references”? How do "Dummy Variables" work? I do not understand how dummy variables work in math.   Suppose we have:  $$I_1 = \int_{0}^{\infty} e^{-x^2} dx$$  How is this equivalent to:  $$I_2 = \int_{0}^{\infty} e^{-y^2} dy$$  How does this dummy variable system work?   Since $y$ is the dependent variable for $I_1$ How can $y$ itself be and independent variable for $I_2$  ??  Thanks! Call to undefined function session_register() This question is pretty simple: I'd like to have the possibility to get the exact size of a picture in LaTeX with, for example, the macro \the.  In fact, I've founded the way \settoheight{} and so on, but it didn't work at all. What I've got doesn't match with what I can see in the image properties (I suppose that's the name in English). The result: 8pt versus 1300 pixels. It's may be a mis-use...  Edit: In the end, my aim was to find a way to fit the picture in LaTeX. If width and height were both less than the dimensions of the body, then it should just be centred. It look like this :     Require:   \usepackage{graphicx} \usepackage{xifthen} \usepackage{calc}   Code (pretty ugly, I agree):   % Centrering+fitting for image, with captation and label (not auto) \newlength\imageheight \newlength\imagewidth \newcommand{\pic}[3]{% \settoheight\imageheight{\includegraphics{pictures/#1.png}}% \settowidth\imagewidth{\includegraphics{pictures/#1.png}}% \ifthenelse{\lengthtest{\imagewidth &gt; \textwidth}}{\ifthenelse{\lengthtest{\imageheight &gt; \imagewidth}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[width=0.95\textwidth]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}{\ifthenelse{\lengthtest{\imageheight &gt; \textheight}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics[height=0.85\textheight]{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}{\par\vspace{0.95em}% \begin{figure}     \centering\includegraphics{pictures/#1.png}     \caption{#2}     \label{#3} \end{figure}% \par\vspace{0.95em}}}} %   To use it : put your png files in a "pictures" directory, then, just simply call the picture like this : \pic{name_whitout_extension}{Captation_if_needed}{Label_if_needed}.    Edit 2 :   Thanks to Martin Scharrer's easyfig package, I've got a more or less 1,6 times faster solution to put my pictures, centred, with the perfect size.  CTAN:   VC:   Version v1.2 – 2012/05/15    This could be useful for some others, I hope. Why is conservation of angular momentum considered a law? We know that angular momentum is defined as the cross product of position and linear momentum. By taking the time derivative, we can deduce that the time rate of change of the angular momentum equals the net torque.  Then why is the conservation of angular momentum considered a law, when we can easily show it is conserved when no net torque is applied, by using Newton's laws?  It truly confuses me. Let $S = \bigoplus_{n\ge 0} S_n$ be a graded commutative ring. Let $f$ be a homogeneous element of $S$ of degree $&gt; 0$. Let $S_{(f)}$ be the degree $0$ part of the graded ring $S_f$, where $S_f$ is the localization with respect to the multiplicative set $\{1, f, f^2,\dots\}$. Suppose $S$ is finitely generated algebra over $S_0$. Then $S_{(f)}$ is a finitely generated algebra over $S_0$. How to disable Macbook Pro internal display when using external monitors I have a Late 2011 Macbook Pro 13" (running Lion - OS 10.7.4) which I use with a dual external monitor setup. I have two 21" LCDs that I use as external monitors. One uses the built in Mini Display Port on the Macbook Pro and the other is connected via a USB to DVI adapter (Diamond DVILink).  The problem I am having is with the 13" built in display of the Macbook Pro. I would like it to remain closed and unused (I prefer the dual monitors at same resolution), however I cannot seem to "disable" the display in the display preferences applet. So even though the Macbook Pro lid is closed the operating system still makes use of the display, even though the apple logo on the back of the display is unlit. I have tried to move the laptop screen off out of the way in display preferences but I find when I "sleep" my setup that any applications that remain open move to the laptop screen. This makes it difficult to locate the application windows when resuming from sleep.    Does anyone know of a way to disable the laptop built in display so it is not seen by the OS when external monitors are being used? Why is "nodev" in /etc/fstab so important? How can character devices be used for hacking? I am learning about linux security and struggling to understand why a USB stick with a character device on it is potentially dangerous.  If I have a USB stick with a bash executable that has setuid root on it, the danger is obvious: Anybody with such a USB stick can gain root privileges on my computer if I have an entry like   /dev/sdb1 /media/usbstick auto defaults 0 0   in my /etc/fstab because defaults includes suid.  But what about character devices? How can I use a character device to gain root privileges or break stuff if a USB stick with a character device on it gets mounted with dev or defaults? jQuery ajax load() java script not executing? Iterating each character in a string using Python In C++, I can iterate over an std::string like this:  std::string str = "Hello World!";  for (int i = 0; i &lt; str.length(); ++i) {     std::cout &lt;&lt; str[i] &lt;&lt; std::endl; }   How do I iterate over a string in Python? Isomorphism of a product $C_n \times C_m$ of cyclic groups with the cyclic group $C_{mn}$ Given that $C_n$ is a cyclic group of order $n$, what conditions must integers $n$ and $m$ satisfy such that the group $C_n \times C_m$ is isomorphic to C$_{mn}$?   So I attempted to investigate a few lower-order cyclic groups to find a pattern. In particular, I looked at $C_2 \times C_3$ and compared it to $C_6$. Here are a couple of diagrams:  $C_2 \times C_3$ -   $C_6$ -   They Cayley tables look pretty different (identity elements are all over the place for $C_2 \times C_3$) so I concluded that they are not isomorphic.  I did the same for $C_2 \times C_4$ and $C_8$:  $C_2 \times C_4$ -   $C_8$ -   Again, I arrived at the conclusion that the 2 groups are not isomorphic due to their Cayley table structure.  It seems I'm stuck now. Are my conclusions wrong for the examples I examined? If so, how do I find the conditions for the general case of comparing $C_m \times C_n$ with $C_{mn}$? How do I install the Intel Graphics driver in my system? Can someone help me out and explain or point me in the right direction on how to check video drivers and see if my video card running okay?  I had 10.04 installed on my Thinkpad r61 with Compiz Manager and life was great, until the machine took water damage. I bought an ASUS (X54H) since and am trying out 12.04, but the desktop just doesn't look right.  I always struggled with video driver installation. There are no proprietary drivers available in the hardware manager.  When I run lspci | grep VGA:  00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)   I will greatly appreciate your help. I want to use Linux more, but like I said video drivers appear to be my biggest concern. I have also tried 12.04 on my desktop PC, but again failed to configure video card, so switched back to Windows 7. Proving Cauchy condensation test $f$ has the form $f(x) =ax^2+bx+c$. Every differentiable function $f:R \rightarrow R$ with the property that $(2h)f′(x) =f(x+h)−f(x−h)$ for all $x \in R$ and all $h$ has the form $f(x) =ax^2+bx+c$.  I would like to get some help on this one. Taking partial derivatives was an idea, but is that legal? Basically I have a setup like the following:  Array (  [0] =&gt; Array ( [0] =&gt; stdClass Object ( [nid] =&gt; 1 [title] =&gt; title1 [uid] =&gt; 1 [parent] =&gt; 0 [weight] =&gt; -15 [name] =&gt; name1 [value] =&gt; 0 )                [1] =&gt; stdClass Object ( [nid] =&gt; 2 [title] =&gt; title2 [uid] =&gt; 1 [parent] =&gt; 0 [weight] =&gt; -7 [name] =&gt; name2 [value] =&gt; 100 )                [2] =&gt; stdClass Object ( [nid] =&gt; 3 [title] =&gt; title3 [uid] =&gt; 2 [parent] =&gt; 0 [weight] =&gt; -1 [name] =&gt; name3 [value] =&gt; 0 )                [3] =&gt; stdClass Object ( [nid] =&gt; 4 [title] =&gt; title4 [uid] =&gt; 2 [parent] =&gt; 0 [weight] =&gt; 1 [name] =&gt; name4 [value] =&gt; 80 )               )   )   What I need is a way to sort all the arrays inside the parent array by the [value] key in the Object. I've been trying for about 2 days now with usort and different methods but I just can't seem to get my head around it. The [value] key will range anywhere from 0 to 100 and I need all of the arrays sorted in decreasing order (IE: 100 down to 0). I built a model of multiple linear regression to predict the revenues at the box office of a movie: the variable $Y$ is revenue while the variables $X$ are two: Activity (number of tweets per day) and sentiment (connotation of these tweets).  The problem is that the intercept is not significant. I thought of a possible explanation: the intercept in practice is the value of the variable $Y$ when the variables $X$ assume values of 0; but because of the very strong development of social networks, it is virtually impossible not to have even a tweet (and then a wave of activity) about a movie that just came out, I thought that the significance or not the intercept could be neglected because the assumed value has no meaning in reality (a tweet of 0 would never be satisfied, given the market today). In this way, I consider the intercept a mere constant for the calculation of the line, without worrying about its significance (because in some cases would take negative values, which is impossible for revenues).  The interpretation may be correct?