how to adjust my windows sound volume to 30 using cmd promt

I want to adjust my windows sound volume to 30 using cmd prompt without using mouse or keyboard.  My intention is to create a bat file and once I plugin my headset Iwill change my system volume using the bat file.


"cd `" (backtick) command results in ">", why and how do I exit it?

When I type   cd `   into a terminal, then I get this  >   Even ls or cd is not working. Attempting to run such a command on the > prompt just gives another > prompt.  Please explain the meaning of the above command. And how do I exit it?


What is the latest research on Serif vs. Sans Serif fonts for readability and retention esp. for those with vision issues

I've been told by someone who worked with a researcher that Sans Serif fonts have lots of ambiguity in things like i, 1, l  and this causes the eye to need to back and forth (more, presumably than the usual saccades).  The evaluation criteria is: * Reading fatigue (how much can you read without fatiguing) * Retention  Now, one counter point to this, years ago, might have been that low resolution screens may not render the serifs very well. (And this person indicated that even back then serif fonts were better).  So, I"m wondering, what the latest research is showing, especially for those older folks with poorer eyesight.


Has the gravitational interaction of antimatter ever been examined experimentally?

I know that the gravitational interaction of antimatter is expected to be the same as normal matter.  But my question is, has it ever been experimentally validated?  I think it would not be a trivial experiment, because electromagnetic effects have to be eliminated, so neutral particles would be needed. Maybe diamagnetically trapped antihidrogen atoms could be examined as to which direction they fall?


I recently followed some instructions to reset GitHub for Windows by deleting two folders found within %AppData% and %LocalAppData%, and I've seen these paths before, but never understood them, and searching for them didn't yield the information I wanted to find. What does the percent sign mean in file paths on Windows, as opposed to navigating to C:\Users\etc, and what are the folders %AppData% and %LocalAppData%?


How do I use a C# keyword as a property name?

Using asp.net MVC I'd like to do this inside a view:  <%= Html.TextBox("textbox1", null, new { class="class1" }) %>   This statement does not compile because class is keyword in C#. I'd like to know how I can escape the property names such that this compiles.  It is possible to get this to compile if I change the "class" property to "Class" (uppercase C). But this is not suitable because strict xhtml says that all attributes (and element) names must be lowercase.


How can I make ffmpeg be quieter/less verbose?

By default ffmpeg sends a whole lot of messages to stderr: when built, how it was built, codecs, etc, etc, etc.  How can I make it quieter?  I've tried -v 0 (and -v 10 since the documentation just coyly says Set the logging verbosity level. with no indication of what the range of inputs is) -- still not quiet.  I've tried -loglevel quiet -- still not quiet.  I should mention, I'm looking for "quieter," not "no output ever".  If there's an error I want to see it, but I don't need to hear about ffmpeg's configuration every. single. time.


Does the zeros of an analytic function $f$ form a discrete set?

A function $f$ is called analytic if locally it is given by a convergent power series.  Let $ U \subset \mathbb R^n $ be an open set and $f : U \to \mathbb R$ be non zero analytic function. Does the zeros of $f$ form a discrete set?  I'm unable to find counterexample.Please help!


Exit out of "all levels" of SSH connection?

E.g. when I SSH into a server and then sudo bash and then su <user> to do some work, I want a quick way to exit all shells back to my local terminal.  going in  When I have to do some work on a server as jim.  local > ssh me@server server:me > sudo bash server:root > su jim server:jim > // do stuff as jim   going out  When my work is complete but I don't want to leave the shells logged in.  server:jim > exit server:root > exit server:me > exit local > // after 3 commands   preferred way out  Here's how I'd like to do it.  server:jim > exitall // for example local > // after one command


Explode string into array with no empty elements?

PHP's explode function returns an array of strings split on some provided substring. It will return empty strings when there are leading, trailing, or consecutive delimiters, like this: var_dump(explode('/', '1/2//3/')); array(5) {   [0]=>   string(1) "1"   [1]=>   string(1) "2"   [2]=>   string(0) ""   [3]=>   string(1) "3"   [4]=>   string(0) "" }  Is there some different function or option or anything that would return everything except the empty strings? var_dump(different_explode('/', '1/2//3/')); array(3) {   [0]=>   string(1) "1"   [1]=>   string(1) "2"   [2]=>   string(1) "3" }


"Neither", "none", "no one" + [of them] + verb-s

In a comment on English Language & Usage I read the following answer responding to a(n) asker's question: "Neither sound natural." I have always had more than one doubt on the "neither" usage and I would like understand(ing) the "secrets" to use this word better or, at the best, correctly. So, let us consider the following examples:  1 Neither sound natural. 2 None sound natural. 3 No one sound natural. 4 Neither of them sound natural. 5 None of them sound natural. 6 No one of them sound natural. 7 Neither sounds natural. 8 None sounds natural. 9 No one sounds natural. 10 Neither of them sounds natural. 11 None of them sounds natural. 12 No one of them sounds natural.  Comparing the above sentences (one) with each other, can anybody explain which is grammatical and why?


I can't decide, both sounds right and return results on Google.  So is it "any product group" or "any product groups"?  Context: The context is that some product can has sub-product that are part of groups, some have products and some don't. So I will add a method to know "any_product_groups?", "has_product_groups?", "any_product_group?", ... I'm not sure.  Example: "Has this product any product group(s)?"


Suggestion of how to do it, please.     Suppose $\{a_n\}$ is a succession in $\mathbb R  ^+$ such that  $\sum a_n$ diverges, and if  $s_n = \sum\limits_{k=1}^n{a_k}$.   show that $\frac {a_{N+1}}{s_{N+1}} +...+\frac {a_{N+k}}{s_{N+k}}\geq 1 -\frac {s_{N}}{s_{N+k}} $   and infer that $\sum\limits_{n=1}^\infty{\frac{a_n}{s_n}}$ diverge.    Please.thank


Do bodies moving at (near) light speed produce gravity?

If a massive body is moving at near light speed (or, hypothetically at light speed) and on course to hit Earth, will we feel its gravitational pull before it collides with us?  I think the answer is no because speed of gravity is same to speed of light.  Does it mean bodies moving at near light speed don't produce gravity?  From the comments>>>  if change of gravity propagates at the speed of light, and an object is moving at near light speed, does that change how much gravity there is ahead of that object?


How can I move a database from one server to another?

How can I move MySQL tables from one physical server to another?  Such as this exact scenario:  I have a MySQL server that uses innodb table and is about 20GB size.  I want to move it to a new server, what's the most efficient way to do this?


Canon 5D Mark II vs Canon 1200D on 50mm Prime Lens

I have a Canon 1200D and 50mm f1.8 Prime Lens, I have shot some pretty awesome pictures with this combo. Now that I am planning for a High End DSLR, I just want to know what will be the exact difference in terms of image quality If I use the same 50mm lens on Canon 5D Mark II. I know its a full frame camera so the image content area will be more and all, what I want to know is at the exactly identical conditions (iso, shutter speed and aperture) what exactly will be difference in the picture captured.


I have already seen these here questions:   but they don't appear to me to answer the question I am about to ask.    If I say:      This lovely lady is my daughter. So, be nice, will you?   'lovely' is obviously an adjective pre-modifying the subject noun.   But if say:       This here lady is my wife. So, keep your paws off, will yah?   1- Is 'here' an adjective here?      2- Which parts of the world (of the USA?) and/or what kind of people use the construction: "This here + noun..."?    I never use this kind of construction, but I sometimes here it in movies...     E.g. in "Night at the Museum" (2006):     Octavius, hold on. This ain't your fight.    This here giant's on our  land.   ...   Now, this here's King Ahkmenrah.   His tablet is what brings  you to life every night.


Using DateTime in a SqlParameter for Stored Procedure, format error

I'm trying to call a stored procedure (on a SQL 2005 server) from C#, .NET 2.0 using DateTime as a value to a SqlParameter.  The SQL type in the stored procedure is 'datetime'.  Executing the sproc from SQL Management Studio works fine.  But everytime I call it from C# I get an error about the date format.    When I run SQL Profiler to watch the calls, I then copy paste the exec call to see what's going on.  These are my observations and notes about what I've attempted:  1)  If I pass the DateTime in directly as a DateTime or converted to SqlDateTime, the field is surrounding by a PAIR of single quotes, such as  @Date_Of_Birth=N''1/8/2009 8:06:17 PM''   2)  If I pass the DateTime in as a string, I only get the single quotes  3)  Using SqlDateTime.ToSqlString() does not result in a UTC formatted datetime string (even after converting to universal time)  4)  Using DateTime.ToString() does not result in a UTC formatted datetime string.  5)  Manually setting the DbType for the SqlParameter to DateTime does not change the above observations.  So, my questions then, is how on earth do I get C# to pass the properly formatted time in the SqlParameter?  Surely this is a common use case, why is it so difficult to get working?  I can't seem to convert DateTime to a string that is SQL compatable (e.g. '2009-01-08T08:22:45')  EDIT  RE: BFree, the code to actually execute the sproc is as follows:  using (SqlCommand sprocCommand = new SqlCommand(sprocName)) {     sprocCommand.Connection = transaction.Connection;     sprocCommand.Transaction = transaction;     sprocCommand.CommandType = System.Data.CommandType.StoredProcedure;     sprocCommand.Parameters.AddRange(parameters.ToArray());     sprocCommand.ExecuteNonQuery(); }   To go into more detail about what I have tried:  parameters.Add(new SqlParameter("@Date_Of_Birth", DOB));  parameters.Add(new SqlParameter("@Date_Of_Birth", DOB.ToUniversalTime()));  parameters.Add(new SqlParameter("@Date_Of_Birth",      DOB.ToUniversalTime().ToString()));  SqlParameter param = new SqlParameter("@Date_Of_Birth",      System.Data.SqlDbType.DateTime); param.Value = DOB.ToUniversalTime(); parameters.Add(param);  SqlParameter param = new SqlParameter("@Date_Of_Birth",      SqlDbType.DateTime); param.Value = new SqlDateTime(DOB.ToUniversalTime()); parameters.Add(param);  parameters.Add(new SqlParameter("@Date_Of_Birth",      new SqlDateTime(DOB.ToUniversalTime()).ToSqlString()));   Additional EDIT  The one I thought most likely to work:  SqlParameter param = new SqlParameter("@Date_Of_Birth",       System.Data.SqlDbType.DateTime); param.Value = DOB;   Results in this value in the exec call as seen in the SQL Profiler  @Date_Of_Birth=''2009-01-08 15:08:21:813''   If I modify this to be:  @Date_Of_Birth='2009-01-08T15:08:21'   It works, but it won't parse with pair of single quotes, and it wont convert to a DateTime correctly with the space between the date and time and with the milliseconds on the end.  Update and Success  I had copy/pasted the code above after the request from below.  I trimmed things here and there to be concise.  Turns out my problem was in the code I left out, which I'm sure any one of you would have spotted in an instant.  I had wrapped my sproc calls inside a transaction.  Turns out that I was simply not doing transaction.Commit()!!!!!  I'm ashamed to say it, but there you have it.  I still don't know what's going on with the syntax I get back from the profiler.  A coworker watched with his own instance of the profiler from his computer, and it returned proper syntax.  Watching the very SAME executions from my profiler showed the incorrect syntax.  It acted as a red-herring, making me believe there was a query syntax problem instead of the much more simple and true answer, which was that I need to commit the transaction!    I marked an answer below as correct, and threw in some up-votes on others because they did, after all, answer the question, even if they didn't fix my specific (brain lapse) issue.


How many ways to form 3 unordered partitions from n-element set?

Let's say a set $S$ has $n$ elements, and it needs to be partitioned into $3$ different, unordered partitions. How do I obtain a general formula for this?  I think I can calculate it if I know the value of $n$.   For example, if $n=3$ then it's partitioned as $1,1,1$ so there's only $1$ way.   If $n=4$ then it's $2,1,1$ so there's ${4\choose2}=6 $ ways.  If $n=5$ then it's $2,2,1$ or $3,1,1$ and there's $15+10=25$ ways.  I can't figure out $n$ in general though. My latest attempt was summation: $$\sum_{a=1}^{n-2} \quad \sum_{b=1}^{n-2-a} \quad {n\choose a}{{n-a}\choose b} $$ but the partitions won't be unordered (and the summation is probably wrong too).  I have a hint to regard the first $x$ elements in the first partition, and the $x+1$-th element in the second, but I'm not sure where to proceed from this.


Does the Lagrangian formalism require a metric on the configuration manifold $Q$ in order to define a Lagrangian $L$ on the tangent bundle $TQ$?  Further, if we specify a metric on the tangent bundle then we can via an isomorphism, move this to the cotangent bundle $T^*Q$. That being said how does this metric structure interplay with the symplectic structure?


I have a problem on my website.  When I want to reply a ticket if I use somewhere the the symbol ' it shows:     You have an error in your SQL syntax; check the manual that   corresponds to your MySQL server version for the right syntax to use   near '''', now())' at line 2   Is there a way to edit something on the PHP form of the "ticket reply" so I could type words like "it's" and words with the ' symbol.


I am trying to limit the user from overfeeding a virtual cat by making it only if health level is less than 60 they can feed it.Also if user attempts to feed cat when health is over 60 then happiness decreases by 2 for option 1. I tried health < 60; but it gives me an error.This is different because it is limiting not comparing strings. different question not even sure why it's marked.  int food = 20; int health = 30; int happiness = 80; String option; System.out.println("pick an option "); System.out.println(" Option 1 feed cat "); System.out.println(" Option 2 play with cat"); System.out.println(" Option 3 give cat bath"); option = input.nextLine(); if(option == 1) {     food += 10;     happiness -= 15     health < 60;     happiness -=2; } else if (option == 2) {     happiness += 12;     health += 25; }


What is an alternative to "Bless you" after sneezing?

Possible Duplicate:          I know the history/reason  to you after you sneeze. My question is, is there an alternative to bless you which can be used when someone sneezes?


I have played Oblivion and in Oblivion you can see your person on the menu screen. When I go into 3rd person all I see is their back. Is there any way I can see my whole character?


keydown event c# not working, to open a panel

I want a panel to open in my windows form when the left or right arrow is pressed.  private void Form1_KeyDown(object sender, KeyEventArgs e)         {                             switch (e.KeyCode)                 {                     case Keys.Control:                         panel2.Visible = true;                         panel1.Visible = false;                         break;                     case Keys.Right:                         panel1.Visible = false;                         panel3.Visible = true;                         break;                 }                  }


Associate Professor vs Assistant Professor vs Lecturer

I want to know the difference between associate and assistant professor in terms of contract length, status and salary. And also how both positions are published and what's the recruitment process of each one mainly in Europe and Canada? What about lecturer positions in the US, could European PhDs land lecturer position in the US ? Thanks


Is there a way to track edits to a question?

One of my questions was just edited by someone else, but the editor did not really change anything. Is there a way to find out what changes he made to the question?


Is the humanoid appearance of most alien species in the Star Trek universe ever canonically addressed?

The vast majority of intelligent species in the Star Trek universe are bipedal, humanoid creatures.  From the lot I've seen of TOS, TNG, DS9, Voyager, Enterprise, and the movies, it seems that this coincidence goes largely unquestioned.  Metaknowledge grants that it is much easier to have human actors portray human-like beings, and so this was probably done due to budgetary/technological limitations.  However, I'm wondering if an in-universe reason for this was ever given or explored?


Mirror Modifier isn't working correctly its offset?

Hi guys i'm having a small issue here trying to get my mirror modifier to work, I believe it has something to do with the origin point but being new to blender I don't have the know how to fix this problem. If someone could point me in the right direction that would be incredible.  Thanks guys.


I’m trying to use a \dbox from the dashbox package in the caption of a figure, like this:  \documentclass{article}  \usepackage{dashbox}  \begin{document}     \begin{figure}         \centering Imagine some figure here          \caption{\dbox{Boxed text} in caption.}     \end{figure} \end{document}   The result I get looks like expected: However, I get plenty of errors:  Undefined control sequence. \caption{\dbox{Boxed text} in caption.} Undefined control sequence. \caption{\dbox{Boxed text} in caption.} Illegal parameter number in definition of \reserved@a. \caption{\dbox{Boxed text} in caption.} Extra \or. \caption{\dbox{Boxed text} in caption.} ...   The package documentation says:     \dbox{text} works like \fbox, but the box is drawn with dashed lines.   But \fbox works fine inside a caption.  The boxes from the fancybox package seem to have similar problems.  What is the correct way to draw a dashed box in a caption?


Find all units in $\mathbb{Z}[\sqrt n] = \{a + b\sqrt n \mid a, b \in \mathbb Z \}$  and $n \in\mathbb N$, $n\ge 2$.  First let $c +d\sqrt n$ be a unit so $$(a +b\sqrt n)(c +d\sqrt n) = 1,$$ $$ac + bdn +(bc + ad)\sqrt n = 1.$$  What next?


Ubuntu 18.04 stopped showing desktop after running update

My 18.04 was running fine before this. After I hit restart, all I get is a black screen starting with  /dev/sda1: clean ... [OK] Created slice User Slice of gdm.      Starting User Manager for UID 120... [OK] Started Session c1 of user gdm. .... ....   and ends with      Starting Disk Manager [OK] Started GNOME Display Manager. Dispatcher           Service....d before the ppp link was shut                down....   No reaction whatsoever from any keyboard key except CTRL+ALT+DEL.


What are the benefits of running chef-server instead of chef-solo?

I am looking at automated deployment solutions for my team and have been playing with Chef for the past few days. I've been able to get a simple web app up an running from a base Red Hat VM using chef-solo.  Our end goal is to use Chef (or another system) to automatically deploy application topologies to the cloud as we run builds. Our process would basically run like this:   Our web app code, dependencies, and chef cookbooks are stored in SCM A build is executed and creates a single package for images to acquire and test against The build engine then deploys new cloud images that run a chef client to get packages installed. The images acquire the cookbooks from SCM or the Chef server and install everything to get up and running   What are the benefits and/or use cases for getting a Chef Server running?  Are there any major benefits to have a Chef Server hold and acquire the cookbooks from SCM vs. using chef-solo and having a script that will pull the cookbooks from SCM?


Is there a way to remove sites permanently from (my personal) Google search results?

I regularly find sites that copy content from elsewhere (mailing lists, etc) while not providing any added value. Quite to the contrary, they are pretty heaped with ads.  I'd like to remove those sites as permanently as possible from my Google search results. Any ideas?


How can I make my program exit a loop when the user inputs a specific keyword?

I was wondering how I could make my program exit a loop when the user inputs a specific keyword? I have already figured out how to do this with integers, but I want to know how to incorporate this with Strings.   public class Test {      public static void main(String[] args) {         Scanner input = new Scanner(System.in);           while (true) {             System.out.println("type words.");             System.out.println("type stop to exit the program.");             String uInput = input.nextLine();               if (uInput == "STOP") {                 System.out.println("exit successful");                 break;              }          }     } }


How prove this inequality: $\sum_{i,j=1}^{n}|x_{i}+x_{j}|\ge n\sum_{i=1}^{n}|x_{i}|$?

Let $x_{1},x_{2},\cdots,x_{n}$ be real numbers. Show that     $$\sum_{i,j=1}^{n}|x_{i}+x_{j}|\ge n\sum_{i=1}^{n}|x_{i}|.$$   I think this problem may be solved using nice methods, but I can't find them yet; I know this may be of use: $$|a|+|b|\ge |a+b|.$$ But I can't make it work. Thank you everyone.


How to change the active layer in QGIS Console?

I want my script to perform actions on a particular layer.  Online advice I've found so far suggests using the iface method "setActiveLayer()".  Makes sense based on the name alone.    Scenario:  In the Layers window I have a layer named "Province" highlighted (active).  Then I run the following code:  >>> vl = QgsMapLayerRegistry.instance().mapLayer( 'na_roads_Prov' ) >>> iface.setActiveLayer(vl)   Console Output = False  As far as I understand executing this code in the console should move the highlighted "active layer" from "Province" to 'na_roads_Prov'.  Yes?  Instead the "Province" layer remains highlighted as active, and the console output says "False".  Any ideas?  Am I not referring to the layer correctly?


Story about a man who discovers the power of nothing

A man wonders why perforations don't work. He decides nothing is the strongest thing in the universe. He exploits his finding.


How can I change the default location of content directories (eg Pictures, Templates, Music)  in my home folder?

I have multiple users on my home desktop. I am content with most of the default user directories, however I would like to make one change.  I would like to setup a common directory for Music (ie /home/common/Music/) that is writable to all users and Nautilus/Dolphin/whatever recognizes as the user's Music directory.  I know that it would involve changing the xdg user directory setup, but everything I see points that it is relative to the user's $HOME.  Is there a way I can specify an absolute path?


Anyone know a good and effective way to search/match for a byte pattern in an byte[] array and then return the positions.  For example  byte[] pattern = new byte[] {12,3,5,76,8,0,6,125};  byte[] toBeSearched = new byte[] {23,36,43,76,125,56,34,234,12,3,5,76,8,0,6,125,234,56,211,122,22,4,7,89,76,64,12,3,5,76,8,0,6,125}


I'd like to prove that the hyperbolic plane is complete in a short, nice way. Here's my proof, but I'm not convinced of its correctness yet. Let $\mathbb{H}=\left\{(x,y)\in\mathbb{R}^2\big\vert y>0\right\}$. Since this is a connected, Riemannian manifold with infinitesimal metric $dh^2=ds^2/y^2)$ (where $ds$ is the usual Euclidean metric) we can use the Hopf-Rinow theorem and say that completeness is equivalent to having geodesics defined from the whole real line. Hence, it suffices to show that every point $p\in\mathbb{H}$ is at infinite distance from the boundary. Take $q\in\partial\mathbb{H}$. By moving the points via isometries, we can assume that $p$ lies in the positive, pure imaginary, open semi-line and have coordinates $p=(0,\bar{y})$ and that $q$ is the point $\infty$. Then we may finish the proof just computing the integral $$\int_{\bar{y}}^\infty \sqrt{\frac{dy^2}{y^2}}=log(|y|)\Big\vert_{\bar{y}}^\infty=\infty.$$ Is there any wrong step? Do you know any other concise proof of the completeness of the hyperbolic plane?


How do you unzip very large files in python?

Using python 2.4 and the built-in ZipFile library, I cannot read very large zip files (greater than 1 or 2 GB) because it wants to store the entire contents of the uncompressed file in memory.  Is there another way to do this (either with a third-party library or some other hack), or must I "shell out" and unzip it that way (which isn't as cross-platform, obviously).


I've an HP personal computer with an integrated graphics card. It worked fine until yesterday.  Now when I try to switch to gdm it just boots up with my usual background and a computer icon in the middle of the screen. I can't do anything; I can't click it and can't log in.  I get the error message:  The system is running in low-graphics mode   I have tried the solution in   I have tried: 1. sudo apt-get install --reinstall ubuntu-desktop 2. Verified greeter-session=pantheon-greeter 3. Have tried switching to GDM 4. Have checked I have enough free disk space 5. Installing a new Intel driver from X-Swat repository 6. Reinstalling xserver-xorg    What else can I try?


prove that $\int_{-\infty}^{\infty} \frac{x^4}{1+x^8} dx= \frac{\pi}{\sqrt 2} \sin \frac{\pi}{8}$

prove that $$\int_{-\infty}^{\infty} \frac{x^4}{1+x^8} dx= \frac{\pi}{\sqrt 2} \sin \frac{\pi}{8}$$   My attempt: C is semicircle in upper half complex plane  Simple poles = $e^{i\frac{\pi}{8}}, e^{i\frac{3\pi}{8}},e^{i\frac{5\pi}{8}},e^{i\frac{7\pi}{8}}$ lie in upper semi-circle C and real axis  Given integral value $= 2\pi i \cdot (\text{sum of residues}) = 2 \pi i \left(\frac{-1}{8}\right) \left[e^{i\frac{5\pi}{8}}+e^{i\frac{15\pi}{8}}+e^{i\frac{25\pi}{8}}+e^{i\frac{35\pi}{8}}\right] = 0.27059 \pi$  This is numerically equal to $\frac{\pi}{\sqrt 2} \sin \frac{\pi}{8}$. But without using calculator, how to get this expression.


Finitely generated projective module , of constant rank, over semi-local ring

Let $M$ be a finitely generated projective module over a commutative ring $R$ with finitely maximal ideals. Also assume that $M$ has constant rank i.e. rank of $M_P$ as $R_P$-module remains constant as $P$ varies over all prime ideals of $R$.  How to show that $M$ is free ?   I'm allowed to assume that finitely generated projective modules over local rings are free.   My try: Let $J$ be the Jacobson radical of $R$. Then $R/J$ is a finite direct product of fields. Now $M/JM$ is a projective $R/J$-module. Now I'll be done if I can show $M/JM$ is free over $R/J$. Unfortunately I'm unable to show this last part.   Please help.


What should my goal for effective sample size be when doing Bayesian parameter estimation?

I have found some mixed messages in terms of the effective sample size to shoot for (ranging from 2,000 to 10,000) .  I'm wondering if anyone could give me more information on choosing a guideline for effective sample size?  In particular, I am using a No-U-Turn Sampler.


How to prove that $n\log(n) \in \mathcal{O}((n)^k)$?

I need to prove for  $k>1$ that is: $n\log(n) \in \mathcal{O}(n^k)$ A also need to mention what happens in case that $k = 1$. So actually, to prove $n\log(n) \in \mathcal{O}(n)$ which I did so: For big-Oh Notation $n\log(n) \in \mathcal{O}(n)$ exists an constant $c$ and $n_0$ such that for $n\gt n_0$ : $n\log(n) \le  c * \mathcal{n}$  //  $\div\mathcal{n}$ gives: $log(n) \le c$  // this is NOT TRUE weil there is no such a constant $c$ that for all $n\gt n_0$ But I have no idea how to prove $(n^k)$. Please help :)


The following :     Roughly speaking, category theory is graph theory with additional structure to represent composition.   My question is: Is Category Theory similar to Graph Theory?


Am I missing any vulnerablities in the code

I am producing a PHP code and I want to implement it in my server to do its function. My question is do I missing any vulnerabilities that I should correct it?  I tried to establish the session first then I will initiate a SQL connection and I will ask the user to enter his email. Also I added the reset function of his email.       <?php     if ($_SESSION['admin'] !== true) {         header('Location: /login.php?');     }      $conn = new mysqli("localhost","admin","password","db");      if ($conn->connect_error) {         die("Connection failed: " . $conn->connect_error);     }      $msg = '';     if (isset($_POST['submit'])) {         $email = $_POST['email'];         $sql = "SELECT * FROM users WHERE email = $email;";         $result = @$conn->query($sql);         if ($result->num_rows == 0) {             die("This email: $email is incorrect");         }         $row = $result->fetch_assoc();         $id = $row["id"];         $surename = $row["surename"];          $sql = "SELECT * from users JOIN password_resets ON (password_resets.user_id=users.id)  WHERE id=$id;";         $result = @$conn->query($query);         if ($result->num_rows == 0) {             $insert_sql = "INSERT INTO password_resets (user_id, reset_timestamp) VALUES ($id, unix_timestamp());";             if ($conn->query($insert_sql) !== TRUE) {                 die("Error: " . $insert_sql . "
" . $conn->error);             }         }         $result = $conn->query($query);         $row = $result->fetch_assoc();          $link = "https://".$_SERVER['SERVER_NAME']."/reset.php?id=".$row['id'] ."&timestamp=".$row['reset_timestamp'];         $message = "Hi, $surename,          Here's your password reset link: $link";         $headers = "From: ".$_SESSION['first_name']." ".$_SESSION['last_name']." <".$_SESSION['email'].">";         mail($email,"Your password reset link",$message,$headers);         $msg = "Password reset for $email sent!";     ?>          <title>Reset password for a user</title>            <form>
<?=$msg ?>
         <input type="text" width=80 name="email">         <input type="submit" name="submit" value="Send">       </form>               <?php     }


Reasonable VMware Memory Overcommit Ratio?

As a "rule of thumb" what is considered a balanced VMware memory overcommit ratio? I could find official guidelines for vCPU:pCPU ratio but not for vMemory:pMemory.


What is the best way to create a lock on a file in Perl?  Is it best to flock on the file or to create a lock file to place a lock on and check for a lock on the lock file?


php web application not support Arabic language in server

My php Web application not supporting Arabic language. I want to add data from a form and display the table in browser. When I type Arabic letters it store some other characters(Ø£Ø®Ø¨Ø§Ø± Ø£Ø®Ø¨Ø§Ø) and display as ????? in browser. But the same application support Arabic in my local server localhost. How to solve this please help.


radius of convergence of number of divisors

i am stuck on this question for a while and i'm not sure about it  i need to calculate the radius of convergence for: $\sum _{n=1}^\infty d(n)x^n$  what i did:  since i cannot use the root test or check the next eleent against its previous(ratio test), i think that to find the radius of convergence i need to check for the upper limit(sup).  so what i did is this: if n=1 we get that its one, so while going to a very large n, i think that $d(n) < n$. if this is correct, then tha radius should be: $\frac{1}{R}=\limsup_{n \to \infty}d(n) ^ {\frac{1}{n}}$. however, i don't know how to calculate it.  am i correct? how can i calculate the radius of convergence here?


what is [flavor-wise] the closest nonalcoholic substitute for white wine and red wine?

White wine and red wine have great flavors when added to a dish. But because I'm on medication, I'm not able to use wine (my body would have odd reactions when I consume food cooked in white wine) I wonder what is flavor-wise the closest nonalcoholic substitute for white wine and red wine?  I have looked at  But the answers were not satisfactory. For example, chicken stock has a completely different flavor when substituted for white wine and so does white grape juice. What is [flavor-wise] the closest nonalcoholic substitute for white wine and red wine? Thank you!


Cannot mount LV after reusing disk as PV

I have a weird situation:  I had a disk on a Debian 9 server that had one partition with an ext4 filesystem mounted to /opt/foobar. I then unmounted the partition and deleted it using fdisk.  I then   Created a PV on that disk Added it to a VG Created an LV Created an ext4 filesystem   which I now want to mount to the old mountpoint /opt/foobar. The command finishes without error, but when I check with df or lsblk I can see that the mount is not there.  Update: I just realized, that mounting the LV to another mountpoint, say /mnt works.  Here are some outputs:  root:~/ # grep optsdc /etc/fstab /dev/mapper/vg1-lvoptsdc  /opt/sdc  ext4  defaults  0  0  root:~/ # mount /dev/mapper/vg1-lvoptsdc /opt/sdc root:~/ # echo $? 0 root:~/ # dmesg [Thu Oct 17 16:34:54 2019] EXT4-fs (dm-9): mounted filesystem with ordered data mode. Opts: (null) root:~/ # lsblk NAME             MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sdb                8:16   0   50G  0 disk └─vg1-lvoptsdc   254:9    0    5G  0 lvm root:~/ # lvdisplay -m /dev/mapper/vg1-lvoptsdc --- Logical volume --- LV Path                /dev/vg1/lvoptsdc LV Name                lvoptsdc VG Name                vg1 LV UUID                ol90ME-v6Tv-fpUC-8cb6-NwlZ-0UjF-l2c7d8 LV Write Access        read/write LV Creation host, time hostname, 2019-10-17 09:02:07 +0200 LV Status              available # open                 0 LV Size                5.00 GiB Current LE             1280 Segments               1 Allocation             inherit Read ahead sectors     auto - currently set to     256 Block device           254:9  --- Segments --- Logical extents 0 to 1279:   Type                linear   Physical volume     /dev/sdb   Physical extents    9722 to 11001


Indefinite Integral with "sin" and "cos": $\int\frac{3\sin(x) + 2\cos(x)}{2\sin(x) + 3\cos(x)} \; dx $

Indefinite Integral with sin/cos  I can't find a good way to integrate: $$\int\dfrac{3\sin(x) + 2\cos(x)}{2\sin(x) + 3\cos(x)} \; dx $$


Installing Mysql Workbench in Ubuntu 14.04

How can I install preferably the latest version of MySQL Workbench on Ubuntu 14.04?


Characterising reals with terminating decimal expansions

Show that a number has a terminating decimal expansion if and only if, it is rational and when in lowest terms, its denominator is coprime to all primes other than $2$ and $5$.   This is an unsolved question in my lecture notes. I can only seem to prove the converse direction for this. Would appreciate a solution for the other direction.     For converse direction:   Let the number, in lowest terms, be given by $\frac{l}{m}$ where $m = 2^ \alpha 5^\beta$, for some positive integers, $\alpha$ and $\beta$.    If $\alpha > \beta$, let $k = 5^{(\alpha-\beta)}$. If $\alpha < \beta$, let $k = 2^{(\beta-\alpha)}$.   Then $\frac{l}{m} = \frac{kl}{k2^\alpha5^\beta}=\frac{kl}{10^q}$ where $q = \max(\alpha,\beta)$.   Hence $\frac{l}{m}$ is a terminating decimal.


Let $R$ be a commutative ring with unity. For every $x\in R$ there exists $n_i>1$ such that $x^{n_i}=x$. Then every prime ideal of $R$ is maximal.

EDIT: In this proof I suppose that $R$ is not a prime ideal of $R$.  Let $R$ be a commutative ring with unity. For every $x\in R$ there exists a natural number $n_i>1$ such that $x^{n_i}=x$. Prove that every prime ideal of $R$ is maximal.  My Attempt: Suppose by contradiction that there exists a prime ideal $P\subseteq R$ such that $P$ is not a maximal ideal. this means that there exists an ideal $M\subseteq R$ such that $P\subseteq M$. We'll notice that for every $x\in P: x=x^{n_i}\in P$, which means that for every $1\le j\le n_i: x^j \in P$, this follows from the definition of a prime ideal and the fact that $R$ is commutative. Now, by the assumption $P$ is not maximal therefore there exists $t\in M: t\notin P$. and again, we conclude that for every $1 \le j\le (n_i): t^j \in M \land t^j \notin P$. But this doesn't really bring me into any contradiction. I'm not sure what am I missing.


Setting items to status-completed before they're deployed

In several scenarios, including two today ( and ), we have had bugs set to  simply because the fix has been checked in. Just because the code portion has been completed does not mean the work is done, and this can be confusing for users who come across the same problem. Until then it really is  or maybe a tag that doesn't yet exist (status-checked-in?).  Particularly in times like this week, where the stability of the system is a priority, I don't think this status should be set merely because the code has been checked in - it should happen when the code is actually deployed and verified. Currently the devs are being very good about telling us that the code is done but they're not sure when it will be deployed, but I think that is because of the stability issue.


A colleague asked me recently about profiling/benchmarking a Java program. Since I am having background in a optimized/compiled programming language, namely Haskell - I was wondering how is it even possible to reliably benchmark jitted programming languages like Java for example?  Wouldn't the just in time compilation interfere and make early samples irrelevant?  And how to know when the JIT has optimized the code "good" enough?


I made the download from Ubuntu Software-Center, but when I try to start PlayonLinux I get the answer above. What should I do next?  I'm using Linux the first time in my life.., please don't answer in a "complicated" way^^  Thanks anyway!  p.s. english is not my native language, but i guess it will work out      answers are also welcome in german & portuguese^^


If G is a finite abelian group of odd order prove that the product of all elements in G is equal to the identity element of G.Well , I can prove this with an example but is there any general proof for this?


Needed small explanation of the notation in this paper

There is  paper:   In equation (36) of this, the second line ($\omega^{+ij} =\dots$), there is a term $\partial_{[i}\bar\lambda\delta_{j\,]k}$ that I didn't understand. What does this notation mean?


Proof of Hlawka's inequality for complex numbers.


$\forall a,b,c \in \mathbb{N}\!:\ a\mid b \Rightarrow ac\mid bc. $ Divisibility Proof

Could someone verify this proof?  Given the following definition of divisibility $(\forall{a,b \in \mathbb{N}})[a \mid b \equiv (\exists{c \in \mathbb{N}})(ac=b)]$.  Statement: $(\forall{a,b,c \in \mathbb{N}})[(a\mid b) \rightarrow (ac\mid bc)] $ .  Proof:  Let $a,b \in \mathbb{N}$ be arbitrary.  Assuming that $a\mid b$, we can conclude that $\exists{d \in \mathbb{N}}$ such that $ad = b$.  By Algebra we can deduce the following sequence of statements.  If $(ad)=b$, then $(ad)c=bc$.  Therefore $(ac)d=bc$.  Hence by the definition of divisibility we know that $ac\mid bc$.


I am working with a \documentclass{book} document. It contains several chapters which have very few references, so that I choose to provide them as \foonote(s). But I have a single chapter with many references. I am wondering if I can construct a subsection (or section), in the end of the chapter, which containst the references of this one. E.g.  \documentclass{book}  \usepackage[utf8]{inputenc} \usepackage{lipsum} \usepackage[french]{babel} \usepackage[Lenny]{fncychap}  \usepackage{caption}   \frenchbsetup{StandardLayout=true}   \usepackage{paralist}   \usepackage{geometry}   \usepackage[pdftex]{graphicx}  \usepackage{fancyhdr}  \renewcommand\contentsname{Table des mati\`eres}  \usepackage[colorlinks=true,    linkcolor=red,    urlcolor=blue,    pdftitle={Dossier de Candidature},    pdfauthor={Dimitrios S. Anagnostou}]{hyperref}  \fancypagestyle{mainmatter-pages}{%   \fancyhf{}% Clear header/footer   \renewcommand{\headrulewidth}{0pt}% Remove header rule   \renewcommand{\footrulewidth}{0pt}% Remove footer rule   \fancyfoot[L]{\hyperref[ToC-first-page]{Jump to Contents}}  \fancyfoot[C]{\thepage} } \let\oldtableofcontents\tableofcontents \renewcommand{\tableofcontents}{%   \clearpage   \phantomsection% Place hyperlink marker   \label{ToC-first-page}% Set \label for hyperlink   \oldtableofcontents } \let\oldmainmatter\mainmatter \renewcommand{\mainmatter}{%   \clearpage   \oldmainmatter   \pagestyle{mainmatter-pages}% }  \usepackage[affil-it]{authblk}   \usepackage{pdfpages} \setlength{\oddsidemargin}{.5cm} \setlength{\evensidemargin}{.5cm} \setlength{\textwidth}{15cm} \setlength{\textheight}{21.0cm} \setlength{\topmargin}{0in}  \newcommand{\M}{{\it Mathematica}} \providecommand\Matlab{\textsc{Matlab}}  \newcommand{\FIG}[2] { \begin{figure}[!hbt] \begin{center} \begin{minipage}{0.85\textwidth} \centering{\includegraphics[]{#1}} \caption{\label{#1}\small{#2}} \end{minipage} \end{center} \end{figure} }  \parindent0pt  \parskip10pt      \begin{document}      \title{DOSSIER DE CANDIDATURE}     \author{Dimitrios Papas\thanks{vbkvbkvbdkvbd}}      \affil{     Université\ldots}      \date{\begin{center}     Docteur en Mécanique     \end{center}}      \maketitle \thispagestyle{empty}      \frontmatter        \tableofcontents      \mainmatter        \chapter{First}      \section{First section}      \section{Expérience professionnelle}      \begin{description}      \item Depuis 09/2016     \begin{compactitem}     \item foo     \begin{compactitem}     \item foo     \end{compactitem}     \end{compactitem}      \end{description}      \chapter{Second}     \section{First}     \section{Second}     \subsection{Références bibliographiques}       \begin{thebibliography}{9}     \bibitem{latexcompanion}      Michel Goossens, Frank Mittelbach, and Alexander Samarin.      \textit{The \LaTeX\ Companion}.      Addison-Wesley, Reading, Massachusetts, 1993.      \bibitem{einstein}      Albert Einstein.      \textit{Zur Elektrodynamik bewegter K{\"o}rper}. (German)      [\textit{On the electrodynamics of moving bodies}].      Annalen der Physik, 322(10):891–921, 1905.      \bibitem{knuthwebsite}      Knuth: Computers and Typesetting,     \\\texttt{http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html}     \end{thebibliography}      \end{document}   How can I include the elements of bibliography inside the subsection called "Références bibliographiques"?  Thanks in advance.


Not able to run apt-get update Ubuntu 16.04

I have tried to excute sudo apt-get update command but it return below error:  E: Failed to fetch http://ppa.launchpad.net/upubuntu-com/web/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.   Please provide solution. as I am not able to install other packages due to the error.


Beamer template with different style options for frames

I am working on a beamer template which tries to mimick an existing .ppt-template from my institute. My problem now is, that the beamer template should be able to have frames with different styles for the headline within a single presentation. (do not ask why this would be necessary, I do not know)  After having a look into beamerbaseframe.sty and playing a bit with frame options, I came up with the following code  \documentclass{beamer}  \usetheme{mytheme}  \begin{document}      \begin{frame}         left     \end{frame}       \begin{frame}[rightslide]         right     \end{frame}       \begin{frame}         should be left again :(     \end{frame}       \end{document}   using beamerthememytheme.sty  \setbeamertemplate{headline}{%     \rule{.5\paperwidth}{14mm} }  \define@key{beamerframe}{rightslide}[true]{%     \setbeamertemplate{headline}{\hfill\rule{.5\paperwidth}{14mm}}% }   So the question is now: how can I revert to the default headline after the slide with the option rightslide?


how to find index if there is multi value of a key in dictionary in python?

I have a dictionary where for a single key there is more than one value. From the dictionary i want to check the value to find the key and also find the index of the value.  genDict2= {"A":["GCT","GCC","GCA","GCG"],            "B":["TAA","TGA","TAG"],            "C":["TGT","TGC"],            "D":["GAT","GAC"]}  alphaSet =[] for i in range(len(genCollect)):     for k, v in genDict2.items():         if genCollect[i] in v:             alphaSet.append(k) print(alphaSet)   From this code I can find the key but don't know how to find the index of the value. Suppose if the input is 'GCC TAG GAT' then the output should be 'ABD' and ' 120'.


How to calculate the area of a 3D triangle?


I clone a remote repo which has a master branch, and a feature-branch But when I do "git log --graph --oneline --decorate --all", I only see: * e58e7f1 (HEAD -> master, origin/master, origin/HEAD) | * 714bebe (origin/feature-readme) | * 7250765 |/ * 7cd4343 * 8c6c754 $ git branch * master  It appears that feature-readme is not a local branch? After I do "git checkout feature-readme", then it looks like this: * e58e7f1 (master, origin/master, origin/HEAD) | * 714bebe (HEAD -> feature-readme, origin/feature-readme) | * 7250765 |/ * 7cd4343 * 8c6c754 $ git branch * feature-readme   master  How come only after "git checkout feature-readme", only 714bebe becomes a local branch (feature-readme)?


What is the formula for damage mitigation in Ingress?

How does damage mitigation work on a portal? I heard that links and shields make it sturdier and harder to take down, but exactly what's the math behind this?


I am trying to create a grouped bar chart with pgfplots, like this one:    but I can't put the values over the bars, like this one:    My code is:  \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=newest} \usepackage{caption} \usepackage{polyglossia} \setdefaultlanguage{portuges}  \begin{document}  \begin{figure}[h] \makeatletter \pgfplotsset{     calculate offset/.code={         \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}         \pgfmathsetmacro\testmacro{(\pgfplotspointmeta *10^\pgfplots@data@scale@trafo@EXPONENT@y)*\pgfplots@y@veclength)}         \pgfkeys{/pgf/fpu=false}     },     every node near coord/.style={         /pgfplots/calculate offset,         yshift=-\testmacro     } } %0 - aramente   1 - Às vezes   2 - Quase sempre   4 - Sempre \pgfplotstableread{   %2013-2014    %2012-2013  %2011-2012 0 32        35      20 1 28        45      23 2 30        24      25 3 10        68      70 }\dataset \begin{tikzpicture} \begin{axis}[ybar,         width=12cm,         height=8cm,         ymin=0,         ymax=100,                 ylabel={Percentagem},         xtick=data,         xticklabels = {             Raramente,             Às vezes,             Quase sempre,             Sempre             %Category 5,             %Category 6         },         xticklabel style={yshift=-10ex},         major x tick style = {opacity=0},         minor x tick num = 1,         minor tick length=2ex,         every node near coord/.append style={                 anchor=east,                 rotate=90         }         ] \addplot[draw=black,fill=blue!20, nodes near coords=2013-2014] table[x index=0,y index=1] \dataset; %ano de 2013-2014 \addplot[draw=black,fill=blue!40, nodes near coords=2012-2013] table[x index=0,y index=2] \dataset; %ano de 2012-2013 \addplot[draw=black,fill=blue!60, nodes near coords=2011-2012] table[x index=0,y index=3] \dataset; %ano de 2011-2012 \end{axis} \end{tikzpicture} \captionsetup{justification=centerlast, margin=10ex, labelfont=bf, textfont=it, format=plain, labelformat=default, labelsep=endash, font=small, name=Gráfico\,} \caption{Em sua casa é costume desligar os equipamentos no controlo remoto, deixando-os em standby (modo de “espera”)?}\label{Questao01}  \end{figure}  \end{document}


Why does modifying values of let x = arr.filter(...) alter the values of arr?

I am struggling to understand the behavior of the following lines of code:  // I'd like to keep this value constant let allObjects = [{value: null}, {value: 'Hello World'}] // Here is a shorter list of objects matching some criteria let someObjects = allObjects.filter(object => object.value) // Here we work with the the values for some of the objects someObjects[0].value = {hmm: 'test'} // Kind of expecting allObjects[1].value to be 'Hello World' at this point // Display all the objects console.log(allObjects)   And the output:  [   {     "value": null   },   {     "value": {       "hmm": "test"     }   } ]   Here is a .  What I do not understand is when the value of someObjects is modified it affects the value of allObjects and expect that allObjects[1].value will return Hello World.  Could someone explain to me why this is actually happening and how we are supposed create a sorter version of the array that does not mutate the original array when it is modified?


Does there exist such Borel measurable function?

Does there exist such Borel measurable function $f: \mathbb R \to [0,\infty )$ such that $\int _a ^b f \, dx = \infty$ for all $a< b $?  My feeling is that such function should not exist, but I can't see why. Any help is appreciated.


Can I prevent enumeration of usernames on my wordpress site? I can see users at the moment using the WPScan tool.


Can a character in the middle of a move action alter his movement based on a change in his surroundings?

For example:      A player (speed 6) moves two squares towards a human bandit (pg. 162 MM) becoming adjacent to him, then proceeds to move around him to the right, provoking an opportunity attack. The bandit hits with his basic melee attack (+4 vs. AC; 1d8+1 damage, and the human bandit shifts 1 square), shifting one square to the left immediately.    This free shift makes it so that the PC would no longer flank the bandit at the END of his move. Can the player adjust his remaining three squares of movement so that he can once again flank the now-shifted bandit, or does he have to stick with his earlier movement designation?  This question boils down to: Is movement counted as you go, or do you say, "I am moving to here, it is within my range, and on the way to my destination 'blah' happens?"


I wanted to install Linux on my Windows10 and I used UltraISO to burn ubuntu-18.04-desktop-amd64 to the bootable USB(FAT32, 32GB). But every time I entered the boot menu either the USB option disappears so I need to go to the AppMenu to reset everything again or it says "Failed to load ldlinux.c32".  I did browse question posted online but I couldn't find a really suitable solution. Can anyone help me solve this problem? Thanks a lot!


Why doesn't the exponential family include all distributions?

I am reading the book:     Bishop, Pattern Recognition and Machine Learning (2006)   which defines the exponential family as distributions of the form (Eq. 2.194): $$ p(\mathbf x|\boldsymbol \eta) = h(\mathbf x) g(\boldsymbol \eta) \exp \{\boldsymbol \eta^\mathrm T \mathbf u(\mathbf x)\} $$ But I see no restrictions placed on $h(\mathbf x)$ or $\mathbf u(\mathbf x)$. Doesn't this mean that any distribution can be put in this form, by appropriate choice of $h(\mathbf x)$ and $\mathbf u(\mathbf x)$ (in fact only one of them has to be chosen properly!)? So how come the exponential family does not include all probability distributions? What am I missing?  Finally, a more particular question that I am interested in is this: Is the Bernoulli distribution in the exponential family?  claims it is, but since I am obviously confused about something here, I would like to see why.


List the file permissions of only the current directory

ls -la .   will show this in it:  insgesamt 1312 drwxrwxr-x  6 ruben rubo77   4096 Feb 23 06:20 . drwxrwxr-x 23 ruben rubo77   4096 Feb  6 21:48 .. ...   But it will show the whole content of the folder too.   I could narrow the output with head and tail:  ls -la .|head -n 2|tail -n 1   But isn't there an option in ls to show only the current directory you are in?


There is something wrong with my calculations in python

I'm trying to learn python and as a test i tried to make a BMI calculator  #BMI Calculator  name = raw_input ("What is your name?: ") weight = raw_input ("Hello %s What is your weight? (kilo): "% (name)) height = raw_input ("And what is your height? (cm) ")  #Calculations: weight / height^2 * 10000  weight = int(weight) height = int(height)  BMI = (weight / height ** 2) * 10000  print "%s, your BMI is %s"% (name, BMI)   But there seems to be something wrong with the calculations because i always end up with a BMI of 0? whats wrong?


How to make specific equations follow theorem counter

I don't want equations to be numbered in general, but I want to be able to reference specific equations and have them follow the theorem counter. For instance, in my example there are two equations within theorem 1.1, and I want the first one to be labeled 1.2 so I can reference it in the proof.  \documentclass{article}  \usepackage{amsmath} \usepackage{amsthm}  \newtheorem{theorem}{Theorem}[section]  \begin{document}     \section{Section}     \begin{theorem}         We have some equations         \begin{align*}         \label{first}             1 + 1 = 2,         \end{align*}         and         \begin{align*}             2 + 2 = 4.         \end{align*}     \end{theorem}     \begin{proof}         See \ref{first}.     \end{proof}     \begin{theorem}         I want this counter to be 1.3     \end{theorem} \end{document}


How can I schedule a jenkins job every hour

I'm New to Jenkins. I have a job which i need to schedule every 1 hour.  I am using  * */1 * * *    but it is not working effectively.  Please provide any other solution.


how this keyword works inside constructor for static variable

public class Tester {     static int x = 4;     public Tester() {         System.out.print(this.x); //no error         Tester();     }     public static void Tester() { // line 8         System.out.print(this.x); // compilation error     }     public static void main(String... args) { // line 12         new Tester(); }   In this example how can we access a static variable using this keyword inside constructor. But not in methods. this is keyword for current object reference, is n't it?


error in script for counting number of occurences

#!/bin/sh count=1 while read line do   found=$( grep M $line )   if [ "$found" ]; then     echo $count")" $line >> filesave.txt   fi   count=$((count+1)) done < log1.txt   but I am getting error like   ./count.sh ./count.sh: syntax error at line 10: `found=$' unexpected


Does charge bend spacetime like mass?   I'm not asking if electromagnetic forces can be described geometrically, but if EM fields could correspond to particular curvatures of spacetime, like gravity which arises from the spacetime bending due to the stress-energy tensor.    Is it true in the three spacial dimensions we observe? Is it plausible in other dimensions (for example the fourth dimensions of the Kaluza-Klein theory)?


I am getting an error on the following line of code  String appName = (String) packageManager.getApplicationLabel(applicationInfo);   However, the label is clearly defined and correct and the page was running perfectly before. Not sure why its throwing a null pointer exception? Can anyone help rather than just redirecting me to another question please?      Java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence android.content.pm.ApplicationInfo.loadLabel(android.content.pm.PackageManager)' on a null object reference at android.app.ApplicationPackageManager.getApplicationLabel(ApplicationPackageManager.java:1550)   CODE:      @Override public int onStartCommand(Intent intent, int flags, int startId){     Context context = getApplicationContext();     ApplicationInfo applicationInfo = null;      HashSet<String> app = new HashSet<String>();       SharedPreferences setting = getSharedPreferences("Preferences", 0);      //Stores apps that are blocked//     HashSet<String> blockedApplications = (HashSet<String>) setting.getStringSet("HashSet", app);      String appsInForeground = printForegroundTask();       PackageManager packageManager = getPackageManager();       try {         applicationInfo = packageManager.getApplicationInfo(appsInForeground, 0);     } catch (PackageManager.NameNotFoundException e) {         e.printStackTrace();     }     String appName = (String) packageManager.getApplicationLabel(applicationInfo);      if (blockedApplications.contains(appName)) {         showHomeScreen();         //Show my dialog instead of just homescreen //         Intent dialogIntent = new Intent(this, MyDialog.class);         dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);         startActivity(dialogIntent);     }else{         //Toast.makeText(this, "App in foreground: " + appsInForeground, Toast.LENGTH_LONG).show();     }     return Service.START_REDELIVER_INTENT;


a simpler proof for an inequality in probability

I am trying to show that for any two real $X,Y$ iid there holds that   $$ P(|X - Y| \le 2) \leq 3P(|X - Y| \le 1) $$  I am getting nowhere with this and so I did some digging and found the following reference that proves a more general result:    However the special case that I am trying to show is just an exercise in a book that I am working through, so I suspect there must be a simpler proof for it. Also I would like to do it from first principles if possible rather then quoting a bigger result and say it's a special case.


Is there any Stack Exchange website useful to request a programming book/site?

I'd like to ask about a programming book (no specific book: I'd like recommendations for a good book). Stack Overflow seems to treat these topics as off-topic (since it does not involve a particular problem solving). However, some sites do have identification requests or stuff alike (for example,  and ).  Where can I ask for such type of recommendations without asking an off-topic question? (topics: books about/teaching a programming language).  Clarify: No. My intention is not to ask about illegal books downloads, only titles.


Are there any mathematical discoveries that are considered trivial or useless? And if that's the case, how do you know if they are trivial or useless? I am asking this question, because I am wondering if imaginary numbers were considered useless for so long why we didn't completely ignore it and decided to forget it was ever discovered.


NullPointerException when setting Date in Android app

I am following this  for implementing date and time on edit text click. public class LoadActivity extends AppCompatActivity {   @SuppressLint("StaticFieldLeak")  static EditText DateEdit;      @Override     protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_load);     Toolbar toolbar = findViewById(R.id.toolbar);     setSupportActionBar(toolbar);            EditText startTimeEditText = (EditText) findViewById(R.id.start_time);         startTimeEditText.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             showTruitonTimePickerDialog(v);             showTruitonDatePickerDialog(v);         }     });        }  // end onCreate       public void showTruitonDatePickerDialog(View v) {     DialogFragment newFragment = new DatePickerFragment();     newFragment.show(getSupportFragmentManager(), "datePicker"); }  public static class DatePickerFragment extends DialogFragment implements         DatePickerDialog.OnDateSetListener {      @NonNull     @Override     public Dialog onCreateDialog(Bundle savedInstanceState) {         // Use the current date as the default date in the picker         final Calendar c = Calendar.getInstance();         int year = c.get(Calendar.YEAR);         int month = c.get(Calendar.MONTH);         int day = c.get(Calendar.DAY_OF_MONTH);          // Create a new instance of DatePickerDialog and return it         return new DatePickerDialog(requireActivity(), this, year, month, day);     }     }      @SuppressLint("SetTextI18n")     public void onDateSet(DatePicker view, int year, int month, int day) {         // Do something with the date chosen by the user         DateEdit.setText(day + ":" + (month + 1) + ":" + year);     }   }// end main class  I am able to see the date fragment in my app but when I press ok button the app crashes and I am getting error  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference at com.thumbsol.accuratemobileassetsmanagament.LoadActivity$DatePickerFragment.onDateSet(LoadActivity.java:300) at android.app.DatePickerDialog.onClick(DatePickerDialog.java:134)  The line number 300 is DateEdit.setText(day + ":" + (month + 1) + ":" + year); How can I get rid of this error? Any help would be highly appreciated.


Is using PDO prepared statement and htmlspecialchars enough to prevent XSS and SQL injection?

For exemple in this code, is htmlspecialchar preventing XSS and is the PDO prepared statement preventing SQL injection ?  if(isset($_GET['search']) AND !empty($_GET['search']) AND $_GET['search'] != ' ') {     $search = htmlspecialchars($_GET['search']);     $searchArray = explode(' ',$search);     var_dump($searchArray);      $videos = $stdb->prepare('SELECT id, title, videoTime FROM videos WHERE title LIKE "%'.$search.'%" OR title LIKE "%'.implode("\" OR title LIKE \"%", $searchArray).'%" ORDER BY id DESC limit '.$start.','.$videosPerPage);     $videos->execute();     $totalVideos = $totalVideosReq->rowcount();     $totalPages = ceil($totalVideos/$videosPerPage);      $currentPage = 1;     if(isset($_GET['page']) AND !empty($_GET['page']) AND $_GET['page'] > 0 AND $_GET['page'] <= $totalPages) {         $_GET['page'] = intval($_GET['page']);         $currentPage = $_GET['page'];     } else{         $currentPage = 1;     } }


solution verification modular arithmetic

I am looking for solution verification. I am trying to grasp the very very basic idea of modular arithmetic. I am sure there are lot of other ways to go about it assuming I did these problems correctly.  $3k \equiv 7 \pmod{13}$ since we are in mod(13) we only look at the values $k=0,...,12$  so $$3k -7 \equiv 0 \pmod{13}$$  $(k = 1) \space 3 - 7 =-4$  $(k = 2) \space 6 - 7 = -1$  $(k = 3) \space 9 - 7 = 2$  $(k = 4) \space 12 - 7 = 5$  $(k = 5) \space 15 - 7 = 8$  $(k = 6) \space 18 - 7 = 11$  $(k = 7) \space 21 - 7 = 14$  $(k = 8) \space 24 - 7 = 17$  $(k = 9) \space 27 - 7 = 20$  $(k = 10) \space 30 - 7 = 23$  $(k = 11) \space 33 - 7 = 26$  Now listing multiples of 13:  13  26  39  we get $26$ when $k = 11$ so the answer is $11$  $4k \equiv 2 (mod 7)$  $4k - 2 \equiv \space 0 (mod 7)$  we look at the values from $0,1,2....6$  $(k = 1) 4 - 2 = 2$  $(k = 2) 8 - 2 =6$  $(k = 3) 12 - 2 = 10$  $(k = 4) 16 - 2 = 14$  $(k = 5) 20 - 2 =18$  $(k = 6) 24 - 2 = 22$  listing multiples of $7: 7, 14 , 21 , 28$  we get 14 when when $k = 4$ so the solution to the congruence equation is $k = 4$


If fish gills do not split H2O into H2 and O, and just take the dissolved oxygen what is left leaving the gills?

Could you please explain to me the exact left overs after a fish takes oxygen out of H2O?


QGIS printing shift on WGS 84 Pseudo Mercator base?

I've had this problem before but I'm not succeeding in fixing it using what I thought worked before.  This has been brought up as an issue previously, but I'm stuck when I apply the previous answers.  There must be numerous people doing the same thing.  I am running QGIS 2.8.2 on Mac OS X (10.10 Yosemite) with OpenLayers 1.3.6   I start off a new project by using the OpenLayers plugin to connect to Google or Bing Maps. I confirm or set the project projection to EPSG3857 for WGS 84 Pseudo Mercator. Then I add a layer in a different project (happens to be IRENET95). Zoom to the new layer and everything fits very nicely on the screen. Open a new Print Composer and add a map.  Things look good on the screen still. Export as a pdf or image and the image base seems to have shifted.   Am I missing something simple or obvious here? In case this is not all clear I've attached two images below.  The first is the screen (of Print Composer) and the second is the exported file.


I have just upgraded to Ubuntu 17.10 and found out there is no option to have 2 by 2 workspaces. I was able to configure 4 "static" workspaces using , but I would like to have them in 2 rows by 2. Any ideas?


Do newer laptop batteries still need to be drained before recharging?

10 years ago when I was doing hardware support it was best practice to fully drain a laptop battery prior to recharging in order to maximize its life.  Is this still the case or can a battery now be recharged at any point without worrying about shortening the lifespan?


Can I download GPS so I can play Pokémon go?


How does sata speed correlate with actual transferspeed?

On my motherboard I have "SATA 6Gb/s" ports, but when I transfer I typically get 70+ MB/s. It's a "SATA 6Gb/s" disk.  I think I have the same issues with my old PC I use as a server, but it has "SATA 3Gb/s" speed.  What does "SATA 6Gb/s" and "SATA 3Gb/s" mean? Is it total bandwidth, so with 6 SATA ports - working at the same time - I would get 500 MB/s? It's still far off my typical 70+MB/s.  I know the quality of my hard-drive is an issue, it's a plain 3.5 non-SSD, and I know file size and file number make a difference, but is it supposed to get close to 500 MB/s?


How can I replace the "@" with the constant “begins” in the regular expression  function matchAlltext() {       const str = document.getElementById('textinput').value;       const begins = document.getElementById('begins').value;       const regexp = new RegExp(/@\w+/ig);       let matchAll = str.matchAll(regexp);       matchAll = Array.from(matchAll);       document.getElementById('textoutput').value = matchAll;     }   I need to find all the words in the text starting with the character entered in the input field


I'm currently developing a AES implementation in a graduation project at university. As far as I know, AES uses a 128 bit block length as input . if the entered string to encrypt is not 128 bits such as 32 bits . what should be done for data that is less than 128 bits ? What's the best solution ?


What package is used here to produce the beautiful summary?

I have already finished writing a book and I would like to produce this kind of table of contents as a summary.


What's the use of neutral wire in single phase home supply?

I am aware that the neurtal wire provides a return path for the current to the power source. But that neutral wire too, is connected to the ground at somewhere between the load and the source. My question is: Why use three wires Live, Neutral and Ground? Instead we can use two wires Live and Ground which does the same work, as Neutral and Ground are joined. Another question: Does two grounds of different localities have same potential? If they have different potentials, is this the reason why we use neutral as the common reference for both the load and the supply?


How do I participate in Meta and not die trying?

Meta doesn't like me; I can't seem to keep my points. How can I make good posts that are well-received?


Vandermonde identity corollary $\sum_{v=0}^{n}\frac{(2n)!}{(v!)^2(n-v)!^2}={2n \choose n}^2$

I am trying to prove this identity:  $$\sum_{v=0}^{n}\frac{(2n)!}{(v!)^2(n-v)!^2}={2n \choose n}^2$$ I think this identity (corollary of Vandermonde identity): $${n\choose 0}^2+{n\choose 1}^2+{n\choose 2}^2+\cdots+{n\choose n}^2={2n \choose n}$$ is applicable for solving it. Please give me some hints. thank you


How to select file on an open explorer window with java

i'm trying to make a program that downloads some files, and now i want to open the folder (on the windows explorer) where those files are (it's always the same folder) and select the last file that was downloaded, i found this code to do it on java: private void openFile(File f) {     try {         Runtime.getRuntime().exec("explorer.exe  /select," + f.getAbsolutePath());                 } catch (Exception ex) {         System.out.println("Error - " + ex);     } }  It works, but every time i press the button to open the folder it opens a new folder to select the file so i end up with many windows opened. Is there a way to do this on the folder that is already open? I've been looking on the web for this but i only found the same code that i'm already using. All of those other posts about this issue are from many years ago so i don't know if it used to work that way on previous versions. Thank you so much if any of you can help me.


Is it normal to use the grave (`) symbol, followed by an apostraphe (') to quote?

For example, 'foo bar' would be quoted as `foo bar', or ``foo bar''. Is it encouraged or general practice to use this quoting syntax? It seems to be quite common in some documentation.


(The?) Lions in the zoo are very aggressive

For example:           Lions are very aggressive.          I don't like lions.          For example:           Books are so important in my life. (I mean all books in general.)          The books were all over the floor. (I mean specific books that you and I know.)        Let's say you and I are living in New York. There is only one zoo in NY. You and I know about that zoo but we have never been there.  Should I say     Lions in the zoo are very aggressive. (Lions that are in the zoo are very aggressive)   or     The lions in the zoo are very aggressive. (The lions that are in the zoo are very aggressive)     Similarly, should I say     Students in Accounting class are smart.    or     The students in Accounting class are smart.


Finite Abelian groups with the same number of elements for all orders are isomorphic

Let $A$ and $B$ be finite abelian groups. Suppose that for every natural number $m$, the number of elements of order $m$ in $A$ is equal to the number of elements of order $m$ in $B$. Prove that $A$ and $B$ are isomorphic.  Idea Given that these groups are finite, I think you have to use the primary decomposition theorem somehow.


Why is naruto's Jinchuriki transformation so different?

Why is Naruto's Jinchuriki transformation so different from the true form of Kuarama??       In the first image, Kurama is in its true form and in the second one naruto is in biju transformed mode. Why is it so different? I mean all the lines and stuff drawn on it and it even looks different that the transformations undergone by other Jinchuriki's!! Is there an explanation for that?


Do we say that $\frac{1}{0}$ has no solution or $=\infty$?

If someone has come up to you, and just asks you directly to compute  $$ \frac{1}{0} $$  Would we say that no solution exists or that it equals infinity?


This could be an interesting Question.  I Found and iPhone 5S, I handed it into the police. After 2 Months they returned the Phone, no one claimed it. I have a Sticker on the back of the phone with police details on it. So in our country, that is proof of ownership. I am now the new owner of this phone. BUT.....It is a brick, as the security has been enabled. I have a start up screen that looks like a brand new phone and I must enter an iCloud account and password. I do not have this information. I have contacted Apple Help USA, They say I need a court summons ??? WHAT!!! I contacted Apple technical Support, ( basically they said NO ) SO. the Question is.... Is there a way around this?  ( I am happy to send a photo with the police details on it. To prove ownership.) Thanks  Anthony


Windows 7 Task Scheduler doesn't list my custom task(s)

I created a custom task from another application (Peachtree), but it never showed up in the Active Tasks list. So, I created it manually from within the Task Scheduler, but the task still hasn't appeared.  I'm afraid I now have two tasks that do the same thing, but I can't change them in any way. What can I do?


How can I programmatically create/change the tracking destination for emails in an automation?

I've been working on a few scripts that can build out all the pieces of an automation that I need to create fairly often.   I can create/update DEs, queries, email send activities, but I CAN'T seem to change the tracking destination in those email send activities.   It always defaults to "my tracking", and I've found changing it in the UI sets it with a "tracking category id" parameter, but I can't seem to set that via SSJS/api etc.  The point of this is to have as close to a "1 click install" as possible, and if I need to go into each send definition manually to change the tracking folder to the correct one it really gets away from that. Any thoughts?


When I try to install a software using Ubuntu Software center I get:  Failed to download repository information Check Your Internet connection   When I try to do a apt-get install something, I get:  407  Proxy Authentication Required   I use a proxy server that requires a user-name and a password. I have set my systems proxy manually, by plugging in the required numbers in the Networks proxy and applied it system wide. I guess the problem now is plugging in my user-name and password.  When I use INTERNET via Mozilla, it specifically asks me for my user-name and password.


Installed apps not showing after upgrading from Ubuntu 19.10 to Ubuntu 20.04

I just upgraded my laptop from Ubuntu 19 to 20.04, and after first boot my apps have all disappeared from the drawer. Furthermore I can't access all apps by searching. The software center loads, but when I click on install, I get a blank screen.  App drawer:    Installed software center:    I entered safe mode to address the issue by uninstalling and reinstalling gnome-software, cleaned the cache and updated all software, restarted the system .and yet the problem persists.  In the software center under any category selected, I can see any installed software I have and I can launch applications from there and that's how I can only access any program I have installed.  Main page software center:    Software installed:    Launch software:    The weird part is using the terminal shortcut (Ctrl+Alt+T), I can access terminal but the font is messed up really bad like alien block fonts. nothing makes sense, making that route useless.  Neofetch result in terminal:   System info:    Files, folders, settings, all intact and accessible.  Software Livepatch update:


As far as I can tell this hasn't been reported yet.  BUG: The "How to Format", and "Similar Questions" widgets (?) seem to be overlapping the footer when you scroll to the bottom.  Pictures attached.  This happens on the questions/ask pages on SE.  I have confirmed it on meta, SO, and Programmers.  On both Edge 25 and Chrome 48, on both a laptop with a 1366x768 and a computer with a 1080 display.


Unknown issue with a Null Object reference on ScheduledExecuterService issue please,

I am getting the following error.    Attempt to invoke interface method 'java.util.concurrentScheduledFuture java.util.concurrent.ScheduledExecutorService.scheduledWithfixdedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)' on a null object reference.     I do not see what is null here.    I have read     and I do not see what is null here.  All the values are filled in manually, and task1 is set by Runnable.  What am I missing or doing wrong here?  // Here are the relevant imports (I think);  import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture;   // Here I setup backgroundExecutor  ScheduledExecutorService backgroundExecutor;     // Here is the start for the runnable process to be delayed.      public void start() {     Runnable task1=new Runnable() {         public void run() {             pauseFunction();         }     };      backgroundExecutor.scheduleWithFixedDelay(task1, 5, 0, TimeUnit.SECONDS); }   I am expecting the TimePassed function to be called with a true.    However I am getting the above Null error.


I’ve got one villager up 7 blocks surrounded with 6 doors. On ground level I have villagers who are supposed to breed. They are willing, their inventories are full of potatoes, and I’ve been sitting here for hours.  Hearts are popping up above their heads but nothing happens. I am playing on Xbox One.


Can't find the reason why root directory usage is so large

Everyone. I have a very difficult thing to do. I have a Linux server, and the root directory has 16GB of space.    df -h, shows the / directory has been used for 15GB, but  du -sh shows that only 5.9GB of space is used.  the lsof | grep deleted command shows only 101KB of space had not been released.  Finally, dumpe2fs showed a lot of blocks in the root directory weren't used (near 9.4GB).    I didn't know what was going on. Can you teach me what this is? This is a production server. Customers are not allowed to restart.  The directory following "--exclude=", which starts with  /i and /p, is the same thing as the two directories that start with a /i and /p in the results of df -h.  I've seen similar questions from other people, and I feel a little different.  The root directory near 9.4GB's block is not used, and there is only 101KB of space not released, so I think it's different from other people's questions, although their situation is a little similar to mine, Please don't label my questions with duplicate.


Difference in randomForestSRC and randomForest package / increasing OOB-Error curve

Probably this is related to .  When training this dataset it seems, that concerning the mean missclassification error less trees are better than more in the R-package RandomForestSRC. Is there a specific reason for this? Until now I thought that more trees are always better.  # Installation of OpenML install.packages(c("mlr", "checkmate", "data.table", "digest", "RCurl", "stringi", "XML", "RWeka", "devtools")) devtools::install_github("openml/r")    library(OpenML) saveOMLConfig(apikey = "put_here_your_key_from_openml.org")  task = getOMLTask(task.id = 3595, verbosity=0)  library(randomForestSRC)   run = matrix(NA, 1000, 2000)   set.seed(105) for(i in 1:1000){   print(paste(i))   run[i,] = rfsrc(binaryClass ~., data = task$input$data.set$data, ntree = 2000, importance="none", mtry=2, nodesize = 1)$err.rate[,1] } runs = apply(run, 2, mean) quant1 = apply(run, 2, function(x) quantile(x, 0.25)) quant2 = apply(run, 2, function(x) quantile(x, 0.75)) plot(runs, type="l", ylim = c(min(runs, quant1, quant2), max(runs,quant1, quant2))) lines(1:2000, quant1, col = "red") lines(1:2000, quant2, col = "green")     I tried to calculate the same thing with randomForest package, but the results were quite different. Here the curve continues to decrease with adding more trees.   library(randomForest) run = matrix(NA, 1000, 2000)   set.seed(105) for(i in 1:1000){   print(paste(i))   run[i,] = randomForest(binaryClass ~., data = task$input$data.set$data, ntree = 2000, mtry=2, nodesize = 1)$err.rate[,1] } runs = apply(run, 2, mean) quant1 = apply(run, 2, function(x) quantile(x, 0.25)) quant2 = apply(run, 2, function(x) quantile(x, 0.75)) plot(runs, type="l", ylim = c(min(runs, quant1, quant2), max(runs,quant1, quant2))) lines(1:2000, quant1, col = "red") lines(1:2000, quant2, col = "green")     edit: A growing Errorrate-curve is also possible with the randomForest package. See this example:  library(OpenML) task = getOMLTask(task.id = 3548, verbosity=0)  library(randomForest) run = matrix(NA, 1000, 2000)   set.seed(108) for(i in 1:1000){   print(paste(i))   run[i,] = randomForest(Type ~., data = task$input$data.set$data, ntree = 2000)$err.rate[,1] } runs = apply(run, 2, mean) quant1 = apply(run, 2, function(x) quantile(x, 0.25)) quant2 = apply(run, 2, function(x) quantile(x, 0.75)) plot(runs, type="l", ylim = c(min(runs, quant1, quant2), max(runs,quant1, quant2))) lines(1:2000, quant1, col = "red") lines(1:2000, quant2, col = "green")


Show that the space of functions $f: \mathbb{N} \to \mathbb{R}$ does not have a countable basis.  This is a problem I found a few weeks ago and I'm really stuck on it... I haven't thought of a good way to do it so could someone please provide a solution?


Enchantment Legal only because of it's Effect. Remains on target?

This happened this weekend, and we were unsure how to resolve it.    Opponent casts . On my turn, I cast . Then I cast,  targeting the .   Normally, I could not target the Progenitus because it has Protection from Everything, but since it lost all abilities and became a frog, it was a valid target (We thought so anyway). It was at the end of this turn that we were unsure. Polymorphist's Jest effect ended, but the Darksteel Mutation was still enchanting the creature. This is what we thought:   Progentius has Protection from Everything and the Enchantment "falls off" as it is no longer a valid target.  The Insect has no abilities apart from Indestructible, and the Enchantment stays. Something Else???   I'm really hoping this is #2 since this combo would allow for targeting of things with shroud and hexproof, etc. on the turn I cast Polymorphist's Jest.


In Czech typography, some prepositions are not allowed to be at the end of the line, so line break is not allowed between that preposition and the following word.  Are there similar rules in English typography? Are there any situations where a line break is not allowed or discouraged?  Note: I'm not worried about hyphenation, I expect that my typesetting program (LaTeX) will handle that for me.


Suppose that $f$ is continuous on $[0, 2\pi]$ and that $f(0) = f(2\pi)$.  Prove that there exists a $c$ in $[0, 2\pi]$ for which $f(c) = f(c+\pi)$.  Here is what i did: if $f(c) = f(c+\pi)$, then $f(c) = f(c-\pi)$.  $f(c+\pi) = f(c-\pi)$ for which $\lvert{\sin(x)}\rvert$ is the function that comes to my mind, and I'm stuck here. I must use the mean value theorem and maybe Rolle's theorem since it's a question from that section, but $\lvert{\sin(x)}\rvert$ is not differentiable. Yet the question itself doesn't mention anything about differentiability of the function. Could anyone solve this, please?


No option to boot Ubuntu after Windows 10 update in dual boot

I had Ubuntu 16 and Windows 10 installed and coexisting peacefully. On boot, the past and wise me had configured the computer so that it would give me a choice on whether I would like to boot Ubuntu or Windows, on a timer that would start Ubuntu by default if 30 seconds without input passed. But the last Windows 10 update has disabled the possibility of booting Ubuntu altogether. What I have tried:  I entered the power options on Windows 10 and disabled fast boot I have shutdown the computer while pressing shift, then pressed F2 on boot to access the BIOS menu. There I have checked that indeed my first boot option is Ubuntu, and I have also tried disabling a fast boot option there was there in the BIOS menu.  I do not know what else to try. How can I return the boot configuration to its behaviour pre update?  UPDATE:  I have tried running bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi from the console with admin rights. When I load, now I see a scary screen saying  Secure Boot Violation. Invalid signature detected. Check secure Boot Policy in setup   I have also tried booting from a live USB. Got into BIOS menu using F2 on boot, then when I launch the boot override... I get the same scary message as above.


Second derivative test for machine learning algorithms

I have a question on second derivative test for most "modern" machine learning algorithms. I learned that in calculus but never seen it in real applications. Most machine learning algorithms optimizations seems to be trying to get the parameters that make derivative to $0$, without further tests to see if it is a max / min or saddle point. Why? Is that because many objective function is not twice differentiable?  I know saddle point is a problem in neural network optimization, but even for simple case, say ridge regression / logistic regression, we also do not do the second derivative test, why? Is that because we know the objective function is convex?


Is it against code to splice wires inside of the load center?

So I was working on breaking a tandem 15A single-pole breaker into two 15A single pole breakers, one being a Combination AFCI.  After getting the panel open and moving one circuit to a new, 15A single pole (non-CAFCI), I discovered that my second circuit, the one I want on the CAFCI, has too short of a neutral wire to reach the CAFCI breaker's neutral screw.  It looks to have been shortened to be just long enough to reach the neutral bus bar.  Is it against code to splice/pigtail a new, short piece of romex onto the existing neutral (w/ a wire cap) so I can connect it to the CAFCI's neutral screw?  Edit: Just for completeness, this relates to .  I was replacing the AFCI receptacle with a CAFCI breaker, on the advice of an electrician, when I encountered this short neutral wire inside the panel.  The electronics and sensing apparatus inside of an actual CAFCI breaker have been around long enough that most of the kinks have been worked out.  The Leviton AFCI Receptacle, OTOH, is still fairly new and might not be usable in all wiring configurations yet.


Direction of the current and the electrons

If the electric current is defined as Coulomb/second, why is the direction of the current is just the opposite of the direction of the flow of electrons?


Is it possible to use a parameter within an alias command

Possible Duplicate:          As answered in  I want to use git diff --color=always filename | less -r to get a colored output of my git diffs. Since I use this a lot it would be nice to set up an alias for this. But how to include the filename in this command?  I tried the following without success:  alias gdiff='git diff --color=always $1 | less -r'   Typing gdiff example.php displays the content of example.php with less but ignores the diff part.  Any ideas?


I have a program I'm making where when the user type in a mood, it will output a quote based on it. I need to tell the program if the user is happy, then output this text The problem is, I don't know how to get the program to recognize the input and output the text based on it... here's what I have for code so far.  import java.util.Scanner; public class modd {     public static void main(String arrgs[]) {         System.out.println("Enter your mood:");         Scanner sc = new Scanner(System.in);         String mood = sc.nextLine();          if (sc = happy) {             System.out.println("test");              if (sc = sad) {                 System.out.println("I am sad");             }         }     } }


cannot access copied folder in htdocs of lampp in ubuntu?

I want to move my web content from Window 7 to Ubuntu 12.04. So I copy my web content and move it to my /opt/lampp/htdocs folder, then I have change the folder permission using:  sudo -s  cd /opt/lampp/htdocs sudo chmod 777 -R myWebContent   Then folder permission is changed. But still I can not access my php file, because it only change the folder's access permission, not a single php file's permission. How can I solve this?


Is there a way to extract the source .tex from a pdf file?

I have a pdf file that I'm positive was originally set up in TeX. Is there a way to extract the original markup from this?  If it's any help, I work with Windows 7 and MikTeX 2.9


Run shell script from Apache conf or at Apache (re)start

I have a complex web application that contains a lot of dynamic Aliases. I created a shellscript that updates the .conf file(s) with these aliases. Is it possible to call this shellscript from within the Apache conf? So something like:  RunScript /etc/myapp/updateconf.sh Include /etc/myapp/*.conf   Or alternatively, is there a good way to add this script as a hook to the /etc/init.d/apache2 or /etc/init.d/httpd script? I am looking for a solution that works on both CentOS and Ubuntu. If I am totally approaching this the wrong way, any other suggestions are welcome as well.


Finding a set of continuous functions with a certain property

I need help finding the set of continuous functions $f : \Bbb R \to \Bbb R$ such that for all $x \in \Bbb R$, the following integral converges:  $$\int_0^1 \frac {f(x+t) - f(x)} {t^2} \ \mathrm dt$$  I am thinking it could be the set of constant functions but i havent been able to prove it :(   I have also noticed that you can kind of  take any two functions and stick them together (continuously extend one into the other) the resulting function verifies the property in question.  I hope you can provide some insight and thank you .


Legality of physically publishing Stack Exchange content verbatim

This was brought to my awareness on a Facebook D&D forum.    This fellow, George Duckett, has published 378+ books by gathering the content from Stack Exchange, dumping it into some semblance of a document, and then selling Stack Exchange content on Amazon and Barnes and Noble to profit directly.


Testing a queueable class containing a future callout

I have a queueable class that makes callouts (@future(callout=true)) in the execute method. When I manually test this, everything works correctly. But when I set up my test class, it gives me the "You have uncommitted work pending. Please commit or rollback before calling out" error. I don't have any DML statements apart from in my testSetup class. And I have Test.startTest() and Test.stopTest() surrounding the enqueueJob.  I can test the callouts (and they test successfully) if I call this method directly, but I can't test the execute method (which calls the callout method).  i.e. this works:  QueueClass.makeCallouts(list);   But this doesn't (gives the commit error):  System.enqueueJob(new QueueClass(list));   For reference, here is the portion of my execute class that runs prior to the error:  settings = tokens.getInstance(id); Boolean updated; if (settings.Access_Expiration__c < Datetime.now()){     //stuff that doesn't run } else {     updated = True; } if (updated){     makeCallouts(list); }   Can we not test callouts from queueable apex, can I not test the execute method, or am I missing something?


I use VirtualBox on my MBP and often need to mount my USB flash drive inside the guest.  The problem I'm running into is that the host OS (OS X Mavericks) immediately mounts the USB flash drive when I insert it.  When I try to unmount it (gracefully, through Finder), OS X complains that the device is in use.  Further research into lsof reveals that Spotlight and AVG are doing their thing with the flash drive.  Rather than fiddling with individual app settings, I'd like to just modify the host OS behavior so that the USB device doesn't auto-mount.  Any suggestions?


Plot points with coordinates from txt-file

I'm using QGIS 3.12.   I have a list of coordinates in txt file, as follows  "longitude" "latitude"    48.819056, 2.127009    48.782213, 2.143340    48.801580, 2.355238   48.904471, 2.296038   How to plot this list of points on a layer in my project?


Computing p-value using bootstrap with R

I use "boot" package to compute an approximated 2-sided bootstrapped p-value but the result is too far away from p-value of using t.test. I can't figure out what I did wrong in my R code. Can someone please give me a hint for this  time = c(14,18,11,13,18,17,21,9,16,17,14,15,          12,12,14,13,6,18,14,16,10,7,15,10) group=c(rep(1:2, each=12)) sleep = data.frame(time, group)  require(boot) diff = function(d1,i){     d = d1[i,]     Mean= tapply(X=d$time, INDEX=d$group, mean)     Diff = Mean[1]-Mean[2]     Diff }  set.seed(1234) b3 = boot(data = sleep, statistic = diff, R = 5000, strata=sleep$group)  pvalue = mean(abs(b3$t) > abs(b3$t0)) pvalue    The 2-sided bootstrapped p-value (pvalue) = 0.4804 but the 2-sided p-value of t.test is 0.04342. Both p-values are around 11 times difference. How can this happen?


In quantum mechanics, a system is descibed by an element $|\psi\rangle\in\mathcal{H}$, where $\mathcal{H}$ is a Hilbert space.  Then on $\mathcal{H}$ (or on a dense subspace of $\mathcal{H}$), we can define the Hamiltonian operator $\mathbf{H}:\mathcal{D}(\mathbf{H})\rightarrow \mathcal{H}$, where $\mathcal{D}(\mathbf{H})$ is a dense subspace of $\mathcal{H}$ (called the domain of definition of $\mathbf{H}$).  Now, at time $t_0$, we consider a system described by $|\psi(t_0)\rangle\in \mathcal{H}$, and this system evolves with the Schrödinger equation : $$\forall t\ge t_0,\quad \mathbf{H}|\psi(t)\rangle=i\hbar \frac{\text{d}|\psi(t)\rangle}{\text{d}t},$$ where $|\psi(t)\rangle$ is the state of the system at time $t$.  But what does $\frac{\text{d}|\psi(t)\rangle}{\text{d}t}$ mean ? Because if we take the definition of the derivative, then we would have : $$\frac{\text{d}|\psi(t)\rangle}{\text{d}t}=\lim\limits_{h\rightarrow 0}\frac{|\psi(t+h)\rangle-|\psi(t)\rangle}{h}, $$ but how do you define this limit of functions on $\mathcal{H}$ ? More precisely, does the sequence $(|\psi(t)\rangle)_{t\ge t_0}$ evolves in the same Hilbert space $\mathcal{H}$ and what is the domain of definition of $t\mapsto |\psi(t)\rangle$ to take the 'derivative' ?


How to view recently opened media files?

In windows we have an option to view recently opened media files as my recent documents, I was  wondering does there exists something like that in Ubuntu?  via terminal or via GUI?


sequence of random variables choosen from the interval $[0,1]$

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


What is the difference between $\mathbb{Z}_n$ and $\mathbb{Z}/n\mathbb{Z}$ (as groups, their set structures and algebraic structures)?

Can you please explain this with simple examples?    To me, their elements are same. Because if I divide $ k+m\Bbb{Z}$ by $ n$, then it gives any one of the elements of $ \Bbb{Z}_n$. So can I say  $\mathbb{Z}_n$ and $\mathbb{Z}/n\mathbb{Z}$ both are same? Or does it happen due to the fact that $\mathbb{Z}_n$ and $\mathbb{Z}/n\mathbb{Z}$ are isomorphic?     Also are their set structure same? (if not, then I suppose they are not same groups/rings.)   Thanks in advance.


Prove using combinatorics $\sum\limits_{r=0}^n  r^2\binom{n}{r}=n(n+1)*2^{n-2}$.  The left side is choosing $r$ persons from $n$ persons and make one leader and one co-leader such that the leader and the co-leader can be the same.But then the left side should be choose a leader and co-leader and  then choose the other which makes the left side $n^2*2^{n-2}$ where did I make a mistake?


Why does do_action pass a blank string as the first parameter if no $arg is set?

I'm having a hard time understanding how to set up a function with a default parameter and then call it with the do_action in WordPress. I'm not sure if this is a WordPress issue or just me not understanding the do_action method. What happens is I define a function like this:  function contact_info( $show_logo=true ) {      var_dump( $show_logo );     }   Then I add the hook like this:  add_action( 'show_contact_info', 'contact_info' );   Finally when I call the do_action like this:   do_action('show_contact_info');   I would expect a the var_dump to be bool(true), but what I am getting is: string(0) ""  So my question is WHY?   It doesn't seem to be accepting the default as set in my function, or more specifically, the do_action call ALWAYS seems to pass blank as the first parameter if one is not defined in the call. Is this standard for Wordpress? Why would it not pass NULL?


Let $x_1,...,x_n > 0$. I'm having troubles proving this formula via induction: $$ (x_1 + \ldots + x_n)\left(\frac1{x_1} + \ldots + \frac1{x_n}\right) \ge n^2 $$  So far, I've managed to rewrite it like this: $$ \sum_{k=1}^n x_k \sum_{k=1}^n \frac{1}{x_k} \ge n^2 $$ Also the base case seems simple enough: $1 + 1/1 \ge 1^2$. However, this is where I got stuck and I can't seem to be able to solve this any further.


Now that I have what want all the basics and running ok I would like to learn the best way to backup os and data before i attempt my first compile of a basic c++ program then learning python is next unless someone tells me something I sould learn before that.


Lagrange's theorem:   Let G be a finite group and let H be a subgroup of G. Then, $|H| | |G|$   The converse does not hold in general.   'Non-example':  $G=A_{4}$ where $A_{4}$ is the alternating group of degree n  Then, |G|=12.  Conclude that G does not have a subgroup of order 6. Where did this conclusion follows from?