I was reading the code from spdlog(C++ logging library) in github and i come up to the  following template:  template<typename Factory> SPDLOG_INLINE std::shared_ptr<logger> stdout_color_mt(const std::string &logger_name, color_mode mode) {     return Factory::template create<sinks::stdout_color_sink_mt>(logger_name, mode); }   My general understanding of the code is that this will produce a function that will return a smart pointer using the another template called create. My confusion is about the meaning of Factory::template after the return statement.

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?


What I would like to achieve, is to write a protection against people entering an email address in a string. It is important to not only detect valid addresses, but to also built a protection against entries like the following:  my email @ domain dot com myemail at domain.com myemail_at_domain_com myemailatdomaindotcom   etc.  However, things like "@hello" should still be possible or "com-pany".  I'm thinking there should be a list of regular expressions to check against, covering the most known ways of writing an email address (or something that people will understand to be an email address).  This challenge must have been solved a thousand times... :) Isn't there a lib of expressions to check against?

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


I have filename as Day=17_$folder$,trying to exclude this particular file given in a regular expression  in Java. I have tried [^Day=17_$folder$]

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


I ask a simple question: how to copy from a text file using vim,and paste to clipboard? If i use  yY   I can paste,but only on vim file(using p),on clipboard i can't paste content.  If i use "+Y paste nothing. How to paste content of file text copied with vim?

I'm trying to copy-paste some text from vim. I'm doing v to enter visual mode, then y once I selected my block.  It appears to copy the text into vim's clipboard, because p will paste it. But in another program (e.g. Chrome), right-click->paste doesn't paste the correct text. How do I copy text to the correct clipboard?


I am trying to find in all subfolders all jpeg files which were taken at a specific date. Then I want to save the search results in a text file. I could not find any solutions online which uses command line, as most use Explorer. I tried using this very generic code, which searches for all files and the date modified (not date taken), but it obviously does not fit my needs: forfiles /s /d 04/15/2019 > _images-search.txt  Help is greatly appreciated.

I'm trying to return a text file containing some details about image files in a folder and its subfolders. Specifically:   File Path Image extension Image Dimensions Date taken Camera Model   These properties might not all be available for every image - I'm not sure if that will be a problem yet.  Getting the list of files is fine; DIR C:\[...]\FOLDER\*.* /S| (I think). It's the next part I'm not sure about; I've found info on other OSs, I've also heard WMIC suggested. I tried to use that with a test on a single file:  wmic datafile where Name="C:\[...]\IMG_5443.JPG" get Name,FileType > "C:\[...]\info.txt"   But it returns Error: Invalid query so I'm guessing WMIC doesn't work with images, or at least some of the arguments need to change.  I also notice, when I enter wmic datafile get/? that dimensions is not listed as one of the available properties. That's about as much troubleshooting as I know how to do.  So is there a way to return properties of an Image file (or list of files) in windows using the command line. If not, I'm open to anything that doesn't require installing additional software. Any suggestions?


I am trying to do an excerise on likelihood functions and score vectors and I am having some trouble extending it to parameter vectors. The question is stated below. Suppose we have two independent samples: $X_{1}, ..., X_{n}$ are iid Exponential random variables with mean $θ_{1}$ and $Y_{1}, . . . , Y_{n}$ are iid Exponential random variables with mean $θ_{2}$. Find the likelihood and log likelihood functions for the parameter vector $θ = (θ_{1}, θ_{2})^{T}. $ In this case would the likelihood function be $$\prod{θ e^{-θ x_{i}} = θ ^ne^{-θ\sum x_{i}}}$$ (same as one with one parameter)? Or would it be the product of the two functions as shown below: $$\prod{θ_{1} e^{-θ_{1} x_{i}} θ_{2}e^{-θ_{2}y_{i}} = θ_{1} ^ne^{-θ_{1}\sum x_{i}}} θ_{2}^{n}e^{-θ_{2}\sum y_{i}}$$ Or would it be something different? Thanks!


top and ps show multiple processes for these applications. Is there a simple command to show only one entry for each application showing the total?   I don't believe this is a duplicate of .   Any suggestion using the pid of the process is not suitable because we have many processes associated with the application. For example:  ps aux | grep -i chrome | awk '{print $2}' 11288 27410 28415 28477 30396 30592 30602 30614 30617 30657 30842 30870 30875 30876   I am looking for something that will sum the usage by these processes while compensating for any memory that is shared between them -- if that is the case.

I'm trying to measure the memory of a process that I call via the command line (i.e., I want to find out much CPU/RAM the process takes). Is there any command that I can add to the command calling the process that will achieve this?


My Ipad locked on it on I don't remember my I cloud ID or Password How do I unlock it? It came up on my Ipad Activation lock.

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


Although my buttons are in the center horizontally, they are not in the middle of the screen. I tried adding verticalAlign: 'middle' but it doesn't make a difference. I also wanted to increase the width of the buttons but if I add width: '200px' etc, the buttons come on the left side from the middle. What else can I try: const useStyles = makeStyles((theme) => ({   content: {     paddingLeft: "280px",     paddingTop: "100px",     backgroundColor: "white"     //height: '100%',   },   buttons: {     textAlign: "center"     //width: '200px',   } }));  function Page() {   const classes = useStyles();   return (
       <PermanentDrawerLeft></PermanentDrawerLeft>
           <Button variant="contained" color="secondary">             First           </Button>

           <Button variant="contained" color="secondary">             Second           </Button>

   ); }  Codesandbox:

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


Consider the following code:  \begin{filecontents}{biblio.bib}   @article{Key1,     title = {First title},     author = {First author},     shorthand = {ShortHand},     keywords = {shorthanded}   }    @article{Key2,     title = {Second title},     author = {Second author}   } \end{filecontents}  \documentclass{article}  \usepackage[style=numeric]{biblatex}  \addbibresource{biblio.bib}  \begin{document}  My text cites both \cite{Key1} and \cite{Key2}.  \printbibliography[keyword=shorthanded]  \printbibliography[notkeyword=shorthanded]  \end{document}   Here I print two distinct bibliographies differentiating by keyword, and the first kind of entries happen to be referenced by shorthands (conference names).  As you can see from the output, the large spacing due to the shorthand in the first bibliography is retained when printing the second.    This appears nice in the MWE, but in my real document the two bibliographies are printed on separate pages anyway (separate chapters* in a book class), so the vertical alignment is not needed, and the wasted horizontal space in the second one is annoying and useless.  How can I reset the second call to \printbibliography so to independently reserve the right horizontal space for its entries?

Current situation: I'm required to cite "normative" documents (read: standards and manuals) separately from articles and books etc. Using biblatex and biber with the numeric style I'm doing that by issuing multiple printbibliography commands like so:  \usepackage[style=numeric,backend=biber,bibencoding=utf8]{biblatex} %... lots of stuff \printbibliography[type=standard,title=Standards \& Manuals] \vskip\baselineskip \printbibliography[type=manual,heading=none] \printbibliography[nottype=standard,nottype=manual]   which gives a heading Standards & Manuals, prints a list of manuals, leaves a bit of space then the list of standards and finally, under a new heading Bibliography gives books and articles etc. Thus far everything is fine, enter:  The Problem: I'm using the shorthand field in my database for the standards and manuals which works perfect as far as output within the text is concerned and sets the shorthand as the label in the bibliography and prints the details to the right of it - problem is: my shorthands are considerably longer than the labels generated by the numeric style, but even though they're in three different \printbibliography commands, everything gets indented to the maximum width of the label, making the part for books and articles look quite ridiculous.  The following shows the problem with only two separate \printbibliography (and an obviously exaggeratedly long shorthand):   Now  what I would obviously want is for each of the \printbibliography commands to only use the indentation actually necessary to accommodate the largest label appearing within, i.e. rendering the Manuals section as above, but the Bibliography section like follows:   Can anyone help me to achieve this? Or give me some pointer where to look?  The above was produced with the following MWE on an up-to-date TeXLive 2014:  \documentclass[10pt,british]{scrbook}  \usepackage{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern}  \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @manual{HowTo,     title = {How to Make the World Go Round},     shorthand = {HowToMakeTheWorlGoRound},     publisher = {The Publisher},     year = {2000} }  @article{Article,     author = {Author, A. and Buthor, B.},     journal = {Journal Title},     pages = {113--126},     title = {The Article},     volume = {65},     year = {1900} } \end{filecontents*}  \usepackage[style=numeric,backend=biber,bibencoding=utf8]{biblatex} \addbibresource{\jobname.bib}  \usepackage[hidelinks]{hyperref}  \begin{document} \let\cleardoublepage\relax \chapter{The Document} Nothing to see here, but we refer to the \parencite{HowTo} based on a principle discovered by \textcite{Article}.  \printbibliography[type=manual,title=Manuals] \printbibliography[nottype=manual] \end{document}


A number of posts, and papers, state that logistic regression (LR) is robust in the face of class imbalance.  Unless the imbalance is extreme (e.g., events=0.01 or less), with adequate sample sizes model performance does not degrade.  Even in extreme cases, performance may not be affected. I have tested this empirically and found this to be true, at least for events=0.05 or greater. As long as there are a sufficient number of minority cases, LR performance does not typically suffer.  What is the mathematical basis for why LR models perform well in the face of class imbalance?  How can this be demonstrated mathematically?

Okay, so I think I have a decent enough sample, taking into account the 20:1 rule of thumb: a fairly large sample (N=374) for a total of 7 candidate predictor variables.   My problem is the following: whatever set of predictor variables I use, the classifications never get better than a specificity of 100% and a sensitivity of 0%. However unsatisfactory, this could actually be the best possible result, given the set of candidate predictor variables (from which I can't deviate).   But, I couldn't help but think I could do better, so I noticed that the categories of the dependent variable were quite unevenly balanced, almost 4:1. Could a more balanced subsample improve classifications?


I would like use regular expression to replace a pattern by an other :  re.compile(r"<class '(.*)'>").sub("\\1", "<class 'int'>") >>> 'int'   But how can i manage repetition cases ? Like:  re.compile(r"<class '(.*)'>").sub("\\1", "<class 'int'>, <class 'str'>") >>> 'int\'>, <class \'str'  # i would like 'int, str'

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


there are several markers used in molecular biology,. marker analysis. RFLP is most commonly used marker which having several advantages. is RFLP marker co-dominant or dominant ?

When talking about types of genetic markers, the adjective "dominant" and "codominant" are often used. I don't fully understand their definitions and found contradicting definitions.  Foll and Gagiotti (2008)  Typically reading from , they list give two examples of markers of each type   Codominant markers   SNP microsatellite  Dominant markers   RFLP  AFLP    reddit   indicates that RFLP are codominant markers (unlike stated in  Foll and Gagiotti (2008)).  wageningenur  On  (random website I never heard of before), they define dominant and codominant markers based on gene expression suggesting that the terms dominant and codominant used for markers have the same definition than those used for allelic effects on the phenotype (dominance, recessivity, overdominance, etc..).  Questions   What are the definitions of dominant and co-dominant genetic markers? Can you please offer examples for each type and explain why they fit in one or another category? Do the terms dominant and codominant have the same definition when used to describe a marker and when used to describe allelic effects on the phenotype (dominance, recessivity, overdominance, etc..)?


I am  using the following code to read a properties file:  Properties pro = new Properties(); InputStream is = Thread.currentThread().getContextClassLoader().     getResourceAsStream("resources.properties");  pro.load(is);   And when I execute the code I'm getting the following error:  Exception in thread "main" java.lang.NullPointerException   at java.util.Properties$LineReader.readLine(Properties.java:418)   at java.util.Properties.load0(Properties.java:337)   at java.util.Properties.load(Properties.java:325)   at com.ibm.rqm.integration.RQMUrlUtility.RQMRestClient.getResource(RQMRestClient.java:66)   at com.ibm.rqm.integration.RQMUrlUtility.RQMRestClient.main(RQMRestClient.java:50)   Why am I getting a NullPointerException? And where should I save the resources.properties file?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am uploading kmls into Google Map (not Google Earth).     My KMLs contain polygons (county borders).  There is a different "styleurl" for each county.   Right now I can control the content of the bubble via <name> and <description> from within the polygon's <Placemark> tags.   Instead I would like to control the bubble content from within the Style definition, using   <BalloonStyle>    <text>My custom text</text> </BalloonStyle>        Q1 Does Google map support these functions (my testing so far suggests "no")  Q2 Where could I have looked up this answer on my own before posting here?  Thanks!

I'm using the GGeoXml object to overlay KML on an embedded Google Map. I need to customize the popup balloon for placemarks, so I'm trying to use the  element:  <?xml version="1.0" encoding="utf-8"?> <Document xmlns="http://earth.google.com/kml/2.0">     <name>Concessions</name>           ...  </Document>   This works as expected in Google Earth, but the embedded map API appears to ignore this altogether. I suppose I could just leave out the <name> element altogether and just put everything in HTML inside the <description> element, but I'd like to be able to take advantage of the  element to display custom data in a structured way.


It says "verification required before you make a purchase you must tap continue to verify your payment" but the apps are free i've tried taking off the card too but that wont work

When I'm trying to install a free app on my iPod, it'll say:  Verification Required Before you can make purchases, you must tap continue to verify your payment info.  Why do I see this when it's free? The "None" option is not available.


I'm not good at flask and a naturally django developer I was forced to because it is already developed..  May question is how to use delete_many using flask-cache  cache.delete_many(["sample_4", "sample_5"])   This returns an error:  TypeError: cannot concatenate 'str' and 'list' objects   I'm aware that this is the right way, but what I want is a list of keys as a parameter to be deleted  cache.delete_many("sample_3", "sample_2")   I

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I have a text file containing numbers as follows:  one two three four five six seven nine    I want to convert it into its equivalent digits like:  12345679   I got the python program.  Is there any way to do it using shell script?  Thanks in advance.

I have a tuple of tuples from a MySQL query like this:  T1 = (('13', '17', '18', '21', '32'),       ('07', '11', '13', '14', '28'),       ('01', '05', '06', '08', '15', '16'))   I'd like to convert all the string elements into integers and put them back into a list of lists:  T2 = [[13, 17, 18, 21, 32], [7, 11, 13, 14, 28], [1, 5, 6, 8, 15, 16]]   I tried to achieve it with eval but didn't get any decent result yet.


Sometimes I find myself installing a package and then trying to run a command using the same name,  package:  $ sudo apt install geoip-bin   [...]  $ geoip-bin geoip-bin: command not found   How may I find all the commands associated with a given package?

I want to know the commands that a specific Debian package offers me.  For example lets say I installed a package called x.deb. This package surely contains some commands that i can use.  How to list these commands.  I know I can use compgen bash command to generate list of all available commands in my system but what i need is just for specific package.  I tried the solutions:  dpkg -L postgresql-9.3 | egrep '(bin|games)/' /usr/lib/postgresql/9.3/bin/pg_upgrade /usr/lib/postgresql/9.3/bin/pg_ctl /usr/lib/postgresql/9.3/bin/pg_resetxlog /usr/lib/postgresql/9.3/bin/postgres /usr/lib/postgresql/9.3/bin/pg_xlogdump /usr/lib/postgresql/9.3/bin/initdb /usr/lib/postgresql/9.3/bin/pg_controldata /usr/lib/postgresql/9.3/bin/postmaster   I tried the command postgres  user@userPc:~$ postgres No command 'postgres' found, did you mean:  Command 'postgrey' from package 'postgrey' (universe) postgres: command not found


When I first started learning cryptography, I had my first a-ha moment when I fully appreciated the value of a One Time Pad and XOR and all the functions that attempt to emulate that OTP's randomness (PRP/PRF).  Now that I'm learning about the math behind various lemmas, I see a recurring theme regarding "take the modulo of a number, and then do f()".  That is a reoccurring theme that I don't fully appreciate, or understand.  So why is mod(n) used so frequently in cryptography?  What is consistent, special or useful about mod(n) that makes it so consistently used by cryptographers such as XOR is?

Why do we use modular arithmetic so often in Cryptography?


Oftentimes when reading academic texts I will come across the suffix "-ian" as a way to denote ownership.  While I find it fitting syntactically (it "feels" right), I don't remember ever learning it specifically in school, etc.  For example:     Wilsonian (Wilson's) moral diplomacy is widely regarded as a failure.      Carverian (Carver's) Minimalism marked a rebirth of the realist movement.   So, here are my questions:   Is this syntax correct? If so, What mood does it give off?  Does it offer an academic tone, etc.? Is it possible to use this with any name, or just a few popular ones?  Can I say "Flafla2-ian"?   Thanks in advance.

This is a question bugging me for a long long time, especially for a non-native speaker like myself.  We have physicist standing for the people doing physics research, as is linguist, chemist, etc.  But for math, the counterpart of "-ist" suddenly becomes "-ian": I call myself a mathematician.   What bugs even more is that we have physician as well, yet representing a totally different occupation with physicist.  This is not the end, in mathematics, we have so many adjectives derived from the names of mathematicians. Through some wikipedia-fu I learned they are called eponymous adjectives, most of which I used often end with "-ian": Newtonian potential, Cartesian coordinate system, Lorentzian transformation etc. These words often indicate somewhat the relationship of possession.   Yet again, not all possessive relations are represented using "-ian", there are: Maxwell's equations, not Maxwellian equations; Gauss's divergence law, not Gaussian law (even though there are tons of things with Gaussian in it).  What confuses me even more, is that "-ian" after people's name can not only represent "of someone", it also can stand for "a believer or supporter of someone's theory". For example, I call myself a Kantian. There is Leibnizian as well, the supporter of Leibniz's philosophy.  Now my questions are:   Is there a standard rule to decide which one to use, "-ian" or "-ist", when describing an occupation? For eponymous adjectives, my vague impression is that: when something is derived not by that specific person, but rather whose derivation bears the spirit of that someone's theory, then we use "-ian". For example, Newtonian potential is not invented by Newton, yet Maxwell's equations are unified by Maxwell. But another example is that Descartes invented Cartesian coordinate system, but the system is not called  Descartes'  coordinate system...How to tell if we want to invent some new terms? For example, if I proved a new theorem using some idea from Newton, do I call the proof Newton's argument or Newtonian argument? Can "-ian" be used interchangeably in "I am a Kantian" and "This is a Kantian style argument."? or there is some tradition for each word ending with "-ian"? i.e., Some words ending with "-ian" can be only used as noun or adj.


I read recently that there may be (very slight) variations in the speed of light due to the nature of spacetime itself, I had the idea that this may be due to the photon having mass, but that's another discussion. Anyway, I was hoping for some maths/good physical reasons why this may or not be the case because it's confusing me quite a bit.

Regarding the paper, what does Einstein means when he says:     "If we call the velocity of light at the origin of co-ordinates $c_0$, then the velocity of light $c$ at a location with the gravitation potential $\Phi$ will be given by the relation: $c = c_0\cdot\left(1+\frac{\Phi}{c^2}\right).$ The principle of the constancy of the velocity of light holds good according to this theory in a different form from that which usually underlies the ordinary theory of"   relativity"   Does the velocity of light is constant only into a space where the gravitation potential is constant either?


Much as the title says. I've decided to create a  today for a particular tag () I want to promote. I know there are some users around, that will be interested in discussions about this tag (or simply to meet the other enthusiasts about it). Is there an accepted way to invite (notify about) these particular people to participate in this chat room? (The chat-room is public anyways)?

I have created the chat room for magento. I would like to invite top users of magento tag. How can I do this?


Assuming it is somehow possible to get a small piece of a white dwarf (maybe a dice) and this piece escapes into free space. Would that piece of white dwarf matter keep its density/state, or would it expand, explode, or transform into another state without the huge gravitational force of the whole white dwarf it was captured in before? There is a similar question here for neutron stars: . Neutrons decay without the large pressure inside the neutron star, so the fate of a piece of neutron star material is clear. But what would happen to white dwarf material? I think the state of white dwarf matter is different from neutron stars (which mainly consists of neurons...)?

I've read on NASA's page on neutron star that one teaspoonful of that star would weigh over 20 billion tonnes on Earth. If it was somehow possible to bring it to earth would it:   Burn and disappear during Earth atmosphere entry? Assuming we have 20 billion tonnes of mass occupying the volume of a teaspoon here on Earth, would it fall through the ground under its own weight?


Given   $(X, d)$ be a metric space and let $U$ and $V$ be non-empty subsets of $X$. Define   $d(U,V) = \inf\{d(u,v) : u \in U, v\in V\}$.   Is the following statement is true/false     If $U$ and $V$ are compact and disjoint, then $d(U,V) > 0$   My attempt : I thinks  this statment is false  I take  $U= [-1,0]$ and $V= [1,2]$ both $U$ and $V$ are compact and disjoint .  Now for   each $\epsilon >0$ , we have  $\frac{-\epsilon}{2} \in [-1,0] $and $\frac{\epsilon}{2} \in [1,2]$ so that   $d([-1,0], [1,2] \le d(-\frac{\epsilon}{2}, \frac{\epsilon}{2}) = \epsilon $  since $d([-1,0], [1,2])\le \epsilon $ for  every $\epsilon >0$. Now  we conclude that  it is $0$ so its  contradicts that  $d(U,V) >0$  Is its  true ?

Let $K\subseteq \mathbb{R}^n$ be a compact set and $E\subseteq \mathbb{R}^n$ a closed set, such that: $$\inf\{d(x,y):x\in K, y\in E\}=0$$ where $d(x,y)=\sqrt{\sum_j(x_j-y_j)^2}$ Prove: $E\cap K\neq \emptyset $  I tried to work with the definitions of compact and closed sets, and I understand that from what's given of the distance between elements in $K$ and $E$, that they are very close,  but couldn't really get further. Any help appreciated.


C programmers often use constructs like   #ifdef foo     printf("foo is defined "); #endif #ifndef foo     printf("foo is not defined "); #endif   to select certain code-paths during the compilation process, by passing the compiler flag like -Dfoo or just sticking a #define foo 0 somewhere in the code.   Is this possible in LaTeX too? So I am looking for something like   \ifdef foo{    short summary, tldr  } \ifndef foo{    long explanation }   This can be particularly helpful for producing short summary documents from existing TeX files containing long descriptions. I would like to be able to pass something similar to -Dfoo as a compiler flag, or just define the foo somewhere near the top of the Latex file, just as I would do in the C case.

Let's say I have .tex file which is a set of problems and solutions, of which I want to make two pdf files, one which includes the solutions and one which doesn't. so I need to build the .tex file under two different modes, and specify that parts of the document be ignored under one of the modes.  This is something common in programming context. e.g. in C++ i can code  #ifdef DEBUG   // do this additional stuff ... #endif   How can I do something equivalent in latex?


I have a coding question with two compilable options. I want to ask which is better and why. Code review, programmers, stack exchange...im not really sure? Where is this question appropriate.   It may be an opinion based question and it may not. I don't really know until I know the answer. Like I said, both ways produce the same results, but I don't know which is the better practice.   What site does this belong on?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I am trying to change "chapter" to "Chapter" when autoreferencing the label    I have looked for a solution and some comment in this closed question  suggested to use renew command  I have used "babel" as well as "renewcommand" but nothing has changed.  Can someone please help? Minimum working example below.  %% *** Add any desired options. *** \documentclass{book}  \usepackage{siunitx} \usepackage{nomencl} \usepackage{amsmath} \usepackage{nicefrac} \usepackage{nomencl} \usepackage{amsmath} \usepackage{amsthm}      \usepackage{amssymb} \usepackage[english]{babel} \usepackage{hyperref} \renewcommand{\chaptername}{chapter} \begin{document}        \chapter{Before We Begin}        In \autoref{Chapter2}, we will talk about how to live a full life.        \chapter{Begin}        \label{Chapter2} \end{document}

I have defined the following  \providecommand*{\lstnumberautorefname}{line}   and within my text   \begin{lstlisting}              |\label{sdd_1}|<sqlCallStatistics>YES</sqlCallStatistics> \end{lstlisting}   When I now use in my text   xxx. \autoref{sdd_1}    then I receive the following output :  xxxx. line 1    instead of (what I had expected)  xxxx. Line 1


Folks, I want to know if there exists a command that just highlight some portions of the input text, rather than filtering it like grep does.  To give an example, suppose the following input text:  foo bar gaz das xar   grep "bar\|gaz" input would print the first two lines, highlighting bar and gaz, but would not display xar.  I'm aware that I could simply set a big constant to the -C argument, so it would "always" show the context, like: grep -C1000 "bar\|gaz" input, but I'm not sure if that is efficient, or if there is a better tool for that.

Say I have the following file:  $ cat test  test line 1 test line 2 line without the search word another line without it test line 3 with two test words test line 4   By default, grep returns each line that contains the search term:  $ grep test test  test line 1 test line 2 test line 3 with two test words test line 4   Passing the --color parameter to grep will make it highlight the portion of the line that matches the search expression, but it still only returns lines that contain the expression. Is there a way to get grep to output every line in the source file, but highlight the matches?  My current terrible hack to accomplish this (at least on files that don't have 10000+ consecutive lines with no matches) is:  $ grep -B 9999 -A 9999 test test     If grep can't accomplish this, is there another command-line tool that offers the same functionality? I've fiddled with , but it doesn't seem to have an option for it either.


It's a standard textbook answer that currents of molten iron inside the Earth create the Earth's magnetic field.  Matter, on the supermolecular scale, is electrically neutral. So any magnetic field created by the flow of electrons should be cancelled by an equal and opposite field created by the flow of equal numbers of protons in the same direction.  Apparently, due to ionisation effects,  but it's on the order of one Coulomb, so the residual current is on the order of microamps at the surface which is tiny anyway and furthermore would be mostly cancelled by a linearly-slower movement of equal and opposite charges further within the Earth. All together this doesn't seem like it could possibly create a magnet strong enough to deflect solar wind.  I've heard of the geomagnetic dynamo theory, but as I understand it this should suffer cancellation effects too.  How can any theory of geomagnetism work if the Earth is electrically neutral?

This was a question that came in a exam. How come  is this  possible?  Actually,  was asked here on physics SE, which matches my opinion.     The source of Earth's magnetic field is the molten iron and metals in the earth's core. The spinning of these liquid metals produces the same effect as electric current in a coil which produces a magnetic field.   Yes, that is true. Circulating ions of iron and nickel in a highly conducting liquid of Earth's core forms current loops and produces a magnetic field.  There is something to do with geologist though I'm not getting it. How come geologist doesn't seem to agree with this?


Future simple : We will finish the project by next year  Future perfect : We will have finished the project by next year  I've been told that Future perfect must be used when 'by' exists. But for some reason, future perfect doesn't seem natural to use here. Perhaps due to my years of bad spoken english experience. May I ask which tense to use when somebody asks about the time it takes to finish a project ?

I have a question about the usage of the future perfect thingy: I know that it is used to talk about a completed action before a time in future, but is it wrong to use just plain future simple in this same case?   For example, can we use      I will finish all my money by the end of the week.   instead of      I will have finished all my money by the end of the week?   Do native speakers follow this rule in their speaking?


Within my rather large database, I would like to find out everywhere a column is referenced within the entire schema (SPs, functions, tables, triggers...).  I don't want to just do a text search since this will pick up comments and also will find similarly named columns from other tables.    Does anyone know if/how I can do this?  I use SQL Server 2008.

I have a huge database with 100's of tables and stored procedures. Using SQL Server 2005, how can I get a list of stored procedures that are doing an insert or update operation on a given table.


I have added the following alias to my .zshrc: alias pwdc="echo -n $PWD | xclip -selection clipboard"  it seems the present working directory is not getting updated, when I move to a different directory. I have tried this too: alias pwdc="echo -n `pwd` | xclip -selection clipboard"  Can somebody please explain me what am I doing wrong? any suggestion will be helpful, thank you!

I know that contents of double quotes are expanded, whereas the contents of single quotes are not, such that  echo '$1'   gives  $1   where as   echo "$1"   gives  <the argument - blank in this particular example>   the same as   echo $1   However, the question  led me to wonder why double quotes and not single quotes were used when declaring the alias, thus:  alias cutf="_cutf"   instead of   alias cutf='_cutf'   I would have employed single quotes as in the latter example. Most examples on the web use single too, unless there is some expansion required. However, in this case, no expansion, to my eyes, is apparent. Is it that, in this case, they are interchangeable, or are the double quotes necessary because a function definition is employed?


I am a civil engineering student and my research area is traffic engineering. I have encountered different types of statistical distributions e.g. Poisson, binomial, Gumbel, Gaussian, Pearson type III, etc in traffic engineering literature. I understand some of the distributions and what kind of data they fit. But there are many distributions (e.g. Pearson distributions, Gumbel distribution, etc.) which are completely alien to me: I can't find a thorough explanation online or in any book which I could understand and apply in my research. Is there any book or online resource covering all statistical distributions with their applications?

I often find myself asking questions like, "I know this variable $x$  lies in $(0,1)$ and most of the mass lies in $(0,.20)$ and then declines continuously towards 1.  What distribution can I use to model it?"  In practice, I wind up using the same few distributions over and over again simply because I know them.  Instead, I'd like to look them up in a more systematic way.  How do I go about accessing the wealth of work that probabilitists have done developing all of these distributions?  Ideally I'd like a reference organized by properties (region of support, etc.), so I can find distributions by their characteristics and then learn more about each distribution based on the tractability of the pdf/cdf and how closely the theoretical derivation fits the problem I'm working on.  Does such a reference exist, and if not, how do you go about choosing distributions?


I'm trying to create a program where it checks the validation of an email seeing if it starts with a lowercase letter, contains an "@" sign, and a ".com" or a ".co.uk". How would I do this.  My internet is being funny therefore I am not able to check the expressions online.  This is what I have so far :   def valid_email():     email_address = input("Enter your email: ")     valid = re.match("[a-z]",email_address)     if valid:         print("That looks OK")     else:         print("Invalid, must be lowercase and contain an '@' sign")         valid_email() valid_email()

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


I understand that the homomorhpism $\phi: \mathbb{Z}[X] \rightarrow \mathbb{Z}$ has to have a property that $\phi(1) = 1$. But how do I proceed with that to count all homomorphisms?

I'm supposed to find all the ring homomorphisms $\mathbb Z[x]\rightarrow \mathbb Q$.  Here's my attmept: $\mathbb Z[x]$ is generated by $\left\{ x^n \right\} _{n\geq 0}$, so the images of the generators determines the homomorphism. Since ring homomorphisms also respect multiplication, the images of $1,x$ determine everything. Homomorphisms respect units, so the image of $x$ determines our homomorphism. Hence, the only homomorphisms are the evaluations: for each $q\in \mathbb Q$ we have $\mathrm{eval}_q:\sum_na_nx^n\mapsto \sum _n a_n q^n$.  Is this correct? If so, isn't the codomain completely irrelevant? It seems we can say the same for any ring $R$ in place of $\mathbb Q$.


I am trying to reopen the closed question but I am trying to do then it displays the message "You have already voted to reopen.." but see in the screenshot question does not show reopen vote count. I think this should show here like also reopen(1) and it does generally but not for me.

Today I saw "", realized it was a duplicate and voted to close it.  I then saw in the comments that I had voted to close it four days ago!  How did that happen? There were no close votes listed at all, and I was permitted to vote to close it today!


The OS worked fine until, updating & rebooting Ubuntu 16.04.3 on 1-4-2018. The launcher will not open a selected program and will disappear off screen for a few seconds along with top bar, once mouse pointer selects a program, (Launcher is not set to auto-hide). Only way to access anything is via the terminal. If a program was run via terminal commands it would load, then the program's window would disappear without touching its window. Re-installed Ubuntu twice and it worked fine until I updated the system via Software Updater after the re-installs. Installed other Linux distros, and they work fine. Ran Ubuntu on that laptop for 2 years without any issues. What happened to latest updates that messed up the OS?

The latest updates (4/1/2018) make my laptop constantly crash the GUI/Unity:  (Intel Pentium su4100 processor)  syslog:  Jan  5 11:38:53 1810 kernel: [ 1850.327738] compiz[11911]: segfault at 0 ip 00007f6c7baf0c16 sp 00007ffd5ec71c60 error 4 in i965_dri.so[7f6c7b513000+82d000]   After login I end up with an empty desktop, just a wallpaper, GUI/Unity are in a crash loop:   No panel.  No dash.  Can't start a program. Launcher disappears. Sidebar disappears. System crash. Windows key not working. The key combination Alt+Tab not working.   Simply, the computer is not usable. Same for guest login. The only thing working: open up a terminal CTRL+ALT+T to examine log files.  I somehow forced  to let me log in and file the bug, but still lots of problems:   Dash not working Alt+Tab not working Sometimes windows all disappear for a few seconds     Any ideas for a solution or workaround?   UPDATE     If you have the same/ very similar problems, follow the link to my    report and mark there that you're affected too. Or file your own. Please leave a comment   if you wish, or upvote - this is a nasty problem - but an answer should   offer a fix or a workaround so users can use their computer again.    Without , Ubuntu can't fix issues.


I posted a StackOverflow question earlier today and I received several answers which I personally regarded to be truly, ahem, uninformed. Up until now I was under the impression that answers which I find not useful should be downvoted. In fact, that is exactly what the tooltip says that appears when you hover on the down-arrow element.  However, I got some pretty harsh responses in the comments there; apparently downvoting several answers (three out of the four answers posted at that time) evoked some very hard feelings, even among people who haven’t posted an answer. They then proceeded to highlight my ratio of upvotes to downvotes, and furthermore, suggested that it should be displayed alongside the accept rate (presumably implying that they would then refrain from answering questions from people who have a tendency to downvote).  Up until now I never considered that ratio to even be a factor, much less to be problematic. Mine is approximately 1:1 at the moment. It used to be even lower (i.e. I used to cast more downvotes proportionally) and I didn’t really think that would be problem. But now that it was mentioned explicitly, I looked at some other people’s ratios and I was surprised that almost all of them have cast significantly more upvotes than downvotes, usually at a ratio of 5:1 or even 10:1. I honestly didn’t know that was the norm.  My questions therefore:   Should I be casting fewer downvotes? If so, why? What would be considered to be an “acceptable” ratio, and why? In an extreme case where most of the answers I get are seriously lacking, what should I do and why?

Let me say first that I am fairly new here (about 3 weeks) and absolutely love Stack Overflow. At first I let some of the negative attitudes get to me a little, left a few snarky comments, but that phase has passed. I see the tremendous value for this site in the long run and sincerely do want to help make it a better place.  I find myself going for  the downvote very frequently -- currently about 35% of my votes are downvotes. I even make an extra effort to upvote good content to offset this a bit, so the number should probably be more like 60%. I always try to leave constructive comments and try to help out the confused ones who are really trying.  I truly can't tell if it is just me, or if these folks deserve it. I don't know if you guys noticed, but there are a lot of really bad questions being posted, and a lot of people trying to pass off things like "use jQuery", "use Firebug", and "use Google" as good answers (and getting upvotes!). I even saw someone copy/paste my "What does Firebug say?" comment as an answer and get 3 votes within moments. Sometimes This answer is unclear or not useful just doesn't do it justice.  I feel like some of the people just drive me nuts, but then again I feel this way IRL :) Am I being too harsh, or is it really that bad on SO? Has there recently been a surge of new users, and the quality of content is degrading, or was it like this in the "good old days"? Have I perhaps misunderstood the expected behavior on Stack Overflow -- should I just ignore these crappy questions and answers rather than downvote them?


I have been thawing my uncooked chicken in my sink for years, and my family never got sick from eating it. Why can't you thaw uncooked chicken or any type of meat in your sink or on your countertop?

What is the safest, quick way to defrost chicken? Microwave? Running water over it?


public class Foo {      public static void main(String[] args) {         foo();         bar();     }      public static void foo() {         String s = "str4";         String s1 = "str" + s.length();         System.out.println("(s==s1)" + (s1 == s));      }      public static void bar() {         String s = "str4";         String s1 = "str" + "4";         System.out.println("(s==s1)" + (s1 == s));     } }   OUTPUT  (s==s1)false  (s==s1)true   At String s1 = "str" + s.length(); the value of s1=str4 but it turns out to be false at next sysout statement during double equal (==) check  */

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I know this is duplicated but I think the question is a bit different and needs different answer.  How can CDF be continuous and have derivative at each point that is not equal to zero but the probability at each point is zero?   Why not say for example if you want to choose a real number between 0 and 1 that the probablity is 1/N? Where this is just infinitesimal. (Just an example to describe the situation.)  It can neither be finite nor zero  The difference is: Why not assign it an infinitesimal instead of zero and to say that an event with P = 0 can happen?

I know that for continuous variable $P[X=x]=0$.   But i can't visualize that if $P[X=x]=0$, there is infinite number of possible $x$'s. And also why do their probabilities get infinitely small ?


I need to renew my passport before a trip to Brazil in early April, but I have to travel from the UK to another EU country in 12 days. The earliest fast-track appointment I can get is in 6 days, so the 7-day service would not get my renewed passport back to me in time for the trip within the EU.  As far as I know my current passport is handed in, and cancelled, as part of the renewal application (I may be wrong about this - it's been 10 years since the last time) and as far as I know I cannot use any other documents for travel from the UK to other EU countries. Do I have any other option than paying for the 1-day passport service?

Under what circumstances can a UK citizen travel to a country in the Schengen area without a passport?  My understanding is that because the UK does not have national ID cards, it is not possible, but work colleagues assert that a driving license would be sufficient.  I have experience of re-entering the UK on the Eurostar without a passport, but suspect that it would not be possible to leave.


What is the difference between  1.He became a star by 1990's.  2.He had become a star by 1990's.  Is the first sentence correct? If yes, then please tell me the difference between the two.  Thank you.

What is the difference between      He became a star by 1990's.     He had become a star by 1990's.    Is the first sentence correct? If yes, then please tell me the difference between the two.


I just downloaded the ISO and i don't have any blank cd's to put it on, can i install from an external hard drive?

I was thinking of installing Ubuntu on a couple of VMs. Would it be better to store each VM on a 8GB thumbdrive or store all the VMs on a 320GB USB-powered external HDD?  Which one would be faster?


I am using Blender 2.83.3     build date: 2020-07-22      build time: 06:01:36      build commit date: 2020-07-22      build commit time: 06:01      build hash: 353e5bd7493e      build platform: Linux      build type: Release  In "video editing" the output property of the current scene looks like this  shows only three movie formats. Formats that can also store audio are missing.

Even when I start a brand new file in Blender, I only get four video output file options: AVI raw, AVI JPEG, Frame Server, FFMpeg Video.  I am running version 2.78.5 (I'm using the beta so that I can use denoising.  How can I get access to all the other video outputs other people have? Like this:


There are a number of questions about election polls and margin of error that have been covered in CrossValidated over the years, including one regarding the 2016 US election polls. That one however only addresses validity based on members of a particular poll knowing each other.   In so many cases the state polls showed Clinton beating Trump above the margin of error.  Yet states like Wisconsin, Pennsylvania, Florida and Michigan were predicted to be won by Clinton but subject to recount all went to Trump. Of course there are many factors that could affect the accuracy of the polls and the validity/lack of validity of the margin of error.  Among those that I can think of are:   difficulty selecting a random sample of likely voters the election was volatile and hence present opinion may not reflect future opinion selection bias could exist   Which of these possibilities do you think caused the inaccuracy of the polls or do you have another explanation?  What assumptions about statistical surveys are most commonly violated.

First it was , now the US election. Many model predictions were off by a wide margin, and are there lessons to be learned here? As late as 4 pm PST yesterday, the betting markets were still favoring Hillary 4 to 1.  I take it that the betting markets, with real money on the line, should act as an ensemble of all the available prediction models out there. So it's not far-fetched to say these models didn't do a very good job.  I saw one explanation was voters were unwilling to identify themselves as Trump supporters. How could a model incorporate effects like that?  One macro explanation I read is the rise of . The question then is how could a statistical model capture a macro trend like that?  Are these prediction models out there putting too much weight on data from polls and sentiment, not enough from where the country is standing in a 100 year view? I am quoting a friend's comments.


I'm solving a problem where a ball rolls down a hill, but the friction between the ball and surface is 0. So it obviously slips, but does it only slip? As in does it not roll at all? Or does it slip and roll? Thanks.

I was wondering about this question since I learned about rolling motion in the chapter on rotational mechanics. I was unable to come to a solid conclusion due to the reasons mentioned below.  The following diagram shows a ball on a frictionless inclined plane and the forces acting on it:    The forces acting on the ball are shown in red and are the normal contact force $N$ and the gravitational force of attraction $mg$. I qualitatively determined the torque of these forces about two axes - one passing through the centre of mass of the ball of uniform density, and the other passing through the point of contact of the ball and the inclined plane. Both of these axes are perpendicular to the screen.  When the axis passes through the centre of the ball, the torque exerted by $mg$ is zero as its line of action meets the axis. Further, the torque exerted by $N$ is also zero due to the same reason. There are no other forces. So, net torque about this axis is zero, and this tempts us to conclude the ball slides down the inclined plane.  When the axis passes through the point of contact, the torque exerted by $N$ is zero but the torque exerted by $mg$ is non-zero. This means the ball must roll i.e., it rotates while moving down the inclined plane. This conclusion is contradictory to the former case.  So, what exactly will happen to a ball kept on a frictionless inclined plane - will it slide or roll?   The following diagram is a visual interpretation of my question (if the terms slide and roll confuses the reader) where the red arrow denotes the orientation of the ball:    Image Courtesy: My own work :)    Please Note: The question -  discusses the case of ball rolling on an inclined plane where friction is present. Since the question -  is marked as duplicate of the former, and has no sufficient details, I planned to ask a new question with additional information.


I've used AES-128 in CTR mode in the past and using the same key but different IVs for each file, I wrote the IV to the first 16 bytes. Is it safe to do so with the nonces used in AES-256 GCM? I'm using the word nonce here because that's what is declared in the Sodium library.  Are the uses for IVs and nonces exactly the same?  Also, is there any use in providing additional authenticated data? Should I keep it NULL?

What are the main differences between a nonce, a key and an IV? Without any doubt the key should be kept secret. But what about the nonce and the IV? What's the main difference between them and their purposes? Is it only that, in literature and in practice, an IV is being used as "initiator" of a block cipher encryption mode which should be unique? And the same property should hold for a nonce as well, but since it doesn't instantiate something we call it a nonce? I.e: in AES-CTR mode the IV is a nonce+counter. And both are put in plaintext format in the beginning of the ciphertext.


I am just working through some questions for fun, and can't seem to prove this statement: (Proof that $(a+1)^p\equiv a^p+1\pmod p$ where $p$ is a prime and the proof is by Fermat's theorem). So far I have deduced the following: $a^{p-1}\equiv 1 \pmod p \implies a^p \equiv a\pmod p\implies a^p + 1 \equiv  (a + 1) \pmod p \implies (a^p + 1)^p \equiv (a + 1)^p\pmod p$ So, I figure if I can find a way to show that $(a^p + 1)^p \equiv a^p + 1\pmod p$ or $(a + 1)\equiv (a^p + 1)^p\pmod p$ then the proof will be complete. But, I can't seem to make that final step.

I believe that this may require the use of Fermat's Little Theorem. I rewrote it as $(a+1)^p - a^p \equiv 1 \pmod{p}$ because the right-hand side looks similar to Fermat's Little Theorem, but I was unable to figure out how I can get the left-hand side to become $a^{(p-1)}$.


The reason I need this because I create a view to search through document and need two outputs. One being the document and the other being the files are part of the document group the file is associated with.  *Is this possible with one exposed filter   Thanks for any help with this

I've just made a Views for a content type.  In one views, I need a page for the content type and a preview of 4 newest posts on the front page.  Page is not the problem. For front page preview, I just confused about the purpose of "Attachment", "Content pane" & "Context". I don't know which one to use for front page preview.  "Context" does not have more link, and "Content pane" is not for Panels pane since Panels module is disabled.


I just heard the conference held in Washington due to the roit in the Congress Capitol The mayor referred to the people who live in Washington as Washingtonians and I remember people who live in New York are caller New Yorkers. Similarly in Australia, people of Melbourne are Melbournians but people of Syndey are Syndeysiders?!! What is the rule of using -ian, -er, or -siders? for the people belong to a city?

Are there specific rules / conventions at play when creating demonyms? Or are they merely formed organically over time - the most popular winning out?  There are many suffixes to choose from, but I cannot find concrete guidelines as to which is proper to use in which instance.


In the same way possible answers (Related Questions) are suggested when you leave the Title, possible tags should be offered when you give the Tags textbox focus.

Would inferring tags from a question's title and body and filling them automatically into the tag field (or at least suggesting them separately as a hint list or something) be worthwhile?  Note that I'm not referring to the tag auto-complete that goes on already, mind you.  Edit: The way I see it, it's the people who struggle defining their problems who probably need the most help with getting them solved. That's what I'm implying with this question, just so you know.


How do I prove that the summation $$\sum_{k=0}^{\infty}k^2x^{k} = \dfrac{x(1+x)}{(1-x)^3}\text{, }|x| < 1\text{?}$$

The question I've been given is this:  Using both sides of this equation:  $$\frac{1}{1-x} = \sum_{n=0}^{\infty}x^n$$  Find an expression for $$\sum_{n=0}^{\infty} n^2x^n$$ Then use that to find an expression for $$\sum_{n=0}^{\infty}\frac{n^2}{2^n}$$  This is as close as I've gotten:  \begin{align*} \frac{1}{1-x} & = \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} & = \frac{d^2}{dx^2} \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} & = \sum_{n=2}^{\infty} n(n-1)x^{n-2} \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} n(n-1)\frac{x^n}{x}(x+1) \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} (n^2x + n^2 - nx - n)\frac{x^n}{x} \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} n^2x^n + n^2\frac{x^n}{x} - nx^n - n\frac{x^n}{x} \\ \end{align*}  Any help is appreciated, thanks :)


On aircraft wings, the bottom is flat and the top is curved. I know this benefits the aircraft by producing lift, but I wish to understand how. I'm told it has something to do with how fluids behave.

What aerodynamic effects actually contribute to producing the lift on an airplane?  I know there's a common belief that lift comes from the Bernoulli effect, where air moving over the wings is at reduced pressure because it's forced to travel further than air flowing under the wings. But I also know that this is wrong, or at best a minor contribution to the actual lift. The thing is, none of the many sources I've seen that discredit the Bernoulli effect explain what's actually going on, so I'm left wondering. Why do airplanes actually fly? Is this something that can be explained or summarized at a level appropriate for someone who isn't trained in fluid dynamics?  (Links to further reading for more detail would also be much appreciated)


I am puzzled why we always see the same side of the Moon even though it is rotating around its own axis apart from revolving around the earth. Shouldn't this only be possible if the Moon is not rotating?

I know that the rotation period of the moon equals its revolution period. It's just so astonishing that these 2 values have such a small difference. I mean, what is the probability of these 2 values to be practically the same? I don't believe this to be a coincidence. It's just too much for a coincidence. What could have caused this?


I wish to draw a coordinate system in LaTeX (using tikz) and I have not been able to find a good instruction. I know how to draw basic graphics, but surely there must be a better way, than to draw the axes manually? My goal is to have a coordinate system  with grid lines and markings on the axes.

I have the following TikZ code which draws a grid and shows the coordinates.  To display the coordinates I am using the loop foreach.  \documentclass[12pt]{article} \usepackage{tikz}  \begin{document} \begin{tikzpicture} \draw[help lines,step=.2] (-2,-2) grid (7,4); \draw[help lines,line width=.6pt,step=1] (-2,-2) grid (7,4); \foreach \x in {-2,-1,0,1,2,3,4,5,6,7}  \node[anchor=north] at (\x,-2) {\x}; \foreach \y in {-2,-1,0,1,2,3,4}  \node[anchor=east] at (-2,\y) {\y}; \end{tikzpicture} \end{document}   Is there a way do simplify the code in this way that I have a key like show coordinates (maybe step coordinates/.initial=step ):  \draw[help lines,step=.2,show coordinates=true] (-2,-2) grid (7,4);   Or a modification of the command grid like  \draw[help lines,step=.5] (-2,-2) gridwithcoordinates (7,4);     By using pstricks it is very simple with the command \psgrid  \documentclass[12pt]{article} \usepackage{pstricks}  \begin{document} \begin{pspicture}(-2,-2)(7,4) \psgrid \end{pspicture} \end{document}   Bonus: How can I set a larger line width for the help lines at the integer coordinates (see picture above)?  (I don't know the correct words ;-) )


i have recently started using ubuntu and i dont know where to find the files from my earlier installed windows in ubuntu i had huge datas in previous partitons in D and E drive

I'm new to Ubuntu, so can any of you give me a guide of how I can access my windows 7 files from my Ubuntu 12. I installed it using Wubi. Looked around everywhere but failed.


My current username is mpatil, how can I change that to algo without losing data or causing problems?

I installed Ubuntu on a computer that is now used by somebody else. I renamed the account with her name, but it only changes the fullname, not the user name, which is still displayed in the top right (in the fast-user-switch-applet). Is there a command to rename an Unix user account?  I've thought of creating a new user account with the new name, and then copying everything in the "old" home to the home of the new account. Would it be enough? But then I think the files would have the old account's permissions' owner? So should I do chown -R newuser ~?  Is there a simpler/recommended way to do this?


I have downloaded a tarball for installing Firefox. Once it’s unpacked, the /configure command does not work. I happened to notice that the unpacked folder contains configure, read me, or install files, but the error says      configure no such file   What should I do?

I want to install the latest Firefox on my Ubuntu (64bit) box.  What is the best way to do this? Is there a specific update site or should I download the binaries manually? If doing manually, in which directory should I put the files? In my home directory, or is there a better place?


I installed Ubuntu 12.10 via mini-iso, after that I installed xinit, xorg, fluxbox, xterm, pcmanfm , chromium-browser and lxappearance. There is for now one set of icons, in lxappearance I chose the icon set and applied but they don't show up in pcmanfm, there I see only text.   How do I get pcmanfm to show folder icons?

I have an Ubuntu 12.10 installation and wanted to try out Fluxbox as a lightweight window manager. When I open Thunar it displays no icons for folders. I've made sure I have a .gtkrc-2.0 in my home directory.  Do you have any ideas what to try out?


This is not quite working right.  #!/bin/bash [ ! $1 ] && { echo -e "Error!! No time given.!!"; exit 1; } seamonkey sleep $1 killall seamonkey   7/20/18  #!/bin/bash # # Originally by pavlos_kairis # # Open Seamonkey for a specified amount of time and then terminate program if [ $# -eq 0 ]; then   echo "Error! no time given."   echo "Syntax:"   echo    echo "15s = 15 seconds"   echo "1m = 1 minute"   echo "1h = 1 hr"   exit 1 fi echo "Opening Seamonkey ..." seamonkey  & sleep $1 echo "Seamonkey will close in " $1 killall seamonkey

I am looking for a method built-in to ubuntu that will allow me to run a script or program or whatever for a fixed period of time.  , but the package is unavailable for Ubuntu. In any case, I was hoping for something built-in.  The only thing i can think of is to get the current time and set a cron job 30 minutes from 'now' that will kill the program.  I was hoping there was a way to do this without setting up a script, but if I need to - it wont be the end of the world. After the 30 minute interval I would like to put my laptop in a sleep mode, but this can be separate from the timer thing.  Thanks in advance.


In the Sorcerer's Stone, Snape was playing with the Quirrell the double agent job. He was persuading him to find out how to get the stone.     "Have you found out how to get past that beast of Hagrid's yet?"   "B-b-but Severus, I --"   "You don't want me as your enemy, Quirrell,"   said Snape, taking a step toward him.   Harry-Potter-and-the-Philosopher's-Stone, CHAPTER THIRTEEN   But in the Quidditch match Snape       saved Harry and Quirrell knew that.    Later Harry discussed with Quirrell:      "But Snape tried to kill me!"  "No, no, no. I tried to kill you. Your friend Miss Granger accidentally knocked me over as she rushed to set fire to Snape at that Quidditch match. She broke my eye contact with you. Another few seconds and I'd have got you off that broom. I'd have managed it before then if Snape hadn't been muttering a countercurse, trying to save you."  "Snape was trying to save me?"  "Of course," said Quirrell coolly. (...)  Harry-Potter-and-the-Philosopher's-Stone, CHAPTER SEVENTEEN   How is it possible, that Voldemort trusted Snape later so much?  And that nobody brought this up. (I know, it may be out of screen, but Snape's position seems pretty strong)

I read something online that got me thinking about this. Why didn't Voldemort suspect Snape had defected from the Death Eaters and was now working for Dumbledore during the events of *Philosopher's Stone?  Voldemort was possessing Quirrell's body and his head was protruding from the back of Quirrell's - in other words, Voldemort was with Quirrell constantly during the events of Philosopher's Stone, presumably overhearing whatever Quirrell himself heard.   Snape cornered Quirrell more than once (Halloween, when Quirrell let the troll in, and the night Harry broke into the Restricted Section over the Christmas holidays to look for information on Nicholas Flamel) and openly threatened him against working for Voldemort and pressuring him to declare his loyalties to Dumbledore. This obviously revealed Snape's loyalty to Dumbledore to Quirrell, and presumably Voldemort, and I can't think of a reason why Voldemort wouldn't have been able to hear Snape strong-arming Quirrell perfectly clearly.   Why didn't Voldemort attempt to make contact with Snape during Philosopher's Stone? After all, Snape was supposedly Voldemort's most faithful servant. How is it Voldemort didn't suspect Snape was working for Dumbledore and didn't orchestrate a move against him? Snape wasn't even pretending to be a double agent during Philosopher's Stone, so why Voldemort didn't kill Snape as soon as he was physically able, or have Quirrell attempt to kill him, is unclear.  So yes, why didn't Voldemort suspect Snape as a double agent during the events of Philosopher's Stone?


no sound on ubuntu 16.04 .In setting it say dummy sound after downloading on to a mini pc it says dummy sound what does that mean .what can i try ?

My sounds suddenly stopped playing on Ubuntu 13.04 64bit. I can only see Dummy output device in the Sound Settings and no sound is played during testing.  I can get the sound temporarily working by killing one of the strange processes, but I have to repeat the same after reboot  jan@jan-HP-Desktop:~$ ps -ef|grep pulseaudio 112       1405     1  0 09:38 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog 112       2132  1405  0 09:38 ?        00:00:00 /usr/lib/pulseaudio/pulse/gconf-helper jan       2575     1  0 09:39 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog jan       2597  2575  0 09:39 ?        00:00:00 /usr/lib/pulseaudio/pulse/gconf-helper jan       3160  2975  0 09:40 pts/2    00:00:00 grep --color=auto pulseaudio  jan@jan-HP-Desktop:~$ sudo kill 1405   Is there a permanent solution for this problem?


I have a program that continually polls the database for change in value of some field. It runs in the background and currently uses a while(true) and a sleep() method to set the interval. I am wondering if this is a good practice? And, what could be a more efficient way to implement this? The program is meant to run at all times.  Consequently, the only way to stop the program is by issuing a kill on the process ID. The program could be in the middle of a JDBC call. How could I go about terminating it more gracefully? I understand that the best option would be to devise some kind of exit strategy by using a flag that will be periodically checked by the thread. But, I am unable to think of a way/condition of changing the value of this flag. Any ideas?

Is there a way to prematurely abort a transaction? Say, I have sent a command to the database which runs five minutes and after four, I want to abort it.  Does JDBC define a way to send a "stop whatever you are doing on this connection" signal to the DB?


~$ sudo apt-get install --fix-broken Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  console-setup : Depends: keyboard-configuration (= 1.108ubuntu15.5) but 1.194ubuntu3 is installed console-setup-linux : Depends: keyboard-configuration (= 1.108ubuntu15.5) but 1.194ubuntu3 is installed initramfs-tools-core : Depends: initramfs-tools-bin (= 0.122ubuntu8.17) but 0.136ubuntu6.3 is installed libdpkg-perl : Depends: dpkg (>= 1.18.11) python-lazr.restfulclient : Depends: python-httplib2 but it is not installed python3 : PreDepends: python3-minimal (= 3.5.1-3) but 3.8.2-0ubuntu2 is installed           Depends: libpython3-stdlib (= 3.5.1-3) but 3.8.2-0ubuntu2 is installed python3-cairo : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed   python3-distutils : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed python3-gdbm : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed  python3-lib2to3 : Depends: python3 (>= 3.8.2-0~) but 3.5.1-3 is installed   python3-renderpm : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed  python3-reportlab-accel : Depends: python3 (>= 3.8~) but 3.5.1-3 is installed  E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies

I was having an error doing normal ubuntu(18) updates related to ValueError: bad marshal data I deleted pyc files in /usr as suggested but no joy. I tried removing and reinstalling python - but hit this problem: jon@:/var/www/stats/pup$ sudo apt install --reinstall python3-apt Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies.  apport : Depends: python3-apport (>= 2.20.9-0ubuntu7.21) but 2.20.9-0ubuntu7.20 is to be installed  apport-gtk : Depends: python3-apport (>= 2.20.9-0ubuntu7.21) but 2.20.9-0ubuntu7.20 is to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).  I tried apt --fix-broken install  but this fails: (Reading database ... 320885 files and directories currently installed.) Preparing to unpack .../python3-apport_2.20.9-0ubuntu7.21_all.deb ... Traceback (most recent call last):   File "<frozen importlib._bootstrap>", line 1159, in _install ValueError: bad marshal data (unknown type code) Fatal Python error: Py_Initialize: importlib install failed  Current thread 0x00007fd7fedd1740 (most recent call first): Aborted dpkg: warning: old python3-apport package pre-removal script subprocess returned error exit status 134 dpkg: trying script from the new package instead ... Traceback (most recent call last):   File "<frozen importlib._bootstrap>", line 1159, in _install ValueError: bad marshal data (unknown type code) Fatal Python error: Py_Initialize: importlib install failed  Current thread 0x00007f5f2bcdf740 (most recent call first): Aborted dpkg: error processing archive /var/cache/apt/archives/python3-apport_2.20.9-0ubuntu7.21_all.deb (--unpack):  new python3-apport package pre-removal script subprocess returned error exit status 134 Traceback (most recent call last):   File "<frozen importlib._bootstrap>", line 1159, in _install ValueError: bad marshal data (unknown type code) Fatal Python error: Py_Initialize: importlib install failed  Current thread 0x00007faebc356740 (most recent call first): Aborted dpkg: error while cleaning up:  installed python3-apport package post-installation script subprocess returned error exit status 134 Errors were encountered while processing:  /var/cache/apt/archives/python3-apport_2.20.9-0ubuntu7.21_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Suppose I have $X_1\sim Uniform[0,1]$. Let us define a sequence of random variables as follows:    We will choose a random point from the interval $[0,X_1]$ and mark it by $X_2$. then we will choose a random point from the interval $[0,X_2]$ and mark it by $X_3$ and so on. 0  I need to find a formula for the density function $f_{{X}_n}$.  I could see that $X_n$ has more probability to be near 0. I tried to express $F_{X_n}$ in terms of $F_{X_{n-1}}$ and $F_{X_{n-2}}$ but got only to this equation: $F_{X_{n}}(x_{n+1})=\frac{F_{X_{n+1}}(x_{n+2})}{F_{X_{n-1}}(x_n)}$ that leads me nowhere even if I trying to derivate it.  Thank you, Michael

I would very much appreciate a hint for the following problem  Let $\left(X_n\right)_{n=1}^\infty$ be a sequence of random variables s.t.: $$X_1 \sim U_{[0,1]}$$ and for all $n>1$: $$X_n \sim U_{[0,X_{n-1}]}.$$ Give a general expression for $f_{X_n}$ the pdf of $X_n$.  Thanks


Ok, I am out of practice and can't figure this out. I want to get just BCS__c records that have an associated Employment_Process__c record that meets the criteria. Right now I am getting all records from BCS__c.   Date D1 = Date.today() - 30;          //Build Hub List         list<BCS__c>     theHubs    = new list<BCS__c>();         theHubs                     = [Select ID,Name,User__c,(Select Hub_Name__c                                                        FROM Employment_Processes__r                                                        WHERE Is_Employee_a_Referral__c = 'Yes'                                                        AND  Actual_Start_Date__c = :D1)                                        FROM BCS__c];  FOR(BCS__c b:theHubs){ yada yada }

I am attempting to create a query with the objects Opportunity, Courses__c, and Prior_Qualifications__c.   Opportunity has parent-child relationships with both Courses__c and Prior_Qualifications__c. I want to be able to query only information with valid Courses__c records, so that I can disregard any results returned with valid Opportunity object information, but no Courses__c information. Is there a way to do this? Am I able to make a query such that:  Select Id,  (Select Course_Name__c from Courses__r) from Opportunity where Courses__r.Course_Name__c != ''   I know that this isn't a valid query... but can I do something like this?


I read this novel about 15-20 years ago. I don't remember if it was recent at that time or much older.   It was quite complicated and involved several different threads. But I remember only one of them. There is a planet with vaguely wolf-like predators who are sentient individually, but who can also join their minds telepathically. The "collective mind" that emerges from this joining (not a large group, half-a-dozen minds or so, it is a very small "hive") can have a very different personality than the individuals. IIRC, one point-of-view character has a rather nice personality and does not know that she (? I think I remember that was a female, but I am not sure) is part of an extremely unpleasant "collective".

The main premise is that as you head out of the galaxy, the more god-like you become. The inside is the 'unthinking depths'  There was an AI like enemy being, that computer archaeologists let escape, that wants to take over the universe.   One of the god-like beings puts the 'key' of the enemy's destruction into a human created from pieces of an old space battle.  The hero and the created human, who seem to be the only humans left in existence, go to a lower level, less evolved, civilized world, where a human explorer landed long ago who succumbed to the local forces or lizard people, to find the other part of the key and finally defeat the enemy AI by sending a wave of 'slowness', powered by their sun, making most of the galaxy not traversable by hyperdrive, effectively locking the enemy AI in 'space' with no means to travel.  Help!


This error message continually pops up, "geohxjhmvzab" is damaged and can't be opened.  I have searched, via FINDER, for the file, but to no avail.  I have also attempted to delete the file via TERMINAL, using an xattr command, to no avail.

i just finished updating my Macbook pro to macOS Catalina and after the installation finished i got this error message that keeps reappearing. i do not know or have a file named "qnmqkmkrqwfq" (i tried searching for it) and when i press show in finder or ok it disappears for a second and then pops up again for no reason and i am not trying to open any files or apps. i searched and the only solution i found was setting "Allow applications downloaded from: Anywhere" but it did not work. Please Help.


I'm on the study of Diffie-Hellman and its related math (multiplicative group of integers $\mod n$).  In some crypto papers and documents I've read that $g$ needs to be a primitive root mod $n$ ($g$ order in $G = \phi(p)$), but we actually use $g$ as a generator of a large subgroup of order $q$, where $q$ is a large prime extracted from $(n-1)/2$ ($p$ is a safe prime). So $g$ isn't a primitive root modulo $n$, because $g$ doesn't generate the entire group of $n-1$ but generates a subgroup of length $q$.  I understand that if a prime number (say 'x') divides the group's order then a generator exists whose order in G is 'x'. This is the current schema in the implementations of Diffie-Hellman (like I said before).  Example: $q = 1349363$; $p=2q+1=2698727$. So $\phi(p) = p-1$, $q|p-1$ so a generator $g$ exists whose order in $G$ is $q$.  And here's my opinion: I think this is used because doing modular exponentiation on big generators is slow, so we can use $2$ as a generator. It will generate a lower subgroup of elements, but if $q$ is big enough, it will increase the math performance without being insecure. Correct me if I'm wrong.  But I wish to clear the following doubts:  Why is not recommended to use a primitive root mod $n$ in Diffie-Hellman? Why do some crypto papers say that a primitive root modulo $n$ is needed?    According to  So a primitive root modulo $n$ (or a true generator) isn't chosen because its order in $G$ is composite. Thus it reveals information about the private exponent. Instead, a generator of a subgroup of order $q$ (factor of |G|) is used, where $q$ is prime and large enough. Is this correct?

Due to a number of recently asked questions about Diffie-Hellman, I was thinking this morning: must $g$ in Diffie-Hellman be a generator?  Recall the mathematics of Diffie-Hellman:  Given public parameters $p$ (a large prime) and $g$ (always referred to as a generator of $\mathbb{Z}^*_p$).   Alice chooses $a$ at random and sends $A \gets g^a \mod{p}$ to Bob. Bob chooses $b$ at random and sends $B \gets g^b \mod{p}$ to Alice. Alice computes $S \gets B^a \mod{p}$ Bob computes $S \gets A^b \mod{p}$   From the math above, I don't see anything that would require $g$ to be a generator, so the math should work even if $g$ is not a generator.  As far as security goes, clearly having $g$ be a generator is best as $|g|$ (or the order of $g$) will be greatest when $g$ is indeed a generator. Is that the only reason for choosing $g$ to be a generator?


Suppose I have a string like:  MyString = "OU=Level3,OU=Level2,OU=Level1,DC=domain,DC=com";   then I want to know how many time of occurrences of sub-string "OU=" in this string. With single char, maybe there is something like:  int count = MyString.Split("OU=").Length - 1;   but Split only works for char, not string.  Also how to find the position of n occurrences? For example, the position of 2nd "OU=" in the string?  How to resolve this issue?

I am doing something where I realised I wanted to count how many /s I could find in a string, and then it struck me, that there were several ways to do it, but couldn't decide on what the best (or easiest) was.  At the moment I'm going with something like:  string source = "/once/upon/a/time/"; int count = source.Length - source.Replace("/", "").Length;   But I don't like it at all, any takers?  I don't really want to dig out RegEx for this, do I?  I know my string is going to have the term I'm searching for, so you can assume that...  Of course for strings where length > 1,  string haystack = "/once/upon/a/time"; string needle = "/"; int needleCount = ( haystack.Length - haystack.Replace(needle,"").Length ) / needle.Length;


I got an old Mac G4 (powerPC) from the company who wanted to put it in a bin.  The company agreed that I can take it home for private use.  It is running an early version of OSX but because it is old and the person in charge no more in the company, I do not have any login/password for entering the system.  Is there any procedure to either create a new user or to reset the password of an existing user?

Today I bought an ibook G4 from a garage sale. The people who sold it to me didn't know the password for the 2 accounts on it. Apparently it was the guys late father's laptop. Any suggestions on how to get into the laptop and set a new admin account and password?


Some of you would probably know  the website .   I am working on some  papers and I was wondering if I can publish a draft of them on airxiv in order to receive some feedback and then submit a final version to a journal.   This could be useful also to publish draft of paper that I am not sure to have the time to finish.   I would like to know some advices on how to use or how don't use this site. I was also wondering how much does a publication on airxiv matter from a career point of view.

I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it).   As it is outside my primary field of research, nobody in my direct lab vicinity can help evaluating its scientific value or novelty (I did a bit of literature research and didn't find any obvious precedent). Normally I would just put it as an appendix in the first article where I use it, but this one is quite long to describe and completely out of my field. It would thus be off-topic in the journals in which I usually publish.  I though of seeking collaboration from someone in my university who works in signal/image processing, I don't know anyone personally and I foresee possible political issues, authorship quarrels, etc. I would nonetheless like to get some sort of evaluation before submitting to a journal. As an outsider, I wouldn't like to waste an editor's time and make a fool of myself.  I have zero experience submitting to the arXiv, by looking at the website it's not clear how/if there is an active system of feedback, even informal.   Is it advisable to submit my methods paper there and expect a feedback?


When writing a title, do you capitalize "the" in names like "Boris The Animal", "Mike the Bike Guy" or "Tom The Dancing Bug"?

Are there any concrete rules that say which words (parts of speech) in a title should start with a capital letter? What would be a correct capitalization for the title of this question?


I often refer to some chemicals often in my document (e.g. NH415NO3) and I keep getting line breaks in the middle of the chemical formula (e.g. if NH415NO3 comes at the end of a line, sometimes NH4 and 15NO3 are split onto different lines).  To get around this, and save typing, I created new commands for some chemicals:  \newcommand{\fan}{\mbox{\ch{^{15}NH4NO3}}} % \fan = 15NH4NO3 in mbox \newcommand{\afn}{\mbox{\ch{NH4^{15}NO3}}} % \afn = NH415NO3 in mbox \newcommand{\an}{\mbox{\ch{NH4NO3}}} % \an = NH4NO3 in mbox \newcommand{\fnto}{\mbox{\ch{^{15}N2O}}} % \fnto = 15N2O in mbox   However, when I use my new commands, there's no space after the chemical formula in the text. If I put an extra space in the command, like this:  \newcommand{\afn}{\mbox{\ch{NH4^{15}NO3}} } % \afn = NH415NO3 in mbox   then, I get an extra unwanted space if a full stop comes after the formula in the text.  How can I solve this problem?

I have a definition:  \newcommand{\arnold}{Arnold Schwarzenegger}   When I refer to it by:  \arnold is a   it is rendered as:   Arnold Schwarzeneggeris a    In order to have a space in front of "is" I would need to write  \arnold\ is a   Is there some other shorter way?


please tell me what to do in this code:  UnicodeString Str; double        x, y; double        z1, z2;    x= 2.0;   y= 5.0;    z1= x/y;   z2= x/y;    if(z1>z2)     Str= "> not ok\n";   else     Str= "> ok\n";    Application->MessageBox(Str.c_str(), L"Info", MB_OK);   The result is ">not ok". Why????  it should be z1>z2= false; but it is true.  if i use the standard compiler than it is ok. But the clang compiler give wrong result.  the disassemble using CLang compiler (gives wrong result):  Unit1.cpp.24: if(z1>z2) 00403D7B DD8568FFFFFF     fld qword ptr [ebp-$00000098] 00403D81 DFE9             fucomip st(1) 00403D83 DDD8             fstp st(0) 00403D85 0F86E7000000     jbe $00403e72 00403D8B EB00             jmp $00403d8d 00403D8D 8B45B0           mov eax,[ebp-$50]   the disassemble using Standard compiler (gives right result):  Unit1.cpp.24: if(z1>z2) 004031C7 DD45AC           fld qword ptr [ebp-$54] 004031CA DD45A4           fld qword ptr [ebp-$5c] 004031CD D9C9             fxch st(1) 004031CF DAE9             fucompp  004031D1 DFE0             fstsw ax 004031D3 F6C445           test ah,$45 004031D6 753D             jnz $00403215

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have  query: SELECT * from Posts WHERE OwnerUserId = 2545680  I've used my OwnerUserId. Why doesn't it show the most recent questions I asked?

When I use , the results I get don't reflect recent activity. Sometimes the data I get back are two months out of date. What's wrong? This is intended to be a canonical reference for questions about SEDE not reflecting real-time results.


In Blender 2.8, I am trying to cut a circle out of one face of a cube, but for some reason I can't get it to work.  My procedure thus far:  (a) Add the cube (add -> mesh -> cube) (b) Add the circle (add -> Curve -> Circle) (c) Position the circle in front of the face to be carved (d) Select the circle; while holding shift add the cube as a selection (e) Switch to edit mode (f) Select the knife project (mesh -> knife project)  And I get the result below.  My challenges are:  (1) The cut lines are wrong (the only cut lines should be the circle itself; the straight lines running from the circle to the cube's two vertices are unwanted) (2) I have no idea how to make the cut actually happen at this point if I had the cut lines that I wanted.  Thanks in advance!

So, I'm working on a control station that has buttons. It is a one-mesh creation, that means, I don't want to create buttons and things like that separated from the main mesh, but as you can see, I have problems. I would like to make the highlighted parts to be one with the main part around them. I've tried everything, and I have this problem on multiple creations. Any idea?  Update: I've added another example of the problem. I want them to be one face, instead of two. (2nd picture)


I have studied differential geometry , thought of starting to study algebraic geometry , but it seems completely different from differential geometry . It uses lots of abstract algebraic tools . I wonder how much abstract algebra do I need to learn in order to learn algebraic geometry . Possibly , some reference of algebraic  geometry books will much helpful .  Another thing I see a lot in lecture notes on introductory algebraic geometry is the usage of angle brackets , i suppose they something completely different . What do they mean , anyway ?

Is it possible to get into algebraic geometry by just knowing calculus and linear algebra or is this too far of a stretch?  If not could anyone give me a list of book/lecture notes recommendations in chronological order to dive into algebraic geometry with my state of knowledge?  Thanks


Is this true that for any location of $O$ (within the square) $S(ONAK)+S(OMCL)=S(OLBK)+S(OMDN)$?  P.S. The  does not answer my question in general.

Find the area of the shaded region in the figure below:    I am completely stuck on how to start off this question. Please help on some guidance on how to start it off.


I have a simple enemy wave based survival game the spawn system have an array of enemy AIs and Spawn Points, I want the spawned prefabs to be removed from the enemies array to avoid getting spawned again, is there a way to do so, here's my code: public Transform[] spawnPoints; public GameObject[] enemies;   Pos= spawnPoints[Random.Range (0,spawnPoints.length)]);  AI = Instantiate (enemies[Random.Range (0, enemies.length)]) , Pos);

I have an array of Foo objects. How do I remove the second element of the array?  I need something similar to RemoveAt() but for a regular array.


Every year I ask the same question on a new macOS: can I make Reminders text bigger? I guess it's still impossible on Big Sur too. Isn't so strange that Reminders app has such small text (smaller than your Safari address bar text)? thanks

Is there a way to increase the font size of the Reminders app? It was easy in Mavericks, by changing a text file inside the app package, but I can't find it anymore on yosemite.   The text is just too small, isn't it?


I have already install RVM. Now I have download RubyMine-6.3.2.tar.gz From here  , But still I am confuse How can I install it on my system. I am using Ubuntu 12.10. Please help me to do this.  Thanks

I have downloaded tar.gz files. But I don't know how to install it. How do I install this kind of file?


I know this question asked here before, and I've seen all your answer but it didn't  work with me  just \includegraphics[width=0.8\textwidth,natwidth=610,natheight=642]{first.png}work, but if I do that then I can't control on the position of graph, so could you help ?

I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic"  My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both.  Sample code that doesn't work:  \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure}   If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks.


I'm a newbie to java. I have written the following program :   import java.util.ArrayList; import java.io.*; import java.util.*;    public class dotcombust{     GameHelper helper=new GameHelper();     ArrayList<Dotcom> dotcomlist;     int nofguess=0;      private void setup(){             Dotcom one =new Dotcom();         dotcomlist.add(one);         Dotcom two= new Dotcom();         dotcomlist.add(two);         Dotcom three= new Dotcom();         dotcomlist.add(three);          for(Dotcom obj : dotcomlist)         {             obj.setname();             ArrayList<String> loc= helper.placeDotCom(3);             obj.setlocation(loc);         }     }      private void startplaying(){             while(!dotcomlist.isEmpty())         {             nofguess++;             String guess=helper.getUserInput("Enter a guess ");              checkuser(guess);         }         finish();     }      private void checkuser(String guess){             String result="miss";         for(Dotcom obj : dotcomlist)         {             result=obj.checkyourself(guess);             if(result.equals("kill"))             {                 System.out.println("You killed " + obj.name);                 dotcomlist.remove(obj);                 break;             }             else if(result.equals("hit"))             {                 break;             }        }         if(result.equals("hit") || result.equals("miss"))        {            System.out.println(result);        }     }      private void finish(){         System.out.println("You took " + nofguess + "guesses. If they are below 10, congrats. Otherwise you suck balls. No offense.");     }      public static void main(String[] args){         dotcombust game;         game=new dotcombust();         game.setup();         game.startplaying();     } }   When i run the program, i'm getting java.lang.NullPointerException at dotcombust.setup() and dotcombust.startplaying() statements. I thought that the classes Dotcom and Gamehelper are not related to the error and hence did not display them here. Please help me to fix the problem. Also, i wanted to know if it was possible to write the classes Dotcom and Gamehelper in different source file but use it in this code? If so how?.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


What exactly is happening in the below bash incantation?  x=10 echo $x   I was under the impression that commands on bash can be chained using &&, || or ; but not simply separated by white-space. The above only works if the first command is an assignment. E.g. ls ls fails but foo=zoo ls works just fine.  A real case of the above style is found in .

Is there any standard that covers the portability of running a command after variable assignment on the same line?  APPLE="cider" echo hi   How portable is something like that? Where will it work and where won't it?   Also: my shell scripts start with #!/bin/sh if that makes any difference.