C strings Breaking up a string with multiple '\n'
Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
How do I debug permissions? How do I debug permissions in Drupal 7?  I use core reporting, error logs, devel module error logs, backtrace and node access permission block but sometimes it is not enough. What else should I check to find out why certain fields, views or blocks are not showing to a user?  I also found there is a  for reporting on permissions called  but it is not available for Drupal 7.  I am using various permission related third-party modules:   - devel node access 7.x-1.x-dev   - fast permissions administration 7.x-2.0  - organic groups access control 7.x-1.x   - profile2 group access 7.x-1.x-dev   - ur-node access 7.x-1.x-dev Featured On Meta section doesn't list MSE posts on meta sites How do you find a question's view counter? How do you see how many views a question has had when you're not in the newest category?  I've tried a word-for-word search for the question, but still can't see the view counter. "Yesterday" time specification shown when it was actually the day before yesterday I'm trying to make a list of ways to tell if a given degree sequence is impossible. For example $3,1,1$  is not possible because there are only 3 vertices in total so one can't have degree 3.  The list so far   vertices has degree equal to or larger than number of vertices sum of degrees is odd for n vertices if one has degree n-1 and another has degree 0 for n vertices the sum of the degrees cannot be greater than $n(n-1)$ because this would be have more edges than a complete graph Show discontinuity of $\frac{xy}{x^2+y^2}$ I've got a generic dictionary Dictionary&lt;string, T&gt; that I would like to essentially make a Clone() of ..any suggestions. folder content doesn't get refreshed automatically in ubuntu 14.04 I'm using Ubuntu 14.04 and when I'm doing experiments which creates new files inside a particular folder X. But I can't see these new files inside X without refreshing X.  I have increased the count to 1M in  /proc/sys/fs/inotify/max_user_watches   but still the issue is not fixed.   How to fix it?  EDIT As suggested, output of cat /etc/xdg/autostart/user-dirs-update-gtk.desktop  [Desktop Entry] Encoding=UTF-8 Exec=xdg-user-dirs-gtk-update Name=User folders update Comment=Update common folders names to match current locale Terminal=false OnlyShowIn=GNOME;LXDE;Unity; Type=Application StartupNotify=false X-KDE-autostart-after=panel NoDisplay=true X-Ubuntu-Gettext-Domain=xdg-user-dirs-gtk Is there really any difference between the jackknife and leave one out cross validation? The procedure seems identical am I missing something? How can I make a PATCH HTTP Callout from Apex? I need to make a PATCH http request.  I made the rather incredible discovery today that I can't set an HttpRequest to use the PATCH method, as when sending the request I get a callout exception:     System.CalloutException "Invalid HTTP method: PATCH"   The work around I've found on Stack Exchange and elsewhere is only applicable to a Salesforce Rest API request:    This is therefore not helpful to me as I'm calling out to a third party.  By what manner of magic can I send a PATCH request from Salesforce?  The only work around I can think of is to not do it from Apex - this is not an option. Difference between == and === in JavaScript What is the difference between == and === in JavaScript?  I have also seen != and !== operators.  Are there more such operators? What are the biggest differences between Reversal Rings, Extension Tubes and Macro Lenses? As far as I understand all three options help you do macro photography but are their other reasons for having the three different items? I figured reversal rings and extension tubes were just for the low cost but with additional more expensive features being added to the two options it seems there may be certain situations for each type? What are their biggest differences and advantages over each other?   Are there situations where you would have one over the other? Do all three options have the same "wafer thin" depth of field?  Do they all suffer from the same light loss? Do any of them affect your photos more negatively than the others? Can I achieve the same magnification with rings and tubes that I can with proper lenses? Would you ever combine these options together or would there be no need for that?   I ask because I recently bought a cheap extension tube and reversal ring and I'm trying to get a better overall understanding of each. I tend to use the extension tube a lot more, because I can put it on my 70-200 and have a workable distance between subject and lens.  This photo was taken with 49mm of extension tube on the 70-200 I believe which may be greater than 1:1. Would it be sharper with a macro lens?       on 500px What's the typical microclimate in the aircraft passenger cabin? When preparing for a commercial jet flight it'd be nice to know how warm my clothes should be so that I don't freeze after sitting for several hours in say +16 degrees Celsius (61 degrees Fahrenheit).  What's the typical temperature in the passenger cabin? Are there air drafts? How cold and how warm can it reasonably get? Degrees of freedom in theoretical sample variance (for use in F-distribution) My question is essentially simple: suppose we have a sequence of heads and tails with an apparent chance of getting heads $\hat{p} = 0.5$.      h h t h t t t h t t h ...   How do we tell if this sample was drawn from a binomial distribution with this $\hat{p}$ or if it comes from a combination of different distributions which produces the same average? (e.g. $p = 0.25$ or $p = 0.75$)  Here's what I was thinking of doing:   We chop the sequence into subsections of length $n$, for example $n=5$, and calculate $\hat{p}$ in every such window: {h h t h t}, {t t h t t}, {h ...}0.6, 0.2, ... We then calculate the standard deviation in these $\hat{p}$ values: $\sigma_{ex}=\sqrt{\frac{\sum_{i=1}^M{(\hat{p}_i - \hat{\mu})^2}}{M}}$, where $\hat{\mu}$ is the average $\hat{p}$ and $M$ is the total number of windows of size $n$ we can make.  We calculate the standard deviation in $\hat{p}$ based on a binomial distribution, $\sigma_{th}=\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}$.   Now comes the problem: how to determine if these two values are the same? After a lot of research, I decided to try using an F-ratio test and plugging the result into an f-distribution.  F-ratio: $F = \frac{\sigma_{ex}^2}{\sigma_{th}^2}$ (only valid for normal-distributions :S)  And then an f-distribution to get to a p-value we can check against. However, for the f-distribution I need to know the degrees of freedom in the nominator and denominator. And therein lies my problem: what are the degrees of freedom for the variance calculated from theory? (In the experimental case I think it is M)  If you have this answer or any suggestions on how to solve this problem differently, I would love to hear about it! Fundamental group of $S^2$ with north and south pole identified Consider the quotient space obtained by identifying the north and south pole of $S^2$. I think the fundamental group should be infinite cyclic, but I do not know how to prove this.   If it is infinite cyclic, would this and $S^1$ be an example of two spaces which have isomorphic fundamental groups but are not of the same homotopy type? How to fix "404 Not Found" crawl errors reported by Google in Search Console I was checking on Google webmaster tools for my blog site to see if there's any indication on why my blog traffic decreased to half in one day and i saw 43 Not Found crawl errors and 5 in Sitemap Not Found errors.   The 5 Not Found errors in Sitemap were the links to categories. I guess I renamed categories that's why Google can't find the links.   As for the 43 other Not Found errors, I see blog post titles that contain ' or . For example "McDonald's" or "O.N.E."  They weren't found by Google crawler.   There is also a blog post with /CachedYou at the end and a blog post with /www.example.com attached at the end.  They weren't found by Google crawlers either.   How do I correct those Not Found Errors? Just that. By good I mean something at the level of SolidWorks, AutoCAD, or similar. This is a complete limitation for me (and many others) to use Ubuntu. How can I determine which process owns a hotkey in Windows? Given a hotkey, how can I find which program owns it? After my , I've now got a new suggestion: down votes should not have any side effect in meta.  By side effects, I mean something like banning me from asking questions due to too many down votes, which I am experiencing right now:     states that I am permanently banned unless I improve my standing by posting some quality answers.  Seriously, I'm new to the site, and thus I'm not capable of posting quality answers on Meta.  So my only refuge was to create a new account. I think this check for previously downvoted posts should be disabled on Meta. With regards to Plymouth --  Are there alternative boot screens available?  What's the easiest way to change the boot screen?