I am currently using Ubuntu 15.04.  My Linux experience is limited.  I would like to execute fstrim weekly.  Ubuntu already has a script set up in /etc/cron.weekly/fstrim, but it does not do exactly what I want it to.  I would like to save the output of this to a cumulative log and I am wondering: what is the best way to achieve this.  At the same time, I wish to facilitate my installs so I have personal requirements:   From a fresh OS install, sudo crontab -e is the only acceptable change outside of /home for the solution to work (i.e. no need to modify default file /etc/cron.weekly/fstrim) Log files must be stored to my preferred format, in a dedicated file in /home/user/path/to/mylogfile.txt   So I now understand that it is safe to sudo vi /etc/cron.weekly/fstrim as it is a script file rather and than a crontab (in other words: a command similar to crontab -e is not required for OS-native weekly jobs stored there), but...  Question #2 - The end goal is calling fstrim weekly while ensuring it is performed only once per week on the system.  Are there any errors or problems with the following solution?:  Set up root's crontab such that:  $ sudo crontab -l @weekly /home/user/path/to/myscript.sh   Have an executable file /home/user/path/to/myscript.sh that contains:  #!/bin/bash  if [ -f /etc/cron.weekly/fstrim ]; then     mv /etc/cron.weekly/fstrim /home/user/cron_backups/fstrim.orig fi  # trim all mounted file systems which support it, and log results /sbin/fstrim -v --all || true &gt;&gt; /home/user/path/to/mylogfile.txt   [END]
I recently installed an SSD and AFAIK Ubuntu makes a weekly FSTrim on SSD's that support it.  Is there a log file of this trims?
Mesh generation from PointCloud? The figure bleow is the pointcloud imported as .ply file into blender.   However, I would like to perform triangulation on it to produce the surface as seen in picture below(Accomplished using ballpivoting surface reconstruction and poisson disk sampling in MeshLab).   Is there a way to perform triangulation on belnder.  (PS: The purpose is to be able to select each faces/vertices individually to automate further.)  Edit: Question: Is it possible to select the vertex/faces programmatically post triangulation? if so, please explain how? Story ID: Boy who is stuck at 5 years old with robot nanny Here's what I remember:  The boy is 5 years old, and has been for some time, because there's a bit in which he recalls turning 5 (celebrating his 5th birthday) many different times  There's a robot nanny in the apartment with him that he learned to disable so that he can hang out with the girl, who he isn't supposed to know. (In my mind the nanny bears somewhat of a resemblance to Muthr from the Wondla series... however I definitely read this story well before reading Wondla)  There's a neighbor girl who teaches him to read (I think she's like 9), and when they first meet she asks how old he is (5 is the last age at which growth/development can be successfully (and safely?) suspended) and he lies, saying that he's 6, but doesn't know why he does.  When a child whose aging process has been stopped learns how to read, they begin aging normally again, so the parents don't want them to learn to read.  The children who have stopped aging are kept apart from other children who grow normally-- they have separate playgrounds and the like  The injection/serum used to halt the aging process was developed by a scientist, who when he first shared his findings had a 5 year old son and injected him, then told the onlookers/potential buyers/other parents to come back in 20(?) years. When they did, their children were adults and no longer needed them or were ungrateful layabouts, and the scientist's son was still 5 years old, cute, needy, etc.  The main character has a discussion about how he wants to turn 6 with his parents and they agree but only because he's already learned to read and it's irreversible.  It's kinda dark and emphasizes the need that parents have to feel wanted. Please help! I remember it so vividly and I'd love to read it again! I have a problem when I try to start a Workflow 2013 in SharePoint Server 2013. I believe the error is related with permissions, but I cannot be sure.  Here is the error message in the log:  RequestorId: ef9edb7c-cc3d-5e10-3681-eada907596a4.  Details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPRequestGuid":["ef9edb7c-cc3d-5e10-3681-eada907596a4"],"request-id":["ef9edb7c-cc3d-5e10-3681-eada907596a4"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Thu, 31 Jan 2013 16:36:44 GMT"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}  The HTTP response content could not be read.  'Error while copying content to a stream.'. at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem   The question is: What permissions do I need to configure in SharePoint for the WF publisher and the WF manager service account?  I’ve set a WF Manager service account named “wfservice” (this account is a local admin and has the sysadmin permissions in SQL Server), and I published the workflow and tested it using the account “wfuser”. Both accounts have full control permissions in the web app and are site owners, for testing WF 2013 purposes.  I’ve already done the DNS flush, as mentioned in Andrew Connell’s article, and I’m still getting an Unauthorized exception in the Item Workflow Status.  Anyone knows what’s going on? Which permissions do I need to configure? I've lost a command block, how can I find it? I've placed a command block making it day all the time. I want to turn it off, but I've lost it. What's the quickest way to find it? How to turn off notifications for individual apps? How to find out the variant of my Galaxy Nexus? I've read many years ago in books, that the brain has no nerves on it, and if someone was touching your brain, you couldn't feel a thing.  Just two days before now, I had a very bad migraine, due to a cold. It's become better now, but when I had it I felt my head was going to literally split in half, as the pain was literally coming from my brain.  So it lead me to the question: How come people can get headaches if the brain has no nerves? I am to prove by induction that given that $a+1/a$ is an integer (i.e. belongs to Z  ) then $a^n+1/a^n$ is an integer too. I'm pretty much clueless here. Thanks in advance. Display the Number of Comment Upvotes In Recent Activity Pages It would be helpful if we could see the number of upvotes cast for our comments, or other people's comments in response to us directly in the user profile in either the activity tab or the response tab respectively. It should be quite easy to implement (e.g. sharing a single partial view for displaying comments).  It could be useful, since we can evaluate the legitimacy of the comment and address horrible mistakes sooner. How did Bill and Percy get 12 OWLs? In Prisoner of Azkaban, Hermione took 12 subjects, and needed a Time-Turner to do so. However, it is mentioned in the series that both Bill and Percy Weasley got 12 OWLs, so would have taken 12 subjects as well, so both would have needed Time-Turners for three years to do this. Doesn't this seem a little unusual, given how strict the Ministry is over the use of Time-Turners,  that they would give them to several Hogwarts students? Is there a way to make rigid body interact with softbody physics? How can I recover contact information from a stolen phone? What is the best way to flatten a linked list with lists as values? Is temperature in vacuum zero? From      The temperature of an ideal monatomic gas is a measure of the average kinetic energy of its atoms.    Now if I remove all the particles from the box shown below will the temperature be zero? Let $\mathscr{F}$ be a collection of connected subsets of a metric space $M$ such that $\bigcap\mathscr{F}\ne\emptyset$. Prove that $\bigcup\mathscr{F}$ is connected.   If $\bigcup\mathscr{F}$ is not connected, then it can be partitioned into two disjoint, non-empty subsets $A,B$. Let $x$ be a point in $\bigcap\mathscr{F}$. Then either $x\in A$ or $x\in B$. I don't know where to go from here. System Settings icons missing in 14.04 How to install Skype 4.3? I accidentally closed the window for the verfication code I wanted to create an account for Ubuntu One, but I got impatient when the email with the verification code didn't arrive... I thought I might have typed the wrong address, closed the window and tried again. it told me the address already existed and I just got the code. But since I closed the window I missed it. Is there any way to recover the code? What intuitive notion is formalized by "natural transformation" in category theory? What kind of beings are shown by the Marauder's Map? The map definitely shows people (humans) inside the castle But I remember reading Harry watching Peeves bouncing around in the trophy room and Peeves is not human And I don't remember if I had exactly read it or not, but  says that it shows the ghosts as well So what kind or creatures or beings come under the map's radar? Any living creature? Or humanoids? Or creatures with a significant size or intelligence? Would it show the house elves in the kitchen, centaurs in the forests and the merpeople in the lake as well? What about the giant squid and the thestrals or unicorns? Would it have shown the troll from the Philosopher's stone if they had the map then? What about Quirell/Voldemort? Would he have shown up on the map? And the basilisk from the chamber of secrets (the book)? May be the chamber itself was unplottable but if the map could show the basilisk he would have been visible when he was slithering around in the pipes.