I'm having troubles with one of the problems in the book Introduction to Commutative Algebra by Atiyah and MacDonald. It's on page 11, and is the last part of the second question.  Given $R$ a commutative ring with unit. Let $R[x]$ be the ring of polynomials in an indeterminate $x$ with coefficients in $R$. We say that a polynomial $f = \sum\limits_{i=0}^n r_ix^i \in R[x]$ (with coefficients $r_0, r_1, \ldots, r_n$) is primitive if $\langle r_0,r_1,...,r_n\rangle = R$, i.e., the ideal generated by the coefficients of $f$ is $R$. Let $f$ and $g$ be two polynomials in $R[x]$. Prove that $fg$ is primitive iff $f$ and $g$ are both primitive.  The $\Rightarrow$ part is easy. Say, $f = \sum\limits_{i=0}^n r_ix^i$, $g = \sum\limits_{i=0}^m s_ix^i$; then $fg = \sum\limits_{i=0}^{m+n} c_ix^i$, where $c_k = \sum\limits_{i + j = k}r_is_j$. Since $fg$ is primitive, there exists a set of $\{\alpha_i\} \subset R$, such that $\sum\limits_{i=0}^{m+n} \alpha_ic_i = 1$, to prove $f$ is primitive, I just need to write all $c_i$'s in terms of $r_i$'s, and $s_j$'s, then group all $r_i$ accordingly, rearranging  it a little bit, and everything is perfectly done. And the proof of the primitivity of $g$ is basically the same. The $\Leftarrow$ part is just so difficult. Say $f = \sum\limits_{i=0}^n r_ix^i$, $g = \sum\limits_{i=0}^m s_ix^i$ are both primitive, then there exists $\{\alpha_i\}; \{\beta_i\} \subset R$, such that $\sum\limits_{i=0}^{n} \alpha_ir_i = 1$, and $\sum\limits_{i=0}^{m} \beta_is_i = 1$. At first, I thought of multiplying the two together, but it just didn't work. So, I'm stuck since I cannot see any way other than multiplying the two sums together. I hope you guys can give me a small push on this. Thanks very much in advance, And have a good day.


Tikzexternalize not compatible with Miktex 2.9 abntex2 package

The folowing code works correctly inside Texlipse together with Miktex 2.9 x64. The tikzexternalize option is used to speed up the compilation process, just make sure the  mode is enables exclicitly passing the -shell-escape argument to the compiler.  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[prefix=figures/]  \begin{document}  \begin{tikzpicture} \node[draw, circle, minimum width=1cm] {}; \end{tikzpicture}     \end{document}   Now, when the article class is replaced by the abntex2 class as the following code, the pdf file is not generated inside figures folder any longer.  \documentclass[     % -- opções da classe memoir --     12pt,               % tamanho da fonte     openright,          % capítulos começam em pág ímpar (insere página vazia caso     % preciso)     twoside,            % para impressão em verso e anverso. Oposto a oneside     a4paper,            % tamanho do papel.     % -- opções da classe abntex2 --     %chapter=TITLE,     % títulos de capítulos convertidos em letras maiúsculas     %section=TITLE,     % títulos de seções convertidos em letras maiúsculas     %subsection=TITLE,  % títulos de subseções convertidos em letras maiúsculas     %subsubsection=TITLE,% títulos de subsubseções convertidos em letras maiúsculas     % -- opções do pacote babel --     english,            % idioma adicional para hifenização     french,             % idioma adicional para hifenização     spanish,            % idioma adicional para hifenização     brazil              % o último idioma é o principal do documento     ]{abntex2}  \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[prefix=figures/]  \begin{document}  \begin{tikzpicture} \node[draw, circle, minimum width=1cm] {}; \end{tikzpicture}  \end{document}   Then the console shows the following information where the main tex file name is DissDaniel.tex:  pdflatex.exe> ===== 'mode=convert with system call': Invoking 'pdflatex -shell-escape -halt-o pdflatex.exe> n-error -interaction=batchmode -jobname "figures/DissDaniel-figure0" "\def\tikz pdflatex.exe> externalrealjob{DissDaniel}\input{DissDaniel}"' ======== pdflatex.exe>  pdflatex.exe> ! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e pdflatex.exe> rror -interaction=batchmode -jobname "figures/DissDaniel-figure0" "\def\tikzext pdflatex.exe> ernalrealjob{DissDaniel}\input{DissDaniel}"' did NOT result in a usable output  pdflatex.exe> file 'figures/DissDaniel-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Plea pdflatex.exe> se verify that you have enabled system calls. For pdflatex, this is 'pdflatex - pdflatex.exe> shell-escape'. Sometimes it is also named 'write 18' or something like that. Or pdflatex.exe>  maybe the command simply failed? Error messages can be found in 'figures/DissD pdflatex.exe> aniel-figure0.log'. If you continue now, I'll try to typeset the picture. pdflatex.exe>  pdflatex.exe> See the tikz package documentation for explanation. pdflatex.exe> Type  H <return>  for immediate help. pdflatex.exe>  ...                                               pdflatex.exe>                                                    pdflatex.exe> l.32 \end{tikzpicture}


If a Wild Shaped Druid takes extreme damage due to the Fire Elemental’s Water Susceptibility trait, does the damage carry over to their normal form?

I had a situation come up in my game tonight where a gunslinger opponent used powerful shot to push the druid, who was wild shaped into a fire elemental, off a ship into the ocean. The fire elemental specifically has an "ability" where if it has water splashed on it it takes 1 point of cold damage per gallon of water. The amount of water in a 10ftX10ft cube is thousands of gallons. Naturally this means it takes thousands of cold damage and kills the fire elemental form. My question is would this cold damage, which is only a result of a specific fire elemental vulnerability to water, carry over and also kill the druid? In the moment I ruled it didn't, mostly out of fairness because that situation already really sucked for him, and I didn't think it was fair to kill him outright, even though turning into a fire elemental on a ship is a bad idea for a number of reasons, but I'd like to know for the future.


Fixed Distance Buffer distance not working on polygons with holes

I am trying to implement this solution (), but when I create a buffer around my polygons, those with holes are ignored. I tried to Delete Holes using the processing tool. It does fill the "real" holes but these features:     are not filled in. Polygons with these are also ignored when I try to buffer them...  If I try to fix them manually, I get this:    Also, these polygons were created from a raster using polygonize. How do I go about being able to create a buffer around such polygons?


How to rename a part of file using find command in directory and sub directories

I have a lots of log file in a directory and it's sub directory named as dataupload_sales_.xxx.com.dat. I wanted to change all files xxx.com part to yyy.com in current and sub directories.  i hope it's not a duplicate post as i have search the forum and tried few option but none of them worked. some post suggested to use rename and it's only rename in single file. where i have 5000+ sub directories in my directory and every sub directories have 100+ .dat files.  i have also tried  find ./ -name "xxx.com" -exec bash -c 'mv $0 $(echo "$0" | sed -r \"s|xxx.com|yyy.com|g\")' '{}' \;   it shows invalid directory error


Prove with Induction but without using the Binomial theorem

To prove with Induction but without using the Binomial theorem. $$  {n\choose k }  \in \mathbb{N} $$ $  \forall n, k \in \mathbb{N}  $ with $ n \geq k $ I proved it already using the Binomial theorem but I am absolutely stuck right now, I dont know where to start here, can somebody help please..? Thanks in advance!


Using 'just like' in a sentence with subject + object

I always use "just like" + noun, plus also see some sentences using this form with subject + object.  I have not seen any particular English lessons for this usage, could someone explain me how I can use "just like" in a different situation. For example, is the sentence below are correct?     You can find the proper description on the prospectus of the machine just like everyone does.   I want to emphasis that everyone finds clear information in this prospectus before running the machine.


On a ring $R$ where $x^2 = x$, we must have that $2x = 0$ and $R$ is commutative

I want to show that on a ring $R$ where $x^2 = x$ for all elements $x$, we must have that $2x = 0$ and $R$ is commutative. Does my answer look sound?  Well, if $x = 0$ we have that $x^2 = x$ is trivially true.  If $x \neq 0$ then $x^2 = x$  $\Longleftrightarrow x \cdot x = x$  $\Longleftrightarrow x \cdot x \cdot x^{-1} = x \cdot x^{-1}$  $\Longleftrightarrow x = 1$  I.e. the only non-zero element that we can possibly find in $R$ is $1$.  So $R = \{0, 1\}$ and as $1 + 0 = 1$ the only way we can satisfy the additive inverse ring axiom is if $1 + 1 = 0$.  I.e. $2(1) = 0 \Longleftrightarrow 2x = 0$  $R$ must be commutative because if we take two elements from $R$, e.g. take $a = 0$ and $b = 0$ such that $ab \neq ba$ we will have that $ab$ is either $0$ or $1$.  $ab = 1$ is not possible as $a = b = 0$.   If $ab = 0 \implies ba = 1$ and this is not possible as again $a = b = 0$.


I don't understand why is the "tunnel" metaphor used to describe a networking tunnel.  At first I thought the reason was because the data sent is encrypted, and so an eavesdropper will not be able to see the data (he sees the data wrapped in a tunnel!).  But what about the tunneling protocols that do not use encryption, why are they also called a "tunnel"!


how to prove if $m^{2}|n^{2}$ then m|n just hint please.

How to prove the following?:  Let $m,n\in \mathbb{N}$ ; $ \;m^{2}\mid n^{2}\Longrightarrow \;\;m\mid n$  Just a hint please. I tried two ways but did not work.


Which programming language java or c# should I learn for selenium automation testing?

I am in manual testing from last 5+ years and having a sound experience in it. Now I want to switch in automation testing and want to start with Selenium.  I don't have any programming experience or knowledge in either Java and C#.


Radius of convergence of $\sum_{n\ge 1}\frac{z^n}{n}$

In one exercise it is asked to find the radius of convergence of  $$\sum\limits_{n\ge 1}\dfrac{z^n}{n};$$ then it is asked to find two values $z_1,z_2\in U=\bigg\{z\in\mathbb{C},|z|=1\bigg\}$ such that $\sum\limits_{n\ge 1}\dfrac{z_1^n}{n}$ diverges and $\sum\limits_{n\ge 1}\dfrac{z_2^n}{n}$ converges.  I've found the Radius $R=1$, $z_1=1$ and $z_2=-1$  Then the correction says the following: it is possible to prove with a more difficult technique that $\sum\limits_{n\ge 1}\dfrac{z^n}{n}$ converges for all $z\in U\backslash \{1\}$. But the correction doesn't provide the result of this proof. Have you got an idea please?


Sorry for the "newbie" question.    When I create an object on the "stage", especially a large object, if I push it far into the back ground, it starts to disappear.  If I push far enough it seems to disappear behind some invisible wall.   Is there a limit to how far the horizon is in Blender? Can that be changed somewhere in settings?  I don't see any obvious settings that effect that.  Thanks for your help!  RonK95


Calling a Method in java depending on a given string

I want to call a method in java with a given string like this for example:  String string = "HelloWorld"; main.string();   I want something like this to call the method defined in the string, would that be possible? If not (which I am kind of expecting), are there alternatives?


Cannot change (add) an edit description after making the edit

This seems like a bug to me, but it may be that I misunderstand the feature.  I recently made an edit to an answer (it was in fact ), and as per usual I forgot to give a reason for my edit. Normally this wouldn't bother me as any edits I make are usually obvious as to why they have been made, but in this case (a rollback) I felt it important to give my reasons why.  So I clicked the "Edit" link under my rollback - which by the way had a current auto-generated description like "rollback to revision 2" - I added in my "Edit Summary" and then clicked "Save Edits". It submitted fine, but the description was not changed. I tried this a second time with the same results.  Is this the expected behavior for this action? In which case I assume it's because there is no change to the code/title/tags?   If it is working "as designed", then I would suggest that the user is notified with a warning that this edit will not have any effect, giving the reasons why.    I think the best way to replicate this issue/query is as follows:   Go to the edit history for a post you have previously edited Click the "edit" link under the heading of your edit Change (or add) an "Edit Summary" Click "Save Edits"   It should appear successful (it submits fine), however no change will have been made


$P(n)$ is the statement $n! < n^n$, where $n$ is an integer greater than $1$.   I found a solution online here (...  But I don't understand how they got from one step to the next.   One user gave me the explanation:   So we start with: $(k+1)! = (k+1) \cdot k!$   Now, since $P(k)$ is true, $k! < k^k$, therefore: $(k+1) \cdot k! < (k+1) \cdot k^k $  Obviously, $k < (k+1)$, therefore: $(k+1) \cdot k^k < (k+1) \cdot (k+1)^k$  And finally: $(k+1) \cdot (k+1)^k = (k+1)^1 \cdot (k+1)^k = (k+1)^{k+1} $.   What I don't understand is how they got from the 2nd step to the third step.   Please explain it.


Is there a way to calculate the improper integral $\int_0^\infty \big(\frac{\ln x}{x - 1}\big)^2 dx$?  What have I tried:  $$\int_0^\infty \Big(\frac{\ln x}{x - 1}\Big)^2 dx = \int_0^1 \Big(\frac{\ln x}{x - 1}\Big)^2 dx + \int_1^\infty \Big(\frac{\ln x}{x - 1}\Big)^2 dx = \int_1^\infty \Big(\frac{\ln x}{x - 1}\Big)^2dx + \int_1^\infty\Big(\frac{\ln t}{\big(\frac{1}{t} - 1\big)t}\Big)^2dt = 2\int_1^\infty \Big(\frac{\ln x}{x - 1}\Big)^2dx$$  From the above statement we can conclude, that the integral does indeed converge, as $0 \leq (\frac{\ln x}{x - 1})^2 \leq \frac{C}{(x - 1)^{\frac{3}{2}}}$, for some constant $C$. However, this new form of the integral is not much helpful in finding its exact value.  I also tried substituting $z = \ln x$ , then $dz = \frac{dx}{x}$. Then the integral becomes reduced to $2\int_{0}^{\infty} \frac{z^2}{e^z(e^z - 1)^2}dz$, which, unfortunately, also does not seem to be any easier.


I learned about the conversion safety today, where an NCAA team attempting an extra point can get a one-point safety if the kick is blocked but the defending team takes the ball into the endzone and gets tackled.  I couldn't figure out if this is the case, but I was wondering if the defending team could score one point in the same way. Suppose the kicking team attempts the extra point, which is blocked and grabbed by the defense, and they run it back - but the player with the ball fumbles it close to the endzone, and a player from the kicking team recovers it but his momentum carries him into the endzone, where he is tackled. I realize this is a very implausible situation, but would this be a way that a team could theoretically finish with a score of 1?


How to Truncate a string in PHP to the word closest to a certain number of characters?

I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage.  The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't display more than, say, 200 characters.  I could use substr() to chop off the text at 200 chars, but the result would be cutting off in the middle of words-- what I really want is to chop the text at the end of the last word before 200 chars.


Recently I cannot install software, I am using Ubuntu 17.04

Recently, I could not install some new software such as gnucash and vlc neither from Ubuntu Software nor from terminal, other software download just fine. I am using Ubuntu 17.04, is it because it is on EOL?


How can you move or transfer a Minecraft root folder to another drive?

I have recently gotten my hands on a new computer (MSI G Series GS70 STEALTH-037 - specs below if relevant) that has a Solid State Drive (SSD) that goes along with my hard drive (HDD). I would like to move Minecraft to the SSD is because it will be a lot smoother and faster than on the hard drive. How can I move/transfer/change Minecraft from using the typical root it goes to in the %appdata% folder to the SSD drive? PC Specs:  CPU: Intel Core i7-4700HQ 2.4 GHz (6 MB Cache) RAM: 12 GB DDR3L SDRAM Drives: 750 GB 7200 rpm Hard Drive, 128 GB Solid-State Drive Display/Graphics: 17.3-Inch Screen, NVIDIA GeForce GTX860M with 2GB GDDR5 VRAM OS: Windows 8.1


Show that $f$ is convex if and only if $f\left( \sum_{i=1}^m\lambda_ix_i \right) \leq \sum_{i=1}^m\lambda_if(x_i)$

I need to prove the following statement     Let $S \subset \mathbb{R}^n$ a nonempty convex set and $f: S \to \mathbb{R}$. Then $f$ is convex in $S$ if and only if $f\left( \sum_{i=1}^m\lambda_ix_i \right) \leq \sum_{i=1}^m\lambda_if(x_i)$ for al $m \in \mathbb{N}$, for all $x_1, \dots, x_m \in S$ and for al $\lambda_1, \dots, \lambda_m > 0$ such that $\sum_{i=1}^m\lambda_i=1$   My try: I think I managed to prove the backwads implication. Let $m=2$, and since $\lambda_1 + \lambda_2=1$ then $\lambda_2 = 1-\lambda_1$, so  $$f(\lambda_1x_1+\lambda_2x_2)=f(\lambda_1x_1+(1-\lambda_1)x_2) \leq \lambda_1f(x_1)+(1-\lambda_1)f(x_2)$$ since $f$ is convex in $S$ by assumption.  For the forward implication, I thought that induction might work. The case when $m=1$ is trivial. However, I'm struggling to prove the general case. Any help with that step will be highly appreciate. Thanks in advance!


Why do shares in some companies that have a net loss annually increase in price?

I have recently noticed in some companies (technology-based ones in particular) that they end up in a net loss in their annual report (sometimes for the past several years), although their share prices still increase (e.g. Atlassian, Salesforce, etc). Of course, no one can (probably) describe exactly "why" this occurs, but I'm curious to hear your thoughts. Cheers!


Does adding salt when soaking dry beans toughen or soften the skin of the bean?

I have heard opinions on both sides of this.  The the latest  quoted Cooks Illustrated (I can't see the article, but I trust CI), while another .  In case is varies by bean, I'm interested in:   Kidney Beans Black Beans Small Red Beans   So which is it? Inquiring Minds want to know.


Cannot set LD_LIBRARY_PATH in /etc/profile.d

I have installed nVidia CUDA 7.5 in Ubuntu Mate 16.04. However, I am having trouble setting up the environment variables.  Here is the nvidia-settings.sh file that I have in /etc/profile.d folder:  export PATH=/usr/local/cuda-7.5/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:/usr/lib/nvidia-361:$LD_LIBRARY_PATH export LIBRARY_PATH=/usr/lib/nvidia-361:/usr/local/cuda-7.5/lib64:$LIBRARY_PATH   However, after reboot the LD_LIBRARY_PATH environment was not automatically available. Here is the terminal output that shows the issue:  ponir@mate:~$ echo $LD_LIBRARY_PATH  ponir@mate:~$ echo $LIBRARY_PATH /usr/lib/nvidia-361:/usr/local/cuda-7.5/lib64: ponir@mate:~$ export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:/usr/lib/nvidia-361:$LD_LIBRARY_PATH ponir@mate:~$ echo $LD_LIBRARY_PATH /usr/local/cuda-7.5/lib64:/usr/lib/nvidia-361: ponir@mate:~$    But after executing export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:/usr/lib/nvidia-361:$LD_LIBRARY_PATH in Terminal I could get that variable.  What could be the issue? Thanks.


I have a question regarding writing a PDF in LATEX. I need to use diacritcs and I found out how to use some of them, but I can't add the 'ă' symbol. How can I do that?


I am getting Null pointer Exception while fetching data from the excel sheet

Code: public class ContactUsFormTest {  WebDriver driver; @BeforeMethod public void run() { System.setProperty("webdriver.chrome.driver", "Driver Path"); driver=new ChromeDriver(); driver.get("URL"); driver.manage().deleteAllCookies(); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);  } @Test(dataProvider="contactUs") public void contactUs(String firstname,String preference,String lastname,String email,String text,String phone) throws InterruptedException {         driver.findElement(By.id("first_name")).sendKeys(firstname);     //drop down handling     Select sel = new Select(driver.findElement(By.id("preference")));     sel.selectByVisibleText(preference);     driver.findElement(By.id("last_name")).sendKeys(lastname);     driver.findElement(By.id("email")).sendKeys(email);     driver.findElement(By.id("textarea")).sendKeys(text);     driver.findElement(By.id("phone")).sendKeys(phone);     Thread.sleep(2000);     driver.findElement(By.name("submit")).click();     Thread.sleep(3000);     //Validation     Assert.assertTrue(driver.getTitle().contains("Successful submission"), "Page title verified-Submission UnSuccessful");     System.out.println("Page title verified-Successful submission");  }  @DataProvider(name="contactUs") public String[][] formData() throws Exception {     Thread.sleep(3000);     ExcelDataConfig eData=new ExcelDataConfig("Excel sheet path");     int rows=eData.getRowCount(0);         String[][] data1=new String[rows][6];         for(int i=0;i<rows;i++)     {         data1[i][0]=eData.getData(0, i, 0);//first name         data1[i][1]=eData.getData(0, i, 1);//preference         data1[i][2]=eData.getData(0, i, 2);//last name         data1[i][3]=eData.getData(0, i, 3);//email         data1[i][4]=eData.getData(0, i, 4);//text         data1[i][5]=eData.getData(0, i, 5);//phone     }     return data1;  }  } I am fetching the data from the excel sheet while performing test I am getting below error. Error: [Utils] [ERROR] [Error] java.lang.NullPointerException at dataDrivenFramework.dataDrivenFramework.ExcelDataConfig.getData(ExcelDataConfig.java:31) at dataDrivenFramework.dataDrivenFramework.ContactUsFormTest.formData(ContactUsFormTest.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) Here is ExcelDataConfig class: public class ExcelDataConfig { XSSFWorkbook wb; XSSFSheet sheet1;  //Constructor public ExcelDataConfig(String excelpath) {          try {     File file=new File(excelpath);      FileInputStream fis=new FileInputStream(file);     wb=new XSSFWorkbook(fis); }  catch (Exception e) {          System.out.println(e.getMessage());  }  }  public String getData(int sheetNumber,int row,int column) {     sheet1=wb.getSheetAt(sheetNumber);     String data=sheet1.getRow(row).getCell(column).getStringCellValue();          return data; }   public int getRowCount(int sheetIndex) {     int row=wb.getSheetAt(sheetIndex).getLastRowNum();     row=row+1;     return row;      }  } I have no clue why I am getting this.


Is it possible to make generic method signature implementing generic + interface?

Is it possible to use generics something like that in Java 1.7?  class Test<T> {     public <Z extends T & Serializable> void method(Z test) {        ...     } }   I would like my method to accept only objects of generic type  which implements specific interface.


Door closer for a door that is not leveled to the wall.

I would like to put a door closer in a door. The problem is that the door is not like a normal door as the one below:   the door has no walls to its side or above it. It's like a door in the middle of a tunnel. Like this:   Because of this I can't use a normal door closer like the one in the first drawing. Do you guys know of any door closer that can be used in a door installed like this?


If a creature attacks a target warded by Sanctuary but fails the save, do they lose the attack/spell if there is no other target immediately in range?

Take a simple scenario as an example:  A cleric casts sanctuary An enemy wielding a spear attempts to make a melee attack at the cleric with his spear The enemy fails his Wisdom save, and thus can't attack the cleric  Now what? According to the  spell description:  On a failed save, the creature must choose a new target or lose the attack or spell.  No one else is currently in melee range, but others are within move distance. What happens to the enemy's intended attack, after failing the Wisdom save?  Do they simply lose the attack if there is no other target immediately in range, causing that spear attack to be wasted? Does the enemy now get to "hold" the melee spear attack, use movement to get in melee range with someone else, and then resume the same melee spear attack on the new target? Can the enemy choose to make a different kind of attack with the same weapon, and decide to throw the spear instead (at someone else)? Can the enemy choose to attack with a different weapon, such as a shortbow, and attack someone else instead (either before or after moving)? Can the enemy choose to cast a spell instead of making a weapon attack?


I am using 32-bit Ubuntu 14.4 LTS.  How can I tell if my computer can run a 64-bit os? I am confused between architecture and CPU op-mode.  An excerpt from /proc/cpuinfo:  $ grep " lm " /proc/cpuinfo flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx **lm** constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dtherm tpr_shadow vnmi flexpriority   Output from lscpu:  kamal@kamal-G31T-M7:~$ lscpu Architecture:          i686 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                2 On-line CPU(s) list    0, 1 Thread(s) per core:    1 Core(s) per socket:    2 Socket(s):             1 Vendor ID:             GenuineIntel CPU family:            6 Model:                 23 Stepping:              10 CPU MHz:               2793.084 BogoMIPS:              5586.16 Virtualization:        VT-x L1d cache:             32K L1i cache:             32K L2 cache:              2048K …


I downloaded MalwareBytes from their website and ran it twice I think. What other malware scanners are out there?  I suspect it is malware because I keep my laptop super clean, i scan every week using malwarebytes, avira and spybot. All of a sudden my web browser has begun showing me "deals" at the top of the page and it pops up with "better prices" whenever I go to online shops. Now my computer has been acting laggy and weird, also when I turned on the machine today it had to do a disk check and repair a file which I was not readily aware of. (it had to repair something deep inside the directories).  To further my suspicions, this is the first time I was ever prompted to do a disk check on this machine. Just bought it about 6 months ago and once i got this strange toolbar on my computer WITHOUT MY CONSENT now I'm having issues with Chrome crashing and my computer doing checks on itself, luckily it has certain self-repair systems in place but I don't want to have to run these all the time or risk serious damage to my laptop.


How do wizards amass their gold, do they conjure it?, or is it  inherited, can't they just magic it, how does finance work In the wizard in community


Algebraic proof of equality of characteristic polynomials for AB and BA

It is somewhat well-known that matrices $AB$ and $BA$ have the same characteristic polynomial, but all the proofs that I have seen use some field-specific property to prove the result (some use the fact that a finite degree polynomial with infinitely many zeroes must be zero, and some use some kind of metric and limits), but the result should be true for all fields and should therefore have a purely algebraic proof. I would be very grateful if someone familiar with such a proof would post it here.


Event Log Monitoring from salesforce API

Below is my requirement: I have to track the event(eg: URI event) from event log file without manually using workbench or REST explorer. It means I have to write a code where it queries the URI event from log file and gives me an output with csv formatted logfile. Here manually I should not use workbench to hit the webservice.everything should be automated in my code and I get the output with daily running batch job(example).  Please do suggest me an idea of how to overcome this.  Thanks In Advance Sravika


Line/word wrapping in revision history and responses tab (and probably other places)

and        ()   I just noticed that change. I didn't find new reports under .  Note the names and badge count in the first screenshot, and the badge count in the second one.  PS I can't link to the responses tab as it shows only to the profile owner.


I have noticed in that past 24 hours that two rigid and straight "lines" have developed as bulges on my Mid 2010 MacBook Pro 15 inch.  They are noticeable when looking at it in the light and you can easily feel that they are raised above the case.  They appear on the outer shell of the case (right of the mouse and near the keyboard)  The bottom of the Mac is not warped. The hard drive also appears to be in good condition.  Initially, I thought this was due to a battery failure and removed the battery. Despite this, the battery was fine (not warped or bulging). I noticed that the two bulges in the case appear over where the hard drive is in a MacBook Pro.  There is also a "semi circular" bulge near these two lines.  What could be causing these if it is not the battery? Also, is there any chance that these bulges could expand?   Edit: After further inspection it appears to have occurred exactly over the bridge that holds the hard drive in place. (the long black piece with the two screws in it).   I have added a picture. Sorry, they are really hard to see.    Note: The two lines look like shadows and are somewhat difficult to see in (any) photo.  Edit: more photos    The second image (below) shows what is under the bulge. Maybe something looks out of place?


Is there a domain "larger" than (i.e., a supserset of) the complex number domain?

I've been teaching my 10yo son some (for me, anyway) pretty advanced mathematics recently and he stumped me with a question. The background is this.  In the domain of natural numbers, addition and multiplication always generate natural numbers, staying in the same domain.  However subtraction of a large number from a smaller one needs to "escape" into the domain of integers, and division may result in escape to the real domain (like 3 / 5 -> 0.6).  It was a simple step from there to taking the square root of a negative number, hence requiring the escape into the complex domain, such as 4+7i.  He quite easily picked up that each of these domains was a superset of another, natural -> integer -> real -> complex.  However, he then asked if an operation on a complex number would require yet another escape, a question I had to investigate. Now, it turns out that the square root of a complex number is simply another complex number along the lines of mathematical distribution: (a+bi)2 -> a2 + 2abi - b2, from memory.  But I'm wondering if there are other mathematical operations performed on complex numbers (or any of its subset domains) that can't be represented within the complex domain.  Apologies if I've used the wrong terms, it's been about 30 years since I did University level math.


Diagonalizable Operators and characteristic polynomials

Let $A$ be an $n\times n$ diagonal matrix with characteristic polynomial $(x-c_1)^{d_1}\cdots(x-c_k)^{d_k}$, where $c_1,\ldots,c_k$ are distinct. Let $V$ be the space of $n\times n$ matrices $B$ such that $AB=BA$. Prove that the dimension of $V$ is $d_1^2+\cdots+d_k^2$.


How to selectively create a directory, copy files and run a batch file in InnoSetup

PostgreSQL is bundled into my application, and with InnoSetup, the necessary directories/files are created/copied then Installer runs the required batch file to create a service. It works well.  Extracted from my config.  [Dirs] Name: "{app}\InternalDatabase" [Files] Source: "C:\MyApplication\InternalDatabase\*";         DestDir: "{app}\InternalDatabase"; Flags: ignoreversion recursesubdirs createallsubdirs [Registry] Root: HKLM; Subkey: "Software\MyApplication"; ValueType: string; ValueName: "InstallationPath"; ValueData: "{app}" ; Flags: uninsdeletekey   I have noticed that in case I just need to replace other application binaries, I should not create PostgreSQL's directories/files which is a default action within my InnoSetup config. So, I am looking for the way I can skip this action if PostgreSQL is already configured in the system(Windows).  Can you let me know how I can Create Directory/Copying Files/Run a batch file selectively? For now, I think I should put the PostgreSQL registry information, and I should check if there is or not to decide whether I should do all of the default things or just skip the PostgreSQL part.  Any example would be very appreciated.


When are targets picked for spells with multiple "missiles"?

For spells like Magic Missile and Scorching Ray that involve multiple ranged attacks, when do you pick targets for each ray/missle?   Do you pick them all up front and then roll attack/damage? Or do you pick one, roll attack/damage, and repeat?


So what was the secret behind the stainless steel of Doc's Delorean?

"If your going to build a time machine why not do it with some style besides the stainless steel construction made the flux dispersal.....watch out!"  He never got to finish his statement what was he going to say about the steel?                                0.19 seconds.  What do you theorize the rest of his speech was meant to say? What was special about the steel casing? Could his flux capacitor have worked on his tow truck if he wanted to?


Switching the order of block elements with CSS

Short Story Let's say my HTML is already set in stone:
Block A

Block B

Block C
  It will look like this: ------------ | Block A  | ------------ | Block B  | ------------ | Block C  | ------------  Now I want to switch the order of the blocks. How can I do that with only CSS? ------------ | Block C  | ------------ | Block A  | ------------ | Block B  | ------------  I'm aware there's hacky solutions such as using position:absolute, but this doesn't preserve the effective use of the display:block property. That is, blocks push other blocks downward when they grow in size. Long Story When user uses a computer to view my webpage, the blocks are displayed in this order:  General info. Event schedule. iPhone app advertisement  The iPhone app advertisement is placed last because it's not terribly important to computer users. A small percentage of computer users will whip out their phone and install the app. If a mobile user comes to this site, the iPhone app advertisement should be the most important thing on the page. Therefore, it should be moved to the top:  iPhone app advertisement General info. Event schedule.  I would like iPhone and computer users to share the same HTML, but have a CSS media query switch the order of the blocks. @media only screen and (max-device-width: 480px) {    #blockC {       /* magic order switching */    } }


How to refer to a range of items on a list on python?

Let's say I have a program that generates lists   list1 = [a, b, c, d, e, f, g] list2 = [a, b, c, d, e, f, g, h, i, j, k, l, m] list3 = [a, b, c, d, e, f, g, h, i, j, k, l, m, o, p]   how can i write a piece of code that extracts all the items from a given index  all the way to the end and assigns them to a new variable?  For example, if I want to get all the items from index 3 to the end of the list of list3 and assign them to list4  list4 = [d, e, f, g, h, i, j, k, l, m, o, p]   I am repeating myself when I say 'to the end' beacuse I need something that works for all the lists that variy in ranges.


I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use pgfplots for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric.  Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures.  Having studied the pgfplots documentation, I haven't found a draft mode, but I'm interested in knowing if one could be created.    I'm envisaging something similar to the draft mode of the graphicx package, in which graphics are not included, and blank boxes are put in their place.  Some things I've considered:   the  documentclass; but with about 1500 figures, wouldn't this mean over-modulization?  tikzexternalize, but this still requires an initial 'monster' compilation to get the images externalized before the draft option could be invoked   Here's a MWE to play with  \documentclass{article} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}     \begin{axis}         \addplot {x^2};     \end{axis} \end{tikzpicture}  \end{document}


I have noticed the following weird behavior on PSE and MSE, and I believe it probably applies to many more SE websites :  whenever one loads the 'new' tab for questions, all the questions displayed are shown with a "asked xx minutes ago" text. However when new questions come in, they are displayed with a "modified xx seconds ago" text. Why is that ?


If $X$ is a singular matrix, then is $X'X$ singular? And why?  (' means transpose)  Thanks in advance!


Voldemort’s mind connection with Harry’s

Dumbledore teaches us that Voldemort closed his mind from Harry’s intrusion because he found the connection too dangerous.  However, later this connection suddenly reappears. Why would Voldemort ever stop closing his mind, if not to seed Harry’s mind with false leads?  Just because Rowling needed a way for Harry to garner crucial information to see his mission through?  Thanks!


Representation of integers by ternary quadratic form $x^2+y^2-z^2$

Let $Q$ be the ternary quadratic form $Q(x,y,z)=x^2+y^2-z^2$. Since $Q(0,p+1,p)=2p+1$ and $Q(1,p+1,p)=2p+3$, we see that for every integer $k$, the equation $E_k:Q(x,y,z)=k$ always has a solution. Is it known for which integers $k$ there are infinitely many solutions to $E_k$ ?


Way to list "Contact Us" email address on web site, yet reduce likelihood of spam?

What's a good way to list a "Contact Us" email address on a web site, while reducing the likelihood it will get spammed?  Is putting the email address in an image the best technique, or are there others?


Is there any diff. if I submit my site to google with www or without www?  Which is best way to submit from above?


I submitted my paper in one of the Energy journal in Elsevier. After 2nd revision of my article, I got no update. So, I gently sent an email. Then after 2 days the status said " Required Reviews completed". But this status did not change for almost 2 months. Should I send another email to the editor? Is there any possibility to reject my article?


I want to do:  echo "something" >> /etc/config_file  But, since only the root user has write permission to this file, I can't do that. But the following also doesn't work.  sudo echo "something" >> /etc/config_file   Is there a way to append to a file in that situation without having to first open it with a sudo'd editor and then appending the new content by hand?


Probability with percentages of population

The question goes like this: The American Diabetes Association estimates that 5.9% of Americans have diabetes. Suppose that a medical lab has developed a simple diagnostic test for diabetes that is 98% accurate for people who have the disease and 95% accurate for people who do not have it. If the medical lab gives the test to a randomly selected person, what is the probability that the person has diabetes given a positive test?  I'm not exactly sure where to start, but I was thinking about the 98% accurate test of positive for those with diabetes and the 5% inaccuracy of the test stating that you have a positive test when you don't. I do note however that 94.1% of the population don't have diabetes whereas 5.9% do have it, which means that there is a greater stress on the inaccurate test of positive for those that don't have the disease.


Insert a graphic within a sentence nicely?

I am using string diagrams that I draw in Illustrator a lot, and I would like to draw them within a sentence.   When I just put \includegraphics{...} in the text, the image appears but its bottom is aligned with the text. I would like the center of the image aligned with the text, analogous to how in \displaystyle the center of the sum or integral is aligned with the text rather than its bottom.


Can a character choose to cease being a willing target of a spell?

Foresight, Barkskin and Mage Armor are examples of spells which require consent in order to function.  Could you revoke this consent at a later time of your own choosing in order to end the spell early?


Using the sandwhich theorem to evaluate $\lim_{n \to \infty} \frac{n!}{n^n}$

In a question I am asked to find $\lim_{n \to \infty}\frac{n!}{n^n}$ using the sandwich theorem.  I can see that the limit is going to be 0 as $\frac{n!}{n^n}$ can be written as $\frac{n}{n}*\frac{n-1}{n}*\frac{n-2}{n}*...*\frac{1}{n}$ but I cannot see how I can find two sequences which 'squeeze' the given function.  Any help would be greatly appreciated!


I have a Minecraft realm, we made a base inside of an ocean monument but we keep having Guardians spawning. I have a command set up to kill them when they spawn, /kill @e[type=minecraft:guardian] , but I don't want the items that come with them dying cause that's just taking advantage of it. Is there a way where I can "kill" Prismarine Shards, Crystals, Raw Cod, and Raw Salmon right when they die and drop their items?


How can I run fsck on ntfs partitions on my hard drive?

A few years ago I switched from Windows to Ubuntu 14.04 LTS for my desktop PC. I installed the Ubuntu operating system (root+home+swap) in the space previously assigned to the C partition, while the other partitions (D,E,F and G) were left undisturbed. Thus the partitions containing the new operating system now have the ext4 file system while the other partitions continue with ntfs. This has been serving my purpose well enough.  Recently, however, for the first time I made several attempts to run fsck on the ntfs partitions of the hard drive, and I received the following message:     fsck from util-linux 2.20.1    fsck: fsck.ntfs: not found    fsck: error 2 while executing fsck.ntfs for /dev/sda5   When I try to run fsck on my external hard drive, which also has ntfs, the message that is returned is:   fsck from util-linux 2.20.1  e2fsck 1.42.9 (4-Feb-2014)  ext2fs_open2: Bad magic number in super-block  fsck.ext2: Superblock invalid, trying backup blocks...  fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb   And:     "The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem.  If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:     e2fsck -b 8193   or     e2fsck -b 32768 "  Can anybody please throw any light on what is happening and how I can run fsck on ntfs partitions and devices?


Is there any good book where the equivalence of AC to the statement "Any surjection has a right inverse" is proved (and maybe other equivalences)? I could do $AC \Rightarrow$ "Any surjection has a right inverse" by myself but I have no idea for the other direction.


Given a compact set $K$ and closed set $E,$ prove: $E\cap K\neq \emptyset $

Let $K\subseteq \mathbb{R}^n$ be a compact set and $E\subseteq \mathbb{R}^n$ a closed set, such that: $$\inf\{d(x,y):x\in K, y\in E\}=0$$ where $d(x,y)=\sqrt{\sum_j(x_j-y_j)^2}$ Prove: $E\cap K\neq \emptyset $  I tried to work with the definitions of compact and closed sets, and I understand that from what's given of the distance between elements in $K$ and $E$, that they are very close,  but couldn't really get further. Any help appreciated.


Forcing a figure strictly on a separate page

How can a figure be forced to appear alone on a separate page?  \begin{figure}[p!] forces it to a separate page, but it does not guarantee that some other small figures (which I'd like to be included inline in the text) will not accidentally end up on the same figure page.


My motion tracking trembles in the end of footage. Did I do something wrong? Or do I need to replace the camera?

It's seventh try. Tracking of full sized footage took too long, so I've downscaled it. I've used the Autotrack plugin. The tracker settings are default, except for model set to Perspective. And for plugin, distance set to 60 and frame separation to 1. Camera settings set to 24mm in 35mm equivalent, then preset for my size of camera. Keyframe A is 60 and B is 90. Using Clean Tracks I've managed to set the tracking error to about 0.4. I've noticed that in place where the camera trembles, markers on the ground die quickly.


Why is "All horses have the same color" considered a false proof by induction?

Upon reading of  "paradox", I began to wonder a couple of things.  First of all, to me the inductive step seems flawed. Just because I have $n$ white horses, does not mean that the $n+1$ will be white, too.   The only explanation to make the inductive step work seems to me that the actual statement we are assuming as base case it's not "there are at least $n$ horses of the same color", but rather "$P(n)$ = any grouping of $n$ horses is such all the horses in that grouping have the same color".  Now this makes the inductive step works, but it's completely useless, as $P(2)$ already implies that all the horses have the same color.  And of course the base case $P(2)$ is not true because it's equivalent to our problem. Setting to prove $P(2)$ is the same as proving that all horses have the same color.  So I can't understand why this has been considered a "false" proof by induction; either the inductive step does not work or it's completely useless.  The wikipedia page linked before explains the problem as      The problem in the argument is the assumption that because each of   these two sets contains only one color of horses, the original set   also contained only one color of horses. Because there are no common   elements (horses) in the two sets, it is unknown whether the two   horses share the same color.   Which does not make any sense to me.. It's like looking at the finger instead that at the moon.  Is there something wrong with my understanding of induction?  Edit  Admittedly, the base case is $P(1)$ and not $P(2)$. But the point holds;the only implication we need is $P(1) \implies P(2)$. All the subsequent implications are useless; a proof of this type is seldom called a proof by "induction". Otherwise all proofs are by induction! :)  What is even the point of establishing what $P(n)$ is? Just prove $P(2)$ and use as known fact $P(1)$ as you would do with any other known fact.   Edit 2  Since there has been some confusion about what I asked, I'll explain my thought process:  1) Begin reading the proof. Imagine that the statement is "P(n) = at least n horses have the same color", and if by induction on $n$ this hold for every $n$, then QED.  2) Realize the inductive step does not work  3) Understand that the proposition to be proved has been (silently) changed and now it's "P(n) = any grouping of $n$ horses is such all the horses in that grouping have the same color"."  4) Realize that $P(2)$ is what we want to prove.  5) Wonder why on earth we are trying to show $P(n)$ for $n > 2$. Induction proof usually works because the final statement to be proved come from the fact that it works for all $n$. Here $n=2$ suffice, so it is really odd.  6) Starting to think I've missed something here. But hey, it's a false proof, let's see what was wrong.  7) Turns out that the outline of the proof is fine but here's the catch: of all the implications $P(1) \implies P(2)$ is not valid hence the whole $P(n)$ cannot be valid.  8) Thinking (again) that this seems weird. Wonder if I've missed something .  By extended discussion it turns out that my understanding of induction was right. This lead me to believe that is is a bad example because it "seems" like a proof by induction but really some essential elements are not present. It's not that is wrong (apart from the failed implication), is that it gives a very bad idea of what a proof by induction is


Java null pointer exception on if statement

I have following if statement:  if (node.left.left == null && node.left.right != null)   Related to a binary tree. Before this if statement I have a other if statement that checks if node.left is null.  Why am I getting null pointer exception on this statement?  Full code in the method up until the exception:   BinaryTreeNode node= root;   if (root==null)     return true; else     {         while(node!=null)         {         if (node.key>key && node.left !=null)         {             if (node.left.key==key)                 {                     if(node.left.left==null && node.left.right==null)                         node.left=null;                     if(node.left.left==null && node.left.right!=null)                         node.left=node.left.right;


Java split function: Is this the expected behaviour?

class Test{     public static void main(String[] arg){         String str1="a,,";         String str2="a,,b";         System.out.println(str1+" len="+str1.split(",").length);         System.out.println(str2+" len="+str2.split(",").length);     } }   The output is  a,, len=1 a,,b len=3   Isn't the number of parts supposed to be 3 in both the cases?


json_decode emoji gives strange characters like: ðY''

I am receiving messages from Facebook Messenger to my PHP server.  I json_decode the request like this:  $facebookRequest = json_decode( file_get_contents('php://input'), true );   After that, the emojis in the text all come out as these strange characters, and not as Hex or Unicode formats.  The characters don't even post correctly here so here is a screenshot of them:  that's from a simple smiley face.  Now I can reverse the text through json_encode then I get: \u00f0\u009f\u0098\u0080.  Is there a better way to handle emojis passing through json_decode?


LibreOffice toolbar icons went blank after application hanged

I open an excel file containing a macro in LibreOffice cal, then my LibreOffice was hanged for while. So, I decide to force end its process by issued command ps aux | grep libreoffice, kill 3401 -f to force close application.  However, on next open, my LibreOffice toolbar icons were all blank like this:    As I use office document often, it makes me have a hard time formatting my document.  Really much appreciate for any help please. Thanks.


Could you please tell me which usage is correct ?  'I need money to start a business'   'I need money for starting a business'   Actually the first one sounds more natural to me and also I know for is used for stating purpose of something(or what it is used for) but can we think like money will be used for starting a business (we meant what it will be used for) ?


How to find $\lim\limits_{n\rightarrow \infty}\frac{(\log n)^p}{n}$

How to solve $$\lim_{n\rightarrow \infty}\frac{(\log n)^p}{n}$$


What would be the interrogative form of the following sentence?

Say I want to know the serial number of Joe Biden as the president of the USA. How can I ask this to another person? What would be the interrogative form of the following sentence:  Joe Biden is the [46th president] of the USA.  ?


What are some good books on foundations of Thermodynamics

I am not looking for some introductory texts, graduate text, etc. I am looking for something that addresses to foundational problems in thermodynamics and statistical mechanics.


I'm new in Ubuntu and I have a question to ask:  I wanna download a file the his type is: tgz. For example: androidstudio.tgz  and in the site that's says: For Linux.  Is it gonna work on Ubuntu?


$\mathbf{Q}[\sqrt 5+\sqrt[3] 2]=\mathbf{Q}[\sqrt 5,\sqrt[3] 2]$?

Is there a general or elegant way to approach this problem? One can show that $\sqrt 5+\sqrt[3] 2$ is a root of the hexic $x^6-6x^4-10x^3+12x^2-60x+17$, which should then be its minimal polynomial to get the result. I see no straightforward way to show this is irreducible, though. It has a root in $\mathbf{F}_4$, and to show it's irreducible over $\mathbf{F}_3$ already seems to require a lot of grunt work.  One thing I can do is rule out the possibility that $[\mathbf{Q}[\sqrt 5+\sqrt[3] 2]:\mathbf{Q}]=2$, because $[\mathbf{Q}(\sqrt 5,\sqrt[3] 2):\mathbf{Q}]=6$ and $\mathbf{Q}(\sqrt 5,\sqrt[3] 2)$ is the compositum of $\mathbf{Q}[\sqrt 5+\sqrt[3] 2]$ and $\mathbf{Q}[\sqrt 5]$, where the latter has degree two. But I don't seem to be able to play an analogous trick to rule out $3$, because I know of no general lower bound on the degree of a compositum.   Could there be some way to bring Galois theory into the picture? These extension aren't Galois, and so it's by no means clear to me how to reason from their normal closures, but perhaps that's the direction to go in. Suggestions are very much appreciated.


What is the difference between might have and could have?  He might have come. He might have studied. He could have come. He could have studied.  How would you describe a possibility? For example:  It's possible that he came from a different culture. It's possible that he come from a different cutlure.


How to find the name of the man page of something?

Let's say I want the man page related to luks. man luks doesn't work, is there a quick way for me to find the man pages using the keyword luks from bash ?


Proving that free modules are flat (without appealing projective modules)

Suppose $R\neq 0$ is a commutative ring with $1$. Let $M$ be a free $R$-module. I would like to prove that $M$ is a flat $R$-module. Everywhere I have looked (mostly online) this is proved by first proving that every free module is projective, and then proving that every projective module is flat. Unfortunately, Atiyah & Macdonald's "Introduction to Commutative Algebra" (Chapter 2) does not discuss projective modules. But the result that every free module is flat comes very handy in the exercises.   So my question is,     Is it possible to prove that every free module is flat just by   definitions and without appealing to projective modules?   Thanks!


How to initialize private static members in C++?

What is the best way to initialize a private, static data member in C++?  I tried this in my header file, but it gives me weird linker errors:  class foo {     private:         static int i; };  int foo::i = 0;   I'm guessing this is because I can't initialize a private member from outside the class.  So what's the best way to do this?


"Will + be + verb -ing)" vs "Will + verb" ?

Can someone explain me the constructions (or however they are called) with the "Will + be + verb -ing)" and the "Will + verb" ?


I tried to install dropbox and suddenly it couldn't finish installation. I tried from the terminal to do it manually and the same,it stucked at 100%. These are two of the problems are coming through terminal:  E: Could not get lock /var/lib/apt/lists/lock – open (11: Resource temporarily unavailable)  E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   Also when i tried to do software update is coming this problem:  Software index is broken  It is impossible to install or remove any software. Please use the package manager "Synaptic" or run sudo apt-get install -f in a terminal to fix this issue at first.  I tried to fix it but is still the same problem. How can I solve these problems? Thank you


Bad undergraduate grades, decent research experience, what are the chances of PhD admits?

I'm an undergraduate student in Electronics and Electrical Engineering but am more interested in research in computer science and have decent research experience. I have done a summer internship at a very reputed place in France and our work during the summer was published and we also won Distinguished artefact award at the conference. I'm now writing my thesis at a prominent computer science research institute in Germany with a senior researcher and now am thinking about pursuing PhD. But I don't exactly have good grades and people have suggested to go for a masters to improve my academics but I feel like its the same issue there as well, isn't it the same case for masters? I need good grades to get accepted for a decent masters program so I don't see how it helps me.  I would really appreciate the community's help and advice on how best to proceed for this.


I have a server hosting an intranet web site where one of the features will be the ability to upload files.  The files will be saved in a restricted access folder and managed through the web back-end.  To avoid name collisions, I plan on assigning UUIDs and storing the original filename along with the UUID in a database for future retrieval.  However, I do have 2 concerns:   The possibility of duplicate files (at the actual byte level, not just by name), and Ensuring file integrity.   I thought if I ran some type of hash / checksum (MD5, SHA256, etc.), that could address both concerns.  I could store the hash and compare the file at a future date and verify it had not gotten corrupted, and if I found another file with the same hash, I would know if the file was a true duplicate.  So my questions are:   Are my concerns about file corruption unfounded? Also, is this a good strategy for identifying duplicate files?


I want to know if there is a proof for double tension to be present in the string for 6kg mass. Like some mathematical proof , not just saying.


Fractal dimension of a set of points in $\mathbb{R}^2$

I have a set of points in $\mathbb{R}^2$, of the form:  $\left(\frac{a}{\ell^2},\frac{b}{\ell^3}\right)$  where $\ell>0$ is an integer and $a$ and $b$ are some real positive numbers.  I am interested to know the fractal dimension of this set of points as $\ell$ becomes infinite. Is there a simple way of computing this?


Missing end portal. It's impossible to beat my Minecraft world

My end portal (in Minecraft) is no where to be found. The current version is 1.94 and the seed is 1990018518. When I try to use an eye of ender to locate the portal the strong hold is empty and I can't get the eyes of ender to locate a different portal. Is there something I'm missing?


So either Google doesn't have the answer, or I didn't know what to search for. But I don't see the render button on the right side of the screen. Every tutorial I see says that I'll find it there, but I don't see it.  This is what I'm seeing


Which programming forum is best for Opinion based questions?

I want to learn one functional programming language. I would like to know pros/cons of various  candidates based on some assumptions (to be specified in question).  Now as it is Opinion based,  is definitely not a place.   could be one place, but  suggest other wise.  Is there any suitable SE forum where opinion based questions are allowed?


Aliens invade Earth but have no end of problems controlling it

Years ago, I read a short story about aliens invading Earth, written from their perspective.  All I remember is that the aliens were more militarily evolved, having conquered many worlds, but were not as "evolved" as humans. The story had a humorous tone.  I think the author was Eric Frank Russell or Fredric Brown, but not sure.  Anyone has any ideas what this story title and who the author is?


Integal of ds ==> Integal Integal of r dθ dr

From Page 177 of differential equations demystified (2005):  We must evaluate the integral I: (1)  $$ I = \int_{\infty}^{0} e^{- s^{2}} $$    observe that: (2)  $$I \cdot I = \int_{0}^{\infty} e^{- s^{2}}\, ds \cdot \int_{0}^{\infty} e^{- u^{2}}\, du = \int_{0}^{\infty} \int_{0}^{\pi / 2} e^{- r^{2}} r d\theta dr $$   Could somebody explain these steps in better detail.  I'm not really sure how they get from (1) to the double integral in polar coordinates in (2)


Intel Wireless Network Adapter won't allow mac spoofing on Windows but is possible in Linux, how?

I have a Dell Inspiron 15 5558 laptop which consists of Intel Dual Band Wireless AC as the WLAN card and the corresponding WLAN driver is installed. I was trying to spoof my address using Windows 10. I tried it using Technitium MAC Address Changer, NoVirus Thanks MAC Address Changer, SMAC MAC Address Changer and even edited the registry. Nothing worked. So i searched for other possible ways but in the end I found this:   So this tells me that the mac address cannot be changed. But on Ubuntu just clicking on Edit Connections > Network Name > Entering the required MAC address, lets me spoof my MAC address.   Therefore, my question is, what does Ubuntu do differently for MAC spoofing and can i do the similar process on Windows to spoof MAC for any network card?


I'm confused about the definition of the domain of a function. My understanding of the definition is that it defines all the values of $x$ where the function value exists. Take for example the domain of $\ln(x)^{\ln(x)}$ which is $[1,\infty]$.  If I'm understanding this correctly, when you take $x=e^{-1.2}$ which is smaller than 1 and fill it in in the function: $$\ln(e^{-1.2})^{\ln(e^{-1.2})} = -1.2^{-1.2} = -\frac{6}{5}^{-\frac{6}{5}} = \left(\frac{15625}{46656}\right)^{1/4} \approx 0.8034937533 $$ So there exists a function value outside the domain of the function. Is my understanding of the definition wrong or am I making a 'simplification' mistake in my solution? Thanks for your help!


I have a pc with a metallic body on my CPU case. Yesterday suddenly the earthing wire of my CPU broke down and I was able to feel a little bit current on touching it's metallic body. But what I found to interesting was that when my finger rubbed on it's metal surface it was a feeling like when you rub the glass surface with a little bit wet surface a squkee sound come and your finger feel a little bit resistance on rubbing the surface and a very weird sound was coming out  just like when you rub the to of a wine glass but the sound was little bit thick it was like ghnnnnnnnnnnnnnn  and when I tried do that while wearing my sleepers i felt or heard nothing like that the surface felt completely smooth and there was no sound. Why was it happening?


Is there a word or phrase for when you break a word in a different place to give a different meaning?

I'm thinking similar to a , but you could break the word at a different or multiple places.  Granted I cannot think of a real-world example, but I have included two situations where this has happened.  If I had a domain name that was photospork.com, this could be interpreted as:   photo + spork, a gallery of a cutlery collector's obsession with sporks, or photos + pork, a culinary site dedicated to showing users the best cuts of pork.   Another example is when I named a work project toolscore, which can again be represented as either:   tools + core, to represent the core component of the tools, or tool + score, to show the highest score reached using that tool.


How do I echo a mysql result in UTF-8 into my page

I'm listing the customers names on my webpage with PHP retrieving data from MySql, but some of them are called José, João, but when I echo the result on the page, it shows Jos� and Jo�o. The collations of the tables are all on utf8_general_ci what can I possibly be doing wrong??


The role of a transistor in a magnetostrictive oscillator circuit

Could someone please explain the role of the transistor in this circuit? I have a feeling it has to do with the LC circuit but I'm not sure and don't understand completely. The following is an image of the circuit (the transistor is n-type. It is used in lots of sensors to detect and generate ultrasonic waves.


I have a questionable coding practice.   When I need to iterate through a small list of items whose count limit is under 32000, I use Int16 for my i variable type instead of Integer. I do this because I assume using the Int16 is more efficient than a full blown Integer.   Am I wrong? Is there no effective performance difference between using an Int16 vs an Integer? Should I stop using Int16 and just stick with Integer for all my counting/iteration needs?


What book - boy travels from home city and gets distended by gravity?

I read a very special book a few years back. We follow a boy who lives in a world where, if one moves far enough in a direction, that person gets distended and changed in size.   The boy works on laying tracks for the train, on which his city is. The city has to continually keep moving or it also will get squashed.   It's like a world like if one end is pinched and then dragged out like a piece of rubber string or bubble gum.   The book is not older than 10 years I think.  Hope I was clear enough...


When multiclassing a Cleric/Wizard, can I prepare wizard spells from the cleric list that the wiz could learn but didn't?

As a concrete example, let's say I have a multiclassed Cleric and Wizard (), meaning that a common spell they could both have is Cure Wounds, but let's say that I didn't have the wizard learn the Cure Wounds spell. Could the character have the "prepared wizard spells" include Cure Wounds, which is a spell that as a Theurgy Wizard he could know, but doesn't?


Let $E$ be a complex Hilbert space.  For  $A\in\mathcal{L}(E)$, I want to show that $$\sup_{\substack{x\in E,\\ \|x\|=1}}\|Ax\|=\sup_{\substack{x\in E,\\ \|x\|\leq1}}\|Ax\|.$$ Clearly, since $$\{\|Ax\|;\;x\in E,\,\|x\|=1\}\subset \{\|Ax\|;\;x\in E,\,\|x\|\leq1\},$$ then $$\sup_{\substack{x\in E,\\ \|x\|=1}}\|Ax\|\leq\sup_{\substack{x\in E,\\ \|x\|\leq1}}\|Ax\|.$$     Why    $$\sup_{\substack{x\in E,\\ \|x\|=1}}\|Ax\|\geq\sup_{\substack{x\in E,\\ \|x\|\leq1}}\|Ax\|?$$


List files of different folder - Is there a way to prevent error?

i need to explore different folders and i try to prevent errors instead to do a try/catch on each folder . I had an error on the 'C:\Windows\InfusedApps' folder when trying to list files. UnauthorizedAccessException:'System.UnauthorizedAccessException: Access to the path 'C:\Windows\InfusedApps' is denied. i would to know if there were a way to test, i tried different things but without success. By example DirectoryInfo has just the "directory" flag like a normal directory. I tried to use ` DirectorySecurity test = FileSystemAclExtensions.GetAccessControl ( new DirectoryInfo(parent.Path) ` But i don't see how use it to detect a difference. Thanks.


How to constantly count the numbers of players within an arena?

I'm using Minecraft Java version 1.12.2. I have a fake player called Alive that shows the amount of players still active inside the arena. When a player loses a round that counter will lower by 1. When the count reaches 1 the game will stop (don't worry about that; I already know how to handle this). The problem I'm having with this is that I don't know how to tell a command block to keep an active count of the number of Alive players.  Does anyone know how to count players within a radius and set that for the score of the fake player Alive?


My teacher showed us a proof by induction for this equation for $n\in\mathbb{N}$:  $$\sum\limits_{k=0}^n{{n}\choose{k}} = 2^n$$  In the first step, this sum is rewritten using ${{n+1}\choose{k}}={{n}\choose{k-1}}+{{n}\choose{k}}$.   However, he doesn't explain why this would be - and since he just introduced binomials coefficients, I assume it's something trivial, which I just don't see. I can't figure out why this would hold though.  I tried rewriting the binomial coefficients with ${{n}\choose{k}}=\frac{n!}{k!\cdot(n-k)!}$ when $n,k\in\mathbb{N}$ and $n\geq k$:  $${{n+1}\choose{k}}=\frac{(n+1)!}{k!\cdot(n+1-k)!}$$  $${{n}\choose{k-1}}=\frac{n!}{(k-1)!\cdot(n-k+1)!}$$  $${{n}\choose{k}}=\frac{n!}{k!\cdot(n-k)!}$$  But I can't prove:  $$\frac{(n+1)!}{k!\cdot(n+1-k)!} \stackrel{?}{=} \frac{n!}{(k-1)!\cdot(n-k+1)!} + \frac{n!}{k!\cdot(n-k)!}$$  Am I on the right track? Is there a basic idea behind this equation which makes you see it easily?


I have a brand new installation of Ubuntu 18.04. I then ran apt-get install curl and it gave me:     Package 'curl' has no installation candidate   I then ran apt-get update and tried installing curl again and it worked this time.  The term "update" can mean lots of things. What does it mean in the above context? what was it updating given that the Ubuntu I had just installed was the latest?


JPG batch compression & rename (find -exec, xargs, piping?)

this is my first post so I hope you'll be kind enough to forgive me if I make some formatting mistakes or else. This is one question I've had for quite some time and while looking for answers I have more questions arising. I was trying to find a way to compress pictures in a folder using convert in one command.  First I simply tried:  convert * -resize 50% Pic.jpg   However this returned the compressed pictures named Pic-0.jpg, Pic-1.jpg, etc. (I also tried $(find ".JPG") instead of * but this is expanded to the same. In order to have the formatting I wanted I tried:  convert * -resize 50% Pic_lorez_{1..3}.jpg   But this seemed to take the Pic_lorez_2.jpg and Pic3_lorez_3.jpg as input files, not output files. So following the advice of a friend, I tried:  find . -name "*.JPG" -exec convert {} -resize 50% {} \;   This compress all files under the same name but doesn't allow to put the name I want to these files (for example, Pic_lorez_{1,2,3,4,5,..100}.jpg).  Would xargs make it possible? Something along the lines of:  find . -name "*.JPG" | xargs convert ???   I couldn't figure out the proper syntax with xargs. I finally tried a direct pipe of find into convert but convert didn't seem to be able to work that way.


What happens at the interface between two universes with opposite thermodynamic arrows of time?

I was trying to think but cannot figure it out. For instance, if the interaction is small, for instance limited to a windows, the observers in each universe will see that the other goes in reverse. But what if they can start a more meaningful interaction? (for instance, if one observer crosses the window and moves to the other universe, will anything change? why and how fast? (at least at the beginning his thinking will move in the same time arrow than in his universe, but the physical processes around him will still violate the second law?


Say a wizard makes a permanent teleportation circle (ptc) on a wooden platform. Then has the barbarian pick up and carry said platform to another location would it still work?


The following problem is from Spivak's Calculus.  Suppose that $f$ is a continuous increasing function with $f(0)=0$. Prove that for $a,b \gt 0$ we have Young's inequality   $$ ab \le \int_0^af(x)dx+\int_0^bf^{-1}(x)dx$$, and that equality holds if and only if $b=f(a)$.  It is enough to consider the case $f(a) \gt b$, and show that the strict inequality occurs in this case.  I've tried proving this using the theorem  $$ \int_a^bf^{-1}=bf^{-1}(b)-af^{-1}(a)-\int_{f^{-1}(a)}^{f^{-1}(b)}f$$  but I got stuck along the way.   How may I show this rigorously using the definition or properties of integrals? Any hint, suggestions or solutions would be appreciated.


Similar PHP $ _REQUEST ['demo'] code in Python

I want to send information from an html page (using Ajax) to a Python page. like this: var xhr=new XMLHttpRequest(); xhr.open('GET','/pythonpage.py?someone=word&functioninner=1234', true); xhr.send();  Now my problem in Python page is that I do not know how to extract username and password values from page url. I used $_REQUEST['demo'] in php pages for this, but now that I use Python, I do not know what similar code is available to do this. If anyone knows anything about this, please help me


Is there a way to make TeX delete files?   In my document a lot of auxiliary files are created and it would be wonderful to have them removed after their content has been used.


I have this XML file where I want to change the value of fit-to-largest from false to true. Like this:  <Hmi.Screen.TextField Name="Text Field_1" AggregationName="ScreenItems" ID="31">     <ObjectList>       <Hmi.Screen.Property Name="Layer" AggregationName="Properties" ID="77">         <AttributeList>           <Value>0</Value>         </AttributeList>       </Hmi.Screen.Property>       <Hmi.Screen.Property Name="Left" AggregationName="Properties" ID="78">         <AttributeList>           <Value>264</Value>         </AttributeList>       </Hmi.Screen.Property>       <Hmi.Screen.Property Name="Top" AggregationName="Properties" ID="79">         <AttributeList>           <Value>48</Value>         </AttributeList>       </Hmi.Screen.Property>       <Hmi.Screen.Property Name="FitToLargest" AggregationName="Properties" ID="84">         <AttributeList>           <Value>false</Value>         </AttributeList>       </Hmi.Screen.Property>     </ObjectList> </Hmi.Screen.TextField>   From this code I want to change this part form this:  <Hmi.Screen.Property Name="FitToLargest" AggregationName="Properties" ID="84">     <AttributeList>       <Value>false</Value>     </AttributeList> </Hmi.Screen.Property>   to this:  <Hmi.Screen.Property Name="FitToLargest" AggregationName="Properties" ID="84">     <AttributeList>       <Value>true</Value>     </AttributeList> </Hmi.Screen.Property>   (false becomes true)  I want to change this by loading the XML file (I know how) and then find and replace the false to true.  This part of code is found in every textfield, but with a different value for the attribute ID. I want to change it for every textfield.


Using double angle and compound angles formulae prove,  $$ \frac{1-\cos x}{\sin x}     = \tan\frac{x}{2} $$  Can someone please help me figure this question, I have no idea how to approach it?


I have a web page built with materialize css library. This is the screenshot:  As you can see, the footer doesn't go at bottom, but remains attached to the last item (step 5). I didn't modify any file from materialize library. How can fix?


Can I run stripped Romex/NM through conduit?

If I have NM cable running into a junction box, can I strip the sheath of the NM cable starting inside the junction box and run the conductors without a sheath through conduit that is connected to the junction box? I understand that the wiring you'd typically use through conduit is THHN or NM (if you want to use the conduit solely as protection).  But I'd like to be able to take this incoming NM cable and have it's conductors only continue on through conduit along with some other THHN that's coming from another source. The individual conductors of the NM cable while not labeled can still be traced back to where the sheathing ends, so technically the conductors are still identifiable as to what they are. If need be, I could splice the NM conductors to THHN wire in the junction box, but I don't see a reason to add a splice where I don't think it's needed. My reasoning for why I think this should be OK is that if you terminate NM cable in a panel, you typically have a foot or so of the conductors without the sheath and there's nothing identifying those other than tracing it back to the sheath it came from.


Pile splitting problem (Proof by induction)

Problem: James has a pile of n stones for some positive integer n ≥ 2. At each step, he   chooses one pile of stones and splits it into two smaller piles and writes the product   of the new pile sizes on the board. He repeats this process until every pile is exactly   one stone.      For example, if James has n = 12 stones, he could split that pile into a pile of size   4 and another pile of size 8. James would then write the number 4 · 8 = 32 on the   board. He then decides to split the pile of 4 stones into a pile with 1 stone and a   pile with 3 stones and writes 1 · 3 = 3 on the board. He continues this way until he   has 12 piles with one stone each.      Prove that no matter how James splits the piles (starting with a single pile of n   stones), the sum of the numbers on the blackboard at the end of the procedure is   always the same.   Hint: First figure out what the formula for the final sum will be. Then prove it using strong induction.  The formula I came up with is $n(n-1) / $2. It could be totally wrong...  My (Partial) Solution:  1) Base Case: (n=2) James has one pile of 2 stones. Suppose he takes the top-most stone and puts in one pile A, which now has size 1. He takes the remaining stone and places it into another pile B, which now has size 1. Then the product of the sizes is 1. The sum of all the products on his board is 1. Now, if he were to start again, and take the bottom stone first and put it in pile A, he has a pile of size 1, and then takes the top stone and puts it in pile B, he has a pile of size 1, and the product is 1, with sum of all products on the board is 1.   2) Inductive Hypothesis (Strong Induction): Suppose for some $k \geq 2$, $n$ stones can be split in $ 2 \leq n \leq k $ stones and $k-n$ stones.  3) Inductive Step:  Consider $n=k+1$. What do I do now?


SSH : User can only access a particular folder in webroot

I would like to create a user which can only access and administer a particular folder via SSH situated in webroot of the server. Been through many blogs..none of them helped. I am using ubuntu server 16.04.  Thanks in advance


Problems running Ubuntu 12.10 in VMWare Player 5

I'm trying to install Ubuntu 12.10 in VMWare Player 5. My pc is running Windows 7.   The installation seems to go okay, but when I boot up ubuntu, although it starts up and I see the desktop, I can't see any task bar or basically anything other than the default wallpaper in the background.   When I move my cursor across the screen towards the edges, the desktop flickers and extremely distorted and pixelated objects appear momentarily.  I've tried uninstalling everything, downloading it all again and reinstalling, but I get the exact same problem.  Does anyone recognise this issue? Is there a more stable pairing than Ubuntu 12.10 & WMWare Player 5.0.1, perhaps?


left angle bracket interpreted as operator< and not template parameters

I have a line that looks as follows:  F::enable<sizeof(value_type), offset>(index);   I get the following compiler error (GCC 6.3.1):  error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long unsigned int’ to binary ‘operator<’   Obviously, the left angle bracket is being interpreted as the less than operator, instead of the start of a template parameter list. F is a template parameter (class F) which I expect to contain a static member function with the signature:  template <GLsizei stride, const GLvoid* offset> static void enable(GLuint index);   I've tried liberally inserting whitespaces, looked into typedeffing the function, looked into moving to a regular function (not possible due to inheritance things). I have commented out the line to see if something above was causing the problem, no dice. Is there any way of explaining to the compiler that I don't want to compare a function and a size_t, I want to call a particular specialization of static member function in a class?


I'm trying to write section numbers to a file with the newfile package. In details, this MWE basically tries to write to a .ref file with lines like A-B. The A and B are generated by \label and \ref commands: if \ref{A} is written in section 2 and \label{A} is defined in section 1, then we should write 2|1 in the file.  This example actually fails to expand the \ref command, probably due to the insertion of the hyperref package, which makes \ref robust. How can one avoid this?  \documentclass{article}  \usepackage{newfile} \newoutputstream{refFile} \openoutputfile{\jobname.ref}{refFile}  \let\oldref\ref \let\oldAutoref\autoref \usepackage[linktoc=all,backref=page]{hyperref}  %%  %% Write SRC-DST of \ref to file %% \newcommand{\myref}[1]{%     \def\val{\thesection|\ref{#1}}     \addtostream{refFile}{\val} }  %%  %% Redefine \autoref %% \let\oldAutoref\autoref \renewcommand{\autoref}[1]{%     \oldAutoref{#1}     \myref{#1} }  \begin{document}  \section{S1}\label{sec:one} \autoref{sec:three}  \section{S2}\label{sec:two} \autoref{sec:one}  \section{S3}\label{sec:three} \autoref{sec:two}  \closeoutputstream{refFile}  \end{document}   The current content of the .ref file is  1|\ref {sec:three} 2|\ref {sec:one} 3|\ref {sec:two}   but I would like the expansion of the \ref to give:  1|3 2|1 3|2


Is there a difference between "Wrong or Right" and "Right or Wrong"

I was writing about the  when i wrote the following line      both these terms talk about the right and wrong conduct of people      both these terms talk about the wrong and right conduct of people   I would think both these sentence would convey the same meaning , as it is like saying You are fat and tall against You are tall and fat.  I just need a confirmation that these two sentences convey the same meaning. Am i missing anything?


How can I use my SSD as a ReadyBoost cache disk?

I'd like to use SSD as ReadyBoost cache disk. However, ReadyBoost can work with pluggable USB drives only (AFAIK). Is there any way to avoid this limitation?


At the end of Star Wars Episode VI: Return of the Jedi we see Anakin Skywalker's Force ghost join Obi-wan and Yoda. Given the comments made by Kylo Ren in Episode VII: The Force Awakens when he asks for his grandfather to 'show him again, the power of the dark side', can a Force ghost exist of Darth Vader when there is already one of Anakin or has Snoke been tricking him to keep him a loyal subject?


Joining averaged raster values to each feature using ArcGIS for Desktop?

I have precipitation data that I would like to average over each municipal unit in a boundary layer.  First, how do I average the rainfall spatially by each administrative unit?  Second, the rainfall values are not unique to each administrative unit, and so I am not sure how to join them to the attributes table of the admin boundary layer.  Although they will be unique once they are averaged, in the sense that there is one averaged value per administrative unit.  If this is true, which variable do I merge on? Do I need to create something new?  I am using the end result (an average rainfall value for each municipal unit) in STATA, hence the need to export the attribute table.  The program I'm using is ArcMap.


Custom Search within a Ligtning Component on an array of Object

I have a component where I am displaying a list of records querying using APex and displaying data using aura:iteration. I now want to add a search bar so users can search from the aura iteration without making another trip to the server, similar to the standard search in List Views. Could you please point me in the right direction?

                         <lightning:buttonIcon iconName="utility:search" variant="bare" onclick="{! c.handleClick }" alternativeText="Search" class="slds-input__icon" />                         <ui:inputText value="{!v.searchText}" class="slds-lookup__search-input slds-input" placeholder="Search" />

                 <aura:iteration items="{!v.leftCol}" var="tableRow">
                          <lightning:layoutItem  padding="around-small" size="12" largeDeviceSize="6" flexibility="grow">                             <lightning:card>                                 {!tableRow.Name}                             </lightning:card>                         </lightning:layoutItem>
                 </aura:iteration>


Stack Overflow is not getting refreshed automatically. I have to press F5 explicitly to refresh the website. What might be the issue?


"Please summit your registration forms to John, Jay, or myself before the end of the day."  My homework says "myself" is incorrect and "me" should be used in the context of this sentence. I don't understand why.


How to assign an array (two-dimensional list) to a dict in Python?

I want to assign an array (lists in a list) to a dictionary.  For this I have already tried the fromkeys() method. But this is not working as I've expected.  # a list with 3 string elements list_of_Strings = ['index', 'substance', 'container'] # a list with 3 lists, each list has a few values index_list = [0,1,2] substance_list = ['water','oil','acetone'] container_list = ['B100','B200','B300'] list_of_lists = [index_list, substance_list, container_list]  # this line sets all for all dict keys the value to 0 dict_dummy_1 = dict.fromkeys(list_of_Strings,0)  # when I try this line, in every "key value" are all 3 lists from list_of_lists: # Key -> Value # index -> index_list, substance_list, container_list # substance -> index_list, substance_list, container_list # container -> index_list, substance_list, container_list dict_dummy_1 = dict.fromkeys(list_of_Strings,list_of_lists)  # but I want to have it like this: # Key -> Value # index -> index_list # substance -> substance_list # container -> container_list  # with a loop it is possible: dict_dummy_2 = dict.fromkeys(list_of_Strings,0) for i in range(len(list_of_Strings)):     dict_dummy_2[list_of_Strings[i]] = list_of_lists[i]   It is possible to avoid the loop solution? Is there any function for it? Thank you very much in advance. :)


$\displaystyle\int_{0}^{\pi} \frac{\sin^2 x}{a^2 - 2ab\cos x +b^2} \,\mathrm dx$

An integration: $$\int_{0}^{\pi} \frac{\sin^2 x}{a^2 - 2ab\cos x +b^2} \,\mathrm dx$$  I am stuck with this definite integral. Will putting $\,\cos x = z\,$ help out here?


Let's say you have an encryption algorithm that uses PKCS5 padding. You input 'secret message', which is 14 characters long, but for some reason or another the algorithm needs it to be 16 characters long. So you add on two bytes that are equal to 2 at the end. Then when you decrypt it, you just look at the last byte and take that many off for the end result. But how would you be able to tell if there was no padding in the first place? I'm just a noob so be nice please. Thanks in advance!


I am getting the following error while trying to install skype  Failed to download repository information check your internet connection  E:The repository 'http://archive.ubuntu.com/ubuntu yakkety Release' does not have a Release file. W:Updating from such a repository can't be done securely, and is therefore disabled by default. W:See apt-secure(8) manpage for repository creation and user configuration details. E:The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does no longer have a Release file. W:Updating from such a repository can't be done securely, and is therefore disabled by default. W:See apt-secure(8) manpage for repository creation and user configuration details. E:The repository 'http://in.archive.ubuntu.com/ubuntu yakkety Release' does no longer have a Release file. W:Updating from such a repository can't be done securely, and is therefore disabled by default. W:See apt-secure(8) manpage for repository creation and user configuration details. E:The repository 'http://in.archive.ubuntu.com/ubuntu yakkety-backports Release' does no longer have a Release file. W:Updating from such a repository can't be done securely, and is therefore disabled by default. W:See apt-secure(8) manpage for repository creation and user configuration details. E:The repository 'http://in.archive.ubuntu.com/ubuntu yakkety-updates Release' does no longer have a Release file.


I was working on the infinite sum  $$\sum_{x=1}^\infty \frac{1}{x(2x+1)}$$ and I used partial fractions to split up the fraction $$\frac{1}{x(2x+1)}=\frac{1}{x}-\frac{2}{2x+1}$$ and then I wrote out the sum in expanded form: $$1-\frac{2}{3}+\frac{1}{2}-\frac{2}{5}+\frac{1}{3}-\frac{2}{7}+...$$ and then rearranged it a bit: $$1+\frac{1}{2}-\frac{1}{3}+\frac{1}{4}-\frac{1}{5}+\frac{1}{6}-\frac{1}{7}+...$$ $$2-(1-\frac{1}{2}+\frac{1}{3}-\frac{1}{4}+\frac{1}{5}-\frac{1}{6}+\frac{1}{7}-...)$$ and since the sum inside of the parentheses is just the alternating harmonic series, which sums to $\ln 2$, I got $$2-\ln 2$$ Which is wrong. What went wrong? I notice that, in general, this kind of thing happens when I try to evaluate telescoping sums in the form $$\sum_{x=1}^\infty f(x)-f(ax+b)$$ and I think something is happening when I rearrange it. Perhaps it has something to do the frequency of $f(ax+b)$ and that, when I spread it out to make it cancel out with other terms, I am "decreasing" how many of them there really are because I'm getting rid of the one to one correspondence between the $f(x)$ and $f(ax+b)$ terms?  I can't wrap my head around this. Please help!


I have to find the integral:  $$\int_1^3 \dfrac{\ln x}{x^2 + 3} dx$$  I tried integration by parts, but I can't find the next necessary integral, that being:  $$\int_1^3 \dfrac {\arctan (x/\sqrt3)}{x}$$  So I thought that maybe integration by parts is not the way to go. But I can't come with any solution.


The following doesn't work:      public string foo()     {         using (Random myRandomChoice = new Random())         {             return myRandomChoice.Next(10).ToString();         }     }   The following is errors:      public string foo()     {         Random myRandomChoice = new Random();         return myRandomChoice.Next(10).ToString();     }   The error message for the first foo is concerning Random not being implicitly convertable to System.IDisposable.   Is this a deliberate ploy withing the syntax of the language so you only use using in specific circumstances e.g when dealing with database connections? or can I explicitly convert Random to type IDisposable so that the initial foo works?  Is there a list available of types that would be better declared with using ?


Highlight the difference between two strings in PHP

What is the easiest way to highlight the difference between two strings in PHP?  I'm thinking along the lines of the Stack Overflow edit history page, where new text is in green and removed text is in red. If there are any pre-written functions or classes available, that would be ideal.


underbrace in superscript exponentiation

So I have this latex code  \underbrace{   a^{\frac{1}{n}} \cdot a^{\frac{1}{n}} \cdot \ldots \cdot a^{\frac{1}{n}} }_{n\text{-times}}} =  a^{   \underbrace{     \frac{1}{n} + \frac{1}{n} + \ldots + \frac{1}{n}   }_{n\text{-times}} } = a^{1} = a   that renders in this formula:   but as you can see the second summation in the exponent is rendered too big.  How to typeset it correctly?


Invalid use of incomplete type for partial specialization

Why am I getting this error in the following:  template<typename T,typename Y> class MyContainer {         std::vector<T> list; public:          void append( T&& elem) ; };  template<typename T> void MyContainer<T,int>::append(T&& elem) {         list.push_back(elem); } int main() { }      error: invalid use of incomplete type ‘class >MyContainer’   void MyContainer::append(T&& elem)   I initially thought that, what if someone passed a second template parameter as double, it won't work, so I need to provide a non specialized member function definition first and may be on top of that I can provide partial specialization.  But even after adding the below I still get the same error:  template<typename T, typename Y> void MyContainer<T,Y>::append(T&& elem) {         list.push_back(elem); }


Can I join a war in a new clan if I leave during the prep day in my old clan?

I joined a war with a clan that is full of nuts/inappropriate people. After starting war they kicked out a few people who are already in war in their clan. So my clan surely gonna lose. I am in war now. If I choose to leave the Clan now during the preparation day and join another clan, will I be able to war in my new clan? Or I have to wait till the war at my previous/current clan ends?


Installed Ubuntu 16.04 alongside windows 10 but my pc only runs windows

Every time I start the pc it only runs windows, grub doen't appear. I know it's something about UEFI mode. I changed everything but I'm still pretty lost.


No man-page or info-page for type command

I tried to find information about  command using man pages and info    $ man type  No manual entry for type info type   I think this is info menu page.   Is it just happening to me?? Why did Ubuntu developers remove type command manual page. Did they ever make a manual page for type command?


How to make bash (Terminal.app) remember history of previous sessions?

In my computer at work, my bash shell remembers history from previous sessions, even if I just opened a new terminal. In my computer at home, this doesn't happen. I have the same OS 10.6.8 in both machines and I don't have any history related setting in .bash_profile. How could I set this up on my home computer so it remembers history across sessions?


Is there an Australian magic school in the Potterverse?

Is there a school of magic in Australia?


Is there a specific difference for "dwellings" in terms of storage, and if so, what is it?

From experience (in-game, and through discussion), it is generally advised not to store gear/treasure in a random barrel in a cave, because   Obviously because you can easily lose where that barrel was More specifically, because the game can "reset" in that area, and delete your stash.   Is there actually any evidence that can be found to prove this (other than just situational), so I know where I can/cannot set up a "base". I.e. is there anything in the code (or elsewhere) that might indicate the difference between "Breezehome", an Inn, or a random cave?


I am trying to draw a fractal in tikz that is not a 'common' one - so I'm a little stuck.  It is essentially the Sierpinski Casket but with a square instead of a triangle. Start with the (solid) unit square, remove the centre 9-th, and repeat with the remaining 8 squares. So you end up with 8^k squares of size 1/9^k.  I'd like it to look something like:  Preferably the 'last' image will be of stage 5 or 6 but, if possible, a nice definable end stage would be great (like other fractals in LaTeX).


I'm using illustrator and I have a graphic that is 22 pixels by 22 pixels. I export it as a png with 72 resolution, and it constantly comes up blurry. Is it just because it's too small? On my mac it looks at least a little bit cleaner than on my pc...


Which one is correct: "I live IN this street" or "I live ON this street"?

Good afternoon, everyone!  Which one is correct:   I live in this street I live on this street   I would like to know which one is correct or whether both of them are possible in standard English. If they are both possible, which one is more common in British English?  I know that we usually say: "I live on Fennel Street" (on+street name) and "I live at 10 Fennel Street" (at+house number), but I would like to know which preposition should be used preceding the determiner "this" and/or when we are pointing at the street where we live.


When can we put furniture in a new build house?

After the heat goes on, when can we put kitchen and furniture in.  We've been told so many different timeframes and it's hard to find any info via a Google search.  Our kitchen guy said heat needs to be on 8 weeks minimum but our contractor says 3-4 weeks? Anyone able to advise us as we don't want to risk ruining our stuff.  Thanks


How can I find all unnamed people in Photos on iOS (not on macOS)?

Is there a way on iOS (not on macOS) to list all photos that have people detected in them but for which the people haven't been associated with a name / contact yet?  Perhaps a smart album or a third-party app?


No Ubuntu boot option in grub after installing Windows 7

I installed Windows 7 alongside Ubuntu 14.10 and hence I lost grub. I reinstalled grub using a liveCD and now the Ubuntu boot option only shows Windows 7 and 10s timer after which it'll boot into Windows 7. It doesn't show Ubuntu option. I tried repairing boot using boot-repair tool but no luck.  Here's the boot-repair pastebin:


Show inline math as if it were display math (and vice versa)

I'm very familiar with how symbols display differently in inline mode (with $ ... $) vs. how display math shows them (with \[ ... \] or $$ ... $$).  Two examples would be with limits  $\lim_{n\rightarrow \infty}f(x)$   vs.  \[ \lim_{n\rightarrow \infty}f(x) \]   and with sums  $\sum_{n=1}^{x} n^2$   vs.  \[ \sum_{n=1}^{x} n^2 \]   My Question is:     How do you display these things in inline mode (with all the nice inline formatting) as if they were in display mode ?   The inverse -- how to display things in display mode as if they were in inline mode -- is also of interest.


Requires installation of untrusted packages  this state appear when do update


So I have to come up with a code that outputs a report, and I have to enclose this while loop within another while loop, one that will ask the user if he wants to continue inputting info. As long as the user responds "Y", continue asking for required inputs and print the report. Once the user answers "N", then stop further processing.  I just finished the loop that generates the report, but I don't know how to enclose this loop with another loop with the above requirement.  My current code for the report is like this:  while (bookVal > salvageVal){     //read in stuff      yearlyDepr = bookVal * (ddRate / 100);     accDepr = accDepr + yearlyDepr;     bookVal = bookVal - yearlyDepr;     year++;      if (bookVal < salvageVal){         yearlyDepr = (bookVal + yearlyDepr) - salvageVal;         accDepr = purchPrice - salvageVal;         bookVal = salvageVal;      }     System.out.printf("%d %,18.0f %,18.0f %,18.0f%n" , year, yearlyDepr, accDepr, bookVal); }   I tried putting a "read in for Y or N" at the end of this loop and set another while loop on top of it with something like: while (answer == 'Y'), but that just scews up everything...Some help would be nice, thanks!


extract Apple ID's password from mavericks keychain?

First of all i need to know if mail's passwords stored in keychain or not ? If yes .. how to extract passwords from keychain especially [APPLE ID] ? That's it