Where should libraries be copied to sites/all or sites/all/modules?
Libraries module. Where to extract?
Do I cast the result of malloc? My wifi connection doesnt work properly; it stays connected only for around 5 minutes after I turn on the PC. I'm using Ubuntu 16.04.  I've tried   sudo service network-manager restart   which makes no difference  Same with   killall nm-applet &amp;&amp; nm-applet &amp;   After that I tried   sudo gedit /etc/pm/config.d/config   where I insert this string  SUSPEND_MODULES = "drivername logicalchipname"   But since I don't have permission to modify that file I tried to use chmod on it, which led to  but left me still in the same situation.  $ lspci -knn | grep Net -A3; rfkill list 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821] Subsystem: XAVi Technologies Corp. RTL8821AE 802.11ac PCIe Wireless Network Adapter [1b9a:2482]  Kernel driver in use: rtl8821ae  Kernel modules: rtl8821ae  0: hci0: Bluetooth  Soft blocked: yes   Hard blocked: no 1: phy0: Wireless LAN   Soft blocked: no    Hard blocked: no   What do you suggest I do? Note: the eventual outcome of this discussion involved dropping this particular off-topic reason, along with other changes. See:  &nbsp; &mdash;Shog     I was using the reason "demonstrate a minimal understanding" myself quite frequently, but the more I review, the more I have doubts about it and I think this reason can either be dropped entirely or at least rephrased, so I started to use "problems with code you've written must describe the specific problem" instead:     Questions asking for code must demonstrate a minimal understanding of the problem being solved.   So the poster has posted some description, maybe even a snippet of code and in his mind that already proves that he has that minimal understanding required. After all he described the problem and what he tried to solve. So telling him that he lacks that understanding is rather rude, and from the posters point of view doesn't even apply. What both version of the reason not emphasize is that a description of a problem is not various versions of     it doesn't work   but that we rather mean really specific details (see below). I can often see in the reopen review queue that the "improved" version just includes a more verbatim description, while what usually would be expected is some specific error message, a trace or a log, or whatever applies.  Then it continues with:     Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist   comparing it to:     problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.   Which says essentially the same, only in more detail.   So the "minimum understanding" reason is IMO a more rude version of the reason telling the user that an SSCCE is missing.  The intent of giving this reason is to tell the user that he needs to give exact details to be able to help him, so IMO a checklist would be much better. Something like:     Your question was closed because it may not provide enough details. Things you can do to improve your question to get an answer include:         Format the code in a way that makes it readable and easily understandable.   Provide the smallest working sample of code demonstrating the problem (link to SSCCE)   Include your input and output.   If applicable provide logs (i.e. Android debugging log, stack trace, etc.).   If applicable provide the exact error messages (compiler, etc.).      And something like this should be best included already in the banner that appears when a question is closed instead of being hidden in some pages you often enough have to actively looking for.  It might be helpful to adjust this, based on the tags or close reason, as I realize that I'm more focused on the programming area, and the above list may not apply to other areas of SO.  Update  Another thing I forgot to mention (but wanted to) is this:     Questions asking for code   Is IMO essentially an invitation of the type of questions     I have a problem, can you provide the solution? (with an optional please)   while     Questions concerning problems with code you've written   puts at least some emphasis on the fact that the poster has to put some effort himself in trying to solve the problem by providing the code which he used to attempt the solution. Proving $(P(AB))^2+(P(AB^c))^2+(P(A^cB))^2+(P(A^cB^c))^2\ge\frac{1}{4}$ for any events $A$ and $B$ Show that for any two events $A$ and $B$, $$(P(AB))^2+(P(AB^c))^2+(P(A^cB))^2+(P(A^cB^c))^2\ge\frac{1}{4}$$   Using the Inclusion-Exclusion formula, De Morgan's law and $P(AB^c)=P(A)-P(AB)$, I was able to expand the $\rm{l.h.s.}$ as $$(x+y)(x+y-4z)+2z(2z+1)+x(x-2)+y(y-2)+1\quad...\quad(*),$$ where $x=P(A),y=P(B)$ and $z=P(AB)$.  However I'm not being able to group the terms involved in the $\rm{l.h.s.}$ to form a 'suitable' expression and probably the way I have grouped them is not correct.  The expression $(*)$ is subject to the condition   $\max\{0,x+y-1\}\le z\le \min\{x,y\}$ and obviously $0\le x,y,z\le 1$, but I am unable to use this.      Is there an elegant/slick way to show the inequality? It probably can be shown without a lot of work and it's possible I'm missing something trivial here. Do I need a Turkey transit visa for a layover? I have an Indian passport and am planning to visit Germany with a valid visa. To book a flight for Germany (Mumbai – Dusseldorf), I came across some connected flights that stop at Istanbul.  Do I need to have visa for Turkey?  This is the first time I am travelling outside my country, and any information on this will be helpful. Limit size of Queue in .NET? I have a Queue&lt;T&gt; object that I have initialised to a capacity of 2, but obviously that is just the capacity and it keeps expanding as I add items.  Is there already an object that automatically dequeues an item when the limit is reached, or is the best solution to create my own inherited class? Where does Mac OS X come from? Can't execute .out files, getting permission denied I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use something like, sudo "./a.out" but that too doesn't work.  Edit:  Here is the message I get when I try "./a.out".  bash: ./a.out: Permission denied How can you print a variable name in python? Say I have a variable named choice it is equal to 2. How would I access the name of the variable? Something equivalent to  In [53]: namestr(choice) Out[53]: 'choice'   for use in making a dictionary. There's a good way to do this and I'm just missing it.  EDIT:  The reason to do this is thus. I am running some data analysis stuff where I call the program with multiple parameters that I would like to tweak, or not tweak, at runtime. I read in the parameters I used in the last run from a .config file formated as  filename no_sig_resonance.dat  mass_peak 700  choice 1,2,3   When prompted for values, the previously used is displayed and an empty string input will use the previously used value.  My question comes about because when it comes to writing the dictionary that these values have been scanned into. If a parameter is needed I run get_param which accesses the file and finds the parameter.   I think I will avoid the problem all together by reading the .config file once and producing a dictionary from that. I avoided that originally for... reasons I no longer remember. Perfect situation to update my code! Laplace equation of composite function Suppose we have $f(x,y)$, which satisfies Laplaces equation: $\frac{\delta^2f}{\delta x^2}+\frac{\delta^2f}{\delta y^2}=0$  Does $f(\frac{x}{x^2+y^2},\frac{y}{x^2+y^2})$ also satisfy Laplace equation? How do I clear the render border? In the 3d viewport I am using a border region to only render things inside the selected region. I did this with CtrlB. I cannot get rid of the region. How can I make the border disappear? Android : Is there any alternative to listFile function (Android java.io.File.listFiles()) Class with single method -- best approach? what is the difference between - I make it to go and I make it go? What is the difference between sentences like these:     I make it to go.   I make it go.   or     You make me to cry.   You make me cry. What is involved in moving over to Lightning Web Components? Spam iCloud Calendar Invitations Duplicate objects transformation applies to both objects I'm facing this frustrating "feature" that I can't seem to remedy; when I duplicate an object (and now, even when I create two completely new objects), their transformations/scaling is synchronized. This is extremely annoying when trying to use any sort of transformation keyboard shortcut.  It should be noted by going to the properties menu (N) and manually setting the properties works just fine.  For instance, here is just the camera selected (trust me, I made sure):   And when I try to transform by clicking+dragging on the X axis OR by hitting G->X, this happens:   They are not grouped (verified by going to the Groups list up in the Scene panel) and they do not have parents (verified by going to Object->Relations).  I have tried the unlink command as well, to no avail.  I have seriously run out of options; what did I change to have my G->X shortcuts transform multiple objects? It seems completely at random, too; certain objects seemed to be "linked" to other random objects, and this "linking" is guaranteed when duplicating even when I do a non-linking duplicate (Shift+D).  What gives? I'm using a flow to set a field to a certain value (01, 02, 03) depending on the value of another field on the same record. I initially wanted to do it with process builder but because of the mapping it seems I would need three 'criteria nodes' or a formula field. Furthermore, it seems Salesforce is recommending using flows instead of process builder for before update actions as it is faster.  The problem with Flows is that I found a way to trigger it when the record is new or updated but not when the specific field is changed so it triggers every time the whole record is updated even when the field stay the same.  On Process Builder, you can use isChanged and then call the flow with specific record but that kinds of defeat the point of using flows for before Update.  So is there a possibility to do the same thing directly in flow ?  Thank you for the help ! I have Perl code which relies on Term::ReadKey to get the terminal width. My installation is missing this module, so I want to provide a default if the module isn't present rather than throw an exception. How can I conditionally use an optional module, without knowing ahead of time whether it is available. # but only if the module is installed and exists use Term::ReadKey; ...  How can I accomplish this? What is the JavaScript version of sleep()?