As far as I understand, a CNAME record is served to retrieve only the A record of its destination. E.g.:  www.example.com CNAME domain.com  Here the DNS resolver will search for the A record (IP address) of domain.com.  It is not allowed by RFC to use the CNAME record for the bare domain name, although, technically, it is possible. Like here:  example.com CNAME domain.com  example.com MX mail.example.com (MX will not work in this case)  However, I still don't understand how this record conflicts with other records like MX from the technical point of view and why the A record does not conflict, for instance. I guess I've missed something.  By the way, there are CNAME Flattening, ANAME or ALIAS records that have different implementations than the standard CNAME and they do not conflict with other records.  Could you explain?

This is a  about CNAMEs at the apices (or roots) of zones   It's relatively common knowledge that CNAME records at the apex of a domain are a taboo practice.  Example: example.com. IN CNAME ithurts.example.net.  In a best case scenario nameserver software might refuse to load the configuration, and in the worst case it might accept this configuration and invalidate the configuration for example.com.  Recently I had a webhosting company pass instructions to a business unit that we needed to CNAME the apex of our domain to a new record. Knowing that this would be a suicide config when fed to BIND, I advised them that we would not be able to comply and that this was bunk advice in general. The webhosting company took the stance that it is not outright forbidden by standard defining RFCs and that their software supports it. If we could not CNAME the apex, their advice was to have no apex record at all and they would not provide a redirecting webserver. ...What?  Most of us know that  insists that A CNAME record is not allowed to coexist with any other data., but let's be honest with ourselves here, that RFC is only Informational. The closest I know to verbiage that forbids the practice is from :     If a CNAME RR is present at a node, no other data should be   present; this ensures that the data for a canonical name and its aliases   cannot be different.   Unfortunately I've been in the industry long enough to know that "should not" is not the same as "must not", and that's enough rope for most software designers to hang themselves with. Knowing that anything short of a concise link to a slam dunk would be a waste of my time, I ended up letting the company get away with a scolding for recommending configurations that could break commonly used software without proper disclosure.  This brings us to the Q&A. For once I'd like us to get really technical about the insanity of apex CNAMEs, and not skirt around the issue like we usually do when someone posts on the subject.  is off limits, as are any other Informational RFC applicable here that I didn't think of. Let's shut this baby down.


What is the difference between these two modules? Whoever created them didn't seem to think of including a clear description.

What's the difference between the , and  packages?  The former has a higher version number, and the description of the packages are the same.    Which do I use? Which is the most recent one What's the purpose of this split packaging?


If $\alpha$, $\beta$ are the roots of the equation $a\cos x+b\sin x=c$, then prove that $\cos(\alpha+\beta)=\dfrac{a^2-b^2}{a^2+b^2}$   My Attempt $$ b\sin x=c-a\cos x\implies b^2(1-\cos^2x)=c^2+a^2\cos^2x-2ac\cos x\\ (a^2+b^2)\cos^2x-2ac\cos x+(c^2-b^2)=0\\ \implies\cos^2x-\frac{2ac}{a^2+b^2}\cos x+\frac{c^2-b^2}{a^2+b^2}=0 $$ $$ a\cos\alpha+b\sin\alpha=c\implies a\cos^2\alpha\cos\beta+b\sin\alpha\cos\alpha\cos\beta=c\cos\alpha\cos\beta\\ a\cos\beta+b\sin\beta=c\implies a\sin\alpha\sin\beta\cos\beta+b\sin\alpha\sin^2\beta=c\sin\alpha\sin\beta\\ c\cos(\alpha+\beta)=a\cos\beta+a\sin\alpha\cos\beta.(\sin\beta-\sin\alpha)+b\sin\alpha+b\sin\alpha\cos\beta(\cos\alpha-\cos\beta)\\ $$  I think its getting complicated to solve now. What is the simplest way to solve this kind of problems?

Question: If $\alpha$ and $\beta$ are the solutions of $a\cos \theta + b\sin \theta = c$, then show that: $$\cos (\alpha + \beta) = \frac{a^2 - b^2}{a^2 + b^2}$$  No idea how to even approach the problem. I tried taking two equations, by substituting $\alpha$ and $\beta$ in place of $\theta$ in the equation and manipulating them, but that didn't get me anywhere. Please help!


I have noticed that when I post a new question, it has a 1 view straight away.  It has this even if I post and then close the tab within 0.05 seconds. Is this long enough for the page to count a view?

Are the questions submitted on SO and other SE sites initialized with 1 view, or does the first view belong to the user who posted it?  Why is a question given a free first view? It just appears, as soon as the question is published.


I am writing this program using the javax.swing library. The "purpose" of the program is that when you push button one the text of the label says button1 if you push button 2 the text of the label says button 2  right.addActionListener(new ActionListener(){         public void actionPerformed(ActionEvent ae){             label.setText("right")          }     });   for some reason this creates a null pointer exception. I really don't get this. Can you guys help me?  Kind regards

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?


Last night I successfully installed Ubuntu 12.04 64-bit, and then I tried to install Mac OSX Theme following .  But after I installed the last thing, GNOME Tweak Tool, I ran compiz and my Ubuntu bar disappeared, then the system froze, so I restarted, and now all I see is wallpaper; no icons, no bar.   Now I'm using Ubuntu 12.04 Live CD. It's all I can use, live CD.  And one other thing, I have Windows 7 64-bit, and it's full of spyware and trojans. Can I clean it from my Ubuntu?

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


So I was playing around with, $$\sum_{n=0}^\infty 2^n= 1+2+4+8+16+... $$ Let $S$ be the sum $$S= 1+2+4+8+16+...$$ Dividing both sides by $2$ $$\frac{S}{2}=\frac{1+2+4+8+16+...}{2}$$ Which means $$\frac{S}{2}=\frac{1}{2}+1+2+4+8+...$$ Or $$\frac{S}{2}=\frac{1}{2} + S$$ Therefore after solving for $S$ we get, $$S=-1$$ I believe I'm doing something terribly wrong here but I am convinced that the math checks out. Please help. I am in $10$-th so please bear with me if this is a stupid idea and tell me why it's wrong, cause I know it's wrong.

Probably everyone has once come across the following "theorem" with corresponding "proof": $$\sum_{n=0}^\infty 2^n = -1$$ Proof: $\sum_{n=0}^\infty q^n = 1/(1-q)$. Insert $q=2$ to get the result.  Of course the "proof" neglects the condition on $q$ for this formula, and the sum really diverges. However I now noticed an interesting fact:  If you use two's complement to represent negative numbers on computers, $-1$ is represented by all bits set. Also, sign extending to a larger number of bits (that is, getting the same number in two's complement representation on more bits) works by copying the left-most bit (also known as sign bit) into the additional bits on the left.  Now imagine that formally you sign-extend the number $-1$ to infinitely many bits. What you get is an infinite-to-the-left string of $1$s. Which, using the normal base-2 formula $n = \sum_k b_k 2^k$ (where $b_k$ is the bit k positions from the right, i.e. $b_0$ is the rightmost bit), that infinite string of $1$s translates into exactly the sum above! So in some sense we have an independent re-derivation of that equation.  Now my question is: Is there something deeper behind this? Somehow I cannot imagine it is just coincidential.


Let $p:\overline{X}\rightarrow X$ is a continuous mapping. A continuous map $s:X\rightarrow \overline{X}$ such that $p\circ s =Id_X$ is called a section of $p$.  Suppose $\overline{X}$ is connected also. Suppose that $p$ is a covering projection. Show that any section of $p$ is a homeomorphism onto $\overline{X}$.  As $p\circ s=Id$ we see that $s$ is injective. Suppose we can prove that $s$ is surjective.    Then we have a bijective continuous function $s$ such that $s^{-1}=p$ which means that $s$ is homeomorphism. $$p\circ s =Id\Rightarrow p\circ s\circ s^{-1}=s^{-1}\Rightarrow p=s^{-1}.$$  So, enough to prove $s$ is surjective i.e., $s(X)=\overline{X}$.  As $\overline{X}$ is connected, showing $s$ is surjective is equivalent to prove $s(X)$ is both open and closed in $\overline{X}$.   Let $\bar{x}=s(x)\in \overline{X}$ for some $x\in X$.  As $(p\circ s )(x)=x$ we have $p(\bar{x})=x$.   For this $x\in X$ there exists an open set $U$ in $\overline{X}$ containing $\bar{x}$ such that $U\rightarrow p(U)$ is a homeomorphism.  As $U$ is open in $\overline{X}$ containing $\bar{x}$ and $s$ is continuous we have open set $V$ in $X$ with $x\in V$ and $s(V)\subset U$.  We have $$(p\circ s)(V)=V\Rightarrow (p^{-1}\circ p\circ s)(V)=p^{-1}(V)\Rightarrow (p^{-1}\circ p)(s(V))=p^{-1}(V).$$  As $s(V)\subset U$ the function $p^{-1}\circ p$ is identity on $s(V)$ so we have $s(V)=p^{-1}(V)$ So, $s(V)$ is an open set. we have $\bar{x}=s(x)\in s(V)\subset s(X)$. Thus $s(X)$ is open in $\overline{X}$.  I am not able to see why $s(X)$ is closed in $\overline{X}$.  This also says $p$ is also a homeomorphism.

If $q: E\rightarrow X$ is a covering map that has a section (i.e. $f: X\rightarrow E, q\circ  f=Id_X$) does that imply that $E$ is a $1$-fold cover?


It is really self-explanatory. Just see my last question that was downvoted as a reference  see  question: Can I ask other stack overflow members to consider remving their downvote after a post has been deleted?

I could have modifications ready for a specific question that was downvoted. I felt like the best thing to do was to delete the post first.  Is it possible to flag for moderator attention after you deleted the post ?


I often come into situations where I would need more geometry when modeling using subdivision surface. Maya has a tool for that. It works by adding edges by subdividing but still maintaining the form of the mesh. Here is a link showing how it works:    Here is a picture hopefully clearing my question:

I need to create many pairs of edge loops on different objects. The way I do this is shown in the animation below.   There is a further step I often do which is moving the edge loop using its transform value in the properties panel, to ensure they are always same distance apart.  Is there an easier way to add the same number of edge loops again to the side of the original 3 loops?


I did like this        Let $a=dx;b=dy;c=dz$   Let $\gcd(a,b)=d_1$   Here $d_1 ~ge d$   Then question reduces to prove that $\gcd(d_1,dz)=d$    I know $d$ divides $d_1$ but how can I show it is the greatest integer?

Prove $\gcd(a,b,c)=\gcd(\gcd(a,b),c)$ for $0\ne a,b,c\in \Bbb{Z}$. I tried solving it with sets but I sense there are some details I am missing. I would truly appreciate your reference.


How come some family relationships have individual gender specific terms  and collective terms, while some have only one?  The adults who are responsible for conceiving, birthing, and raising you are collectively called "parents" and individually "mother" and "father".   The people that you conceive, birth and raise are collectively called your "children" or individually "daughter" or "son"  Your parents's parents are collectively called "grandparents" or individually "grandmother" and "grandfather" (amongst other affectionate terms). We also can continue with greats, great-great, etc.  People who have the same parents as you are collectively called "siblings" and individually called "sister" and "brother"  These relationship are directly in your family tree. But other relationships that are "one-offs" lack either the collective or gender-specific term.  Your parents' siblings are individually called your "aunt" and "uncles", but (as far as I know) there is no collective term to refer to your aunts and uncles together.  Your siblings' children are individually called your "niece" and "nephew", but no collective term exists for this grouping.  Your parents' siblings' children are your "cousins" but there is not gender-specific term for your female or male cousins.  This has always interested me, and I have coined my own phases for this missing labels: I have auncles, fecousin, macousins, and niecphews.  Any thoughts?

Brothers and sisters are siblings.  Husbands and wives are spouses.  Mothers and fathers are parents.  Sons and daughters are children.  Grandparents, grandchildren ... but what about uncles and aunts, or nieces and nephews?  In writing this, I scanned the "Similar Questions" sidebar and found that half of my question is already answered; there is no real term for nieces and nephews.  Bummer.  But I'm still wondering about aunts and uncles: does anyone know about that?


One Quarry!!   Suppose if I have site having 10 pages (with 3 different categories) and all pages have one static banner which is running in all pages. Now let say it 3 categories be A, B , C defining 3 services and having few content on the banner representing the service then condition of duplicate content will arise or not??

This is a general, community wiki question regarding duplicate content.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .     What does Google consider to be duplicate content? Will the way I am presenting my content result in a duplicate content penalty? How can I avoid having my site's content treated as duplicate content?


So I'm just getting into topology and I see spaces such as $S^1$ or $S^2$  used a lot. What is the meaning of $S^1$ or $S^2$? Furthermore, what is  meant by the cartesian product $S^1 \times S^1$ or $S^2 \times S^2$? I've looked everywhere and it's a difficult question to Google. All I know is that it has to do with circles. Like a two-dimensional torus is composed of two circles and a three dimensional torus is composed of three circles. I know this website is for higher-order, computational/proof-based questions but I don't know where else to go to find this information

I see this notation a lot, but I can't seem to find an answer in my google searches. In particular I am looking at the question      Let $\alpha:S^n\rightarrow S^n$ be the antipodal map. Prove that $n$ is odd, then $\alpha\simeq \operatorname{id}.$    If it is an arbitrary symmetric group, then I understand, but I have seen $S^1$ be used for the circle.


Let $A\subseteq C$ be an open connected domain and $f$ a holomorphic in $A$. I want to show that: if $f(A)$ is a subset of a line on the complex plane, then $f$ is constant.  I began with expressing every $z_0$ on some line $\gamma (t) =at+b$ on the complex plane as: $z_0=x_0+i[ax_0+b]$  So: $f(z)=x+i[ax+b]$ , but I'm stack (pun intended) with one variable. I doubt that this syllogism is correct. Any help on that one?

I wonder if this is correct: there is a holomorphic function on an open connected subset $G$ of $\mathbb{C}$ which maps $G$ onto a subset of a straight line, and I have to show that the function is constant.   I thought I can suppose that the straight line is the real axis (otherwise I can find a rotation and a traslation that will do so) and so using the Cauchy-Riemann equations I find that the function is constant since its imaginary part is zero. Is that correct? Thank you


I define a number of aliases for my git work flow.  alias gs='git status' alias ga='git add -u' alias gaa='git add -A' alias gc='git commit' alias gr='git checkout --' alias gu='git reset HEAD' alias gch='git checkout' alias gst='git stash save' alias gmm='git fetch && git merge origin/master' alias glf="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" alias gl='glf | head'   The problem with this is that using the aliases disables bash's git tab completion.  For example, with the following:  $ gs On branch master Your branch is up-to-date with 'origin/master'.  Changes not staged for commit:   (use "git add <file>..." to update what will be committed)   (use "git checkout -- <file>..." to discard changes in working directory)      modified:   bar     modified:   foo  no changes added to commit (use "git add" and/or "git commit -a")   If I type git add and then hit tab, it will display only the modified files:  $ git add  bar  foo        If I type b and tab, it will complete bar  However, if I try use my alias, tab completion no longer works.  $ ga  bar  baz  foo  etc..  etc..  etc..   Is it possible to enable git tab completion with my aliases?

I am looking to get tab-completion on my command line aliases, for example, say I defined the following alias :   alias apt-inst='sudo aptitude install'   Is there a way to get the completions provided by aptitude when I hit the tab key? i.e. when I write 'sudo aptitude install gnumer' and hit tab, aptitude completes this to gnumeric, or if there was uncertainty lists all the available packages starting with gnumer. If I do it using my alias, nothing - no completion.


It has long been known that the gamma function is an extension (shift) of the factorial function defined on integers.   There were an infinite numbers of ways to continue the factorial, so what property does the gamma function have that makes/made us use it? (Also, this question is not about history, but the unique features of a gamma function.)

There are lots (an infinitude) of smooth functions that coincide with $f(n)=n!$ on the integers. Is there a simple reason why Euler's Gamma function $\Gamma (z) = \int_0^\infty t^{z-1} e^{-t} dt$ is the "best"?  In particular, I'm looking for reasons that I can explain to first-year calculus students.


I have a function which return type is Object, when function return NULL, I am getting a object reference not set error. If I Use .ToString(). So how do I override the .ToString() to return empty when it returns null??

Here's the scenario...    if (entry.Properties["something"].Value != null)   attribs.something = entry.Properties["something"].Value.ToString();   While effective and working correctly, this looks ugly to me.  If I don't check for a null before performing the ToString() then it throws an exception if the property was null.  Is there a better way to handle this scenario?  Much appreciated!


Prove that $n^2 + (n + 1)^2 = m^3$ does not have solutions in the positive integers.  I guess that the proof is by contradiction, but if I suppose it, I can't find the contradiction.  Thanks for your help.

The problem from Burton: show that the equation $n^2 + (n+1)^2 = m^3$ has no solution in the positive integers.  So far, I can see that gcd($n$,$n+1$)$=1$ and $m \equiv_4 1$ and $m=a^2 + b^2$ for some integers a,b. I'm guessing I need to reach a contradiction.  At this point, I am stuck. Any hints?


I'm a first year undergrad maths student and I've come across this particular sequence, which I can't find a limit for.  $$\underbrace{\sqrt{10\sqrt{10\sqrt{10\sqrt{10\cdots}}}}}_{n \text{ times}}$$  I know this may be embarrassingly easy, but I can't think of a way to start. Can you share any hints?

Today I faced a strange equation and I didn't manage to find a solution to it: $$x\sqrt{x\sqrt{x\sqrt{x\dots}}} = 4$$ Maybe someone will help me to find a way to solve it. By the way, this equation is from high school course.


This is a problem from Isaacs's Algebra. Let $G$ be a finite group and $H, K, L$ be proper subgroups of $G$ such that $G= H \cup K \cup L$. He asks us to show that, in this case, $[G:H] = [G:K] = [G:L] =2$.  It seems simple enough, but I can't get started on it! Any hint would be greatly appreciated.

I'm going through Grove's "Algebra." I'm having trouble with this one:  "If $G$ is the union of three proper subgroups, then there is an epimorphism from $G$ to the Klein 4-group."  I think the subgroups should in some sense correspond to the non-identity elements in the Klein 4-group.


The traditional reference format can be set by the following command  \documentclass[12pt,openright]{book} \usepackage[backend = bibtex8, defernumbers = true,  sorting=none, style = numeric]{biblatex} \usepackage{filecontents} \begin{filecontents}{bib1.bib} @ARTICLE{dunbar2006distributed, author = {Dunbar, William B and Dunbar, William B and Murray, Richard M}, title = {Distributed receding horizon control for multi-vehicle formation stabilization}, journal = {Automatica},  year = {2006},  volume = {42}, pages = {549--558}, number = {4}, publisher = {Elsevier}, } \end{filecontents}  \addbibresource{bib1.bib} \renewbibmacro*{name:last-first}[4]{% \setcounter{liststop}{10}%                             % 列出所有的作者 \ifuseprefix {\usebibmacro{name:delim}{#3#1}%  \usebibmacro{name:hook}{#3#1}%  \ifblank{#3}{}{%    \ifcapital      {\mkbibnameprefix{\MakeCapital{#3}}\isdot}  {\mkbibnameprefix{#3}\isdot}%    \ifpunctmark{'}{}{\bibnamedelimc}}%  \mkbibnamelast{#1}\isdot  \ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%  \ifblank{#2}{}{\addcomma\bibnamedelimd\mkbibnamefirst{#2}\isdot}} {\usebibmacro{name:delim}{#1}%  \usebibmacro{name:hook}{#1}%  \mkbibnamelast{#1}\isdot  \ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}%  %     \ifblank{#2#3}{}{\addcomma}%  \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{#2}\isdot}%  \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot} }}  \DeclareNameFormat{default}{% \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}% \usebibmacro{name:andothers}% } \renewrobustcmd*{\bibinitperiod}{} \renewrobustcmd*{\bibinithyphendelim}{} \begin{document} some text \cite{dunbar2006distributed}. \printbibliography \end{document}   and the corresponding output shown as:   Here is the desired output:   How can I modify the command to change the '.,' into ',' between authors and eliminate the '.' between surname and first name? Thanks!

The terseinits option exists to remove the periods after the authors' initials, but it also squashes two or more initials together. How can I have it so that it will be  Author A B, Buthor B C and Cuthor C D  instead of  Author AB, Buthor BC and Cuthor CD


I posted a  in chat, and the image picked was seemingly a random image from the article.  It wasn't the first image in source HTML it wasn't the first image in rendered HTML it wasn't the first image alphabetically.  The link was to main article, NOT to an anchor tag inside. So, what is the algorithm for picking the image to use in Wikipedia's onebox?

Starting , we kind of wondered how the chat selects the preview picture. But with , we changed our direction: where does the chat get these pictures from? The displayed pyramids picture is nowhere to be seen on the page itself (unless I overlooked something)!


Please please someone help me , Whenever I try to connect to a multiplayer server on minecraft it says : Failed to login : The authentication are currently down for maintenance PLEASE HELP!!! I NEED TO PLAY

Similar to  on the bugs in Minecraft, I would like a complete list of what error codes exist in Minecraft and how they occur, as well as how they can be resolved.


How to reproduce this symbol, using Latex, that consists of a long vertical bar, on the right hand side of an expression, and some small text at the bottom, that defines some condition?    How to reproduce this symbol using latex?

I'm trying to determine if there is a best practice for typesetting the "evaluated at" bar for derivatives. The three possibilities I'm thinking of are shown in the code excerpt below:  \begin{gather*} 5 + \frac{df}{dt} \Bigr\rvert_{t = 0} \\ 5 + \frac{df}{dt} \biggr\rvert_{t = 0} \\ 5 + \left. \frac{df}{dt} \right\rvert_{t = 0} \\ \end{gather*}     The \Bigr option doesn't quite reach the top and bottom of the fraction. The \biggr option overshoots the top and bottom of the fraction by a little bit. And the \left...\right option has the same height as the \biggr option, but it introduces a little extra space between the + and the fraction. I'm having trouble deciding between these options. Is there a best practice for typesetting this?


Is there an abelian group $R$ with multiplication operator with this properties ?    (i) $a(bc)=(ab)c$ (ii) $a(b+c)=ab+ac$  , $(b+c)a=ba+ca$        And a unique element $e$ s.t   (iii) $ea=a\quad \forall a\in R $     But there exists $x\in R$ s.t $xe\neq x$ .

Let $(R,+,\cdot)$ be a ring, and $e \in R$ be an element such that $ea=a$ for all $a\in R$. I'm trying to prove that if $e$ is unique with this property, then $ae=a$ for all $a\in R $.  So far I have $e^2 = e$ (using uniqueness), but I am stuck. I saw a proof of this fact for groups which used the existence of inverses, which we don't have here. I wonder if the result is really true here. Can someone help? Thanks.


Is there a way to see the previous query entered in a MySQL server through PHP? I do not want the results of the query, I want the actual plaintext query entered.

Is there any query/way to show the last queries executed on ALL servers?


I'm trying to detect the internet connection status with this piece of code    console.log('here');   window.addEventListener('offline', function (event) {     console.log('You lost connection.');   });   window.addEventListener('online', function (event) {     console.log('You are back online.');   });   I cut off the internet and nothing happens. No log in the console, only the initial here I'm adding this in a basic  block in a blank html page, nothing fancy. It seems the events online and offline do not exist on the window object.   UPDATE: this is very weird because I developed this feature on exactly the same environment: the same laptop, OS: windows, browsers chrome and firefox and it was working. Now it does not work. Also I tested using another pc and it works.

How to detect the Internet connection is offline in JavaScript?


With this code I'm able to process any file, except for those that contain "special" characters such as accented letters (à, è, ì, ò, ù ...) and the letters of oriental alphabets  setlocale(LC_ALL, ".65001"); FILE* F=fopen("Example.ogg", "rb");   As I wrote above, the problem occurs when instead of "Example.ogg" I insert a file, for example, called "Exàmple.ogg" or "究 極 の 聖 戦 バ ト .ogg". With such examples, it is as if he cannot open the file. I searched the web for a long time for a solution, but found nothing.  Can you help me?  Thanks in advance

Is there a standard way to do an fopen with a unicode string file path?


I have a RecyclerView that gets data from a Firebase database.  When the RecyclerView reaches the end of the data feed the app crashes with following:  Logcat file:   09-27 15:30:12.826 30184-30184/com.pctoolmanconsulting.trackmyweight E/AndroidRuntime: FATAL EXCEPTION: main                                                                                Process: com.pctoolmanconsulting.trackmyweight, PID: 30184                                                                                java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference                                                                                at com.pctoolmanconsulting.trackmyweight.ProgressViewHolder.bind(ProgressViewHolder.java:40)                                                                                at com.pctoolmanconsulting.trackmyweight.ProgressAdapter.onBindViewHolder(ProgressAdapter.java:41)                                                                                at com.pctoolmanconsulting.trackmyweight.ProgressAdapter.onBindViewHolder(ProgressAdapter.java:15)   I can not figure out where I am supposed to check for the null value.  In the bind method of my ViewHolder class or in the adapter class.   Can someone help point me in the right direction? Thanks.  My ViewHolder bind method:  public void bind (ImageProgress progress){   name.setText(progress.name);    if(progress.progressDetail.startsWith("https://firebasestorage.googleapis.com/") || progress.progressDetail.startsWith("content://")){     progressDetailMessage.setVisibility(View.INVISIBLE);     image.setVisibility(View.VISIBLE);     Glide.with(activity).load(progress.progressDetail).fitCenter().into(image);    } else {      progressDetailMessage.setVisibility(View.VISIBLE);      image.setVisibility(View.GONE);      progressDetailMessage.setText(progress.progressDetail);   } }   adapter class:  public class ProgressAdapter extends RecyclerView.Adapter<ProgressViewHolder> {    private static final String TAG ="ProgressAdapter";   private final Activity activity;   List<ImageProgress> progressDetails = new ArrayList<>();    public ProgressAdapter(Activity activity){     this.activity = activity;   }    public void addProgress(ImageProgress progress){     progressDetails.add(progress);     notifyItemInserted(progressDetails.size());   }    @Override   public ProgressViewHolder onCreateViewHolder(ViewGroup parent, int viewType){     return new ProgressViewHolder(activity, activity.getLayoutInflater().inflate(android.R.layout.two_line_list_item,             parent, false));   }    @Override   public void onBindViewHolder(ProgressViewHolder holder, int position){     holder.bind(progressDetails.get(position));   }    @Override   public int getItemCount() {     return progressDetails.size();   } }

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?


Property of GCD     For any $m > 0$ , $\gcd(mb,mc) = m\gcd(b,c)$.   Please prove this. I am learning the Theory Of Numbers in Detail but I am not able to find the proof for this. It is not available in the internet also. So please help me with this problem. Please prove this without using the Euclidean Algorithm as it is deriver from this.

I need to prove that $z\gcd(a,b)=\gcd(za,zb)$.    I tried a lot, for example, looking at set of common divisors of the two sides, but I can't conclude anything from that. Can you please give me some advice how I can handle this problem? And $a,b,z \in \mathbb{Z}$.


I am using WMS and WFS services on GeoServer. My WMS query returns the image result for features:    But I am using same BBOX and SRS values for WFS service but does not return any value.

WMS and WFS queries needs SRS and BBOX parameters.  http://example.com/geoserver/wfs?   service=WFS&   version=2.0.0&   request=GetFeature&   typeNames=namespace:featuretype&   srsName=CRS&   bbox=a1,b1,a2,b2&   For example I have GeoServer to publish WFS. My data SRS is EPSG:4326 and my map SRS is EPSG:3857. So I send a WFS query.  http://example.com/geoserver/wfs?   service=WFS&   version=2.0.0&   request=GetFeature&   typeNames=namespace:featuretype&   srsName=EPSG:3857&   bbox=978393.9621,2680799.4560,-430493.3433,3326539.4710&   Does GeoServer or ArcGIS server give an error? Because my data has EPSG:4326 . Or does GeoServer convert these coordinates internally and find data and send me as EPSG:3857


I have one HP server Proliant ML 350 G5 with raid controller E200i. Diagnostic system shows the message (after system crash and reboot):  Malformed NVRAM detected. Device: HP Smart Array Controller, Slot 0 Property name: World Wide ID  I am confused about NVRAM: is it relate at memory RAM for BBWC, added as optional for better performance, or it is a memory internal controller RAID?  thank you,  Max

As above, what is the reason for needing a memory module on a RAID card?  The card I am looking at (HP P410) comes with either 256MB or 512MB but unsure which to get and why.


how i evaluate this integral with integration by substitution $x=\frac{\pi}{2}-t$  $$\int _0^{\frac{\pi }{2}}\:\frac{\sqrt[3]{\sin^2\left(x\right)}}{\sqrt[3]{\sin^2\left(x\right)}+\sqrt[3]{\cos^2\left(x\right)}}dx$$

Evaluate the integral $$\int^{\frac{\pi}{2}}_0 \frac{\sin^3x}{\sin^3x+\cos^3x}\, \mathrm dx.$$  How can i evaluate this one? Didn't find any clever substitute and integration by parts doesn't lead anywhere (I think).  Any guidelines please?


I asked , it was closed as duplicate of other question by a moderator, but I wasn't informed about it. This is likely related  in which case I didn't get notified about the canned comment, just that in this case there isn't any comment since moderator vote is binding.  Going by Shog's comment in my other bug:     This is absolutely a bug; I can't think of any good reason to "silently" post comments like this when the whole point is to provide additional information to the author   If I do not get notified about my question being a duplicate how will I check for answers to that question?

I think it would really help if you get notified that a question of yours was closed.  Especially for the multi-site power user, usually (at least for me) a question is asked and then left alone for while. I rely on the network-wide inbox to tell me when someone has commented or answered, but if I don't receive any messages then I tend to assume that the question wasn't answered or even noticed. It's only when I check the question a day or two later to see what I can add do I find out it was closed.  This would be especially helpful for duplicates, where the answers you need are already there. A message to the effect of, "Closed as duplicate of question" is just like notifying me that a new answer has been added!  Unfortunately, question closures can remain unnoticed by their askers until months have passed. By then, the questions may either be too old to migrate to the correct site, or may , depending on the specific closing reason. We should notify users of these question closures so that they can improve them and learn from their mistakes.  Could closed questions get added to the inbox?


I have Ubuntu and Windows 10 installed on two seperate hard drives. The ubuntu drive was originally extra space for Windows. I had some large games installed on it and I backed them up before wiping it. I would like to put them back but I cant resize the partition to create another. In Ubuntu I cant repartition because I cant unmount the drive. In Windows it doesnt show any partition options in any software I've tried.  The Ubuntu drive is GPT 1Tb.  Windows drive is MBR 500Mb. Maybe that's the problem. If so, what's steps should I take to ultimately end up with a usable partition for windows?

I have a dual boot setup with Ubuntu and Windows 7. I need to shrink my root Ubuntu volume in order to get some free space to create a new partition. Are there any Windows based tools that will do this for me? I tried booting up in gparted to do this but I cannot tell which partition is which since I cannot find the size (it displays everything in blocks).


I am about to take a course in undergraduate Algebra which is using Artin's Algebra.  I have been studying from it and haven't really appreciated the combination of text and problems (granted, I haven't gone too deep into the text).    Now, this is the text for the class, so I would expect a nice compliment from the lecture to go along with Artin.  I was thinking about getting Dummit and Foote, which seems to have high praise across the board.  What are the strengths and weaknesses of Dummit and Foote, compared to Artin?  Is there a better text for a class at this level?  EDIT: I really don't want a recommendation for another text, but how does Artin compare to other texts.

I've taken up self-study of math. (How smart can that be?) I've just about finished a course in real analysis which spent a lot of time on metric spaces and some time revisiting calculus.  I was thinking of trying abstract algebra. I would appreciate any book recommendations.  Thanks in advance.  Andrew


Sometimes its works and sometimes doesnt works. I have no idea why. I did same. In left pick is all right. The value changes during the animation. But in right pick is not okay! It just keeps the same value and I don't understand why. I tried several times to press "i" entered different values. Does not work!!!  This is some kind of nonsense.    upd:  Sorry guys. I have never been so butthurt about the blender. It was fixed by itself !!!! I tried closing and opening the blender, creating new files and doing the same node setups. And it did not work! And now I started shooting a video with a demonstration of this bug and it was fixed by itself. I don't understand how to study Animation Nodes if they work on their own. The whole evening I was dealing with this and it didn’t work, and now it’s fixed by itself. I don't understand >_<

is there a way to create keyframes for Animation Nodes parameters, which are shown in Dope Sheet ?


I have run a ITS analysis on my dataset but I am unable to know which ARMA process to use. Please help understand how to select the ARMA process. I'm stuck.

How do you estimate the appropriate forecast model for a time series by visual inspection of the ACF and PACF plots? Which one (i.e., ACF or PACF) tells the AR or the MA (or do they both)? Which part of the graphs tell you the seasonal and non-seasonal part for a seasonal ARIMA?  Consider the ACF and PCF functions displayed below.  They are from a log transformed series that's been differenced twice, one simple difference and one seasonal (, ).  How would you characterize the series? What model best fits it?


I have a laptop with preinstalled Ubuntu. But I want to remove the Ubuntu and install a server in my laptop. Someone says the steps to format and install the windows server or XP.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


My code is reading through a txt file and then sorting it according to a field specified by the user and then outputting it on a table. Here's the code:  public static void sortByAtomicNumber() throws IOException {     File file = new File("Elements.txt");     FileReader reader = new FileReader(file);     BufferedReader i = new BufferedReader(reader);      int lines = 0;     while (i.readLine() != null) {         lines++;     }      String[][] s = new String[lines][];     String line;     int index = 0;      DefaultTableModel model = new DefaultTableModel(                                                                                //Builds the table model             new Object[]{"Name","Symbol","Atomic Number","Atomic Mass", "# of Valence Electrons"},             0);      while ((line = i.readLine()) != null && index < 10)         s[index++] = line.split(",");      for (int x = 0; x < s.length; x++)     {         for (int j = x + 1; j < s.length; ++j)         {             if (Integer.parseInt(s[x][2])>(Integer.parseInt(s[j][2])))             {                  String[] temp = s[x];                 s[x] = s[j];                 s[j] = temp;             }         }     }      for(int x=0;x<s.length;++x){         Object[]rows = {s[x][0], s[x][1], s[x][2], s[x][3], s[x][4]};                  //Puts information about the sorted elements into rows                                           model.addRow(rows);      }     JTable table = new JTable(model);                                                             JOptionPane.showMessageDialog(null, new JScrollPane(table));                           //Displays the table  }   Getting a java.lang.NullPointerException on this line when I run the program:  if (Integer.parseInt(s[x][2])>(Integer.parseInt(s[j][2])))   This is the data that is it searching through:    Not sure why this is happening, can anybody help me out?

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 solving a question which asks to convert 12-hour time format to 24-hour format. I am using C language to implement the program.   I don't know why, but the output of my program for any input in PM is something starting from 10. For example, for input 07:03:23PM the output should be 19:03:23, but my output comes out to be 10:03:23. For input 03:03:23PM, the output should be 15:03:23, but again my output comes to be 10:03:23.  #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <limits.h> #include <stdbool.h>  char* timeConversion(char* s) {     int t,k,i=1,l;     char* r = malloc(50 * sizeof(char));     if(s[8]=='P')     {         if(s[0]!='1'&&s[1]!='2')         {          t = ((s[1]-'0')*1+(s[0]-'0')*10) + 12;          sprintf(r,"%d",t);         }         else             r[0]='0';r[1]='0';         for(i=2;i<8;i++)         {             r[i]=s[i];         }      }     else         for(i=0;i<8;i++)             r[i]=s[i];     r[i]='\0';     return r; }  int main() {     char* s = (char *)malloc(512000 * sizeof(char));     scanf("%s", s);     int result_size;     char* result = timeConversion(s);     printf("%s\n", result);     return 0; }   In timeConversion function I have allocated a memory whose base address is pointed by char pointer r. In r I store the result after the conversion. I have used sprintf() to store the value of "integer" t (which contains the value of first two digits of time after conversion to 24-hour format) into "string" r.  I have checked the program using a debugger, and after the execution of sprintf() statement, r contains value 10 even though value stored in t is 19 for the first input case.  I don't know what is causing this problem.

Why does everyone tell me writing code like this is a bad practice?  if (foo)     Bar();  //or  for(int i = 0 i < count; i++)     Bar(i);   My biggest argument for omitting the curly braces is that it can sometimes be twice as many lines with them. For example, here is some code to paint a glow effect for a label in C#.  using (Brush br = new SolidBrush(Color.FromArgb(15, GlowColor))) {     for (int x = 0; x <= GlowAmount; x++)     {         for (int y = 0; y <= GlowAmount; y++)         {             g.DrawString(Text, this.Font, br, new Point(IconOffset + x, y));         }      }  }  //versus using (Brush br = new SolidBrush(Color.FromArgb(15, GlowColor)))     for (int x = 0; x <= GlowAmount; x++)         for (int y = 0; y <= GlowAmount; y++)             g.DrawString(Text, this.Font, br, new Point(IconOffset + x, y));   You can also get the added benefit of chaining usings together without having to indent a million times.  using (Graphics g = Graphics.FromImage(bmp)) {     using (Brush brush = new SolidBrush(backgroundColor))     {         using (Pen pen = new Pen(Color.FromArgb(penColor)))         {             //do lots of work         }     }  } //versus using (Graphics g = Graphics.FromImage(bmp)) using (Brush brush = new SolidBrush(backgroundColor)) using (Pen pen = new Pen(Color.FromArgb(penColor))) {     //do lots of work }     The most common argument for curly braces revolves around maintance programming, and the problems that would ensue by inserting code between the original if statement and its intended result:  if (foo)     Bar();     Biz();     Questions:   Is it wrong to want to use the more compact syntax which the language offers? The people that design these languages are smart, I can't imagine they would put a feature which is always bad to use. Should we or Shouldn't we write code so the lowest common denominator can understand and have no problems working with it?  Is there another argument that I'm missing?


I am quite new with Ubuntu and I am not that good with computers at all. I had Windows 7, however due to some problems I didn't like that operational system because of that I decided to install Ubuntu.  My problem is: before installing Ubuntu via USB drive, it gives a chance to the program to be tested through it. However, by mistake, I started the installation of the operational system without giving any directory. As you all know Windows has two partitions "C" - where the system is written and "D" - the hard driver. By begging the installation my entire information and the drivers "C" and "D" were deleted. Furthermore  at the moment instead of showing "C" and "D" it shows up one partition with the entire memory of the computer.  At that point by stopping the installation of Ubuntu, the computer does not have any operational system only the BIOS (which i am not quite sure what it is). Furthermore the computer is running at the moment by using the Ubuntu operational system installed on the USB. Since it happen me that accident there was nothing over-saved on the computer.   My question is: Could it be restored the partition "D" (as a partition) or at least the data within that partition?  If you are going to ask me did I made a backup on some external hard, the answer is "no". Because of that please if some one knows how to restore the lost data to help me. I do believe is still possible to be saved. If you have any further questions please do not hesitate to ask.

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


The C standard say:     The function called at program startup   is named main. The implementation   declares no prototype for this   function. It shall be defined with a   return type of int and with no   parameters:  int main(void) { /* ... */ }       or with two parameters (referred to   here as argc and argv, though any   names may be used, as they are local   to the function in which they are   declared):  int main(int argc, char *argv[]) { /* ... */ }       or equivalent or in some other   implementation-defined manner.   However, Kernighan & Ritchie in their second edition (the canonical ANSI C) bible just use:  main() {   /* taram pampam ... */    return 0; }   Who is right? Does it have to do with function without return value automatic assume to be returning int in C?

What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0?  There are numerous duplicates of this question, including:       — For C++, with a very good answer indeed.     Related:


We have a two site AlwaysOn Cluster and looking to do a High Available multi-site write solution. We have looked at Replication, Sharding, and SQL Elastic options for having multi-site write for a single application. End goal is to have N number of sites that can host the application closest to the user requesting the service, with high availability. We have scaled up, now we want to scale out. It looks like sharding might be the best option. Does anyone have solid experience with implementing a solution like this in MS SQL?

Is it possible to scale-out a SQL Server database?  There are some solutions for , but is there a solution for load balancing and horizontal partitioning on SQL Server?  There are some in , but not in a standalone SQL Server instance...


I essentially want the first block to take up whatever height it will naturally. Then I want the second block fill out the rest of the page with its natural height, without letting it create a vertical scrollbar.   I'm basically hard-coding the 100px via the template row. How can I make things more flexible? I've tried various values like 100% instead of 100px in the rows, as well as auto.    .container {   display: grid;   grid-template-rows: 100px 1fr; }  .rest {   max-height: calc(100vh - 100px); }

Welcome

Some text that can change length/height

I want this block to be the remaining 100% height

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


How do I get rid of that nasty black thing at the bottom of the glass?  Shouldn't it be lighter than that? It disappears when I move the plane further down, but I need it close to the glass.  Any ideas?   -- far away plane.    -- close plane.

My model has a clear plastic (or glass) dome with objects inside.  The objects appear dark.  I've tried the glass shader with color 100% RGB, with very small IOR, and using just a refraction shader.    I know Cycles has problems with caustics, but I just want broad illumination to fall clean through the glass.  The light-to-column path can ignore refraction, but is blocked or tremendously attenuated. The camera-column path needs refraction, and seems to work fine anyway.  This demo image offers all optical paths of interest:   light upon object, seen directly light upon object, seen through glass (looks okay) light through glass onto object, seen directly. This is the shadow on the lit side of the column just below the glass tubing.  I expect full illumination, but there is shadow.  There is some light, but it's diffuse light from the floor. light through glass onto object, seen through glass. This     I did at one point try non-progressive rendering, and find extremely coarse light where there shouldn't be shadow, but this is not a practical way to make nice images. I've even tried cranking up certain sampling settings to many thousands, but still get bad noise though less, at the cost of long render times. I  would like to finish my creations sometime before "Star Trek, the Generation After the Next" becomes real life, if you know what I mean.  The next image is an example. I think Transmission in Sampling was 5000, but not sure.    I'm using Cycles in Blender 2.67 on a quad core Linux machine, 16GB RAM. Machine limits have never been a problem for 3D rendering.  Possibly, I screwed up some setting when I made my startup file, and just need to fix it. OTOH maybe this is just a limitation of path tracing, or of the way Cycles does it. If that's the case, what to real-world Blender artists do when they need to produce images on a budget and schedule?  What is the practical real-world fix?


Are the meanings of these two phrases the same? If not, what is the difference?     Car's broken door   vs     Broken door of car

I got this quiz:     The carpenter repaired __ .      (A) the table's legs      (B) table's legs      (C) legs of the table      (D) the legs of the table   ...which says the right answer is D. But I think A is also acceptable.  What do you think? Thanks.  Related but not a duplicate:   If I add an option E: the table legs, is E also acceptable?


Yesterday, I installed Ubuntu 16.04 onto an LG laptop. Everything is working fine except the wireless connection. When I'm closer to the router, the connection is fast, but in my room the wireless is very slowly.  In Windows, I don't have this problem, but I don't want to use that system anymore.  Here is some output of lspci  00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04) 01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723AE PCIe Wireless Network Adapter 06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)`   I tried the driver suggested on , but unfortunately there was no improvement with that driver, the pages are slow to load, and the download rate is 200 – 300kbps (in Windows it was 1.0 – 1.1Mbps).  Is there any other alternative for this wireless      01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723AE PCIe Wireless Network Adapter 06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)

I have searched through the internet and in AskUbuntu, but I could not find a working solution for my little problem.  The RTL8723ae WLAN is behaving strangely on Ubuntu 14.04 and drops the WLAN connection constantly. I am using the notebook MSI GE40 and have already seen on the web that there are other people having the same problem but there was no permanent solution. The problem did not exists on the original Windows 8 on the device and the router is a TP-Link, which I can control (channel change and so on, I use WPA2-PSK WLAN security).


I want to get today date from jquery datepicker and insert it to text field when page is loaded. How should I do it?

I have a very simple jQuery Datepicker calendar:  $(document).ready(function(){     $("#date_pretty").datepicker({      }); });   and of course in the HTML...  <input type="text" size="10" value="" id="date_pretty"/>   Today's date is nicely highlighted for the user when they bring up the calendar, but how do I get jQuery to pre-populate the textbox itself with today's date on page load, without the user doing anything?  99% of the time, the today's date default will be what they want.


Following the question  for Drupal 7 I tried to implement the same thing in Drupal 8.  I need the following output:   <button type="submit" class="clearfix">Login</button>   So I tried to use this code:  $form['submit'] = array(   '#prefix' => "<button type ='submit'>",   '#suffix' => "</button>",   '#type' => 'markup',   '#markup' => "" . t('Login') . "", );   But I obtain this:  Login   But if I use this code:  $form['submit'] = array(   '#prefix' => "",   '#suffix' => "",   '#type' => 'markup',   '#markup' => "" . t('Login') . "", );   I obtain this:  Login   So the <button> tag is eliminated but the  tag not. Very strange for me, the Button is not rendered.  Thanks to @Kevin I used the  an with this code I solve the problem:  $form['submit'] = [   '#type' => 'inline_template',   '#template' => '<button type="submit" class="glyphicon glyphicon-search"></button>', ];   But, why I can't use the same code in Drupal 7 and Drupal 8 to generate a button with FAPI?

Is it possible in Drupal 8 to change a regular form submit button from Drupal into a button tag?  This is the output I need to achieve:  <button type="button" class="search-box__button">   <svg class="icon search-box__open">     <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/build/img/svg-sprite.svg#icon-search"></use>   </svg> </button>


I need to count all orders that have a datediff  <= 1. I use the COALESCE function, because sometimes the Date1 can be null.   SELECT COUNT(*) FROM Orders WHERE DATEDIFF(dd,COALESCE(Date1, Date2),Date0) <= 1   Is there a way I can count only the business days (Mon-Fri)?  Thanks.

How can I calculate the number of work days between two dates in SQL Server?   Monday to Friday and it must be T-SQL.


I have a naive question about blackhole. If I accelerate a massive particle very close to the speed of light, the particle will have large energy-momentum tensor. Will it become a blackhole?

At a very basic level I know that gravity isn't generated by mass but rather the  and when I wave my hands a lot it seems like that implies that energy in $E^2 = (pc)^2 + (mc^2)^2$ is the source of gravity.  If the total energy of a particle contributes to the generation of a gravitational field, that seems to imply some strange things.  For example, you could accelerate a particle like an electron to such a high velocity that it has enough momentum / kinetic energy to collapse into a black hole.  An observer traveling with the electron would see an electron and stationary observers would see an arbitrarily massive black hole flying by.  These observations seem to be contradictory.  The same would be true of an extremely high energy photon.  Another consequence is that a stationary particle could appear to have so much mass that it could attract / deflect the trajectory of a rapidly moving observer.  It seems odd that at low velocities you wouldn't even notice a stationary electron as you pass it by but at high velocities the gravitational field you observe could be significant enough to alter your path.  Am I correct that non-mass-energy generates a gravitational field?  If it does, how are these strange observations like a particle looking like a black hole in one reference frame but not another reconciled?


My enlarged mutant orc barbarian in rage has strength 34.  How to calculate strength modifier over 30?  Hmm.

Is there an equation to determine the Ability Modifier?  I'm not talking about the chart that lists   1 = −5 2-3 = −4 4-5 = −3 6-7 = −2 etc.   I mean a legit equation that, if I somehow misplaced this information, I could determine what the modifier is based on the score?


So I connected my controller to my pc a few days ago and I went to go and connect it back to my PlayStation. I disconnected the controller from my pc, when I tried plugging it into my PS the light just flashes orange like once every minute. I have tried pressing the reset button many times and I've unplugged and plugged my ps back in but still nothing. When I hold down the ps button and the share button it flashes but then it appears on my pc saying 'wireless controller' wants to pair and there's no where I can forget the device so I'm not sure what to do, I've tried different cables but still nothing if anyone could help it would be much appreciated.

I was playing my PS4 two days ago and then packed it up with two controllers that were both connected to this PS4.   I got to where I was going, set everything up and now the controllers won't connect. They show pulsing orange when they plug in, but when I hit the PS Button to connect, it blinks white 1-2 times and goes back to orange.   I have tried resetting them both.  Can anyone help?


Its been some time since I've turned on my Dell XG-600 lap-top. When I finally turned it on, I discovered that for the life of me I cannot remember the password, let alone the pass phrase, which is a mystery to me.Can anybody be of assistance in helping me resolve this small, but annoying problem?

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


Let V= { (1),(12)(34) ,(13)(24),(14)(23) } subgroup . if H is subgroup such that |H|=6 , HV < A4 is absurde. Note that V is normal at A4. Calculating the HV norm, we arrive that is 12, which would imply that HV = A4, I need to find somebody of A4 that is not in HV, but I do not know much about arbitrary order H.

Can a kind algebraist offer an improvement to this sketch of a proof?     Show that $A_4$ has no subgroup of order 6.     Note, $|A_4|= 4!/2 =12$. Suppose $A_4>H, |H|=6$. Then $|A_4/H| = [A_4:H]=2$. So $H \vartriangleleft A_4$ so consider the homomorphism $\pi : A_4 \rightarrow A_4/H$ let $x \in A_4$ with $|x|=3$ (i.e. in a 3-cycle) then 3 divides $|\pi(x)|$ so as $|A_4/H|=2$  we have $|\pi(x)|$ divides 2 so $\pi(x) = e_H$ so $x \in H$ so $H$ contains all 3-cycles but $A_4$ has $8$ $3$-cycles $8>6$, $A_4$ has no subgroup of order 6.


Let $a,b\in \mathbb{N}$ and $\gcd(a,b) = 1$ Is it correct that $\gcd(a^2,b^2) = 1$ as well? And if so, how do I prove it?

So, if $\gcd(a,b)=1$, then $\gcd(a^2,b^2)=1$ means $1=ax+by$, and want to show $a^2x+b^2y=1$. By squaring $1=ax+by$ both sides, I get, $1=(ax)^2+b(2axby+by^2)$. It doesn't help my proof. Please help me with this proof.


What is a good approach to proving this inequality:  $$\dfrac{4^m}{4\sqrt{m}}\le\binom{2m}{m}$$  using the Chebyshev inequality:   I thought about using a random variable which has a binomial distribution, but im not sure.  Thank you!  EDIT: It is important to solve it only using Chebychev inequality

How to prove that $\quad\displaystyle\frac{4^{n}}{\sqrt{4n}}<\binom{2n}{n}<\frac{4^{n}}{\sqrt{3n+1}}\quad$ for all $n$ > 1 ?     Does anyone know any better elementary estimates?   Attempt.  We have $$\frac1{2^n}\binom{2n}{n}=\prod_{k=0}^{n-1}\frac{2n-k}{2(n-k)}=\prod_{k=0}^{n-1}\left(1+\frac{k}{2(n-k)}\right).$$ Then we have $$\left(1+\frac{k}{2(n-k)}\right)>\sqrt{1+\frac{k}{n-k}}=\frac{\sqrt{n}}{\sqrt{n-k}}.$$ So maybe, for the lower bound, we have $$\frac{n^{\frac{n}{2}}}{\sqrt{n!}}=\prod_{k=0}^{n-1}\frac{\sqrt{n}}{\sqrt{n-k}}>\frac{2^n}{\sqrt{4n}}.$$ By Stirling, $n!\approx \sqrt{2\pi n}\left(\frac{n}{e}\right)^n$, so the lhs becomes $$\frac{e^{\frac{n}{2}}}{(2\pi n)^{\frac14}},$$ but this isn't $>\frac{2^n}{\sqrt{4n}}$.


If all compact subspaces of $X$ are closed in $X$, then is $X$ Hausdorff ? If not then please give counter-example.    We know that converse is true i.e. compact subspace of Hausdorff space is closed.

Is it possible to have a topological space having all compact subsets closed, but the space itselt is not Hausdorff?  I couldn't find any counterexample. I tried $\mathbb R$ with cofinite, point inclusion and point exclusion topologies, but these didn't work.  Any suggestion in this context will be helpful for me.


If $A$ and $B$ are two positive definite matrices such that: $$A \geq B,$$ can I conclude that: $$\mathrm{det}(A) \geq \mathrm{det}(B).$$ (With the notation $A \geq B$, I mean that $A - B \geq 0$, i.e. $A-B$ is positive semi-definite).  Thanks.

Exercise 12 from SEC. 82 of Finite-Dimensional Vector Spaces - 2nd Edition by Paul R. Halmos.  If $A$ and $B$ are linear transformations on a finite-dimensional inner product space, and if $\textbf{0} \le A \leq B$, then $\det A \leq \det B$.  Notation: $0 \le A$ means that $A$ is positive.  If $\det B = 0$, choose $x \in \ker B$, then $0 \le ((B-A)x,x) = (Bx, x) - (Ax, x) = -(Ax, x) \le 0$. Therefore $\ker B \subseteq \ker A$ and $0 = det A \le det B = 0$. How to prove for the case when $B$ is invertible? Intuitively, I feel that since both $A$ and $B$ are positive their proper values are also positive and $B$'s proper values should be greater the $A$'s and same for determinants.


I am using Ubuntu 19.04 right now, and I have a / and /home partition created on my laptop. I didn't set up LVM during installation. Now my / partition is running low on space, and I'd like to transfer some of space from /home to it.   Both have Ext4 format, and / (/dev/nvme0n1p10) is located right before /home(/dev/nvme0n1p11). I have a Windows 10 installed too, /dev/nvme0n1p3 for C and /dev/nvme0n1p4 for D I also have a /boot partition (/dev/nvme0n1p8) and a swap partition (/dev/nvme0n1p9)   So how can I do that? Many thanks.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


It's probably beginner question but I'm going through documentation for longer time already and I can't find any solution. I thought I could use implode for each dimension and then put those strings back together with str_split to make new simple array. However I never know if the join pattern isn't also in values and so after doing str_split my original values could break.  Is there something like combine($array1, $array2) for arrays inside of multi-dimensional array?


Show how you can add /home/<yourusername>/bin to the $PATH variable. Use $HOME (or ~) to represent your home directory.

How do I add a directory to the $PATH in Ubuntu and make the changes permanent?


I am refilling my laser printer Samsung CLP 365. Toner supplier attached some not very impressive instructions paper that looks like just copied off google frankly. (Not in english)  It says toner cartridge should be refilled with a pre-measured amount to only half the cartridge capacity. Is this really necessary? I cannot find any instructions on the internet that also say that. There are many videos on YouTube showing how refilling is done, neither mentions it.  The instructions:

I am refilling a laser printer with cheaper toner bought in a bottle. It was suggested to not overfill. Are there any dangers to overfilling?   Can it damage the carthridge or printer? Produce blackened pages? Increase amount of powder used per page?  I am refilling my laser printer Samsung CLP 365. Toner supplier attached some not very impressive instructions paper that looks like just copied off google frankly. (Not in english)  It says toner cartridge should be refilled with a pre-measured amount to only half the cartridge capacity. Is this really necessary? I cannot find any instructions on the internet that also say that. There are many videos on YouTube showing how refilling is done, neither mentions it.


There are two internet account. One is connected to a pc with ethernet cable. The other one is connected to same pc with wireless.  Is it possible to use them concurrently?  Example:   acc 1 : 8 mbit acc 2 : 16 mbit   acc 1 + acc 2 = 24 mbit.  cable and wireless connected directly to motherboard.  If this is not possible, can I force an application to use wlan ?  OS: Windows 7

I have two internet connection, each with 4mbps bandwidth. I want to join/merge both of them to get 8mbps speed, both routers have WLAN and LAN capability.    How to Double my speed using two routers? Can I bond two connections in Windows and double my internet connection speed? Any download manager that accepts two internet connection to download?


My title is:  <title>School Management Software, College & University Management Software, Cloud ERP Software</title>   However it's showing up like this in Google:   Is there something I'm doing wrong here? Any insight would be really helpful.

Check this:   The title of the first result is "Kansas Gun Laws - Gun Laws By State". Although, on the page google has cached the title is different:  <title>Kansas Gun Laws - Kansas Gun Law - Reciprocity Guide</title>   Google shows the title that has been on the site 2-3 months ago. Google bot has visited the website a lot of times since that, and as you see it even cached it (the latest version is of 15th Sept), however for some reason it doesn't change the title to the new one in the search results.  We use hash-bang URL structure on this website. It completely meets google's requirements for AJAX websites (_escaped_fragment_ stuff). The issue I explained is happening with almost all hash-bang pages that got indexed.  Questions:   Why does it keep old page title in the search results? Can it be connected to the fact that I'm using hash-bang URLs? There are lots of pages on the site that have the same issue, all of them have hash-bang URLs. Another thing I noticed is that Google's "Preview" feature doesn't work for any hash-bang URLs on the site. Did I do anything wrong? It has got cached versions of the pages, why wouldn't it generate a preview?   Thanks.  PS. Here's a weird thing I also noticed: this search query  shows the correct title for the same page as in the example above. Why does google show different titles for the same page when you run different queries?


A couple of days ago I got the error: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY  when rebooting my 20.04 machine. The last thing I did before rebooting was running some game in Steam, the game tried to open a link in a web browser and that failed and I think the game crashed, iirc. After that, Steam just gave me a black screen, so I rebooted and got this error. I am not asking how to reboot successfully, since I fscked manually, but what could be the cause? I am ruling out a hard drive error since the SSD is only a year old and SMART seems to be fine:  (By the way, I am not taking that 99C temp as accurate, it has always said that, must be a bug in reading the temp of the drive). The partition that gave the error was /dev/sdc6, which is /home. What could be the cause of the UNEXPECTED INCONSISTENCY error? I am guessing Steam did something, but is it possible that it would cause such an error?

I dual boot Ubuntu and Windows 7. I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted.  Now when I try to boot into Ubuntu I get this message:  fsck from util-linux 2.26.2 /dev/sda6 contains a file system with errors, check forced. /dev/sda6: Inodes that were part of a corrupted orphan linked list found.  /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.         (i.e., without -a or -p options) fsck exited with status code 4 The root filesystem on /dev/sda6 requires a manual fsck  Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs) _   How can I fix this?


My new UEFI Windows 8 Dell 15R will not boot from a live CD. It spins the optical drive like it's going to boot up, then hangs for a minute and says it can't find any bootable media.  Are there changes I should make in "bios"? UEFI is enabled, secure boot is on.  I do not want a dual boot system. I want WIndows 8 to be gone.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I am stuck with a basic question: I cannot apply colors via animation nodes. I already tried several ways, and checked multiple tutorials but to no avail. How can I get colors from animations? (i.e. make the cube blue in my example)

I have these squares that spin 90 degrees when the falloff passes over them, I want them to change color from blue to magenta at the same time, I've made this array to clone one and got the color to work but it's only effecting the first one since they are all using the same material. How do I do this?  I either want to color the emission node using the falloff  OR Change color along with the 90 degrees of rotation  Rendered in cycles  I would love some help with this! :)


I am an undergraduate math major and I have already had to drop two classes (one due to my mother being sick and other to do with an attendance policy). This semester I'm having trouble with my health and concentrating and debating on dropping two more classes. My GPA is a good 3.9 but if I stay with these classes I am risking a lower GPA (as I am only an upper freshman with 26 credits). I am getting A's in my two other classes. My questions are:  1. How bad are 4 W grades on a transcript when applying for a graduate program in mathematics?  2. Does having documentation saying I dropped due to depression/PTSD help if they can be "attached" to the transcript?  3. If I was able to do well in my GRE would that help soften the blow of a W grade?  Thanks. I appreciate any answers. I have only two days to drop with a letter grade W.  P.S. I am at City University of New York if that makes a difference and plan on going to grad school there too. I realize that my question is similar to  but it does not address GRE scores playing a role and whether documentation helps?

I am a senior who is graduating in December with a Bachelor's Degree in Pure math. I would really love to apply to the PhD program. However, I have been really depressed because even though I have a good GPA (3.85), and I have gotten mostly A's in all of my math classes (I have taken math classes up to Topology, measure theory, and Algebra), I feel like this is not good enough since I have 8 W's [withdrawals--no grade given] on my transcript. The horrible part is that 6 of these W's are on math courses. All those W's occurred during my first year at my university. The second year up to now I haven't gotten any W's.  My question is: How horrible (by the Committee who selects candidates for the program) is a W seen on a transcript? Is there anything I can do about it?  I feel like I have a big hole on my transcript, and it has been chasing me throughout my undergrad years even though I managed to hide myself from this monster and continued to take a lot of math courses, earning A's (and two B's) in all of them.


What is $$\mathbb Q +A=\{q+a : q\in \mathbb Q , a\in A\}$$  where  $A$  is a  subset  of  the interval  $[0,1]$  with  non-empty  interior  $?$  $A.\mathbb Q+A=\mathbb R$  $B.\mathbb Q+A $ can be a proper subset of $\mathbb R.$  $C.\mathbb Q+A$  need not be closed in $\mathbb R.$  $D.\mathbb Q+A$ need  not be open in $\mathbb R.$  This is  what  I  did  :  Since $A$ has non empty interior within $[0,1]$ there  is  some $(c,d)\subset A.$  So, $$(c,d)+\mathbb Q\subset A+\mathbb Q $$   Now,$$\mathbb Q+(c,d)=\cup_{q\in\mathbb Q} \{q+(c,d)\}$$ Since $\mathbb Q$ is dense in $\mathbb R$, we  see  the  above set contains $\mathbb Q^c$  as well.  For if $r\in \mathbb Q^c$ then we can form an interval of length $|d-c|$ that contains $r$ and whose starting point is a rational number say $q_1.$ Then $$r\in q_1+(c,d)$$ . So $$\mathbb Q+(c,d)=\mathbb R$$ hance proved $$\mathbb Q +A =\mathbb R.$$  Are my proof  and  answer  correct $?$  $P.S.:$  I saw this question has been asked before on this site but  $1)$ I did not understand their approach or the answer and   $2)$ I need  to  know  if  my  method  is  correct.  Thank  you  .

Let $A$ be  a subset of $[0,1]$ with non-empty interior ; then is it true that $\mathbb Q+A=\mathbb R$ ?


I have widows 8 (Pre-installed), and I was not a fan. So I thought I would try Ubuntu as many people from what I hear that use it, like it, and hey, free OS. Well before I was able to do all the instalations, I had to goto work, so my girlfriend (whio is not at all tech savy) decided to help. She told me she installed it, (It popped up with a thank you for installing message) She then shut it off. When she turned it on, when I turn it on, I boot right to windows, I have never installed a secondary OS. And I was hoping someone with more experiance than I could walk me through what I need to do in order to be able to dual boot  Ubuntu version is 14.04 and 64bit


I want to use the X command from tabular X to evenly space a tables columns. However, the individual comulns are quite narrow, and this makes the justified spacing look really bad.   Is there anyway to force the X command to be raggedRight instead of justified? I think I could do this on a cell by cell basis, but I have a massive table, and I dont want to do this for every cell. So, is there an alternate command, or some way of creating a new command which would keep the columns spaced evenly, but ragged right?

How can I center the column when using X in tabularx environment like in this example?  \begin{tabularx}{\textwidth}{@{}lXXXXX@{}}  1 & 2 & 3 & 4 & 5 \\    \end{tabularx}


I have several Ubuntu Server (12.04 LTS) virtual machines.  Some are idle and some are processing background tasks, etc.  However, when I try to login (SSH) to the servers, it often takes several seconds but subsequent login (within a short amount of time) are very quick which makes me think the server is going to sleep after a certain amount of idle time.  (This might be my virtual server [ESXi] causing this, but I haven't found anything...)

When I log in on my server I get this:  No mail. Last login: Fri Nov  5 14:22:45 2010...   then I must wait for 5 sec and then is ready...  wolfy@ubuntu-server:~$   Is this wait time normal or should I do something to "repair" this?


I used to use backtrack 5r3 before switching to Ubuntu. I want to use the Social engineering tool but couldn't find one . Is the mentioned tool same as for Ubuntu 11.10 or 12.10.

There is this software (SET) from Backtack 5 source that I found out about. But I don't know how to install this thing. Could somebody help me?  Here the link:


A function $f(z)$ on the complex plane is doubly periodic if there are two periods $\omega_{0}$ and $\omega_{1}$ of  $f(z)$ that do not lie on the same line through to the origin (that is, $\omega_{0}$ and $\omega_{1}$ are linearly independent over the reals and $f(z+\omega_{0})=f(z+\omega_{1})=f(z)$ for all complex number $z$). Prove that the only entire functions that are doubly periodic are the constants.

Let $f: \Bbb C \to \Bbb C$ be an entire (analytic on the whole plane) function such that exists $\omega_1,\omega_2 \in \mathbb{S}^1$, linearly independent over $\Bbb R$ such that: $$f(z+\omega_1)=f(z)=f(z+\omega_2), \quad \forall\,z\in \Bbb C.$$Prove that $f$ is constant.   The intuition seems clear to me, we have the three vertices of a triangle given by $0$, $\omega_1$ and $\omega_2$. All points in the plane are one of the vertices of that triangle under a suitable parallel translation. The constant value will be $f(0)$, fine. Throwing values for $z$ there, I have found that $$f(n\omega_1) = f(\omega_1) = f(0)=f(\omega_2) = f(n\omega_2), \quad \forall\, n \in \Bbb Z.$$  I don't know how to improve the above for, say, rationals (at least). Some another ideas would be:   Checking that $f' \equiv 0$. I don't have a clue of how to do that. Write $w = a\omega_1+b\omega_2$, with $a,b \in \Bbb R$, do stuff and conclude that $f(w) = f(0)$. This approach doesn't seem good, because I only have a weak result with integers above. Finding that $f$ coincides with $f(0)$ on a set with an accumulation point. This seems also bad: the set on with $f$ coincides with $f(0)$ by which I found above is discrete.    Nothing works and this is getting annoying... And I don't see how analyticity comes in there. I'll be very thankful if someone can give me an idea.  (On a side note.. I know that this title is not informative at all. Feel free to edit if you come up with something better.)


Basically what I want to do is send POST data when I change the window.location, as if a user has submitted a form and it went to a new page. I need to do it this way because I need to pass along a hidden URL, and I can’t simply place it in the URL as a GET for cosmetic reasons.  This is what I have at the moment, but it doesn’t send any POST data.  if(user has not voted) {      window.location = 'http://example.com/vote/' + Username;  }   I know that you can send POST data with jQuery.post(), but I need it to be sent with the new window.location.   So to recap, I need to send api_url value via POST to http://example.com/vote/, while sending the user to the same page at the same time.    For future reference, I ended up doing the following:  if(user has not voted) {      $('#inset_form').html('<form action="http://example.com/vote/' + Username + '" name="vote" method="post" style="display:none;"><input type="text" name="api_url" value="' + Return_URL + '" /></form>');      document.forms['vote'].submit();  }

I'm trying to direct a browser to a different page. If I wanted a GET request, I might say  document.location.href = 'http://example.com/q=a';   But the resource I'm trying to access won't respond properly unless I use a POST request. If this were not dynamically generated, I might use the HTML  <form action="http://example.com/" method="POST">   <input type="hidden" name="q" value="a"> </form>   Then I would just submit the form from the DOM.  But really I would like JavaScript code that allows me to say  post_to_url('http://example.com/', {'q':'a'});   What's the best cross browser implementation?  Edit   I'm sorry I was not clear. I need a solution that changes the location of the browser, just like submitting a form. If this is possible with , it is not obvious. And this should not be asynchronous, nor use XML, so Ajax is not the answer.


I have the following code : $data = "numbers{One Two Three}";  preg_match("~(?<=numbers{)(.*?)(?=})~", $data, $result); echo $result[0];  The preg_match doesn't work i don't know why if the data is just one line then it works

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


The question appeared in the university examination.  $$(D^2-D-2)y=2*\log x+\frac{1}{x}+\frac{1}{x^2}$$  I did the usual procedure that is to $\frac{1}{F(D)}Q=P.I$  where Q is the function of x only  The formula for the manipulation is  $$P.I=\frac{e^{mx}}{e^{mx}}*\frac{1}{F(D-m)}dxQ$$ $$P.I=e^{mx}*e^{-mx}\frac{1}{F(D-m)}Qdx$$ $$P.I=e^{mx}\int{e^{-mx}Qdx}$$  The above formula is obtained to make the D-m nullified to an integration by replacing the D by D+m. which is an identity and can be applied. Vice versa is also possible.  By manipulation we get $$P.I=\frac{-1}{3}e^{-x}\int{e^x[2\log x+\frac{1}{x}+\frac{1}{x^2}]dx}+\frac{1}{3}e^{2x}\int{e^{-2x}[2\log x+\frac{1}{x}+\frac{1}{x^2}]dx}$$ But I am having problem to integrate the following expression, any guidance will be appreciated. I have tried to use the substitution method but there is no factor that is replacing the dx.  I have previously asked the answer to the first part of the equation and got the answer but i Want to know the answer to the second term that is  $$I_2=\frac{1}{3}e^{2x}\int{e^{-2x}[2\log x+\frac{1}{x}+\frac{1}{x^2}]dx}$$

$$I=\int{e^x \Big(2\log x+\frac{1}{x}+\frac{1}{x^2}\Big)dx}$$ I have tried to use many methods of substitution  But I am aware of a formula  $$I=\int{e^x[f(x)+f'(x)]dx}=e^xf(x)+C$$  but can this formula be applied to the above equation


\usepackage{amsfonts}  Пусть \mathbb {N}  LaTeX Error: \mathbb allowed only in math mode

I'm new to TeX and tried to enter an equation using \mathbb. I received a prompt  LaTeX Error: \mathbb allowed only in math mode. See the LaTeX manual or LaTeX Companion for explanation.   I thought I would try here for an explanation.


I have an Early 2015 Macbook Pro Retina running Big Sur 11.2.3 that has been acting up lately. Essentially my "Other" storage is growing at insane rates. After rebooting, I have 145GB free on my HD free. Doing nothing, the "Other" storage grows and eventually brings me to less than 100mb in like 1.5-2 hours. I can't even backup using Time Machine. The back up says "Preparing backup" basically until my storage on my HD runs out (1.5-2 hours). Here's a few notes:  I've unchecked "Back up automatically" on Time Machine I've tried "tmutil listlocalsnapshots /" and "tmutil deletelocalsnapshots /", however, after unchecking the "Back up automatically" the localsnapshot is not created. My external harddrive that I'm trying to backup to has 500+ GB free. I've deleted every pending backup that I can find. I've downloaded DaisyDisk and found that the folder that in increasing non-stop in size is: /private/var/folders/zz/(long name)/T. I can't see inside the folder, so I have no idea what it is. But that folder definitely seems to be my problem.  What can I do? I'm getting desperate and feeling hopeless. I've read every forum/reddit post I could find but nothing seems to be working. Which files should I manually save if I try wiping my mac? This is my wife's computer she uses for work and she is currently having to restart the device every 1.5-2 hours because otherwise she is unable to do anything (due to the low storage). Any help would be very much appreciated.

I have this folder /private/var/folders/bf/ with 3GB of what seems temporary files. Can I delete this folder?


I wanna know if that it's possible. I can create a new VM and start it but I don't know if the configuration of Windows can be automatize by a Powershell script.

I know how to create a VM and I know how to start that VM on Hyper-V using the script of Powershell but it's the first use of the VM so I need to set up Windows and I don't know how using the Powershell.


We want to get only subscribers that are on an active journey using SQL. Is that possible using data views, and without updating another status DE in every journey?

What ways could you create a data extension that contains all the subscribers (SubscriberKeys) that are currently “in” a Journey (Journey Builder)?  The Journey I would like to do this for is a complex activity with multiple decision branches resulting in multiple possible journey durations. For example; if the customer didn’t open Email1 after 2 days, then send Email2; else Exit Journey. If the customer didn’t open Email2 after 2 days, then send Email3; else Exit Journey. Wait 2 more days, then End Journey. The minimum journey duration for the above example is 2 days, while the maximum is 6 days.  Note that I don’t want a list of subscribers that “entered” a Journey, but a list of the ones that are “currently in” a Journey and have not yet exited. Answer must account for non-standard Journey exits including Unsubscribes/Contact Deletes, etc.


I have noticed that when installing software through sudo apt-get install <packagename> it does not always give me the:  Do you want to continue? [Y/n]   Why is this so? I don't think that this has got anything to do with the size of the package as it has sometimes prompted me for a really small package, and then has not for a really large one.    OS Information:  Description:    Ubuntu 14.10 Release:    14.10   Package Information:  apt:   Installed: 1.0.9.2ubuntu2   Candidate: 1.0.9.2ubuntu2   Version table:  *** 1.0.9.2ubuntu2 0         500 http://gb.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages         100 /var/lib/dpkg/status

Just for curiosity, sometimes while installing software throught apt-get install software_name the terminal prompt me for a confirmation "type Yes or No", but not allways.  I dont mean the sudo password prompt, but the message "Will be downloaded and configrated XXX Kb, continue?" (or something similar)  Why?


Under the tutorial c data types it says sign qualifiers can only be used with int and char data types.Why is that? Why can't a float be unsigned?

I know, the question seems to be strange. Programmers sometimes think too much. Please read on... In C I use signed and unsigned integers a lot. I like the fact that the compiler warns me if I do things like assigning a signed integer to an unsigned variable. I get warnings if I compare signed with unsigned integers and much much more. I like these warnings. They help me to keep my code correct. Why don't we have the same luxury for floats? A square-root will definitely never return a negative number. There are other places as well where a negative float value has no meaning. Perfect candidate for an unsigned float. Btw - I'm not really keen about the single extra bit of precision that I could get by removing the sign bit from the floats. I'm super happy with floats as they are right now.  I'd just like to mark a float as unsigned sometimes and get the same kind of warnings that I get with integers. I'm not aware of any programming language that supports unsigned floating-point numbers. Any idea why they don't exist?  EDIT: I know that the x87 FPU has no instructions to deal with unsigned floats. Lets just use the signed float instructions. Misuse (e.g. going below zero) could be considered undefined behaviour in the same way as overflow of signed integers is undefined.


You call randomly a family with two kids, and ask if there is a kid called Tom. The answer is yes. Then what is the probably that the family has two boys.  So we want that $P(2 \text{ boys } | \text{ one of the children is called Tom })$. We can have: \begin{array}{c} Tom, B \\ B, Tom \\ Tom, G \\ G, Tom \\ \end{array}  So then since we know one of the kids is Tom then the probability must be $\frac{1}{2}$. Now if the question were to ask if we are given we know there is one boy and then we are asked to find the probability of two boys then we have: \begin{array}{c} B (known), B \\ B(known), G \\ G, G \\ \end{array} So then this would be $P ( 2 \text{ boys } | \text{ one of them is a boy} ) = \frac{1}{3}$  Are these reasonings correct?

On a practice exam from statistics I encountered a very difficult exercise I couldn't manage to solve:    In the tent next to you there is a family with two children. Early in the morning you see a boy coming out of the tent. What is the probability that the other child is a girl?   Use Bayes' Rule    My approach to the solution was the following:   We assume $P(GIRL)$ = 0.5 and similarly $P(BOY)$ = 0.5.  We have to compute the following conditional probability: $P($One child is a girl| One child is a boy).  By applying Bayes' rule we should be able to compute this probability.  Bayes Rule: $P(A|B)$ $=$ $\frac{P(B|A)*P(A)}{P(B|A)*P(A) + P(B|A^c)*P(A^c)}$  Could anyone please help me with this, I tried many things but nothing worked out..


$$\alpha(x) =\sum_{j=0}^\infty \frac{x^{3j}}{(3j)!}$$  $$\beta(x) = \sum_{j=0}^\infty \frac{x^{3j+2}}{(3j+2)!}$$  $$\gamma(x) = \sum_{j=0}^\infty \frac{x^{3j+1}}{(3j+1)!}$$  Show that $\alpha(x+y) = \alpha(x)α(y) + \beta(x)\gamma(y) + \beta(y)\gamma(x)$ for every $x, y \in\mathbb R$.  Any help will be appreciated.

$$\alpha(x) =\sum_{j=0}^\infty \frac{x^{3j}}{(3j)!}$$  $$\beta(x) = \sum_{j=0}^\infty \frac{x^{3j+2}}{(3j+2)!}$$  $$\gamma(x) = \sum_{j=0}^\infty \frac{x^{3j+1}}{(3j+1)!}$$  Show that $\alpha(x+y) = \alpha(x)α(y) + \beta(x)\gamma(y) + \beta(y)\gamma(x)$ for every $x, y \in\mathbb R$.  Show that $\alpha(x)^3 + \beta(x)^3 + \gamma(x)^3 − 3\alpha(x)\beta(x)\gamma(x) = 1$ for every $x\in\mathbb R$.  My work:  Ive noticed that $$\sinh(x)=\sum_{j=0}^\infty \frac{x^{2j+1}}{(2j+1)!}$$ and $$\cosh(x)=\sum_{j=0}^\infty \frac{x^{2j}}{(2j)!}$$ Can hyperbolic trig identies be used to solve these and if so how?


I got the trusted host settings error.      The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.    I read the  but I'm not understanding some of the basic context.   Are the "trusted hosts" me and other administrators who want to be able to administer the site remotely?  If so, would I add my PC's domain to the trusted host list?

I am running a Drupal 8 website, and when I browse to any page, I get a plain white page with just the following error message on it.     The provided host name is not valid for this server.   What does this mean?  How do I fix this?


I'm working on a tshirt and want to use the phrase      "Doing it healthy and safe."    Or should it be      "Doing it healthy and safely."

When someone is going to drive their car somewhere, I always used to say "drive safely" to them. Recently I was told I should say "drive safe."    (From: )   Which one is correct?  Similarly, is "do good" correct?


I'm working on a small project where I have to create a model (nltk) that will predict the tags from questions that may be published on Stack Overflow.  I used this link , and I was hoping there was a place that would explain more in-depth the details of the parameters.  For instance, what is "WikiPostId" in the Tags table? Most of the parameters are self-explanatory, but I fear I will miss some fine tuning.

Stack Exchange releases "data dumps" of all its publicly available content roughly every three months , and also makes that information queryable over the Internet at the  (SEDE) (updated weekly, on Sunday). Over time, as new features and other bits of data are introduced to Stack Exchange sites, the "anatomy" of the data dump is likely to change.


I don't understand enough to accomplish this, constant current output to 1.5mA LED current to 20mA its simply been too long since I learned these things. Im only modifying an existing (likely popular) circuit.    Greatly Appreciated.

Consider this simple constant current source. The voltage is 27 V, yet the indicator LED is rated to a much lower reverse breakdown. Is the LED safe? Will the LED draw current away from the output load? Output would be less than 1.5 mA. Simulations in LTSPICE proved LED won't lower output current below 1.5 mA but I don't know for sure.


There's a similar question already (), but it's been left unanswered and I don't have enough reputation to add a bounty, so please don't yell at me.   Like others in the linked thread, I think it's possible that it started after running OSGeo4W. I tried installing different versions (same result), through OSGeo4W and by using standalone installers. I got rid of OSGeo4W off my disc (just the main file), but it didn't do anything. There's also this cmake file that's included in every version and OSGeo4W? The only version that works fine on my laptop (3.2, installed long before that) does not have that file, so I removed it from 3.10.1 but it didn't help.   It's extremely annoying to have to minimise windows all the time.

I recently upgraded from QGIS 3.2 to 3.4 using the standalone installer (Windows 64 bit), and uninstalling 3.2 beforehand.  When I open 3.4 it goes the background behind all my other open programs and clicking its icon on the taskbar does nothing, nor does Alt-Tab.  To use QGIS I have to minimize all my other open programs.    Is this a Windows issue, a QGIS issue, or something else entirely?


I am trying to use the stuff function in MS SQL to stuff certain info. Here is the example:  Number          Value  1                 1 2                 1 3                 1 1                 2 2                 2 3                 2 1                 3 2                 3   I would like to stuff the column so that only one record will display as following:  Value             Number 1                 1,2,3 2                 1,2,3 3                 1,2   Please note that there are a like n-Numbers and n-Values.

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?