I use Stata to perform a Kruskal-Wallis test on four groups of data (not normally distributed), and the results are shown below:  Kruskal-Wallis equality-of-populations rank test    +------------------------+   | group | Obs | Rank Sum |   |----------+-----+-------|   |     1 |   7 |   136.00 |   |     2 |   7 |    64.50 |   |     3 |   7 |   134.00 |   |     4 |   7 |    71.50 |   +------------------------+  chi-squared =     9.533 with 3 d.f. probability =     0.0230  chi-squared with ties =     9.538 with 3 d.f. probability =     0.0229   It is fine to conclude from above that there is significant difference between these 4 groups of data. But I wonder how to interpret the rank sums output by this test as shown above: can we actually say that group 1 and group 3 $>$ group 2 and group 4 based on the ranks above? If not, what does a difference in the rank sum between two groups mean here?


I am in the process of creating a reply ticket system, and came across this. Since I'm usingmysqli_real_escape_string, it's adding backslashes to the reply text. Since I'm using prepared statements and bind_param, is it safe to remove the mysqli escape string? or will that open it up for SQL injection? Thanks!!


How do I get newest version of adobe flashplayer?  I don't have a application to open APT links


While adding element into ArrayList using Multithreading, sometimes it give ConcurrentModificationException and sometimes not?

I tried iterating ArrayList object using multi-threading, but sometimes it is giving ConcurrentModificationException and sometimes not? I am unable to understand what is happening here.  I am sharing my code below:  import java.util.ArrayList; import java.util.Iterator;  public class ConcurrentDemo extends Thread{     static ArrayList l=new ArrayList();     public void run()     {         /*          * try { Thread.sleep(2000); } catch(InterruptedException e) { }          */         System.out.println("child thread updating list");         l.add("D");         System.out.println(l);      }      public static void main(String args[]) throws InterruptedException     {         l.add("A");         l.add("B");         l.add("c");      ConcurrentDemo c=new ConcurrentDemo();       c.start();       System.out.println(l);       Iterator itr =l.iterator();       while(itr.hasNext())       {           String s1=(String)itr.next();           System.out.println("main thread list:" + s1);           Thread.sleep(3000);       }       System.out.println(l);     } }


I was in need to use the number 515236034100068353 but JavaScript transforms it as 515236034100068350      console.log(515236034100068353 === 515236034100068350)     Why does this happens ? How could I fix it ?


Which one is correct to say?        I work in downtown.   I work downtown.


I have many crons that run at different intervals. I need to configure them all to not run between two specific time ranges. How can I configure a unix cron to run exclusive of 11:45-13:00 and 14:45-16:00?  If the minutes is not possible, 12:00-13:00 and 15:00 - 16:00 would suffice. Thanks!


How to create working buttons on buttons that have been added dynamically in jquery?

I am using the example from here:  What I would like to know, is how can I add jquery function on the new buttons that are created after I clicked on insert after? Let's say I have clicked twice the button, insert after and so I have these new two buttons. How can I add functions on the buttons? What I would like to recreate is: ` <!DOCTYPE html>          <link rel="stylesheet" href="style.css">              <button id = "btn_add> Add </button>

     `  JS $(document).ready(function () {  $("#btn_add").click(() => {         $('#container').append(`
\
\           Trial
 \         <button id="btn_addOther"> Add Other </button>
`);      })    $("#btn_addOther").click(() => {  $('#under_container').append(`
 \         <textarea placeholder="Title" type="text" >Title</textarea> \
`         );     }); });  So, I would like to create a button that adds other buttons and when the new buttons are created, they should be able to create other things on the page.


What is difference between "Can", "Could", "Will", "Would", "Shall", and "Should"?

I can work. I could work. I will work. I would work. I shall work. I should work.


How to conduct an Accent Sensitive search in MySql

I have a MySQL table with utf8 general ci collation. In the table, I can see two entries:  abad abád  I am using a query that looks like this:  SELECT *  FROM `words` WHERE `word` = 'abád'   The query result gives both words:  abad abád  Is there a way to indicate that I only want MySQL to find the accented word? I want the query to only return    abád    I have also tried this query:  SELECT *  FROM `words` WHERE BINARY `word` = 'abád'   It gives me no results. Thank you for the help.


I am trying to round 113.10285 down to 113.10 but all I get is 113.1 How do i round it to 2 decimal places with the 0.


Blender is not rendering an HDRI properly

I recently upgraded from blender 2.81 to 2.82a, and I've immediately noticed a problem. Blender is not rendering HDRI images like it used to. You used to be able to plug an HDRI image into the background node, and into the world output. However when I do this now, in Eevee or Cycles, it renders what can be described as "as solid color" version of the HDRI instead of the actual HDRI image.   Here are some images to show as examples, each has a difernt HDRI, one is in Eevee, one is in Cycles. Is this a new "feature" of 2.82 or is this a bug? Thanks.


How hide the grub 2 start up screen in debian during bootup?

How can I make it so that the grub start up screen will not show up in debian when I boot?


Newline breaks Java Regex negative lookbehind

I'm trying to validate email addresses using a regex pattern with negative lookbehind. More specifically, allow only those that don't end on a specific sequence @mydomain.de.  This works fine on most of my test strings. However, adding a newline at the end of the string (\r\n) seems to break it, as it does no longer match.  I'm aware that this could normally be more easily solved using .endsWith(). I'm just intending to use the regex in a javax pattern annotation.  Pattern p = Pattern.compile("^.*(?<!@mydomain\\.de)$")  p.matcher("test@gmail.com").matches()  // => true p.matcher("test@gmail.com\r\n").matches()  // => false   I would expect both strings to match as they do not end on the forbidden sequence @mydomain.de


Consider $f(x)=mx$ and $g(x) =bx$ in which $m>0$ and $b>0$. Does there exist any homeomorphism $h$ such that $h \circ f$ = $g \circ h$? If exists find the domain of $h$.   Obviously I tried $h(mx)=bh(x)$. But I don't know how to go for solving it! In addition, I have no idea about how to prove homeomorphism existence in such problems.


Showing that a map is bijective and finding its inverse

Let $S$ := {$(x, y) ∈ \mathbb R^2: x^2 + y^2 = 1$} be the unit circle. Let $p = (0, -1)$ ∈ $S$. Define a map $F$ from $\mathbb R$ × {$0$} to $S$ as follows: Given $(t, 0)$, let $F((t, 0)) = (x, y)$ ∈ $S$ be the intersection of $S$ with the line through $p$ and $(t, 0)$. Derive a formula for $F$. Show that $t$ → $F((t, 0))$ is a bijective map from $\mathbb R$ to $S$ \ {$p$}, and also derive a formula for its inverse.  If we express $S$ in polar coordinates: $$S:=\{(r,\varphi):r=1,\varphi∈(-\frac\pi{2},\frac{3\pi}{2})\}$$ then, from simple trigonometric relations, the inverse function $\Phi$ is: $$\Phi(\varphi)=\tan\frac{\frac\pi2-\varphi}2$$ and its inverse $F$ is: $$F(t)=\frac\pi{2}-2\arctan t$$ After changing coordinates back to cartesian, $F$ will look like: $$F(t)=(\cos(\frac\pi{2}-2\arctan t),\sin(\frac\pi{2}-2\arctan t))$$ which can be further simplified to: $$F(t)=(\frac{2 t}{t^2 + 1},\frac{1 - t^2}{t^2 + 1})$$ Is this the formula of $F$? Is it correct? And I know that to show that $\phi$ : $\mathbb R$ →  $S$ \ {$p$} is a bijective map, I have to show that $\phi$ is injective and surjective. But how do I do that? Can someone please help me show that $\phi$ is bijective? and how can I derive a formula for its inverse?


supremum of uncountable families of Borel measurable functions

Show that the supremum of an uncountable family of $[-\infty, \infty]$- valued Borel measurable functions on $\mathbb{R}$ can fail to be Borel measurable.  Does this mean that I need to find some kind of family such that the intersection of the  sets $$\{x\in A | f_n(x) \leq t \}, $$ for all $t$, fails to be an Borel set? Or is there some easier way?


Figure float taking up an entire column?

I have a lengthy two-column document where some of the figures end up taking up the entire column (centered in the column), but there ought to be room for text either above or below the figure.  Help?  Here's an example:   The preamble is reasonably straightforward:  \documentclass[letterpaper,twocolumn]{article} \usepackage{amsmath} \usepackage{luatextra} \usepackage{hyperref} \usepackage{fontspec} \usepackage{listings} \usepackage[margin=1in]{geometry} \usepackage{unicode-math} \usepackage{booktabs} \usepackage{threeparttable} \usepackage{siunitx} \usepackage{topcapt} \usepackage[version=4]{mhchem} \defaultfontfeatures{Ligatures=TeX} \setmainfont{TeX Gyre Termes} \setmonofont{TeX Gyre Cursor} \setmathfont{TeX Gyre Termes Math} \renewcommand\thesection       {\Roman{section}} \newcommand{\matr}[1]{\mathbf{#1}} \renewcommand{\vec}[1]{\bf{#1}}  %float placement parameters \renewcommand{\topfraction}{.85} \renewcommand{\bottomfraction}{.7} \renewcommand{\textfraction}{.15} \renewcommand{\floatpagefraction}{.66} \renewcommand{\dbltopfraction}{.66} \renewcommand{\dblfloatpagefraction}{.66} \setcounter{topnumber}{9} \setcounter{bottomnumber}{9} \setcounter{totalnumber}{20} \setcounter{dbltopnumber}{9}   and the offending figure is defined as:  \begin{figure}[tbp]   \centering   \includegraphics[width=\linewidth]{spectra.pdf}   \caption{K, Th, and U basis spectra. Although drawn as smooth curves, the       x-axis (energy deposited) is divided into 0.012 MeV wide channels,       and the corresponding y-axis value is the average number of counts       recorded during a one-second measurement having an energy that falls       within that channel.  Solid curves correspond to \ce{NaI}, while       dotted curves correspond to \ce{CeBr3}. The dashed K curve in the top       panel corresponds to a Radian-sized \ce{NaI} spectrum that has had       the count rate in each channel multiplied by a factor of 1.3 (so that       the low-energy peak roughly overlaps those of its larger breathren).       The bottom panel is just a blow-up of the high-energy portion of the   spectra presented in the top panel. Vertical dashed lines indicate window   boundaries (see Sec.\ \ref{sec:fitting}) with the lower limit of each   window located at 0.072, 0.372, 0.696, 1.032, 1.344, 1.548, 1.944, and   2.208 MeV.}   \label{fig:basisspectra} \end{figure}   Thanks!


Prove that a finite semigroup G with identity is a group if and only if G contains only one idempotent

Let $G$ be a finite semi-group with identity such that it has only one idempotent.Is $G$ a group?  It only remains to show that for any $a\in G$ $\exists b\in G$ such that $ab=ba=e$ where $e$ is the identity of $G$  Also $e$ is the only idempotent of $G$ .How to proceed next?


Can We build a search function using GeoExt?

Or do I need another technology?  I need to build a web gis server and I need map display, layers switch, search function and attribute display feature.   I am currently using GeoServer, OpenLayers and GeoExt.


Phone keeps rebooting on Volume Up + Power (trying to install ROM)

I tried to install Android's ROM and got ERROR 7, then I wiped out cache, data, internal storage, where was twrp.apk installed. After that I cant get into boot menu (with Install, Wipe... buttons). Then I copied twrp to the phone: sudo fastboot flash recovery <twrp.img> Tried versions 3.2.1-0 and 3.4.0-0, because I heard for certain phone (I have Xiaomi Mi4) it's necessary to use proper version, though I don't know which. What's going on now: I can successfully can get to the nice splash screen using Volume Down + Power, then on my PC I give sudo fastboot reboot command and press Volume Up + Power and here is the problem: It has no effect, it just keeps rebooting (I see only Xiaomi's logo).


Is there a way to make comments in the node editor?

I'd like to have a node like the Frame node but one that can have lots of text, not just a header. I've looked and it looks like there isn't any such capability so far, so I was wondering how easy it would be for someone to create a custom Comment node as an add-on or script (I don't know the differences between the two). I myself would love to leave detailed comments in complex node trees so that I can figure out what I was doing/what to do when I come back to them months later.


My name is James Lamar Smith, in which my first name is James, middle name is Lamar and my last name is Smith. I would like to  know which form of my short name is acceptable in English:  1 J. L. Smith (with space after periods) 2 J.L.Smith (without space after periods) 3 J L Smith (without usage of periods)    And my question is: can I omit periods by using space anywhere after using a capitalised letter without periods like J L Smith? From J. L. Smith? And there is a space after the periods; can we neglect it as in J.L.Smith? Could it be used without using space anywhere? Which is acceptable in English for official and agenda use?


Convert to edit button in moderator queue disabled, but not in mod menu

For  (now deleted), where the OP tried to add additional information to their question, the "convert to edit" option has been disabled in the moderator queue:    However, when I open the mod menu of the post, the option is enabled:    How is this possible?  I'm not sure if I'm understanding things wrong or if there's really a problem here, that's why I'm tagging it both as  and .  EDIT: the suggested duplicate tells that there's an algorithm switching the button on or off depending on certain conditions; the author of that question thinks a comment on the answer might disable the button (but has subsequently struck through that part of the text). If this is true, I'd like the algorithm to be changed (so this becomes a  ...); many times, flaggers will leave a comment asking the author to edit the information into their question. There's an AutoReviewComment doing that, and maybe even one generated by the Low Quality Posts review queue (not sure about that, and it's hard to find testing material).


why are my materials showing as a solid color?

I have a model that has materials as textures. The materials show up in my older system, and whether I save as a .blend or .obj file, I get a solid color, in my newer Laptop.  I use EEVEE, but it doesn't matter which mode I use, it's the same result. The texture files are .png images. are included, see the picture. How do I fix this?


Give an example of three positive integers m, n, and r

Can someone give an example of three positive integers m, n, and r, and three integers a, b, and c such that the GCD(m,n,r) = 1, but there is no simultaneous solution to: x ≡ a (mod m) x ≡ b (mod n) x ≡ c (mod r)


I have an issue with remote objects: I run the following code:  <apex:remoteObjectModel name="Case" jsShorthand="case"                      fields="Subject,Id,CaseNumber,CreatedDate,Status,Description,IsClosed,Priority,Type"/>      var cases = new SObjectModel.Case();     cases.retrieve({where: {IsClosed: {eq: false}}}     , function(error, records) {     });   and the error is:  Error occurred while performing RETRIEVE operation on sobject: Case with data: {where={IsClosed={eq=true}}} (MALFORMED_QUERY:  subject, createddate, id, casenumber, _cid FROM Case WHERE IsClosed =                                      ^ ERROR at Row:1:Column:76 line 1:76 no viable alternative at character '_')    Well, yesterday it was working ok. What can be wrong with this part?


Have multi-speed non-freewheeling bikes ever been common?

Prompted by a  I was pondering the idea of bikes with variable gearing (derailleur or otherwise) but without the ability to freewheel. Have such bikes ever been widely used?  They would appear to share many of the advantages and disadvantages of fixies but be better at handling hills (up and down) while being more complex.


While studying functional programming, the concept partially applied functions comes up a lot. In Haskell, something like the built-in function take is considered to be partially applied.  I am still unclear as to what it exactly means for a function to be partially applied or the use/implication of it.


Prove that the support function of an arbitrary set $A\subset\mathbb R^n$ is convex

Given an arbitrary set $A ⊂ \mathbb{R}^n$ , the support function associated with the set $A$  $ σ_A : \mathbb{R}^n \to \mathbb{R} ∪ \{+\infty\}$ is defined as  $\sigma_A(x):= \sup_{z \in A} \langle x,z \rangle$  Prove that $\sigma_A$ is convex.  Can I confirm that the inner product $\langle x, z \rangle$ is just a line orthogonal to $x$  I am confused by the meaning of "support function" and also what $\sigma_A(x)$ is. If it's the supremum of the inner product of $x$ and $z$ (which tells us what exactly?) isn't it just going to be a single point/value?   How can I prove this, and where has my interpretation failed me?


I have headphones with differential input and impedance of 8 ohms. I need to drive this headphone with some DAC with built in headphone driver (Currently I have chosen ADAU1772). DAC's datasheet mentions that the minimum impedance of headphones it supports is 16 ohms. Can I increase impedance of my headphones so that I can drive them through this chip? What will happen if I drive this 8 ohm headphone through a chip supporting minimum impedance of 16 Ohms?


l@ubuntu:/opt$ sudo apt-get install libx265-36 Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   fonts-cabin fonts-comfortaa fonts-dejavu-extra fonts-freefont-otf   fonts-gfs-artemisia fonts-gfs-complutum fonts-gfs-didot   fonts-gfs-neohellenic fonts-gfs-olga fonts-gfs-solomos fonts-inconsolata   fonts-junicode fonts-lato fonts-linuxlibertine fonts-lobster   fonts-lobstertwo fonts-oflb-asana-math fonts-sil-gentium   fonts-sil-gentium-basic linux-headers-3.13.0-32   linux-headers-3.13.0-32-generic linux-image-3.13.0-32-generic   linux-image-extra-3.13.0-32-generic texlive-fonts-extra-doc   ttf-adf-accanthis ttf-adf-gillius Use 'apt-get autoremove' to remove them. The following NEW packages will be installed:   libx265-36 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. 5 not fully installed or removed. Need to get 0 B/455 kB of archives. After this operation, 2,224 kB of additional disk space will be used. (Reading database ... 335140 files and directories currently installed.) Preparing to unpack .../libx265-36_1.4~20141102~trusty~ppa1_amd64.deb ... Unpacking libx265-36:amd64 (1.4~20141102~trusty~ppa1) ... dpkg: error processing archive /var/cache/apt/archives/libx265-36_1.4~20141102~trusty~ppa1_amd64.deb (--unpack):  trying to overwrite '/usr/lib/x86_64-linux-gnu/libx265.so', which is also in package libx265-32:amd64 1.3~20140923~trusty~ppa1 Processing triggers for libc-bin (2.19-0ubuntu6.3) ... Errors were encountered while processing:  /var/cache/apt/archives/libx265-36_1.4~20141102~trusty~ppa1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Windows command to display all IP addresses

I know there is a single line of a command and its arguments that can help display all computer IP addresses (those that are being used) on a LAN, and my computer is also a client, as one of those displayed, but I forgot. What is it?


Run As Administrator Settings Under Shortcut

There are two checkboxes for Run As Administrator in the Properties dialog for a shortcut in Windows 7. One is under the Shortcut tab in the Advanced Properties dialog, and the other is under the Compatibility tab.  I've seen this under Windows 7 and Windows Server 2008. It might be in Vista and other versions, but I'm not sure.  What is the difference between these two settings?


I like Stack Overflow. However, I found that some sites 'mirror' stuff from here, for example:  http://www.9nit.com/c-c-/opencv-imwrite-saving-complete-black-jpeg-37967.html http://fatalweb.com/question/change-cvfindcontours-to-4-connected-neighbors-from-8-connected-6951483.html http://www.rqna.net/qna/kvqnun-how-to-minimize-opencv-library-size.html http://www.questiondb.com/questions/7403455/how-do-you-set-up-opencv-with-qt-in-osx http://it.dbline.net/questions/tagged/contour?page=1&sort=active http://s7438.socode.info/question/5081280a4f1eba38a41a813d   They do not only post my questions and answers, they also post my name. I do not want to be connected (in a sense of Google results) to these website, their layouts are horrible, the domain names awful and, lastly, I don't see the point.  However, I do want to be connected to Stack Overflow.  Is there anything I can do? Is there an opinion Stack Overflow has regarding those websites?  I noticed a related post:   But I could not open the duplicate.  Moreover, here one can report, but what is done with the report? Are the websites taken down somehow?      My solution For those who have the same questions and want to know how to be unggoogleable on Stack Exchange-mirrors:  First I removed my last name from all Stack Exchange accounts.  Then some of the mirrors simply update their pages and remove it immediately. For others, you have to e-mail and ask. This is a list of experiences I have per website that mirrored my name:  Site                          Possible Fix                           http://www.9nit.com/          e-mail                        http://www.questiondb.com/    e-mail                        http://www.rqna.net/          e-mail                        http://fatalweb.com/          feedback button, bottom right  http://it.dbline.net/         e-mail http://s7438.socode.info/     e-mail http://www.techques.com/      nothing, updates automatically   The e-mail template I use Dear sir, madam,  Your website shows my name, NAME, namely on these pages:  LIST OF LINKS  Please remove my name from them.  Thank you in advance.  Yours Sincerely,  NAME  Moreover...  I also found this site, which states that a site cannot just mention your name without your consent:


Major Performance Issues with Java 8 ScriptEngine Compared to Java 7

I have a Java program (compiled using JDK 7u80) which makes extensive use of the "JavaScript" ScriptEngine (JSR-223). I have noticed that my program runs extremely slow when executed under a Java 8 runtime environment (JRE 8u65) in comparison to a Java 7 runtime environment (JRE 7u80).  I have put together the following SSCCE to demonstrate the problem and then executed it under Java 7 and Java 8 on the same Windows PC:  import javax.script.*;  public class SSCCE {   public SSCCE() {     ScriptEngineManager sem = new ScriptEngineManager();     ScriptEngine js = sem.getEngineByName("JavaScript");     long t = 0;     int i = 0;      String gJs = "function ip2long(ip) {";     gJs += "var aIP = ip.split(\".\");";     gJs += "return (aIP[0] * Math.pow(256, 3)) + (aIP[1] * Math.pow(256, 2)) + (aIP[2] * 256) + (aIP[3] * 1);";     gJs += "}";     gJs += "function long2ip(l) {";     gJs += "if (!isNaN(l) && ((l >= 0) || (l <= Math.pow(2, 32)))) {";     gJs += "return Math.floor(l / Math.pow(256, 3)) + \".\" +";     gJs += "Math.floor((l % Math.pow(256, 3)) / Math.pow(256, 2)) + \".\" +";     gJs += "Math.floor(((l % Math.pow(256, 3)) % Math.pow(256, 2)) / Math.pow(256, 1)) + \".\" +";     gJs += "Math.floor((((l % Math.pow(256, 3)) % Math.pow(256, 2)) % Math.pow(256, 1)) / Math.pow(256, 0));";     gJs += "}";     gJs += "return null;";     gJs += "}";      try {       js.eval(gJs);     }     catch (Exception e) {       e.printStackTrace();     }      System.out.println("Warming Up...");      t = System.nanoTime();      for (i = 0; i < 4097; i++) {       try {         String sJs = "var ip = \"192.0.2.0\";";         sJs += "var nip = long2ip(ip2long(ip, " + i + "));";         js.eval(sJs);       }       catch (Exception e) {         e.printStackTrace();       }     }      System.out.println("Starting...");      t = System.nanoTime();      for (i = 0; i < 4097; i++) {       try {         String sJs = "var ip = \"192.0.2.0\";";         sJs += "var nip = long2ip(ip2long(ip, " + i + "));";         js.eval(sJs);       }       catch (Exception e) {         e.printStackTrace();       }     }      System.out.println("Elapsed Time: " + (System.nanoTime() - t) / 1000000000.0f);   }    public static void main(String[] args) {     new SSCCE();   } }   The JavaScript consists of a function which converts an IP address to a long, adds a number and then converts it to back an IP address - this is repeated 4096 times.  I am seeing the following results between Java 7 and Java 8:  D:\Scripts>java7 SSCCE Warming Up... Starting... Elapsed Time: 0.5856594  D:\Scripts>java8 SSCCE Warming Up... Starting... Elapsed Time: 4.6862915   Should I be raising this as a performance bug associated with Java 8?  UPDATED: To include a warm up phase to ensure all code paths have been initialized before my timing loop.


Let $m$ and $n$ be integers such that $\gcd (m, n) = 1$. Show that $\gcd (m + n, m - n) = 1$ or $2$

Let m and n be integers such that $\gcd (m, n) = 1$. Show that $\gcd(m + n, m - n) = 1$ or $2$


Something bad happened while switch to full site after attempt to submit empty post in mobile version

Steps to reproduce:  Switch to mobile web (in the footer)  Select any question and tap "Post Your Answer" button while post body is clear. You will see an error message "Oops! Your answer couldn't be submitted because: Body is missing."  Tap "Full site" link (in the footer)  See the following:


I am currently working on this  and it is working the way I wanted it to. However, I needed to have one of the contents have a content change upon clicking a certain selection . I added it on the main responsive gallery content after checking that it works ok on a separate file.  Is it due to my placing of the content changing script? I tried placing it inside the main script below but it didn't work. I tried creating its own script tag and placed it at the end but same result. Right now, I tried adding it inside the head tag and it still won't work. Can somebody please help me T^T  Kindly click the atkinsons menu since that is where I inserted the content change  Here is the script tag i'm referring to who is responsible for selecting the appropriate pages to change the content.  <!--Content Change Script-->   <script type="text/javascript">     $(document).ready(function() {       $("a").click(function() {         var id = $(this).attr("data-id"); // Using a custom attribute.         $("#pages div").hide(); // gather all the div tags under the element with the id pages and hide them.         $(".div" + id).show(); // Show the div with the class of .divX where X is the number stored in the data-id of the object that was clicked.       });     });   </script>   PROBLEM Under the Atkinsons page, the content is not changing whenever i click the selection. under the first link, the outcome should look like  The title and Page should change whenever I click on the selection.   THE CHANGES I already applied the code advise from the 1st answer below. it is now changing the title upon clicking the selection, but not all section is clickable. I applied the same changes in both codepen and localhost but it produces different clickable links that doesn't work. The random letter not working depends on the size of the window. Also the paragraph is not showing


If I write a private plugin, is there any way to use the WordPress auto-update mechanism to update it?  I want to encapsulate the functionality, but it's specific to my own 5 or so blogs, so it's not a good candidate for the public plugins resource. But I love the easy-updating mechanism.  Is there a way to do this?


Why doesn't my flair wear any of the Winter Bash caps which I wear and remains uncapped?

Why doesn't my flair wears any of the Winter Bash caps which I wear and remains uncapped throughout?    Update: As pointed out this question about being a duplicate of  is a different question all together, where as this question is about why my flair doesn't wears the Winter Bash caps


Clear / erase a mistyped invisible password on a shell / terminal in Linux

One thing that annoys me using Linux's terminal is when I have to type a invisble password, like when you run ssh. Sometimes I mistype one or more letters and then I have to press backspace key a few times to make sure that I erased everything to start again.   I know this is not a big deal but since on the other day I found out that pressing CTRL+L "clears" the terminal I was wondering if there's a way to clear/erase the invisible password without relying on backspace or pressing enter key to try again.


C# How to change permission to full controll in registry Local Machine

public static RegistryKey WritableRegistryRoot     {         get         {             return Registry.LocalMachine.OpenSubKey(@"SOFTWARE\SubFolder1\SubFolder2", true);         }     }   When I run the application I got this error      BlockquoteAn exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll.    But when I run the application as Administrator it works.  When I Change the LocalMachine to CurrentUser my Code works. I have decided to use LocalMachine so that I can use the save data in the registry even if I change my Authentication Login.  If there is other way to access LocalMachine Registry without running my application as administrator?


Fallout 3 - GOTY get CD key from steam for windows live / change lanugage

I have Fallout3-GOTY (steam-app #22370) and wish to change the game's language from german to english. My steam-account is configured in english and steam correctly downloads the game in english. When I launch F3, the "Pre-loader" (Settings, Data-files, etc.) is in english, but the game itself is in german. (I already wiped it, restarted steam and redownloaded) From what I gathered through googling is, that I need to change the language in GFWL. Therefore I open the GFWL-overlay and browse through it all, but cannot find anything. Some options are blocked though by the fact, that I am not "connected to LIVE" and to do that I need a key, to connect the game to my LIVE-account.    Now here's the problem: Steam does not provide me with a key, but LIVE won't go on without it. Is there a way to otherwise change the in-game language or do I need that key? If so: How can I get it?  EDIT:  same question, also no solution. From what I am getting all over the web, it seems that this is intentionally impossible. Yay, great.


I've submitted a new paper to Knowledge Based Systems journal for Elsevier.  But currently, after about 3 months, its status is still "Under Review"  I have to mention that about 6 weeks after the submission, its "status date" has been changed but its status not!  May you please tell me how long I have to wait for the decision about my paper?  I've checked the paper status in journalinsight.elsevier.com. For the journal, the first decision speed time is about 7.2 weeks. But my paper is still under review after about 3 months.  Thank you


Clearing inner ArrayList empties outer ArrayList

Here's a simple code, where I create nested ArrayList that contains ArrayList of String. I found a weird thing: when I clear the inner ArrayList, sizes of inner and outer ArrayLists decrease to 0.  public static void  main(String[] a) {     ArrayList<ArrayList<String>> arrayLists = new ArrayList<>();     ArrayList<String> element = new ArrayList<>();     element.add("1");     element.add("2");     arrayLists.add(element);     System.out.println(arrayLists);      element.clear();     element.add("3");     element.add("4");     arrayLists.add(element);     System.out.println(arrayLists);      element.clear();     element.add("5");     element.add("6");     arrayLists.add(element);     System.out.println(arrayLists); }   The output of that code is:  [[1, 2]] [[3, 4], [3, 4]] [[5, 6], [5, 6], [5, 6]]   I found out how to solve the problem and make output like:  [[1, 2]] [[1, 2], [3, 4]] [[1, 2], [3, 4], [5, 6]]   Instead of clearing inner ArrayList, I initialize it again. Here's the code:  public static void  main(String[] a)     {         ArrayList<ArrayList<String>> arrayLists = new ArrayList<>();         ArrayList<String> element = new ArrayList<>();         element.add("1");         element.add("2");         arrayLists.add(element);         System.out.println(arrayLists);          element = new ArrayList<>();         element.add("3");         element.add("4");         arrayLists.add(element);         System.out.println(arrayLists);          element = new ArrayList<>();         element.add("5");         element.add("6");         arrayLists.add(element);         System.out.println(arrayLists);     }   So the question is: is this intended to be like that (and what's the mechanism behind that) or is it a bug that needs to be reported? I've checked this code step by step using debugger, and I checked that outer ArrayList gets size 0 after element gets cleared.


Did I make a mistake buying a D5100 to get started with photography?

So I decided to start photography. My aim is simple: take photos of my future travels around the world. I want to take good photos.  Well, I made the mistake of buying the gears before even learning about it. I bought a Nikon D5100 camera, and I think it's not good but maybe it's just my skills.  So here it goes my questions:   Where can I learn about gear? Things like a lens, protection and cleaning stuff... Is the Nikon D5100 a good camera? The lens is "18-55mm" What are the good software for editing photos and where to learn how to use them?   Also any estimates of how much time this should take?


For $ x,y,z \in (0,1) $ chosen randomly with uniform distribution, what's the probability that $x+y+z<1$?

I tried the $2D$ case with $x,y \in (0,1)$ and $P(x+y < 1) = \frac{1}{2}$  I got this by sketching the inequalities in the question, namely $ 0\leq x,y\leq 1,  $ and $y < 1-x$ and seeing that the region that fits the criteria is only half the region allowed to make a choice from. I'm thinking of extending this to $3$ numbers chosen at random between $0$ and $1$, I'd get the inequalities $ 0 \leq x,y,z \leq 1 $ and $ z < 1-x-y $. The former of the inequalities represents a unit cube and the latter is some plane that chops the cube up, so the probability is probably the volume of the allowed region divided by the volume of the unit cube. The problem arises when I try to calculate the volume of the allowed region, I don't know how to set up the integrals that define that region. For the $2D$ case it was simply $$ A = \int_0^1 1-x\,dx = \frac{1}{2} $$ I can't come up with the integrals for the $3D$ case though. I've been told before the answer has something to do with the volume of a $3$ dimensional simplex and that it'd be $\frac{1}{3!}$ but I can't derive how. I think what I need to understand is how to set up the integrals defining a region like that  In general, if you have $ 0\leq x_0,x_1, \cdots,x_n \leq 1$ and $$x_n < 1 -\sum_{i=0}^{n-1} x_i $$ How do you set up the integrals that calculate the $nD$ volume of the region allowed by these inequalities? Could anyone please explain the thought process behind that I'm only aware of the $2D$ case


Projecting Texture onto surface from point

I am wanting to know if I can use blender to project a texture (from a plane, UV Sphere, object, etc) to another object in a silhouette style?  I have tried to accomplish this with transforming texture coordinates as the attached image shows.  (the attached image shows the cycles shader used on Suzanne)  What I would like to do is project the plane onto Suzanne (given here as a reference) so that it is projected from a point (the circle on the right).  I know there are powerful remapping and baking features in Blender, however I am a bit stumped with this one.  Basically I want the rays to hit Suzanne, from a single point, then I can bake them into Suzanne's texture.  I want to do this so I can generate a Matte from a 360º photograph onto a surface.  So that I can then composite effects to that surface. Such as crumbling etc.  I know that I can accomplish this with texture painting in overlay mode, however I don't think that works with equirectangular images yet.  In the example shown I was thinking I could use an empty as a reference point for the projection, (hence using texture coordinate - which allows access to object) but this isn't working.  I have experimented with UVProject, but this doesn't look to handle 360 textures?   Any help would be most fantastic!


What is preventing ctrl-alt-m from reaching IntelliJ on Windows 10?

I'm using IntelliJ in Windows and Ctrl-Alt-M is a shortcut that is very useful but right now it's doing nothing. The shortcuts just don't reach IntelliJ. My suspicion is that some other app registered it as a global shortcut or something like that.  In IntelliJ, it seems correctly set:    and if I add another shortcut to "Method...", such as ctrl-alt-shift-r, I can properly use it in the editor in IntelliJ.  I'm running the latest Windows 10 and the latest IntelliJ.  Any ideas how I can find that out?  I followed the process described here:    using Visual Studio tool Spy++ and apparently the M-key-down event is never triggering.  This is what happens for ctrl-alt-t:    a shortcut that works as expected in IntelliJ. And this is what happens with ctrl-alt-m:    I have two keyboards connected to this computer: a Kinesis Advantage and a Logitech K120. They both behave the same way in regards to ctrl-alt-m.


How to call function which inside jQuery scope from globle scope?

Here is the . Code:  $(function(){     f1();//OK     f2();//OK     function f1(){         console.log("1");     } });  function f2(){     console.log("2"); }  f2();//OK f1();//NO!!!   As you can see, the f1() is not executed from globe scope(or outside jquery scope). Could some one tell me why?


Why is "each row and each column" followed by a singular verb in this sentence?

I am reading a book that contains the following text.      A square matrix P is said to be a permutation matrix if each row and each column of P contains a single element 1, and the remaining elements are zero.   My questions are:     why is "contains" used? why not "contain"? Since there is a "and" before "contains".   why not "zeros" for the last word in the sentence?


What is the proof of $n^2 = 1 + 3 + 5 + ... + (2\times n - 1)$?  While I verified that this is true for small numbers, I am looking for a mathematical proof for all Natural Numbers .


How to configure Array on DL360 GEN 8 Server Running Ubuntu

Hi all I have an DL360 GEN 8 Machine. And I need to install ubuntu server on it. However. Accourding to HP, THE Dyanamic Smart Array System is not support. Since I would love to make use of array.. Given that I have 4 Terra bytes of disk .. Which I need to configure Raid 1.  Blockquote  Is there any possible way to achive this Raid without HP Dynamic Array system. ???  Blockquote  Below is the message from HP. Which says that I need to disable Smart array before I can be able to run Ubuntu  HP Dynamic Smart Array System is certified with Dynamic Smart Array disabled. To disable Dynamic Smart Array:  Press F9 to boot into RBSU  Navigate to System Options > HP Dynamic Smart Array B320i and select disable  Go to System options > SATA Controller options and select Legacy SATA or AHCI  Reboot the machine and now you will be able to install the OS


Although tools exist to remove red-eye in post-production, what's the best way to avoid it while creating the photograph in the field?


Monitor a set of files for changes and execute a command on them when they do

The (command line) interface I have in mind is like so:  watching FILE+ do COMMAND [ARGS] (and COMMAND [ARGS])*   Where any occurrence of "{}" in COMMAND is replaced with the name of the file that changed.  And note that "do" and "and" are keywords.  For example:  > watching foo.txt bar.txt do scp {} somewhere.com:. and echo moved {} to somewhere   Or:  > watching foo.c do gcc foo.c and ./a.out   I'm not wedded to that interface though.  I'll add my script that does that as an answer and see if anyone has anything better or ways to improve it.


I've seen how to visualize the formula for getting the area of a parallelogram. The first picture shows 2 ways which give the same result of Area = base * height.   (link to first pic)  However, the first time I thought about it before being show the actual formula, I thought it was Area = side * side.   (link to second pic)  The 2 sides of the parallelogram are 2 vectors, x and y.  If you place copies of vector y length of x times along the vector x, and then you add all lengths of vector y's (which is the same as length of vector y * length of vector x), it seems like you also get the area of the parallelogram.   I know that you'll end up with a different result since the height is always less than the length of the vector y (unless they were parallel) but the method in the second picture seems correct.   I also haven't seen the second picture's method being taught online so I'm guessing it's actually incorrect. What I want to know is what makes it incorrect because it really seems like it's correct despite giving a different answer from the usual base * height formula.  Thanks in advance for any help.


Safari Browser Bar - no longer functioning as expected

Please help!  The search / address bar in Safari normally autocompletes my typing. So for example, I can type em and it will autocomplete for me. It has randomly stopped functioning and is now forcing me to type a complete web address before it will take me to a site.  Secondly, I can normally type a word and press return and it will fire up google (my preferred search engine) with a list of suggestions but it has just stopped.  I don't remember changing anything - any suggestions its incredibly frustrating!  thanks in advance


grub-install error while moving /boot partition to /

Filesystem                           Size  Used Avail Use% Mounted on     udev                                 252G     0  252G   0% /dev     tmpfs                                 51G  1.9G   49G   4% /run     /dev/md7                             438G   32G  384G   8% /     tmpfs                                252G  884K  252G   1% /dev/shm     tmpfs                                5.0M     0  5.0M   0% /run/lock     tmpfs                                252G     0  252G   0% /sys/fs/cgroup     /dev/md6                             453M  200M  230M  47% /boot   I want to move /boot to /dev/md7  and  remount /dev/md6 on /test.  I followed the instructions posted earlier here. I got this error while running:  grub-install Installing for i386-pc platform. grub-install: error: install device isn't specified. /boot is in / /dev/md7                            438G   32G  384G   8% /


Shrink table to fit on a page, or keep it as it is

I am using  \resizebox{\columnwidth}{!}{% ... %}   to fit a table which might be too wide onto a page by scaling it down.  However, my problem is that if the table is smaller than the column width, it gets scaled up, which looks really ugly, and, more importantly, it can then become too long to fit on the page.  So how do I change above to either shrink it or keep it the same, but not scale it up?  I need something along the lines of  \resizebox{min(\columnwidth,\originalwidth)}{!}{% ... %}


How do I set up the simplest HTTP local server?

I use the  to do many things, one of which is to serve local websites utilizing the  which is a fork of . I write the code in R Studio and preview the site utilizing the blogdown::serve_site() command. This is the easiest way I know of previewing static HTML sites. Utilizing  R Studio coerces my browser to go to the 127.0.0.1:XXXX location and my local site is previewed before my eyes.  Can I serve local sites natively with Ubuntu 18.04? How? I imagine it should be very simple. Searching online I can't find any simple way to do it though. If I simply open the static HTML files directly in my browser they showup wonky. All image links are immediately broken. Formatting of headings, hyperlinks, etc is not the same as when I serve the page locally with .  EDIT - I did not really define my term 'simplicity'. There are two different approaches (so far) in the answers, one that is simplest to the end user, and one that is simple with regard to operations being performed by my computer. I like both approaches and will welcome answers utilizing any approach as I test them. Thank you.


Why does this code affect both board variables?

should print two grids, one with blanks one without, but it keeps only printing out a grid with only blanks, changing the original table. # produce board using randomized baseline pattern board = [ [nums[pattern(r,c)] for c in cols] for r in rows ] qboard = []   for line2 in board:     qboard.append(line2)   for i in qboard:     value = randint(0, 9)     i[value]=" "  for i in qboard:     print(i)  for j in board:     print(j)


bash: looping through characters not working

I have this code that checks that the string contains only space and hash characters (“#”), if so it echos 'yes' if not echos 'no' string="###############         #             #         # #############         #             #         # ######### # #         #         # # #         # ### ##### # #         #   #     # # #         # # ###########         # #                     ###############"                          confirm_variable="Yes"  for (( i=0; i<${#string}; i++ )); do     str="${string:$i:1}"     if [ "$str" == "#" ] || [ "$str" == " " ] || [ "$str" == "\n" ] ;          then             continue         else             confirm_variable="No"             break     fi  done echo $confirm_variable  I am not sure why this isn't working as if I make the string equal something like: string="## #### # #  #"   it seems to work fine.


How can I make a shiny edge material in cycles?

Is there a way to replicate this pseudo-shiny effect that appears on Sonic from Sonic Generations in cycles?


I noticed that on both sites where I am a moderator the flag counter is occasionally not showing any flags even when there are flags in the queue. A refresh of the page leads to the correct flag count to be displayed. I noticed this happening when I visited the site for the first time in a few hours, when I was recently active on the site the counter seems to stay accurate.


How do I check in Java whether two references are holding the same object?

I am looking for a Java equivalent of pointer-comparison in C/C++.   Suppose I am invoking a getSomething() method of an object of a class from a third-party. How do I know if the implementation of the getSomething() is just returning the same instance everytime or returning a different instance of the object?  I am not looking to check whether two objects are identical, but need to check if they are the same instance or not. The motivation is, if the 3rd party implementation is creating a new instance everytime, probably I can optimize my code by not invoking the method everytime. Assume getSomething() is invoked by me 1000s of times a second at run-time  From what I read from various articles, I shouldn't rely on hashCode(). In that case what is the way to do this?


Sometimes I need to view who is online, but clicking his/her profile one by one seems to be tedious/cumbersome task. It will be convenient if there is a new button "Last Activity" providing us with a rectangular list of users and the seen values (e.g., 20 seconds ago, just now, etc). Viewing 50 users in one page is also helpful, I believe.  Is it worth adding a new sorting button named "Last Activity" to the Users page?


I need to show that a real, bounded, convex function whose domain is $\mathbb{R}$ is constant.  I don't know where to start.  Thanks in advance!


Faces become distorted, strange and look glitchy when looking through camera view

Whenever I attempt to create a test render (F12) or when I switch to camera view (Numb 0) my models faces look distorted.  When I'm not looking through camera view, everything is smooth and normal, regardless of how close I am to the objects.  When I switch to these modes the faces become distorted, strange and look glitchy.  I've tried a couple things and have no clue what is causing this or what I can do to fix it.    One possible explanation I came up with is that the models have too much information inside of them, and the render isn't sure what to display.  To solve this, I figured I could delete all of the vertices, faces, etc. inside of the model, but I found no way to do this.  I'm at a loss.    Below is a screenshot from the work window in object mode followed by a screenshot of the camera viewpoint.


I'm only able to install new tool in my local directory.  After ./configure --prefix=/local/directory, new tool is installed my local bin.  But by default it's still point to the old version.  How to force csh to use local installed version?


How to calculate inner product of quantum states with other method than swap test?

In connection to  question, I am wondering how to calculate value $\langle \psi|\phi \rangle$ for arbitrary quantum states $|\psi\rangle$ and $|\phi\rangle$. A swap test is able to return only $|\langle \psi|\phi \rangle|^2$ which means that sign of the product is forgotten in case the inner product is real. Moreover, information about real and imaginary parts is lost in case of complex result. Do you know about any more general method how to calculate the inner product than swap test?


How to find the distance between two planes?

The following show you the whole question.     Find the distance d bewteen two planes   \begin{eqnarray} \\C1:x+y+2z=4 \space \space~~~ \text{and}~~~ \space \space C2:3x+3y+6z=18.\\ \end{eqnarray}   Find the other plane $C3\neq C1$ that has the distance d to the plane $C2$.   According to the example my teacher gave me, the answer should be :     Am I right? However, I do not know what is normal and why there are P(5) and Q($-\frac{1}{2}$).    Thank you for your attention


What is the another hope which yoda said in the Empire strikes back at Dagobah?

What is the another hope which yoda said in the Empire strikes back  at Dagobah ?  İs it Darth Vader or Leia or someone else ?


Where can I find the configure options used to build a package?

I need to install asterisk 1.6.2.18 on Ubuntu 10.10  I would like to know what the configure options were that were used to generate the ubuntu package of asterisk 1.6.2.7.  My favorite server distro is Slackware and on that I just reference the Slackbuild file to find out how a package was made and possibly customised in order to remake it with a newer source, but I cannot figure this out on Ubuntu. I am under time pressure now, so I would appreciate some pointers.  Thank you!


I have a number of SSIS Packages  I am trying to locate a table that is populated by one of the SSIS Package   is there an easy way to find in the project where database.dbo.tabledata has been used in a script within the project  please help team


Are there geometric representations for determinants?

For whatever reason, my mind wants to organize determinants and other matrix-related things (like bases) geometrically. But I can't wrap my mind around how that would be possible.  Is there actually a geometric way to look at these relationships? Or am I just out of luck?


It is known that one of the main problems of interstellar flight is a presence of matter between stars in form of very fine dust and huge asteroids. Which can slowly (or fast) destroy any ship.  What are the most recent estimations about the concentration and size distribution of interstellar matter? From very small to high scales. Particularly i am interested in the local group of stars.  Update II: smallest object still named as a meteorite (Yamato8333) is about 12mg in mass and roughly 2mm in diameter.  Update: Below is an image of an interplanetary dust particle (IDP, not Yamato8333).    "IDP composed of nanometre-sized mineral grains and organic matter." (Credit: N. Spring)  Original post .


I'm struggling to display French characters and the £ sign from my database. They appear fine in the phpmyadmin display, but appear as question marks in diamonds on my web page.   I have set the tables to utf8_bin in the database, and inserted  meta http-equiv="Content-Type" content="text/html" charset="utf-8" in my header.   It makes no difference. Please can anyone help me? I have been searching for an answer for hours and am not getting anywhere! thanks...


I need to read smallish (few MB at the most, UTF-8 encoded) XML files, rummage around looking at various elements and attributes, perhaps modify a few and write the XML back out again to disk (preferably with nice, indented formatting).  What would be the best XML parser for my needs?  There are lots to choose from.  Some I'm aware of are:            And of course the one in the JDK (I'm using Java 6).  I'm familiar with Xerces but find it clunky.  Recommendations?


I have created a table using tabularx. Can I color the \midrule instead of having it colored black as default?


Can site's SERP ranks be lowered by Google because of bad/toxic backlinks?

The site is not under Google's manual penalty it has no other warnings in GWT about something wrong going on, it is not out of the Google index. But the ranking positions on SERPs are lower than before.  Do I need to invest in backlink analysis to detect the bad ones and then disavow them?  UPDATE: (to why my question is different than the other topic) I don't need to diagnose other things, as I already took the course of making changes, I clearly asked a specific question about bad backlinks and would like to get an answer to it.


Equivalence Principle: Why is sitting in space the same as failling in a uniform gravitational field

The equivalence principle states that no experiment can determine whether one is being accelerated or if there is gravity present. This is insightful and intuitive.  However, I was sort of surprised. It is commonly stated that a person in free-fall is weightless, however, if a person was just floating around in empty space (free from any other bodies of mass) they would also feel weightless. This is confusing because that means that having gravity accelerating you and having no force at all are the same?   Why is it that one cannot distinguish free fall in a gravitation field from floating? Intuitively they seem to be different things because there is acceleration in free fall.


Convert symbolic links into corresponding target files

I have several symlinks to other files in a directory. I want to convert these links into independent files.  Is there a command that does this?


Is there a word for an action that really needs an affordance and doesn't have one?

This is kind of a conceptual thing I have wondered from time to time. What I am trying to describe is when a user can provide some sort of input to software that will result in some action being taken, but that ability is not obvious and there is no affordance presented to suggest it.  I have just run into a particularly good example of this in Adobe Acrobat XI. I am making a fillable PDF form, and I had opened a properties dialog for one of the (many) fields. I accidentally discovered that if I press the Enter key in this dialog, the result is that it stays up, but now shows properties for the next field in the tab order.  For instance, in the dialog below, pressing the Enter key will not close the dialog, but rather change its "focus" to Text26.    Is there a formal term in UX/HCI theory for this situation? Thanks!


How can I make bash not match `.` and `..` with `.*`

When I try to match all dot files in a directory with .* it seems to have a nasty side-effect: besides matching all (real) files and directories, it matches . and ...    bash-3.2$ mv test/.* dest/ mv: rename test/. to dest/.: Invalid argument mv: test/.. and dest/.. are identical   This seems really weird, since they are basically 'fake' directories, just there to make relative paths easy.  They are not part of the contents of a directory, and I don't ever want them matched when I try to move the contents of one directory to another directory.  I can't think of any scenario where I would want them matched by .*.  So how can I turn this off?  (Besides using Z shell, which is not always available, and which may not be the shell in use by someone running a function I've written.)


Why does no one notice the Joker's presence as a policeman during the mayor's speech?

In  , when The Joker plans to kill the Mayor at a public gathering. His attempt to shoot the Mayor is foiled by Gordon. After this we see Joker's face in frustration. This is the only time we see Joker without his make up, but the scars on his face are clearly visible.  Why is it that no one noticed this highly unusual man dressed up in a police uniform at this function?


prevent color from overlapsing cell border

All question I have looked to doesn't help me to solve my problem. Here's my code :  \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{color} \usepackage{colortbl} \usepackage{longtable} \usepackage{lmodern} \usepackage[table]{xcolor} \usepackage{multirow} \usepackage{pdflscape}  \usepackage{hyperref} \newcommand*{\thead}[1]{\multicolumn{1}{|c|}{\bfseries #1}}  \begin{document}   \newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}} \begin{landscape} \begin{longtable}{|>{\raggedright\arraybackslash}p{3cm}|p{7cm}|c|p{7cm}|} \hline \cellcolor{gray!30} \centering \bfseries Flux de\par substance étudié &  \cellcolor{gray!30} \centering  \bfseries Mécanisme \par environnemental &  \cellcolor{gray!30} \bfseries Unité &  \multicolumn{1}{|p{7cm}|}{\cellcolor{gray!30} \centering \bfseries Remarques\par(RECORD)} \\ \cline{1-4} \cellcolor{green!50}  & % \cellcolor{green!50} \'Emission  de CO2 liée à l'épandage de chaux & \cellcolor{green!50}  & \\ \cline{2-2} \cellcolor{green!50} \multirow{-2}{*}{CO2} &  \cellcolor{green!50}![enter image description here][1] \'Emission  de CO2 liée à l'épandage d'urée & \cellcolor{green!50} \multirow{-2}{*}{$kg/ha$} & \\ \hline \end{longtable} \end{landscape} \end{document}   Here's what I get :   Table cell color overlaps cell border but I want the borders to be always visible. The answers given to questions I read doesn't helped as the people who give the solution doesn't explain well the code they give.  How can I solve my problem?


extra 50% damage for pokemon using attacks with its own type?

We know this happens for previous Pokemon games. For example, if I have a fire type pokemon, it deals extra (50%) damage when using fire type attacks.  So my question is does Pokemon Go also has this setting?


Apply comment to different post (not the current post)

I'm building a scrolling page website and on that page I have comment form and some posts from different categories.  Comments applied to wrong post.  Is there a way to choose the post I want ?  Thanks


Layout issue with "Your Sites" selector on Android App

Excuse my brevity, posting from mobile.  I noticed this when trying to edit my saved site list -  The size of each list item is nearly the size of the screen itself.


What is the difference between #import and #include in Objective-C?

What are the differences between #import and #include in Objective-C and are there times where you should use one over the other? Is one deprecated?  I was reading the following tutorial:  and its paragraph about #import and #include seems to contradict itself or at least is unclear.


How do I get into recovery mode on ubuntu 14.04 if the option not showing

I just boot up my laptop then run the sudo apt-get update command, but there's an error says:       [username] is not in the sudoers file.  This incident will be reported.    so I search the google for solution and it told me to go to the recovery mode on boot menu.   After I got there,the recovery mode option didn't exist. I searched again for another way, then I found some source says change the kernel option with single on linux line on boot menu. Well, I got problem while deleting the kernel option, which one is it?   If the code is:  Linux  /vmlinuz-3.13.0-44-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash $vt_handoff     which part should I delete?   Anyway, I'm using the ubuntu 14.04; the grub version is 2.2 beta I believe.


We added thousands of pages at once to our website, and we have lost our SEO ranking, what should I do?

A month ago we add an archive of tens of thousands of pages to our website at once. Now we have lost SEO ranking significantly.  What can I do to resolve this issue ASAP?


How to figure total voltage with two voltage sources in the circuit

I have some questions about multiple voltage sources while figuring out KVL. Ive included a circuit labs circuit which shows my question more clearly.


Given positive integers $m$ and $n$, if $m | n$ then $2^m -1 | 2^n -1$

I've been struggling with this problem for a while now:  Prove that, given positive integers $m$ and $n$, if $m | n$ then $2^m-1 | 2^n-1$.    I can't seem to get any traction with this problem.  Most of my approaches to the problem depend on knowing something about $\gcd(m,n)$, and all I know from the problem is that $\gcd(m,n) \neq 1$ when $m,n \neq 1$.  Can anyone give me a hint or suggest an approach I'm not seeing?  Thanks


Let $C[0,1]$ have the following norm for finite $p$: $$||f||_p=\left(\int_0^1|f(x)|^pdx\right)^{1/p}$$ I want to show that $C[0,1]$ is not complete for this norm.     How do I do this?   What I know: So I want to find a Cauchy sequence that does not converge in $C[0,1]$. My idea was $$f_n(x) := \begin{cases}  0   & \text{if $0 \le x < \frac1{2}-\frac{1}{n}$}\\  \frac{n}{2}(x-\frac{1}{2}+\frac{1}{n}) & \text{if $\frac {1}{2}-\frac{1}{n} \le x \le \frac {1}{2} + \frac {1}{n}$}\\  1              & \text{if $ \frac {1}{2} + \frac {1}{n} <x \leq 1 $} \end{cases}$$ It is clear that this converges to $$f(x) := \begin{cases}  0   & \text{if $0 \le x < \frac1{2}$}\\  1              & \text{if $ \frac {1}{2} <x \leq 1 $} \end{cases}$$ which is not continuous. The point is now to prove that $f_n$ is Cauchy, but I have no idea how to prove this. Can you help?  Edit: According to me, $||f_n-f_m||_p=\left(\int_{\frac1{2}-\frac{1}{m}}^{\frac1{2}+\frac{1}{m}}|f_n(x)-f_m(x)|^pdx\right)^{1/p}$. BUt how do I continue from here?


What is the proper way to handle a user providing the answer to their question in the question text itself?  Of course they can be prodded to provide an actual "answer", but should the answer text be removed from the question, even if the user doesn't make a proper answer?  For example:   I'm hesitant to remove content, but the question isn't in a proper form.


Community approval/disapproval votes on close votes?

I propose to let users vote on closing activities of moderators and other users with closevoting power.  Like this:       closed as exact duplicate by Michael Mrozek, waiwai933, Arjan, YOU, Yi Jiang 6 hours ago      This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question.   Make it like this:     closed as exact duplicate by Michael Mrozek, waiwai933, Arjan, YOU, Yi Jiang 6 hours ago   fair/unfair close? [agree] [disagree]      This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question.   Then the system will gather statistics and automatically grant more closing powers to those users who enjoy support of the community and revoke those powers from those mostly casting contradictory votes.  It would seem that granting the same powers to everybody has not resulted in balance but in public disorder. Perhaps it is reflective of American lifestyle (everybody has the right and means to shoot anybody), but it's not the best way to run a society by far.  What I'm trying to say is that while granting powers to everybody in advance is generous, the maturity to wheel these powers in a fair way must be proven. By introducing community feedback this assessment process can be automatized.


How can I give internet priority to wifi instead of ethernet?

I have an old acer laptop (Aspire 5315-2077.) I'm using it to mainly browse the internet with while I'm using my more powerful system for gaming. I connect to the internet via wifi on the ubuntu system. I also have a wired LAN that does not connect to the internet. If plug the Ethernet cable into the LAN port on the laptop the wifi suddenly drops connection to the internet. I unplug it and I get internet. I suspect that ubuntu assumes that the wired network is faster for internet and assigns a higher priority to it. In my case, however, I need to keep priority on wifi for internet. Windows 7 allows me to assign a value to what's called an "Interface metric" no each of my connections. How can I do the same with ubuntu 13.04's connections? I have been looking for a solution for awhile and have not found it. I have found it is possible but, the person just asked if it was possible in their question and all the answers were basically yes without further explanation as to how. I am quite a novice with linux distros so, I don't have much more info about my configuration. Thank you for your help.


Split the large files into sub files. How to do this process?

I have a large file in my unix box with 2 Gb. The files contains the xml lines. I want to split the files into say 10 files say each file is now of 204 MB ( approx ) so that combining the 10 files should give me back the original file which is of 2Gb. Note that the content should be reproducible when I merge the 10 files with the original file.   How one should do this in unix?


My screen doesn't turn off when VLC is open

I recently installed 12.04, but I had the same problem in 11.10. When I watch a video, VLC suppresses the monitor being turned off. In older (pre-Unity) Ubuntu versions, this would only be in effect while the video was playing. Now VLC is disabling the turning off of the monitor regardless of if it is playing or not.  Is there a way to fix this? Or a less quirky shell? Or a video player that doesn't exhibit this behaviour?


Can tilde symbol expanded to a whole word

I am new to using the tilde symbol in latex using the \tilde. It appears above one letter only. It seems to be this can be overlooked. Can I expand it somehow to be clearer? can the symbol be expanded to the whole word?


Vertical alignment in table: m-column, row size - problem in last column

Unfortunatly, I have a problem with m-columns (array package) in tables with adjusted row height. Somehow in the last column (only there) the text is not centered vertically.  Check it out:    \documentclass{article} \usepackage{array}  \begin{document}  \begin{tabular}{|m{0.18cm}|m{0.18cm}|m{0.18cm}|} \hline a & b & c  \\[2ex] \hline 0 & 0 & 0  \\ \hline \end{tabular}  \end{document}


Using "I don't think" to express an opinion

This morning, I used the phrase     I didn't sleep very well, I don't think.   when speaking to my Colombian friend and he asked me what on earth I was talking about.  I thought about it and realised that this is idiomatic usage and that despite saying "I don't think" you are actually expressing what you do think.  Generally the form is [expression of negative opinion using negative grammar] + "I don't think".  For example:     I didn't sleep very well, I don't think. => I think I slept poorly.      I won't get there very early, I don't think. => I think I will arrive late.   The first part is an opinion about what something is not, rather than what it is, i.e. my sleep was not good; my arrival will not be early. You wouldn't say:     I slept badly, I don't think.   It seems like "I don't think" is a way of intensifying the sentence, because it doesn't modify the meaning of the initial statement in any way. We seem to use it to express disappointment with a situation, but there might be more reasons.   Is there a name for this usage? Do you use it to express anything other than disappointment?


Are all analytic continuations consistent with $1+2+3+\dots=-\frac{1}{12}$?

Background:  One way to "prove" that $1+2+3+\dots=-\frac{1}{12}$ is to define the function $f(z)=\sum_{n=0}^\infty \frac{1}{n^z}$ for $z\in\mathbb C, \operatorname{Re}(z)>1,$ then define $\zeta(z)$ as the analytic continuation of $f$ to all of $\mathbb C$, and then show that $\zeta(-1)=-\frac{1}{12}$. Naively replacing the terms in the sum defining $f$ with $z=-1$ suggests that $1+2+3+\dots=-\frac{1}{12}$.  I am curious whether this general idea could be used to rigorously define sums of divergent series. Given a formal series such as $1+2+3+\dots$, could one define the sum to be the analytic continuation of any function definable somewhere in $\mathbb C$ using a summation formula that reproduces this sum somewhere else? Would such a definition lead to a unique answer?  Question:  Let $\{a_n\}_{n\in\mathbb N_0}$ be a family of functions $a_n:\mathbb C\to\mathbb C,z\mapsto a_n(z)$ such that:   $a_n(z_0)=n$ for all $n\in\mathbb N_0$ and for some $z_0\in\mathbb C$, $f(z):=\sum_{n=0}^\infty a_n(z)$ is well defined on some open subset $A\subset\mathbb C$.   Let $g$ be the analytic continuation of $f$ to the rest of $\mathbb C$. Must $g(z_0)=-\frac{1}{12}$?


How can I test my apex class to increase code coverage?

I am trying to create a VF page on the Account object that will display open opportunities. I have it working in the sandbox but am unable to move it to production because the code coverage is 0%. This is the first time I've worked with VF/Apex and I'm wondering how I can set up a test class. Any help would be greatly appreciated! Class/Extension: public class OpptyListController {     public OpptyListController(ApexPages.StandardController cont){}     List<Opportunity> results = [             SELECT Name,              StageName,              NextStep,              Amount,              CloseDate              FROM Opportunity          WHERE accountId=:ApexPages.currentPage().getParameters().get('id')             AND StageName IN ('Contracting', 'Prospect', 'Discovery', 'Negotiation')];     public List<Opportunity> getresults(){         return results;}          }


Prove that $Au\cdot v = u\cdot A^Tv$ with standard inner product

Let A be an $n$ x $n$ matrix and let $u$,$v$ $\in$ $\mathbb{F^n}$. Prove that $$Au\cdot v = u\cdot A^Tv$$  when <,> is the standard inner product.  how can I prove it ?


Ubuntu Softwear Center missing/CAN NOT install or update

I have been trying to get USC to install. have tried almost every way i could find online so far BUUUUT... from what terminal was telling me I have no files missing ran a software check, Sudo something something. said no error or corrections were needed. USC still could not be found. i even restarted before i checked again. no change. I did not, how ever save a Txt. of my terminal data before restart sorry. but i will try what ever an post that data if its needed at some point.


I am reading the book C++ Primer and at the file input output chapter it uses:  ifstream infile(ifile.c_str());   to open a file whose name is in the string ifile.  I tried the code and it works perfectly even without c_str(). So what is the point of using it?  Should I use c_str() when I am trying to open a file from a command line argument? I mean which is the correct usage:  ifstream fin( argv[1] )   or   ifstream fin( argv[1].c_str() )


I found this script is running in my system without any knowledge.  #!/bin/sh if test -r /tmp/.txl/bash.pid; then pid=$(cat /tmp/.txl/bash.pid) if $(kill -CHLD $pid >/dev/null 2>&1) then sleep 1 else cd /tmp/.txl ./run &>/dev/null exit 0 fi fi   Also this script is being triggered by /tmp/.txl/upd >/dev/null 2>&1  Can anyone explain why this script is running  Any help will be appreciated..!


Suppose $x, y, z$ are positive real number such that $x + 2y + 3z = 1$. Find the maximum value of $xyz^2$

I'm trying to solve this problem using Lagrange's multiplier method but I'm unable to get the value of lambda and also $z.$ kindly help  me out with this problem. I'm getting $x = 2y$  I'm stuck somewhere between the steps


Proper nesting of tikzpicture environments: Reset all PGF values to their defaults

Sometimes, nesting tikzpicture environments seems inevitable, e.g., if you want a node to contain a TikZ picture on its own. () However, nesting tikzpicture environments is , also because the inner environment  from the surrounding tikzpicture environment.  In a comment to a , Martin Scharrer has suggested that     a command [that resets all TikZ/PGF attributes] would be very difficult to maintain, because all TikZ attributes would need to be set with it explicitly.   Is there a way, with the current implementation, to save/restore all of TikZ/PGF's internal state, in order to apply it to a nested tikzpicture environment? If not, what would be really necessary to implement a "clean start with default values" for nested tikzpicture environments? Any thoughts?


Node for setting render colour, regardless of lighting

I'm trying to make a material node setup to set final render colors, regardless of lighting conditions. Is such a setup possible?


Is chosen ciphertext attack used to obtain a key?

I don't understand what the goals are of a Chosen Ciphertext Attack.  What I've read from Wikipedia is that it is an attack one can use to obtain the key that the crypto algorithm uses.   However, I think that every file is usually encrypted using a different key. If so, why is the chosen ciphertext attack used ? Maybe I don't quite understand the concept of a key...  I'm no mathematician or cryptoanalyst but a simple curious boy :)


$$p\rightarrow q$$ $$\neg p$$ $$\overline{\therefore \neg q}$$  We were given a task to prove the validity of this argument (assuming the statement above is the same as: $(p \rightarrow q) \wedge \neg p \Rightarrow \neg q$).  I concluded with the argument to be valid. If $q$ is $0$, then the conclusion is $1$. For $p \rightarrow q$ to be true, then $p$ has to be $0$. Then $\neg p$ is $1$. This makes LHS and RHS to be $1$. Did I understand this correctly, or am I mistaken?


Conservative Vector Field with Non-Zero Curl

Stewart in "Multivariate Calculus" defines a conservative vector field as a gradient of some scalar function. He goes on to say that a conservative vector field has zero curl. How about $$f(x, y, z) = \begin{cases} \frac{xy(x^2-y^2)}{x^2+y^2} &\mbox{if } (x,y,z) \neq 0 \\ 0 & \mbox{if } (x,y,z)=0, \end{cases}$$ which according to  has second partials on all of $\mathbb{R}^3$ and satisfies $f_{xy} (0,0,0) \neq f_{yx} (0,0,0)$? If I'm not mistaken, won't the gradient of this function have a non-zero curl at $(0,0,0)$?


Assume $A,B,C,D$ are pairwise independent events. Decide if $A\cap B$ and $B\cap D$ are independent

Assume A,B,C,D, are pairwise independent events. Decide if $(A \cap B)$ and $(B \cap D)$ are independent events? Then repeat this assuming the four events are mutually independent.  Well, what I'm thinking is  $P(A \cap B) = P(A) \cdot P(B) \\P(A \cap C) = P(A) \cdot P(C) \\P(A \cap D) = P(A) \cdot P(D) \\P(B \cap C) = P(B) \cdot P(C) $...and soo on , which is what makes it pairwise independent, so assuming this is pairwise,  then that means $(A \cap B)$ and $(B \cap D)$ are also independent because   $P(A \cap B) = P(A) \cdot P(B) \\P(B \cap D) = P(B) \cdot P(D) $......this is correct to say they are independent??  then I dont understand to assume the 4 events are mutually exclusive?  does that mean   $P[(A \cap B) \cap (B \cap D)] = P(A) \cdot P(B) \cdot P(D)$??  Which does not make them independent because of B?  I am not too sure. I am confused and clarification is much appreciated. Any help IS MUCH APPRECIATED TOO.


I have an Asus G750. The touchpad (Elantech) works fine on Windows 8. However, after installing ubuntu the right mouse button is not recognized. The 'synaptiks touchpad management' software shows a cross sign under Touchpad Configuration->Hardware Information->Right Button. Similarly, from command line  shiva@shiva-G750JX:~$ xinput --list-props "ETPS/2 Elantech Touchpad" | grep Capabilities     Synaptics Capabilities (302):   1, 0, 0, 1, 1, 1, 1   Which also, I believe, means 'right button not working'. Looking up all the help on this forum, I tried setting the "Soft Button Areas" parameter, but that did not change anything.  Can someone please help?


What is the real legal status of an airport transit area?

According to Russian president Vladmir Putin in the , an airport "transit area" is not subject to the authority of the country in which it lies, because the passengers there are not required to pass through that country's immigration process.  Is there any legal basis or precedent for this?


The surest way to gain lots of reputation on Stack Overflow- ask questions

Gaining reputation from answering on Stack Overflow is getting increasingly difficult. There are many talented users to answer most questions within minutes, providing good enough answers immediately and editing in fuller answers within a very short time. Sometimes I feel like gaining reputation is somewhat of a race. However, I mean this in a good sense - it's a fun race, and it's great to have answers to most questions supplied most quickly.  But it saddens me to see how easily reputation can be gained by just asking questions. I know this has been discussed here on Meta Stack Overflow several times, but I want to highlight a pattern. Take a look at the  (I tend to scan through this list on weekends). I don't want to point fingers, but many questions there have already been asked multiple times before. Stack Overflow veterans surely scan with their eyes, nodding - been there - over most of them. And yet, these questions gain lots of reputation. Some get closed in a couple of hours, but still manage to gain many votes until then.  This isn't a good situation, IMHO. Many members on Stack Overflow brandish high reputations and when you enter their profile it's a few 100s of questions, 3 downvoted answers on some  semi-subjective topic, and nothing more. Is this the 4K user employers would like to hire based on high Stack Overflow reputation?  Perhaps to prove this, it's worthwhile to make an experiment - a user that asks semi-subjective questions over and over again, on topics which haven't been discussed in the past week or so. I have a feeling this can show some nice results, reputation-wise.  I know there are open issues on User Voice on this issue, but is someone planning to do anything about it? IMHO too much reputation is gained by asking questions, it is blatantly obvious, and it makes Stack Overflow a less fun place to be - as it partially invalidates the whole reputation system.    Why less fun? Consider this scenario:  Bob: So are you knowledgeable in    programming?  Alice: Yeah, I have a Stack Overflow reputation of 8K!  Bob: Eh, I knew people get to    such reputations just for asking hundreds of    repeating questions there. So that    doesn't count. Any other proof of    your expertness?  Sounds surreal? I disagree. As an employer interviewing people quite often, such a scenario is real for me. I just value Stack Overflow reputation less because of this, period. Stack Overflow's administrators have to decide what they want out of it. Is it just a website for getting your questions answered? Great - it's a great one, indeed. But it appears they want to make something more, connecting to Careers, meaning reputation to actually be real. In such a case, allowing reputation farming from repeated questions is a self-defeating strategy.


How many GB of data can be written to an 80GB Intel 320 series SSD?

I bought a used 80GB SSD on eBay and checked it with CrystalDiskInfo.  Its saying 36,000GB have been written on the SSD. How much data can be written before failure?


Checking whether feature class has selection using ArcPy?

In a sentence, how do you test in Arcpy whether a feature class has any selected records or not? More info below to explain:  I am doing a batch process in which a sampling layer (10km grids) is used to select polygon records (of which there are about 100,000 in total). My script returns the list of polygon IDs that intersect each 10km grid square. I then do some further processing/summarizing using that list of polygon IDs.  In instances where there are polygons within the sample square, ArcGIS performs a selection on the polygons, and it's relatively easy to iterate through those records using a searchcursor. Note I'm using v10.0.  But in instances where there are no selected records (ie there are no polygons intersecting my 10km sample square), the searchcursor would return ALL records in the database. So what's the most robust way to test programatically whether a feature class has a selection or not?  I know you can use arcpy.GetCount_management to return a number that tells you how many records are selected, and if that number = the number of records in the entire layer then you can infer that either none, or all are selected.  But that's not the same as determining if there is a selection or not. What's the best way to do that in Arcpy?


How to disable Windows 10 screen capture

I've enabled screen capture by pressing win+alt+r  Sadly, it didn't do what I wanted, but the application loaded and ran as expected.  Now, when ever I load Chrome, I get told that it is running and I can capture a screen.   I want to disable this. According to  I go to Settings and type in gaming, but when I do, I'm informed there are no results.  How do I disable this?


How to do custom bokeh on Nikon D3200 with 18-55mm lens (f3.5)?

I am attempting to use custom bokeh for an effect in which words appear in out of focus lights. After many experimentations i still can't manage to get it to work, i believe this is largely because of my aperture?  I would be so grateful for some advice as this would look great in a film I'm making.


How to code a lot of cards in a trading card game java

I want to make a trading card game like Yu-Gi-Oh or Magic. I have a lot of cards in my game and even the user can make new cards. Cards are objects and they have attributes like HP and Mana ,etc but they also has special power which is another object and has different types some of them activate when a card is played into the field, some of them activate at death and etc. One way is simply hardcoding all the different cards in different classes but This way, I cannot implement a user-built card. I am going to use enums for the essential cards but I don't know what to do for user defined cards.  Is there any standard way to implement things like this?  I am very new to Java and OOP. I think maybe Databases could help but I don't know what should I use or search to find the appropriate choice for this matter.


Geoserver won't start after setting up CORS (no jetty installed?)

I tried to enable CORS by uncommenting the necessary lines in the web.xml file of geoserver. However, I didn't know that I also had to make sure having the correct jetty servlets jar file in my WEB-INF/lib folder (as described in ). As the CORS didn't work I thought I had to restart tomcat, but since I did that I got an error that jetty couldn't be found:  Exception starting filter cross-origin java.lang.ClassNotFoundException: org.eclipse.jetty.servlets.CrossOriginFilter   Now I tried to find out which jetty version I use to get the correct servlets jar file, but somehow I cannot find any installation of jetty in my geoserver folder. I installed geoserver with the war file and running it on tomcat. And as I understood jetty comes together with geoserver, so it should exists...  What should be my next step now?  EDIT: geoserver version is 2.13.2


How does Phantom Steed behave in combat?

The description of the 3rd-level Wizard ritual spell  reads:     The creature uses the statistics for a riding horse, except it has a speed of 100 feet and can travel 10 miles in an hour, or 13 miles at a fast pace. When the spell ends, the steed gradually fades, giving the rider 1 minute to dismount. The spell ends if you use an action to dismiss it or if the steed takes any damage.   I'm unclear on how Phantom Steed behaves, especially in combat:   If the steed takes enough damage to be killed, does it die immediately or does it continue existing for 1 minute? For the 1 minute while it is fading, can the steed be ridden as normal? Can the steed perform the Dodge, Disengage, or Dash actions as a regular mount can? Can the steed pull a wagon or other vehicles? If not ridden, does the steed block the space it is on? If not, is the space it occupies considered difficult terrain?


Is there a limit to how big you should make K for k-fold cross validation? I understand as K gets bigger performing the CV will take longer, but aside from that, is there any reason not to make K = n? is there a point where your validation sets are so small that even if you average them, the result is garbage?


Conjugate to $\cos z$ is not equal to $\cos z$ conjugate $\overline{\cos(z)}\neq\cos(\overline{z})$

I have a dilemma. I have a task where I'm supposed to show that $|\cos z|^2+|\sin z|^2=1$ if and only if $z\in \mathbb{R} $. In my argument I have that $$\cos z\cdot\overline{\cos z} + \sin z\cdot\overline{\sin z}=\cos z\cdot \cos\overline{z} + \sin z\cdot \sin\overline{z}$$ but my teacher said that $\overline {\cos z} \neq \cos \overline{z}$.  Is this true?  But $$\overline{\cos(z)} = \overline{\frac{e^{iz}+e^{-iz}}{2}}=\frac{e^{-i\overline{z}}+e^{i\overline{z}}}{2}=\cos(\overline{z})$$


Ampere's law for a loop with zero enclosed current

Imagine a wire with current I flowing through it. If we take a closed loop that doesnt contain the I the line integral will be zero. Does this means magnetic field is zero ? Also does Ampere law calculating the total magnetic field or only the sum of magnetic fields from the currents that are enclosed in the loop?


Is it possible to have a scroll which casts a spell at higher than its spell list level?

I know that, by default, magic items cast spells of the lowest level possible for that spell.   However, is there any specific way by the rules to have a scroll that casts a spell at a higher level than that spell appears in a spell list? For example, can I ever have a scroll that casts magic missile (a 1st level spell) at 2nd level?  Note: I am not asking if you can take a normal 1st level scroll of magic missile and cast it at a higher level as in . I am asking if 2nd level scrolls of magic missile can be made/exist at all - a related but different question.


Access Windows files stored on the computer via the WSL?

On a Windows running computer, can we access files stored on the computer via the WSL (Windows Subsystem for Linux) ?  For example I'm using the Ubuntu WSL version on my Windows 10 computer. Using Ubuntu WSL, can I run a cat command on a text file stored in My Documents on the C: disk ?


Why is better to work with first-order logic than with second-order logic?  In the case of Peano's axioms the second-order version is categorical, but the first-order is not. Besides, with the second-order version the operations: addition, multiplication and exponentiation can be defined, but with the first-order version the cannot.  However, in books they prefer and promote the use the first-order version. Why is the first-order version of Peano's axioms better to describe the true nature of natural numbers?


C equivalent of autoflush (flush stdout after each write)?

In Perl, I can type:  $|++;   and anything printed to STDOUT will be automatically fflush()ed.  Is there an equivalent in C? In other words, is there some way I can tell stdio to automatically fflush stdout after every printf(), the way it automatically flushes stderr?


Rep privilleges issue when creating account

I have a 200+ rep account in a site (Stack overflow), I created accounts in Stack Exchange and Cooking, the rep. goes to 101 correctly but I don't get the privilleges (I can't answer a protected question). I think that is that particullary privillage, I could have answered some good question, but instead I had to add comments couse of this privillage problem.


Format date as the first/last day of the month

I have date strings in "Y-m" format. Day is irrelevant here. Now I need to create another date from these date strings wheere day should be either 1st or the last day of the month. I have tried this code:  $curDate = DateTime::createFromFormat('Y-m', $datestring1); $dt =  $curDate->format('Y-m-d');   The problem here is that it creates dates with the current day of the months. How can I force it to do it for the 1st or last day?   Thanks


OBS on Ubuntu 17.10 (Artful) - Black screen, only cursor in screen capture mode

I'd like to apologize in advance if this is not ubuntu related issue, but I did not manage to find any other topics regarding my problem.  What's going on: I'd like to start using screen recording software called Open Broadcaster (OBS). But I ran into an issue when the recorded screen is black and only the cursor is visible.  I've found many similar topics about this problem, but most of them were related to Game Capturing mode. I can not get this done with Screen Capture mode.  The interesting thing is that Window Capturing mode (recording specific application windows - browser, editor, etc.) works. But that does not meet my needs.  Unfortunately I did not play around with this before my recent dist upgrade to Ubuntu 17.10 so I can not confirm if this was a problem even before upgrade or if it's brand new thing. The fact is, that I did not manage to find any similar issues which regards, once again, Screen Capture mode.  Any advices or tips are strongly appreciate.  Thanks a lot!


Where can I post generic software questions?

I want to post a question about hiding a particular tab in Google Chrome browser, but I am not sure which Stack Exchange site to post this question?


Formula to sum columns on Pascal's triangle

I am looking for a general formula for the sum of columns on Pascal's triangle (finite terms), i.e. $$\sum_{k=0}^{k=n} {k+d \choose k}$$


Can I respawn a guide in Terraria if I lost to the Wall of Flesh

I killed a Voodoo Demon and his Voodoo Doll fell into the lava and the Wall of Flesh spawned. I died fighting him; can I get another guide?


An ant wants to get from (0,-2) to (0,2). However, there is a cone of radius 1 and height h at (0,0). What is the length of the shortest route?   Going around the cone uses $\frac{\pi}{3}+2\cdot \sqrt{3} ≈ 4.5$;   Going straight over takes $2+2\cdot \sqrt{h^2+1}$  Walking on side of cone might be shorter, but I cannot visualize it.


I have had questions on other boards edited with the reason "remove run on sentence"  but why are they bad I went to one page and the example was     I have a dog his name is George.   The suggested solution was     I have a dog. His name is George.   well I was taught that was wrong as you can't use his in a sentence alone, as a sentence is a standalone construct and we have no idea who "his" is (I have been roundly told my teacher was wrong).  another solution was      I have a dog, and his name is George.   This appears to be a rule without reason, so please what is the reason?    I have read the suggested  ,which has been closed, it is about comma-splice with only a passing nod to run on sentences.


Proving that $\gcd(n!,\ n+1)=1$ or $n+1$

For any positive integer $n$ I need to prove that $\gcd(n!,\ n+1)=1$ or $n+1$ (except one integer). I need to prove both cases and for which $n$ exactly it exists.  I tried to use many gcd properties on this but didn't find anything...


I am writing a library for mixed-languages and so we have to stick to a C interface.  I need to call this API function:  void getproperty(const char * key, /* in  */                   char * value      /* out */) {   I need to set value with the contents of an std::string.  std::string stdString = funcReturningString(); // set value to contents of stdString   I've seen lots of answers on possible strategies, but none for this specific use-case and neither were any considered the "best" or "standard."  We are using C++11, for what its worth. Some of the answers vaguely recommended copying the contents of the string to a buffer and using that.  But how to do it?  I would like some more opinions on this conversation so I can finally pick a strategy and stand by it.  Thank you!  UPDATE: Here is the solution I used  I am using uint32_t to keep consistent with the other API functions.  bufferSize is a reference because FORTRAN calls everything by reference.  void getproperty(const char * key,            /* in  */                   const uint32_t & bufferSize, /* in  */                  char * value,                /* out */                  uint32_t & error             /* out */)  {   std::string stdString = funcReturningString();    if (bufferSize < str.size() + 1) {     // Set the error code, set an error message, and return   }    strcpy(value, stdString.c_str()); }   I chose strcpy() to keep everything standard and I chose a bufferSize parameter so that I wouldn't have to worry about some of problems of double indirection mentioned in the comments.


What is the meaning of "(7)" in "cmake-env-variables(7)" in CMake documentation?

I'm learning CMake and reading its . And I noticed that every documentation entry of CMake ends with (1) or (7).    What is it? Why is it (1) or (7)?


CSS bug with printing site pages (now with 100% more suggested fix included!)

So I have to print some Stack Overflow pages and bring them around. Just accept it.  Problem: while pages may look perfectly normal on the web, something recently broke the print layout... a huge whitespace block showed up on the right (, ). Tons of whitespace. This is on every site on the network () on a bunch of different screens ().  Futzing with DevTools, the problem seems to be :   #mainbar, .mainbar {     width: calc(100% - 300px - 24px); }   Can someone check if this is the only issue and possibly fix this?


My sd card is not connecting to my Android phone

My brother purchased a new sd card for my Android phone (it's an alcatel onetouch yh I know it's old) to increase memory. Its a 8 gb card, but my phone still says low on space when I try to download any apps.There was no notification telling me that an sd caed was inserted either. I tried selecting sd card and it shows 8 gb available but I still can't download apps. Then I switched to internal memory just to see if that would help but nothing happened. Plz someone help!


When transferring a song from a CD to my iTunes library (or downloading an .mp3), I've noticed that Explicit and Clean labels are not present (as seen below).    I've already added all the information to every song, and now, all that I'm missing are the Explicit labels. Is there any, preferably programmatic, way to add these labels to songs I've imported to my library without downloading/using a third party program?    I've converted my imported files to AAC versions (.m4a format), which I imagine is more versatile for this purpose.


I'm in a similar situation as this user:   However, I have yet to create the CDN.  My question has 2 parts:  Part 1: I think I may have found an issue with the accepted answer in the question above regarding duplicate content with images. You see, Google has stated that they don't look at rel=canonical on images.  As stated here:   So my fear here is that I would have duplicate content with all my images, hosted on the CDN. What can be done to avoid this?  Part 2: On an nginx server, how can I make site-wide canonical links?


Date popup form field doesn't show the default value correctly

I am creating a custom form with "date_popup" form fields. The only issue I have is that the default_value for the date popup form field shows only the first digit of the year, not the whole date.   Can anyone help with this?