Unable to install files with apt-get: "unable to locate package"

I'm having issues with my ubuntu server version 12.04 installed on a HP550 laptop, when i try sudo apt-get install <programname>, e.g apache2 it will not work, saying E: Unable to locate package apache2.  I have tried to look/edit the sources. but they will not work either the gedit command is broken too, i am trying gedit /etc/apt/sources.list for those wondering, is this a case of the computer network not configured properly? it downloaded a language pack easily enough in the installation though. how do i fix this? a prompt reply would be appreciated.


The time out countdown which is flying in is missing half of the number.  Note the 33 here:        Can this be fixed please?


Suppose I have this Student class:  public class Student {     public int StudentID { set; get; }     public string StudentName { set; get; }     public int Age { set; get; } }   I like to create collections of Students using List:  List<Student> studentList2 = new List<Student>() {     new Student() { StudentID = 1, StudentName = "John", Age = 18 } ,    new Student() { StudentID = 2, StudentName = "Steve",  Age = 15 }  };   But I've heard that it's usually better to use IList:  IList<Student> studentList1 = new List<Student>() {      new Student() { StudentID = 1, StudentName = "John", Age = 18 } ,     new Student() { StudentID = 2, StudentName = "Steve",  Age = 15 } };   I don't understand why people recommend using IList<Student> instead of List<Student>!  Is it some kind of performance concern? Is it optional and down to personal preference? Or is there another reason?


Good afternoon.  I would like to get this (the picture below) but I don't know how to get it and I don't know a name of that. :)   Thanks for help.


My question is, what if I want to charge my iphone that uses 5volts via USB, however what if I had a powersupply that could deliver 5volts upto 10amps, if I used this to charge my phone would it ruin the phone? I thought that the phone only draws what it needs from the powersupply to charge it. Or would I be best to buy a charger to be used to charge my phone? Are phone chargers smart and turn off when phone is charged?


I am trying to figure out the best way to do multiple LIKE matches in a complicated soql statement.   I want to change the hubFilter value from just "BCS%" to "BCS%,Benefit Advisor,Mgr of Ben,BSR".  I tried this and got nothing back so I assume it's not reading those as separate values. Any ideas?  Here is a basic example of what my query looks like:  list<BCS__c>hubs = new list<BCS__c>(); private string hubfilter; if(showAll == TRUE){     hubFilter = '%'; }else{     hubFilter = 'BCS%'; } hubs = [     SELECT /*fields and subqueries*/ FROM BCS__c     WHERE /*other clauses*/ AND Title__c LIKE :hubFilter ];


how to install flash player on ubuntu 16.04 LTS

I want to install flash player on ubuntu 16.04 LTS. how i perform it kindly concern with your best


When i download the leagueoflegends.exe from  and trying to run it with the last version of wine, i get nothing, not even an error. (wine works fine with other .exe files)    Anybody knows something? I am using ubuntu 11.10 64-bit.


Is this a correct use of Bayesian statistics when choosing a box A-E?

Occasionally my friends and I attend a local pub quiz.  In the final round of the quiz, the winning team is allowed to select one box from five, labelled: A, B, C, D, E  In one of these boxes is a £250 prize. The others contain the following prizes: £1, £10, £20, £50  Once a decision has been made, the contents of the other boxes will be revealed one by one (complete with drum roll for dramatic effect). This continues until there are only two boxes left on the screen: The one that definitely has £250, and the box they picked. They are now given the opportunity to swap their box for the other box, and open that one instead.  So let's say the team picked B. The first "reveal" has been done and now on the screen only boxes A and B are left. One definitely has the £250 in it. The team can now either open B (their first choice), or swap and open A.  At this point, a friend of mine (who has a university degree in mathematics) always says the following: "Bayesian statistics says that they should swap boxes."  I have no idea what "Bayesian statistics" is but, from a common-sense point of view, I see this as a straight 50-50 choice, and swapping should make no difference to one's chances of winning the top prize.  So my questions are:  1) Is this a case where my friend should even be applying Bayesian statistics?  2) Does the Bayesian model say he is right that the team should swap their box at the end?  Thanks in advance. This should help solve a rather acrimonious and pointless debate.


During update 18.04 failed to download repository no internet; Getting this from terminal with sudo apt-get update

Tried doing an update on 18.04 using sudo apt-get update; when I type that in it is displaying this


How to get XML file from FTP sever to Salesforce..?

I have an XML file in FTP server, I need to read that file and loaded into document object in salesforce. I have read the below link but I am not able to understand. . Can we do an HTTP request to the FTP server..? If yes how I can achieve this without using Third-party tools like jitterbit or skyvia .Can anyone help me to solve it?  Thanks


I am trying to grasp the concept of closure function in javascript. Below is a simple code.Need to pass an argument of "inside" to the innerFunction. how do i do it.      function outerFunction(outerVariable){          function innerFunction(innerVariable){                   console.log("Outer Variable" +" = "+ outerVariable);                   console.log("Inner Variable" +" = "+ innerVariable);         }         return innerFunction;       };       const newOutFunction = outerFunction("outside");       newOutFunction();


Using Industry experience to recover from bad undergrad record

I graduated 2 years ago from a (frankly shitty) US state school with a 2.9 GPA and a Bachelor's of Arts in Computer science and no research experience.   I am well aware that this is a very poor undergraduate record. My mental health has has improved markedly since I left undergraduate and I have continued educating myself (self study/undergraduate courses).  I have the opportunity to move to a group within my company that does machine learning and statistics. Provided I take this position, will this experience be a positive mark on an application to a Master's program in a related field (comp. sci, statistics)? If so, how can I maximize the utility of this work experience in terms of admission?   More generally, what can I do to prevent myself from being permanently locked out of acceptance into graduate studies?


I have a 2 TB HFS+-formatted external hard drive that got dropped a couple of days ago while transferring files onto a Macbook Pro.  Now the drive's partitions won't mount.  Disk Utility can see the drive, but doesn't recognize that it has any partitions.  I've tried using  to recover files off of it, but it couldn't find anything.  In addition, our local computer repair shop said they couldn't find anything on there either.  I know that I could ship the drive off to someone like , but I was hoping for a cheaper option (since they start at about $500 for the attempt).  Is there something else I could try on my own?  Would  be able to help with something like this?


Effects of continuing after a total party wipe?

I've had a couple of encounters so far where I stumbled into enemies that were higher level than expected and gotten wiped out. At the game over screen, I chose the option "Continue". After doing so, I didn't notice any negative consequences. I was plopped back just a few metres from the area I died, and was free to continue on as if nothing had happened. Am I missing something? Is there some negative effect from a party wipe?


Find all positive integers $n$ such that $\phi(n)=10$

Find all positive integers n such that $\phi(n)=10$.  I have found 2 positive integers: $11$ and $22$.  Is there any more?  Thanks!


Intuition behind the Definition of Conditional Probability (for 2 Events)

What is some intuitive insight regarding the conditional probability definition: $P(A\mid B) = \large \frac{P(A \cap B)}{P(B)}$ ? I am looking for an intuitive motivation. My textbook merely gives a definition, but no true development of that definition. Hopefully that's not too much to ask.


How to choose the right sequence for intersection segments?

I would like to fill the intersection between the disk and the form delimited by the folling plot : \documentclass[11pt]{report} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \begin{document} \begin{tikzpicture} \draw[name path=k1,fill=blue!30] plot[smooth cycle] coordinates  {(0,0) (1,1) (3,0) (5,1) (7,-1.5) (4,-3) (2,-2) (0,-1)}; \draw [name path=k2] (1,0) circle (2cm); \draw [red,very thick,intersection segments={of=k1 and k2,sequence={L1}}]; \draw [blue,very thick,intersection segments={of=k1 and k2,sequence={L3}}]; \draw [green,very thick,intersection segments={of=k1 and k2,sequence={R3}}]; \draw [green,very thick,intersection segments={of=k1 and k2,sequence={R2}}]; \end{tikzpicture} \end{document}  I don't manage to pick the right segments to achieve filling the intersection correctly.


The product of finitely many cyclic groups is cyclic

How to prove that the direct product of finitely many cyclic groups $C_{n_1}\times C_{n_2}\times\cdots\times C_{n_m}$ is cyclic if the $n_i$'s are pairwise relatively prime?


Don't reset citations counter in book document class when using footcite

I am working on my Master's thesis and the citations are required to appear in the footnotes of the page where they are cited so I am using \footcite whenever I need to reference something in my bibliography. However,, by default, this means that after every chapter, the citations counter is reset such that the citations of each chapter start back at 1. However, the citations at the end of the bibliography don't! For example, the first citation of the 5th chapter appears as 1 in the footnote, but it is actually the 20th citation of the whole document. How can I make the footnote to show that it is refencing 20? This is how I am using the bibatex package: \usepackage[citestyle=verbose,bibstyle=numeric,sorting=none,defernumbers,backend=biber]{biblatex}


Is my example the same case as the link I gave?

Does "She went into the home and left shoes on the floor" equal "she went into the home, leaving the shoes on the floor". Plus, many people of this site said it was not the same thing. But I wish you guys could check the link below out.


Help selecting AC power adapter for DC car monitor

I purchased a Pyle 9" TFT monitor for use in an automobile with back-up camera. The wiring is designed to connect directly into the car's harness. I have no info on the electrical requirements other than, of course, 12V from the car.  I plan to use this monitor inside to make my nephew a headboard with digital photo/video/netflix frame. I've wired some indoor 12V lighting before, but probably just got lucky. I want to know if a similar power supply will work here? I'm looking at a DC 12V 2A Power Supply Adapter for 110V-240V AC 50/60hZ (whatever that means?). Does that sound like that will work? Should I get the 3A version to be sure since I read on this website the whole "amps are like apples" analogy?


Bypass stuck audio jack on macbookpro with software

Can i create a mac Osx application that can bypass the audio jack to produce sound through the speakers. I accidentally broke off the headphone jack inside my Macbook Pro and sound no longer comes out, this is clearly a software issue since the internal speakers produce sound on startup but subsequently become "disabled" once logged in.  Can't I spoof the MacBook Pro using software to think that the headphone jack is disconnected even if it is.


Why are 3 nucleotides used as codons for amino-acid mapping in DNA?

DNA is made of 4 unique nucleotides. When coding for a protein, a sequence of 3 nucleotides is used to code for each amino acid. Why are codons 3 nucleotides in length?  A related question can be found here:


Kind of a simple question, but what exactly are R-modules used for? Do they have any engineering applications?  EDIT:  If it helps, I'll give some more context to the question...  I am a graduate student researcher in computer architecture, a subfield of computer engineering. Specifically, I do research on the best way to build future general purpose processors (stuff like the Intel i7).   One thing I am looking into is if it is possible to apply mathematics to improve the design of CPUs. That is, can we use concepts from mathematics to improve the execution of general purpose programs on hardware. CPUs are a massive engineering design problem, and where exactly we could improve the design by applying math isn't entirely clear.   What I don't have is a very deep mathematical background. I have taken an introductory abstract algebra course and one in coding theory. I've also read a number of coding theory papers...  I know that other electrical engineering subfields like communications and compressed sensing have successfully applied elements of linear algebra and abstract algebra and have gotten very good results.  The fact that this particular question spans both engineering and mathematics makes it both hard to formulate and to discuss with people. I'd be happy to talk about it in more detail, but I'm not entirely sure what the best forum would be for that.  At least for now, I figured a good place to start would be to see if other people have successfully used some of the more abstract math concepts in engineering systems. One of the few I am aware of are R-modules, so I figured I'd ask if anyone knows of some engineering uses of them...


How to evaluate $\int \cot^2(x) \;\mathrm dx$?

How do you find the antiderivative of $\cot^2x$?  My steps to find it  First   $$ \csc^2 x = \cot^2 x+ 1 $$  because of Pythagorean Identities, so  $$ \cot^2 x= \csc^2 x-1$$ so $$ \int \cot^2 x\, \operatorname{d}x= \int \csc^2 x\, \operatorname{d}x - \int 1  \, \operatorname{d}x$$  simplying down to   $$\int \cot^2 x = -\cot x- x + C$$  because I know the derivative of $\cot x$ is $-\csc^2 x$.  I want to know if this is the correct solution because I have many gaps in my logic and frequently make errors and I started learning calculus a couple weeks ago.  If I got something wrong can you please tell me my mistakes.  Thanks, Bot


SQL Server SP - Pass parameter for "IN" array list?

Is there a way to pass the array of values to the IN section of a SP as a single paramter for SQL Server 2005?  Ex:  Select * from MyTable where ID IN(@MyValueArray)


In a two-column article, \newpage goes to the start of the next column, which might be on the same page. How can I force moving to an entirely new page? I tried: \newpage  ~ \newpage  This works in the left column, but in the right column it jumps to the right column of the next page. I am looking for a solution that always jumps to the left column of the new page.


How to remove a custom field from a managed package referenced in a custom report type?

Question  Is there anyway to get rid of custom field in a managed package that has been referenced in a custom report type for that managed package?  Background  I've built a managed package and for some unknown reason installed several add on packages (s4twitter) into the managed package dev org.  We're no longer using these packages and are trying to rip them out.  However, one of the fields for the s4twitter package made it's way into a custom report type.  Before I can uninstall the s4twitter package I need to get the field out of the custom report type, but I'm blocked.  Is there anything I can do to untangle this mess and rip out the s4twitter package?


What differences exist between third-party and official lenses for Canon APS-C DSLRs?

I am just another guy who just taken up photography as a social hobby who enjoys taking pics of everyday life, social events / parties & some portraits. Need camera for short overseas trip (2-3 times a year), maybe some landscape pics.   I have done some research and have come up a list of main lenses that I am considering and hope you guys can offer some advice / comments to whether I should make those purchases.   Main reason why I chose "third party lenses" 'cos apparently they cost less, newer and are "award winning" - so I don't see the point of spending more for the original canon lens (which some maybe quite old - ie 3-5 yrs).   Sigma 17-70mm F2.8-4 DC MACRO OS HSM Lens (day to day lens) Sigma 85mm F1.4 EX DG HSM (for portrait & bokeh effects) Wide angle lens (any suggestions)   Main questions / comments please...   Q1) What do you think of the lens choices that I have decided to build my kit?  Q2) Any wide angle lens that you will recommend? (third party or canon) or should I get wide angle zoom lens ? Q3) What are your thoughts that I chose all my lens from Third Party instead of Official Canon ones... is that a "smart move"?


jQuery .submit Not Working On Form Added After Page Load

I'm adding a form to the page after it loads by clicking a button.  After clicking the button the result (html) gets added with:  $('#modal-container').html(result);   When I click the submit button, it makes the post, skipping the following:  $('#addUserForm').submit(function (e) {   e.preventDefault();   if ($(this).valid()) {     $.ajax({       url: this.action,       type: this.method,       data: $(this).serialize(),       success: function (result) {         if (result.IsValid) {           $('#addUserModal').modal('hide');           AddRow(result.user);         }       }     });   } });   The form after being added:  <form id="addUserForm" action="/Admin/AddUser" method="post">    ........ </form>


Still looking for the ideal descriptor for an "ignorant blowhard"

There have been one or two past questions on different variations of "blowhard," but no answer quite gets at an emblematic recent incident.  A famous senator attributed the quote "all sound and fury, signifying nothing" to Shakespeare and a famous journalist "corrected" him and told him, "no, that's Faulker." So, eager to one-up someone based on ignorance and laziness (i.e., couldn't be bothered to google the quote).  "Ignorant blowhard" doesn't quite capture the implied feverish desire to put one over on someone without really knowing what you're talking about.  Other words?


Is this goal allowed on steal from keeper?

Scenario: A football keeper throws the ball in the air to kick it out, but the other team's striker kicks it away before the keeper can make contact. The striker scores on the play. Should the goal be disallowed?


Let $f:R\rightarrow S$ be a ring homomorphism. Prove or disprove: if $f$ is onto and $R$ is an integral domain, then $S$ is an integral domain.  My attempt: Suppose $s_1s_2=0$ for $s_1,s_2\in S$. Since $f$ is surjective, we know $\exists r_1,r_2$ $\in R$ such that $f(r_1)=s_1$ and $f(r_2)=s_2$. Then,  $0=s_1s_2=f(r_1)f(r_2)=f(r_1r_2)\implies r_1r_2=0$. Since $R$ is an integral domain, $r_1=0$ or $r_2=0$, so either $s_1=f(0)=0$ or $s_2=f(0)=0$, showing $S$ is an integral domain.  Is this a correct line of reasoning? I'm also imagining a counterexample where you map $\mathbb{Z}$ into $\mathbb{Z}/10\mathbb{Z}$ by $f(x)=x\mod{10}$, since $\mathbb{Z}$ is an integral domain, but $\mathbb{Z}/10\mathbb{Z}$ is not.  Any help appreciated!


Root system of Lie algebra: right angle => not simple?

Why is it that if the roots of a Lie algebra form angles of 90 degrees, the Lie algebra is not simple? Is it because the said roots commute with each other and so the Lie algebra can be broken down to nontrivial two-sided ideals? If that is the case, then why are these roots not a part of the Cartan subalgebra (maximal subspace of commuting Hermitian generators)?


How to copy previous settings after the first try?

So I just downloaded 2.71 (YAY!) and tried the super-handy "copy previous settings" option on the splashscreen...  ...but Blender froze (prolly cuz I had another instance open at the time). No worries, I'll kill it and try again...  ...except it's not on the splashscreen anymore. Well (says I) it's gotta be somewhere: space "copy prev..." yup! There it is!  ...But it throws the error: "[such-and-such-directory]/Blender/2.71 exists!"  ...Well, I guess I can delete the existing directory (and whatever record it had) and just re-extract...  ...But it still remembers!  So the question is, how do I get Blender to copy the previous settings, if it thinks it already has?


all. I'm trying to fix my system so I can install the nvidia drivers but it seems to get stuck for some reason. I have tried manually removing the downloaded files from   /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_i386.deb /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_amd64.deb   ... in order to let them download again but to no avail. Have anyone tried installing those drivers on 18.04 lately?  ~$ sudo apt --fix-broken install [sudo] password for jarl:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   lib32gcc1 libc6-i386 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   libnvidia-gl-390 libnvidia-gl-390:i386 The following NEW packages will be installed   libnvidia-gl-390 libnvidia-gl-390:i386 0 to upgrade, 2 to newly install, 0 to remove and 4 not to upgrade. 3 not fully installed or removed. Need to get 0 B/29,1 MB of archives. After this operation, 147 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 214344 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.48-0ubuntu3_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package   when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'   found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340' dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_i386.deb (--unpack):  new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2 Preparing to unpack .../libnvidia-gl-390_390.48-0ubuntu3_amd64.deb ... diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package   when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'   found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340' dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_amd64.deb (--unpack):  new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing:  /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_i386.deb  /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


I have seen some interface designs that nest accordions that show/hide information at more than one level of hierarchy.    The example show also uses both vertical and horizontal hierarchies to add further complexity to the navigation and interaction of information.   I was wondering if this is a common practice for certain types of websites or design patterns, or if it should be avoided because my instinct is that there are some usability issues with multiple levels of show/hide.  For example, if you were to implement a Show All/Hide All functionality, wouldn't it be rather confusing with all the different moving parts for the user to absorb?


How to factor a fourth degree polynomial

I'm working on a math problem but I am having a hard time figuring out the method used by my textbook to make this factorization:  $$x^4 + 10x^3 + 39x^2 + 70x + 50 = (x^2 + 4x + 5)(x^2 + 6x + 10)$$  I've tried to see if this equation can be factored by grouping or by long division to no avail. Any help would be greatly appreciated.


Why there is no diffraction in the microwave oven's door?

I thought that hole smaller than wavelength causes strong diffraction.    Holes in door of the microwave oven 100 times smaller than wavelength. Why does it block radiation?


Murphy: A probabilistic perspective - Completing the in Variational Inference

I don't understand how bishop derives the fact that $q_{\mu}(\mu)$ follows a gaussian distribution by completing the square. On page 774 of the book, a probabilistic perspective, he says the following: $\text { The optimal form for } q_{\mu}(\mu) \text { is obtained by averaging over } \lambda \text { : }$ $$ \begin{aligned} \log q_{\mu}(\mu) &=\mathbb{E}_{q_{\lambda}}[\log p(\mathcal{D} \mid \mu, \lambda)+\log p(\mu \mid \lambda)]+\text { const } \\ &=-\frac{\mathbb{E}_{q_{\lambda}}[\lambda]}{2}\left\{\kappa_{0}\left(\mu-\mu_{0}\right)^{2}+\sum_{i=1}^{N}\left(x_{i}-\mu\right)^{2}\right\}+\mathrm{const} \end{aligned} $$ $\text { By completing the square one can show that } q_{\mu}(\mu)=\mathcal{N}\left(\mu \mid \mu_{N}, \kappa_{N}^{-1}\right), \text {where }$ $$ \mu_{N}=\frac{\kappa_{0} \mu_{0}+N \bar{x}}{\kappa_{0}+N}, \kappa_{N}=\left(\kappa_{0}+N\right) \mathbb{E}_{q_{\lambda}}[\lambda] $$ Thanks


AES-CTR security if S-boxes substituion is omitted?

I understand why s-boxes are needed in general especially when ECB mode is used(because of using the same key for encryption of other blocks)but I wonder if it's still relatively secure if we omit S-boxes substitution step in these circumstances  using AES-CTR mode to make sure the same key with the same blocks will encrypt to different ciphertexts if we select a total random key  I'm asking since this way it seems that it's like we encrypting in a similar manner(not exactly) to one-time pad encryption since the result of encryption(that will get x-ored with plaintext) will be random. I know that using S-boxes will increase the security but is this way fine for non-top-secret documents, so we can get some extra performance for like embedded devices, without sacrificing too much in terms of security, also what kind of attacks can be used.


Does anyone have any advice on debugging someone else's code that has a number of red curly brackets? The code works so it's just me trying to clean it up. They are no longer with the company so I can't ask them for a quick fix and there are over 1000 lines of code. I typically would go through line by line but I didn't know if there was a quicker way. Any advice is appreciated!


How can I get a paper if our library is not subscribed to the journal?

I am a PhD student writing my thesis, and desperately need some specific papers which are not accessible via our library subscription. I contacted the authors to get a copy from them but some didn't reply. There were not available in free repositories and buying the articles from the publisher is too expensive for me.  Is there any possibility for getting a few papers you need?


How to get application id of an installed application? I want to find app id of Notes 2.0, so maybe later I will have a change to find extensions to that product.


Idiom/Phrase for "results without work/effort"

I'd be greatly appreciative of a cleverly devised idiom/phrase that depicts the following concept:     Results without work/effort.   ...and/or...     My Work/Effort; Your Result.   Any idioms/phrases you can recount or conceive would be of use.    Contextual Edit:  The idiom/phrase should be in the context of service offering/hiring or task delegation, not free-loading as most answers thus far have understandably assumed. E.g.     [You hire me for] My Work/Effort; [My work/effort produces] Your   Result.


TikZ PGF - Shift scopes bounding box to origin

I currently try to create a tikzpicture with multiple scopes. The scopes should be positioned relative to each other, so I use "local bounding box=..." for each scope to access their sizes.  My Problem: The corner positions of the bounding boxes are not known before drawing and not necessarily at (0,0), because my final content cannot be drawn by starting at a corner. (I have to start somewhere in the center of the scopes final bounding box.)  So my main question is: How to shift a scopes local bounding box so that its bottom left corner is positioned at (0,0), not knowing the bounding box corners before drawing its content?  Because then I can easily position the scopes/bounding boxes relative to each other.  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning}  \newcommand{\A}{   \begin{scope}[local bounding box=A]     \node[blue] at (0, 0) {A};   \end{scope} } \newcommand{\B}{   \begin{scope}[local bounding box=B]     \node[red] at (-1, 0) {B};   \end{scope} } \begin{document}  % Problem: Bounding box B should be positioned as if its bottom left corner starts at (0, 0). The bounding box B is not known before drawing, so the solution below does not work in general. \begin{tikzpicture}     \A     \begin{scope}[shift={(A.east)}]         \B     \end{scope} \end{tikzpicture}  % Desired Result: (With shift=(1, 0) just to demonstrate the desired result.) \begin{tikzpicture}     \A     \begin{scope}[shift={(A.east)}, shift={(1, 0)}]         \B     \end{scope} \end{tikzpicture}  \end{document}   Resulting tikzpicture:  Left (B A): problem; Right (AB): desired result


ant deploy error - Maximum size of request reached

I used to deploy metadata using ant migration tool successfully but from last night I am getting the below error:  John@John:~/mm_workspace/TEST_Project/deploy$ ant deployUnpackaged  Buildfile: /home/john/mm_workspace/TEST_Project/deploy/build.xml  deployUnpackaged:  BUILD FAILED /home/john/mm_workspace/TEST_Project/deploy/build.xml:72: Failed to submit request to https://cs19.salesforce.com/services/Soap/m/35.0/00D293456000Qaf for user john@test.com.dev. Error: {http://schemas.xmlsoap.org/soap/envelope/}Client - Maximum size of request reached. Maximum size of request is 52428800 bytes.  Total time: 2 minutes 10 seconds   I think this is because of too much metadata that I am trying to deploy. For now, I am deploying classes and then VF pages and so on but I am looking for an option to deploy everything in one go without running into the above error.  I am sure that people are working on more complex projects than mine with lots of metadata and I am wondering how are they deploying with out hitting this error?  Thanks


What's the difference between "debate" and "argument"?

These words seem to have similar meanings, possibly with different connotations.


How does Eclipse work on new Retina MacBook Pros?

I'm thinking about buying the new MacBook Pro. I will use it mostly to write code when I'm not at home and I've read that non-native apps look horrible due to the resolution. I was wondering if someone has tried using Eclipse or Zend Studio and if they work well.


Heres the thread I'm bouncing off of:   So I'm trying to run this command: cd /etc/openvpn/easy-rsa; . ./vars; ./build-key username  However, after running that command, I need to input nothing [just press enter] 10 times, and press y twice. The user on the last thread suggested I use except, but I couldn't get it working. Here are the questions it asks:  root@suffice-vpn:/etc/openvpn/easy-rsa# ./build-key usernamtest Generating a 2048 bit RSA private key ..................+++ ........+++ writing new private key to 'usernamtest.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]: State or Province Name (full name) [NY]: Locality Name (eg, city) [Merrick]: Organization Name (eg, company) [IceWare]: Organizational Unit Name (eg, section) [IceWare]: Common Name (eg, your name or your server's hostname) [usernamtest]: Name [server]: Email Address [iceware@programmer.net]:  Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.0.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows countryName           :PRINTABLE:'US' stateOrProvinceName   :PRINTABLE:'NY' localityName          :PRINTABLE:'Merrick' organizationName      :PRINTABLE:'IceWare' organizationalUnitName:PRINTABLE:'IceWare' commonName            :PRINTABLE:'usernamtest' name                  :PRINTABLE:'server' emailAddress          :IA5STRING:'iceware@programmer.net' Certificate is to be certified until Jan 14 18:27:48 2026 GMT (3650 days) Sign the certificate? [y/n]:y   1 out of 1 certificate requests certified, commit? [y/n]y   As you can see, I press enter 8 times initially [to keep the default input] and then press enter another 2 times to skip the optional commands. Then, I need to press y twice. How can I automate this? I need to have this all happen in one command. Any suggestions? Thanks in advance.


FILTER_VALIDATE_EMAIL regex to javascript?

I need to make email validation on client side same with FILTER_VALIDATE_EMAIL. So what would be the equivalent regex on javascript with the FILTER_VALIDATE_EMAIL?  I found that FILTER_VALIDATE_EMAIL regex is from here:  but when I tried to copy paste the regex to javascript I get SyntaxError: Invalid regular expression: /#<error>/: Invalid group


Is there a free VPN service that works on Ubuntu?

I use Hotspot Shield (Free VPN) on the Windows. Do anyone know of a similar tool or service for Ubuntu?  that:   Would not require me to have any server. would hide my IP. Would effectively tunnel all my connections in Ubuntu. have free plans   please explain pros and cons of your suggestions.


I am struck with the following problem:  Let Alice, Bob, Chris and Eve communicate over a public network. They encrypt all messages they send using RSA system. Bob and Chris have the RSA modulus $n_B$ and $n_C$ respectively with $n_B$ = $n_C$ But different public encryption exponents: $e_B \neq e_C$. Suppose $\gcd(e_B, e_C)=1$, and that Alice sends the same secret message to Bob and Chris. Show how Eve can decipher the message.


The adventures of Tom Sawyer sentence meaning

What does this phrase from The adventures of Tom Sawyer sentence mean: "True, the knife would not cut anything, but it was a "sure-enough" Barlow, and there was inconceivable grandeur in that -- though where the Western boys ever got the idea that such a weapon could possibly be counterfeited to its injury is an imposing mystery and will always remain so, perhaps."  Thank you!


I bought a new external hard drive to use with Time Machine: The Western Digital "My Passport for Mac" 1TB USB 3.0 Hard Disk Drive. This is the second hard drive Time Machine uses, the first one being my previous external disk. Therefore upon mounting my new disk, I did not receive the dialog box asking if I wanted Time Machine to make backups to this external disk (I believe you only get that dialog box if you haven't set up Time Machine before).  The icon for this new drive, both on the desktop and in the finder windows and sidebar, is the generic orange USB device. How do I get it to look like the hard drives seen in Time Machine preferences? I'm talking about the greenish-blue hard drive icon with the counter-clockwise arrow on it.  I thought when you set up a disk with Time Machine, it automatically changes its icon. Am I wrong about that?  [My first backup disk didn't have a traditional icon—it was a Toshiba disk and it came with its own red-and-black design, so I thought that overrode the Time Machine icon.]  System specs:   MacBookPro6,2 (mid-2010 version) 2.4 GHz Intel Core i5 processor OS X 10.8.2 Mountain Lion


loop file download with underscore in filename

I have a script that loops through several input files however, since the input files contains a underscore int he name, I cannot use $FILE to call the files, as it has to be a dot. The $FILE_2 is not recognised correctly, has to be $FILE.2. How do i overcome this? files.txt ERR23442 ERR25453 ERR25353  script: mapfile -s 1 -t files < files.txt echo "${files[@]}" for FILE in ${files[@]}; do  wget ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR318/FILE$/$FILE_2.fastq.gz; done


How to convert multiple rows to one row in SQL Server?

I have a problem with a query. Let's say I have two tables named PersonInfo and PersonEducation. I applied join operation on these tables with StudentId and I have  a result like that.     StudentIdId      Name    University    Department     Status    ---------------------------------------------------------------       1             John    Cambridge     Computer       Graduated       1             John    Berkeley      Mathematic     Graduated       1             John    Boston        Economy        Ongoing   It is just one example of a student (John). It shows that John graduated from 2 university and still studying in one university. University numbers can change depending on the students. My question is that how can I show these 3 row in just 1 row. I mean I want to show all education information in one row in order not to have multiple rows for one person.   Thanks in advance for your help.


How to evaluate this series for $k > 1$? $$\sum_{n=1}^{\infty}\frac{1}{n k^n}$$  For $k = 2$, I tried to evaluate $\displaystyle \sum_{n = 0}^\infty  \int_{1}^{2} x^{-(n+1)}dx =   \int_{1}^{2} \sum_{n = 0}^\infty x^{-(n+1)}dx = \int_1^{2}\frac{1}{x(x-1)}dx$ $\displaystyle = \int_{1}^{2}\frac{1}{x-1}dx - \int_{1}^{2}\frac 1 x dx = \sum_{n=1}^\infty \left( \frac{1}{n} - \frac{1}{n2^n}\right)$  But both $\displaystyle \int_{1}^{2}\frac{1}{x-1}dx$ and $\displaystyle \sum_{n=1}^\infty\frac1n$ diverges. The answer is $\ln 2$, are these divergent terms equal?


Since the last update of Ubuntu 14.04, when I press the sleep button in my laptop, a pop-up window appears with "Authentication is required for suspending the system".  Password is not requested when closing the lid. However, this doesn't work when another monitor is plugged in.  Is there anything that can be set up (in sudoers or somewhere else) to avoid this password prompt?


Probability a die will come up 6 at least twice in twelve rolls

What is the probability of rolling at least two 6's on twelve rolls of a fair 6-sided die.  I am using the complement to solve the question  $$1-\frac {5^{12}+(_{12}C_ 1)5^{11}}{6^{12}}$$  $5^{12}$ is the probability of not rolling a six  $6^{12}$ is the sample space  My question is why does the binomial coefficient have to be multiplied $5^{11}$ where the binomial coefficient is a "6" on the die.  This method I find difficult but intriguing.


I want both the image and text centered horizontally and vertically. What is the best way to go about this? I have tried float but it doesn't seem to be working. See the above image for ideal result  HTML:
            <p1>          I want to work in Computer Design, changing the way people          interact with thoughtfully considered software and hardware          experiences.      </p1>
   CSS:   #one{   background-color: #4E5B71;   width: 100%;   height: auto;   padding: 15px; } .clearfix{   overflow: auto; } p1{   font-family: AvenirNext-Regular;   font-size: 24px;   color: #FFFFFF;   line-height: 50px;   vertical-align: middle;   display: inline-block; } imac{   width: 100% auto;   height: auto;   float:left;   vertical-align: middle; }


I've seen "opt out" used in some places and "opt-out" in others. Both seem to be used in the same way - to remove one's self from something. I'm not able to find any official sources that suggest which is correct.  Which is proper?  Research:  I Googled for several variations of "opt out vs opt-out". I was unable to find any articles or pages that directly discussed the differences between the two. The search results all seemed to define one of the phrases or the other in very similar terms (the difference was still not clear).  I checked www.dictionary.com. I was only able to find a definition for "opt out", not a version for "opt-out". The definition I did find was similar to the definitions above.  I searched the English Language & Usage (this) site for the phrases "opt out" and "opt-out" but was unable to find a question that answered the above. The questions mostly seemed to compare "opt out" or "opt-out" to another similar word ("withdraw" for example).


Why am I getting a NullPointerException with this ArrayList?

When ever I add an object to this ArrayList, my resize method, gives me a NullPointerException. The list is initialized with a size of 1, and the first element is added to possition 0 in the array.   Here is my arrayList AKA DynamicArray  //Implementation of a dynamic array // Add remove methods   public class DynamicArray {     private Object[] data;     private int size;  public void DynamicArray(){     data = new Object[1];     size = 0; }  public int size(){return size;}  public Object get(int index){return data[index];};  private void resizeIfFull() {     if (size < data.length){         return;         } else {             Object[] bigger = new Object[2 * data.length];             for (int i = 0; i < data.length; i++){                 bigger[i] = data[i];                 data = bigger;         }     } }  public void add(Object obj){     resizeIfFull();     data[size] = obj;     size++; }  public void add(int index, Object obj){     resizeIfFull();      for(int i = size - 1; i >= index; i--){         data[i+1] = data[i];     }     data[index] = obj;     size++; }  public void remove(int index){     for(int i = index; i < size; i++){         data[i] = data[i+1];     }     size--; }  }   Here is my testing class.  public class AlgorTest {  public static void main(String[] args) {     // TODO Auto-generated method stub     DynamicArray dynam = new DynamicArray();     System.out.println(dynam.size());     dynam.add("first");  }  }   Here is my output from the testing class.  0 Exception in thread "main" java.lang.NullPointerException at DynamicArray.resizeIfFull(DynamicArray.java:20) at DynamicArray.add(DynamicArray.java:38) at AlgorTest.main(AlgorTest.java:8)


Cycles render Blender 2.79b - Texture/Material being rendered solid black

EDIT: So after restarting my pc, and messing around with options I got the texture to show up but it was still broken ( as if it was deepfried ). I retried with a new project and started out with blender render which worked fine, I then switched back to cycles, reapplied the texture and it works fine now. I don't know how but I won't complain.  I am still a beginner with Blender. I imported a csgo model along with it's texture. After I applied the texture, it's visible in texture/material mode but renders completely black when I preview render. Any help is appreciated.


I was looking over some code the other day and I came across:  static {     ... }   Coming from C++, I had no idea why that was there. Its not an error because the code compiled fine. What is this "static" block of code?


Prove $\text{rank}(A) \geq \frac{(\text{tr}(A))^2}{\text{tr}(A^2)}$ when $A$ is Hermitian

If $A \in \mathbb{C}^{n \times n}$ is a non-zero Hermitian matrix, I need to show that  $$\text{rank}(A) \geq \frac{(\text{tr}(A))^2}{\text{tr}(A^2)}$$ and reason out when the equality is attained?    Can anyone help me in showing this result?


I'm trying to update my system using apt-get, but it's giving me this error  Err http://bd.archive.ubuntu.com raring Release.gpg          Could not connect to bd.archive.ubuntu.com:80 (116.193.170.18), connection timed out Err http://bd.archive.ubuntu.com raring-updates Release.gpg   Unable to connect to bd.archive.ubuntu.com:http: Err http://bd.archive.ubuntu.com raring-backports Release.gpg   Unable to connect to bd.archive.ubuntu.com:http: Reading package lists... Done W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/raring/Release.gpg  Could not connect to bd.archive.ubuntu.com:80 (116.193.170.18), connection timed out W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/raring-updates/Release.gpg  Unable to connect to bd.archive.ubuntu.com:http: W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/raring-backports/Release.gpg  Unable to connect to bd.archive.ubuntu.com:http: W: Some index files failed to download. They have been ignored, or old ones used instead.   I am not a Ubuntu master but I can understand this is not a computer error. Any clues on how to fix it?


Send password when using scp to copy files from one server to another

using scp to copy files from 1 unix server to another regularly and performing certain actions. to do this quickly I wish to use a unix script which does the scp and inputs the password required to complete the scp.  I have tried the expect command to send the password throught the unix command line however unable to achieve this so far.  sample commands  scp ./abc.txt hostname/abc.txt expect "*password:*" send "mypassword\r"   I get these errors:  couldn't read file "password: ": no such file or directory myscript.sh[5]: send: not found [No such file or directory]   am I missing something?


Mathematical induction with the Fibonacci sequence

Let $F_n$ be the Fibonacci sequence: $$ F_0 = 0,\ F_1 = 1 \\ F_n = F_{n−1} + F_{n−2}, n \geq 2 $$  Use mathematical induction to prove that for all positive integers $n$, $$\sum_{i=0}^n (-1)^i \cdot F_i = (-1)^n \cdot F_{n-1} - 1$$  I understand the steps involving the base case, assuming the statement true for $n=k$ and then trying to prove that it's true for $n=k+1$. I am in the process of the actual induction and I'm trying to use the appropriate definitions to simplify my statement. It's not working out.     $\sum_{i=0}^{k+1} (-1)^i(F_{i}) = (\sum_{i=0}^k (-1)^i(F_{i}))+(-1)^{k+1}*F_{k}-1$      $(-1)^k(F_{k-1})+(-1)^{k+1}(F_{k})-1$      $(-1)^k(F_{k-1})+(-1)(-1)^k(F_{k})-1$      $(-1)^k(F_{k-1}-F_{k})-1$      $(-1)^k(-1)(F_{k}-F_{k-1})-1$      $(-1)^{k+1}(F_{k}-F_{k-1})-1$      $(-1)^{k+1}(F_{k-2})-1$        (by the definition $F_{n}=F_{n-1}+F_{n-2}$)   I feel like I'm close to the pattern that I'm supposed to identify here, but the only part that doesn't match the original is the Fsub(k-2). It needs to be just Fsub(k), but I haven't been able to manipulate the algebra in a way that yields Fsub(k).


Blender trim the rendered image to only visible objects

I am wondering if there is a way to trim the size of the rendered image to the edge of visible pixels for transparent PNGs. In Photoshop, I would go to Image -> Trim. I often render objects with transparent backgrounds that then need to be trimmed to the objects visible edge.  It would save a lot of time if I could skip editing the image in Photoshop.


do I need to use an apostrophe in a sign I had made,  CONTRACTORS ENTRANCE  thanks for your help


When I try to restart apache2 by using the command:  sudo service apache2 restart   It gives me this error:  Failed to restart apache2.service: Unit apache2.service is masked.   Is this a hosting-related problem?


I am trying to hunt down Reports on a specific object and having trouble finding this information anywhere. The  object does not seem to have any fields that indicate the Report Type, nor any other indicators as to what object the Report is built on.  Is this information accessible? Is there any way to find all reports of a specific type, or on a specific object?


Proving the series of partial sums of $\sin (in)$ is bounded?

So I'm trying to prove some series converges, and I'm trying to show it by using the Drichlet test.   So I need to prove that the series of partial sums $\Sigma_{k=1}^\infty \sin(ki)$ is bounded. I tried proving it by dividing and multiplying with $2\cos(\frac{i}{2})$ and then using the trigonometric identity $2\cos(\beta)\sin(\alpha)=sin(\alpha+\beta)-sin(\alpha-\beta)$, which creates a telescopic series - but I didn't manage to bound the result.  Any assistance would be great! Thanks in advance!


What's the difference between Windows 8.1 and Windows 8.1 N?

I see both options available with different sizes in the MSDN Subscriptions Download but I can't tell the difference between the two versions besides the name and the size   Windows 8.1 N (multiple editions) (x64) - DVD (English) 3537 MB  Windows 8.1 (multiple editions) (x64) - DVD (English) 3719 MB


I have a genuine copy of windows 7 home basic. I downloaded ISO file of windows 10 from Microsoft website using other computer and copied the file from that computer to CD.If I install this ISO file,can I activate it using windows 7 genuine versions key.if not how can I make my windows 10 genuine ?


Who else wants the old navigation layout back?

Upvote if you want the old layout back, downvote if you like the new one. :D


How to apply Neural Network to time series forecasting?

I'm new to machine learning, and I have been trying to figure out how to apply neural network to time series forecasting. I have found resource related to my query, but I seem to still be a bit lost. I think a basic explanation without too much detail would help.  Let's say I have some price values for each month over a few years, and I want to predict new price values. I could get a list of prices for the last few months, and then try to find similar trends in the past using K-Nearest-Neighbor. I could them use the rate of change or some other property of the past trends to try and predict new prices. How I can apply neural network to this same problem is what I am trying to find out.


Separate selected UV map vertices from surrounding vertices

How do I break the selected UV map from its surrounding vertices?


I'm going to be traveling to Germany from the US, and on the flight back that is preferable for other reasons, we'll be going Nuremberg->Frankfurt, then have 1.5 hours, then -> Chicago.  Is that long enough for that stage?  I'm not an experienced international traveller (I've never been on that side of the Atlantic, for example), and I'm somewhat concerned about what might happen if my puddle-jumper gets delayed (as I'm sure they do from time to time).    (Unfortunately, the other option is a 5 hour layover; that seems to me to be just short enough that we can't really go see anything (not that FRA has much to see from what I've read) and long enough my two toddlers will dislike it if we stay at the airport.)


My density plot in R has values beyond 1! How can I fix this?

I'm trying to plot a generalized pareto distribution with fixed initial values "scale" and "shape" to a random sequence of numbers. When I produce the plot with scale=1 and shape=1, I get the density on the y-axis with limits (0,1). If I produce the plot with different parameters (like the ones below), on the y-axis I get density values between (0,2), which obviously don't make sense.   x <- seq(from = 0, to = 5, by = 0.01) plot(dgpd(x, scale=0.639, shape=-0.255), type="l",xaxt="n",  las=1, ylab="Density", xlab="Exceedances") axis(1, at=seq(0, 500, by=100), labels = seq(0, 5, by=1))   (the third line was my way to rename the x-axis, it shouldn't matter for my question.)  Could someone replicate this and tell me whether they also get the weird limits? You know how I can fix this? Thanks!  PS: Sorry for the inconvenience, I only thought that there was a problem with MY specifications since for some parameters I had the interval [0,1] and for others [0,2]. Erroneously enough, I was asking what was wrong with my parameters rather than with the density plot and values. But I get it, it's a question that has been asked before, so it's been flagged as duplicate. Moreover, this being my first experience with stackexchange, I can only learn from it. Good day to you all, lads!


The figure bleow is the pointcloud imported as .ply file into blender.   However, I would like to perform triangulation on it to produce the surface as seen in picture below(Accomplished using ballpivoting surface reconstruction and poisson disk sampling in MeshLab).   Is there a way to perform triangulation on belnder.  (PS: The purpose is to be able to select each faces/vertices individually to automate further.)  Edit: Question: Is it possible to select the vertex/faces programmatically post triangulation? if so, please explain how?


Skip a sector but with a different airline

I live in London and want to visit Dubai without paying an arm and a leg for our. There are flights from Brussels to Dubai via London which are much more appealing to me. The Brussels to London leg is operated by BA while the London Dubai leg is operated by Virgin.  Can I skip the Brussels London leg and board from London itself?


Converting CSV file into PDF dynamically

I have a simple CSV file that looks similar to:  pens, 23 bottles, 5 spoons, 6 chairs, 5 books, 12   I want to convert this into a PDF document. I have no clue on how could I do this. I have installed . It will be helpful, if you help me in getting started with this.  The problem that I am trying to solve is pdf generation. So the input will be a CSV file with around million entries and I want to generate a PDF document.


What is causing my simple JavaScript for-in loops to not colour the background of the specified HTML elements?

I'm in the process of learning JavaScript and have come across an issue I don't understand.  I have a simple webpage I'm using for testing, and here I'm trying to use for-in loops to change the background colour of all h1 elements to red, and all h2 elements to blue.  var h1 = document.getElementsByTagName("h1"); var h2 = document.getElementsByTagName("h2");  for (i in h1) {     h1[i].style.backgroundColor = "red"; }  for (i in h2) {     h2[i].style.backgroundColor = "blue"; }   When I run this code, the background of all h1 elements turn red as intended. However, none of the h2 elements change at all.  I get an error in the console that says:           TypeError: h1[i].style is undefinedI don't understand this however as the code it's referencing seems to run just fine.  If I comment out h1[i].style.backgroundColor = "red"; and refresh the page, all of the h2 elements are changed to blue.  I then get an error in the console similar to the first one: TypeError: h2[i].style is undefined  Does anybody know what's going on any why my code isn't running both these loops? It looks like it runs fine until the end of the first loop, then errors out and stops running so doesn't run the second loop.  Thanks in advance!


Requested fontspec font not used, and no message in the logs

I am trying to use Calibri in a beamer presentation, as per . Everything seems to go fine, but in the PDF the font is LMSans. I can see the embedded font by looking up the fonts properties in Adobe reader, or by opening the PDF in a text editor.  I am running TexStudio and MikTex on Windows, the family of Calibri.ttf files are in both C:\Windows\Fonts and C:\Windows\WinSxS\amd64_microsoft-windows-font-truetype-calibri_31bf3856ad364e35_10.0.15063.0_none_fbba0686289345e3.  Here's a MWE:  \documentclass{beamer}  \usepackage{fontspec} \setmainfont{Calibri}  \begin{document}     \begin{frame}         test     \end{frame} \end{document}   Looking in the log file it appears that Lualatex is loading both the Calibri files and the LMSans files from MikTex:  ("C:/Program Files/MiKTeX 2.9/tex/latex/fontspec/fontspec.cfg")(load luc: C:/Us ers/username/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otl/lmsans10-bo ld.luc)(load luc: C:/Users/username/AppData/Local/MiKTeX/2.9/luatex-cache/generi c/fonts/otl/lmsans10-oblique.luc)))(load luc: C:/Users/username/AppData/Local/Mi KTeX/2.9/luatex-cache/generic/fonts/otl/calibri.luc)(load luc: C:/Users/username /AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otl/calibriz.luc)(load luc : C:/Users/username/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otl/cali brib.luc)(load luc: C:/Users/username/AppData/Local/MiKTeX/2.9/luatex-cache/gene ric/fonts/otl/calibrii.luc)   Later on only mentions LMSans, not Calibri:  (./MWE.nav)(load luc: C:/Users/username/AppData/Local/MiKTeX/2.9 /luatex-cache/generic/fonts/otl/lmsans8-regular.luc)(load luc: C:/Users/username /AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otl/lmsans17-regular.luc)( load luc: C:/Users/username/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/ otl/lmsans12-regular.luc) (./MWE.aux))


If you normalise a likelihood function, does it become a valid and probability distribution.

As far as I'm aware a probability distribution only requires that some function $p(x)$ is non-negative over the reals, and integrates to unity.   If this is all it takes to define a probability distribution is it valid of me to normalise a likelihood function and call it a probability.   I have looked at the example from here:    where the integral of the given Bernoulli likelihood function is given to be 1/2.   If I then take this knowledge and divide this parameter (the 1/2 value) through my previous integral this will ensure that the likelihood function integrates to unity. However since the requirements for a valid probability distribution seem so relaxed (non-negative and integrate to unity), does this not mean I'm now dealing with a justifiably valid probability distribution? Or is there something else that I'm missing?


\star vs. \ast in formulas. Which one to use?

When you read a formula aloud you say "r and r-star are related by this formula". If you write this formula down you normally write an r with a six-handed star, which would actually be an asterisk and not star (with 5 sharp hands) because it's easier to draw by hand.  But what to do when typing this formula in LaTeX? Should I set it as I pronounce it?  r^\star = a r   Or as I write it by hand?  r^\ast = a r   And will \ast always do the same as *?  r^\ast == r^* %???   Is one (\star or \ast) simply wrong (typographically or semantically) or is it just a matter of personal preference?


How to prevent Android from creating LOST.DIR on SD card?

After the phone restarts, there is a LOST.DIR folder created on the external SD card. Is it possible not to create this folder if nothing is lost?


Square complex matrices can be classified up to similarity where similarity is defined like so: $A\sim B$ if there exists invertible matrix C such that $CAC^{-1}=B$ All matrices are similar to some matrix in   Say we instead consider this definition of similarity known as : $A\sim B$ if there exists invertible matrix C such that $CAC^T=B$ (just as it is defined in wikipedia, I make no assumptions on C other than invertiblility) Is there a similar classification theorem for this notion of similarity?


How did Montague Apparate into the Hogwarts bathroom?

In year 5, Fred and George jam Montague into the Vanishing Cabinet. He's found weeks later in a toilet.      ‘He never managed to get all the words out,’ said Fred, ‘due to   the fact that we forced him head-first into that Vanishing Cabinet   on the first floor.’      […]      ‘They’ve found Montague, sir, he’s turned up jammed inside a toilet   on the fourth floor.’   ‘How did he get in there?’ demanded Snape.   ‘I don’t know, sir, he’s a bit confused.’   In year 6 Malfoy expands on that.      ‘I had to mend that broken Vanishing Cabinet that no one’s used for years. The one Montague got lost in last year.’      […]      ‘The other’s in Borgin and Burkes,’ said Malfoy, ‘and they make a kind of passage between them. Montague told me that when he was stuck in the Hogwarts one, he was trapped in limbo but sometimes he could hear what was going on at school, and sometimes what was going on in the shop, as if the Cabinet was travelling between them, but he couldn't make anyone hear him ... in the end he managed to Apparate out, even though he’d never passed his test. He nearly died doing it.   What happened here? Did he Apparate out into Hogwarts, Apparate into Borgin and Burkes and somehow wander back to Hogwarts and get stuck into a toilet?


My application is defining the method name to the string at runtime. And I want to call that method from string.  Example  private void ButtonClick(){     string goVoid;     goVoid = "testVoid";     goVoid(); // Calling testVoid }  testVoid(){     //code }


I am using Do Carmo's Riemannian Geometry, and struggling to solve a problem.  The problem is:  Show that the mapping $F:\mathbb{R}^2\to\mathbb{R}^4$ given by  $$F(x,y)=((r\cos y+a)\cos x,(r\cos y+a)\sin x,r\sin y\cos\frac{x}{2},r\sin y\sin\frac{x}{2}))$$  induces an embedding of the Klein bottle into $\mathbb{R}^4$.  I know that the Klein bottle is defined as a quotient manifold $T^2/G$, where $T^2$ is the 2-torus, $G$ is a group of diffeomorphisms of $T^2$ formed by $\{A,Id\}$, and $A$ is the antipodal map, i.e. $A(p)=-p$.  Besides, I know that $T^2=S^1\times S^1$, where $S^1$ is the unit circle.  Also, I found that $F$ is injective.  However, I don't have a clue about how to attack this problem. I tried googling, but found nothing.  Any help will be appreciated.


Possible to save a list template and maintain lookup relationships?

My issue is that I have two lists that I would like to move with their data.  While I am able to save both as templates and then upload to the new site, none of the lookup columns in my parent table are populated with data now.  Can this be done?


Database - Enumeration type - Extra table or just a column

Suppose I have a Person entity with a status associated with it status can be ACTIVE/INACTIVE/BLOCKED Which table design would be better ? Just one table Person(id, name, status) Or Two tables with a foreign key reference from Person to Status table. Person(id, name, status_id) Status(id, name) It is much easier to manage the implementation with just one Person table. But do anyone see any future problems associated with this approach?


$A=\bigg\{\sum_{i=1}^{\infty} \frac{a_i}{5^{i}}\ :\ a_i\in\{0,1,2,3,4\} \bigg\} \subset \mathbb{R}.$ Then which of the following are true

Let $$A=\bigg\{\sum_{i=1}^{\infty} \frac{a_i}{5^{i}}\ :\  a_i\in\{0,1,2,3,4\} \bigg\} \subset \mathbb{R}.$$ Then which of the following are true:   a. $A$ is a finite set.  b. $A$ is countably infinite.  c. $A$ is uncountable but does not contain an open interval.  d. $A$ contains an open interval.


Debug suddenly stops recording debug logs

I am having very very very frustrating problem here. I am coding my app, dumping to debug logs whatever I need and everything works magically. But at some point apex stops printing my debug logs. So i have system logs, I can read them, but not the logs dumped with system.debug(");  My debug log request limit is not used, I didn't touch or change Debug Log levels in Developer console. It just stops printing debug logs from methods being called.  This is not the first time this happens, it is recurring event unfortunately.   Did anyone experience something similar or does anyone have some idea what to do regarding this issue. Thanks a lot.


ignoring properties in an array during iteration

I a see this property fruits.shouldBeIgnored = 'Ignore me!'; in my tests for this problem, and want to ignore this, but I seem to be including this in my result.   var fruits = ['apple', 'banana', 'carrot']; var iterationInputs = []; fruits.shouldBeIgnored = 'Ignore me!'; forEach(fruits, function(fruit, index, list) {   iterationInputs.push([fruit, index, list]); }); expect(iterationInputs).to.eql([   ['apple', 0, fruits],   ['banana', 1, fruits],   ['carrot', 2, fruits] ]);   The error message says should only iterate over the array elements, not properties of the array  this is returned:  expected [ [ 'apple',     '0',     [ 'apple',       'banana',       'carrot',       shouldBeIgnored: 'Ignore me!' ] ],   [ 'banana',     '1',     [ 'apple',       'banana',       'carrot',       shouldBeIgnored: 'Ignore me!' ] ],   [ 'carrot',     '2',     [ 'apple',       'banana',       'carrot',       shouldBeIgnored: 'Ignore me!' ] ],   [ 'Ignore me!',     'shouldBeIgnored',     [ 'apple',       'banana',       'carrot',       shouldBeIgnored: 'Ignore me!' ] ] ] to sort of equal [ [ 'apple',     0,     [ 'apple',       'banana',       'carrot',       shouldBeIgnored: 'Ignore me!' ] ],   [ 'banana',     1,     [ 'apple',       'banana',       'carrot',       shouldBeIgnored: 'Ignore me!' ] ],   [ 'carrot',     2,     [ 'apple',       'banana',       'carrot',       shouldBeIgnored: 'Ignore me!' ] ] ]   i've tried researching how to ignore array properties during iteration, set a condition to only perform the callback on array properties that are typeof string, to no avail.   // Iterates over elements of an array invoking callback for each element. The callback should be passed the element, the current index, and the entire array. // var callback = function(element, index, array) { //  console.log(element +"," +index +"," +array); // } // forEach(['a','b','c'], callback); → prints a,0,['a','b','c'] b,1,['a','b','c'] c,2,['a','b','c'] // For each element in the array, the callback we passed is called. The callback can be customized, but in the above example, the callback prints out the element, index, and entire array. function forEach(array, callback) {     let result = [];     for(let i in array){         let element = array[i];         let index = i;         if (typeof array[i] === `string`) {             result.push(callback(element, index, array));         }     }     return result; }


Suppose we had a spring-mass system where the spring isn't assumed to be massless (has mass $M$) and is of length $L$. One end of the spring is held fixed and the other end I guess is left to freely oscillate. Here, I am told that the spring is assumed to uniform and stretches uniformly.  If I want to find the kinetic energy of the spring, we have to set up an expression for it  $$dT_{\text{spring}} = \frac{1}{2}u^{2} dm$$  where $dT_{\text{spring}}$ is the kinetic energy of an infinitesimal part $dm$ somewhere along the spring and $u$ is its corresponding velocity. Since the spring is uniform, I can find its mass density  $$ \lambda = \frac{dm}{dx} \longrightarrow dm = \lambda dx = \frac{M}{L}dx$$  so that $$dT_{\text{spring}} = \frac{1}{2}u^{2}\frac{M}{L}dx $$  The one step I am not understanding is how $u= \frac{x}{L}v$, where $v$ is, I think, the velocity of some point that has been displaced by the stretching of the spring (please correct me here if I'm wrong). Why is the velocity of a piece $dm$ linearly proportional to $v$ and how can I derive that expression mathematically, i.e. if $u = \alpha v$, how do I find $\alpha$ and why? Something is not registering in my head and I feel like it has to do with the fact that the spring is assumed to be uniform. That then begs the question: what if it wasn't? What would I do in that case?


Can Ubuntu 16.04 32/64-bit be installed in Pentium D

I want to install Ubuntu 16.04 in the system  Configuration of the system   Memory -2Gb Processor -Intel® Pentium(R) D CPU 2.80GHz × 2  Graphics -Intel® 945G  Disk Size -77Gb   Currently I have "Oracle Linux Server 7.2" 64-bit in this system, but it lags a lot.  Thanks


Correct hyphenation for conjunction of hyphenated compound adjectives

Consider the following sentence:     The labour-intensive and time-intensive part starts tomorrow.   I want to write this without rewriting the word "intensive."  Is this the correct way to do it?     The labour- and time-intensive part starts tomorrow.   Note the hyphen hanging after the word labour. Or should there be no hyphen after labour? Can anyone point me to a reference that talks about this?


Why we use "prototype" property to add methods to constructor instances?

I am creating a JavaScript constructor. Consider this example:  function Student(name) {     this.name = name; }  Student.prototype.printName = function(){     console.log(this.name); }  var s = new Student("Eden"); s.printName();   This above code works all well. But I can write the same this way also:  function Student(name) {     this.name = name;      this.printName = function(){         console.log(this.name);     } }  var s = new Student("Eden"); s.printName();   I feel the second method is correct way because printName should be own property of new object not an inherited property. Adding to prototype makes it an inherited property.   Why do developer prefer the first method?


How to find custom ROMs for rare android devices?

I've recently bought a  tablet. Since it's a 'local' brand, I don't expect to see any updates, and I was wandering how could I find some other (cyanogen, or other) ROMs to update the software myself (currently, it's 4.2.2).  Do I search for roms that match the CPU/resolution/ram/... does it need to match every specification, or only in part?


Which equal correlations of three random variables are possible?

3 random variables have equal pairwise correlation, what are the possible values of correlation?  I think 1 and 0 are the obvious answers, but are there any more, and how could I find them?


I'm Italian so I don't know English very well.  While listening to Bob Dylan songs I've heard some strange use of progressive tense (is that the correct term?), the title of this question is one example. Why "the times are a-changing" and not "the times are changing"? I heard other examples (always in Bob's songs), but now I cannot find any.  Is this some sort of ancient English? Slang? Metric trick?


PCA. Maximisation of explained variance for plane.

I understand the PCA method in a following way:  0) I have a cloud of dots in ND space   1) I should find a vector which gives me a maximal variance when dots are projected on this vector.  2) I should find the second vector orthogonal to the first, which will explain the maximal possible variance.  And so on..  My question is - if I would use the plane, defined by first and second principal components, will it be the plane, which explains the maximum possible variance?


On this guys  he's using infinite scroll and it's appending the page number to the url so when you click on a story and go back, you start off where you were.  I'm using infinite scrolling on a website I'm developing just now but I can't figure out how this is done, it's not a function built into the plugin.  I'm not using jetpack, I'm using the   Also, if I append a page number to my local installation like this   http://localhost:8888/page/2   Then scroll down, it loads in the next set of posts, then it breaks and doesn't load in anymore posts.  Is there a way to append the page number as more posts are loaded in with infinite scroll?


I've been asked to take a look at an old web server (Ubuntu 12.04) which has been running very slow recently.  After a quick check I found a process constantly topping the cpu:  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 26331 root      20   0  413m 1728 1188 S  400  0.0 740:47.17 Welcom   It was running from the /tmp directory where I found these 3 files  /tmp -rw-rw-rw-  1 root         root            11624 Dec 29 14:50 tmplog -rwxrwxrwx  1 root         root                0 Jan  9 04:12 Wel* -rwxrwxrwx  1 root         root          1659720 Jan  6 22:18 Welcom*   the tmplog file kinda suggested it was a cryptocurrency miner:  tmplog top line CMD: /bin/wipefs -B -o stratum+tcp://pool.minexmr.com:443 -u 45WnHu.......   I immediately removed the files from /tmp /bin and /etc/init.d which were linked to these executables, stopped the process and disabled root ssh login.  A minute or so later the Welcom file was back in /tmp and the process was up and running again.  I did some research and found these:      But I only managed to locate the templog wipefs from the list of files. The templog is no longer updated but the Welcom executable gets recreated in both /tmp and /bin  How can I get rid of this without thrashing the box? Any help would be much appreciated.


On my web application that is built using Yii 2 PHP, We send out emails using Swiftmailer  It is configured to connect to an SMTP server to send the email - to avoid problems.   The Emails are in HTML and do have a link in the body of the mail. On gmail accounts these emails go straight to the spam folder.  Any advice on how to fix this problem would be great please!  My Swiftmailer is configured as follow:      'mailer' => [         'class' => 'yii\swiftmailer\Mailer',         'useFileTransport'=>false,         'transport' => [             'class' => 'Swift_SmtpTransport',             'host' => 'mail.domainhere.com',             'username' => 'address@domainhere.com',             'password' => 'PASSWORDHERE',             'port' => '465',             'encryption' => 'ssl',         ],     ],   When i send emails to my own gmail account i get this warning on the email:  Be careful with this message. Many people marked similar messages as phishing scams, so this might contain unsafe content  Thanks! Jason


How do I finish installing Tex Live, on Ubuntu?

I tried to install Tex Live on Ubuntu, but I'm stuck. I installed the "install-tl" folder on to my computer and I ran "perl install-tl" on the terminal in the correct directory and waited for all the packages to install. But now, It's asking me to create Paths and create what I assume is a folder and I have no what to do I even checked the website, but now I'm even more confused. All help is greatly appreciated! Edit: I also have TeXStudio installed as someone had told me that I also needed that. This is the message that appeared at the bottom of the terminal after installation was complete:  Welcome to TeX Live! See /usr/local/texlive/2020/index.html for links to documentation. The TeX Live web site () contains any updates and corrections. TeX Live is a joint project of the TeX user groups around the world; please consider supporting it by joining the group best for you. The list of groups is available on the web at . Add /usr/local/texlive/2020/texmf-dist/doc/man to MANPATH. Add /usr/local/texlive/2020/texmf-dist/doc/info to INFOPATH. Most importantly, add /usr/local/texlive/2020/bin/x86_64-linux to your PATH for current and future sessions. Logfile: /usr/local/texlive/2020/install-tl.log


Why do some comments have 0 score but others have null score in Data Explorer?

In Data Explorer, looking through some SO data, I noticed that some comments have 0 for Score, while others are null. Why is this? Is there a difference between 0 and null comment scores?


To start I should admit that I haven't done much work in Ubuntu in a few years.  I am wondering is if there is still a single, canonical source of the hardware supported by the newest distribution of Ubuntu.  In specific, I want to get a 17-inch HP dv7t Quad edition laptop.  But more generally, it is just bothering me how little luck I'm having finding an up-to-date support listing.


I run fix installation command after which terminal removed all the files and now it is showing this black screen.  How can I repair my system?


Change keyboard shortcut to open Ubuntu 16.04 file manager through command line?

The question is similar to this one:   Except that I would like to know whether it is possible to do it through command line, instead of GUI.  The task is to set the shortcut of /home/usr to super+E on a newly installed Ubuntu.   The reason to to this is that it is a pain to configure many machines through GUI. As a last resort, it is always possible to simulate mouse and key board to automate. However, for the sack of question, assuming that is not an option.


As a proper noun, and as something commonly referred to in everyday life, I've heard both "the internet," and "internet" when using it as a noun. Ex:     I went on the Internet   Vs.     I found my answer via Internet   Although the second of the two sounds more awkward when saying it out loud, is it still acceptable?


A  suggests that photons can have half-integer spins. This seems to contradict the well understood notion that photons are vector (1-form) fields  What does this mean for the fundamental picture of electromagnetic propagation?


Multiple apple account on the same mac wait 90 days to download?

So I have a US itunes account and a German one, because the US gets stuff earlier. The German one is my main account and I use that for the mac app store and for the apps on iTunes but I mainly use the US one for movies and TV shows.  I recently bought a movie from the German account, and when I tried to stream it on the mac, it told me that this computer is already associated with an Apple ID and after switching I have to wait 90 days.   So if my understanding is correct, if I opt to use my German account to download or stream the movie I just bought, I cannot access my stuff on the US account for the next 90 days, atleast not on this particular mac?   Was this always like that? I remember being able to switch back and fourth without a problem.


PuTTY Alternative with keyboard copy/paste

I'm looking an some alternative for PuTTY, in which you can select, copy, and paste text, using only the keyboard.  Does anyone know anything like this?


I am wondering how to move water and lava in Terraria.


How to filter accidental keystrokes caused by my cat?

What really iritates my cat is, when I'm sitting and - totally concentrated - staring on the monitor screen. I can understand that - it must look stupid.  He has figured out a way to deal with that. He would walk over my keyboard, filling my source-code with giberrish, pausing or rewinding my movies or sending emails before I'm finished writing.  It can also happen to me to press some keys accidentally when moving the computer, placing something on the keyboard or when I put notebook on keyboard in order to write something.  As I think of it, I never seem, during usage of my PC, to press multiple keys that are next to each other. Cat paw however, as well as anything else put on the keyboard is almost bond to do that.  Could I use some sort of key filtering software to filter out these accidental key-presses? Is there any such software that is scriptable to do exactly what I want?


We have a webform that uses a webformhandler to post the submission to our credit card processor.  The webform works correctly when executed by itself, but when the form is embedded in a Secondary page I get a blank screen.  All the pages that use this webformhandler quit working after the last update to the Drupal core 8.7.5  The webformhandler collects data and writes it to the database, it then does the following:  include(drupal_get_path('module', 'xxx').'/redirect.html'); die();   The redirect_form.html is a page that tells the user we are sending them to our payment processor.  The payment processor uses the information we send to create a form that present to the user to collect necessary data.  On submit, the payment processor send us a confirmation code (fail/success).  I have narrowed the error to the statement:  include(drupal_get_path('module', 'xxx').'/redirect.html');   the content of /redirect.html is as follows:    <title>Payment Required</title>
Payment Redirect

We are now redirecting you to our e-commerce partner, xxx. xxx handles secure payments for xxxxxxxxxxx. If you are not redirected within a few seconds, you do not have Javascript enabled. Please enable Javascript, then click the button below to continue to xxx. Javascript must be enabled for you to continue--xxxxxxxxxxx requires Javascript for its processing.
 <form action="https://xxx.xxx.xxx/xxx" method="get" name="mainForm" id="mainForm" > <?php if (!empty($lname)) { ?> <input type="hidden" name="lname" value="<?php echo $lname; ?>"> <?php } ?> <input type="hidden" name="itemcode1" value="<?php echo $glcode; ?>"> <input type="hidden" name="amount1" value="<?php echo $cost; ?>"> <input type="hidden" name="ref1type" value="TRANSID"> <input type="hidden" name="ref1val" value="<?php echo $id; ?>"> <input type="hidden" name="ref2type" value="VALCODE"> <input type="hidden" name="ref2val" value="<?php echo $valCode; ?>"> <input type="submit" name="Submit" value="Continue" id="_s"> </form>


At first, I had Ubuntu 14.04 LTS alongside with Windows 7 Professional. I was on windows 7 and I upgraded to windows 10. During the installation, It had to restart. What happened when I restarted was that it said GRUB Loading.  Error: no such partition.  Entering rescue mode...  grub rescue> I do not know any of the commands. Can someone help me please


Ubuntu stops showing movie after idle time

I'm running Ubuntu 14.04, and when I am watching a movie, after 10-20 minutes the NUC stop casting picture to my tv, and I need to wiggle the mouse to get the screen back on. I disabled the screen suspend to never, but it won`t work.  How can I fix it? :)


Using Leaflet WMS Layer from ArcGIS Server?

I am very new to GIS.   I am trying to display a map on a website using leaflet.   The map I want to display is hosted from an arcGIS server here:    This page lists a number of different interfaces, including WMS. The link to WMS info on the site has an error in it, but can be retrieved here:    I have a web page set up on the model of the leaflet quickstart guide (leafletjs.com/examples/quick-start.html) And that was displaying the map of London as expected.   I then found documentation on the leaflet L.tileLayer.wms function which gave this example  var nexrad = L.tileLayer.wms("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {     layers: 'nexrad-n0r-900913',     format: 'image/png',     transparent: true,     attribution: "Weather data © 2012 IEM Nexrad" });   based on this, I substituted information from the ags.gis.iastate.edu wms capabilities sheet (linked above) and added the addTo(map) as below  var andreas = L.tileLayer.wms("http://ags.gis.iastate.edu/arcgisserver/services/Ortho/andreas/ImageServer/WMSServer", {     layers: '0',     format: 'image/png',     transparent: true,     attribution: "Andreas atlas © Iowa DNR" }).addTo(map);   [note I also tried transparent: false]  Result: nothing.   Can anyone point out what is probably a very obvious error, or lack of understanding on my part?


Can measuring the refraction index in an object measure the strength of the quantum gravity between atoms of the object?

Is measuring the  of an object a way of measuring the strength of the gravitational force between the atoms of the object (measuring quantum gravity)? From reading Snell's law of refraction, it would appear that the refraction index is caused by  based on the mass of the object. With the  being 1.52, it would appear that the force of gravity is very strong at the atomic level.


Proving that the metric space $((0,\infty),d)$ is complete, with $d(x,y)=|\ln x-\ln y|$

Let $X$ denote $(0,\infty)\subseteq \mathbb{R}$, and let $d:X\times X\to \mathbb{R}$ be defined as $d(x,y)=|\ln x- \ln y|$. Show that $(X,d)$ is a complete metric space.   I am taking for granted here that $d$ actually defines a metric on $X$, since I have already showed this. However, I am quite stuck on how to show that this space is complete. My initial thought was to take an arbitrary Cauchy sequence in $X$, and show that it converges and that the limit is in $X$.   Now if we let $\{x_n\}_{n=1}^\infty$ be some such Cauchy sequence in $X$, we know that given any $\varepsilon>0$ we can find a corresponding $N\in\mathbb{N}$ such that $d(x_n,x_m)=|\ln x_n - \ln x_m|=|\ln(x_n/x_m)|<\varepsilon$ whenever $n,m>N$.  Now, since $\ln(x_n/x_m)$ should tend to zero, this would mean that $x_n$ and $x_m$ become arbitrarily close to each other as $N$ grows large. This in turn would imply that a limit exists, however I am not sure how to make these arguments rigorous and also how to show that such a limit lies in $X$.  Any hints on how to proceed would be greatly appreciated!


An explanation for the Landauer's principle

Has anyone understood the ? What is the current status?  In specific, is there a theoretical derivation of the Landauer's Principle?(not the heuristic one based on Salizard's engine) How does one account for thermodynamic concepts applicable to situations involving measurement? What does it mean to reset the state of the apparatus why is free energy expended in the process?


Having trouble understanding formally why this proof is incorrect

I am working through Velleman's How To Prove It on my own and I am having trouble figuring out exactly why this proof is incorrect in a formal manner:    I have this intuitive feeling that makes sense to me that it should NOT follow that $\forall x\in A(x \in B)$ since you can't ensure that all elements of $A$ are also in $B$. I can even come up with a simple counterexample. But I don't know which formal step taken in the proof is incorrect.  Following Velleman's methods, if I have the goals $\forall x \in A(x \in B)$ or $\forall x \in A(x \in C)$, I can assume that $x$ is an arbitrary element of $A$. Then all I need to prove are the goals $x \in B$ or $x \in C$. I believe everything is correct up to this point.  Then the proof deduces from $A \subseteq B\space\cup C$ that $x \in B$ or $x \in C$. Assuming either one of them proves one of the goals true and the theorem is proven. I know one of these steps in here is incorrect but I was wondering of someone can point me to what exactly went wrong.  Thanks!


Can I flash another phone's ROM or Kernel on my phone?

Can i flash another phone's kernel or ROM on my phone and what would happen is i did so?


Is there any way to search the scrollback buffer in Terminator? I'd like to be able to search in the logs that are displayed when something is run from the terminal.


Last names that are English words with an extra 'e'

I noticed that there are a lot of last names that have an 'e' at the end.  The pronunciation usually isn't changed from that of the base word.   Poole Steele Browne Clarke   Why do English words not have the e?  Maybe the answer to this question depends on which came first, pool or poole.


Can 25mm tubeless tires fit on a wheel that previously had 22mm tubeless tires? I have a set of wheels that previously had 22mm tires on it. There is no description of tire compatibility listed on the wheels.


I gotta show if or if not those $ 2 $ matrices are similar:   $$     \left(\begin{matrix}     3 & 2 & -2 \\     1 & 4 & 0 \\     -2 & 1 & -1 \\     \end{matrix}\right) $$    $$     \left(\begin{matrix}     1 & 3 & -1 \\     3 & 3 & 1 \\     -2 & 1 & 2 \\     \end{matrix}\right) $$  I already calculated their determinant but it's equal so nothing there. Is it possible to show it based on their polynominal?


How do I install Ubuntu on a USB Flash Drive?

My laptop does not have enough space to Install Ubuntu and I need to Install it on a USB Flash Drive. How do I install it?


Is there a way to restart a modified addon?

I'm currently twiddling with an old addon and insert some print statements for debugging. Currently I'm restarting Blender each time to see the new messages. Is there a way to 'refresh' an already loaded Python script?  An API call would be preferred to disable/re-enable the addon in the User Preferences dialog.


Compute string as an arithmetic operation

I have a string which consists of numbers separated by either addition, subtraction, multiplication, division signs etc, eg:  "1+2*3"="7".   The maximum number of signs can be two. I want to compute this string as an arithmetic operation. How can I do this? My current thinking is to split this string into a list then calculate the result using the normal order of arithmetic operation.


Relatively Prime Numbers and Number of Divisors of n

Find all positive integers $n$ such that $\phi(n) + \tau(n) > n$.  I'm not sure how to deal with such abstract functions... help?


In many mathematics problems you see the phrase "prove that..." or "show that..." something is. What's the difference between these two phrases? Is "showing" something different from "proving" something in mathematics?  Thanks.


Can I modify unity keyboard shortcut overlay?

As per this bug , shortcuts for the keyboard shortcuts overlay get pulled dynamically from user's settings.Is it possible to change which shortcuts are included (i.e. show more of them - Alt+F9 minimizes window on my computer but it is not included)?


Why .getOutput(0) is needed after GetCount_management?

parcelCount = int(arcpy.GetCount_management("Parcels_lyr").getOutput(0)) print parcelCount while parcelCount < 200:     arcpy.SelectLayerByLocation_management("Parcels_lyr","WITHIN_A_DISTANCE",\                                            "Parcels_lyr","150","ADD_TO_SELECTION")     parcelCount = int(arcpy.GetCount_management("Parcels_lyr").getOutput(0))     print parcelCount   The above was part of code. I don't understand the use and the need of getOutput(0). A reference said "because parcelCount is a python object and not a simple variable, you must add .getOutput(0) at the end of the object to reference the value's index number." I am totally confused. I look up online, including python doc, but seems not so much helpful info available.  I also searched this site. There is 1 post mentioning it, but not much.  Can anybody explain it?


Good to replace my python 2.7.6 with python 2.7.9?

My Ubuntu is 14.04, which has Python 2.7.6 by default.  The latest Python 2.x is 2.7.9. I am thinking whether to install 2.7.9 from its official site, just in case that something is available in 2.7.9 but not in 2.7.6?  If I install python 2.7.9, is it a goo uninstall my 2.7.6?  Does Ubuntu 14.04 depend on python 2.7.6 specifically?   So I can't uninstall 2.7.6,right?  How can I avoid overwriting my default 2.7.6 when I install 2.7.9 from its source? If I install 2.7.9, will I have to call it explicitly to distinguish from calling 2.7.6? How can I make it the default one for my use (i.e. the command python will be 2.7.9), while letting the system using 2.7.6 as its default one?


I have a set of data which basically looks like the following: +---------+--------+ | EventId | Field  | +---------+--------+ |       1 | apple  | |       1 | paper  | |       1 | boy    | |       2 | banana | |       2 | cat    | |       3 | girl   | +---------+--------+  I would like to pivot this to look like this: +-------+--------+------+ |   1   |   2    |  3   | +-------+--------+------+ | apple | banana | girl | | paper | cat    |      | | boy   |        |      | +-------+--------+------+  I am trying to fiddle around PIVOT, but I can't get the result I want. Am I looking at or using the wrong command? Is PIVOT the correct relational operator for this? This is the code I have been working on so far: DECLARE @columns NVARCHAR(MAX), @sql NVARCHAR(MAX); SET @columns = N''; SELECT @columns += N', ' + QUOTENAME(EventID)   FROM (             select distinct                 EventId             from Events         ) AS x;  SET @sql =  N'select  ' +  STUFF(@columns, 1, 2, '') +  '   into ##tempMap from (     select         ev.EventID,ev.FieldName     from Events ev ) as a pivot  (       max(FieldName) for EventId in ('   + STUFF(REPLACE(@columns, ', p.[', ',['), 1, 1, '')   + ') ) as pivottable;';  EXEC sp_executesql @sql  select * from ##tempMap drop table ##tempMap  The code above returns the following results because of the MAX aggregate function. +-------+-----+------+ |   1   |  2  |  3   | +-------+-----+------+ | paper | cat | girl | +-------+-----+------+


How do I ask Ruby what system it's running on?

Is there a way to ask Ruby what operating system it's running on?  I am using the clipboard gem in conjunction with Selenium and I need the script to run on all systems.  Since the "copy" keyboard shortcut is different on OSX vs. Windows, I would like to be able to tell which operating system my script is being run on.


Give a combinatorial proof to show the following for all integers $n \geq 2$.

$$2^{n-2} n (n -1) = \sum\limits_{k=2}^n k (k - 1) \binom{n}{k}.$$  I'm completely stumped. I just have no idea how to do this. What I've tried so far has been simplifying the right hand side slightly to $\sum\limits_{k=2}^n \binom{n}{k - 2}$, and then proving that this somehow is equal to some manipulation of the left hand side. I can't seem to find any breakthroughs that way though.  If anyone could help out or point me in the right direction that would be great.  EDIT: I've actually just realized my simplification of the right hand side is wrong. Now I'm even more stuck.


First Difference transformation of log variable

I am using First difference transformation, where my variables are represented in a logarithmic form. How do I interpret the coefficients from such regressions?   Thank you in advance!


Why use Fourier expansion in Quantum Field Theory?

I have just begun studying quantum field theory and am following the book by Peskin and Schroeder for that. So while quantising the Klein Gordon field, we Fourier expand the field and then work only in the momentum space. What is the need for this expansion?


grep strange behaviour with single letter words

I am removing stop words from a text, roughly using this   I have the following  $ cat file file types extensions  $ cat stopwords i file types   grep -vwFf stopwords file  I am expecting the result: extensions  but I get the ( I think incorrect)  file extensions   It is as if the word file has been skipped in the stopwords file. Now here's the cool bit: if I modify the stopwords file, by changing the single word/letter i on the first line, to any other ascii letter apart from f, i, l, e, then the same grep command gives me a different and correct result of extensions.  What is going on here and how do I fix it?  I'm using grep (BSD grep) 2.5.1-FreeBSD on a Mac OSX GNU bash, version 4.4.12(1)


I am using PDFLaTeX, not XeLaTeX. How can I find the short name of a specific font? For example, I know that \fontfamily{phv}\selectfont is URW Nimbus Sans (a Helvetica clone).


How much more mass would Jupiter have to accrete to start fusion?

How long would it take? Is it likely in the life of our sun?


How do I install Broadcom wireless adapter and how do I find out which Broadcom I have?

A while back, when first playing around with Ubuntu, I tried installing on Aspire 5517 laptop. I got the information to find out what adapter I had and how to modify Ubuntu to see it. I am now trying again to convert this laptop but have lost all that information. Any and all information will help.  Thank you.


Causes of hexagonal shape of Saturn's jet stream

NASA has just shown a more detailed picture of the hexagonal vortex/storm on Saturn:           Is that theoretically understood what is the cause behind this eye-catching nontrivial, regular yet not circular, shape? If so, what is the cause? I expect some explanation in terms of "nonlinear equations" of "mathematical physics" and "solitons".  P.S. (added a day after this question and the first answer was posted): On  where I posted the same question, people came up with some articles and phrases like "Rossby waves" and "resonance of latitude-dependence Coriolis frequency".


Proof convergence of $\sum\limits_{n = 1}^\infty\frac {n!} {n^n}$

To prove the convergence of $\sum\limits_{n = 1}^\infty\frac {n!} {n^n}$ I used that $\lim\limits_{n\to\infty}|\frac {a_{n+1}} {a_n}|$ has to be $<1$:  $$\lim\limits_{n\to\infty}|\frac {a_{n+1}} {a_n}|$$  $$=\lim\limits_{n\to\infty}|\frac {\frac {(n+1)!} {(n+1)^{n+1}}} {\frac {n!} {n^n}}|$$  $$=\lim\limits_{n\to\infty}|\frac {(n+1)!\cdot n^n} {n!\cdot (n+1)^{n+1}}|$$  $$=\lim\limits_{n\to\infty}|\frac {(n+1)\cdot n^n} {(n+1)^{n+1}}|$$  $$=\lim\limits_{n\to\infty}|\frac {n^n} {(n+1)^n}|$$  $$=\lim\limits_{n\to\infty}|{(\frac {n} {n+1})}^n|=\frac 1 e$$  Okay... problem solved after thankful advice


How to remove unneeded features and extras on Windows 7?

My laptop came with preinstalled Windows 7 Ultimate x64. I can't change the OS on laptop, but Windows 7 Ultimate is much of an overhead for the computer and my intended use as well. Is there a way to remove any features, to make the installed OS closer to say Windown 7 Home Premium? I would like to speed up the laptop and get some memory freed.


How do I change the font colours for grub?

I managed to change the background on the boot screen and now I need to set the font colours to something I can read. I've been lurking around the Ubuntu Forums and the Ask site and I've also tried with the grub-customizer with no luck. All I need is the right code for grub file.  Here's a copy of my current grub:  GRUB_DEFAULT="saved" GRUB_SAVEDEFAULT="true" #GRUB_HIDDEN_TIMEOUT="0" GRUB_HIDDEN_TIMEOUT_QUIET="true" GRUB_TIMEOUT="10" GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" GRUB_BACKGROUND="/home/autumn/Pictures/grub/suckng.jpg"  menu_color_normal=black/black menu_color_highlight=yellow/dark-gray color_normal=black/black color_higlight=black/black


I am trying to run some C++11 code (not mine), with four .cpp files:datainfo, pcim,  demo,  traj and a Makefile. The files compile with no errors, but then  g++  -lboost_serialization -lpthread -o demo datainfo.o pcim.o demo.o traj.o  gives a multiple errors that look like this: datainfo.o: In function boost::archive::detail::pointer_iserializer<boost::archive::xml_iarchive, datainfo>::load_object_ptr(boost::archive::detail::basic_iarchive&, void*&, unsigned int) const': datainfo.cpp:(.text._ZNK5boost7archive6detail19pointer_iserializerINS0_12xml_iarchiveE8datainfoE15load_object_ptrERNS1_14basic_iarchiveERPvj[_ZNK5boost7archive6detail19pointer_iserializerINS0_12xml_iarchiveE8datainfoE15load_object_ptrERNS1_14basic_iarchiveERPvj]+0xa3): undefined reference toboost::archive::detail::basic_iarchive::next_object_pointer(void*)'  The boost lib files are in /usr/lib/x86_64-linux-gnu and the .hpp files are in /usr/include/boost $. I am running on a server with Mint 17.2 rafaela. I am not very familiar with C++, but I am guessing it might be a linking issue?.


Turn list into single line with delimiter

I have to take a list (loads) of IP addresses in this format:   134.27.128.0  111.245.48.0  109.21.244.0   and turn them into this format with a pipe in-between (IPs made up)  134.27.128.0 | 111.245.48.0 | 109.21.244.0 | 103.22.200.0/22   I think it is a find and replace command like sed but I can't get it to work.


Why is the size of this struct 40 when it seems like it should be 12/24?

In a project with old code I'm having to deal with, I have this Coord structure. As best as I can tell it's size should be either 12 bytes, or 24. However, sizeof(Coord returns 40. Could someone please explain where this extra size comes from?  struct Coord {     Coord();     float inate[3] = {0,0,0};     float& x = inate[0];     float& y = inate[1];     float& z = inate[2];     Coord operator*(const float&);     Coord operator=(const Coord&);     Coord operator=(const float[3]);     Coord dot(const Coord& c);     Coord cross(const Coord& c); };