After submitting a form with ajax, my utf-8 is not working, why is that?

I have a checkbox, which changes the content of a table when it's clicked.  For some reason, my UTF-8 is no longer working after I have submitted the form with ajax.  Ajax:  function showUser() { if (window.XMLHttpRequest) {     xmlhttp = new XMLHttpRequest(); } else {     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() {     if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {         document.getElementById("table").innerHTML = xmlhttp.responseText;     } } xmlhttp.open("GET","getuser.php?customer="+variable); xmlhttp.send(); }   and getuser.php:      $customer = intval($_GET['customer']);     $connection = mysqli_connect('localhost','root','*********','name');    if (!$connection) {     die("Could not connect: " . mysqli_error($connection));     }      if($customer == 1) {     $searchType= 1;     } else {     $searchType= 0;     }      $sql="SELECT * FROM table WHERE type= $searchType";      $result = mysqli_query($connection,$sql);   After this I echo a table with content got from the database. In my database there is some customers that has some special characters in their name. Instead of showing them like usual, it only shows ? in place of those special characters.  Any help? (sry for my bad english)


Moved OS hdd to USB enclosure, how can I make it boot?

I had a Windows 10 installation in my laptop. I got a new SSD for it so I took out the old HDD and put it in a USB enclosure.  The hard disk works fine and great, better than I thought it would on USB (yay for USB 3.0). However, it won't boot from the USB.  Is there any way I can boot my old OS too via USB?


Side effects of overnight Oats , Overnight fenugreek

i started to eat overnight oats . But i want to know what are the side effects of it .  Because i am not cooking or heating the oats . So i am really worrying if any kind of bacteria will enter to our body .  I just mix oats and milk and honey in a glass box and put it in refrigerator in the night , and in the morning i take it out and eat .  So what about the bacteria, what about cold food . And even how can we trust the quality of oats that come in packed may be some dusts in oats .     I am planing to eat fenugreek , that i put it on water yesterday . The   purpose for this is hair growth . Is this good for health ? . Is there   any side effects ? I hear that fenugreek will reduce the spam count of   man


Can I personally create a StackExchange spinoff?

Before you mark it as a duplicate, I'm specifically asking if I'm allowed to make one, myself, and add it to the pool of already existing sites. Is it possible? I'd want it to be based entirely off of the building of custom personal computers.


E-mail subscription titles and content should use proper pluralisation

Just received the following e-mail, quickly looked at the title and saw "new items in your Stack Exchange inbox" - at a closer look, it turns out there was just one new item in my inbox, so it shouldn't say "1 new items". Same thing goes for the content, where it says "The following items were added [...]".  Here's a screenshot with the problems highlighted:    It should be a fairly easy thing to fix and it just seems like something that should've been done a long time ago, especially considering the site's technical aspects.


How do I package my C# Basic console application in just an EXE file?

I have a console application that does basic output and calculations.  I am trying to create the application and have just a .EXE file that you can open and use the application. I have tried publishing it in visual studio and just get a lot of dll files with a exe that has to be in the same folder?  Any help?


I want to make an unattended install of Windows 8.1 with the following features:   It has to be actived It metro apps removed from the system Some freeware applications installed such as CCleaner Registry modifications to boot up directly to the desktop   Problems  When I have an ISO file and load it up into the Windows System Image Manager I can only modify registry settings and not install or remove software wich is automatticly getting installed by Windows.  I saw i can pre-install software with the Microsoft Deployment Toolkit 2013 program, but I dont like that because its not unattended.  Question  How can I make an unattended installation (with already software removed and installed) ISO file of Windows 8.1 without using the Microsoft Deployment Toolkit?


Ok, so I have a Dell XPS that I bought around 2011.  About two weeks ago, it started behaving strangely during the boot load. First of all, it makes some weird clicking noises. When that happens, I know the computer won't boot at all.  It also displays this message:  Intel UNDI, PXE-2.1 (build 083) Copyright (C) 1997-2000 Intel Corporation  This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776 and US6,327,625   After turning it on and off many times, it boots like nothing ever happened.   After booting successfully the first time this happened, I backed up all my data and made a fresh Ubuntu 14.04 install. At first, it looked like everything was back to normal, but after a few boots, it started behaving the same way again.  I also attempted to use boot-repair, but it didn't work.   Does anyone know what's going on? Thanks in advance.


Star Trek: transporter as a weapon/defense

Since transporter beam cannot bypass the shields, why can't they be used to lift things (torpedo, antimatter-core) to edge of the other ship's shield so they don't miss?   As defense: wouldn't the transporter array be useful when mounted on the edge of the ship, so they just transport anything incoming? Torpedoes back at enemy shields, transporting armor plates from another part to the offended part, transporting a transporter so they can chain-transport to large distances and make a warp-interrupting field.


When should "Mom" and "Dad" be capitalized?

I am trying to understand capitalization rules with Mom and Dad. I believe I have it correct below, but please let me know if I do not.     The one thing I learned from my dad was that it was good to earn the trust of one's children. Dad has shown me how good that a dad can be. One day when I went to his house, and Dad wasn't there, I ran outside....   The above passage is just made-up just so that you would see what I mean about capitalization. Let's put numbers by each one, like so:     The one thing I learned from my dad(1) was that it was good to earn the trust of one's children. Dad(2) has shown me how good that a dad(3) can be. One day when I went to his house, and Dad(4) wasn't there, I ran outside....    This is one where I'm not certain. I believe in this sense I'm showing possession here with "my", and it just didn't seem right saying "my Dad". I don't know what the grammar rule is here, or if I even have it right. This one is obvious—it starts the sentence. In this case, I'm using Dad like a name instead of saying "Larry". Therefore, it should be capitalized. Again, just like 3.


Does black hole formation contradict the Pauli exclusion principle?

A star's collapse can be halted by the  due to the Pauli exclusion principle. In extreme relativistic conditions, a star will continue to collapse regardless of the degeneracy pressure to form a black hole. Does this violate the Pauli exclusion principle? If so, are theorists ok with that? And if it doesn't violate the Pauli exclusion principle, why not?


Four meters of cloth is/are required.  Which one is appropriate? I think it's are but I ain't sure...  I got confused because the discussion regarding the SV Agreement commonly talks about the fraction before of-phrase (like "one-half of the cake").


Proof of derivative of convolution $(h * f)' = h' * f$

I am writing an article related to Computer Vision but to complete the maths under the technique I should proof the following equality.   $$\frac{\mathrm d}{\mathrm dx}(h*f) = \left(\frac{\mathrm d}{\mathrm d x}h \right)*f$$  I'm not mathematician and I'm not used to convolution analysis. So, How can I proof it?


Is there any series for natural log(x) where x is any number,unlike Taylor series for log(1+x) where |x|<1?


A question about eliminating square roots

If $\sqrt{x^2} = \pm x$, then why does $\sqrt{(x+2)^2} = x+2$ and not $\pm (x+2)$?  This is driving me crazy, so feel free to elucidate. Thanks!   ---EDIT--- I'm not sure how the other questions' answers would help answer my own question, but it doesn't really matter now that I've figured it out. After thinking a bit about some of what @Daniel Hast typed on a similar question I asked, I realized that the reason why $\sqrt{(x+2)^2} = x+2$ was that more generally, given that $\sqrt{x} = r$ such that $r^2 = x$, squaring $r$ in $\sqrt{x} = r$ produced $(\sqrt{x})^2 = r^2 = x$ and subsequently $(\sqrt{x})^2 = x$.


How to Install office 2007 0r 2010 on Ubuntu 14.04 lts

Is it possible to install office 2007 0r 2010  on Ubuntu 14.04, I need to use it with Ubuntu as completely installed, don't want it as live or on-line or on-line app etc.


How to trigger a Low-level relay with PIR sensor?

I have a SRD-12VDC-SL-C relay with this configuration:  And I want to trigger it with PIR Motion Sensor Detector Module HC-SR501  The problem with direct connection to PIR is that the trigger output of PIR is +3.3V however the relay needs low or (zero) voltage in order to switch. I do not see how the relay in the link above can be put into High-level trigger.


why is electric field inside a conductor zero?

I know that the net electric field inside a conductor is zero due to field made by induced charges. But , IS IT NECESSARY ? what i mean is that what would happen if the net electric field inside a conductor was not zero . ( what would happen if the electrons are not in equilibrium inside a conductor? )


"since 2009" is it inclusive or exclusive?

Assume the following situation: Person A meets person B in the winter of 2009. Then he/she meets the same person in 2010 and 2011.  which sentence is true?  Since winter 2009 person A has met person B 3 times.  or  Since winter 2009 person A has met person B 2 times.  So, the main question is, if since includes the meeting in winter 2009 or not?


How to call a function saved as a variable javascript

I have the following code:   function myFunction(){   var bob = function() { alert("works");     }    }; //document.getElementById("btn").addEventListener('click', bob); //calls the function  }   How do I call the bob function outside the myFunction() ? It works with the btn element, but I want it to be called outside   Thanks !


Shouldn't Synonymizer be a silver/gold badge?

I noticed that Synonymizer is only a bronze badge. Yet in order to obtain this badge you need to have 2500 reputation or more to even create tag synonyms. Then, on top of that you also need to be able to find a tag synonym.  Only 514 of these have been awarded... This makes the BRONZE badge Synonymizer rarer to have than most the gold medal badges. So my question is, why is this a bronze badge?


How can i animate beams of light in blender?

So i used the blender tutorial on youtube for creating and animating abstract waves. from blend master.  and although those were helpfull, it didn't show me how to animate them actually moving around, like what im trying to do.     I assume maybe the partical system is used for this? but im not sure. is there a tutorial on how to do this? or does anyone know how?  I haven't done much so far to even make this, as i have no idea where to start. i did make a simple abstract wave, but thats about it. An im using blender render.


Six identical yellow balls and four identical red balls are to be arranged in the circumference of a circle.  In how many ways it can be done?


I am working on Drupal 8, trying to get a page template for each vocabulary. I have tried using hook_theme_suggestions_HOOK_alter() to achieve this, but I was not able to do it.   I tried using Devel with kint(), but no debugging information is shown on my screen.   How can I add a template suggestion for a vocabulary?


What steps must be taken to secure my Ubuntu installation from keyloggers and screen capture software?

I have a Ubuntu desktop. I want to protect my installation from software which can steal passwords I enter by logging keystokes or capturing the screen in case of a graphical on screen keyboard. I am following the following steps:  1) Making sure I only install new software using the 'apt' command.  2) Enabling the ufw firewall to block incoming.  Are these steps enough? Can I be assured that there is no keylogger or screen capture software on my system? Or do I need to take additional precautions?


How is /etc/fstab accessed before root is mounted?

I was making some changes to /etc/fstab, when this chicken and egg question occurred to me - if /etc/fstab contains the instructions for mounting the file systems, including the root partition, then how does the OS read that file in the first place?


How to change upload destination from public to private when there are uploaded files in database?

There are a few fields that uses public upload destination. I changed it globally right now, as far as I know it uses private upload destination from now. But how can I change previously uploaded files' upload destination (programmatically)?


For example, which of the following sentences is correct:  Jack, and his partner Jill, offer a new perspective on child-rearing.  Jack, and his partner Jill, offers a new perspective on child-rearing.  Does the addition of the clause "and his partner Jill" change the tense of the verb "to offer"? Should I just leave out the commas for clarity?


$f\geq 0$, continuous and $\int_a^b f=0$ implies $f=0$ everywhere on $[a,b]$

This is problem 6.2 from the 3rd edition of Principles of Mathematical Analysis.      Problem 6.2: Suppose $f\geq 0$, f is continuous on $[a, b]$, and $\int_a^b f(x) \, dx = 0$. Prove that $f(x)=0$ for all $x \in [a, b]$.   I'm looking for a critique of my proof. It's a pretty easy problem, but I am always wary of making too bold of assumptions, especially on these low level/fundamental proofs. I'll be using Rudin's notation and refer to theorems from the text (If I should include the text of each theorem, feel free to leave a comment... I'm lazy but could probably use the TeX practice :p)  Proof: Assume, for contradiction, that $f>0$. Then, for any partition $P$ we have the Lower Riemann Sum: $L(P, f)=\sum_{i=1}^n m_i \, \Delta x_i$. At least one $\Delta x_i$ must be positive, since $a < b$, and each $m_i$ must be positive since we have $f>0$ by assumption, so certainly $\sup f > 0$. That means $L(P, f)>0$. Thus, we have: $$0 = 0(b-a) < L(P,f)\leq \sup L(P, f) = \inf U(P,f) =L$$ where the last string of equalities holds because our function is continuous on a compact interval, so is integrable by theorems 6.8 and 6.6. So our integral has value $L>0$. This is in contradiction to our given assumption that $\int_a^b f(x) \, dx = 0$, so we must have that $f=0$ on $[a, b]$. $\Box$  So, I am wondering if my proof is correct (and is presented well). Also if someone could enlighten me as to what Rudin means when he say "Compare this with exercise 1," I'd be appreciative. Is it a hint or is there something else he expects you to notice? there are a lot of things I could compare :)...  Exercise 6.1: Suppose $\alpha$ increases on $[a, b]$, $a \leq x_0 \leq b$, $\alpha$ is continuous at $x_0$, $f(x_0)=1$, and $f(x)=0$ if $x\neq x_0$. Prove that $f$ is Riemann-Stieltjes Integrable and that $\int f \, d\alpha = 0$


adding id attribute when linking stylesheet from themeName.info

I am working on drupal theme. In past, i linked stylesheets via the themeName.info file as follows:  stylesheets[all][] = css/thickbox/thickbox.css stylesheets[all][] = css/custom.css   However, this time i need the particular css file link, so it has an ID attribute set as following:  <link rel='stylesheet' id='jquery-colorbox-css'  href='/assets/css/colorbox.css' type='text/css' media='all' />   How would i link the style sheet from the themeName.info file, so that it has ID set to 'jquery-colorbox-css' along the extra attribute 'media' included as well. Thank you a lot


Convergence of $\frac{1}{(\ln n)^{\ln n}}$

Could I have a hint for testing the convergence of the following series please?  $$\sum_{n=2}^\infty\frac{1}{(\ln n)^{\ln n}}$$  I am very appreciative for your help.


I want to search for questions that are tagged (F# and parsing) or (F# and parser combinators).     ([f#] [parser-combinators]) or ([f#] [parsing])   When I run the query it is converted to      [parser-combinators] or [f#] [f#] [parsing]   and returning results like    which have no F# tag, but do have the parser-combinators tag.  How do I/can I make a query using both and and or?


Can you apply metamagic to a Wished spell?

The  spell enables you to emulate any spell of 8th level or lower.  Can a sorcerer apply a  effect to the emulated spell by spending the appropriate number of sorcery points (provided that he knows said metamagic effect)?  For example, could he cast wish and spend sorcery points to use Extended Spell on his casting of ?


Effect of switching response and explanatory variable in simple linear regression

Let's say that there exists some "true" relationship between $y$ and $x$ such that $y = ax + b + \epsilon$, where $a$ and $b$ are constants and $\epsilon$ is i.i.d normal noise. When I randomly generate data from that R code: x <- 1:100; y <- ax + b + rnorm(length(x)) and then fit a model like y ~ x, I obviously get reasonably good estimates for $a$ and $b$.  If I switch the role of the variables as in (x ~ y), however, and then rewrite the result for $y$ to be a function of $x$, the resulting slope is always steeper (either more negative or more positive) than that estimated by the y ~ x regression. I'm trying to understand exactly why that is and would appreciate it if anyone could give me an intuition as to what's going on there.


elif using dictionary but without excecute the values

Hi let's say that I want to replace a large el-ifs statement by a dictionary. A simplify version of this is as follows:   def functionA(a1, a2, a3):      results = {         'case1': a2/a3,         'case2': 1,         ...     }     return results[a1]   so a1 would be a string ('case1' or 'case2' or ...) the problem is in some cases the a3 it maybe 0 so the results dictionary could not be define (in all those cases a1 would not be 'case1'). For instance:  functionA('case2', 1.0, 3.0) Out[81]: 1 functionA('case2', 1.0, 0.0) ZeroDivisionError: integer division or modulo by zero   So in the second case I expected 1 but I am getting an error.  A possible solution is:  def functionA(a1, a2, a3):     results = {         'case1': str(a2) + '/' + str(a3),         'case2': str(1),     }      return eval(results[a1])   Since I have a multiple cases with complex calculations, is there any better solution?


Identify a story about a group of time-travelers

I remember reading the article in Wikipedia years back, but I never bookmarked it, and now I'd like to read the story/novel. It was about a group of people who live in another place/dimension, and who influence our history, trying to make it safer. As a result nuclear power isn't discovered until maybe 30th century, and it's the same with many other things. So they make the world safer, but mankind isn't as innovative as it should've been. I also remember about someone being stuck in the 1930s or 40s, and something about a signal in the form of a photo of a nuclear mushroom.


"With pen and paper" <-- Why don't we need an article here?

"I recommend trying it if you like writing with pen and paper". This is a sentence in a book. Why isn't there an "a" article before "pen" since pen is a countable noun? Is it just a style preference?


Partition by most recent data - Sql Server 2012

how can I partition my table into two. One with latest one month data and the rest into another partition? I am using SQL Server 2012 Standard Edition.


What is the best practice for when to implement IDisposable?  Is the best rule of thumb to implement it if you have one managed object in the class, or does it depend if the object was created in the class or just passed in? Should I also do it for classes with no managed objects at all?


If Char$F$ $\neq  0$, then Char$F$ must  be prime number.  MY try: If Char$F$$ = nk $ for integers $n$ and $k$, then by definition, $nk = 0 \implies n = 0$ or $k = 0$ which implies Char$F=0$ which is a contradiction.   Is this correct?


Adding "all capitals in the question title" to the quality filter

So, the guys over in  have been working on a Smoke Detector that detects potential spam so it can be flagged quicker. One thing that has been noticed is the number of posts that get raised with an all-caps title. Here are some examples of things that have come through so far today - all three of these posts still exist because they're not actually spam, but they do have titles in all caps [ SmokeDetector ] All-caps title: INSTALLING WINDOWS PROGRAMS AND LEXMARK X4650 PRINTER  [ SmokeDetector ] All-caps title: CAN NOT MAKE A BOOTABLE UBUNTU ISO IMAGE  [ SmokeDetector ] All-caps title: SNORT NOT SHOWING DROPPED/BLOCKED PACKETS  Would it be possible to add something into the quality filter that advises users against typing out their titles in all caps?


Is there a word for hate against religions or a specific religion?

We have racism, which implies hate against one or more races.  We have sexism, which implies hate against one of the sexes.  We have nationalism, which implies hate against one or more nationalities.  Is there such a single word for hate against one or more religions?    I realize that this might be difficult to answer because some religions closely identify with certain races and/or nationalities. If it makes it easier, the question can be narrowed down to Christianity, specifically, or broadened to describe a general hatred for all religion.


Invertible matrices are dense in $M_{n}({\mathbb R} )$

How to show that subset $GL_{n}(R)$ of $M_{n}(R)$ consisting of all invertible matrices is dense in $M_{n}(R)$.


An $\varepsilon-\delta$ proof of $\lim_{x\rightarrow c} (2x^ 2 − 3x + 4) = 2c ^2 − 3c + 4$.

Give an $\varepsilon-\delta$ proof using the “$\delta\leq 1 $ trick” to prove that $\lim_{x\rightarrow c} (2x^ 2 − 3x + 4) = 2c ^2 − 3c + 4$.   My attempt: Let $ε>0$ and there exist $\delta>0$ such that whenever $|x-c|<δ$,  $$|2x^ 2 − 3x + 4-(2c ^2 − 3c + 4)|<ε$$  $$\implies |2x^2-2c^2-3x+3c|<ε$$  $$\implies 2|x^2-c^2|-3|x-c|<ε$$  $$\implies 2|x-c||x+c|-3|x-c|<ε$$  $$\implies |x-c||2x+2c-3|<ε$$  I don't  see where to go from here.


For $n \geq 2$ prove that $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$  We need to use induction.   The Principle of Mathematical Induction, Theorem 4.2.1, states that $n_0 \in \mathbb{Z}$. For each integer $n \geq n_o$, let $P(n)$ be a statement about $n$. Suppose that the following two statements are true:   $P(n_o)$ $( \forall n \geq n_o)[P(n) \rightarrow P(n+1)]$   Then, for all integers $n \geq n_o$, that statement $P(n)$ is true.  Suppose,  $(1- \frac{1}{4})(1- \frac{1}{9})(1- \frac{1}{16})...(1- \frac{1}{n^2}) = \frac{n+1}{2n}$, the equation, is true for some natural number $k$.  $\frac{1}{2^2})*...*(1- \frac{1}{k^2}) = \frac{k+1}{2k}$  The induction hypothesis $P(k) \rightarrow P(k+1)$ must hold for any natural number $k, P(k),$ from the basis and inductive step.  $(\frac{1}{2^2})*...*(1- \frac{1}{k^2})*(1- \frac{1}{(k+1)^2}) = \frac{k+1}{2k}(1- \frac{1}{(k+1)^2})$  $\leftrightarrow$ $\frac{k+1}{2k}(\frac{(k+1)^2}{(k+1)^2}- \frac{1}{(k+1)^2})$  $\leftrightarrow$ $(\frac{(k+1)}{2k})( \frac{(k+1)^2-1}{(k+1)^2})$  $\leftrightarrow$ $( \frac{(k^2+2k+1-1}{(2k)(k+1)})$  $\leftrightarrow$ $( \frac{(k^2+2k}{(2k)(k+1)})$  $\leftrightarrow$ $( \frac{k+2}{(2)(k+1)})$  We need to demonstrate that   $(\frac{1}{2^2})*...*(1- \frac{1}{n^2}) = \frac{n+1}{2n}$  holds true for $n \geq 2$  The question is do I just substitute a number that is greater than two after I did the induction?


How do I switch monitor focus with the keyboard?

I have 2 monitors connected to my Mac.  Each monitor has multiple spaces setup, for example - monitor 1 has Desktop 1, 2 & 3 and monitor 2 has Desktop 4 & 5.  ctrl+← and ctrl+→ only move between spaces on the currently focused monitor.  However, I can't find how to switch monitor focus using the keyboard.  If focus is on monitor 1, I need to point and click my mouse on monitor 2 and only then can I switch spaces on monitor 2.  Even if I switch to an application open on monitor 2 using ctrl+tab, the monitor focus and space switching still occurs on monitor 1.  Using Yosemite.


I've been given the following design for an error modal dialog (the rest of the page is grayed out and can't be clicked):    To me, instinctively, it seems redundant having two ways (close button and ok button) to do the same thing (close the dialog).  I don't see the need to have the close button.  Can you provide some more solid reasons to avoid that, or good reasons to have both if I am wrong?


How to pull a normally floating pin to ground for 500ms when circuit powered on and circuit powered off

I need some help designing a circuit to pull a floating pin to ground for approx 500ms when the circuit is first powered on, then pulling it to ground again for another 500ms when powered is lost. The floating pin is the trigger for an RF transmitter circuit, pulling it to ground will transmit its code - I need a pulse when power is turned on and pulse when power is turned off. I've got a 5v power supply. I haven't done any electrical engineering work for over 20 years..  It seems from other related posts that a tried and trusted 555 timer might be the simplest solution, I can clearly see how I can get a slight delay, then a 500ms pull to ground using a couple of RC networks and transistor on the 555 output pin when turned on, but can I use the same 555 and a capacitor to pulse when the power is lost somehow? I don't mind if I have to have two 555 timers - or if there is a simpler or easier solution?


Large 10 kWh 18650 Lithium-ion power pack - What configuration?

I need to build a 10 kWh lithium-ion pack, anywhere from 70 V to 200 V.  This is to drive a motor.  Power output will not exceed 15 kW.  The cells will be Panasonic NCR 'B' at 3.4 Ah 18650.  I would like to minimize space and weight and cost. :D  Level of safety would be standard for a hobby application.  Charging will be done in a safe area using two levels of overcharge and overcurrent protection.  Charging is from house current, 110V, and multiple chargers may be employed to double or triple the charge rate.   What is the best configuration for cells?  I would prefer if the pack is broken down into units of 1 to 2 kWh each.  Each unit may be charged separately. In addition to a balancing-protection board and a CCCV charger, what other protection or safety mechanisms are recommended, short of a smart BMS system? I have looked at a cheap Chinese balancing board that offers protection (thermal, overcharge, undercharge, overcurrent, short).  A 20S board will offer up to 84 V and adequate current for the application, for a 1.5 kWh unit.  At 1/3C, I would need a 83 V 6 A CCCV charger.  How do I get one of these? Off-topic question:  Can a balancing-protection board be used for a configuration with a lesser number of cells? Such as using a 10S board to control an 8S configuration.  Or does this depend on the board?


What is the suitable resolution for an image to be printed between A2 and A0?

I am a novice when it comes to photography. But I have a picture that I would love to submit to a photo comp. Their specifications are: have suitable resolution to be printed between 596mm x 422mm (A2) and 841mm (w) x 1189mm (h) (A0) I tried to increase the resolution on photoshop and ended up with these numbers: Image size 1.84 M - With 644 pixels - height 1000 pixels - resolution 300 pixel an inch   Could any let me know if these dimensions are acceptable?


Why and how do professors go for sabbatical?

I read several questions about sabbatical leaves in this website. When checking a faculty list, it is common that some are on sabbatical leave and some are visiting professors. When emailing professors, it is not strange to receive a reply that he or she is on sabbatical leave.  However, the general picture of sabbatical visits is unclear to me. It is interesting to experience a new academic environment in a different country; but how do people handle it?   Cost of Living/Moving: When someone goes to another country, there are lots of unexpected expenses. High rent for a furnished house (for a year). They still have expenses in their home country (like mortgage). They will receive half of their salary from home the university and zero from the host university (not considering exceptions where getting paid for occasional tasks). Research Output: The professor cannot plan for a long-term research. Probably co-supervise some graduate students. Position: It is not clear to me what the place of a visiting professor is. In a research group, he is not a postdoc to follow the PI plans to get hand in experimental works, and he is not the boss to plan and conduct others. In a department, the head cannot force him to teach a course (it is not his duty), and the department has not offered him an official position, space and service for doing nothing. The vague point for me is that there is no official contract to define each party responsibility (as the host university is not paying).   How can one handle the expenses? And what is the professional motivation to do a temporary job (beside the fun part of going somewhere)?  Sorry for a series of questions, I could not separate them.


Better methods for meal-prepping salads?

Every time I've tried to prepare salads for the week, they always go bad. I meal prep on Sunday and make 5 days worth of meals. I've been doing this for months but salads always give me trouble. Greens will go soft or veggies will get soggy. Currently, I split the salad into four containers (per day) and only combine them on the day of. One for the greens, one for extra veggies, one for dressing, and the last for the dried stuff (like nuts, seeds, and dried fruit). Even with that, the salads on Day 4 and 5 just aren't as good. However, if I buy pre-packaged salads, all five will taste the exact same! What are some of the best methods of meal-prepping salad so that the salad you eat on Day 1 tastes just like the salad you eat on Day 5? How can I get my meal-prep salads to stay crispy throughout the week?


How can I start the Blood on the Ice quest?

I am currently part of the Stormcloaks and just finished Rescue from Fort Neugard. The Jarl wants to make me a thane and is telling me to buy a house, but his steward is telling me the house is unavailable due to some unpleasantness. I have already completed the 5 quests to help people of Eastmarch.  From what I can see online, I need to begin the Blood on the Ice quest. It is supposed to begin by walking in the windhelm graveyard at night, however every time I go there I don't see anyone.  Someone online said it's possible to miss the scene that triggers the quest if you go into Windhelm and leave without triggering it, but I am hoping this isn't the case. I am in Windhelm a lot because the Enchanting table, Blacksmith, and Fence are all in one location, so find it very convenient. The lady who is supposed to be murdered in the Graveyard (Susanna) is still alive in Candlehearth Hall, so I think I'm not bugged.  The wiki suggests that you have to "The quest will initiate after you entered Windhelm four times from another hold", however I have entered and left quite a few times during the course of my game and know I've been here way over 4 times.  I tried pickpocketing the key, however I don't automatically get the quest on entering the house, and there are a bunch of "Investigate InvestigationTarget" spots in the house. Also, I was reading the Butcher's journal and he was saying he almost caught Susanna when she left Candlehearth, however I have never seen her leave Candlehearth. Perhaps my glitch is she never leaves? I'll have to head to Windhelm on another character and check it out.  Also, I saw something online saying this quest won't trigger if you go past 245 in-game days. Would someone be able to confirm this for me? (Have the XBox version, so waiting 245 days is annoying)  Can someone tell me the exact steps to begin this quest?


If Energy can be converted into mass, why can it not be converted into charge?

Probably a silly question, but something that came to mind yesterday. I couldn't find anything when searching.  Why is there an Energy mass equivalence principle but not an Energy charge equivalence principle?   In other words, why do our field theories have a Gauge invariance which allow for charge conservation, but not mass conservation, or why is it that charge has escaped from being a term in the energy mass equivalence? Is it just because we have observed these to be the case and made our field theories around this, or because that's just how the mathematics works out?


Is there a way to change the process group of a running process?

Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure.


'We are one, a global team that makes/make each other better.'   Which would be the correct?


Showing a Group of Matrices is Nilpotent

I'm working on a homework question which states:     Show that the real Heisenberg group        H=  \begin{bmatrix} 1 & a & c\\ 0 & 1 & b\\ 0 & 0 & 1 \end{bmatrix}    for a,b,c $\in \mathbb{R}$ is nilpotent.    I've shown the center of $H$ to be matrices of the form \begin{bmatrix} 1 & 0 & c\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix}  and I am now trying to calculate the center, $Z_2(H/Z(H))$, for the ascending central series. I think the center is supposed to be all of $H/Z(H)$, so I am trying to show these cosets are abelian, and I think that is where my issue is. For two cosets, $hZ(H)$ and $gZ(H)$, $(g,h \in H)$ I am confused what this looks like and how to show they commute.   Any help on this is appreciated. I know there are other ways to do this, but I would like to use the ascending central series since that is the way I am learning it. Thanks!  In response to the duplicate, I understand this is the same question, but I think my approach is different. Looking at the other question, they are using a method I am unfamiliar with. I think I can show that the cosets are abelian, but am unsure how to proceed from there. Thanks for the feedback!


Keeping a value class non-final for possible future extensibility

I am creating a very simple class called Catalog.  It will be an immutable class and have an id and name field.  Out of habit, since I am not going to explicitly document this thing for extensibility, I put the final modifier on the class.  However I'm wondering that since this is such a simple value class, would it hurt to leave the final modifier off in case someone in the future decides they could use it?


lightning:datatable not rendering correctly

I'm having troubles with rendering my datatable correctly. There are actions added but it seems the datatable is not high enough to view it correctly. Is it something I'm doing wrong? Or is it a bug?    This is the code for the datatable
Search results
 <lightning:datatable data="{! v.persondata }"                      columns="{! v.personcolumns }"                      keyField="id"                     onrowselection="{! c.getSelectedPerson }"                     hideCheckboxColumn="true"  />   Here is the code for initializing the columns  //init datatable component.set('v.personcolumns', [             {label: 'Last Name', fieldName: 'LastName', type: 'text'},             {label: 'First Name', fieldName: 'FirstName', type: 'text'},             {label: 'Mailing Zip/ Postal Code', fieldName: 'PersonMailingPostalCode', type: 'text'},             {label: 'Mailing City', fieldName: 'PersonMailingCity', type: 'text'},             {label: 'Billing Street', fieldName: 'PersonMailingStreet', type: 'text'},             {label: 'Email', fieldName: 'PersonEmail', type: 'text'},             {label: 'Primary Phone', fieldName: 'PersonHomePhone', type: 'text'},             {label: 'Secondary Phone', fieldName: 'PersonOtherPhone', type: 'text'},             {type: 'action', typeAttributes: { rowActions: actions}}         ]);   And the code for adding data (the response is a list of Accounts)  component.set('v.persondata',response.getReturnValue());


Getting out of Istanbul airport during 10-15 hours

I am from India & would be transiting Istanbul with a 10-15 hours layover on way from New Delhi to Copenhagen. I would be having a valid Schengen visa.   Can I get out of the airport, or would I require special permissions?  What are the things I can see as a tourist during the 6-8 hours Istanbul visit?


I want to place two or more figures on top of the two-column page next to each other (horizontally). However, for some reason I can't do this. This is the code that I use, it puts the second figure in the new line. Why is that? Btw, figures are tiny and many of them can fit in one line.  \begin{figure*}[t] \centering  \subfigure[Market revenue]{ {\epsfig{file = figures/graphs/revenue.pdf, width = 3cm}} \label{fig:evaluation:revenue} }  \subfigure[Average price]{ {\epsfig{file = figures/graphs/avgPrice.pdf, width = 3cm}} \label{fig:evaluation:avgPrice} }  \caption{Simulation results} \end{figure*}


Why isn't shell expanding the braces in the shell script?

I am trying the following script for listing the archived files in my current directory.  #!bin/sh for file in *.{zip,jar} do echo $file done   which gives the output:  *.{zip,jar}   Why isn't shell expanding the braces?


Superposition principle forbids quantisation?

Apparently bound states in quantum mechanics require energy states to be discrete. That means energy in such systems is quantized, right? However, say that we have a superposition of energy eigenstates. Using the superposition principle, I say that their average is a possible state, since we also say that there's the same probability that we'll observe each of the two available states. Then since this average is allowed, I can take the average of that and the smaller of the original states, can't I? And if I repeat this an infinite number of times, I should get something which is as good as continuous, right? If I talk about the $n$th energy levels of some system, I won't be able to express the energy each of these allowed states in terms $n$ without making some messy equations. Isn't this a contradiction?


Nvidia X server - cannot switch to GPU from my Intel, because of python import error

When I try to switch to my NVIDIA this happens:  ERROR: Traceback (most recent call last):        File "/usr/share/screen-resolution-extra/nvidia-prime.py", line 22, in        <module>        import sys, dbus, logging        ImportError: No module named 'dbus'   If it helps there is another error:  ** Message: PRIME: Requires offloading ** Message: PRIME: is it supported? yes  ERROR: nvidia-settings could not find the registry key file. This file should        have been installed along with this driver at        /usr/share/nvidia/nvidia-application-profiles-key-documentation. The        application profiles will continue to work, but values cannot be        prepopulated or validated, and will not be listed in the help text.        Please see the README for possible values and descriptions.   along with lots of gtk theme parsing errors.  I have GT 635M GPU and I'm running ubuntu 16.04 LTS with gnome desktop installed.  Please help :/  EDIT 1: I tried running   sudo apt-get install python-dbus   and got  python-dbus is already the newest version (1.2.0-3).   Switching GPU still produces the same error.  EDIT 2: I edited the nvidia-prime.py as Sneetsher suggested. Running nvidia-settings won't print the sys.version and sys.path, but this is the output if I run the script directly.  bp@ubuntu:~$ python /usr/share/screen-resolution-extra/nvidia-prime.py  2.7.11+ (default, Apr 17 2016, 14:00:29)  [GCC 5.3.1 20160413] ['/usr/share/screen-resolution-extra', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client'] Usage: /usr/share/screen-resolution-extra/nvidia-prime.py nvidia|intel


Is there a limit to the number of special lands I can put in my deck, like the Temples?

I'm constructing a Deck and I want to make all the mana Temple Cards. More Specifically I want them to be , , and . Are these mana cards limited to only four per deck like regular cards or can you put an unlimited amount of them in your deck?


When writing a batch file to automate something on a Windows box, I've needed to pause its execution for several seconds (usually in a test/wait loop, waiting for a process to start). At the time, the best solution I could find uses ping (I kid you not) to achieve the desired effect. I've found a better write-up of it , which describes a callable "wait.bat", implemented as follows:  @ping 127.0.0.1 -n 2 -w 1000 > nul @ping 127.0.0.1 -n %1% -w 1000> nul   You can then include calls to wait.bat in your own batch file, passing in the number of seconds to sleep.   (at last!). In the meantime, for those of us still using Windows XP, Windows 2000 or (sadly) , is there a better way?  I modified the sleep.py script in the , so that it defaults to one second if no arguments are passed on the command line:  import time, sys  time.sleep(float(sys.argv[1]) if len(sys.argv) > 1 else 1)


I am trying to communicate between 2 programs but I can’t find out how.  Process p = Process.Start(Secondprogram.exe, "number = " + number); p.WaitForExit(); this.Close();   I want to receive the number in my second program and use it there.  Or something like:  Process p = Process.Start(Secondprogram.exe); Parameter number = 1200; p.WaitForExit(); this.Close();   And then in my second program:  txtSomething.Text = number;


How do I get an animated gif to work in WPF?

What control type should I use - Image, MediaElement, etc.?


Will downloading a game on the Xbox Marketplace affect my disc saves?

I'm planning on selling my copy of Assassin's Creed IV if I download it from the marketplace. However, before I sell it I want to know if my original saves from the disc will exist on the digital version.


What is the meaning of "draining the swamp"?

What is the meaning of "draining the swamp" in this article?     “Speaking of draining the swamp, Donna Brazile did it again,” Mr. Trump said. “WikiLeaks today, she gave the questions to a debate to Hillary Clinton. And that was from a couple of weeks ago. Happened again, but this time far worse. She gave the questions to a debate to Hillary Clinton.”   It's from Washington news:


JavaFx How to add buttons to GridPane with 2d array?

I'm trying to make chess game with java only using Board class as GUI, Game class to run and test game rules, abstract Pieces as a parent class for each chess piece, Player class to indicate who's turn.  I populated a board with 8 x 8 = 64 buttons first. To implement each piece's valid movement, I need to get each button's address or an index. Initially I didn't use 2d array but I thought it'd be easier to put the buttons in 2d array and get their index to control the movement of the pieces. This is what I tried so far and I don't know why I'm getting a NullPointer error.  I would appriciate any help or advice.   import javafx.application.Application; import javafx.event.ActionEvent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.GridPane; import javafx.stage.Stage;  public class Board extends Application {     GridPane board = new GridPane();     Scene s = new Scene(board);     Button buttonArray[][];     private void showBoard() {         for (int i = 0; i < 8; i++) {             for (int j = 0; j < 8; j++) {                 buttonArray[i][j] = new Button();                   buttonArray[i][j].setMinSize(70, 70);                    if ((i + j) % 2 == 0) {                      buttonArray[i][j].setStyle("-fx-background-color: #0e0f0f");                 } else {                     buttonArray[i][j].setStyle("-fx-background-color: #ededed");                 }                 buttonArray[i][j].setOnAction(this::onSelect);                  board.add(buttonArray[i][j], i, j);             }         }     }       // event listener     private void onSelect(ActionEvent event) {         Button b = (Button) event.getSource();         System.out.println("get source" + b);         b.setStyle("-fx-background-color: magenta");      }      @Override     public void start(Stage stage) throws Exception {         showBoard();         stage.setScene(s);         stage.show();     }      public static void main(String args[]) {         launch(args);     }  }   //Error stackTrace  Exception in Application start method java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)     at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source) Caused by: java.lang.RuntimeException: Exception in Application start method     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)     at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException     at Board.showBoard(Board.java:15)     at Board.start(Board.java:45)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)     ... 1 more Exception running application Board


Proof by Induction: If $x_1x_2\dots x_n=1$ then $x_1 + x_2 + \dots + x_n\ge n$

If $x_1,x_2,\dots,x_n$ are positive real numbers and  if $x_1x_2\dots x_n=1$ then $x_1 + x_2 + \dots + x_n\ge n$   There is a step in which I am confuse. My proof is as follows (it must be proven using induction).  By induction, for $n=1$ then $x_1=1$ and certainly $x_1\ge1$. Suppose $x_1 + x_2+\dots+x_n\ge n$ (does this mean that $x_1x_2\dots x_n = 1$ also hold?) and $x_1x_2\dots x_n x_{n+1} = 1$ hold. Then  \begin{align} x_1 + x_2 + \dots+x_n+x_{n+1} &\ge n + x_{n+1} \\                               &=n+2-1/x_{n+1} \\                               &=n+2-x_1x_2\dots x_n. \end{align}  My problem is in the last step. As I wrote before, I don't think $x_1x_2\dots x_n = 1$  should hold, because if this is the case then $x_{n+1}=1$.  EDIT:  In the itermediate step I used that $x + 1/x \ge 2$, where $x>0$.


Can I use fixed deposit to prove ties to home country?

When applying for a Schengen visa, can I use fixed deposit to prove my intention to return after my visit to my friend in Latvia?


Mouse cursor flickering and disappearing

I installed Ubuntu today and since the first start up I have a problem with the mouse cursor.  It starts randomly disappearing and flickering a lot.  I have searched for a solution on Google and here but didn't find anything.


How to install my Nividia GTX in Ubuntu on my laptop?

I have recently installed Ubuntu 18.04.2 LTS on my Dell G3 3579 laptop alondside Windows 10. I have my Nvidia GTX 1050(Mobile) preinstalled in Windows 10, but in Ubuntu I only see the Intel UHD grphics. I want to install my GPU in Ubuntu too.


Hot, stuck, or dead pixels. What's the difference?

What is the difference between hot, stuck, and dead pixels with regards to a camera's image sensor? What can cause each to occur? What can be done to reduce their influence on a photo?


What is $\int_0^{\frac{\pi}2}\ln(\sin x)dx$?

What is the value of $$\int_0^{\Large \frac{\pi}2}\ln(\sin x)dx=\text{?}$$ Can this be done using by parts?


document.getElementsByClassName for JavaScript created elements

I dynamically created various images and other elements within various div elements and assigned a class to them, like: divOM = document.getElementById('omain'); kd = document.createElement('img'); kd.src = 'pics/k0.jpg'; kd.class = 'mww'; divOM.appendChild(kd);  This works well – the debugger shows the desired result (# children with class ‘mww’).  I have the (maybe naïve) hope that wlist = document.getElementsByClassName('mww')  gives me all elements which have class=’mww’, but unfortunately it doesn’t. The debugger shows length:0 for wlist!?? Is it possible that document.getElementsByClassName doesn’t work for dynamically created elements?


Concatenate fields in Field Calculator using Python

I'm trying to concatenate fields together and used this post as a guide: <> ; however, I'm still getting a 989 parsing error.  Here's the Field Calculator image:    I'm just learning python.


Maximize $\mathrm{tr}(Q^TCQ)$ subject to $Q^TQ=I$

Let $C \in \mathbb{R}^{d \times d}$ be symmetric, and   $$Q = \begin{bmatrix}       \vert & \vert &    & \vert \\       q_1   & q_2   & \dots & q_K  \\       \vert & \vert &    & \vert       \end{bmatrix} \in \mathbb{R}^{d\times K}$$  where $d \geq K$. Using Lagrange multipliers,   $$\begin{array}{ll} \text{maximize} & \mbox{tr} \left( Q^T C Q \right)\\ \text{subject to} & Q^T Q = I\end{array}$$    I am unfamiliar with these kind of constraints with this method, and after reading  I believe the same specific and simple result given is also applicable, and therefore the lagrangian would be:  $$\mathcal{L}(Q,\lambda)=\mathrm{tr}(Q^TCQ)-\left<\lambda,Q^TQ-I\right>$$  where $\lambda\in\mathbb{R}^{K\times K}$, and $\left<\cdot,\cdot\right>$ is the element wise inner product (what kind of makes sense to me since we're actually adding as many constraints as there are elements in these matrices.  In attempting to do that I start taking $\frac{\partial \mathcal{L}}{\partial Q}=O\in\mathbb{R}^{d\times K}$, and compute that LHS element by element; for the $(l,m)$ one:  \begin{equation} 0=\frac{\partial \mathcal{L}}{\partial Q_{lm}}=(CQ+C^TQ)_{lm}-\underbrace{\frac{\partial}{\partial Q_{lm}}\sum_{i,j}\lambda_{i,j}(Q^TQ-I)_{ij}}_{=\lambda_{lm}\frac{\partial (Q^TQ)_{lm}}{\partial Q_{lm}}}=2(CQ)_{lm}-\lambda_{lm}\frac{\partial (q_l^Tq_m)}{\partial q_m(l)} \tag{1}\end{equation}  where in the last step I've used the definition I made at the beginning for $Q$, and $q_m(l)$ denotes the $l$-th component of the column vector $q_m$.  In trying to compute the very last term:  $$\frac{\partial (q_l^Tq_m)}{\partial q_m(l)}=\frac{\partial \left[q_l(1)q_m(1)+ \ldots + q_l(d)q_m(d)\right]}{\partial q_m(l)}= \begin{cases}     q_l(l)\equiv Q_{ll}    & \text{if } l\neq m\\     2q_l(l)\equiv 2Q_{ll}  & \text{if} l=m \end{cases}$$  The whole equality (1) then can be written:  $$0=2(CQ)_{lm}-\lambda_{lm}Q_{ll}(1+\delta_{lm})$$  where $\delta_{lm}$ is the Kronecker delta.  The equation for the other stationary point of the lagrangian, $\frac{\partial \mathcal{L}}{\partial \lambda}=O\in\mathbb{R}^{K\times K}$, for the $(l,m)$ element as well:  $$ 0=\frac{\partial \mathcal L}{\partial \lambda_{lm}}= \frac{\partial }{\partial \lambda_{lm}}\sum_{i,j}\lambda_{i,j}(Q^TQ-I)_{ij}=(Q^TQ-I)_{lm}\tag{2}$$  what obviously leads to $(Q^TQ)_{lm}=\delta_{lm}$.  All this should tell that the columns of $Q$ are eventually the $K$ first eigenvectors of $C$, but I don't know how to continue from here to prove that, supposing I didn't make a mistake. Please I would sincerely appreciate any help.    Edit:  I have rewritten the inner product as a trace of a product of matrices (after seeing ):  $$\left<\lambda,Q^TQ-I\right>=\sum_{i,j}\lambda_{i,j}(Q^TQ-I)_{ij}=\mathrm{tr}(\lambda^TQ^TQ) $$  and have thus managed to do the derivative without losing the matrix format (using formulas from the ):  \begin{align} O=&\frac{\partial \mathcal{L}}{\partial Q}=\frac{\partial}{\partial Q}\mathrm{tr}(Q^TCQ)-\frac{\partial}{\partial Q}\underbrace{\mathrm{tr}(\lambda^T(Q^TQ-I))}_{\mathrm{tr}(\lambda^TQ^TQ)-\mathrm{tr}(\lambda^T)}\\=&(CQ+C^TQ)-(Q(\lambda^T)^T+Q\lambda^T)=2CQ+Q(\lambda+\lambda^T) \end{align}  And this leads to:  $$CQ=Q\underbrace{\left(-\frac{\lambda+\lambda^T}{2}\right)}_{:=\widetilde{\lambda}};\quad CQ=Q$$  If the defined matrix $\widetilde{\lambda}=Q^TCQ$ were diagonal we would already have the result.


Find probability using distribution function method

Let $X_1$ and $X_2$ be two independent random variables with distribution $U(0,1)$. Let $Y=|X_1-X_2|$. Find the distribution function and density of $Y$.   Solution:  f(x1)=1 whenever x1 between 0 and 1          =0 Else where f(x2)=1 whenever x2 between 0 and 1          =0 Else where f(x1,x2)=1 whenever x1,x2 between 0 and 1           =0 Else where G(y)= P[-y <= x1-x2 <= y]       =\int_{-y}^y \int_{x1_y}^{y+x1} 1 dx2 dx1       =\int_{-y}^y -2y dx1       =4y^2 when y between 0 and 1       =0 when y less than 0       =1 when y greater than 1 Thus, g(y)= \diff G(y) =8y  Is it correct?


What the difference between would you like me or for me

I am not native so i dont understand if this sentence means i should have send some documents  for somebody or somebody wants to send me some documents?!  (would you like for me to send the lists of  documents for a student and visitors).


An integral inequality (Rudin $L^p$-spaces 3.12)

I've been learning about $L^p$-spaces and came across this problem in Rudin's Real and Complex Analysis:     Suppose $\mu(\Omega)=1$ and $h:\Omega \to [0,\infty]$ is measurable. If $A= \int_\Omega {h d\mu}$, prove that:   $$ \sqrt{1+A^2} \leq \int_\Omega \sqrt{1+h^2}d\mu \leq 1+A $$   I've already shown that $\sqrt{1+A^2} \leq \int_\Omega \sqrt{1+h^2}d\mu$ using Jensen's inequality applied to the convex function $\varphi(x)=\sqrt{1+x^2}$. I can't seem to show the latter inequality. Any help or hints would be appreciated. Thank you in advance!


Generally to detect the hydrogen spectrum people uses the hydrogen gas tube as a light source. My question is, since the gas in the tube is the hydrogen molecule $H_2$ why is the spectrum equal to the spectrum of atomic hydrogen $H$ ?


Installing nvidia-opencl-icd-367 breaks the package manager

I am using the  ppa. I got an update dialogue today which stated that I can update my nvidia driver to 367.18 (~gpu16.04.6). I started the update just like every time, but it failed with  Failed to get unit file state for var-lib-snapd-lib-gl.mount  After rebooting, my graphics driver was broken and I was forced to go into recovery mode.  As usually when my Nvidia driver breaks, I just uninstall it with  sudo apt purge nvidia* to reinstall it clean afterwards.   Doing this in recovery mode uninstalled all except the nvidia-opencl-icd-367 package which failed with the error above.   Trying to manually uninstall this package ends with these errors:       Update @20160605 - Solution:  Following Videonauth's answer below solves the issue. Please go through all the steps and make sure to reboot after removing everything of NVIDIA via sudo apt purge nvidia* succeeded without issues and after reinstalling the driver via sudo apt install nvidia-367.  This shall get your driver working again.   If this does not help, try to manually remove all old xorg configs sudo rm /etc/X11/xorg.conf* && sudo rm /etc/X11/xorg.conf and reinstall the driver again sudo apt install nvidia-367 --reinstall.  If this still does not let you log back in (Typical error: Logins screen --> password has been entered, enter pressed --> goes back to login screen) try completely removing your Nvidia driver again from by switching into text console from the logscreen with Ctrl+Alt+F1, login with you account name and password, donwload the appropriate driver for your graphics card from  within console, stop lightdm:  sudo service lightdm  Install Nvidia's binary driver using sudo ./NVIDIA-VERSION...  and reboot system:  sudo reboot now  System:  Ubuntu 16.04 64bit  Linux 4.4.0-22


How to properly use a java substring in an if test?

I'm reading a file line-by-line with Java and parsing the data in each line for a report. Periodically, there will be a URL that's been written to a line, and I want to bypass that line. I need to set up an if...then that tests for the presence of a URL -- in this specific case, I define that as the first four bytes of the line reading http. If the condition is true, read the next line in the file, but if the condition is false, send the current line to the parser for report output.   Simple, no? I'm running into issues where I cannot get my if..then statement to accurately recognize a true condition. My only clue is that when my inputString is equal to the test value, it passes as true. Beyond that...I can't spot anything out of the ordinary.   public class testClass {     public static void main(String args[])     {         String inputString1 = "http://www.google.com/r";         String inputString2 = "google";         String inputString3 = "google search";         String inputString4 = "http";         parseInput(inputString1);         parseInput(inputString2);         parseInput(inputString3);         parseInput(inputString4);     }     //     private static void parseInput(String inputString8) {         int httpFlag;         if (inputString8.substring(0,4) == "http")              { httpFlag = 1467; } else             { httpFlag = 10644; }         System.out.println(inputString8+" "+inputString8.toLowerCase().substring(0,4)+" "+httpFlag);       }  }   Here's my output:  http://www.google.com/r http 10644 google goog 10644 google search goog 10644 http http 1467   I am expecting 1467 for both inputString1 and inputString4.  The console appears to display my input and substring properly, and nothing in the Java Documentation suggests that my substring would be a char array or anything apart from a string, so I can't figure out why http as the first four bytes of a 4-byte string is "different" from the first four bytes of a (4+x)-byte string. What am I missing?


How to get specific data that is present in an anchor tag

I have downloaded a json data from an url and deserializing it to a class.   expense = wc.DownloadString(url);  Rec obj = JsonConvert.DeserializeObject<Rec>(expense);   The class is,  public class Rec     {         public string BillNo { get; set; }         public string Date { get; set; }     }   The 'BillNo' is in anchor format. I need loop through each rows to get specific values from the anchor tag. The anchor tag is like mentioned below.  429   From the above anchor tag i need the itemId value '877560220' and the inner text '429'. How to accomplish it in c#.


Turkish character problem. I'm using PHP 5.4 version. Php page  <?php  mysql_connect("127.0.0.1","android_project","mypassword");  mysql_select_db("android_project"); mysql_query("SET NAMES 'utf8_turkish_ci'"); $q=mysql_query("SELECT * FROM product");  while($e=mysql_fetch_assoc($q)) {  $output[]= $e;  } header("Content-type: application/json; charset=utf8_turkish_ci"); print(json_encode($output));  mysql_close();  ?>   Akıllı=Ak?ll? ,  Hafıza=Haf?za  etc.


Iterator for multiple ranges (lists, sets etc) in python

I am looking for an iterator which takes as an input multiple ranges in python (or for example lists) and returns all possible combinations for these. Preferably in an iterator so it does not store all combinations in memory. I know how to code it myself, but it seems to me a quite common function so i cannot imagine that it doesn't exists already in some library. This is basically the idea:  a = range(0,2) b = range(2,4)  for i,j in someFunc(a,b):     print(i,j)   This would then print:  0 2 0 3 1 2 1 3   This can ofcourse be achieved by multiple loops:   for i in a:     for j in b:         print(i,j)   But i am looking for one function which can accept unlimited ranges as arguments. It seems as such a common function, but i have not been able to find it anywhere.


If I do atq I can see a list of what is scheduled via at command. But how do I see what is the command that will actually run?


How to permanently remove PyCharm Community?

I know that this question has posted few times before but I have a different problem than those one and those answers seem not to work on me. I have installed PyCharm Community 4 few weeks ago, and now I bought a student license (which is free of charge). I now want to install PyCharm Professional by deleting the Community version.  Problem is I don't have a separate directory in which I extracted the PyCharm community. I somehow have managed to install it. When I wrote PyCharm in dash home, I am able to execute the program. But for the professional version, case is different.  When I run the sudo ./pycharm.sh it doesn't install like it installed Community version. Every time I run pycharm.sh it asks me my license information, which is not permanent. And Professional PyCharm doesn't appear in dash home.  How can I permanently remove Community version and can install professional like I wanted?


So, I was interested in seeing if I could get Iona to wear some more common clothes around the house.  I pretty much just leave her there most of the time anyway, so there's no point in her being always dressed for battle.  I couldn't seem to get her to un-equip her standard armor, and she wouldn't put on regular clothing or lesser armor while it was equipped.  So, after I finished leveling and perking up my pickpocketing, I stole the Steel Armor straight off her back.  After that, I gave her some more suitable house attire (via "Follow me..." -> "I need to trade...") which she gladly put on.  However, when I later left and returned to the house, I found her wandering around in her undergarments!  I checked her inventory, and found the clothes I'd given her were still there and her armor wasn't.  So, she had no good reason not to be dressed in what had been handed to her.  Later, I figured out this continues to happen even if I leave a full set of Legendary-quality Dragonscale Armor with her.  And, later on... I found out this is also the case with Lydia and Jordis.  They'll all wear their clothes immediately after being given them.  But if I leave them at home, I'll return to find them bare.  Is this a known bug?  Is there any way around it without using the PC-only console?


\documentclass[10pt,landscape,a4paper,svgnames,x11names]{article}  \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[utopia,sfscaled]{mathdesign} \usepackage{amsmath}  \everymath{\color{MidnightBlue}}  \begin{document}  \section*{Reihen}  \begin{equation*}  \sum_{n=0}^\infty a_n \text{bzw.} a_k=\sum_{n=0}^k a_n \end{equation*} $\rightarrow$ kann konvergieren oder divergieren \\ Bedingungen f\"ur Konvergenz: \begin{itemize}     \item{Nullfolge} $a_n\rightarrow 0$     \item{Quotientenkriterium} $\lim\limits_{n\to\infty}|\frac{a_{n+1}}{a_n}|=q$      \begin{align*}     q<1&\Rightarrow \text{konvergent} \\     q>1&\Rightarrow \text{divergent} \\     q=1&\Rightarrow \text{keine Aussage}     \end{align*} \end{itemize} \end{document}   Why aren't my equation blue too using \everymath? And how will they?


I am going to simplify this question and not make a massive physics explanation here. Few things to know:  Mass is locked up energy we call "inertial mass". When we speak of an object's mass increasing due to acceleration, we are really talking about its inertial mass increasing.  So when we think of mass as energy, we can begin to understand why an object will increase its ‘mass’ as it speeds up. As an object increases in speed, so does the amount of energy that it has, this energy is what we refer to as "the increase in mass".  The energy of a particle diverges to infinity as it approaches the speed of light. Since we can never have infinite energy for a particle, the speed of light cannot be reached.  Since an object has infinite kinetic energy when it approaches the speed of light, it therefore has infinite mass as well.   So to simplify due to Einstein's "Theory of Relativity" the faster you go, the higher your mass becomes, which is the reason why we will never be able to travel at the speed of light. But in the case of The Flash he can travel at the speed of light, which means unless the Theory of Relativity is a non existing factor in the DC universe. A punch from Flash will have INFINITE power behind the punch and that would destroy the universe if he ever did this. I have not read everything Flash or Flash related, and this question comes from a discussion i had with fellow physic students. i'll try and rephrase the question. So how hard can he actually hit? When Flash used a The Infinite Mass Punch, has he ever destroyed a universe or obliterated an opponent to atoms?.


How to calculate the mean from bin endpoints and frequencies?

Sometimes data extracted from reports do not have individual values, like 4, 23, 43, but grouped together like this:     income level people in this group     10k to 20k 44   20k to 40k 240   40k to 80k 400   80k to 100k 130     What is the best way to describe this situation in statistics, and how to calculate the mean value? At first, I thought about multiplying the mid value of the first row by the number of people, i.e.: mean = ((15k x 44) + (30k x 240) + (60k x 400) + (90k * 130))/(44 + 240 + 400 + 130) However, I feel since the distribution is skewed, the mid point doesn't represent the mean value in each group, and thus the calculation above is wrong. I also thought about using weighted arithmetic mean, but I am not sure. What is the statistic tool to deal with this sort of problem?


How to open the Low Disk Space window again because qBittorent doesn't let me save files to another HDD

I tried to find something to open this window, but nothing worked. How can I open this window again? How can I move programs/files to another volume? I selected do not show again, and I know that I can extend the partition that has only 722.6 MB disk space remaining with GParted, but I want to move the files. When I use qBittorent it doesn't let me save or move the files to another hard drive. How can I do it?


Fallout 4. Will stats over than 10 work?

If i will boost my stats for 11 and more with items or buffs, will it work? Are there any formulas to calculate? This question is not about "how increase" but about "what it will give for me". Is there limit to stats benefits.  UPD. Those who marks this question as duplicate, please, show me answer from that topic. I do not see it there.


I have a visa for Belgium. Is it required for Paris too?

Do I need a separate visa to visit Paris, if I have a visa to visit Belgium?


Let $A$ be a ring (commutative unital), and $\mathcal I$ be a nonempty family of proper ideals of $A$.  I will say that $\mathcal I$ has property $\dagger$ if for any $\mathfrak a\in\mathcal I$ and any $xy\in \mathfrak a$, one of $\mathfrak a+(x),\mathfrak a+(y)$ is in $\mathcal I$.  In particular, any maximal (w.r.t. inclusion) element of $\mathcal I$ is prime.  Does $\dagger$ (or maybe $\dagger$ + hypothesis of Zorn's lemma) have a name (a prime family, perhaps, as I suggest in the title)? As a side question, are there some interesting criteria for checking that a given family of ideals has property $\dagger$?  It seems to me that posets with property $\dagger$ are rather abundant in commutative algebra (e.g. in proof of Cohen's characterization of Noetherian rings), but I've yet to see $\dagger$ discussed on its own, or any name for it.


Statistically evaluate difference between time series

I have two time series. I want to evaluate if two time series are different enough in one window or space of time. The objective is to trigger an alert when one time series divert significantly from the other. I attach one example where the blue line has a small bump that the red line doesn't. How can I statistically evaluate that this gap is high enough to consider that from 12:00 to 15:00 there has been a deviation?  This may seem as a duplicate for  but I don't want to compare the whole time-series sequence but rather segments or windows of it.


Prime factorization knowing n and Euler's function

My task is to factorize $n$ knowing it has two factors and $\varphi(n)$. How can I do it?  Thanks for any advice.


Why code no work in sandbox visual webpart 2012

This code works in console app but not in sandbox visual webpart built using vvs 2012,          ClientContext context = new ClientContext("http://www.SomeSite.com/sites/test1");         Web web = context.Web;         context.Load(web);         context.ExecuteQuery();          WebCreationInformation WCI = new WebCreationInformation();         WCI.Title = "Abc3";         WCI.Language = 1033;         WCI.UseSamePermissionsAsParentSite = true;         WCI.WebTemplate = GetCustomTemplate(web, context).Name;         WCI.Url = "abc3";           web.Webs.Add(WCI);          context.ExecuteQuery();          Console.WriteLine(web.Id);   I get security error on this line,  ClientContext context = new ClientContext("http://www.SomeSite.com/sites/test1");


Ubuntu 18.04 Version Trying to add repository

E: The repository 'http://ppa.launchpad.net/unit3/bfgminer/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  I cannot get any of the mining software to download from any repository. What am I doing wrong am I missing a process. How do I fix the above error.


I'm a long-time Blender user and my projects are becoming more and more complex and I was thinking in buying a new GPU. Now I'm using a GTX 970 V1 Windforce and a Intel Xeon X5660. A lot of people suggested me to buy a HD7870 Triple Vent since I will use this machine also as Hackintosh, is it possible to use the GTX and the Radeon together? I heard that you can combine the two by using OpenCL or OpenGL


Can "either" coordinate more than two alternatives?

I recently wrote the sentence,     But when you see Iesu, it can either be vocative, dative, genitive, or ablative.    In it, I use "either" to coordinate four different alternatives: vocative, dative, genitive, or ablative. Is this grammatically correct? The Merriam-Webster dictionary supports this use of either, having this to say about it:     3  (conjunction)      —used as a function word before two or more coordinate words, phrases, or clauses joined usually by or to indicate that what immediately follows is the first of two or more alternatives          can be used either as a guest room or as an office      It seems to be the case that, as an adjective or pronoun, "either" implies that there are only two alternatives. But as a conjunction, it can join many alternatives. Is my understanding correct? Or has this latter function only come about through consistent misuse of the word?


How to reset the terminal properties and preferences?

I fooled around with the colors and stuff, in the terminal, and now want to go back to the maroon and white default config of the the terminal. What files do I have to delete?


Using bold for just one word inside listing?

I have a similar structure like this:  \begin{lstlisting}[language=bash] Family |-father |-mother |-elderson |-younger son |-younger daughter \end{lstlisting}   I need to make "mother" and "younger daughter" words in bold. How can I do it?  i followed this , but could not do it.


Is selling your house without an agent worth the hassle?

There have been numerous "for sale by owner" signs appearing recently.  This seems like a convenient way to reduce the commission charged by Real Estate agents but I have heard that this is still a "closed" market unless one already has a buyer lined up (like a friend or family member).  What are the advantages and disadvantages?


How does remittance work? How does it differ from direct money transfer?

I have a bank account in Germany in which I receive my salary in Euros. I want to deposit a part of it in my Indian bank account for personal savings. My Indian bank account is in INR. As I see it, I have two options:   To use a remittance service that converts my Euros into INR and deposits in my account. I am not sure how it works. The service (which I know is reliable) I signed up for asks me to deposit Euros in a certain account ("funding") which will be converted to INR and deposited in my account. How does that work exactly? Use my bank's service to make a international bank transfer to my account. Is that even possible, given that my Indian account is in INR? Will I incur higher conversion fees and lower exchange rate?   In general, what are the pros and cons of each of the above methods? And are there any other methods?


Using ArcPy to get all database names within server?

I am trying to populate a folder with ArcSDE database connection files for all the databases within a server instance.  I need to be able to do this for several of our servers.  Although I know within SQL Server how to get a list of DB names from the sys.databases table, using the arcpy function CreateDatabaseConnection I cannot specify "sys" or "master" to make the connection.  Therefore, I need to know the name of a database currently in the server.  I am not sure how to make the check without hard-coding a name.  import arcpy arcpy.env.overwriteOutput = True  #Input the location where the database connection files will be stored connectionLocation = "F:/FolderName"  #Get the list of servers arcpy.CreateDatabaseConnection_management(out_folder_path= arcpy.env.scratchFolder,out_name= "GIS_USERCONFIG" ,database_platform="SQL_SERVER",\                                           instance = "XXXXXXX" ,account_authentication="DATABASE_AUTH",username="user",password="password",\                                           save_user_pass="SAVE_USERNAME",database= "GIS_USERCONFIG",schema="#",version_type="TRANSACTIONAL",version="dbo.DEFAULT",date="#") sdeConn = arcpy.ArcSDESQLExecute(arcpy.env.scratchFolder + "/GIS_USERCONFIG.sde") serverListSQL = sdeConn.execute("Select name from userservers") serverList = [] for i in range(0,len(serverListSQL)):     serverList.append(serverListSQL[i][0])  #Make a folder for each server instance and build the connection files for all DBs in the server instance for server in serverList:     folder = connectionLocation + "/" + server     if arcpy.Exists(folder):         print server + " folder already created"     else:         try:             arcpy.CreateFolder_management(connectionLocation, server)             print "Created Folder " + server         except:             print "failed to create folder " + server      #     arcpy.CreateDatabaseConnection_management(out_folder_path= arcpy.env.scratchFolder,out_name= server ,database_platform="SQL_SERVER",\                                           instance = server ,account_authentication="OPERATING_SYSTEM_AUTH",\                                           database= "master",schema="#",version_type="TRANSACTIONAL",version="dbo.DEFAULT",date="#")     sdeConn = arcpy.ArcSDESQLExecute(arcpy.env.scratchFolder + "/" + server + ".sde")     dbListSQL = sdeConn.execute("Select name from sys.databases")     dbList = []     for i in range(0,len(serverListSQL)):         dbList.append(dbListSQL[i][0])     for db in dbList:         arcpy.CreateDatabaseConnection_management(out_folder_path= folder ,out_name= db,database_platform="SQL_SERVER",\                                           instance = server ,account_authentication="OPERATING_SYSTEM_AUTH",\                                           database= db,schema="#",version_type="TRANSACTIONAL",version="dbo.DEFAULT",date="#")   Basically my issue is with the 2nd call for the function "CreateDatabaseConnection_management" since it needs a database that exists in the database (and I could not use "master or sys").  If you open this as a tool in arcmap, the input is a drop-down box that populates choices based on the databases in the chosen server instance.  Is there a way to do this in the code?


XML syntax highlighting bug for "" elements

The following XML fragment has incorrect syntax highlighting for comments and nested attributes:    <style name="MyApp.ActionBarTheme" parent="@style/ThemeOverlay.ActionBar">     <!-- This comment should be grey -->     <item name="colorControlNormal">@color/my_awesome_color</item> </style>   The following similar fragment looks better:  <stylez name="MyApp.ActionBarTheme" parent="@style/ThemeOverlay.ActionBar">     <!-- This comment should be grey -->     <item name="colorControlNormal">@color/my_awesome_color</item> </stylez>   Spot the difference. By changing <stylez> to <style>:   Comment text is black instead of grey The item element is black instead of brown The item.name attribute black instead of red The item.name attribute value is brown instead of blue   Here's a META image of this post, for reference if using a different theme, or for when this issue is fixed:


Just getting started with JS so I got a question.  What I would like to accomplish is for me to append a h1 tag inside a div then click on it and trigger an alert.
h1

            this is the code I have now. Now the issue as far as I understand is that the javascript code is ran on load - so when the h1 is added it won't work.  How do you fix this?


Pokemon GO isn't working at all for me right now. I'm in one of the following circumstances and can't do anything:   My game is displaying a "Try Again" message I'm stuck on the Loading Screen When I sign in I get a message that the servers are experiencing problems. I see the map but nothing is loaded, and my team color is wrong The "loading" Pokeball just ends up spinning and I can't catch or interact with things When I try to catch a Pokemon, the Pokeball just sits on my screen doing nothing Gym opponents will drop to 1 HP and won't take any more damage or attack When I open a pokestop, the pokestop image and the name of the pokestop does not load.   What's causing this? Is there a way to fix it?


Which one did you bought?   or     Which one did you buy?   Is it okay to have two past-tense verbs in one sentence?


I have Dell Latitude e6430 laptop,and i have issues. I turn it on use it for like 10-30 minutes and it randomly crashes with a black screen and a vertical red line on a side. The only way to turn it off and turn it on again is force shutdown or wait for 10 mins and it shutdowns automatically. Mostly this happen when playing games. I checked CPU temp, it wasn't overheating. There is a picture of a line(the file too large so i. posted a link.) :


I have two multiline strings (in memory, not from files). How can I calculate a unified diff?  One solution would be to save the strings to temporary files, do a system call to diff -u and capture the output, but I'd rather do this in pure .NET. Happy to use NuGet package if it's not in standard library.


I have been trying to establish whether I could model my data, a set of 90 observations, using the normal distribution. I have tried the Shapiro-Wilk and the Anderson-Darling tests but each came back with a different result.  Anderson-Darling normality test  data:  x A = 0.6994, p-value = 0.06555  Shapiro-Wilk normality test  data:  x W = 0.9645, p-value = 0.0154  If we are to use the strong 1% significance level, the null of normality cannot be rejected in either case. Using the 5% size, however, we see that the SW test rejects the null while the AD one narrowly accepts it.   The results are conflicting and I do not know on which to place my trust. If I knew the power of each test, I could make up my mind so is there perhaps a way to obtain the power functions in R? The Normal distribution is easy to work with and it would make sense in my case seeing that my observations are test scores but I do not want to make farfetched assumptions.  I also have to say that personally, I am not convinced that the underlying distribution is normal. Please take a look at the histogram below, upon which I have fitted a normal distribution with the same mean and standard deviation.    It does not seem to be a good match. Below is the normal qq plot:    There is a hint of linearity but there are also a lot of outliers. As far as I know, the Shapiro-Wilk test is based on order statistics and it does not support the normality hypothesis.  If we were to reject the normality of my data, then what would be an acceptable distribution here? Note that we are looking for a negatively skewed one.  All suggestions are welcome. Thank you.  EDIT: This is my vector of observations in ascending order, i.e. the 89 order statistics, in case anyone wants to test it further:      sort(x)   19 32 37 37 37 42 42 45 45 45 46 46 46 47 47 48 48 50 51 54 55 55 55 55 55  55 55 56 56 56 56 57 57 58 58 58 60 60 60 60 61 61 62 62 62 62 62 62 62 62  62 62 63 63 63 65 65 65 66 66 67 67 67 67 68 68 68 68 70 70 71 71 71 72 72  75 75 76 76 77 77 77 77 77 78 78 78 80 81


The usage of the modal verb "should" in a sentence

I wonder what meaning of the verb "should" is used here in the sentence.     I was surprised that he should say such a thing.   The sentence is from English Grammar in Use by Raymond Murphy. Unit 34, part D.  I totaly don't get it, what meaning does "should" have here? My friend native said he doesn't know why here "should" is used, but said that I could easily replace it with "would" but I dont get it either, so I am here.  For me the sentence:     I was surprised that he had said such a thing.   looks far better. He commented the difference like:  1) It sounds like what he said is very out of character for him.  2) Here it's more simply surprise about what he said and doesn't really reflect on the person who said it.  Actually I don't get this explanation either, so I would like to see some detailed response to that subject.If it's correct rephrase that for me please. Thanks!


Model won't follow its armature in pose mode

I've set up a rig and built it around my model, and I've linked it to my model but when I rotate the bones in pose mode, the character doesn't move with them.   My rig is the human meta rig that comes with rigify. I've seen tons of videos of it working. Why isn't it working on mine?  My character was made by creating different body parts and joining them together into the same object, then a texture was added by unwrapping them in texture mode.


I use Ubuntu Server 16.04 on VirtualBox. I was installing Geonode according to :  sudo add-apt-repository ppa:geonode/stable sudo apt-get update   but I have this error:  E: some index files failed to download. they have been ignored or old ones used instead   I can't get the full output because I use VirtualBox but I took a screenshot:


I am trying to highlight background for entire section heading using   \documentclass{article} \RequirePackage{titlesec} \RequirePackage{charter} \RequirePackage[hmargin=.3in, vmargin=0.1in]{geometry} \RequirePackage{amsmath} \RequirePackage{textcomp} \RequirePackage{amssymb} \RequirePackage{enumitem} \RequirePackage{xcolor} \RequirePackage{graphicx} \RequirePackage{multicol} \RequirePackage{array} \titleformat{\section}{\large\scshape\raggedright}{}{0em}{\colorbox{gray}}[\titlerule] \titlespacing{\section}{0em}{0.5em}{0.25em} \begin{document} \section{Lobo} (Type your content here.) \end{document}   but it only highlights the text. How do I highlight the entire line ?


I am new to AWS and I have a question. I want to host a website on two EC2 instances. From what I read, if I stop the EC2 instance the public IP will change. In my case, Route 53 should route traffic to load balancer.  How can I configure my load balancer to route the traffic to EC2 instances without changing the IP if I change one of them? In other words, is there a way to have a fixed public IP to my two EC2 instances when they are switched off such that my load balancer routes the traffic to them?  Thanks.


Getting questions with >N views despite searching for questions with ≤N views

Trying to , I'm getting questions with more views than asked for.  For example, I tried to search for views:1..5 on CrossValidated, but I'm getting results with more views:    But the  actually has 117 views at the time of writing.


AMD Ati Radeon HD 4870 Drivers on Ubuntu 14.04

I have a computer with Ubuntu 14.04 installed and I have a Radeon HD 4870 (RV770) video card and I want to install Ati drivers but when I download it says this:  Distro Version entered incorrectly or not supported, use --listpkg to identify valid distro versions   The latest drivers in AMD web doesn't mention my graphic card so I don't know if it works...


Canon/Yongnuo YN-E3-RT compatible with Flashpoint strobes?

Can I use a Canon/Yongnuo YN-E3-RT radio controller to fire Flashpoint strobes? I don't need TTL, just manual control and firing.


At our company we have an migration scripts that converts all the old projects into a new relational database.   The migration script is a so called "ugly dragon" written by an colleague that is not working here anymore. It is one big mess written vanilla php with PDO without a exception structure.    No i have the problem that in the old database there are 43.415 records, after the migration there are 43.247 transferred. I know that there are 26 records not migrated because they had a duplicate value for a column that is now indexed as unique.  But the rest of 142 records are a big mystery for us.   Do any of you guys know a way two compare 2 tables in 2 different databases for missing records. There are some columns who stay the same in the new structure where i can query on.  I suck at mysql big time unfortunately, thats why i ask it to you guys.  Thanks in advance!  Edit: Comparing the whole database is not an option because almost everything has a new strucure. Old database was non relational, so for each field we create the relation and insert the fresh created ID. But the code field is a simple integer field with values that stayed the same.


I was having a conversation recently and used the word height. What stands out to me is that I pronounced it /haɪθ/ as opposed to /haɪt/. I realized that I pronounce it this way quite often.   Is this related to  or could it just be because of the pronunciations of width and length?  Follow up question: Is this a common phenomenon; is it something that's catching on and starting to become part of the English language?   I am a native speaker from the U.S.


The question is to find the largest value of prime $p \leq n$,  dividing $n! $  Attempt: Let $$ n! =1. 2. 3. 4......... p. 2p.... p^2... p^3.... n$$ It can be easily seen that these are $\lfloor n/p \rfloor$ terms which are divisible by $p$ and $\lfloor n/p^2 \rfloor$ terms which are divisible by $p^2$ and so on. But I don't understand that the highest power of $p$ that divides $n! $ is given by  $$\sum_{k=1}^j \lfloor \frac{n}{p^k}  \rfloor$$ where $k$ is the largest power of $p$ that is less than or equal to $n$.  Any help is appreciated . Thanks


Reentering a country with a different nation's passport

I'm a dual national, with two passports.  If I'm revisiting a country, which I've already visited in the past (over 1 year ago) with Passport A - would presenting Passport B to the immigration officer cause problems, knowing that Passport B does not contain previous Arrival/Departure stamps which are present in Passport A?  For what it's worth - both passports allow for Visa-Free entry and I have not overstayed/attempting to get around any Visa-Free restrictions.  This is not a duplicate as this is specifically about using dual passports to enter a third country.


How can I temporarily run a resource intensive process without overheating my CPU?

I have a 2015 Macbook Pro with 2.5 GHz, 16GB.  I'm trying to run someone's deep learning python script on my macbook. The program has to take in training data and process it. It maxes out my CPU. I ran the fans on max speed and it got part way through the process but because my CPU cores were hitting 90 degrees I had to quit the script early.


How does anyone know that Gollum had the Ring?

Sauron learned that Bilbo had the One Ring by torturing Gollum. But how did he know that Gollum had ever possessed the Ring?  Did Smeagol show someone the Ring before he became Gollum? Someone who could have told Sauron?  Or did he get caught looking for the Ring after it was stolen by Bilbo?


After my camera app crashed this process is running and consuming 42% of battery but today morning it disappeared but still my battery is draining out too quickly! Even restart doesn't help.   Screenshot (click image for larger variant)  How can I get things back to normal?


greatest common divisor of a cyclic group generator

I have been struggling with this for a very long time-in fact for a few days and it's preventing me from progressing-a severe hurdle.  Mainly,  1) what is $$\left \langle a^{k} \right \rangle$$? Is it read as the cyclic group generated by some element a to the power of k?  2) Can I have a step-by-step explanation as to how $$\left \langle a^{k} \right \rangle  \sqsubseteq  \left \langle a^{d} \right \rangle$$? To be specific, I cannot make the connection involved in 'and so'  I spent a couple of hours a day looking at this but it's not helping.  Edit: The link provided to the duplicate was not at all clear.  Topic in the other post clearly did not addressed the poster's question. It has also not answered my question on the implicit assumption made.


For each positive integer $n \geq 3$, determine the centre of $D_{2n}$ (help for understand)

For each positive integer $n \geq 3$, determine the centre of $D_{2n}$. Proof. Let $F$ be any flip and $R$ any rotation. Drawing out the effects of each operation, we find that $FR = R^{−1}F$. This is $RF$ if and only if $R= R^{−1}$. Letting $R = R_{360/n}$, we find that $R\neq R^{−1}$. Thus, no flip is central. In fact, $R = R^{−1}$ if and only if $R = R_0$ or $R = R_{180}$. If n is odd, there is no $R_{180}$, so $Z(D_{2n}) = {R_0}$. If $n$ is even, we see that $R_{180}$ commutes with every flip, and surely with every rotation, so $Z(D_{2n}) = \{R_{0}, R_{180}\}$. About this proof I have a couple of doubts. First:  Drawing out the effects of each operation, we find that $FR = R^{−1}F$. This is $RF$ if and only if $R= R^{−1}$  How can I determine that this is indeed generally true? Second:  $R = R^{−1}$ if and only if $R = R_0$ or $R = R_{180}$  This is clear, but how could it be proven? It must be said that it is not a very advanced material that I am studying. I hardly go by subgroups. Thanks in advance


Weight of a container of gas and container shape

Consider a cube shaped container with one mole of gas inside.  Acceleration due to gravity would give the difference in force between the top of the container and the bottom to be mg, with net force mg on the bottom, where m is the mass of the molecule.  I think I understand this idea, but what I am confused about is that at any one time, only a subset of the molecules collide with the bottom of the container at any instance in time; therefore, only a subset of all the molecules are contributing to the net difference in force - some, for example are colliding with the sides, some occupy the space within the container. So is the mass of the gas, determined by weighing, less than the actual mass of the gas?  What if I changed the shape of the container, so that the surface area in contact with the balance is greater or smaller? The pressure per unit area is the same for all sides, but the overall force on that surface is different.   I hope that makes sense, I would appreciate any help with this.


My old phone was lost or stolen so I'm trying to log into my Google account from a different phone but I dont remember my pass word and I didnt have a recovery email..I tried to use my girlfriends email but google said it couldn't verify it was me..so I dont know what to do


What actually happens to recorded but not displayed votes?

When a user votes, but they have under the rep requirement. Upvoting - less than 15rep; Downvoting under 125rep - () They get this message:  Thanks for the feedback! Votes cast by those with less than 125 reputation are recorded, but do not change the publicly displayed post score.   My question is, where exactly are they "recorded"? What happens to them?


I have a problem with cleveref. Apparently, it does not work with mdframed.  \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[left=2.50cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry} \usepackage{xcolor} % Definition of colors \definecolor{toc_heading}{RGB}{0 51 89} \definecolor{toc}{RGB}{0 119 138} \definecolor{section}{RGB}{0 113 187} \definecolor{subsection}{RGB}{0 115 207} \definecolor{headline}{RGB}{77 112 139} \definecolor{citecolor}{RGB}{0 124 48}  \usepackage{amsthm}  \usepackage[framemethod=TikZ]{mdframed} \mdfsetup{skipbelow=3ex} \newtheorem{dummy}{dummy}[chapter]   \newmdtheoremenv [%  hidealllines=true, leftline=true,  linewidth = 2pt,  linecolor=section,  leftmargin = 0,rightmargin = 0,%  skipabove=\dimexpr\parskip+10pt\relax,  innertopmargin = 0,splittopskip =3ex,  innerrightmargin=2ex,splitbottomskip=3ex,innerbottommargin=2ex,  ntheorem = false ,backgroundcolor=section!20% ]{theorem}[dummy]{Theorem} \usepackage{hyperref} \usepackage{cleveref} \crefname{theorem}{theorem}{theorems} \begin{document} \chapter{Chapter 1} \begin{theorem}\label{thm:1}    bla \end{theorem}  This is \cref{thm:1}.  \end{document}   This code produces: This is ?? 1.1.   Has anyone encountered a similar problem?


I am struggling with the following equation, which I need to proof by induction:  $$\sum_{k=1}^{2n}\frac{(-1)^{k+1}}{k}= \sum_{k=n+1}^{2n}\frac{1}{k}$$  $n\in \mathbb{N}$. I tried a few times and always got stuck.  Help would be appreciated.


Is this section layout on Area51 intentional?

I've viewed  on a wide range of different browsers in the recent past, and every time it looked like this:    I don't know about you but to me, that vast expanse of emptiness in the center seems... superfluous, at best.   Is this intentional? Why not make the tabs go horizontal, or be two rows? I can't imagine why it would be desirable.  The screenshot was taken using Chrome 47.0.2526.111 on Linux.


Prove by induction that for all $n \geq 3$: $n^{n+1} > (n+1)^n$

I am currently helping a friend of mine with his preperations for his next exam. A big topic of the exam will be induction, thus I told him he should practice this a lot. As at the beginning he had no idea how induction worked, I showed him some typical examples.  Now he showed me an exercise he was having trouble with, which states that one should prove $$n^{n+1} > (n+1)^n$$  for all $n \geq 3$. I have to admit that I too have trouble showing this inequality, as in all of my attempts, my lower bound is too low. Also, I have not yet figured out, how one gets the $(n+2)^{n+1}$, primarely the number $2$ is a problem. I think this might be solved using the binomial theorem, however, I don't think they have already seen the binomial theorem in school.  Is there an easy method to show this inequality by induction not using the binomial theorem? If no: How can one show it using the binomial theorem?  Thanks for answers in advance.


Lightning Components Basics: Attributes and Expressions Trail

The error :      The Packed field is either not using the lightning input component,   the checked value of the item's Packed__c attribute or the correct   type of input.   My Code:  <aura:component >     <aura:attribute name="item" type="Camping_Item__c"                      required="true"                     default="{Name:'Tent', Price__c:100, Quantity__c:1, Packed__c:true}"                     />         <p> The Item is <ui:outputText value ="{!v.item}"></ui:outputText></p>          <ui:outputText value="{!v.item.Name}"/>     <lightning:input type="toggle" label="Packed" name="togglevalue" value="{!v.item.Packed__c}" />     <lightning:formattedNumber value="{!v.item.Price__c}" style="currency" currencyCode="USD" currencyDisplayAs="symbol"/>      <lightning:formattedNumber  value="{!v.item.Quantity__c}"/> </aura:component>


Saving a apt-get file for future installations, how do I do it?

I have a terribly limited download allowance and have multiple computers. So, my questions folks is. Would I be able to save what has been installed thru apt-get and any other terminal installations I attempt?


Defining a shortcut for \end{frame} gives an error in beamer

\documentclass{beamer}  \def\efr{\end{frame}}  \begin{document} \begin{frame} Test \efr % \end{frame}  \end{document}   Why this document fails  $ pdflatex main.tex Runaway argument? \let \AtEndDocument \@firstofone \@enddocumenthook \@checkend {docume\ETC. ! File ended while scanning use of \beamer@collect@@body. <inserted text>                  \par    I want to define shortcuts \bfr and \efr for a frame.


Skew symmetry of indices in cocycles of Cech cohomology

In Cech cohomology, the coboundary operator $$\delta:C^p(\underline U, \mathcal F)\to C^{p+1}(\underline U, \mathcal F) $$ is defined by the formula $$ (\delta \sigma)_{i_0,\dots, i_{p+1}} = \sum_{j=0}^{p+1}(-1)^j \sigma_{i_0,\dots, \hat {i_j},\dots i_{p+1}}{\Huge_|}_{U_{i_0}\cap\dots\cap U_{i_{p+1}}}. $$ In the book by Griffiths and Harris, the authors claim that $\delta\sigma=0$ implies the skew-symmetry condition $$ \sigma_{i_0,\dots,i_p} = -\sigma_{i_0,\dots, i_{q-1},i_{q+1},i_q,i_{q+2},\dots,i_p}. $$ How can I see this?  EDIT: Or is it possible that the skew symmetry is merely an assumption for all cochains?