Like the title says. My wife and I save 3100 dollars monthly. What are your suggestions on investing to reach financial independence in max 15 years? Our living costs are around 1300 dollars a month.

I am young, just started my career, and looking to begin investing so I can make my money work for me. I'm still living like I did in college (occasional purchase on myself, but most of it goes into savings) and I would like to take the extra money and invest it.   What would you suggest are the best options for me to begin? I was considering getting a personal investor [a financial advisor] for perhaps a year or so, but I've heard that they really are not worth the money. I wanted to get the input of the great minds here.


I want to put both nodes and pics along a path. This works perfectly well:  \documentclass{article} \usepackage{tikz} \begin{document} \tikzset{p/.pic={\node [circle, draw] at (0,0) {};}} $\tikz{   \draw (0,0) node {x} pic {p}     to (1,1) pic {p}; }$ \end{document}   I get a path from (0,0) to (1,1), with a node labelled 'x' and my pic p at (0,0), and my pic p at (1,1).  But if I change my tikz picture to the following, I get errors:  $\tikz{   \draw (0,0) node {x} pic {p}     to (1,1) node {y}; }$   In fact, it seems that I can place some nodes, and then I can place some pics, but then I cannot place any more nodes along the path.  How can I achieve what I want? Is this a bug with PGF 3.0?

Why the shape (sB) is unknown in the following code ? How to avoid this ?  \documentclass[]{standalone} \usepackage{tikz,xparse} \usetikzlibrary{calc}  \tikzset{pics/.cd,     % Marque croix     Cross/.style args={#1 and #2}{%         code = {%         \draw[#2,rotate=45,scale=1.4] (0,#1 pt) -- (0,-#1 pt) ;         \draw[#2,rotate=-45,scale=1.4] (0,#1 pt) -- (0,-#1 pt) ;         }     },     Cross/.default={2 and black} }  \NewDocumentCommand{\Segment}{mO{}}{%     \begin{scope}[#2]     \path    (0,0) coordinate (sA) pic {Cross={1.5 and gray}}         -- (#1,0) coordinate (sB) pic {Cross={1.5 and gray}} ;     \draw (sA)--(sB) ; % Can't reuse (sB)     \end{scope} }   \begin{document}     \begin{tikzpicture}     \Segment{1.5}     \end{tikzpicture} \end{document}


All throughout the Star Wars movies, we see the droids emit several beeps and whirs, and the humans reply to the droid as if it were a normal conversation. How can every character in Star Wars fluently understand droidspeak? We know that Anakin Skywalker could speak several languages by the age of 9, including droidspeak. Is this language just something standardly taught to young children across the galaxy? Droidspeak is a complicated language. Are children in Star Wars born knowing it? Do they learn it like their own language, from their parents and surroundings? (This question has been associated with "How do people understand astromech droids?". I am asking about all types of droids and their language droidspeak (or Binary), not specifically astromech droids, although the questions are fundamentally similar) **edit: I have found evidence for this question in the show Star Wars Rebels (which is canon). In one scene, Zeb says to Ezra "Wait, you actually understand that glorified beeping garbage can?" (referring to a droid) and Ezra responds: "Yeah, sort of. I'm learning." which implies that droidspeak can be learned, but is not widely known. **

In all the Star Wars movies, R2D2 just boops and beeps his way around. And everyone understands him perfectly, though he is obviously not speaking Basic.  How do people understand him - is there like an astromech language? If so, then would one have to learn it, or is it comprised of feelings and emotions (expressed in beeps), essentially making a tonal language?  If I may be permitted to use an example from the prequels without too many lynch mobs forming, Anakin Skywalker converses frequently with Artoo while in the Naboo fighter, but he couldn't have had much schooling at the age of eleven, especially because he was a slave.  So how would people, Anakin especially, be able to understand astromechs?


I have a lot of audio lecture mp3 files. They tend to run 30-90 minutes long. I've uploaded many of them to Google Play Music, and listen to them on my Mac and iPhone using the Google Play Music web site or app. It works okay, but the main problem is it doesn't have 15-second rewind/forward buttons in case I want to hear something again. Is there an app that would be better for that, particularly that can use iCloud or some cloud service that can store all these files to make syncing easier? It seems that Apple Music / iTunes might work okay for listening on iPad, since the Apple Music iPad app has a 15-second rewind button, but the iPhone and Mac apps do not have this button. The Podcasts app functionality works nice, but I don't think it supports private uploads.

I am using iTunes 12.5 on Windows 10 with an iPhone 5s.  Sometimes I download hour-long .mp3 files that I want to put onto my iPhone as podcasts, so that it automatically remembers where I am in my listening if I have to stop in the middle.  I know how to transfer .mp3 files to my iPhone, where they show up as Music.  I also know that I can right click on any song, choose 'Get Info' and under Options change the media kind to 'Podcast.'  But when I change the file to a podcast, it disappears from iTunes, though it does show up on my device when I open the Podcasts app.  How can I transfer an .mp3 file to my iPhone as a podcast, and still have that podcast show up in iTunes when I look there to see what podcasts are on my device?


I'd like to extract the audio from an mp4 video. Is there a software for Ubuntu, which does the job?

Is there an application that allows me to extract the audio from a MP4 or FLV video file and store it as an MP3 file for use in a portable media player?


I'm trying to get my hands into Blender after months using Sketchup and facing the limitations of that last one (subtracting shapes is limited to PRO and even in pro, it is still quite limited).  I first tried to export a collada file but then I read that maybe my objects are not plain.   So I did what I usually do when I check my stl files for 3d printing, I repaired them, and then re-exported them through collada and Imported then into Blender.  Unfortunately, I still can't do the subtraction.   Surely somebody here will tell me what's wrong? Maybe the whole approach?   I attached the blend file (2.6 version) so some charitable person could have a quick look and spare me light years of trial and error?    Resolved. Thanks to @Mr Zak for his help! (See second comment)

I'm trying to model an , but it's not going so well when it comes to the magazine of the weapon.   Next to the magazine is a mesh. I want to cut holes in the mag with that mesh. But the magazine just goes invisible or connects with the mesh when trying to execute the Boolean Modifier. I have tested to invert the normals and some other stuff, but it isn't working.


Let $f$ be a real function  continuously differentiable at $\Bbb R$ such that $$\lim_{x\to +\infty}(f(x)+f'(x))=0$$ prove that  $$\lim_{x\to +\infty} f(x)=0$$ I tried tu use exponential function knowing that  $$\frac{d}{dx}f(x)e^x=(f(x)+f'(x))e^x$$ but I got nothing. thanks in advance for an answer or un idea

How to show that $\lim_{x \to +\infty}(f(x)+f'(x))=0 $ implies $\lim_{x \to +\infty} f(x)=0$?


I do not particularly appreciate the Amazon logo reminding me to consume every time I open the app overview in Ubuntu 17.10 and later?  Since previous questions have been related to the Amazon launcher of the 17.10-irrelevant Unity-specific unity-webapps-common package, the answers are no longer applicable.  How may I in uninstall the app Ubuntu 17.10 running GNOME Shell?

I was able to go to the ubuntu software center before and remove it and now it doesn't show up since the switch to the gnome software store. Trying the terminal method of removing the shopping lens doesn't work in this release.


All along, I had the impression that, as reward for resisting the One Ring and contributing towards the journey to its ultimate demise, Bilbo (for finally abandoning it), Frodo (for having done the most to carry the burden for the actual journey) and Sam (for carrying it when Frodo couldn't and successfully resisting temptation to take over as the main bearer) were granted passage to spend the remainder of their mortal days in the Undying Lands, where the Blessed Realm can help heal/protect their souls from the dark taint of the Ring until the end of their days.  I just found Arwen's wiki article, though, and a passage quotes thus:     After marrying Aragorn, she bestowed upon Frodo Baggins a gift: Her place on the ships to Valinor.   This implies that Frodo was originally ineligible for entry into the Undying Lands, until Arwen gave him her ticket.  Is my prior impression wrong? I think it came from many years ago, the one time I read RotK. If I am correct, then why does the quoted passage seem to conflict it? Did I misinterpret it, or is it a movie vs book thing? If I am wrong and the quoted passage is correct, then:   Why can Bilbo and Sam go to the Undying Lands? Whose place on the ships did they take? Arwen already gave up her immortality to be with Aragorn. She is known to have told her father Elrond: "There is now no ship that would bear me hence". I don't think the choice of abandoning immortality can be walked back once made, so why did she have a seat to offer to anyone by that point? Even if she still held a place on the ships to the West, is it her place to offer it to anyone?

At the end of The Return of the King, Frodo, Bilbo, Gandalf, Elrond, and Galadriel left Middle-earth on a ship, along with other elves. I named those five because they were all ringbearers and it seems to be a common trait. Frodo and Bilbo bore the One Ring and the three others bore the three elven Rings.  Why did they have to do that? Why didn't they stay and have a peaceful life now that the Dark Lord was gone?


There is a mysterious and undocumented Android Permission called: WRITE_GSERVICES. As usual Googles own documentation is even more mysterious than any bad fairytale, writing:   android.permission.WRITE_GSERVICES      Allows an application to modify the Google service map.   However Googling (!) for Google Service Map yields nothing useful.  What is it controlling and what is it used for?

When installing an application, the application lists permissions that it needs to perform its  functions.    I am creating this list of the the system defined permissions and a description of what they mean. It is a community wiki so if new permissions are added in the future they can be added to this list.


I'm running Catalina on a MB Pro 2019 and I'm trying to create a separate volume running Mojave through a bootable external device. I've been doing this earlier this year and I had no problem whatsoever doing it, but as of today, when I try to download Mojave from the App Store, as soon as I press the "Get" button, Software Updates prompts and I get this error: "Update not found, the requested version of MacOS is not available", and I can't download it. I've been using the App Store link found at step four of this link:  The result is I'm unable to download this version of MacOS and therefore I cannot proceed in the creation of a bootable device. Any advices on how to solve this problem? Does Apple also provides a direct link to download this OS?

Sometimes it's hard to search for older versions of macOS & OS X  on the App Store.  This is an attempt to provide the canonical QA for this issue, as per the Meta QA -  I expect it to be modified over time to hopefully become a complete information resource.  How can I get any older version of a Mac OS to be able to run as a VM, or to reinstall on my Mac?


I own a hosting company but maybe I am just to mad for Ubuntu. My customer wanted to run apt-update and got the following response: E: The repository 'http://ppa.launchpad.net/ansible/ansible/ubuntu groovy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/ubuntu groovy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  How do I fix this?

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


My account was hacked I and need to reset my password.   What icon do I click? I can't see where it is written "change your Logon".

Do I need to contact Google if I've forgotten my Gmail password?


I have freshly installed Ubuntu Server 16.04.3. I had previously been using some edition of version 14, and it always booted to a text login screen. I was expecting the same from 16.04.3, and in on-line demos that's exactly what I see happening.  It essentially gets to a black screen with no login prompt and only the following text at top:  /dev/md0: clean, 60884/117891072 files, 759991/471562752 blocks   I do have (software) RAID10 configured. This is my first time configuring anything other than RAID0.  I noticed that I am able to ssh into the machine remotely and use it that way. I also discovered that by typing Ctrl-Alt-1 I can get to a (colourful) terminal and login that way. I've seen some other people ask about boot/log-in issues, but most seem to involve boot loops or completely blank screens. This doesn't seem to be what I'm experiencing.  So my problem doesn't seem to indicate the server isn't booted correctly. It just doesn't present the login screen to the local terminal automatically after booting. Is this expected?  Additional information:  Relevant contents of /var/log/auth.log  systemd-logind[825]: New seat seat0. systemd-logind[825]: Watching system buttons on /dev/input/event1 (Power Button) systemd-logind[825]: Watching system buttons on /dev/input/event0 (Power Button) sshd[968]: Server listening on 0.0.0.0 port 22. sshd[968]: Server listening on :: port 22. CRON[1290]: pam_unix(cron:session): session opened for user root by (uid=0) CRON[1290]: pam_unix(cron:session): session closed for user root

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I've got a ASMX webservice that returns the following XML, which is a string array. How can I deserialize into the correct type?  <ArrayOfString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">     <string>0 Item(s)</string>     <string>0</string> </ArrayOfString>   In JQuery this is easy, but I'm looking for a way to do it in C#.

Is there a simple method of parsing XML files in C#? If so, what?


I have been cleaning up tags on SU today and accidentally created a new tag by hitting return when the tag suggestion drop-down highlighted the tag I wanted. I probably should have pressed tab instead....  Anyway, I would like a confirmation when a new tag is created, both as a way to avoid stupid mistakes and as a place to add a few pointers on tag creation.  For example:     Tag FOO does not exist, are you sure you want to create it.      Please make sure that         there isn't an existing tag or sets of tags that can be used instead.   there isn't an alternative spelling already in use   it's not a meta-tag   isn't comprised of numbers only   it's spelled correctly         before you proceed

In retrospect of this , I would like to ask the community how they feel about a warning or confirmation (or just special highlighting) on new tag creation.  Everybody hates stock "are you sure?" confirmation, but a lot of tags get created by mistake (and then used ad nauseam).   For example, I think I might have created the  tag by accident. Assuming the right tag was , there would be two tags for c# 4.0, until they are made synonyms. With a warning, some accidental tags could be prevented.


At the moment I have something like this in my latex document: \cite{NgRussell:ICML2000,AbbeelNg:ICML2004}  However in the pdf this appears as [3], [5] while I would like to see [3,5].  The following lines in my preamble could be affecting this, but I have no idea which ones:  \usepackage[backend=biber,style=ieee,sorting=none,urldate=comp,dateabbrev=false]{biblatex} \addbibresource{references.bib} \DefineBibliographyStrings{english}{     urlseen = {Retrieved}, }

MWE:  \documentclass{article} \usepackage[english]{babel} \usepackage{csquotes} \usepackage[style=ieee,backend=biber,sortcites]{biblatex} \addbibresource{ref.bib}  \begin{document} Refs. \cites{Yang10,Yang09}\\ \end{document}   The output is [(1),(2)]. How to remove parenthesis here? I see the output is [1, 2] in numeric-comp but I don't see in ieee.cbx where this parenthesis is added.


The Chicago Manual of Style (sec. 12.16) suggests medium space (a ¼ em) before and after   signs for binary operations (i.e., conjunctions); symbols of integration, summation, or union; and signs for binary relations (i.e., verbs)   except in exponents; also medium space after commas between "coordinate points" or between elements in a list; and "no space after a binary operation or relation sign when it is modifying a symbol (i.e., used as an adjective)".  I don't know whether LaTeX follows these guidelines, but anyway I would like to know the (generally accepted) "right" amount of space in the following situations (that is, do I need to add/remove space, and if so how much?)   after logarithm: \log x before factorial symbol: y! in an implicit multiplication: x y before and after "for all" symbol: x > 0 \forall x between equations separated by a comma: x = 1, y = 2 between equations separated by text: x = 1 \text{ and } y = 2 after a comma separating elements of a set: \{0, 1\} after a comma separating arguments of a function: f(x, y)

In general, in most places, it is said that using TeX defaults is the best. However, TeX does provide things like \, and \quad etc. When one should use them? Both in general and in math mode in particular.


I am importing and posing characters (started with Blender 2.76b a week ago) from Make Human (V1.0.2). However frequently I get some awful deformations mainly at the shoulder and wrist - see screen shot. It is almost impossible to pose them with their hands behind the head.  Any ideas or hints? Please!

I'm trying to work out this shoulder deformation. I can't figure it out.  Is there anything wrong in my armature? Should i add bones and keep more control of my mesh or use shape keys? Here is my file blend.


With all that I can remember from this book I have been unable to work out what the original story was. Context I came across it in secondary school (highschool) and enjoyed it. Every now and again I remember random details and I wouldn't mind reading it again. I'm relatively sure the book was part of a series, but can't remember for sure. I definitely only read one. It would have been around 2014 when I actually read it. I'm fairly sure it's target audience was somewhere around early-to-late teens. Setting The book is set in the medieval era and there is definitely some magic, but I don't think it's very prevalent and there probably aren't any wizards. There are quite a few different characters who share the spotlight in a similar manner to the game of thrones series. I can't remember anything at all about the villains or even if there were any specific villains to begin with. Story The story more or less starts with an old man who used to be a warrior of some sorts recieving a vision that a castle, fort, etc. is going to be attacked by an army that I can't remember any details of. He decides to go towards the castle and provide any assistance he can in preventing the fort from being attacked. On his way there, he meets a bandit (or group of bandits) and persuades them to join him by having the bandit shoot an arrow into a trunk and cutting it in half mid-flight with a swing of his axe. Along his journey, he receives another vision and somehow manages to contact the fort and explain that the attacking force will be bringing siege towers, so they end up making oil jars to throw at the siege towers and set them alight. In tandem with this, a man (who I will refer to as bob) rescues a woman from some harsh environments (and possibly starvation). For some reason I have an assocation with one of them wearing bronze armor. I don't know why, but they also go to the fort. (Despite this story being found in a secondary school, I think it does get mildly raunchy). I'm fairly sure bob's the primary character in this story. I can't remember why the castle/fort was so important, nor who or what gave him the vision. However, I am fairly sure that it was in some way related to bob. At some point the old man reaches the fort and he assists in some form of training regimen to help make the troops battle-ready. In the fort itself, there is some leader (captain or general perhaps) who is holding the fort - it seems at first that a lot of the people there do not think of him as a very good one... though I can only really remember him being described as chubby. However, throughout the story he participates in the training regimen and is able to accrue some respect from his people. To give a specific detail that I can remember, he goes jogging with the rest of the soldiers at the fort under the recommendation of the old man. At some point, bob & co make their way to the castle aswell, the battle ensues and bob is nearly killed (or is killed and then revived). The book cover was a plain color with a single life-like picture of either a shield (or some other round object) with some carvings on it, or a double-edged battleaxe, with most of the haft missing. One final detail being some vague memory of someone getting stuck in a trap, possibly a bear trap, in some area with a body of water either at the very start or at the end of the book, to act as a cliffhanger for other books in the series. It's possible that this memory actually comes from a different book, though.

This is a comic book I read no later than 1993 (so is pre-1993).  And probably after 1988 though I can't be certain.  The protagonist is a huge barbarian with an axe, who seems like an old man, who is defending a series of gigantic walls against an invading army, apparently single-handedly. They keep having to fall back to inner walls. He has to get a massage at one point (not that kind of comic btw).  It's not a super-hero or funny comic, it's more of a serious graphic novel.  That's about it, sorry it's so vague.


I've recently been introduced to the error function: $$\operatorname{erf}(z) =\frac{2}{\sqrt{\pi}}\int_0^z e^{-t^2}dt$$ Naturally, I wondered about the origin of its name: The error of... what? I'm so used to uncertainty analysis in scientific experimentation that my mind went there first. It seems like the name sprung up in the context of statistical analysis. Here's what I found on :  In the course of the 19th century the function from the theory of errors appeared in several contexts unrelated to probability, e.g. refraction and heat conduction. In 1871 J. W. Glaisher wrote that "Erf(x) may fairly claim at present to rank in importance next to the trigonometrical and logarithmic functions." Glaisher introduced the symbol Erf and the name error function for a particular form of the law as follows: As it is necessary that the function should have a name, and as I do not know that any has been suggested, I propose to call it the Error-function  ... ("On a Class of Definite Integrals, Philosophical Magazine, 42, 1871, p. 296)  But this quote sounds like Glaisher arbitrarily picked the name. He must have had some motivation in dubbing it error. Anyway, what does error represent? Does this measure some deviation from the related Gaussian integral from $\int_0^\infty$? EDIT The link provided by Dilip is useful, yet still did not explain the depth of this name to me. I am wholly unfamiliar with probability and error theory - where $erf(z)$ seems to have arisen - so excuse me if the answer should have been more obvious. (In fact, error theory sounds vaguely alien to me.) Is the function just commonplace in error theory, and for that reason named $erf$? This reasoning just seems a little, well, lackluster to me, but maybe it's true. Does $erf$ have a specific role that reflects its name?

$\newcommand{\erf}{\operatorname{erf}}$ This may be a very naïve question, but here goes.  The  $\erf$ is defined by $$\erf(x) = \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2}dt.$$ Of course, it is closely related to the normal cdf $$\Phi(x) = P(N < x) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^x e^{-t^2/2}dt$$ (where $N \sim N(0,1)$ is a standard normal) by the expression $\erf(x) = 2\Phi(x \sqrt{2})-1$.  My question is:     Why is it natural or useful to define $\erf$ normalized in this way?   I may be biased: as a probabilist, I think much more naturally in terms of $\Phi$.  However, anytime I want to compute something, I find that my calculator or math library only provides $\erf$, and I have to go check a textbook or Wikipedia to remember where all the $1$s and $2$s go.  Being charitable, I have to assume that $\erf$ was invented for some reason other than to cause me annoyance, so I would like to know what it is.  If nothing else, it might help me remember the definition.  Wikipedia says:     The standard normal cdf is used more often in probability and statistics, and the error function is used more often in other branches of mathematics.   So perhaps a practitioner of one of these mysterious "other branches of mathematics" would care to enlighten me.   The most reasonable expression I've found is that $$P(|N| < x) = \erf(x/\sqrt{2}).$$ This at least gets rid of all but one of the apparently spurious constants, but still has a peculiar $\sqrt{2}$ floating around.


I have a simple grouped barplot, as in the example given below. I don't like the fact that the end result turns out quite large, and would like to change the height - but without changing the width. This is presumably quite simple, but I cannot figure it out.   How can I achieve this, and similarly, how could I change the width?  EDIT: So thanks to  (it is also in the , slightly hidden) I finally found out that I have been placing the figure resizing command    plt.figure(figsize=(10,15))   at the wrong place in the code all the time. If I place it directly after   sns.set(style='white')   the figure size actually does change.  However, now I get two popup windows: one named Figure 1 (the one that I want), and a second small line graph named Figure 2. Additionally, I get a warning:  QWindowsWindow::setGeometry: Unable to set geometry 1000x1566+8+31 on QWidgetWindow/'MainWindowClassWindow'.  Resulting geometry:  1000x749+8+31 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 67x66, maximum size: 16777215x16777215). QWindowsWindow::setGeometry: Unable to set geometry 100x166+633+281 on QWidgetWindow/'MainWindowClassWindow'.  Resulting geometry:  124x166+633+281 (frame: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 67x66, maximum size: 16777215x16777215).   Interestingly, I only get the second popup and the warning in the simplified example below, and not when making the actual graph that this is a simplification of. I would be curious to know why this is.  import matplotlib.pyplot as plt import seaborn as sns import numpy as np  title = 'Title' parts = ['A', 'B', 'C', 'D']  items = ['one','two','three','four','five']  sns.set(style='white') plt.title(title,fontsize=18) ax = plt.gca() ax.grid(which='major', axis='y', linestyle=':')  plt.xlabel('Item', fontsize=16) pos = np.arange(len(items)) plt.xticks(pos, items) plt.ylabel('Count', fontsize=16) y_ticks = [0, 20, 40, 60, 80] ax.set_yticks(y_ticks, minor=False)  full_bar_width = 0.2 bar_width = 0.15  all_A = [72, 74, 74, 70, 72] all_B = [67, 69, 67, 65, 67] all_C =  [67, 67, 64, 63, 65] all_D = [57, 64, 57, 55, 58]  plt.bar(pos-(1.5*full_bar_width),all_A,bar_width,color='red') plt.bar(pos-(0.5*full_bar_width),all_B,bar_width,color='blue') plt.bar(pos+(0.5*full_bar_width),all_C,bar_width,color='cyan') plt.bar(pos+(1.5*full_bar_width),all_D,bar_width,color='green')  plt.legend(parts,bbox_to_anchor=(1.04,0.5), loc='center left') plt.subplots_adjust(right=0.8) plt.show()

How do you change the size of figure drawn with Matplotlib?


When “to provide” means “to make available”, is it grammatically correct to use “to provide somebody something” instead of “to provide somebody with something”? Example:  To provide employees (with) benefits  There seems to be scarce info on google about this particular question. I get that skipping “with” sounds a bit more colloquial but is it still grammatically sound?

Does the verb "provide" always have to be used with "with"? For example,  Can you provide me with some good examples? Can you provide me some good examples? Can you provide some good examples?  I suppose it's a transitive verb, isn't it? Moreover, is the following type of usage correct?  You should provide food for your dog before you go on vacation.  If you could give me some good examples regarding "provide" with different types of usage, I'd appreciate that.


I'm looking to have the home page main content section full width 100% and all other pages with sidebar at 75%.   I have a homepage template set up, what can I add to the homepage template  (page-home.php) so that only that page displays 100% in the main content section

          <?php         /* Run the loop to output the page.          * If you want to overload this in a child theme then include a file          * called loop-page.php and that will be used instead.          */         get_template_part( 'loop', 'page' );         ?>

      The website is vistahomeimprovement.com

#container {     width: 75%;     float: right; }   If I change the width to %100 it affects the entire site, i just want the homepage to be at 100% width and all other pages with sidebar 75%


Background: I am writing a program that uses BufferedReader to store several lines of a text file into a String array.  Example of text file:     4 5      4 5 2 3 3      3 2 1 3 2      2 3 1 2 3      3 3 2 1 2      2 3 1 2 1   ArrayList of textfile lines:     ["4 5"]["4 5 2 3 3"]["3 2 1 3 2"]["2 3 1 2 3"]["3 3 2 1 2"]["2 3 1 2 1"]   Need a 2D array like this:     [3][2][3][2]      [2][3][2][3]      [3][3][2]      [2][3][2]   The first line(array element) essentially indicates the size of my array which I successfully created a new array using array.split(" "): [4][5]. The second line is used for a different method which was successful as well using array.split(" "). I'm having an issue with lines 3-6.   void allocatedUnits(){     String au;     start_alloRow = 2;                          //start row 2 of text file     end_alloRow = start_alloRow + num_process;  //length is how many processes were indicated      for (int i = start_alloRow; i < end_alloRow; i++){         au = fileArray[i];                      //fileArray element i into String au (i=start-end)         String[] array = au.split(" ");         //split String au "i" into array elements         for (int j = 0; j <= array.length; j++){         //for element j 0-arraylength (0-num_resource)             allocatedArray[i][j] = Integer.parseInt(array[j]);  //use alloArray[i] row for [j] element             System.out.println(allocatedArray[i][j]); //print each element         }      }}   The error I get is NullPointerExcetion at the line of allocatedArray[i][j] = Integer.parseInt(array[j]);  I have printed the String[] array elements without the 2D array and it prints correctly, so I'm unsure if I'm creating the 2D array incorrectly.    EDIT:// I now have an ArrayIndexOutOfBounds exception which I understand, but don't know how to fix it. This is my updated code with initialized array (which helped)  void allocatedUnits(){     String au;     start_alloRow = 2;                          //start row 2 of text file     end_alloRow = start_alloRow + num_process;  //length is how many processes were indicated     allocatedArray = new int[num_process][num_resource];      for (int i = start_alloRow; i < end_alloRow; i++){         int k = 0;         au = fileArray[i];                      //fileArray element i into String au (i=start-end)         String[] array = au.split(" ");         //split String au "i" into array elements         for (int j = 0; j < array.length; j++){ //for element j 0-arraylength (0-num_resource)             allocatedArray[k][j] = Integer.parseInt(array[j]);  //use alloArray[i] row for [j] element             System.out.println(allocatedArray[k][j]); //print each element             k++;         }     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


The Crossbow Expert feat lets you use a Hand Crossbow in your offhand and take a shot when you attack with your main hand.  Most people I've seen, seem to think this will allow Dual Wielding Hand Crossbows. What I'm curious about is if you get dex mod to damage on the second shot. There are two lines of thought I've come up with on this.  Either it follows the TWF model, where you do not get the offhand weapon's modifier without an extra feat, or it follows the Monk's Bonus attack model, which grants the modifier.   I'm not sure which way to land on this.

The  rule says:     When you take the Attack action and attack with a light melee weapon   that you're holding in one hand, you can use a bonus action to attack   with a different light melee weapon that you're holding in the other   hand. You don't add your ability modifier to the damage of the bonus   attack, unless that modifier is negative.      If either weapon has the thrown property, you can throw the weapon,   instead of making a melee attack with it.   With Two-Weapon Fighting, I can only add my ability modifier to the damage of the first attack. Even if I get the  feat (PHB, p. 165), it doesn't say anything about adding the ability score to the damage.  The  feat (PHB, p. 165) says:     Thanks to extensive practice with the crossbow, you gain the following   benefits:         You ignore the loading quality of crossbows with which you are proficient.   Being within 5 feet of a hostile creature doesn’t impose disadvantage   on your ranged attack rolls.   When you use the Attack action and attack with a one-handed weapon,   you can use a bonus action to attack with a loaded hand crossbow you   are holding.      When I attack using the bonus action granted by Crossbow Expert, do I add my ability modifier to the damage? I don't know whether I should follow the Two-Weapon Fighting rules, or roll damage as for a normal weapon attack.


I have Ubuntu 18.04. I am running with an issue. Some of the packages installed using the default Software store application like Postman, Spotify are somehow are not showing in app tray but are showing installed in Software Store. Also, I can run them from there.  Moreover, when I launch Spotify and Login it's showing some firewall error (may be helpful to find the bug).   I just noticed one thing, all the application installed from snap are not showing in app tray. The output of snap list is given below.    I installed zsh yesterday,

Just updated to Ubuntu 16.04 & trying snap packages for first time.  So I needed meshlab to view some stl files. Ran in to issue with p-i-t-n log in. Found that command line install of snap packages does not need the log in. Did:  sudo snap install meshlab   and hey presto meshlap installed, no pitn log in. Works fine from command line. However program does not show up in the launcher. Why is this? Do snap packages not show up in launcher? How can I fix this?


Ok, this is in conjunction with my other post:   However, this is not a repost of the same question. This time I am only focusing on the first part of my .htaccess file.      SetEnv HTTPS on  <IfModule mod_rewrite.c>     RewriteEngine On Options -Indexes     # Send would-be 404 requests to Craft     RewriteCond %{REQUEST_FILENAME} !-f     RewriteCond %{REQUEST_FILENAME} !-d     RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]     RewriteRule (.+) index.php?p=$1 [QSA] </IfModule>   I tested it here:  and got the following from the site -   My Questions:   Is this site fully functional (save what they call out in at the bottom of the page) ?   What is causing my last line to not get met?   I reached out to the developer who setup this .htaccess file, and unfortunately, he was not able to answer why the last line was not met. He was honest and said that this part of the Linux world he was not the most versed in, so he ended up not being a good resource -- hence my very first question. I am a newbie to rewrite rules, so I do apologize if this is something simple and I am just missing it.  Please let me know if this post needs more clarification or to be formatted better. Thank you to everyone who is able to assist or explain anything here! :-)

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I have the following list of objects:  { DomainName="my-corp-1", GroupName="group-x", Desription="my group x" }  { DomainName="my-corp-2", GroupName="group-x", Desription="my group x - follow up with admin" }  { DomainName = "my-corp-1", GroupName="group-y", Description="my group y" }   If an object with the same GroupName exists in both domains then I should keep the object which exists in my-corp-1 and filter out the object with the same GroupName associated with my-corp-2.   For example, in the list of objects above, the second object in the list should be filtered out b/c the GroupName already exists for group-x in the first object.  What would be a clean way to implement this filtering routine in C#?

I am playing with LINQ to learn about it, but I can't figure out how to use Distinct when I do not have a simple list (a simple list of integers is pretty easy to do, this is not the question). What I if want to use  on a list of an Object on one or more properties of the object?  Example: If an object is Person, with Property Id. How can I get all Person and use Distinct on them with the property Id of the object?  Person1: Id=1, Name="Test1" Person2: Id=1, Name="Test1" Person3: Id=2, Name="Test2"   How can I get just Person1 and Person3? Is that possible?  If it's not possible with LINQ, what would be the best way to have a list of Person depending on some of its properties in .NET 3.5?


I installed Code:Blocks on my Ubuntu 18.04 LTS. It works fine for now and I don't have any problem with it. But when I update my system using  sudo apt-get update && sudo apt-get upgrade -y   I get an error saying  Err:7 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done                       E: The repository 'http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   Now, when I delete http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic in the Software Center, Code:Blocks doesn't run the programs I've written. Having this error doesn't seem to harm anything but it is annoying.   How to solve this? I'm taking C courses in school, so I need some compiler in order to do my homeworks, but I am open to use something different. Thanks

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I started using MFC a while ago and I came across functions or rather methods, that are called with "::" before name of the functions. What is it?  For example:  ::SendMessage()   What is that scope? How can I define one if I wanted to?  Thanks

In C++, what is the purpose of the scope resolution operator when used without a scope? For instance:  ::foo();


I'll illustrate my question with a textbook picture:    Why can't it be discontinuous there? No obvious answer appears to me here, unlike why $\psi$ itself can't be continuous, hopefully? In my view, it's because at the region where there is a jump, it will have two probabilities at once for a single outcome (which is nonsense), but that doesn't illuminate my titular question.

Is there anything in the physics that enforces the wave function to be $C^2$? Are weak solutions to the Schroedinger equation physical? I am reading the beginning chapters of Griffiths and he doesn't mention anything.


In python, I have declared two variables with same value. Strangely, they are pointing to same object. I need to understand how this objects and their corresponding values are assigned.  #!/usr/bin/python  a = 100 b = 100  print id(a) print id(b) -------------------- Output :  157375428 157375428 -------------------   I assume, a and b are two different variables with same value. Then why the same object is pointing to both of them ?

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


I have an MSI GE40 laptop with Realtek RTL8723AE wireless card. The driver for it is far from perfect, so I was looking for alternative drivers, and found this:  It seemed pretty safe to try as it automatically backs an old driver up, so I went for it. Installation went smoothly without any troubles, but after rebooting there was no wireless option in NM at all. So I decided to get back to kernel driver, and tried both options of getting it back that were mentioned in readme to that driver: restoring the backup with the provided script and reinstalling the original driver with   sudo apt-get install --reinstall linux-image-extra-$(uname -r)   Tried rebooting after doing that.  But neither of those ways helped, and now I have no wireless. ifconfig doesn't show wlan0 interface.  I guess I am missing something trivial as the original driver has to be in place now, would really appreciate your help. I am running Ubuntu 14.04 with all updates.

I have searched through the internet and in AskUbuntu, but I could not find a working solution for my little problem.  The RTL8723ae WLAN is behaving strangely on Ubuntu 14.04 and drops the WLAN connection constantly. I am using the notebook MSI GE40 and have already seen on the web that there are other people having the same problem but there was no permanent solution. The problem did not exists on the original Windows 8 on the device and the router is a TP-Link, which I can control (channel change and so on, I use WPA2-PSK WLAN security).


Is the size of a struct and the size of the equivalent class guaranteed to be equal?

This question was .  Now I'd like to learn the differences between a struct and a class in C++. Please discuss the technical differences as well as reasons for choosing one or the other in OO design.  I'll start with an obvious difference:   If you don't specify public: or private:, members of a struct are public by default; members of a class are private by default.   I'm sure there are other differences to be found in the obscure corners of the C++ specification.


Calculate the Maclaurin series of $$\frac{2x}{e^{2x}-1} $$ I've tried to calculate it but the series $\frac{1}{e^{2x}-1}$ divides by 0 when x is equal to 0

Maclaurin series for   $$\frac{x}{e^x-1}$$  The answer is   $$1-\frac x2 + \frac {x^2}{12} - \frac {x^4}{720} + \cdots$$  How can i get that answer?


I want to apply some styling commands to specific website inside WebBrowser control. The best way to do it is to invoke javascript (I want that style to be editable, with javascript it's easy). I know I can do it with webBrowser1.Navigate("javascript: alert('hi'); void(0);"); but maximum url length that webBrowser accepts is 502. How to execute longer scripts? Or maybe there is a way to append my CSS to web document?   P.S. I can't edit document's text property since it'll break scripts in this website and I need working copy but just slyled a bit.

I've tried this:  string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.GetElementsByTagName("head")[0]; HtmlElement scriptEl = browserCtrl.Document.CreateElement("script"); lblStatus.Text = scriptEl.GetType().ToString(); scriptEl.SetAttribute("type", "text/javascript"); head.AppendChild(scriptEl); scriptEl.InnerHtml = "function sayHello() { alert('hello') }";   scriptEl.InnerHtml and scriptEl.InnerText both give errors:  System.NotSupportedException: Property is not supported on this type of HtmlElement.    at System.Windows.Forms.HtmlElement.set_InnerHtml(String value)    at SForceApp.Form1.button1_Click(Object sender, EventArgs e) in d:\jsight\installs\SForceApp\SForceApp\Form1.cs:line 31    at System.Windows.Forms.Control.OnClick(EventArgs e)    at System.Windows.Forms.Button.OnClick(EventArgs e)    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)    at System.Windows.Forms.Control.WndProc(Message& m)    at System.Windows.Forms.ButtonBase.WndProc(Message& m)    at System.Windows.Forms.Button.WndProc(Message& m)    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)   Is there an easy way to inject a script into the dom?


I fear this may be your typical "Yahoo Answers" type of question, and thus may not belong on any stack exchange site. I am prepared to accept that as the ultimate answer.  I have a question regarding the "Where did you grow up?" type of questions on surveys and the like, mainly within the context of my own personal childhood that makes the question less intuitive.  Where (if any) is the best stack exchange site for such a question?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


I'm going to be making a switch from Windows to Linux, but all my HDD's are NTFS-formatted. I understand I would have to format the boot disk and lose all data, but what about the other HDD's that don't contain OS's and are used for data storage purposes only - can I somehow convert them to a Linux-supported filesystem without losing data?

I want to convert one partition of my windows which is NTFS (or can be FAT32) to a linux file system partitioning? I'm looking for some tools or ways to do it for me!


The following is an wikipedia article on Lamarckism.   According to Ernst Mayr, any Lamarckian theory involving the inheritance of acquired characters has been refuted as "DNA does not directly participate in the making of the phenotype and that the phenotype, in turn, does not control the composition of the DNA."[75] Peter J. Bowler has written that although many early scientists took Lamarckism seriously, it was discredited by genetics in the early twentieth century. The evolutionary biologist T. Ryan Gregory contends that epigenetic inheritance should not be considered Lamarckian.  It seems to me that the assertion that acquired characteristics can be inherited was denied by the modern synthesis theory of evolution. Is this true? If yes, what is the reason of the denial?

This came up in a talk with a friend. I wanted to clear this doubt. I've read about it before and did again after her remark (my thoughts didn't change: her concept is Lamarck's, not Darwin's), but wanted to clarify.  Regarding Evolution, nothing, absolutely nothing, that a person does to herself in life can be genetically inherited. It does not matter how much this person drinks, the changes they do to their body,  how dark their skin gets over life etc. Such changes can not be transmitted to their offspring in any way, correct?  *Summary:*Is the assertion "You can not change in life what will be genetically inherited in any possible way" true?


I found this and tried to figure out why it's valid.    int main(int ac, char* av[])   { return ac[av]==0; } //returns 0     I found out that ac[av] returns char* so then when comparing it to 0 it's obvious it will return 0 . But why can we use square brackets on integer variable? Why int[char*] returns char*?

As Joel points out in , in  (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?


Problem: Let $V$ be a finite dimensional vector space and $V_1,\ldots,V_n\subset V$ vector subspaces. Show that if $W\subset V$ is a vector subspace and   $$W\subset V_1\cup\cdots\cup V_n,$$   then   $$W\subset V_k$$   for some $1\le k\le n$.   I get the intuitive idea of why this should hold by drawing pictures, but I can't prove it rigorously. I know that if $V_1,V_2$ are two subspaces and $V_1\cup V_2$ is also a subspace, then $V_1\subset V_2$ or $V_2\subset V_1$. Does that help?

I have a vector space $V$ over a field of characteristic $0$. If $M_1,\dots,M_k$ are proper subspaces of $V$, and $N$ is a subspace of $V$ such that $N\subseteq M_1\cup\cdots\cup M_k$, how can you tell $N\subseteq M_i$ for some $i$?  I was first trying to show it just in the case $N\subseteq M_1\cup M_2$, and hoping to extend it to finitely many $M_i$. If either of the $M_i$ contains the other, the claim follows, so I suppose neither $M_i$ contains the other.   In hopes of a contradiction, I suppose $N\not\subseteq M_1$ and $N\not\subseteq M_2$, Picking $x_1\in N\setminus M_1$ and $x_2\in N\setminus M_2$, I'd have $x_1+x_2\in N\subseteq M_1\cup M_2$. The only thing I could conclude was that actually $x_1,x_2\notin M_1$ and $x_1,x_2\notin M_2$, which seems like a dead end. What's the right way to do this?


Rolling thunders always come cracking in with a high frequency, and the sound grows more deep as the rolling advances, ending with the deep sound of a roaring lion. Why? This is not the same question than the one of the extended sound but about the way we hear the rolling thunder from the beginning till the end. The sound starts with a higher frequency than that with which it ends and I was wondering why.

Why does the sound of thunder last several seconds even when lightning lasts for only fraction of a second?


I am new to this field and I have been baffled by the idea of Oracle for a long time.  I am aware of the procedure, but I am very confused about how we choose the oracle.   Let say we have 4 poker cards, the spade of Ace, the club of 7, the heart of 9, and the diamond of 7. I shuffled the four cards and now I want to know where is the spade of ace.  I would first encode the cards, say 00, 01, 10, and 11 respectively for the spade of Ace, the club of 7, the heart of 9, and the diamond of 7.   To solve the problem on a quantum computer, I will first initialize the system in the superposition of the four states, and I apply the oracle corresponding to $|00\rangle$ (see ), and evolve the state and everything, I will finally end up with the state $|00\rangle$.  My question is how does this result help me in any way? I wanted to know the position of the spade of Ace in the deck of cards but instead I got a state $|00\rangle$, which means spade of the Ace. Am I missing a step somewhere?  I would appreciate it if the answer could continue with the example, and show from beginning to end how one can find the position of the card.

I'm fairly confused about how Grover's algorithm could be used in practice and I'd like to ask help on clarification through an example.  Let's assume an $N=8$ element database that contains colors Red, Orange, Yellow, Green, Cyan, Blue, Indigo and Violet, and not necessarily in this order. My goal is to find Red in the database.  The input for Grover's algorithm is $n = \log_2(N=8) = 3$ qubits, where the 3 qubits encode the indices of the dataset. My confusion comes here (might be confused about the premises so rather say confusion strikes here) that, as I understand, the oracle actually searches for one of the indices of the dataset (represented by the superposition of the 3 qubits), and furthermore, the oracle is "hardcoded" for which index it should look for.  My questions are:   What do I get wrong here? If the oracle is really looking for one of the indices of the database, that would mean we know already which index we are looking for, so why searching? Given the above conditions with the colors, could someone point it out if it is possible with Grover's to look for Red in an unstructured dataset?    There are implementations for Grover's algorithm with an oracle for $n=3$ searching for |111>, e.g. (or see an R implementation of the same oracle below):     Again, my confusion is, given I do not know the position of $N$ elements in a dataset, the algorithm requires me to search for a string that encodes the position of $N$ elements. How do I know which position I should look for when the dataset is unstructured?  R code:   #START  a = TensorProd(TensorProd(Hadamard(I2),Hadamard(I2)),Hadamard(I2))  # 1st CNOT  a1= CNOT3_12(a)  # 2nd composite  # I x I x T1Gate  b = TensorProd(TensorProd(I2,I2),T1Gate(I2))   b1 = DotProduct(b,a1)  c = CNOT3_02(b1)  # 3rd composite  # I x I x TGate  d = TensorProd(TensorProd(I2,I2),TGate(I2))  d1 = DotProduct(d,c)  e = CNOT3_12(d1)  # 4th composite  # I x I x T1Gate  f = TensorProd(TensorProd(I2,I2),T1Gate(I2))  f1 = DotProduct(f,e)  g = CNOT3_02(f1)  #5th composite  # I x T x T  h = TensorProd(TensorProd(I2,TGate(I2)),TGate(I2))  h1 = DotProduct(h,g)  i = CNOT3_01(h1)  #6th composite  j = TensorProd(TensorProd(I2,T1Gate(I2)),I2)  j1 = DotProduct(j,i)  k = CNOT3_01(j1)  #7th composite  l = TensorProd(TensorProd(TGate(I2),I2),I2)  l1 = DotProduct(l,k)  #8th composite  n = TensorProd(TensorProd(Hadamard(I2),Hadamard(I2)),Hadamard(I2))  n1 = DotProduct(n,l1)  n2 = TensorProd(TensorProd(PauliX(I2),PauliX(I2)),PauliX(I2))  a = DotProduct(n2,n1)  #repeat the same from 2st not gate  a1= CNOT3_12(a)  # 2nd composite  # I x I x T1Gate  b = TensorProd(TensorProd(I2,I2),T1Gate(I2))  b1 = DotProduct(b,a1)  c = CNOT3_02(b1)  # 3rd composite  # I x I x TGate  d = TensorProd(TensorProd(I2,I2),TGate(I2))  d1 = DotProduct(d,c)  e = CNOT3_12(d1)  # 4th composite  # I x I x T1Gate  f = TensorProd(TensorProd(I2,I2),T1Gate(I2))  f1 = DotProduct(f,e)  g = CNOT3_02(f1)  #5th composite  # I x T x T  h = TensorProd(TensorProd(I2,TGate(I2)),TGate(I2))  h1 = DotProduct(h,g)  i = CNOT3_01(h1)  #6th composite  j = TensorProd(TensorProd(I2,T1Gate(I2)),I2)  j1 = DotProduct(j,i)  k = CNOT3_01(j1)  #7th composite  l = TensorProd(TensorProd(TGate(I2),I2),I2)  l1 = DotProduct(l,k)  #8th composite  n = TensorProd(TensorProd(PauliX(I2),PauliX(I2)),PauliX(I2))  n1 = DotProduct(n,l1)  n2 = TensorProd(TensorProd(Hadamard(I2),Hadamard(I2)),Hadamard(I2))  n3 = DotProduct(n2,n1)  result=measurement(n3)  plotMeasurement(result)


I have some computation on a numpy array and want to display the result in QGIS. So far ok, but loading the result into QGIS fails. Here my code fragment:  zData2 = np.subtract(myarray,zData2) #do some computes output_raster = gdal.GetDriverByName('MEM').Create('',ncols, nrows, 1 ,gdal.GDT_Float32)   output_raster.GetRasterBand(1).WriteArray(zData2)   # Writes my array to the raster  newLayer = QgsRasterLayer(output_raster,'my new raster') #this failes... QgsMapLayerRegistry.instance().addMapLayer(newLayer)

I am working on a plugin for Qgis to calculate spatial Kernel density maps. I have all the calculations working, all I am missing is a way to turn a Numpy Array, with density values into a multiband raster layer.  Do I have to create a geotiff on a temp file using Gdal and then load it?  Or is there a direct way to create the layer from data in memory?  if so, how to do it?


I was hoping that this code let name = 'Sally' setTimeout(() => console.log(name), 3000) name = 'Pepe';  Would output Sally (because of the timeout handler declaration "capturing" the name), but it doesn't happen in the Console. Why is that? I know it is related to closures but it seems I didn't fully understand it, as this very same problem happens a lot to me in React but I wanted to simplify and couldn't.

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


Why do rainbows only form with a 42° angle? Is there something special about this angle?

When I searched on the Internet for the reason of formation of , I got many explanations like  one & . All the explanations consider only one spherical water droplet (like ).  Why don't the refracted waves coming from the adjacent droplets interfere with each other? For example, why doesn't a red ray coincide with a violet ray coming from another droplet at a suitable position?   How are we able to see rainbows with distinct colors? Since there are thousands of raindrops in the sky when it is raining, shouldn't it be a mess due to overlapping of different wavelengths?  Please explain.


I’m a 14 year old girl, and I was wondering what I should do if my parents want a divorce?  My parents (50 and 55) have been married for over 20 years. But I’ve noticed some things in the past year or two that put me on edge. Like they’d fight about the smallest things, like “Did you do this yet?” or something along the lines, then they’d fight back and forth because they misunderstood each other (this could be due to the fact that my moms second language is English). This happens every other week or so. Especially when our family goes on vacations, they fight even more.  My dad is more of a guy who plans things way ahead and gets upset and angry if things don’t go exactly his way. My mom is a little more flexible. Though, she just blames people for problems she created a lot of the time.  They both have a narcissistic parenting style. They never really gave my brother or I emotional support, but instead give us financial support, and so they ignore any mental illnesses that I tell them I have, no matter how much I explain. I know this, because about a year ago, our family went out to dinner. My brother told us that he’s depressed because we live in such a rainy place. My dad got angry, and threatened to leave the family. My mom made me swoop in, and fix everything. What if I had told him that I was actually depressed, would he have divorced my mother?  And ever so recently, my brother (16) has been playing video games, and his grades have been dropping. We aren’t supposed to play video games on the weekdays in the first place. My mom and dad have been arguing what to do with him. My mom told me my brother is going to be the reason they divorced. All of 3 of my dads siblings have gotten a divorce, so the signs are not well.  Another problem is, my mom is a stay at home mom, and didn’t finish college so if they divorce, it’s be hard for her to get a job. Because I do not plan on staying with my dad, despite him being the money maker. We disagree on things religiously and politically.  Sorry this is pretty long, any tips on what I should do? Thank you.

I am a young teenager, younger than 16. (I do not want to give my age online)    My dad told me he wants a divorce, but I don't want my parents divorced. My dad says he can't stand my mom anymore.  My dad is older than 45 and my mom is older than 40.    If it happens, I would choose to stay with my mom. My dad can cook and drive, but my mom can't. There's a school bus in high school though.    What can I do to prevent this divorce?


I have just read this on wikipedia: "Unlike GNOME, KDE Software Compilation, Xfce, or LXDE, Unity is not a collection of applications but is designed to use existing programs"  Is there a way to create a live CD of Ubuntu that gives the option of choosing what apps (of the existing ones) should get installed?

I would like to customize Ubuntu live CD by installing some additional packages. I have followed   but it doesn't seems to work. Can anyone provide clear instructions?   Note: I do not prefer Remastersys, manual way will be appreciated.  Customization  Packages that I want to install:   Thunderbird    Samba    SSH       Changes that I need:   Remove Games menu from the Application menu Firefox shortcut on Desktop Radiance as the default Theme Different default Ubuntu Wallpaper   Configuration file changes   I want the panel to be placed at the bottom I want to paste my Samba configuration file instead of default Samba configuration I have few Firefox shortcuts and folders I would like to show that in Desktop Also it will be nice if you say me how to change the icon sets   Recent Updates   I have customized Ubuntu 10.10 with Firefox shortcuts and few folders on desktops. Everything went smooth. But the installer gets crashes after choosing the timezone. How do i fix this issue? Also setting wallpaper affects the login screen. The wallpaper which i set is displayed on the login screen also. I just want the default one for the login screen.


I am starting to learn Marketing Cloud and I would like as first thing to integrate it with Salesforce. Does Marketing Cloud provide a free org for developers as Salesforce does? If yes, where can I get it?

I would like to have an account to create sample App in the App Center. I am following these steps on .  Could you please tell me how or where  I can register for a new (developer) account ?


I'm new to the Witcher series and wonder if I should spend time going through all of them. I read that the story is somehow related and there's even ability to import saves from previous parts into the next ones. I had a similar experience with Mass Effect, where having started with second piece I eventually replayed the game starting from ME1 for a much more rich experience when I could understand story behind characters from ME1 (and later ME2) showing up in the game.  Thus ultimately my question is, how the three Witchers are related in terms of story (NPCs with history, locations, quest decisions etc.) and if how much time will I have to devote to parts 1 and 2 if I only consider the core story-line of those?  There's a , but it only considers the first two Witchers.

I'm thinking about buying The Witcher 3 and I know it's heavily based on a story/narrative.   For the story/narrative to make sense, do I need to play the previous 2 Witcher games - or are the stories for each title independent of one another?


Hi I have been playing clash of clans on ipod gen 4 however i cannot access it now on my ipod. I have a samsung s3. i have downloaded clash onto my s3 and want to continue with my existing village etc on my s3. please please can someone tell me how to do this. need idiots guide to do but many thanks if someone can help. clan now has no leader playing ;-(

I lost my iPhone about a year ago and my mom just now trusted me enough to get me a new phone but the problem is it's not an iPhone. Is there a way I can change my Clash of Clans iPhone accont to Android?


I use maven CLI cmd to provide the BROWSER value in real-time while execution     mvn -DBROWSER=firefox install   and I use the below snippet to automatically fetch the BROWSER value as firefox from terminal cmd; but, when I try to match the condition with manual String value, browser=="firefox", it fails to match and returns to else part.  String browser = System.getProperty("BROWSER");      if(browser=="chrome")     {         System.out.println("CHROME initiated");         System.setProperty("webdriver.chrome.driver", "./libs/chromedriver");         driver = new ChromeDriver();     } else if (browser=="firefox") {         System.out.println("FIREFOX initiated");         System.setProperty("webdriver.gecko.driver", "./libs/geckodriver");         driver = new FirefoxDriver();     } else {         System.out.println("Skipped and CHROME initiated");         System.setProperty("webdriver.chrome.driver", "./libs/chromedriver");         driver = new ChromeDriver();     }      However, I want the test to move into else if (browser=="firefox") part matching browser=="firefox". Is this due to the format issue; I have also used .toString() but it didnt work for me.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Some years back when I began working in the SSD VPS business I didn’t recognize what an “area name” is, yet what a SSD is. It was two years prior when I first found out about SSD and I’m almost certain there are numerous as myself pondering what is a SSD, what is the distinction between a SSD hosting arrangement and a HDD arrange and which one is best for their site.

What are the benefits of paying for SSD storage when it comes to webhosting? I know that SSDs have better read speeds is that necessarily better or is it negligible?  I have sites that use databases with php so will it really benefit me to pay extra for SSD storage? I read somewhere that SSDs increase fetching times from the db but also read stuff that are contrary to it and the fact that I can cache mysql results using apc or memcached so kind of confused, can someone shed some light please?


I have a question for you. One of the sites I'm working on has been accepted in Google news. Now, my issue is that most of the time,no image is fetched, while some other times a related image from another website is shown instead.  I have read somewhere that the image needs to be nearby or in the title tag - is it so?  Any idea what I am doing wrong?

Google news results have an acompanying thumbnail next to articles that show up in the results.    If Google's crawler can't find a thumbnail to pull from our site, it uses its next best guess from another site, therefore linking the image to another site but still uses our headline.  Example:  Headline from Reuters, Image from Livemint:   Our pages absolutely have images, they are not massive in file-size or dimensions, yet we are not having them pulled / crawled correctly.  We have read up on the suggestions from Google, and from others around the web and nothing is panning out.  Has anyone had any experience where they can ensure Google news will pull a thumbnail of our choosing?


I wanted to know if -in' is really correct. Because I couldn't found a single article about the -in' ending. Examples: -ing Running Jumping -in' Runnin' Jumpin'

I wonder if the "g" in the -ing forms is pronounced. When I hear it it seems as if it's not pronounced sometimes or just slightly, though sometimes I've been told that I should pronounce "g" for example in "meeting" just to avoid saying "mitten". So how should I pronounce "-ing"? Sometimes -ing is written in an informal way as -in' such as:  taking takin'  Is the letter "g" in each case pronounced differently?


I passed by some really good answers and I wouldnt mind giving them 50 of my reputation. Will there be a "tip" feature that will giveaway my rep to a person? I know its possible for the Original Poster to give out a bounty, but it would be great for the occasional reader to tip as well.

It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


Okay, I'm just doing a function that moves everything from one list to another, and as soon as that's finished, it spontaneously becomes undefined. There is no good reason for it to do that but what's the bad reason?  Here, look,  function moveList(){//in my real program it actually shuffles the list, this one just transfers the contents     var listOne=[0, 1, 2, 3];//we have a list     var listTwo=[];//now we have an empty list     var length = listOne.length//and now we have the list length     for (run = 0; run < length; run++) {         listTwo.push(listOne[0]);//it just copies the first entry from the first list to the second         listOne.splice(0, 1,)//and deletes it from the first list     }//this does it for an entry in the list, it's length amount of times     console.log("listTwo: " + listTwo);//this tells us what the new list now is, and it works     console.log("listOne: " + listOne);//this tells us what the original list is, which is empty } var listOne; var listTwo; //these are mandatory, without this, even with the function below script, //you have Uncaught ReferenceError: list(One and Two) is not defined moveList();//now we do the function, and then, console.log("listTwo: " + listTwo);//THE LIST IS NOW UNDEFINED??? What??????   Just why? I literally just defined it in my function. What's wrong with you (literally, I don't see)?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I have an AMD Ryzen 7 4800h CPU with AMD Radeon Graphics as well as an Nvidia GTX 1650, all installed on a Lenovo Legion 5. I noticed that when I boot with the iGPU (AMD Radeon Graphics) and use the discrete GPU (Nvidia GTX 1650) for a game, I experience worse performance than if I were to boot with the dedicated GPU alone. When I fire up the application, both GPUs increase in active time, although I assigned the application to the Nvidia GPU. The application I am trying to use is an undemanding FPS shooter is called  on low graphics settings. When running with the iGPU enabled in BIOS, I get around 100 less frames, although task manager still says I am using dedicated graphics for the game.  I have tested this using manufacturer drivers and generic drivers. The GPU is using dedicated GPU RAM for the application. I have configured the application to use the dedicated GPU through Windows' Graphics Settings. I have attempted to research this and I believe it has something to do with the discrete GPU sending images to the iGPU which is directly (I think) connected to my display. I am wondering why this is happening. If you can, please elaborate with me on this topic.

So when I had my old laptop with discrete GPU, I always had a choice in Windows right-click menu. For example, I could choose which app should run Adobe Photoshop or certain game.  Now I have a PC with both integrated (Intel HD graphics) and discrete GPU (geforce 730), but there is no option which GPU should run which apps. Why is that?


How to center Image both horizontally and vertically inside a div   HTML :

   CSS :  .main-item {   height: 95vh;   margin-top: 6rem;   background-color: $color-grey-light; }    What I have now :    The result I want :   I want the result to be responsive , so that the image stay in the center no matter what is the width of the device screen. The most important thing I want the image to be responsive.

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


Do i need visa to travel to the united kingdom with USA refugee travel documents ?

I am planning to visit the UK on a USA travel document but there’s nowhere I am able to find information about visas: I’m a Zimbabwean but using a USA refugee travel document do I need to apply for a UK visa before I travel or I can they just give them on arrival.


We want to predict Y based on some function of X, i.e., Y_hat = f(X). How can we show that the conditional expectation f*(X) = E(Y|X) is the mean-square optimal predictor, i.e., the function f* solves the minimization problem below? min E{[Y - f(X)]^2} Here the unrestricted mean-square optimal predictor is the conditional mean.

This exercise comes from Koop's Bayesian Econometrics. Given $\theta$, the parameter(s) of a model (in this case $\theta$ is a scalar), $\tilde{\theta}$, the point estimate of $\theta$, and constants $c_1 > 0, c_2 > 0$, the goal of the exercise is to show that $\tilde{\theta} = E[\theta \mid y]$ minimizes the expected loss of the squared error function $C(\tilde{\theta}, \theta) = (\tilde{\theta} - \theta)^2$, where, to quote the book, "the expectation is taken with respect to the posterior of $\theta$", i.e. $\theta \mid y$.    Per , I'm including my solution as a separate answer, both for feedback on that solution and for other people to post their own solutions.


I want to use Ubuntu on my new laptop .   I should thus use latest LTS, which is 18.04.  But 18.04 kernel does not support my laptop's hardware (for example wifi card requires 5.1+). 18.04 is currently in its third release 18.04.3. Will 18.04 receive the official update with the kernel above 5.1, so I can use my laptop?

I checked the , , and  wiki pages but still cannot seem to find a complete answer to this.  When using an LTS release like 18.04, is there somewhere public that can be checked to determine what kernel versions are being tested and when they are anticipated to be released for it? I would like to use 4.19, for example, but would like to know how to check this for any anticipated kernel release.  I know I could potentially just install the 4.19 kernel myself but I would rather know when it (and future kernel releases) were in the release pipeline. Is there somewhere on Launchpad that I could check? Somewhere else? Where are the Ubuntu kernel package maintainers doing their work?


I am trying to convert ASTER elevation data to a 3D CAD model using only opensource software.  I have tried using different file formats but I have been unsuccessful.  I use QGIS for my GIS work and would like to open the model using something like Sketchup or Meshlab.

I load an ASTER data to Global Mapper workspace and try to export to STL file, receive the message that I need a 3D vector file.   I tried all formats in GM, grid xyz, dem, contour in vector format and so on.   What kind of format file I need to convert ASTER data to export to STL file?   or even, PLY, OBJ,SKP, 3D formats?


how could I disable the Windows hotkeys? I need the button to work for a virtual machine, but the windows hotkeys are overriding my vm input and locking my actual computer and such.

Same as title, want to kill alt-tab, etc.


Is there some way to configure Windows 7 to boot up without asking for a password (on password check phase) even if I have a password set on my account?   What I wan't to do with it, is boot up without interruptions, but when I lock my Windows (with Win+L) I want to block it until I enter my account password.  I was wondering if maybe exists some registry set configuration of something like this.

The TweakUI powertoy for Windows XP had an option to auto-login. It stored your password and did the login for you. This was useful, since you kept password protection, but had login programs loaded when you first booted.  When you switched users or hibernated, it would still ask for a password, which is the desired behavior.  Is there a way of doing this in Windows 7?


I'm running Ubuntu 16.04 on my laptop, but recently the left 5th of my laptop screen stopped working. Is there any way to adjust the screen dimensions so it doesn't use this portion of my screen while I figure things out?  Thanks

I have a laptop with the top left corner's screen being broken - I can't see anything there. However it's just a small corner, so I'd like to know if there's something I can do to make Ubuntu not use that part of the screen at all - I basically want it to ignore 2 unity taskbars on the left, and re-position all the content.


I get the feeling from other posts on the subject that this might be a delicate topic for hardcore Linux/Unix users, so apologies for any issues there, I'm honestly completely ignorant...  I only recently started using Linux (or maybe it's Unix, I don't know) for my PhD. Please could someone "explain-like-I'm-5" what Unix & Linux each are?   Why are they both a thing? How are they fundamentally different? How are they fundamentally the same? And, importantly, how do I know which one I'm using?   I'm from a Windows background, although I can't say I know a lot of technical stuff about Windows either...

What is the very fundamental difference between Unix, Linux, BSD and GNU?  Unix was the earliest OS, so the term 'Unix like' is understandable, since they have kernel, file system structure, most of the commands, users etc are same as Unix.  Still why are they different? What made them set apart? Is it the kernel?


Today I read Jon Skeet's blog entry on how to write a good question on StackOverflow.com.  During the day I realized that I had a question which I couldn't find an answer for:  "What is the most popular .NET unit testing framework?"  So I  (deleted, 10k+ users only).  Which is the most popular .NET unit testing framework? I'm trying to decide which unit testing framework I should learn, with the simple goal that it should be the one I would most likely be required to know if I changed jobs. Please note:  I'm not looking for subjective answers nor opinions. I'm not asking which is better to use. I'm hoping to get an answer like "This site says that, in a survey of twenty companies, this framework is most commonly used," or "While looking for a job I noticed that ten companies used this framework, while twenty used the other." I have tried Google-ing this, but haven't had any luck so far. If I were to guess I'd say the answer is going to be MSTest or NUnit.   I explained my reason for wanting this answered. I explained criteria for the answer: That I didn't want subjective answers (wanted evidence / statistical answers). I explained what I had previously tried in order to find an answer. Within about a minute my question had been marked down five times with a comment explaining problems that poll style questions cause. Since I don't actually want subjective opinions, I didn't think of this as a poll type question... nevertheless, any idea where or how I should ask to get an answer and some positivity?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


I was trying to install Ubuntu 14.04 alongside windows 8.1. So I partition 20GB using 'Partition wizard software'. But the installation fails.So I wanted that 20GB to recover. But somehow my whole F drive(245GB) is lost now. Then I tried to create new partition using windows disk management. But it is asking me to format the drive before use[image3]. So I want to backup all data in the drive. What should I do? or is there any way to recover the whole drive with the data ?

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


how can I force the task to use the first value and not the second value. This is a simpler example of code that has become a problem for me.         static void Main(string[] args)         {                        string testString = "1 value";            Task.Factory.StartNew(() => PrintStr(testString));            testString = "2 value";            Console.ReadLine();         }          static void PrintStr(string str)         {             Console.WriteLine(str);         }  In response I get "2 value" The problem is that I need to pass a string to the task, after which this string will be changed and I cannot guarantee. that the task will receive the correct information. I have a collection of posts, for each post I create a task and I need to pass the html markup in a string variable. For each step of the loop, this variable will change, and therefore I cannot be sure that the task will receive the correct data. Sample code: foreach(var uid in uids) // collection of messages {   message = imapClient.Inbox.GetMessage(uid);   var htmlData = message.HtmlBody.ToString();   tasks.Add(Task.Factory.StartNew(() => someHandle(htmlData));    }  void someHandle(string data) {  //some code to handle the message  }

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


Hello I'm new in blender api. I know python good but I can't start to make some changes for example with Screw modfier. How to edit the source on this type or try to write own version of this modfier. I found definition in:  2.71/scripts/startup/bl_ui/properties_data_modifier.py   I found in doc   but cant find in blender files the class implementation.

Is it possible to make python addon as a modifier?   I just would like to make some deformation modifiers. But I know only python.


i tried googlinmg my problem,but couldn't quite find a solution for that.I've got HP pavilion e0539TX Pearl white and i won't get a secure boot manager in the UEFI option after restarting.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I am currently working on a paper where we use one image from another paper. How and where should I denote that?  Currently, we have the image source only in the caption like this:  \caption{Comparison of a \gls{CNN} for classification (top)          and a \gls{FCN} which creates a heat map (bottom).          \cite{long2014fully}}

I am using an image from a users’ manual of a piece of software, and I was wondering if I can put a citation in the caption of the image. For example:     Figure 1.3 Illustration of WonderSoft’s interface. Image taken from WonderSoft’s users’ manual (Bitsmith et al., 1821).


My book of physics (I won't uote it here, since it is in Catalan) says that in the 1887 Michelson - Morley experiment, after getting the transversal and longitudinal phase shifts, they claim that the number of fringer observed will belong to the number of times that both phase shifts contains 2 pi because that is the phase two maximums repeat. My question is: why is here said that waves should form maximums? Because as I understand it, the expected result was to obtain a destructive interference whose phase shift could be used to determine Earth's velocity. If they were expecting a destructive interference, shouldn't the book use the phase two minimums repeat instead of using the interval when twho maximums do?

My book of physics (I don't quote it here, since it is in Catalan) says  that in the 1887 Michelson - Morley experiment, after getting the transversal and longitudinal phase shifts, they claim that the number of fringer observed will belong to the number of times that both phase shifts contains 2 pi because that is the phase two maximums  repeat. My question is: why is here said that waves should form maximums? Because as I understand it, the expected result was to obtain a destructive interference whose phase shift could be jsed to determine Earth's velocity. If they were expecting a destructive interference, shouldn't the book use the phase two minimums repeat?


I am the lead author on a journal paper to the IEEE, and I'm trying to figure out how to cite other contributors in a way that makes sense.  Two of us are affiliated with a university, one contributor is a wonderful and knowledgable mathematician whose "real job" is in the service industry, and the other contributor is also a math nerd who is a barista in another country that did all of the proofs.  Would these non-conventional authors be "independent" or "unaffiliated" or some other term.  The affiliation is required by the journal.  Any suggestions (or a definitive source) of how to handle this issue would be appreciated.

Recently my paper is reviewed (by a professor from independent third party) and accepted by a journal. But, my employer allows me to publish this paper only without its name there.  Publishing house is expecting affiliation for each author, i.e. I can not leave affiliation as blank.   What should I write as the affiliation?


I am very new to probability and combinatorics. I am trying to solve Coupon Collection Problem using Inclusion-Exclusion formula.  I found a lot of references her a some:       but they all seem concern with expected time to collect all N coupons form what my problem is asking the following:  Suppose there are N coupons after buying n boxes what is the probability that at least one each type has been collected.   Thanks

I'm trying to solve the well known Coupon Collector's Problem by explicitly finding the probability distribution (so far all the methods I read involve using some sort of trick). However, I'm not having much luck getting anywhere as combinatorics is not something I'm particularly good at.   The Coupon Collector's Problem is stated as:  There are $m$ different kinds of coupons to be collected from boxes. Assuming each type of coupon is equally likely to be found per box, what's the expected amount of boxes one has to buy to collect all types of coupons?  What I'm attempting:  Let $N$ be the random variable associated with the number of boxes one has to buy to find all coupons. Then $P(N=n)=\frac{|A_n|}{|\Omega _n|}$, where $A_n$ is the set of all outcomes such that all types of coupons are observed in $n$ buys, and $\Omega _n$ is the set of all the possible outcomes in $n$ buys. I think $|\Omega _n| = m^n$, but I'm not even sure about that anymore, as all my attempts so far led to garbage probabilities that either diverged or didn't sum up to 1.


I  as link-only and another user had obviously thought the same and added a comment later.  Perhaps I should have commented rather than flagged, but however, having done so, the OP responded to the comment and revised the answer, making my flag redundant.  Rather than let this get noticed and declined, it would be so much better if I could have revoked the flag to reduce the moderator's queue.  Looking for a way to do so, I found the above feature request, which seems quite popular. Is there any way to find out if/when it might get done?

For example,  was initially posted with horrible formatting, and I mis-read the question. Thinking it was asking something different, I flagged as belonging on .  When I realized my mistake, I felt it would be nice to remove the flag and reduce the moderators' queue. Since this feature does not exist, should a delete flag option be added to the user Flagging History page?  Without nit-picking over the exact text, I propose something similar to:    This option would of course only appear next to flags that have not been evaluated by a moderator.


Dearest Gabriella,  You are an amazing daughter! We are so proud of all that you have accomplished. Congratulations on your graduation. Wishing you all the success and happiness the world has to offer. "The future belongs to those who believe in the beauty of their dreams"  Love always,  Mom, Dad and Gregory

Should I put a comma before the last item in a list?     I would like crackers, cheese and some soda.   I would like crackers, cheese, and some soda.


Chandler, Arizona-based Insys had no immediate comment. Its shares closed up 7.6 percent at $7.36 on the Nasdaq.    Hi, I am not sure what does "closed up 7.6 percent" mean here, especially "up".  Does it mean the shares end up increasing by 7.6 percent or to 7.6 percent?

Such phrases describing growth rate as in the above examples are very common, but sometimes I'm confused about how to read them correctly. My understanding is:  If our 2019 sales are up 120% (or has increased 120%) from year 2018, it means, for instance, US$ 100 million in 2018, and US$ 120 million in 2019  If our 2019 sales are up by 120% (or has increased by 120%) from year 2018, it means, for instance, US$ 100 million in 2018, and US$ 220 million in 2019   If the above understanding is correct, then how should I interpret "..... is up 20% from last year"? Is it different from "up 120% from last year"? Or maybe those expressions include some ambiguities?


Is there a gravitational force between antiparticles? For example,  between two antiprotons. Do the antiprotons repluse each other?

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


Suppose I have:  Product(_id,Name)  Provider(_id,Name)  Provides(ProductId, ProviderId, Price)  If I want to obtain the providers who sell the most expensive products, and whose name starts with A.   Could you tell me how the following snippet runs? It seems to be returning the results I ask for.  Does group by get a random record from the table ?  Is Order by working first and then Group by gets the first record?   SELECT provider.Name, piece.Name, provides.Price  FROM provider,piece,provides  WHERE provider._id = provides.ProviderId AND piece._id = provides.PieceId AND provider.Name LIKE 'A%' GROUP BY piece.Name ORDER BY provides.Price DESC   Edit1: I still haven't gotten answered if the way this query is made, my question (bold text) is answered. I'm ALSO asking for what happens once/behind the scenes Group by is applied. See I'm trying to order based on price. I'm not asking about the basic idea, but what's going on behind.  I got answered "No." So what happens behind the Group by and over who Order by works over?  Edit2: Seems the question was a bit vague: The original question, for clarification, meant: For every product, I want the provider who sells it the most expensive.  So can you guys suggest solutions with standard SQL?  What was on my mind, along with the results giving me the right things was:   So, does anyone know why group by doesn't internally keep the records "grouped" and then order by sorts them? and shows instead an arbitrary record? (meaning for this problem the solution I had in mind is not trustworthy/predictable).

The base problem I'm facing is that I need the latest record for each item.    A little setup... MySQL 5.6.14.  I need to create two views (because MySQL won't let me have a subquery in a view).  My first query sets up the data like this.  select      `inventoryrecords`.`inventoryrecordid` AS `inventoryrecordid`,     `inventoryrecords`.`logicaldeviceid` AS `logicaldeviceid`,     `inventoryrecords`.`passrfid` AS `passrfid`,     `inventoryrecords`.`tagepc` AS `tagepc`,     `inventoryrecords`.`currentstate` AS `currentstate`,     `inventoryrecords`.`statedateutc` AS `statedateutc`,     `inventoryrecords`.`ownerobjectid` AS `ownerobjectid`,     `inventoryrecords`.`ownerobjecttype` AS `ownerobjecttype` from     `inventoryrecords` where     1 order by `inventoryrecords`.`statedateutc` desc   Then I can restrict everything to just the last record for each TagEPC with my "real" query like this.  select      `lastinventoryrecords_step1`.`inventoryrecordid` AS `inventoryrecordid`,     `lastinventoryrecords_step1`.`logicaldeviceid` AS `logicaldeviceid`,     `lastinventoryrecords_step1`.`passrfid` AS `passrfid`,     `lastinventoryrecords_step1`.`tagepc` AS `tagepc`,     `lastinventoryrecords_step1`.`currentstate` AS `currentstate`,     `lastinventoryrecords_step1`.`statedateutc` AS `statedateutc`,     `lastinventoryrecords_step1`.`ownerobjectid` AS `ownerobjectid`,     `lastinventoryrecords_step1`.`ownerobjecttype` AS `ownerobjecttype` from     `lastinventoryrecords_step1` group by `lastinventoryrecords_step1`.`tagepc` order by `lastinventoryrecords_step1`.`statedateutc` desc   When I try to select * from the "real" view, I do not get the data I expect.  However when I run the query with the sub-query in a window I do.  select * from (  lastinventoryrecords_step1 ) group by tagepc order by statedateutc desc   yields incorrect data whereas   select * from (     select          inventoryrecordid,         logicaldeviceid,         passrfid,         tagepc,         currentstate,         statedateutc,         ownerobjectid,         ownerobjecttype     from         inventoryrecords     where         1     order by statedateutc desc ) as t1 group by tagepc order by statedateutc desc   yields the right data.  What in the heck is going on?  What am I missing?


How do I move apps from my phone to the external memory. There is no option in settings to do this.

I have samsung galaxy 3 (I5801). I have downloaded many APK files from internet. I have no problem in installing APK files. By default when APK file is selected it installs itself to phone memory. I want it to install application on SDCARD. I have made my phone memory full.   So my queries are   How to install APK on SDCARD? APK should install itself to SDCARD. How to move already installed application to SDCARD from phone memory?