Is it possible to limit the dates and times a share is available?  For example, I may have a group that needs a share, one to be visible, at certain dates and times.  I do not mean smb or nfs connectivity between Linux and Windows.  I am asking if either OS is capable for doing this.
How can I (in order of preference, descending):   Disable file-server access to a specific share for a user or group based on the time of day. Disable file-server access entirely for a user or group based on the time of day Disable file-server access entirely (server-scope) based on the time of day. This is not at all related to Remote Desktop/RDP access.   For example, Bob is in the group WorkHours. The share "Documents" grants access to users in the group WorkHours. How do I deny access to all files in the share "Documents" from 7PM to midnight, every day, automatically?
Transit visa for Indian citizen traveling through Hong Kong When to use the double not (!!) operator in JavaScript Under what conditions is the exponential map on a Lie algebra injective? Let $G$ be a Lie group with Lie algebra $\mathfrak{g}$ and let $\exp :\mathfrak{g}\rightarrow G$ be the exponential map.  In his blog,  that if a Lie group is not simply-connected, then $\exp$ will not be injective.  Conversely, is it true that if a Lie group is simply-connected, then $\exp$ is injective?  If not, what is a counter-example? Identify this story about a quickly healing woman Years ago I read a short story about a woman trying to commit suicide. However, because she had a extremely high rate of healing, her wounds were never fatal. The story ends with her being in the morgue after her heart was taken out for transplantation. Before a new heart could grow she was incinerated. The person who received her heart received the quick healing as well.  Does anyone know this story? Search favorite questions by tag Favorite questions on Stack Overflow I feel is highly unused feature of all the features provided on the site. (This again is my personal opinion)  I have favorited around 90 question till date and it gets very very very difficult if I want to search for a question which I remember I have favorited, which defeats the entire purpose of one favouriting a question, so here is my small suggestion.  Favorites by tags  Screen 1        Screen 2        Please share your opinions on this. Construction of uncountably many non-isomorphic linear (total) orderings of natural numbers I would like to find a way to construct uncountably many non-isomorphic linear (total) orderings of natural numbers (as stated in the title).  I've already constructed two non-isomorphic total orderings. They are $$ 1 &lt; 2 &lt; 3 &lt;\ldots\\ 1 &gt; 2 &gt; 3 &gt;\ldots $$ where "$&lt;$" and "$&gt;$" are  strict total ordering relations.  Thanks in advance for your help. Duplicate application icons in Ubuntu dock upon launch I'm using Ubuntu 17.10 with GNOME shell and Numix-Circle icon theme.   When I hover over the Numix icon for Nightly Web Browser, which is pinned to the dock I get the title "Nightly Web Browser".      But when I launch the program, another icon pops up at the bottom, with the name "Nightly". How to get the filename without the extension from a path in Python? Preserving signatures of decorated functions Suppose I have written a decorator that does something very generic. For example, it might convert all arguments to a specific type, perform logging, implement memoization, etc.  Here is an example:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z  &gt;&gt;&gt; funny_function("3", 4.0, z="5") 22   Everything well so far. There is one problem, however. The decorated function does not retain the documentation of the original function:  &gt;&gt;&gt; help(funny_function) Help on function g in module __main__:  g(*args, **kwargs)   Fortunately, there is a workaround:  def args_as_ints(f):     def g(*args, **kwargs):         args = [int(x) for x in args]         kwargs = dict((k, int(v)) for k, v in kwargs.items())         return f(*args, **kwargs)     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g  @args_as_ints def funny_function(x, y, z=3):     """Computes x*y + 2*z"""     return x*y + 2*z   This time, the function name and documentation are correct:  &gt;&gt;&gt; help(funny_function) Help on function funny_function in module __main__:  funny_function(*args, **kwargs)     Computes x*y + 2*z   But there is still a problem: the function signature is wrong. The information "*args, **kwargs" is next to useless.  What to do? I can think of two simple but flawed workarounds:  1 -- Include the correct signature in the docstring:  def funny_function(x, y, z=3):     """funny_function(x, y, z=3) -- computes x*y + 2*z"""     return x*y + 2*z   This is bad because of the duplication. The signature will still not be shown properly in automatically generated documentation. It's easy to update the function and forget about changing the docstring, or to make a typo. [And yes, I'm aware of the fact that the docstring already duplicates the function body. Please ignore this; funny_function is just a random example.]  2 -- Not use a decorator, or use a special-purpose decorator for every specific signature:  def funny_functions_decorator(f):     def g(x, y, z=3):         return f(int(x), int(y), z=int(z))     g.__name__ = f.__name__     g.__doc__ = f.__doc__     return g   This works fine for a set of functions that have identical signature, but it's useless in general. As I said in the beginning, I want to be able to use decorators entirely generically.  I'm looking for a solution that is fully general, and automatic.  So the question is: is there a way to edit the decorated function signature after it has been created?  Otherwise, can I write a decorator that extracts the function signature and uses that information instead of "*kwargs, **kwargs" when constructing the decorated function? How do I extract that information? How should I construct the decorated function -- with exec?  Any other approaches? Blank questions and answers I have white blank on the posts.    App Version: 1.0.89 Device Manufacturer: Meizu Device Model: m2   OS Version: 5.1 (1464689330)    I can't see the questions and the answers and the comments.  I saw that it's a common issue..  Does it have a fix?   EDIT -  I saw  answer. This answer is ~2 years old. It says that it will fix in the next update.  His version is 1.0.59 - mine is 1.0.89. Huge different.   The problem is still exists! prevent "action" if top of page I have a manual list of stuff that are sometimes separated by an hrule(or my own custom ruler) for visual purposes.  Sometimes the hrule ends at the top or bottom of a page which makes it useless.  Is there a way to prevent it from being added if it is at the top or bottom of a page?    MWE of problem:  \documentclass{book} \usepackage{tikz} \begin{document} \newcommand\rulesep{%   \par % make sure we end a paragraph   \vskip5pt % space above the rule   \leaders\vrule width \textwidth\vskip0.4pt % rule thickness is 0.4pt   \nointerlineskip % disable interline glue here   \vskip5pt % space below the rule } \def\dotikzcircle#1{\begin{tikzpicture}\draw(0,0)circle(#1);\end{tikzpicture}} \rulesep \noindent This is a test\noindent \rulesep \noindent End of test \rulesep \dotikzcircle3 \rulesep \begin{center}\dotikzcircle3\end{center} \rulesep \begin{center}\dotikzcircle3\end{center} \rulesep \dotikzcircle1 \rulesep \dotikzcircle2 \rulesep \dotikzcircle3 \rulesep \dotikzcircle4 \rulesep \dotikzcircle5 \rulesep  \end{document} If $f^2$ is Riemann Integrable is $f$ always Riemann Integrable? My "credit limit" is now a "credit access line". Does it matter? Algorithm to match one input file with given numbers of file Best way to strip punctuation from a string It seems like there should be a simpler way than:  import string s = "string. With. Punctuation?" # Sample string  out = s.translate(string.maketrans("",""), string.punctuation)   Is there? Find $\lim\limits_{n \to \infty} \frac{\sqrt 1 + \sqrt 2 + \dots + \sqrt{n}}{n\sqrt{n}}$. $$\lim_{n \to \infty} \dfrac{\sqrt 1 + \sqrt 2 + \dots + \sqrt{n}}{n\sqrt{n}}$$   $$\lim_{n \to \infty} \dfrac{\sqrt 1 + \sqrt 2 + \dots + \sqrt{n}}{n\sqrt{n}} =\lim_{n\to \infty} \dfrac1{n}\sum^{n}_{k = 1} \sqrt{\dfrac k n} $$  While searching this question I found, .   Like in the accepted answer I first compared my series to LRAM,    $$\int_a^b f(x)\,dx=\lim_{n\to\infty}\frac 1n\sum_{i=1}^n f\left(a+\frac{b-a}n i \right)$$  I got $a = 0$, $b = 1$ and $f(x) =\sqrt{x}$ so,  $$\int_0^1 \sqrt{x}\ dx = \dfrac2 3$$ should be the answer.  Is there any simpler method to do this sum ? I have not learnt this method to do infinite sums so I can't use it. Sass .scss: Nesting and multiple classes? sed fails with "unknown option to `s'" error Low wifi signal in 14.04 LTS Publishing a conference version of a journal paper at the same time ? (copyright issues)