How to run privileged bash script as non-root?
Allow setuid on shell scripts
Rough Smart objects problem in Photoshop I am using Adobe CC(2015) latest version and the behaviour of the smart objects isn't normal. When I paste a vector from Illustrator to Photoshop, the vector looks low quality or rough.   ORIGINAL  IN PHOTOSHOP   However, if I click over the smart object layer(in Photoshop)and this is opened in Illustrator, the vectors looks as the original one.   VECTOR OPENED IN ILLUSTRATOR FROM PHOTOSHOP SMART OBJECT   How can I solve this? Allow moderators to fine-tune the effects of a lock Current Situation  When a moderator locks a question or answer, they can choose between different types of post notices: content dispute, off-topic comments, historical significance, wiki answer, or no notice. , but that it works this way is not clear to moderators and it is also not clear what effect a given notice has. The only way to find out for sure is to ask somebody who is not a moderator or use a sock. (This is due to moderator powers possibly overriding the effect of locks.)  Feature Request  Store the effects of a lock separately independent of the post notice. In the interface for locking a post, provide moderators with a checklist regarding the effects of the lock, for example:     This lock prevents:         answers   votes   flags   comments   edits      For questions, also add an option to apply the same lock to all answers to the question. For the canned lock reasons, automatically provide an appropriate choice as defaults.  At the very least make it clear in the dialogue what detailed effects a lock has.  Rationale  Post locks are used rarely, but when they are it is often for important reasons such as avoiding a divide of the community, an escalation of events, or similar. Thus, locks are a tool which moderators have little experience with, but whose correct use (i.e., choosing the right type of effects and knowing what the effects are) may be crucial. Moreover, many locks are used for special cases with individual needs, which in turn require individual locks.  In a specific example, there is a question on Academia, which lead answers and comments, whose appropriateness for the site is subject to a Meta discussion. To avoid further potentially inappropriate comments, answers, etc., I wished to lock question for the remainder of the Meta discussion. I chose content dispute as a lock reason, since it seemed most appropriate notice, however this only prevented edits to the question – which makes sense in other cases but not here. After I noticed this, I chose a historical lock (which I knew to be affecting everything) and removed the post notice (because it was not appropriate). The latter action lead to comments on answers being allowed (), which was not the desired effect either.  Related Questions    – This seems to be partially addressed: The different locks already do have different effects. However, my request goes further than this.  – This is about customising the notice not the effect.  – This would be addressed with this. Best answer versus best solution I'm participating in the  and wanted to refer to the on- and off-topic questions on the  proposal.  However, I couldn't find a link to it anywhere in the SE site.  If I'm not missing the obvious, could we have one? Nice proofs of $\zeta(4) = \frac{\pi^4}{90}$? I know some nice ways to prove that $\zeta(2) = \sum_{n=1}^{\infty} \frac{1}{n^2} = \pi^2/6$.  For example, see  or the answers to the question "?"  Are there any nice ways to prove that $$\zeta(4) = \sum_{n=1}^{\infty} \frac{1}{n^4} = \frac{\pi^4}{90}?$$  I already know some proofs that give all values of $\zeta(n)$ for positive even integers $n$ (like #7 on Robin Chapman's list or Qiaochu Yuan's answer in the linked question).  I'm not so much interested in those kinds of proofs as I am those that are specifically for $\zeta(4)$.  I would be particularly interested in a proof that isn't an adaption of one that $\zeta(2) = \pi^2/6$. Extend tourist visa stay in USA due to coronavirus and waive I-539 fee My mom has come to US on a tourist visa and her I-94 expires on the first week of May.   Due to the coronavirus, travel restrictions have been imposed in our home country (India). Also we want to avoid the risk of traveling in flights at this time.  Is there an easy way to to extend her stay in the US by one or two months?  I am aware that we should fill out an  to extend our stay. But in-order to submit the online application it requires a fee of $370.    Is filing I-539 the easiest way to extend her stay at this time? If so, is it possible to waive the fee due to the coronavirus situation?  After filing I-539 should she wait for an approval to continue her stay? Or is the receipt good enough?   Can you please help me with these? Thanks!  [Edit 1]:  With the current situation of the virus, traveling anywhere sounds like a very risky operation, especially for elders.   That is the main reason behind this question. If the US government will allow visitors to overstay until Covid-19 settles down! In a family with two children, what are the chances, if one of the children is a girl, that both children are girls?  I just dipped into a book, The Drunkard's Walk - How Randomness Rules Our Lives, by Leonard Mlodinow, Vintage Books, 2008. On p.107 Mlodinow says the chances are 1 in 3.   It seems obvious to me that the chances are 1 in 2. Am I correct? Is this not exactly analogous to having a bowl with an infinite number of marbles, half black and half red? Without looking I draw out a black marble. The probability of the second marble I draw being black is 1/2. Are there any options of bash with which it is invoked? I  that the default shell that I use when I start Terminal (with Ctrl+Alt+T) is /bin/bash.   And running the built-in command  on  as:   type -p bash   returns the result as:  /bin/bash   Suggesting the same executable is run when I do Ctrl+Alt+T or say bash.  This shell is the same as an invocation of the command  with some of its options passed to it right? If yes, what are these options?   As an example, perhaps the -i option gets passed so as to make the bash shell interactive?   PS: Maybe  is related too, but I cannot seem to piece together all the pieces here. How to add a custom icon or symbol to a flag link? I'm working on a 'sample request' implementation for a commerce site using , , sessions and a little custom code.  I'd like to add an icon or a symbol to let people know that an item they are viewing has been flagged.  I'm not sure exactly how to approach this, I can imagine perhaps adding a conditional field that displays an image or check box that is then changed by  or ajax, or perhaps something more complicated in JavaScript?  It could really be as simple as adding a checkbox that is checked or unchecked as the flag link is clicked or maybe even changing the css/html on click to be identified as marked.   Anyway, grateful for any advice here. How can I tell hotels exist that aren't on the booking web sites? There are a ton of sites out there to help book hotel rooms and to aggregate all the different sites to book hotel rooms. These companies make enough money to buy ads on TV, so I won't name them here. I normally poke around 3 or 4 of these as part of planning any trip.  I am now starting some very long term planning for a 6 week South Pacific trip, which includes undertstanding what hotels costs on some very small islands. I have paper guidebooks and I've been looking online. But I come across anomalies. For example, a place which has only 9 hotels listed on the sites I use, and prices range from $1000/night down to $200/night, then when I read the reviews on that cheapest one people are saying "it's nothing special, there are 5 or 6 places just like it here for half the price". Well, not on this site there aren't!  My guess is that many of these places don't have web sites, or don't have online booking, and therefore aren't getting into the aggregators. For some islands I have found local tourism boards with lists of "pensions" and such, typically cheaper than what I can find on the aggregators.    But how can I know? I don't want to assume that popular web sites represent reality, and choose only from places listed there. But I don't want to invest 10-20 hours of research per island only to discover the aggregators had everything. How can I know where the coverage is good and where it isn't, what kinds of hotels are more or less likely to be listed at expedia, trivago, booking, hotels, tripadvisor, and the like? (For example, I don't want to stay at a hostel, so I don't mind if they're not included in online sites.) Are there sites like wikitravel that list places without much of an internet presence?  I'm starting my research over a year before the trip, but wading through hotel pages is not the fun part of the planning so tell me how the smart people do it. How many integer solutions does $xy+9(x+y)=2006$ have? Here $x$ and $y$ are both integers.  My trying:        I have tried to solve this problem. But I have no idea to solve this. Please help Can you take Gorrilla Glue in Hold Luggage on a plane? What's the deal with the phrase "could care less"?  Whilst growing up, I've always known people (parents etc) to use the phrase "couldn't care less", but I've also come across people who use the phrase "could care less" to mean the same thing (that is, "I do not care at all about that").  To me "couldn't care less" seems a lot more logical. If I couldn't care less about something, that implies I do not care about it at all. In contrast to this, to my mind the phrase "could care less" seems to indicate "I do care about this to some degree at least", but that's definitely not the meaning intended.  What's going on here? Is my (logical) analysis correct or in error? Does slowing light violate relativity? Oven Temperature: How to be sure the selected temperature is correct. I suspect that my - fairly new - oven gets too hot, so I bought an oven thermometer, which confirmed this.  So I called the supplier.  They say that in order to obtain the correct actual  oven temperature, for any setting, you take the highest reading on the thermometer, and the lowest, and then divide both readings.   Is this correct? bi-directional sync with rsync If we know the GCD and LCM of two integers, can we determine the possible values of these two integers? I know that $\gcd(a,b) \cdot \operatorname{lcm}(a,b) = ab$, so if we know $\gcd(a,b)$ and $\operatorname{lcm}(a,b)$ and we want to find out $a$ and $b$, besides factoring $ab$ and find possible values, can we find these two integers faster? Compactness of $(M, d)$ in terms of continuous functions $f:M\to \mathbb R$ Suppose $(M,d)$ a metric space. I want to show that      If every continuous real-valued function on $M$ attains a maximum, then $(M, d)$ is compact.   I was trying to do this by assuming $M$ non-compact and showing explicitly a function which does not attain a maximum. If $M$ is not bounded it's enough to take the distance from a fixed point as we can always find a sequence which "exits" every compact and pushes the distance at infinity. But what if $M$ is bounded? What is the reason Men play 5 sets & Women play 3 sets in a Grand Slam in Tennis? In the ATP &amp; WTA events, both Men &amp; Women tennis players play best of 3 sets. But when it comes to Grand Slams, the Men play 5 sets. At the risk of sounding a misogynist, I always believe the reason to be strength &amp; endurance. After all, a 5 set EPIC match lasts 5 hours while a 3 set EPIC last 3 hours.    Is that the only reason. Or am I a naive misogynist? Also was that the case since the history of Grand Slams or did Men play 3 sets before? Regex to get string between curly braces Unfortunately, despite having tried to learn regex at least one time a year for as many years as I can remember, I always forget as I use them so infrequently. This year my new year's resolution is to not try and learn regex again - So this year to save me from tears I'll give it to Stack Overflow. (Last Christmas remix).  I want to pass in a string in this format {getThis}, and be returned the string getThis. Could anyone be of assistance in helping to stick to my new year's resolution?    Related questions on Stack Overflow: