Defining scalable "white curly brackets" {| and |} (⦃ and ⦄)

I would like to construct what Unicode calls "white curly brackets" that are in addition scalable. They look like ⦃ (≈{|) and ⦄ (≈|}) and have Unicode codepoints U+2983 and U+2984.  unicode-math has them as \lBrace and \rBrace, but (1) I don't presently use XeTeX or LuaTeX and (2) their design (shown in  on pages 3-4) is not to my liking: the brace part is too fat for my taste, and I would like the vertical bar to not leave any protrusions. I am trying to have them visually match the parentheses \llparenthesis, \rrparenthesis, \llbracket, and \rrbracket from stmaryrd.  Right now I am using a makeshift definition, which is sufficient for now, but the symbols don't scale (in general or with \left/\right). Here is sample code:  \documentclass{article} \usepackage{amsmath} \usepackage[only,llbracket,rrbracket,llparenthesis,rrparenthesis]{stmaryrd} % for comparison with 4 similar parenthesis symbols \usepackage{accsupp} % for ensuring the right Unicode codepoint upon pasting  \newcommand*{\llbrace}{%   \BeginAccSupp{method=hex,unicode,ActualText=2983}%     \textnormal{\usefont{OMS}{lmr}{m}{n}\char102}%     \mathchoice{\mkern-4.05mu}{\mkern-4.05mu}{\mkern-4.3mu}{\mkern-4.8mu}%     \textnormal{\usefont{OMS}{lmr}{m}{n}\char106}%   \EndAccSupp{}% } \newcommand*{\rrbrace}{%   \BeginAccSupp{method=hex,unicode,ActualText=2984}%     \textnormal{\usefont{OMS}{lmr}{m}{n}\char106}%     \mathchoice{\mkern-4.05mu}{\mkern-4.05mu}{\mkern-4.3mu}{\mkern-4.8mu}%     \textnormal{\usefont{OMS}{lmr}{m}{n}\char103}%   \EndAccSupp{}% }   \begin{document}  \noindent ok: \(\displaystyle\llbrace abc \rrbrace\) \(\textstyle\llbrace abc \rrbrace\) \(\scriptstyle\llbrace abc \rrbrace\) \(\scriptscriptstyle\llbrace abc \rrbrace\)  \noindent ok: \(\displaystyle \llbrace \frac{a}{b} \rrbrace\) \(\textstyle\llbrace \frac{a}{b} \rrbrace\) \(\scriptstyle\llbrace \frac{a}{b} \rrbrace\) \(\scriptscriptstyle\llbrace \frac{a}{b} \rrbrace\)  \noindent incorrectly scaled (\verb|\scriptsize|): {\scriptsize\(\llbrace abc \rrbrace\)} (large magnification required)  \noindent incorrectly scaled (\verb|\tiny|): {\tiny\(\llbrace abc \rrbrace\)}  \noindent \verb|\left| and \verb|\right| not possible before \verb|\llbrace| and \verb|\rrbrace|: \\ \indent \(\llbrace \left\llbracket\left\{\left[(a) \cdot bc^{2^3}\right]^4\right\}^5\right\rrbracket \rrbrace\) % Note: This is also not possible with \llparenthesis and \rrparenthesis from stmaryrd.  \noindent for comparison: \(\llparenthesis x \rrparenthesis, \llbracket x \rrbracket, \llbrace x \rrbrace; (x), [x], \{x\}\)  \end{document}   Lines 1 and 2 look just right with the present setup. Lines 3 and 4 demonstrate that my definitions don't scale. Lines 5a/b gives an example of where I would like to be able to use \left and \right. Line 6 juxtaposes different types of parentheses for visual comparison.  Is there an easy way to scale the glyphs I have constructed myself? Or is designing new glyphs the only way? While the vertical part of my glyphs doesn't leave any protrusions, the "brace part being too fat" part of my problem isn't being addressed by my code. With this in mind: I recognize that it might not be that easy to make the brace part of the glyph thinner (though if you can, more power to you), but I think that any solution that addresses the scaling problem for any manually constructed glyph cluster will be a valuable contribution to the community.    For a slightly different setup (original example code) with  \RequirePackage{fix-cm} \documentclass[12pt]{memoir} \usepackage{fixltx2e}[2006/09/13] \usepackage{amsmath} \usepackage{txfonts} \usepackage[only,llbracket,rrbracket,llparenthesis,rrparenthesis]{stmaryrd} \usepackage{accsupp}   in the preamble, one needs \mkern-5.7mu in the fourth argument to \mathchoice for "correct" scaling. To see what goes wrong in that case, it's best to include a line such as discontinuous small symbols in a footnote\footnote{\(\scriptscriptstyle\llbrace \frac{a}{b} \rrbrace\)}. This might help a potential answerer test things out.


For $\phi$ as a homomorphism not onto show not normal subgroup

I am just a little unclear about what I am supposed to do here.  Let $\phi: G $ to $J$ be a homomorphism onto all of $J$. Let $H$ be a normal subgroup of $G$ and let $K=\phi(H)$ be the image of $H$ under the homomorphism.  I have showed that K is normal to J. I now need to provide an example that K could not be normal to G if $\phi$ is not onto.  Do I need to find a G,J,K, and H such that it there is a homomorphism but it is not onto? Is this the right path? Because if it is then I have thought and thought and I am stuck.


1.13+ how do you get the slot NBT tag for /give?

So, I'm working on a little arena map for my friends and me and I need to give a weird invisibility totem. The person should get five and It consumes all of them at once if I stack them so I need to spread the out in the hotbar. I am using /give to give all five and am using 5 different command blocks. I am using a separate detection system for each totem but this is the command I have so far:  give @a[scores={assassin=1..}] minecraft:wither_skeleton_skull{slot:1b,display:{Name:"{\"text\":\"Invisibility Totem\",\"color\":\"gray\",\"strikethrough\":\"true\"}"}} 1   It's the part at the beginning of the NBT tags that says: slot:1b, the command works perfectly otherwise. Anyone know what I should use there or if they still have this in the game as of 1.13?


What if the queen is pocketed along with all remaining carrommen?

Whilst playing carrom, if only one piece is remaining of each player, e.g. one white and one black and a queen, and I pot a queen, what happens in the following scenario:  While covering the queen with my piece, mistakenly I cover both the remaining pieces, and now there are no pieces on board.  In such a case, who wins the game?


Scifi book from the 80's. The last of a warrior race

The hero was the last of his kind (not a human) who was a member of a warrior race.    He had a sidekick alien that communicated through telepathy.  I think he was described as a "centurion" (?) or something similar. It would have been published approx 1978 to 1990.  I think it was at least a couple of books.


I have a file in the below format.  [  I tried using awk and sed in all the possible ways which i am aware of but couldn't find a way to reformat the file in the format which i am looking for. I would like to have the file in the below format.    Any suggestions/help would be much appreciated. Thank you in advance.  Regards, Darshan


Why does $\int_1^\infty \sin(x \log x)\,\mathrm{d}x$ converge?

Why does $\int_1^\infty \sin(x\log x)\,dx$ converge?  I haven't got a clue about where to being with this, any help would be appreciated.


Does the Vita's backwards compatibility with PSP games extend to PS1 games?

Specifically, those purchased legally through the PSN Store. It seems like it should, but I can't find a definitive answer anywhere.


I have just reached 1000 and can apparently now "see votes", though for the life of me I cannot find anywhere were I can see votes and see nothing different from before I obtained this privilege. What exactly is "see votes", and how do I access this privilege?


How to manually check if a username and password is correct?

There are a lot of answers on how to log in as a specific user. But I can't find any answer on how to check if the username and password is valid without logging in. I want to be able to do something like this:  $username = "bla@bla.com" $password = "blablabla"  $valid = checkIfValidDetails($username, $password);   I simply want $valid = true if the username and password is correct, and false if not.   How can I do that?


Is there a way to do Nandroid backup directly to pc and then restore it directly from pc also?

My phone doesn't have enough space to store backup files so I wonder if there is a way to do Nandroid backup and restore with files stored on pc.


WebException thrown but never gets caught

I have the following code:  try {     using (var myHttpWebResponse = (HttpWebResponse) httPrequestCreated.GetResponse())     {         var streamResponse = myHttpWebResponse.GetResponseStream();          if (streamResponse != null)         {             var streamRead = new StreamReader(streamResponse);             var readBuff = new Char[256];             var count = streamRead.Read(readBuff, 0, 256);                       while (count > 0)             {                 var outputData = new String(readBuff, 0, count);                 finalResopnse += outputData;                 count = streamRead.Read(readBuff, 0, 256);             }             streamRead.Close();             streamResponse.Close();             myHttpWebResponse.Close();          }     } } catch (WebException ex) {     MessageBox.Show("something went wrong"); }   The error code is 404 Not Found, but instead of a MessageBox I get the following error:    Why is the exception never caught?


What is the origin of pseudo force in non-inertial frames?

When a bus stops suddenly, I can "feel" a force pushing me. This is exactly as if someone really pushed me. Same is the case while doing a turn in a car, I can "feel" a force pushing me away from the centre. Also, why don't we feel the inward centripetal force but only the outward centrifugal force? If its only because of inertia, then why aren't they considered real forces since inertia is a fundamental property of matter. Everywhere I've read it says that pseudo forces are only incorporated to validate Newton's second law in non - inertial frames. But if they're not actual physical forces, then what is the force that I "feel"? Is there any other cause for pseudo forces other than inertia?


I accidentally deleted the /usr/bin/sudo file. How can I restore it?  I have found , but it seems to be not solved.


'Add Friend' button gone, then appeared again

I sent a friend request to someone ages ago. When I checked his profile a few days later, the 'Add Friend' button was gone. However, it's now been ages and I checked his profile again and it has appeared again.  I am guessing the button was gone because he refused my request. Does the button appearing again mean that person has unblocked me or something? Or is it something done automatically by Facebook? Also, if it's the latter, does anyone know the exact length of time needed for the button to reappear?


If a university is named after a place, can I move the name to the name of place before "university"?

If a university is named by a place, like "the Univerisity of Bonn". Can I call it "Bonn University"? When saying the former, is the mistake serious if without definite article "the" before "university"?


How do I link my windows 10 edition of Minecraft to Mojang

I bought the windows 10 edition of Minecraft and I want to know if I can link that account to Mojang because when I tried using the account I had for the Windows 10 edition they wanted me to buy it again


Restrict user to create leave request with other employee

I have Leave form that is created from InfoPath and Published it to SharePoint 2013 site. This leave form, the user/employee will enter the employee number then it will appear the employee's details.  Now my question is could it be possible to restrict the user(current logon) to create leave request of other employee?  Hope someone could help me. Thanks in advance


$f$ has a root in $F$ iff $f$ has a root in $\text{Frac}(F)$

Let $R$ be a UFD and let $F=\text{Frac}(R)$. Let $f\in R[x]$ be a monic polynomial. Show that if $f$ has a root in $F$ then $f$ has a root in $R$.   Attempt:  Suppose $f$ has a root $a\in F$. $R$ is a UFD then $\exists c,d\ne0$ with $a={c\over d}$ and $\gcd(c,d)=1$.  Suppose $f(x)=a_0+a_1x+\dots+a_{n-1}x^{n-1}+x^n$. Then we have $$ 0=f({c\over d})=a_0+\dots+a_{n-1}{c^{n-1}\over d^{n-1}}+{c^n\over d^n} \\={1\over d^n}(a_0d^n+\dots+a_{n-1}c^{n-1}d+c^n) $$ $R$ is an integral domain so $$ 0=a_0d^n+\dots+a_{n-1}c^{n-1}d+c^n\Rightarrow \\c^n=-d(a_0d^{n-1}+\dots+a_{n-1}c^{n-1})\Rightarrow d|c^n $$ But $d\nmid c$. Let $k$ be the minimal s.t. $d|c^k$.  How can I proceed? Thanks!


How does a program know what to read in a pipeline?

How does the unix command line program know what file to read?  For example:   cat someFile | foo   How does the program foo know which file to read, and which process is responsible for opening and reading the file from disk?


Enumerating all subgroups of the symmetric group

Is there an efficient way to enumerate the unique subgroups of the symmetric group? Naïvely, for the symmetric group $S_n$ of order $\left | S_n \right | = n!$, there are $2^{n!}$ subsets of the group members that could potentially form a subgroup. In addition, many of these subgroups are going to be isomorphic to each other. I feel that the question has an easy answer in terms of the conjugacy classes, but I don't see how. If the answer generalizes to all finite groups, please elaborate!


Using a USB device locally on 2 computers

I would like to make what I can best describe as a reverse USB switch, where one USB 2.0 device (a dongle) is physically connected to 2 computers (located side by side). The dongle is powered through USB.  I.e. what I'd like to make is a Y-split, with one female going to two males.  Could this be done simply by wiring together 3 cable ends with the appropriate connectors? Do you think the dongle would be recognized locally and useable on both computers? Should I make sure that power only runs from one of the computers?


What grace period do you allow someone to reformat his question if it is less-than-perfect?

I've seen it over and over again: A poor guy asks a question, makes a mistake in the formulation, another small typo and the result is less-than-perfect (not to say: stupid). What usually happens next is that within minutes such a question is down-voted, closed or even deleted.  I'm not against down-voting, closing or deleting of unconstructive/stupid content. Housekeeping is necessary.   But Gentlemen - Please! - Leave that poor guy the time it takes to reformulate, extend or rewrite his question. Most of the time I see plain down-votes without a comment within 20 minutes of the original post. And - that's the sad part - the down voters are usually members with >15k reputation.  Please consider the following:   Not all persons have English as their mother-tongue. Asking technical questions in a foreign language is quite challenging. Is it really so simple to estimate the effort that went into a badly formulated question? Often the right question is the key to the correct answer. To find that "golden question" is time consuming, but usually a steep learning curve. You cut that off if you close the question. Rewriting a question needs time. Especially if the proper research was not done in the first place. Posts on SO are not real-time communication. (There's the chat for this) People tend to follow that fact and expect answers by the next day (or even by the next week).   If your answer is: "If I see the question being improved, I'll take the down-vote back." then I'd have to reply: Nay! This is not going to happen, I know you're too lazy to come back to a bad question.  My question is: How long do you allow someone to react on "improvement requests"?  What is the consensus on SO about this?  Is there a consensus? One hour? One day? One week?


Acronyms and initialisms are almost always capitalized, think:  BBC HTML ASAP  etc. Sometimes though acronyms are not capitalized. Even the license at the bottom of this page is written as:  cc by-sa 3.0  which contains a few acronyms but is not capitalized. Is there a standard for acronym capitalization?


In my attempt to divide a title into two lines, I fail in inserting therein a “carriage return” (or \r, or \n), to effectuate a two-line title.  I must add code before this line:  resultHdr = resultHdr + “Title B”;   I need to change the “resultHdr” earlier; It must already contain “Title A” - and a “carriage-return”, so that the line of code above would yield Title A and, on a next line, Title B.  It would seem absurdly simple to accomplish. But neither of these additions succeeded for me:?  resultHdr = "Title A” + "\n”; resultHdr = “Title A \r”; resultHdr = “Title A \n”; resultHdr = resultHdr +  document.createElement('br');   I fail in breaking the output line into two; It always shows up as “Title ATitle B” - all on the same line!  The program involves DOM scripting and here may lie the reason for my “faulty” rendering.  (There's a lot of stuff written on this, like typing in \\n or replacing with regular expressions, but they are years old and obviously things ain't still all that cut and dry). (Meanwhile - I'm stuck!)


overset/underset "sideways" and wide [ and ]

The usual $\left[ abcd... \right]$, places [] delimiters left-and-right, and spans the expression's height.  Contrariwise, I want to more-or-less $\underset{]}{\overset{[}{ abcd... }}$, placing [] "delimiters" top-and-bottom. Moreover (obviously), I want the [] sideways/horizontal, so to speak. And then I also want them wide, spanning the width of that abcd... expression.  Any way to do that, the more straightforward the better (i.e., optimally just some LaTeX directives without special packages, etc)? Thanks.


How do I append a value to an array within an array in PHP?

Given this PHP array:  $options['systems'] = array(1, 2, 3)  How would I append the value 4 to the $systems array within the $options array?


Do slow cookers require liquid to operate?

I have a  that I'd like to cook tomorrow, and I'm planning to do it in my slow cooker.  The recipe as provided online is the same one that is on the turkey packaging:     Slow-Cooker Instructions:   Place THAWED roast, skin side up, flat in 8” diameter slow-cooker. Add 1/2 cup water. Cover, cook on low 7-1/2 hours to internal temperature of 170 degrees as measured with a meat thermometer. After 4 hours, check temperature at center, ends and near top for food safety. Turkey must reach 140 degrees within 4 hours.    Now, I haven't done a lot of slow cooking before, but when I have, I've always added enough liquid to fill the slow cooker up to about 3/4 full.  Half a cup of water will barely cover the bottom of my slow cooker.  I did some research, but found nothing conclusive.   say that slow cookers should always be more than half full,  seem to indicate that it's fine to run them almost empty.  Is there a minimum level of liquid necessary when cooking in a slow cooker?


Let $f:[0,1]\rightarrow\mathbb{R}$ be a continuous function such that for all $a,b\in [0,1]$ with $a<b$ $$f\left(\frac{a+b}{2}\right)\leq\frac{1}{b-a}\int_a^b f(x)\,dx.$$ How to prove that $f$ is a convex function? Thank you for your help.


Let $F$ be a field with $5^{12}$ elements. What is the total number of proper subfields of $F$?  A) $3$ B) $6$ C) $8$ D) $5$  Explain the concept used to solve the question.


After reading this paragraph:     A simpler version of this distinction might be more palatable: flip a   coin infinitely many times. The probability that you flip heads every   time is zero, but it isn't impossible (at least, it isn't more   impossible than flipping a coin infinitely many times to begin with!).   From here:    I thought to myself, why is the probability of flipping heads every time zero? If we have a perfect coin and we flip it twice we get the probability to equal this:  $$\frac 12 \times \frac 12 = \frac 14$$  or for four flips we get this:  $$\frac 12 \times \frac 12 \times \frac 12 \times \frac 12 = \frac 1{16}$$  So as we approach an infinite amount of coin flips, the probability gets smaller and smaller, but it shouldn't ever reach zero, so the probability shouldn't be zero, it should be $1/+\infty$. Does this mean that $1/+\infty$ equals zero or have I misunderstood the question?


What autofocus zone selection mode should I use for action/event shooting?

I have a Canon 7D, and typically shoot everything I do in its single-point autofocus zone select mode, because I usually want fine control over exactly what the camera is focusing on and I often find that its two automatic focus zone select modes don't focus on what I want in focus.  For most of the photography I do, this is fine -- I have enough time that I can compose the shot the way I want, use the joystick on the back to select the right focus point, and take the shot at my leisure.  However, recently I've been doing more event/action photography, and I've been running into issues with this mode of operation.  Too often, I will see a person start to do something interesting, but my autofocus point is not in the right place -- so by the time I get the camera up, adjust the settings, and move the autofocus point, the opportunity to take the shot has passed.  My question is, what autofocus zone selection mode and workflow should I use for this type of photography?  I could use the 5-zone partial-auto mode (which gives me a choice of top, middle, bottom, left, or right, and then the camera chooses the points within my selected region), but I find that the time needed to switch in between that mode and the single-point mode is similarly prohibitive, and I have to hope that the camera chooses the right thing to focus on.


How can I find out what causes "Android OS" to consume battery?

The issue is that I see a high percentage on the "Android OS" item in the Battery Usage, and I want to find out what is causing it. But let me say that I'm interested in diagnostics techniques and tools, rather than increasing the battery life, as you will see in the below figures that the battery isn't drained much faster than expected.  Here's the situation with the phone right now:   Last charged 13 hours ago I restarted the phone after charging it I have switched off everything (such as GPS, WiFi, Data network) I was on a 2G network all the time My only use from the phone during the day was a few minutes of WiFi, receiving two SMS messages, and a call that lasted less than a minute. I have auto-sync turned off   And here's the battery usage stat:   Android OS: 67% Display: 10% Cell standby: 9% Phone idle: 6%   The Android OS shows 1 hour and 30 minutes of CPU time, but the total time that the phone was turned on was less than 30 minutes, and I don't have anything active in the background.  The battery level isn't bad at all (80%), but considering that I haven't done anything with the phone (and that the phone has a 2500 mAh battery) I am curious to find out what is causing the battery usage.  Obviously, this should be caused by some background tasks that aren't listed in the battery usage. I am looking for ways, tools, and methods that enables me to diagnose this further and relate the 67% of the usage to actual applications.  Some additional information:  I have a Galaxy Note, with Gingerbread 2.3.6 installed. I have "Usage Timelines Free" installed (which wasn't running during the day), and it doesn't show any excessive CPU usage by any app that can lead me toward who's consuming the battery.  Related question (helpful, but didn't answer my question) :


Are spivak and apostol calculus book good even from a physics point of view for learning calculus?  I have a basic understanding of calculus but want to learn in depth more physics and for this I require more calculus


Turkish characters to uppercase then another problem

My MWE  \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[turkish]{babel}  \addto\extrasturkish{%   \uccode`i=\string"9D \uccode\string"19 = `I   \lccode\string"9D=`i \lccode`I=\string"19 } \addto\noextrasturkish{%   \uccode`i=`I \lccode`I=`i }  \renewcommand{\contentsname}{\textit{İçindekiler}}  \begin{document}  %.... \begin{figure}[!ht] \centering \includegraphics[width=\textwidth]{Map.png} \caption{Map} \end{figure} %.... \end{document}   And Missing number, treated as zero in \includegraphics[width=\textwidth]{Map.png}  I find another same question. Does anyone know how to fix it?  Related to:   Related to:


max_connections for 8GB RAM and shared server

I just wanted to ask what would be a good number in my.cnf in MySQL for max_connections?  I have a shared server which has about 10 websites and 8GB RAM and a quad-core processor.


Why is my website not getting PageRank updates?

My website is more than a year old and Google Webmaster Tools reports that I have over 1500 links to the site, yet my Google PageRank is still zero.  Is my website being penalised and why is my PageRank not updating?


I am a little bit confused regarding the meaning of the phrase :" Root test is stronger than ratio test", and was hoping you will be able to help me figure it out. As far as I can see here:  The limit from the ratio test is greater or equal the limit from the root test . So, my first question is-  is there any example of a series $\Sigma a_n$ such that the limit from the ratio test is exactly 1 (i.e.- inconclusive), but the limit from the root test is less than 1? (i.e.- convergence can be proved by using the root test but not by using the ratio test ) If not, then is it correct that this phrase is the meaning of "stronger" is when the limit from the ratio test does not exist? (as in the classic example of a rearranged geometric series)  Hope you will be able to help.   THanks !   related posts:


Why doesn't Stack Exchange delete posts that have no comments, answers, or activity for a long period of time. The number of unanswered questions continues to grow on each community (Stack Overflow: 2,710,786) , and it seems questions that are worthwhile to answer are already answered and were within a short period of time.   I understand many questions are answered in the comment section, so it seems viable to leave unanswered questions that have comments, but there are many that have never had activity (probably because they are badly worded questions, already answered before, or too individualized such that the question would not benefit the entire community).  My old question fits under all of these and has no comments or answers. It seems like it should be deleted.   I have some strange goal that one day all questions will have answers, and the questions with no activity stand in the way.


I have a sed command to change something in a file of python:  sed -i 's|encoding = "ascii"|encoding = "utf-8"|g' /usr/local/lib/python2.7/site.py   so I want to replace "ascii" by "utf-8" but this does not work. Someone who can explain why it isn't working and what do I need to change?  >> import sys >> reload(sys) >> sys.getdefaultencoding(); --> "ascii"  Run my command  >> import sys >> reload(sys) >> sys.getdefaultencoding(); --> "ascii"


So im not sure if im doing something wrong or if this has to be done in linux itself, but ive been trying for hours with windows to make a bootable usb drive so i can install my other linux OS for my retro console idea, however even with usb selected as an option, neither of the 2 pcs i have can boot from the flash drive, it doesnt seem to reconize it, but it does see the drive on my windows pc. I dont know if im doing something wrong. Any suggestions? As the os im installing can only be installed by usb.   I have tried the lili program, wind32 disk imager, and a few others, im just not sure what to do at this point. Thank you


How can I write the unit Einstein in LaTeX (siunitx)?

I am currently writing my master's thesis with LaTeX and most things really go super good and a lot better than in Word, but I can't seem to get this one working. What I want:  60 yE/m2s (I hope you know what I mean...)   This is what I tried so far:   \SI{60}{\micro\einstein\per\meter\squared\second}   I installed the package correctly as it's working fine with other units like:  \SI{20}{\degreeCelsius}


Can the help section link be added to iOS app

It's basically in the title.   When viewing SE sites through a browser, there's always a link to the help section easily accessible.  Could such a link be added to the iOS app? I would suggest above "About" on the main menu.


multicollinearity in logistic regression

Which is the best way to check for multicollinearity between two binary explanatory variables in logistic regression..? I use SPSS, if anyone could answer with special regards to that programme it would be extra helpful!


Prove that, if $R$ is Noetherian, then so is each homomorphic image of $R$.   I know that by the Fundamental Homomorphism Theorem this is the same as showing that if $R$ is Noetherian, then so is $R/I$ for each proper ideal $I$, which I think I can use the correspondence theorem for this.   I am struggling piecing together how to write the proof though. Any help would be great!


Python: .format() not rounding correctly

I have these two lists:  salePrices = [9.95, 14.95, 19.95, 24.95, 29.95, 34.95, 39.95, 44.95, 49.95] percents = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50]   And then, using this for loop, I iterate through each percent and calculate the discounted price.  for percent in percents:      for salePrice in salePrices:          newPrice = salePrice - ((percent / 100) * salePrice)          print("\t" + "{0:.2f}".format(newPrice), end = " ")      print()   This all works fine, except for one issue: some of the values calculated are not rounded properly.   For instance, 14.95 - (0.1 * 14.95) = 13.455, which should be rounded to 13.46 by .format(). However, the value printed is 13.45.  Is there something I am doing wrong, or is it a problem with the method, format, itself?


Automatically change Sound Input Output device

I have to plugin my USB Audio adapter ( 4300054 Gigawire USB Audio Adapter) for audio input because has a combo-input-output port for voice.  After I do this, I have go open Sound Settings and manually select the USB Audio adapter for Input and Output, if I do not, the system default remains selected.  Is there anyway, I can make Ubuntu to automatically select the USB Audio Adapter as the default as soon as I plug-in?


any Tex template for this arxiv article?

I am from optimization and control society. I would like upload a paper in a non-description way, probably, like.     Could you please help figure out how the format can be generated ? It appears easy and common since many other papers share nearly same layout.  Thank you in advance


I cant find my follower Serena and for some reason most normal methods don't work sleeping waiting getting a dog and i have no other way I'm on Xbox and i need help please


Evaluating   $$\sum_{n=1}^\infty \frac{2^{2n-1}}{5^{n+1}}$$  Its $\frac{\infty}{\infty}$ so I should use L Hospital rule, but the terms are exponential and differentiation won't do much good? I am thinking maybe I somehow use $\ln$ both sides? But how? Or perhaps I should do something else?  UPDATE  Following @Paul's answer: Since $|r| < 1$ so sequence is convergent. So I use the formula  $$\sum_{n=1}^\infty ar^{n-1} = \frac{a}{1-r}$$  $$\frac{1}{10} \cdot \frac{1}{1-\frac{4}{5}} = \frac{1}{10}\cdot 5 = \frac{1}{2}$$  But answer is $\frac{2}{5}$


Display bug in "Similar questions" dropdown when Asking a question (Firefox)

Text gets overlaid on top of itself and unreadable when scrolling the "Similar questions" dropdown when Asking a question.  Steps to reproduce:   Start typing the question title. "Similar questions" list gets populated. Scroll the "Similar questions" list - OK Go back to the question title and refine it. Scroll the "Similar questions" list - text is overlaid when scrolled!?   Tested Firefox v72.0.2 and v73.0  Doesn't seem to be a problem in Chrome/Opera.  Close and reopen the dropdown does resolve the issue.


Vertical line of white pixels between launcher and maximized application (Firefox)

Is this a bug or is it expected?  How can it be solved if it's not expected?


Misleading description of new Curious badge

The description of the new  badge currently reads:     Asked a good question on 5 separate days, and maintains a positive question record.   The term "good question" seems to be defined by the badge :     Question score of 25 or more.   Curious seems to use another criterion, though, as witnessed by  (no Good Question but Curious).  Please clarify the description.


How to combine two files into one with columns for each file's data?

I have two files:  file1 contains:  1 2 3 4   file2 contains:  John Sam George Ken   I want to combine these files to create one file(file3)  1, John 2, Sam 3, George 4, Ken   My thought was to use nested loops and add the comma for each line,  for x in file1 do echo "$x" >> file3 for y in file2 echo ",$y" >> file3 done done   Is there a command I need to use? How do I get it to x and y to appear on one line for each entry in both files?


I swipe apps closed and they still appear to be using memory. Then I use task kill, but I can immediately refresh and they're open again. So I goto manage apps and force stop. Once again if I click back and go back into the app setting it's open again! Why is this and how can I stop it? It's mostly system apps I don't want/need and I'm afraid to uninstall them and possibly wreck my phone. Already had too many problems fixing errors because of just that.


I moved a database from SQL Server 2005 to SQL Server 2012. Is there any way of restoring all the logins on the new server?


How do I append an item to an array in a pipeline?

This script should simply add a value to an array through a loop and then show all items of an array.   #!/bin/bash  data_file="$1" down=() counter=0  cat $data_file | while read line; do \     isEven=$(( $counter % 2 ))     if [ $isEven -eq 0 ]; then         down+=("$line")     fi     (( counter ++ )) done  echo ${down[@]}    exit   But all I see is empty string:  host@user$ sh script.sh data_file  host@user$   The data_file contains this:  81.11 11.63 81.11 11.63 81.11 11.63 81.11 11.63    Where's my mistake? Thanks.


Why only left-handed neutrinos have been observed yet?

This is what I understood (it may be wrong, so please correct me): since every particle is "divided" into a lefthand and a righthand partner, which is what guarantees the particles to have mass, and since it's finally proved that neutrinos have mass, why only lefthand neutrinos have been observed hereto?


Make new column at each occurence of a specific row value using awk

I have a text file column.txt with two columns like shown below:    1 1.1   2 4.0   3 3.2   start newset   1 2.2   2 6.1   3 10.3   4 2.1   start newset   1 18.2   2 4.3   I need to convert this to multiple columns such that a pair of new column is created when start newset is reached. Therefore, my desired output text file would look like (I would like to discard the row with string start newset):    1 1.1 1 2.2 1 18.2   2 4.0 2 6.1 2 4.3   3 3.2 3 10.3         4 2.1


I wanted to bring up an issue I faced recently and figure out how much my graduate school application will be affected by this. For some background, I am a sophomore math major at a good public school. In the first semester of my second year(i.e Fall 2020), I faced many problems that led to a case of terrible depression. I ended up getting an F in an art history class and two Bs in Probability Theory and another math grad class. There were many other internet access issues piled onto the existing problems as well. It would be an exaggeration to say that I even participated in the class. I only submitted about half the assignments and got an average score on the final exams. I had a 3.91 GPA in my first year taking the major upper-div math courses(Abstract Algebra, Linear Algebra, Real Analysis) and a graduate class in commutative algebra. I got all As in my math classes with one or two A-s in some unrelated classes. In my second semester of my second year, I am trying my best to fix this issue. I will likely get 5 As this semester including 3 key math graduate classes. I think I'll maintain this streak in my third year as well. At this point, my GPA is around 3.5 . By the time I apply to graduate school, I can hope to get it to around 3.7-3.82. My math GPA will be higher than that. I am currently aiming to get into a good PhD program(say a top 20 program, very roughly). I already have some pretty good connections with some faculty who are quite renowned in their fields and may end up getting good letters. I may also have some research opportunities lined up within the next year. I also took the math subject GRE and did well on it. Will I be penalized for the drop in grades that semester when it comes to graduate school applications? Many of the other factors(GRE, recommendation letters) look decent enough on paper for now except for my GPA. Most of the people I know who got into a math PhD program have a near-perfect GPA. It seems almost like a minimum requirement at this point. I'd be especially glad to receive a response from someone very familiar with the math PhD admission process or another student who faced similar circumstances.


PyQGIS couldn't import processing with standalone script

I have read post on that problem (). The problem is even with a sys.path.append it couldn't import processing. It's very frustrated. Here the code I used:  #!/usr/bin/python  def main():     layer = QgsVectorLayer('/path/to/file.shp', "BAT","ogr")     QgsMapLayerRegistry.instance().addMapLayers([layer])      # Testing processing     try :         Processing.runalg("qgis:creategrid")     except:         print "Processing module has not been loaded"      #Check the QgsMapLayerRegistry for the layers     print QgsMapLayerRegistry.instance().mapLayers()     # Check if they are valid     print layer.isValid()  if __name__=="__main__":     import sys     from PyQt4.QtGui import *     from qgis.core import *     app = QApplication([])     QgsApplication.setPrefixPath("/usr", True)     QgsApplication.initQgis()      sys.path.append('home/qsuser/.qgis2/python/plugins')      # try to load processing     try:         from processing.core.Processing import Processing         Processing.initialize()      except:         print "unable to load processing"      main()      QgsApplication.exitQgis()   I could load QGIS and layer is valid that's ok, but processing resist to me. I am on Ubuntu 14.04 I use Pycharm to do it.  I tried on terminal with the python console, it raised this error:  Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/__init__.py", line 28, in <module>     from processing.tools.dataobjects import *   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/tools/dataobjects.py", line 35, in <module>     from processing.core.ProcessingConfig import ProcessingConfig   File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "/home/qsuser/.qgis2/python/plugins/processing/core/ProcessingConfig.py", line 30, in <module>     from PyQt4.QtCore import QPyNullVariant, QCoreApplication, QSettings ImportError: cannot import name QPyNullVariant   I don't know what I am missing.   Settings :  Qgis 2.12.1-Lyon Ubuntu 14.04 Trusty IDE : Pycharm 5 community Processing : 2.12.2   -- Edit -- And with the changes suggest by mathias kuhn  #!/usr/bin/python  def main():     layer = QgsVectorLayer('/path/to/file.shp', "BAT","ogr")     QgsMapLayerRegistry.instance().addMapLayers([layer])      # Testing processing     try :         Processing.runalg("qgis:creategrid")     except:         print "Processing module has not been loaded"      #Check the QgsMapLayerRegistry for the layers     print QgsMapLayerRegistry.instance().mapLayers()     # Check if they are valid     print layer.isValid()  if __name__=="__main__":     import sys     from qgis.core import *             from PyQt4.QtGui import *     app = QApplication([])     QgsApplication.setPrefixPath("/usr", True)     QgsApplication.initQgis()      sys.path.append('home/user/.qgis2/python/plugins')      # try to load processing     try:         from processing.core.Processing import Processing         Processing.initialize()      except:         print "unable to load processing"      main()      QgsApplication.exitQgis()


Does using the Console Commands negatively affect me?

I'm wondering in case I get stuck in an area that I'm unable to get out of or if I clip into a wall and I suddenly can't move. I've had to disable clipping to get out of certain areas in Skyrim before but I want to make sure that things like my achievements and stuff won't shut out on my playthrough.  If I enable something, spawn an item that didn't spawn for me, or just basically use the console command to fix any bugs, what will happen achievement and game-wise?


How do I open a large file in a terminal (using vim causes terminal to hang)?

I'm using Ubuntu 14.04.  I have a large log file:  -rw-r--r-- 1 rails root 1792390124 Jan 10 14:54 /var/log/unicorn/unicorn.log   Nonetheless, I need to open it and find some things in it.  I tried vim, but running  vim /var/log/unicorn/unicorn.log   just opens a blank screen and even when I use Ctrl+C, nothing happens.  The terminal is hung.  Without upgrading any of the hardware on my machine (but I'm open to installing software), how can I open the file and look around (I don't need to edit it, I just need to read some lines from it).


Custom form submit handler is called, but node is not saved

There are many questions about a custom form submit handler not being called, but in my case, the handler is being called; however, the entity is not being saved.  Specifically, I have a custom submit handler on a content type; when I press the button to call the handler, nothing is saved in the database:  function MYMODULE_form_node_CONTENTTYPE_form_alter(&$form, FormStateInterface $form_state, $form_id) {    $form['actions']['submit_publish'] = array(     '#type' => 'submit',     '#weight' => 999,     '#button-type' => 'danger',     '#value' => t('Submit for approval'),     '#submit' => array('MYMODULE_draft2submit_callback'),   ); }  function MYMODULE_draft2submit_callback(array &$form, FormStateInterface &$form_state) {   $form_state->setValue('moderation_state', 'submitted'); }   So I thought since the node is not being saved, maybe I have to do it manually.  , I did this:  function MYMODULE_draft2submit_callback(array &$form, FormStateInterface &$form_state) {   $form_state->setValue('moderation_state', 'submitted');   $node = $form_state->getFormObject()->getEntity();   $node->save(); }   However, in this case, the node is saved, but none of the submitted values (the node body, for example) are saved; everything added by the user is ignored, as is the setValue() in my callback.  I only want to set the moderation_state in my custom form submit handler; in all other ways, I want my custom submit handler to be the same as the normal submit handler (i.e., I want it to save the node).  What am I doing wrong?


I did some mathematical induction problems on divisibility   $9^n$ $-$ $2^n$ is divisible by 7. $4^n$ $-$ $1$ is divisible by 3. $9^n$ $-$ $4^n$ is divisible by 5.   Can these be generalized as $a^n$ $-$ $b^n$$ = (a-b)N$, where N is an integer? But why is $a^n$ $-$ $b^n$$ = (a-b)N$ ?  I also see that $6^n$ $- 5n + 4$ is divisible by $5$ which is $6-5+4$ and $7^n$$+3n + 8$ is divisible by $9$ which is $7+3+8=18=9\cdot2$.  Are they just a coincidence or is there a theory behind?  Is it about modular arithmetic?


Single word describing doing the right thing for the right reason

I’m looking for a single word or short word group that describes doing the right thing for the right reason, or a person who does the right thing for the right reason


What type of gift could I give to my PhD advisor?

I will be defending my dissertation in this Summer and I'm planning to give a gift to my advisor. I'm not quite sure what would be the best and meaningful gift for a professor receiving from his/her student. Main reason I'm asking this questions is that I'm an international student and not sure what would be most suitable. It's usually a general understanding in my homeland that we give some gifts to the professors that stays for long time. In other words, we avoid giving Champagne, Wine, or something to eat rather a shirt, pen set, etc. Any idea from the american life perspective will be appreciated.


Finding two numbers given their sum and their product

Which two numbers when added together yield $16$, and when multiplied together yield $55$.   I know the $x$ and $y$ are $5$ and $11$ but I wanted to see if I could algebraically solve it, and found I couldn't.   In $x+y=16$, I know $x=16/y$ but when I plug it back in I get something like $16/y + y = 16$, then I multiply the left side by $16$ to get $2y=256$ and then ultimately $y=128$. Am I doing something wrong?


I am a student and I had this question asked in my viva voce today and I hadn't even heard about it before.  I have searched over the internet about it and I always found the results to be very confusing and hard for me to interpret and understand.  Please, can any veteran present on this community explain it to me in a simple language.  I don't want to ask for any spoonfeeding but I tried my best to search for it and just couldn't understand a thing.  Please, explain it to me in a simple language(I am good at programming, but yet I found this concept hard to understand).


Related to   There's no "pam_lastlog" lines on BOTH servers' /etc/pam.d/sshd file. But "Machine 2" output the time. (and Machine 1 don't). The only differences are(sshd_config):     (1) LOGIN BY PUBKEY   PubkeyAuthentication yes   AuthorizeKeysFile /xxxx   PasswordAuthentication No      (2) LOGIN BY USER+PASS ('PasswordAuthentication Yes' is not exist)   PubkeyAuthentication No   Of course, I always update them using apt-get. Why this is different?     (1)   :~$ lastlog   /var/log/lastlog: No such file or directory   :~$ sudo su   :~# lastlog   /var/log/lastlog: No such file or directory   uname -a   Linux X 3.16.0-4-686-pae #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) i686 GNU/Linux      (2)   :~# lastlog   Username         Port     From             Latest......   uname -a   Linux X 3.16.0-4-686-pae #1 SMP Debian 3.16.39-1 (2016-12-30) i686 GNU/Linux   apt-get dist-upgrade   0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


What is the maximum possible frequency and wavelength?

As a start I assumed  which is the reciprocal of  as the frequency upper limit, but not so sure. On the other hand, is there a lower limit? Can we consider the reciprocal of our universe as a theoretical limit which is not yet limited, or just assume 0? I am just curious to know if you have any ideas with thanks.


root user not loading vars in /etc/profile.d/prompt.sh

I've got a simple bash script, /etc/profile.d/prompt.sh that loads some environment variables for use in a prompt. The vars show up fine in the a regular admin account but not for root's account. How do I get the root account to load the /etc/profile.d/prompt.sh script? Why doesn't this work out of the box? Would it hurt to just source the prompt.sh script manually in root's .bashrc file? I should mention I'm using debian gnu/linux.


raid 5 over 12 disks and failed two hard can rebuild

i have installed 12 hard drives 4 TB Black Caviar make raid 5 and suddenly failed two drives at same time can rebuild raid if i replace failed drives with new drives. my data is still available  or not data is very important.


Less than a month left on national type D visa from Malta. Can I still enter the Schengen area?

I was issued a 1-year multiple-entry national type D visa for Malta, and now I have less than a month left before it expires. A month ago, I entered another Schengen state with this visa for a 3-day trip. Since I have less than a month left on the visa, and I have already entered another Schengen state, am I still eligible to travel to other Schengen states?


How to escape wildcard in path when using sudo -u  command

I need to access a file on an NFS fileserver where root squash is turned on. I'm using bash on Arch Linux. I am using this type of command:  # sudo -u authduser ls /mounted/filesystem/path/aa.user.js   This succeeds and the output is:     /mounted/filesystem/path/aa.user.js   However, there are multiple files, such as bb.user.js. When I try the following command it fails:  # sudo -u authduser ls /mounted/filesystem/path/*.user.js   The output is:     ls: cannot access '/mounted/filesystem/path/*.user.js': No such file or directory   I have tried quoting, escaping and various other things without success. What is the correct way?


What is that springy thing on the head of the tripod?

There are two thing on the head of the tripod, one is the screw and the other is this springy thing. I always wondered, what does it do?


Where's the Notification Center sound (aka Tri-tone) stored on the filesystem in 10.13?

NOTE: This is not actually a duplicate of the "" question that folks had thought previously, but it is more or less answered there.  This "Tri-tone" audio file is not in /System/Library/Sounds, but it is located here:  /System/Library/PrivateFrameworks/ToneLibrary.framework/Versions/A/Resources/AlertTones/sms-received1.caf  Been hunting for a bit, but not finding it.  I'd like to find Tri-tone which also serves as the Notification Center sound for all general notifications that come into the system.  I'm not seeing an AIFF file that matches it in /System so I'm kinda shooting blanks.  .


EDIT: The following code is run through Microsoft Visual Studio 2013  I have the following script:  #include "stdafx.h" #include <iostream> #include <boost/filesystem.hpp>  using namespace boost::filesystem;   int main(int argc, char* argv[]) {      if (argc < 2)     {         std::cout << "Usage: tut1 path\n";         return 1;     }     std::cout << argv[1] << std::endl;     std::cout << "File Size is: " << file_size(argv[1]) << std::endl;       return 0; }   But when I run it with ctrl+f5, I get this message (which is predicted by an if-condition in the code itself:  Usage: tut1 path   It seems the number of arguments is lower than 2.  Why this happens? How should I avoid this problem?  EDIT:  When I remove the following line:  std::cout << "File Size is: " << file_size(argv[1]) << std::endl;   I get the "Filing.cpp" printed on my console which means argv[0] value is Filing.cpp that further shows argv is getting the commands from command arguments of Debuger of project correctly.  But when I add the line again, I see the message "Filing.exe not found or not built by the last incremental link;"


If $f$ is Riemann integrable on $[0,1]$ then $\lim\limits_{n\rightarrow\infty}\frac{1}{n}\sum f\left(\frac{k}{n}\right)=\int\limits_{0}^{1} f(x)dx$

I need to prove that if $f$ is Riemann integrable $[0,1]$ then $$\lim\limits_{n\rightarrow\infty} \frac{1}{n}\sum f\left(\frac{k}{n}\right)= \int\limits_{0}^{1} f(x)dx$$  My idea is to recognize the right side defining the limit as a Riemann sum and use the uniform continuity.  I am not sure what to do next  Thanks


Creating Custom Ubuntu distrubution with custom users, files and packages

My requirement is to make a Custom Ubuntu 16.04.5 version in which the customization that i want is addition of two different users some new files in each of these two users and some new packages or drivers which i will either install with apt or pip or will build from source itself (like OpenCV).  This custom OS is expected to be used to installed on different hardwares which might vary in terms of motherboard, RAM and HDD/SSD.  Can you suggest me some software best suited for this task? I heard of Cubic also but will it works for creating users and building packages from source?  Or Setting up one machine with all settings and packages and taking a backup of the same as live CD using some tools like systemback etc will work across different hardware?   Edit: This is not duplicate to any other question as it has addition of user in custom Ubuntu and no answers have ever mentioned it.


Angular momentum and conservation of energy when sitting on a spinning chair

Usually, the spinning chair problem is one of the typical angular momentum problems. And most of them start with a person holding two dumbbells on his two hands and bringing his arms in, then by conservation of angular momentum, the angular speed increases when he brings his arms in, and since the person is exerting force for a certain displacement to bring the dumbbells in, the kinetic energy increases since positive work is done. But now, if I start the other way round, where the person first has his arms brought in, and after that spread out his arms. Then by conservation of angular momentum, the angular speed decreases since the moment of inertia increases. In this case, it seems that kinetic energy is lost, but I think the person needs to exert force to bring the things out? Then is there any work done by the arms? And also, is there any loss of energy? Or the work done is stored in some other forms? Thank you for any replies.


New Geocoded Points Layer Misaligned With Polygon Layer

I learned on ArcGIS, and I'm familiarizing myself with the use of QGIS.  So far I love it, but the process of re-projecting and transforming datums seems less intuitive than in Arc.    I recently geocoded 63 locations, pulled in the csv and transformed into a points shapefile. I then set the projection for that points layer as the same for my block groups multi-polygon (EPSG 102121- NAD_1983_Michigan_GeoRef_Feet_US).    The 2 layers are still misaligned, even if I save each layer with the specified projection and try to reopen in a blank project.  Can anyone help?


So im trying to compare 2 variables of type double. I have 2 arrays as follows:  double xPosRobots[1]; double Map[10][4] = {         //{X1, Y1, X2, Y2}         { 0, 3, 1, 4 }, //Grid 1         { 1, 3, 2, 4 }, //Grid 2         { 2, 3, 3, 4 }, //Grid 3         { 3, 3, 4, 4 }, //Grid 4         { 4, 3, 5, 4 }, //Grid 5         { 5, 3, 6, 4 }, //Grid 6         { 6, 3, 7, 4 }, //Grid 7         { 6, 2, 7, 3 }, //Grid 8         { 6, 1, 7, 2 }, //Grid 9         { 6, 0, 7, 1 }  //Grid 10     };   I have a for loop which increments the value in xPosRobots as follows:  for(int i=0; i<numRobots; i++){    if(curGridRobot < nextGridRobot){       xPosRobots[i] += robotSpeed * clock_period;     } }   where robotSpeed = 1 and clock_period = .005.  Then, i check the value of xPosRobots[i] to see if im crossing a boundary as follows:  if(xPosRobots[i] == Map[1][0]){    //Crossing boundary    //Update grid position }   Right now, I only have 1 robot so xPosRobots[i] is only size 1, but I plan to add more robots so just leaving it flexible.  The issue im having is when im comparing xPosRobots with Map. Map[1][0] is set to 1 and it doesnt seem to trigger the if condition.  Likewise, when i tried to check it by doing if(xPosRobots[i] == 1) but this also doesnt seem to work since my code skips over it when when xPosRobots[i] = 1 and i think its probably due to the level of precision that comes with double? So my question is, what's a good way to go about doing this type of comparison when im dealing with 3 decimal point precision?


Isaac Asimov gives significant attention in his  Foundation novels to how the Imperial capital and planet-wide city Trantor is maintained, discussing how entire planetary systems are needed simply to keep the populus feed.   Is anything similar mentioned in Star Wars, as to how the massive population of  Coruscant is kept fed and supplied day to day?


Which offences result in indirect free kicks?

If a player commits a direct free kick offence in their own penalty area, this results in a penalty kick instead of a direct free kick. However, if the offence is an indirect free kick offence, it remains as an indirect free kick .  What offences result in an indirect free kick?


Is it possible to get the user_path in the User model?  I'm trying to implement the following method:  def link_path    link_to self.name, user_path(self.id_ end   But i'm getting that user_path is undefined. Any ideas?


I am 61 years old and have about $60,000 in credit card debt. I have about $130,000 in IRA mutual funds. I am also paying off 1st mortgage and a line of credit, so I am gaining equity with those. I am current on everything but am just paying min.s on credit card debt. Does it make sense to take a withdrawal from retirement accounts to pay off that credit card debt. All the cards have a min of 10 % up to 17%. I am not making any headway. Since I am over 59 would I be exempt from the 10% penalty?


import java.util.*;  public class test {  public static void main(String[] args) {     Scanner Input = new Scanner(System.in);       int[] guess;     guess = new int[6];      for(int i =0 ; i<5;i++)     {         guess[i] = Input.nextInt();     }      **int[] cypher = encryption(guess);**     System.out.print(cypher);  }  public static int[] encryption(int[] guess) {      int[] cypher = null;     int end = guess.length;     for( int i=0 ; i< end ; i++)     {       **cypher[i] = guess[i] + 1;**     }     return cypher;  }  }   I tried to use an integer array(cypher) to hold an integer array(guess) after coming out of a function(encryption). However, this program doesn't work.The below notifications came out.   Exception in thread "main" java.lang.NullPointerException  at test.encryption(test.java:31)  at test.main(test.java:19)   Why? how can i correct it?  Thank you guys


How to reattach event bindings after DOM is completely changed

I am working on a C# Razor site and I am POSTing from a boostrap modal which then returns a new view and model. To reload the entire page with the response, I am using the following line within this code block.  $("html").html(response);   function addDevice(e) {         e.preventDefault();         var ID = $("#txtNewDeviceID").val();         var Name = $("#txtNewDeviceName").val();          $.post('@Url.Action("AddDevice", "Devices")', { 'DeviceID': ID, 'DeviceName': Name }, function (response) {             $('#newDeviceModal').modal('hide');             $("html").html(response);             AttachBindings();         });     }   Here is the code behind AttachBindings():  function AttachBindings() {         $(document).on('click', 'table tr', {}, tableClick);         $(document).on('keyup', '#search', {}, search);         $(document).on('click', '#btnAdd', {}, function (e) {             addDevice(e);         });         $(document).on('click', '#btnRemove', {}, function (e) {             removeDevice(e);         });         $(document).on('click', '#btnUpdate', {}, function (e) {             updateDevice(e);         });     }   Unfortunately AttachBindings() is never hit and I can't seem to find a way to reattach these events. The only event that seems to work is keyup which is attached to #search.  Any ideas on how to fix this?


I have got two 2 subdomains for the domain example.com. Which is remote.example.com and archive.example.com.  Apache is taking requests for all subdomains leading always to the same virtual host.  The Server is listening to port 8082.  This is my virtual hosts file /etc/apache2/sites-available. archive.example.com-conf:  NameVirtualHost archive.example.com:8082  <VirtualHost *:8082>     ServerAdmin webmaster@example.com     ServerName archive.example.com     DocumentRoot /var/www/archive </VirtualHost>   When I enter remote.example.com in the browsers address line it os being routed to the same virtual host as archive.example.com.  Output of apache2ctl -S:  AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/archive.example.com.conf:1 VirtualHost configuration: *:8082                 archive.example.com (/etc/apache2/sites-enabled/archive.example.com.conf:3) ServerRoot: "/etc/apache2" Main DocumentRoot: "/var/www/html" Main ErrorLog: "/var/log/apache2/error.log" Mutex default: dir="/var/run/apache2/" mechanism=default Mutex mpm-accept: using_defaults Mutex watchdog-callback: using_defaults PidFile: "/var/run/apache2/apache2.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="www-data" id=33 Group: name="www-data" id=33


What happens if I use RAM of a faster speed than the CPU supports?

Looking at the  CPU, under Memory types it says "DDR3-1333/1600". My question is, in what way does the CPU limit the RAM speed? What would happen if I put in a DDR3-2133 RAM chip together with the CPU, if the motherboard supports the faster RAM speed? Would it be better to get a RAM chip that is DDR3-1600 so it matches the CPU's listed frequency?


I moved to a new apartment and under the far left burner is a hole into the oven:    That is my pizza stone you are seeing through the hole.   I understand that the oven needs some ventilation, but this seems like it would cause a lot of heat loss. Indeed the burner and any pan sitting there get quite warm while the oven is in use, I can boil water with the excess heat if a kettle is left there long enough (and the oven is very hot, like when I bake bread).


I have read these questions:              where it says:     A spinning charged particle constitutes a magnetic dipole. Its magnetic dipole moment μ is proportional to its spin angular momentum S:   μ=γS   the proportionality constant γ is called the gyromagnetic ratio.     where the comments say:     Because in a magnet, the atomic electrons are moving around their respective nuclei constituting a dipole and the dipoles are aligned in same direction to give net magnetic dipole moment.    So one is saying that magnetic dipole moment is caused by spin angular momentum, which is the intrinsic spin of an electron, the other one says that magnetic dipole is cause by electrons orbiting (orbital angular momentum) the nuclei (of course as per QM they are not classically orbiting).  So which one is right?  None of these questions says whether the magnetic dipole moment at QM level is caused by the intrinsic spin of electrons or the bound electrons' (OAM) orbiting (as per QM existing at a certain energy level) around the nuclei.  Question:   Which one is right, is the magnetic dipole moment as per QM caused by the intrinsic spin of electrons or by electrons orbiting (OAM) the nuclei existing around the nuclei at a certain energy level?


How can I redirect mydomain.com traffic to www.mydomain.com without affecting email?

I'm very new to this so bear with me. I have a NameCheap account for DNS, an Amazon AWS Elastic Beanstalk account for hosting, and a Google GSuite account for email.  I want to set up my DNS so traffic from both mydomain.com and www.mydomain.com goes to my AWS site. At first, only www traffic was getting through. Then I added the "@" record below and it started working, but I think it might have broken my email because now I'm not receiving anything. It used to work and I didn't modify any of the MX records.  Type            Host   Value CNAME Record    @      mydomain-prod.us-east-2.elasticbeanstalk.com. CNAME Record    www    mydomain-prod.us-east-2.elasticbeanstalk.com.   How do I configure my DNS so traffic from both mydomain.com and www.mydomain.com goes to my AWS site and my email still works?  Edit - I don't think that this question is a duplicate. I'm asking how to make my email work with forwarding my bare domain to www. The linked question doesn't mention email and doesn't answer my question.


Tikz \pmb results in 2 overlapping letters

For some reason, there seem to be 2 overlapped images of letters inside \pmb{} of the tikz draw feature. Here is a MWE  \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{tikz} \begin{document}  \begin{tikzpicture}[scale=10]     \draw (0,0) node {$\pmb{B}$}; \end{tikzpicture}  \end{document}   I didn't notice it at first, but if you zoom in, you can see two of the same letter overlapped.. Any idea how to make only one bold letter appear? Any help or work-arounds are appreciated!


Proof that the exponential function is the only solution to dy/dx = y, y(0) = 1

I understand that assuming an analytic solution, we look at the Taylor series and arrive at a unique solution y = exp(x). However how do we know that there are no other non-analytic solutions? (Ideally with as little analysis machinery as possible)


Why is a material condition true if its antecedent is false?

So I ran into the "drinker's paradox" the other day, which compelled me to learn about the nature of the logical material conditional. But when I studied the truth table (below) I got pretty confused.  The first two rows make sense, but I don't understand the justification for the bottom two. It seems to me that if you want to test the truth of the material conditional, P must be true; otherwise you can't know how its truth affects the truth of Q (after all, P → Q literally means "if P is true, Q is true"). So, if P is false, how would you go about proving that the material conditional is true? And if you can't, then why is it asserted to be true in the truth table? Am I being an idiot? Thanks.


Good morning. If I wanted to extract the LaTeX code from a pdfLaTeX document, what should I do? Thank you so much.


Is there a unique solution for this quadratic matrix equation?

Here is the quadratic matrix equation I've been looking at lately:  $$ Q_{r,r}=A_{r,r}X_{r,r}^2+B_{r,r}X_{r,r}+C_{r,r}=0_{r,r} $$  Note that $A, B, C,$ and $X$ are $r \times r$ matrices. $A$ contains known elements, $B$ contains known elements, $C$ contains known elements, and $X$ contains the unknown elements that you are solving for. $ 0_{r,r} $ is just the $r \times r$ null matrix.  Is there any solution for $X$ in terms of $A, B,$ and $C$ (making no easy assumptions)? (e.g. $X$ is a diagonal matrix, $A=B=C$, or anything of that sort.)  I have tried to solve this and nothing has worked out. I attempted solving it generally by manipulating the matrices in variable form (i.e. actually writing out the matrices $A, B, C,$ and $X$ in variables) and finding a unique solution for all of the elements of $X$ in terms of the elements of $A, B,$ and $C$. That didn't work out beyond the case of $r=1$.  Trying to solve it by looking at $r$ at different values did not work out either; I ended up with very abysmal equations at just $r=2$. I don't know exactly how to make this appealing to the denizens of math.stackexchange, but it (as far as I know) isn't a heavily studied problem.  There is a very high possibility that I've just been doing elementary techniques and nothing of note, so I hope someone or a group of people could shed light on this.


how to upgrade to latest version of ubuntu?

I have Ubuntu 10.10 installed in my laptop. How can I upgrade it to the latest version without upgrading to 11.04? Also how much time will this take? I do not want to lose any data. I also have Windows 7 in my machine.


Why missing \endcsname with tikz-cd when using babel?

Why do I get the error Missing \endcsname inserted at line 15?  \documentclass{article}  %\usepackage[strict]{csquotes} %\usepackage[autostyle=true]{csquotes} \usepackage[T2A,T1]{fontenc} \usepackage[russian,main=english]{babel}  \usepackage{tikz-cd}  \begin{document}  \begin{tikzcd}   f \arrow[d, "\partial"] \\   g \end{tikzcd}  \end{document}   Again I get the error if instead of option russian I use:  \usepackage[T1]{fontenc} \usepackage[german,main=english]{babel}   As the commented-out preamble lines show, I tried to invoke package csquotes, in two different ways, to avoid the problem, but that failed, too.  I do not get the error with babel option french however, as in:  \usepackage[T1]{fontenc} \usepackage[french,main=english]{babel}


Resolving nested dependent summation $ \sum_{i=1}^{n-1} \sum_{j=i+1}^{n} j $

I have the following summation:  $$ \sum_{i=1}^{n-1} \sum_{j=i+1}^{n} j $$  In which the inner sum depends on the outer one, in the index on the bottom.  Is there a way to change the indexes in order to remove the dependence?  What is the easiest way to get a closed form from it?


Command to see files ignored by the .gitignore

How can I get a list of all the files and directories currently ignored by git, via a .gitignore file (or files with the same functionality, if there are any)?


$D := U(z_0,r)\setminus \bigcup_{n=1}^{\infty} \{z_n\}$, $z_n$ poles, prove $f(D)$ is dense in $\mathbb{C}$.

I'm looking at the following complex analysis problem.   Suppose that $f$ is analytic in $D := U(z_0,r)\setminus \bigcup_{n=1}^\infty \{z_n\}$, all the points $z_n$ are poles, and $z_n \to z_0$. Prove $f(D)$ is dense in $\mathbb{C}$.  I feel like I have to define some function and manipulate it somehow, but I haven't been able to come up with a function that works. Can you help?


What ingredients can I add to no-knead bread to extend its life?

Is there anything I can add to a standard no-knead bread recipe to allow the bread to stay softer for longer? Bread baked the night before, while still edible, is not as pliable the next midday.  I currently use bread flour, yeast, salt and water but was thinking of adding milk, butter or eggs. If there is a single food additive I can add I would consider this, but I don't want to adulterate the recipe too much.


Prove or disprove {$\sum_{i=1}^n x_i^2 = 1$} is convex

I have to prove or disprove that    {x ∈ $\mathbb{R}^n$: $\sum_{i=1}^n x_i^2 = 1$} is convex.  I don't even understand what kind of set this is, i.e. which values of $x$ are in this set.  I know that I gotta use the following for a prove:  A set $\Omega \subset \mathbb{R}^n$ is convex if $ \alpha x+(1−\alpha)y \in\Omega,∀x,y \in\Omega$ and $∀ \alpha ∈[0,1]$.  But maybe a disprove would be easier?


Haven't been able to find how to do this without an IDE (got this far without one).  I have a couple libraries I imported into my code, here are a few examples.  import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.DataFormatter; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory;   I have the following file structure:   root dir = RackSerials    sub dir lib - where all .jar import files are included  sub dir tdms - all my .class files    I tried including all the .jar files in my manifest  Main-Class: tdms.rackserials Class-Path: lib.commons-collections4-4.2.jar lib.commons-compress-1.18.jar lib.json-20180813.jar lib.json-simple-1.1.1.jar lib.poi-4.0.0.jar lib.poi-ooxml-4.0.0.jar lib.poi-ooxml-schemas-4.0.0.jar lib.xmlbeans-3.0.1.jar   However if I move my JAR to another computer (that does not have the required libraries installed) it errors out with:  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/WorkbookFactory   I found this NOTE in another thread.. so how do I include those other JAR files (the imported libraries) to make my package portable?     Note: The Class-Path header points to classes or JAR files on the   local network, not JAR files within the JAR file or classes accessible   over Internet protocols. To load classes in JAR files within a JAR   file into the class path, you must write custom code to load those   classes. For example, if MyJar.jar contains another JAR file called   MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's   manifest to load classes in MyUtils.jar into the class path.


I get an error -      xdvipdfmx:fatal: sfnt: Freetype failure...   - when trying to use Google Noto fonts. How should I proceed?  MWE:  \documentclass[a4paper,12pt]{article} \usepackage{xeCJK} \setCJKmainfont{Noto Sans CJK JP}  \begin{document}  すもももももももものうち。  \end{document}


How do I set my age and location on my user page?

At the bottom of every question, answer, or comment there is a name of a user who posted it. Clicking on his name allows you to see some information about him (for example his age, location, etc.).  How do I post information about myself so that when my page is clicked, my age and location will be there?  I am using an Android.


I'm trying to prove the following statements in Folland's book.  Let $(X,\mathcal{M},\mu)$ be a measure space. If $f_n\to f$ in measure and $g_n\to g$ in measure, then $f_n+g_n\to f+g$ in measure and $f_ng_n\to fg$ in measure (in this last case, assume $\mu(X)<\infty$).  The first one is already done, but the second one is giving me trouble.   My attempt: We can take subsequences $f_{n_k}$ and $g_{n_k}$ such that $f_{n_k}\to f$ a.e. and $g_{n_k}\to g$ a.e. In this case, we know that $f_{n_k}g_{n_k}\to fg$ a.e. Note that $\mu(X)<\infty$, so we can use Egoroff's theorem to conclude that $f_{n_k}g_{n_k}\to fg$ almost uniformly. Finally, almost uniform convergence implies convergence in measure, therefore $f_{n_k}g_{n_k}\to fg$ in measure.   The problem is that I just have convergence in measure for some subsequence of $f_ng_n$ and I need convergence in measure for the whole sequence. Also I don't know if using Egoroff's theorem is unnecessary, if this is the case, I would appreciate to see some more elementary prove.  Detail: We say that $f_n\to f$ almost uniformly if for every $\varepsilon > 0$ there is some $E\subset X$ measurable, such that $\mu(E) <\varepsilon$ and $f_n\to f$ uniformly on $E^c$.  Thank you!


I would like to understand how Physicists think of space-time in the context of String Theory. I understand that there are $3$ large space dimensions, a time dimension, and $6$ or $7$ (or $22$) extra dimensions, and all these dimensions need to fit together in a way such that the extra dimensions are compactified (with a Calabi-Yau or $G_2$ structure).   My question, however is not about the possible $10$, $11$ or $26$ dimensional manifolds that may be possible, but about whether string theorists consider space-time as somehow quantized (or discrete), or rather as a continuous manifold, or are both options possible? In other words, can strings move continuously through space, or are there a discrete set of locations where strings can be, and does string theory rule out one of the options?  How about the same question in loop quantum gravity (LQG)? Should I think of the spin networks in LQG as describing a discrete space-time?  Thanks for your insight, or any references you may be able to provide!


Best way to declare an array of NSInteger in objective-c

In the header file I want to declare an array of NSInterger, what's the best way to do that? I try this code, but it lead to an error  @interface test:NSObject { } @property(nonatomic,readwrite)NSInteger f[4]={1,2,3,4}; // Error!!! @end


Is it possible to change operator's bl_label on the fly?

I'd like to update the label of an operator when it's called. But this :  def execute(self,context):     self.bl_label = "good night"   ... apparently doesn't work if the bl_label property has already been defined. Am I wrong ?


Can I Install ubuntu 14.04LTS alongside Windows Vista?

Will Ubuntu 14 work alongside Windows Vista (on a PC), or do I need to choose Ubuntu 13 or 12 instead?


yn560tx is not connecting to 560iii flashes

Have anyone ever had a problem with the yn560tx not connecting to the 560iii? It was working at one point of time and the night i used it, it just stopped firing the flashes. I have already tried resetting it to factory mode, changing the channels and groups but nothing has worked.


Sample out one element from each row of file until k

I am new to UNIX and am trying to learn basic level text processing in UNIX so maybe this question may seem very basic but I would really appreciate any guidance.  I have a text file as below  A 1 B 2 C 9 D 1 A 5 B 3 C 4 A 6 C 7 A 5 C 1   for which I was able to piece together a command with some help as below  cat | awk 'BEGIN{OFS=FS=" "}!(($1,$2)in c){c[$1,$2]=1;r[$1]=r[$1] OFS $2} END{for(i in r){print i r[i]}}'   inside a shell script to get it to the format below:  A 1 5 6 5 B 2 3 C 9 4 7 1 D 1   My shell script will also take an argument k  (=7 say)  In this case, my script should sample 1 element from each box (A,B,C,D) until it has a total of 7 elements sampled. This will be like follows: First pick 1 from A, then 2 from B, 9 from C, 1 from D, 5 from A, 3 from B, 4 from C and display  A 1 5 B 2 3 C 9 4 D 1   If instead I had k = 9 as my input, then my output should be  A 1 5 6 B 2 3 C 9 4 7 D 1


How do we know the Taylor expansion for $e^x$ works for all $x$? Or that it's analytic?

Let's say I want to use Maclaurin series to get the series expansion $S(x)$ for $f(x) = e^x$ where $S(x) = c_0x^0 + c_1x^1 + c_2x^2 + c_3x^3 + ...$  $f(0) = S(0) = c_0 = e^0 = 1$ so that's fine.  $f'(0) = S'(0) = c_1 = e^0 = 1$ again, fine.  $f''(0) = S''(0) = 2c_2 = e^0 = 1$ so $c_2 = 1/2$, fine.  $f'''(0) = S'''(0) = 6c_3 = e^0 = 1$ so $c_3 = 1/6$, fine.  $f''''(0) = S''''(0) = 24c_4 = e^0 = 1$ so $c_4 = 1/24$, fine.  And so on, so we conclude that $c_k = \frac{1}{k!}$ so then:  $$S(x) = \sum_{k=0}^{\infty} \frac{x^k}{k!}$$  But now what I don't understand is what allows us to go "Furthermore, $S(x) = f(x)$ for all $x$"! In fact what makes it valid for us to plug any other number other than $x=0$ into this? I see this equation used as a straight-up equivalent to $e^x$ even though we used $x=0$ and nothing else.  So I thought I would try it with a neighborhood of $1$ instead to see what happens:  $S(x) = c_0(x-1)^0 + c_1(x-1)^1 + c_2(x-1)^2 + c_3(x-1)^3 + ...$  $f(1) = S(1) = c_0 = e^1 = e$ so that's fine.  $f'(1) = S'(1) = c_1 = e^1 = e$ again, fine.  $f''(1) = S''(1) = 2c_2 = e^1 = e$ so $c_2 = e/2$, fine.  $f'''(1) = S'''(1) = 6c_3 = e^1 = e$ so $c_3 = e/6$, fine.  $f''''(1) = S''''(1) = 24c_4 = e^1 = e$ so $c_4 = e/24$, fine.  Looks pretty similar:  $$S(x) = \sum_{k=0}^{\infty} \frac{e(x-1)^k}{k!}$$  and, in fact, for a neighborhood of $x=a$:  $$S(x) = \sum_{k=0}^{\infty} \frac{e^a(x-a)^k}{k!}$$  Now we have $e$ inside the function expansion for $e^x$ which seems a little circular?  I guess my question is this: We created the function $S$ to have the same-valued $n$th derivatives as $f(x)$ but only at $x=0$ or $x=1$, or $x=a$, etc, but the series representations look different depending on which neighborhood I pick, and in some cases the expansions seem to include the very number we're trying to describe.  How do we know which is "right" or that it is even "right" to use for all $x$? I know the usual response to this is that it's equivalent when $f(x)$ is analytic but that doesn't help me at all because it says the function is analytic when the Taylor series around $x_0$ converges to the function in a neighborhood around $x_0$ for all $x_0$ in the function's domain. But how do I know this?  Yet again feels circular... just working through these two examples makes me wonder, how do I know these series converge to the function itself? How do I know they're equivalent representations? Am I supposed to avoid the self-referencing?  I'm looking for some context behind how to make sense of these two Taylor series and how I am supposed to know that $e$ is analytic or that I can use $S(x)$ for any $x$ I want even if I only computed it for the neighborhood around $x=0$.


how do I to edit table's caption's name ?    Transformation : "Table" --->> "Tableau"


How can I add options to a custom made command?

I want to add options to a custom command. I create my commands by putting a .sh document in /bin. Is it possible to add a "-x" option to my code? (i.e. customcommand -c)


Allowing for multiple lines in legend of ArcGIS Desktop?

How can I force the description text in my legend to occupy more than one line?   This is basically the same question as .   However, I want to use Categories/Unique values and not Features as my Symbology style, in which case there's no Description button. Even when I change to Features, it seems I can't use multiple lines (I suppose that there's been some changes to this functionality).   How would I go about getting the description/header text across multiple lines?


I want to install phpmyadmin from the repository, but I don't want to change my current php versione. The default apt command would install php8... but php8 it is to early for me. How can I install phpmyadmin with APT without dependencies?


Combine column from multiple rows into single row

I've got some customer_comments split out into multiple rows due to database design, and for a report I need to combine the comments from each unique id into one row. I previously tried something working with this  trick but I can't recall it and must not have saved it. I can't seem to get it to work in this case either, only seems to work on a single row.  The data looks like this:  id  row_num  customer_code comments ----------------------------------- 1   1        Dilbert        Hard 1   2        Dilbert        Worker 2   1        Wally          Lazy   My results need to look like this:  id  customer_code comments ------------------------------ 1   Dilbert        Hard Worker 2   Wally          Lazy   So for each row_num there's really only one row of results; the comments should be combined in the order of row_num. The above linked SELECT trick works to get all the values for a specific query as one row, but I can't figure out how to make it work as part of a SELECT statement that spits all these rows out.   My query has to go through the whole table on its own and output these rows. I'm not combining them into multiple columns, one for each row, so PIVOT doesn't seem applicable.


Compatibility with Ubuntu: Acer Aspire Revo RN86 Mini-PC Intel i5-9400T

I apologize in advance if this does not fit the scope of this forum. However I'd like to bring up the question if anything is known about Ubuntu compatibility for this bundled desktop computer: Acer Aspire Revo RN86 Mini-PC Intel i5-9400T 6x 1,80GHz, 8GB RAM, 256GB SSD


bind_param problem with binding boolean values

I have a problem binding booleans using mysqli_stmt::bind_param in PHP5. The SQL query is the following: insert into `nvp_notes` (subject,messageid,receivedate,read) values (?,?,?,?)  Where 'read' is a tinyint, either 0 or 1, as I've had issues with bit using mysqli. So the types that I list in bind_param are: $stmt->bind_param('sdsd', ...);  I've also tried 'sdsb' and 'sdss' but nothing seems to work, and I always get the message:  Warning: mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement  When I remove the read field in the statement everything works fine. I've run out of ideas with this one. Surely bind_param works with booleans?


How can you test what color different people perceive?

If I would show someone a yellow object and ask them, "is this object yellow?"  That person would say "yes".  But I could never know if my perception of the color yellow is the same as that other person's. Because he or she could actually be seeing, what I know to be the color green. But then tells me that its the color yellow because that has been taught to him or her from young age.  So how can you test if people are really seeing the same color? (originally posted this question on physics.stackexchange but was advised to try it here)


What type of questions do we need to ask on Meta?

What type of questions do we need to ask on Meta and why on Meta only?  Only stack-related website question do we need to ask or can we ask any other website-related questions?


Last night my PC here at work automatically installed updates, I have it set to do that of course. This morning I tried to start Virtualbox and unfortunately it no longer starts due to the updates. Turns out Virtualbox is hardening its security and after a lot of searching it appears one or more of the recent updates from last night broke Virtualbox.  Is there any way I can batch uninstall the last round of updates automatically? Like an undo? I looked in add/remove programs and under updates there are dozens of updates with todays date on them. I really need VB up and running.


Get parameter name only from given string

string mystring = "Display(String type1, String type2, String art3, String ar4, String art5, String art6, String arg7)"   Get parameter name only from above string like type1,type2,art5 etc..  How should i manipulate


My computer powered off the other day on its own, and now when I push the power button, nothing happens. My assumption would naturally be that the power supply is done (possibly well done) but is there any good way to test this before I buy a new one?


Independent and identically distributed samples

Say i am training a neural network and have 10 samples with 4 variables each and 1 label assigned to each observation. What does it mean to say that the samples are independent and identically distributed?  I know what IID variables are. And i have read statements such as "Because we usually assume that our samples are independent and identically distributed, the likelihood over all of our examples decomposes into a product over the likelihoods of individual examples:  text omitted". What exactly does it mean for the samples (here 4 variables and 1 class label) to be iid?


Prove that $(1+a_1) \cdot (1+a_2) \cdot \dots \cdot (1+a_n) \geq 2^n$

Let $a_1,a_2,\dots,a_n$ $\in$ $\mathbb{R}^+$ and $a_1\cdot a_2\cdots a_n=1$, , prove that $(1+a_1) \cdot (1+a_2) \cdot \dots \cdot (1+a_n) \geq 2^n$ I have tried factorising but it just lead me to extremily complicated equation that were extremily difficult to understand... Could someone help me?


Can I enter France with an Italian Schengen Visa under coronavirus situation?

I understand that there will be some issues.   I have got a single entery Italian Schengen Visa valid early April for 2 weeks. But because of the coronavirus, Italy is under lockdown, which means that I am unable to make my trip as planned.  Now if I changed my planned destination and to visit Greece (by flight via Paris) instead, can I enter France with my already issued Italian Schengen Visa?  I can provide my new air ticket and hotel reservations, but I won't go to Italy at all. What other options I can choose if I need to make the trip on the same dates?


what is happening to my shading mode? how can I solve it?

Here is how it looks like, the more I rotate my view, the more it gets like this. I think it has to do with my video card but I'm not sure... I have a radeum rx580


uninstall windows server 2008 and add disk space to ubuntu 12.04

I have windows 2008 and Ubuntu 12.04 installed. I want to remove windows server 2008 and add space to Ubuntu 10.04?How can i do this?


int n = 500;     for(int i = 0; i < n; i++)         for(int j = 0; j < i; j++)             sum++;   My guess is this is simply a O(N^2), but the j < i is giving me doubts.  int n = 500;      for(int i = 0; i < n; i++)         for(int j = 0; j < i*i; j++)             sum++;   Seems like an O(N^3)    int n = 500;      for(int i = 0; i < n; i++)         for(int j = 0; j < i*i; j++)             if( j % i == 0 )                for( k = 0; k < j; k++ )                   sum++   O(N^5)?  So for each loop j has a different value. If it was j < n*n, it would've been more straight forward, but this one is a tricky one, so please help. Thanks.


Is there any way to get Eevee to reflect like Cycles does? My settings for the scene are identical. I took a screen grab of the F12 render window in Cycles then again in Eevee (see picture) - no other changes were made. Only part of the sphere is reflected in Eevee but in Cycles it's perfect.  The background image is an HDR and no other lighting is used but I did try lighting the dark side of the sphere in Eevee but it made no difference so I cancelled the light source (point).


Story about astronauts who set off an alien warning beacon on the moon (or Mars?)

MY father and I were talking about sci-fi stories we've read over the years. He asked if I had ever read      "that one about those astronauts on the moon, or maybe Mars?. I don't remember much, except these astronaut guys discover this piece of   alien technology laying there on the ground, conspicuously unmarred   and free of the all-pervading Martian (or perhaps lunar) dust,   emitting a ringing or buzzing sound that could be heard through their   suits and the vaccum of space or whatever."   I suppose there was some back and forth dialogue between these cosmic pioneers and maybe even a dash of Mission Control piping in with their two cents from back on Terra Firma for flavor. However the details played out, human nature being what it is, these astronauts eventually reached down, said 'screw it,' and found the balls to pick it up.   The sound (signal?) stopped immediately. The artifact--I think he said it was box shaped and metallic--was some type of "Those crazy-ass hairless apes finally managed to crawl off their rock" detection system. So long as the insane little chimps were swinging from limb to limb, clubbing each other over the heads down on Mother Earth, the signal kept pulsing steadily out into space towards whatever planet these mysterious extraterrestrials called home sweet home.


I have a form that includes many checkboxes with the same name but with different values, when the form is submitted I get a single variable that has the name of the checkboxes and it contains a comma separated list values of each checkbox that was checked.  All this is OK, however, I have modified the form to disable some of the checked checkboxes which means that we cannot uncheck the checkbox, again this is OK and working. The issue that I have is that disabled checked checkboxes do not have a value when submitted.  Is there another property I can use that will include all checked checkboxes?


Remove keybinding in a specific app (X11)

Mac OS' X11.app uses certain key bindings that I'd rather send to the underlying X app in use. Specifically I'd like to pass Command+W and Command-1 (and -2, etc) to the X app in question.  Is there any way to disable keybindings in an app? I'm aware of the system dialog that allows adding additional keybindings, but that doesn't seem to allow removing them.  Or maybe there's a way that's specific to X11.app?


Is there possible to specific type of Generic Type in C#

I'm student and I wonder there're a way to specific a type for Generic type? Example, I has a IEntity interface as the code below    public interface IEntity<T> where T : // What I should input here? {     public T Id { get; set; } }   If I only want T is int, string, and Guid, what should I do? I tried do this:   public interface IEntity<T> where T : int, string, Guid // Compile Error:  //'int' is not a valid constraint. A type used as a constraint must be an interface, a non-sealed class or a type parameter. //'string' is not a valid constraint. A type used as a constraint must be an interface, a non-sealed class or a type parameter. //'Guid' is not a valid constraint. A type used as a constraint must be an interface, a non-sealed class or a type parameter. {     public T Id { get; set; } }   I can make T as IComparable for int, string and Guid, but some data type such as float also be delivered from IComparable too. I just want 3 type: int, string and Guid, is there able to do that?


Incrementing a date by one day but somehow decremented month by 1 at same time

I made a function that was supposed to add one day to the date string parsed, it worked like a charm except it's decrementing the month by one value per function call. I don't know why it's decrementing that way, I just wanted to increment the day by one.   Here's the fx :  private void setTarikh() throws ParseException {     FragmentJadual parentFragment = (FragmentJadual) getParentFragment();     int lastTarikh = parentFragment.hariArray.size() - 1;     String tarikhNewData = parentFragment.hariArray.get(lastTarikh).getTarikhHari();     SimpleDateFormat dateFormat = new SimpleDateFormat("dd / MM / yyyy");     Date d = dateFormat.parse(tarikhNewData);     Calendar calender = Calendar.getInstance();     calender.setTime(d);     calender.add(Calendar.DATE, 1);     SimpleDateFormat sdf1 = new SimpleDateFormat("dd / MM / yyyy");     String output = sdf1.format(calender.getTime());     mNewDay = calender.get(Calendar.DAY_OF_MONTH);     mNewMonth = calender.get(Calendar.MONTH);     mNewYear = calender.get(Calendar.YEAR);     mTarikhTv.setText("" + mNewDay + " / " + mNewMonth + " / " + mNewYear); }   I really tried looking at other functions that had problems but I can't even find a hint. Please help, at least to confirm that this function itself is true. I hate bugs but love them at the same time..!


Is it possible to appeal a refused Schengen visa? (Germany short stay holiday visa was refused)

I am from Sri Lanka and applied for a short stay holiday visa to Germany for two weeks from 30th Dec 2013 to 11th Jan 2014 with my two children age eight and ten. My husband did not apply due to his leave not being approved by his company.  But my visa application was refused and the reason mentioned was "your intention to leave the teritory of the member states could not be ascertained".  Can I appeal against that? And what documents would I need to appeal? I already gave my proof of my properties, company letter, our tax file, business registration, funding deatails etc.


UV Textures being distorted on rendering

I have a model of the TARDIS from the TV series 'Doctor Who' and I'm trying to apply a UV texture to one of the panels. In the 3D view it looks like I want it to. (if you ignore the pink textures)    The correct mapping in viewport   But, when I render it, the UV texture becomes distorted like this:    This part is important: I got this model from the internet and I don't know how the textures were applied to the model (I know it isn't UV mapping) and UV mapping is the only texturing method I know in Blender. There was originally a texture on that panel but I wanted to swap it for a better one (the one I am applying now)


Is there any way of converting the triangle fan found on a cylinder cap into quads.


Hi anyone knows how to evaluate this limit?  I let $P$ = the limit  Then $\log$ both sides to bring the $1/n$ power down.  After that I integrate it by parts and gotten until   $\log P = 2\log2 - 1$  But from here how to get rid of the $\log$ and get $P$?


Effective method to hide email from spam bots

On my homepage, I'm using this method to hide my email from spam bots:  Contact me   What do you think about it? Is it effective? What other methods do you know or use?


Empty y-axes label in tikzpicture-diagram

I'm searching for to code for a empty y-axis label. I don't want numbers on my y-axis. Any Ideas?   My code:  \begin{tikzpicture}         \begin{axis}[only marks, width=1.02\textwidth,height=0.2\textheight,         legend style={at={(1,1)},xshift=-13.25cm, yshift=-0.1cm,anchor=north west,nodes=left},              xtick={1700, 1725, 1750, 1775, 1800, 1825, 1850, 1875, 1900, 1925, 1950, 1975}, %=Intervals             x tick label style={/pgf/number format/1000 sep=},              y tick label style={/pgf/number format/1000 sep=},             %extra y ticks={456.1, 1022.4},             %extra y tick labels={{456,1},{1022,4}},             extra y tick style={grid=major,                 tick label style={, ,}},                 ymin=0.7,                 ymax=1.4,             ylabel={Phänomenbelege},             enlarge x limits=0.01]                \addplot  table [x=jahr, y=bla] {bla.txt};             \addplot  table [x=jahr, y=blub] {blub.txt};                         \legend{bla, blub}  \end{axis}     \end{tikzpicture}


What are these dark spots in my pictures?

I've been seeing these dark spots in my pictures. They appear a lot more on some pictures than others, but they are in the same place in the image and independent of the lens being used. Is this dust? I've also heard that you can get oil spots on the sensor.  The image is from a Nikon D7000.


The more upvotes a comment has the more red the number gets. But at a specific point the number of upvotes of a comment stops being red.   That is unfair. I vote for more red! No matter how many upvotes.


Is there a common underdispersed discrete distribution with unbounded support for general mean and variance?

I have a mean $\mu$ and a variance $\sigma^2$ with underdispersion, i.e., $\sigma^2<\mu$. Is there a standard discrete distribution with these moments and unbounded-on-the-right support, i.e., support on $\{0, 1, \dots\}$?   Bonus points if it is implemented in R.     I looked at the , but that is only defined if the size parameter $\frac{\mu}{1-\frac{\sigma^2}{\mu}}$ is an integer. The binomial and binomial compounds like the  have bounded support. So does the Generalized Poisson distribution () in the case of underdispersion, plus it can only handle underdispersion to a certain degree (note that Consul & Jain require $|\lambda_2|<1$ in formula (3.1)). The Generalized Poisson is Joseph Hilbe's main recommendation in . His other recommendations might be useful, but he gives no details on them, and searching for the names is not very successful.  is related but does not have a helpful answer. Quasi-Poisson models sound like they may be useful (e.g., ), but I haven't been able to find anything helpful outside the context of a regression.


Today I was told a tale by a Unix trainer where the root password got leaked to the students, and one of the fellas removed the execute permission from /usr/bin/chmod itself. How do you recover chmod in this case and make it executable again? Let's say getting it from an external source or recompiling it is not a preferable option, is there some smart hack that can recover this chmod itself?   Note that this happened a long time ago and I'm not looking for a solution for some current problem, just curious about what ways Unix provides us around such an issue.


I need to unpivot a table in PostgreSQL. The first dataset is what I have, the second is what I want:    Below is my schema with sample dataset:     My understanding is that you may have to use JSON functions to accomplish this in PostgreSQL, as it doesn't have an unpivot function as some other SQL variants do. I'm open to other solutions, though.


Iam aware that there is option "ignore this user everywhere" in chat. How about adding option "ignore this message".


What are the numbers after program names in Linux/GNU documentation?

I see numbers in parentheses after program names and it confuses me. For example, perldoc mentions that perl grep is "similar in spirit to, but not the same as, grep(1) and its relatives."  What does the (1) signify? In there a grep(2)? Where is this documented?   I see manual pages that refer to the numbers as well but I don't know what the numbers mean or how to use them. I can't type "man grep(1)" for instance.


All my other/previous computers (Mac and Windows) allowed me to import ringtones to replace the system sounds for things such as e-mail delivery. When searching the FAQ, I saw reference only to Ubuntu phones, but I want to reset my ringtones on my Ubuntu laptop computer. How can I do this?