How to include `rasterizeWholeImage` when exporting QGIS layout?

I use something like the following to export a layout to pdf: projectInstance = QgsProject.instance() layoutmanager = projectInstance.layoutManager() layout = layoutmanager.layoutByName("test") exporter = QgsLayoutExporter(layout) exporter.exportToPdf("C://test.pdf", QgsLayoutExporter.PdfExportSettings())  But I want to use the  parameter when exporting otherwise it defaults to using vectors. How can I set this parameter when setting up QgsLayoutExporter.PdfExportSettings()?


here is my decorator:  def check_domain(func):      def wrapper(domain_id, *args, **kwargs):         domain = get_object_or_None(Domain, id=domain_id)         if not domain:             return None         return func(domain_id, *args, **kwargs)      return wrapper   Here is a wrapped up function:  @check_domain def collect_data(domain_id, from_date, to_date):     do_stuff(...)     If I do collect_data.__name__ I get wrapper instead of collect_data  Any ideas?


I applied for a visa at the Belgian embassy for Luxembourg (Belgium handles consular affairs on Luxembourg's behalf in my country). I submitted a flight reservation with Frankfurt as my port of entry into the Schengen area. I also declared on the visa application form that Germany will be the Schengen country of first entry.   Now I'm thinking of flying into Paris or Brussels and taking the train to Luxembourg since it's much cheaper. If I do this, will there be a problem at immigration?


Storing Metadata/Attributes for Assets with Common and Varying Information

I'm looking for some advice on database design.   I'm working on a small asset management utility for learning and to simplify some tasks I do in tracking IT assets. I have a table for "Asset" which represents a physical asset and then "AssetTypes" which represent the different types (e.g. Phone, Computer, Laptop, Server). Each of the assets has some common information (Name, Make, Model, Value, Purchase date) and then unique values based on the Asset Type.  What is the best way to store this extra information (e.g. PC may have CPU, RAM, and HDD; a laptop would have those three attributes, plus ScreenSize; and a monitor would just have ScreenSize)?  I see two ways to achieve, one is a separate table for each Asset Type, which means every-time I add an asset, I need to update my code. The other is to use an "Attributes" (or similar) table that has for each asset a list of the Extra columns. When you add an asset of Type X, it gives you all the additional attributes to fill in.   If I use the attributes, how should I define them and the data types they can use (e.g. Text, Int, Bool)?  I plan on using MS SQL Server as my DB, with a C#.NET front end.  Happy with any advice or thoughts.


How to see questions with one of a set of tags?

If you put some tags inside the search field you will get the questions which include those tags. However, I want to search the questions which include those tags or just one of those tags. How can achieve it?


If $x+y+z \geq xyz$ Prove that $x^2 + y^2 + z^2 \geq xyz$.

$x,y,z \in \mathbb R$ My attempt: Notice that if $x^2 + y^2 + z^2 \geq xyz$ and $x+y+z \geq xyz$. So : $$x^2 + y^2 + z^2 \geq x+y+z $$ But this is actually not always true, take the case when $ 0<x,y,z <1$ And you will see that this is not working. Maybe I’m wrong.


Show that $2009^n − 209^n − 839^n + 92^n$ is divisible by $117$ for each positive integer $n$.

I need help on how to show that for each positive integer $n$, $2009^n − 209^n − 839^n + 92^n$ is divisible by $117$.   I have tried divisible rule but couldn't come up with anything meaningful.  Any help?


In page 122 of a book by , namely  (1956), there is an exercise for evaluating the following integral in two ways.  $$\int_0^1\!\!\!\int_0^1\frac1{1-xy}\,dy\,dx$$  First way is to write the integrand as a geometric series,  $$\int_0^1\!\!\!\int_0^1\frac1{1-xy}\,dy\,dx=\int_0^1\!\!\!\int_0^1\left(\sum_{n=1}^\infty(xy)^{n-1}\right)\,dy\,dx=\sum_{n=1}^\infty\frac1{n^2}$$  and the second way by use of a suitable change of variables ($y:=u-v,x:=u+v$) which is also published by  in this .  Hence, the second way together with the result of the first way is a proof for the famous , in fact to show that $\sum_{n=1}^\infty\frac1{n^2}=\frac{\pi^2}6$.  Now, the main question is, if there is a suitable change of variables for the following integral  $$\int_0^1\!\!\!\int_0^1\!\!\!\int_0^1\!\!\!\int_0^1\frac1{1-xyzw}\,dw\,dz\,dy\,dx~?$$  Unfortunately, I think a similar change of variables like ($w:=p\pm q\pm r\pm s,\cdots$) doesn't work here, while I'm not really sure!


I can't find the processing toolbox anywhere in QGIS3.10. I thought I just had to activate it but I can't find it under all plugins or installed plugins. Does anyone know where I can find it or how I can fix this problem? I've attached a picture of the plugin window and the main window.


I just purchased a Trek multitrack 750 1996 in black. I found it in almost perfect condition and want to upgrade the tires. What is the max tire size you can run on the 750 without any clearance issues?


I have this method called HandScore that takes a Card array called hand, and returns the value of the hand, by adding up all the ranks. It also adds 10, to any ranks that have a value greater than 10. However, when I try to run the code, it gives me a NullPointerException. I know why, but, I don't know how to fix it. Is there any feedback I can get?  public int HandScore(Card[] hand) {   int total=0;   int[] rAnk=new int[0];   for(int i=0;i<hand.length;i++)   {     rAnk[i]=hand[i].rank;     total=total+rAnk[i];   }   if(hand.rank>10)   {     total=total+10;   }   return total; }


Help evaluating $ \int \frac {\sqrt{x^2-1}}x \ dx$

Before anything, I'd like to clarify that I have no background in calculus (I'm still in school). I only try to learn calculus as a hobby. Please be gentle.  I'm trying to evaluate the aforementioned integral but the answer I got doesn't seem to match with 3 sources different sources that I found online. My process was to substitute in $x = \sec u, \ dx = \tan u\sec u\, du$. This led me to the answer $\tan (\mathrm{arcsec}\ x) - \mathrm{arcsec}\ x$. However after trying to check my answer I saw that  says it's $\arctan \left(\frac 1{\sqrt{x^2-1}}\right) + \sqrt{x^2-1}$,  says it's $-\arctan (\sqrt{x^2-1}) +  \sqrt{x^2-1}$, and this  says it's $-\mathrm{arcsec} \,x + \sqrt{x^2-1}$.  I plotted all four results on a . Symbolab and WolframAlpha only differ by a constant so I assume that both of them have the correct result whereas the video and I have the wrong ones. Also it can be seen that all the results are the same on the positive side of the x axis but things break down on the negative side.  My final questions are:    Where did the video creator and I go wrong? What is happening on the negative x axis?   EDIT: It seems this post might be a duplicate of . I hope this post doesn't get removed because I believe what I asked is a bit different from what was asked there. EDIT 2: Upon further inspection, I guess it's reasonable for this post to be removed.


Ubuntu 14.04 Amd Catalyst drivers installation

Following  I'm trying to get AMD Catalyst drivers installed using this command:  sudo apt-get install fglrx fglrx-amdcccle   But I'm getting...  kayl669@kayl669-pc:/usr/share/ati$ sudo apt-get install fglrx fglrx-amdcccle Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies.  fglrx : Depends: xorg-video-abi-11 but it is not installable or                   xorg-video-abi-12 but it is not installable or                   xorg-video-abi-13 but it is not installable or                   xorg-video-abi-14 but it is not installable or                   xorg-video-abi-15 E: Unable to correct problems, you have held broken packages.   Being very new to Ubuntu I'm meeting a lot of frustration when trying to install things where it seems that there are dependencies which won't install for this reason. Perhaps somebody could suggest a general procedure to follow to get past this type of issue. What is the problem in general terms - a conflict or corruption?  I'm actually using Lubuntu and my goal is to get a dual-monitors setup working.  What should I try next in this instance? Thanks


I have run into a conundrum.   When I go to get some friends cans of beer I say:     You guys want a beer?   When I am referring to going to a bar and drinking some I say:     Let's go get some beers!   When I go to a store to buy beer I say:     I am going to get beer.   How can I work this out? My friend is a native Chinese speaker and this is the sort of plural thing that trips her up. How is this explained?


Calculating frost frequency in Google Earth Engine?

I want to work with frost and several metrics  First, I want to map the number of nights that have temperatures below 0 in a year. This code seems to do this.  Second, I want to calculate the number of days between the first and last night with temperatures below zero.  How can I get the frequency of frost for the month of October since 2002 or better still in a decidical way? Sum of values below 0 ° C divided amount of values without clouds.  Code:


Can we add, subtract , multiply and divide numbers only using their continued fraction representation?

If we have two real numbers $u,v\ge 0$ with the continued fractions $$u=[0,a_1,a_2,a_3,\cdots]$$ and $$v=[0,b_1,b_2,b_3,\cdots]$$ can we calculate the continued fractions of $u+v,u-v,uv,\frac{u}{v}$ only using the continued fraction representations of $u$ and $v$ ?


What fraction of baryonic matter is in stars?

We know from big bang nucleosynthesis that baryonic matter accounts for about 5% of the universe's total mass-energy density. What is the current best estimate of how much of this is in the form of stars? I'm guessing that this would be known only very roughly. It seems like you would just have to survey large volumes of space for stars and larger structures made out of stars. Although galaxies may pretty efficiently cycle their hydrogen and helium through stars, I would assume that there is a lot of hydrogen out there in the spaces between superclusters that has never had a chance to form a star and never will.  related:


Energy Saving on Ubuntu PC's (not Laptops!)

Can I use software designed for power saving on laptops on Home PC. (not a laptop) Or maybe someone could suggest alternative tools designed for saving power on PC desktop? What are the other steps required to reduce energy consuming under Ubuntu?


Making cinnamon buns and recipe calls for dry yeast, I don't have any yeast and was hoping someone has encountered same issue.  Any suggestions to alternatives?


Why word "draft" appear center of the page?

\documentclass{article} \usepackage[landscape,a4paper]{geometry} \usepackage{array,booktabs} \usepackage{amsmath} \usepackage{background} \usepackage{xcolor} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{header1} \rhead{header2} \begin{document} Some text \end{document}   in the center of page "DRAFT" appears, how can i erease it? it will appear when i use fancyhdr , but there is no code about it i think =\


How does a Pokémon gain CP when evolving?

I was just wondering if there is a set amount of CP gained by evolving a Pokémon or is it based on their level? Your level? Or random?  I just wanted to know if for example it made sense to evolve a Pidgey (CP 150) to a Pidgeotto then a Pidgeot.  To maximize my CP or should I just evolve my Pidgeotto  (CP162) to a Pidgeot.  Just looking for other insight on it.


Given a matrix with non-negative real entries, can you algebraically prove that it has a non-negative eigenvalue?

I am looking specifically for an algebraic proof, but if you can offer both algebraic and topological proofs, I will appreciate it even more.


Prove that there are infinitely many prime numbers $p$ such that $\left(\frac{a}{p}\right)=1$ for fixed $a$.

I already proved this is true for all prime numbers and clearly see how this is true for all perfect squares, I'm just having trouble expanding it to any prime factorization. If we let $a$ have prime factorization $a=p_1^{a_1}p_2^{a_2}...p_n^{a_n}$, then since the Legendre Symbol is multiplicative, we know that: $$ \left(\frac{a}{p}\right)=\left(\frac{p_1}{p}\right)^{a_1}\left(\frac{p_2}{p}\right)^{a_2}...\left(\frac{p_n}{p}\right)^{a_n} $$ I don't, however, understand where to go from here.


How to vertically align text in input type="text"?

There is <input type="text" /> I need to set vertical alignment of the entered text. For example middle or top.


I get snap error when i try to installl chromium-browser

When i type this:  sudo apt-get install chromium-browser   I get this:  Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   chromium-browser 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 48.3 kB of archives. After this operation, 164 kB of additional disk space will be used. Get:1 http://dz.archive.ubuntu.com/ubuntu focal/universe amd64 chromium-browser amd64 80.0.3987.163-0ubuntu1 [48.3 kB] Fetched 48.3 kB in 6s (8,267 B/s)            Preconfiguring packages ... Selecting previously unselected package chromium-browser. (Reading database ... 178512 files and directories currently installed.) Preparing to unpack .../chromium-browser_80.0.3987.163-0ubuntu1_amd64.deb ... => Installing the chromium snap ==> Checking connectivity with the snap store ==> Installing the chromium snap error: snap "chromium" has "install-snap" change in progress dpkg: error processing archive /var/cache/apt/archives/chromium-browser_80.0.3987.163-0ubuntu1_amd64.deb (--unpack):  new chromium-browser package pre-installation script subprocess returned error exit status 10 Errors were encountered while processing:  /var/cache/apt/archives/chromium-browser_80.0.3987.163-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   What seems to be the problem?


Java: How to change the object a local variable refers to?

I have a function that recursively searches a tree, looking for a certain condition to hold.  If it does hold, that node in the tree should be replaced by a new sort of node.  In the example code below, I call the class Tree_Node because it acts a lot like a TreeNode but isn't exactly the same thing.  Still I hope the basic idea is familiar and clear.  public void func(Tree_Node tn) {      if (!tn.isLeaf()) {         if (tn.condition()) {             tn = new Tree_Node(x);         } else {            func(tn.getChild(name));         }     } }   Now what I'm finding out is that tn = new Tree_Node(x) doens't change the value of the node in the tree, and I believe this is because the command is only changing the value of the local variable tn whereas I want to change the object stored at the location it's "pointing" to.  In the tree, I want to replace this node with a different node.    As I brainstorm solutions, I come up with two options that seem theoretically do-able:  Somehow have memory of what the parent node was, maybe by passing it as an argument to the function, and then I can change the child of this parent.  I could also perhaps define a .parent() method for Tree_Nodes, and then be able to call that method on tn.  The second option that comes to mind is to somehow find the address in memory where this node is stored, and update the contents of this address.  I would, for various reasons, strongly prefer to do this if it is possible and not too difficult.  I've also spent some time googling "java memory address" to see if answers already exist for this, but a) don't see helpful information, and b) see a number of posts suggesting that doing this sort of thing is unsafe.  Any solutions or advice would be welcome.


What is the rigorous justification for treating differentials as fractions while solving differential equations?

For example, given the differential equation $\dfrac{\mathrm{d}y}{\mathrm{d}x}=y\tag*{}$ We do, $\dfrac{\mathrm{d}y}{y}=\mathrm{d}x\tag{*}$ At which point we go and integrate both sides. Is there a rigorous justification for being able to go to $(*)?$


Using the result of a command as an argument in bash?

To create a playlist for all of the music in a folder, I am using the following command in bash:  ls > list.txt   I would like to use the result of the pwd command for the name of the playlist.  Something like:  ls > ${pwd}.txt   That doesn't work though - can anyone tell me what syntax I need to use to do something like this?  Edit: As mentioned in the comments pwd will end up giving an absolute path, so my playlist will end up being named .txt in some directory - d'oh! So I'll have to trim the path. Thanks for spotting that - I would probably have spent ages wondering where my files went!


Is the infinite union of Cartesian products of countable sets, countable?

We know for $A_1, A_2, \cdots, A_n$, where each $A_i$ is countable, that $A_1 \times A_2 \times \cdots \times A_n$ is countable.    We also know that $\mathbb{N}$ is countable.  Let $N_i = \mathbb{N} \times \mathbb{N} \times \cdots \times \mathbb{N}$ ($i$ times).  I am wondering if $\bigcup_{i=1}^\infty N_i$ is countable?  This is bothering me because for any given $i$, we know that $N_i$ is countable, so we have a countable union of countable sets, therefore, $\bigcup_{i=1}^\infty N_i$ should be countable.   But then we have that as $i\to\infty$, $N_i$ is countable. This implies that an infinite cartesian product of countable sets is countable, which is not true. It is uncountable.  Where am I going wrong and which is correct?


How long do you get to use a UK standard visitor visa from time of issue or is it valid for entry indefinite

I am going to apply for a standard visitor visa for my girlfriend to enter UK. If it is issued how soon does it have to be used after issue, ie. validity until time of entry?


What is the difference between Ubuntu GNOME and Gnome Desktop or just installing Gnome Shell on Ubuntu?

Answers like  make it seem like there is a difference between Ubuntu Gnome, Gnome-Shell and running Gnome on Ubuntu (like one that started with Unity).  What, if any, is the difference between the official Ubuntu Gnome and just installing the Gnome shell as a desktop environment on Ubuntu?


Why did the big bang need to produce equal amounts of matter and antimatter?

I've tried to find an answer for this but couldn't find one. Whats the problem with matter being created with little or no antimatter


Prove that inequality is true for $x>0$: $(e^x-1)\ln(1+x) > x^2$

I was given a task to prove that inequality is true for x>0: $(e^x-1)\ln(1+x) > x^2$. I've tried to use derivatives to show that the $f(x) = (e^x-1)\ln(1+x)-x^2$ is greater than zero, but has never succeeded.  Any help will be appreciated.


In The Hobbit: The Desolation of Smaug, Thranduil      angrily tells Thorin not to speak of dragon fire, then reveals a vision of half his face burned away.   The conversation implies that Thranduil has been in battle with a dragon. Considering that he leads a Silvan kingdom far to the east and south of what was once Beleriand and Angband, and there is no record of Smaug having visited the Woodland Realm, when and how could Thranduil have experienced dragon fire?


Generic Method Executed with a runtime type

I have the following code:   public class ClassExample {      void DoSomthing<T>(string name, T value)     {         SendToDatabase(name, value);     }      public class ParameterType     {         public readonly string Name;         public readonly Type DisplayType;         public readonly string Value;          public ParameterType(string name, Type type, string value)         {             if (string.IsNullOrEmpty(name))                 throw new ArgumentNullException("name");             if (type == null)                 throw new ArgumentNullException("type");              this.Name = name;             this.DisplayType = type;             this.Value = value;         }     }      public void GetTypes()     {         List<ParameterType> l = report.GetParameterTypes();          foreach (ParameterType p in l)         {             DoSomthing<p.DisplayType>(p.Name, (p.DisplayType)p.Value);         }      } }   Now, I know I cannot perform DoSomething() is there any other way to use this function?


I have downloaded the tar file, but it refuses to make.  Please guide me how to do this please.


Replacing words in a string, ignoring quotation marks

I am examining a string of text, and I am looking to change certain words in the text, ignoring anything inside quotation marks.  Example:  If I wanted to replace "my" with "MY"  Hello my name is "Tom, and my favourite sport is football"   Would become  Hello MY name is "Tom, and my favourite sport is football"   I am using regex to search for the words to be replaced.   I'm writing this script in Python.  Edit: I will be searching the original text for words from a list, not literal words.  It is also important to match 'whole words'.


What is the difference between /var/mail/XXX and /var/spool/mail/XXX

I look exactly the same :  But What makes me suprised is that they are  synchronous.


Possibility of getting HealthKit data from third-party sensors in real-time?

I have heard that HealthKit can be used to gather health-related data using the iPhone’s sensors in real-time, and I know that there are several third-party wearable biometric sensors that can interface with iOS and are supposed to be compatible with HealthKit (but it’s not clear to me whether that means they’re compatible with HealthKit itself or just the Health app). What I want to know is: does the HealthKit API provide a (relatively simple) way to access data from these external sensors in real-time as they're coming in? Or is it really only designed to do that for sensors that are already in the iOS device itself?


Sci-fi novel with a house used by aliens as a station when space travelling, protected by a force field

Sci-fi novel I read as a kid, with a house and a caretaker. The house was used by alien races as a station when travelling through space. The house looked normal from a distance but could not be entered because of some invisible force field. The man was chosen by the aliens as a caretaker of this house.


Phantom Voltage on Hot Wire from Another Circuit

While replacing a light switch, I shut off the circuit breaker for it and checked the voltage to be sure it was not hot. I noticed that the hot wire read 10VAC, which was odd. It was pretty consistent. Just on a hunch, I went and shut off the circuit breaker for another circuit nearby (the GFCI circuit for the bathroom outlets) and the 10 VAC went away.  I checked the neutral wire resistance to ground, and it was very low, which is correct.   Any ideas on what to look at for this?


I just updated my Moto X to latest and greatest Android 4.4 KitKat (I even did full factory reset just to be sure) and now I'm trying to install  but unable to do so, I'm getting following error:     Unknown error code during application install "-24"   Please advise.


How to use Figaro black olives and store after using? How long they remain good?

I have bought Figaro black olive jar. Want to know how to use and store the olives once opened? And how long do they remain good to use?


I am currently using a Xiaomi Mi Air 13 laptop which has two slots for SSD drives. In the first one, which came with the computer, I have Windows 10. I have now bought a second SSD for the second slot, where I want to install Ubuntu. I am nos sure if this can be done and how will dual boot work if I do it. I could use some help in the instalation process.  Thanks


Edited: I have tested this code in java and the printed output was "true", while the compiler compares the reference and not the value of Strings why this is "true"?   public class Main {         public static void main(String[] args) {                 String s1 = "string";         String s2 = "string";         System.out.println(""+(s1==s2));     } }


Blender .svg importer dispays curves in incorrect Order

Why does the .svg Blender editor display the imported curves in the exact opposite order of the original svg-file, unless I set the Shadeless property on their materials and switch to Rendered viewport-shading?  At first I thought this is a very special error but in  he has got the same issue.  Notice the white circle in the middle get's displayed behind the arrows in blender. Then he bothers about the colors and in the end changes everything to Shadeless, renders and gets the right result.  Isn't that kind of a bug?   Well at least now I that I found a solution to my problem, but maybe this could get fixed, since I wasted half a day on that confusing display-issue...


Whether the integration of the refugees into the local community can be feasible depends on the manner in which and the rate at which this happens.  Or  Whether the integration of the refugees into the local community can be feasible depends on the manner and the rate in/at which this happens.   I'm confused as to which word "in/at which" should be determined by; "manner" or "rate".   Any suggestions?


Calculate the components of a unit vector that lies in the xy-plane and makes equal angles with the positive directions of the x- and y-axes

It's just a doubt.  $\vec { A } = A \hat{ x }  + A\hat { y} $  $ A\hat { y} =A\hat{ x} $  $\vec { A } = A \hat { x }  + A\hat { x} $  Now finding the magnitud of the vector,  $A=\frac { 1 }{ \sqrt { 2 }  } $  So the components of the unit vector are:  $\vec { A } = \frac { 1 }{ \sqrt { 2 }  } \hat { x } +\frac { 1 }{ \sqrt { 2 } } \hat { y} $  Is my answer right?


$$\lim_{x \to 0}x^x$$   I know the answer is one but I have no idea how to get there.  I tried taking a natural log and I think I need lhopitals rule but I keep going In circles.


I've been handing a design for a webpage which I'm trying to implement correctly.  This design contains navigation elements which are partially or entirely duplicated all over the page - in particular, links to the main 3 categories for navigation are present on the page no less than 4 times.  I'm no web design expert, but I don't like the idea of having the same content duplicated in the html.  Can I use CSS so that my html contains a single list of navigation links in a sane format, but the standard browser view contains multiple partial duplicates?  (Also, assuming this is possible, is it a good idea?  or would I be better just getting used to the idea that my html is going to contain the same links 4 times?)  EDIT: Actually generating the nav links is not an issue; I was looking to clean up the output html


Probability that an $m$ digit number does not contain $0$, $5$, $6$ nor $9$

Given an $m$-digit number, what is the probability that it does not contain any of the following digits: $\{0, 5, 6, 9\}$?


turn off frame number in certain slides using the beamer package

I'm preparing a presentation and I would like to have transition slides without any noise, so I want to remove even the frame number (which I need for non-transition slides).  I modified the footer of the slides such that I insert the frame number instead of the page number:  \setbeamertemplate{footline}{%   \raisebox{5pt}{\makebox[\paperwidth]{\hfill\makebox[10pt]{\scriptsize{\color{blue}\insertframenumber}}\hspace{2mm}}}}   How can I turn off the frame number in these transitions slides.  The full MWE is as follows.  \documentclass[xcolor=dvipsnames, fleqn, usenames, table]{beamer}  \setbeamercovered{invisible}  \mode<presentation> {  \usetheme{default}  \setbeamertemplate{footline}{%   \raisebox{5pt}{\makebox[\paperwidth]{\hfill\makebox[10pt]{\scriptsize{\color{blue}\insertframenumber}}\hspace{2mm}}}} }  % comment to show navigation bar \beamertemplatenavigationsymbolsempty  \usepackage{color} \usepackage{lipsum}   \begin{document}  \begin{frame} \lipsum[2] \end{frame}   % transition slide \begin{frame}   {\huge     \begin{center}    {\color{blue} Transition}     \end{center}   } \end{frame}   \begin{frame} \lipsum[2] \end{frame}  \end{document}


Degree of Division of polynomials $\frac{p(x)}{q(x)}$ when $\deg(q(x)) > \deg(p(x))$

I'm not sure how to find the degree of the ratio $\frac{p(x)}{q(x)}$ of polynomials $p(x)$ and $q(x)$ when $\deg(q(x)) > \deg(p(x))$. I couldn't find an answer. For example, $\deg(p(x))=10$ and $\deg(q(x))=26$. Intuitively the degree of the ratio should be $-\infty$, and the degree of the remainder should be $10$.  Want to be sure if I'm right. Any help appreciated, thanks!


Why doesn't the "Rev" drop-down do anything?

When someone edits a post on Stack Exchange, there's a dropdown menu that says "Revision", the editor, the time, and a note.    But that dropdown menu does nothing at all. This is what the current revision looks like:    I select from the menu:    Now here it is:    That was just an example. I tried to revert my edit on my own posts, and the revision dropdown does nothing. So to revert my own post, I have to manually type it again.  Is there a reputation requirement? If so, why can't I use the dropdown on my own posts?


I was using Win10 for a while and now I want to install Ubuntu\Linux Mint as a second OS. But no matter what I do, I can't get into GRUB2 menu, each time it boots straight into Windows.  I'm using ASUS Rampage IV Extreme motherboard.  I made a separate partition for Linux install, on the same SSD as Windows (Samsung EVO 1TB).  I'm installing using "Something else", creating "/" and "/home" partitions. Then I tried choosing either HDD's root or Windows EFI partition to install bootloader to - no luck with either option.  I tried running boot-repair from LiveCD, and it just broke Windows boot. I reverted it back.  So, right now I have Windows 10 and I can boot into it. I have Linux Mint Sonya installed on separate partition, but I can't boot into it, and I can't get into GRUB menu. There's only Windows Boot Manager available in BIOS, or SSD root, none of those options gets me into GRUB.  I have Fast boot turned off in windows, and there's no secure boot in BIOS.  How can I make this work?  I am thinking about installing Ubuntu instead of Mint, and I suppose there's no difference in boot process between Ubuntu 16.X and Mint, so I hope it's ok to ask this question here.


To get logs in between particular time-stamps along with date using shell script


I have somehow locked or removed my access to sudo - how can I fix it?

I am fairly new at Ubuntu system and commands. I was trying to follow some tutorial online explaining how to setup using no password to download apps. I was in visudo, and next thing I know I can't use the sudo command, nor download any software/apps.   I don't know where to start looking. If anyone could point me in the right direction, that would be an awesome way to start my weekend.


I came across following problem     Evaluate $$\int\frac{1}{1+x^6} \,dx$$   When I asked my teacher for hint he said first evaluate     $$\int\frac{1}{1+x^4} \,dx$$   I've tried to factorize $1+x^6$ as  $$1+x^6=(x^2 + 1)(x^4 - x^2 + 1)$$ and then writing  $$I=\int\frac{1}{1+x^6} \,dx=\int\frac{1}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx=\int\frac{1+x^2-x^2}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx$$ $$I=\int\frac{1}{x^4 - x^2 + 1} \,dx-\int\frac{x^2}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx$$  However $$x^4-x^2+1=\left(x^2-\frac12\right)^2+\frac{3}{4}$$ But I can't see how it helps  I've also tried to reverse engineer the   And I need to have terms similar to $$\frac{x^2-1}{x^4-x^2+1} \quad , \quad \frac{1}{1+x^2} \quad , \quad \frac{1}{(x+c)^2+1}\quad , \quad \frac{1}{(x+c)^2+1}$$ in integrand, How can I transform my cute looking integrand into these huge terms?  Since in exams I will neither have access to WA nor time to reverse engineer the solution moreover it does not seem intuitive,is there any way to solve this problem with some nice tricks or maybe substitutions?


Different answers for the same problem, Einstein's relativity vs Newton's gravity

I had struggle to find the answer to this question: Imagine two charged identical particles, one stationary relative to earth, and the other one is free falling (to earth). We know that an accelerated charged particle radiates. But the real problem is, according to Newton, the free falling particle will radiate but with Einstein's relativity, the stationary one will radiate. (I'm not sure about this, correct me if I'm wrong). Can anyone explain which one is correct?


Is there any way to install Atheros e2400 drivers?

I have a new motherboard: MSI Z170A GAMING M5. This motherboard has an Atheros killer e2400 Ethernet controller. When I do lspci -nn, I get:  03.00.0 Ethernet controller [0200]: Qualcomm Atheros Device [1969:e0a1] (rev 10)   Google didn't seem to know the answer. Only a similar unsolved problem on the openSUSE forum.


dis = new DataInputStream(csocket.getInputStream()); int choice = dis.readInt(); Connection conn = MySqlConnect.ConnectDB(); PreparedStatement pst = conn.prepareStatement("Select hostname from clients where C_ID="); ResultSet rs = pst.executeQuery();   How can I put choice into the given query?


We have missed executing this activity for the two consecutive weeks. 'For the two consecutive weeks'. Is the usage of article 'THE' mandatory here?


How to display Emoji on my Web Broswer using PHP

I'm trying tp display Emojis from my database to Web Browser.  I tried to input emoji from my phone to my app and it is saved to database as 'ðŸ˜'. How can I display it to PHP as emoji like this 😍. Thank you in Advance.


How do you casually describe in English a possession of thing(s) belonging to/shared by two people?

Neither of the following sounds quite "right" to me:   This is the book of Kelly and I. (Maybe valid but still sounds too rigid) This book is of Kelly and mine's. (I know, sounds the weirdest) This is mine and Kelly's book. This book, Kelly and I own it.   In my native language (Indonesian) we have a phrase or a way of saying this without sounding weird or overly formal. Do you use any of the above at all, or is there any different sentence pattern for describing this kind of situation?


Split multiple polylines by distance in ArcGIS

Is there a method to split thousands of polylines by employing a tool like the "Editor" - "Split" method and using distance, in ArcGIS?      When I utilize the "split" - "distance" tool (fig1), it only splits one section leaving the remainder unsplit (fig2).    I have attempted the "COGO" tool - using "Proportion", and can utilize the "duplicate" button to assign the remainder of segments which seems like a viable option.  But I would like to find some way to automate this process.  Has anyone found a method to do this?  Or is Python (coding) the only way?  I am trying to split over 2000 lines into equal distance segments (fig 3) of ~600m. Each segment will have its angle measured, and will ultimately result in a rose diagram representing angular statistics.  The distance of each segment is important in my splitting regime (a long line will have a greater representation of a particular angle on my rose diagram than the neighboring shorter line segments).  I currently am using ArcGIS 10.2 with an advanced user license.


complex inequality (solution verification)

Let $f$ be entire, $|f(z)|\leq 3|z|^4+1$ prove $f$ is a polynomial with deggre $\leq 4$  Solution: $f^{(4)}(z_0)=\frac{4!}{2\pi i} \int_c\frac{f(z)}{(z-z_0)^5}dz$,  $\Rightarrow$  $|f^{(4)}(z_0)|\leq \frac{4!}{2\pi i} \int_c |\frac{f(z)}{(z-z_0)^5}|dz \leq \frac{4!}{2\pi i} \int_c \frac{|f(z)|}{|(z-z_0)^5|}dz \leq$ $$\leq \frac{4!}{2\pi i} \int_{0}^{2\pi}\frac{|f(z_0+re^{it})ire^{it}|}{|(re^{it})^5|}dt \leq \frac{4!}{2\pi i} \int_{0}^{2\pi}\frac{(3(|z_0|+r)^4+1)r}{r^5}dt \leq  \frac{4!}{2\pi i} 2\pi\frac{(3(|z_0|+r)^4+1)}{r^4}$$ that means $f^{(4)}(z)$ is bounded so from Liouville's theorem its constant and therefore $f$ is a polynomial with deggre $\leq 4$ Is my solution correct ?


Is there any existing mathematical work which connects the "entropy" with the "arrow of time"?

I have seen a lot of discussions connecting entropy with the arrow of time. One of them is a youtube link recently I saw :   My question is this: Lot of time we associate the asymmetry in time (past to future) to increase in average entropy. Is there any mathematical work which connects these concepts?


From my understanding, you program to an interface rather than a concrete class to restrict yourself from using methods that aren't part of the interface. This helps in the case you want to change the implementation of said interface later on. (Flexibility) i.e.      List myList = new ArrayList(); // programming to the List interface   instead of      ArrayList myList = new ArrayList(); // this is bad   Is the reason you can't access methods in ArrayList such as trimToSize(), that aren't part of the List interface, simply because they're not defined in List? Is it similar to as if a class had a public global variable but no method to access it?  Also, if you do decide to change       List myList = new ArrayList();     //into     List myList = new LinkedList();   Would the only reason you would make such a change be for the performance (I see no other reason)? Since in both cases you'd only be able to access the List defined methods, excluding the concrete implementation's extra functionalities.


Is "any of them" used with a singular or plural verb?

I'm posting this question to settle a debate.  Is the sentence, "If there are three of an unparalleled thing, is any of them truly unparalleled?" correct? The sentence throws me off because the first clause has a plural subject, but the second clause has a singular subject. My personal preference would be to make the subjects in both clauses plural. I.e. "If there are three of an unparalleled thing, are any of them truly unparalleled?"  On the other hand, adding "one" sounds okay too. I.e. "If there are three of an unparalleled thing, is any one of them truly unparalleled?" The addition of "one" lessens the ambiguity over whether the subject is singular or not.


3 time Schengen visa denial- having Sweden Personnumer

I have been rejected from Schengen Area 3 time in last 1.5 year( first from spain and the next 2 times from France) ,All with the reason they were not satisfied me to leave Schengen area. In 2013 I have admitted in one of Swedish universities and then got Swedish 13 month resident card.But after 3 month I had to come back from Sweden to my home country.  My question: Does having Swedish identity number from that time helps me to apply for tourist visa in Sweden and take the visa? I have been rejected 3 time which really is unfair . My dics always were complete. I got deppressed of this situation snt want to apply from Sweden. PS: I just want to go there to see some of my friends. Thats it.


Any way to set background color of console in python on Mac?

I want to change the color of the shell window from a running python script on a Mac.  I tried  >>> os.system('color 1f')   and  >>> os.system('setterm -background white -foreground white -store')   but neither works.  (I am NOT tring to change background color of pieces of text; I want to change the entire background.)  Regarding all the suggested duplicates, I'm not looking for an AppleScript solution. I need to do this from python, for the current Terminal window that is running the given python process.


Using \ttfamily with \bfseries (or how to enable bold in fixed-width font)

I'm using listings package, and I've added basicstyle=\ttfamily\footnotesize. However, when I do that, the keywords from the embedded source-code are not bold anymore.  I figured that \ttfamily together with \bfseries does not work.  And then I found a , and I tried adding \usepackage[bold-extras], and it didn't work either. What does that package do? Should I just ignore it and move on?  And then I finally found , which may be a duplicate to this one, but was a lot harder to find. I also found , which got me more confused.  So, what should I do in order to get a bold fixed-width font for use within listings?  Using pdflatex from texlive-2010.


In LuaTex is it possible to change font/language according to the script/glyphs used?

I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text that belongs to the secondary language. On the long run, this can become cumbersome.  In XeLaTeX I am using the XeTeXinterchartoks mechanism  that allows me to change automatically the hyphenation rules and/or the font without explicitingly declaring them. The  involves grouping together the glyphs of a Unicode Block and then automatically applying tex commands when transitioning from a group to another one.  For those not familiar with the XeTeXinterchartoks, more info can be found at  pages 13-14.  Lately I got interested in Lua(La)Tex. I want to know if there is a way to achieve similar results in LuaTex. As was pointed in a previous question,  but it was suggested that there are other, more powerful ways to achieve the same goal.  So the questions are   How can I change the hyphenation rules/font automatically according to the glyphs used without declaring them?  Can someone provide a minimum working example or at least point me to some references? One of the drawbacks of XeTeXinterchartoks is that the settings are global. Is there a way in LuaTeX to set this feature (if it exists) on and off, thus providing more flexibility?


This is most prevalant in SO but it happens everywhere  Misguided new user posts HORRIBLE question It gets closed/deleted User never comes back to SO  How do we let them know it's bad to post these questions, yet not make them permanently leave? This could become part of the be kind policy? Maybe make it so that they are prompted to edit instead of deleted???


Why can’t I see an object in viewport or render

I’m having an issue where I can’t see an object in viewport or in my render. I see the object in my scene collection and it isn’t hidden and again, I can’t see it. If anyone knows why this is happening, please tell me because I don’t want to have to remake everything that’s invisible. Thanks a bunch!


Search of the roots of a polynomial of grade $n$: why do not exists a closed formula?

The fundamental algebra theorem asserts that every  polynomial $P(z)$ of degree $n \ge 1$ (i.e. not constant), on a  algebraically closed field (like the field of complex numbers), of the type: $$P(z)=a_nz^n+ \cdots +a_1z + a_0. \quad a_i\in\Bbb C $$ admits exactly $n$ roots in that field. From this theorem it follows that a complex polynomial admits exactly $n$ complex roots (counted with the right multiplicity), while a real polynomial admits at most $n$ real roots. If $n=1,2$ there are the formulas for the resolution. For $n=3$ the Cardano's formulas and if $n\geq 4$ problems begin except for symmetric, biquadratic, monomial equations or special cases. Why is it that even today there are no closed formulas and we always have to use of the approximate solutions? Is there something new that I do not know? Supposing that I have an equation of $10$ th degree: $$a_{9}x^{10}+\cdots +a_{0}=0, \quad a_i\in\Bbb C$$ Is it, actually, possible to find all the $10$ solutions? PS: I ask something that is different from the question given as duplicate because it is for students of an high school and I ask something of very simple.


Why does "kill -9 0" end my console session?

I just wonder why kill -9 0 ends my tty console session?   What exactly is PID 0, it is not listed on a ps aux?


Is there a Function to ignore chars like 'á' 'é' 'ó' 'í' and 'ú'?

Im doing a caesar cipher and decipher, and i need to ignore this letters from the String: "á é ó í ú", cause we need to cipher text in spanish too, is there any function to ignore this letters or a way to change them in the cipher and still work in the decipher?  private char cipher(char ch, int key)         {             if (!char.IsLetter(ch))             {                 return ch;             }             char d = char.IsUpper(ch) ? 'A' : 'a';             return (char)((((ch + key) - d) % 26) + d);         }   something i expect is, if i enter a String like : "wéts" with a key an2, i get an output "uéiy" and when i decipher the "uéiy" i get  "wéts" again


How should one talk about multiple Greek letters in text?

I'm writing an academic paper in economics, and I'm using several different instantiations (I guess) of the Greek letter mu in several different mathematical equations. If I want to refer to all of them in my descriptive text, how should I do so? Should I write "mus"? Or "mu's"? Or should I insert the character itself, followed by just an "s"? Or followed by an " 's "?


Some threads here touching speed of gravity made me think about that. This lead to some questions.    The speed of gravity was not measured until today (at least there are no undebated papers to that effect). It seems common knowledge/belief among physicists that the speed of gravity is the same as the speed of light.    And this is my question: Is that speed of light = speed of gravity a result of GR or is that fed into the theory? Or is there some evidence from other sources than GR for this? Does the same speed imply some deep-lying relation between gravity and electromagnetism?


In season 1 episode 7 "Justice" of Star Trek TNG didn't they violate the prime directive by introducing themselves to a non-warp society?

The entire episode is about Wesley accidently walking on the Edo's grass, violating their laws in the process, and incurring the death penalty. Picard is concerned about violating the prime directive because he feels that if he doesn't abide by Edo law he is interfering in the affairs of another species.   However, isn't part of the prime directive that they don't make first contact with non-warp capable species? I thought that contact of that nature was considered detrimental to the natural development of non-warp species. We see an example of this in the Edo's view of god, the Enterprise sharing space with god, etc. So why is Picard so concerned about violating the prime directive in regards to saving Wesley when it appears that visiting a planet of a non-warp capable species for the sole purpose of shore leave and no attempt to conceal their identities or capabilities is a violation in the first place.


How to display a (zenity/GUI) dialog to the user after a root cron task has completed

I have a simple periodic cron task that must run as root. I want to use Zenity (or similar) to display a GUI informational dialog to user 1000 (or logged in user or all users) when the cron task finishes.   I'm looking for a simple, easy, quick solution. I'll adapt to the requirements of such a simple solution.  Here's where I am so far. My bash script works fine if run manually, but when Anacron runs it, nothing happens and I see Gtk-WARNING **: cannot open display in the logs. I hoped it would display my dialog to the user after being run by cron.  I realize (after reading related questions) that cron needs to be decoupled from the GUI. If user 1000 is not logged in, I could take one of several options:   do nothing (possibly acceptable because I want to keep it simple) display the dialog with completion message to the user when they log in next time (best) display some other type of notification (NOTE: the computer is a desktop system without a mail server installed)   I found these related questions: x11 - Anacron job complains "Gtk-WARNING **: cannot open display" - Unix & Linux Stack Exchange   shell - How to pass data outside process for zenity progress? - Unix & Linux Stack Exchange   Example Code (from other question which is essentially the same as mine):  #!/bin/bash # Backs up the local filesystem on the external HDD  sleep 60  DISPLAY=:0.0  zenity --question --text "Do you want to backup? Be sure to turn on the HDD." if [ $? -ne 0 ]     then exit 1 fi  *Do backup stuff here*   Error:  (zenity:9917): Gtk-WARNING **: cannot open display:  run-parts: /etc/cron.daily/backup-on-external exited with return code 1   (I'm running Kubuntu, so a KDE solution would be even better than Zenity, but I already installed Zenity, so I can keep using it.)


I recently purchased a Dell Venue 8 Pro.  I have read online about what it needs in order to boot into Ubuntu or any other Linux distro.  From what I have gathered, what really needs to happen is 32-bit UEFI support.  I got information from several sites, but where it was really summed up was in this previous post:    "Ubuntu has no 32-Bit Uefi installer, ask them to add support, they may listen."  That thread was specifically about getting the Dell Venue 8/11 Pro to boot Linux.  However, there are a slew of new tablets coming out running 32-bit UEFI, and I think this is a trend that is going to continue to grow:  mjg59.dreamwidth.org/26734.html  "UEFI on IA32 isn't going away. It will show up on more embedded systems as time goes on."  Others have tried this before with mixed success, but haven't gotten things to work quite right:    "It doesn’t really work. But it’s interestingly close."  I'm trying to start a thread dedicated thread on 32-Bit UEFI support, because that is the piece that is missing (from what I understand).  I don't really know how to work with this stuff, but I'm hoping that some people who do will read this and either contact canonical or somehow patch Ubuntu (or any other distro, really) to work this way.  Again, I don't really know how to do any of this...I'm just hoping someone can help!  Dell Venue 8, 11 Pro, Toshiba Encore, Acer w3, w4, Lenovo miix, and the asus transformer a100 are all tablets that will be affected by this...I think these are going to be incredibly popular tablets once their prices go down, and I think people are really going to get interested in putting linux on these.  Any help is appreciated, and thank you all so much!  EDIT 4/1/14:  Just booted into Ubuntu on my DV8Pro!  All you have to do is follow the instructions here:    To summarize, what you need to do is download the latest Ubuntu 14 daily build (AMD 64 is what worked for me) and put that on a USB drive via Rufus.  'For “Partition scheme and target system type”, choose “GPT partition scheme for UEFI computer.”' You can get the latest daily build here:   You will need to put the file found below into your EFI/Boot directory:   Disable Secureboot and such--follow the original instructions link if you don't know how.  Then set the USB to boot first in BIOS.  This should get you to GRUB.  The rest I'll quote the original author, it's real straightforward:  In the GRUB menu, highlight “Try Ubuntu”, and press “e” to edit it. In the editing screen, scroll down to the command line options, where it says “quiet splash”. Delete “splash” and replace it with: video=VGA-1:1368x768e reboot=pci,force [EDIT: For those of us using the Dell Venue 8 Pro, you need to use this line instead: video=VGA-1:800x1280e reboot=pci,force That accounts for the different resolution of screen.]  Then press F10 to boot. You should get all the way to the Desktop.  There you have it!  This got me to the Unity Desktop.  Problems:  Wifi is not working, but I used an Ethernet adapter and that seems to work.  I tried rotating the screen, but it throws your touch input off to one side, so I left it.    Make sure to read the tutorial mentioned earlier, it is more comprehensive, even though it is made for the ASUS T100.  If nothing else, the instructions I have provided should be enough just to get you to the Unity Desktop, which for me was amazing!  Hope you too can have the same success and keep building on it!  For what it's worth, someone else did this and posted a youtube video here:


I am not understanding below program.Runnable is an interface and constructor will not be there in any interface.In this program, how new Runnable(){...} is working?  public class Threads {     public static void main (String[] args) {         new Thread(new Runnable() {             public void run() {                 System.out.print("bar");         }}).start();         } }


how to execute brother dcp135 printer driver

How do I run an executable file (a .rpm file), in this case a printer driver?


Numbering is not displayed for subsections

I am extremely new to latex and I have to submit a project report in my college. The college has provided us with a template which we have to use for generating the report. It contains too many packages and other things which I am not familiar with. As I a extremely short on time, I need some help to fix the subsection numbering issue.   The packages included are:  \documentclass[oneside,a4paper,12pt]{book} %\usepackage{showframe} %\hoffset = 8.9436619718309859154929577464789pt %\voffset = 13.028169014084507042253521126761pt \usepackage{fancyhdr}  \fancypagestyle{plain}{%   \fancyhf{}   \fancyfoot[CE]{Pune Institute of Computer Technology, Department of Computer Engineering 2016-17}   \fancyfoot[RE]{\thepage} } \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0pt} \footskip = 0.625in \cfoot{} \rfoot{}  \usepackage[]{hyperref} \usepackage{tikz} \usetikzlibrary{arrows,shapes,snakes,automata,backgrounds,petri} \usepackage{titlesec} \usepackage{tabularx}  \usepackage[nottoc,notlot,notlof,numbib]{tocbibind} \usepackage[titletoc]{appendix} \usepackage{titletoc} \renewcommand{\appendixname}{Annexure} \renewcommand{\bibname}{References}  \setcounter{secnumdepth}{5}  \usepackage{float} \usepackage{subcaption} \usepackage{multirow}  \usepackage[ruled,vlined]{algorithm2e}  \begin{document} ....   after some pages of acknowledgments and abstract, this comes  \tableofcontents \listoffigures  \listoftables  \mainmatter  \titleformat{\chapter}[display] {\fontsize{16}{15}\filcenter} {\vspace*{\fill}  \bfseries\LARGE\MakeUppercase{\chaptertitlename}~\thechapter} {1pc} {\bfseries\LARGE\MakeUppercase} [\thispagestyle{empty}\vspace*{\fill}\newpage]  ....   Then comes first chapter  \setlength{\parindent}{11mm} \chapter{Synopsis} \section{Project Title}  blah blah blah... \section{ Project Option } blah blah blah...   The PDF output that I see is (I use TexStudio in ubuntu 16.04)   The numbering is correctly displayed in the table of contents but it is not displayed in the chapters. I have uploaded all the info I felt that will be necessary to understand the problem. If you want anymore info, please feel free to ask for it. Thank you.


A word for something that is deeper, more compelling than what is obvious or visible

Is there a word to describe the quality of something that is deeper, more substantial, or more compelling than what is obvious or originally thought?   I am thinking of something abstract, like a thought or something philosophical like Ursula K. Le Guin's definition of communication.


Present/past perfect when the object is a dead person

I remember (vaguely) reading somewhere that it is wrong to use the present perfect when the subject of a sentence is someone who is long dead:     *Einstein has visited the Philippines.   My question is, What if the dead person is not the subject but an object:     Leo is the best president our country has/had ever had. (The ones who   succeeded him were inferior, even our current president.)   Which tense is proper here


Is minifying id and class names a bad SEO practice?

I am a big fan of minifying everything whenever possible. It is a sin for me to don't do this.  However, I recently read that one of the thousands tips to boost your website rank on search engines was to:     give you content context with good class and id name in your HTML     I always change id and class names to one or two character length...  Is not that I don't believe what that guy said, but I really need some confirmation on this. For me it doesn't make sense why would that matter.   Is that point correct? (in case it is) Why?


I know this question has been asked many times but I am completely stuck.  EDIT:  This question is different from previous questions because the problem was not with the code for the reverse function, but rather what types of values can be passed to the reverse function (ie. array vs pointer) .. see answers below for more info.  I am simply trying to reverse a c style string.  I have taken copied and pasted the code to do so directly from Cracking the Coding Interview. (see below)  void reverse(char *str) {     char * end = str;     char tmp;     if (str) {         while (*end) {             ++end;         }         --end;         while (str < end) {             tmp = *str;             *str++ = *end;             *end-- = tmp;         }     } }   This does not work for me.  I am very new to C so perhaps I am compiling the code wrong. My main function looks like:   int main(int argc, char *argv[]) {        char *string = "foobar";     reverse(string);     printf("%s\n", string);      return 0; }   I am using Cygwin with Windows 8.1 and on the command line I am running:   gcc ex1.c -Wall -o exe1 ./exe1   Everytime I get a pop up from windows saying "exe1.exe has stopped working". I tried putting a print statement in the while loop to try debug and see what is going on.  It reaches the while loop once before the windows pop up appears.  EDIT: After reading the comments I have also tried changing the code in main to :  char string[] = "foobar";  reverse(string);   When I do this my program just hangs.  What am I doing wrong?  Thanks!


Problem with object reference in Javascript

I have a references problem that i can't handle with.  I have a array of strings. - ["String1","String1","String1"]  I am trying to map this array to have new array of objects { name: "String1", disabled: false } etc.  The code for that is:      let teamsWithProperty = teams.map(team => {       let object = {name: team, disabled: false}       return Object.assign({},object)    });   In next step i am creating an matrix of teamsWithPropery array:       for (let i=0; i<numberOfRounds; i++){       this.teamsMatrixForEachRound.push([...teamsWithProperty]);     }   The problem is that when i am trying to change a objects value in for example [0][0] element of matrix all of first elements have changes propery  (this.teamsMatrixForEachRound[0][0]).name = "Example"   I want to change property only of first object in matrix; But im getting:


Logic gate - What will be the second input of each gate?

Full:    Cropped   :    In the second image (cropped) which is the same as the first (full) image... why the 1st Gate outputs "0"?


where i click in open storage hd  Error mounting /dev/sdc1 at /media/.../HD: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdc1" "/media/.../HD"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0). Failed to mount '/dev/sdc1': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details.


Find the locus represented by  $$\sqrt {(x-2)^2 + y^2} + \sqrt {(x+2)^2+y^2}=4$$  My Attempt:   Let $P(x,y)$ be any point on  the locus. If we suppose $A(2,0)$ and $B(-2,0)$ any two points on the locus then from the above equation we have: $|PA| + |PB| = |AB|$


Example of vector space such that $cv = 0$ where $c \ne 0$ and $v \ne \vec{0}$

Is there an example of a vector space $V/F$ such that $0 \ne c \in F$, $\vec{0} \ne v \in V$, but $c \cdot v = 0 $?  I couldn't think of an example.


Seeing a deleted question in the newest questions list

I just saw the troll question on the deleted post "You'll hear from FBI".   When I checked in it had a score of -3, I downvoted, flagged and reloaded the page. The question was deleted... but then I checked my newest questions and found this:


The committee who have been working hard or the committee which has been working hard?

When referring to a committee that has been working hard, which of the following would you say?   The committee which has been working hard. The committee who have been working hard.   The committee is made up of people I know, it is not a group of unknown people so I feel strange referring to them as which, but my husband insists that is the correct usage.


lstlistings messes up spacing before subsequent section headings

I'm typesetting a grammar specification for a programming language, which leads to many short snippets of grammar and example code interleaved in the document text.  The issue I observe is that an lstlisting has no proper spacing to the following paragraph, and messes up the spacing before all following section headings. See the following screenshot (notice how 0.1.1 Examples "sticks" to the paragraph):    Inserting a description list after the first listing (uncomment (A) in the code) actually resolves the spacing issue of the section heading:    Changing the first listing (change (B) in the code) to verbatim resolves the issue entirely and inserts a much desired vertical space before the following paragraph:    To sum up,   verbatim gives me the desired overall layout of the text, whereas lstlistings looks subpar layout-wise but breaks lines and highlights code nicely.   Am I missing out on something about lstlistings? Are there any alternatives that are closer to what verbatim does?    The following source code produces the above results:  \documentclass{report} \usepackage{color,dejavu,listings,paralist} \lstset{backgroundcolor=\color[gray]{0.90}, aboveskip=0pt, belowskip=0pt}  \begin{document} \section{Definition}  % (A) \begin{lstlisting} definition : name ":" expr \end{lstlisting}  % (B) % \begin{description} % \item[expr] can be any valid expression and is evaluated at compile time until a %             function, a type, or a constant value is obtained. If this is not %             possible, the compiler will stop with an error. % \end{description}  A \emph{definition} is an expression with a label assigned to it. The label allows other parts of the code to refer to the definition. Only definitions are exported out of packages and can be referenced from other code.  \subsection{Examples} \begin{lstlisting} (a) A: func x -> x*x (b) B: func x,y -> x*y (c) C: type Int range 0 to 7 (d) D: 123 (e) E: A(2) \end{lstlisting}  Where \begin{inparaenum}     \item is a function with one argument,     \item is a function with two arguments,     \item is a type representing integers from 0 to 7,     \item is the integer constant 123, and     \item is the integer constant 4 \end{inparaenum}.  \end{document}


Does a creature grappling an invisible foe still get disadvantage on attacks against them?

If I turn invisible and grapple a foe, does he still have disadvantage to hit me because I am invisible or does he now know where I am?


Why does a black body emit at all frequencies at thermal equilibrium?


Product of a linear function of IDD variables

if $r_i$ are IID variables with $E[r_i]=μ$ and $f$ is a constant, is the following correct?   $E\left[\prod_{i=1}^n(1+f\space r_i)\right] = \prod_{i=1}^nE\left[1+f\space r_i\right] =  \prod_{i=1}^n(1+f\space μ) = (1+f\space μ)^n$  thanks! 🙇♂


Accessing static variables in constructor of enum class is forbidden in java. Why in enumerations the order of static initialization is not swapped?  Example of correct code:  enum Test {     TEST1, TEST2;      static int x; }   Why do developers of java did not created such code as correct:  enum Test {     static int x;      TEST1, TEST2; }   Then static variables could be used in constructor. Now it is forbidden.  Does it have any reason or it is just their design?


Suppose we have a sphere and a cavity inside which is displaced at a distance $d$ from the center. If a charge $q$ is placed in the center of that cavity, a surface charge $-q$ is induced in the surface of the cavity, and as a result, another charge is induced in the surface of the outer sphere. Is this induced charge uniformly distributed through the outer sphere's surface? If so, why? Would something change if the charge were not put in the center of the cavity but at a distance $d'$ from its center?


For any $a \in \Bbb{Z}$, can we always find two prime numbers $p, q$, such that $p - q \in (a)$?

This is a major weakening of many prime sum / difference existence questions.  Let $a \in \Bbb{Z}$ and $(a)$ the ideal generated by $a$.  Then do there exist two primes $p, q$ such that $p - q \in (a)$ at least?  Thanks.


Experiments proving/disproving extra dimensions

I have been recently reading quite a little about Kaluza Klein theories. I am still far from mastering this but I am curious if any experiment that may disprove or give hints of the existence of extra spatial dimensions is to be expected to be performed relatively soon. , for example, says that the LHC might give some clues, but it doesn't really dive into much detail. So, in some detail, which experiments might say something about this, and when might they be expected?


Resolving "An object reference is required for the non-static field" error

I'm facing the following error in C# Visual Studio that I just can't resolve:  "An object reference is required for the non-static field"  I don't know what it means nor how to fix it.  Sure, I checked online but didn't find anything that spoke to my simple code below.  All I want to do is call the following from Main() successfully:  int result = MaxPair(nums);  Many thanks in advance.    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;  namespace MaxPairSpace {     class Program     {          static int Main(string[] args)         {              int n = Int32.Parse( Console.ReadLine() );              string input = Console.ReadLine();             string[] split = input.Split(' ');             int length = split.Length;             int[] nums = new int[length];             for (int x = 0; x < length; x++)             {                 nums[x] = Int32.Parse(split[x]);             }              int result = MaxPair(nums);              Console.WriteLine("{0}\n", result);             return 0;         }          public int MaxPair(int[] numbers)         {             int result = 0;             int n = numbers.Length;             for (int i = 0; i < n; ++i)             {                 for (int j = i; j < n; ++j)                 {                     if (numbers[i] * numbers[j] > result)                     {                         result = numbers[i] * numbers[j];                     }                 }             }             return result;         }      } }


Renaming Multiple Files on macOS Terminal

Is it possible to rename multiple files that share a similar name but are different types of files all at once? Example:  apple.png apple.pdf apple.jpg  Can I substitute the apple for something else, for example "pear"? If this is possible, what would the command be? Many thanks for your time!


How do I disable Google Chrome's pop-ups?

I'm using Google Chrome on Windows 7. Whenever I'm writing a post and leave it incomplete, or if I'm using a web chat site, like omegle, when I attempt to close the tab, Chrome gives me a pop-up, asking me to confirm if I actually do want to leave the page.  Is there any way to disable these pop-ups?  I've checked all the settings but I can't seem to find anything.


I have a basic 2D tower defense game in C++.  Each map is a separate class which inherits from GameState. The map delegates the logic and drawing code to each object in the game and sets data such as the map path. In pseudo-code the logic section might look something like this:    update():   for each creep in creeps:     creep.update()   for each tower in towers:     tower.update()   for each missile in missiles:     missile.update()   The objects (creeps, towers and missiles) are stored in vector-of-pointers. The towers must have access to the vector-of-creeps and the vector-of-missiles to create new missiles and identify targets.  The question is: where do I declare the vectors? Should they be members of the Map class, and passed as arguments to the tower.update() function? Or declared globally? Or are there other solutions I'm missing entirely?  When several classes need to access the same data, where should the data be declared?


Is there a way to colorize output per stream from a program

I'm looking for a method to have bash colorize the output from a command based on what stream it was written to the terminal from. Is there any way to get it to colorize per stream?  Like for example  stdout -> regular color stderr -> red program created streams that write to the terminal -> blue


Every Element of Order 2 is in the Center of a Group

I'm taking an introductory group theory class, and one of the problems I was assigned is to show that if an element $g \in G$ has order $2$, then $g \in Z(G)$, where $Z(G)$ is the center of G.  Can anyone help me out on this one?  I'm a little stuck.


If $T^2 = T$ and $T:V \to V$ , does it mean that $T$ is the identity transformation?

Because if $T(v) = x$ then $T(x) = x$ so it must be the identity transformation ($T:V \to V)$. Right?


Estimating population standard deviation from subsample means

I would like to estimate the standard deviation of a population. The data I have is the size and mean of each of $k$ independent uniform subsamples: $(n_1, \mu_1), (n_2, \mu_2), \ldots, (n_k, \mu_k)$. Here, the $i$'th subsample has $n_i$ elements, and those $n_i$ elements have a mean of $\mu_i$.  What is the best way to utilize all $2k$ values to produce the best estimate of the population standard deviation $\sigma$?


As from the screenshot below, there is a duplicate icon of the xfig program. Sometimes with different programs same thing happens.    Any ideas how to solve this?


Regex that will extract the string between two known strings

I'd like to extract the email addresses from the following input text:      Junk     more junk     Members:      member: user1@somedomain.com (user)      member: user2@somedomain.com (user)      member: user3@somedomain.com (user)      member: user4@somedomain.com (user)      member: user5@somedomain.com (user)      member: user6@somedomain.com (user)     even more junk   The addresses are consistently found between " member: " and " (user)".  The following expression output an array of email addresses in an online regex tester:      /  member: (.*) /gi   I took the expression and made a function that matches the appropriate lines but includes "member: " in the output.      function test() {       var str = 'Junk\nmore junk\nMembers:\n member: user1@somedomain.com (user)\n member: user2@somedomain.com (user)\n member: user3@somedomain.com (user)\n member: user4@somedomain.com (user)\n member: user5@somedomain.com (user)\n member: user6@somedomain.com (user)\neven more junk';       var test = str.match(/ member: (.*) /gi);     }      Output:      [ member: user1@somedomain.com ,  member: user2@somedomain.com ,  member: user3@somedomain.com ,  member: user4@somedomain.com ,  member: user5@somedomain.com ,  member: user6@somedomain.com ]   I am fairly new to Regex but have experimented with positive and negative lookahead, but can't seem to find a combo that works.       Solution:       function regexExample() {       var myString = 'Junk\nmore junk\nMembers:\n member: user1@somedomain.com (user)\n member: user2@somedomain.com (user)\n member: user3@somedomain.com (user)\n member: user4@somedomain.com (user)\n member: user5@somedomain.com (user)\n member: user6@somedomain.com (user)\neven more junk';       var myRegexp = / member: (.*) /gi;       var match = myRegexp.exec(myString);       while (match != null) {         Logger.log (match[1]);         match = myRegexp.exec(myString);       }    }


Java: Code Runs "Else" Even When "If" Is Correct

I am trying to make a simple password protected program. The idea is that when you type in the correct password, an "Access Granted" message will appear. If the password is typed incorrectly, the message, "Access Denied", appears. This is run on the If/Else Statements. The problem with my program is that even when I type the correct password into the console, the else statement is still runs.  Despite having no errors, (Besides a Resource Leak) this happens. Here is my code:  import java.util.Scanner;  public class PasswordProtected {     public static void main (String args[]){         Scanner Password = new Scanner (System.in);         String mainpassword, userInput;         mainpassword = ("bob");         System.out.println("Please enter the password to continue.");         userInput = Password.nextLine();         System.out.println("Verifying Password");         if (userInput == mainpassword){             System.out.println("Access Granted");         }else{             System.out.println("Access Denied");         }     }  }   This is what my console produces when the password is correct:  Please enter the password to continue. bob Verifying Password Access Denied   This is what my console produces when my password is wrong:  Please enter the password to continue. erdtfyhujnikyguj Verifying Password Access Denied   Could anyone explain to me why this is happening? Is my code wrong? Could someone perhaps help me fix it?


Given, $f(x)=f(2x)$ evaluate $\int_{-1}^1{f(f(x))}dx$

Let $f:\mathbb{R}\to \mathbb{R}$ be a continuous function and   $f(x)=f(2x)$ is true $\forall{x\in{\mathbb{R}}}$. If $f(1)=3$, then   the value of $$\int_{-1}^{1}f(f(x))dx$$ equals.   I don't have any idea how to proceed. Any hints would be helpful.  Thank you.


I realize that I can block an employer from contacting me. I have done so.  However, I'd like a way to report simply unfair use of the Careers systems. I received a poorly targeted recruitment attempt, I responded "Not Interested" and have received multiple followups "Can I just have a quick phone call to describe the roll..." "I'd love to tell you more..." etc.  After the second one, I found the "Block Employer" button. However, does this get any attention from the Careers site, in general? Is there any precedence for having your Careers account suspended because too many candidates have blocked you?  I'd like there to be a "Report Harassment" feature.


Prove $Z_{mn}$ has at least $2$ idempotent elements besides $0$ and $1$.

Here m, n are relatively prime and greater than 1.  Z_mn is the ring of nonnegative integers less than mn under modulo m*n addition and multiplication.  An idempotent element a is a ring element with the property that a^2 = a.  I made a list of idempotent elements for some small integers.  I found A215202 on Sloane's OEIS.  It gives an even stronger statement about the number of idempotent elements (including 0 and 1 there are 2^omega(n) where omega(n) is the number of distinct primes of n).  I read some of the Wikipedia articles on idempotent elements.  I also read some of the stack exchange proof that Z_p has exactly 2 idempotent elements (this seems easy to understand since a^2 = a implies a^n = a for all positive n).


Is it possible to make a wooden pickaxe break bedrock with commands?

So i'm trying to do different kinds of pickaxes and axes, and I don't now a way to change the blocks that a pickaxe can break. Like how do i to make a diamond pickaxe break bedrock. if possible teach how to do it on 1.16.1. I found that command... /give @s minecraft:diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["bedrock"]}} ...But it isn't for 1.16.1


Why can a matrix whose kth power is I be diagonalized?

Say A is an n by n matrix over the complex numbers so that A raised to the kth power is the identity I. How do we show A can be diagonalized?  Also, if alpha is an element of a field of characteristic p, how do we show that the matrix A=[1, alpha; 0, 1] satisfies A raised to the pth power equals the identity I and cannot be diagonalized if alpha is nonzero.  Please be detailed. I really have no idea how to start on this one.


In Pokemon Go, is there any benefits of catching an evolved Pokemon if you can going to transfer to the Professor anyway?

For example, say I already got some Dratinis, and one Dragonair, and now, if I catch a Dratini versus if I catch a Dragonair, does it matter if I am going to transfer it to the Professor to get an extra candy to evolve my Dragonair to Dragonite?  That is, if I catch a Dratini and transfer, I get one Dratini candy, versus if I catch a Dragonair and transfer, I get one Dratini candy also?  So there is no extra benefits of catching a Dragonair vs a Dratini?  P.S. if so, a strategy can be, find out how many candies you need to evolve to a Dragonite first, and once you know it is 100, then when you have 25 candies, don't evolve to a Dragonair first, because if you catch one along the way, then the 25 candies you spent can be considered a waste.


I have a long article (~20 pages) with lots of equations being numbered and stuff. For a good cleanup, I would like to unnumber the unused equations. I am aware I can , but I would like to clean the thing up and not rely to the feature of mathtools. Therefore, is it possible to somehow display the list of unused labels?  On the following MWE, it should show (in the log, in bash, whatever) that boo was unused:  \documentclass{article} \begin{document} \section{BLA}\label{bla} \section{BOO}\label{boo} In Section~\ref{bla}. \end{document}


Insert multiple rows of data in a single SQL statement

I have multiple set of data to insert at once  INSERT INTO MyTable VALUES ("John", "Doe", 1234567890, "employee", ""); INSERT INTO MyTable VALUES ("Susen", "Gupta", 1234567890, "leander"); INSERT INTO MyTable VALUES ("Karn", "Share", 1234567890, "employee", "home");   I want to insert multiple rows in a single SQL statement. And can it possible to do it with different number of values.


I was going to change the ownership of a directory to apache:apache, but I ended up running:  chown -R apache:apache /   Bad! Very bad! I knew what was going on when it started saying:     chown: changing ownership of `/proc/2694/fd/48': Permission denied   That's when I stopped everything (Ctrl+C).    The current system I have is a server running virtualbox running CentOS 5. This problem happened inside the VM.  Currently, everything seems to be working, but I have not restarted the system yet, and to be honest, I'm afraid that if I did something will break.  I do not know chown's order, should I be concerned and assume something will break after a reboot? Is there a way to recover form this problem without having to rely on backups? I do have a daily one, but I thought there may be a simpler way out.


Suppose a postgresql table items like this. (keywords column is of type text[])  name   account_id      keywords ------------------------------ foo1   1               ['k1', 'k2'] foo2   1               ['k1', 'k3'] foo3   2               ['k4', 'k1'] foo4   2               ['k1', 'k6']   Each row in items is relate to a Account (the table is virtually splitted by account_id). We want make queries like: "items for account 1 with keyword k1". This query requires a composite GIN index on account_id and keywords column.  Actually, we need an inverted index, with rows like this: (the key for each row should be composite)  (account_id, keyword) --> [item1, item2, ...]  What's the right way to create this index in postgresql?


I have this method to test  public static AccountingYear newInstance(Date startingDate, Date endingDate) {     if ((startingDate == null) || (endingDate == null)) {         throw new AccountingRuntimeException(                 "the range specify is not correct");     }      AccountingDaoFactory daoFactory = (AccountingDaoFactory) UnitOfWork             .getCurrent().getDaoFactory();     AccountingYear lastAccoutingYear = daoFactory.getAccountingYearDao()             .getLastAccountingYear();     Date startDate = lastAccoutingYear.startingDate;     Date endDate = lastAccoutingYear.endingDate;     if (lastAccoutingYear != null             && isDateRangesOverlap(startDate, endDate, startingDate,                     endingDate)) {         throw new AccountingYearCollisionException();     }     if (endingDate.before(startingDate)) {         throw new EndingDateIsBeforeStartingDateException();     }     AccountingYear newAccountingYear = new AccountingYear(startingDate,             endingDate, true);     if (isOldAccountingYear(startDate, endingDate)) {         newAccountingYear.setSatus(AccountingYearState.OLD_AND_NOT_CLOSED);     }     newAccountingYear.save();     return newAccountingYear; }   This is the corresponding test  @Test public void newAccountingYearTest() throws Exception {     AccountingYear accountingYear = Mockito.mock(AccountingYear.class);     Mockito.when(accountingYear.getAllPeriods()).thenCallRealMethod();     objectToTest = AccountingYear.newInstance(startingDate, endingDate);     Assert.assertNotNull(objectToTest);     Assert.assertEquals(2, objectToTest.getAllPeriods().size());     Assert.assertEquals(AccountingPeriodType.Opening, objectToTest             .getAllPeriods().get(0).getType());     Assert.assertEquals(AccountingPeriodType.Closing, objectToTest             .getAllPeriods().get(1).getType()); }   When i run the test i have this exception: Java.lang.nullPointerexception, at Java.util.Date.getMillisOf,Date.before(). This is isOldAccountingYear code that give the exception  public static boolean isOldAccountingYear(Date startDate, Date endingDate2) {     if (endingDate2.before(startDate)) {         return true;     } else {         return false;     } }   Please can you help me solve the problem


Has Wonder Woman's lasso of truth ever snapped?

Is there any canon instance where Princess Diana of Themyscira (aka Wonder Woman)'s "" has ever snapped? Or is it truly indestructible?


Forward all traffic to a host on the internal network with iptables

This rule forwards port 80 to a host on the internal network:  iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 10.0.3.222:80   I want to forward all traffic regardless of the port (with n:n mapping) to an internal host. I have tried  iptables -t nat -A PREROUTING -p tcp -j DNAT --to-destination 10.0.3.222   but this doesn't work: the connection timed out.  This rule is part of a more complex chain. My goal is to allow connections to some services on the router (ssh, dns) and forward all other connections to an internal host. The complete chain setup looks like this:  iptables -t nat -A PREROUTING -m addrtype --dst-type local -j dnat-chain  iptables -t nat -A dnat-chain -p tcp --dport 22 RETURN iptables -t nat -A dnat-chain -p udp --dport 53 RETURN ... iptables -t nat -A dnat-chain -p tcp -j DNAT --to-destination ...   I added the same chain to OUTPUT to be able to initiate connections from router to internal services:  iptables -t nat -A OUTPUT -m addrtype --dst-type local -j dnat-chain   EDIT  Here is the initial state of the nat and filter tables:  $ sudo iptables -S -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -A INPUT -i lxcbr0 -p tcp -m tcp --dport 53 -j ACCEPT -A INPUT -i lxcbr0 -p udp -m udp --dport 53 -j ACCEPT -A INPUT -i lxcbr0 -p tcp -m tcp --dport 67 -j ACCEPT -A INPUT -i lxcbr0 -p udp -m udp --dport 67 -j ACCEPT -A FORWARD -o lxcbr0 -j ACCEPT -A FORWARD -i lxcbr0 -j ACCEPT  $ sudo iptables -S -t nat -P PREROUTING ACCEPT -P INPUT ACCEPT -P OUTPUT ACCEPT -P POSTROUTING ACCEPT -A POSTROUTING -s 10.0.3.0/24 ! -d 10.0.3.0/24 -j MASQUERADE   lxcbr0 is connected to 10.0.3.0/24


Macbook pro “13” mid 2010 battery not holding charge.

Macbook pro “13” mid 2010 shutdown after removing the megasafe charger. .  .   Any help will be appriciated.


Let $f(n)=\sum_{k=0}^{\left\lfloor n/2\right\rfloor} {2k \choose k}{n \choose 2k}$ . Show that $\sum_{n\geq 0}^{} f(n)x^n=\frac{1}{\sqrt{1-2x-3x^2}}$

Using the multinomial theorem, one can show that $f(n)$ is the coefficient of $x^n$ of the polynomial $(1+x+x^2)^n$. There are $3$ obvious ways to show the equation in the title:  First, you can square the $2$ sides of the equation and then multiply with $1-2x-3x^2$. In that case, the coefficients of the left formal power series seems too much.  Second, we can factorize the polynomial, $$    1-2x-3x^2=(-3)(x+1)(x-1/3)=(1+x)(1-3x)    $$ $$\mbox{and use the formula ,}\quad    \sqrt{1+F(x)}=\sum_{n\geq 0}^{}(-1)^n \frac{1}{4^n}{2n \choose    n}F(x)^n    $$ for $F(x)=x , G(x)=-3x$, then multiply the formal power series and see if the equation holds.  The third way is to use the previous method for $F(x)=-(2x+3x^2)$. In the 2 last methods the numbers arent very far from those we want, but i cant prove it. I think that i am missing some identity with binomial coefficients and thats why i cant solve it.


Conjugate in $\mathbb{C}$ implies conjugate in $\mathbb{R}$?

If $A,B\in M(n,\mathbb{R})$ and there exists $P\in GL(n,\mathbb{C})$ such that $A=PBP^{-1}$, does that imply that there exists $Q\in GL(n,\mathbb{R})$ such that $A=QBQ^{-1}$?


non-forking extension is equivalent to sameness of morley rank

given monster model of $\mathcal{M}\models T$ in $\mathcal{L}$, $p\in S_n(A)$ and $p\subseteq q\in S_n(B)$ where $A\subseteq B$,   $q$ does not fork over $A$ iff $MR(p)=MR(q)$(MR : morley rank).  $\leftarrow$ is easy to prove by the statement "if $q$ forks over A then $MR(q)< MR(p)$." I saw proof of $\rightarrow$ which premises that both concepts(nonforking extension and same morley rank) satisfy some unique properties like invariance under automorphism, local character, transitivity, etc. I just want to know whether some simple direct proof exists. What I tried was zorn's lemma for $P=\{q'\mid p\subseteq q'\text{(partial) type in $\mathcal{L_B}$}, MR(p)=MR(q'), q' \text{ does not fork over A}\}$ but failed to show maximal element is complete type in $S_n(B)$.


Explain the fit_intercept parameter in some scikit learn classifiers

I'm fairly new to machine learning and I am using the Linear SVM classifier to classify some text data and I was wondering what exactly does the fit_intercept parameter does and what would be a good reason to set it either True or False.  According to the scikit learn documentations what it does is:     Whether to calculate the intercept for this model. If set to false, no   intercept will be used in calculations (i.e. data is expected to be   already centered).   I know the intercept is the point where a function intercepts the y axis but I'm not sure how fitting it helps and why it could be needed. Would the hyperplane of the SVM be better positioned? Does it make the training faster? what does centering the data helps for and what does that exactly mean? Does it make sense to use it with a classification task or is it only useful with regression?


To remove all emails for all users of a Linux machine, I run:  find /var/spool/mail/ -regextype sed -regex "^.*[^/]$" -exec :> {} \;   ... however I received the following error message(s):  find: ‘:’: No such file or directory find: ‘:’: No such file or directory find: ‘:’: No such file or directory   What is wrong?


AddLast method not working in list class

So I'm trying to create a simple list class that implements the addFIrst and addLast algorithm to be more specific like this:  public class Node {      private int item;     private Node link;      public Node(int item, Node link)     {         this.item=item;         this.link=link;     }      public int getItem()     {         return item;     }      public Node getLInk()     {         return link;     }      public void setItem(int item)     {         this.item=item;     }      public void setLink(Node link)     {         this.link=link;     } }  public class LIsta {      private Node head;      public LIsta()     {         head=null;     }      public void insertFirst(int item)     {         Node n=new Node(item, head);         head=n;     }      public void insertLast(int item)     {         Node temp=head;         while(temp!=null) temp=temp.getLInk();         Node n=new Node(item, null);         temp.setLink(n);     }      public void Print()     {         Node temp=head;         while(temp!=null)         {             System.out.println(temp.getItem());             temp=temp.getLInk();         }     }  }  public class Main {      public static void main(String[] args) {         // TODO Auto-generated method stub          LIsta list=new LIsta();         list.insertFirst(5);         list.insertFirst(3);         list.insertFirst(2);         list.insertLast(8);         list.Print();     }  }   However it gives me an error whenever I try to call the insertLast() method more specifically in the line:  temp.setLink(n);   It says: Null pointer access. The variable temp can only be a null at this point.  Any Ideas?


I have mp3 file but while recording mp3 file they give 10 secs of blank and we need to crop this blank from mp3 file  any suggestion for editing or cropping mp3 files or any commandline ?  thanks


Should I select 'Install Ubuntu' or 'Try Ubuntu before installing' when using a live USB?

Does it affect the main hard drive or runs separately like a virtual machine?


I suggest a way to buy reputation on SO.   And yes I have seen the following link which is irrelavent:    But my purpose is completely different from the above.  My only purpose for buying reputation is not for looking more important/famous but  to be able to pay for bounties for absolutely critical and time sensetive questions.  I personally don't see a drawback here as SO makes some money here and questioner also get his /her question answered with more priority.  I completely disagree with the follwing statement:  "A reputation market makes the voting system useless".   Famous industry leading websites, such as Expert-Exchange have been using similar methods for making money for years and Expert-Exchange is now highly profitable.


What is the intuition behind why the integration of $f(x) = x$ for closed interval of negative to positive infinity diverges, rather than being zero?

I'm currently studying integrals in calculus. In teaching improper integrals over infinite intervals, I come across this example in my lecture notes,  $$\int_{-\infty}^{\infty} x \ dx$$  Naturally, the integration is split into two halves, such as $\int_{-\infty}^{0}x\ dx=-\infty$ and $\int_{0}^{\infty}x\ dx=\infty$. The lecture notes conclude that since both these improper integrals diverge, then so does the above improper integral, i.e.  $$\Rightarrow\int_{-\infty}^{\infty}x\ dx\ \mathrm{diverges}$$    Intuitively, however, I would expect that the first improper integral, $\int_{-\infty}^{\infty}x\ dx$ should evaluate to $0$, given that,   An intuitive meaning of the definite integral is the area under the curve The curve of $y=x$ gives a negative area for $(-\infty,0)$ and positive area for $(0, \infty)$ The curve of $y=x$ is symmetrical about $y=0$   So, my questions are   Why is this not the case, and Is $\int_{-\infty}^{\infty}x\ dx\ \mathrm{diverges}$ even what I think it means, that $\int_{-\infty}^{\infty}x\ dx=\infty$?


How to use if statement to check if a tag is assigned to particular value

I would like to filter out areas in Germany with post code = 14480. I coded the lines posted below but when I run it returns nothing. How can I fix this? Code: [timeout:3600]; area["ISO3166-1"="DE"][admin_level=2]->.germany; foreach .germany -> .reg (   node.germany(if: t["addr:postcode"] == reg.u(t["addr:postcode"]))   ->.targetArea;   node.targetArea(if: node.targetArea["addr:postcode"] == "14480");   out geom;   );   out;


I am going to use @font-face. So I copied corbel font to my directory and there it shows 4 fonts CORBEL_0.TTF , CORBELB_0.TTF , CORBELI_0.TTF , CORBELZ_0.TTF and next I copied Kozuka Gothic Pro font to my directory and there it shows 6 fonts KozGoPro-Bold.otf , KozGoPro-ExtraLight.otf , KozGoPro-Heavy.otf , KozGoPro-Light.otf , KozGoPro-Medium.otf , KozGoPro-Regular.otf  How to write src using @font-face rule? As in example url("../../css/fonts/League_Gothic.eot") format('eot'); the format eot , is it the extension of font? Anyone give me the idea for full syntax within @font-face.


Removing taxonomy slug from URL but keeping post type

As the title says, I want to remove the taxonomy slug from URL. Instead, I want to keep the post type slug. For example: I have a post type called "Books" (rewrite_slug = books) and a taxonomy called "Genre" (rewrite_slug = genre) which includes "Science fiction", "Drama", "Comedy" etc.   Right now I have two options which work:  site.com/books/genre/comedy/   and  site.com/genre/comedy/   I want the url to look like:  site.com/books/comedy/   Is there a simple rewriting rule for this?


How to vertical align the div in center irrespective of screen size

HTML  <div id="centered"> //Some Content </div>   CSS  #centered { margin-left:auto; margin-right:auto; }   The above code is horizontally aligning irrespective of the screen size. How to vertical align the same div in center?


VirtualBox Guest Additions installation problem

I am having a problem trying to install the guest additions for my ubuntu 18.04 and virtualbox 5.2.12  I thought I did something wrong so I tried to install the additions from the CLI, unistalled and installed dkms... I even deleted the virtual machine and installed ubuntu again and it has the same error.  Can anyone help please as I did not find an updated solution to my problem.  Here is the message i get when trying to install the addons:  Verifying archive integrity... All good. Uncompressing VirtualBox 5.2.12 Guest Additions for Linux........ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted VirtualBox Guest Additions: Starting. Press Return to close this window...


Emil Fuchs military history from world war 1

Looking for military  information, photos, rank, awards, duty stations, battles etc for Emil Fuchs. Born 7/25/1892, Deggendorf Germany.


Capacity of pen drive shown is less than the actual

I have a 8 GB pendrive. I used to write raw data into the pendrive (without creating filesystem) using the dd command.    Today, when I inserted the pen drive, the I am unable to write anything on to it.  When I open gparted it is showing the total space on the pen drive as 500 MB. I am unable to create a new partition table or a partition on the pen drive now.   Here is the fdisk -l output.   Disk /dev/sdb: 0 MB, 512000 bytes 255 heads, 63 sectors/track, 0 cylinders, total 1000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00095df6   What's wrong with the pen drive? How can I recover the lost space?   Device Boot      Start         End      Blocks   Id  System   When I open gnome-disks, it shows the total space as 8 GB but when I try to create a new partition using it, it shows the following error:  Error creating partition on /dev/sdb: Command-line parted --align optimal --script "/dev/sdb" "mkpart primary ext2 1MiB 7969177599b"' exited with non-zero exit status 1: Error: The location 7969177599b is outside of the device /dev/sdb.  (udisks-error-quark, 0)


How do I tell what sort of solder I have?

My soldering iron came as part of a kit and I have really not used it very much at all in all the years I have had it. (Read zero meaningful uses). I cannot remember who gave it to me or why. The kit came with some solder but I have since learned that there are different types including leaded and lead free. Is there a way of figuring out what type I have?


How do I find out the exact name of a utility?

Sometimes I forget the exact name of a tool I'd like to use. Sometimes I remember parts of it, sometimes I only know what it's used for.  Is there a way to find out the name of the program from within the terminal?  E.g. search tool for "window positioning manipulation" -> wmctrl


Slow transfer with memory stick (819 kb/s)

What do I do to optimize the file transfer rate of a Memory Stick Duo?  The file transfer was not like this when it was still new.  Can reformatting give new life to a memory stick?  It takes about 20 minutes just to transfer 1Gb of file from computer to memory stick. The computer is decent enough. 2.50Ghz processor, 2Gb ram.


(NOT NATIVELY) Edit records from site.com page?

Has anyone solved this? You can retrieve and submit, but as far as I can tell you can not edit.  I understand this is NOT possible Natively within sites.com. My question is whether anyone has solved this programatically.


Relative performance of using C++ Class based and struct based data type

Assuming the class in question is only used hold data fields which are directly accessed, which would be more performant to use, class or a struct with similar fields.


Textures won't show up when I render an animation

I have a problem with Blender and its animation process, I want to do an animation and to do that I rendered all frames of my project. Textures on all of my frames are visible but when I do the render animation, my textures won't show up. I used UV/Image editor, I applied the materials to the objects and I did the exact same thing for 3 other animation and it has worked on all of them..  Here is a rendered frame where we can see that textures show up.   On this screenshot we can see that there's no textures when I do render the animation but on the right screen we have a view in "Render Mode" which shows us textures...   If anyone can help I'd be very grateful


Find a function that is continuous only on rationals

The famous Thomae's function provides an example which is continuous only on irrationals. Similarly, can we have a function which is continuous only on rationals and nowhere else?