Crontab unable to run program that calls credentials file
Why is my crontab not working, and how can I troubleshoot it?
Why haven't I received the "Curious" badge? As you can see in the picture, I have 13 out of 5. But it's been like this for about two months! What's the reason for that? Prevent people from downloading / copying / making a copy of data in Google doc bash: /usr/bin/locale-check: No such file or directory error after i downgraded from ubuntu 18.10 to 18.04 Restore Missing "Settings" (gnome-control-center) Icon in Ubuntu 18.04 I have been running Ubuntu 18.04 for a couple of weeks. I upgraded from 16.04 and all went smoothly.   I am not sure what I changed, but this morning I noticed that the "Settings" Icon that launches gnome-control-center is missing from "Show Applications" and the applications menu as well. When I searched from "Show Applications" for gnome-control-center or just settings, nothing showed up.   So, I figured I must have accidentally removed it and figured a reinstall of the package would resolve the issue. I have searched and found several postings where this worked. I tried:  sudo apt install gnome-control-center   And then rebooted - which reinstalled the gnome-control-center and I could then launch it from the command line. However, there was still no Settings Icon in any of the menus.   I also tried many other suggestions including:  sudo apt-get install --reinstall gnome-control-center sudo apt-get install ubuntu-desktop sudo apt install ubuntu-desktop --reinstall sudo apt-get install unity-control-center   However, none of these has been successful in restoring the icon into "Show Applications" or any applications menu.   Anyone have any suggestions on something I haven't tried? Would be much appreciated.  Or, is there a way to just manually recreate the icon?   Output of locate gnome-control-center.desktop:  /usr/share/applications/gnome-control-center.desktop  /home/dccrens/.local/share/applications/gnome-control-center.desktop /home/dccrens/.gnome/apps/gnome-control-center.desktop   I am running Ubuntu 18.04 desktop on kernel 4.15.0-45-generic. Logistic regression cost surface not convex I am building a simple logistic regression model on 2D data. Here is the input I use.    I built a logistic regression model using this data and it successfully is able to find the discriminating line between these two classes. Here is the separating line found by my program:    Also, just for debugging, I plotted number of iterations vs J(theta), which also looks fine:    Now, confusing part comes into play. I am investigating the cost surface of this model that the logistic regressions is doing the gradient descent on. I am considering three different loss functions. Sum-of-squared loss, hinge-loss, log-loss.  Hinge loss:    Log-loss:    Sum-of-squared loss:    As far as I know, both hinge loss, sum-of-squared loss and log-loss should produce a convex surface. When I look at my surfaces, however, sum-of-squared surface does not look convex to me. Why is that the case?  For convenience, here is the two critical functions from my code:  function retval = J(X, y, theta)     M = size(y, 1);     % sum of squared error     retval = (1/(2*M)) * sum((h(X, theta) - y).^2);  endfunction  function retval = h (X, theta)     % logistic     retval =  1 ./ (1+ exp(-1 * (X * theta))); endfunction What sci-fi novel has the moon split into 7 pieces by an asteroid, threatening life on earth? I am looking for the title of a novel that I only caught part of on audio. It takes place within our current time frame and deals with the Moon getting struck and fragmented into (initially) 7 pieces by a high-speed asteroid that they called "The Agent".  Within a few weeks of this episode, scientists figure out the the Moon will continue to break down in a cascade reaction over the next couple of years until the planet gets bombarded by so much debris that it sterilizes Earth. The governments of the world frantically start to build a series of ships using swarming concepts to evacuate the planet as much as possible... and that's all I have heard so far.  Thanks for any info. When do "per day" spell-like abilities recover in 3rd edition? Real Numbers Raised to Imaginary Powers? What is a real number to the power of an imaginary or complex number? e.g. 3i. I have searched through sites about imaginary numbers, but none seem to say anything about imaginary indices. Examples and explanations would be appreciated. Appositives with possessiveness? I would like to say something like     The boy, Adam's, favorite toy was a bike.   What is the proper way to say this? Integer solutions to combinations of floating point numbers Imagine two kids each sitting in the center of their own tilt-a whirl®, each holding steady a flashlight (or laser) whose beam is parallel to the deck.  Each machine rotates and precesses (we'll leave out nutation) at different, real, rates.  How do we determine the least number of rotations to alignment, for each kid. If you prefer another analogy: Saturn and Jupiter orbit with different (real) periods.  How many orbits for each until conjunction in precisely the same position in space?  Simplify by assuming circular, observer-centric, orbits. specifically solutions to: aC1 + bC2 = N where a, b, N are positive integers of your own choosing and C1, C2 are constant, unique, positive, non-integer(real) numbers where C1 &lt; C2. I am hoping to avoid rigorous computational methods involving modulus tests. Hope I clarified the ambiguities. Thanks, @DonThousand the Bezout identity looks interesting. Paperback novel about a man who kills a birdlike alien on his balcony with a watering can How do you forcefully remove apps in Windows 10? How can I remove apps that Windows doesn't seem to allow to be uninstalled, like Xbox and Groove Music? Mathematical expression to form a vector from diagonal elements I would like to know is there any way to express mathematically (using matrices multiplication, addition, etc.) a vector which is formed from the diagonal elements of a matrix. For example, I have a matrix called $\mathbf{M}$ and I want to create a vector  $\mathbf{v}$ such that $\mathbf{v}= \text{diagonal elements of } \mathbf{M} $  Any matrix algebra or operation do that ? Thank you. Make links posted by users open in a new window Most of the time when I follow a user's link, I just want to see their site, look it over, then return to answer their question (not leave SO completely and not come back). Could we make the links users post open in a new window please?  EDIT: I originally wanted this implemented because it's what some other sites did, but I now definitely prefer SO's way. If I want to open a new tab, I middle-click/control-click (or whatever); if not, I just click. I'm in control of what happens. Would never want to go back now. Arrow with plus/minus sign on top Below you can see an arrow with a plus and a minus sign on top of it. How is this achievable in latex? Further possibilities: arrow with only plus and arrow with only minus sign on top. How can I do this? Some proof question about Fibonacci sequence Evaluating $\int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x$ How can I remove duplicates in my .bash_history, preserving order? I really enjoying using control+r to recursively search my command history. I've found a few good options I like to use with it: # ignore duplicate commands, ignore commands starting with a space export HISTCONTROL=erasedups:ignorespace  # keep the last 5000 entries export HISTSIZE=5000  # append to the history instead of overwriting (good for multiple connections) shopt -s histappend  The only problem for me is that erasedups only erases sequential duplicates - so that with this string of commands: ls cd ~ ls  The ls command will actually be recorded twice. I've thought about periodically running w/ cron: cat .bash_history | sort | uniq &gt; temp.txt mv temp.txt .bash_history  This would achieve removing the duplicates, but unfortunately the order would not be preserved. If I don't sort the file first I don't believe uniq can work properly. How can I remove duplicates in my .bash_history, preserving order? Extra Credit: Are there any problems with overwriting the .bash_history file via a script? For example, if you remove an apache log file I think you need to send a nohup / reset signal with kill to have it flush it's connection to the file. If that is the case with the .bash_history file, perhaps I could somehow use ps to check and make sure there are no connected sessions before the filtering script is run? Blank white desktop icons on new Windows 7 install I just did a fresh install of Windows 7 professional on my father's Toshiba Satellite laptop and everything went smoothly except for the fact that certain desktop shortcuts appear as a blank white page.    I've tried:    going in and changing the icon to many different things reloading the icon cache by deleting the IconCache.db file uninstalling his Free AVG as he heard the virus scanner might be preventing it (it wasn't and he put it back.)   The one thing these icons have in common is that they are shortcuts to some very old DOS executables.  One of them is Word Star 2000 to give you an idea.  Does anybody have any other suggestions besides what we've tried? How do I select all the columns in a table that only contain NULL values for all the rows?  I'm using MS SQL Server 2005.  I'm trying to find out which columns are not used in the table so I can delete them.