How to package jar to executable file?
How can I convert my Java program to an .exe file?
I have a large file and I would like print from each sequential 50 lines , the 15th and 25th lines.  sed -n '15,25p' inputfile   How to modify this command to print only lines 15 and 25 and to loop over each 50 lines in the file. I have a TikZ picture with a node containing a minipage with an itemize environment; each item is a hyperref to other sections of the document.   When scaling the image (for example with \begin{tikzpicture}[scale=.7, transform shape] I've a strange behavior: links in itemize are not in the right place: they present a somewhat vertical offset, as if they don't scale as the rest of image.   Here the MWE:  \documentclass[a4paper]{article} \usepackage{tikz} \usepackage[pdftex]{hyperref} \begin{document}  Here something interesting\label{text:interesting-one} \newpage  Here something interesting, too\label{text:interesting-two} \newpage  and here there are very very interesting stuff\label{text:interesting-three} \newpage  \newpage Now the problem: links rectangles have some offset, making links unusable in case of long itemize  \begin{figure}[htb] \begin{tikzpicture}[scale=.7, transform shape] \node at (0,0) (mynode) { \begin{minipage}{4cm} \begin{itemize} \item \hyperref[text:interesting-one]{First link} \item \hyperref[text:interesting-two]{Second link} \item \hyperref[text:interesting-three]{Third link} \item \hyperref[text:interesting-one]{First link again} \item \hyperref[text:interesting-two]{Second link again} \item \hyperref[text:interesting-three]{Third link again} \end{itemize} \end{minipage} }; \end{tikzpicture} \end{figure} \end{document}   And here a snapshot of the problem    Note: This is evident using the default settings of hyperref package, which draws the red rectangle around links, but it took me some time to found it when only the text is coloured, i.e. when using \usepackage[linkcolor=blue,colorlinks=true]{hyperref} How do I call one constructor from another in Java? Duplicate questions without answers Exponent and abelian groups Bevel is not symmetrical Can we let users with privileges on one site have them on another? I have almost 4k reputation on Arqade. On Stack Overflow, I have to suggest edits and can't hit the close button. But I want to help with the close queue, which is at 62k at the time of this writing.  While I realize that people may be inexperienced with the system, I think I am experienced enough. If I want to edit something, I have to let it sit in the queue and get robo-reviewed. Yes, I know more about gaming than about coding. But I think I would know if this question is a duplicate of that, and if this question is off topic.  So, my request is that we should have the same privledges on every site, based on the site that we have the most reputation in. I am not asking that all the reputation be merged. One of the assumptions I make as GM is that the players should always be in the spotlight.  Sometimes the players find themselves in a situation where they watch NPCs speak to each other.  I don't like using this kind of situation, because it forces the players to watch me talk to myself and that turns them from active participants into an audience.  Usually I handle it by avoiding the situation.  I try not to write scenes that the players watch.  Instead the players speak to the NPCs one at a time.  When I do come across an exchange between NPCs I opt to summarize the conversation instead of acting it out.    I don't like this limitation though.  It gets a little contrived when all conversations in the game feature 5 PCs and 1 NPC.  Any suggestions? Either how to avoid doing it, or how to effectively role play a conversation between two (or more) NPCs that the characters may or may not be interacting with?   How do you keep clear which character is speaking? How do you make sure that the conversation feels like a real one and not like one person playing both roles? Rendering of Favorite/Ignored Tags in Firefox I have spotted a bug in rendering of Favorite Tags and Ignored Tags section in Firefox. This rendering issue is present on both stackoverflow.com and meta.stackoverflow.com sites.  I'm using Firefox 17.0.1 on Windows 7 x64. In Google Chrome page is rendered correctly.  Screenshots:  Firefox (please note cropped right part of both Add buttons)    Chrome (buttons are rendered correctly) CreateService get error: ERROR_INVALID_ADDRESS (0x000001e7) Prove that, for any $n+1$ integers $a_{1},a_{2},....,a_{n+1}$, there exist two of the integers $a_{i}$ and $a_{j}$ with $i \neq j$, such that $a_{i} - a_{j}$ is divisible by $n$.  Please help me about this problem,I know there is lots of answers can find from Google, but I am not really understand them. I hope someone can give me more details explanation. I would really appreciate your help. What is the T-SQL To grant read and write access to tables in a database in SQL Server? What is the exact SQL to assign db_datareader and db_datawriter roles to a user in SQL Server?  The user name is MYUSER and the database is MYDB. (Almost) double light speed Determine a user's timezone Is there a standard way for a web server to be able to determine a user's timezone within a web page?   Perhaps from an HTTP header or part of the user-agent string? Flows/Processes, Version Control and CI I've started using Processes and Flows and am really excited about these features -- but am still wrapping my mind about how to manage them in Version Control (which I use) and Continuous Integration (which I don't yet... but am trying to work in that direction). The underlying challenge is that each time a process or flow is edited, the metadata file is renamed to reflect its update version, e.g. MyFlow-1.flow, MyFlow-2.flow, etc. The Challenge for Version Control If each version of the flow has its own file name, this makes it more complicated to track changes to flows.  It seems like there could be two strategies here:  Rename the files to remove the version number.  I'd need a script to run through my src folder pre-commit, and remove the number so that my file name is always MyFlow.flow.  This is an annoying extra step, but makes version control simpler.  On the other hand, it probably makes deployment much harder.  Track each file in version control with its original name.  We'd need to be diligent about deleting MyFlow-1 in the commit where we add MyFlow-2 so that git would recognize this as a rename/move and show helpful diffs.  Otherwise, the whole file appears to change with every change, which makes version control rather less useful.   The Challenge for Deployment/Continuous Integration From my experiments so far, once a flow has been activated in a given environment, the metadata file can't be deployed again (either it is currently active, or has been active in the past and superseded). That means that I need to prevent my previous flow versions from being included in a deployment package (either by not tracking them at all, or by using a script to delete earlier versions).  I also need some way to determine whether the current version (in my repo) should be included in the deployment payload for a given environment or not. I could imagine a script that (1) downloads flows from the target environment, and removes *.flow files from the payload if they already exist in the target environment, but that feels complicated.  And it's even harder if I've removed the version numbers from my flow files. Are you using flows in VS or CI?  How are you managing these issues? Note:  I'm not sure whether VC and CI should be one question or two - depends on how integrated the strategy for dealing with these two challenges.  If you think these should be separate questions, comment and I'll re-post. Where can I download Ubuntu 16.04? I am unable to find the link for downloading Ubuntu 16.04 onto my   desktop/laptop. I am able to see the link only for 18.04, but I need 16.04. Do extension fields always belong to a bigger field? Let $F$ be a field, $E_1$ and $E_2$ are two distinct extension fields of $F$. Is it the case that we can always somehow find a field $G$ that contains both $E_1$ and $E_2$? In other words, could extensions of fields have different 'direction's such that they are incompatible?  Edit: I began to think about this problem while reading a proof. $F$ is a field. $a$ and $b$ are algebraic over $F$. $p(x)$ and $q(x)$ are two polynomials in $F[x]$ of minimum degree that respectively make $a$ and $b$ a zero. The proof claims that there is an extension $K$ of $F$ such that all distinct zeros of $p(x)$ and $q(x)$ lie in $K$. For a single polynomial, I know this kind of field exists because of the existence of splitting field, why it is true for two polynomials? Cron Job not working in plugin I have written a plugin that will convert posts to excel format and then email the .xls to an email id. I can make it work with when function is declared in functions.php but does not work with function defined in plugin file.   if ( ! wp_next_scheduled( 'xls_func_hook1' ) ) {   wp_schedule_event( time(), 'hourly', 'xls_func_hook1' ); }  add_action( 'xls_func_hook1', 'sendxls1' ); //senxls1 is a function in functions.php if ( ! wp_next_scheduled( 'xls_func_hook2' ) ) {    wp_schedule_event( time(), 'hourly', 'xls_func_hook2' ); } add_action( 'xls_func_hook2', 'export2excel' );   The full code is at Is it possible to insert arguments into functions when they're used like Function@ or //Function? I recently came across an IE7 only bug that I thought I'd share so when I come to this site 6 months from now to figure out the same thing, I'll have it on hand.   I believe the easiest way to recreate this bug would be the following html in a page with a declared doctype (it works correctly in "quirks mode" / no-doctype):  &lt;div style="overflow: auto; height: 150px;"&gt;     &lt;div style="position: relative;"&gt;[...]&lt;/div&gt; &lt;/div&gt;   In IE7, the outer div is a fixed size and the inner div is relatively positioned and contains more content (assuming the inner div causes an overflow). In all other browsers, this seems to work as expected.  Screenshot: