I have a bash script that works fine.  In the terminal, I can execute the script...  ./foo.bar   The script closes soffice.bin,  Executes a python script that replaces the contents of the previously closed libreoffice file  Opens libreoffice with the file in question and displays it on my 2nd monitor.   This works like a charm when I personally execute this in my terminal window -UBUNTU 19.10.  I tried using CRON to automate the process.  But when CRON does the job ---   The script closes soffice.bin (libreoffice). Executes a python script that replaces the contents of the previously closed file Opens libreoffice with the file in question but does not open the window for "viewing".   I use this system to run a database server, but I have a monitor attached to display the daily information.  I guess I am trying to figure out why cron does the same thing except re-open libreoffice completely.  It hangs like it's trying to do a restore.  But my options in my BASH script on libreoffice are --norestore.
After doing a "sudo su -" on an Ubuntu 12.04 notebook I did a "crontab -e", added this:   * * * * * env DISPLAY=:0.0 /usr/bin/gnome-calculator   and waited for minutes. Nothing Happened. I don't have any external monitors and if I run this command "env DISPLAY=:0.0 /usr/bin/gnome-calculator" in the terminal, it just works. But not from cron. Why?   The syslog only contains this:   May 24 14:37:01 localhost cron[1227]: (root) RELOAD (crontabs/root) May 24 14:37:01 localhost CRON[16432]: (root) CMD (env DISPLAY=:0.0 /usr/bin/gnome-calculator )   And I already tried an "xhost +localhost".   [root@NOTEBOOK /var/log] xhost access control enabled, only authorized clients can connect INET:localhost.localdomain SI:localuser:USERNAME [root@NOTEBOOK /var/log]    So the solution for another question like this on askubunut didn't worked.
I am looking for an easy way to create in Illustrator vintage style corners like on the picture provided.  I have some technical ideas, but they are time consuming, there should be an easier way I believe. Overlapping matches in Regex Electric potential is related to Electric Field by negative integral of Field with distance.If charges move away from the positive terminal (Assuming conventional flow) why is there no drop in electric potential even though the charges are moving in the direction of electric field?  Some of the answers I read for the similar question said that the electrons in wires rearrange themselves in a way to make the electric field uniform in the wire.However,this doesn’t explain the absence of potential drop in the wires (due to electric field) since the field is still there. This has been nagging me for a while and then I saw  asking what the difference is between variables and parameters. In the context of mathematics, what is the difference between  variables constants parameters arguments  I get 1. and 2. confused because, for example the general form of the quadratic function is often expressed $f(x)=ax^2+bx+c, a \neq 0$ and $x$ is the variable so what does that make a,b and c? I assume since math is so rigorous with precise definitions, these have one, but it is also a valid answer that as words they do not have a single precise definition. "You just can't" vs. "you can't just " I'm a bit confused about this. Which expression is correct?     You can't just do that.    or      You just can't do that.   I'm trying to say:     You can't just bash an ideology because of what someone has said/done. This option, which was present in the "Mouse and Touchpad" settings panel in previous versions, is for some reason absent in 16.04 LTS. Does anyone know why this is, and/or how to fix it? Thanks. Series as an integral (sophomore's dream) “Unable to Connect to World” Minecraft PE 1.16.201 So my brother and I have been playing Minecraft together on our iPads for years now, but in September I got a new iPad Pro 3rd Generation and I’ve been having issues with Minecraft ever since. Every time we have tried to join each other’s worlds we get the message “Unable to connect to world”. Recently after the update on December 16th, it worked for about a week without having any issues, but now it has gone back to not letting us connect to the worlds. Both of us are able to connect to other people’s worlds, but not each other’s, we’ve tried many things to fix this but so far nothing has worked. If you have any ideas for what we should do please let me know, thank you so much! I am non-EU citizen working in Germany. Can I travel to UK without a visa? I am from Non-EU country (from Nepal to be precise) and recently moved to Germany for work. I am applying for BlueCard. I would like to travel to UK later this year, can I go there without visa as I am resident in another EU country?  I can't find this information online. Any links/references will be much appreciated. Best way to capture historical changes between levels in a dimensional hierarchy What is the cleanest way to capture changes between levels in a dimensional hierarchy?  I have the dimensional hierarchy [Area] > [Region] > [Location], where Area is the parent to Region and Region is the parent to Location. Location is lowest level of the hierarchy, and is associated with the fact table.  The business rules are: Locations are able to change the Region they are assigned to based on business need. Furthermore, Regions are able to change the Area they are assigned to.  We want to capture those changes so that when we do historical analysis, we can compare business metrics before and after a Location changed its Region, and a before and after a Region changed its Area.  What is the best way to do this?  The four ways that I have come up with all seem to have major drawbacks:   Using a bridge table between hierarchy levels requires that you use time bounds (effective start/end dates) to correctly identify which parent a child belongs to as you walk up the hierarchy. That makes queries prone to error, especially with hierarchies with many levels. Versioning a child record whenever its relationship to its parent changes (e.g., versioning Region A when it moves from Area A to Area B) and then cascading that change all the way down the hierarchy (e.g., creating new versions of Locations tied to Region A so that they are tied to the new Region A). Updating the child record's reference to the parent record, making you use time bounds to reassemble the correct history (prone to error). Always use time bounds when querying up the hierarchy to make sure Location A is associated with the correct Region (likewise, Region A is associated with the correct Area) for the moment of the fact being analyzed.   None of these seems clean to me.  Is there a better way?  Thanks a lot hyperlink name with biblatex authoryear (biblatex 1.4b) I'm new here so I'm not sure if this is the right way to express my question:  I'm using the excellent biblatex package with the author-year style and want the links in my citations to include the name of the author as well as the parentheses. The answer presented at  did exactly what I wanted but it seems the solution is broken with the newest biblatex version 1.4b. Can anyone help me by adapting the code to the newest biblatex version? Ways to give users some specific education about question quality and topicality Important: This question is being asked here, and not on the Programmers Meta,  because I believe that several SE sites suffer from this same, specific problem.    On Programmers, I see a pattern emerging.   New User sees the "Programmers" site title, and asks their incomplete, "fix my broken code" question. Community members comment that their question is off-topic, and recommend Stack Overflow.  New User says "thanks" and leaves, leaving their undeleted question for the community to clean up.    What seems clear to me is that:   New User has never seen the "What kinds of questions can I ask about here" page, or if they have, they've clicked through it without reading it. New User doesn't know how to move their question to the right place properly  (i.e. post on new site, delete from old site). Community cleanup of such questions is onerous.  The moderators on Programmers, following the principle that the community should moderate itself for the most part, are not proactive about removing such questions unless they're especially egregious. Migration is even more onerous.   OK, so we have the .  Here's what it says about topicality, about halfway down the page:    Note to those who are confused about Programmers' site scope: it's all right there, in black and white.  However, I do notice a problem.  It's circled in red.  That's our fault, the fault of the Programmers community.  What we really meant to say was "Don't ask your code troubleshooting questions here; those belong on Stack Overflow."  Coding tools deserves its own bullet.  We should fix that.  However, what are the chances that the user is actually seeing this, and evaluating whether or not they should ask their question based on this?  So here's my question, in two acts:  ACT I:  Is there a way to highlight the pain points of a particular site to new users specifically, so that we can be very clear that we don't want those questions that are clearly and unambiguously off-topic on our site, before they ask their question?  ACT II: Failing that, is there a way that we can fast-track the removal of such questions so that they no longer pollute our front page? biblatex: displaying all authors of multi-author works in the bibliography I'm using the  package to add citations and a bibliography to my LaTeX document. I've noticed that only the first author plus "et al." is displayed for works with more than three authors. That's fine with me for in-text-citations, but I'd rather have the complete author information in the bibliography. How can I do that? Count work days between two dates How can I calculate the number of work days between two dates in SQL Server?   Monday to Friday and it must be T-SQL. I'm learning calculus, specifically derivatives and applications of MVT, and need help with the following exercice:      Show that, for all $n &gt; 1$ $$\frac{1}{n + 1} &lt; \log(1 + \frac1n) &lt; \frac1n.$$    I tried to follow the below steps in order to prove the RHS inequality:   Proving that $f &lt; g$ on $I$ from $a$ to $b$:  Step $1$. Prove that $f' &lt; g'$ on $\operatorname{Int}(I)$.  Step $2$. Show that $f(a) \leq g(a)$ or that $f(a^+) \leq g(a^+)$  Following the above steps, let $f(x) = \log(1 + \frac1x)$ and $g(x) = \frac1x$, for all $x &gt; 1$. One has  $$f'(x) =  -\frac{1}{x^2 + x} \quad \text{and} \quad g'(x) = -\frac{1}{x^2}.$$  We note that, for every $x &gt; 1$, $f'(x) &gt; g'(x)$. Moreover, $f(1^+) = \log(2) &lt; 1 = g(1^+).$   My problem is that I got the wrong inequality sign in Step $1$.    Looking at the solution in my textbook, the author suggests using the MVT but I don't know how to apply it in this case. I stopped dual booting and I don't want to have to choose the OS any more. I want to boot into Ubuntu 12.04 directly without seeing the GRUB menu.  How can I achieve that? Asymptotic complexity of .NET collection classes How do you remove the ability for a user to make a comment or post on a page? I am building a new website on Wordpress, and all my pages have the add comment box at the bottom. I wish fo rthis to be removed from pages such as Home, Contact Us, About etc etc, but want it to remain on the blogs and galleries.  I have read  but do not really understand what this means to do. is there an easier way to do it. I do not have  under Settings -> Discussions. I'd like to install a  client for Xubuntu (12.04).  I'm getting non-English Google results, and I didn't find  in the Xubuntu repositories.   Does anyone know of a client that works well for Ubuntu or it's supported derivates (or installation instructions for grive?) Note: TL;DR, scroll to bottom for summary. I recently set up my computer for a dual boot between Ubuntu 9.10 and Windows 7. My current drive setup is as follows.  | A1 |     A2       | | B1    |  B2  | B3 |        A1: 100 mb, windows 7 "System   Reserved" boot partition      A2: 230 gb, data section, this one   needs to be shared between the   operating systems      B1: 125 gb, windows 7 OS      B2: 123 gb, ubuntu OS      B3: 2gb, linux swap space     Pretty much I want to have my documents, music, pictures, videos, etc accessible from both operating systems. My first attempt involved making the data (a2) partition NTFS, and moving my home folder from ubuntu to the data partition. However, as I read NTFS does not work nice with permission, and it messed up my home folder. My next idea is one of the following: 1) format the data partition to ext2/3/4 and move my home folder from linux there, and get a driver to read ext partitions in windows 7. The problem with that is that most of the ext drivers/software are not compatible with windows 7 or do not integrate with windows explorer (I really don't want to open a separate software window just to access my data, plus it's probably not compatible with other software.)  looks promising, but I'm not sure how it works with ext4 and windows 7 (not officially supported, when trying in Vista Compatibility Mode, it tells me I need to format the ext drive to use it). My next idea, 2) keep the home folder in ubuntu where it is, but create symlinks for the Documents, Music, etc folders to an NTFS formatted Data (A2) partition, and add those locations to the windows 7 libraries. I'm not totally sure how the permissions would work out, but it should be fine since it's only the documents, music, etc and not the important config files in the rest of /home/user/. Correct me if I'm wrong. Currently, symlinks is my best idea, although i'm not sure how it will work.  Any suggestions, additions to my ideas, links, pointers, whatever would be greatly appreciated. Even if it means I should reformat both my drives and repartition (2 250gb drives if you want to suggest a setup for that), I won't be too opposed if that's the best suggestion (I've gone through the format/install/format/reinstall process 5 times over the past 3 days, once more won't hurt me).    TL;DR, summary:  I have two hard drives. One is partitioned for Ubuntu and Windows 7, the second one I want accessible to both operating systems to store documents, music, pictures, videos, etc. Suggestions on how to set up the data drive.    P.S. bonus if I can get an apache server document root folder working between the two OS's as well (permissions could become very complicated, so don't worry too much about that)  P.P.S. Related question, but data viewing is one way: