You don't have to call me again to confirm about our meeting - just   this one e-mail from you and my reply to it is well enough.   Should it be "is" or "are" in this case?


Mobile Data is Off but still i am being charged 0.041INR..Crazy issue on MOTO E.I am using Vodafone Karnataka SIM

I have very recently purchased Mote E. I have disabled Mobile data and work only with Wifi.  Even after this I see I am being charged with 0 MB data usage.  enter image description here (Click for full size)  I don't understand what is happening here. It is coming very frequently. I am very sure none of the Apps are using it since I uninstalled almost every app that I installed after this problem has arisen. I have checked data usage logs and it says 0 MB data usage and that none of my app have used any mobile data.  Why is this happening? Probably some check after wifi gets disconnected? I checked with android debugger but there is too many log statement... anything particular I should be looking at?  Any help or suggestion is apprecia


Is there an easy way to disable a UITextField in code?  My app has 12 UITextField that are all turned on by default, but when a change is detected in my Segment Control I want to disable some of the UITextField depending on what Segment the user picks.  Just need to know how to disable it or make it non-editable?  Thanks


Boot Camp error "Windows cannot locate the disk and partition"

I have a 2019 MacBook Pro 16 inch running on macOS Big Sur 11.1. I am trying to install windows using Bootcamp. I get the following error: Windows cannot locate the disk and partition specified in the unattended answer file's  setting. Make sure the setting references a valid partition and restart the installation. Can someone help me how to solve this? Thanks in advance


Change directory in batch file with PowerShell

I need to changed directory using batch file in PowerShell.  Let's say the batch file named go.bat has the two lines of code. And I'm in q: directory.     c:    cd c:\abc\def   When I run go.bat, I'm still in q:


Showing that $\{f_n \}$ converges to $f$ is equivalent to $\lim_{n\to \infty} \int_X \frac{|f_n(x)-f(x)|}{1+|f_n(x)-f(x)|}d\mu(x)=0$

Let $(X,\mathcal{M},\mu)$ be a measure space. We say that $\{f_n\}$ converges to $f$ in measure if, for any $\epsilon>0$   $$ \lim\limits_{n \to \infty} \mu\Big(\{x\in X: |f_n(x)-f(x)| \ge \epsilon  \}\Big)=0.$$         Show that $\{f_n \}$ converges to $f$ in measure if $$\lim\limits_{n\to \infty} \int_X \frac{|f_n(x)-f(x)|}{1+|f_n(x)-f(x)|}d\mu(x)=0.$$   Suppose $\mu(X) < \infty$. Show that    $$\lim\limits_{n\to \infty} \int_X \frac{|f_n(x)-f(x)|}{1+|f_n(x)-f(x)|}d\mu(x)=0$$   if $\{ f_n \}$ converges to $f$ in measure.


Is there a certain length of time in which you are allowed to travel with the Schengen area? Or Is at each countries discretion?

I'm from Canada. In most countries I can stay for up to three months without needing a visa. I was reading information about the Schengen agreement and how it essentially eliminates borders between all participating countries.  Is it at each country's discretion?


Which X-Men movies' timelines were erased by Days of Future Past?

In Days of Future Past (2014), Wolverine erases the old timeline and starts a new one.   Which X-Men films' timelines were erased?   Please no spoilers.


Questions about existence of functions satisfying integral properties

Maybe it's elementary, but is it possible that a non-negative continuous function satisfies $\int_{0}^{\infty}f(x)dx$ exists (finite) and the limit $\lim_{x\to\infty}f(x)$ doesn't exist (neither finite nor infinite)?   Also, is it possible to find a function such that the integral $\int_{0}^{\infty}f(x)dx$ exists (finite) but $f(x)$ is not bounded?  If you could show me examples it would be appreciated. If these are not possible, please explain why.


MediaPlayer NullPointerException in local method

My file is perfectly fine and works well on onCreate, but when I have a method call like this it is failing with NullPointerException  public void playSelectedFile() throws IOException {     mediaPlayer = new MediaPlayer();     mediaPlayer.reset();     mediaPlayer.setDataSource(PredefinedUserPlayer.this, Uri.parse(mp3name));     mediaPlayer.prepare();     mediaPlayer.start(); }   Stack trace of the error:   java.lang.NullPointerException             at android.content.ContextWrapper.getContentResolver(ContextWrapper.java:99)             at android.media.MediaPlayer.setDataSource(MediaPlayer.java:882)             at android.media.MediaPlayer.setDataSource(MediaPlayer.java:859)             at lukasz.musik.PredefinedUserPlayer.playSelectedFile(PredefinedUserPlayer.java:86)             at lukasz.musik.CustomMusicAdapter$ViewHolder$1.onClick(CustomMusicAdapter.java:85)             at android.view.View.performClick(View.java:4240)             at android.view.View$PerformClick.run(View.java:17721)             at android.os.Handler.handleCallback(Handler.java:730)             at android.os.Handler.dispatchMessage(Handler.java:92)             at android.os.Looper.loop(Looper.java:137)             at android.app.ActivityThread.main(ActivityThread.java:5103)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:525)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)             at dalvik.system.NativeStart.main(Native Method)   NOTE: The url mp3name is valid. It works in onCreate but not in playSelectedFile()  It keeps crashing with NullPointerException and mp3name is a valid URL. If the same block of code is in the onCreate method the compiler does not complain. Any ideas or suggestions?


"one or more child" or "one or more children"

Which one of the following sentences is correct?  one or more child  Or  one or more children


Have Americans stopped using adverbs ? eg "Eat healthy" instead of "Eat healthily"

I live in the UK and generally a word that adds flavour or describes a verb , will have the adverb ending applied eg run quickly (not run quick) , eat healthily (not eat healthy) etc  But when I watch the many US TV shows on in the UK, I almost never hear Americans using adverbs in this way. They just seem to use the adjectival form of the word.  This seems to be so common as to be standard in the US. Is this viewed as correct speech in the US ?


It has always bothered me that it's so hard to draw TikZ arcs by specifying the centre of the arc. Then I thought I have a good workaround by using the TikZ library math. Let's use it to draw an arc with center at the origin, and then put a dot at the origin.  \documentclass{standalone}  \usepackage{tikz}  \usetikzlibrary{math}  \begin{document}     \begin{tikzpicture}         \tikzmath{             \angle  = 90;             \radius = 1;         }         \draw             ( canvas polar cs:               radius = \radius             , angle  = \angle             )             arc             [ radius      = \radius             , start angle = \angle             , end angle   = 4*\angle             ];         \node[circle,fill] {};     \end{tikzpicture} \end{document}   This way I'm jumping to the start position of the arc using the polar coordinate system. \tikzmath allows me to reuse the lengths so I can specify exactly the same radius when I draw the arc (so when I fiddle around with radius values, I only need to do so in one point).  Clever, heh? Except it doesn't work:    It starts drawing at the origin although I specified the correct coordinates! What's going on? Maybe a dimension problem?              \radius = 1cm;   That blows up the picture completely. Is my approach doomed? Note, that this works, though:      \tikzmath{         \angle  = 90;     }     \draw         ( canvas polar cs:           radius = 1cm         , angle  = \angle         )         arc         [ radius      = 1         , start angle = \angle         , end angle   = 4*\angle         ];     \node[circle,fill] {};     Ok, that's the right picture, but the code is silly! I don't want to enter every radius in my thousand pictures once with cm and once without! What do I do?


jQuery: Can't target element that's been added via .append()

I want to wrap words in <p> tag into <span> tags using .append() and then target the <span> tags via:  jQuery(document).ready(function() {     jQuery('.editable span').bind("mousedown", function() {          // do stuff to <span> tags...      }); });   But it doesn't work. As far as I know, $(document).ready() just listen to newly added elements, right? What am I doing wrong?   For testing, here is a . As you can see, the jQuery('.editable span')... part isn't being triggered when you click on the span tags.


Should already accepted answers even be able to be flagged as "not an answer"?

The description of the "not an answer" flag states:     This was posted as an answer, but it does not attempt to answer the   question. It should possibly be an edit, a comment, another question,   or deleted altogether.   If an answer was marked as accepted, that practically proves that the given answer did help the asker solve the problem.  So, should it even be possible to flag accepted answers as "not an answer"? If I'm wrong, please give me an example or a constructed scenario of a situation, where this is appropriate.


In any finite graph with at least two vertices, there must be two vertices with the same degree

Show that, in any finite graph with at least two vertices, there must be two vertices with the same degree.  HINTS ONLY!


How to include a PDF image into a PDFLaTeX document

I am generating a PDF file using pdflatex and need to include another PDF file. The reason is that I have a graphMl file which I exported from yEd graph editor to a PDF file, named sample.pdf. The TeX code to be compiled with pdflatex is given below. I need to include that file at the start of the document.   \documentclass[a4paper,leqno,twoside]{article}  \usepackage[latin1]{inputenc} \usepackage[english]{babel} \usepackage{multirow}  \begin{document}   [% FOREACH st IN Service %]    Name,Id:   [% st.Id %], [% st.Name %]     des:   [% st.Description %]    Customers:  [% FOREACH softservice IN st.Customers %]   [% FOREACH swid IN softservice.SW %]  [% swid.Service %]   [% FOREACH st IN Service %][% IF swid.Service == st.Id %]     ([% st.Name %])     [% END %] [% END %][% END %][% END %]    Suppliers:    [% FOREACH shservice IN st.Suppliers %]    [% FOREACH sw IN shservice.SW %][% sw.Service %]     [% FOREACH st IN Service %][% IF sw.Service == st.Id %]([% st.Name %])      [% END %][% END %][% END %]    [% FOREACH hw IN shservice.HW %][% hw.Type %][% hw.Nr %][% END %]   [% END %]   \newpage   [% END %] \end{document}


How to show that there is a deduction of $\varphi\leftrightarrow\psi$

Problem is showing or disproving in Sentential logic that:  If $\Sigma$$\vdash$$\varphi$ iff $\Sigma$$\vdash$$\psi$, then  $\Sigma$$\vdash$$\varphi\leftrightarrow\psi$  But I wonder how to show that there exists(or there's no) such a deduction.   To show opposite direction, I write as follows:  Suppose that $\Sigma\vdash\varphi\leftrightarrow\psi$  , i.e. there exists a deduction $<a_{1},a_{2},\cdots,a_{n}>$  such that $a_{n}=\varphi\leftrightarrow\psi$  . Then assume $\Sigma\vdash\varphi$  , i.e. there exists a deduction $<b_{1},b_{2},\cdots,b_{m}>$   such that $b_{m}=\varphi$  . Then a sequence $ <a_{1},\cdots,a_{n},b_{1},\cdots,b_{m},\psi>$   is a deduction from $\Sigma$   to $\psi$  . Thus, $\Sigma\vdash\psi$  . Then assume that $\Sigma\vdash\psi$  , i.e. there exists a sequence $<c_{1},c_{2},\cdots,c_{l}>$   such that $c_{l}=\psi$  . Then a sequence $<a_{1},\cdots,a_{n},c_{1},\cdots,c_{l},\varphi>$   is a deduction from $\Sigma$   to $\varphi$  . Thus, $\Sigma\vdash\varphi$  . Thus, If $\Sigma\vdash\varphi\leftrightarrow\psi$  , then $\Sigma\vdash\varphi$   iff $\Sigma\vdash\psi$  .  It seem to me that it is similar to this one. But I don't know how to do it.  This is my new answer:  Comsider $\Sigma=\{p,q\}$  . Then $\Sigma\vdash\varphi$   and $\Sigma\vdash\psi$  . Thus, $\Sigma\vdash\varphi$   iff $\Sigma\vdash\psi$  . But for a truth assignment $\nu$   of $\Sigma$   such that $\bar{\nu}(\varphi)=T$   and $\bar{\nu}(\psi)=F$  , $\bar{\nu}(\varphi\leftrightarrow\psi)=F$  . Thus, $\Sigma\nvDash\varphi\leftrightarrow\psi$  . It means that, by completeness of Sentential Logic, $\Sigma\nvdash\varphi\leftrightarrow\psi$  .   Deduction from $\Sigma$  is a finite sequence of sentences which consists of  members of $\Sigma$ , tautology, or sentences obtained by Modus Ponens  And biconditional is not a part of this language.


I don't understand my notes that my teacher gave me, so... please answer those questions in bold.  From my teacher's notes: "Suppose $H$ is a subgroup of $G$. For any $a\in G$, we define its associated left coset and right coset to be $$aH = \{ab | b \in H\}$$ $$Ha = \{ba | b\in H\}$$ respectively."  What is a coset? What are the differences between left and right?  .  Also from the notes: "Suppose $H$ is a subgroup of $G$. The left cosets $\{aH | a\in G\}$ define a partition of $G$, so are the right cosets."  What does "define a partition of $G$" mean?  .  Also: "A function $f:G\rightarrow H$ where $G$, $H$ are groups is called a group homomorphism if $$f(a\cdot b)=f(a)\cdot f(b)$$ for all $a,b \in G$. It's called an isomorphism if it's bijective."  Can anyone explain the notation of "$f:G\rightarrow H$"? What does bijective mean?


Does casting Sleep affect the caster if they are within range of point of origin?

Debating this with DM. Sleep can be cast with a point of origin a distance from the caster, but if the cube extends back to the caster is the caster affected or immune?


How to uninstall a which did not get installed properly

when I tried to install dropbox it did not get installed properly it now only shows the icon and does not work too so I want to uninstall it if I do it using gui nothing happens and it is still there if I do it using terminal it shows this  sairamakrishna@Krishna:~$ sudo apt-get remove dropbox [sudo] password for sairamakrishna:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   libappindicator1 libindicator7 linux-headers-3.13.0-32   linux-headers-3.13.0-32-generic linux-headers-3.13.0-46   linux-headers-3.13.0-46-generic linux-headers-3.13.0-49   linux-headers-3.13.0-49-generic linux-headers-3.13.0-51   linux-headers-3.13.0-51-generic linux-image-3.13.0-32-generic   linux-image-3.13.0-46-generic linux-image-3.13.0-49-generic   linux-image-3.13.0-51-generic linux-image-extra-3.13.0-32-generic   linux-image-extra-3.13.0-46-generic linux-image-extra-3.13.0-49-generic   linux-image-extra-3.13.0-51-generic Use 'apt-get autoremove' to remove them. The following packages will be REMOVED:   dropbox 0 upgraded, 0 newly installed, 1 to remove and 151 not upgraded. E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/ sairamakrishna@Krishna:~$ ^C sairamakrishna@Krishna:~$    so even after this the program is still there  Please help me how to uninstall it


If a field $F$ is such that $\left|F\right|>n-1$ why is $V$ a vector space over $F$ not equal to the union of $n$ proper subspaces of $V$

If $U_1$, $U_2,\ldots,U_n$ are proper subspaces of a vector space $V$ over a field $F$, and $|F|\gt n-1$, why is $V$ not equal to the union of the subspaces $U_1$, $U_2,\ldots,U_n$?


I have a views table block within a panel.   The table is overflowing the panel and I am trying to understand how to constrain it. I have tried setting it's CSS to various widths but they are always ignored. I can change individual column widths, colours etc but not the width.   Do views tables ignore these settings and just display to the width of their content? What is the best way to set their width?  Any tips for using views tables in responsive themes(within panels)?  I'm using Drupal 7.23 ,  7.37 ,  7.33 , -4  Update: In my CSS for this table I have previously tried setting table {   width: 100%; (and with !important). I know it is being applied to the table as when I have very colums it increase the width of the whole table to 100% of it's panel.  The problem occurs when there are a lot of columns and the content text of the column is wide. Then the table overflows past 100%. I can make it thinner by changing font size but I am trying to understand how the views table width is set.  In terms of Views table plugins / modules I am looking at  ,  and (sandbox) . None of these are mature modules so I am quite nervous about using them.


Similar matrices over a complex field question

Is it true that for all $ n \times n$ matrices $A$, $B$ over     $\mathbb { C}$, the matrices $AB$ and $BA$ are similar? Give a proof or counterexample.


Why was this edit to repair dead links rejected?

As far as I can tell,  simply fixes a dead link, yet it was rejected by two users as "not making post easier to read...".  Is fixing dead links not something we should be doing via edit?


I was curious about the date in URL segments, is there any SEO point of benefit? For example the following URLs:  http://techcrunch.com/2013/06/18/netflix-will-launch-in-the-netherlands-later-this-year-as-its-international-expansion-slows/ http://tips-for-new-bloggers.blogspot.in/2007/02/adding-favicon-icon-to-blogger-url.html  https://community.jivesoftware.com/blogs/jivespace/2013/05/15/eol-of-the-html5-ipad-web-app   In all the above URLs there is date segment. The information of those blogs can be fetched via blog stub like "netflix-will-launch-in-the-netherlands-later-this-year-as-its-international-expansion-slows" so why to use that date part?


Error while trying to execute the Quantum Circuits in IBMQ

I have been trying to execute the quantum circuit in the backend of the IBM 16 qubit Melbourne machine. I end up getting IBMQBackendApiError: 'Error submitting job: "HTTPSConnectionPool(): Max retries exceeded with url: **** SignedHeaders= ** Signature= ****(Caused by SSLError(SSLError(1, \'[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1108)\')))  but when I check my IBMQ account the status of the job is Creating. I do not understand why I get such an error. Can someone help to identify what exactly the issue is?


Three-way ANOVA: How to interptret a significant three-way interaction with no significant post-hocs?

I have a three-way 2x2x3 ANOVA, which initially showed a significant AxBxC interaction  (but no significant two-way or main effects)  I've broken this down into two-way ANOVAs to try to interpret the result, however:  1) Splitting it by variable "A", doing two two-way ANOVAs (i.e. for each of two levels of "A"), gave no significant BxC interactions or main effects of B or C  for either level of A  2) Splitting it by variable "B" gave no significant AxC interactions or main effects of A or C  for either level of B.  My question is: How to I proceed with interpreting this?


Metric defined by $d(x,y)=\frac{||x|-|y||}{1+|x||y|}$

Q. Let $d :\mathbb R \times \mathbb R →[0,\infty)$ be defined by $$d(x,y)=\frac{||x|-|y||}{1+|x||y|}$$ then is it a metric on $\mathbb R $?  Positive definitness is clear but i couldn't clear the triangular inequality, can we do with $d(x,y)=\frac{||x|-|y||}{1+|x||y|}\leq |x-y|$?


Integrating this complicated integral for statistics

I want to show that :  $$ \int_{-\infty}^{\infty} e^\frac{-u^2}{2} du = \sqrt{2\pi} $$    Is there an elementary way using the tools of Calculus II to do this type of integration? I have not studied numerical analysis yet.


Let us consider block of mass $m$ hanging by rope with force $T$. When no other horizontal and vertical forces are acting on a block, the block is at equilibrium if $$T=mg.$$ And if the rope is pulled up a distance $h$, $$\text{work done}=mgh$$  Don't we need more force to move the block upward? If we just use $T$, the body will be in equilibrium. Don't we need more force to lift the block?


I am plotting three surf plots in a groupplot environment with pgfplots. For the third groupplot, I have enabled the colorbar. I would like the colorbar to represent all three plots, so equal z values should have equal colors. I can set zmax on the group plot, but this will only limit the axes in a 3D plot, the colormap appears to be applied from the minimal to the maximal value, regardless of the value of zmin and zmax. Is there a way to make the range of a colormap correspond to zmin and zmax? (Clamping will not be a problem in this case, because zmax is chosen such that nothing is clamped. The problem is that currently, one of my plots reaches only about half of zmax, but at this point the colormap is still at maximum intensity.)  \begin{tikzpicture} \begin{groupplot}[group style = {group size = 3 by 1, horizontal sep = 1.5cm},                   zmax = 50, view = {0}{90}] \nextgroupplot[xlabel = $x_2$, ylabel = $x_3$] \addplot3[surf, shader = interp] table {data-x2x3.dat}; \nextgroupplot[xlabel = $x_3$, ylabel = $x_1$] \addplot3[surf, shader = interp] table {data-x3x1.dat}; \nextgroupplot[xlabel = $x_1$, ylabel = $x_2$, colorbar] \addplot3[surf, shader = interp] table {data-x1x2.dat}; \end{groupplot} \end{tikzpicture}


number of vertices in a self-complemntary graph

Problem: Prove that the number of vertices of a self-complementary graph must be congruent to 0 or 1 modulo 4. I think my starting point would be that P4 and C5 are self-complementary and proceed by induction by adding P4s. I established the first step in a previous problem, but I need help on the induction step. i.e. proving that adjoining P4 will indeed yield a self-complementary graph.


How to create a VPN connection via terminal?

I have a macbook pro with mavericks running. I am looking for a way to connect to a VPN network in terminal.   The reason why I want to do this is that I want to write a small program in Python which automatically detects the fastest VPN server among 30 servers. This is a self-motivated practicing project so I think I'll stick to Python language. So I break down the task and think the program may need to connect to one of the server first and after that, run a speed test.  So I'm now stuck in this first step because I realised establishing a VPN connection seems to be under system level because I can't find pre-written VPN module in python. So I guess it will be like I tell Python to tell system shell to connect to a VPN server.  As I poking around and I found a command by typing apropos vpn. It's called vpnagent. But man vpnagent doesn't provide useful information nor which vpnagent tells me the utility is not installed in my Mac. Another interesting thing I found was pppd but setting up the configuration file was very frustrating. I didn't manage to do that.   So is there a way of connecting to VPN using terminal? In addition, since I'm new to programming, any comment on my project is also welcome. Thank you in advance.


Page returns 404 with POST variables, but not without

I have a problem with my page. I'm trying to make a "Contact Us" page. It's working perfectly fine design-wise. But when I try to send the form to the same page as origin. It returns 404 error.  It only happens when I'm sending the form. I've tried both with GET and POST requests. Nothing seems to work.  I've even commented out the PHPMailer part. It's caused entirely by the extra variables.  If it helps anything, they're "name", "email" and "message".


Is [Its'] a word? (Note the apostrophe at the end.)

I just had a strange flashback to a conversation I had when I was in high school, with a man who was regarded by many members of a particular online community as having an impressive degree of knowledge of the English language.  The conversation centered on a claim this man made that I found very difficult to accept. I had made some remark involving the difference between it's and its (a distinction which I trust is quite well-known to the majority of users on this site), to which he had contributed, mostly phrased as an amusing aside, that there was one more word I hadn't mentioned: its', with the apostrophe at the end.  I originally thought he might have been joking, but we ended up debating this rather fervently. I seem to recall that I kept demanding he use the word in an example sentence, but he either could not or refused to do so. Yet he maintained that it is a word.  Is this true? I must concede I haven't put a lot of thought into it just now; but at the time, I was perplexed by the very suggestion that it could be a word (what could it mean?), and at the moment I can't really think of any scenario where it would make any sense.


I'm quite new to LaTeX and I'm really sorry if this is a super easy question, but I didn't find a solution to this specific problem.  I have a book with two authors that I'd like to cite in my text. And I would like to see something like:      Following Smith and Smith (2006, p. 2),   but instead what I'm seeing is:     A. Smith and P. Smith (2006, p.2)   I'm using \citet{key} and  \usepackage[backend=biber,natbib,style=apa,citestyle=authoryear]{biblatex}   Is there any way to omit the initial character of the first name?


I am trying to make a command line calculator using Java, I have come up with the code below it works without the if-else ladder,but I can't make it work with if-else, during debugging I tried printing the "z" which is indeed add when the arguments are passed as java name 1 2 add, But I can't seem to trigger the id (z == "add"), please suggest what I am missing.  public class commandlinecal {         public static void main(String arg[])         {                 int x = Integer.parseInt(arg[0]);                 int y = Integer.parseInt(arg[1]);                 String z = arg[2];                 if (z == "add")                 {                         add(x,y);                 }                 else if (z == "sub")                 {                         sub(x,y);                 }                 else if (z=="mul")                 {                         mul(x,y);                 }                 else if(z=="div")                 {                         div(x,y);                 }         }            public static void add(int x,int y)           {                 int result = x + y;                 System.out.println("The sum is" + " "+result);            }           public static void sub (int x,int y)           {                   int result = x-y;                   System.out.println("The sub is"+" "+result);            }           public static void mul (int x,int y)           {                   int result = x * y;                   System.out.println("The multiplication is"+" "+result );           }           public static void div (int x,int y)           {                   float result = x / y;                   System.out.println("The division is"+" "+result);           }         }


I want to find the value of $\int_1^2\ln{(\Gamma{(x)})}dx$.  Wolfram alpha can compute that $\int_1^2\ln{(\Gamma{(x)})}dx = \frac{\ln(2\pi)-2}{2}$.    How can I prove it ?  Thank you.


Is it possible to turn permanently off annoying MacOS update notifications?

I have Mojave. I found that I can silent all notifications if I go under notifications and specify do not disturb all day. However I think this also means that I will not get any important notifications. I'm fine that this particular machine being hacked, exploited or whatever, seriously, I just don't need updates on this particular machine. Or at least warn once a month, not every 24 hours. On windows and linux its 3 clicks, is Mac capable of something like this?


Null pointer exception while setting up recycler view in fragment

I am getting this specific error during the runtime of my android app:   java.lang.NullPointerException: Attempt to invoke virtual method`'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' on a null object reference                                                                                at com.monkeyengineer.project.MyFragment.onCreateView(MyFragment.java:36)   I have checked the android recycler view and adapter documentation but it is not helping me with why this is crashing.  Here is my code in my Fragment where I am calling the findViewById method on the container view (import statements are omitted for brevity):  public class MyFragment extends Fragment {      private List<Project> data;     private RecyclerView recyclerView;     private TextView textView;      private boolean mIsRecyclerViewVisible = true;      public MyFragment() {         // Required empty public constructor     }       @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,                              Bundle savedInstanceState) {          View mView = inflater.inflate(R.layout.my_fragment, container, false);         textView = (TextView) container.findViewById(R.id.text_view);         recyclerView = (RecyclerView) container.findViewById(R.id.recycler_view);         recyclerView.setHasFixedSize(true);          LinearLayoutManager mLayoutManager = new LinearLayoutManager(getContext());         mLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);         recyclerView.setLayoutManager(mLayoutManager);          Adapter adapter = new ProjectsAdapter(data);         recyclerView.setAdapter(adapter);          if (data != null) {             textView.setVisibility(View.INVISIBLE);             mIsRecyclerViewVisible = true;         } else {             recyclerView.setVisibility(View.INVISIBLE);             mIsRecyclerViewVisible = false;         }         return mView;     }      @Override     public void onStart() {         super.onStart();         if (mIsRecyclerViewVisible) {             recyclerView.setVisibility(View.VISIBLE);             textView.setVisibility(View.INVISIBLE);         } else {             recyclerView.setVisibility(View.INVISIBLE);             textView.setVisibility(View.VISIBLE);         }     }      @Override     public void onStop() {         super.onStop();         mIsRecyclerViewVisible = data != null;     } }   Here is my fragment layout:  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     tools:context="com.monkeyengineer.project.MyFragment"     android:layout_width="match_parent"     android:layout_height="match_parent" >      <android.support.v7.widget.RecyclerView         android:id="@+id/recycler_view"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:scrollbars="vertical" />      <TextView         android:id="@+id/text_view"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:height="45dp"         android:drawableLeft="@android:drawable/ic_input_add"         android:drawableStart="@android:drawable/ic_input_add"         android:drawablePadding="8dp"         android:gravity="start|center"         android:padding="8dp"         android:text="Add stuff."         android:textStyle="bold"         android:layout_gravity="center_horizontal"         android:layout_centerVertical="true"         android:layout_centerHorizontal="true" />  </RelativeLayout>   So why is it giving a null pointer exception, it must be because the recycler view object is being assigned to a null value but I can not think why.  Thanks.


encryption and decryption time for RSA-crt in java?

I try compute execution time for encrypt and decrypt data has 1024 bit = 128 byte  in RSA-crt algorithm. I need this results. But I believe this result wrong. because big diffrent between execution time for encrypt and execution time for decrypt. My code is following     private void keygen() {     p = BigInteger.probablePrime(n/2, random);     q = BigInteger.probablePrime(n/2, random);      N=p.multiply(q);      phi_n=(p.subtract(one)).multiply(q.subtract(one));     e=new BigInteger("65537");     while(e.gcd(phi_n).intValue()!=1)     e=BigInteger.probablePrime(32, random);      d=e.modInverse(phi_n);     dp=d.mod(p.subtract(one));     dq=d.mod(q.subtract(one)); }  private void encrypt() {     M=new BigInteger(1024,random);     C= M.modPow(e,N); }  private void decrypt() {     Mp=C.modPow(dp, p);     Mq=C.modPow(dq, q);      RM=(((Mp.multiply(q)         .multiply(q.modInverse(p)))         .add(Mq.multiply(p)         .multiply(p.modInverse(q))))         .mod(N)); }   The timing function is   for (;;) {     long begin = System.currentTimeMillis();      for (int i = 0; i < num; i ++) {             //function to measure, eg.         crtrsa.decrypt();     }     long end = System.currentTimeMillis();     long time = end - begin;     if (time >= 2000) {         System.out.println("average Decryption takes: %.2f ms",(double)time / num);         break;     }     num *= 2; }   On my laptop when run program it give me the follow  average Key generation takes: 58.60 ms average Encryption takes: 0.09 ms average Decryption takes: 1.89 ms I note big difference between 0.09 ms and 1.89 ms I want tell me where my  wrong or any link about this issue.


I have a dual boot laptop (Windows 10). I ran general updates and now my Ubuntu won't boot.   I ran in recovery mode and still it freezes in the same place.      Kernel panic – not syncing: Attempted to kill init! exit code=0x00007f00


pgfplots -> contour gnuplot with lualatex instead of pdflatex

i want to compile several pgfplots pictures with lualatex, since it dynamically allocates memory for compiling (in contrast to pdflatex).  In some plots, like my MWE.tex given below, i want to use a contour plot. This is typically done with gnuplot. To compile a document like this i need to use --shell-escape, such that gnuplot command can be executed while compiling the document.  \documentclass[a4paper]{article}  \usepackage[utf8]{luainputenc} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture}   \begin{axis}     \addplot3[contour gnuplot]      {x+y};       \end{axis}   \end{tikzpicture} \end{document}   If i use  pdflatex --shell-escape MWE.tex   everything works fine, and the log says something along the lines  This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2016.6.12)  13 JUN 2016 10:46 entering extended mode  \write18 enabled. .... Package pgfplots notification 'compat/show suggested version=true': document has been generated with the most recent feature set    (\pgfplotsset{compat=1.13}).  \openout3 = `MWE_contourtmp0.dat'.  \openout3 = `MWE_contourtmp0.script'. runsystem(gnuplot "MWE_contourtmp0.script")...executed.   If i use     lualatex --shell-escape MWE.tex i get the following error:  This is LuaTeX, Version 0.95.0 (TeX Live 2016)  (format=lualatex 2016.6.12)  13 JUN 2016 10:52  system commands enabled. ... Package pgfplots notification 'compat/show suggested version=true': document has  been generated with the most recent feature set (\pgfplotsset{compat=1.13}).  Package pgfplots info on input line 10: Using 'lua backend=false' for plot 0 (type 'contour external'): plot handler does not support LUA.  \openout3 = MWE_contourtmp0.dat  \openout3 = MWE_contourtmp0.script gnuplot "MWE_contourtmp0.script"  ! Package pgfplots Error: sorry, plot file{MWE_contourtmp0.table} could not be opened.   The .table file exists and looks identical to the one created by pdflatex, but it says that it cannot be executed.  (I just installed texlive 2016 yesterday, so everything should be up to date.)


No graphical login after upgrading to 16.04

I was using Ubuntu 14.04 LTS, and the update window appeared. I did update and then when my PC restarted I had and still have this screen.    I know if I open grub and enter recovery mode:    I could reset the root password, but when I enter recovery mode it loads all files but when it finishes, the expected screen with options doesn't appear and I get a screen like the first one.  I have more than one recovery mode, but it's always the same, I get the login screen again.  What should I do?


Selecting GPS point closer to boundary of polygon in ArcGIS Desktop?

I would like to capture the gps points which are closer the polygon boundary (inside), not point in polygon.     I have arcgis arcinfo v9.3.   i can do with inner buffer of the polygon and intersection and finding the remaining gps points.  Is there any other way ?


I'm having trouble inserting an image in a TeX file

After reading some related question on how to insert an image into a TeX file I tried to do the following:      \documentclass[11pt,a4paper]{report}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{graphicx}     \begin{document}     \section*{a section}     \subsection*{a subsection}     some text\     \begin{figure}     \centering     \includegraphics[width=0.7\linewidth]{vagabon}     \caption[]{an image}     \label{fig:vagabon}     \end{figure}\     some other text     \end{document}   but the output was:   with the image before the sections, and not in between the 2 lines of text. why is that? and what's the proper way to insert an image in the middle of a paragraph?


Is there a delay to show Total Rep on Area 51 proposals?

I finally hit over 200 rep on a Stack Overflow site!  ::cheering fans::  That gave me the +100 rep bonus on all my other SO sites ::more cheering::  However, on my accounts page on Area 51, those bonuses don't show in the rep count, nor on the Total Rep number for proposals I've committed to.  Is there a delay in posting these rep gains?  Or is this a possible bug?  Thanks!  EDIT: I forgot to mention, I did try to unassociate and reassociate all the sites.  No change.


How do I prove this isomorphism $D_{4n}\cong D_{2n}\,\times\, Z_2$ if $n\geq 3$ as an odd integer?

If $n$ is an odd and positive integer, show that $D_{4n}\cong D_{2n}\,\times\, Z_2$. Denote that $D_{2n}$ is the Dihedral Groups with $2n$ elements and $Z_2$ is a cyclic group with order 2. I think it might be solved by using the recognizing theorem.


In this exercise:  Ali stopped _____ to his friend. He talked to him then. a) talk b) talking (I chose this one) c) to talk (This one is marked as the correct answer) d) being talked  Why did they choose "to talk" as the right answer? And why not "talking"? I understand the meanings of talk and stop so I don't understand why one is wrong and the other correct.


How should ovo-lacto vegetarians compensate the lack of meat in their diets?

An ovo-lacto vegetarian includes both eggs and dairy products in his diet, but meat is completely excluded. In a regular non-vegetarian diet, meat is very important and provides many benefits if properly consumed.  I've heard of many problems that can be induced by vegetarianism, because the body stops receiving important nutrients and it's common that the diet is not changed to compensate for the lack of meat.  How should an ovo-lacto vegetarian compensate? The meat benefits are lost, and the body still needs them. Which changes in diet should a vegetarian perform to keep receiving the nutrients that the meat stopped providing?  In other words, what diet should a ovo-lacto vegetarian have to be healthy without meat?


Why does "under the sea" mean "in the sea"?

Why is it OK to refer to things in the sea as being "under the sea"? Wouldn't that really be the sea floor and below?


I installed Android studio some time ago using the following suggested method:     To set up Android Studio on Linux:      Unpack the downloaded Tar file,   android-studio-ide--linux.zip, into an appropriate location   for your applications. To launch Android Studio, navigate to the   android-studio/bin/ directory in a terminal and execute studio.sh. You   may want to add android-studio/bin/ to your PATH environmental   variable so that you can start Android Studio from any directory.   Follow the links to install the SDK outside of the Android Studio   directories.   For whatever reason it has become corrupt and insists I must un-install and re-install. I can't for the life of me find how to un-install it however.  I didn't use apt-get so I can't do apt-get remove.  Does anyone have any suggestions?


What other tricks and techniques can I use in integration?

So far, I know and can use a reasonable number of 'tricks' or techniques when I solve integrals. Below are the tricks/techniques that I know for indefinite and definite integrals separately.  Indefinite integrals  Standard integrals, such as those of polynomial, trigonometric, logarithmic and exponential functions, including usage of trig identies. Basic substitution. Weierstrass and Euler substitutions. Integration by parts. $$\int\frac{1}{x+x^n}dx=\int\frac{x^{-n}}{1+x^{1-n}}dx=\frac{1}{1-n}\ln\lvert 1+x^{1-n}\rvert+C$$ $$\int\frac{1}{x^{\frac{a+b}{a+b}}\cdot x^{\frac{a}{a+b}}+x^{\frac{b}{a+b}}}dx=\int \frac{x^{-\frac{b}{a+b}}}{\left(x^{\frac{a}{a+b}}\right)^2+1}dx=\arctan x^{\frac{a}{a+b}}+C$$ Substitution $u=\frac{1-x}{1+x}$ for integrals involving $\ln$ and/or the bounds $0$ and $1$. Reduction formulae. $$\int e^x(f(x)+f'(x))dx=e^xf(x)+C$$ Writing $\sin$'s and $\cos$'s as complex exponentials. $$\int\frac{a\sin x+b\cos x}{c\sin x+d\cos x}dx=Ax+B\ln\lvert c\sin x+d\cos x\rvert+C$$ where $$A=\frac{ac+bd}{c^2+d^2}~~~B=\frac{bc-ad}{c^2+d^2}$$ which can be found using simultaneous equations.  Definite integrals  Differentiation under the integral sign ('Feynman's technique') $$\int_a^b f(x)dx=\int_a^bf(a+b-x)dx$$ Usage of power series to evaluate integrals such as $\int_0^1\frac{\ln(1-x)}{x}dx$ and the like. Making use of even or odd function properties. (My newest personal favourite) For even functions $f(x)$ and $g(x)$, and an odd function $h(x)$: $$\int_{-a}^a\frac{f(x)}{1\pm g(x)^{h(x)}}dx=\int_{0}^a f(x)~dx$$ which allows us to evaluate wonderful things like $$\int_{-\infty}^{\infty}\frac{e^{-x^2}}{1+\pi^{\sin x} }dx=\frac{\sqrt{\pi}}{2}$$    Question: Do you know any other integration techniques or tricks that I can use whose usage don't rely on anything beyond high school calculus* or perhaps the first year of a Mathematics degree course?  I know that a similar question has been asked  and  but I've looked through them and nothing beyond what I have written above was mentioned, apart from some techniques I couldn't understand such as residue calculus and contour integrals. Many thanks for your help.  *Roughly what I mean by high school level calculus: INCLUDED  Integration of polynomials and the basic trigonometric functions, such as $\sin x$, $\cos x$, $\tan x$, $\sec x$, $\operatorname{cosec} x$, $\cot x$, $\sec^2 x$, $\sec x\tan x$, $\operatorname{cosec} x\cot x$, $\operatorname{cosec}^2 x.$ Integration of all $x^n$ including $n=1$. Integration of exponentials. Integration by parts. Integration using substitution, such as using trigonometric/hyperbolic substitutions, and Weierstrass and Euler substitutions (this also includes integration by 'inspection' which is really just substitution but when the individual doesn't need to substitute anything). Integration using partial fractions and logarithms, such as $\int\frac{f'(x)}{f(x)}dx$. Reduction formulae. Ability to understand and use the concepts of even and odd functions in integration. Improper integrals. Integrating which results in elementary functions.  NOT INCLUDED  Fourier, Laplace and Mellin transforms. Indefinite integrals that include non-elementary functions in the solution. Contour integration. Residue calculus and similar methods.


Is there any way to tell from the outside if an avocado hides a disproportionately large pit and less meat?  It's always a disappointment when you cut one in half just to find out it is mostly pit.


Can javascript display text of any external file with any extension?

Lets consider that I have a text file named text.txt. So, now I made a file named showtext.html in which I have to write javascript such that it can display the text present in text.txt. I assume it would be like :  Text ( text.txt )   Show me up !   HTML ( showtext.html )  <!DOCTYPE html> <html> <body> <script>    var src = "text.txt";    document.write( value.get( src ) ); </body> </html>   Output of showtext.html  Show me up !   In, the above function the value.get() gets and then writes the value of the text.txt. So, can javascript really do such ? How can I make the value.get() ? Will it support only .txt extension or can support any custom extension ? Or this can only be done with PHP ?


remove wordpress audio shortcode with preg_replace

I want remove all <audio> shortcode in my post with preg_replace, but that dosnt work for me:  $content = preg_replace('#<audio>(.*?)</audio>#', '', $content);


When compiling my bibliography I end up with weird "e. a." abbreviations in front of some entries:  [4] e. a. P. F. Swaszek, R. J. Hartnett, \Analysis of a simple, multiple receiver gps spoof detector," in Proc. ION NTM, San Diego, California, January, 2013. [5] e. a. N. O. Tippenhauer, C. Popper, \On the requirements of successful gps spoofing attacks," in CCS'11, Chicago, 2011. [6] e. a. J. Nielsen, A. Broumandan, \Gnss spoong detection for single antenna handheld receivers," Navigation: Journal of the Institute of Navigation, vol. vol 58, no. 4, pp. 335{344, 2011.   My bib file looks like:  @InProceedings{ pfsrjh1,  author      = "P. F. Swaszek, R. J. Hartnett", title       = "Spoof detection using multiple COTS receivers in safety critical applications", booktitle   = "Proc. ION GNSS", address     = "Nashville, Tennessee", year            = "September, 2013"  } @InProceedings{ Tip1,   author    = "N. O. Tippenhauer, C. Popper, et al",   title     = "On the Requirements of Successful GPS Spoofing Attacks",   booktitle   = "CCS'11",   address = "Chicago",   year      = "2011", } @Article{ Niel1,   author    = "J. Nielsen, A. Broumandan, et al",   title     = "GNSS Spoofing Detection for Single Antenna Handheld Receivers",   journal   = "Navigation:  Journal of the Institute of Navigation",   volume = "vol 58, no. 4",   pages      = "335-344",   year      ="2011" }   There are other entries that do not cause this effect, and are formatted in the same way (at least as far as I can tell) For example:  @TechReport{ DAN019,  author      = "Spirent Communications PLC", title       = "Keeping your eye on the sky", address     = "Paignton, Devon, TQ4 7QR, England", number      = "Spirent Application Note DAN019-TM", institution = "Spirent Communications PLC", year            = "2009"  }   Produces:   [1] S. C. PLC, \Keeping your eye on the sky," Spirent Communications PLC, Paignton, Devon, TQ4 7QR, England, Tech. Rep. Spirent Application Note DAN019-TM, 2009.   Thoughts????


There's this online beer company in Germany that is offering Belgian and other foreign beers and they are on Sky here all the time with their commercials.  Now, they are called Beer Deluxe and their tagline is: "Beer Deluxe! Drink different!" Just wondering if 'Drink Different' is grammatically correct? Should it not be 'Drink Differently!'? What is the correct grammatical explanation here?


"I am seeing my friends from the club this Saturday at ten o' clock." or "I am going to see my friends from the club this Saturday at ten o' clock."  Which phrase is more correct?


Removing GRUB from windows system after uninstalling Ubuntu from Windows 7

I have installed Ubuntu alongside Windows 7 (no separate partitions, I selected inside windows option).   I want to uninstall Ubuntu but last time I tried it and the Ubuntu is released but the GRUB remains. How do I remove GRUB?


Gnome Panel becomes fully transparent when window is not maximised!

In my Ubuntu 18.04 Top Panel becomes fully transparent when any window is not maximized.  When the window is Maximized    When the window is not Maximized   How can I resolve this issue?


Harlan Ellison(?) story about immortality

There's a story I listened to some time ago. I know it was narrated by Harlan Ellison, but I don't know for a fact it was written by him. It was a collection of three very short stories centered on the subject of immortality.  In the first, you can live forever as long as you have enough money. Eventually the planet devolves into fighting, with the entire planet being renamed "Death Valley".  In the second, people can sell their hard-earned skills for youth, then spend more time gaining more skills, and so on. At the end, everyone decides to revert to infancy, being taken care of by machines.  In the third, you can live forever as long as you find at least one person to love you. The story follows the efforts of a profoundly unlovable man trying to achieve just that.


Why can't we erase actively-harmful usage guidance/wiki excerpts?

If you try to delete a useless usage guidance excerpt, you can't save the edit, because you get an error message that "Wiki Excerpt is missing." No kidding. That's the whole point!  Why is the excerpt absolutely required once it is ever populated, even for tags that are reasonably self-descriptive? It's nice to want to have guidance for every tag, but often it's far more practical to just rely on the tag name, and stopping an editor in their tracks can be harmful if they're just trying to help by clearing away guidance that's outright counterproductive. For example,  on ELL: "For questions that use the word 'which'." How about we not include  in that, OK? In cases like this, it would be far better to have nothing at all than to have that bit of drivel.  Even . Please allow editor discretion, rather than enforcing an inconsistently and unrealistically high standard for fixes to terrible excerpts.


Set default location mode to device only

On my Motorola Moto G XT1068 with 5.0.2 whenever I'd turn on "location" it would ask permission to use high accuracy mode, and if I remember rightly, send information to Google. I always chose disagree because I don't want to do this.  Today I was helping a friend trial an app and in order to get it to function properly I was forced agree to this. Now I have two problems:   When I turn location on it always defaults to high accuracy, I cannot get it to default to device only I have no idea how to revoke this permission that I agreed to   So, my questions are:  1. How can I get it to default to device only?  2. How can I revoke this permission?  Ideally I don't want to have to do a factory reset. And yes, I know, I shouldn't have said yes if I didn't agree, but silly me assumed I could easily revoke this permission.


Minimize the standard deviation in list of numbers by subtracting from each value

Suppose we have a list of values, $L = (x_1, x_2, ..., x_n)$, and another list of numbers, $Q = (q_1, q_2, ..., q_n), q_i$ being the maximum value we can subtract from $x_i$ (so from $x_i$ we can subtract any number in $[0; q_i]$. I want to find a combination of subtractions such that the standard deviation of the resulting list will be minimal. (In other words, I want to find a set of values, $R = (r_1, r_2, ..., r_n)$, $r_i \in [0; q_i]$ such that the standard deviation of $L' = (x_1-r_1, x_2-r_2, ..., x_n-r_n)$ is minimal.) A graphical example (the blue points are the plotted $x_i$):  Any help would be appreciated. Thanks.


Are there any recommended texts for introduction to Lindblandian dynamics for third year undergraduate?

I am looking to learn Lindbladian dynamics and apply it to a system with multiple baths. Are there any texts available that only assume undergraduate Quantum Mechanics knowledge (My school offers three quantum mechanics courses, and I have done two of them)? The more concise and application oriented the text is, the better.


i saw this code on the internet but i don't know what that starred expression in front of map function do.  here's the code  print(*map(input().find,map(chr,range(97,123))))   i was thinking about args but it doesn't apply for this code because this is map function right? does it relate to map function or print function? or both?  also i tried running this code without that star in front map function like this  print(map(input().find,map(chr,range(97,123))))   but the output was this  <map object at 0x7f42409d50f0>


Can't use a static typedef pointer in a static class. C++

I am trying to assign a static pointer in a class so I can access it by class functions.   Basically, the typeDef is defined in a third party header file.  typedef struct {   CAN_TypeDef                 *Instance;  /*!< Register base address          */    CAN_InitTypeDef             Init;       /*!< CAN required parameters        */    CanTxMsgTypeDef*            pTxMsg;     /*!< Pointer to transmit structure  */    CanRxMsgTypeDef*            pRxMsg;     /*!< Pointer to reception structure */    __IO HAL_CAN_StateTypeDef   State;      /*!< CAN communication state        */    HAL_LockTypeDef             Lock;       /*!< CAN locking object             */    __IO uint32_t               ErrorCode;  /*!< CAN Error code                 */  }CAN_HandleTypeDef;   Here is my Test class header file "Test.hpp"  #pragma once #include <stm32f4xx_hal.h> class Test { public:     static CAN_HandleTypeDef* hcan1;  };   Here is the Test class code "Test.cpp"  #include "Test.h"   void DoSomething() {            HAL_CAN_Receive(Test::hcan1, CAN_FIFO0, 100); }   Here is the main function where I try to assign it a value  int main(void) {    CAN_HandleTypeDef hcan1;   <-- Code is here that uses and populates hcan1 -->   // Initialize libraries     Test::hcan1 = &hcan1; }   When I try to compile I get the "error : undefined reference to `Test::hcan1'"  I am new to cpp, but I know when you declare you have to also define. However, when I try to define it tells me I have multiple declarations.  What's the solution here?


Quite often we see that the file we are trying to save in vim after edit is reported to be read-only. The way around this is to add !wq, i am trying to figure out what internally goes that allows the vim program to gain enough permission to write the read-only file ?   Is there a internal flag which is switched or the vim temporarily gains the privileges for some time ?


using persian characters cause every fields of mysql table insert value null

i am new android developer who developing a persian real estate android project.i have a form which inserts new estate to mysqli table using php file.but when i use persian characters in every field of that  form it actually inserts null values to every fields of table.but when i use english characters it inserts to the table completely! for example here is my english characters json sent from android :  {"price":"5668845555","address":"ssfghhvcxdd","phoneNumber":"544585533","bedRoom":6,"describtion":"fdstghgccff","isForSale":"rent","isCommertial":"not commertial","meter":545,"image":"android.graphics.Bitmap@c10755a"}   and this is included persian characters json sent from android:  {"price":"5668845555","address":"بلاتذزییبغاتتاا","phoneNumber":"544585533","bedRoom":6,"describtion":"یباننترلبقثس","isForSale":"rent","isCommertial":"not commertial","meter":545,"image":"android.graphics.Bitmap@c10755a"}   while both json's is completely correct the json with persian characters dont inserts to table correctly!  this is my php file:  <?php  define("SERVER_NAME", "localhost"); define("USER_NAME", "root"); define("PASSWORD", ""); define("DATABASE_NAME", "mydb");  $conn = mysqli_connect(SERVER_NAME, USER_NAME, PASSWORD, DATABASE_NAME);   header("content-type: application/json;charset=utf-8");    $jsonContent = file_get_contents('php://input'); mysqli_set_charset($conn, "utf8"); utf8_encode($jsonContent);   $arrayContent = json_decode($jsonContent,true);   $price = $arrayContent["price"]; $address = $arrayContent["address"]; $phoneNumber=$arrayContent["phoneNumber"]; $image=$arrayContent["image"]; $meter=$arrayContent["meter"]; $bedRoom=$arrayContent["bedRoom"]; $isCommertial=$arrayContent["isCommertial"]; $isForSale=$arrayContent["isForSale"];  $describtion=$arrayContent["describtion"];     // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  $sql = "INSERT INTO estates (price,address,phoneNumber,image,meter,bedRoom,isCommertial,isForSale,describtion) VALUES ('$price','$address','$phoneNumber','$image','$meter','$bedRoom','$isCommertial','$isForSale','$describtion')";  if ($conn->query($sql) === TRUE) {     echo "Estate added successfully"; } else {     echo "Error: " . $sql . "<br>" . $conn->error; }   $conn->close(); ?>   and this is what mysql table looks like after these two json's    and i have to say that all of my fields collation is utf8_persian_ci   so what do you think is my mistake? thank you  Problem Solved!  by using String Formatter Class in android i sent json in right way to php!    public class StringFormatter {      // convert UTF-8 to internal Java String format     public static String convertUTF8ToString(String s) {         String out = null;         try {             out = new String(s.getBytes("ISO-8859-1"), "UTF-8");         } catch (java.io.UnsupportedEncodingException e) {             return null;         }         return out;     }      // convert internal Java String format to UTF-8     public static String convertStringToUTF8(String s) {         String out = null;         try {             out = new String(s.getBytes("UTF-8"), "ISO-8859-1");         } catch (java.io.UnsupportedEncodingException e) {             return null;         }         return out;     }  }


Change font size in the middle of a document or for individual included .tex file

I'm writing a lengthy project which needs to be in 12pt, but my appendices make use of \small and \tiny commands which only align correctly in 10pt since there is a large amount of numerical data in multiple columns across the pages (these get too squished together and overlap in any higher font size).  I have separate sections and \include those files, and wish only to set the appendix section in a smaller font. I reference to the appendix and it contains many figures so can't make it a separate document.  I'm trying to use \fontsize{10}{12}\selectfont but it's not working. Sometimes it doesn't change anything, at the moment it makes the font slightly smaller but not 10pt size.  Code:  \documentclass[12pt]{article}  \usepackage{graphicx} \usepackage{multicol}  \includeonly{intro,theory,appendix}  \begin{document}  \include{intro} \include{theory} %...etc   {\fontsize{10}{12}\selectfont       %<---this doesn't work \include{appendix} }  \end{document}   I'm fairly new to LaTeX and self taught, so most of my help comes from googling and ending up here, but I'm really stuck at this one and the solutions to similar questions don't seem to work for me.   makes the font size correct but seems to add the page margins twice in the appendix, so that the whole appendix text is too far down and too far to the right.


a more relible solution to LAST_INSERT_ID

so I want to link two tables with a common column "messageID". so first I insert into table 1  to get the Auto incremented id, then take that ID with LAST_INSERT_ID function and give that as the id for table 2:  $db->("INSERT INTO table_1 VALUES('','$message')"); $db->("INSERT INTO table_2 VALUES(LAST_INSERT_ID(),'$message');   but here's my concern, there might be two users running this script simultaneously, so in the few milliseconds between the two queries exicuting the LAST_INSERT_ID could have changed, so now the two id's are different. Is there any way I can prevent this possibility. I know it is not possible to insert into two tables with one query, which was my first thoughts. Any ideas much appreciated. Thank you


Make "last seen" on the profile page less exact

While reading , I came across . It describes various uses of the "last seen" field that can help people to abuse the system.   If you can't be bothered to read it, it's basically a mini stalkers' manifesto for SE. Very creepy (some of the creepy bits have now been edited out, presumably as a response to this post)  As this field isn't particularly useful anyway, can it please be augmented in some way to reduce the potential for abuse? At least on smaller sites where it's much easier to use that data to infer information that's supposed to be anonymous?  I'm not sure exactly what form that augmentation should take, it could be as simple as "seen in the last hour" or "seen today/yesterday" rather than the more precise version we see now.  I know, I know, I mean who's going to sit there waiting and watching for these events to transpire just to make sure they can stalk a downvoter, right?  Trust me, it happens. On a site I moderate, we've lost good contributors because every time they downvoted a particular person's posts, they almost immediately got one in kind. Others who've downvoted have received comments on random posts from this person demanding an explanation for your recent downvote at xx:xx:xx on foo question:...  The perpetrator even bragged to me in public comments that he could identify anyone who downvoted his posts; the "last seen" data can help him to do it.  N.B. Something vaguely similar has been , but that was ~8 years ago and for different reasons.


Probability of Sampling All Members of a Subset At Least Once with Repeated, Without-Replacement Sampling

Given a set containing n unique members, what are the odds that all members of a subset m are sampled at least once when non-replacement samplings of size k are repeated i times? Members are replaced between samplings.  Using the , we can figure out the probability that a single member of the subset is never sampled in the i samplings. With that probability and the , we can find the probability that a single member of m is sampled at-least once in the i samplings. However, I am struggling to find a way to represent the probability of sampling each of the members of m at least once.  I know that it's not the complement of the probability of sampling m raised to i because the members of m could be spread out across multiple sampling events and still be represneted.  Examples:  n = {1,2,3,4,5}, m = {1,2}, k = 3, i = 2,  "Good": ({1,3,5}, {2,4,5}) - 1 and 2 sampled (different samplings)  "Good": ({1,2,3}, {3,4,5}) - 1 and 2 sampled (same sampling)  "Bad": ({3,4,5}, {3,4,5}) - neither 1 nor 2 sampled  "Bad": ({1,3,4}, {1,4,5}) - 2 never sampled


Easy close review queue filtering interface

Short version:   Make a filter selection page the default entry point for the review queues Show the size of the queues for tags they are likely able to work with - not the whole queue When all review options are done, show the user the impact they have had on the view of the queue they were given to start with     Long version:  There are (at least) two things that discourage people from getting into the /review - the appearance of an endless list that one can't make a dent on and having to 'skip' all the time to get to questions that one does know how.  I'll also point out that I suspect that some honest review audit failures come from people trying to review things they don't have a grasp of.  Making it easier for people to review what they do know may make it easier to honestly pass audits.  Under this model instead of showing someone trying to make a dent in "84,803 need review", break it down to the tags and reasons that a person can work with and see a reward from.  I'm going to use   for this because he has more interesting tags than I do.  I'm also going to pretend that everything he answered or asked is in the close review queue for the purposes of data.  Take the top 50 tags a person has.  This is about the first page of tags.  The reason for this is that it helps ensure that there is enough to build up a queue.  It also helps identify the questions that a person is likely able to cast the appropriate close vote (or leave open) on without guessing about technologies one is less familiar with.  Instead of clicking on the review and just getting at the queue with that little filter link at the top, one instead is taken to a filter selection page where one can build up the appropriate filter to work from.      You could select wedges from the pie chart, or select them from the list on the side.  Furthermore, there would also be a place to enter other tags.  Additionally, there would be a breakdown by close reason that one can select to build up the appropriate filter.  With both tags and close reasons, a question can fall into multiple spots.  For the purposes of this, show it in both tags or reasons.  Upon completing all the reviews for the day, show the information again, and allow them user to see the impact on the tags and reasons they chose.  This is the reward - not a badge or something, but a visible impact on the size of their corner of the queue.  One of the things this may help do - by presenting this information - is hep engage the various tag communities around the site to go and work on the review queue for their tag.  Seeing that some tag went from 3894 questions in the queue to 3563 in the last day may help.  Allowing a person to go and address just the off topic - recommend or off topic - migration (note, those are time sensitive) -- or even just 'off topic').  Of course there should still be a 'just take me to the queue' (and one can still set up the filter in the queue that way).  The key is to show the impact of what they have done to the queue in a way that is meaningful and not overwhelming.    A mockup to give an idea of what I'm thinking about.  Don't look too deeply into the numbers, they are more as an example.  You hit your standard 'review' link to get to the close review queue.  Instead of taking you right to the reviews, you get a page of stats that lets you see what is in the queue and modify the filter.    Note the 'Other' box at the bottom which has the same functionality as the 'tag' input that one can get from the current filter link.  I should also point out that the 'Review!' link can be clicked on without setting up any filters if you want to just "take me to the queue" and tackle whatever is there or use the old filter style setup.  You go through, you do your reviews and then you have a page that shows the queue once you've exhausted your tag or your reviews for the day.    Thats really what its about.  Make it easy to set up the filter of things you are likely able to review, make it easy to see what effect you have had on the queue when you are complete with the review.


Does 'rhythm' have one or two syllables?

Does the word 'rhythm' have one or two syllables?  I'm wondering if there are any reasons for or against a sound-based argument vs a written-based argument.


Extra blank space on answers near the end of the list

When I am reading answers to a question with many answers, the further down the list of questions I go, the more blank space at the end of each answer is there.  After about 5 answers, you start getting about a  screen full of nothing but white space at the end of the answer.  I'm on a Motorola razr maxx, running cyanogenmod This screenshot is from the latest example I've seen, on rpg.se, but it occurred on Stack overflow also.    Top of the example answer:   Bottom of the example answer:   Here's the question from the screenshots


How can someone invent a spell? Snape has invented Sectumsempra, we all know that. But what interests me is the act of making spell. If all spells are invented, what does it say about magic in HP-universe?


Is it OK to copy answers to the same question?

I only raise this question now as similar just happened to me, but I've witnessed this behaviour several times:   Somebody asks a question Person A answers Person B provides the same answer and links some time later Sometimes Person B receives upvotes from friends/etc. as soon as they answer Person C answers adding something constructive Person B Again copies the new information into their own answer   Sometimes Person B answers first but with no information or something far far wide of the mark, and then waits until somebody posts the correct answer to update their own. I've seen this happen before where Person B has had an outright wrong answer then 20 mins after person A answers, they delete their original answer and post Person A's answer again.  This doesn't seem like behaviour that should be tolerated, is it? Is there some way to flag this? (I'm asking in general, not because I plan to flag the newbie who just did this to me)


SPException turning on Community Feature

I'm trying to activate the Community Feature, after it was turned off. I'm now getting this error:  [SPException: Site-level fields created by the Community Site features and its dependencies must not be removed.] Microsoft.SharePoint.Portal.FunctionalityEnablers.AddTopicPageUrlField(SPList parentList, SPContentType[] contentTypes) +417 Microsoft.SharePoint.Portal.CommunitySiteFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties properties) +1778 Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce) +1769    Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce) +2988    Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly) +3349    Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, Boolean fIgnoreMissing, SPFeatureDefinitionScope featdefScope) +207    Microsoft.SharePoint.WebControls.FeatureActivator.ActivateFeature(Guid featid, Int32 compatibilityLevel, SPFeatureDefinitionScope featdefScope) +1212    Microsoft.SharePoint.WebControls.FeatureActivatorItem.ToggleFeatureActivation() +229    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +146    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3586   Any ideas what's happened?


So when we say -My sister and brothers We use are because of "brothers" But if i say -My sisters and brother What is the correct word to use? Are or is?


I want to share my ubuntu's internet connection to iphone 5.Can you help me?


Everywhere I go, I am asked to create a new account. Why don't all Stack Exchange sites have a single login credential and reputation carrying?


Sort an array by object property using StringComparer.Ordinal

I have read questions related to sorting an array of objects by property, but I have a special case where I need the aditional StringComparer.Ordinal object to perform a custom sort.  I have a DirectoryInfo[] array where I need the subdirectories to be sorted by their FullName property but I need the sorting order of the numbers contained in the paths to be:  1 - 2 - 4 - 10 - 14 - 25   instead of  1 - 10 - 14 - 2 - 25 - 4  (I have paths such as c:\Folder\Subfolder\1, c:\Folder\Subfolder\2 ...)  I think this would be acomplished with: Array.Sort(paths, StringComparer.Ordinal) if my array was an array of strings.  How can I acomplish this if my array is an array of DirectoryInfo[]? I would like to avoid extending DirectoryInfo by creating a new class.


Understanding Lenses and the Focal length and Distance of Shooting

Suppose i want to make a Picture of a Tiger,in the National park or in wild life safari,and to  fill in the Frame with my Aps-c Eos Camera with  Focal Length at 300mm,how close or far i need to Approach the subject,I would Like to Know the Distance in meters or in Foots Roughly?


I have found plenty of questions that almost answer my question, for example this  but they all lack one detail.  I want to do something like this  var clipText = "aaabccc"; var replaceStr = "abc"; var withStr = "def"; clipText = clipText.replace(/replaceStr/g, withStr);   That is, use two variables as arguments to replace but replace seems to interpret the variable names literally rather than using their assigned value. I also want to replace all occurrences, hence the g after replaceStr.  What gives?


In the Doctor Who episode "Blink", the Doctor tells Sally this about the Weeping Angels:     They are quantum-locked. They don't exist when they're being observed. The moment they are seen by any other living creature, they freeze into rock. No choice. It's a fact of their biology. In the sight of any living thing, they literally turn to stone.   Towards the end of the episode the Doctor then traps the four Angels by having them all facing each other after the TARDIS has dematerialised. If the Angels cease to exist while being observed, then how can they be observing each other while locked into stone? If the observation to trigger the quantum-lock counts as 'In the sight of any living thing', then they surely aren't actually trapped as when they're stone they don't exist so aren't observing one another, and so long as they move one at a time they could escape the formation the Doctor left them trapped in? Note that this question doesn't deal with how to generally defeat/damage an Angel in its quantum-locked state, but rather the very specific case and nuanced trap presented in this episode.


Changing text that is displayed when hitting the time limit for comment deletion

EDIT: Let me break it down to something even simpler.  I understand that this is a  bug. I also understand that the deletion of a comment is implemented as a vote for deletion. The only thing I cannot get my head around is:   Why can we not change the text that is displayed? Is it because it would be too cumbersome to make this change implementation-wise? Is it just low-priority?   The second and third question are simple yes-or-no questions that I think I can expect an answer to. I apologize if I missed something important.    I recently deleted two of my comments and got the following warning:        Why is deleting my comment called a "comment vote"? Now, please read on before flagging it as a duplicate...  This is the same question as this one: . But unfortunately, nothing was done to fix the bug.  So, perhaps my question is rather: Why was this bug not addressed so far?  It has been around for a couple of years now and I'd really like to see a change to this misleading pop-up text.  N.B. I am not complaining about the time limit of 5 seconds. I am complaining about the wording.


How to make a ruler with logarithmic divisions?

I'm trying to make a slider for a custom cut-out slide ruler with logarithmic increments/divisions on each side. On one side the scale needs to go from 100 to 5000. On the other it needs to go from 0.1 to 10.  I can make a ruler, e.i. like this:  \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[rotate=0,transform shape]     %% Draws a 15 cm ruler ''box''         \draw (-0.2,0) rectangle (15.5,1);         %% Lower side divisions in cm             % Draws long line every 1 cm             \foreach \x in {0,1,...,15}{             \draw (\x,0) -- (\x,0.2)node[above,scale=0.4]{\x};             }             % Draws medium line every 0.5 cm             \foreach \x in {0.1,0.2,...,14.9}{             \draw (\x,0) -- (\x,0.075);             }             % Draws short line every 0.1 cm             \foreach \x in {0.5,1,...,14.5}{             \draw (\x,0) -- (\x,0.15);             }      %% Upper side divisions in inches             % Draws long line every 1 in             \foreach \x in {0,1,...,6}{             \draw (\x in,1) -- (\x in,0.8)node[below,scale=0.4]{\x};             }             % Draws medium line every 0.5 in             \foreach \x in {0.1,0.2,...,5.9}{             \draw (\x in,1) -- (\x in,0.925);             }             % Draws short line every 0.1 in             \foreach \x in {0.5,1,...,5.5}{             \draw (\x in,1) -- (\x in,0.85);             }     \end{tikzpicture} \end{document}   But this have just normal, even increments. I've been looking everywhere to find out how to make them logarithmic, but I've had no luck so far. The closest I've come is axis and pgfplots, but I hav no ide how to utilize that for a slider/ruler like the one over.  Any tips or points in the right direction would be much appreciated!  In advance thanks to anyone who can help.  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  CLARIFICATION/UPDATE ON QUESTION:  Hi again.  I was not precise earlier. I want to to make a ruler about similar to this one:   It doesn't need to be exactly like it and internal placement of the scales is for now not important. I just want to know how to make the logarithmic divisions. I have seen the other post seen here:   The solution here is a logarithmic grid system with a hidden axis, producing something like this:  This gave me a couple of problems: I haven't figured out how to put custom numbering on this, i.e. (0.1,0.2,0.3,...1,2,3,...10,20,30,...100) instead of 1e0.1,1e0,2, and so on. The other is to have two og them side by side in a ''ruler'' ment for cut-out.  If \foreach can do this directly it would be perfect. But I haven't been able to find anything about it anywhere.  I hope this made my question a little clearer.


Actually i'm a new user i'm getting problem in knowing sudo password First of all, What is it? Secondly, Where do I get it? I'd really appreciate some help.


Transparent shader renders black when Transparent shader is behind it (Cycles)

So when I render rougly speaking a plane with an alpha channel it's fine. But only as long as there is no such material behind it. In that case it renders the transparent part black. Why is that so and how to solve it? Thanks in advance.


Split list on smaller lists with equal elements

In my list "A" i have got numbers and ' ', so I want to make a list of list named e.g "b", every list should have nine number (if it possible), no matter how much it have ' '. Any idea how to do this?  A = ['1', '3', '4', '5', '7', '8', '9', ' ', '13', '16', '3', ' ', '5', '17'] B = [ ['1', '3, '4', '5', '7', '8', '9', ' ', '13', '16'], ['3', ' ', '5', '17'] ]


I am trying to import a file with a list of latitude and longitude coordinates.  In Visual C#, and using GMAP.NET, a marker is placed for every coordinate pair.  I want multiple files to be able to be uploaded, and for the user to be able to select the color of the marker for that specific file. I have a combobox with a few options included, however when I try to set the color of the marker to the text in the textbox, it can't "implicitly convert type string to GMarkerGoogleType". Is there a way to make this conversion?  Here is the relevant code:  private void btn_KMLFile_Click(object sender, EventArgs e)     {         DialogResult result = openFileDialog4.ShowDialog();         if (result == DialogResult.OK)         {             string filename = openFileDialog4.FileName;             string[] lines = System.IO.File.ReadAllLines(filename);             foreach (string line in lines)             {                 GMarkerGoogleType MarkerColor = cbo_MarkerType.Text;  //How can I convert this string to a GMarkerGoogleType?                 string[] Data_Array = line.Split(',');                 Double londecimal = Convert.ToDouble(Data_Array[0]);                 Double latdecimal = Convert.ToDouble(Data_Array[1]);                 var marker3 = new GMarkerGoogle(new PointLatLng(latdecimal, londecimal), MarkerColor);                 marker3.IsVisible = true;                 gMapOverlay.Markers.Add(marker3);                  gmap.Update();               }         }     }   EDIT: This question is not a duplicate, the question can be rephrased as what type is a GMarkerGoogleType?


Do not load Facebook-based avatars directly from the Facebook CDN

Users who register for their account via Facebook get  as their default avatar. However, the avatar is not copied to SE servers or Imgur, and thus the original URL is kept. This URL compromises the privacy of the user as it contains their Facebook user ID which everyone can easily extract and then view the profile.  The image is also not visible at all to those who have Facebook blocked for their own privacy (by extensions such as Ghostery or browser features ), or due to network policy (e.g. some work and school networks block Facebook).  With the new avatar system, it would be much better if the Facebook photo was stored like a manually uploaded avatar to avoid this problem.


What is an "uninformative prior"? Can we ever have one with truly no information?

Inspired by a comment from :  What do we consider "uninformative" in a prior - and what information is still contained in a supposedly uninformative prior?  I generally see the prior in an analysis where it's either a frequentist-type analysis trying to borrow some nice parts from Bayesian analysis (be it some easier interpretation all the way to 'its the hot thing to do'), the specified prior is a uniform distribution across the bounds of the effect measure, centered on 0. But even that asserts a shape to the prior - it just happens to be flat.  Is there a better uninformative prior to use?


space usage on sys.allocation_units and sp_spaceused

It is a known fact that the DMVs dont hold accurate information regarding number of pages and count of rows. However, when you have the stats updated, I can't see why they wouldn't.  I am working on a monitoring tool, want to know disk size of each index and data, etc. Eventually I would like to find the right fill factor, and other things etc.  The space used by my function and the old sp_spaceused differs a little bit on the space usage, but not on record count.  Can you see if there is anything missing in my select?  this is the sp_spaceused (then I convert the numbers in MB):  sp_spaceused 'tblBOrderRelationship' go  select 318008/1024.00 AS reserved, 140208/1024.00  AS data, 177048/1024.00 AS index_size, 752/1024.00    AS unused     But when I run my select, code below\picture below, I get slightly different figures.  SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED  SELECT      schema_name(t.schema_id) as SchemaName,     t.NAME AS TableName,     t.type_desc,     t.is_ms_shipped,     t.is_published,     t.lob_data_space_id,     t.filestream_data_space_id,     t.is_replicated,     t.has_replication_filter,     t.is_merge_published,     t.is_sync_tran_subscribed,     --t.is_filetable,     i.name as indexName,     i.type_desc,     i.is_unique,     i.is_primary_key,     i.is_unique_constraint,     i.fill_factor,     i.is_padded,       sum(p.rows)               OVER (PARTITION BY t.OBJECT_ID,i.index_id)  as RowCounts,     sum(a.total_pages)        OVER (PARTITION BY t.OBJECT_ID,i.index_id)  as TotalPages,      sum(a.used_pages)         OVER (PARTITION BY t.OBJECT_ID,i.index_id)  as UsedPages,      sum(a.data_pages)         OVER (PARTITION BY t.OBJECT_ID,i.index_id)  as DataPages,      (sum(a.total_pages)       OVER (PARTITION BY t.OBJECT_ID,i.index_id)  * 8) / 1024 as TotalSpaceMB,      (sum(a.used_pages)        OVER (PARTITION BY t.OBJECT_ID,i.index_id)  * 8) / 1024 as UsedSpaceMB,      (sum(a.data_pages)        OVER (PARTITION BY t.OBJECT_ID,i.index_id)  * 8) / 1024 as DataSpaceMB FROM      sys.tables t INNER JOIN           sys.indexes i ON t.OBJECT_ID = i.object_id INNER JOIN      sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id INNER JOIN      sys.allocation_units a ON p.partition_id = a.container_id WHERE      t.NAME NOT LIKE 'dt%' AND     i.OBJECT_ID > 255  AND T.NAME = 'tblBOrderRelationship'   the figures    the bigger picture, including the index names   Now doing some calculations to check the results:  --================================== -- the figures from sp_spaceused --================================== select 318008/1024.00 AS reserved, 140208/1024.00  AS data, 177048/1024.00 AS index_size, 752/1024.00    AS unused  --================================== -- the figures from my select --================================== select 137+61+56+54 AS reserved,        137 AS data,        61+56+54 AS index_size     It is not so far off, really, apart the fact I did not calculate the unused space!  What can I do to make this accurate?  AFTER CHANGES:  After I replaced 1024 by 1024.00 the results are much more accurate.  I noticed records have been inserted into the table in question, and obviously the stats are not so up to date, but still the results match (under 1 MB difference - which is all right for me)  The new result sets are:  --================================== -- the figures from sp_spaceused --================================== select 318072 /1024.00 AS reserved, 140208 /1024.00 AS data, 177096 /1024.00 AS index_size, 768 /1024.00 AS unused go  --================================== -- the figures from my select --================================== select 137.7578125+61.7968750+56.4218750+54.6406250 as reserved,        137.7578125 as data,        61.7968750+56.4218750+54.6406250 as index_size


How to prove this polynomial has an imaginary root?

How can we show that the polynomial  $a_nx^n + a_{n-1}x^{n-1} + a_3x^3 + x^2 + x + 1 = 0$, where $a_i\in \Bbb R$, $i=3,...,n$  has an imaginary root?


Book where main character is an alien but doesn’t know

I’m trying to find a book (teen SciFI I guess) I read probably in 1998ish. There was a girl living on a alien planet. Someone looked after her but not a parent. I think she had to wear a suit all the time. She had a pet dog type thing which dies (it gets attacked by another alien animal). She finds out she is a scarlet alien creature and she didn’t know! Any ideas? I think there is a human boy there who she makes friends with. She thinks she is a human and that she has to wear the suit to breathe but it is to hide her true identity.


Add "Eq." to Equation numeration but not to reference

maybe I am already looking at it, but I can't see it, so I would be glad if someone can give me a short hint.   \documentclass[12pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \renewcommand{\theequation}{\textit{Eq. \thesection.\arabic{equation}}}   \begin{document}  \section{Vogelpohlsche Volumenformel} \begin{equation} n = \frac{10^{-8} F}{6 C \cdot \eta \cdot V} \label{eq:Example} \end{equation}  A reference to the equation \ref{eq:Example} is helpful.  \end{document}   As with this MWE, I redefined the numeration of the equation that it appears on the right as "Eq. 1.1", which works fine. But when I am referencing the equation inside text, I normally write the whole word "equation" and add the reference.  Here it gives me also the abbrevation for the reference ("A reference to the equation Eq. 1.1 is helpful."). What is the way to have the "Eq." in the numeration but not in the reference?  I want to avoid additional packages or so and I also looked up former questions like this one without seeing the solution    Thanks for your input and have a nive day to you all!


How do I send a file as an email attachment using Linux command line?

I've created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to .sql files and packages them together as a compressed .tar file.  The next step I want to accomplish is to send that tar file through email to a remote email server for safekeeping.  I've been able to send the raw script in the body an email by piping the backup text file to mailx like so:  $ cat mysqldbbackup.sql | mailx backup@email.com   cat echoes the backup file's text which is piped into the mailx program with the recipient's email address passed as an argument.  While this accomplishes what I need, I think it could be one step better, Is there any way, using shell scripts or otherwise, to send the compressed .tar file to an outgoing email message as an attachment?  This would beat having to deal with very long email messages which contain header data and often have word-wrapping issues etc.


Georeferencing window won't open QGIS 2.4

I had the georeferencer window open in QGIS 2.4 while project was running, I accidentally closed the Qgs document with the georeferencing window open (worked absolutely fine till then). When I opened QGIS again and clicked the georeferencing plugin, the window doesn't open.  I tried closing and opening the Qgs doc, deleting temp files, opening QGIS 2.2, restarting computer, but the problem persists. I don't see any error logs in QGIS when I try to open the window.  Any help or possible error checklist is welcomed.  Update I've tried a quick re-install of QGIS 2.4, still no luck. looks like a complete purge is needed.  Update 2 I created a new user on my computer, it already has QGIS installed, and the georeferencer plugin works fine.


PHP: Write non ASCII Characters like german umlauts (öäü)

I'm programming a quite simple PHP Script, that writes a string (sentence) got from an HTML FORM into a file. This string sometimes contains Non-ASCII Characters, in my case german umlauts, äöü. But instead of writing them to the file correctly it just writes little question-mark-symbols. How can I fix that?   <?php header('Content-type: text/html; charset=utf-8');   #   $_POST["message"] #   $_POST["random"] #   $_POST["date"]  #$MESSAGE = utf_encode($_POST["message"]);  $countfile = fopen("filecount", "r");  $filecount = fread($countfile,filesize("filecount")); fclose($countfile);   $filename = $filecount + 1; echo($filename);  if ($_POST["random"]){  $newmessagefile = fopen($filename, "w"); fwrite($newmessagefile, $_POST["message"]); fclose($newmessagefile);  $countfilew = fopen("filecount", "w"); fwrite($countfilew, $filename);  fclose($countfilew); }   else {      $newmessagefile = fopen($_POST["date"], "w");     fwrite($newmessagefile, $_POST["message"]);     fclose($newmessagefile);      $specialdaysfile = fopen("specialdays", "a");     fwrite($_POST["date"]);     fclose($newmessagefile);  }  ?>


I'm currently trying to install GeForce drivers for Kali Linux, but it isn't going so smooth.  I have a GTX 285 and when I try the apt-get method for drivers I'm told that my card is no longer supported this way and I need to download the 340.96 drivers from nVidia.  Trouble is, when I try to install it I'm met with "the compiler used to compile the kernel was gcc 5.4; the current compiler is gcc 6.1."  I've attempted my best Google-fu skills but as of yet I've made no progress. None of the fixes I've found have had any effect and since I already uninstalled nouveau I'm getting tired of a 1280x720 display on a 1080p monitor :3 if anyone has any suggestions I'm all ears! Thanks :D  Here's a link to the  -


How to get ongoing notifications of unread texts?

One of my family members texts me at night when they are having nightmares. I want to know when they text me at 4 am instead of sleeping through it.  Is there a way to make text notifications keep going off until read?


I've seen this done before but it was a long time ago. I don't know what it's called so forgive me if there's already a thread like this. Say you have a cube and you put a sphere inside the cube half way so that half of the sphere is poking out. You then use that sphere to carve out the other half of the sphere into the cube as if it's leaving a footprint.  Please redirect me to any duplicate post out there!  NOTE: I'd prefer to avoid using the Knife tool.


How do I fill a shape with text, like a circle?

How do I confine text within a shape such as a circle or triangle?  I don't want text along the perimeter, I would like it to break appropriately at all the inner edges.


Virtualization is not available within ubuntu image that was installed through virtual box on Windows 7

I have windows 7 system where virtual box is installed and virtualization is enabled.    In virtual box I have installed ubuntu image that is also have installed virtualbox. But within that box virtualization is not avaible.     Is it possible to enable virtualization for such case?


ThinkServer TS140 no POST (2 beeps) after BIOS upgrade

Yesterday I was experiencing a weird issue with Windows 10; the computer was outputting weird beeps (in Win10, not the BIOS) at random intervals. It sounded like Morse Code, to be completely honest.  After some reading online, it was suggested that I update drivers. After downloading the latest drivers for the system, a BIOS update was included.  I downloaded said BIOS update and installed it. The installation went fine, however now the system won't POST. The system now beeps twice on boor (after an extended period).  I've found the  which provides instructions for recovering a failed BIOS. So far the recovery has run through twice (if the system shuts down, the recovery was "successful"). The first time, I tried a new BIOS version, dated 2019. The system failed to POST. The second attempt was with a BIOS version from 2016 and the system still fails to POST.  Currently I'm at my whit's end. I need this system to run again.  More links where I've followed the instructions:       EDIT: The answers in the question marked do not help this problem in the slightest.  As I've mentioned, the problem is with the BIOS. Not the RAM, not the HDD, not anything. I've attempted disconnecting and re-seating the memory, I've tried recovering the BIOS all to no end.  Is there another way the BIOS can be restored?


I am planning to start a homebrew fantasy savage worlds campaign with my friends over roll20.  We have already played together in a d&d 5e campaign over the past year and now starting a new one.  The problem is that all of us have pretty busy schedules, which means that each session, at least one of the players will be missing. The problem existed in the previous campaign too, the differnce is that I used a pretty railroady campaign and now I want a more homebrew open world kind of adventure.  How can i run a meaningful adventure keeping that in mind?


Finding a bijective mapping from n-tuple to Z

I'm looking for a bijective mapping which maps an n-tuple onto/into a subset {1, 2, 3, ..., nCr) of Z where the n-tuples are (non-repeating) combinations of the integers {0, 1, 2, ..., r - 1}.  For example,     (1, 5, 10) maps to x where (1, 5, 10) is an ordered triple representation of a combination of {0, 1, 2, ..., 14} and thus 1 <= x <= 15C3.  For our purposes, assume the elements of the tuple are zero based but the result is 1 based.  Also, assume the elements of the tuple are in ascending order.  I need the solution to either be a formula or an algorithm and not just "calculate all possible combinations in an orderly way and number them".   This is somewhat like Lehmer encoding but I need it for combinations rather than permutations.  Does anyone know a solution to this?  Edit: Though none of the solutions in the linked question are marked as the solution, I was able to use (with a slight tweak) joriki's solution for my purposes. Thanks guys!


How can some one earn a large number of points by posting 1 question but got 5 upvotes?

I just wonder how someone in StackOverflow can earn a large number of points in a week but just with 1 question and 5 upvotes.  I found  as one of those who earned the highest number of the reputation for the week (315 during the last 4 days).  I tried to analyze his activities to see what sort of activities he was involved to earn such a large reputation in a short time. But I was astonished to see that he has asked only 1 question during his lifetime and the question has 5 upvotes.  Also, he has answered his own question to earn points worth 300? How comes someone can earn such huge points for his own answer? Who will accept the answer? Can someone enlighten me?  I also have questions open for a while on StackFlow without an answer. I have found an answer myself. Will I earn such huge points if I answer my own question?  Thanks Rinsad


When I first learned linear algebra, both the professor and the book used brackets like [ and ] to enclose matrices. However, in my current differential equations textbook, matrices are enclosed by parenthesis, and I suddenly realize everybody else are using them too.  So are brackets/parenthesis for enclosing matrices always totally interchangeable?


How can I do a Reorganize Index Task on SQL Server 2000 using a script?

I have a Server that is running SQL Server 2000 and I need to add a Reorganize Index Task.  I haven't been able to find a way to create a Maintenance Plan so I am performing maintenance tasks using SQL Jobs.  One of the tasks I want to perform is to reorganize the index.  What sql code do I need to use to reorganize an index?  I've seen the code ALTER INDEX ALL ON [TABLE] but I need to reorganize the index on all tables in the database rather than just an individual table and I want to avoid a looping script if possible.


I've heard that aperture can change the exposure, but I would like to know if this is true, and how it does it.  P.S. I hope this question isn't dumb like my last two.


I want to put figure in the document so that it is positioned in the center but its margin goes beyond linewidth. For that I am using the following command.   \documentclass[a4paper]{article}  \usepackage{graphicx}  \begin{document}  \begin{figure} \centering \includegraphics[width=1.3\linewidth]{norm.png} \caption{A Normal Dist} \label{fig: borm}  \end{figure}  \end{document}   The picture that I am using is attached to this post and can be seen below.     If I put the code in this way:  \documentclass[a4paper]{article}  \usepackage{graphicx}  \begin{document}  \begin{figure} \centering \includegraphics[width=\linewidth]{norm.png} \caption{A Normal Dist} \label{fig: borm}  \end{figure}  \end{document}   Then the picture is set to the center nicely, but i want it to extend over the linewidth both to the left and to the right equally. If I use the code I copied previously then the picture extend indeed, but it extends only to the right not to the left.   Can anybody help me fix the issue.   I have read documentation for graphics, graphicx but i could not find it out there.


This is a general, community wiki  question to address "I need a forum script that does x, y, and z..." questions.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on the .    I have a list of features that I want for my website's forum script: where can I find a (free or paid) script that includes all of them?


I’m working on / at / for: Which should I use?

I’m doing this project for a company I’m working on / at / for.  Which one should I use?


What is a composition of two binary relations geometrically?

the composition was  defined as follow:  (a,b) \in (R;S) <=> there is c | (a,c) \in R  and (c,b) \in S .   If our two relations R and S are two convex polygon   Is there a geometric interpretation of the composition of two convex polygon ? for example :   the green polygon was the result of composition. How can i describe geometrically the result !!!